:root {
  color-scheme: light;
  --forest: #354d78;
  --forest-deep: #263b64;
  --forest-soft: #e8edf7;
  --paper: #f2f3f7;
  --surface: #fffefa;
  --surface-2: #f8f7f1;
  --ink: #242a35;
  --muted: #777d73;
  --line: #e7e5da;
  --gold: #c9a95f;
  --danger: #9d4d49;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-soft: 0 16px 48px rgb(34 48 38 / 6%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }

@font-face {
  font-family: "UthmanicHafs";
  src: url("https://verses.quran.foundation/fonts/quran/hafs/uthmanic_hafs/UthmanicHafs1Ver18.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

html { min-width: 320px; min-height: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 8% 0%, rgb(215 222 240 / 65%), transparent 34rem),
    var(--paper);
}

button, input, select { font: inherit; }
button, select, input[type="time"], input[type="date"] { touch-action: manipulation; }
button:not(:disabled), a[href], select, summary, label, [role="button"], [data-action], [data-nav], [onclick] { cursor: pointer !important; }
button:disabled, [role="button"][aria-disabled="true"] { cursor: default !important; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #b78d39; outline-offset: 3px; }
a { color: inherit; }
svg { width: 19px; height: 19px; flex: 0 0 auto; }

.app-shell { min-height: 100vh; padding: 0 34px 28px; }
.topbar { max-width: 1180px; height: 92px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgb(41 58 46 / 9%); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--forest); text-decoration: none; cursor: pointer; }
.brand-logo { width: 43px; height: 43px; display: block; flex: 0 0 auto; border-radius: 11px; background: #f5f2e8; object-fit: cover; }
.brand b { display: block; font-size: 17px; letter-spacing: -.02em; }
.brand small { display: block; margin-top: 2px; color: #7a8279; font-size: 8px; font-weight: 700; letter-spacing: .17em; }
.topbar-right { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 12px; }
.offline-pill { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid #dfe5d9; border-radius: 100px; color: #527060; background: rgb(255 255 250 / 65%); font-size: 11px; font-weight: 650; }
.offline-pill i { width: 7px; height: 7px; border-radius: 50%; background: #53a57b; box-shadow: 0 0 0 3px #53a57b1d; }
.main-content { width: min(100%, 1020px); min-height: calc(100vh - 150px); margin: 0 auto; padding: 45px 0 48px; }
.site-footer { width: min(100%, 1020px); margin: 0 auto; display: flex; justify-content: space-between; color: #8b8d81; font-size: 11px; }
.site-footer a { text-decoration: none; border-bottom: 1px solid #c6c7b8; }
.bottom-nav { display: none; }
.top-nav { display: flex; gap: 4px; padding: 4px; border: 1px solid #e3e4db; border-radius: 100px; background: rgb(255 254 250 / 70%); }
.top-nav .nav-button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 0; border-radius: 100px; color: #6f7569; background: transparent; font-size: 13px; font-weight: 650; }
.top-nav .nav-button svg { width: 17px; height: 17px; }
.top-nav .nav-button:hover { color: var(--forest); background: var(--forest-soft); }
.top-nav .nav-button.is-active { color: #fffdf7; background: var(--forest); }
.session-heading-tools { display: flex; align-items: center; gap: 8px; }
.switch-toggle { display: inline-flex; align-items: center; gap: 7px; padding: 6px 4px; border: 0; background: none; color: #657466; font-size: .75rem; font-weight: 700; }
.switch-track { position: relative; width: 34px; height: 20px; border-radius: 99px; background: #cfd3dc; transition: background-color .15s ease; }
.switch-track i { position: absolute; inset-block-start: 2px; inset-inline-start: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 20%); transition: translate .15s ease; }
.switch-toggle[aria-checked="true"] .switch-track { background: #e9a12a; }
.switch-toggle[aria-checked="true"] .switch-track i { translate: 14px 0; }
.windows-hidden-note { margin: 0; padding: 14px 16px; border: 1px dashed #d6d8cf; border-radius: 14px; color: #6c7468; font-size: .8125rem; line-height: 1.5; }
.scroll-sentinel { display: block; width: 1px; height: 1px; margin: -1px 0 0; }
.back-to-top { position: fixed; z-index: 8; right: max(22px, calc((100vw - 1120px) / 2)); bottom: 22px; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgb(53 77 120 / 30%); border-radius: 50%; color: var(--forest); background: transparent; box-shadow: none; cursor: pointer; visibility: hidden; opacity: 0; pointer-events: none; translate: 0 8px; transition: opacity .18s ease, translate .18s ease, visibility .18s, background-color .18s ease, box-shadow .18s ease; }
.back-to-top svg { width: 20px; height: 20px; }
.back-to-top:hover { background: #fffefa; box-shadow: 0 4px 14px rgb(38 59 100 / 18%); }
body.has-scrolled.scrolling-up .back-to-top { visibility: visible; opacity: 1; pointer-events: auto; translate: 0 0; }
.back-to-top:focus-visible { outline: 3px solid #4e8162; outline-offset: 3px; }
.loading-screen { min-height: 100vh; display: grid; place-content: center; justify-items: center; color: var(--muted); gap: 14px; }
.loading-screen .brand-logo { width: 76px; height: 76px; border-radius: 18px; }
.error-screen h1 { max-width: 340px; margin: 12px 0 0; color: var(--ink); text-align: center; font-size: 25px; }
.error-screen p { max-width: 340px; text-align: center; line-height: 1.6; }

.welcome-row { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 26px; }
.eyebrow { margin: 0 0 10px; color: #738078; font-size: 10px; font-weight: 750; letter-spacing: .17em; line-height: 1.3; }
h1, h2, h3, p { margin-top: 0; }
.welcome-row h1 { margin: 0; color: var(--forest); font-size: clamp(34px, 4.7vw, 54px); font-weight: 570; line-height: 1.08; letter-spacing: -.05em; }
.welcome-row h1 span { color: #789080; }
.ornament { width: 100px; height: 100px; margin: 0 30px 0 0; display: grid; place-items: center; border: 1px solid #d5d7c9; border-radius: 50%; color: #b99e5c; font-size: 51px; position: relative; }
.ornament::before, .ornament::after { content: ""; position: absolute; inset: 8px; border: 1px solid #e0dfd2; border-radius: 50%; }
.ornament::after { inset: -8px; border-style: dashed; opacity: .45; }

.goal-card { overflow: hidden; position: relative; padding: 26px 30px 22px; border-radius: var(--radius-lg); color: #fffdf6; background: linear-gradient(116deg, #263b64, #405b8a); box-shadow: 0 20px 42px rgb(38 59 100 / 15%); }
.goal-card::after { content: "۞"; position: absolute; right: 25%; top: -68px; color: rgb(255 255 255 / 4%); font-family: serif; font-size: 230px; pointer-events: none; }
.goal-card-top, .goal-foot, .goal-progress-row { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; }
.goal-card .eyebrow.light { color: #c2d4c5; }
.goal-card h2 { margin: 0; color: #fffdf6; font-size: 22px; font-weight: 550; letter-spacing: -.025em; }
.icon-button { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 50%; cursor: pointer; }
.light-button { color: #fff; background: rgb(255 255 255 / 10%); border-color: rgb(255 255 255 / 17%); }
.goal-progress-row { margin: 22px 0 9px; align-items: baseline; }
.goal-progress-row strong { font-size: 33px; font-weight: 580; letter-spacing: -.05em; }
.goal-progress-row strong small { color: #d1ddd1; font-size: 15px; font-weight: 400; letter-spacing: 0; }
.goal-progress-row > span { color: #ccdbd0; font-size: 12px; }
.progress-track { overflow: hidden; height: 6px; border-radius: 10px; background: rgb(245 247 234 / 20%); }
.progress-track > span { height: 100%; display: block; border-radius: inherit; background: var(--gold); transition: width .3s ease; }
.goal-foot { margin-top: 14px; color: #c5d4c8; font-size: 11px; }
.text-button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; border: 0; background: none; color: #426753; cursor: pointer; font-size: 12px; font-weight: 700; }
.text-button svg { width: 14px; height: 14px; }
.light-text { color: #f2e5c2; }
.text-button:disabled { opacity: .68; cursor: default; }

.section-heading, .session-heading, .ayah-toolbar, .juz-browser-tools { display: flex; align-items: end; justify-content: space-between; }
.section-heading { margin: 34px 0 14px; }
.section-heading .eyebrow, .session-heading .eyebrow, .ayah-toolbar .eyebrow { margin-bottom: 5px; }
.section-heading h2, .session-heading h2, .ayah-toolbar h2 { margin: 0; color: var(--ink); font-size: 20px; font-weight: 600; letter-spacing: -.035em; }
.mode-chip, .caption-pill, .count-chip { display: inline-flex; align-items: center; padding: 7px 10px; border: 1px solid #e1e2d7; border-radius: 100px; color: #657466; background: #fbfaf3; font-size: 10px; font-weight: 650; white-space: nowrap; }
.count-chip { font-size: .8125rem; }
.mode-chip { padding: 8px 12px; font-size: .875rem; }
.focus-card { position: relative; isolation: isolate; overflow: hidden; padding: 21px 24px 19px; border: 1px solid #e4e5d9; border-left: 3px solid var(--section-color, #277969); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-soft); }
.focus-body { position: relative; }
.detail-hero .focus-juz-watermark { inset: 14px 0; height: calc(100% - 28px); }
.detail-hero .focus-juz-watermark text { fill: #fffdf7; opacity: .1; }
.focus-juz-watermark { position: absolute; z-index: -1; inset: 12px 0 16px; width: 100%; height: calc(100% - 28px); overflow: visible; pointer-events: none; user-select: none; }
.focus-juz-watermark text { fill: var(--section-color, #277969); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 136px; font-weight: 800; letter-spacing: -.04em; opacity: .08; }
.focus-card.has-active-window { border-left-color: #b28b42; }
.focus-heading, .detail-eyebrow { display: flex; align-items: center; gap: 8px; color: #596b5e; font-size: 10px; font-weight: 750; letter-spacing: .1em; }
.section-dot { width: 8px; height: 8px; display: inline-block; flex: 0 0 auto; border-radius: 50%; background: var(--section-color, #277969); }
.soft-divider { color: #b4b9aa; }
.next-window-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.next-window-heading .eyebrow { margin: 0; }
.next-window-chip { padding: 6px 9px; border: 1px solid #ead9ae; border-radius: 99px; color: #795f28; background: #fff7e3; font-size: .75rem; font-weight: 750; }
.next-window-reference { margin: 8px 0 0; color: #667569; font-size: .875rem; font-weight: 650; }
.opening-preview { display: -webkit-box; overflow: hidden; margin: 14px 0 16px; color: #27382e; font-size: 22px; line-height: 1.85; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.arabic { font-family: "UthmanicHafs", "Noto Naskh Arabic", "Noto Sans Arabic", "Amiri Quran", serif; font-weight: 400; }
.focus-actions { display: flex; gap: 8px; align-items: center; }
.focus-actions .button { min-height: 40px; padding-inline: 12px; gap: 6px; white-space: nowrap; }
.focus-actions .button svg { width: 16px; height: 16px; flex: none; }
.focus-actions .focus-log { flex: 1; min-width: 0; font-size: .875rem; }
.focus-actions .focus-log svg { stroke-width: 2.2; }
.button { min-height: 44px; display: inline-flex; justify-content: center; align-items: center; gap: 9px; padding: 0 16px; border: 1px solid transparent; border-radius: 12px; cursor: pointer; text-decoration: none; font-size: 12px; font-weight: 700; transition: transform .15s ease, background-color .15s ease, border-color .15s ease; }
.button:active { transform: scale(.98); }
.button svg { width: 16px; height: 16px; }
.button-primary { color: white; background: var(--forest); }
.button-primary:hover { background: #215244; }
.button-secondary { color: #315643; border-color: #dfe3d8; background: #fffefa; }
.button-secondary:hover { border-color: #9db3a3; background: #f5f7f0; }
.button-quiet { color: #667569; background: transparent; }
.empty-focus h3 { margin: 0 0 12px; font-size: 18px; }

.session-heading { margin: 31px 0 13px; }
.prayer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.prayer-session-button { position: relative; min-width: 0; min-height: 79px; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto auto; align-items: start; gap: 5px 9px; padding: 12px 13px; border: 1px solid #e6e5dc; border-radius: 14px; background: var(--surface); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background-color .15s ease; }
.prayer-session-button:not(:disabled):hover { border-color: #b8c3d9; box-shadow: 0 6px 18px rgb(38 59 100 / 9%); transform: translateY(-1px); }
.prayer-session-button:not(:disabled):active { transform: scale(.98); }
.prayer-session-button:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }
.prayer-session-button:disabled { opacity: 1; cursor: default; }
.prayer-session-button.is-done { border-color: #b9d0bf; background: #eff7f0; }
.prayer-session-button.is-active { border-color: #f0b23e; color: #3d2a06; background: linear-gradient(116deg, #ffc94d, #ffe08a); box-shadow: 0 10px 26px rgb(214 140 20 / 26%); }
.prayer-session-button.is-active:not(:disabled):hover { border-color: #e9a12a; background: linear-gradient(116deg, #ffc23a, #ffd978); box-shadow: 0 12px 30px rgb(214 140 20 / 32%); }
.is-active .slot-number { color: #9a5d00; }
.is-active .slot-header b { color: #3d2a06; }
.is-active .slot-reference { color: #6e4a0c; }
.is-active .slot-excerpt { color: #2f2104; }
/* The prayer whose time it is now: an orange ring and ribbon, alongside any other state. */
.prayer-grid:has(.is-prayer-now) { padding-top: 6px; }
.prayer-session-button.is-prayer-now { outline: 2px solid #e8771a; outline-offset: 2px; }
.prayer-session-button.is-prayer-now:focus-visible { outline: 3px solid #e8771a; }
.prayer-now-ribbon { position: absolute; z-index: 1; inset-block-start: -10px; inset-inline-start: 42px; padding: 3px 9px; border-radius: 99px; color: #fff; background: #e06a12; box-shadow: 0 3px 8px rgb(224 106 18 / 30%); font-size: .625rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.prayer-session-button.is-skipped { border: 1.5px solid #cfd3dc; background: transparent; }
.prayer-session-button.is-empty { border-style: dashed; background: transparent; }
.slot-number { grid-column: 1; grid-row: 1; color: #b49b5f; font-family: Georgia, serif; font-size: 15px; }
.slot-header { min-width: 0; min-inline-size: 0; grid-column: 2; grid-row: 1; display: flex; align-items: baseline; justify-content: space-between; gap: 7px; padding-inline-end: 23px; }
.slot-header b { color: #27342a; font-size: 12px; font-weight: 700; }
.slot-reference { min-width: 0; overflow: hidden; margin-inline-start: auto; color: #687467; font-size: .75rem; line-height: 1.3; text-align: end; text-overflow: ellipsis; white-space: nowrap; }
.slot-excerpt { min-width: 0; min-inline-size: 0; display: block; grid-column: 1 / -1; grid-row: 2; overflow: hidden; color: #34463a; font-size: 25px; line-height: 1.75; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.slot-meta { grid-column: 1 / -1; grid-row: 3; color: #6c7468; font-size: .6875rem; font-weight: 600; line-height: 1.35; }
.is-active .slot-meta { color: #6e4a0c; }
.is-done .slot-meta { color: #3f7656; }
.is-skipped .slot-header b, .is-skipped .slot-number, .is-empty .slot-header b { color: #8d929b; }
.is-skipped .slot-reference { color: #8d929b; font-style: italic; }
.is-skipped .slot-header { padding-inline-end: 0; }
.prayer-session-button.is-missed { border-style: dashed; }
.is-skipped .slot-meta, .is-empty .slot-meta, .is-empty .slot-reference { color: #969b92; }
.slot-action { position: absolute; inset-block-start: 12px; inset-inline-end: 12px; display: grid; place-items: center; }
.slot-indicator { width: 18px; height: 18px; display: grid; place-items: center; border: 1.6px solid #c7ccd5; border-radius: 50%; }
.slot-indicator svg { width: 12px; height: 12px; stroke-width: 3; }
.slot-indicator.is-filled { border-color: #4f8967; color: white; background: #4f8967; }
.is-active .slot-indicator:not(.is-filled) { border-color: #9a5d00; background: rgb(255 255 255 / 45%); animation: slot-pulse 2.4s ease-out infinite; }
.is-empty .slot-indicator { border-style: dashed; border-color: #d2d5cc; }
@keyframes slot-pulse { 0% { box-shadow: 0 0 0 0 rgb(154 93 0 / 35%); } 70%, 100% { box-shadow: 0 0 0 7px rgb(154 93 0 / 0%); } }
.is-upcoming .slot-excerpt, .is-upcoming .slot-reference { color: #778178; }
.day-progress { margin: -3px 0 13px; }
.day-progress-bar { display: flex; gap: 3px; }
.day-progress-bar i, .day-progress-legend i { flex: 1; height: 7px; border-radius: 3px; background: #e2e3dc; }
.day-progress i.is-read { background: #a9c7b2; }
.day-progress i.is-today { background: #4f8967; }
.day-progress i.is-next { background: #f6be4a; }
.day-progress-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 7px; color: #6c7468; font-size: .6875rem; font-weight: 600; }
.day-progress-legend span { display: inline-flex; align-items: center; gap: 6px; }
.day-progress-legend i { flex: none; width: 10px; height: 7px; }
.day-progress-status { margin-inline-start: auto; color: #3f7656; font-weight: 700; }
.day-progress.is-behind i.is-today { background: #c4574f; }
.day-progress i.is-due { background: #ecc2bd; box-shadow: inset 0 0 0 1px #c4574f; }
.day-progress.is-behind .day-progress-status { color: #a8433c; }
.caption-pill.is-behind { border-color: #e7c3bf; color: #a8433c; background: #fbf1ef; }
.log-sheet { width: min(420px, calc(100% - 32px)); padding: 22px 20px 18px; border: 1px solid var(--line); border-radius: 20px; color: var(--ink); background: var(--surface); box-shadow: 0 24px 64px rgb(20 30 50 / 22%); }
.log-sheet::backdrop { background: rgb(22 30 45 / 38%); }
.log-sheet h2 { margin: 4px 0 6px; font-size: 20px; letter-spacing: -.03em; }
.log-sheet .eyebrow { margin: 0; }
.log-sheet-start { margin: 0 0 14px; color: var(--muted); font-size: .8125rem; }
.log-page-field { display: grid; grid-template-columns: 1fr 120px; align-items: center; gap: 12px; color: var(--ink); font-size: .875rem; font-weight: 600; }
.log-page-field input { width: 100%; min-height: 48px; font-size: 1.25rem; font-weight: 700; text-align: center; }
.log-page-hint { min-height: 1.4em; margin: 10px 0 0; color: #3f7656; font-size: .75rem; font-weight: 600; line-height: 1.45; }
.log-page-hint.is-error { color: #a8433c; }
.log-sheet-note { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; color: #6a5a32; background: #f6f0de; font-size: .75rem; line-height: 1.45; }
.log-sheet-note.is-info { color: #34507e; background: #e8edf7; }
.log-sheet-note .text-button { display: inline; min-height: 0; padding: 0; color: var(--forest); font-size: inherit; font-weight: 700; text-decoration: underline; }
.confirm-sheet h2 { margin-top: 0; }
.confirm-message { margin: 0 0 10px; color: #4f5a52; font-size: .875rem; line-height: 1.5; }
.button-danger { color: white; background: #a8433c; }
.button-danger:hover { background: #8f3832; }
.log-sheet-actions { display: flex; align-items: center; gap: 8px; margin-top: 18px; }
.log-sheet-actions > span { flex: 1; }
.log-sheet-skip { padding-inline: 4px; color: #a8433c; }
.log-sheet-actions .button { padding-inline: 12px; white-space: nowrap; }
.log-sheet-actions .log-sheet-skip { padding-inline: 4px; }
.steady-note { display: flex; align-items: center; gap: 11px; margin-top: 17px; padding: 12px 16px; border-radius: 13px; color: #627367; background: #e9eee5; }
.steady-note-body { flex: 1; min-width: 0; }
.steady-note-body p { margin: 0; }
.unfinished-list { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 9px; }
.unfinished-list > span { color: #7a8a7c; font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.unfinished-chip { display: inline-flex; align-items: baseline; gap: 5px; padding: 5px 10px; border: 1px solid #cfdac9; border-radius: 100px; color: #35644d; background: #f6f9f3; cursor: pointer; font: inherit; font-size: .75rem; font-weight: 700; }
.unfinished-chip small { color: #7d8c7f; font-size: .6875rem; font-weight: 600; }
.steady-note p { flex: 1; margin: 0; font-size: 11px; line-height: 1.5; }
.note-icon { color: #b89a54; }
.quick-overview { margin-top: 34px; }
.quick-overview .section-heading { margin-top: 0; }
.section-overview { min-width: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; }
.section-summary { min-width: 0; padding: 14px 12px; border: 1px solid #e6e4d9; border-radius: 13px; background: rgb(255 254 250 / 75%); cursor: pointer; text-align: left; }
.section-summary-top { display: flex; align-items: center; gap: 7px; color: #334439; font-size: 10px; }
.section-summary-top .section-dot { background: var(--section-color); }
.mini-juz-list { display: flex; gap: 5px; margin: 13px 0 8px; }
.mini-juz-list i { width: 15px; height: 4px; border-radius: 9px; background: #dedfd5; }
.mini-juz-list i.is-done { background: var(--section-color); }
.section-summary small { color: #868a7e; font-size: 9px; }

.page-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 24px; }
.page-heading .eyebrow { margin-bottom: 8px; }
.page-heading h1 { margin: 0; color: var(--forest); font-size: clamp(31px, 4vw, 43px); font-weight: 570; letter-spacing: -.05em; }
.page-intro { max-width: 540px; margin: 10px 0 0; color: #777f73; font-size: 13px; line-height: 1.65; }
.juz-filters { display: grid; gap: 9px; margin-bottom: 14px; }
.filter-row { display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-block: 2px; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-label { flex: none; min-width: 52px; color: #7a8079; font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.filter-chip { flex: none; min-height: 36px; display: inline-flex; align-items: center; gap: 6px; padding: 0 13px; border: 1px solid #dcdfd5; border-radius: 100px; color: #4d5a50; background: var(--surface); cursor: pointer; font: inherit; font-size: .8125rem; font-weight: 600; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.filter-chip:hover { border-color: #aab4c8; }
.filter-chip:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }
.filter-chip[aria-pressed="true"] { border-color: var(--forest); color: white; background: var(--forest); }
.filter-chip .section-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--section-color); box-shadow: 0 0 0 1.5px rgb(255 255 255 / 70%); }
.filter-clear { justify-self: start; padding: 2px 0; }
@media (max-width: 430px) {
  .filter-chip { padding: 0 10px; font-size: .75rem; }
  .filter-label { min-width: 48px; font-size: .625rem; }
}
.juz-no-results { margin: 18px 0; padding: 20px; border: 1px dashed #d8dbcd; border-radius: 14px; color: #687467; text-align: center; }
.juz-browser-tools { margin-bottom: 17px; }
.juz-browser-tools .button { min-height: 39px; }
.juz-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.juz-card { min-width: 0; padding: 17px 18px 15px; border: 1px solid #e5e4da; border-top: 2px solid var(--section-color); border-radius: 15px; background: color-mix(in srgb, var(--section-color) 11%, var(--surface)); box-shadow: 0 8px 24px rgb(30 47 35 / 3%); cursor: pointer; text-align: left; transition: transform .15s ease, box-shadow .15s ease; }
.juz-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.juz-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.juz-card-ident { min-width: 0; min-inline-size: 0; display: flex; align-items: center; gap: 9px; }
.juz-badge { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: var(--forest); background: #edf1e9; font-family: Georgia, serif; font-size: 15px; }
/* Today's juz sits "on top": one static shadow on a single card, so it stays cheap to render. */
.juz-card.is-today { position: relative; z-index: 1; border-color: var(--forest); background: color-mix(in srgb, var(--section-color) 5%, #fff); box-shadow: 0 0 0 1.5px var(--forest), 0 14px 30px -8px rgb(38 59 100 / 32%); transform: translateY(-3px); }
.juz-card.is-today:hover { transform: translateY(-4px); box-shadow: 0 0 0 1.5px var(--forest), 0 16px 32px -8px rgb(38 59 100 / 36%); }
.juz-today-badge { margin-inline-end: 6px; padding: 2px 8px; border-radius: 100px; color: white; background: var(--forest); font-weight: 700; }
.juz-card-meta { min-width: 0; min-inline-size: 0; display: grid; gap: 3px; }
.juz-card-meta b { overflow: hidden; color: #2d3c31; font-size: .9375rem; text-overflow: ellipsis; white-space: nowrap; }
.juz-card-meta small { color: #888d80; font-size: .75rem; white-space: nowrap; }
.juz-state { flex: 0 0 auto; color: #93958a; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.juz-state.in-progress { color: #8c7136; }
.juz-state.complete { color: #448062; }
.juz-preview { display: -webkit-box; overflow: hidden; text-align: right; min-height: 52px; margin: 13px 0 13px; color: #59675c; font-size: 25px; line-height: 1.75; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.juz-progress > i { overflow: hidden; height: 4px; display: block; border-radius: 5px; background: #e9e8df; }
.juz-progress > i > span { height: 100%; display: block; border-radius: inherit; background: var(--section-color); }
.juz-progress > small b { color: #5d6a60; font-weight: 700; }
.juz-progress > small { display: block; overflow: hidden; margin-top: 7px; color: #888d80; font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }

.back-link { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 17px; padding: 4px 0; border: 0; color: #718075; background: transparent; cursor: pointer; font-size: 12px; font-weight: 650; }
.back-link svg { width: 16px; height: 16px; }
.detail-hero { position: relative; isolation: isolate; overflow: hidden; padding: 26px 30px 23px; border-radius: 23px; color: #fffdf7; background: linear-gradient(116deg, #263b64, #405b8a); }
.detail-eyebrow { color: #d0dccf; }
.detail-hero h1 { margin: 15px 0 3px; color: #fffdf7; font-size: 31px; font-weight: 560; letter-spacing: -.04em; }
.detail-hero h1 span { color: #c9d7ca; font-size: 15px; font-weight: 400; letter-spacing: 0; }
.detail-copy { margin: 0; color: #bed0c2; font-size: 11px; }
.detail-today { margin: 14px 0 18px; }
.detail-today-button { min-height: 38px; border-color: rgb(255 255 255 / 30%); color: #fffdf7; background: rgb(255 255 255 / 12%); }
.detail-today-button:hover { background: rgb(255 255 255 / 20%); }
.detail-today-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 100px; color: #f4e6bf; background: rgb(255 255 255 / 10%); font-size: 11px; font-weight: 700; }
.detail-today-chip svg, .detail-today-button svg { width: 15px; height: 15px; }
.detail-opening { margin: 14px 0 18px; color: #fffdf5; font-size: 23px; line-height: 1.95; }
.detail-progress > div:first-child { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.detail-progress b { color: #f4e6bf; font-size: 11px; }
.detail-progress span { color: #c5d4c8; font-size: 10px; }
.resume-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 14px 0 28px; padding: 17px 19px; border: 1px solid #e4e4d8; border-radius: 16px; background: var(--surface); }
.resume-card .eyebrow { margin-bottom: 5px; }
.resume-card h2 { margin: 0 0 4px; font-size: 15px; }
.resume-card p:last-child { margin: 0; color: #858b7e; font-size: 10px; }
.ayah-toolbar { margin-top: 28px; margin-bottom: 12px; }
.page-note-field { display: flex; align-items: center; gap: 8px; color: #788476; font-size: 10px; }
.page-note-field input { width: 104px; min-height: 40px; padding: 0 10px; border: 1px solid #dce0d5; border-radius: 9px; color: #35483a; background: #fffefa; font-size: 11px; }
.ayah-list { border-top: 1px solid var(--line); }
.ayah-row { padding: 19px 17px 16px; border-bottom: 1px solid var(--line); border-radius: 0; transition: background .2s ease; }
.ayah-row.is-complete { position: relative; isolation: isolate; background: transparent; box-shadow: inset 3px 0 #5a8c6b; }
.ayah-row.is-complete::before { content: ""; position: absolute; z-index: -1; inset-block: 0; inset-inline-start: 50%; width: 100vw; transform: translateX(-50%); background: #e5f0e8; }
.ayah-row-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ayah-row-status { display: flex; align-items: center; gap: 5px; margin-top: 4px; color: #8a9184; font-size: .75rem; font-weight: 600; }
.ayah-row-status svg { width: 13px; height: 13px; stroke-width: 2.6; }
.ayah-row.is-complete .ayah-row-status { color: #3f7656; }
.ayah-row.is-partial { box-shadow: inset 3px 0 #8da4cf; }
.ayah-row.is-partial .ayah-row-status { color: var(--forest); }
.ayah-ref { color: #819084; font-size: .875rem; }
.ayah-ref b { color: #45584a; }
.saved-label, .resume-label { color: #486e56; font-size: 9px; font-weight: 700; }
.resume-label { color: #9a7a35; }
.ayah-inline-row { display: flex; align-items: center; gap: 8px; direction: rtl; }
.ayah-inline-row:has(.ayah-disclosure[open]) { align-items: flex-start; }
.ayah-disclosure { min-width: 0; flex: 1; }
.ayah-excerpt { display: block; overflow: hidden; margin: 0; color: #26362d; font-size: 20px; line-height: 1.85; text-align: right; text-overflow: ellipsis; text-overflow: "..."; white-space: nowrap; cursor: pointer; }
.ayah-disclosure[open] > .ayah-excerpt { overflow: visible; text-overflow: clip; white-space: normal; }
.ayah-excerpt::marker { content: ""; }
.stop-here-button { width: 44px; height: 44px; display: inline-grid; flex: 0 0 auto; place-items: center; padding: 0; border: 0; border-radius: 9px; color: #8794a6; background: transparent; cursor: pointer; }
.stop-here-button svg { width: 22px; height: 22px; }
.stop-here-button.is-last-read { color: #345d96; background: transparent; }
.stop-here-button.is-last-read svg { fill: currentColor; }
.stop-here-button:disabled { opacity: 1; cursor: default; }
.stop-here-button:focus-visible { outline: 3px solid #8da9d0; outline-offset: 2px; }
.attribution-note { display: grid; gap: 5px; margin-top: 22px; padding: 14px 17px; border-radius: 12px; color: #777f73; background: #ebece3; font-size: 10px; line-height: 1.5; }
.attribution-note b { color: #394e40; }

.year-picker { display: grid; gap: 6px; color: #7d857a; font-size: .6875rem; font-weight: 750; letter-spacing: .1em; }
.year-picker select.input-control { min-height: 44px; padding-inline: 14px 2.75rem; font-size: 1rem; font-weight: 600; background-position: right 14px center; cursor: pointer; }
.input-control { min-height: 42px; padding: 0 12px; border: 1px solid #dadfd3; border-radius: 10px; color: #35483a; background: #fffefa; font-size: 12px; }
.field-label select.input-control, .year-picker select.input-control { appearance: none; padding-inline-end: 3.25rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23536458' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; background-size: 16px; }
.history-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.history-stats article { display: grid; gap: 5px; padding: 17px 18px; border: 1px solid #e6e5da; border-radius: 15px; background: var(--surface); color: #7c8578; font-size: .875rem; }
.history-list-wrap .section-heading h2 { font-size: 1.5625rem; }
.stat-number { color: var(--forest); font-family: Georgia, serif; font-size: 28px; }
.history-list-wrap { margin-top: 31px; }
.history-list-wrap .section-heading { margin-top: 0; }
.history-list { overflow: hidden; border: 1px solid #e5e4da; border-radius: 15px; background: var(--surface); }
.history-row { display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 11px 16px; border-bottom: 1px solid #efeee7; }
.history-row:last-child { border-bottom: 0; }
.history-date { width: 42px; display: grid; justify-items: center; color: #8b927f; }
.history-date b { color: #405346; font-family: Georgia, serif; font-size: 20px; font-weight: 500; }
.history-date small { font-size: .75rem; text-transform: uppercase; }
.history-row-main { min-width: 0; flex: 1; display: grid; gap: 5px; }
.history-row-main b { color: #3a483d; font-size: .9375rem; }
.history-row-main small { overflow: hidden; color: #838a7e; font-size: .8125rem; text-overflow: ellipsis; white-space: nowrap; }
.history-row-check { color: #538467; }
.empty-state { padding: 38px 20px; border: 1px dashed #d8dbcd; border-radius: 16px; color: #7b8478; background: #fbfaf5; text-align: center; }
.empty-state-symbol { color: #b59c5e; font-size: 29px; }
.empty-state h3 { margin: 13px 0 6px; color: #35483a; font-size: 18px; }
.empty-state p { max-width: 320px; margin: 0 auto 17px; font-size: 12px; line-height: 1.6; }

.settings-card { margin-bottom: 15px; padding: 23px 24px; border: 1px solid #e4e3d8; border-radius: 17px; background: var(--surface); box-shadow: 0 8px 24px rgb(30 47 35 / 3%); }
.settings-section-heading { margin-bottom: 17px; }
.settings-section-heading .eyebrow { margin-bottom: 6px; }
.settings-section-heading h2 { margin: 0; color: #2d4033; font-size: 17px; font-weight: 620; letter-spacing: -.03em; }
.settings-section-heading p:not(.eyebrow) { max-width: 620px; margin: 8px 0 0; color: #7b8478; font-size: 11px; line-height: 1.6; }
.plan-mode-options { display: grid; gap: 8px; margin-bottom: 17px; }
.plan-mode-option { display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid #e7e7dd; border-radius: 12px; cursor: pointer; }
.plan-mode-option.selected { border-color: #a4bdab; background: #f3f7f1; }
.plan-mode-option input { position: absolute; opacity: 0; }
.radio-dot { width: 17px; height: 17px; display: grid; place-items: center; border: 1px solid #b9c1b4; border-radius: 50%; }
.plan-mode-option.selected .radio-dot { border-color: #35644d; }
.plan-mode-option.selected .radio-dot::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #35644d; }
.plan-option-copy { display: grid; gap: 3px; }
.plan-option-copy b { color: #34483a; font-size: 1rem; }
.plan-option-description { color: #687467; font-size: .875rem; line-height: 1.45; }
.field-label { display: grid; grid-template-columns: 1fr 180px; align-items: center; gap: 12px; margin-top: 12px; color: #536458; font-size: .9375rem; font-weight: 650; }
.starting-juz-field { font-size: 1rem; }
.field-help { grid-column: 1 / -1; margin-top: -7px; color: #687467; font-size: .875rem; font-weight: 400; line-height: 1.5; }
.reminder-list { overflow: hidden; border: 1px solid #e8e7de; border-radius: 13px; }
.reminder-row { min-height: 65px; display: flex; align-items: center; gap: 12px; padding: 10px 13px; border-bottom: 1px solid #eeede5; }
.reminder-row:last-child { border-bottom: 0; }
.reminder-index { color: #b69b55; font-family: Georgia, serif; font-size: 14px; }
.reminder-copy { flex: 1; display: grid; gap: 4px; }
.reminder-copy b { color: #394a3d; font-size: 11px; }
.reminder-copy small { color: #8b9085; font-size: 9px; }
.time-input { min-height: 38px; padding: 0 9px; border: 1px solid #dce0d5; border-radius: 9px; color: #33483a; background: #fffefa; font-size: 11px; }
.permission-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 15px; padding-top: 15px; border-top: 1px solid #efeee7; }
.permission-row > div { display: grid; gap: 4px; }
.permission-row b { color: #455649; font-size: 11px; }
.permission-row small, .inline-note { color: #8a8f83; font-size: 9px; line-height: 1.5; }
.permission-row .button { min-height: 35px; font-size: 10px; }
.permission-row .button:disabled { opacity: .7; cursor: default; }
.inline-note { margin: 11px 0 0; }
.data-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.data-actions .button { min-height: 39px; }
.import-label { cursor: pointer; }
.danger-text { margin-left: auto; color: var(--danger); }
.source-card { display: flex; gap: 14px; padding: 18px 20px; border: 1px solid #dfe4d8; border-radius: 15px; background: #edf0e8; }
.source-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--gold); background: var(--forest); font-family: "Noto Naskh Arabic", serif; }
.source-mark { font-size: 1.125rem; }
.source-card b { color: #354b3c; font-size: 1rem; }
.source-card p { max-width: 620px; margin: 5px 0 7px; color: #687467; font-size: .875rem; line-height: 1.55; }
.source-card a { display: inline-flex; align-items: center; gap: 5px; color: #38634d; font-size: .875rem; font-weight: 700; text-decoration: none; }
.source-card a svg { width: 15px; height: 15px; }
.data-settings-card .settings-section-heading p:not(.eyebrow) { font-size: .875rem; line-height: 1.55; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.toast { position: fixed; z-index: 20; left: 50%; bottom: 28px; max-width: calc(100% - 32px); padding: 12px 17px; border: 1px solid rgb(255 255 255 / 14%); border-radius: 12px; color: #fffdf8; background: #203f34; box-shadow: 0 12px 30px rgb(13 39 30 / 24%); opacity: 0; pointer-events: none; transform: translate(-50%, 10px); transition: opacity .2s ease, transform .2s ease; font-size: 12px; text-align: center; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Improve legibility for the reading and dashboard content. */
.section-heading h2, .session-heading h2, .ayah-toolbar h2 { font-size: 22px; }
.session-heading h2, .quick-overview .section-heading h2 { font-size: 1.5625rem; }
.caption-pill { font-size: .75rem; }
.slot-number { font-size: 1rem; }
.slot-header b { font-size: .9375rem; }
.section-summary-top { font-size: .8125rem; }
.section-summary small { font-size: .75rem; }
.opening-preview { font-size: 25px; }
.ayah-excerpt { font-size: 25px; }
.juz-preview { font-size: 25px; }
.page-intro, .steady-note p, .resume-card p:last-child { font-size: 13px; }
.button { font-size: 13px; }
.reminder-settings-card .settings-section-heading p:not(.eyebrow) { font-size: .875rem; }
.reminder-settings-card .reminder-index { font-size: 1rem; }
.reminder-settings-card .reminder-copy b { font-size: .9375rem; }
.reminder-settings-card .reminder-copy small { font-size: .8125rem; }
.reminder-settings-card .time-input { font-size: .8125rem; }
.reminder-settings-card .permission-row b { font-size: .9375rem; }
.reminder-settings-card .permission-row small,
.reminder-settings-card .inline-note { font-size: .8125rem; }
.reminder-settings-card .permission-row .button { min-height: 44px; font-size: .8125rem; }

@media (max-width: 1000px) {
  .date-label { display: none; }
}

@media (max-width: 760px) {
  .app-shell { padding: 0 22px 84px; }
  .topbar { height: 76px; }
  .main-content { min-height: calc(100vh - 120px); padding: 31px 0 34px; }
  .topbar-right { gap: 0; }
  .date-label { display: none; }
  .top-nav { display: none; }
  .site-footer { padding-bottom: max(0px, env(safe-area-inset-bottom)); font-size: 9px; }
  .bottom-nav { position: fixed; z-index: 10; left: 0; right: 0; bottom: 0; height: calc(60px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 4px 12px max(4px, env(safe-area-inset-bottom)); border-top: 1px solid #e5e4da; background: rgb(255 254 250 / 95%); backdrop-filter: blur(18px); transform: translateZ(0); }
  .back-to-top { right: 16px; bottom: calc(70px + env(safe-area-inset-bottom)); }
  .nav-button { position: relative; display: grid; place-items: center; align-content: center; gap: 3px; border: 0; border-radius: 10px; color: #858b7f; background: transparent; cursor: pointer; }
  .nav-button svg { width: 22px; height: 22px; }
  .nav-button span { font-size: .75rem; font-weight: 650; }
  .nav-button.is-active { color: var(--forest); }
  .nav-button.is-active::before { content: ""; position: absolute; inset-block-start: -5px; inset-inline-start: 50%; width: 100%; height: 3px; margin: 0; border-radius: 0; background: #bba15e; transform: translateX(-50%); }
  .welcome-row { margin-bottom: 20px; }
  .welcome-row h1 { font-size: 36px; }
  .ornament { width: 70px; height: 70px; margin: 0 10px 3px 0; font-size: 36px; }
  .goal-card { padding: 21px 21px 18px; border-radius: 20px; }
  .goal-card h2 { font-size: 20px; }
  .section-heading { margin-top: 28px; }
  .section-overview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .juz-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .juz-card { padding: 14px 13px 13px; }
  .juz-preview { min-height: 50px; }
  .detail-hero { padding: 23px 20px 20px; border-radius: 20px; }
  .detail-hero h1 { font-size: 27px; }
  .detail-opening { font-size: 20px; }
  .resume-card { align-items: flex-start; flex-direction: column; }
  .resume-card .button { width: 100%; }
  .ayah-row { padding-inline: 8px; }
  .ayah-toolbar { align-items: flex-start; flex-direction: column; gap: 9px; }
  .page-note-field { align-self: flex-end; margin-top: -3px; }
  .stop-here-button { width: 44px; height: 44px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .year-picker { grid-template-columns: auto 132px; align-items: center; gap: 10px; }
  .history-stats { gap: 8px; }
  .history-stats article { padding: 13px 11px; font-size: .8125rem; }
  .stat-number { font-size: 24px; }
  .settings-card { padding: 20px 16px; }
  .field-label { grid-template-columns: 1fr 140px; }
  .site-footer { margin-top: -28px; }
}

@media (max-width: 390px) {
  .app-shell { padding-inline: 16px; }
  .welcome-row h1 { font-size: 32px; }
  .ornament { width: 60px; height: 60px; margin-right: 6px; font-size: 31px; }
  .goal-card { padding-inline: 17px; }
  .juz-grid { gap: 8px; }
  .juz-card { padding-inline: 11px; }
  .section-summary { padding: 12px 8px; }
  .section-summary-top { font-size: 9px; }
  .mini-juz-list i { width: 12px; }
  .mini-juz-list { gap: 3px; }
  .steady-note { align-items: flex-start; flex-wrap: wrap; }
  .steady-note-body { min-width: calc(100% - 32px); }
  .steady-note .text-button { margin-left: 25px; padding: 0; }
}

@media (forced-colors: active) {
  .field-label select.input-control, .year-picker select.input-control { appearance: auto; padding-inline-end: 12px; background-image: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
