:root {
  color-scheme: light;
  --background: #f4f7fb;
  --background-warm: #fff1e9;
  --background-blush: #fce5f1;
  --surface: #ffffff;
  --surface-muted: #eef3f8;
  --text: #10253f;
  --muted: #4e5f74;
  --border: #e2eaf3;
  --brand-orange: #e7872a;
  --brand-pink: #dd66af;
  --brand-violet: #7c3aed;
  --primary-pressed: #c75a95;
  --disabled: #f4f7fb;
  --disabled-text: #7a8aa0;
  --focus: #0a6678;
  --shadow: rgba(9, 18, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100vh;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(140deg, var(--background) 0%, var(--background-warm) 47%, var(--background-blush) 78%, #eef3f8 100%);
  color: var(--text);
  font-family:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, #9d31f5 0%, #cf3ed4 34%, #f83daa 68%, var(--brand-orange) 100%);
  content: "";
  pointer-events: none;
}

.resolver-shell {
  display: grid;
  min-height: 100svh;
  min-height: 100vh;
  place-items: center;
  padding: 36px 18px;
  width: 100%;
}

.invitation-panel {
  position: relative;
  overflow: hidden;
  width: calc(100vw - 36px);
  max-width: 520px;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.94)),
    var(--surface);
  padding: 38px;
  box-shadow: 0 24px 70px var(--shadow);
  text-align: center;
}

.invitation-panel::before {
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--brand-orange), var(--brand-pink));
  content: "";
}

.brand-lockup {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.brand-logo {
  display: block;
  width: 76px;
  height: 76px;
  border-radius: 18px;
  filter: drop-shadow(0 14px 24px rgba(221, 102, 175, 0.22));
}

.brand-wordmark {
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.brand-kicker {
  margin: 18px 0 10px;
  color: var(--brand-pink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 18px;
  min-height: 0;
}

.badge {
  border: 1px solid rgba(226, 234, 243, 0.96);
  border-radius: 999px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  padding: 6px 12px;
}

.badge-success {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.badge-warning {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

.badge-danger {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.16;
  font-weight: 750;
  overflow-wrap: break-word;
}

.intro {
  margin: 16px 0 0;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 700;
  overflow-wrap: break-word;
}

.help {
  max-width: 410px;
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  overflow-wrap: break-word;
}

.meta-grid {
  display: grid;
  gap: 8px;
  margin: 20px auto 0;
  max-width: 410px;
  text-align: center;
}

.meta-item {
  display: grid;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-muted);
  padding: 10px 12px;
}

.meta-label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.meta-value {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.meta-line {
  border: 0;
  background: transparent;
  padding: 0;
}

.meta-label-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.meta-line-value {
  font-size: 16px;
  line-height: 1.45;
}

.meta-line-strong .meta-line-value,
.meta-line-location .meta-line-value {
  font-weight: 800;
}

.meta-line-trust {
  margin-top: 6px;
}

.meta-line-trust .meta-line-value {
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.actions {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

button {
  width: 100%;
  min-height: 52px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  overflow-wrap: break-word;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease,
    opacity 160ms ease,
    transform 160ms ease;
}

button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.primary-action {
  background: linear-gradient(90deg, var(--brand-orange), var(--brand-pink));
  box-shadow: 0 14px 26px rgba(221, 102, 175, 0.24);
  color: #ffffff;
  cursor: pointer;
}

.primary-action:hover:not(:disabled) {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.primary-action:active:not(:disabled) {
  filter: brightness(0.96);
  transform: translateY(0);
}

.primary-action:disabled {
  background: var(--disabled);
  border-color: var(--border);
  box-shadow: none;
  color: var(--disabled-text);
  cursor: not-allowed;
}

.store-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.store-action {
  display: grid;
  gap: 3px;
  align-content: center;
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--border);
  color: var(--text);
}

.store-action:disabled {
  background: var(--surface-muted);
  border-color: rgba(226, 234, 243, 0.96);
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.68;
}

.store-note {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: inherit;
}

.resolver-status {
  min-height: 22px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

@media (max-width: 520px) {
  .resolver-shell {
    padding: 18px;
  }

  .invitation-panel {
    max-width: 354px;
    border-radius: 20px;
    padding: 30px 22px;
  }

  .brand-logo {
    width: 68px;
    height: 68px;
    border-radius: 16px;
  }

  h1 {
    font-size: 28px;
  }

  .intro {
    font-size: 17px;
  }

  .store-actions {
    grid-template-columns: 1fr;
  }
}
