/* =====================================================================
   Premium theme layer. Loaded AFTER components.css, so it only refines:
   colour tokens, typography, header/nav, cards, buttons, the reader,
   verse hover/selected/target states, the inline verse toolbar, the
   inline study panel and search. Delete this file + its <link> to revert.
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #f6f2ea; --surface: #fffdf9; --surface-2: #f0ebe0;
  --text: #1d1b18; --text-muted: #625e55; --border: #e0d9ca;
  --accent: #2b3f6b; --accent-contrast: #ffffff; --accent-soft: #e6ebf6;
  --gold: #b8862b; --gold-ink: #8a6216;
  --radius: 16px; --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(40,30,10,.05), 0 6px 20px rgba(40,30,10,.06);
  --shadow-lg: 0 2px 4px rgba(40,30,10,.06), 0 14px 36px rgba(40,30,10,.14);
  --v-hover: rgba(43,63,107,.09);
  --v-active: rgba(184,134,43,.26);
  --v-target: rgba(184,134,43,.17);
  --v-flash: rgba(232,150,40,.45);
  --v-study: rgba(43,63,107,.10);
  --mark: rgba(250,204,21,.45);
  --hl-yellow: rgba(250,204,21,.42); --hl-green: rgba(74,194,120,.34);
  --hl-blue: rgba(86,156,250,.32);   --hl-pink: rgba(244,114,182,.32);
  --hl-orange: rgba(251,146,60,.38); --hl-red: rgba(239,68,68,.30);
  --hl-purple: rgba(167,139,250,.38); --hl-teal: rgba(45,212,191,.34);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f131a; --surface: #171d27; --surface-2: #202836;
    --text: #ebe8e1; --text-muted: #a9aaa5; --border: #2a3342;
    --accent: #9bb8ff; --accent-contrast: #0c1424; --accent-soft: #1f2d49;
    --gold: #e0b861; --gold-ink: #e0b861;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.35);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.5), 0 16px 40px rgba(0,0,0,.55);
    --v-hover: rgba(155,184,255,.12); --v-active: rgba(224,184,97,.28); --v-target: rgba(224,184,97,.18);
    --v-flash: rgba(240,170,60,.5); --v-study: rgba(155,184,255,.13); --mark: rgba(224,184,97,.38);
    --hl-yellow: rgba(250,204,21,.30); --hl-green: rgba(74,194,120,.28);
    --hl-blue: rgba(86,156,250,.30);   --hl-pink: rgba(244,114,182,.28);
    --hl-orange: rgba(251,146,60,.32); --hl-red: rgba(248,113,113,.28);
    --hl-purple: rgba(167,139,250,.34); --hl-teal: rgba(45,212,191,.28);
  }
}
:root[data-theme="dark"] {
  --bg: #0f131a; --surface: #171d27; --surface-2: #202836;
  --text: #ebe8e1; --text-muted: #a9aaa5; --border: #2a3342;
  --accent: #9bb8ff; --accent-contrast: #0c1424; --accent-soft: #1f2d49;
  --gold: #e0b861; --gold-ink: #e0b861;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.35);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.5), 0 16px 40px rgba(0,0,0,.55);
  --v-hover: rgba(155,184,255,.12); --v-active: rgba(224,184,97,.28); --v-target: rgba(224,184,97,.18);
  --v-flash: rgba(240,170,60,.5); --v-study: rgba(155,184,255,.13); --mark: rgba(224,184,97,.38);
  --hl-yellow: rgba(250,204,21,.30); --hl-green: rgba(74,194,120,.28);
  --hl-blue: rgba(86,156,250,.30);   --hl-pink: rgba(244,114,182,.28);
    --hl-orange: rgba(251,146,60,.32); --hl-red: rgba(248,113,113,.28);
    --hl-purple: rgba(167,139,250,.34); --hl-teal: rgba(45,212,191,.28);
}

/* ---------- Base ---------- */
body { background: var(--bg); font-feature-settings: "kern", "liga"; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { letter-spacing: -.01em; }
h1 { font-family: var(--font-read); font-size: clamp(1.7rem, 4.2vw, 2.35rem); font-weight: 700; }
::selection { background: var(--v-active); }

/* ---------- Header and navigation ---------- */
.app-header {
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(14px); backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
}
.brand { font-family: var(--font-read); font-size: 1.15rem; letter-spacing: .01em; }
.brand .icon { color: var(--gold); }
.app-nav {
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(14px); backdrop-filter: saturate(1.5) blur(14px);
}
.app-nav a { position: relative; transition: color .15s; }
.app-nav a .icon { transition: transform .15s; }
.app-nav a[aria-current="page"] { color: var(--accent); }
.app-nav a[aria-current="page"] .icon { transform: translateY(-1px) scale(1.06); }
.app-nav a[aria-current="page"]::before {
  content: ""; position: absolute; top: 6px; width: 44px; height: 30px; border-radius: 999px;
  background: var(--accent-soft); z-index: -1;
}
@media (min-width: 900px) {
  .app-nav a[aria-current="page"]::before { top: 10px; width: 52px; height: 34px; }
  .app-nav a:hover { color: var(--accent); }
}
.toasts { bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 1rem); }
@media (min-width: 900px) { .toasts { bottom: var(--s5); } }
.toast { border-radius: 14px; box-shadow: var(--shadow-lg); }

/* ---------- Cards, buttons, inputs ---------- */
.card { border-radius: var(--radius); border-color: var(--border); box-shadow: var(--shadow); }
a.card { color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
a.card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); box-shadow: var(--shadow-lg); }
.btn { border-radius: var(--radius-sm); font-weight: 600; transition: background .15s, border-color .15s, transform .08s, box-shadow .15s; }
.btn:active { transform: scale(.98); }
.btn:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.btn-primary { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 92%, #fff), var(--accent)); border-color: var(--accent); box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.badge { background: var(--accent-soft); color: var(--accent); letter-spacing: .02em; }
.input, input[type="search"], input[type="text"], input[type="email"], input[type="password"], select, textarea {
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); min-height: 46px; padding: 0 .9rem; transition: border-color .15s, box-shadow .15s;
}
textarea { padding: .7rem .9rem; }
.input:focus, input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
dialog { border: 1px solid var(--border); border-radius: 22px; background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
dialog::backdrop { background: rgba(10,14,22,.5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }

/* ---------- Book list, breadcrumbs, chapter header ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: .85rem; color: var(--text-muted); margin-bottom: .5rem; }
.crumbs a { color: var(--text-muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.crumbs .sep { opacity: .5; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.page-head h1 { margin: 0 .25rem 0 0; }
.chapter-nav { display: flex; justify-content: space-between; gap: .5rem; margin: 1rem 0; }
.book-grid { list-style: none; margin: 0 0 var(--s5); padding: 0; display: grid; gap: .65rem; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); }
.book-link {
  display: flex; flex-direction: column; gap: 2px; padding: .8rem 1rem; border-radius: 14px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.book-link small { font-weight: 400; color: var(--text-muted); font-size: .78rem; }
a.book-link:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow); }
.book-link.is-disabled { opacity: .55; }
.book-section h2 { font-family: var(--font-read); margin-top: var(--s5); }

/* ---------- Reader ---------- */
.reader {
  max-width: var(--reader-max, 42rem); margin: 0 auto;
  font-family: var(--font-read); font-size: var(--reader-font-size); line-height: var(--reader-lh, 1.8);
  color: var(--text); text-align: left; hyphens: auto;
}
[data-reader-font="sans"] .reader { font-family: var(--font-ui); }
@media (min-width: 700px) {
  .reader { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow); padding: clamp(1.4rem, 4vw, 2.8rem) clamp(1.4rem, 5vw, 3.4rem); }
}
.reader-heading {
  font-family: var(--font-ui); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-ink); margin: 2em 0 .7em; line-height: 1.4;
}
.reader-heading:first-child { margin-top: 0; }
.reader .prose { margin: 0 0 1.05em; }
.reader .poetry { margin: 0 0 1.25em; }
.reader .line { padding: .04em .3em; margin-left: 0; }
.reader .line.q2 { margin-left: 1.2em; } .reader .line.q3 { margin-left: 2.4em; } .reader .line.q4 { margin-left: 3.6em; }
.reader sup.vn {
  font-family: var(--font-ui); font-size: .6em; font-weight: 700; color: var(--gold-ink);
  margin-right: .35em; vertical-align: super; line-height: 0; user-select: none; -webkit-user-select: none; letter-spacing: .02em;
}
.reader-text > .prose:first-of-type > span:first-child sup.vn { font-size: .62em; }

/* ---------- Verse states: hover < target < studying < selected ---------- */
.reader [data-v] {
  cursor: pointer; border-radius: 6px; scroll-margin-top: calc(var(--header-h) + 5rem);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding: .05em .14em; margin: 0 -.14em; transition: background-color .18s ease, box-shadow .18s ease;
}
.reader .line[data-v] { margin-left: 0; padding: .06em .3em; margin-right: 0; }
.reader .line.q2[data-v] { margin-left: 1.2em; } .reader .line.q3[data-v] { margin-left: 2.4em; } .reader .line.q4[data-v] { margin-left: 3.6em; }
.reader .verse-hover { background-color: var(--v-hover); }
.reader .verse-target { background-color: var(--v-target); box-shadow: 0 2px 0 color-mix(in srgb, var(--gold) 55%, transparent); }
.reader .verse-studying { background-color: var(--v-study); box-shadow: 0 2px 0 var(--accent); }
.reader .verse-active, .reader .verse-cursor { background-color: var(--v-active); box-shadow: 0 2px 0 var(--gold); }
.reader .verse-cursor { outline: 2px dashed var(--accent); outline-offset: 2px; }
.reader .verse-flash { animation: verse-flash 2.4s ease-in-out 1; }
@keyframes verse-flash { 0%, 100% { background-color: var(--v-target); } 20%, 65% { background-color: var(--v-flash); } }
.reader .has-bookmark > .vn { color: var(--gold); }
.reader .has-bookmark > .vn::before { content: "\2605"; margin-right: .15em; }

/* saved highlights */
.reader mark.hl { color: inherit; border-radius: 5px; padding: .03em 0; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.reader mark.hl-yellow { background: var(--hl-yellow); } .reader mark.hl-green { background: var(--hl-green); }
.reader mark.hl-blue { background: var(--hl-blue); }     .reader mark.hl-pink { background: var(--hl-pink); }
.reader mark.hl-orange { background: var(--hl-orange); } .reader mark.hl-red { background: var(--hl-red); }
.reader mark.hl-purple { background: var(--hl-purple); } .reader mark.hl-teal { background: var(--hl-teal); }

/* ---------- Inline verse toolbar (opens directly below the verse) ---------- */
.vtools {
  position: relative !important; inset: auto !important; transform: none !important; z-index: 2;
  display: block; width: min(100%, 36rem); margin: .55rem 0 .8rem; padding: .7rem .75rem .75rem;
  border-radius: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  font: 400 .95rem/1.3 var(--font-ui); text-indent: 0; text-align: left; white-space: normal; cursor: default; hyphens: none;
  animation: pop-in .18s ease-out;
}
.vtools[hidden] { display: none !important; }
.vtools::before {   /* little pointer toward the verse above */
  content: ""; position: absolute; top: -7px; left: 22px; width: 12px; height: 12px; transform: rotate(45deg);
  background: var(--surface); border-left: 1px solid var(--border); border-top: 1px solid var(--border);
}
@keyframes pop-in { from { opacity: 0; translate: 0 -6px; } to { opacity: 1; translate: 0 0; } }
.vtools-ref { font-weight: 700; font-size: .85rem; color: var(--gold-ink); margin: 0 .2rem .55rem; letter-spacing: .01em; }
.vtools-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.vtools-row button {
  min-height: 40px; padding: 0 .95rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text); font: inherit; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s, transform .08s;
}
.vtools-row button:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-soft); }
.vtools-row button:active:not(:disabled) { transform: scale(.97); }
.vtools-row button:disabled { opacity: .5; cursor: not-allowed; }
.vtools-row button[aria-pressed="true"], .vtools-row button[aria-expanded="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.vtools-row button[data-action="study"] { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.vtools-row button[data-action="study"]:hover:not(:disabled) { filter: brightness(1.1); background: var(--accent); }
.vtools-colors { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; padding: .15rem .2rem .7rem; }
.vtools-colors[hidden] { display: none; }
.swatch { width: 34px; height: 34px; min-height: 0; padding: 0; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border); cursor: pointer; transition: transform .12s; }
.swatch:hover { transform: scale(1.12); }
.swatch.hl-yellow { background: #f6cf3d; } .swatch.hl-green { background: #4cc27d; }
.swatch.hl-blue { background: #5a9dfa; }   .swatch.hl-pink { background: #f06fb0; }
.swatch.hl-orange { background: #fb923c; } .swatch.hl-red { background: #ef5350; }
.swatch.hl-purple { background: #a78bfa; } .swatch.hl-teal { background: #2dd4bf; }
.swatch-remove { min-height: 34px; padding: 0 .8rem; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--text-muted); font: inherit; font-size: .85rem; cursor: pointer; }
@media (max-width: 600px) {
  .vtools { width: 100%; }
  .vtools-row { display: grid; grid-template-columns: repeat(3, 1fr); }
  .vtools-row button { padding: 0 .4rem; }
}

/* ---------- Inline study panel (opens directly below the verse) ---------- */
.study-inline {
  display: block; margin: .6rem 0 1.1rem; padding: 1rem 1.05rem 1.1rem; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--gold);
  font: 400 .97rem/1.6 var(--font-ui); text-align: left; text-indent: 0; white-space: normal; cursor: default; hyphens: none; color: var(--text);
  animation: pop-in .2s ease-out;
}
.study-inline-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; margin-bottom: .35rem; }
.study-kicker { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.study-title { font-family: var(--font-read); font-size: 1.3rem; margin: 0; }
.study-close { min-height: 38px; padding: 0 .9rem; }
.study-note { margin: .2rem 0 .8rem; }
.study-inline .tabs { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; padding: .15rem 0 .7rem; border-bottom: 1px solid var(--border); -webkit-overflow-scrolling: touch; }
.study-inline .tabs::-webkit-scrollbar { display: none; }
.study-inline .tab {
  flex: none; min-height: 38px; padding: 0 .9rem; border-radius: 999px; border: 1px solid transparent; background: transparent;
  color: var(--text-muted); font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s;
}
.study-inline .tab:hover { background: var(--surface-2); color: var(--text); }
.study-inline .tab[aria-selected="true"] { background: var(--accent); color: var(--accent-contrast); }
.study-inline .tabpane { padding-top: .9rem; max-height: min(60vh, 34rem); overflow-y: auto; overscroll-behavior: contain; }
.study-inline .tabpane:focus-visible { outline-offset: -2px; }
@media (max-width: 600px) { .study-inline { margin-left: -.25rem; margin-right: -.25rem; padding: .9rem .85rem 1rem; } .study-inline .tabpane { max-height: 55vh; } }

/* ---------- Search ---------- */
.search-form { display: flex; gap: .6rem; margin: .4rem 0 .8rem; }
.search-form .input { flex: 1; min-width: 0; min-height: 52px; font-size: 1.05rem; padding: 0 1.1rem; border-radius: 16px; box-shadow: var(--shadow); }
.search-form .btn { min-height: 52px; border-radius: 16px; padding: 0 1.3rem; }
.search-suggest { margin: 0 0 .8rem; }
.suggest-link { display: flex; align-items: center; gap: .5rem; padding: .75rem 1rem; border-radius: 14px; background: var(--accent-soft); color: var(--accent); font-weight: 600; text-decoration: none; border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.suggest-link:hover { border-color: var(--accent); }
.recent-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.recent-head h2 { margin: 0; }
.recent-head .btn { min-height: 36px; font-size: .85rem; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); text-decoration: none; font-size: .9rem; font-weight: 500; transition: background .15s, border-color .15s;
}
.chip:hover { border-color: var(--accent); }
.chip[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); font-weight: 600; }
.filters { display: grid; gap: .6rem; }
.notice { padding: .7rem 1rem; border-radius: 12px; background: color-mix(in srgb, var(--warn) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--warn) 35%, var(--border)); font-size: .9rem; }
.results { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.result {
  position: relative; padding: 1rem 1.1rem .9rem; border-radius: 18px; background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow); transition: transform .15s, border-color .15s, box-shadow .15s;
}
.result:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow-lg); }
.result-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.result-link { font-weight: 700; color: var(--accent); text-decoration: none; font-size: 1.02rem; }
.result-link::after { content: ""; position: absolute; inset: 0; border-radius: 18px; }   /* whole card is the link */
.result-head .btn { position: relative; z-index: 1; min-height: 34px; padding: 0 .8rem; font-size: .82rem; }
.result-text { font-family: var(--font-read); font-size: 1.07rem; line-height: 1.7; margin: .45rem 0 .35rem; }
.result-open { font-size: .8rem; font-weight: 600; color: var(--text-muted); transition: color .15s; }
.result:hover .result-open { color: var(--accent); }
mark.sm { background: var(--mark); color: inherit; border-radius: 4px; padding: 0 .14em; font-weight: 600; }
.ref-card h2 { margin: .3rem 0 0; font-family: var(--font-read); }
.pager { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: var(--s4); }
.is-disabled { opacity: .5; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .vtools, .study-inline, .reader .verse-flash { animation: none !important; }
}
@media print { .vtools, .study-inline, .app-nav, .app-header, .readbar { display: none !important; } .reader { border: 0; box-shadow: none; } }
.search-page .field { margin-bottom: .25rem; }
.search-page .field .title { font-size: .85rem; color: var(--text-muted); }

/* ---------- Chapter numbers ---------- */
.chapter-grid { list-style: none; margin: var(--s4) 0 var(--s5); padding: 0; display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(4rem, 1fr)); }
.chapter-link {
  display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; min-height: 56px; border-radius: 16px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none;
  font-family: var(--font-read); font-size: 1.2rem; font-weight: 700; box-shadow: var(--shadow);
  transition: transform .15s, background .15s, border-color .15s, color .15s;
}
a.chapter-link:hover { transform: translateY(-2px); border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.chapter-link.is-read { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); color: var(--accent); position: relative; }
.chapter-link.is-read::after { content: "\2713"; position: absolute; top: 5px; right: 8px; font-family: var(--font-ui); font-size: .62rem; font-weight: 700; }
.chapter-link.is-disabled { opacity: .4; box-shadow: none; }
@media (min-width: 700px) { .chapter-grid { grid-template-columns: repeat(auto-fill, minmax(4.5rem, 1fr)); } }

/* ---------- Continue reading ---------- */
.continue-card {
  position: relative; display: block; margin: var(--s4) 0; padding: 1.2rem 1.3rem 1.1rem; border: 0; overflow: hidden;
  color: #fff; background: linear-gradient(135deg, #2b3f6b 0%, #3d5a96 60%, #5b78b4 100%); box-shadow: var(--shadow-lg);
}
.continue-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 150px; height: 150px; border-radius: 50%; background: rgba(255,255,255,.08); }
.continue-card .badge { background: rgba(255,255,255,.18); color: #fff; }
.continue-card h2 { font-family: var(--font-read); font-size: 1.6rem; margin: .5rem 0 .2rem; color: #fff; }
.continue-card p, .continue-card .muted { color: rgba(255,255,255,.82); }
.continue-go { display: inline-block; margin-top: .6rem; padding: .4rem 1rem; border-radius: 999px; background: #fff; color: #2b3f6b; font-weight: 700; font-size: .9rem; }
a.continue-card:hover { border: 0; }
:root[data-theme="dark"] .continue-card { background: linear-gradient(135deg, #1f2d49 0%, #2c4272 100%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .continue-card { background: linear-gradient(135deg, #1f2d49 0%, #2c4272 100%); } }

/* ---------- Note editor and other sheets: wider ---------- */
dialog.sheet { width: min(94vw, 46rem); max-width: 46rem; }
dialog.sheet .sheet-inner { padding: 1.3rem 1.4rem 1.4rem; }
dialog.sheet .sheet-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .75rem; }
dialog.sheet .sheet-head h2 { font-family: var(--font-read); margin: 0; font-size: 1.25rem; }
dialog.sheet textarea.note-text { width: 100%; min-height: 12rem; font-size: 1.02rem; line-height: 1.6; resize: vertical; }
dialog.sheet .note-buttons { display: flex; flex-wrap: wrap; gap: .5rem; }
dialog.sheet .note-quote { margin: 0 0 1rem; padding: .7rem 1rem; border-left: 4px solid var(--gold); background: var(--surface-2); border-radius: 0 12px 12px 0; font-family: var(--font-read); }
@media (max-width: 600px) { dialog.sheet { width: 100vw; max-width: 100vw; } dialog.sheet .sheet-inner { padding: 1.1rem 1rem 1.2rem; } }
