/*
  Tokens ported verbatim from frontend/src/index.css — the landing page and
  auth screens are server-rendered (no Tailwind build here), but they must
  read as the same product. Only the subset used outside the app: surfaces,
  ink, brand, fonts, shadows, radii. Keep values in sync by hand; there is no
  build step wiring the two together.
*/
:root {
  --canvas: oklch(97.5% 0.004 150);
  --surface: oklch(100% 0 0);
  --surface-sunken: oklch(94.5% 0.005 150);
  --border: oklch(90% 0.006 150);
  --border-strong: oklch(80% 0.008 150);

  --ink: oklch(24% 0.012 150);
  --ink-muted: oklch(45% 0.01 150);
  --ink-subtle: oklch(56% 0.008 150);
  --ink-inverse: oklch(98% 0.004 150);

  --brand: oklch(52% 0.13 252);
  --brand-hover: oklch(42% 0.13 252);
  --brand-soft: oklch(94% 0.03 252);
  --brand-on: oklch(100% 0 0);

  --font-text: "Archivo", system-ui, sans-serif;
  --font-num: "Roboto Mono", ui-monospace, monospace;

  --shadow-2: 0 1px 2px oklch(20% 0.01 150 / 0.06), 0 4px 12px oklch(20% 0.01 150 / 0.07);
  --shadow-3: 0 2px 4px oklch(20% 0.01 150 / 0.06), 0 12px 32px oklch(20% 0.01 150 / 0.12);
  --focus-ring: 0 0 0 2px var(--surface), 0 0 0 4px var(--brand);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 999px;

  /* The landing's matchday story (static/landing/matchday.js). Grade bands
     match the app's; the watch is a physical object, so it doesn't change
     with the theme. */
  --grade-standard: oklch(58% 0.10 252);
  --grade-above: oklch(58% 0.10 175);
  --court: oklch(66% 0.075 238);
  --court-area: oklch(58% 0.09 245);
  --court-run: oklch(51% 0.07 250);
  --court-line: oklch(98% 0.005 240);
  --map-road: oklch(78% 0.015 250);
  --map-river: oklch(88% 0.035 230);
  --team-home: oklch(27% 0.03 255);
  --team-away: oklch(80% 0.13 75);
  --ball: oklch(97% 0.03 95);
  --ref: oklch(63% 0.2 352);
  --ref-ring: oklch(100% 0 0);
  --watch-strap: oklch(30% 0.01 250);
  --watch-case: oklch(24% 0.01 250);
  --watch-bezel: oklch(40% 0.01 250);
  --watch-face: oklch(11% 0.005 250);
  --g-green: oklch(87% 0.25 145);
  --g-blue: oklch(72% 0.15 235);
  --g-orange: oklch(72% 0.19 50);
  --g-white: oklch(100% 0 0);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: oklch(17% 0.008 150);
    --surface: oklch(21% 0.009 150);
    --surface-sunken: oklch(19% 0.008 150);
    --border: oklch(30% 0.010 150);
    --border-strong: oklch(42% 0.012 150);

    --ink: oklch(94% 0.005 150);
    --ink-muted: oklch(74% 0.008 150);
    --ink-subtle: oklch(62% 0.008 150);
    --ink-inverse: oklch(18% 0.008 150);

    --brand: oklch(70% 0.11 252);
    --brand-hover: oklch(78% 0.10 252);
    --brand-soft: oklch(30% 0.055 252);
    --brand-on: oklch(17% 0.008 150);

    --shadow-2: none;
    --shadow-3: 0 12px 32px oklch(0% 0 0 / 0.5);
    --focus-ring: 0 0 0 2px var(--canvas), 0 0 0 4px var(--brand);

    --grade-standard: oklch(72% 0.10 252);
    --grade-above: oklch(72% 0.10 175);
    --court: oklch(40% 0.065 240);
    --court-area: oklch(34% 0.075 245);
    --court-run: oklch(28% 0.045 250);
    --court-line: oklch(90% 0.01 240);
    --map-road: oklch(40% 0.015 250);
    --map-river: oklch(32% 0.045 230);
    --team-home: oklch(93% 0.01 250);
  }
}

[data-theme="dark"] {
  --canvas: oklch(17% 0.008 150);
  --surface: oklch(21% 0.009 150);
  --surface-sunken: oklch(19% 0.008 150);
  --border: oklch(30% 0.010 150);
  --border-strong: oklch(42% 0.012 150);
  --ink: oklch(94% 0.005 150);
  --ink-muted: oklch(74% 0.008 150);
  --ink-subtle: oklch(62% 0.008 150);
  --ink-inverse: oklch(18% 0.008 150);
  --brand: oklch(70% 0.11 252);
  --brand-hover: oklch(78% 0.10 252);
  --brand-soft: oklch(30% 0.055 252);
  --brand-on: oklch(17% 0.008 150);
  --shadow-2: none;
  --shadow-3: 0 12px 32px oklch(0% 0 0 / 0.5);
  --focus-ring: 0 0 0 2px var(--canvas), 0 0 0 4px var(--brand);

  --grade-standard: oklch(72% 0.10 252);
  --grade-above: oklch(72% 0.10 175);
  --court: oklch(40% 0.065 240);
  --court-area: oklch(34% 0.075 245);
  --court-run: oklch(28% 0.045 250);
  --court-line: oklch(90% 0.01 240);
  --map-road: oklch(40% 0.015 250);
  --map-river: oklch(32% 0.045 230);
  --team-home: oklch(93% 0.01 250);
}

* { box-sizing: border-box; }
/* Without this, browsers with a forced/heuristic dark mode (common on mobile
   Chrome) repaint colors on top of the real CSS instead of trusting our own
   @media (prefers-color-scheme: dark) block above — producing muddy, low-
   contrast buttons even though the underlying tokens have good contrast. */
html { color-scheme: light dark; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-text); font-weight: 700; line-height: 1.15; margin: 0 0 0.5em; }
p { margin: 0 0 1em; color: var(--ink-muted); }
a { color: var(--brand); }
.numeric { font-family: var(--font-num); font-variant-numeric: tabular-nums; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.no-banner {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 16px;
  padding: 10px 24px; background: var(--brand-soft); color: var(--ink); font-size: 0.85rem; text-align: center;
}
.no-banner[hidden] { display: none; }
.no-banner p { margin: 0; }
.no-banner a { color: var(--brand); }
.no-banner-close {
  padding: 4px 12px; border-radius: var(--radius-pill); border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--ink); font: inherit; cursor: pointer;
}
.no-banner-close:focus-visible { outline: none; box-shadow: var(--focus-ring); }

.site-header {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--border);
}
.brand-mark { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--ink); text-decoration: none; }
.brand-mark .mark { display: block; }
.nav-links { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.nav-links a:not(.btn) { color: var(--ink-muted); text-decoration: none; font-size: 0.95rem; }
.nav-links a:not(.btn):hover { color: var(--ink); }

.lang-switch { display: flex; align-items: center; gap: 2px; margin: 0; }
.lang-option {
  background: none; border: none; padding: 4px 6px; border-radius: var(--radius-sm, 4px);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-subtle);
  cursor: pointer;
}
.lang-option:hover { color: var(--ink-muted); }
.lang-option.active { color: var(--brand); }

/* Below this, the four nav items plus brand mark no longer fit on one row
   — drop the two in-page marketing links (still reachable by scrolling the
   landing page itself) and tighten spacing, keeping only the actions that
   matter from a phone: log in / sign up, or open the app / log out. */
@media (max-width: 640px) {
  .site-header { padding: 14px 16px; }
  .no-banner { padding: 10px 16px; }
  .nav-links { gap: 10px; }
  .nav-secondary { display: none; }
  .btn { padding: 10px 14px; font-size: 0.9rem; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--radius-md); font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
}
.btn-primary { background: var(--brand); color: var(--brand-on); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--surface-sunken); }
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }

section { padding: 72px 0; }
.prose { max-width: 720px; }
.prose h2 { font-size: 1.25rem; margin-top: 2em; }
.prose li { color: var(--ink-muted); margin-bottom: 0.4em; }
.prose .updated { color: var(--ink-subtle); font-size: 0.9rem; }
.watch-list .also { color: var(--ink-subtle); font-size: 0.9rem; }
.watch-list li { break-inside: avoid; }
@media (min-width: 640px) { .watch-list { columns: 2; column-gap: 40px; } }
section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.hero { padding: 96px 0 72px; text-align: center; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); max-width: 20ch; margin: 0 auto 0.5em; }
.hero .lede { font-size: 1.15rem; max-width: 56ch; margin: 0 auto 2em; }
.hero .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-2);
}
.card h3 { font-size: 1.1rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; color: var(--brand); font-weight: 700; margin-bottom: 0.75em; }

form.stacked { display: flex; flex-direction: column; gap: 16px; max-width: 480px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--ink-muted); }
.field input, .field select, .field textarea {
  font: inherit; padding: 10px 12px; border-radius: var(--radius-md);
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: var(--focus-ring); }
.field .errors { color: var(--brand-hover); font-size: 0.85rem; }
.helptext { color: var(--ink-subtle); font-size: 0.85rem; }
.auth-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-card { width: 100%; max-width: 420px; }

.messages { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 8px; }
.messages li { padding: 12px 16px; border-radius: var(--radius-md); background: var(--brand-soft); color: var(--ink); font-size: 0.9rem; }

.site-footer { padding: 40px 0; border-top: 1px solid var(--border); color: var(--ink-subtle); font-size: 0.85rem; text-align: center; }

/* Landing: real screenshots in a phone frame (templates/marketing/landing.html).
   Every screenshot is 390x754 CSS px of the app (600x1160 files), so one
   aspect ratio covers them all, the HTML lock screen included. */
.phone {
  margin: 0; width: 100%; max-width: 300px; aspect-ratio: 600 / 1160;
  border: 8px solid oklch(22% 0.01 150); border-radius: 36px; overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow-3);
}
.phone > img { display: block; width: 100%; height: auto; }

.hero-split { text-align: left; padding: 72px 0; }
.hero-split h1 { margin: 0 0 0.5em; max-width: 20ch; }
.hero-split .lede { margin: 0 0 2em; }
.hero-split .cta-row { justify-content: flex-start; }
.hero-grid, .feature-grid { display: grid; gap: 48px; align-items: center; }
.hero-media { position: relative; display: flex; justify-content: center; }
.push-float { position: absolute; top: 38%; left: 50%; width: min(330px, 100%); transform: translateX(-72%); }

.feature-copy h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); max-width: 18ch; }
.feature-copy p { font-size: 1.05rem; max-width: 44ch; }
.feature-copy .note { font-size: 0.9rem; color: var(--ink-subtle); margin-bottom: 0.5em; }
.feature-media { display: flex; justify-content: center; gap: 16px; }
.feature-media.pair .phone { max-width: 260px; }

/* A notification as the phone shows it, using the app's own push wording. */
.push-card {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; text-align: left;
  background: oklch(99% 0.003 150 / 0.94); color: oklch(24% 0.012 150);
  border-radius: 18px; box-shadow: 0 8px 24px oklch(20% 0.01 150 / 0.22);
  font-size: 0.85rem; line-height: 1.35;
}
.push-icon { flex: none; width: 28px; height: 28px; padding: 4px; border-radius: 7px; background: oklch(100% 0 0); border: 1px solid oklch(90% 0.006 150); }
.push-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 0.75rem; color: oklch(45% 0.01 150); }
.push-title { font-weight: 700; }
.push-body { color: oklch(30% 0.012 150); }
.lockscreen {
  display: flex; flex-direction: column; gap: 10px; padding: 28px 12px;
  background: linear-gradient(170deg, oklch(42% 0.11 252), oklch(26% 0.06 252));
}
.lock-clock { text-align: center; font-size: 3.25rem; font-weight: 600; color: oklch(98% 0.004 150); margin: 4px 0 16px; font-variant-numeric: tabular-nums; }
.lock-stack { display: flex; flex-direction: column; gap: 8px; }

.closing { text-align: center; padding: 56px 0; }
.closing h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.closing .note { color: var(--ink-subtle); font-size: 0.9rem; margin: 16px auto 0; max-width: 44ch; }

@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .feature-grid.reverse .feature-copy { order: 2; }
  .feature { padding: 96px 0; }
}
@media (max-width: 859px) {
  .hero-split { padding: 48px 0 56px; }
  .feature-media.pair .phone { max-width: 200px; }
  .push-float { transform: translateX(-50%); top: 44%; width: min(320px, calc(100% - 24px)); }
}
@media (max-width: 480px) {
  .phone { border-width: 6px; border-radius: 28px; }
  .feature-media { gap: 10px; }
  .feature-media.pair .phone { max-width: none; flex: 1 1 0; min-width: 0; }
  .lockscreen { padding: 20px 8px; }
  .lock-clock { font-size: 2.5rem; margin: 2px 0 12px; }
}

/* A section whose screenshots need the full width: copy above, phones below. */
.feature-copy.centered { text-align: center; margin: 0 auto 48px; }
.feature-copy.centered h2, .feature-copy.centered p { margin-left: auto; margin-right: auto; }
.feature-copy.centered p { max-width: 56ch; }
.feature-media.trio .phone { max-width: 280px; flex: 1 1 0; min-width: 0; }

/* A desktop screenshot in a plain browser window. */
.browser {
  margin: 32px 0 40px; border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--surface); box-shadow: var(--shadow-3);
}
.browser-bar { display: flex; gap: 6px; padding: 10px 12px; background: var(--surface-sunken); border-bottom: 1px solid var(--border); }
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.browser img { display: block; width: 100%; height: auto; }

@media (max-width: 640px) {
  /* Three phones side by side would be unreadable: swipe through them
     instead, inside the row, so the page itself never scrolls sideways. */
  .feature-media.trio {
    justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 -24px; padding: 0 24px 16px;
  }
  .feature-media.trio .phone { flex: 0 0 72%; max-width: none; scroll-snap-align: center; }
  .browser { margin: 24px 0 32px; }
}

/* The matchday story (templates/marketing/landing.html, static/landing/matchday.js):
   a stage that sticks while its tall container scrolls past, so the scroll
   position plays the game. Without JavaScript (.md-ready never set) the stage
   is hidden and the chapter list is the section. */
.matchday { padding: 72px 0 0; }
.md-head { display: grid; gap: 8px; margin-bottom: 32px; }
.md-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); max-width: 22ch; margin: 0; }
.md-head p { font-size: 1.05rem; max-width: 56ch; margin: 0; }
.md-stage { display: none; }
.md-chapters { display: grid; gap: 16px; padding-left: 48px; margin: 0 auto 48px; }
.md-chapters li { color: var(--ink-muted); max-width: 60ch; }
.md-chapters .l { display: none; }
.md-chapters b { display: block; color: var(--ink); }
.md-ready .md-story { position: relative; height: 1100svh; }
.md-ready .md-stage {
  position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; overflow: hidden;
  border-block: 1px solid var(--border); background: var(--canvas);
}
.md-ready .md-chapters { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: 0; padding: 0; }
.md-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-top: 18px; width: 100%; }
.md-cap { display: grid; gap: 6px; min-width: 0; }
.md-cap h3 { font-size: clamp(1.2rem, 2.4vw, 1.7rem); margin: 0; }
.md-cap p { font-size: 0.95rem; min-height: 3em; margin: 0; }
.md-hud {
  flex: none; font-family: var(--font-num); font-size: 0.78rem; color: var(--ink-muted); white-space: nowrap;
  padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface);
  font-variant-numeric: tabular-nums;
}
.md-viewport { position: relative; flex: 1; min-height: 0; }
#mdSvg { position: absolute; inset: 0; width: 100%; height: 100%; }
.md-slot {
  position: absolute; top: 50%; transform: translateY(-50%); pointer-events: none;
  right: max(24px, calc((100% - 1100px) / 2 + 24px)); width: 300px;
}
.md-slot.md-watch { width: 220px; }
.md-card {
  opacity: 0; will-change: transform, opacity; display: grid; gap: 12px; padding: 16px; font-size: 0.88rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-3);
}
.md-watch .md-card { padding: 10px; }
.md-card p { margin: 0; }
.md-card .eyebrow { margin: 0; }
.md-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.md-spread { justify-content: space-between; }
.md-push-right { margin-left: auto; }
.md-muted { color: var(--ink-subtle); }
.md-small { font-size: 0.8rem; color: var(--ink-muted); }
.md-kv { display: grid; gap: 6px; margin: 0; }
.md-kv div { display: grid; grid-template-columns: 72px 1fr; gap: 8px; }
.md-kv dt { color: var(--ink-subtle); }
.md-kv dd { margin: 0; }
.md-btn {
  text-align: center; padding: 8px 10px; border-radius: var(--radius-md); font-weight: 600;
  border: 1px solid var(--border-strong); transition: background-color 200ms, color 200ms, border-color 200ms;
}
.md-btn.md-primary { background: var(--brand); border-color: var(--brand); color: var(--brand-on); }
.md-btn.md-done { background: var(--brand-soft); border-color: var(--brand-soft); color: var(--brand); }
.md-leg { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; }
.md-leg div { display: grid; min-width: 0; }
.md-leg .md-muted { font-size: 0.8rem; }
.md-me, .md-mate { width: 14px; height: 14px; border-radius: 50%; justify-self: center; }
.md-me { background: var(--ref); }
.md-mate { border: 3px solid var(--ref); }
.md-divider { height: 1px; background: var(--border); }
.md-tick {
  width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--border-strong); flex: none;
  display: grid; place-items: center; color: var(--brand-on); font-size: 11px; line-height: 1;
}
.md-tick.on { background: var(--brand); border-color: var(--brand); }
.md-tiles { display: grid; gap: 10px; }
.md-tiles div { display: grid; gap: 1px; }
.md-tiles span { color: var(--ink-subtle); font-size: 0.78rem; }
.md-tiles b { font-family: var(--font-num); font-size: 1.15rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.md-crits { display: grid; gap: 8px; }
.md-crit { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.md-band { font-size: 0.72rem; font-weight: 600; padding: 2px 8px; border-radius: var(--radius-pill); border: 1px solid currentColor; white-space: nowrap; }
.md-band::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 5px; vertical-align: 1px; }
.md-above { color: var(--grade-above); }
.md-standard { color: var(--grade-standard); }
.md-big { font-family: var(--font-num); font-size: 2rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.md-rail { display: flex; gap: 6px; padding-top: 12px; padding-bottom: 16px; width: 100%; }
.md-rail button {
  flex: 1; min-width: 0; position: relative; border: 0; background: none; cursor: pointer; padding: 10px 0 0;
  text-align: left; color: var(--ink-subtle); font: 500 0.75rem/1.2 var(--font-text); white-space: nowrap;
}
.md-rail button:last-child { text-align: right; }
.md-rail button::before, .md-rail button i { content: ""; position: absolute; top: 0; left: 0; height: 3px; border-radius: 2px; }
.md-rail button::before { right: 0; background: var(--border); }
.md-rail button i { background: var(--brand); width: 0; }
.md-rail button[aria-current="true"] { color: var(--ink); }
.md-garmin { padding-top: 48px; padding-bottom: 72px; }
.md-garmin p { max-width: 60ch; }
@media (max-width: 760px) {
  #mdSvg { bottom: auto; height: 50%; }
  .md-slot { top: auto; bottom: 8px; left: 16px; right: 16px; width: auto; transform: none; }
  .md-slot.md-watch { left: auto; width: 140px; }
  .md-card { padding: 12px; gap: 9px; font-size: 0.82rem; }
  .md-hud { display: none; }
  .md-cap p { min-height: 4.5em; font-size: 0.88rem; }
  .md-rail button span { visibility: hidden; }
  .md-rail button[aria-current="true"] span { visibility: visible; }
}

/* Inside the store apps (base.html's in_app) Django's own pages are the phone's
   sign-in screen: the brand centred over the form, no box, filling the screen. */
body.in-app { display: flex; flex-direction: column; min-height: 100vh; }
.in-app main { flex: 1; display: flex; flex-direction: column; }
.in-app .site-header { justify-content: center; border-bottom: 0; padding: calc(env(safe-area-inset-top) + 48px) 24px 0; }
.in-app .brand-mark { flex-direction: column; gap: 12px; font-size: 1.7rem; }
.in-app .brand-mark .mark { width: 52px; height: 52px; }
.in-app .auth-shell { flex: 1; min-height: 0; align-items: flex-start; padding: 32px 24px 16px; }
.in-app .auth-card { background: none; border: 0; box-shadow: none; padding: 0; max-width: 440px; }
.in-app .field input { font-size: 16px; padding: 14px; }
.in-app .auth-card .btn { padding: 14px; font-size: 1rem; }
.in-app .site-footer { padding: 16px 0 calc(env(safe-area-inset-bottom) + 16px); border-top: 0; }
