/* View-specific styles: check-in, Quran reader, statistics, search, sources, khatma setup. */

/* ---------- session check-in ---------- */
.checkin__lead { color: var(--muted); font-size: 14px; margin: 0 0 12px; line-height: 1.8; }
.question { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; margin-bottom: 10px; }
.question p { margin: 0 0 10px; font-size: 16px; font-weight: 700; }
.question small { display: block; color: var(--muted); font-size: 12.5px; margin: -4px 0 10px; line-height: 1.7; }
.yesno { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.yesno button { min-height: 48px; border-radius: 12px; background: var(--surface-2); font-family: var(--font-display); font-size: 16px; }
.yesno button[aria-pressed="true"] { background: var(--acc); color: var(--acc-ink); }
.checkin__actions { display: flex; gap: 8px; margin-top: 14px; }
.checkin__actions .pill-btn { flex: 1; }

/* ---------- Quran reader ---------- */
.reader__bar { display: flex; align-items: center; gap: 6px; }
.reader__title { flex: 1; min-width: 0; }
.reader__title b { display: block; font-family: var(--font-display); color: var(--acc); font-size: 18px; }
.reader__title span { font-size: 12.5px; color: var(--muted); }
.mushaf {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 14px;
  margin: 10px 0; font-family: var(--font-quran); font-size: calc(23px * var(--fs)); line-height: 2.25; text-align: justify;
}
.surah-banner {
  font-family: var(--font-display); text-align: center; color: var(--acc); font-size: 18px;
  border: 1.5px solid var(--acc); border-radius: 14px; padding: 6px; margin: 6px 0 8px; background: var(--acc-soft);
}
.basmala { text-align: center; margin: 0 0 6px; }
.reader__nav {
  /* bottom: minus the panel's bottom padding, so the bar meets the screen edge with nothing showing under it */
  display: flex; gap: 8px; position: sticky; bottom: calc(-20px - env(safe-area-inset-bottom)); z-index: 1; background: var(--bg);
  margin: 0 -16px; padding: 8px 16px calc(10px + env(safe-area-inset-bottom));
}
.reader__nav .pill-btn { flex: 1; min-width: 0; }
.reader__nav .pill-btn:not(.ghost) { flex: 1.5; }
.reader__state { text-align: center; font-size: 13px; color: var(--muted); margin-top: 6px; }
.reader__jump { display: flex; gap: 8px; margin: 8px 0 0; }
.reader__jump input { flex: 1; }

/* ---------- statistics ---------- */
.level { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.level .ring { width: 92px; height: 92px; }
.level h3 { margin: 0; font-family: var(--font-display); color: var(--acc); font-size: 22px; }
.level p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px; text-align: center; }
.kpi b { display: block; font-family: var(--font-display); font-size: 22px; color: var(--acc); line-height: 1.3; }
.kpi span { font-size: 12px; color: var(--muted); }
.stats-title { font-family: var(--font-display); font-size: 15px; margin: 16px 0 8px; }
.bars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; align-items: end; height: 140px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px 10px 0; }
.bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.bar i { display: block; width: 100%; max-width: 26px; border-radius: 7px 7px 0 0; background: var(--acc); min-height: 3px; }
.bar small { font-size: 10.5px; color: var(--muted); padding-bottom: 6px; white-space: nowrap; }
.bar em { font-style: normal; font-family: var(--font-display); font-size: 10px; color: var(--muted); }
.prow { display: grid; grid-template-columns: 100px 1fr 46px; gap: 8px; align-items: center; padding: 6px 0; font-size: 13px; }
.prow .track { height: 12px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.prow .track i { display: block; height: 100%; border-radius: 99px; }
.prow b { font-family: var(--font-display); font-size: 12px; color: var(--muted); }
.heat { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px; }
.heat i { aspect-ratio: 1; border-radius: 6px; background: var(--surface-2); display: block; }
.legend { display: flex; gap: 6px; align-items: center; justify-content: flex-end; font-size: 11px; color: var(--muted); margin-top: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* ---------- search & sources ---------- */
.results { list-style: none; padding: 0; margin: 10px 0 0; }
.results button { width: 100%; text-align: start; padding: 10px 12px; border-radius: 12px; display: block; }
.results button:hover { background: var(--surface-2); }
.results b { display: block; font-size: 14px; }
.results span { font-size: 12.5px; color: var(--muted); }
.empty { color: var(--muted); text-align: center; padding: 20px; }
.sources h3 { font-family: var(--font-display); font-size: 16px; margin: 14px 0 6px; color: var(--acc); }
.sources ol { margin: 0; padding: 0; list-style: none; }
.sources li { display: grid; grid-template-columns: 28px 1fr; gap: 4px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.sources li i { font-style: normal; font-family: var(--font-display); color: var(--acc); }
.sources li small { display: block; color: var(--muted); font-size: 12px; }
.books { font-size: 13.5px; line-height: 1.9; padding-inline-start: 18px; }
.keys { list-style: none; padding: 0; margin: 0; }
.keys li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }

/* ---------- khatma setup ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: 8px 0; }
.plan-opt { background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; padding: 12px; text-align: start; min-height: 72px; }
.plan-opt b { display: block; font-family: var(--font-display); font-size: 16px; color: var(--ink); }
.plan-opt span { font-size: 12.5px; color: var(--muted); }
.plan-opt[aria-pressed="true"] { border-color: var(--acc); background: var(--acc-soft); }
.split { list-style: none; padding: 0; margin: 8px 0; }
.split li { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.diag { font-size: 12.5px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px; line-height: 1.8; margin-top: 8px; }

/* ---------- Mushaf hub: free reading, index, Quran search ---------- */
.mx-search { display: flex; align-items: center; }
.mx-search__icon { position: absolute; inset-inline-start: 14px; color: var(--muted); pointer-events: none; }
.mx-search__icon svg { width: 20px; height: 20px; }
.mx-search__input {
  width: 100%; min-height: 54px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--surface);
  padding: 0 46px; font-size: 17px; box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s;
}
.mx-search__input:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 4px var(--acc-soft); }
.mx-search__input::-webkit-search-cancel-button { display: none; }
.mx-search__clear {
  position: absolute; inset-inline-end: 8px; width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center; color: var(--muted);
}
.mx-search__clear:hover { background: var(--surface-2); }
.mx-search__clear svg { width: 18px; height: 18px; }

.mx-continue { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 4px; }
.mx-card {
  text-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 12px 14px; display: grid; gap: 2px; box-shadow: var(--shadow); transition: transform .12s, border-color .15s;
}
.mx-card:hover { border-color: var(--acc); }
.mx-card:active { transform: scale(.985); }
.mx-card.is-free { background: var(--acc-soft); border-color: transparent; }
.mx-card__icon { color: var(--acc); margin-bottom: 4px; }
.mx-card__icon svg { width: 24px; height: 24px; }
.mx-card b { font-family: var(--font-display); font-size: 16px; color: var(--acc); }
.mx-card span { font-size: 13px; line-height: 1.6; }
.mx-card small { font-size: 11.5px; color: var(--muted); }

.mx-label { font-family: var(--font-display); font-size: 13px; color: var(--muted); margin: 16px 0 8px; }
.mx-link { font-size: 12.5px; color: var(--muted); text-decoration: underline; margin-top: 8px; }
.mx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mx-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px;
  border-radius: 999px; background: var(--surface-2); font-size: 14px; transition: background .15s;
}
.mx-chip:hover, .mx-chip:focus-visible { background: var(--acc-soft); }
.mx-chip.is-recent span { color: var(--muted); }
.mx-chip.is-recent svg { width: 13px; height: 13px; }
.mx-chip.is-surah { background: var(--surface); border: 1.5px solid var(--acc); color: var(--acc); font-family: var(--font-display); }
.mx-chip i { font-style: normal; font-size: 11px; opacity: .75; }

.mx-tabs { display: flex; gap: 6px; margin: 18px 0 10px; padding: 4px; background: var(--surface-2); border-radius: 14px; }
.mx-tabs button { flex: 1; min-height: 38px; border-radius: 10px; font-family: var(--font-display); font-size: 14px; color: var(--muted); }
.mx-tabs button[aria-selected="true"] { background: var(--surface); color: var(--acc); box-shadow: var(--shadow); }

.mx-surahs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 14px; }
.mx-surahs li { border-bottom: 1px solid var(--line); }
.mx-surah {
  width: 100%; display: grid; grid-template-columns: 40px 1fr auto; grid-template-rows: auto auto;
  column-gap: 10px; align-items: center; text-align: start; padding: 8px 6px; border-radius: 10px;
}
.mx-surah:hover, .mx-surah:focus-visible { background: var(--surface-2); }
.mx-surah i {
  grid-row: span 2; width: 34px; height: 34px; display: grid; place-items: center; font-style: normal;
  font-family: var(--font-display); font-size: 12px; color: var(--acc); position: relative; isolation: isolate;
}
.mx-surah i::before, .mx-surah i::after {
  content: ""; position: absolute; inset: 4px; background: var(--acc-soft); border-radius: 6px; z-index: -1;
}
.mx-surah i::after { transform: rotate(45deg); }
.mx-surah b { font-family: var(--font-display); font-size: 16px; }
.mx-surah span { font-size: 12px; color: var(--muted); grid-column: 2; }
.mx-surah em { grid-row: 1 / span 2; grid-column: 3; font-style: normal; font-size: 12px; color: var(--muted); }

.mx-juz { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.mx-juz button {
  text-align: start; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
  display: grid; gap: 2px;
}
.mx-juz button:hover, .mx-juz button:focus-visible { border-color: var(--acc); }
.mx-juz b { font-family: var(--font-display); font-size: 14px; color: var(--acc); }
.mx-juz span { font-size: 12px; color: var(--muted); }

.mx-results { padding-bottom: 20px; }
.mx-jumps { display: grid; gap: 8px; margin: 6px 0 4px; }
.mx-jump {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; border-radius: 16px;
  background: var(--acc); color: var(--acc-ink); text-align: start;
}
.mx-jump svg { width: 20px; height: 20px; }
.mx-jump b { flex: 1; font-family: var(--font-display); font-size: 15px; }
.mx-jump em { font-style: normal; font-size: 12.5px; opacity: .85; }
.mx-jump + .mx-jump { background: var(--surface-2); color: var(--ink); }

.mx-status { font-size: 13px; color: var(--muted); margin: 14px 2px 8px; }
.mx-status b { color: var(--ink); font-family: var(--font-display); }
.mx-status small { opacity: .7; }
.mx-hits { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mx-hit {
  width: 100%; text-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 10px 14px 6px; box-shadow: var(--shadow); transition: border-color .15s, transform .12s;
  content-visibility: auto; contain-intrinsic-size: auto 140px;
}
.mx-hit:hover, .mx-hit:focus-visible { border-color: var(--acc); }
.mx-hit:active { transform: scale(.99); }
.mx-hit__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.mx-hit__head b { font-family: var(--font-display); font-size: 14px; color: var(--acc); }
.mx-hit__head span { font-size: 11.5px; color: var(--muted); }
.mx-ayah { font-size: calc(20px * var(--fs)); line-height: 2.1; }
.mx-ayah mark, .ayah mark {
  background: var(--acc-soft); color: var(--acc); border-radius: 6px;
  box-shadow: 0 0 0 2px var(--acc-soft); padding: 0 1px;
}
.mx-divider { font-family: var(--font-display); font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.mx-divider::before, .mx-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.mx-more { text-align: center; }

/* global search → Quran */
.mx-to-quran {
  width: 100%; display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 12px 14px;
  border-radius: 14px; background: var(--acc-soft); text-align: start;
}
.mx-to-quran span { color: var(--acc); }
.mx-to-quran svg { width: 20px; height: 20px; }
.mx-to-quran b { flex: 1; font-size: 14px; }
.mx-to-quran small { font-size: 12px; color: var(--muted); }

/* reader additions */
.reader__mode { display: flex; padding: 3px; gap: 3px; background: var(--surface-2); border-radius: 12px; }
.reader__mode button { min-height: 34px; padding: 0 12px; border-radius: 9px; font-family: var(--font-display); font-size: 13px; color: var(--muted); }
.reader__mode button[aria-checked="true"] { background: var(--surface); color: var(--acc); box-shadow: var(--shadow); }
.mushaf { transition: opacity .15s; }
.mushaf.is-loading { opacity: .45; }
.ayah { border-radius: 8px; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background .4s; scroll-margin: 120px; }
.ayah.is-focus { background: var(--acc-soft); box-shadow: 0 0 0 3px var(--acc-soft); animation: ayah-glow 1.6s ease-out 1; }
@keyframes ayah-glow { 0%, 30% { box-shadow: 0 0 0 6px var(--acc-soft); } 100% { box-shadow: 0 0 0 3px var(--acc-soft); } }

@media (max-width: 420px) {
  .mx-continue { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .ayah.is-focus { animation: none; }
  .mx-card, .mx-hit { transition: none; }
}

/* two-page spread (reader.js switches it on at 1100px and wider) */
.mushaf.is-spread {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0; overflow: hidden;
  font-size: calc(21px * var(--fs));
}
.mushaf__page { padding: 18px 20px 10px; display: flex; flex-direction: column; min-width: 0; }
.mushaf__page + .mushaf__page { border-inline-start: 1px solid var(--line); box-shadow: inset 8px 0 16px -14px rgba(0, 0, 0, .35); }
.mushaf__page > .quran:last-of-type { flex: 1; }
.mushaf__no { text-align: center; font-family: var(--font-display); font-size: 13px; color: var(--muted); padding-top: 8px; }

/* app version, at the end of Settings */
.app-version { text-align: center; font-size: 12px; color: var(--muted); opacity: .8; margin: 18px 0 4px; letter-spacing: .2px; }

/* ---------- library: Mafatih al-Jinan and the Sahifa Sajjadiyya ---------- */
.lib-toc { display: grid; gap: 8px; }
.lib-part { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.lib-part > summary {
  list-style: none; cursor: pointer; padding: 12px 14px; display: flex; align-items: baseline; gap: 10px;
}
.lib-part > summary::-webkit-details-marker, .lib-head > summary::-webkit-details-marker { display: none; }
.lib-part > summary b { flex: 1; font-family: var(--font-display); font-size: 15px; color: var(--acc); line-height: 1.6; }
.lib-part > summary span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.lib-part[open] > summary { border-bottom: 1px solid var(--line); background: var(--acc-soft); }
.lib-part > .note { padding: 0 14px; }
.lib-head { border-bottom: 1px solid var(--line); }
.lib-head:last-child { border-bottom: 0; }
.lib-head > summary { list-style: none; cursor: pointer; padding: 10px 14px; font-size: 14.5px; font-weight: 700; line-height: 1.7; display: flex; gap: 8px; }
.lib-head > summary::before { content: "‹"; color: var(--muted); transition: transform .15s; display: inline-block; }
.lib-head[open] > summary::before { transform: rotate(-90deg); }
.lib-list { list-style: none; margin: 0; padding: 0 8px 8px; }
.lib-list button {
  width: 100%; text-align: start; padding: 9px 12px; border-radius: 10px; font-size: 14px; line-height: 1.7;
  display: flex; gap: 8px; align-items: baseline;
}
.lib-list button:hover, .lib-list button:focus-visible { background: var(--surface-2); }
.lib-list button span { flex: 1; }
.lib-list em { font-style: normal; font-size: 11.5px; color: var(--acc); border: 1px solid var(--acc); border-radius: 99px; padding: 0 8px; white-space: nowrap; }
.lib-sahifa-title { font-family: var(--font-body) !important; font-size: 15px !important; line-height: 1.7; }

.lib-titles { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.lib-titles button { width: 100%; text-align: start; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.lib-titles button:hover, .lib-titles button:focus-visible { border-color: var(--acc); }
.lib-titles b { display: block; font-size: 14.5px; line-height: 1.7; }
.lib-titles span { font-size: 12px; color: var(--muted); }
.lib-crumbs { font-size: 12px; color: var(--muted); line-height: 1.7; }
.lib-snippet { font-size: calc(16px * var(--fs)); line-height: 2; margin: 4px 0 2px; }
.lib-snippet mark, .lib-p mark { background: var(--acc-soft); color: var(--acc); border-radius: 5px; box-shadow: 0 0 0 2px var(--acc-soft); }

/* reader */
.lib-head-bar { padding: 2px 0 10px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.lib-head-bar h3 { font-family: var(--font-display); color: var(--acc); font-size: 20px; line-height: 1.6; margin: 4px 0; }
.lib-meta { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); }
.lib-text { transition: opacity .15s; padding-bottom: 8px; }
.lib-text.is-loading { opacity: .4; }
.lib-lead { color: var(--muted); font-size: calc(16px * var(--fs)); line-height: 2; margin: 0 0 12px; padding: 10px 14px; background: var(--surface); border-inline-start: 3px solid var(--acc); border-radius: 10px; }
.lib-p { font-size: calc(19px * var(--fs)); line-height: 2.15; margin: 0 0 .8em; scroll-margin: 120px; content-visibility: auto; contain-intrinsic-size: auto 120px; }
.lib-p.is-target { background: var(--acc-soft); border-radius: 12px; padding: 6px 10px; margin-inline: -10px; animation: ayah-glow 1.6s ease-out 1; }
.lib-p .ayah-no { font-size: .85em; }
.lib-ref { color: var(--acc); text-decoration: none; font-family: var(--font-display); font-size: 11px; padding: 0 2px; }
.lib-notes-box { margin-top: 16px; border-top: 1px dashed var(--line); padding-top: 8px; }
.lib-notes-box > summary { cursor: pointer; font-family: var(--font-display); font-size: 14px; color: var(--muted); padding: 6px 0; }
.lib-notes { margin: 0; padding-inline-start: 22px; font-size: 13px; color: var(--muted); line-height: 1.9; }
.lib-notes li { scroll-margin: 120px; border-radius: 8px; padding: 0 4px; }
.lib-notes li.is-flash { animation: note-flash 1.4s ease-out 1; }
@keyframes note-flash { 0%, 40% { background: var(--acc-soft); color: var(--ink); } }
.reader__nav .lib-nav-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.reader__nav .pill-btn:disabled { opacity: .45; }
@media (prefers-reduced-motion: reduce) { .lib-p.is-target, .lib-notes li.is-flash { animation: none; } }
/* a comfortable line length for long texts on wide screens */
.lib-head-bar, .lib-text { max-width: 46em; margin-inline: auto; }

/* ---------- acts added to the program ---------- */
.chip.is-mine { border-style: dashed; color: var(--muted); border-color: var(--muted); }
.cf-add { border-style: dashed; color: var(--muted); margin-top: 6px; }
.cf-add b { color: var(--acc); }
.cf-add svg { width: 18px; height: 18px; color: var(--acc); }
.cf-field { display: grid; gap: 6px; margin: 12px 0 0; }
.cf-label { font-size: 13.5px; font-weight: 700; }
.cf-field > small { font-size: 12px; color: var(--muted); line-height: 1.7; }
select.field { appearance: none; -webkit-appearance: none; background-image: none; }
.cf-text { min-height: 120px; padding: 10px 14px; line-height: 1.9; resize: vertical; font-family: var(--font-body); }
.cf-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cf-quran { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 12px 12px; }
.cf-quran > small { display: block; margin-top: 8px; font-size: 12.5px; color: var(--acc); }
.cf-source { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.8; margin: 0 0 4px; background: var(--surface); border-radius: 12px; padding: 8px 12px; }
.cf-source svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; color: var(--acc); }
.cf-preview { margin-top: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; }
.cf-preview > summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.cf-preview p { max-height: 240px; overflow: auto; margin: 8px 0 0; }
.cf-periods button { min-width: 0; padding: 0 10px; }
.cf-countrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cf-count { width: 110px; flex: 0 0 auto; }
.cf-actions { position: sticky; bottom: calc(-20px - env(safe-area-inset-bottom)); background: var(--bg); padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); margin-bottom: -10px; }
.cf-delete { color: #C0392B; }
.cf-opts { display: grid; gap: 8px; }
.cf-opt {
  display: flex; align-items: center; gap: 12px; text-align: start; padding: 12px 14px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line);
}
.cf-opt:hover, .cf-opt:focus-visible { border-color: var(--acc); }
.cf-opt > span:nth-child(2) { flex: 1; }
.cf-opt b { display: block; font-size: 15px; }
.cf-opt small { font-size: 12.5px; color: var(--muted); }
.cf-opt svg { width: 18px; height: 18px; color: var(--muted); }
.cf-opt__icon { width: 42px; height: 42px; border-radius: 12px; background: var(--acc-soft); display: grid; place-items: center; }
.cf-opt__icon svg { width: 22px; height: 22px; color: var(--acc); }
.cf-list { list-style: none; margin: 0; padding: 0; }
.cf-list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cf-list__main { flex: 1; min-width: 0; }
.cf-list__main b { display: block; font-size: 14.5px; line-height: 1.7; }
.cf-list__main small { font-size: 12px; color: var(--muted); }

/* picking paragraphs in the library reader */
.lib-meta { flex-wrap: wrap; }
.lib-addbox { display: flex; gap: 6px; margin-inline-start: auto; }
.lib-add { min-height: 34px; color: var(--acc-ink); background: var(--acc); font-weight: 700; }
.lib-pick { min-height: 34px; }
.lib-add svg { width: 15px; height: 15px; }
.lib-pickhint { position: sticky; top: var(--head-h, 56px); z-index: 1; background: var(--acc-soft); color: var(--ink); border-radius: 12px; padding: 8px 12px; margin: 0 0 10px; font-size: 13.5px; }
.is-picking .lib-p { cursor: pointer; border-radius: 12px; padding: 6px 10px; margin-inline: -10px; outline: 1.5px dashed var(--line); outline-offset: -1px; transition: background .12s, outline-color .12s; }
.is-picking .lib-p.is-picked { background: var(--acc-soft); outline: 2px solid var(--acc); }
.lib-pickbar .pill-btn:last-child { flex: 1.6; }

/* font choice preview (Settings) */
.font-preview { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; margin: 8px 0 4px; }
.font-preview b { display: block; font-family: var(--font-display); color: var(--acc); font-size: 18px; line-height: 1.6; }
.font-preview p { margin: 2px 0; font-size: calc(17px * var(--fs)); line-height: 2; }
.font-preview small { font-size: 12px; color: var(--muted); }

/* ---------- prayer times ---------- */
.pt-where { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.pt-loc { display: flex; gap: 10px; align-items: flex-start; }
.pt-loc svg { width: 22px; height: 22px; color: var(--acc); margin-top: 3px; }
.pt-loc b { display: block; font-family: var(--font-display); font-size: 17px; color: var(--acc); }
.pt-loc small { font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.pt-loc__actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.pt-loc__actions .pill-btn { flex: 1 1 140px; }
.pt-city { flex: 1 1 160px; min-height: 44px; }
.pt-table { list-style: none; margin: 12px 0 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.pt-table li { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
.pt-table li:last-child { border-bottom: 0; }
.pt-table li span { flex: 1; }
.pt-table li b { font-family: var(--font-display); font-size: 17px; }
.pt-table li.is-now { background: var(--acc-soft); }
.pt-table li.is-now b, .pt-table li.is-now span { color: var(--acc); font-weight: 700; }
.pt-table em { font-style: normal; font-size: 11px; background: var(--acc); color: var(--acc-ink); border-radius: 99px; padding: 1px 8px; }
.pt-details { margin-top: 12px; }
.pt-details > summary { cursor: pointer; font-size: 14px; color: var(--acc); padding: 6px 0; }
.pt-adjust { display: grid; gap: 6px; margin-top: 6px; }
.pt-adj { display: flex; align-items: center; gap: 8px; }
.pt-adj span { flex: 1; font-size: 14px; }
.pt-adj b { min-width: 56px; text-align: center; font-family: var(--font-display); font-size: 14px; }
.pt-adj .soft-btn { width: 40px; min-height: 36px; padding: 0; font-size: 18px; color: var(--ink); }
