/* ======================================================================
   VerseTrack — stylesheet.

   Layout skeleton, tokens, and breakpoint match the suite apps so a theme
   or accent change in the shared settings page lands identically here.
   --accent and --accent-soft arrive at request time from accent_style().

   The app's own voice lives in three places only: scripture is set in EB
   Garamond on a warm "paper" surface, memory states use the linocut
   palette of the illustrations (teal for learning, gold for memorized),
   and illustrations are framed as mounted prints in both color modes.
   ====================================================================== */

@font-face {
    font-family: 'Schibsted Grotesk';
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url('/auth/fonts/schibsted-grotesk-var.woff2') format('woff2');
}
@font-face {
    font-family: 'Spline Sans Mono';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/auth/fonts/spline-sans-mono-var.woff2') format('woff2');
}
@font-face {
    font-family: 'EB Garamond';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../fonts/eb-garamond-var.woff2') format('woff2');
}
@font-face {
    font-family: 'EB Garamond';
    font-style: italic;
    font-weight: 400 800;
    font-display: swap;
    src: url('../fonts/eb-garamond-italic-var.woff2') format('woff2');
}

/* ── Tokens ─────────────────────────────────────────────────────────── */

:root {
    --accent: #4f46e5;
    --accent-soft: #4f46e51a;
    --accent-light: var(--accent-soft);

    --bg:        #f4f4f5;
    --surface:   #ffffff;
    --border:    #e2e3e7;
    --hairline:  #ececee;
    --text:      #16181d;
    --text-muted:#5b6470;

    --danger:       #dc2626;
    --danger-soft:  #fdecec;
    --warning:      #b45309;
    --warning-soft: #fdf3e0;
    --success:      #047857;
    --success-soft: #e4f5ee;
    --info-text:    #1d4ed8;
    --info-soft:    #e7effd;

    /* Linocut palette shared with the illustrations */
    --ink:        #1f2a44;
    --paper:      #fbf7ee;
    --paper-edge: #ebe2cf;
    --paper-text: #231f1a;
    --gold:       #b8862f;
    --gold-soft:  #f5ead3;
    --teal:       #3d7a73;
    --teal-soft:  #e1efec;
    --blank:      #e4dccb;

    --font-ui:        'Schibsted Grotesk', -apple-system, 'Segoe UI', sans-serif;
    --font-mono:      'Spline Sans Mono', ui-monospace, 'Cascadia Mono', monospace;
    --font-scripture: 'EB Garamond', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;

    --radius:    8px;
    --radius-sm: 6px;
    --radius-lg: 12px;
    --shadow:    0 1px 2px rgba(16, 18, 23, .04);
    --shadow-md: 0 6px 16px -6px rgba(16, 18, 23, .14);

    --sidebar-w: 220px;
    --topbar-h:  56px;
    --bottom-h:  64px;
}

[data-theme="dark"] {
    --bg:        #0f1115;
    --surface:   #16191e;
    --border:    #272b33;
    --hairline:  #1e222a;
    --text:      #edeef0;
    --text-muted:#9aa3ad;

    --danger:       #f07171;
    --danger-soft:  #371a1c;
    --warning:      #e0a85c;
    --warning-soft: #36280f;
    --success:      #4cc596;
    --success-soft: #11302a;
    --info-text:    #7ea8f8;
    --info-soft:    #182742;

    --paper:      #1b1c21;
    --paper-edge: #2c2d34;
    --paper-text: #ece6da;
    --gold:       #e0b25a;
    --gold-soft:  #3a2f1a;
    --teal:       #6fb3aa;
    --teal-soft:  #16302d;
    --blank:      #34353d;

    --shadow:    0 1px 2px rgba(0, 0, 0, .3);
    --shadow-md: 0 6px 16px -6px rgba(0, 0, 0, .5);
}

/* ── Reset + base ───────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
    font-family: var(--font-ui);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
code { font-family: var(--font-mono); font-size: .85em; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

.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;
}
.skip-link {
    position: absolute; left: .5rem; top: -3rem; z-index: 300;
    background: var(--accent); color: #fff; padding: .5rem .9rem; border-radius: var(--radius-sm);
    font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: .5rem; }

/* ── Layout skeleton ────────────────────────────────────────────────── */

.app-layout {
    display: grid;
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    min-height: 100vh;
}

.sidebar {
    grid-row: 1 / -1; grid-column: 1;
    background: var(--surface); border-right: 1px solid var(--border);
    display: flex; flex-direction: column;
    padding: 1.5rem 1rem;
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar-logo { margin-bottom: 2rem; }
.sidebar-logo a {
    display: inline-flex; align-items: center; gap: .45rem;
    font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em;
    color: var(--text); text-decoration: none;
}
.logo-mark { width: 22px; height: 22px; color: var(--text); flex-shrink: 0; }
.sidebar-tag {
    display: block; font-family: var(--font-mono); font-size: .62rem; font-weight: 500;
    letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted);
    margin: .3rem 0 0 calc(22px + .45rem);
}

.nav-links { list-style: none; flex: 1; }
.nav-links li { margin-bottom: .2rem; }
.nav-links a, .sidebar-footer > a {
    display: flex; align-items: center; justify-content: space-between; gap: .5rem;
    padding: .55rem .75rem; border-radius: var(--radius-sm);
    color: var(--text-muted); font-size: .9rem; font-weight: 500; text-decoration: none;
    transition: background .15s, color .15s;
}
.nav-links a:hover, .sidebar-footer > a:hover { background: var(--bg); color: var(--text); }
.nav-links a.active, .sidebar-footer > a.active {
    background: var(--accent-light); color: var(--accent); font-weight: 600;
    box-shadow: inset 2px 0 0 var(--accent);
}
.nav-badge {
    font-family: var(--font-mono); font-size: .66rem; font-weight: 700;
    background: var(--gold); color: #fff; border-radius: 999px; padding: .05rem .45rem;
    font-variant-numeric: tabular-nums;
}
[data-theme="dark"] .nav-badge { color: #1b1c21; }

.sidebar-footer { border-top: 1px solid var(--hairline); padding-top: 1rem; margin-top: auto; }

.topbar {
    display: none; grid-column: 1 / -1; align-items: center; gap: .5rem;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 0 1rem; height: var(--topbar-h); position: sticky; top: 0; z-index: 100;
}
.topbar-title { font-weight: 700; letter-spacing: -.01em; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-btn {
    background: none; border: none; font-size: 1.3rem; cursor: pointer;
    color: var(--text); padding: .5rem; min-width: 44px; min-height: 44px;
}

.main-content { grid-column: 2; padding: 2rem; max-width: 920px; width: 100%; min-width: 0; }

.page-topline {
    display: flex; align-items: center; gap: .75rem;
    font-family: var(--font-mono); font-size: .66rem; font-weight: 600;
    letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted);
    margin-bottom: 1.25rem; font-variant-numeric: tabular-nums;
}
.topline-rule { flex: 1; height: 1px; background: var(--border); }

.bottom-tabs {
    display: none; position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--surface); border-top: 1px solid var(--border);
    height: var(--bottom-h); z-index: 100;
}
.bottom-tabs a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; font-size: .68rem; font-weight: 500; color: var(--text-muted);
    text-decoration: none; min-height: 44px; transition: color .15s; position: relative;
}
.bottom-tabs a.active { color: var(--accent); }
.bottom-tabs .tab-icon { font-size: 1.15rem; line-height: 1.2; }
.bottom-tabs .tab-add {
    background: var(--accent); color: #fff; border-radius: 50%;
    width: 52px; height: 52px; min-height: unset; margin-top: -18px;
    box-shadow: 0 2px 10px rgba(16, 18, 23, .25); flex: 0 0 auto;
}
.bottom-tabs .tab-add .tab-icon { font-size: 1.25rem; }
.tab-badge {
    position: absolute; top: -2px; right: -4px;
    background: var(--gold); color: #fff; border: 2px solid var(--surface);
    font-family: var(--font-mono); font-size: .62rem; font-weight: 700;
    min-width: 20px; height: 20px; border-radius: 999px;
    display: flex; align-items: center; justify-content: center; padding: 0 4px;
}

.overlay { display: none; position: fixed; inset: 0; background: rgba(10, 12, 16, .45); z-index: 150; }
.overlay.open { display: block; }

/* ── Flash + headings ───────────────────────────────────────────────── */

.flash { padding: .75rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: .9rem; font-weight: 500; }
.flash-success { background: var(--success-soft); color: var(--success); }
.flash-error   { background: var(--danger-soft);  color: var(--danger); }
.flash-info    { background: var(--info-soft);    color: var(--info-text); }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.page-head h1 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.025em; line-height: 1.2; }
.page-head .sub { color: var(--text-muted); font-size: .92rem; margin-top: .2rem; }
.page-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.link-muted { font-size: .82rem; color: var(--text-muted); text-decoration: none; }
.link-muted:hover { color: var(--accent); }
.back-link { display: inline-block; font-size: .82rem; color: var(--text-muted); text-decoration: none; margin-bottom: .75rem; }
.back-link:hover { color: var(--accent); }

.section-head { display: flex; align-items: center; gap: .6rem; margin: 2rem 0 .8rem; }
.section-head:first-child { margin-top: .25rem; }
.section-head h2 {
    display: flex; align-items: center; gap: .6rem; flex: 1;
    font-family: var(--font-mono); font-size: .7rem; font-weight: 600;
    letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted);
}
.section-head h2::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.section-head a { font-size: .8rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.section-head a:hover { text-decoration: underline; }
.count-badge {
    font-family: var(--font-mono); font-size: .68rem; font-weight: 700;
    background: var(--accent-light); color: var(--accent);
    padding: .1rem .5rem; border-radius: 999px; font-variant-numeric: tabular-nums;
}

/* ── Buttons ────────────────────────────────────────────────────────── */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    padding: .6rem 1.2rem; border-radius: var(--radius-sm); border: 1px solid transparent;
    font-family: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
    text-decoration: none; min-height: 44px; transition: filter .15s, border-color .15s, background .15s;
    background: none; color: inherit; white-space: nowrap;
}
.btn:hover  { filter: brightness(.95); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-sm     { padding: .4rem .8rem; min-height: 36px; font-size: .82rem; }
.btn-lg     { padding: .8rem 1.6rem; font-size: 1rem; min-height: 52px; }
.btn-block  { width: 100%; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-ghost  { background: transparent; color: var(--text-muted); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--text-muted); color: var(--text); filter: none; }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--border); }
.btn-danger:hover { background: var(--danger-soft); border-color: var(--danger); filter: none; }
.btn-gold   { background: var(--gold); color: #fff; }
[data-theme="dark"] .btn-gold { color: #1b1c21; }
.btn-link { background: none; border: none; color: var(--accent); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; padding: 0; }
.btn-link:hover { text-decoration: underline; }
.inline-form { display: inline; }

/* ── Cards + forms ──────────────────────────────────────────────────── */

.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.1rem 1.25rem; box-shadow: var(--shadow); margin-bottom: 1rem;
}
.card-title { font-size: 1rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: .35rem; }
.hint { font-size: .8rem; color: var(--text-muted); }
.muted { color: var(--text-muted); }

input[type=text], input[type=email], input[type=search], input[type=date], input[type=number], select, textarea {
    width: 100%; background: var(--bg); color: var(--text);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: .55rem .7rem; font-family: inherit; font-size: 1rem; min-height: 44px;
}
textarea { min-height: 7rem; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.form-group { margin-bottom: 1rem; }
.form-group > label, .label { display: block; font-size: .85rem; font-weight: 600; color: var(--text-muted); margin-bottom: .35rem; }
.form-row { display: flex; gap: .5rem; align-items: flex-start; }
.form-row > * { flex: 1; }
.form-row > .btn { flex: 0 0 auto; }
.form-actions { display: flex; justify-content: flex-end; gap: .6rem; flex-wrap: wrap; }
.field-error { color: var(--danger); font-size: .85rem; margin-top: .35rem; }

/* Segmented control for translation choice */
.seg { display: flex; flex-wrap: wrap; gap: .35rem; }
.seg label {
    position: relative; cursor: pointer;
    border: 1px solid var(--border); border-radius: 999px; padding: .4rem .85rem;
    font-size: .85rem; font-weight: 600; color: var(--text-muted); background: var(--surface);
    transition: border-color .15s, background .15s, color .15s;
}
.seg input[type=radio], .seg input[type=checkbox] { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--accent-light); border-color: var(--accent); color: var(--accent); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.seg small { font-weight: 500; opacity: .75; margin-left: .25rem; }

.empty-state {
    text-align: center; background: var(--surface); border: 1px dashed var(--border);
    border-radius: var(--radius); padding: 2.25rem 1.5rem;
}
.empty-state h2 { font-size: 1.15rem; letter-spacing: -.01em; margin: .75rem 0 .4rem; }
.empty-state p { font-size: .92rem; color: var(--text-muted); max-width: 440px; margin: 0 auto 1.25rem; }
.empty-state .btn + .btn { margin-left: .4rem; }
.empty-art { max-width: 340px; margin: 0 auto; }

.setup-page { max-width: 560px; margin: 4rem auto; padding: 0 1rem; }

/* ── Prints: illustrations framed as mounted linocuts ───────────────── */

.print {
    position: relative; overflow: hidden; border-radius: var(--radius);
    background: #efe6d2; aspect-ratio: 16 / 9;
    box-shadow: inset 0 0 0 1px rgba(31, 42, 68, .08);
}
.print img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
[data-theme="dark"] .print { box-shadow: 0 0 0 1px var(--border); }
[data-theme="dark"] .print img { filter: brightness(.92) contrast(1.02); }

/* ── Scripture on paper ─────────────────────────────────────────────── */

.paper {
    position: relative;
    background: var(--paper);
    border: 1px solid var(--paper-edge);
    border-radius: var(--radius-lg);
    color: var(--paper-text);
    box-shadow: var(--shadow);
}
.scripture {
    font-family: var(--font-scripture);
    font-size: clamp(1.28rem, 2.4vw, 1.62rem);
    line-height: 1.6;
    font-weight: 450;
    white-space: pre-line;
    font-variant-ligatures: common-ligatures;
    text-wrap: pretty;
}
.scripture-sm { font-size: 1.12rem; line-height: 1.55; }
.ref {
    font-family: var(--font-scripture); font-weight: 600; font-size: 1.15rem;
    letter-spacing: .01em; color: var(--paper-text);
}
.ref-lg { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; line-height: 1.2; }
.tr-badge {
    display: inline-block; font-family: var(--font-mono); font-size: .62rem; font-weight: 700;
    letter-spacing: .12em; color: var(--text-muted); border: 1px solid var(--border);
    border-radius: 4px; padding: .08rem .35rem; vertical-align: middle; background: var(--surface);
}
.paper .tr-badge { background: transparent; border-color: var(--paper-edge); }

/* Ribbon bookmark: color reports memory state at a glance. */
.ribbon {
    position: absolute; top: -1px; right: 1.25rem; width: 16px; height: 30px;
    background: var(--blank);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
}
.ribbon.learning  { background: var(--teal); }
.ribbon.memorized { background: var(--gold); }

.pill {
    display: inline-block; font-family: var(--font-mono); font-size: .62rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em; padding: .18rem .5rem; border-radius: 999px; white-space: nowrap;
}
.pill-new       { background: var(--bg); color: var(--text-muted); border: 1px solid var(--border); }
.pill-learning  { background: var(--teal-soft); color: var(--teal); }
.pill-memorized { background: var(--gold-soft); color: var(--gold); }
.pill-due       { background: var(--accent-light); color: var(--accent); }
.pill-archived  { background: var(--bg); color: var(--text-muted); }

/* ── Verse list ─────────────────────────────────────────────────────── */

.verse-list { display: flex; flex-direction: column; gap: .6rem; }
.verse-row {
    position: relative; display: flex; gap: 1rem; align-items: flex-start;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: .9rem 1.1rem .9rem 1.25rem; text-decoration: none; color: inherit;
    box-shadow: var(--shadow); transition: border-color .15s, transform .15s;
}
.verse-row::before {
    content: ''; position: absolute; left: 0; top: .7rem; bottom: .7rem; width: 3px;
    border-radius: 0 3px 3px 0; background: var(--blank);
}
.verse-row.learning::before  { background: var(--teal); }
.verse-row.memorized::before { background: var(--gold); }
.verse-row:hover { border-color: var(--text-muted); }
.verse-main { flex: 1; min-width: 0; }
.verse-ref { font-family: var(--font-scripture); font-size: 1.12rem; font-weight: 600; }
.verse-snip { font-family: var(--font-scripture); font-size: 1rem; color: var(--text-muted); margin-top: .1rem; line-height: 1.45; }
.verse-side { display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; flex-shrink: 0; }
.verse-next { font-family: var(--font-mono); font-size: .68rem; color: var(--text-muted); white-space: nowrap; }

.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.chip {
    background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
    padding: .35rem .8rem; font-size: .82rem; text-decoration: none; color: var(--text-muted);
    font-weight: 500; white-space: nowrap;
}
.chip:hover { border-color: var(--text-muted); color: var(--text); }
.chip.is-active { background: var(--accent-light); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.chip .n { font-family: var(--font-mono); font-size: .68rem; margin-left: .25rem; opacity: .8; }
.search-form { display: flex; gap: .4rem; flex: 1; min-width: 220px; }

/* ── Dashboard ──────────────────────────────────────────────────────── */

.today-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 1rem; margin-bottom: .5rem; }
.review-panel {
    position: relative; overflow: hidden; border-radius: var(--radius-lg);
    background: var(--ink); color: #f3ecdc; padding: 1.5rem 1.5rem 1.35rem; min-height: 210px;
    display: flex; flex-direction: column; justify-content: flex-end; gap: .6rem;
    box-shadow: var(--shadow-md);
}
.review-panel .bg { position: absolute; inset: 0; opacity: .75; }
.review-panel .bg img { width: 100%; height: 100%; object-fit: cover; }
.review-panel::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(31, 42, 68, 0) 10%, rgba(31, 42, 68, .92) 78%);
}
.review-panel > *:not(.bg) { position: relative; z-index: 1; }
.review-kicker { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: #e0b25a; font-weight: 600; }
.review-count { font-family: var(--font-scripture); font-size: 2.1rem; line-height: 1.1; font-weight: 600; }
.review-panel p { color: #d9d2c2; font-size: .92rem; max-width: 30rem; }
.review-panel .btn-gold { align-self: flex-start; }

.daily {
    padding: 1.25rem 1.4rem 1.1rem; display: flex; flex-direction: column; gap: .6rem;
}
.daily .kicker { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.daily .scripture { font-size: 1.2rem; line-height: 1.5; flex: 1; }
.daily-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.stat {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: .85rem .6rem; text-align: center;
}
.stat-num { font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat-num.gold { color: var(--gold); }
.stat-num.teal { color: var(--teal); }
.stat-lbl {
    font-family: var(--font-mono); font-size: .58rem; font-weight: 600;
    letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-top: .15rem;
}

.learn-next { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .75rem; }
.learn-card { padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .5rem; }
.learn-card .scripture { font-size: 1.02rem; line-height: 1.45; color: var(--text-muted); flex: 1; }

/* Heatmap of practice days: columns are weeks, rows are weekdays. */
.heat-wrap { overflow-x: auto; padding-bottom: .25rem; }
.heatmap { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 12px); gap: 3px; width: max-content; }
.heat { width: 12px; height: 12px; border-radius: 3px; background: var(--hairline); }
[data-theme="dark"] .heat { background: #22262d; }
.heat.l1 { background: color-mix(in srgb, var(--teal) 35%, var(--surface)); }
.heat.l2 { background: color-mix(in srgb, var(--teal) 60%, var(--surface)); }
.heat.l3 { background: var(--teal); }
.heat.l4 { background: var(--gold); }
.heat.future { background: transparent; }
.heat-legend { display: flex; align-items: center; gap: .35rem; font-size: .72rem; color: var(--text-muted); margin-top: .5rem; }
.heat-legend .heat { display: inline-block; }

.group-mini { display: flex; gap: 1rem; align-items: flex-start; }
.group-mini .gm-main { flex: 1; min-width: 0; }
.group-mini .gm-name { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; }
.tally { display: flex; gap: .9rem; flex-wrap: wrap; font-size: .8rem; color: var(--text-muted); margin-top: .35rem; }
.tally b { color: var(--text); font-variant-numeric: tabular-nums; }

/* ── Packs ──────────────────────────────────────────────────────────── */

.pack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.pack-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column;
    box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
}
.pack-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pack-card .print { border-radius: 0; }
.pack-body { padding: .9rem 1.05rem 1rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.pack-title { font-family: var(--font-scripture); font-size: 1.3rem; font-weight: 600; line-height: 1.2; }
.pack-blurb { font-size: .86rem; color: var(--text-muted); line-height: 1.5; flex: 1; }
.pack-meta { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-top: .35rem; }
.pack-meta .done { color: var(--gold); font-weight: 700; }

.pack-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.5rem; align-items: center; margin-bottom: 1.5rem; }
.pack-hero h1 { font-family: var(--font-scripture); font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 600; line-height: 1.1; letter-spacing: -.01em; }
.pack-hero p { color: var(--text-muted); margin-top: .5rem; }

.pick-list { display: flex; flex-direction: column; gap: .6rem; }
.pick {
    display: flex; gap: .9rem; align-items: flex-start; cursor: pointer;
    padding: 1rem 1.1rem;
}
.pick input[type=checkbox] { width: 20px; height: 20px; margin-top: .3rem; accent-color: var(--accent); flex-shrink: 0; }
.pick .scripture { font-size: 1.08rem; line-height: 1.5; margin-top: .2rem; }
.pick.is-added { opacity: .72; cursor: default; }
.sticky-actions {
    position: sticky; bottom: 1rem; z-index: 20; margin-top: 1rem;
    display: flex; justify-content: flex-end; gap: .5rem; align-items: center; flex-wrap: wrap;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: .6rem .75rem; box-shadow: var(--shadow-md);
}
.sticky-actions .hint { flex: 1; }

/* ── Verse detail ───────────────────────────────────────────────────── */

.verse-sheet { padding: 1.75rem 1.9rem 1.5rem; margin-bottom: 1rem; }
.verse-sheet .ref-line { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .9rem; padding-right: 2.25rem; }
.verse-sheet .scripture { font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
.sheet-tools { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px dashed var(--paper-edge); }
.btn-paper { background: transparent; color: var(--paper-text); border-color: var(--paper-edge); }
.btn-paper:hover { border-color: var(--paper-text); filter: none; }

.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.fact { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .7rem .85rem; }
.fact-k { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
.fact-v { font-weight: 700; margin-top: .1rem; font-variant-numeric: tabular-nums; }

.log-row { display: flex; align-items: center; gap: .75rem; padding: .55rem 0; border-bottom: 1px solid var(--hairline); font-size: .88rem; }
.log-row:last-child { border-bottom: none; }
.log-date { font-family: var(--font-mono); font-size: .74rem; color: var(--text-muted); width: 5.5rem; flex-shrink: 0; }
.log-main { flex: 1; min-width: 0; }
.log-acc { font-family: var(--font-mono); font-weight: 700; font-variant-numeric: tabular-nums; }

details.more { margin-top: 1rem; }
details.more > summary { cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--text-muted); padding: .4rem 0; }
details.more > summary:hover { color: var(--text); }
details.more[open] > summary { margin-bottom: .75rem; }

/* ── Practice stage ─────────────────────────────────────────────────── */

.practice-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.steps { display: flex; gap: .3rem; list-style: none; flex-wrap: wrap; }
.steps button {
    display: flex; align-items: center; gap: .4rem;
    border: 1px solid var(--border); background: var(--surface); color: var(--text-muted);
    border-radius: 999px; padding: .35rem .8rem .35rem .45rem; cursor: pointer;
    font-family: inherit; font-size: .82rem; font-weight: 600; min-height: 36px;
}
.steps .n {
    width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
    font-family: var(--font-mono); font-size: .68rem; background: var(--bg); color: var(--text-muted);
}
.steps button.is-current { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.steps button.is-current .n { background: var(--accent); color: #fff; }
.steps button.is-done .n { background: var(--teal); color: #fff; }

.stage {
    position: relative; padding: 2rem 2.1rem 1.6rem; min-height: 260px;
    display: flex; flex-direction: column; gap: 1.1rem; cursor: text;
}
.stage .ref-line { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; padding-right: 2.25rem; }
.stage-instructions { font-size: .88rem; color: var(--text-muted); }
.stage .scripture { font-size: clamp(1.4rem, 2.8vw, 1.85rem); line-height: 1.7; }
.stage-foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.stage-meter { font-family: var(--font-mono); font-size: .74rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* Word tokens. Hidden words keep their width so the line never reflows. */
.w { border-radius: 4px; transition: color .25s ease, background .25s ease; }
.w.gone, .w.blank {
    color: transparent; background: var(--blank);
    box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--paper-text) 12%, transparent);
    cursor: pointer; user-select: none;
}
.w.gone.peek { color: var(--paper-text); background: var(--gold-soft); }
.w .w-rest { transition: color .2s; }
.letters .w .w-rest { color: transparent; border-bottom: 2px dotted color-mix(in srgb, var(--paper-text) 30%, transparent); }
.letters .w.peek .w-rest { color: inherit; border-bottom-color: transparent; }
.letters .w .w-first { font-weight: 650; }
.w.blank { cursor: text; }
.w.current { box-shadow: inset 0 -3px 0 var(--accent); animation: caret 1.1s ease-in-out infinite; }
@keyframes caret { 50% { box-shadow: inset 0 -3px 0 transparent; } }
.w.inked { color: var(--paper-text); background: transparent; box-shadow: none; animation: ink .45s ease-out; }
.w.missed { color: var(--danger); background: transparent; box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--danger) 40%, transparent); animation: ink .45s ease-out; }
.w.hinted { color: var(--gold); background: transparent; box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--gold) 45%, transparent); }
@keyframes ink {
    from { opacity: .2; filter: blur(3px); transform: translateY(2px); }
    to   { opacity: 1;  filter: none;      transform: none; }
}
.stage.shake { animation: shake .3s ease; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* Typing capture: visually hidden but focusable so phone keyboards open. */
.type-input {
    position: absolute; left: 50%; bottom: 1rem; width: 2px; height: 2px;
    opacity: 0; border: 0; padding: 0; min-height: 0; background: transparent; color: transparent;
    caret-color: transparent;
}
.tap-to-type {
    display: none; font-size: .85rem; color: var(--accent); font-weight: 600;
}
.stage.needs-focus .tap-to-type { display: inline; }

.fade-controls { display: flex; align-items: center; gap: .5rem; }
.fade-level { display: flex; gap: 4px; }
.fade-level i { width: 18px; height: 6px; border-radius: 3px; background: var(--blank); display: block; }
.fade-level i.on { background: var(--teal); }

/* Result */
.result { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: center; padding: 1.25rem 1.4rem; margin-top: 1rem; }
.ring {
    --p: 0; width: 84px; height: 84px; border-radius: 50%;
    background: conic-gradient(var(--ring, var(--teal)) calc(var(--p) * 1%), var(--hairline) 0);
    display: grid; place-items: center;
}
.ring::before { content: ''; grid-area: 1 / 1; width: 66px; height: 66px; border-radius: 50%; background: var(--surface); }
.ring span { grid-area: 1 / 1; position: relative; font-weight: 800; font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.result h3 { font-size: 1.1rem; letter-spacing: -.01em; }
.result p { color: var(--text-muted); font-size: .9rem; margin-top: .15rem; }
.result-actions { grid-column: 1 / -1; display: flex; gap: .5rem; flex-wrap: wrap; }

/* ── Review session ─────────────────────────────────────────────────── */

.session-bar { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.session-track { flex: 1; height: 6px; background: var(--hairline); border-radius: 999px; overflow: hidden; }
.session-fill { height: 100%; width: 0; background: var(--teal); border-radius: 999px; transition: width .4s ease; }
.session-count { font-family: var(--font-mono); font-size: .74rem; color: var(--text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

.mode-switch { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 3px; background: var(--surface); }
.mode-switch button {
    border: 0; background: transparent; color: var(--text-muted); font: inherit; font-size: .8rem; font-weight: 600;
    padding: .3rem .8rem; border-radius: 999px; cursor: pointer; min-height: 32px;
}
.mode-switch button.is-on { background: var(--accent-light); color: var(--accent); }

.grade-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.grade-row .btn { flex-direction: column; gap: 0; line-height: 1.2; padding: .55rem .4rem; }
.grade-row .btn small { font-weight: 500; font-size: .7rem; opacity: .75; }
.g-again { border-color: var(--danger); color: var(--danger); }
.g-hard  { border-color: var(--warning); color: var(--warning); }
.g-good  { border-color: var(--teal); color: var(--teal); }
.g-easy  { border-color: var(--gold); color: var(--gold); }

.session-done { text-align: center; padding: 1.5rem 1rem 2rem; }
.session-done .print { max-width: 460px; margin: 0 auto 1.25rem; }
.session-done h2 { font-family: var(--font-scripture); font-size: 2rem; font-weight: 600; }
.session-done p { color: var(--text-muted); margin: .4rem auto 1.25rem; max-width: 30rem; }
.done-list { max-width: 520px; margin: 0 auto 1.25rem; text-align: left; }

/* ── Groups ─────────────────────────────────────────────────────────── */

.group-card { display: flex; gap: 1rem; align-items: center; text-decoration: none; color: inherit; }
.group-card:hover .card-title { color: var(--accent); }
.group-avatar {
    width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
    display: grid; place-items: center; background: var(--ink); color: #efe6d2;
    font-family: var(--font-scripture); font-size: 1.35rem; font-weight: 600;
}
.group-card .gc-main { flex: 1; min-width: 0; }

.group-banner { position: relative; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 1.25rem; color: #f3ecdc; background: var(--ink); }
.group-banner .print { border-radius: 0; aspect-ratio: 16 / 5; opacity: .8; background: var(--ink); }
.group-banner .print img { object-position: center 62%; transform: none; }
.group-banner .gb-body {
    position: absolute; inset: auto 0 0 0; padding: 1rem 1.25rem;
    background: linear-gradient(180deg, rgba(31, 42, 68, 0), rgba(31, 42, 68, .92));
    display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.group-banner h1 { font-family: var(--font-scripture); font-size: clamp(1.7rem, 3.5vw, 2.3rem); font-weight: 600; line-height: 1.1; }
.group-banner .gb-meta { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: #d9d2c2; }

.code-box {
    display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
    background: var(--bg); border: 1px dashed var(--border); border-radius: var(--radius); padding: .75rem 1rem;
}
.code-box .code { font-family: var(--font-mono); font-size: 1.35rem; font-weight: 700; letter-spacing: .18em; }
.code-box .code-url { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: .72rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.member-row { display: flex; align-items: center; gap: .75rem; padding: .6rem 0; border-bottom: 1px solid var(--hairline); }
.member-row:last-child { border-bottom: none; }
.member-dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .8rem; background: var(--bg); color: var(--text-muted); border: 2px solid var(--blank); flex-shrink: 0; }
.member-dot.learning  { border-color: var(--teal); color: var(--teal); }
.member-dot.memorized { border-color: var(--gold); color: #fff; background: var(--gold); }
.member-main { flex: 1; min-width: 0; }
.member-name { font-weight: 600; font-size: .92rem; }
.member-meta { font-size: .76rem; color: var(--text-muted); }
.member-actions { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: flex-end; }

.gv-row { display: flex; gap: .9rem; align-items: flex-start; padding: .75rem 0; border-bottom: 1px solid var(--hairline); }
.gv-row:last-child { border-bottom: none; }
.gv-date { font-family: var(--font-mono); font-size: .72rem; color: var(--text-muted); width: 5.5rem; flex-shrink: 0; padding-top: .2rem; }
.gv-main { flex: 1; min-width: 0; }
.leader-note { font-style: italic; font-family: var(--font-scripture); font-size: 1.05rem; color: var(--text-muted); border-left: 3px solid var(--gold); padding-left: .75rem; margin-top: .75rem; }

/* ── Toast + sparkle ────────────────────────────────────────────────── */

#toastHost {
    position: fixed; left: 0; right: 0; bottom: 24px;
    display: flex; flex-direction: column; align-items: center; gap: .5rem;
    z-index: 1000; pointer-events: none;
}
.toast {
    background: var(--text); color: var(--surface); border-radius: 999px;
    padding: .55rem 1.05rem; font-size: .86rem; font-weight: 600;
    opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .25s; max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: none; }
.sparkle-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 999; }

/* ── Landing page (signed out) ──────────────────────────────────────── */

/* The landing page speaks in the print palette, whatever the default accent. */
.landing { background: var(--bg); --accent: #1f2a44; --accent-soft: #1f2a441a; --accent-light: #1f2a441a; }
.land-top {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    max-width: 1080px; margin: 0 auto; padding: 1.1rem 1.25rem;
}
.land-brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; color: var(--text); text-decoration: none; }
.land-brand .logo-mark { width: 26px; height: 26px; }
.land-nav { display: flex; gap: .5rem; align-items: center; }
.land-hero { position: relative; background: var(--ink); color: #f3ecdc; overflow: hidden; }
.land-hero .bg { position: absolute; inset: 0; }
.land-hero .bg img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 60%; }
.land-hero::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(20, 27, 45, .94) 0%, rgba(20, 27, 45, .72) 45%, rgba(20, 27, 45, .15) 100%);
}
.land-hero-inner { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 5.5rem 1.25rem 5rem; }
.land-kicker { font-family: var(--font-mono); font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #e0b25a; }
.land-hero h1 {
    font-family: var(--font-scripture); font-weight: 500; font-size: clamp(2.4rem, 6vw, 4.2rem);
    line-height: 1.04; letter-spacing: -.015em; margin: .8rem 0 1rem; max-width: 12ch;
}
.land-hero h1 em { color: #e0b25a; font-style: italic; }
.land-hero p { font-size: 1.08rem; color: #d9d2c2; max-width: 34rem; line-height: 1.65; }
.land-hero .cite { font-family: var(--font-scripture); font-style: italic; color: #bdb5a4; margin-top: 1.25rem; font-size: 1.05rem; }
.land-cta { display: flex; gap: .6rem; margin-top: 2rem; flex-wrap: wrap; }
.btn-outline-light { border-color: rgba(243, 236, 220, .45); color: #f3ecdc; }
.btn-outline-light:hover { border-color: #f3ecdc; filter: none; }

.land-section { max-width: 1080px; margin: 0 auto; padding: 3.5rem 1.25rem 1rem; }
.land-section > h2 { font-family: var(--font-scripture); font-size: clamp(1.7rem, 3.5vw, 2.3rem); font-weight: 600; letter-spacing: -.01em; line-height: 1.15; }
.land-section > p.lead { color: var(--text-muted); max-width: 40rem; margin-top: .5rem; font-size: 1.02rem; }
.demo { margin-top: 1.5rem; }
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1.5rem; }
.how { padding: 1.1rem 1.15rem; }
.how .n { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em; color: var(--gold); font-weight: 700; }
.how h3 { font-size: 1rem; margin: .35rem 0 .25rem; }
.how p { font-size: .88rem; color: var(--text-muted); line-height: 1.55; }
.how .eg { font-family: var(--font-scripture); font-size: 1.1rem; color: var(--text); margin-top: .5rem; }
.land-foot { text-align: center; color: var(--text-muted); font-size: .8rem; padding: 3rem 1rem 2.5rem; border-top: 1px solid var(--border); margin-top: 3rem; }
.land-foot p + p { margin-top: .35rem; }

/* ── Printable cards ────────────────────────────────────────────────── */

.cards-sheet { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 1rem; }
.mem-card {
    border: 1px dashed #b9b1a0; padding: .9rem 1.1rem 1rem; min-height: 2.7in;
    display: flex; flex-direction: column; gap: .5rem; background: #fffdf8; color: #231f1a; break-inside: avoid;
}
.mem-card .ref { color: #231f1a; font-size: 1.05rem; }
.mem-card .scripture { font-size: 1rem; line-height: 1.45; flex: 1; }
.mem-card .mc-foot { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: .56rem; letter-spacing: .1em; text-transform: uppercase; color: #8a8171; }

@media print {
    @page { margin: .4in; }
    body { background: #fff; }
    .sidebar, .topbar, .bottom-tabs, .page-topline, .no-print, .flash, .skip-link { display: none !important; }
    .app-layout { display: block; }
    .main-content { padding: 0; max-width: none; }
    .cards-sheet { margin: 0; }
}

/* ── Responsive ─────────────────────────────────────────────────────── */

@media (max-width: 900px) {
    .today-grid { grid-template-columns: 1fr; }
    .how-grid { grid-template-columns: repeat(2, 1fr); }
    .pack-hero { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .app-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: var(--topbar-h) 1fr; padding-bottom: var(--bottom-h); }
    .sidebar {
        display: none; position: fixed; top: var(--topbar-h); left: 0; bottom: 0;
        width: 80%; max-width: 280px; z-index: 200; box-shadow: var(--shadow-md); height: auto;
    }
    .sidebar.open { display: flex; }
    .topbar { display: flex; }
    .bottom-tabs { display: flex; }
    .main-content { grid-column: 1; padding: 1rem 1rem 1.5rem; }
    .page-topline { display: none; }
    #toastHost { bottom: calc(var(--bottom-h) + 14px); }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .stage { padding: 1.4rem 1.2rem 1.2rem; }
    .verse-sheet { padding: 1.35rem 1.2rem 1.2rem; }
    .grade-row { grid-template-columns: repeat(2, 1fr); }
    .sticky-actions { bottom: calc(var(--bottom-h) + .6rem); }
    .land-hero-inner { padding: 3.5rem 1.25rem 3.25rem; }
    .land-hero::after { background: linear-gradient(180deg, rgba(20, 27, 45, .55) 0%, rgba(20, 27, 45, .93) 55%); }
    .cards-sheet { grid-template-columns: 1fr; }
    html { scroll-padding-top: var(--topbar-h); scroll-padding-bottom: calc(var(--bottom-h) + 28px); }
}

@media (max-width: 520px) {
    .how-grid { grid-template-columns: 1fr; }
    .verse-row { flex-direction: column; gap: .5rem; }
    .verse-side { flex-direction: row; align-items: center; }
    .page-head h1 { font-size: 1.4rem; }
    .result { grid-template-columns: 1fr; justify-items: start; }
    .land-nav .btn-ghost { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
    .main-content { animation: page-in .3s ease; }
    @keyframes page-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .w.current { animation: none; }
}

/* ── Utilities ──────────────────────────────────────────────────────── */

.plain-link { text-decoration: none; color: inherit; }
.plain-link:hover { color: var(--accent); }
.grow { flex: 1; }
.land-packs { margin-top: 1.25rem; }
.check-inline { display: flex; align-items: center; gap: .4rem; margin-right: auto; }
.check-inline input { width: 18px; height: 18px; accent-color: var(--accent); }
.form-actions.start { justify-content: flex-start; }
.mt-1 { margin-top: 1rem; }
.notice { padding: .75rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: .9rem; font-weight: 500; }
.notice-success { background: var(--success-soft); color: var(--success); }
.notice-info    { background: var(--info-soft);    color: var(--info-text); }
.notice-warn    { background: var(--warning-soft); color: var(--warning); }
.block { display: block; }
.date-inline { max-width: 11rem; min-height: 38px; padding: .35rem .6rem; }
.group-card .card-title { display: block; }
#refInput::-webkit-calendar-picker-indicator { display: none !important; }

/* Focus rings on the dark ink panels need the gold, not the accent. */
.land-hero :focus-visible, .review-panel :focus-visible, .group-banner :focus-visible { outline-color: #e0b25a; }

/* Light gold and teal in dark mode need dark text for contrast. */
[data-theme="dark"] .tab-badge,
[data-theme="dark"] .steps button.is-done .n,
[data-theme="dark"] .member-dot.memorized { color: #1b1c21; }

/* Peekable words are buttons for keyboard users. */
.w[role=button]:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
