:root {
  --bg:#f6f4ee; --paper:#fffefb; --ink:#263e36; --muted:#7e867e; --line:#e4e6dc;
  --green:#173e35; --green-soft:#e8eee5; --gold:#b49356; --gold-soft:#f1eadb;
  --shadow:0 16px 50px rgba(37,58,43,.045); --arabic-size:32px;
  color-scheme:light; font-family:Manrope,system-ui,sans-serif; font-size:14px;
}
:root[data-theme="dark"] {
  --bg:#131e1a; --paper:#1b2923; --ink:#e6ede1; --muted:#a0afa1; --line:#304036;
  --green:#bdd3b8; --green-soft:#2a3a2c; --gold:#cfb67e; --gold-soft:#3a3325;
  --shadow:0 16px 50px #0002; color-scheme:dark;
}
* {box-sizing:border-box}
body {margin:0;background:var(--bg);color:var(--ink);line-height:1.7}
button,input,select {font:inherit}
button,a,input,select { -webkit-tap-highlight-color:transparent}
button {cursor:pointer;color:inherit}
a {color:inherit;text-decoration:none}
button {border:0}
button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible {outline:3px solid var(--gold);outline-offset:4px}
button:disabled {opacity:.45;cursor:default}
[hidden] {display:none!important}
.svg-sprite {position:absolute;width:0;height:0;overflow:hidden}
.icon {width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.icon-button {width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;background:transparent;border-radius:50%;flex-shrink:0}
.icon-button:hover {background:var(--green-soft)}
.brand {display:flex;gap:11px;align-items:center;font-family:Lora,Georgia,serif;font-size:30px;line-height:1.1;letter-spacing:-1px}
.brand-caption {display:block;font:8px Manrope,sans-serif;letter-spacing:2.5px;margin-top:8px;color:var(--muted)}
.sidebar {width:244px;position:fixed;inset:0 auto 0 0;background:var(--paper);border-right:1px solid var(--line);padding:39px 27px;display:flex;flex-direction:column;z-index:12}
.sidebar-rule {height:1px;background:var(--line);margin:33px 0 29px}
.nav-label,.eyebrow {font-size:10px;font-weight:700;letter-spacing:2px;color:var(--muted);margin:0 0 15px}
.side-nav {display:grid;gap:8px;margin:0 -9px}
.side-nav a {display:flex;align-items:center;gap:13px;padding:14px 13px;border-radius:9px;font-size:12px;font-weight:600;color:var(--muted)}
.side-nav a.active {color:var(--green);background:var(--green-soft)}
.side-nav a:hover {background:var(--bg)}
.nav-dot {display:none;margin-left:auto;width:5px;height:5px;border-radius:50%;background:var(--green)}
.side-nav a.active .nav-dot {display:block}
.bookmark-count {font-size:10px;margin-left:auto;border:1px solid var(--line);padding:0 6px;border-radius:5px}
.sidebar-bottom {margin-top:auto}
.little-message {padding:22px 12px;margin:30px -8px;background:var(--bg);border-radius:10px;font-size:11px;color:var(--muted)}
.little-message .icon {color:var(--gold);width:18px;height:18px}
.little-message p {margin:7px 0 0}
.theme-switch {display:flex;gap:10px;align-items:center;background:none;width:100%;font-size:11px;padding:9px 0}
.switch-track {width:27px;height:16px;background:var(--line);border-radius:20px;margin-left:auto;position:relative}
.switch-track:after {content:"";width:10px;height:10px;border-radius:50%;position:absolute;top:3px;left:3px;background:var(--paper)}
[data-theme="dark"] .switch-track {background:#6b8367}
[data-theme="dark"] .switch-track:after {left:14px}
.source-link {font-size:10px;color:var(--muted);background:none;display:flex;justify-content:space-between;align-items:center;width:100%;padding:22px 0 0}
.source-link .icon {width:15px;height:15px}
.app-shell {margin-left:244px;max-width:1490px;min-height:100vh}
main {max-width:1044px;padding:39px 58px 25px;margin:auto}
.mobile-header,.mobile-nav {display:none}
.home-top {display:flex;align-items:center;justify-content:space-between;margin-bottom:32px;font-size:12px}
.salutation {display:flex;align-items:center;gap:9px;font-weight:600}
.salutation .icon {color:var(--gold);width:17px;height:17px}
.date-label {font-size:10px;color:var(--muted);letter-spacing:.3px}
.hero {display:grid;grid-template-columns:1.5fr 1fr;min-height:250px;align-items:center;padding:2px 0 30px}
.hero .eyebrow {color:var(--gold);font-size:9px;letter-spacing:2.4px;margin-bottom:18px}
h1,h2,h3,p {overflow-wrap:break-word}
h1 {font-family:Lora,Georgia,serif;font-size:44px;font-weight:400;letter-spacing:-1.9px;line-height:1.25;margin:0}
.hero-sub {max-width:370px;font-size:12px;line-height:1.9;color:var(--muted);margin:18px 0 0}
.hero-art {width:235px;height:245px;justify-self:end;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:130px 130px 0 0;border:1px solid #c9b78560;background:radial-gradient(ellipse at 50% 10%,#d4c39710,transparent 80%);overflow:hidden}
.hero-art:before {content:"";position:absolute;inset:10px;border-radius:130px 130px 0 0;border:1px solid #c9b78535}
.hero-art:after {content:"";position:absolute;inset:0;background-image:url("./assets/pattern.svg");background-size:80px;opacity:.17}
.hero-art .arabic-title {position:relative;z-index:1;font:38px "Amiri Quran",serif;color:var(--green);line-height:2.1;text-align:center}
.hero-art .art-label {position:relative;z-index:1;letter-spacing:3px;color:var(--gold);font-size:8px;margin-top:5px}
.art-line {position:relative;z-index:1;width:34px;height:1px;background:var(--gold);margin:14px 0}
.continue-card {width:100%;display:flex;gap:16px;align-items:center;border:1px solid var(--line);border-radius:12px;padding:19px 22px;background:var(--paper);text-align:left;box-shadow:var(--shadow);margin:13px 0 36px;transition:border-color .2s,transform .2s}
.continue-card:hover {border-color:var(--gold);transform:translateY(-2px)}
.continue-icon {background:var(--gold-soft);width:43px;height:43px;border-radius:10px;display:flex;justify-content:center;align-items:center;color:var(--gold);flex-shrink:0}
.continue-copy {flex:1}
.continue-copy .mini {font-size:9px;letter-spacing:1.2px;color:var(--muted);display:block;margin-bottom:3px;font-weight:700}
.continue-copy strong {font-size:12px;font-weight:700}
.continue-copy .last-meta {font-size:10px;color:var(--muted);font-weight:400;margin-left:9px}
.continue-arrow {color:var(--green);display:flex;gap:10px;align-items:center;font-size:10px;font-weight:700}
.section-heading {display:flex;align-items:center;justify-content:space-between;gap:15px;margin:0 0 21px}
h2 {font-family:Lora,Georgia,serif;font-size:23px;letter-spacing:-.5px;font-weight:400;margin:0}
.section-meta {font-size:9px;color:var(--muted)}
.surah-grid {display:grid;grid-template-columns:1fr 1fr;gap:17px}
.surah-card {background:var(--paper);border:1px solid var(--line);border-radius:13px;padding:25px 27px 20px;text-align:left;position:relative;overflow:hidden;min-height:191px;transition:transform .2s,box-shadow .2s,border-color .2s}
.surah-card:hover {transform:translateY(-3px);box-shadow:0 9px 30px #173e3510;border-color:var(--gold)}
.surah-card.featured {background:#173e35;border-color:#173e35;color:#fcfbf2}
.surah-card.featured:before {content:"";position:absolute;width:230px;height:250px;right:-85px;top:-27px;opacity:.12;background:url("./assets/pattern.svg") center/80px;transform:rotate(12deg)}
.card-top {display:flex;justify-content:space-between;align-items:center;margin-bottom:13px;position:relative}
.surah-number {width:32px;height:32px;display:flex;align-items:center;justify-content:center;color:var(--gold);position:relative;font-size:10px;font-weight:700}
.surah-number:before {content:"";position:absolute;inset:3px;border:1px solid currentColor;transform:rotate(45deg);border-radius:3px}
.surah-number:after {content:"";position:absolute;inset:3px;border:1px solid currentColor;border-radius:3px}
.card-arabic {font:22px "Amiri Quran",serif;line-height:1.7;opacity:.9}
.featured .card-arabic {color:#ddd8b4}
.surah-card h3 {font:400 25px Lora,Georgia,serif;letter-spacing:-.7px;margin:0 0 2px;position:relative}
.card-meaning {font-size:10px;color:var(--muted);margin:0 0 20px}
.featured .card-meaning {color:#b5c4b9}
.card-bottom {border-top:1px solid var(--line);padding-top:13px;display:flex;justify-content:space-between;align-items:center;gap:5px;font-size:9px;color:var(--muted)}
.featured .card-bottom {border-color:#ffffff20;color:#bdccbe}
.card-bottom .icon {width:17px;height:17px;color:var(--green)}
.featured .card-bottom .icon {color:#e5e7c4}
.card-completed {font-size:9px;display:flex;gap:4px;align-items:center;color:var(--gold)}
.card-completed .icon {width:13px;height:13px}
.daily-verse {margin:34px 0 10px;display:flex;align-items:center;gap:17px;padding:21px 24px;background:var(--gold-soft);border-radius:11px}
.verse-flower {color:var(--gold);width:29px;height:29px;flex-shrink:0}
.daily-verse p {font-family:Lora,Georgia,serif;font-style:italic;font-size:14px;margin:0;line-height:1.6}
.daily-verse small {display:block;color:var(--muted);font-size:9px;margin-top:5px}
.site-footer {max-width:1044px;padding:14px 58px 30px;margin:auto;display:flex;justify-content:space-between;color:var(--muted);font-size:9px}
.site-footer button {font-size:9px;color:var(--muted);background:none;display:flex;gap:6px;align-items:center;padding:0}
.site-footer .icon {width:12px;height:12px}
.page-top {margin:0 0 33px}
.page-top .eyebrow {color:var(--gold);font-size:9px;margin-bottom:14px}
.page-top h1 {font-size:36px}
.page-top p {font-size:12px;color:var(--muted);margin:13px 0 0}
.empty-state {padding:65px 25px;background:var(--paper);border:1px solid var(--line);border-radius:14px;text-align:center}
.empty-state>.icon {width:35px;height:35px;color:var(--gold);margin-bottom:13px}
.empty-state h2 {font-size:23px;margin-bottom:8px}
.empty-state p {font-size:12px;color:var(--muted);margin-bottom:25px}
.primary-button,.secondary-button {display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:12px 18px;border-radius:8px;font-size:11px;font-weight:600}
.primary-button {background:var(--green);color:var(--paper)}
.primary-button:hover {filter:brightness(1.12)}
.secondary-button {background:var(--paper);border:1px solid var(--line)}
.secondary-button:hover {border-color:var(--gold)}
.primary-button .icon,.secondary-button .icon {width:17px;height:17px}
.bookmarks {display:grid;gap:14px}
.bookmark-item {background:var(--paper);border:1px solid var(--line);padding:22px 25px;border-radius:12px}
.bookmark-header {display:flex;align-items:center;justify-content:space-between;gap:10px}
.bookmark-title {font-size:12px;font-weight:700}
.bookmark-item .arabic {font-size:26px;margin:14px 0}
.bookmark-item .translation {font-size:11px;margin:0 0 14px}
.bookmark-item .secondary-button {padding:8px 12px;font-size:10px}
.reader {padding-top:26px;max-width:995px}
.reader-bar {position:sticky;top:0;display:flex;align-items:center;gap:12px;background:var(--bg);padding:14px 0;z-index:5;border-bottom:1px solid var(--line)}
.reader-bar .reader-name {font-size:12px;font-weight:700;flex:1}
.reader-bar .reader-name span {display:block;font-size:9px;font-weight:400;color:var(--muted);margin-top:1px}
.reader-tools {display:flex;gap:3px}
.reader-tools .icon {width:18px;height:18px}
.reader-intro {text-align:center;padding:38px 15px 31px}
.reader-intro .eyebrow {font-size:9px;color:var(--gold);margin-bottom:12px}
.reader-intro h1 {font-size:35px;margin-bottom:6px}
.reader-intro p {font-size:11px;color:var(--muted);margin:9px 0 18px}
.reader-arabic-title {font:34px "Amiri Quran",serif;line-height:2.2;color:var(--green);margin:8px 0}
.reader-controls {display:flex;align-items:center;gap:12px;justify-content:space-between;flex-wrap:wrap;margin:0 0 21px}
.reader-toggles {display:flex;gap:15px;align-items:center}
.toggle-label {font-size:10px;display:flex;gap:6px;align-items:center;cursor:pointer}
input[type="checkbox"] {accent-color:var(--green);width:14px;height:14px}
.jump-input {border:1px solid var(--line);background:var(--paper);color:var(--ink);padding:9px 12px;border-radius:7px;font-size:10px;max-width:170px}
.basmalah {font:30px "Amiri Quran",serif;color:var(--green);text-align:center;margin:19px 0 28px;line-height:2.3}
.ayah {background:var(--paper);border:1px solid var(--line);border-radius:12px;margin:0 0 15px;padding:21px 26px 24px;scroll-margin-top:105px}
.ayah-header {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}
.ayah-number {font-size:10px;color:var(--muted);display:flex;gap:8px;align-items:center}
.ayah-number .num {border:1px solid var(--line);border-radius:20px;width:27px;height:27px;display:flex;align-items:center;justify-content:center;color:var(--green);font-size:10px}
.ayah-actions {display:flex;gap:1px}
.ayah-actions .icon-button {width:35px;height:35px}
.ayah-actions .icon {width:17px;height:17px}
.bookmarked {color:var(--gold)}
.bookmarked .icon {fill:var(--gold-soft)}
.arabic {font-family:"Amiri Quran","Amiri","Noto Naskh Arabic",serif;font-size:var(--arabic-size);line-height:2.45;text-align:right;direction:rtl;letter-spacing:0;overflow-wrap:normal;word-break:normal}
.ayah .arabic {margin:5px 0 14px}
.latin {font-size:13px;color:var(--gold);line-height:1.95;margin:11px 0 15px;font-style:italic}
.translation {font-size:14px;line-height:1.95;color:var(--muted);margin:12px 0 0}
body.hide-latin .latin,body.hide-translation .ayah .translation {display:none}
.ayah.playing {border-color:var(--gold);box-shadow:0 0 0 1px var(--gold)}
.reader-complete {border:1px solid var(--line);padding:30px;text-align:center;border-radius:12px;margin:27px 0 15px}
.reader-complete h2 {font-size:23px}
.reader-complete p {font-size:11px;color:var(--muted);margin:10px 0 21px}
.reader-source {font-size:9px;color:var(--muted);text-align:center;padding:13px}
.reader-source a {text-decoration:underline;text-underline-offset:3px}
.mushaf {background:var(--paper);border:4px double var(--gold);padding:25px 30px;border-radius:3px}
.mushaf-text {font-family:"Amiri Quran","Amiri","Noto Naskh Arabic",serif;font-size:var(--arabic-size);font-weight:400;line-height:2.6;direction:rtl;text-align:justify;text-align-last:right;margin:0;overflow-wrap:normal;word-break:normal}
.mushaf .mushaf-ayah.ayah {display:inline;background:transparent;border:0;box-shadow:none;border-radius:0;padding:0;margin:0;scroll-margin-top:110px}
.mushaf .mushaf-ayah.playing {background:var(--green-soft);border-radius:4px}
.ayah-end {display:inline-flex;vertical-align:middle;align-items:center;justify-content:center;min-width:32px;height:32px;margin:0 4px 5px;border:3px double var(--gold);border-radius:50%;background:transparent;color:var(--ink);font-family:"Amiri Quran",serif;font-size:17px;line-height:1;padding:1px 3px;direction:rtl;white-space:nowrap}
.ayah-end:hover,.ayah-end.bookmarked {background:var(--gold-soft);color:var(--gold)}
.mushaf-help {font-size:10px;text-align:center;color:var(--muted);margin:15px 0 25px}
.meaning-panel {margin:25px 0}
.meaning-ayah {background:var(--paper);border:1px solid var(--line);border-radius:10px;padding:18px 23px;margin-bottom:12px}
body.hide-translation .meaning-panel .translation {display:none}
body.hide-latin.hide-translation .meaning-panel {display:none}
.verse-latin {color:var(--gold);font-size:12px;line-height:1.9;font-style:italic}
.verse-translation {font-size:14px;line-height:1.9}
.verse-modal-actions {display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:25px}
.doa-home-card {margin:28px 0 5px;background:var(--green-soft);box-shadow:none}
.doa-filter-bar {display:flex;gap:12px;margin:5px 0 16px}
.doa-search {display:flex;gap:11px;align-items:center;flex:1;min-width:0;background:var(--paper);border:1px solid var(--line);padding:12px 15px;border-radius:9px}
.doa-search .icon {width:18px;height:18px;color:var(--muted)}
.doa-search input {width:100%;min-width:0;background:transparent;border:0;color:var(--ink);outline:none;font-size:12px}
.doa-search:focus-within {border-color:var(--gold);box-shadow:0 0 0 2px var(--gold-soft)}
.doa-filter-bar .setting-select {max-width:245px;width:245px;font-size:11px;background:var(--paper)}
.doa-toolbar {display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:23px}
.guide-link {display:flex;gap:6px;align-items:center;font-size:11px;color:var(--green)}
.guide-link .icon {width:16px;height:16px}
.doa-result-count {font-size:10px;color:var(--muted);margin:0 0 14px}
.prayer-list {display:grid;gap:10px}
.prayer-card {display:flex;align-items:center;gap:8px;background:var(--paper);border:1px solid var(--line);border-radius:10px;padding:15px 18px;transition:border-color .2s}
.prayer-card:hover {border-color:var(--gold)}
.prayer-card-link {display:flex;align-items:center;gap:16px;flex:1;min-width:0}
.prayer-list-number {color:var(--gold);font-size:11px;flex-shrink:0;min-width:27px;text-align:center}
.prayer-card strong {display:block;font-size:12px;line-height:1.8;font-weight:600}
.prayer-card small {display:block;font-size:10px;color:var(--muted);margin-top:4px}
.prayer-card .icon-button {width:34px;height:34px}
.bookmark-section-title {margin:25px 0 17px}
.saved-prayers {margin-bottom:20px}
.doa-intro h1 {font-size:31px;line-height:1.5}
.doa-subtitle {white-space:pre-line}
.version-picker {display:flex;flex-wrap:wrap;gap:12px;justify-content:center;align-items:center;font-size:11px;margin-top:22px;color:var(--muted)}
.version-picker .setting-select {max-width:350px;font-size:11px;background:var(--paper)}
.doa-body,.prayer-blocks {background:var(--paper);border:3px double var(--gold);padding:20px 27px;border-radius:4px}
.doa-arabic {white-space:pre-line;line-height:2.5;margin:14px 0}
.doa-meaning {margin:16px 0 10px;border-top:1px solid var(--line);padding-top:13px}
.doa-meaning summary,.source-summary summary {cursor:pointer;font-size:11px;color:var(--gold)}
.doa-latin {font-size:12px;font-style:italic;color:var(--gold);line-height:2;white-space:pre-line;margin:18px 0}
.doa-translation {font-size:14px;line-height:2;color:var(--muted);white-space:pre-line;margin:17px 0}
.prayer-block {padding:15px 0 23px;border-bottom:1px solid var(--line)}
.prayer-block:last-child {border-bottom:0;padding-bottom:0}
.prayer-block .secondary-button {margin-top:12px}
.doa-note {white-space:pre-line;color:var(--muted);font-size:13px;line-height:1.9;margin-top:17px}
.source-summary {padding:20px;margin:19px 0;border:1px solid var(--line);border-radius:9px}
.doa-source-note {background:var(--gold-soft);padding:25px 27px;border-radius:10px;margin:20px 0}
.doa-source-note h2 {font-size:20px;margin-bottom:15px}
.doa-source-note p {font-size:13px;line-height:1.95;color:var(--muted);white-space:pre-line;margin:0}
.linked-prayer {margin:15px 0}
.asmaul-list {border:3px double var(--gold);background:var(--paper);padding:10px 25px}
.asmaul-item {display:grid;grid-template-columns:30px 1fr;gap:15px;border-bottom:1px solid var(--line);padding:13px 0}
.asmaul-item:last-child {border:0}
.asmaul-number {font-size:11px;color:var(--gold);padding-top:22px}
.guide-page-top {margin-top:33px}
.guide-article {font-size:14px;line-height:2.1;white-space:pre-line;background:var(--paper);border:1px solid var(--line);border-radius:10px;padding:28px}
.guide-list .continue-card {margin:0 0 15px}
.player {position:fixed;bottom:19px;left:calc(244px + 40px);right:40px;max-width:940px;margin:auto;background:var(--paper);box-shadow:0 8px 50px #0002;border:1px solid var(--line);border-radius:13px;display:flex;align-items:center;padding:12px 16px;gap:14px;z-index:30;overflow:hidden}
.player-info {display:flex;align-items:center;gap:12px;flex:1;min-width:0}
.player-symbol {width:37px;height:37px;background:var(--green-soft);color:var(--green);display:flex;align-items:center;justify-content:center;border-radius:8px;flex-shrink:0}
.player-info strong {font-size:11px;display:block;line-height:1.6}
.player-info #player-detail {font-size:9px;display:block;color:var(--muted)}
.player-buttons {display:flex;gap:3px;align-items:center}
.player-play {background:var(--green);color:var(--paper);width:39px;height:39px;border-radius:50%;display:flex;justify-content:center;align-items:center}
.player-play .icon {width:17px;height:17px}
.player .icon-button {width:31px;height:31px}
.player .icon-button .icon {width:17px;height:17px}
.repeat-button.active {background:var(--gold-soft);color:var(--gold)}
.audio-progress {position:absolute;bottom:0;left:0;right:0;height:2px;background:var(--line)}
.audio-progress span {display:block;background:var(--gold);width:0;height:100%;transition:width .25s linear}
body.has-player .app-shell {padding-bottom:92px}
.settings-card {padding:5px 27px;background:var(--paper);border:1px solid var(--line);border-radius:13px;margin-bottom:18px}
.setting-row {padding:22px 0;display:flex;justify-content:space-between;align-items:center;gap:20px;border-bottom:1px solid var(--line)}
.setting-row:last-child {border:0}
.setting-row strong {font-size:12px;display:block}
.setting-row p {font-size:10px;color:var(--muted);margin:4px 0 0}
.segment {display:flex;padding:3px;background:var(--bg);border:1px solid var(--line);border-radius:8px;gap:3px}
.segment button {padding:6px 10px;border-radius:5px;background:none;font-size:10px;min-width:32px}
.segment button.selected {background:var(--paper);box-shadow:0 2px 5px #0001;color:var(--green)}
.setting-select {border:1px solid var(--line);background:var(--bg);padding:9px;color:var(--ink);font-size:10px;border-radius:7px;max-width:210px}
.font-preview {text-align:center;font:var(--arabic-size) "Amiri Quran",serif;line-height:2.4;padding:17px 10px}
.install-note {padding:25px;background:var(--green-soft);border-radius:12px;font-size:11px}
.install-note strong {font-size:12px}
.install-note p {color:var(--muted);margin:8px 0 0;line-height:1.9}
.storage-note {font-size:10px;color:var(--muted);padding:8px 0}
dialog {border:1px solid var(--line);background:var(--paper);color:var(--ink);border-radius:16px;width:min(540px,calc(100% - 32px));max-height:85vh;padding:29px}
dialog::backdrop {background:#0e261e66;backdrop-filter:blur(3px)}
.dialog-header {display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}
.dialog-header h2 {font-size:25px}
.dialog-body {font-size:12px;color:var(--muted)}
.dialog-body p {margin:0 0 15px}
.dialog-body a {color:var(--green);text-decoration:underline;text-underline-offset:3px}
.dialog-body ul {padding-left:18px;line-height:2}
.dialog-body .settings-card {padding:0 16px;margin:0}
.dialog-body .setting-row {gap:10px}
.toast {position:fixed;bottom:100px;left:50%;transform:translate(-50%,15px);max-width:calc(100% - 35px);padding:11px 18px;border-radius:9px;background:var(--green);color:var(--paper);font-size:11px;z-index:60;opacity:0;pointer-events:none;transition:.2s;box-shadow:0 5px 30px #0002;text-align:center}
.toast.visible {opacity:1;transform:translate(-50%,0)}
.loading-screen {min-height:70vh;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:12px;color:var(--muted)}
.loading-screen img {animation:breathe 2s ease-in-out infinite}
.noscript {padding:20px;text-align:center}
.offline-pill {font-size:9px;background:var(--green-soft);color:var(--green);border-radius:30px;padding:5px 10px;display:inline-flex;gap:5px;align-items:center}
.offline-pill .icon {width:12px;height:12px}
@keyframes breathe {50%{opacity:.45;transform:scale(.94)}}
@media(min-width:1440px) {
  main {padding-top:55px}
  .hero {min-height:275px}
  .hero-art {width:251px;height:264px}
  .surah-card {min-height:207px;padding:28px 31px 22px}
}
@media(max-width:1100px) {
  .sidebar {width:218px;padding:33px 24px}
  .app-shell {margin-left:218px}
  main {padding:33px 34px 22px}
  .site-footer {padding-left:34px;padding-right:34px}
  .hero-art {width:195px;height:219px}
  h1 {font-size:37px}
  .player {left:242px;right:24px}
}
@media(max-width:760px) {
  .sidebar {display:none}
  .app-shell {margin:0;padding-bottom:70px}
  .mobile-header {display:flex;justify-content:space-between;align-items:center;padding:23px 24px 8px}
  .brand {font-size:26px;gap:9px}
  .mobile-header .icon-button {width:35px;height:35px;color:var(--green)}
  main {padding:24px 24px 20px;max-width:610px}
  .home-top {margin-bottom:24px;font-size:10px}
  .salutation {gap:6px}
  .salutation .icon {width:14px;height:14px}
  .date-label {font-size:9px}
  .hero {grid-template-columns:1.25fr 1fr;min-height:180px;gap:12px;padding:0 0 18px;align-items:center}
  .hero h1 {font-size:30px;letter-spacing:-1.2px}
  .hero .eyebrow {font-size:7px;letter-spacing:1.7px;margin-bottom:13px}
  .hero-sub {font-size:10px;line-height:1.85;margin-top:13px;max-width:240px}
  .hero-art {width:143px;height:185px}
  .hero-art .arabic-title {font-size:29px}
  .hero-art .art-label {font-size:6px;letter-spacing:2px}
  .hero-art:after {background-size:61px}
  .art-line {margin:8px 0}
  .continue-card {padding:14px 16px;gap:12px;margin:15px 0 30px;border-radius:10px}
  .continue-icon {width:36px;height:36px;border-radius:8px}
  .continue-icon .icon {width:18px;height:18px}
  .continue-copy .mini {font-size:7px;letter-spacing:.8px}
  .continue-copy strong {font-size:10px}
  .continue-copy .last-meta {display:block;font-size:9px;margin:2px 0 0}
  .continue-arrow span {display:none}
  .continue-arrow .icon {width:18px;height:18px}
  .section-heading {margin-bottom:17px;gap:8px}
  h2 {font-size:21px}
  .section-meta {font-size:8px}
  .surah-grid {gap:12px}
  .surah-card {min-height:182px;padding:20px 17px 16px;border-radius:11px}
  .card-top {margin-bottom:13px}
  .surah-number {width:26px;height:26px;font-size:8px}
  .card-arabic {font-size:18px}
  .surah-card h3 {font-size:21px;letter-spacing:-.6px}
  .card-meaning {font-size:9px;margin-bottom:17px;line-height:1.6}
  .card-bottom {padding-top:12px;font-size:8px;align-items:flex-start}
  .card-bottom .icon {width:14px;height:14px}
  .card-completed {font-size:8px}
  .daily-verse {margin-top:26px;padding:19px 17px;gap:12px}
  .daily-verse p {font-size:12px}
  .daily-verse small {font-size:8px}
  .verse-flower {width:24px;height:24px}
  .site-footer {padding:13px 24px 25px;font-size:8px}
  .site-footer button {font-size:8px}
  .mobile-nav {position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:space-around;background:var(--paper);border-top:1px solid var(--line);z-index:20;padding:11px 13px calc(9px + env(safe-area-inset-bottom))}
  .mobile-nav a {display:flex;flex-direction:column;align-items:center;gap:3px;font-size:8px;line-height:1.5;color:var(--muted);width:85px}
  .mobile-nav a .icon {width:20px;height:20px}
  .mobile-nav a.active {color:var(--green)}
  body.reading .mobile-header,body.reading .mobile-nav {display:none}
  body.reading .app-shell {padding-bottom:10px}
  .reader {padding-top:0}
  .reader-bar {margin:0 -6px;gap:5px;padding:12px 0}
  .reader-bar>.icon-button {width:36px;height:36px}
  .reader-tools .icon-button {width:34px;height:34px}
  .reader-name {font-size:11px!important}
  .reader-intro {padding:27px 0 25px}
  .reader-intro h1 {font-size:30px}
  .reader-intro .eyebrow {font-size:8px}
  .reader-arabic-title {font-size:32px}
  .reader-intro p {font-size:10px;margin:7px 0 17px}
  .reader-controls {gap:12px}
  .reader-toggles {gap:12px}
  .toggle-label {font-size:9px}
  .jump-input {font-size:9px;max-width:132px;padding:8px}
  .basmalah {font-size:26px;margin:9px 0 22px}
  .ayah {padding:15px 17px 22px;margin-bottom:12px}
  .ayah .arabic {line-height:2.45;margin:11px 0 12px}
  .ayah-number {font-size:9px}
  .ayah-number .num {width:24px;height:24px;font-size:9px}
  .latin {font-size:12px}
  .translation {font-size:14px}
  .reader-complete {padding:25px 19px}
  .mushaf {padding:18px 16px}
  .mushaf-text {line-height:2.6}
  .ayah-end {min-width:29px;height:29px;font-size:16px;margin:0 2px 4px}
  .meaning-ayah {padding:16px 18px}
  .reader-complete h2 {font-size:22px}
  .player {left:12px;right:12px;bottom:calc(72px + env(safe-area-inset-bottom));padding:12px 11px;gap:5px;border-radius:11px}
  body.reading .player {bottom:calc(12px + env(safe-area-inset-bottom))}
  .player-symbol {display:none}
  .player-info strong {font-size:10px}
  .player-info #player-detail {font-size:8px}
  .player-buttons {gap:0}
  .player .icon-button {width:26px;height:31px}
  .player-play {width:33px;height:33px;margin:0 3px}
  body.has-player .app-shell {padding-bottom:150px}
  body.has-player.reading .app-shell {padding-bottom:90px}
  .repeat-button {display:none!important}
  .toast {bottom:calc(145px + env(safe-area-inset-bottom));font-size:10px}
  .page-top {margin-bottom:26px}
  .page-top h1 {font-size:32px}
  .page-top p {font-size:11px}
  .bookmark-item {padding:17px}
  .bookmark-item .arabic {font-size:27px}
  .settings-card {padding:3px 17px}
  .setting-row {padding:19px 0;gap:12px}
  .setting-row strong {font-size:11px}
  .setting-row p {font-size:9px}
  .setting-select {max-width:145px;font-size:9px}
  .segment button {font-size:9px;padding:6px 8px}
  .install-note {padding:22px 19px;font-size:10px}
  .install-note strong {font-size:11px}
  .empty-state {padding:50px 20px}
  .doa-filter-bar {flex-direction:column}
  .doa-search {padding:12px}
  .doa-search input {font-size:12px}
  .doa-filter-bar .setting-select {width:100%;max-width:none;padding:11px;font-size:11px}
  .guide-link {font-size:10px}
  .doa-toolbar .toggle-label {font-size:10px}
  .prayer-card {padding:14px 13px}
  .prayer-card-link {gap:10px}
  .prayer-card strong {font-size:12px}
  .prayer-card small {font-size:9px}
  .doa-intro h1 {font-size:25px}
  .version-picker .setting-select {max-width:100%;font-size:11px}
  .doa-body,.prayer-blocks {padding:15px 18px}
  .doa-source-note {padding:21px 19px}
  .asmaul-list {padding:6px 16px}
  .asmaul-item {grid-template-columns:22px 1fr;gap:9px}
  .guide-article {padding:23px 20px}
  dialog {padding:21px}
}
@media(max-width:360px) {
  main {padding-left:18px;padding-right:18px}
  .hero h1 {font-size:26px}
  .hero-art {width:121px;height:169px}
  .hero-sub {font-size:9px}
  .surah-card {padding:17px 14px}
  .surah-card h3 {font-size:19px}
  .card-bottom {font-size:7px}
}
@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {animation:none!important;transition:none!important;scroll-behavior:auto!important}
}

.pikapikara-return { display: inline-flex; align-items: center; min-height: 44px; margin: 16px 0 0; color: var(--ink, #173e35); text-decoration: underline; text-underline-offset: 4px; font-size: 14px; }
.pikapikara-return:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
.mobile-return { display: none; }
@media (max-width: 760px) { .mobile-return { display: inline-flex; margin: 8px 24px 0; } }
