@font-face{font-family:QPNaskh;src:url(fonts/scheherazade-new-400.woff2) format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+0870-08FF,U+200C-200E,U+FB50-FDFF,U+FE70-FEFC;font-display:swap}
@font-face{font-family:QPNaskh;src:url(fonts/scheherazade-new-latin-400.woff2) format("woff2");unicode-range:U+0000-00FF,U+2000-206F;font-display:swap}
:root{
  --bg:#FBF7FC;--surface:#fff;--lilac:#EDE7FF;--lilac-line:#DDD3FA;--pink:#FCE6EF;--pink-line:#F5CCDC;
  --mint:#E5F4EC;--mint-line:#C7E6D4;--sky:#E4F0FB;--sky-line:#CFE2F5;--peach:#FDF0E4;
  --text:#2E2A3B;--muted:#5E5870;--accent:#6A4BC0;--accent-dark:#4F3596;--mint-text:#2F5A42;--sky-text:#33506B;
  --r-card:20px;--r-btn:14px;--fs:18px;
  --shadow:0 8px 16px rgba(106,75,192,.08);
}
html[data-size="s"]{--fs:16px}
html[data-size="l"]{--fs:21px}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--text);font:400 16px/1.5 Figtree,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;-webkit-text-size-adjust:100%}
button{font:inherit;color:inherit;cursor:pointer}
[hidden]{display:none!important}
.doto{font-family:Fraunces,Georgia,serif,monospace}

/* top bar: one of only two frosted layers */
.top{position:sticky;top:0;z-index:5;display:grid;grid-template-columns:1fr auto;gap:0 8px;padding:12px 16px 8px;
  padding-top:calc(12px + env(safe-area-inset-top));background:rgba(251,247,252,.94);border-bottom:1px solid var(--line)}
@supports (backdrop-filter:blur(8px)){.top{background:rgba(251,247,252,.8);backdrop-filter:blur(8px)}}
@media (prefers-reduced-transparency:reduce){.top{background:var(--bg);backdrop-filter:none}}
.brand{display:flex;gap:8px;align-items:center}
.brand-text{display:flex;flex-direction:column;line-height:1}
.app-name{font-family:Fraunces,Georgia,serif;font-weight:600;font-size:24px;letter-spacing:.02em}
.ver{font-size:11px;color:var(--muted);margin-top:4px}
.clock{display:flex;flex-direction:column;align-items:flex-end;line-height:1.05}
.clock-time{font-family:Fraunces,Georgia,serif;font-weight:600;font-size:22px}
.clock-date{font-family:Fraunces,Georgia,serif;font-weight:500;font-size:12px;color:var(--muted)}
.where{grid-column:1/-1;margin-top:8px;font-size:13px;color:var(--muted);display:grid;grid-template-columns:1fr auto;align-items:center;gap:6px 8px;min-height:36px}
.where-text{display:flex;flex-direction:column;line-height:1.25;min-width:0}
.lesson-chip{min-height:36px;padding:0 12px;border:1px solid var(--pink-line);border-radius:18px;background:var(--pink);font-size:13px;font-weight:600;white-space:nowrap;position:relative}
.lesson-chip.due::after{content:"";position:absolute;top:4px;right:4px;width:8px;height:8px;border-radius:50%;background:var(--accent)}
.where b{font-family:Fraunces,Georgia,serif;font-weight:600;font-size:16px;color:var(--text)}

main{padding:0 16px calc(132px + env(safe-area-inset-bottom))}
.reader{max-width:680px;margin:0 auto}

/* bottom: pace strip + tabs (second frosted layer) */
.bottom{position:fixed;left:0;right:0;bottom:0;z-index:5;background:rgba(255,255,255,.96);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom)}
@supports (backdrop-filter:blur(8px)){.bottom{background:rgba(255,255,255,.82);backdrop-filter:blur(8px)}}
@media (prefers-reduced-transparency:reduce){.bottom{background:var(--surface);backdrop-filter:none}}
.pace{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:8px 16px;background:rgba(237,231,255,.7);font-size:13px;color:var(--accent-dark)}
.pace .doto{font-weight:900;font-size:15px;color:var(--text)}
.tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));max-width:680px;margin:0 auto;padding:4px 8px}
.tab{min-height:52px;border:0;background:none;border-radius:var(--r-btn);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:12px;color:var(--muted)}
.tab svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tab.on{background:var(--lilac);color:var(--text);font-weight:600}

/* reading */
.pg{padding:8px 0}
.pg-foot{display:flex;align-items:center;gap:8px;margin:16px 0 8px;font-size:12px;color:var(--muted)}
.pg-foot::before,.pg-foot::after{content:"";flex:1;height:1px;background:var(--line)}
.ay{padding:16px 0;border-bottom:1px solid var(--line-soft);scroll-margin-top:190px}
.ay-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.ref{font-size:13px;font-weight:600;color:var(--accent)}
.ar{font-family:QPNaskh,"Noto Naskh Arabic",serif;font-size:calc(var(--fs) + 8px);line-height:2;text-align:right;direction:rtl;margin:0 0 8px}
.tr{margin:0;font-size:var(--fs);line-height:1.6;max-width:65ch}
.tf{margin:12px 0 0;padding:12px 16px;background:var(--sky);border:1px solid var(--sky-line);border-radius:16px;font-size:calc(var(--fs) - 2px);line-height:1.6;color:var(--text)}
.tf-label{display:block;font-size:11px;font-weight:600;letter-spacing:.06em;color:var(--sky-text);margin-bottom:4px}
.heart{min-width:44px;min-height:44px;border:1px solid var(--line);border-radius:var(--r-btn);background:var(--surface);display:inline-flex;align-items:center;justify-content:center}
.heart svg{width:20px;height:20px;fill:none;stroke:var(--accent);stroke-width:1.8}
.heart[aria-pressed="true"]{background:var(--heart-on);border-color:var(--heart-on)}
.heart[aria-pressed="true"] svg{fill:var(--heart-ink);stroke:var(--heart-ink)}

.compass{margin:24px 0 8px;padding:24px 20px;background:var(--lilac);border:1px solid var(--lilac-line);border-radius:24px}
.compass .kicker{font-size:12px;font-weight:600;letter-spacing:.06em;color:var(--accent-dark)}
.compass h2{font-family:Fraunces,Georgia,serif;font-weight:600;font-size:31px;line-height:1.1;margin:8px 0 4px}
.compass .arn{font-family:QPNaskh,"Noto Naskh Arabic",serif;font-size:26px;direction:rtl}
.compass .facts{font-size:14px;color:var(--muted);margin:4px 0 0}
.compass .intro{margin:16px 0 0;font-size:var(--fs);line-height:1.6}
.bism{font-family:QPNaskh,serif;text-align:center;font-size:calc(var(--fs) + 6px);margin:16px 0 0;direction:rtl}

.lessons{margin:16px 0;padding:16px;background:var(--mint);border:1px solid var(--mint-line);border-radius:var(--r-card)}
.lessons h3{margin:0 0 8px;font-size:12px;letter-spacing:.06em;color:var(--mint-text)}
.lesson{display:flex;gap:8px;align-items:flex-start;padding:8px 0}
.lesson p{flex:1;margin:0;font-size:calc(var(--fs) - 2px);line-height:1.55}

.marker{display:flex;align-items:center;gap:8px;margin:16px 0;padding:12px 16px;border:1px dashed var(--accent);border-radius:var(--r-btn);background:var(--surface);font-size:14px;color:var(--muted)}
.marker b{font-family:Fraunces,Georgia,serif;font-weight:600;color:var(--accent);font-size:16px}

.more{display:block;width:100%;min-height:48px;margin:16px 0;border:1px solid var(--lilac-line);border-radius:var(--r-btn);background:var(--surface);font-weight:500}

/* recall cards */
.recall{margin:16px 0;padding:16px;background:var(--lilac);border:1px solid var(--lilac-line);border-radius:var(--r-card)}
.recall .kicker{font-size:12px;font-weight:600;letter-spacing:.06em;color:var(--accent-dark)}
.recall p{margin:8px 0;font-size:var(--fs);line-height:1.55}
.row{display:flex;gap:8px;flex-wrap:wrap}
.btn{flex:1;min-height:48px;padding:0 16px;border:0;border-radius:var(--r-btn);font-weight:600;background:var(--surface)}
.btn.good{background:var(--mint)}
.btn.soft{background:var(--pink)}
.btn.main{background:var(--accent);color:var(--on-accent)}
.btn.line{background:var(--surface);border:1px solid var(--lilac-line);font-weight:500}

/* other views */
.view h1{font-family:Fraunces,Georgia,serif;font-weight:600;font-size:31px;margin:24px 0 8px}
.view h2.sec{font-size:12px;letter-spacing:.06em;color:var(--muted);margin:24px 0 8px;font-weight:600}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-card);padding:16px;margin:8px 0;box-shadow:var(--shadow)}
.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.stat{border-radius:var(--r-card);padding:16px 12px;background:var(--lilac)}
.stat:nth-child(2){background:var(--pink)}
.stat:nth-child(3){background:var(--mint)}
.stat .n{font-family:Fraunces,Georgia,serif;font-weight:600;font-size:22px;line-height:1.1;white-space:nowrap}
.stat .l{font-size:12px;color:var(--muted);margin-top:8px}
.bar{height:10px;border-radius:10px;background:var(--lilac);overflow:hidden}
.bar span{display:block;height:100%;background:#9B82E0;border-radius:10px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{min-height:44px;padding:0 16px;border:1px solid var(--lilac-line);border-radius:22px;background:var(--surface);font-size:14px}
.chip[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:var(--on-accent);font-weight:600}
.days{display:flex;align-items:flex-end;gap:4px;height:64px;margin-top:8px}
.days span{flex:1;background:var(--fill-2);border-radius:4px 4px 0 0;min-height:3px}
.surahs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.surahs button{min-height:56px;border:1px solid var(--line);border-radius:var(--r-btn);background:var(--surface);font-size:13px;line-height:1.2;padding:4px}
.surahs button b{display:block;font-family:Fraunces,Georgia,serif;font-weight:600;font-size:14px;color:var(--accent)}
.kept{padding:12px 0;border-bottom:1px solid var(--line-soft);display:flex;gap:8px;align-items:flex-start}
.kept p{flex:1;margin:0;font-size:16px;line-height:1.55}
.kept .meta{display:block;font-size:12px;color:var(--muted);margin-top:4px}
.empty{color:var(--muted);font-size:15px}
.help-item{margin:8px 0}
.help-item summary{min-height:48px;display:flex;align-items:center;font-weight:600;cursor:pointer}
.help-item p{margin:0 0 12px;color:var(--text);line-height:1.6}
.note{font-size:13px;color:var(--muted)}
.toast{position:fixed;left:50%;bottom:150px;transform:translateX(-50%);background:var(--text);color:var(--on-accent);padding:12px 16px;border-radius:var(--r-btn);font-size:14px;z-index:9;max-width:90vw}

@media (prefers-reduced-motion:no-preference){html{scroll-behavior:auto}}
@media print{
  .top,.bottom,#view-read,#view-plan,#view-help,.no-print{display:none!important}
  #view-lessons{display:block!important}
  main{padding:0}
  .kept{break-inside:avoid}
}

/* v1.1 */
.tools{display:flex;gap:8px}
.icon{min-width:44px;min-height:44px;border:1px solid var(--line);border-radius:var(--r-btn);background:var(--surface);display:inline-flex;align-items:center;justify-content:center}
.icon svg{width:20px;height:20px;fill:none;stroke:var(--accent);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.fn{min-width:24px;min-height:24px;margin:0 2px;padding:0 4px;border:0;border-radius:8px;background:var(--lilac);color:var(--accent-dark);font-size:11px;font-weight:700;vertical-align:super;line-height:1}
.fns{margin:8px 0 0;padding:8px 12px;border-left:3px solid var(--lilac-line);font-size:14px;color:var(--muted)}
.fns p{margin:4px 0;line-height:1.5}
.tf-body{white-space:pre-line}
.tf-body.clamp{display:-webkit-box;-webkit-line-clamp:10;-webkit-box-orient:vertical;overflow:hidden}
.link{border:0;background:none;color:var(--accent-dark);font-weight:600;padding:8px 0;min-height:44px}
.refl{margin:12px 0 0;padding:0 16px;background:var(--peach);border:1px solid var(--peach-line);border-radius:16px;font-size:14px}
.refl summary{min-height:44px;display:flex;align-items:center;font-weight:600;color:var(--peach-text);cursor:pointer}
.refl ul{margin:0 0 12px;padding-left:20px}.refl li{margin:6px 0}.refl a{color:var(--peach-text)}
.tick{display:block;width:100%;min-height:52px;margin:16px 0 4px;border:1px dashed var(--accent);border-radius:var(--r-btn);background:var(--surface);color:var(--accent-dark);font-weight:600;font-size:15px}
.tick[aria-pressed="true"]{background:var(--mint);border:1px solid var(--mint-line);color:var(--mint-text)}
.browse{position:sticky;top:120px;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:8px;margin:12px 0;padding:8px 12px;background:var(--peach);border:1px solid var(--peach-line);border-radius:var(--r-btn);font-size:13px}
.browse .btn{flex:0 0 auto;min-height:40px}
.salah{position:fixed;left:12px;right:12px;top:calc(130px + env(safe-area-inset-top));z-index:8;max-width:640px;margin:0 auto;display:flex;align-items:center;gap:12px;padding:12px 16px;background:var(--mint);border:1px solid var(--mint-line);border-radius:var(--r-card);box-shadow:var(--shadow)}
.salah p{flex:1;margin:0;font-size:14px;line-height:1.4}.salah b{display:block;font-size:16px;color:var(--mint-text)}
.salah .btn{flex:0 0 auto}
.sheet{width:min(640px,100%);max-height:85vh;margin:auto auto 0;padding:16px 16px calc(24px + env(safe-area-inset-bottom));border:0;border-radius:24px 24px 0 0;background:var(--bg);color:var(--text);overflow:auto}
.sheet::backdrop{background:var(--backdrop)}
.sheet h2{font-family:Fraunces,Georgia,serif;font-weight:600;font-size:24px;margin:8px 0}
.recall .big,.nudge .big{font-weight:700;font-size:18px}
.chips.small{align-items:center;margin-top:8px}.chips.small .chip{min-height:40px;font-size:13px}
.wide{width:100%;margin-top:12px}.mt{margin-top:16px}
.soft-note{font-size:14px;color:var(--mint-text);background:var(--mint);border-radius:12px;padding:8px 12px}
.honest{margin:12px 0;padding:12px;background:var(--peach);border-radius:14px}.honest p{margin:0 0 8px;font-size:14px}
.split{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.split div{background:var(--sky);border-radius:16px;padding:12px 8px;text-align:center}.split b{display:block;font-size:24px}.split span{font-size:12px;color:var(--muted)}
.juz{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}
.jz{position:relative;min-height:48px;border:1px solid var(--lilac-line);border-radius:12px;background:var(--surface);overflow:hidden;padding:0}
.jz .fill{position:absolute;left:0;right:0;bottom:0;background:var(--fill-1)}
.jz.full .fill{background:var(--fill-2)}
.jz b{position:relative;font-family:Fraunces,Georgia,serif;font-weight:600;font-size:16px}
.disc .ar{margin-top:8px}
.disc + .row{margin-top:12px}

/* v1.2 */
.top-right{display:flex;align-items:center;gap:10px}
.help-btn{width:40px;height:40px;border-radius:50%;border:1px solid var(--lilac-line);background:var(--surface);font-family:Fraunces,Georgia,serif;font-weight:600;font-size:20px;color:var(--accent-dark)}
.help-btn[aria-pressed="true"]{background:var(--lilac)}
.where-btns{display:flex;gap:6px}
.top-chip{min-height:36px;padding:0 12px;border:1px solid var(--lilac-line);border-radius:18px;background:var(--surface);font-size:13px;font-weight:600;white-space:nowrap;position:relative}
.top-chip.lesson-chip{background:var(--pink);border-color:var(--pink-line)}
.prog{grid-column:1/-1;display:flex;align-items:center;gap:10px;min-height:32px;padding:0;border:0;background:none;text-align:left}
.prog-track{position:relative;flex:1;height:12px;border-radius:6px;background:var(--lilac);border:1px solid var(--lilac-line)}
#progFill{position:absolute;left:0;top:0;bottom:0;width:0;border-radius:6px;background:linear-gradient(90deg,#B8E3CC,#7FC9A3)}
#progGoal{position:absolute;top:-4px;bottom:-4px;width:3px;margin-left:-1px;border-radius:2px;background:var(--accent)}
#progHere{position:absolute;top:50%;width:14px;height:14px;margin:-7px 0 0 -7px;border-radius:50%;background:var(--surface);border:3px solid #F08BB2}
.prog-label{font-family:Fraunces,Georgia,serif;font-weight:600;font-size:13px;color:var(--text);white-space:nowrap}
.icon.bm[aria-pressed="true"]{background:var(--lilac);border-color:var(--lilac-line)}
.icon.bm[aria-pressed="true"] svg{fill:var(--accent)}
.col{display:flex;flex-direction:column;gap:8px}
.sheet .surahs{margin-bottom:12px}
.tour{text-align:center;padding:8px 4px}
.tour-art{width:120px;height:120px;margin:8px auto 16px;border-radius:36px;background:linear-gradient(135deg,var(--lilac),var(--pink));display:flex;align-items:center;justify-content:center}
.tour-art svg{width:60px;height:60px;fill:none;stroke:var(--accent-dark);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.tour .kicker{font-size:12px;font-weight:600;letter-spacing:.06em;color:var(--muted)}
.tour p{font-size:16px;line-height:1.55;margin:8px 0 16px}
.dots{display:flex;justify-content:center;gap:6px;margin:0 0 16px}.dots span{width:8px;height:8px;border-radius:50%;background:var(--lilac-line)}.dots span.on{background:var(--accent);width:20px;border-radius:4px}
/* reflections inline */
.r-item{padding:10px 0;border-top:1px solid var(--peach-line)}
.r-head{margin:0 0 4px;font-size:13px;color:var(--peach-text)}
.r-body{white-space:pre-line;font-size:15px;line-height:1.6;color:var(--text)}
.r-body.clamp{display:-webkit-box;-webkit-line-clamp:8;-webkit-box-orient:vertical;overflow:hidden}
/* adhkar */
.seg3{margin:4px 0 12px}
.dk .ar{font-family:QPNaskh,"Noto Naskh Arabic",serif;font-size:calc(var(--fs) + 8px);line-height:2;text-align:right}
.dk .q{color:var(--mint-text)}
.dk .tl{font-style:italic;color:var(--muted);margin:4px 0 8px;line-height:1.55}
.dk .en{margin:8px 0;line-height:1.6;font-size:calc(var(--fs) - 1px)}
.dk .en.ins{font-size:14px;color:var(--accent-dark);font-weight:600}
.dk-head{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:4px}
.dk-title{font-family:Fraunces,Georgia,serif;font-weight:600;font-size:22px;line-height:1.2;margin:8px 0}
.pill{display:inline-flex;align-items:center;min-height:26px;padding:0 10px;border-radius:13px;background:var(--lilac);font-size:12px;font-weight:600;color:var(--accent-dark)}
.pill.soft{background:var(--mint);color:var(--mint-text)}.pill.warn{background:var(--peach);color:var(--peach-text)}
.callout{background:var(--peach);border-radius:12px;padding:8px 12px;font-size:13.5px;line-height:1.5}
.notes{font-size:13px;color:var(--muted);padding-left:20px}
.tools-row{align-items:center;margin-top:8px}.tools-row .btn{flex:0 1 auto}
.donerow{display:block;width:100%;min-height:48px;margin:6px 0;padding:0 16px;text-align:left;border:1px solid var(--mint-line);border-radius:var(--r-btn);background:var(--mint);color:var(--mint-text);font-weight:600}
.rowbtn{display:block;width:100%;min-height:48px;margin:4px 0;padding:8px 14px;text-align:left;border:1px solid var(--line);border-radius:var(--r-btn);background:var(--surface);font-size:14.5px;line-height:1.35}
.search input{width:100%;min-height:48px;padding:0 14px;border:1px solid var(--lilac-line);border-radius:var(--r-btn);background:var(--surface);font-size:16px;margin:8px 0}
.moments{display:flex;flex-wrap:wrap;gap:8px}
.grp{padding:4px 14px}.grp summary{min-height:48px;display:flex;align-items:center;font-weight:600;cursor:pointer}
.finish{background:var(--mint);border-color:var(--mint-line)}
.learn .kicker{font-size:12px;font-weight:600;letter-spacing:.06em;color:var(--muted)}
.credit{margin-top:24px}
#view-adhkar .bar{margin:4px 0 12px}
.sheet h2.sec{font-family:inherit;font-size:12px;font-weight:600;letter-spacing:.06em;color:var(--muted);margin:20px 0 8px}
.small-note{font-size:12px;margin:-2px 0 6px}

/* adhkar header v1.2.2 */
.dk-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.switch-row{display:flex;align-items:center;gap:8px;min-height:44px;padding:0 4px;border:0;background:none;font-size:13px;color:var(--muted)}
.switch-row .sw{position:relative;width:40px;height:24px;border-radius:12px;background:var(--lilac-line);transition:background .15s}
.switch-row .sw::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:var(--surface);transition:left .15s}
.switch-row[aria-checked="true"] .sw{background:var(--accent)}.switch-row[aria-checked="true"] .sw::after{left:19px}
.segbar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:4px;margin:4px 0 14px;border-radius:16px;background:var(--lilac)}
.segbar button{min-height:44px;border:0;border-radius:12px;background:none;font-weight:600;color:var(--muted)}
.segbar button[aria-selected="true"]{background:var(--surface);color:var(--text);box-shadow:0 2px 6px var(--kit-shadow)}
.secstrip{display:flex;gap:10px;overflow-x:auto;padding:2px 0 8px;margin:0 -16px;padding-left:16px;padding-right:16px;scrollbar-width:none}
.secstrip::-webkit-scrollbar{display:none}
.secgrp{flex:0 0 auto}
.seclabel{display:block;font-size:11px;font-weight:600;letter-spacing:.08em;color:var(--muted);margin:0 0 4px 4px}
.secrow{display:flex;gap:6px;padding:4px;border-radius:16px;background:var(--surface);border:1px solid var(--line)}
.sec{position:relative;min-height:40px;padding:0 14px;border:0;border-radius:12px;background:none;font-size:14px;white-space:nowrap}
.sec[aria-pressed="true"]{background:var(--accent);color:var(--on-accent);font-weight:600}
.sec.now::after{content:"";position:absolute;top:5px;right:5px;width:7px;height:7px;border-radius:50%;background:#F08BB2}
.secstrip{flex-direction:column;gap:8px;overflow:visible;margin:0;padding:0 0 8px}
.secgrp{display:grid;grid-template-columns:52px 1fr;align-items:center;gap:6px}
.seclabel{margin:0}
.secrow{overflow-x:auto;scrollbar-width:none}
.secrow::-webkit-scrollbar{display:none}
.sec{padding:0 10px;flex:1 0 auto}
.secgrp{grid-template-columns:44px 1fr}
.sec{padding:0 8px;font-size:13.5px}

.app-icon{border-radius:10px}
/* v1.4 simpler Help and folded Plan settings */
.basics{display:grid;gap:10px}
.b-row{display:flex;gap:12px;align-items:flex-start;line-height:1.5}
.b-ic{flex:0 0 28px;height:28px;border-radius:9px;display:grid;place-items:center;background:var(--lilac);font-size:15px}
.help-list{margin:0 0 12px;padding-left:18px;line-height:1.6}.help-list li{margin:4px 0}
.set-item{margin:8px 0}
.set-item summary{min-height:52px;display:flex;align-items:center;justify-content:space-between;gap:10px;font-weight:600;cursor:pointer;list-style:none}
.set-item summary::-webkit-details-marker{display:none}
.set-item summary .now{font-weight:400;color:var(--muted);font-size:13.5px;text-align:right}
.set-item summary .now::after{content:" ›";color:var(--accent)}
.set-item[open] summary .now::after{content:" ⌄"}
.set-body{padding-bottom:10px}
.set-body .lbl{margin:12px 0 6px;font-size:12px;letter-spacing:.05em;color:var(--muted);text-transform:uppercase}
.card .juz{margin-top:14px}
.help-item.card,.set-item.card{padding-top:2px;padding-bottom:2px}
.help-item[open].card,.set-item[open].card{padding-bottom:10px}
/* v1.4.1 khatam complete + history */
.khatam-done .big{font-size:26px;margin:4px 0 6px;color:var(--accent)}
.khatams{margin:0;padding-left:18px;line-height:1.7}
.card .lbl{margin:12px 0 6px;font-size:12px;letter-spacing:.05em;color:var(--muted);text-transform:uppercase}
/* v1.4.2 transliteration line */
.tl{margin:-2px 0 10px;font-style:italic;color:var(--muted);line-height:1.6}
.tl u{text-decoration-thickness:1.5px;text-underline-offset:3px}
.tl .sil{opacity:.45}
/* ===== Quran Path 1.4.3–1.9.0 engine styles (ribbon, stars, TODAY/KHATAM, Today list, tafsir, START card) ===== */
/* v1.4.3 compact Plan */
.hero-top{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:8px}
.hero-top .big{font-size:34px;font-weight:900;color:var(--accent)}
.hero-today{margin:14px 0 4px;font-size:16px}.hero-today b{font-weight:700}
.linkrow{display:flex;justify-content:space-between;align-items:center;width:100%;min-height:48px;margin-top:8px;padding:0 14px;border:1px solid var(--lilac-line);border-radius:14px;background:var(--surface);font-size:15px;color:var(--text)}
.linkrow .chev{color:var(--accent);font-size:20px}
.week{display:flex;justify-content:space-between;gap:6px;margin:10px 0 4px}
.wd{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px}
.wd b{font-size:12px;min-height:14px;color:var(--muted)}
.wd .wb{width:100%;max-width:28px;border-radius:6px;background:var(--lilac-line)}
.wd i{font-style:normal;font-size:12px;color:var(--muted)}
.wd.today i{color:var(--accent);font-weight:700}.wd.today .wb{background:var(--accent)}
.juz.mini{grid-template-columns:repeat(10,minmax(0,1fr));gap:5px;margin-top:4px}
.juz.mini .jz{min-height:34px;border-radius:9px}.juz.mini .jz b{font-size:13px}
.wd .wa{height:48px;width:100%;display:flex;align-items:flex-end;justify-content:center}
.hero-today.first{margin-top:0}
/* v1.5.0 ribbon + quarter stars + today/khatam rows */
.prog3{display:grid;gap:6px;width:100%;margin-top:8px;padding:0;border:0;background:none;text-align:left;color:var(--text);font:inherit}
.pr-q{display:flex;align-items:center;gap:10px;font-size:13px}
.stars{display:flex;gap:3px;font-size:17px;line-height:1;color:var(--star-off)}.stars .on{color:var(--accent)}
.pr-row{display:flex;align-items:center;gap:10px;font-size:13px}
.pr-row .k{width:58px;font-size:11px;letter-spacing:.06em;color:var(--muted)}
.pr-row .tb{flex:1;height:8px;border-radius:6px;background:var(--lilac);overflow:hidden}
.pr-row .tb i{display:block;height:100%;width:0;background:var(--accent);opacity:.75;border-radius:6px;transition:width .4s}
.pr-row .v{min-width:104px;text-align:right}.pr-row .v b{color:var(--accent)}
.ay{position:relative}
.ay.rbon::before{content:"";position:absolute;right:0;top:-8px;width:18px;height:34px;background:var(--accent);clip-path:polygon(0 0,100% 0,100% 100%,50% 76%,0 100%)}
.ay.rbon .ay-head .tools{margin-right:24px}
.rub{display:flex;gap:8px;align-items:center;margin:12px 0;padding:8px 12px;border-radius:12px;background:var(--lilac);color:var(--accent-dark);font-size:13px}
.rub span{font-size:18px}
.prog3{grid-column:1/-1;margin-top:2px}
.pr-q #progQ{color:var(--muted)}
.prog3 b{font-family:inherit;font-size:13px;font-weight:700;color:var(--accent)}
.pace{display:none}

/* v1.8.0 book instruction words inside the Arabic (not recited) */
.ar .ar-note{font-size:.62em;color:var(--muted);opacity:.85;font-family:system-ui,sans-serif;margin:0 .3em}
.install-plan{margin:16px 0 0}
/* 1.9.0: bell + Today list, Hijri date, tafsir credit, START card */
.clock-hijri{font-family:Figtree,system-ui,sans-serif;font-weight:600;font-size:11px;color:var(--accent-dark);margin-top:2px;white-space:nowrap}
.top-right{gap:8px}
.bell{position:relative;display:inline-flex;align-items:center;justify-content:center;padding:0}
.bell svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.bell-n{position:absolute;top:-4px;right:-4px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--accent);color:var(--on-accent);font:700 11px/18px system-ui,sans-serif;text-align:center}
.td{padding:12px 16px}
.td .td-t{margin:0 0 4px;font-weight:600;font-size:16px;line-height:1.4;color:var(--text)}
.td .note{margin:0 0 4px}
.td.done .td-t{color:var(--muted);font-weight:500}
.td-ok{color:var(--mint-text)}
.td-refs{margin:4px 0;font-size:12px;line-height:1.5}
.td-refs a{color:var(--accent-dark)}
.td .tools-row{flex-wrap:wrap;gap:8px}
.td .tools-row .btn{min-height:44px}
.td-more{margin:8px 0}.td-more summary{min-height:44px;display:flex;align-items:center;font-size:13px;color:var(--muted);cursor:pointer}
.tf-credit{margin:8px 0 0;font-size:11px;line-height:1.4;color:var(--muted)}
.dk.start .ref{letter-spacing:.06em}
@media (max-width:380px){.app-name{font-size:19px;white-space:nowrap}.clock-time{font-size:20px}.top-right{gap:6px}.top-right .help-btn{width:38px;height:38px}}
.ar.alt,.bism.alt{font-family:QPNaskh,"Noto Naskh Arabic",serif}
.td .tools-row .btn{flex:0 0 auto;padding:0 14px;font-size:14px}


/* ================= Qaribly 2A: rose + teal, Fraunces + Figtree ================= */
:root{   /* Qaribly look 2A, light: cream base, rose + teal surfaces, teal ink and buttons (0.3.0: tokens for light and dark) */
  --bg:#FBF3EE;--surface:#fff;--lilac:#F7DFE0;--lilac-line:#E7C7CB;--pink:#FBEAE6;--pink-line:#EBC9C2;--peach:#FCE8DC;--peach-line:#F4D9BF;--peach-text:#7A5232;
  --mint:#E1EFEC;--mint-line:#BFDDD7;--sky:#E1EFEC;--sky-line:#BFDDD7;--text:#1C474C;--muted:#476A6E;--accent:#1F6168;--accent-dark:#1C474C;--on-accent:#fff;
  --mint-text:#1C474C;--sky-text:#1C474C;--coral:#E07A5F;--glow:#F4C2B4;--wine:#94344B;--danger:#9B3D2E;
  --line:#EFDDD6;--line-soft:#F1E2DC;--paper:#F6ECE6;--paper-line:#D9C3BC;--kit-shadow:rgba(28,71,76,.14);--focus:#1F6168;
  --bar-top:#FBF3EE;--bar-bottom:#fff;--pace-bg:rgba(247,223,224,.8);--fill-1:#CDE9E4;--fill-2:#8CC5BE;--prog:linear-gradient(90deg,#8CC5BE,#1F6168);
  --heart-on:#F2B8C4;--heart-ink:#94344B;--backdrop:rgba(28,71,76,.35);--star-off:#9A817C;--lantern-glass:#FCE9EC;--shadow:0 8px 16px rgba(31,97,104,.08);color-scheme:light}
:root[data-mode="dark"]{   /* Cocoa lantern (Ali, 2 Dec 2026): warm cocoa base, rose cards, peach lantern-glow buttons; every pair checked to WCAG AA */
  --bg:#221B19;--surface:#2E2522;--lilac:#452F2E;--lilac-line:#664745;--pink:#3B2A28;--pink-line:#5C4340;--peach:#3D2F27;--peach-line:#604A3C;--peach-text:#F5CFAE;
  --mint:#2A3533;--mint-line:#43534F;--sky:#2A3533;--sky-line:#43534F;--text:#F8EDE6;--muted:#CFBEB4;--accent:#F4C2B4;--accent-dark:#F8D8CD;--on-accent:#2B1A16;
  --mint-text:#D3E7E2;--sky-text:#D3E7E2;--coral:#F09A82;--glow:#F4C2B4;--wine:#F5A3B6;--danger:#F2A08F;
  --line:#3E322E;--line-soft:#352B28;--paper:#2A211E;--paper-line:#5B4842;--kit-shadow:rgba(0,0,0,.4);--focus:#F4C2B4;
  --bar-top:#221B19;--bar-bottom:#261F1C;--pace-bg:rgba(69,47,46,.9);--fill-1:#4A3A35;--fill-2:#A0705F;--prog:linear-gradient(90deg,#A0705F,#F4C2B4);
  --heart-on:#7A3346;--heart-ink:#F7C6D2;--backdrop:rgba(10,6,5,.55);--lantern-glass:#452F2E;--star-off:#8C7A72;--shadow:0 8px 16px rgba(0,0,0,.3);color-scheme:dark}
html body{background:var(--bg)}
html .top{background:var(--bar-top);border-bottom-color:var(--line)}
html .bottom{background:var(--bar-bottom);border-top-color:var(--line)}
@supports (backdrop-filter:blur(8px)){html .top,html .bottom{backdrop-filter:none}}
html .pace{background:var(--pace-bg);color:var(--text)}
html .card,html .rowbtn,html .surahs button,html .secrow{border-color:var(--line)}
html .ay{border-bottom-color:var(--line-soft)}
html #progFill{background:var(--prog)}
html #progHere{border-color:var(--coral)}
html .bar span{background:var(--accent)}
.app-name{font-size:28px;letter-spacing:0;line-height:1}
.app-icon{border-radius:12px}
.clock-time{font-size:24px;font-variant-numeric:tabular-nums lining-nums}
.clock-date{font-family:Figtree,system-ui,sans-serif;font-weight:600;letter-spacing:.02em}
.view h1{font-size:30px;line-height:1.15}
h2.sec{font-family:Fraunces,Georgia,serif;font-weight:600;font-size:21px;letter-spacing:0;text-transform:none;color:var(--text)}
.kicker{display:block;margin:0 0 4px;font-size:13px;font-weight:600;color:var(--muted);letter-spacing:.02em}
.note{color:var(--muted)}
.btn.main{background:var(--accent);color:var(--on-accent);border-color:var(--accent)}
.chip[aria-pressed="true"]{background:var(--mint);border-color:var(--accent);color:var(--text)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Noor's room */
#view-noor{max-width:680px;margin:0 auto;padding-top:16px}
.noor-card{background:var(--lilac);border-radius:28px;padding:20px;display:flex;flex-direction:column;gap:14px}
.noor-top{display:flex;align-items:center;gap:12px}
.noor-top h1{margin:0;font-size:27px;line-height:1.2}
.lantern{width:64px;height:84px;flex:none}
.lantern .glow{fill:var(--glow);opacity:.55}.lantern .ln{stroke:var(--text);stroke-width:2.4;stroke-linecap:round;fill:none}
.lantern .ink{fill:var(--text)}.lantern .glass{fill:var(--lantern-glass);stroke:var(--text);stroke-width:2.4}
.lantern .win{fill:var(--glow);stroke:var(--text);stroke-width:1.6}.lantern .flame{fill:var(--accent)}
.chips.feel{display:flex;flex-wrap:wrap;gap:8px}
.chips.feel .chip{min-height:48px;padding:10px 16px;font-size:16px;font-weight:600;background:var(--surface);border:1.5px solid var(--lilac-line);border-radius:999px;color:var(--text)}
.chips.feel .chip.other{background:transparent;border-style:dashed}
.helpnow{margin:10px 4px 18px;font-size:14px}
.crisis-link{color:var(--accent);font-weight:600}
.card-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.card-head h2,.read-card h2,.act h2{margin:0;font-family:Fraunces,Georgia,serif;font-weight:600;font-size:21px}
.adhkar-card .btn{margin-top:8px}
.row.two{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:10px 0 16px}
.row.wrap{flex-wrap:wrap}
.read-card{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--mint)}
.big-line{margin:4px 0 0;font-weight:600;font-size:16px}
.round-go{width:52px;height:52px;flex:none;border-radius:50%;border:0;background:var(--accent);display:flex;align-items:center;justify-content:center}
.round-go svg,.backlink svg{width:22px;height:22px;fill:none;stroke:var(--on-accent);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.backlink{display:inline-flex;align-items:center;gap:4px;min-height:44px;margin:12px 0 0;padding:0 8px 0 0;border:0;background:none;color:var(--accent);font-weight:600}
.backlink svg{stroke:var(--accent)}
.soft-card{background:var(--pink)}
.step-text{margin:4px 0 12px;font-size:16px}
.center{text-align:center}
.city-ask{margin:-4px 4px 16px}
.link{border:0;background:none;padding:4px 2px;min-height:36px;color:var(--accent);font-weight:600;text-decoration:underline;text-underline-offset:3px}
.link.danger{color:var(--danger)}

/* help page (library) */
#view-page{max-width:680px;margin:0 auto}
.lib h2{font-family:Fraunces,Georgia,serif;font-weight:600;font-size:21px;margin:28px 0 8px}
.lib p,.lib li{font-size:var(--fs);line-height:1.6;max-width:65ch}
.lib .ayah{margin:12px 0 4px;padding:12px 16px}
.lib .ayah .ref{display:block;margin-bottom:4px}
.lib .ar,.ayah-card .ar,.card .ar{font-family:QPNaskh,"Noto Naskh Arabic",serif;font-size:30px;line-height:2;text-align:right;direction:rtl;margin:0 0 8px}
.lib ul{padding-left:20px}
.lib em,.lib i{color:var(--muted)}
.act{margin-top:24px}
.btn.left{text-align:left;justify-content:flex-start;line-height:1.4;padding:10px 14px;height:auto;min-height:48px}
.col{display:flex;flex-direction:column;gap:8px}

/* search sheet */
.search{width:100%;min-height:48px;padding:10px 14px;border:1.5px solid var(--lilac-line);border-radius:14px;font:inherit;font-size:16px;background:var(--surface);color:var(--text)}
.results{display:flex;flex-direction:column;gap:8px;margin-top:8px;max-height:52vh;overflow:auto}
details.area summary{min-height:44px;display:flex;align-items:center;font-weight:600;cursor:pointer}

/* help now */
.helplines{display:flex;flex-direction:column;gap:10px;margin:12px 0}
.helpline{display:flex;flex-direction:column;gap:2px;padding:14px 16px;border-radius:16px;background:var(--mint);color:var(--text);text-decoration:none;border:1px solid var(--mint-line)}
.helpline .num{font-family:Fraunces,Georgia,serif;font-weight:600;font-size:22px;color:var(--accent)}

/* journeys */
#view-journeys,#view-journal,#view-me,#view-help{max-width:680px;margin:0 auto}
.jcard{display:flex;flex-direction:column;align-items:flex-start;gap:4px;width:100%;text-align:left;margin:10px 0;padding:16px;background:var(--surface);border:1px solid var(--line);border-radius:20px}
.jcard .jt{font-family:Fraunces,Georgia,serif;font-weight:600;font-size:19px}
.jcard .bar{width:100%;margin-top:6px}
.btn.day{margin:6px 0}.btn.day.done{background:var(--mint)}.btn.day.next{border-color:var(--accent);border-width:1.5px}
.lead{font-size:18px;font-weight:600}
.ayah-card .tr,.card .tr{font-size:var(--fs);line-height:1.6;margin:0 0 6px}
.ayah-card .ref{color:var(--muted);font-size:13px;margin:0}
.tl{font-style:italic;color:var(--muted);line-height:1.6}
.teach{border-left:0;background:var(--surface);padding:12px 16px;border-radius:16px;line-height:1.6}

/* journal */
.entry{width:100%;padding:12px 14px;border:1.5px solid var(--lilac-line);border-radius:14px;font:inherit;font-size:16px;line-height:1.6;background:var(--surface);color:var(--text);resize:vertical;margin:8px 0}
.prompt{font-family:Fraunces,Georgia,serif;font-weight:500;font-size:18px;margin:0 0 4px}
.entry-item summary{min-height:44px;display:flex;align-items:center;font-weight:600;cursor:pointer}
.entry-text{white-space:pre-wrap;line-height:1.6}

/* me */
.rowbtn{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;text-align:left;margin:8px 0;padding:14px 16px;background:var(--surface);border:1px solid var(--line);border-radius:18px;min-height:56px}
.rowbtn > span:first-child{font-weight:600;font-size:16px}
dl.gloss{display:grid;grid-template-columns:auto 1fr;gap:6px 14px;margin:12px 0 16px}
dl.gloss dt{font-weight:600}dl.gloss dd{margin:0;color:var(--muted)}
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.view h2.sec,.sheet h2.sec{font-family:Fraunces,Georgia,serif;font-weight:600;font-size:21px;letter-spacing:0;color:var(--text);margin:24px 0 8px}
html .secgrp{display:block;width:100%}
html .secrow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;overflow:visible}
html .sec{min-height:44px;padding:0 6px;font-size:15px;font-weight:600;white-space:normal;line-height:1.2}
html .sec[aria-pressed="true"]{background:var(--accent);color:var(--on-accent)}
html .sec.now::after{background:var(--coral)}

/* ---------- v0.2.0: bell + Today, AI Noor, Plus, sign-in, picture guide (look 2A, 8px steps, no blur) ---------- */
.top-right{display:flex;align-items:center;gap:8px}
.bell-btn{position:relative;display:grid;place-items:center;padding:0}
.bell-btn svg{width:22px;height:22px;fill:none;stroke:var(--accent-dark);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.bell-dot{position:absolute;top:-4px;right:-4px;min-width:18px;height:18px;padding:0 4px;border-radius:9px;background:var(--coral);color:var(--on-accent);font:600 11px/18px Figtree,system-ui,sans-serif;text-align:center}
.today-list{display:flex;flex-direction:column;gap:8px;margin:8px 0 16px}
.today-item{background:var(--surface);border:1px solid var(--lilac-line);border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:8px}
.today-item.done{background:var(--mint);border-color:var(--mint-line)}
.today-text{display:flex;flex-direction:column;gap:4px}
.today-label{font-weight:600}
.today-item .row .btn{flex:0 0 auto}
.ai-card{background:var(--mint);border-color:var(--mint-line)}
.ai-card h2{margin-top:0}
.chat{display:flex;flex-direction:column;gap:8px;margin:16px 0}
.msg{max-width:88%;padding:8px 16px;border-radius:16px;background:var(--surface);border:1px solid var(--lilac-line)}
.msg p{margin:8px 0}
.msg.user{align-self:flex-end;background:var(--lilac);border-color:var(--lilac-line)}
.msg.noor{align-self:flex-start;background:var(--mint);border-color:var(--mint-line)}
.msg .who{display:block;font:600 12px Figtree,system-ui,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin-top:8px}
.msg.typing p{letter-spacing:.3em}
.msg .pick{display:flex;flex-direction:column;align-items:flex-start;gap:0;margin:8px 0;padding:8px 16px;height:auto}
.chat-form{display:flex;gap:8px;align-items:flex-end;position:sticky;bottom:88px;background:var(--bg);padding:8px 0}
.chat-form .entry{flex:1;min-height:56px}
.chat-form .btn{flex:0 0 auto}
.plans{display:flex;flex-direction:column;gap:8px;margin:16px 0}
.plan{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;padding:16px;border-radius:16px;border:2px solid var(--lilac-line);background:var(--surface);min-height:56px}
.plan.on{border-color:var(--accent);background:var(--mint)}
.plan-top{display:flex;gap:8px;align-items:center}
.plan-price{font:600 20px Fraunces,Georgia,serif;color:var(--accent-dark)}
.plus-list{margin:8px 0;padding-left:24px}.plus-list li{margin:4px 0}
.field-label{display:block;font-weight:600;margin:16px 0 8px}
.code-in{font:600 24px Fraunces,Georgia,serif;letter-spacing:.3em;text-align:center}
.note.err{color:var(--danger);min-height:1.2em}
.note.warn{color:var(--peach-text)}
.note.links a{color:var(--accent)}
.btn.danger{background:var(--danger);color:var(--on-accent)}
.install-me .btn{margin-top:8px}
.install-steps{margin-top:8px}
/* picture guide */
.g-sec h2{margin-top:0}
.g-row{display:flex;gap:16px;align-items:flex-start;flex-wrap:wrap}
.g-phone{width:180px;max-width:45%;flex:0 0 auto}
.g-pins{flex:1;min-width:200px;margin:0;padding-left:24px}.g-pins li{margin:8px 0}
.g-frame{fill:var(--bg);stroke:var(--accent-dark);stroke-width:2}
.g-bar{fill:var(--surface);stroke:var(--lilac-line)}
.g-card{fill:var(--surface);stroke:var(--lilac-line)}.g-teal{fill:var(--mint);stroke:var(--mint-line)}
.g-txt{fill:var(--lilac-line)}.g-chip{fill:var(--lilac)}.g-btn{fill:var(--accent)}
.g-ic{fill:var(--lilac-line)}.g-on{fill:var(--accent)}.g-bell{fill:var(--coral)}
.g-pin{fill:var(--coral)}.g-pin-t{fill:var(--surface);font:600 11px Figtree,system-ui,sans-serif;text-anchor:middle}
.g-table{width:100%;border-collapse:collapse;font-size:15px}
.g-table th,.g-table td{text-align:left;vertical-align:top;padding:8px;border-bottom:1px solid var(--lilac-line)}
.g-table th{font-weight:600;color:var(--muted)}
.g-list{padding-left:24px}.g-list li{margin:8px 0}
.ai-card h2,.chat-head+h1{font-family:Fraunces,Georgia,serif;font-weight:600}
.soft-card .btn + .link{margin-left:16px}
/* 0.3.0: footer links on Me and Help are 44 px tap targets (bug pass item 6) */
.note.links{display:flex;flex-wrap:wrap;align-items:center;gap:0 4px}
.note.links a{display:inline-flex;align-items:center;min-height:44px;min-width:44px;padding:0 8px;justify-content:center}

/* ---------- 0.3.0 paper switch kit (Ali, 30 Nov 2026): ✕→✓ toggle, paper checkbox, segmented pill with tag ----------
   Plain CSS, no images, tinted from the theme variables so light and dark both work. Motion off under reduced motion. */
.kit-row{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:56px;padding:8px 0}
.kit-row .kit-text{display:flex;flex-direction:column;gap:2px;min-width:0}
.kit-row .kit-text b{font-weight:600}
.xtog{position:relative;flex:none;width:64px;height:44px;border:0;background:none;padding:6px 0;border-radius:22px}
.xtog .trk{position:absolute;inset:6px 0;border-radius:16px;background:var(--paper);border:1.5px solid var(--paper-line);box-shadow:inset 0 2px 0 rgba(0,0,0,.04);transition:background .25s,border-color .25s}
.xtog .knb{position:absolute;top:9px;left:3px;width:26px;height:26px;border-radius:50%;background:var(--surface);border:1.5px solid var(--paper-line);box-shadow:0 2px 4px var(--kit-shadow);
  display:grid;place-items:center;transition:transform .25s cubic-bezier(.3,1.4,.5,1)}
.xtog .knb::before,.xtog .knb::after{content:"";position:absolute;width:12px;height:2px;border-radius:1px;background:var(--muted);transition:transform .25s,width .25s,background .25s}
.xtog .knb::before{transform:rotate(45deg)}.xtog .knb::after{transform:rotate(-45deg)}
.xtog[aria-checked="true"] .trk{background:var(--accent);border-color:var(--accent)}
.xtog[aria-checked="true"] .knb{transform:translateX(32px);border-color:var(--accent)}
.xtog[aria-checked="true"] .knb::before{width:6px;transform:translate(-3px,2px) rotate(45deg);background:var(--accent)}
.xtog[aria-checked="true"] .knb::after{width:11px;transform:translate(2px,0) rotate(-50deg);background:var(--accent)}
.pchk{display:flex;align-items:center;gap:12px;min-height:48px;cursor:pointer;font-weight:600}
.pchk input{appearance:none;-webkit-appearance:none;flex:none;width:28px;height:28px;margin:0;border-radius:8px;border:1.5px solid var(--paper-line);background:var(--paper);
  box-shadow:inset 0 2px 0 rgba(0,0,0,.04);display:grid;place-items:center;cursor:pointer;transition:background .2s,border-color .2s}
.pchk input::after{content:"";width:8px;height:14px;border:solid var(--on-accent);border-width:0 3px 3px 0;transform:translateY(-2px) rotate(45deg) scale(0);transition:transform .2s cubic-bezier(.3,1.4,.5,1)}
.pchk input:checked{background:var(--accent);border-color:var(--accent)}
.pchk input:checked::after{transform:translateY(-2px) rotate(45deg) scale(1)}
.pchk input:focus-visible,.xtog:focus-visible,.seg button:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.seg{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:4px;padding:4px;border-radius:24px;background:var(--paper);border:1.5px solid var(--paper-line);margin:16px 0 8px}
.seg button{position:relative;min-height:48px;border:0;border-radius:20px;background:none;font-weight:600;color:var(--muted);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:4px 8px}
.seg button[aria-checked="true"]{background:var(--surface);color:var(--text);box-shadow:0 2px 6px var(--kit-shadow)}
.seg .tag{position:absolute;top:-10px;right:6px;padding:2px 8px;border-radius:10px;background:var(--wine);color:var(--on-accent);font-size:11px;font-weight:700;letter-spacing:.02em}
.seg-price{text-align:center;margin:8px 0 16px}
.seg-price b{display:block;font:600 24px Fraunces,Georgia,serif;color:var(--text)}
.journey-alone{margin:0 0 16px}
@media (prefers-reduced-motion:reduce){.xtog .trk,.xtog .knb,.xtog .knb::before,.xtog .knb::after,.pchk input,.pchk input::after{transition:none}}

/* ---------- 0.3.0 sun/moon switch in the top bar: the sun rolls into a moon. CSS only, no images ---------- */
.mode-btn{position:relative;width:44px;height:44px;flex:none;border:1px solid var(--lilac-line);border-radius:50%;background:var(--surface);display:grid;place-items:center;overflow:hidden;padding:0}
.mode-btn .orb{position:relative;width:16px;height:16px;border-radius:50%;background:#E8875F;
  box-shadow:0 -11px 0 -6px #E8875F,0 11px 0 -6px #E8875F,11px 0 0 -6px #E8875F,-11px 0 0 -6px #E8875F,8px -8px 0 -6px #E8875F,-8px 8px 0 -6px #E8875F,8px 8px 0 -6px #E8875F,-8px -8px 0 -6px #E8875F;
  transition:transform .5s cubic-bezier(.4,1.3,.5,1),box-shadow .35s,background .35s,width .35s,height .35s}
.mode-btn .orb::after{content:"";position:absolute;top:-6px;right:-16px;width:16px;height:16px;border-radius:50%;background:var(--surface);transition:transform .45s cubic-bezier(.4,1.3,.5,1)}
:root[data-mode="dark"] .mode-btn .orb{width:20px;height:20px;background:#F4C2B4;transform:rotate(-40deg);box-shadow:0 0 0 -6px #F4C2B4,0 0 0 -6px #F4C2B4,0 0 0 -6px #F4C2B4,0 0 0 -6px #F4C2B4,0 0 0 -6px #F4C2B4,0 0 0 -6px #F4C2B4,0 0 0 -6px #F4C2B4,0 0 0 -6px #F4C2B4}
:root[data-mode="dark"] .mode-btn .orb::after{transform:translate(-11px,6px)}
.mode-btn:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
@media (prefers-reduced-motion:reduce){.mode-btn .orb,.mode-btn .orb::after{transition:none}}

/* ---------- 0.3.0 one wine accent from the new Qaf icon: the active tab and the Noor card heading (AA in both themes) ---------- */
.tab.on,.tab[aria-current="page"]{color:var(--wine)}
.tab.on svg{stroke:var(--wine)}
.noor-card h1{color:var(--wine)}

/* ---------- 0.3.0 top bar fits the sun/moon on a 360 px phone: three 40x44 tap areas with 38 px round faces ---------- */
.top{padding-left:12px;padding-right:12px}
.app-icon{width:34px;height:34px}
.app-name{font-size:21px}
.top-right{gap:2px}
.clock{margin-right:6px}
.clock-time{font-size:20px}
.clock-date{white-space:nowrap;font-size:11px}
.mode-btn,.help-btn{position:relative;isolation:isolate;width:40px;height:44px;border:0;border-radius:22px;background:none;overflow:visible}
.mode-btn::before,.help-btn::before{content:"";position:absolute;z-index:-1;left:1px;top:3px;width:38px;height:38px;border-radius:50%;background:var(--surface);border:1px solid var(--lilac-line);box-sizing:border-box}
.mode-btn{display:grid;place-items:center}
.mode-btn .orb::after{background:var(--surface)}
@media (max-width:340px){.clock-date{display:none}}
.mode-btn .orb::after{opacity:0;transition:transform .45s cubic-bezier(.4,1.3,.5,1),opacity .2s}
:root[data-mode="dark"] .mode-btn .orb::after{opacity:1}
.g-sun{fill:#E8875F}:root[data-mode="dark"] .g-sun{fill:#F4C2B4}
.g-star{font-size:10px;fill:var(--lilac-line)}.g-star.on{fill:var(--accent)}
.g-ribbon{fill:var(--coral)}
.seg button{font-size:15px;white-space:nowrap;padding:4px 6px}

/* 0.3.0: a smaller Noor heading so the whole room fits a phone screen without scrolling (Ali, 2 Dec) */
.noor-card{padding:16px;gap:12px}
.noor-top{gap:10px}
.noor-top h1{font-size:22px;line-height:1.15}
.lantern{width:44px;height:58px}
.chips.feel{gap:6px}
.chips.feel .chip{min-height:44px;padding:8px 14px;font-size:15px}
.helpnow{margin:8px 4px 12px}

/* ===== 0.3.1 · tabs with Noor raised in the centre, the gear, Noor, 2-minute help, Heart log, Me, Settings ===== */
.tab.mid{position:relative;justify-content:flex-end;padding-bottom:4px;background:none!important}
.tab.mid svg{box-sizing:border-box;width:58px;height:58px;padding:14px;margin-top:-26px;border-radius:50%;background:var(--bar-bottom);border:1.5px solid var(--lilac-line);box-shadow:0 6px 14px var(--kit-shadow)}
.tab.mid.on svg{background:var(--lilac);border-color:var(--wine)}
.tab:not(.mid).on{background:none}
.help-btn.gear svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.help-btn.gear[aria-pressed="true"]{background:var(--lilac);border-color:var(--wine)}
/* Noor */
.say{display:flex;align-items:center;gap:12px;margin:4px 2px 12px}
.say h1{margin:0 0 2px;font-family:Fraunces,Georgia,serif;font-weight:600;font-size:22px;line-height:1.2;color:var(--wine)}
.say p{margin:0;font-size:15px;line-height:1.4;color:var(--muted)}
.lan-wrap .lantern{width:46px;height:60px}
.lan-wrap .lantern .glow{opacity:.25;transition:opacity .4s}
.lan-wrap.lit-1 .lantern .glow{opacity:.4}.lan-wrap.lit-2 .lantern .glow{opacity:.55}.lan-wrap.lit-3 .lantern .glow{opacity:.7}.lan-wrap.lit-4 .lantern .glow{opacity:.85}
.prom{display:grid;gap:6px;margin-bottom:10px}
.pr{display:block;width:100%;text-align:left;border-radius:16px;padding:9px 14px;border:1px solid var(--line);color:var(--text);font:inherit}
.pr b{display:block;font-family:Fraunces,Georgia,serif;font-weight:600;font-size:16px;line-height:1.25}.pr span{font-size:13px;color:var(--muted)}
.pr.p1{background:var(--lilac);border-color:var(--lilac-line)}.pr.p2{background:var(--mint);border-color:var(--mint-line)}.pr.p3{background:var(--peach);border-color:var(--peach-line)}
.noor-card.heart{padding:16px;gap:10px;border-radius:24px;margin-bottom:10px}
.noor-card.heart h2{margin:0;font-family:Fraunces,Georgia,serif;font-weight:600;font-size:19px}
.noor-card.heart .chips.feel .chip{min-height:44px;padding:8px 14px;font-size:15px}
.ai-row{display:flex;align-items:center;gap:12px;width:100%;min-height:56px;padding:8px 12px;text-align:left;border-radius:18px;border:1.5px solid var(--wine);background:var(--surface);color:var(--text);font:inherit}
.ai-ic{flex:none;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--accent);color:var(--on-accent)}
.ai-ic svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linejoin:round}
.ai-t{flex:1;display:flex;flex-direction:column;gap:1px}.ai-t b{font-family:Fraunces,Georgia,serif;font-weight:600;font-size:16px;color:var(--wine)}.ai-t .note{font-size:12.5px;margin:0}
.ai-row .chev,.pray .note,.rows .rowbtn .note{color:var(--muted)}
.now{display:flex;align-items:center;gap:12px;background:var(--mint);border:1px solid var(--mint-line);border-radius:20px;padding:12px 14px;margin-bottom:10px}
.now.quiet{background:var(--surface);border-color:var(--line)}
.now-t{flex:1;min-width:0}.now .k{margin:0;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--mint-text)}
.now h3{margin:2px 0;font-family:Fraunces,Georgia,serif;font-weight:600;font-size:18px;line-height:1.2}.now .note{margin:0;font-size:13px}
.now .btn{flex:none}
.pray{display:flex;justify-content:space-between;align-items:center;gap:8px;width:100%;min-height:48px;padding:0 16px;border-radius:16px;background:var(--surface);border:1px solid var(--line);font:inherit;font-size:15px;color:var(--text);margin-bottom:6px}
.pray .note{margin:0;font-size:13px}
.trust{margin:8px 4px 0;font-size:13px;line-height:1.45;color:var(--muted)}
.ptimes{margin:8px 0 12px}.ptimes .pt{display:flex;justify-content:space-between;min-height:46px;align-items:center;border-bottom:1px solid var(--line);font-size:16px}
.ptimes .pt.next{font-weight:700;color:var(--wine)}
/* 2-minute help + check-in */
.quick-ayah,.quick-dua,.quick-steps{margin-top:12px}
.quick-dua{background:var(--lilac);border-color:var(--lilac-line)}
.quick-ayah .ayah{background:none;border:0;padding:0;margin:0;box-shadow:none}
.stp{display:grid;grid-template-columns:88px 1fr;gap:8px;padding:9px 0;border-top:1px solid var(--line-soft);font-size:15px;line-height:1.45}
.stp:first-of-type{border-top:0}.stp b{color:var(--wine)}
.carry summary{min-height:44px;display:flex;align-items:center;font-weight:600;color:var(--accent);cursor:pointer}
.checkin{background:var(--peach);border-color:var(--peach-line);margin-top:12px}
.checkin h2{margin:0 0 8px;font-family:Fraunces,Georgia,serif;font-weight:600;font-size:18px}
.checkin .entry{margin-top:10px}.checkin .btn{margin-top:8px}
.journey-offer{margin-top:12px}
/* Journeys */
.jnow{margin:8px 0 6px}
.jd{display:flex;gap:6px;margin:8px 0 4px}.jd i{width:16px;height:16px;border-radius:50%;border:1.5px solid var(--mint-line);background:var(--surface)}
.jd i.f{background:var(--accent);border-color:var(--accent)}.jd i.t{border:2px solid var(--wine)}
.rows .rowbtn{flex-direction:row;justify-content:space-between;align-items:center;margin:6px 0}
.rows .rowbtn > span:first-child{font-family:Fraunces,Georgia,serif;font-size:16px}
.chips.groups .chip{font-weight:600}
/* Me */
.me-head{display:flex;align-items:center;gap:12px;margin:8px 2px 12px}
.me-head .av{flex:none;width:52px;height:52px;border-radius:50%;background:var(--lilac);border:1.5px solid var(--lilac-line);display:grid;place-items:center}
.me-head .av .lantern{width:28px;height:37px}
.me-head h1{margin:0;font-size:26px}.me-head .note{margin:0}
.week-card{background:var(--mint);border-color:var(--mint-line)}
.wkd{display:grid;grid-template-columns:repeat(7,1fr);justify-items:center;margin:12px 0 4px}
.wkx{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:11px;color:var(--muted)}
.wkx i{width:24px;height:24px;border-radius:50%;border:1.5px solid var(--mint-line);background:var(--surface)}
.wkx i.f{background:var(--accent);border-color:var(--accent)}.wkx i.h{background:linear-gradient(90deg,var(--accent) 50%,var(--surface) 50%);border-color:var(--accent)}
.wkx i.t{outline:2px solid var(--wine);outline-offset:2px}
.wk-line{margin:6px 0 2px;font-weight:600}
.heart-card{background:var(--peach);border-color:var(--peach-line)}
.linkhead{width:100%;border:0;background:none;padding:0;min-height:44px;font:inherit;color:inherit;text-align:left}
.hl-row{display:flex;flex-direction:column;gap:2px;padding:8px 0;border-top:1px solid var(--peach-line)}
.hl-row b{font-size:14px}.hl-row .q{font-style:italic;font-size:14.5px;line-height:1.45}.hl-row .note{margin:0;font-size:12.5px}
.hl-item.up{border-left:5px solid var(--mint-line)}.hl-item.heavy{border-left:5px solid var(--lilac-line)}.hl-item.same{border-left:5px solid var(--peach-line)}
.saved-card .ar{font-size:22px;line-height:1.9}
/* Settings */
.set-top{display:flex;justify-content:space-between;align-items:center;margin:4px 0 8px}
.set-top h1{margin:0}
.jumps{display:flex;gap:6px;overflow-x:auto;padding:2px 0 8px;scrollbar-width:none;position:sticky;top:var(--top-h,67px);z-index:2;background:var(--bg)}
.jumps::-webkit-scrollbar{display:none}
.jumps .chip{flex:none;min-height:40px;font-weight:600}
.ss{scroll-margin-top:130px;margin-top:6px}
.ss.here{background:var(--mint);border:1px solid var(--mint-line);border-radius:20px;padding:4px 14px 10px}
.ss .xtoggle,.ss label.xt{margin:0}
.danger-row > span:first-child{color:var(--danger)}
.remind-card{background:var(--peach);border-color:var(--peach-line);margin-top:12px}
.remind-card h2{margin:0 0 6px;font-family:Fraunces,Georgia,serif;font-weight:600;font-size:19px}
.noor-card.heart h2{text-align:left}
.noor-card.heart.first{gap:8px}.noor-card.heart.first h2{font-size:17px}
.noor-card.heart.first .chips.feel .chip{min-height:44px;padding:6px 12px;font-size:14.5px}
.say h1{font-size:21px}
.pr{padding:7px 14px}.pr b{font-size:15.5px}.pr span{font-size:12.5px}
.set-top .btn{width:auto;flex:none;min-width:88px}
.g-lilac{fill:var(--lilac);stroke:var(--lilac-line)}
/* 0.3.1: three buttons (sun/moon, bell, gear) on the smallest phones: no sideways scroll at 320 px (Quran Path 1.9.1 carry-over) */
@media (max-width:350px){.top{padding-left:8px;padding-right:6px}.app-icon{width:30px;height:30px}.app-name{font-size:18px}.ver{font-size:10px}.clock-time{font-size:17px}.clock-hijri{font-size:9.5px}.mode-btn,.help-btn{width:34px}.top-right{gap:0}}

/* ===== 0.3.2 ===== */
/* night look: the chosen option in segmented pills was nearly invisible (surface on cocoa); now a filled peach pill with a ring */
:root[data-mode="dark"] .segbar button[aria-selected="true"],:root[data-mode="dark"] .seg button[aria-checked="true"]{background:var(--accent);color:var(--on-accent);box-shadow:0 0 0 2px var(--text) inset}
:root[data-mode="dark"] .seg button,:root[data-mode="dark"] .segbar button{color:var(--muted)}
.tabline{margin:2px 0 10px}
/* Adhkar tidy tiles (option B): Day 4 even, Night 3 even */
html .secstrip.tiles .secrow{display:grid;gap:6px;padding:0;background:none;border:0;overflow:visible}
html .secstrip.tiles .secrow.n4{grid-template-columns:repeat(4,minmax(0,1fr))}
html .secstrip.tiles .secrow.n3{grid-template-columns:repeat(3,minmax(0,1fr))}
html .secstrip.tiles .sec{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:78px;padding:8px 4px;border-radius:16px;background:var(--surface);border:1px solid var(--line);font-size:13.5px;font-weight:600;white-space:normal;line-height:1.15;text-align:center}
html .secstrip.tiles .sec[aria-pressed="true"]{background:var(--accent);color:var(--on-accent);border-color:transparent}
html .secstrip.tiles .sec.said:not([aria-pressed="true"]) .sec-p{color:var(--ok,#2F7A5B);font-weight:700}
:root[data-mode="dark"] .secstrip.tiles .sec.said:not([aria-pressed="true"]) .sec-p{color:#9FD8BE}
.sec-ic svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.sec-p{font-size:11.5px;font-weight:500;opacity:.9}
@media (max-width:350px){html .secstrip.tiles .sec{font-size:12px;min-height:72px}.sec-ic svg{width:18px;height:18px}}
/* Me */
.linkhead{width:100%;border:0;background:none;padding:0;text-align:left;color:inherit;cursor:pointer}
.emptyc .btn{margin-top:8px}
.helps .hrow{display:flex;align-items:center;gap:12px;width:100%;min-height:56px;padding:8px 0;border:0;border-top:1px solid var(--line);background:none;text-align:left;color:inherit}
.helps .hrow:first-of-type{border-top:0}
.helps .hi{flex:0 0 auto;min-width:36px;height:36px;border-radius:12px;display:grid;place-items:center;background:var(--mint);font-weight:700;font-size:14px}
.helps .ht,.fin .frow>span:last-child{display:flex;flex-direction:column;gap:2px;flex:1}
.fin .frow{display:flex;gap:12px;align-items:center;padding:8px 0;border-top:1px solid var(--line)}
.fin .fx{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:var(--mint);font-weight:700}
.dua-keep .kicker{font-size:12px;color:var(--muted);margin:0 0 6px}
.keep-dua{margin-top:8px}
.keep-dua[aria-pressed="true"]{background:var(--pink);border-color:var(--pink-line)}
/* Settings: support tile, sync, letter */
.support-tile{display:flex;align-items:center;gap:12px;padding:14px 16px;margin:0 0 14px;border-radius:20px;background:var(--pink);border:1px solid var(--pink-line);color:var(--text);text-decoration:none}
.support-tile>span:nth-child(2){display:flex;flex-direction:column;gap:2px;flex:1}
.sup-ic{font-size:22px;width:40px;height:40px;border-radius:14px;display:grid;place-items:center;background:var(--surface)}
.sync-box,.letter-box{margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}
.letter-box .search{width:100%;margin:6px 0}
.sync-code{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:22px;letter-spacing:.08em;text-align:center;padding:14px;border-radius:14px;background:var(--paper);border:1.5px dashed var(--paper-line);user-select:all;margin:10px 0}
/* My few */
.few-row{display:flex;align-items:center;gap:10px;padding:8px 0;border-top:1px solid var(--line)}
.few .card-head+.few-row{border-top:0}
.few-t{display:flex;flex-direction:column;gap:5px;flex:1;min-width:0}
.few-n{font-weight:600;overflow-wrap:anywhere}
.few-wk{display:flex;gap:4px}.few-wk i{width:10px;height:10px;border-radius:50%;border:1.5px solid var(--line)}.few-wk i.f{background:var(--accent);border-color:var(--accent)}
.few-tap{flex:0 0 auto;min-height:44px;min-width:84px;padding:0 12px;border-radius:14px;border:1.5px solid var(--line);background:var(--surface);color:var(--text);font-weight:600}
.few-tap.on{background:var(--accent);color:var(--on-accent);border-color:transparent}
.few .link{margin-left:auto}

/* ===== 0.3.3 ===== */
.btn.dim{opacity:.6}
.nudge{background:var(--pink);border-color:var(--pink-line)}
.duas .hrow{display:flex;align-items:center;gap:12px;width:100%;min-height:56px;padding:8px 0;border:0;border-top:1px solid var(--line);background:none;text-align:left;color:inherit}
.duas .hi{flex:0 0 auto;min-width:36px;height:36px;border-radius:12px;display:grid;place-items:center;background:var(--pink);font-weight:700}
.duas .ht{display:flex;flex-direction:column;gap:2px;flex:1}
.coming{display:flex;align-items:center;gap:10px;padding:12px 14px;margin:0 0 14px;border-radius:16px;background:var(--mint);border:1px solid var(--mint-line)}
.coming b{font-weight:700}
