/*
 * HKUMySeat — the screens, built on the Modernist tokens in ds-modernist.css.
 *
 * The design is flush-left, square-cornered, 2px rules, greyscale photography,
 * and red used sparingly: only your assignment and an availability flag get a
 * full red field. Keep it that way.
 *
 * It is a light design. `color-scheme: light` below stops the browser tinting
 * form controls in dark mode, so the page looks the same either way.
 */

:root {
  color-scheme: light;

  /* HKU green replaces the design system's red, per the handoff. Same ramp
     roles: hover 600, pressed 700, accent-coloured body text 700. */
  --color-accent: #006F62;
  --color-accent-100: #e6f2f0;
  --color-accent-200: #c5e3dd;
  --color-accent-300: #9bcfc5;
  --color-accent-400: #5cab9e;
  --color-accent-500: #0b8b7a;
  --color-accent-600: #005b50;
  --color-accent-700: #00463d;
  --color-accent-800: #00332c;
  --color-accent-900: #00211c;
  --color-accent-2: #006F62;
}

/* Photographs are shown in full colour (the design system greys them). */
.grayscale { filter: none; }

body { margin: 0; background: var(--color-bg); color: var(--color-text); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@keyframes kenslide { 0%, 100% { transform: scale(1.06) } 50% { transform: scale(1.14) } }
@keyframes sl1 { 0%, 26% { opacity: 1 } 36%, 90% { opacity: 0 } 100% { opacity: 1 } }
@keyframes sl2 { 0%, 26% { opacity: 0 } 36%, 60% { opacity: 1 } 70%, 100% { opacity: 0 } }
@keyframes sl3 { 0%, 60% { opacity: 0 } 70%, 93% { opacity: 1 } 100% { opacity: 0 } }
@keyframes pulse { 0%, 100% { opacity: 1 } 50% { opacity: .35 } }

@media (prefers-reduced-motion: reduce) {
  .slide, .pulse { animation: none !important; }
  .slide { opacity: 1 }
  .slide + .slide { opacity: 0 }
}

/* ── sign in ──────────────────────────────────────────────────────────── */

.auth {
  min-height: 100vh; display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  background: var(--color-text); position: relative; overflow: hidden;
}
.auth-photos { position: absolute; inset: 0; z-index: 0 }
.slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  animation: sl1 24s ease-in-out infinite, kenslide 24s ease-in-out infinite;
}
.slide:nth-child(2) { animation-name: sl2, kenslide }
.slide:nth-child(3) { animation-name: sl3, kenslide }
.auth-veil {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,18,17,.86) 0%, rgba(20,18,17,.55) 45%, rgba(20,18,17,.2) 100%);
}
.auth-hero {
  position: relative; z-index: 1; display: flex; flex-direction: column;
  justify-content: space-between; padding: 40px 48px; color: #f3f2f2; min-width: 0;
}
.brandline { display: flex; align-items: center; gap: 12px }
.brandline .mark { width: 22px; height: 22px; background: var(--color-accent) }
.brandline .name { font-family: var(--font-heading); font-weight: 800; font-size: 18px; letter-spacing: -.01em }
.brandline .bar { width: 2px; height: 20px; background: rgba(243,242,242,.4) }
.brandline .uni { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; opacity: .8 }
.auth-copy { max-width: 620px }
.auth-copy .rule { height: 2px; background: var(--color-accent); width: 96px; margin-bottom: 24px }
.auth-copy h1 { font-size: clamp(40px, 5.2vw, 72px); line-height: 1.02; margin: 0 0 20px; color: #fff }
.auth-copy p { font-size: 17px; line-height: 1.5; max-width: 46ch; color: rgba(243,242,242,.82); margin: 0 }
.stats { display: flex; gap: 40px; margin-top: 40px; flex-wrap: wrap }
.stats .n { font-family: var(--font-heading); font-weight: 800; font-size: 32px; color: #fff; display: flex; align-items: center; gap: 8px }
.stats .k { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .72 }
.pulse { width: 10px; height: 10px; background: var(--color-accent); display: inline-block; animation: pulse 2s ease-in-out infinite }
.auth-foot { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .6 }

.auth-panel {
  position: relative; z-index: 1; background: var(--color-bg);
  border-left: 2px solid var(--color-text); padding: 40px 36px;
  display: flex; flex-direction: column; min-width: 0;
}
.tabs { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--color-text); margin-bottom: 28px }
.tabs a {
  font-family: var(--font-heading); font-weight: 800; font-size: 13px; letter-spacing: .06em;
  text-transform: uppercase; padding: 12px; text-align: center; text-decoration: none;
  color: var(--color-text); background: transparent;
}
.tabs a[aria-current='page'] { background: var(--color-text); color: var(--color-bg) }
.auth-panel h2 { font-size: 26px; margin: 0 0 6px }
.auth-panel .sub { font-size: 13px; margin: 0 0 24px }
.fields { display: flex; flex-direction: column; gap: 16px }
.field-label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; display: block; margin-bottom: 6px }
.auth-panel .input { background: var(--color-bg); border: 2px solid var(--color-text); min-height: 44px; border-radius: 0 }
.auth-panel .btn-primary {
  justify-content: flex-start; margin-top: 28px; padding: 14px 16px;
  font-size: 14px; letter-spacing: .04em; text-transform: uppercase; width: 100%;
}
.auth-links { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; gap: 12px; font-size: 12px }
.auth-spacer { flex: 1; min-height: 24px }
.fine { font-size: 11px; line-height: 1.5; margin: 0 }
.form-error {
  display: flex; align-items: center; gap: 12px; border: 2px solid var(--color-accent);
  background: var(--color-accent-100); padding: 12px 14px; margin: 0 0 18px;
  font-size: 13px; color: var(--color-accent-700); font-weight: 600;
}
.form-error::before {
  content: '!'; width: 22px; height: 22px; background: var(--color-accent); color: var(--color-bg);
  font-family: var(--font-heading); font-weight: 800; font-size: 14px;
  display: flex; align-items: center; justify-content: center; flex: none;
}

/* ── app chrome ───────────────────────────────────────────────────────── */

.app { min-height: 100vh; background: var(--color-bg); display: flex; flex-direction: column }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 32px; border-bottom: 2px solid var(--color-text); flex-wrap: wrap;
}
.topbar .left, .topbar .right { display: flex; align-items: center; gap: 12px }
.topbar .right { gap: 20px }
.topbar .mark { width: 18px; height: 18px; background: var(--color-accent) }
.topbar .name { font-family: var(--font-heading); font-weight: 800; font-size: 16px }
.topbar .bar { width: 2px; height: 18px; background: var(--color-divider) }
.crumb { font-size: 11px; letter-spacing: .1em; text-transform: uppercase }
.livetag { display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase }
.livetag .pulse { width: 8px; height: 8px }
.livetag[data-state='stale'] .pulse, .livetag[data-state='offline'] .pulse { background: var(--color-neutral-500); animation: none }
.who { font-size: 12px }
.topbar form { margin: 0 }

.screen { max-width: 1120px; width: 100%; margin: 0 auto; padding: 40px 32px 64px; box-sizing: border-box }
.screen-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 8px }
.screen-head h1 { font-size: 40px; margin: 0 }
.screen-head .note { font-size: 13px }
.section-label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; margin-bottom: 12px }

/* ── search ───────────────────────────────────────────────────────────── */

.venue-photo { margin: 0 0 24px }
.venue-photo img { width: 100%; height: 300px; object-fit: cover; border: 2px solid var(--color-text) }
.venue-photo figcaption { display: flex; justify-content: space-between; gap: 16px; font-size: 12px; margin-top: 6px; flex-wrap: wrap }

.venues { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 36px }
.venue {
  text-align: left; cursor: pointer; padding: 20px; border: 2px solid var(--color-text);
  background: var(--color-surface); color: var(--color-text);
  display: flex; flex-direction: column; gap: 6px; font-family: var(--font-body); font-size: 15px;
}
.venue:hover { background: var(--color-neutral-200); border-color: var(--color-accent) }
.venue .kicker { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--color-accent-700) }
.venue .vname { font-family: var(--font-heading); font-weight: 800; font-size: 19px; line-height: 1.15 }
.venue .meta { font-size: 12px }
.venue[aria-pressed='true'] { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-bg) }
.venue[aria-pressed='true'] .kicker { color: var(--color-bg); opacity: .85 }
.venue[aria-pressed='true'] .meta { opacity: .9; color: inherit }
.venue:disabled {
  border: 2px dashed var(--color-neutral-400); background: transparent;
  color: var(--color-neutral-600); cursor: not-allowed;
}
.venue:disabled .kicker { color: inherit }

.seatrow { display: flex; align-items: stretch; gap: 24px; flex-wrap: wrap; margin-bottom: 36px }
.stepper { display: flex; align-items: center; border: 2px solid var(--color-text); background: var(--color-surface) }
.stepper button {
  width: 56px; height: 72px; font-size: 24px; border: 0; background: transparent;
  cursor: pointer; font-family: var(--font-heading); color: var(--color-text);
}
.stepper button:first-child { border-right: 2px solid var(--color-text) }
.stepper button:last-child { border-left: 2px solid var(--color-text) }
.stepper .value { width: 96px; text-align: center; font-family: var(--font-heading); font-weight: 800; font-size: 34px }
.quick { display: flex; flex-direction: column; justify-content: center; gap: 8px }
.quick .chips { display: flex; gap: 8px; flex-wrap: wrap }
.quick .btn { min-width: 48px; justify-content: center }
.seathint { display: flex; flex-direction: column; justify-content: center; max-width: 280px; font-size: 12px; line-height: 1.5 }

.alert {
  display: flex; align-items: center; gap: 12px; border: 2px solid var(--color-accent);
  background: var(--color-accent-100); padding: 14px 16px; margin-bottom: 16px;
}
.alert .badge {
  width: 22px; height: 22px; background: var(--color-accent); color: var(--color-bg);
  font-family: var(--font-heading); font-weight: 800; font-size: 14px;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.alert .text { font-size: 13px; color: var(--color-accent-700); font-weight: 600 }
.actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap }
.btn-cta { padding: 14px 20px; font-size: 14px; letter-spacing: .04em; text-transform: uppercase }

/* ── spaces ───────────────────────────────────────────────────────────── */

.spaces { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px }
.space { border: 2px solid var(--color-text); background: var(--color-surface); display: flex; flex-direction: column }
.space-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 18px 20px; border-bottom: 2px solid var(--color-divider);
}
.space-head .floor { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--color-accent-700) }
.space-head .sname { font-family: var(--font-heading); font-weight: 800; font-size: 22px }
.space-head .count { text-align: right }
.space-head .count .n { font-family: var(--font-heading); font-weight: 800; font-size: 26px }
.space-head .count .k { font-size: 11px; letter-spacing: .08em; text-transform: uppercase }
.space-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; flex: 1 }
.space-body .detail { font-size: 13px; margin: 0 }
.space-body .spacer { flex: 1 }
.flag { padding: 14px 16px }
.flag .k { font-size: 11px; letter-spacing: .1em; text-transform: uppercase }
.flag .h { font-family: var(--font-heading); font-weight: 800; font-size: 18px; margin-top: 4px }
.flag-yes { background: var(--color-accent); color: var(--color-bg) }
.flag-yes .k { opacity: .9 }
.flag-no { border: 2px dashed var(--color-neutral-400); color: var(--color-neutral-700) }
.flag-no .h { color: var(--color-text) }
.space .btn-primary, .space .btn-secondary { justify-content: flex-start }
.results-note { font-size: 12px; margin-top: 24px }

/* ── live view ────────────────────────────────────────────────────────── */

.assign {
  background: var(--color-accent); color: var(--color-bg); padding: 20px 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  flex-wrap: wrap; margin-bottom: 24px;
}
.assign .k { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .9 }
.assign .h { font-family: var(--font-heading); font-weight: 800; font-size: 28px; margin-top: 4px }
.assign .side { font-size: 13px; max-width: 34ch }
.assign-no { border: 2px dashed var(--color-neutral-400); padding: 20px 24px; margin-bottom: 24px; background: transparent }
.assign-no .k { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--color-neutral-700) }
.assign-no .h { font-family: var(--font-heading); font-weight: 800; font-size: 24px; margin-top: 4px; color: var(--color-text) }
.assign-no .side { font-size: 13px; margin-top: 6px; max-width: none }

.panel { border: 2px solid var(--color-text); background: var(--color-surface); padding: 24px; margin-bottom: 24px }
/* The 3D card lays out by area, so the two buttons sit beside the title on a
   desktop and under the map on a phone, where a thumb can reach them. */
.panel-3d {
  display: grid; gap: 16px; align-items: center;
  grid-template-columns: 1fr auto;
  grid-template-areas: "title tools" "map map" "caption caption";
}
.panel-3d .panel-title { grid-area: title }
.panel-3d .panel-tools { grid-area: tools }
.panel-3d .viewport { grid-area: map }
.panel-3d .caption { grid-area: caption; margin-top: 0 }
.panel-head {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; margin-bottom: 16px;
}
.panel-title { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600 }
.panel-tools { display: flex; gap: 8px; flex-wrap: wrap }
.viewport { border: 2px solid var(--color-text); height: 460px; background: var(--color-neutral-200) }
.caption { font-size: 12px; margin-top: 12px }

.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 11px; letter-spacing: .06em; text-transform: uppercase }
.legend span { display: flex; align-items: center; gap: 6px }
.legend i { width: 12px; height: 12px; display: inline-block }
.legend .mine { background: var(--color-accent) }
.legend .free { background: var(--color-bg); border: 2px solid var(--color-text) }
.legend .full { background: var(--color-neutral-300); border: 2px dashed var(--color-neutral-500) }
.legend .dark { background: transparent; border: 2px dashed var(--color-neutral-400) }

.plan { display: grid; gap: 14px; grid-template-columns: repeat(var(--plan-columns, 5), minmax(0, 1fr)) }
.cell {
  border: 2px solid var(--color-text); background: var(--color-bg); padding: 14px;
  min-height: 96px; display: flex; flex-direction: column; justify-content: space-between;
}
.cell .t { font-family: var(--font-heading); font-weight: 800; font-size: 20px }
.cell .m { font-size: 11px; letter-spacing: .06em; text-transform: uppercase }
.cell-mine { border-color: var(--color-accent); background: var(--color-accent); color: var(--color-bg) }
.cell-full { border: 2px dashed var(--color-neutral-500); background: var(--color-neutral-300); color: var(--color-neutral-700) }
.cell-dark { border: 2px dashed var(--color-neutral-400); background: transparent; color: var(--color-neutral-600) }
.plan-foot {
  display: flex; justify-content: space-between; align-items: center; margin-top: 18px;
  padding-top: 14px; border-top: 2px solid var(--color-divider); flex-wrap: wrap; gap: 12px; font-size: 12px;
}

.route { border: 2px solid var(--color-text); border-top: 0; background: var(--color-bg); padding: 24px; margin-top: -24px; margin-bottom: 24px }
.route-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 18px }
.route-head h2 { font-size: 22px; margin: 0 }
.route-head .meta { font-size: 12px }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); border-top: 2px solid var(--color-divider) }
.step { display: flex; gap: 12px; padding: 16px 20px 16px 0; align-items: flex-start }
.step .n {
  font-family: var(--font-heading); font-weight: 800; font-size: 13px;
  background: var(--color-accent); color: var(--color-bg);
  min-width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; flex: none;
}
.step .t { font-size: 13px; line-height: 1.5; text-wrap: pretty }
.live-actions { display: flex; gap: 12px; flex-wrap: wrap }
.live-actions .btn { justify-content: flex-start }

.notice { display: flex; gap: 12px; align-items: flex-start; border: 2px dashed var(--color-neutral-400); padding: 14px 16px; margin-bottom: 24px; font-size: 13px }

/* ── the mobile build ─────────────────────────────────────────────────────
   Phones and iPads. Fluid, no inner breakpoints: one column that grows into
   two on a tablet, sticky header and action bar, nothing tappable under 44px,
   16px inputs so iOS does not zoom on focus. The client switches its copy on
   the same query. */

@media (max-width: 900px), (pointer: coarse) {
  body { -webkit-text-size-adjust: 100% }

  /* sign in */
  .auth { grid-template-columns: 1fr; min-height: 100vh; background: var(--color-bg); display: flex; flex-direction: column }
  .auth-photos { position: relative; height: clamp(260px, 42vh, 440px); flex: none; background: var(--color-text) }
  .auth-veil { background: linear-gradient(180deg, rgba(20,18,17,.72) 0%, rgba(20,18,17,.35) 40%, rgba(20,18,17,.88) 100%) }
  /* The hero sits over the photo strip only -- .auth is the positioned
     ancestor, so inset:0 would lay it over the sign-in panel as well. */
  .auth-hero {
    position: absolute; top: 0; left: 0; right: 0;
    height: clamp(260px, 42vh, 440px);
    z-index: 2; padding: 20px 20px 22px; justify-content: space-between;
  }
  .brandline .mark { width: 18px; height: 18px }
  .brandline .name { font-size: 16px }
  .brandline .uni { font-size: 10px }
  .auth-copy .rule { width: 64px; margin-bottom: 14px }
  .auth-copy h1 { font-size: clamp(28px, 7vw, 46px); line-height: 1.04; margin-bottom: 10px }
  .auth-copy p { font-size: 14px; max-width: 42ch }
  .stats, .auth-foot { display: none }   /* the hero is short; the panel is what matters here */
  .auth-panel {
    border-left: 0; padding: 22px 20px 40px; width: 100%; max-width: 560px;
    margin: 0 auto; flex: 1;
  }
  .tabs { margin-bottom: 22px }
  .tabs a { min-height: 48px; display: flex; align-items: center; justify-content: center }
  .auth-panel h2 { font-size: 24px }
  .auth-panel .input, .input { font-size: 16px; min-height: 48px }
  .auth-panel .btn-primary { min-height: 54px; font-size: 15px; padding: 0 18px; margin-top: 22px }
  .auth-links { min-height: 44px; font-size: 13px }
  .auth-spacer { display: none }

  /* app chrome */
  .topbar {
    position: sticky; top: 0; z-index: 20; background: var(--color-bg);
    min-height: 56px; padding: 10px 16px; gap: 10px; flex-wrap: nowrap;
  }
  .topbar .left { gap: 8px; min-width: 0 }
  .topbar .right { gap: 10px; flex: none }
  .topbar .mark { width: 16px; height: 16px; flex: none }
  .topbar .name { font-size: 15px }
  .crumb { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
  .livetag { font-size: 10px }
  .livetag .pulse { width: 7px; height: 7px }
  .who { display: none }
  .topbar .btn-secondary { min-height: 44px; white-space: nowrap; padding: 0 12px }

  .screen { max-width: 760px; padding: 20px 16px 24px }
  .screen-head { gap: 4px; flex-direction: column; align-items: flex-start; margin-bottom: 4px }
  .screen-head h1 { font-size: clamp(26px, 6vw, 36px) }

  /* search */
  .venue-photo img { height: clamp(160px, 30vw, 280px) }
  .venues { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-bottom: 28px }
  .venue { padding: 16px; min-height: 84px; gap: 4px }
  .venue .kicker { font-size: 10px }
  .venue .vname { font-size: 17px }
  .seatrow { flex-direction: column; gap: 12px; margin-bottom: 4px }
  .stepper { width: 100% }
  .stepper button { width: 72px; height: 72px; font-size: 26px }
  .stepper .value { flex: 1; width: auto; font-size: 32px }
  .quick { gap: 12px }
  .quick .chips { gap: 8px }
  .quick .chips .btn { flex: 1; min-width: 56px; min-height: 48px }
  .quick > .text-muted { display: none }
  .seathint { max-width: none }

  /* Sticky action bar, full-bleed across the content padding. */
  .actions, .live-actions {
    position: sticky; bottom: 0; z-index: 15;
    margin: 24px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--color-bg); border-top: 2px solid var(--color-text);
    flex-direction: column-reverse; align-items: stretch; gap: 8px;
  }
  .actions .btn, .live-actions .btn { min-height: 54px; font-size: 15px; padding: 0 18px }
  .actions .text-muted { font-size: 12px }
  .live-actions { flex-direction: row }
  .live-actions .btn-primary { flex: 2 }
  .live-actions .btn-secondary { flex: 1; justify-content: center }

  /* spaces */
  .spaces { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px }
  .space-head { padding: 14px 16px }
  .space-head .sname { font-size: 19px }
  .space-head .floor { font-size: 10px }
  .space-head .count .n { font-size: 22px }
  .space-body { padding: 16px; gap: 12px }
  .space-body .btn { min-height: 50px; padding: 0 16px }

  /* live view */
  .assign { padding: 16px; gap: 6px; flex-direction: column; align-items: flex-start; margin-bottom: 16px }
  .assign .h { font-size: clamp(22px, 6vw, 30px) }
  .assign .side { max-width: none; line-height: 1.5 }
  .assign-no { padding: 16px; margin-bottom: 16px }
  .assign-no .h { font-size: 21px }
  .panel { padding: 14px; margin-bottom: 16px }
  .panel-3d { grid-template-columns: 1fr; grid-template-areas: "title" "map" "tools" "caption"; gap: 10px }
  .panel-3d .panel-tools { display: flex; gap: 8px }
  .panel-3d .panel-tools .btn { flex: 1; min-height: 48px; justify-content: center }
  .panel-title { font-size: 10px }
  .viewport { height: clamp(280px, 48vw, 460px) }
  .legend { gap: 12px; font-size: 10px }
  .legend i { width: 11px; height: 11px }
  .plan { grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 10px }
  .cell { padding: 10px; min-height: 76px }
  .cell .t { font-size: 18px }
  .cell .m { font-size: 10px }
  .plan-foot { margin-top: 14px; padding-top: 12px }
  .route { padding: 14px; margin-bottom: 16px }
  .route-head { margin-bottom: 12px }
  .route-head h2 { font-size: 19px }
  .steps { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) }
  .step { padding: 12px 12px 12px 0; gap: 10px }
  .step .n { min-width: 22px; height: 22px; font-size: 12px }
}

/* The server renders one page for both modes and marks which is showing. */
body[data-mode='signin'] .pane-signup, body[data-mode='signup'] .pane-signin { display: none }
body[data-mode='signin'] .tab-signin, body[data-mode='signup'] .tab-signup { background: var(--color-text); color: var(--color-bg) }
