@font-face { font-family: "Serambi Arab"; src: url("fonts/scheherazade-new-arabic-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Serambi Arab"; src: url("fonts/scheherazade-new-arabic-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
/* Serambi — portal ibadah keluarga
   Layout: aplikasi satu layar; navigasi bawah di ponsel, rel samping di layar lebar. */
:root {
  --bg: #F2F4EF;
  --surface: #FFFFFF;
  --ink: #15241F;
  --muted: #5D6E67;
  --line: #DCE3DD;
  --hijau: #0F4A3C;
  --hijau-2: #1D6B57;
  --emas: #B8892E;
  --emas-soft: #F3E7C9;
  --tint: #E6EEE9;
  --ok: #2E7D4F;
  --warn: #B4561E;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --arab: "Serambi Arab", "Scheherazade New", "Amiri", "Traditional Arabic", serif;
  --r: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1915; --surface: #11241F; --ink: #E7EEE9; --muted: #9DB0A8; --line: #23392F;
    --hijau: #7FC7AE; --hijau-2: #5FAF94; --emas: #DDB65E; --emas-soft: #3A3220; --tint: #183229;
    --ok: #6CC08E; --warn: #E89A62; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B1915; --surface: #11241F; --ink: #E7EEE9; --muted: #9DB0A8; --line: #23392F;
  --hijau: #7FC7AE; --hijau-2: #5FAF94; --emas: #DDB65E; --emas-soft: #3A3220; --tint: #183229;
  --ok: #6CC08E; --warn: #E89A62; color-scheme: dark;
}

* { box-sizing: border-box; }
html { font-size: var(--fs, 15px); }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--ink); font: 1rem/1.55 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.2; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: 1.75rem; } h2 { font-size: 1.3rem; } h3 { font-size: 1.05rem; }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--hijau-2); }
:focus-visible { outline: 2px solid var(--emas); outline-offset: 2px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; }
.ar { font-family: var(--arab); direction: rtl; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- shell ---------- */
.app { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100%; }
.rail { display: none; }
.topbar { position: sticky; top: 0; z-index: 20; background: var(--hijau); color: #F4EFE0; padding: 12px 16px; display: flex; align-items: center; gap: 12px; }
:root[data-theme="dark"] .topbar { background: #0E2E26; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .topbar { background: #0E2E26; } }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand b { font-family: var(--display); font-size: 1.25rem; font-weight: 600; letter-spacing: .01em; }
.brand small { display: block; font-size: .7rem; opacity: .75; letter-spacing: .08em; text-transform: uppercase; }
.topbar .spacer { flex: 1; }
.chip-loc { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 6px 12px; font-size: .82rem; cursor: pointer; display: flex; gap: 6px; align-items: center; max-width: 52vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { background: transparent; border: 0; color: inherit; width: 36px; height: 36px; border-radius: 10px; cursor: pointer; display: grid; place-items: center; }
.icon-btn:hover { background: rgba(255,255,255,.12); }

main { padding: 16px 16px 96px; max-width: 1100px; width: 100%; margin: 0 auto; }
.view { display: none; flex-direction: column; gap: 16px; }
.view.on { display: flex; }

.tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(6, 1fr); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.tabbar a, .rail a { text-decoration: none; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .68rem; font-weight: 600; padding: 6px 0; border-radius: 10px; }
.tabbar a svg, .rail a svg { width: 22px; height: 22px; }
.tabbar a.on, .rail a.on { color: var(--hijau); }
.tabbar a.on svg { stroke: var(--emas); }

@media (min-width: 900px) {
  .app { grid-template-columns: 210px minmax(0, 1fr); }
  .rail { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; padding: 18px 12px; background: var(--surface); border-right: 1px solid var(--line); }
  .rail .brand { color: var(--ink); padding: 4px 8px 18px; }
  .rail .brand small { color: var(--muted); }
  .rail a { flex-direction: row; gap: 12px; font-size: .92rem; padding: 10px 12px; }
  .rail a.on { background: var(--tint); }
  .rail .foot { margin-top: auto; font-size: .75rem; color: var(--muted); padding: 8px; }
  .tabbar { display: none; }
  .topbar .brand { display: none; }
  main { padding: 24px 28px 48px; }
}

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.card-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.eyebrow { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--emas); font-weight: 700; }
.grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .g2 { grid-template-columns: 1.2fr 1fr; } .g3 { grid-template-columns: repeat(3, 1fr); } }
.btn { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 8px 14px; cursor: pointer; font-weight: 600; font-size: .88rem; display: inline-flex; align-items: center; gap: 6px; }
.btn:hover { border-color: var(--hijau-2); }
.btn.pri { background: var(--hijau); border-color: var(--hijau); color: #F4EFE0; }
:root[data-theme="dark"] .btn.pri { color: #0B1915; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.pri { color: #0B1915; } }
.seg { display: inline-flex; background: var(--tint); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: .85rem; color: var(--muted); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; background: var(--tint); color: var(--hijau); }
.pill.gold { background: var(--emas-soft); color: var(--emas); }
.pill.warn { background: color-mix(in srgb, var(--warn) 15%, transparent); color: var(--warn); }
input[type=search], select, .field { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 10px 12px; }
label.lbl { font-size: .78rem; font-weight: 700; color: var(--muted); display: block; margin-bottom: 4px; }

/* ---------- hero (beranda) ---------- */
.hero { position: relative; overflow: hidden; background: var(--hijau); color: #F4EFE0; border-radius: 18px; padding: 20px; display: grid; gap: 14px; }
:root[data-theme="dark"] .hero { background: #0E2E26; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero { background: #0E2E26; } }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .16; pointer-events: none; }
.hero > * { position: relative; }
.hero .dates { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.hero .hijri { font-family: var(--display); font-size: 1.6rem; line-height: 1.1; }
.hero .hijri-ar { font-family: var(--arab); font-size: 1.3rem; color: #E6C77A; }
.hero .masehi { font-size: .9rem; opacity: .85; }
.next { display: flex; align-items: center; gap: 16px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 14px; flex-wrap: wrap; }
.next .big { font-family: var(--display); font-size: 2.4rem; line-height: 1; font-variant-numeric: tabular-nums; }
.next .lbl2 { font-size: .78rem; opacity: .8; text-transform: uppercase; letter-spacing: .08em; }
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
@media (min-width: 560px) { .strip { grid-template-columns: repeat(8, 1fr); } }
.strip div { background: rgba(255,255,255,.06); border-radius: 10px; padding: 8px 4px; text-align: center; }
.strip div b { display: block; font-size: 1rem; font-variant-numeric: tabular-nums; }
.strip div span { font-size: .68rem; opacity: .8; }
.strip div.now { background: #E6C77A; color: #10261F; }
.strip div.past { opacity: .55; }

/* ---------- jadwal ---------- */
.times { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 560px) { .times { grid-template-columns: repeat(4, 1fr); } }
.t { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.t span { font-size: .78rem; color: var(--muted); font-weight: 600; }
.t b { font-family: var(--display); font-size: 1.5rem; font-variant-numeric: tabular-nums; font-weight: 600; }
.t.wajib { border-left: 3px solid var(--hijau-2); }
.t.now { background: var(--emas-soft); border-color: var(--emas); }
.t.now span { color: var(--emas); }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; max-height: 480px; }
table.tbl { border-collapse: collapse; width: 100%; font-size: .85rem; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { padding: 7px 10px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th { position: sticky; top: 0; background: var(--tint); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.tbl td:first-child, .tbl th:first-child { text-align: left; }
.tbl tr.today td { background: var(--emas-soft); font-weight: 700; }
.tbl tr.jumat td:first-child { color: var(--hijau-2); font-weight: 700; }
.compass { width: 170px; height: 170px; margin: 0 auto; display: block; }
.picker { display: grid; gap: 10px; }
@media (min-width: 640px) { .picker { grid-template-columns: 1fr 1.4fr; } }
.suggest { border: 1px solid var(--line); border-radius: 10px; max-height: 240px; overflow: auto; margin-top: 6px; background: var(--surface); }
.suggest button { display: flex; width: 100%; text-align: left; justify-content: space-between; gap: 8px; border: 0; background: transparent; padding: 9px 12px; cursor: pointer; border-bottom: 1px solid var(--line); }
.suggest button:hover { background: var(--tint); }
.suggest small { color: var(--muted); }

/* ---------- kalender ---------- */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal .dow { font-size: .7rem; text-align: center; color: var(--muted); font-weight: 700; text-transform: uppercase; padding: 4px 0; }
.cal .dow.fri { color: var(--hijau-2); }
.day { min-height: 74px; border: 1px solid var(--line); border-radius: 10px; padding: 5px 6px; background: var(--surface); display: flex; flex-direction: column; gap: 1px; cursor: pointer; text-align: left; position: relative; }
.day.out { opacity: .38; }
.day .m { font-weight: 700; font-variant-numeric: tabular-nums; }
.day .h { font-family: var(--arab); color: var(--emas); font-size: 1.05rem; line-height: 1; position: absolute; top: 5px; right: 7px; }
.day .p { font-size: .62rem; color: var(--muted); }
.day .ev { font-size: .62rem; font-weight: 700; color: var(--hijau-2); line-height: 1.15; margin-top: auto; }
.day.hb { background: var(--emas-soft); border-color: var(--emas); }
.day.today { outline: 2px solid var(--hijau-2); outline-offset: -2px; }
.day.sel { box-shadow: 0 0 0 2px var(--emas) inset; }
.day .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); display: inline-block; }
.day .dot.haram { background: var(--warn); }
@media (max-width: 520px) { .day { min-height: 58px; padding: 4px; } .day .p { display: none; } .day .ev { font-size: .56rem; } .day .h { font-size: .9rem; } }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .78rem; color: var(--muted); align-items: center; }
.events { display: flex; flex-direction: column; gap: 8px; }
.ev-row { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ev-row:last-child { border-bottom: 0; }
.ev-date { text-align: center; background: var(--tint); border-radius: 10px; padding: 6px 4px; }
.ev-date b { display: block; font-family: var(--display); font-size: 1.3rem; line-height: 1; }
.ev-date span { font-size: .66rem; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: .86rem; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- quran ---------- */
.surah-list { display: grid; gap: 8px; }
@media (min-width: 640px) { .surah-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .surah-list { grid-template-columns: repeat(3, 1fr); } }
.surah-item { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; text-align: left; width: 100%; }
.surah-item:hover { border-color: var(--hijau-2); }
.badge-no { width: 38px; height: 38px; display: grid; place-items: center; font-weight: 700; font-size: .85rem; color: var(--hijau); position: relative; }
.badge-no svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.badge-no b { position: relative; }
.surah-item .nm { font-weight: 700; }
.surah-item .meta { font-size: .76rem; color: var(--muted); }
.surah-item .ar { font-size: 1.45rem; color: var(--hijau); }
.reader-head { text-align: center; display: grid; gap: 6px; padding: 22px 16px; background: var(--hijau); color: #F4EFE0; border-radius: 18px; position: relative; overflow: hidden; }
:root[data-theme="dark"] .reader-head { background: #0E2E26; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .reader-head { background: #0E2E26; } }
.reader-head .ar { font-size: 2.2rem; color: #E6C77A; line-height: 1.3; }
.reader-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: space-between; position: sticky; top: 58px; z-index: 10; background: var(--bg); padding: 8px 0; }
@media (min-width: 900px) { .reader-tools { top: 0; } }
.bismillah { text-align: center; font-family: var(--arab); font-size: 2rem; color: var(--hijau); padding: 8px 0; }
.ayat { padding: 18px 4px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.ayat .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ayat .actions { display: flex; gap: 4px; }
.ayat .actions button { border: 0; background: transparent; color: var(--muted); padding: 6px; border-radius: 8px; cursor: pointer; font-size: .78rem; font-weight: 600; }
.ayat .actions button:hover { background: var(--tint); color: var(--ink); }
.ayat .arab { font-family: var(--arab); direction: rtl; text-align: right; font-size: var(--qsize, 2rem); line-height: 2.1; color: var(--ink); }
.ayat .latin { color: var(--hijau-2); font-style: italic; font-size: .95rem; }
.ayat .terj { font-size: .95rem; max-width: 72ch; }
.ayat.mark { background: linear-gradient(90deg, var(--emas-soft), transparent 70%); border-radius: 10px; padding-left: 12px; }
.no-ayat { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 50%; border: 1.5px solid var(--emas); color: var(--emas); font-weight: 700; font-size: .78rem; }
.hide-latin .latin, .hide-terj .terj { display: none; }
.juz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.juz-grid button { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 12px; cursor: pointer; text-align: left; }
.juz-grid button b { font-family: var(--display); font-size: 1.15rem; display: block; }
.juz-grid button span { font-size: .74rem; color: var(--muted); }
.lastread { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--emas-soft); border: 1px solid var(--emas); border-radius: 12px; padding: 12px 14px; }

/* ---------- tajwid ---------- */
.rule-nav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.rule-nav button { flex: none; }
.rule { display: grid; gap: 12px; border-left: 4px solid var(--c, var(--hijau-2)); }
.rule .rh { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.rule .rh .ar { font-size: 1.5rem; color: var(--c); }
.huruf { display: flex; gap: 6px; flex-wrap: wrap; direction: rtl; }
.huruf span { font-family: var(--arab); font-size: 1.5rem; min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; background: var(--tint); }
.contoh { display: grid; gap: 8px; }
.contoh .ex { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--c) 9%, transparent); }
.contoh .ex .ar { font-size: 1.8rem; line-height: 1.8; text-align: right; color: var(--ink); }
.contoh .ex .ar mark { background: transparent; color: var(--c); }
.contoh .ex small { color: var(--muted); }
.quiz { display: grid; gap: 12px; }
.quiz .q-ar { font-family: var(--arab); font-size: 2.2rem; text-align: center; direction: rtl; padding: 10px; line-height: 1.8; }
.opts { display: grid; gap: 8px; }
@media (min-width: 560px) { .opts { grid-template-columns: 1fr 1fr; } }
.opts button { border: 1.5px solid var(--line); background: var(--surface); border-radius: 12px; padding: 12px; cursor: pointer; font-weight: 600; text-align: left; }
.opts button.right { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.opts button.wrong { border-color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); }
.progress { height: 6px; background: var(--tint); border-radius: 999px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--emas); border-radius: 999px; transition: width .3s; }
.waqaf { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.waqaf div { border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: grid; gap: 4px; }
.waqaf .ar { font-size: 1.8rem; color: var(--emas); line-height: 1.2; }

/* ---------- iqro ---------- */
.jilid-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 640px) { .jilid-row { grid-template-columns: repeat(6, 1fr); } }
.jilid { border: 1.5px solid var(--line); background: var(--surface); border-radius: 14px; padding: 12px 10px; cursor: pointer; text-align: left; display: grid; gap: 4px; }
.jilid b { font-family: var(--display); font-size: 1.5rem; line-height: 1; }
.jilid span { font-size: .72rem; color: var(--muted); line-height: 1.3; }
.jilid.on { border-color: var(--emas); background: var(--emas-soft); }
.stars { color: var(--emas); font-size: .8rem; letter-spacing: 1px; }
.hijaiyah { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 8px; direction: rtl; }
.hijaiyah button { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 8px 4px; cursor: pointer; display: grid; gap: 0; justify-items: center; }
.hijaiyah button .ar { font-size: 2.2rem; line-height: 1.3; color: var(--hijau); }
.hijaiyah button small { direction: ltr; font-size: .72rem; color: var(--muted); font-weight: 600; }
.hijaiyah button.on { border-color: var(--emas); background: var(--emas-soft); }
.drill { display: grid; gap: 10px; }
.drill-row { display: flex; flex-direction: row-reverse; flex-wrap: wrap; gap: 8px; justify-content: flex-start; }
.syl { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 6px 14px 2px; cursor: pointer; display: grid; justify-items: center; min-width: 74px; }
.syl .ar { font-size: 2.4rem; line-height: 1.6; }
.syl small { font-size: .78rem; color: var(--hijau-2); font-weight: 700; visibility: hidden; height: 1.2em; }
.show-lat .syl small, .syl.reveal small { visibility: visible; }
.syl.done { background: var(--tint); border-color: var(--hijau-2); }
.letter-big { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.letter-big .ar { font-size: 5rem; line-height: 1.2; color: var(--hijau); min-width: 100px; text-align: center; }
.forms { display: flex; gap: 10px; direction: rtl; flex-wrap: wrap; }
.forms div { text-align: center; }
.forms .ar { font-size: 1.8rem; display: block; }
.forms small { color: var(--muted); font-size: .7rem; direction: ltr; display: block; }

.note { font-size: .8rem; color: var(--muted); border-left: 3px solid var(--emas); padding-left: 10px; }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: .85rem; z-index: 50; opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

.ayah-no { display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; padding: 0 .2em; margin: 0 .15em; border: 1.5px solid var(--emas); border-radius: 50%; color: var(--emas); font-size: .55em; line-height: 1; vertical-align: middle; }

/* ukuran tulisan */
.fs-btn { font-family: var(--display); font-weight: 600; font-size: 1rem; width: auto; padding: 0 8px; }
.fs-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.fs-pick button { border: 1.5px solid var(--line); background: var(--surface); border-radius: 12px; padding: 12px 6px; cursor: pointer; display: grid; gap: 4px; justify-items: center; }
.fs-pick button b { font-family: var(--display); line-height: 1; }
.fs-pick button span { font-size: .75rem; color: var(--muted); font-weight: 600; }
.fs-pick button.on { border-color: var(--emas); background: var(--emas-soft); }
.src { display: grid; gap: 0; }
.src > div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.src > div:last-child { border-bottom: 0; }
@media (min-width: 700px) { .src > div { grid-template-columns: 200px 1fr; gap: 16px; } }
.src dt { font-weight: 700; } .src dd { margin: 0; color: var(--muted); font-size: .9rem; }
.src dd b { color: var(--ink); font-weight: 600; }
:root.fs-xl .strip { grid-template-columns: repeat(4, 1fr); }
:root.fs-xl .tabbar a { font-size: .58rem; }
:root.fs-xl .times { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 520px) { .topbar { gap: 6px; padding: 10px 12px; } .topbar .brand small { display: none; } .topbar .brand b { font-size: 1.05rem; } .chip-loc { max-width: 34vw; padding: 6px 10px; } .topbar .icon-btn { width: 32px; } }
.grid > *, .view > *, .card { min-width: 0; }
.grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .g2 { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
h1, h2, p { overflow-wrap: anywhere; }

/* aplikasi terpasang */
.topbar { padding-top: max(12px, env(safe-area-inset-top)); }
.install { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; background: var(--tint); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.install img { width: 52px; height: 52px; border-radius: 12px; flex: none; }
.install .txt { flex: 1; min-width: 180px; }
.install ol { margin: 6px 0 0; padding-left: 20px; font-size: .88rem; color: var(--muted); }
@media (display-mode: standalone) { .install { display: none; } }
