:root {
  color-scheme: light;
  --forest: #173f35;
  --forest-deep: #10352c;
  --forest-soft: #e6eee8;
  --paper: #f4f2e9;
  --surface: #fffefa;
  --surface-2: #f8f7f1;
  --ink: #202922;
  --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(222 226 207 / 60%), transparent 34rem),
    var(--paper);
}

button, input, select { font: inherit; }
button, select, input[type="time"], input[type="date"] { touch-action: manipulation; }
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; }
.brand-mark { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 50%; background: var(--forest); color: var(--gold); font-family: "Noto Naskh Arabic", "Noto Sans Arabic", serif; font-size: 24px; line-height: 1; }
.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; }
.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 #d7e0d6; border-radius: 50%; color: var(--forest); background: #fffefa; box-shadow: 0 8px 24px rgb(30 47 35 / 15%); cursor: pointer; visibility: hidden; opacity: 0; pointer-events: none; translate: 0 8px; transition: opacity .18s ease, translate .18s ease, visibility .18s; }
.back-to-top svg { width: 20px; height: 20px; }
body.has-scrolled .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-mark { width: 58px; height: 58px; font-size: 30px; }
.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, #173f35, #205142); box-shadow: 0 20px 42px rgb(23 63 53 / 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; }
.focus-card { 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-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; }
.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: 10px; align-items: center; }
.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: repeat(5, minmax(0, 1fr)); gap: 10px; }
.prayer-session-button { min-width: 0; min-height: 79px; display: flex; align-items: center; gap: 11px; padding: 12px 13px; border: 1px solid #e6e5dc; border-radius: 14px; background: rgb(255 254 250 / 82%); text-align: left; cursor: pointer; }
.prayer-session-button.is-done { border-color: #c8d9cc; background: #f0f6ef; }
.slot-number { color: #b49b5f; font-family: Georgia, serif; font-size: 15px; }
.slot-main { min-width: 0; flex: 1; }
.slot-main b { display: block; color: #27342a; font-size: 12px; font-weight: 700; }
.slot-main small { display: block; overflow: hidden; margin-top: 5px; color: #869085; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.slot-check { display: grid; place-items: center; color: #8b9b8c; }
.slot-check svg { width: 15px; height: 15px; }
.is-done .slot-check { color: #4f8967; }
.steady-note { display: flex; align-items: center; gap: 11px; margin-top: 17px; padding: 12px 16px; border-radius: 13px; color: #627367; background: #e9eee5; }
.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 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px; }
.section-summary { 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-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: 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; }
.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; }
.juz-state { color: #93958a; font-size: 9px; }
.juz-state.in-progress { color: #8c7136; }
.juz-state.complete { color: #448062; }
.juz-surah { display: block; margin-top: 13px; color: #2d3c31; font-size: 14px; }
.juz-reference { display: block; margin-top: 4px; color: #888d80; font-size: 10px; }
.juz-preview { display: -webkit-box; overflow: hidden; min-height: 46px; margin: 10px 0 13px; color: #59675c; font-size: 14px; line-height: 1.7; -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 { display: block; overflow: hidden; margin-top: 7px; color: #888d80; font-size: 9px; 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 { padding: 26px 30px 23px; border-radius: 23px; color: #fffdf7; background: linear-gradient(116deg, #173f35, #234f42); }
.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-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-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 0 14px 14px; transition: background .2s ease; }
.ayah-row.is-resume { background: #ebf1e9; }
.ayah-row-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ayah-ref { color: #819084; font-size: 10px; }
.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 { min-height: 44px; display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; padding: 0 10px; border: 1px solid #dce5d9; border-radius: 9px; color: #42634d; background: #fbfcf7; cursor: pointer; font-size: 10px; font-weight: 700; white-space: nowrap; }
.stop-here-button svg { width: 15px; height: 15px; }
.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: 9px; font-weight: 750; letter-spacing: .1em; }
.input-control { min-height: 42px; padding: 0 12px; border: 1px solid #dadfd3; border-radius: 10px; color: #35483a; background: #fffefa; font-size: 12px; }
.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: 10px; }
.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: 36px; display: grid; justify-items: center; color: #8b927f; }
.history-date b { color: #405346; font-family: Georgia, serif; font-size: 17px; font-weight: 500; }
.history-date small { font-size: 9px; text-transform: uppercase; }
.history-row-main { min-width: 0; flex: 1; display: grid; gap: 5px; }
.history-row-main b { color: #3a483d; font-size: 12px; }
.history-row-main small { overflow: hidden; color: #838a7e; font-size: 10px; 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: 11px; }
.plan-option-copy small { color: #858b7e; font-size: 10px; }
.field-label { display: grid; grid-template-columns: 1fr 180px; align-items: center; gap: 12px; margin-top: 12px; color: #536458; font-size: 11px; font-weight: 650; }
.field-label small { grid-column: 1 / -1; margin-top: -7px; color: #858b7e; font-weight: 400; }
.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-card b { color: #354b3c; font-size: 12px; }
.source-card p { max-width: 620px; margin: 5px 0 7px; color: #788376; font-size: 10px; line-height: 1.5; }
.source-card a { display: inline-flex; align-items: center; gap: 5px; color: #38634d; font-size: 10px; font-weight: 700; text-decoration: none; }
.source-card a svg { width: 13px; height: 13px; }
.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); }

@media (max-width: 760px) {
  .app-shell { padding: 0 22px 92px; }
  .topbar { height: 76px; }
  .main-content { min-height: calc(100vh - 120px); padding: 31px 0 34px; }
  .topbar-right { gap: 0; }
  .date-label { display: none; }
  .site-footer { padding-bottom: max(0px, env(safe-area-inset-bottom)); font-size: 9px; }
  .bottom-nav { position: fixed; z-index: 10; inset: auto 0 0; min-height: 68px; display: grid; grid-template-columns: repeat(4, 1fr); padding: 7px 12px max(7px, env(safe-area-inset-bottom)); border-top: 1px solid #e5e4da; background: rgb(255 254 250 / 95%); backdrop-filter: blur(18px); }
  .back-to-top { right: 16px; bottom: calc(78px + env(safe-area-inset-bottom)); }
  .nav-button { 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: 18px; height: 18px; }
  .nav-button span { font-size: 9px; font-weight: 650; }
  .nav-button.is-active { color: var(--forest); }
  .nav-button.is-active::before { content: ""; width: 23px; height: 2px; margin-bottom: 1px; border-radius: 3px; background: #bba15e; }
  .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; }
  .prayer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prayer-session-button:last-child { grid-column: 1 / -1; }
  .section-overview { grid-template-columns: repeat(3, 1fr); }
  .juz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .juz-card { padding: 14px 13px 13px; }
  .juz-preview { font-size: 13px; }
  .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; }
  .ayah-excerpt { font-size: 19px; }
  .stop-here-button { min-height: 40px; padding-inline: 8px; font-size: 9px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .year-picker { grid-template-columns: auto 100px; align-items: center; }
  .history-stats { gap: 8px; }
  .history-stats article { padding: 13px 11px; font-size: 9px; }
  .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; }
  .juz-state { font-size: 8px; }
  .section-summary { padding: 12px 9px; }
  .section-summary-top { font-size: 9px; }
  .mini-juz-list i { width: 12px; }
  .steady-note { align-items: flex-start; flex-wrap: wrap; }
  .steady-note p { min-width: calc(100% - 32px); }
  .steady-note .text-button { margin-left: 25px; padding: 0; }
}

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