/* Bible Verses For Dawah — Minimal edition. Clean, high-contrast, one-handed. */
:root, :root[data-theme="light"] {
  --bg: #F6F7F8; --surface: #FFFFFF; --surface-2: #EFF1F3; --tint: #F3F5F6;
  --text: #16181C; --text-2: #353A42; --muted: #5A626C; --border: #E4E7EB; --border-2: #D3D8DE;
  --accent: #0F766E; --accent-2: #0B5E57; --accent-soft: #E3F4F1; --on-accent: #FFFFFF;
  --gold: #8A5A00; --gold-soft: #FCF1DC; --claim: #4B5563; --claim-soft: #EEF0F3;
  --note: #8A5A00; --hl: #FDE68A; --danger: #B42318;
  --shadow: 0 1px 2px rgba(16,24,40,.06);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0E1013; --surface: #181B20; --surface-2: #22262D; --tint: #1C2026;
  --text: #EEF0F2; --text-2: #D0D5DC; --muted: #A5AEB9; --border: #2A2F37; --border-2: #3A414B;
  --accent: #34C3B4; --accent-2: #5AD4C7; --accent-soft: #123330; --on-accent: #06201D;
  --gold: #F2C265; --gold-soft: #2E2615; --claim: #C3CAD3; --claim-soft: #232830;
  --note: #F2C265; --hl: #5B4A13; --danger: #FF8A80;
  --shadow: none;
  color-scheme: dark;
}
:root {
  --verse-size: 18.5px; --verse-lh: 1.65;
  --f-verse: 'Literata', 'Noto Serif Hebrew', Georgia, serif;
  --f-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r: 14px; --tabbar-h: 64px;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font: 400 15px/1.5 var(--f-ui); min-height: 100vh; -webkit-font-smoothing: antialiased; overscroll-behavior-y: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; border-radius: 10px; }
svg.i { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.orn, .gothic::before { display: none; }

/* Layout */
#app { display: flex; min-height: 100vh; }
#sidebar { display: none; }
#main { flex: 1; min-width: 0; padding-bottom: calc(var(--tabbar-h) + var(--sab) + 96px); }
.page { max-width: 680px; margin: 0 auto; padding: 0 16px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow); color: var(--text); }

/* App bar */
.appbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 2px; min-height: 58px; padding: calc(4px + var(--sat)) 4px 4px; background: var(--surface); border-bottom: 1px solid var(--border); }
.appbar .ttl { flex: 1; min-width: 0; padding: 0 6px; }
.appbar .ttl b { display: block; font-size: 17px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appbar .ttl small { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appbar.big { padding-left: 16px; }
.appbar.big .ttl b { font-size: 24px; font-weight: 750; letter-spacing: -.02em; }
.ib { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: var(--text); flex: none; }
.ib:active { background: var(--surface-2); }
.ib.on { color: var(--accent); } .ib.on svg { fill: currentColor; }

/* Tab bar */
#tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; height: calc(var(--tabbar-h) + var(--sab)); padding: 0 4px var(--sab); background: var(--surface); border-top: 1px solid var(--border); }
#tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
#tabbar a .pill { width: 56px; height: 30px; border-radius: 15px; display: grid; place-items: center; }
#tabbar a.active { color: var(--accent); } #tabbar a.active .pill { background: var(--accent-soft); }
@media (min-width: 960px) {
  #tabbar { display: none; } #main { padding-bottom: 48px; }
  #sidebar { display: flex; flex-direction: column; width: 280px; flex: none; height: 100vh; position: sticky; top: 0; background: var(--surface); border-right: 1px solid var(--border); overflow-y: auto; padding: 18px 10px; }
  .brand { display: flex; align-items: center; gap: 10px; padding: 0 10px 14px; } .brand .mark { width: 36px; height: 36px; border-radius: 9px; }
  .brand b { display: block; font-size: 15px; font-weight: 700; } .brand small { color: var(--muted); font-size: 12px; }
  .snav a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; font-weight: 550; color: var(--text-2); font-size: 14.5px; }
  .snav a:hover { background: var(--surface-2); } .snav a.active { background: var(--accent-soft); color: var(--accent); }
  .snav .h { font-size: 11.5px; font-weight: 700; color: var(--muted); padding: 16px 12px 4px; text-transform: uppercase; letter-spacing: .06em; }
  .snav a .n svg { width: 18px; height: 18px; color: var(--muted); }
}

/* Home */
.mhead { display: flex; align-items: center; gap: 12px; padding: calc(16px + var(--sat)) 2px 4px; }
.mhead img { width: 40px; height: 40px; border-radius: 10px; }
.mhead b { display: block; font-size: 19px; font-weight: 750; letter-spacing: -.01em; }
.mhead small { display: block; font-size: 13px; color: var(--muted); }
.sticky-search { position: sticky; top: 0; z-index: 25; background: var(--bg); margin: 0 -16px; padding: calc(8px + var(--sat)) 16px 8px; }
.sbox { display: flex; align-items: center; gap: 4px; height: 58px; padding: 0 4px 0 16px; background: var(--surface); border: 2px solid var(--border-2); border-radius: 16px; color: var(--muted); }
.sbox:focus-within { border-color: var(--accent); }
.sbox input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font-size: 17.5px; color: var(--text); padding-left: 8px; }
.sbox input::placeholder { color: var(--muted); opacity: 1; }
.sbox input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.fchips, .qrow { display: flex; gap: 8px; overflow-x: auto; margin: 8px -16px 0; padding: 0 16px 4px; scrollbar-width: none; }
.fchips:empty { display: none; } .fchips::-webkit-scrollbar, .qrow::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 40px; padding: 0 15px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border-2); font-size: 14.5px; font-weight: 600; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.chip svg { width: 16px; height: 16px; color: var(--muted); }
.chip:active { background: var(--surface-2); }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chip.recent { border-style: dashed; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.resume { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; border-radius: var(--r); background: var(--accent-soft); color: var(--accent); }
.resume .tx { flex: 1; min-width: 0; }
.resume small { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.resume b { display: block; color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sec { display: flex; align-items: baseline; justify-content: space-between; margin: 24px 2px 10px; }
.sec h2 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.sec a, .sec button { font-size: 14px; font-weight: 600; color: var(--accent); }
.sec .cnt { font-size: 13px; color: var(--muted); font-weight: 600; }
.foot-note { text-align: center; color: var(--muted); font-size: 13px; margin: 26px 0 6px; line-height: 1.7; }

/* Lists */
.list { list-style: none; margin: 0; padding: 0; overflow: hidden; }
.list > li + li { border-top: 1px solid var(--border); }
.row { display: flex; align-items: center; gap: 14px; padding: 13px 12px 13px 14px; min-height: 60px; width: 100%; text-align: left; color: var(--text); }
.row:active { background: var(--tint); }
.row .tx { flex: 1; min-width: 0; }
.row .t1 { display: block; font-size: 16px; font-weight: 600; line-height: 1.3; }
.row .t2 { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.row .q { font-family: var(--f-verse); font-size: 16.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row .rf { display: block; margin-top: 3px; font-size: 13px; font-weight: 700; color: var(--accent); }
.row .chev { color: var(--muted); width: 20px; height: 20px; }
.row .num { width: 30px; height: 30px; border-radius: 8px; background: var(--surface-2); color: var(--text-2); display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }
.row .num.sm { width: 34px; font-size: 12px; }
.row .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.row .ico svg { width: 21px; height: 21px; }
.row .cnt { min-width: 28px; height: 24px; padding: 0 8px; border-radius: 12px; background: var(--surface-2); color: var(--text-2); display: grid; place-items: center; font-size: 12.5px; font-weight: 700; }

/* Results */
.result { display: block; padding: 14px 16px; margin-bottom: 10px; }
.result:active { background: var(--tint); }
.result .top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.result .rf { font-size: 15px; font-weight: 700; color: var(--accent); }
.result .where { font-size: 13px; color: var(--muted); }
.result .snip { font-family: var(--f-verse); font-size: 17px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tag { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.tag.claim { background: var(--claim-soft); color: var(--claim); } .tag.answer, .tag.law { background: var(--accent-soft); color: var(--accent); } .tag.paul { background: var(--gold-soft); color: var(--gold); }
.empty { text-align: center; padding: 44px 24px; color: var(--muted); }
.empty svg { width: 40px; height: 40px; } .empty h3 { color: var(--text); font-size: 19px; margin: 12px 0 6px; } .empty p { margin: 0 auto; max-width: 320px; } .empty a { color: var(--accent); font-weight: 600; }
mark { background: var(--hl); color: inherit; border-radius: 3px; padding: 0 1px; }

/* Page headers */
.phead { padding: 16px 2px 2px; }
.phead .eyebrow { font-size: 13.5px; font-weight: 600; color: var(--accent); }
.phead .eyebrow a { color: inherit; display: inline-block; padding: 10px 2px; margin: -10px 0; }
.phead .eyebrow { line-height: 1.9; }
.phead h1 { margin: 4px 0 0; font-size: 25px; font-weight: 750; letter-spacing: -.02em; line-height: 1.22; }
.phead h1.quote { font-family: var(--f-verse); font-weight: 600; font-size: 22px; letter-spacing: 0; line-height: 1.38; }
.phead p { margin: 6px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.phead .sicon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 8px; }
.jump { position: sticky; top: calc(58px + var(--sat)); z-index: 19; display: flex; gap: 8px; overflow-x: auto; padding: 8px 16px; background: var(--surface); border-bottom: 1px solid var(--border); scrollbar-width: none; }
.jump::-webkit-scrollbar { display: none; } .jump .chip { height: 36px; font-size: 13.5px; }
.sec-head { display: flex; align-items: center; gap: 12px; margin: 24px 2px 10px; }
.sec-head .sno { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 700; flex: none; }
.sec-head h2 { margin: 0; font-size: 17px; font-weight: 700; } .sec-head p { margin: 1px 0 0; font-size: 13.5px; color: var(--muted); }
.section { scroll-margin-top: 120px; }
.intro-box { margin: 14px 0 4px; padding: 14px 16px; background: var(--gold-soft); border-color: transparent; }
.intro-box .lbl { font-size: 13px; font-weight: 700; color: var(--gold); margin-bottom: 6px; }
.intro-box .v + .v { margin-top: 12px; } .intro-box .rf { font-size: 14px; font-weight: 700; color: var(--accent); }
.intro-box .vt { font-family: var(--f-verse); font-size: calc(var(--verse-size) - 1px); line-height: var(--verse-lh); margin: 2px 0 0; }
.point { margin: 14px 0 4px; padding: 14px 16px; background: var(--accent-soft); border-color: transparent; }
.point .lbl { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.point .lbl svg { width: 17px; height: 17px; }
.point p { margin: 0; font-size: 16px; line-height: 1.55; font-weight: 500; }

/* Verses */
.group { margin-top: 20px; }
.glabel { display: flex; align-items: center; gap: 8px; margin: 0 2px 8px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.glabel .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.glabel.answer, .glabel.law { color: var(--accent); } .glabel.paul { color: var(--gold); } .glabel.claim { color: var(--claim); }
.glabel.side { text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 700; color: var(--text); }
.glabel .letter { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-size: 12px; }
.g-side.s1 .glabel .letter { background: var(--gold); color: #fff; } .g-side.s2 .glabel .letter { background: #6366F1; color: #fff; } .g-side.s3 .glabel .letter { background: #DB2777; color: #fff; }
.verse { position: relative; padding: 14px 16px 2px; margin-bottom: 10px; scroll-margin-top: 80px; }
.g-claim .verse { background: var(--claim-soft); border-color: transparent; box-shadow: none; }
.g-answer .verse, .g-law .verse { border-left: 4px solid var(--accent); }
.g-paul .verse { border-left: 4px solid var(--gold); }
.verse .rf { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
.g-paul .verse .rf { color: var(--gold); } .g-claim .verse .rf { color: var(--claim); }
.verse .rf .tr { font-size: 12px; font-weight: 700; padding: 2px 6px; border-radius: 4px; background: var(--surface-2); color: var(--muted); }
.verse .vt { margin: 0; font-family: var(--f-verse); font-size: var(--verse-size); line-height: var(--verse-lh); color: var(--text); overflow-wrap: break-word; text-wrap: pretty; }
.verse .acts { display: flex; justify-content: flex-end; margin: 2px -10px 0 0; }
.verse .acts .ib { width: 44px; height: 44px; color: var(--muted); } .verse .acts .ib svg { width: 20px; height: 20px; }
.verse .acts .ib.on { color: var(--accent); }
.verse.flash { animation: flash 2s ease; }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 3px var(--accent); } 100% { box-shadow: var(--shadow); } }
.note { font-style: italic; color: var(--note); } .note.xref { font-style: normal; }
.he { font-family: 'Noto Serif Hebrew', serif; font-style: normal; }
sup.vn { font-family: var(--f-ui); font-size: max(13px, .62em); font-weight: 700; color: var(--accent); vertical-align: super; line-height: 0; margin: 0 3px 0 1px; }
:root.hide-notes .note { display: none; }
.vs { text-align: center; margin: 0 0 -6px; } .vs span { font-size: 12px; font-weight: 800; letter-spacing: .08em; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 3px 10px; }
@media (min-width: 1100px) { .page.wide { max-width: 1040px; } .jvp { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; } .jvp .vs { display: none; } }
.qcard { display: flex; gap: 12px; padding: 14px; margin-bottom: 10px; }
.qn { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }
.qb { flex: 1; min-width: 0; } .qq { margin: 2px 0 0; font-size: 16.5px; line-height: 1.5; font-weight: 600; }
.qv summary { display: flex; align-items: center; gap: 6px; list-style: none; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--accent); padding: 8px 0 2px; }
.qv summary::-webkit-details-marker { display: none; } .qv summary svg { width: 18px; height: 18px; }
.qv .verse { margin: 8px 0 0; box-shadow: none; }
.guide { padding: 4px 16px; margin-top: 14px; }
.guide ul { list-style: none; margin: 0; padding: 0; }
.guide li { position: relative; padding: 12px 0 12px 20px; font-size: 16px; line-height: 1.55; }
.guide li + li { border-top: 1px solid var(--border); }
.guide li::before { content: ""; position: absolute; left: 2px; top: 21px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px 0 6px; }
.pager a { display: flex; align-items: center; gap: 8px; padding: 10px 12px; min-height: 60px; min-width: 0; }
.pager a.next { justify-content: flex-end; text-align: right; } .pager a span { min-width: 0; }
.pager small { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.pager b { display: block; font-size: 14.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pager .ph { visibility: hidden; }
.pos { text-align: center; color: var(--muted); font-size: 13px; margin-top: 6px; }

/* Floating Present button */
.fab { position: fixed; right: 16px; bottom: calc(var(--tabbar-h) + var(--sab) + 16px); z-index: 28; display: flex; align-items: center; gap: 8px; height: 54px; padding: 0 20px 0 16px; border-radius: 27px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 15.5px; box-shadow: 0 6px 18px rgba(0,0,0,.22); }
.fab:active { transform: scale(.97); }
@media (min-width: 960px) { .fab { bottom: 24px; right: 24px; } }

/* Settings */
.sgroup { margin-top: 14px; padding: 4px 0; }
.sgroup .h { padding: 12px 16px 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.srow { display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-height: 56px; width: 100%; text-align: left; color: var(--text); }
.srow + .srow { border-top: 1px solid var(--border); }
.srow .tx { flex: 1; } .srow .tx b { display: block; font-weight: 600; } .srow .tx small { display: block; color: var(--muted); font-size: 13px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 12px; margin: 0 16px 14px; }
.seg button { height: 42px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--muted); }
.seg button.on { background: var(--surface); color: var(--accent); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.sizes { display: flex; align-items: center; gap: 12px; padding: 0 16px 12px; } .sizes input { flex: 1; accent-color: var(--accent); height: 34px; }
.sizes .a1 { font-family: var(--f-verse); font-size: 15px; } .sizes .a2 { font-family: var(--f-verse); font-size: 26px; }
.preview { margin: 0 16px 14px; padding: 12px 14px; border-radius: 12px; background: var(--tint); }
.preview .rf { font-size: 14px; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.preview p { margin: 0; font-family: var(--f-verse); font-size: var(--verse-size); line-height: var(--verse-lh); }
.switch { position: relative; width: 52px; height: 32px; flex: none; } .switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; border-radius: 16px; background: var(--border-2); transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch input:checked + span { background: var(--accent); } .switch input:checked + span::after { transform: translateX(20px); }
.prose { font-size: 15px; line-height: 1.65; color: var(--text-2); padding: 0 16px 14px; }
.prose p { margin: 0 0 10px; } .prose ul { padding-left: 18px; margin: 6px 0; } .prose li { margin: 5px 0; }
.danger { color: var(--danger) !important; }
.hero { text-align: center; padding: 18px 8px 8px; } .hero-logo { width: 72px; height: 72px; border-radius: 18px; }
.hero h1 { margin: 8px 0 0; font-size: 22px; font-weight: 750; } .hero .tag { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

/* Sheet & toast */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 60; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; max-width: 560px; margin: 0 auto; background: var(--surface); color: var(--text); border-radius: 20px 20px 0 0; padding: 8px 10px calc(14px + var(--sab)); animation: up .22s ease-out; }
@keyframes up { from { transform: translateY(100%); } }
.sheet .grab { width: 40px; height: 4px; border-radius: 2px; background: var(--border-2); margin: 4px auto 12px; }
.sheet .sh { padding: 0 12px 12px; } .sheet .sh .rf { font-size: 14px; font-weight: 700; color: var(--accent); }
.sheet .sh p { margin: 4px 0 0; font-family: var(--f-verse); font-size: 16px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sheet .opt { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 56px; padding: 0 14px; border-radius: 12px; font-size: 16px; font-weight: 600; text-align: left; }
.sheet .opt:active { background: var(--surface-2); } .sheet .opt svg { color: var(--accent); }
#toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + var(--sab) + 84px); transform: translateX(-50%) translateY(12px); opacity: 0; z-index: 95; background: #16181C; color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14.5px; font-weight: 600; pointer-events: none; transition: all .2s; max-width: calc(100% - 32px); text-align: center; }
:root[data-theme="dark"] #toast { background: #EEF0F2; color: #0E1013; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Present Mode */
.present { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; background: #FFFFFF; color: #111; padding: calc(8px + var(--sat)) 12px calc(12px + var(--sab)); }
.present.dark { background: #000; color: #F5F5F5; }
.present .pbar { display: flex; align-items: center; gap: 6px; } .present .pbar .ib { color: inherit; }
.present .pbar .pos { flex: 1; margin: 0; color: inherit; opacity: .85; font-weight: 700; font-size: 15px; text-align: center; }
.present .pbar .pz { font: 800 15px var(--f-ui); width: 44px; }
.present .stage { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 8px 10px; overflow: hidden; }
.present .pref { font-family: var(--f-ui); font-weight: 800; color: #0F766E; margin-bottom: .5em; }
.present.dark .pref { color: #34C3B4; }
.present .ptext { font-family: var(--f-verse); line-height: 1.4; margin: 0; }
.present .note { color: #8A5A00; } .present.dark .note { color: #F2C265; }
.present sup.vn { color: #0F766E; } .present.dark sup.vn { color: #34C3B4; }
.present .pnav { display: flex; gap: 12px; }
.present .pnav button { flex: 1; height: 60px; border-radius: 16px; background: rgba(127,127,127,.28); color: inherit; display: flex; align-items: center; justify-content: center; }
.present .pnav button:disabled { opacity: .35; }
.present .pnav button svg { width: 26px; height: 26px; }

/* ================= Hisn-style navigation ================= */
.hhead { display: flex; align-items: center; gap: 12px; padding: calc(14px + var(--sat)) 0 6px; }
.hhead img { width: 42px; height: 42px; border-radius: 11px; }
.hhead .tx { flex: 1; min-width: 0; }
.hhead b { display: block; font-size: 19px; font-weight: 750; letter-spacing: -.01em; }
.hhead small { display: block; font-size: 13px; color: var(--muted); }
.spill { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 16px; margin-top: 8px; border-radius: 25px; background: var(--surface); border: 1px solid var(--border-2); color: var(--muted); font-size: 15.5px; }
.segtabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 14px 0 4px; background: var(--surface-2); border-radius: 14px; }
.segtabs a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 42px; border-radius: 10px; font-weight: 650; font-size: 14.5px; color: var(--muted); }
.segtabs a svg { width: 18px; height: 18px; }
.segtabs a.on { background: var(--surface); color: var(--accent); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.cgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.ctile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 16px 6px 12px; min-height: 132px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.ctile:active { transform: scale(.97); background: var(--tint); }
.cico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; flex: none; box-shadow: 0 4px 10px color-mix(in srgb, var(--c) 35%, transparent); }
.cico svg { width: 25px; height: 25px; stroke-width: 2; }
.ctile b { font-size: 13.5px; font-weight: 700; line-height: 1.25; color: var(--text); }
.ctile small { font-size: 13px; color: var(--muted); margin-top: auto; }
.qgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qtile { display: flex; align-items: center; gap: 12px; padding: 14px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.qtile > svg { width: 38px; height: 38px; padding: 8px; border-radius: 10px; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); flex: none; }
.qtile b { display: block; font-size: 14px; font-weight: 700; line-height: 1.25; }
.qtile small { display: block; font-size: 13px; color: var(--muted); }
.qtile:active { background: var(--tint); }
.resume { margin-top: 12px; }
.filter { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; margin: 12px 0 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border-2); color: var(--muted); position: sticky; top: calc(6px + var(--sat)); z-index: 5; }
.filter input { flex: 1; border: 0; outline: 0; background: none; font-size: 16px; color: var(--text); min-width: 0; }
.filter input::-webkit-search-cancel-button { -webkit-appearance: none; }
.aset h3 { display: flex; align-items: center; gap: 10px; margin: 22px 2px 8px; font-size: 16px; font-weight: 750; }
.aset h3 .dotc { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.chsub { margin: 14px 4px 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.chsub a { display: flex; justify-content: space-between; color: var(--muted); }
.chsub a span { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--accent); }
.nrow { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 12px; min-height: 60px; color: var(--text); }
.nrow:active { background: var(--tint); }
.nrow .no { min-width: 36px; height: 36px; padding: 0 4px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 750; font-size: 14px; flex: none; font-variant-numeric: tabular-nums; }
.nrow .tx { flex: 1; min-width: 0; }
.nrow b { display: block; font-size: 15.5px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nrow small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nrow .chev { color: var(--muted); width: 20px; height: 20px; }
.shero { display: flex; align-items: center; gap: 14px; margin: 16px 0 6px; padding: 16px; border-radius: 16px; background: color-mix(in srgb, var(--c) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 25%, transparent); }
.shero h1 { margin: 0; font-size: 22px; font-weight: 750; letter-spacing: -.01em; }
.shero p { margin: 3px 0 0; font-size: 14px; color: var(--muted); }
.gno { display: inline-block; margin-right: 6px; padding: 1px 8px; border-radius: 6px; background: var(--accent); color: var(--on-accent); font-weight: 700; }
/* reading toolbar (replaces tab bar on topic pages) */
body.reading #tabbar { display: none; }
body.reading #main { padding-bottom: calc(76px + var(--sab)); }
.tbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: stretch; height: calc(66px + var(--sab)); padding: 0 4px var(--sab); background: var(--surface); border-top: 1px solid var(--border); }
.tbar > * { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.tbar > * svg { width: 22px; height: 22px; }
.tbar .pri { color: var(--on-accent); }
.tbar .pri svg { width: 46px; height: 32px; padding: 5px 12px; border-radius: 16px; background: var(--accent); box-sizing: border-box; }
.tbar .pri span { color: var(--accent); }
.tbar .dis { opacity: .3; }
.tbar a:active, .tbar button:active { background: var(--tint); }
@media (min-width: 960px) { .tbar { left: 280px; } }
#toast { bottom: calc(var(--tabbar-h) + var(--sab) + 20px); }
.sticky-search.solo { padding-top: calc(12px + var(--sat)); }

/* v1.2 — polish */
.cgrid .ctile:last-child:nth-child(3n+1) { grid-column: 1 / -1; flex-direction: row; min-height: 0; text-align: left; padding: 12px 14px; gap: 14px; }
.cgrid .ctile:last-child:nth-child(3n+1) b { flex: 1; font-size: 14.5px; }
.cgrid .ctile:last-child:nth-child(3n+1) small { margin-top: 0; }
.cgrid .ctile:last-child:nth-child(3n+1) .cico { width: 46px; height: 46px; }
.cico svg { stroke-width: 1.9; }
:root[data-theme="dark"] .cico { background: color-mix(in srgb, var(--c) 82%, #000); box-shadow: none; }
:root[data-theme="dark"] .qtile > svg { color: color-mix(in srgb, var(--c) 55%, #fff); background: color-mix(in srgb, var(--c) 24%, transparent); }
:root[data-theme="dark"] .shero { background: color-mix(in srgb, var(--c) 16%, var(--surface)); border-color: color-mix(in srgb, var(--c) 35%, transparent); }
:root[data-theme="dark"] .aset h3 .dotc { background: color-mix(in srgb, var(--c) 60%, #fff); }
.hhead .ib svg { width: 22px; height: 22px; }
.lic { white-space: pre-wrap; font-size: 12px; line-height: 1.45; color: var(--text-2); max-height: 60vh; overflow: auto; background: var(--surface-2); padding: 10px; border-radius: 10px; }
.prose details summary { cursor: pointer; color: var(--accent); font-weight: 600; margin-top: 6px; }
.sel { -webkit-user-select: text; user-select: text; font-weight: 600; color: var(--accent); }

/* v1.3.1 — disclaimer */
.disc { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.dsec { display: flex; gap: 14px; padding: 16px; }
.dsec .dn { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.dsec h2 { margin: 3px 0 6px; font-size: 16.5px; font-weight: 700; }
.dsec p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--text-2); }
.dlink { display: flex; align-items: center; gap: 12px; padding: 14px 14px; color: var(--text); }
.dlink > svg:first-child { color: var(--accent); }
.dlink span { flex: 1; } .dlink b { display: block; font-size: 15px; } .dlink small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; line-height: 1.4; }
.foot-note a { color: var(--accent); font-weight: 600; }
.welcome { padding: 4px 14px 4px; }
.welcome h2 { margin: 0 0 8px; font-size: 19px; font-weight: 750; }
.welcome p { margin: 0 0 12px; font-size: 15.5px; line-height: 1.6; color: var(--text-2); }
.welcome .wlink { display: inline-block; color: var(--accent); font-weight: 600; font-size: 15px; padding: 6px 0 14px; }
.welcome .wbtn { display: block; width: 100%; height: 52px; border-radius: 14px; background: var(--accent); color: var(--on-accent); font-size: 16.5px; font-weight: 700; }

/* v1.4 — Notes, Collections, Guided path, Practice, Backup */
.sheet.tall { max-height: 88vh; overflow-y: auto; }
.wbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 18px; border-radius: 14px; background: var(--accent); color: var(--on-accent); font-size: 16px; font-weight: 700; text-align: center; }
.wbtn svg { width: 19px; height: 19px; }
.wbtn:active { filter: brightness(.94); }
.wbtn.sm { height: 44px; padding: 0 14px; font-size: 15px; border-radius: 12px; flex: none; }
.wbtn.ghost { background: var(--accent-soft); color: var(--accent); }
.btnrow { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 6px; } .btnrow .wbtn { flex: 1 1 140px; }
.nhint { font-size: 13.5px; color: var(--muted); margin: 8px 2px; line-height: 1.5; }
.ib.sm { width: 36px; height: 36px; } .ib.sm svg { width: 18px; height: 18px; } .ib:disabled { opacity: .3; }
/* note editor */
.ned { padding: 0 8px 4px; }
.nedh { display: flex; flex-direction: column; gap: 6px; padding: 0 4px 12px; } .nedh b { font-size: 18px; }
.nlink { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--accent); max-width: 100%; }
.nlink svg { width: 15px; height: 15px; flex: none; } .nlink.plain { color: var(--muted); }
.ned textarea, #restoreTxt { width: 100%; min-height: 170px; resize: vertical; border: 2px solid var(--border-2); border-radius: 14px; padding: 14px; font: 400 16.5px/1.55 var(--f-ui); color: var(--text); background: var(--bg); outline: 0; }
#restoreTxt { min-height: 110px; font-size: 14px; margin-top: 4px; }
.ned textarea:focus, #restoreTxt:focus { border-color: var(--accent); }
.nedb { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; } .nedb .wbtn { width: 100%; }
.nedrow { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sheet .opt.small { min-height: 48px; justify-content: center; gap: 8px; font-size: 15px; background: var(--surface-2); }
.sheet .opt.danger, .sheet .opt.danger svg { color: var(--danger); }
/* note chips under verses */
.vnotes { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.vnote { display: flex; gap: 8px; align-items: flex-start; text-align: left; padding: 10px 12px; border-radius: 12px; background: var(--gold-soft); color: var(--text); font-size: 14.5px; line-height: 1.45; }
.vnote svg { width: 16px; height: 16px; color: var(--gold); flex: none; margin-top: 2px; }
.vnote span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
/* notes list */
.ncard { margin: 10px 0; overflow: hidden; }
.nbody { display: block; width: 100%; text-align: left; padding: 14px 16px 6px; }
.nbody p { margin: 0; font-size: 16px; line-height: 1.55; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; color: var(--text); }
.nmeta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 16px 12px; }
.nmeta .nlink { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; display: inline-flex; }
.ndate { font-size: 12.5px; color: var(--muted); flex: none; }
.tnotes { margin-top: 26px; }
.addnote { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; margin-top: 10px; border: 2px dashed var(--border-2); border-radius: 14px; color: var(--accent); font-weight: 650; font-size: 15px; }
.addnote svg { width: 18px; height: 18px; }
/* library */
.segtabs.lib { grid-template-columns: 1fr 1fr 1fr; }
.segtabs.lib a { gap: 6px; font-size: 13.5px; padding: 0 4px; }
.segtabs .bdg { font-size: 11.5px; font-weight: 700; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--surface-2); color: var(--muted); display: inline-grid; place-items: center; }
.segtabs a.on .bdg { background: var(--accent-soft); color: var(--accent); }
@media (max-width: 370px) { .segtabs.lib a svg { display: none; } }
.libbar { display: flex; align-items: center; gap: 10px; margin: 12px 0 6px; } .libbar .filter { flex: 1; min-width: 0; margin: 0; position: static; } .libbar .cnt { flex: 1; font-size: 13.5px; color: var(--muted); }
.nudge { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 12px 0 4px; background: var(--gold-soft); border-color: transparent; color: var(--text); }
.nudge > svg:first-child { color: var(--gold); width: 24px; height: 24px; flex: none; } .nudge span { flex: 1; } .nudge b { display: block; font-size: 15px; } .nudge small { display: block; color: var(--text-2); font-size: 13px; line-height: 1.4; }
/* collections */
.collist { max-height: 42vh; overflow-y: auto; }
.colopt .cbox { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--border-2); display: grid; place-items: center; flex: none; }
.colopt.on .cbox { background: var(--accent); border-color: var(--accent); } .colopt.on .cbox svg { color: var(--on-accent); width: 16px; height: 16px; }
.colopt .tx b { display: block; font-size: 16px; } .colopt .tx small { display: block; font-size: 13px; color: var(--muted); font-weight: 500; }
.newcol { display: flex; gap: 8px; padding: 12px 6px 4px; }
.newcol input { flex: 1; min-width: 0; height: 46px; border: 2px solid var(--border-2); border-radius: 12px; padding: 0 12px; font-size: 16px; background: var(--bg); color: var(--text); outline: 0; }
.newcol input:focus { border-color: var(--accent); }
.colhero { display: flex; align-items: center; gap: 14px; padding: 16px; margin-top: 16px; }
.colhero .ico { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.colhero h1 { margin: 0; font-size: 20px; } .colhero p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.ordr { display: flex; gap: 2px; }
/* home feature tiles */
.feat2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.ftile { display: flex; align-items: center; gap: 10px; padding: 14px 12px; border-radius: 16px; background: linear-gradient(135deg, #0F766E, #14958A); color: #fff; box-shadow: var(--shadow); }
.ftile.p { background: linear-gradient(135deg, #7C3AED, #9F67F5); }
.ftile > svg { width: 30px; height: 30px; flex: none; }
.ftile b { display: block; font-size: 14.5px; line-height: 1.2; } .ftile small { display: block; font-size: 13px; opacity: .9; margin-top: 2px; }
.ftile:active { filter: brightness(.95); }
/* guided path */
.steps { list-style: none; padding: 0; margin: 12px 0; }
.steps li + li { border-top: 1px solid var(--border); }
.stepper { display: flex; gap: 6px; justify-content: center; margin: 14px 0 4px; flex-wrap: wrap; }
.stepper a { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: var(--surface-2); color: var(--muted); }
.stepper a.past { background: var(--accent-soft); color: var(--accent); } .stepper a.on { background: var(--accent); color: var(--on-accent); }
.saylist { margin: 4px 0 0; padding-left: 20px; } .saylist li { margin: 6px 0; font-size: 16px; line-height: 1.5; }
.sec button { display: inline-flex; align-items: center; gap: 4px; } .sec button svg { width: 16px; height: 16px; }
.obj { margin: 8px 0; overflow: hidden; }
.obj summary { display: flex; align-items: center; gap: 10px; padding: 14px; list-style: none; cursor: pointer; font-weight: 650; font-size: 15.5px; }
.obj summary::-webkit-details-marker { display: none; }
.obj summary > svg:first-child { color: var(--gold); width: 20px; height: 20px; flex: none; } .obj summary span { flex: 1; }
.obj[open] summary .chev { transform: rotate(90deg); }
.objb { padding: 0 16px 14px 44px; } .objb p { margin: 0 0 8px; font-size: 15.5px; line-height: 1.55; color: var(--text-2); }
.objb .more { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 650; font-size: 14.5px; } .objb .more svg { width: 16px; height: 16px; }
/* practice */
.pstat { display: flex; align-items: center; gap: 16px; padding: 16px; margin-top: 16px; }
.pstat .big { font-size: 36px; font-weight: 800; color: var(--accent); line-height: 1; } .pstat .big small { font-size: 18px; color: var(--muted); font-weight: 700; }
.pstat b { display: block; font-size: 16px; } .pstat small { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; margin-top: 2px; }
.h2 { font-size: 15px; font-weight: 700; margin: 20px 2px 8px; }
.page .seg { margin: 0; }
.bar { display: block; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.pprog { display: flex; align-items: center; gap: 12px; margin: 16px 2px 6px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.pprog .bar { flex: 1; margin: 0; }
.lvl { font-size: 12.5px; color: var(--muted); margin: 0 2px 8px; font-weight: 600; }
.fcard { padding: 18px 18px 20px; }
.fq { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.fcard .vt { font-family: var(--f-verse); font-size: var(--verse-size); line-height: var(--verse-lh); margin: 0; }
.fref { font-size: 26px; font-weight: 800; color: var(--accent); } .ftopic { font-size: 14px; color: var(--muted); margin: 4px 0 10px; }
.fcard .fref + .ftopic + .vt, .fcard .fref + .vt { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 12px; }
.opts { display: grid; gap: 8px; margin: 12px 0; }
.popt { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 16px; border-radius: 14px; background: var(--surface); border: 2px solid var(--border-2); font-size: 16.5px; font-weight: 650; color: var(--text); text-align: left; }
.popt svg { width: 22px; height: 22px; flex: none; }
.popt.right { border-color: #16A34A; background: color-mix(in srgb, #16A34A 12%, var(--surface)); } .popt.right svg { color: #16A34A; }
.popt.wrong { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, var(--surface)); } .popt.wrong svg { color: var(--danger); }
.popt.dim { opacity: .55; }
.pfb { margin: 4px 2px 12px; font-size: 15.5px; font-weight: 650; } .pfb.ok { color: #16A34A; } .pfb.no { color: var(--danger); } .pfb a { color: var(--accent); margin-left: 6px; }
:root[data-theme="dark"] .pfb.ok { color: #4ADE80; }
.fcard + .wbtn, .pfb + .wbtn { width: 100%; margin-top: 12px; }
.done { text-align: center; padding: 24px 18px; margin-top: 18px; }
.done h2 { margin: 14px 0 6px; } .done p { color: var(--text-2); margin: 0; }
.ring { --p: 0; width: 120px; height: 120px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--surface-2) 0); }
.ring b { width: 94px; height: 94px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: 24px; }
/* v1.5 — Support the dawah (standalone edition) */
.suptile { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; padding: 16px 16px; margin-top: 18px; border-radius: 18px; color: #3B2A06;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23B7862B' stroke-width='2' opacity='.2'%3E%3Crect x='22' y='22' width='56' height='56'/%3E%3Crect x='22' y='22' width='56' height='56' transform='rotate(45 50 50)'/%3E%3Ccircle cx='50' cy='50' r='14'/%3E%3C/g%3E%3C/svg%3E") right -44px center / 116px no-repeat, linear-gradient(135deg, #FFF6E0 0%, #FBE3B0 100%); border: 1px solid #E8C77E; box-shadow: 0 4px 14px rgba(183,134,43,.18); }
.suptile > svg:first-child { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: linear-gradient(135deg, #C9962E, #A8781C); color: #fff; flex: none; box-shadow: 0 3px 8px rgba(168,120,28,.35); }
.suptile span { flex: 1; position: relative; } .suptile b { display: block; font-size: 16px; color: #3B2A06; } .suptile small { display: block; color: #6B4E12; font-size: 13.5px; margin-top: 2px; line-height: 1.4; }
.suptile .chev { color: #A8781C; position: relative; }
.suptile:active { filter: brightness(.97); }
:root[data-theme="dark"] .suptile { color: #F6E7C4; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23B7862B' stroke-width='2' opacity='.2'%3E%3Crect x='22' y='22' width='56' height='56'/%3E%3Crect x='22' y='22' width='56' height='56' transform='rotate(45 50 50)'/%3E%3Ccircle cx='50' cy='50' r='14'/%3E%3C/g%3E%3C/svg%3E") right -44px center / 116px no-repeat, linear-gradient(135deg, #2A2112 0%, #3D2F12 100%); border-color: #6E5520; box-shadow: none; }
:root[data-theme="dark"] .suptile b { color: #FBEFD2; } :root[data-theme="dark"] .suptile small { color: #E3C98E; } :root[data-theme="dark"] .suptile .chev { color: #F2C265; }
.suphead { color: var(--gold); } .suphead svg { width: 23px !important; height: 23px !important; }
.suppill { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 18px; border: 1.5px solid color-mix(in srgb, var(--gold) 45%, transparent); color: var(--gold); font-size: 13.5px; font-weight: 700; flex: none; }
.suppill svg { width: 17px; height: 17px; }
.suppill:active { background: var(--gold-soft); }
.spay .h { display: flex; align-items: center; gap: 8px; } .spay .h svg { width: 18px; height: 18px; color: var(--accent); }
.spay > .wbtn { display: flex; width: calc(100% - 32px); margin: 4px 16px 16px; }
.wbtn.kofi { background: #FF5E5B; color: #fff; }
.cprow { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--border); }
.cprow .tx { flex: 1; min-width: 0; } .cprow small { display: block; font-size: 12.5px; color: var(--muted); } .cprow b { display: block; font-size: 16.5px; word-break: break-all; }
.cprow b.sel { color: var(--text); }
.steps2 { margin: 4px 16px 14px; padding-left: 20px; color: var(--text-2); font-size: 14.5px; line-height: 1.55; } .steps2 li { margin: 4px 0; }
.hhead .brandk { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 1px; }
.dua { text-align: center; padding: 16px 18px; margin: 12px 0; background: var(--gold-soft); border-color: transparent; }
.dua .ar { display: block; font-family: 'Amiri', 'Noto Naskh Arabic', serif; font-size: 26px; color: var(--gold); margin-bottom: 4px; }
.dua p { margin: 0; font-family: var(--f-verse); font-size: 17.5px; font-style: italic; color: var(--text); line-height: 1.5; }
.wbtn.lg { background: #1BA35A; color: #fff; }
.upcoming .row { min-height: 0; } .upcoming .t1 small { color: var(--accent); font-weight: 700; font-size: 12.5px; }

/* Wordmark (style D): small Cinzel family name + Literata product name */
.wmark .fam { display: block; font: 600 12px/1 'Cinzel', Georgia, serif; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.wmark b { display: block; font: 600 21px/1.15 var(--f-verse); color: var(--text); margin-top: 3px; }
.wmark small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.wmark.big { display: flex; width: 100%; flex-direction: column; align-items: center; margin-top: 12px; }
.wmark.big .fam { font-size: 14px; } .wmark.big b { font-size: 30px; margin-top: 6px; }
.brand .wmark .fam { font-size: 10.5px; } .brand .wmark b { font-size: 17px; }
/* Support page — uses & roadmap */
.uses { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.use { display: flex; flex-direction: column; gap: 8px; padding: 14px; }
.use .uico, .rico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); flex: none; }
.use .uico svg, .rico svg { width: 21px; height: 21px; }
.use b { display: block; font-size: 15px; } .use small { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.road { overflow: hidden; }
.rnow, .ritem { display: flex; align-items: flex-start; gap: 12px; padding: 13px 14px; }
.ritem + .ritem { border-top: 1px solid var(--border); }
.rnow { align-items: center; background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.rico.now { background: var(--accent); color: var(--on-accent); }
.rico { background: var(--accent-soft); color: var(--accent); }
.rnow small, .ritem small { display: block; font: 600 10.5px/1 'Cinzel', Georgia, serif; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 3px 0 3px; }
.rnow b, .ritem b { display: block; font-size: 15.5px; }
.ritem em { display: block; font-style: normal; font-size: 13.5px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.rgroup { margin: 18px 2px 8px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); } .rgroup span { font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); }
.booksnote { display: flex; gap: 12px; align-items: flex-start; padding: 14px; margin-top: 10px; background: var(--gold-soft); border-color: transparent; }
.booksnote .rico { background: var(--gold); color: #fff; } .booksnote b { display: block; font-size: 15.5px; } .booksnote small { display: block; font-size: 13.5px; color: var(--text-2); line-height: 1.45; margin-top: 2px; }
.wbtn.wide { display: flex; width: 100%; margin-top: 16px; }
@media (max-width: 350px) { .uses { grid-template-columns: 1fr; } }

.promise { margin-top: 18px; padding: 4px 0 8px; border-color: color-mix(in srgb, var(--accent) 30%, transparent); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.promise .h { display: flex; align-items: center; gap: 8px; padding: 14px 16px 4px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); } .promise .h svg { width: 18px; height: 18px; color: var(--accent); }
.promise ul { list-style: none; margin: 0; padding: 0 16px 6px; }
.promise li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-size: 15px; line-height: 1.5; color: var(--text); }
.promise li + li { border-top: 1px solid var(--border); }
.promise li svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 3px; }

.wayah { margin: 2px 0 16px; padding: 16px 14px 14px; border-radius: 16px; text-align: center; background: var(--gold-soft); }
.wayah .ar { margin: 0 0 8px; font-family: 'Amiri', 'Noto Naskh Arabic', serif; font-size: 25px; line-height: 1.9; color: var(--text); }
.wayah blockquote { margin: 0; font-family: var(--f-verse); font-style: italic; font-size: 16px; line-height: 1.5; color: var(--text-2); }
.wayah figcaption { margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--gold); }

/* v1.5 polish */
.verse .acts .ib.dot { position: relative; }
.verse .acts .ib.dot::after { content: ""; position: absolute; top: 10px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.sheet .opt .tx { display: flex; flex-direction: column; } .sheet .opt .tx small { font-size: 13px; font-weight: 500; color: var(--muted); }
@media (max-width: 380px) { .hhead { gap: 10px; } .hhead .wmark b { font-size: 18.5px; white-space: nowrap; } .hhead .wmark .fam { font-size: 11px; } .hhead .ib { width: 42px; } }
.hhead .wmark b { white-space: nowrap; }

body.unofficial #tabbar, body.unofficial #sidebar { display: none; }
.unoff .empty { padding-top: 80px; } .unoff .empty svg { color: var(--danger); width: 48px; height: 48px; } .unoff .empty p { margin-top: 10px; }
.feat2.one { grid-template-columns: 1fr; }
