/* ============================================================
   Lumi Studio — "This week"
   Paper day / twilight night. A calm parent surface adapted from
   the papercut-firefly world. Information first, no gamification.
   ============================================================ */

:root {
  /* Paper day */
  --bg: #F6F4EE;
  --bg-raise: #FFFFFF;
  --bg-sunk: #F1EEE4;
  --ink: #262B3D;
  --ink-soft: #5A5F72;
  --ink-faint: #9296A8;
  --line: #E2DFD5;
  --line-soft: #EEEBE1;
  --accent: #C8891A;        /* firefly amber, dimmed for paper */
  --accent-soft: #F3E3C2;
  --indigo: #2A3558;
  --teal: #2E7D6B;

  /* Accuracy bands — calm semantic (never alarm-red) */
  --band-high: #2E7D6B;     /* confident   */
  --band-mid:  #C8891A;     /* getting there */
  --band-low:  #A3543D;     /* needs a hand — warm clay, not failure */
  --band-empty: #E7E3D7;

  --shadow: 0 10px 30px rgba(20, 24, 40, 0.08);
  --shadow-soft: 0 2px 8px rgba(20, 24, 40, 0.05);
  --radius: 16px;
  --radius-sm: 11px;

  --serif: "Iowan Old Style", "Palatino Nova", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    /* Twilight night */
    --bg: #10141F;
    --bg-raise: #181E2E;
    --bg-sunk: #141A28;
    --ink: #E9E7DE;
    --ink-soft: #ABAFC0;
    --ink-faint: #6E7386;
    --line: #262D42;
    --line-soft: #202741;
    --accent: #FFC64D;      /* firefly glow */
    --accent-soft: #2E2A1C;
    --indigo: #9FB0E0;
    --teal: #79C7B4;

    --band-high: #79C7B4;
    --band-mid:  #FFC64D;
    --band-low:  #D89B86;
    --band-empty: #232B40;

    --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    --shadow-soft: 0 2px 10px rgba(0, 0, 0, 0.4);
  }
}

/* Explicit toggle wins both ways (kept for future theme switch) */
:root[data-theme="dark"] {
  --bg: #10141F; --bg-raise: #181E2E; --bg-sunk: #141A28;
  --ink: #E9E7DE; --ink-soft: #ABAFC0; --ink-faint: #6E7386;
  --line: #262D42; --line-soft: #202741;
  --accent: #FFC64D; --accent-soft: #2E2A1C; --indigo: #9FB0E0; --teal: #79C7B4;
  --band-high: #79C7B4; --band-mid: #FFC64D; --band-low: #D89B86; --band-empty: #232B40;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45); --shadow-soft: 0 2px 10px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  font-size: 16px;
  /* faint papercut horizon so the surface never reads as flat white/black */
  background-image:
    radial-gradient(120% 80% at 50% -20%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
}

.skip-link {
  position: absolute; left: 12px; top: -48px;
  background: var(--bg-raise); color: var(--ink);
  padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line);
  z-index: 20; transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

:where(a, button, select, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------------- Header ---------------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 18px clamp(16px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-raise) 70%, transparent);
  backdrop-filter: blur(6px);
  position: sticky; top: 0; z-index: 10;
}
.wordmark { display: flex; align-items: center; gap: 10px; }
.wordmark-text { font-family: var(--serif); font-size: 1.32rem; letter-spacing: 0.01em; }
.wordmark-text em { font-style: normal; color: var(--accent); }
.firefly {
  width: 11px; height: 11px; border-radius: 50%; flex: none;
  background: radial-gradient(circle, #FFF3C4 0%, var(--accent) 60%, transparent 74%);
  box-shadow: 0 0 12px 1px color-mix(in srgb, var(--accent) 70%, transparent);
  animation: pulse 4.5s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: .78; } 50% { opacity: 1; } }

.header-right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; min-width: 0; }
.child-select { display: flex; align-items: center; gap: 8px; }
.child-select-label {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--ink-faint); font-weight: 600;
}
.child-select select {
  font-family: inherit; font-size: 0.9rem; color: var(--ink);
  background: var(--bg-raise); border: 1px solid var(--line);
  border-radius: 9px; padding: 6px 30px 6px 11px; cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%239296A8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.signed-in {
  font-size: 0.82rem; color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  display: inline-flex; align-items: center; gap: 7px;
  min-width: 0; overflow-wrap: anywhere;
}
.signed-in::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal); flex: none;
}
.signed-in:empty { display: none; }

/* ---------------- Page ---------------- */
.page {
  max-width: 1060px; margin: 0 auto;
  padding: clamp(22px, 4vw, 40px) clamp(16px, 4vw, 40px) 64px;
}
.page-head { margin-bottom: 26px; }
.eyebrow {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--accent); font-weight: 700; margin: 0 0 6px;
}
.page-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.7rem, 4vw, 2.3rem); line-height: 1.12;
  margin: 0; letter-spacing: -0.01em;
}
.page-title-name { color: var(--ink-soft); font-weight: 400; }
.page-title-name::before { content: " · "; color: var(--ink-faint); }
.page-title-name:empty { display: none; }
.page-sub { color: var(--ink-soft); font-size: 0.92rem; margin: 8px 0 0; }

/* ---------------- Card grid ---------------- */
.week-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 20px);
}
.card {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(16px, 2.2vw, 22px);
  box-shadow: var(--shadow-soft);
  min-width: 0;
}
.card--wide { grid-column: 1 / -1; }
.card--loading { min-height: 160px; }
.card-skeleton {
  height: 100%; min-height: 120px; border-radius: 10px;
  background: linear-gradient(100deg, var(--bg-sunk) 30%, var(--line-soft) 50%, var(--bg-sunk) 70%);
  background-size: 200% 100%; animation: shimmer 1.4s ease-in-out infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.card-head { margin-bottom: 16px; }
.card-title {
  font-family: var(--serif); font-size: 1.06rem; font-weight: 600;
  margin: 0; color: var(--ink);
}
.card-hint { font-size: 0.78rem; color: var(--ink-faint); margin: 3px 0 0; }

/* ---------------- Card 1 · Practiced ---------------- */
.days {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: clamp(6px, 1.4vw, 12px);
}
.day {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center;
}
.day-name {
  font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-faint); font-weight: 600;
}
.day-dot {
  --fill: var(--band-empty);
  width: clamp(26px, 5vw, 40px); height: clamp(26px, 5vw, 40px);
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--fill);
  border: 1.5px solid color-mix(in srgb, var(--fill) 70%, var(--line));
  transition: transform .15s ease;
  position: relative;
}
.day--practiced .day-dot {
  --fill: color-mix(in srgb, var(--accent) calc(var(--intensity, 40) * 1%), var(--bg-sunk));
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent);
}
.day--empty .day-dot { border-style: dashed; }
.day--today .day-dot {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.day-dot .day-glyph {
  font-size: 0.72rem; font-weight: 700; color: var(--indigo);
  font-variant-numeric: tabular-nums;
}
.day--practiced .day-dot .day-glyph { color: #3a2f12; }
:root:not([data-theme="light"]) .day--practiced .day-dot .day-glyph { color: #1a1206; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .day--practiced .day-dot .day-glyph { color: #1a1206; }
}
.day--empty .day-dot .day-glyph { color: var(--ink-faint); }
.day-count { font-size: 0.66rem; color: var(--ink-soft); }
.day-count small { color: var(--ink-faint); }
.day--today .day-name { color: var(--accent); }

/* ---------------- Card 2 · Accuracy trend ---------------- */
.trend { }
.trend-chart { width: 100%; height: auto; display: block; }
.trend-legend {
  display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px;
  font-size: 0.76rem; color: var(--ink-soft);
}
.legend-item { display: inline-flex; align-items: center; gap: 7px; }
.legend-swatch {
  width: 11px; height: 11px; border-radius: 3px; flex: none;
  border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
}
.legend-swatch.high { background: var(--band-high); }
.legend-swatch.mid { background: var(--band-mid); }
.legend-swatch.low { background: var(--band-low); }
.trend-bar-seg { transition: opacity .12s ease; }

/* ---------------- Card 3 · Stories ---------------- */
.story-list { display: flex; flex-direction: column; }
.story {
  display: flex; align-items: baseline; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line-soft);
}
.story:first-child { padding-top: 2px; }
.story:last-child { border-bottom: none; padding-bottom: 2px; }
.story-main { flex: 1; min-width: 0; }
.story-title {
  font-size: 0.94rem; font-weight: 600; color: var(--ink);
  overflow-wrap: anywhere;
}
.story-title.is-fallback { font-style: italic; color: var(--ink-soft); font-weight: 500; }
.story-meta {
  font-size: 0.76rem; color: var(--ink-faint); margin-top: 3px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px;
}
.story-meta .sep { opacity: .5; }
.story-chips { display: flex; gap: 5px; margin-top: 7px; flex-wrap: wrap; }
.chip {
  font-size: 0.66rem; font-weight: 600; padding: 2px 9px; border-radius: 20px;
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid transparent; white-space: nowrap;
}
.chip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; }
.chip.finished { background: color-mix(in srgb, var(--teal) 15%, var(--bg-raise)); color: var(--teal); }
.chip.finished::before { background: var(--teal); }
.chip.reread { background: color-mix(in srgb, var(--accent) 16%, var(--bg-raise)); color: var(--accent); }
.chip.reread::before { background: var(--accent); }
.chip.abandoned { background: color-mix(in srgb, var(--band-low) 14%, var(--bg-raise)); color: var(--band-low); }
.chip.abandoned::before { background: var(--band-low); }
.story-when {
  font-size: 0.74rem; color: var(--ink-faint); white-space: nowrap;
  font-variant-numeric: tabular-nums; flex: none;
}

/* ---------------- Card 4 · Treasure words ---------------- */
.treasure { display: flex; flex-wrap: wrap; gap: 9px; }
.tword {
  display: inline-flex; align-items: baseline; gap: 7px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  color: color-mix(in srgb, var(--accent) 62%, var(--ink));
  border-radius: 22px; padding: 6px 13px;
  font-size: 0.9rem; font-weight: 600;
}
.tword .tword-meta {
  font-size: 0.7rem; font-weight: 500; color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
.tword .tword-acc { color: var(--band-low); font-weight: 600; }
.tword--gem::before {
  content: "◆"; font-size: 0.62rem; color: var(--accent); align-self: center;
  margin-right: 1px; opacity: .8;
}

/* ---------------- Card 5 · Devices ---------------- */
.device-list { display: flex; flex-direction: column; }
.device {
  display: flex; align-items: baseline; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line-soft);
}
.device:first-child { padding-top: 2px; }
.device:last-child { border-bottom: none; padding-bottom: 2px; }
.device-main { flex: 1; min-width: 0; }
.device-name {
  font-size: 0.94rem; font-weight: 600; color: var(--ink);
  overflow-wrap: anywhere;
}
.device-meta { font-size: 0.76rem; color: var(--ink-faint); margin-top: 3px; }
.device-when {
  font-size: 0.74rem; color: var(--ink-faint); white-space: nowrap;
  font-variant-numeric: tabular-nums; flex: none;
}
.device-when.is-never { font-style: italic; opacity: .75; }

/* The row becomes its own question; the rest of the list stays readable. */
.device--confirm {
  align-items: center; flex-wrap: wrap;
  background: var(--bg-sunk); border-radius: var(--radius-sm);
  padding: 12px 14px; margin: 4px 0; border-bottom: none;
}
.device--confirm .device-meta { color: var(--ink-soft); }
.device-confirm-actions { display: flex; gap: 8px; flex: none; }

.device-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.btn {
  font: inherit; font-size: 0.8rem; font-weight: 600; cursor: pointer;
  padding: 8px 16px; border-radius: 999px;
  background: var(--accent-soft);
  color: color-mix(in srgb, var(--accent) 62%, var(--ink));
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  transition: background .12s ease, color .12s ease;
}
.btn:hover { background: color-mix(in srgb, var(--accent) 20%, var(--bg-raise)); }
.btn[disabled] { opacity: .55; cursor: default; }
.btn--quiet {
  background: var(--bg-sunk); color: var(--ink-soft); border-color: var(--line);
}
.btn--quiet:hover { background: var(--bg-sunk); color: var(--ink); }
/* Destructive, but in the same warm clay the accuracy bands use — never alarm-red. */
.btn--danger {
  background: color-mix(in srgb, var(--band-low) 14%, var(--bg-raise));
  color: var(--band-low);
  border-color: color-mix(in srgb, var(--band-low) 45%, transparent);
}
.btn--danger:hover { background: color-mix(in srgb, var(--band-low) 22%, var(--bg-raise)); }
.btn--tiny { font-size: 0.72rem; padding: 5px 11px; }
.btn.is-done {
  background: color-mix(in srgb, var(--teal) 15%, var(--bg-raise));
  color: var(--teal);
  border-color: color-mix(in srgb, var(--teal) 40%, transparent);
}

.device-form { display: flex; flex-direction: column; gap: 12px; }
.device-form .device-actions { margin-top: 2px; }
.device-field { display: flex; flex-direction: column; gap: 6px; }
.device-field-label {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--ink-faint);
}
.device-input {
  font: inherit; font-size: 0.9rem; color: var(--ink); width: 100%;
  background: var(--bg-sunk); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 9px 12px;
}
.device-error { font-size: 0.78rem; color: var(--band-low); margin: 0; }

.device-code { display: flex; flex-direction: column; gap: 12px; }
/* The QR leads: it is the fast path. The SVG carries a viewBox only, so it
   scales to this box, and its white quiet zone stays white in dark mode —
   inverting it would break scanning. */
.device-qr {
  align-self: center; width: min(260px, 70%);
  background: #fff; border-radius: var(--radius-sm); padding: 10px;
  box-shadow: var(--shadow-soft);
}
.device-qr svg { display: block; width: 100%; height: auto; }
/* The code is shown exactly once — big, wrapping, and selectable in one gesture. */
.device-code-value {
  display: block; font-family: var(--mono); font-size: 1.15rem; line-height: 1.5;
  letter-spacing: 0.02em; color: var(--ink); overflow-wrap: anywhere;
  background: var(--bg-sunk); border: 1px dashed var(--line);
  border-radius: var(--radius-sm); padding: 14px 16px;
  -webkit-user-select: all; user-select: all;
}
.device-code-expiry { font-size: 0.78rem; color: var(--ink-soft); margin: 0; text-align: center; }
.device-code-note { font-size: 0.78rem; color: var(--ink-soft); margin: 0; }
.device-code .device-actions { margin-top: 0; }

/* ---------------- Add a child ---------------- */
.child-form { display: flex; flex-direction: column; gap: 12px; }
.child-field { display: flex; flex-direction: column; gap: 6px; }
.child-field-label {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--ink-faint);
}
.child-input {
  font: inherit; font-size: 0.9rem; color: var(--ink); width: 100%;
  background: var(--bg-sunk); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 9px 12px;
}
.child-error { font-size: 0.78rem; color: var(--band-low); margin: 0; }
.child-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }

/* ---------------- Plan panel ---------------- */
.plan { }
.plan-updated { font-size: 0.75rem; color: var(--ink-faint); margin: -8px 0 14px; }
.plan-week { display: flex; flex-direction: column; gap: 7px; }
.plan-row {
  display: flex; align-items: baseline; gap: 12px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  background: var(--bg-sunk);
}
.plan-day {
  flex: none; width: 42px; font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--indigo);
}
.plan-body { flex: 1; min-width: 0; }
.plan-focus { font-size: 0.86rem; color: var(--ink); }
.plan-where { font-size: 0.72rem; color: var(--ink-faint); margin-top: 2px; }
.plan-knobs {
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line);
  display: flex; flex-wrap: wrap; gap: 8px;
}
.knob {
  font-size: 0.72rem; color: var(--ink-soft);
  background: var(--bg-sunk); border: 1px solid var(--line-soft);
  border-radius: 8px; padding: 4px 10px;
}
.knob b { color: var(--ink); font-weight: 600; }
.knob code { font-family: var(--mono); font-size: 0.68rem; color: var(--indigo); }

/* ---------------- Empty states ---------------- */
.empty {
  text-align: center; padding: 22px 12px; color: var(--ink-faint);
  font-size: 0.9rem;
}
.empty-icon { font-size: 1.4rem; display: block; margin-bottom: 8px; opacity: .8; }
.empty strong { color: var(--ink-soft); font-weight: 600; }

/* ---------------- Sign in / create account (login.html) ---------------- */
.auth-page {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; padding: clamp(24px, 6vw, 56px) clamp(16px, 5vw, 40px);
}
.auth-card {
  width: 100%; max-width: 400px;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 32px);
}
.auth-wordmark { justify-content: flex-start; }
.auth-lede {
  font-size: 0.88rem; color: var(--ink-soft);
  margin: 10px 0 22px;
}
.auth-card .notice { margin-bottom: 18px; }
.notice-hint { display: block; margin-top: 4px; color: var(--ink-soft); }

.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form[hidden] { display: none; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-label {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--ink-faint);
}
.auth-optional {
  font-style: normal; font-weight: 600; letter-spacing: 0.04em;
  color: var(--ink-faint); opacity: .7;
}
.auth-optional::before { content: "· "; }
.auth-input {
  font: inherit; font-size: 0.95rem; color: var(--ink); width: 100%;
  background: var(--bg-sunk); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 10px 12px;
}
.auth-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.auth-input--code {
  font-family: var(--mono); letter-spacing: 0.06em; text-transform: uppercase;
}
.auth-input::placeholder { color: var(--ink-faint); opacity: .7; }
.auth-hint { font-size: 0.72rem; color: var(--ink-faint); }

/* The submit button carries the card, so it fills the column. */
.btn--wide {
  width: 100%; justify-content: center;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 16px; font-size: 0.88rem; margin-top: 4px;
}
/* Apple's own mark on Apple's own ink — the one place the palette steps aside. */
.btn--apple {
  background: var(--ink); color: var(--bg-raise);
  border-color: color-mix(in srgb, var(--ink) 80%, transparent);
}
.btn--apple:hover { background: color-mix(in srgb, var(--ink) 86%, var(--bg)); }
.apple-mark { width: 15px; height: 17px; flex: none; margin-top: -2px; }

.auth-apple[hidden] { display: none; }
.auth-or {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0 14px; color: var(--ink-faint); font-size: 0.74rem;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.auth-or::before, .auth-or::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}

.auth-switch {
  margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--line-soft);
  font-size: 0.82rem; color: var(--ink-soft);
}
.auth-switch [hidden] { display: none; }
.linklike {
  font: inherit; font-weight: 600; color: var(--accent);
  background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px;
}
.auth-foot { font-size: 0.76rem; color: var(--ink-faint); margin: 0; text-align: center; }

/* ---------------- Notice ---------------- */
.notice {
  background: color-mix(in srgb, var(--band-low) 10%, var(--bg-raise));
  border: 1px solid color-mix(in srgb, var(--band-low) 35%, transparent);
  color: var(--ink-soft);
  border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 20px;
  font-size: 0.86rem;
}
.notice[hidden] { display: none; }
.notice b { color: var(--ink); }

/* ---------------- Footer ---------------- */
.site-footer {
  max-width: 1060px; margin: 0 auto;
  padding: 28px clamp(16px, 4vw, 40px) 48px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem; color: var(--ink-faint);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.dot-sep { opacity: .6; }

/* ---------------- Responsive ---------------- */
@media (max-width: 720px) {
  .week-grid { grid-template-columns: 1fr; }
  .card--wide { grid-column: auto; }
  .site-header {
    position: static;
    flex-direction: column; align-items: flex-start; gap: 12px;
  }
  .header-right { width: 100%; justify-content: space-between; }
}
@media (max-width: 380px) {
  .days { gap: 4px; }
  .day-name { font-size: 0.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
