/* ─────────────────────────────────────────────────────────────────────────────
   Big Foot — design system
   Hand-drawn paper aesthetic · warm ink on aged paper · one teal-green accent
   ───────────────────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Patrick+Hand&family=Caveat:wght@500;600;700&family=Kalam:wght@300;400;700&display=swap');

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Tokens ─────────────────────────────────────────────────────────────────── */
:root {
  /* Paper */
  --paper:    #f1ead9;
  --card:     #fbf8ef;
  --card2:    #f4eee0;

  /* Ink */
  --ink:      #2a241c;
  --ink-soft: #6a5f51;
  --line:     #2f281f;

  /* Accent */
  --accent:      #2f8f86;
  --accent-soft: #cfe6e1;
  --accent-ink:  #1d6b63;

  /* Semantic */
  --warn:     #c46a2f;

  /* Typography */
  --hand:   'Patrick Hand', 'Comic Sans MS', cursive;
  --scrawl: 'Caveat', cursive;
  --note:   'Kalam', cursive;

  /* Wonky border-radius trick */
  --wonky:  255px 12px 225px 14px / 14px 225px 14px 255px;
  --wonky2: 14px 235px 16px 255px / 255px 16px 245px 14px;

  /* Legacy aliases — keep old token names pointing to new values */
  --sand:       var(--paper);
  --sand-2:     var(--card2);
  --cream:      var(--card);
  --cream-2:    var(--card2);
  --teal:       var(--accent);
  --teal-dark:  var(--accent-ink);
  --teal-light: #8ab6b3;
  --teal-wash:  var(--accent-soft);
  --teal-text:  var(--accent-ink);
  --amber:      var(--warn);
  --red:        #b84040;
  --ink-2:      var(--ink-soft);
  --ink-3:      #9a8e82;
  --ink-4:      #c8c0b6;
  --ink-5:      #ddd8d0;

  /* Font aliases */
  --font-hand:  var(--scrawl);
  --font-sans:  var(--hand);
  --font-mono:  ui-monospace, 'JetBrains Mono', 'Cascadia Code', monospace;

  /* Shape (kept for backward compat) */
  --radius:     13px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  /* Flat marker-style shadows */
  --shadow:     3px 3px 0px var(--ink);
  --shadow-sm:  2px 2px 0px var(--ink);
  --shadow-xs:  1px 1px 0px var(--ink);
}

/* ── Motion ────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── Focus — WCAG 2.4.11 visible focus indicator ───────────────────────────── */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Elements that define their own focus style suppress the global outline */
.field-input:focus-visible,
.btn:focus-visible {
  outline: none;
}

.btn:focus-visible {
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* ── Base ──────────────────────────────────────────────────────────────────── */
html { height: 100%; }

body {
  min-height: 100vh;
  font-family: var(--hand);
  /* base bumped from 16px so any unsized text reads bigger across the app */
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  /* subtle linen/paper texture */
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(80, 60, 40, 0)    0px,
      rgba(80, 60, 40, 0)   18px,
      rgba(80, 60, 40, 0.022) 19px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(80, 60, 40, 0)    0px,
      rgba(80, 60, 40, 0)   18px,
      rgba(80, 60, 40, 0.022) 19px
    );
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SKETCH PATTERNS
   ══════════════════════════════════════════════════════════════════════════ */

/* diagonal hatch — used on canvas/placeholder zones */
.hatch {
  background-image: repeating-linear-gradient(
    135deg,
    transparent,
    transparent 7px,
    rgba(47,143,134,0.14) 7px,
    rgba(47,143,134,0.14) 8.5px
  );
}

/* dashed border box — hand-drawn feel */
.dashed-box {
  border: 2px dashed var(--ink-3);
  border-radius: 14px 10px 13px 11px / 11px 13px 10px 14px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LAYOUT — centered phone-width column
   ══════════════════════════════════════════════════════════════════════════ */

.screen {
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}

.screen-center {
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TYPOGRAPHY
   ══════════════════════════════════════════════════════════════════════════ */

.t-hand      { font-family: var(--scrawl); }
.t-mono      { font-family: var(--font-mono); }
.t-muted     { color: var(--ink-3); }
.t-teal      { color: var(--accent-ink); }

/* Hero / daily focus — biggest, most emotional */
.t-hero {
  font-family: var(--scrawl);
  font-weight: 700;
  font-size: clamp(28px, 8vw, 38px);
  line-height: 1.0;
}

/* Section heading */
.t-heading {
  font-family: var(--scrawl);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.1;
}

/* Body — default */
.t-body {
  font-family: var(--hand);
  font-size: 16px;
  line-height: 1.4;
}

/* Declarative / supportive copy — never a command */
.t-declar {
  font-family: var(--note);
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.35;
}

/* All-caps overline / section kicker */
.t-kicker {
  font-family: 'Courier New', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-ink);
}

/* Kicker label — tiny mono all-caps (legacy class, kept for wizard) */
.kicker {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* Hand-style heading */
.hand-heading {
  font-family: var(--scrawl);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

.hand-heading-sm {
  font-family: var(--scrawl);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

/* ═══════════════════════════════════════════════════════════════════════════
   CARD  — wonky hand-drawn border, no shadow, no pseudo-element
   ══════════════════════════════════════════════════════════════════════════ */

.card {
  background: var(--card);
  border: none;
  border-radius: 20px 15px 18px 16px / 16px 18px 15px 20px;
  box-shadow: var(--shadow);
  padding: 16px;
  position: relative;
}
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 3px solid var(--ink);
  border-radius: inherit;
  filter: url(#roughen-edge);
  pointer-events: none;
}

.card.alt { border-radius: var(--wonky2); }
.card.dashed::after { border-style: dashed; }

.card-sm {
  background: var(--card);
  border: none;
  border-radius: 14px 10px 13px 11px / 11px 13px 10px 14px;
  box-shadow: var(--shadow-sm);
  padding: 12px 14px;
  position: relative;
}
.card-sm::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2.5px solid var(--ink);
  border-radius: inherit;
  filter: url(#roughen-edge);
  pointer-events: none;
}

.card-teal {
  background: var(--accent);
  border: none;
  border-radius: 20px 15px 18px 16px / 16px 18px 15px 20px;
  box-shadow: var(--shadow);
  color: #fff;
  padding: 16px;
  position: relative;
}
.card-teal::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 3px solid var(--ink);
  border-radius: inherit;
  filter: url(#roughen-edge);
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LOGO CIRCLE
   ══════════════════════════════════════════════════════════════════════════ */

.logo-circle {
  width: 72px;
  height: 72px;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--card);
  flex-shrink: 0;
}

.logo-circle-text {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.3;
  text-align: center;
  color: var(--ink);
}

.logo-circle-sm {
  width: 52px;
  height: 52px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--card);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════════════════ */

.btn {
  font-family: var(--hand);
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  width: 100%;
  padding: 12px 20px;
  min-height: 44px;
  border: 3px solid var(--ink);
  border-radius: 26px 22px 24px 22px / 22px 24px 22px 26px;
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform 0.08s, box-shadow 0.08s;
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  letter-spacing: 0.01em;
  filter: url(#roughen);
}

.btn:hover:not(:disabled) { background: var(--card2); }

.btn:active:not(:disabled) {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--ink) !important;
}

.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Primary — accent fill */
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--ink);
  box-shadow: var(--shadow);
}
.btn-primary:hover:not(:disabled) { background: var(--accent-ink); }

/* Ghost — transparent with accent border */
.btn-ghost {
  background: var(--card);
  border-color: var(--ink-3);
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}

/* Inline text link */
.btn-link {
  background: none;
  border: none;
  color: var(--accent-ink);
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--hand);
  padding: 4px 0;
  width: auto;
  cursor: pointer;
  display: inline;
}
.btn-link:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════════════════
   FORM FIELDS
   ══════════════════════════════════════════════════════════════════════════ */

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-family: var(--hand);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.field-input {
  font-family: var(--hand);
  font-size: 1rem;
  color: var(--ink);
  background: var(--card2);
  border: 2px solid var(--ink-4);
  border-radius: 13px 9px 11px 11px / 9px 11px 11px 13px;
  padding: 10px 12px;
  outline: none;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field-input::placeholder { color: var(--ink-4); }
.field-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FEEDBACK
   ══════════════════════════════════════════════════════════════════════════ */

.feedback-error {
  font-size: 0.85rem;
  color: var(--red);
  padding: 8px 10px;
  border-left: 3px solid var(--red);
  line-height: 1.5;
}

.feedback-warn {
  font-size: 0.85rem;
  color: var(--amber);
  padding: 8px 10px;
  border-left: 3px solid var(--amber);
  line-height: 1.5;
}

.loading-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  padding: 8px 0;
}

.spinner {
  width: 16px; height: 16px;
  border: 2.5px solid var(--ink-4);
  border-top-color: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  animation: spin 0.75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════════════════════
   SPACING HELPERS
   ══════════════════════════════════════════════════════════════════════════ */

.gap-xs  { gap: 8px; }
.gap-sm  { gap: 12px; }
.gap-md  { gap: 20px; }
.gap-lg  { gap: 32px; }

.mt-xs   { margin-top: 8px; }
.mt-sm   { margin-top: 14px; }
.mt-md   { margin-top: 24px; }
.mt-lg   { margin-top: 40px; }
.mt-xl   { margin-top: 56px; }

.stack   { display: flex; flex-direction: column; }

/* ═══════════════════════════════════════════════════════════════════════════
   PILL SELECT  (segmented control — e.g. AI preference)
   ══════════════════════════════════════════════════════════════════════════ */

.pill-select {
  display: flex;
  border: 2.5px solid var(--ink);
  border-radius: 26px 22px 24px 22px / 22px 24px 22px 26px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  touch-action: manipulation;
  filter: url(#roughen);
}

.pill-option {
  flex: 1;
  padding: 10px 8px;
  border: none;
  border-right: 2px solid var(--ink);
  background: var(--card);
  color: var(--ink-soft);
  font-family: var(--hand);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  text-align: center;
}

.pill-option:last-child { border-right: none; }

.pill-option.active {
  background: var(--accent);
  color: #fff;
}

.pill-option:active:not(.active) {
  background: var(--card2);
}

/* ═══════════════════════════════════════════════════════════════════════════
   LOGIN PAGE
   ══════════════════════════════════════════════════════════════════════════ */

.login-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.login-brand-name {
  font-family: var(--scrawl);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}

.login-tagline {
  font-family: var(--hand);
  font-size: 1.35rem;
  color: var(--ink-3);
  font-weight: 400;
}

.login-panel { display: flex; flex-direction: column; gap: 12px; }
.login-panel.hidden { display: none; }

.passkey-explainer {
  font-family: var(--hand);
  font-size: 1rem;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.55;
  max-width: 280px;
  margin: 0 auto 20px;
}

/* hand-drawn dashed divider line */
.login-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-3);
  font-family: var(--hand);
  font-size: 1rem;
  margin: 4px 0;
}
.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--ink-4) 0px,
    var(--ink-4) 5px,
    transparent 5px,
    transparent 9px
  );
}

.ai-pref-section { display: flex; flex-direction: column; gap: 8px; }

.ai-note {
  font-size: 0.9rem;
  color: var(--ink-3);
  font-family: var(--hand);
  text-align: center;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════════════════
   APP PLACEHOLDER PAGES
   ══════════════════════════════════════════════════════════════════════════ */

.placeholder-screen {
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTPRINT TRAIL  (progress indicators, used across app)
   ══════════════════════════════════════════════════════════════════════════ */

.footprint-trail {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footprint {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2.5px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.footprint.filled { background: var(--accent); }

/* ═══════════════════════════════════════════════════════════════════════════
   CHECKBOX ITEM  (task list)
   ══════════════════════════════════════════════════════════════════════════ */

.task-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.task-check {
  width: 22px;
  height: 22px;
  border: 2.5px solid var(--ink-soft);
  border-radius: 6px 4px 6px 5px / 5px 6px 4px 6px;
  flex-shrink: 0;
  margin-top: 1px;
  background: transparent;
  cursor: pointer;
}

.task-check.done {
  background: var(--accent);
  border-color: var(--accent);
}

.task-title       { font-size: 1rem; font-weight: 500; color: var(--ink); }
.task-title.done  { text-decoration: line-through; color: var(--ink-3); }
.task-sub         { font-size: 0.8rem; color: var(--ink-3); font-style: italic; }

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTPRINT SVG — the progress glyph
   ══════════════════════════════════════════════════════════════════════════ */

.fp { width: 22px; height: 28px; }
.fp ellipse, .fp circle {
  fill: none;
  stroke: var(--line);
  stroke-width: 1.5;
}
/* States */
.fp.done ellipse, .fp.done circle {
  fill: var(--accent);
  stroke: var(--accent);
}
.fp.dim ellipse, .fp.dim circle {
  stroke: color-mix(in srgb, var(--line) 30%, transparent);
}
.fp.rest ellipse {
  fill: none;
  stroke: var(--warn);
  stroke-dasharray: 3 3;
}
.fp.rest circle { stroke: var(--warn); }

/* Trail row */
.trail {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TASK ROW
   ══════════════════════════════════════════════════════════════════════════ */

.task-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 2.5px solid var(--ink);
  border-radius: var(--wonky);
  background: var(--card2);
  box-shadow: var(--shadow-sm);
}
.task-row.done .task-label {
  color: var(--ink-soft);
}
.task-label { font-size: 16px; line-height: 1.15; }
.task-meta  { font-family: var(--note); font-size: 11px; color: var(--ink-soft); }

.break-btn {
  margin-left: auto;
  font-family: var(--hand);
  font-size: 12px;
  padding: 5px 10px;
  border: 1.4px solid var(--accent);
  color: var(--accent-ink);
  border-radius: 14px;
  background: transparent;
  white-space: nowrap;
  cursor: pointer;
}

/* Subtask indent */
.subtask-list {
  margin: 2px 0 10px 22px;
  padding-left: 14px;
  border-left: 2px dotted color-mix(in srgb, var(--line) 40%, transparent);
}
.subtask-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 11px;
  margin: 6px 0;
  border: 1.4px solid color-mix(in srgb, var(--line) 65%, transparent);
  border-radius: 14px;
  background: var(--card);
  font-size: 14px;
}
.subtask-box {
  width: 16px; height: 16px;
  border: 1.5px solid var(--line);
  border-radius: 5px;
  flex: 0 0 auto;
}

/* ═══════════════════════════════════════════════════════════════════════════
   APP BAR — persistent focus + chat fab
   ══════════════════════════════════════════════════════════════════════════ */

.appbar {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.focus-chip .t-kicker { margin-bottom: 2px; }
.focus-chip .focus-text {
  font-family: var(--scrawl);
  font-weight: 700;
  font-size: clamp(22px, 6vw, 32px);
  line-height: .98;
}
.focus-chip .focus-text.empty {
  color: var(--ink-soft);
  font-size: clamp(18px, 5vw, 24px);
}
.chat-fab {
  width: 46px; height: 46px;
  flex: 0 0 auto;
  border-radius: 50% 48% 52% 50% / 50% 52% 48% 50%;
  border: 1.8px solid var(--line);
  background: var(--card2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
}
.chat-fab.active {
  background: var(--accent);
  border-color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════════════════════
   TRAIL BAR — streak readout
   ══════════════════════════════════════════════════════════════════════════ */

.trail-bar {
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--wonky);
  background: var(--card2);
}
.streak-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--note);
  font-size: 11.5px;
  color: var(--ink-soft);
  margin-top: 8px;
}
.firmness-dial {
  display: inline-flex;
  border: 1.4px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.firmness-dial span {
  font-family: var(--hand);
  font-size: 10.5px;
  padding: 3px 9px;
  color: var(--ink-soft);
}
.firmness-dial span.active {
  background: var(--accent);
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CHAT BUBBLES
   ══════════════════════════════════════════════════════════════════════════ */

.bubble {
  max-width: 82%;
  padding: 10px 13px;
  margin: 8px 0;
  font-size: 15px;
  line-height: 1.27;
  border: 2.5px solid var(--ink);
}
.bubble.from-foot {
  background: var(--card2);
  border-radius: 4px 18px 18px 18px;
}
.bubble.from-me {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  border-radius: 18px 18px 4px 18px;
  margin-left: auto;
}

/* ═══════════════════════════════════════════════════════════════════════════
   UTILITIES
   ══════════════════════════════════════════════════════════════════════════ */

.divider {
  border: none;
  border-top: 1.5px dashed color-mix(in srgb, var(--line) 40%, transparent);
  margin: 16px 0;
}
.section-label {
  font-family: var(--note);
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: .5px;
  margin: 18px 2px 4px;
}
.accent-block {
  padding: 12px 14px;
  border-left: 3px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border-radius: 0 10px 10px 0;
  font-family: var(--note);
  font-size: 13px;
  color: var(--ink-soft);
}

/* Striped placeholder — for images / scene art */
.ph {
  border: 1.5px dashed color-mix(in srgb, var(--line) 55%, transparent);
  border-radius: 12px;
  background: repeating-linear-gradient(
    45deg,
    transparent 0 7px,
    color-mix(in srgb, var(--line) 7%, transparent) 7px 8px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'Courier New', monospace;
  font-size: 10px;
  color: var(--ink-soft);
  padding: 8px;
}

/* Canvas scene (weather / time-of-day background) */
.scene {
  position: relative;
  border: 1.6px solid var(--line);
  border-radius: var(--wonky2);
  background:
    repeating-linear-gradient(135deg, transparent 0 9px,
      color-mix(in srgb, var(--line) 8%, transparent) 9px 10px),
    linear-gradient(180deg,
      color-mix(in srgb, var(--accent) 12%, var(--card)) 0%,
      var(--card) 100%);
  overflow: hidden;
}

/* marker-drawn filter utilities — pair with #drawn-* SVG filter defs in drawn_filters.php */
.drawn-subtle { filter: url(#drawn-subtle) }
.drawn-medium { filter: url(#drawn-medium) }
.drawn-bold   { filter: url(#drawn-bold) }

.hidden  { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

@media (max-width: 480px) {
  .screen-center { padding: 0 20px; }
}
