@font-face { font-family: 'Newsreader'; src: url('/fonts/Newsreader_400Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('/fonts/Newsreader_400Regular_Italic.ttf') format('truetype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('/fonts/Newsreader_500Medium.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url('/fonts/HankenGrotesk_400Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url('/fonts/HankenGrotesk_600SemiBold.ttf') format('truetype'); font-weight: 500 600; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url('/fonts/HankenGrotesk_700Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

:root {
  --ink: #16150F;
  --ink-2: #45433C;
  --muted: #5E5C55;
  --faint: #7A776F;
  --ghost: #8F8C84;
  --paper: #F2F1EE;
  --surface: #FFFFFF;
  --line: #E2E0DA;
  --line-2: #ECEAE5;
  --track: #E4E2DC;
  --key: #C8402A;
  --key-soft: #F7E3DC;
  --scr: #8A6A16;
  --scr-soft: #F2E9D2;
  --scr-ink: #6E5410;
  --story: #2F4E8F;
  --story-soft: #E4E9F3;
  --story-ink: #22304F;
  --apply: #2F6B4A;
  --apply-soft: #DFECE3;
  --danger: #B42318;
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --top: env(safe-area-inset-top);
  --bot: env(safe-area-inset-bottom);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
body { min-height: 100dvh; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
[hidden] { display: none !important; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
.serif { font-family: var(--serif); }
.num { font-variant-numeric: tabular-nums; }

/* layout */
.screen { min-height: 100dvh; display: flex; flex-direction: column; max-width: 560px; margin: 0 auto; }
.pad { padding: 0 20px; }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.kicker.dark { color: var(--muted); }
.section-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.muted { color: var(--faint); }
.center { text-align: center; }

/* bars */
.topbar { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: var(--top) 12px 0; flex-shrink: 0; }
.topbar.ruled { height: 58px; padding-left: 8px; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.topbar .title { font-size: 15px; font-weight: 600; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; padding: 0; border-radius: 12px; }
.icon-btn:active { background: var(--line-2); }
.spacer { width: 44px; }

/* brand */
.brand { display: flex; align-items: center; gap: 10px; }
.mark { width: 30px; height: 30px; border-radius: 9px; background: var(--ink); display: grid; place-items: center; flex-shrink: 0; }
.mark i { width: 9px; height: 9px; border-radius: 50%; background: var(--key); display: block; }
.wordmark { font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1; letter-spacing: -.01em; }
.pill { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 12px; font-weight: 500; color: var(--ink-2); }
.dot { width: 6px; height: 6px; border-radius: 50%; display: block; background: var(--apply); }

/* buttons */
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 18px; border-radius: 14px; border: 1px solid #D8D6CF; background: var(--surface); font-size: 15px; font-weight: 600; width: 100%; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.tall { height: 56px; font-size: 16px; }
.btn.plain { border: 0; background: transparent; height: 44px; color: var(--ink-2); }
.btn.danger { color: var(--danger); }
.btn:disabled { opacity: .45; }
.btn:active, .tile:active, .seg button:active, .tagbtn:active { transform: scale(.985); }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

/* cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.list { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.list-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; width: 100%; border: 0; background: transparent; text-align: left; }
.list-item + .list-item { border-top: 1px solid var(--line-2); }
.list-title { font-family: var(--serif); font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-meta { margin-top: 3px; font-size: 13px; color: var(--faint); }
.badge { font-size: 11px; font-weight: 600; letter-spacing: .04em; padding: 4px 8px; border-radius: 6px; background: var(--apply-soft); color: var(--apply); flex-shrink: 0; }
.pct { font-size: 12px; font-weight: 600; color: var(--key); flex-shrink: 0; }

/* home */
.hero { padding: 30px 20px 20px; }
.hero h1 { font-family: var(--serif); font-size: 40px; line-height: 1.02; font-weight: 400; letter-spacing: -.02em; }
.hero p { margin-top: 12px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.capture { margin: 0 20px; padding: 8px; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 13px; background: var(--paper); }
.seg button { height: 36px; border: 0; border-radius: 10px; background: transparent; font-size: 14px; font-weight: 500; color: var(--muted); }
.seg button.on { background: var(--surface); box-shadow: 0 1px 2px rgba(22,21,15,.08); font-weight: 600; color: var(--ink); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px 4px 4px; }
.field { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); }
.field span { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.field input, .field select { border: 0; outline: 0; padding: 0; background: transparent; font-size: 16px; font-weight: 500; width: 100%; min-width: 0; -webkit-appearance: none; appearance: none; }
.capture .btn { margin-top: 8px; }
.capture-foot { display: flex; justify-content: space-between; align-items: center; padding: 10px 8px 4px; font-size: 12px; color: var(--faint); }
.capture-foot select { border: 0; background: transparent; font-size: 12px; color: var(--faint); text-align: right; -webkit-appearance: none; appearance: none; padding: 0; }
.recent { padding: 26px 20px 0; }
.recent-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.empty { padding: 22px 18px; text-align: center; font-size: 14px; line-height: 1.5; color: var(--faint); }
.foot { margin-top: auto; padding: 28px 20px calc(22px + var(--bot)); text-align: center; font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ghost); }

/* unlock */
.unlock { padding: 0 28px; }
.unlock-body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 36px; }
.unlock .mark { width: 56px; height: 56px; border-radius: 16px; }
.unlock .mark i { width: 16px; height: 16px; }
.unlock h1 { font-family: var(--serif); font-style: italic; font-size: 52px; line-height: 1; font-weight: 400; letter-spacing: -.02em; margin-top: 22px; }
.unlock .tag { margin-top: 12px; font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--muted); }
.unlock form { display: flex; flex-direction: column; gap: 10px; }
.unlock label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.input { width: 100%; height: 54px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--ink); background: var(--surface); font-size: 17px; outline: none; }
.err { color: var(--danger); font-size: 14px; }
.unlock-foot { padding-bottom: calc(26px + var(--bot)); display: flex; justify-content: space-between; font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ghost); }

/* progress */
.prog-head { padding: 12px 20px 0; }
.prog-head .kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.prog-head .kicker i { width: 7px; height: 7px; border-radius: 50%; background: var(--key); display: block; }
.prog-head .kicker i.sq { border-radius: 2px; background: var(--ink); }
.prog-head h1 { margin-top: 12px; font-family: var(--serif); font-size: 34px; line-height: 1.05; font-weight: 400; letter-spacing: -.02em; overflow-wrap: anywhere; }
.prog-head p { margin-top: 6px; font-size: 14px; color: var(--faint); }
.prog-card { margin: 24px 20px 0; padding: 20px; }
.big { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.big b { font-size: 64px; line-height: .9; font-weight: 600; letter-spacing: -.05em; }
.big b small { font-size: 28px; letter-spacing: -.02em; color: var(--ghost); font-weight: 600; }
.big span { text-align: right; font-size: 13px; line-height: 1.55; color: var(--muted); }
.blocks { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 4px; margin-top: 22px; }
.blocks i { height: 14px; border-radius: 3px; background: var(--track); display: block; transition: background .3s; }
.blocks i.done { background: var(--ink); }
.blocks i.now { background: var(--key); animation: pulse 1.4s ease-in-out infinite; }
.prog-note { margin-top: 16px; font-size: 13px; line-height: 1.5; color: var(--faint); }
.heard { margin: 22px 20px 0; flex: 1; min-height: 120px; overflow: hidden; position: relative; }
.heard p { margin-top: 10px; font-family: var(--serif); font-size: 19px; line-height: 1.6; color: var(--ink-2); }
.heard::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 64px; background: linear-gradient(to bottom, rgba(242,241,238,0), var(--paper)); }
.notice { margin: 14px 20px 0; padding: 18px 20px; border-radius: 20px; background: var(--ink); color: #fff; display: flex; gap: 14px; }
.notice h3 { font-family: var(--serif); font-size: 20px; line-height: 1.2; font-weight: 400; }
.notice p { margin-top: 6px; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.74); }
.actions { padding: 12px 20px calc(24px + var(--bot)); display: flex; flex-direction: column; gap: 12px; margin-top: auto; }
.actions .hint { font-size: 13px; color: var(--muted); text-align: center; }

/* editor */
.tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; padding: 3px; border-radius: 11px; background: #E7E5DF; width: 196px; }
.tabs button { height: 32px; border: 0; border-radius: 9px; background: transparent; font-size: 14px; font-weight: 500; color: var(--muted); }
.tabs button.on { background: var(--surface); font-weight: 600; color: var(--ink); }
.player { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 16px; background: var(--ink); color: #fff; position: sticky; top: calc(58px + var(--top)); z-index: 19; }
.play { width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 0; display: grid; place-items: center; flex-shrink: 0; padding: 0; }
.scrub { flex: 1; height: 24px; display: flex; align-items: center; position: relative; }
.scrub::before { content: ''; position: absolute; left: 0; right: 0; height: 3px; border-radius: 2px; background: rgba(255,255,255,.2); }
.scrub i { position: absolute; left: 0; height: 3px; border-radius: 2px; background: var(--key); display: block; }
.ptime { font-size: 12px; font-weight: 500; color: rgba(255,255,255,.75); }
.attach { flex: 1; text-align: left; border: 0; background: transparent; color: #fff; font-size: 14px; font-weight: 600; padding: 0; }
.doc { padding: 20px 20px 170px; }
.doc-title { width: 100%; border: 0; outline: 0; background: transparent; resize: none; overflow: hidden; padding: 0; margin-top: 8px; font-family: var(--serif); font-size: 32px; line-height: 1.08; letter-spacing: -.02em; display: block; }
.counts { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.count { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 12px; font-weight: 600; }
.count i { width: 7px; height: 7px; border-radius: 2px; display: block; }
.paras { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.para { padding: 8px 12px; margin: 0 -12px; border-radius: 14px; transition: background .25s; }
.para.active { background: rgba(22,21,15,.045); }
.para-head { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; min-height: 28px; }
.ts { border: 0; background: transparent; padding: 2px 0; font-size: 12px; font-weight: 600; color: var(--ghost); }
.para-tools { margin-left: auto; display: flex; gap: 2px; opacity: .7; }
.mini { width: 32px; height: 28px; border: 0; background: transparent; display: grid; place-items: center; color: var(--ghost); border-radius: 8px; padding: 0; }
.ptext { font-family: var(--serif); font-size: 19px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: break-word; -webkit-user-select: text; user-select: text; }
.ptext mark { color: inherit; background: none; border-radius: 4px; padding: 0 2px; cursor: pointer; }
mark.m-point { background: var(--key-soft); box-shadow: inset 0 -2px 0 var(--key); border-radius: 0; }
mark.m-scripture { background: var(--scr-soft); color: var(--scr-ink); font-weight: 500; }
mark.m-apply { background: var(--apply-soft); color: #24533A; }
.para.story { background: var(--story-soft); padding: 12px 16px; margin: 0 -4px; }
.para.story .ptext { color: var(--story-ink); font-size: 18px; }
.story-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--story); }
.para.story .ts { color: var(--story); }
.para textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; outline: none; resize: none; overflow: hidden; background: var(--surface); padding: 10px 12px; font-family: var(--serif); font-size: 19px; line-height: 1.6; display: block; }
.edit-hint { margin-top: 6px; font-size: 12px; color: var(--faint); }

.tagdock { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(18px + var(--bot)); width: min(536px, calc(100% - 24px)); display: flex; flex-direction: column; gap: 8px; z-index: 30; }
.tagdock .hint { align-self: center; max-width: 100%; font-size: 12px; font-weight: 500; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 4px 14px rgba(22,21,15,.08); }
.dock { display: flex; align-items: stretch; gap: 4px; padding: 6px; border-radius: 18px; background: var(--ink); box-shadow: 0 10px 30px rgba(22,21,15,.25); }
.tagbtn { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0; border-radius: 12px; border: 0; background: transparent; color: #fff; font-size: 11px; font-weight: 600; }
.tagbtn i { width: 10px; height: 10px; border-radius: 3px; display: block; }
.dock.idle .tagbtn.tag { opacity: .45; }
.dock.live .tagbtn.tag:first-child { background: rgba(255,255,255,.1); }
.tagbtn.tidy { flex: 0 0 56px; border-left: 1px solid rgba(255,255,255,.14); border-radius: 0 12px 12px 0; }

/* notes */
.notes { padding: 22px 20px 120px; }
.notes h1 { margin-top: 8px; font-family: var(--serif); font-size: 36px; line-height: 1.02; font-weight: 400; letter-spacing: -.02em; }
.scripture-card { margin-top: 18px; padding: 16px 18px; border-radius: 16px; background: var(--ink); color: #fff; }
.scripture-card .section-label { font-size: 11px; color: #C9A23E; }
.scripture-card p { margin-top: 8px; font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.5; color: rgba(255,255,255,.92); }
.notes h2 { margin: 26px 0 12px; }
.points-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.points-list li { display: flex; gap: 12px; }
.points-list .n { font-family: var(--serif); font-size: 22px; line-height: 1.1; color: #A3A098; width: 20px; flex-shrink: 0; }
.points-list .q { font-family: var(--serif); font-size: 18px; line-height: 1.45; }
.points-list .mynote { margin-top: 6px; font-family: var(--serif); font-style: italic; font-size: 16px; line-height: 1.45; color: var(--muted); }
.points-list .meta { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--faint); }
.refchip { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 999px; background: var(--scr-soft); color: var(--scr-ink); font-size: 13px; font-weight: 600; border: 0; }
.refs { display: flex; gap: 8px; flex-wrap: wrap; }
.story-card { padding: 14px 16px; border-radius: 14px; background: var(--story-soft); color: var(--story-ink); }
.story-card + .story-card { margin-top: 10px; }
.story-card b { font-size: 14px; font-weight: 600; display: block; }
.story-card p { margin-top: 4px; font-family: var(--serif); font-size: 16px; line-height: 1.5; }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.45; }
.check + .check { margin-top: 12px; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--apply); flex-shrink: 0; }
.reflect { width: 100%; min-height: 120px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font-family: var(--serif); font-size: 17px; line-height: 1.55; outline: none; resize: vertical; }
.notes-empty { margin-top: 24px; padding: 22px; border-radius: 18px; border: 1px dashed #D8D6CF; font-size: 15px; line-height: 1.55; color: var(--muted); }
.notes-cta { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: min(560px, 100%); padding: 40px 20px calc(22px + var(--bot)); background: linear-gradient(to bottom, rgba(242,241,238,0), var(--paper) 40%); z-index: 25; }

/* points cards */
.cards { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 20px 8px; scrollbar-width: none; margin-top: 20px; }
.cards::-webkit-scrollbar { display: none; }
.pcard { flex: 0 0 calc(100% - 28px); max-width: 480px; scroll-snap-align: center; min-height: 400px; border-radius: 24px; background: var(--ink); color: #fff; padding: 24px; display: flex; flex-direction: column; }
.pcard-top { display: flex; align-items: center; justify-content: space-between; }
.pcard-top b { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--key); }
.pcard-top span { font-size: 12px; color: rgba(255,255,255,.6); }
.pcard q { margin-top: 22px; font-family: var(--serif); font-size: 28px; line-height: 1.18; letter-spacing: -.01em; display: block; quotes: '\201C' '\201D'; }
.pcard-bottom { margin-top: auto; padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.pcard-bottom .section-label { font-size: 11px; color: rgba(255,255,255,.55); }
.pcard .refchip { background: rgba(201,162,62,.18); color: #E3C77A; height: 32px; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: #CFCDC6; display: block; transition: width .25s, background .25s; }
.dots i.on { width: 22px; background: var(--ink); }

/* sheets */
.scrim { position: fixed; inset: 0; background: rgba(22,21,15,.5); z-index: 50; display: flex; align-items: flex-end; justify-content: center; animation: fade .2s ease; }
.sheet { width: 100%; max-width: 560px; max-height: 92dvh; overflow-y: auto; background: var(--surface); border-radius: 26px 26px 0 0; padding: 10px 20px calc(24px + var(--bot)); display: flex; flex-direction: column; gap: 16px; animation: up .28s cubic-bezier(.2,.8,.2,1); }
.handle { width: 38px; height: 5px; border-radius: 3px; background: #DAD8D1; margin: 0 auto; flex-shrink: 0; }
.sheet h2 { font-family: var(--serif); font-size: 30px; font-weight: 400; letter-spacing: -.02em; }
.sheet .sub { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.quote { font-family: var(--serif); font-size: 24px; line-height: 1.3; letter-spacing: -.01em; }
.note-in { width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: #F7F6F3; font-family: var(--serif); font-style: italic; font-size: 16px; line-height: 1.5; color: var(--ink-2); resize: none; outline: none; min-height: 84px; }
.lbl { font-size: 13px; font-weight: 600; color: var(--ink-2); display: block; margin-bottom: 6px; }
.tools { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.tool { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.tool + .tool { border-top: 1px solid var(--line-2); }
.tool i { width: 10px; height: 10px; border-radius: 3px; display: block; flex-shrink: 0; }
.tool b { font-size: 15px; font-weight: 600; display: block; }
.tool span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--faint); }
.tool button { height: 34px; padding: 0 14px; border-radius: 10px; border: 0; background: var(--paper); font-size: 13px; font-weight: 600; flex-shrink: 0; }
.tool button:disabled { opacity: .5; }
.opt { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); }
.opt input { width: 20px; height: 20px; accent-color: var(--ink); flex-shrink: 0; margin: 0; }
.opt b { font-size: 15px; font-weight: 600; display: block; }
.opt span { font-size: 13px; color: var(--faint); display: block; margin-top: 2px; }
.switch { display: flex; align-items: center; justify-content: space-between; height: 50px; padding: 0 14px; border-radius: 14px; background: var(--paper); font-size: 15px; font-weight: 500; }
.switch input { appearance: none; -webkit-appearance: none; width: 46px; height: 28px; border-radius: 999px; background: #CFCDC6; position: relative; margin: 0; transition: background .2s; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked { background: var(--ink); }
.switch input:checked::after { transform: translateX(18px); }
.primary-export { display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: 18px; border: 1.5px solid var(--ink); background: var(--surface); text-align: left; width: 100%; }
.thumb { width: 58px; height: 74px; border-radius: 6px; background: #FBFAF7; border: 1px solid var(--line); padding: 8px 7px; display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; }
.thumb i { display: block; height: 3px; border-radius: 2px; background: #DAD8D1; }
.primary-export b { font-size: 16px; font-weight: 600; display: block; }
.primary-export span { margin-top: 4px; font-size: 13px; line-height: 1.45; color: var(--faint); display: block; }
.formats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 64px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.tile b { font-size: 14px; font-weight: 600; }
.tile span { font-size: 11px; color: var(--faint); }
.verse { font-family: var(--serif); font-size: 19px; line-height: 1.55; }
.verse sup { font-family: var(--sans); font-size: 11px; font-weight: 600; color: var(--scr); margin-right: 4px; }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(150px + var(--bot)); background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 14px; font-size: 14px; z-index: 80; max-width: calc(100% - 32px); display: flex; align-items: center; gap: 14px; box-shadow: 0 10px 30px rgba(22,21,15,.25); }
.toast button { border: 0; background: transparent; color: #E3C77A; font-weight: 700; font-size: 14px; padding: 0; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; display: inline-block; }

@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes pulse { 50% { opacity: .45; } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 600px) { .screen { border-left: 1px solid var(--line-2); border-right: 1px solid var(--line-2); } }
