/* deanprep.com (docs/WEBSITE_PLAN.md). Full width: every band runs edge to edge; content sits in fluid gutters and
   gains columns, not empty margins, on wider screens. */
:root {
  --navy: #1e2a5a;
  --navy-2: #2a3a78;
  --ink: #1f2430;
  --muted: #5a6273;
  --line: #dfe3ea;
  --ivory: #faf6ee;
  --white: #ffffff;
  --tint: #f2f4fa;
  --accent: #e3b24f;      /* GRE gold; act and sat pages set their own */
  --accent-ink: #7a5200;
  --ok: #237a49;          /* 4.9:1 on ivory, 5.3:1 on white (WCAG AA) */
  --bad: #c0392b;
  --gutter: 16px;
  --radius: 14px;
  --fs-body: clamp(16px, 0.9rem + 0.25vw, 19px);
  --fs-h1: clamp(36px, 2rem + 3vw, 88px);
  --fs-h2: clamp(26px, 1.3rem + 1.6vw, 52px);
  --fs-h3: clamp(18px, 1rem + 0.5vw, 26px);
  --space: clamp(56px, 8vh, 140px);
  color-scheme: light;
}
.exam-act { --accent: #1aa39a; --accent-ink: #0c5f59; }
.exam-sat { --accent: #f2735a; --accent-ink: #9a3420; }
@media (prefers-color-scheme: dark) {
  :root { --ink: #e8ebf2; --muted: #aab2c3; --line: #333b4d; --ivory: #141925; --white: #1a2030; --tint: #1f2638;
          --navy-2: #8fa8ec; color-scheme: dark; }
}
@media (min-width: 600px)  { :root { --gutter: 24px; } }
@media (min-width: 900px)  { :root { --gutter: 32px; } }
@media (min-width: 1280px) { :root { --gutter: 40px; } }
@media (min-width: 1536px) { :root { --gutter: 56px; } }
@media (min-width: 1920px) { :root { --gutter: 64px; } }
@media (min-width: 2560px) { :root { --gutter: 80px; } }

* { box-sizing: border-box; }
[hidden] { display: none !important; } /* layout rules (flex, grid) must never show what is hidden */
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font: var(--fs-body)/1.6 Inter, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; color: var(--ink);
       background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .4em; letter-spacing: -0.01em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1em; }
.measure { max-width: 68ch; }
.muted { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78em; font-weight: 700; color: var(--accent-ink); margin-bottom: 1em; }
@media (prefers-color-scheme: dark) { .eyebrow { color: var(--accent); } }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 8px; top: 8px; z-index: 99; background: var(--white); padding: 8px 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* A band: full width, padded by the gutter */
.band { width: 100%; padding: var(--space) var(--gutter); }
.band.tight { padding-block: calc(var(--space) * .6); }
.band.ivory { background: var(--ivory); }
.band.tint { background: color-mix(in srgb, var(--accent) 10%, var(--white)); }
.band.navy { background: var(--navy); color: #fff; }
.band.navy .muted { color: #c9d0e6; }
.band-head { margin-bottom: clamp(24px, 4vw, 56px); }
.band-head p { color: var(--muted); max-width: 68ch; }
.band.navy .band-head p { color: #c9d0e6; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
       border-radius: 10px; font: inherit; font-weight: 650; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn.primary { background: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-2); }
.btn.accent { background: var(--accent); color: #1a1406; }
.btn.ghost { border-color: currentColor; background: transparent; }
.btn[aria-disabled="true"] { opacity: .55; cursor: default; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Grid items may shrink below their content (images, long menus), so nothing pushes a page wider than the screen */
.hero > *, .dive > *, .planner > *, .platforms > *, .devices > *, .tiles > *, .prices > *, .features > *, .loop > *, .faq > * { min-width: 0; }

/* Launch bar and header */
.launch { background: var(--accent); color: #1a1406; font-size: .9em; padding: 8px var(--gutter); display: flex; gap: 12px;
          align-items: center; justify-content: center; text-align: center; }
.launch button { background: none; border: 0; font-size: 1.2em; cursor: pointer; color: inherit; }
.launch[hidden] { display: none; }
.hdr { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--white) 92%, transparent); backdrop-filter: blur(10px);
       border-bottom: 1px solid transparent; transition: height .2s, box-shadow .2s; }
.hdr.scrolled { border-bottom-color: var(--line); box-shadow: 0 2px 18px rgba(0, 0, 0, .06); }
.hdr-in { display: flex; align-items: center; gap: clamp(12px, 2vw, 32px); height: 72px; padding: 0 var(--gutter); transition: height .2s; }
.hdr.scrolled .hdr-in { height: 56px; }
.logo { display: inline-flex; align-items: baseline; gap: 6px; font-weight: 700; text-decoration: none; font-size: 1.1em; white-space: nowrap; color: var(--ink); }
.logo .wordmark { height: 1.45em; width: auto; color: var(--navy); align-self: center; }
.logo span { font-family: Georgia, "Gelasio", serif; color: var(--muted); font-weight: 700; }
@media (prefers-color-scheme: dark) { .logo .wordmark { color: #fff; } }
.foot .logo, .foot .logo .wordmark, .adm-side .logo .wordmark { color: #fff; }
.foot .logo span, .adm-side .logo span { color: #cdd5ec; }
.exams { display: flex; gap: 4px; }
.exams a { text-decoration: none; padding: 6px 10px; border-radius: 8px; font-weight: 600; font-size: .92em; color: var(--muted); }
.exams a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--accent); border-radius: 0; }
.nav { display: flex; gap: clamp(8px, 1.5vw, 24px); margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 550; font-size: .95em; }
.nav a.on, .nav a:hover { color: var(--ink); }
.hdr-cta { display: flex; gap: 10px; align-items: center; }
.hdr-cta .signin { text-decoration: none; font-weight: 600; font-size: .95em; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; color: inherit; }
.sheet { position: fixed; inset: 0; z-index: 60; background: var(--white); padding: 20px var(--gutter); display: flex; flex-direction: column; gap: 6px;
         overflow-y: auto; }
.sheet[hidden] { display: none; }
.sheet a { padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 1.15em; font-weight: 600; }
.sheet .close { align-self: flex-end; background: none; border: 0; font-size: 2em; cursor: pointer; color: inherit; }
@media (max-width: 899px) {
  .nav, .hdr-cta .signin, .exams { display: none; }
  .menu-btn { display: block; margin-left: 0; }
  .hdr-cta { margin-left: auto; }
  .hdr-cta .btn { min-height: 40px; padding: 0 14px; font-size: .9em; }
}

/* Hero: text and live demo; 6/6 on tablets, 5/7 on laptops, 6/10 of 16 on wide screens */
.hero { display: grid; gap: clamp(28px, 4vw, 72px); align-items: center; padding: clamp(32px, 6vh, 96px) var(--gutter);
        min-height: min(calc(100svh - 72px), 860px); background: var(--ivory); }
.hero h1 { max-width: 16ch; }
.hero .lead { font-size: clamp(18px, 1rem + .6vw, 26px); color: var(--muted); max-width: 40ch; }
.hero .trust { margin-top: 20px; font-size: .9em; color: var(--muted); }
@media (min-width: 900px) { .hero { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1280px) { .hero { grid-template-columns: 5fr 7fr; } }
@media (min-width: 1920px) { .hero { grid-template-columns: 6fr 10fr; } }
@media (max-height: 820px) and (min-width: 900px) { .hero { min-height: 0; padding-block: 28px; } .hero h1 { font-size: clamp(34px, 1.6rem + 2.4vw, 64px); } }

.home-hero { background: var(--white); }
@media (max-width: 899px) { .home-hero .shot { display: none; } }
@media (max-width: 899px) { .home-hero .devices { display: none; } }

/* Live demo */
.demo { background: var(--white); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 60px rgba(20, 30, 70, .12);
        padding: clamp(18px, 2.4vw, 36px); container-type: inline-size; }
.demo-steps { display: flex; gap: 8px; margin-bottom: 16px; font-size: .8em; font-weight: 700; color: var(--muted); }
.demo-steps span { padding: 4px 10px; border-radius: 99px; background: var(--tint); }
.demo-steps span.on { background: var(--navy); color: #fff; }
.demo-word { font-size: clamp(34px, 9cqi, 64px); font-weight: 700; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.demo-word button { background: var(--tint); border: 0; border-radius: 99px; width: 44px; height: 44px; font-size: 20px; cursor: pointer; }
.demo-resp { color: var(--muted); margin-bottom: 16px; }
.demo-back { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 10px; }
.demo-back .pos { font-style: italic; color: var(--muted); }
.demo-back .ex { font-style: italic; }
.demo-back .syn { font-size: .9em; color: var(--muted); }
.demo .row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.demo .row .btn { flex: 1 1 160px; }
.demo-stem { font-size: clamp(17px, 3.4cqi, 22px); line-height: 1.6; }
.demo-stem .gap { display: inline-block; min-width: 7ch; border-bottom: 2px solid var(--navy); text-align: center; font-weight: 700; }
.demo-opts { display: grid; gap: 8px; margin-top: 14px; }
@container (min-width: 560px) { .demo-opts { grid-template-columns: 1fr 1fr; } }
.opt { text-align: left; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white);
       font: inherit; cursor: pointer; color: inherit; }
.opt.chosen { border-color: var(--navy); background: var(--tint); }
.opt.key { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, var(--white)); }
.opt.wrong { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 10%, var(--white)); }
.verdict { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: var(--tint); font-size: .95em; }
.verdict b.ok { color: var(--ok); } .verdict b.bad { color: var(--bad); }

/* Proof numbers */
.proof { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 3vw, 48px); }
@media (min-width: 600px) { .proof { grid-template-columns: repeat(4, 1fr); } }
.proof .n { font-size: clamp(34px, 1.6rem + 2.6vw, 84px); font-weight: 800; color: var(--navy); line-height: 1; }
@media (prefers-color-scheme: dark) { .proof .n { color: var(--accent); } }
.proof p { color: var(--muted); margin: 8px 0 0; font-size: .95em; }

/* Daily loop */
.loop { display: grid; gap: clamp(16px, 2.4vw, 40px); counter-reset: step; }
@media (min-width: 600px) { .loop { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 600px) { .loop.four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .loop.four { grid-template-columns: repeat(4, 1fr); } }
.loop li { list-style: none; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(16px, 2vw, 28px);
           counter-increment: step; display: grid; gap: 12px; align-content: start; }
.loop li::before { content: counter(step); width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #1a1406;
                   font-weight: 800; display: grid; place-items: center; }
.loop img { border-radius: 10px; border: 1px solid var(--line); aspect-ratio: 390 / 600; object-fit: cover; object-position: top; width: 100%; }
.loop-note { margin-top: 24px; font-weight: 650; }
ul.loop { padding: 0; margin: 0; }

/* Feature grid: 1, 2, 3, then 4 columns */
.features { display: grid; gap: clamp(14px, 2vw, 28px); }
@media (min-width: 600px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .features { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1920px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 2vw, 30px); background: var(--white); }
.feature .ic { width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 22%, var(--white)); display: grid;
               place-items: center; margin-bottom: 14px; font-size: 22px; }
.feature p { color: var(--muted); margin: 0; }

/* Deep dives: alternating text and example */
.dive { display: grid; gap: clamp(24px, 4vw, 72px); align-items: center; }
@media (min-width: 900px) { .dive { grid-template-columns: 1fr 1fr; } .dive.flip > :first-child { order: 2; } }
@media (min-width: 1280px) { .dive { grid-template-columns: 5fr 7fr; } .dive.flip { grid-template-columns: 7fr 5fr; } }
.dive ul { padding-left: 1.1em; }
.dive li { margin-bottom: .4em; }
.shot { border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 18px 48px rgba(20, 30, 70, .10); overflow: hidden; background: var(--white); }
.shot.phone { max-width: min(420px, 100%); justify-self: center; border-radius: 28px; }
.sample { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 2vw, 30px); background: var(--white); }
.sample .stem { font-size: 1.08em; line-height: 1.7; }
.sample .gap { display: inline-block; min-width: 8ch; border-bottom: 2px solid var(--navy); }
.sample .choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 6px; margin-top: 12px; font-size: .95em; }
.sample .choices span { border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
.dives { display: grid; gap: var(--space); }

/* Plan builder */
.planner { display: grid; gap: clamp(20px, 3vw, 56px); align-items: start; }
@media (min-width: 900px) { .planner { grid-template-columns: 2fr 3fr; } }
.planner form { display: grid; gap: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 2vw, 30px); }
.planner label { display: grid; gap: 6px; font-weight: 600; }
.planner input, .planner select { font: inherit; min-height: 46px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--line);
                                  background: var(--white); color: inherit; }
.planner .check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.planner .check input { min-height: 0; width: 20px; height: 20px; }
.plan-out { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 2vw, 30px); }
.plan-out .big { font-size: var(--fs-h3); font-weight: 750; margin-bottom: 8px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 16px 0; max-width: 420px; }
@media (min-width: 1536px) { .cal { grid-template-columns: repeat(14, 1fr); max-width: 760px; } }
.cal i { aspect-ratio: 1; border-radius: 6px; background: var(--tint); font-style: normal; font-size: .62em; display: grid; place-items: center; color: var(--muted); }
.cal i.study { background: var(--navy); color: #fff; }
.cal i.review { background: var(--accent); color: #1a1406; }
.cal i.test { background: var(--ok); color: #fff; font-weight: 800; }
.cal i.rest { background: var(--tint); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .85em; color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: var(--c); }

/* Platforms */
.platforms { display: grid; gap: clamp(20px, 3vw, 48px); align-items: center; }
@media (min-width: 900px) { .platforms { grid-template-columns: 2fr 3fr; } }
.devices { display: grid; grid-template-columns: 1fr 2.6fr; gap: 16px; align-items: end; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.store { border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 14px; font-weight: 650; display: grid; line-height: 1.25; text-decoration: none; }
.store small { font-weight: 500; color: var(--muted); }

/* Comparison */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { background: var(--tint); font-size: .92em; }
.compare th:first-child { position: sticky; left: 0; background: var(--white); z-index: 1; }
.compare thead th:first-child { background: var(--tint); }
.compare .us { background: color-mix(in srgb, var(--accent) 12%, var(--white)); font-weight: 650; }
.yes { color: var(--ok); font-weight: 800; } .no { color: var(--muted); }

/* Pricing: stacked, 2, 3, then 4 columns */
.prices { display: grid; gap: clamp(14px, 2vw, 28px); align-items: stretch; }
@media (min-width: 600px) { .prices { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .prices { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1920px) { .prices { grid-template-columns: repeat(4, 1fr); } }
.price { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 2.2vw, 34px); background: var(--white); display: flex; flex-direction: column; gap: 12px; }
.price.main { border: 2px solid var(--navy); box-shadow: 0 18px 48px rgba(20, 30, 70, .12); }
.price .amount { font-size: clamp(36px, 1.6rem + 2vw, 64px); font-weight: 800; line-height: 1; }
.price .amount small { font-size: .32em; font-weight: 600; color: var(--muted); }
.price ul { padding-left: 1.1em; margin: 0; color: var(--muted); }
.price li { margin-bottom: .3em; }
.price .btn { margin-top: auto; }
.price .rows { display: grid; gap: 6px; }
.price .rows div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.price-notes { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 22px; color: var(--muted); font-size: .92em; }
.tag { display: inline-block; font-size: .72em; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 6px;
       background: color-mix(in srgb, var(--accent) 25%, var(--white)); color: var(--accent-ink); }

/* FAQ: 1, 2, then 3 columns of questions */
.faq { display: grid; gap: 12px 28px; align-items: start; }
@media (min-width: 900px) { .faq { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1920px) { .faq { grid-template-columns: repeat(3, 1fr); } }
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; background: var(--white); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font-size: 1.3em; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); }

/* Exam tiles on the home page */
.tiles { display: grid; gap: clamp(14px, 2vw, 28px); }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { border-radius: 20px; padding: clamp(22px, 2.6vw, 40px); background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column;
        gap: 10px; text-decoration: none; border-top: 8px solid var(--c); min-height: 280px; }
.tile:hover { box-shadow: 0 18px 48px rgba(20, 30, 70, .12); }
.tile h3 { font-size: clamp(26px, 1.2rem + 1.4vw, 44px); }
.tile .btn { margin-top: auto; align-self: start; }
.status { font-size: .8em; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.status.live { color: var(--ok); } .status.soon { color: var(--muted); }

/* Audience switch (ACT and SAT) */
.aud { display: inline-flex; border: 1.5px solid var(--line); border-radius: 99px; padding: 4px; margin-bottom: 24px; background: var(--white); }
.aud button { border: 0; background: none; font: inherit; font-weight: 650; padding: 8px 18px; border-radius: 99px; cursor: pointer; color: var(--muted); }
.aud button[aria-pressed="true"] { background: var(--navy); color: #fff; }
[data-for][hidden] { display: none !important; }

/* Notify form (coming soon) */
.notify { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.notify input { flex: 1 1 240px; min-height: 48px; font: inherit; border-radius: 10px; border: 1.5px solid var(--line); padding: 0 14px; background: var(--white); color: inherit; }
.notify-note { font-size: .85em; color: var(--muted); margin-top: 10px; }

/* Text pages (legal, support) */
.doc { padding: var(--space) var(--gutter); display: grid; gap: clamp(24px, 4vw, 64px); }
@media (min-width: 1280px) { .doc { grid-template-columns: 1fr 3fr; } }
.doc nav { position: sticky; top: 90px; align-self: start; display: grid; gap: 8px; font-size: .95em; }
.doc nav a { color: var(--muted); text-decoration: none; }
.doc article { max-width: 76ch; }
.doc article h2 { font-size: var(--fs-h3); margin-top: 1.6em; }

/* Footer */
.foot { background: var(--navy); color: #d9deef; padding: clamp(40px, 6vw, 96px) var(--gutter) 24px; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot-cols { display: grid; gap: 28px; }
@media (min-width: 600px) { .foot-cols { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .foot-cols { grid-template-columns: 1.4fr repeat(5, 1fr); } }
.foot h2 { color: #fff; margin: 0 0 12px; font-size: .95em; letter-spacing: .04em; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .95em; }
.foot .brand p { margin-top: 12px; max-width: 34ch; }
.foot .marks { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 40px; padding-top: 20px; font-size: .8em; color: #b8c0da; display: grid; gap: 6px; }
@media (max-width: 599px) {
  .foot-cols details summary { font-weight: 700; color: #fff; padding: 10px 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .js .rise { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s; }
  .js .rise.in { opacity: 1; transform: none; }
}

/* Activate a code */
.activate { display: grid; gap: 14px; max-width: 520px; }
.activate label { display: grid; gap: 6px; font-weight: 600; margin-bottom: 12px; }
.activate input { font: inherit; min-height: 48px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--white); color: inherit; }
.act-err { color: var(--bad); min-height: 1.4em; margin: 0; }
.act-done { font-weight: 700; color: var(--ok); }
/* Sign in with Google or Apple: each company's own button style (white with the G; black, or white on dark) */
.social-row { display: grid; gap: 10px; max-width: 360px; margin: 4px 0; }
.social { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; border-radius: 8px;
  font: inherit; font-weight: 600; cursor: pointer; }
.social.google { background: #fff; color: #1f1f1f; border: 1px solid #747775; }
.social.apple { background: #000; color: #fff; border: 1px solid #000; }
.social:disabled { opacity: .6; cursor: default; }
.signed-as { font-weight: 600; margin: 0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .social.apple { background: #fff; color: #000; border-color: #fff; } }
:root[data-theme="dark"] .social.apple { background: #fff; color: #000; border-color: #fff; }

/* ---- /admin, the staff panel: a sidebar, a top bar and one view at a time */
.adm { background: var(--ivory); min-height: 100vh;
  --series-1: #2a78d6; --series-2: #eb6834; --series-3: #1baf7a; --goodc: #237a49; --warnc: #8a5200; --badc: #c0392b; }
@media (prefers-color-scheme: dark) { .adm { --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; --goodc: #6cc070; --warnc: #fab219; --badc: #f2867d; } }
.btn.small { min-height: 36px; padding: 0 12px; font-size: .9em; }
.btn.danger { background: var(--bad); color: #fff; }
.adm-gate { min-height: 100vh; display: grid; place-items: center; padding: var(--gutter); }
.adm-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; width: min(480px, 100%); display: grid; gap: 12px; }
.adm-card h1 { font-size: var(--fs-h3); margin: 8px 0 0; }
.adm-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.adm-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--navy); color: #fff; display: flex; flex-direction: column; gap: 18px; padding: 18px 12px; }
.adm-side .logo { color: #fff; padding: 0 8px; }
.adm-side .logo small { font-weight: 500; color: #cdd5ec; margin-left: 4px; }
.adm-side nav { display: grid; gap: 2px; }
.adm-side nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #dfe5f5; text-decoration: none; font-weight: 550; font-size: .95em; }
.adm-side nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.adm-side nav a[aria-current="page"] { background: rgba(255,255,255,.16); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.adm-side-foot { margin-top: auto; display: grid; gap: 8px; padding: 12px 8px 0; border-top: 1px solid rgba(255,255,255,.15); font-size: .85em; color: #cdd5ec; word-break: break-all; }
.adm-side-foot .btn { color: #fff; }
.adm-body { min-width: 0; display: flex; flex-direction: column; }
.adm-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px var(--gutter); background: var(--white); border-bottom: 1px solid var(--line); }
.adm-top h1 { font-size: 1.35em; margin: 0; flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.adm-top h1:focus { outline: none; }
.adm-menu { display: none; background: none; border: 0; color: inherit; padding: 6px; border-radius: 8px; cursor: pointer; }
.adm-quick { display: flex; gap: 8px; flex: 0 1 420px; min-width: 0; }
.adm-quick input { flex: 1 1 auto; min-width: 0; font: inherit; min-height: 38px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--white); color: inherit; }
.adm-view { padding: 20px var(--gutter) 48px; display: grid; gap: 18px; align-content: start; max-width: 1600px; width: 100%; }
.adm-range { display: flex; gap: 6px; flex-wrap: wrap; }
.adm-range a { padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; color: inherit; font-weight: 600; font-size: .9em; background: var(--white); }
.adm-range a.on { border-color: var(--navy-2); background: var(--tint); }
.adm-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.adm-kpi { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 4px; align-content: start; }
.adm-kpi .lbl { color: var(--muted); font-size: .85em; font-weight: 600; }
.adm-kpi b { font-size: 1.6em; line-height: 1.15; }
.adm-kpi .delta { font-size: .82em; color: var(--muted); }
.adm-kpi .delta.up { color: var(--goodc); }
.adm-kpi .delta.down { color: var(--badc); }
.adm-kpi small { font-size: .8em; }
.adm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 16px; }
.adm-chart, .adm-panel { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.adm-panel h2 { font-size: 1.05em; margin: 0; }
.adm-chart figcaption { display: grid; gap: 2px; }
.adm-chart figcaption .muted { font-size: .85em; }
.adm-plot { position: relative; }
.adm-svg { width: 100%; height: auto; display: block; overflow: visible; }
.adm-svg .grid { stroke: var(--line); stroke-width: 1; }
.adm-svg .axis { stroke: var(--muted); stroke-width: 1; }
.adm-svg .tick { fill: var(--muted); font-size: 11px; }
.adm-svg .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.adm-svg .dot { stroke: var(--white); stroke-width: 2; }
.adm-svg .cross { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.adm-tip { position: absolute; top: 4px; min-width: 150px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px;
  font-size: .82em; box-shadow: 0 6px 18px rgba(0,0,0,.15); pointer-events: none; display: grid; gap: 2px; }
.adm-tip i, .adm-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.adm-legend { list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; flex-wrap: wrap; font-size: .85em; color: var(--muted); }
.adm-tableview summary { cursor: pointer; font-size: .85em; color: var(--muted); }
.adm-hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.adm-hbars li { display: grid; grid-template-columns: minmax(110px, 38%) 1fr auto; gap: 10px; align-items: center; font-size: .9em; }
.adm-hbars .track { height: 12px; border-radius: 4px; background: var(--tint); overflow: hidden; }
.adm-hbars .fill { display: block; height: 100%; border-radius: 4px; background: var(--series-1); }
.adm-hbars .val { font-weight: 650; white-space: nowrap; text-align: right; }
.adm-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.adm-filters label, .adm-form > label, .adm-reason { display: grid; gap: 4px; font-weight: 600; font-size: .85em; }
.adm-filters input, .adm-filters select, .adm-form input, .adm-row input, .adm-reason input { font: inherit; font-weight: 400; min-height: 38px; padding: 0 10px; border-radius: 8px;
  border: 1.5px solid var(--line); background: var(--white); color: inherit; min-width: 0; }
.adm-reason input[aria-invalid="true"] { border-color: var(--badc); }
.adm-form { display: grid; gap: 10px; max-width: 640px; }
.adm-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.adm-check { display: flex !important; align-items: center; gap: 8px; font-weight: 600; }
.adm-check input { min-height: 0 !important; width: 18px; height: 18px; }
.adm-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.adm-table { margin: 0; }
.adm-table table.compare { min-width: 640px; }
.adm-table td, .adm-table th { padding: 8px 12px; font-size: .9em; overflow-wrap: anywhere; }
.adm-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.adm-table code { font-size: .85em; white-space: pre-wrap; }
.adm-badge { display: inline-block; font-size: .8em; font-weight: 650; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.adm-badge.good { color: var(--goodc); }
.adm-badge.warn { color: var(--warnc); }
.adm-badge.bad { color: var(--badc); }
.adm-notes p { margin: 0 0 4px; font-size: .9em; }
.adm-pager { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.adm-dl { display: grid; grid-template-columns: minmax(130px, max-content) 1fr; gap: 6px 16px; margin: 0; font-size: .92em; }
.adm-dl dt { color: var(--muted); }
.adm-dl dd { margin: 0; overflow-wrap: anywhere; }
.adm-flash { margin: 0; padding: 10px 14px; border-radius: 10px; font-weight: 600; background: var(--white); border: 1px solid var(--line); }
.adm-flash.good { color: var(--goodc); }
.adm-flash.bad { color: var(--badc); }
@media (max-width: 900px) {
  .adm-shell { grid-template-columns: minmax(0, 1fr); }
  .adm-side { position: fixed; inset: 0 auto 0 0; width: min(280px, 85vw); z-index: 20; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 40px rgba(0,0,0,.35); visibility: hidden; }
  .adm-side.open { transform: none; visibility: visible; }
  .adm-menu { display: inline-flex; }
  .adm-quick { flex: 1 1 100%; }
}
.paypal { margin-top: 10px; }
.paypal .or { margin: 0 0 6px; font-size: .9em; text-align: center; }

/* text for screen readers only */
/* pinned to the top left so a hidden label inside a sideways-scrolling table cannot widen the page */
.sr-only { position: absolute; left: 0; top: 0; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.table-wrap:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
h2.h3 { font-size: var(--fs-h3); }
.ext-pick { border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 0 0 12px; display: grid; gap: 8px; }
.ext-pick legend { font-weight: 600; padding: 0 4px; }
.ext-pick label { display: flex; align-items: center; gap: 10px; font-weight: 500; margin: 0; }
.ext-pick input { min-height: 0; width: 18px; height: 18px; }
.seat-total { font-weight: 650; margin: 0 0 12px; }
