:root{--ground:#fafaf7;--sheet:#fff;--backdrop:#efede8;--ink:#17181a;--muted:#5f6570;--hairline:#e7e4dc;--hairline-soft:#f0ede5;--green:#0b6e4f;--green-deep:#085a40;--green-tint:#edf5f1;--gold:#e8c24c;--gold-deep:#b8912b;--gold-soft:#f4ecd7;--red:#c23b2e;--red-tint:#fbf0ee;--radius:14px;--font-body:"Manrope",system-ui,sans-serif;--font-display:"Oswald",sans-serif;--font-arabic:"Amiri",serif}*{box-sizing:border-box;margin:0;padding:0}html{height:100%}body{background:var(--ground);color:var(--ink);font-family:var(--font-body);-webkit-font-smoothing:antialiased;min-height:100vh;font-size:15px;line-height:1.5}::selection{background:#d5e8df}#app{flex-direction:column;max-width:480px;min-height:100vh;margin:0 auto;display:flex;position:relative}.appbar{background:var(--sheet);border-bottom:1px solid var(--hairline);z-index:10;justify-content:space-between;align-items:center;padding:12px 18px 10px;display:flex;position:sticky;top:0}.brand{align-items:baseline;gap:8px;display:flex}.brand-name{letter-spacing:-.01em;font-size:19px;font-weight:800}.brand-dot{background:var(--green);border-radius:50%;align-self:center;width:7px;height:7px}.screen-title{letter-spacing:-.01em;font-size:20px;font-weight:800}.appbar-right{align-items:center;gap:9px;display:flex}.iconbtn{border:1px solid var(--hairline);background:var(--sheet);cursor:pointer;border-radius:10px;justify-content:center;align-items:center;width:34px;height:34px;display:flex;position:relative}.iconbtn svg{width:17px;height:17px;stroke:var(--ink)}.iconbtn .badge{background:var(--red);border:1.5px solid var(--sheet);border-radius:50%;width:9px;height:9px;position:absolute;top:-3px;right:-3px}.avatar{background:var(--green-tint);border:1.5px solid var(--gold);width:34px;height:34px;color:var(--green);border-radius:50%;justify-content:center;align-items:center;font-size:12.5px;font-weight:800;display:flex}.dateline{background:var(--sheet);padding:8px 18px 6px}.dateline .masehi{font-size:13.5px;font-weight:700}.dateline .hijri{color:var(--muted);font-size:12.5px;font-weight:500}.dateline .src{color:var(--muted);margin-top:1px;font-size:11.5px;font-weight:500}.approx{color:#8a6d1f;font-weight:600}.hero{background:var(--green);color:#f6fbf8;border-radius:var(--radius);margin:8px 18px 0;padding:11px 16px;box-shadow:0 10px 22px -12px #085a408c}.hero-top{justify-content:space-between;align-items:center;display:flex}.hero-label{color:#d9ebe2;letter-spacing:.03em;font-size:12px;font-weight:600}.hero-chip{color:#fff;background:#f6fbf824;border-radius:999px;padding:3px 9px;font-size:11px;font-weight:700}.hero-main{align-items:baseline;gap:9px;margin-top:3px;display:flex}.hero-count{font-family:var(--font-display);color:var(--gold);font-size:30px;font-weight:600;line-height:1}.hero-next{color:#f6fbf8;font-size:14px;font-weight:700}.hero-sub{color:#d9ebe2;margin-top:2px;font-size:12px;font-weight:500}.hero-track{background:#f6fbf82e;border-radius:99px;height:3px;margin-top:8px;overflow:hidden}.hero-fill{background:var(--gold);border-radius:99px;height:100%;transition:width 1s ease-out}.strip-wrap{margin:12px 18px 0}.cartouche{border-top:2px solid var(--ink);border-bottom:1px solid var(--ink);justify-content:space-between;align-items:baseline;padding:4px 2px 3px;display:flex;position:relative}.cartouche:after{content:"";background:var(--ink);height:1px;position:absolute;bottom:2px;left:0;right:0}.month-name{font-family:var(--font-display);letter-spacing:.08em;font-size:14px;font-weight:600}.month-hijri{color:var(--muted);font-size:11.5px;font-weight:600}.mini-grid{grid-template-columns:repeat(7,1fr);margin-top:6px;display:grid}.dow{color:var(--muted);text-align:center;letter-spacing:.04em;padding:2px 0;font-size:11px;font-weight:700}.mini-cell{text-align:center;font-family:var(--font-display);color:var(--ink);border-radius:8px;padding:2px 0 6px;font-size:13px;font-weight:500;position:relative}.mini-cell.dim{color:#8a8578}.pip{border-radius:50%;width:4px;height:4px;position:absolute;bottom:1px;left:50%;transform:translate(-50%)}.pip.full{background:var(--green)}.pip.part{background:var(--gold)}.mini-cell.today{color:var(--red);outline:1.5px solid var(--red);outline-offset:-1.5px;background:var(--red-tint);padding-bottom:7px;font-weight:700}.fastmark{width:9px;height:9px;position:absolute;top:1px;right:3px}.evmark{background:var(--gold);border-radius:1.5px;width:7px;height:7px;position:absolute;top:2px;left:3px;transform:rotate(45deg)}.list-head{justify-content:space-between;align-items:center;padding:10px 0 6px;display:flex}.list-title{letter-spacing:-.01em;font-size:16.5px;font-weight:800}.list-count{color:var(--muted);font-size:12px;font-weight:700}.rows{border-top:1px solid var(--hairline)}.row{border-bottom:1px solid var(--hairline-soft);align-items:flex-start;gap:12px;padding:8px 2px;display:flex}.row-time{font-family:var(--font-display);color:var(--red);font-variant-numeric:tabular-nums;flex:none;width:44px;padding-top:1px;font-size:15px;font-weight:600}.row-body{flex:1;min-width:0}.row-title{font-size:13.5px;font-weight:700;line-height:1.35}.row-title.done{color:var(--muted);text-decoration:line-through;text-decoration-thickness:1px}.row-cite{color:var(--muted);margin-top:1px;font-size:11.5px;font-weight:500}.row-arabic{font-family:var(--font-arabic);text-align:right;color:var(--ink);direction:rtl;margin-top:3px;font-size:17px;line-height:1.5}.row-text{color:#3d4046;margin-top:2px;font-size:12.5px;line-height:1.45}.row-state{flex:none;padding-top:2px}.check{background:var(--green);cursor:pointer;border:none;border-radius:50%;justify-content:center;align-items:center;width:21px;height:21px;display:flex}.check svg{stroke:#fff;width:11px;height:11px}.check.empty{background:var(--sheet);border:1.5px solid #a8a296}.row.next{background:var(--red-tint);border-bottom-color:#0000;border-radius:10px;margin:0 -8px;padding:8px 10px}.row.next .row-title{color:var(--red)}.next-chip{color:var(--red);background:#fff;border:1px solid #e4b7b0;border-radius:999px;padding:2px 7px;font-size:11px;font-weight:800}.event-row{border-bottom:1px solid var(--hairline-soft);align-items:flex-start;gap:10px;padding:8px 2px;display:flex}.event-diamond{background:var(--gold);border-radius:2px;flex:none;width:9px;height:9px;margin-top:4px;transform:rotate(45deg)}.event-title{font-size:13px;font-weight:700;line-height:1.3}.event-place{color:var(--muted);margin-top:1px;font-size:11.5px;font-weight:500}.mine-chip{color:var(--green);background:var(--green-tint);white-space:nowrap;border:1px solid #bfdccf;border-radius:999px;flex:none;padding:2px 7px;font-size:10.5px;font-weight:800}.mine-chip.gold{color:#7a5f1b;background:var(--gold-soft);border-color:#e3d2a2}.fast-note,.note-strip{background:var(--gold-soft);color:#6b5a1e;border:1px solid #e3d2a2;border-radius:10px;align-items:center;gap:7px;margin:8px 18px 0;padding:6px 10px;font-size:11.5px;font-weight:600;display:flex}.fast-note svg{flex:none;width:13px;height:13px}.note-strip b{color:var(--green)}.chips{scrollbar-width:thin;gap:7px;margin-top:10px;padding-bottom:2px;display:flex;overflow-x:auto}.chips::-webkit-scrollbar{height:3px}.chips::-webkit-scrollbar-thumb{background:#d8d4c8;border-radius:99px}.chip{border:1px solid var(--hairline);color:var(--ink);background:var(--sheet);cursor:pointer;font-size:12px;font-weight:700;font-family:var(--font-body);border-radius:999px;flex:none;padding:5px 12px}.chip.on{background:var(--green);border-color:var(--green);color:#f6fbf8}.prayer-strip{border-top:2px solid var(--ink);background:var(--sheet);justify-content:space-between;padding:8px 18px 7px;display:flex;position:relative}.prayer-strip:before{content:"";background:var(--ink);height:1px;position:absolute;top:3px;left:0;right:0}.prayer{text-align:center}.prayer .p-name{color:var(--muted);letter-spacing:.04em;font-size:11px;font-weight:700}.prayer .p-time{font-family:var(--font-display);font-variant-numeric:tabular-nums;font-size:14px;font-weight:600}.prayer.next .p-time,.prayer.next .p-name{color:var(--red)}.tabbar{background:var(--sheet);border-top:1px solid var(--hairline);z-index:10;padding:6px 10px 12px;display:flex;position:sticky;bottom:0}.tab{color:var(--muted);cursor:pointer;font-size:11px;font-weight:700;font-family:var(--font-body);background:0 0;border:none;flex-direction:column;flex:1;align-items:center;gap:3px;display:flex}.tab svg{stroke:currentColor;fill:none;stroke-width:1.75px;stroke-linecap:round;stroke-linejoin:round;width:20px;height:20px}.tab.on{color:var(--green)}.cal-stepper{border-top:2px solid var(--ink);border-bottom:1px solid var(--ink);justify-content:space-between;align-items:center;margin:9px 18px 0;padding:5px 2px;display:flex;position:relative}.cal-stepper:after{content:"";background:var(--ink);height:1px;position:absolute;bottom:2px;left:0;right:0}.step-btn{border:1px solid var(--hairline);background:var(--sheet);cursor:pointer;border-radius:8px;justify-content:center;align-items:center;width:26px;height:26px;display:flex}.step-btn svg{width:13px;height:13px;stroke:var(--ink)}.month-grid{grid-template-columns:repeat(7,1fr);padding:5px 12px 0;display:grid}.mcell{text-align:center;min-height:42px;font-family:var(--font-display);color:var(--ink);cursor:pointer;background:0 0;border:none;border-radius:10px;width:100%;padding:4px 0 9px;position:relative}.mcell .d{font-size:15px;font-weight:500;line-height:1}.mcell .h{color:var(--muted);font-size:11px;font-weight:600;font-family:var(--font-body);margin-top:1px}.mcell.today{outline:1.5px solid var(--red);outline-offset:-1.5px;background:var(--red-tint)}.mcell.today .d{color:var(--red);font-weight:700}.mcell.sel{outline:2px solid var(--green);outline-offset:-2px}.mcell.sel .d{color:var(--green);font-weight:700}.legend{background:var(--sheet);border-top:1px solid var(--hairline-soft);flex-wrap:wrap;align-items:center;gap:3px 12px;padding:6px 18px 5px;display:flex}.legend .li{color:var(--muted);align-items:center;gap:4px;font-size:11px;font-weight:600;display:flex}.lg{border-radius:50%;flex:none;width:7px;height:7px}.lg.full{background:var(--green)}.lg.part{background:var(--gold)}.lg.today{background:var(--red-tint);outline:1.5px solid var(--red)}.lg svg{width:12px;height:12px;display:block}.lg-diamond{background:var(--gold);border-radius:1.5px;width:7px;height:7px;transform:rotate(45deg)}.day-card{background:var(--sheet);border:1px solid var(--hairline);border-radius:var(--radius);margin:9px 18px 0;padding:11px 16px 3px;box-shadow:0 8px 18px -12px #17181a2e}.dc-section{color:var(--green);letter-spacing:.05em;border-top:1px solid var(--hairline-soft);margin-top:6px;padding-top:6px;font-size:11px;font-weight:800}.seg{background:#edeae1;border-radius:11px;margin:10px 18px 0;padding:3px;display:flex}.seg .segbtn{text-align:center;color:var(--muted);cursor:pointer;font-size:12.5px;font-weight:800;font-family:var(--font-body);background:0 0;border:none;border-radius:8px;flex:1;padding:7px 0}.seg .segbtn.on{background:var(--sheet);color:var(--ink);box-shadow:0 2px 6px -2px #17181a38}.linklike{font-family:var(--font-body);font-size:inherit;color:var(--green);cursor:pointer;background:0 0;border:none;padding:0;font-weight:800}.linklike:focus-visible,.segbtn:focus-visible{outline:2px solid var(--green);outline-offset:2px}.searchbar{background:var(--sheet);border:1px solid var(--hairline);border-radius:11px;align-items:center;gap:8px;margin:10px 18px 0;padding:8px 12px;display:flex}.searchbar svg{width:15px;height:15px;stroke:var(--muted);flex:none}.searchbar .ph{color:var(--muted);font-size:12.5px;font-weight:500}.evcard{background:var(--sheet);border:1px solid var(--hairline);border-radius:var(--radius);cursor:pointer;margin:9px 18px 0;padding:11px 14px;box-shadow:0 6px 14px -10px #17181a29}.ec-top{align-items:center;gap:10px;display:flex}.ec-date{text-align:center;background:var(--red-tint);border:1px solid #e4b7b0;border-radius:9px;flex:none;padding:4px 8px}.ec-date .dd{font-family:var(--font-display);color:var(--red);font-size:16px;font-weight:700;line-height:1}.ec-date .mm{color:var(--red);letter-spacing:.04em;font-size:9.5px;font-weight:700}.ec-body{flex:1;min-width:0}.ec-title{font-size:13.5px;font-weight:800;line-height:1.3}.ec-place{color:var(--muted);margin-top:1px;font-size:11.5px;font-weight:500}.ec-meta{align-items:center;gap:7px;margin-top:7px;display:flex}.ec-chip{border-radius:999px;padding:2px 8px;font-size:10.5px;font-weight:800}.ec-chip.g{color:var(--green);background:var(--green-tint);border:1px solid #bfdccf}.ec-chip.go{color:#7a5f1b;background:var(--gold-soft);border:1px solid #e3d2a2}.ec-dist{color:var(--muted);margin-left:auto;font-size:11px;font-weight:700}.place-strip{gap:9px;margin:9px 18px 0;display:flex;overflow-x:auto}.place-card{background:var(--sheet);border:1px solid var(--hairline);border-radius:var(--radius);flex:none;width:150px;padding:11px 12px 10px;box-shadow:0 6px 14px -10px #17181a29}.pc-ico{background:var(--green-tint);border-radius:9px;justify-content:center;align-items:center;width:30px;height:30px;margin-bottom:7px;display:flex}.pc-ico svg{width:15px;height:15px;stroke:var(--green)}.pc-name{font-size:12.5px;font-weight:800;line-height:1.25}.pc-type{color:var(--muted);margin-top:2px;font-size:10.5px;font-weight:700}.pc-dist{color:var(--green);margin-top:5px;font-size:10.5px;font-weight:800}.fab{background:var(--green);color:#f6fbf8;cursor:pointer;z-index:9;border:none;border-radius:50%;width:52px;height:52px;font-size:26px;font-weight:700;position:absolute;bottom:76px;right:16px;box-shadow:0 10px 22px -8px #085a40a6}.share-event{background:var(--sheet);border:1px solid var(--hairline);border-radius:var(--radius);margin:10px 18px 0;overflow:hidden;box-shadow:0 8px 18px -12px #17181a2e}.se-band{background:var(--green);color:#f6fbf8;padding:10px 14px}.se-band .t{font-size:14px;font-weight:800}.se-band .s{color:#d9ebe2;margin-top:1px;font-size:11.5px;font-weight:600}.se-body{padding:10px 14px 12px}.se-line{align-items:center;gap:7px;padding:4px 0;font-size:12px;font-weight:600;display:flex}.se-line svg{width:14px;height:14px;stroke:var(--muted);flex:none}.se-line .dim{color:var(--muted);font-weight:500}.qr-block{background:var(--sheet);border:1px solid var(--hairline);border-radius:var(--radius);flex-direction:column;align-items:center;gap:10px;margin:12px 18px 0;padding:16px;display:flex}.qr-block canvas{border:1px solid var(--hairline);background:#fff;border-radius:10px}.qr-caption{font-size:13px;font-weight:800}.qr-sub{color:var(--muted);font-size:11.5px;font-weight:600}.qr-sub b{color:var(--green)}.share-actions{gap:9px;margin:12px 18px 0;display:flex}.btn{text-align:center;cursor:pointer;font-size:13px;font-weight:800;font-family:var(--font-body);border:none;border-radius:11px;flex:1;padding:11px 0}.btn.primary{background:var(--green);color:#f6fbf8;box-shadow:0 8px 16px -10px #085a4099}.btn.ghost{border:1.5px solid var(--hairline);color:var(--ink);background:var(--sheet)}.save-count{color:var(--muted);text-align:center;margin:10px 18px 0;font-size:12px;font-weight:700}.add-form{background:var(--sheet);border:1px solid var(--hairline);border-radius:var(--radius);flex-direction:column;gap:8px;margin:10px 18px 0;padding:12px 14px;display:flex}.add-form label{color:var(--muted);letter-spacing:.04em;font-size:11px;font-weight:800}.add-form input,.add-form select{border:1px solid var(--hairline);font-family:var(--font-body);color:var(--ink);background:var(--ground);border-radius:9px;padding:8px 10px;font-size:13px;font-weight:600}.book-card{background:var(--sheet);border:1px solid var(--hairline);border-radius:var(--radius);margin:9px 18px 0;padding:12px 14px;box-shadow:0 6px 14px -10px #17181a29}.book-title{font-size:14.5px;font-weight:800}.book-author{color:var(--muted);margin-top:1px;font-size:12px;font-weight:600}.book-entries{margin-top:8px}.book-entry{border-top:1px solid var(--hairline-soft);padding:7px 0}.focus,button:focus-visible,.chip:focus-visible{outline:2px solid var(--green);outline-offset:2px}@media (width>=520px){#app{border-left:1px solid var(--hairline);border-right:1px solid var(--hairline);max-width:520px}}
