/* ==========================================================================
   InfoScreen — sign in / sign up / password recovery
   Shares the design language of /assets/pro.css (sales pages).
   Light only. Motion is short, ease-out, and only where it confirms.
   ========================================================================== */

:root {
  color-scheme: light;

  --bg: #fbfbfd;
  --bg-2: #f5f5f7;
  --surface: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --faint: #86868b;
  --line: rgba(0, 0, 0, .08);
  --line-2: rgba(0, 0, 0, .14);

  --blue: #2f62d9;
  --blue-ink: #1f4fbf;
  --blue-soft: #eef3fe;
  --green: #0ea974;
  --green-ink: #08825a;
  --green-soft: #e8f7f1;
  --amber: #d98a2b;
  --amber-soft: #fdf3e6;
  --rose: #d6456d;
  --rose-ink: #b3284f;
  --rose-soft: #fdeef2;

  --r-field: 14px;
  --r-card: 28px;

  --shadow-1: 0 1px 2px rgba(0,0,0,.04), 0 2px 8px rgba(0,0,0,.04);
  --shadow-3: 0 30px 80px -20px rgba(16,24,40,.25), 0 8px 24px -8px rgba(16,24,40,.12);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: var(--blue-ink); text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(47, 98, 217, .4); outline-offset: 2px; border-radius: 8px; }

/* ── Shell ────────────────────────────────────────────────────────────── */
.a-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  min-height: 100vh;
  min-height: 100dvh;
}
.a-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px clamp(20px, 5vw, 64px);
  background: var(--surface);
}
.a-top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.a-top-link { font-size: .9rem; color: var(--muted); white-space: nowrap; }
.a-top-link a { font-weight: 600; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); font-weight: 800; letter-spacing: -0.02em; font-size: 1.08rem;
}
.brand-mark {
  width: 26px; height: 18px; border-radius: 5px; position: relative; flex: none;
  background: linear-gradient(135deg, var(--blue), var(--green));
  box-shadow: 0 2px 6px -2px rgba(47,98,217,.6);
}
.brand-mark i {
  position: absolute; left: 50%; bottom: -5px; width: 10px; height: 3px; margin-left: -5px;
  border-radius: 2px; background: var(--ink); opacity: .75;
}

.a-main {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 48px 0;
}
.a-card { width: 100%; max-width: 400px; }
.a-card.wide { max-width: 480px; }

.a-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px;
  font-size: .82rem; color: var(--faint);
}
.a-foot a { color: var(--muted); }
@media (hover: hover) and (pointer: fine) {
  .a-foot a:hover, .a-top-link a:hover, .a-link:hover { text-decoration: underline; text-underline-offset: 3px; }
}

/* ── Heading block ────────────────────────────────────────────────────── */
.a-badge {
  width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center; font-size: 1.4rem;
  background: var(--blue-soft); color: var(--blue);
  box-shadow: inset 0 0 0 1px rgba(47,98,217,.08);
  margin-bottom: 22px;
}
.a-badge.g { background: var(--green-soft); color: var(--green); box-shadow: inset 0 0 0 1px rgba(14,169,116,.1); }
.a-title {
  font-size: clamp(1.9rem, 3.2vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 800;
}
.a-sub {
  margin-top: 10px;
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--muted);
  letter-spacing: -0.005em;
}
.a-sub b { color: var(--ink); font-weight: 600; word-break: break-all; }

.a-steps {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 18px;
  font-size: .78rem; font-weight: 700; letter-spacing: .02em; color: var(--muted);
}
.a-steps span {
  width: 22px; height: 4px; border-radius: 4px; background: var(--line-2);
}
.a-steps span.on { background: var(--blue); }
.a-steps span.done { background: var(--green); }

/* ── Notices ──────────────────────────────────────────────────────────── */
.a-note {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 24px;
  padding: 13px 15px;
  border-radius: var(--r-field);
  font-size: .92rem; line-height: 1.45;
  background: var(--bg-2); color: var(--ink-2);
}
.a-note i { font-size: 1.05rem; line-height: 1.3; flex: none; }
.a-note ul { margin: 0; padding-left: 18px; }
.a-note ul li + li { margin-top: 3px; }
.a-note.err  { background: var(--rose-soft);  color: var(--rose-ink); }
.a-note.ok   { background: var(--green-soft); color: var(--green-ink); }
.a-note.warn { background: var(--amber-soft); color: #8a5310; }

/* Error nudge — rise in, then a single small shake. Rare event, so it earns motion. */
.a-note.err.nudge { animation: rise 420ms var(--ease-out) 40ms forwards, nudge 380ms var(--ease-out) 360ms 1; }
@keyframes nudge {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  45% { transform: translateX(5px); }
  70% { transform: translateX(-3px); }
}

/* ── Form ─────────────────────────────────────────────────────────────── */
.a-form { margin-top: 28px; display: grid; gap: 14px; }
.a-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .a-row { grid-template-columns: 1fr; } }

.field { position: relative; }
.field input {
  display: block; width: 100%;
  height: 58px;
  padding: 24px 16px 8px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-field);
  background: var(--surface);
  color: var(--ink);
  font: inherit; font-size: 1rem; letter-spacing: -0.005em;
  outline: none;
  -webkit-appearance: none; appearance: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}
.field input::placeholder { color: transparent; }
.field label {
  position: absolute; left: 17px; top: 29px;
  transform: translateY(-50%);
  transform-origin: left center;
  color: var(--muted);
  font-size: 1rem;
  pointer-events: none;
  white-space: nowrap;
  transition: transform 200ms var(--ease-out), color 150ms ease;
}
/* Label lifts when focused or filled (incl. browser autofill). */
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field input:-webkit-autofill + label {
  transform: translateY(calc(-50% - 11px)) scale(.76);
}
.field input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47,98,217,.14); }
.field input:focus + label { color: var(--blue-ink); }
@media (hover: hover) and (pointer: fine) {
  .field input:not(:focus):not([readonly]):hover { border-color: rgba(0,0,0,.24); }
}
.field input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #fff inset; -webkit-text-fill-color: var(--ink); }
.field input:focus:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #fff inset, 0 0 0 4px rgba(47,98,217,.14); }

.field.invalid input { border-color: var(--rose); }
.field.invalid input:focus { box-shadow: 0 0 0 4px rgba(214,69,109,.14); }
.field.valid input { border-color: rgba(14,169,116,.55); }

/* Locked (verified) field */
.field input[readonly] {
  background: var(--bg-2); border-color: transparent; color: var(--ink-2); cursor: default;
}
.field .field-end {
  position: absolute; right: 8px; top: 29px; transform: translateY(-50%);
  display: flex; align-items: center; gap: 6px;
}
.field.has-end input { padding-right: 52px; }
.tag-verified {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px; border-radius: 999px;
  background: var(--green-soft); color: var(--green-ink);
  font-size: .74rem; font-weight: 700; letter-spacing: .01em;
  margin-right: 4px;
}
.field.has-tag input { padding-right: 104px; }

/* Show / hide password — instant, no animation (used many times). */
.eye {
  width: 40px; height: 40px; border: 0; border-radius: 10px;
  display: grid; place-items: center; cursor: pointer;
  background: transparent; color: var(--faint); font-size: 1.1rem;
  transition: background-color 150ms ease, color 150ms ease, transform 120ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .eye:hover { background: var(--bg-2); color: var(--ink-2); } }
.eye:active { transform: scale(.92); }

/* Inline helper under a field */
.hint {
  display: flex; align-items: center; gap: 6px;
  min-height: 20px; margin: 7px 2px 0;
  font-size: .82rem; color: var(--muted);
}
.hint.ok { color: var(--green-ink); }
.hint.bad { color: var(--rose-ink); }
.hint .spin { width: 12px; height: 12px; border-width: 1.5px; }

.a-meta {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-top: -2px;
  font-size: .9rem;
}
.a-link { font-weight: 600; color: var(--blue-ink); }

/* Password rules — tick as they’re met */
.rules {
  list-style: none; margin: 8px 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px;
  font-size: .82rem; color: var(--muted);
}
.rules li { display: flex; align-items: center; gap: 7px; transition: color 200ms ease; }
.rules li::before {
  content: ''; width: 16px; height: 16px; border-radius: 50%; flex: none;
  box-shadow: inset 0 0 0 1.5px var(--line-2);
  background: var(--surface) center / 10px no-repeat;
  transition: background-color 200ms ease, box-shadow 200ms ease, transform 200ms var(--ease-out);
}
.rules li.met { color: var(--green-ink); }
.rules li.met::before {
  background-color: var(--green);
  box-shadow: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.2 2.2 4.8-4.9' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  transform: scale(1.06);
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 22px;
  border: 0; border-radius: var(--r-field);
  font-weight: 700; font-size: 1rem; letter-spacing: -0.01em;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform 140ms var(--ease-out), box-shadow 200ms ease, background-color 150ms ease, filter 150ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn-block { width: 100%; }
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #3b6de6 0%, var(--blue) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 1px 2px rgba(16,24,40,.12), 0 8px 20px -8px rgba(47,98,217,.6);
}
.btn-green {
  color: #fff;
  background: linear-gradient(180deg, #16b680 0%, var(--green) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 1px 2px rgba(16,24,40,.12), 0 8px 20px -8px rgba(14,169,116,.6);
}
.btn-ghost {
  color: var(--ink); background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-1);
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover, .btn-green:hover { filter: brightness(1.06); }
  .btn-ghost:hover { background: var(--bg-2); }
}
.btn:focus-visible { outline: 3px solid rgba(47,98,217,.4); outline-offset: 3px; }

/* Loading state: label blurs out, spinner blurs in (masks the crossfade). */
.btn .btn-label, .btn .btn-spin {
  display: inline-flex; align-items: center; gap: 8px;
  transition: opacity 180ms ease, filter 180ms ease, transform 180ms var(--ease-out);
}
.btn .btn-spin { position: absolute; inset: 0; justify-content: center; opacity: 0; filter: blur(4px); transform: scale(.9); }
.btn.is-loading { pointer-events: none; }
.btn.is-loading .btn-label { opacity: 0; filter: blur(4px); transform: scale(.96); }
.btn.is-loading .btn-spin { opacity: 1; filter: blur(0); transform: scale(1); }

.spin {
  display: inline-block; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin 600ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.a-divider {
  display: flex; align-items: center; gap: 14px;
  margin: 6px 0 2px;
  font-size: .8rem; color: var(--faint);
}
.a-divider::before, .a-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.a-small { font-size: .84rem; color: var(--muted); text-align: center; line-height: 1.5; }
.a-small button.linkish {
  border: 0; background: none; padding: 0; cursor: pointer;
  color: var(--blue-ink); font-weight: 600; font-size: inherit;
}

/* ── Done / sent states ───────────────────────────────────────────────── */
.a-done { text-align: center; }
.a-done .a-badge { margin: 0 auto 22px; width: 64px; height: 64px; border-radius: 20px; font-size: 1.7rem; }
.a-done .a-sub { max-width: 340px; margin-left: auto; margin-right: auto; }
.a-done .btn { margin-top: 28px; }
.a-mail-chip {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px; padding: 8px 14px; border-radius: 999px;
  background: var(--bg-2); font-size: .9rem; font-weight: 600; color: var(--ink-2);
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ── Stage (right side) ───────────────────────────────────────────────── */
.a-stage {
  position: relative;
  margin: 12px 12px 12px 0;
  border-radius: var(--r-card);
  overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px clamp(28px, 5vw, 72px);
  background:
    radial-gradient(60% 55% at 22% 18%, rgba(47,98,217,.14), transparent 70%),
    radial-gradient(55% 50% at 82% 30%, rgba(14,169,116,.12), transparent 70%),
    radial-gradient(60% 60% at 60% 100%, rgba(124,92,214,.10), transparent 70%),
    var(--bg-2);
  isolation: isolate;
}
.a-stage::before { /* hairline inner edge so the panel reads as a surface */
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.04), inset 0 1px 0 rgba(255,255,255,.8);
}
.a-stage-copy { max-width: 520px; text-align: center; margin-top: 64px; }
.a-stage-copy h2 {
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  line-height: 1.12; letter-spacing: -0.03em; font-weight: 800;
}
.a-stage-copy p { margin-top: 12px; color: var(--muted); font-size: 1rem; }
.grad {
  background: linear-gradient(100deg, var(--blue) 0%, #5b7cf0 40%, var(--green) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.a-stage-meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px;
  margin-top: 22px; font-size: .86rem; color: var(--muted);
}
.a-stage-meta span { display: inline-flex; align-items: center; gap: 6px; }
.a-stage-meta i { color: var(--green); }

/* Mock TV — same visual language as the sales hero, scaled down. */
.tv {
  position: relative; width: min(100%, 620px);
  border-radius: 20px; padding: 10px;
  background: linear-gradient(180deg, #ececf1, #d8d8de);
  box-shadow: var(--shadow-3), inset 0 1px 0 rgba(255,255,255,.9);
}
.tv::after {
  content: ''; position: absolute; left: 50%; bottom: -24px; width: 22%; height: 24px; transform: translateX(-50%);
  background: linear-gradient(180deg, #cfcfd6, #e6e6eb); border-radius: 0 0 14px 14px;
  clip-path: polygon(12% 0, 88% 0, 100% 100%, 0 100%);
}
.screen {
  container-type: inline-size;
  position: relative; aspect-ratio: 16 / 9; border-radius: 11px; overflow: hidden;
  background: linear-gradient(160deg, #f4f8ff 0%, #eaf1ff 45%, #eef9f4 100%);
  color: #13203a; text-align: left;
}
.scr-grid {
  position: absolute; inset: 3.2cqw 3.2cqw 9cqw; display: grid; gap: 1.8cqw;
  grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: 1fr 1fr;
}
.scr-card {
  border-radius: 1.8cqw; background: rgba(255,255,255,.8);
  box-shadow: 0 .3cqw 1.6cqw rgba(30,60,120,.08), inset 0 0 0 .1cqw rgba(255,255,255,.9);
  padding: 2cqw; position: relative; overflow: hidden;
}
.scr-label { font-size: 1.3cqw; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #5d6b86; }
.scr-clock {
  grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(160deg, #2f62d9, #4c7cf0); color: #fff;
}
.scr-clock .scr-label { color: rgba(255,255,255,.78); }
.scr-time { font-size: 9cqw; font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.scr-date { font-size: 1.9cqw; font-weight: 600; opacity: .85; margin-top: .8cqw; }
.scr-wx { display: flex; align-items: center; gap: 1.6cqw; }
.scr-wx-ico { width: 5.6cqw; height: 5.6cqw; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffe28a, #f7b733); box-shadow: 0 0 3cqw rgba(247,183,51,.55); flex: none; }
.scr-wx b { font-size: 4.4cqw; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.scr-wx small { display: block; font-size: 1.5cqw; opacity: .82; font-weight: 600; }
.scr-queue { display: flex; flex-direction: column; justify-content: space-between; }
.scr-queue-num { font-size: 7.6cqw; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--green); font-variant-numeric: tabular-nums; }
.scr-queue-desk { font-size: 1.6cqw; font-weight: 600; color: #5d6b86; }
.scr-bars { display: flex; align-items: flex-end; gap: 1cqw; height: 60%; margin-top: 1.4cqw; }
.scr-bars i { flex: 1; border-radius: .7cqw .7cqw .2cqw .2cqw; background: linear-gradient(180deg, #7ea0f5, #2f62d9); }
.scr-bars i:nth-child(2n) { background: linear-gradient(180deg, #6fe0b5, #0ea974); }
.scr-menu ul { list-style: none; margin: 1.3cqw 0 0; padding: 0; display: grid; gap: 1cqw; }
.scr-menu li { display: flex; justify-content: space-between; font-size: 1.65cqw; font-weight: 600; border-bottom: .1cqw dashed rgba(19,32,58,.15); padding-bottom: .7cqw; }
.scr-menu li b { color: var(--blue); font-weight: 800; }
.scr-ticker {
  position: absolute; left: 0; right: 0; bottom: 0; height: 6.4cqw;
  display: flex; align-items: center; overflow: hidden; background: rgba(255,255,255,.88);
  border-top: .1cqw solid rgba(19,32,58,.06);
}
.scr-ticker-tag { position: relative; z-index: 1; flex: none; height: 100%; display: flex; align-items: center; padding: 0 2.2cqw; background: var(--blue); color: #fff; font-weight: 800; font-size: 1.4cqw; letter-spacing: .1em; }
.scr-ticker-track { display: flex; gap: 4cqw; padding-left: 3cqw; white-space: nowrap; font-size: 1.8cqw; font-weight: 600; animation: ticker 40s linear infinite; }
.scr-ticker-track span::before { content: '◆'; color: var(--amber); margin-right: 1.6cqw; font-size: 1.1cqw; vertical-align: middle; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Live dot on the TV */
.scr-live {
  float: right; margin: -.5cqw -.6cqw 0 0;
  display: inline-flex; align-items: center; gap: .8cqw;
  padding: .5cqw 1.2cqw; border-radius: 99px; background: rgba(255,255,255,.2);
  font-size: 1.15cqw; font-weight: 800; letter-spacing: .08em; color: #fff;
}
.scr-live::before { content: ''; width: 1cqw; height: 1cqw; border-radius: 50%; background: #5ff0b6; box-shadow: 0 0 0 .45cqw rgba(95,240,182,.25); }

/* ── Entrance (first paint only) ──────────────────────────────────────── */
.rise { opacity: 0; transform: translateY(8px); animation: rise 520ms var(--ease-out) forwards; }
.rise:nth-child(1) { animation-delay: 0ms; }
.rise:nth-child(2) { animation-delay: 50ms; }
.rise:nth-child(3) { animation-delay: 100ms; }
.rise:nth-child(4) { animation-delay: 150ms; }
.rise:nth-child(5) { animation-delay: 200ms; }
.rise:nth-child(6) { animation-delay: 250ms; }
@keyframes rise { to { opacity: 1; transform: none; } }

.tv-in { opacity: 0; transform: translateY(14px) scale(.975); animation: tvin 800ms var(--ease-out) 120ms forwards; }
@keyframes tvin { to { opacity: 1; transform: none; } }

/* ── Dialog (terms) ───────────────────────────────────────────────────── */
dialog.a-dialog {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  padding: 0; border: 0; border-radius: 24px;
  background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-3);
  opacity: 0; transform: scale(.96) translateY(6px);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), overlay 200ms allow-discrete, display 200ms allow-discrete;
}
dialog.a-dialog[open] { opacity: 1; transform: none; }
@starting-style { dialog.a-dialog[open] { opacity: 0; transform: scale(.96) translateY(6px); } }
dialog.a-dialog::backdrop {
  background: rgba(245,245,247,.55);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  backdrop-filter: blur(10px) saturate(160%);
  opacity: 0;
  transition: opacity 200ms ease, overlay 200ms allow-discrete, display 200ms allow-discrete;
}
dialog.a-dialog[open]::backdrop { opacity: 1; }
@starting-style { dialog.a-dialog[open]::backdrop { opacity: 0; } }

.dlg-head { display: flex; align-items: flex-start; gap: 16px; padding: 26px 26px 0; }
.dlg-head h2 { font-size: 1.35rem; letter-spacing: -0.02em; font-weight: 800; }
.dlg-head p { margin-top: 6px; color: var(--muted); font-size: .94rem; }
.dlg-close {
  margin-left: auto; flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; background: var(--bg-2); color: var(--ink-2);
  transition: transform 120ms var(--ease-out), background-color 150ms ease;
}
.dlg-close:active { transform: scale(.92); }
.dlg-body { padding: 20px 26px 26px; overflow: auto; }
.dlg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.dlg-list li { display: flex; gap: 14px; padding: 12px; border-radius: 14px; }
.dlg-list li:nth-child(odd) { background: var(--bg-2); }
.dlg-list i { color: var(--blue); font-size: 1.1rem; line-height: 1.4; }
.dlg-list b { display: block; font-weight: 700; font-size: .95rem; }
.dlg-list span { display: block; color: var(--muted); font-size: .88rem; margin-top: 2px; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .a-shell { grid-template-columns: 1fr; }
  .a-stage { display: none; }
  .a-pane {
    background:
      radial-gradient(90% 40% at 10% 0%, rgba(47,98,217,.07), transparent 70%),
      radial-gradient(70% 30% at 100% 0%, rgba(14,169,116,.06), transparent 70%),
      var(--surface);
  }
}
@media (max-width: 520px) {
  .a-pane { padding: 20px 18px; }
  .a-main { padding: 36px 0; align-items: flex-start; }
  .a-top-link .hide-sm { display: none; }
  .rules { grid-template-columns: 1fr; }
  .a-foot { justify-content: center; text-align: center; }
}

/* ── Accessibility preferences ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .rise, .tv-in { animation: fade 200ms ease forwards; transform: none; }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
  .a-note.err.nudge { animation: fade 200ms ease forwards; }
  .scr-ticker-track { animation: none; }
  .field label, .btn, .rules li::before { transition-duration: 0ms; }
  dialog.a-dialog { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  dialog.a-dialog::backdrop { background: rgba(245,245,247,.92); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .field input { border-color: rgba(0,0,0,.5); }
  .a-sub, .hint, .a-small { color: var(--ink-2); }
}
