:root{color-scheme:dark;--bg:#050505;--panel:#111111;--card:#202020;--stroke:#333333;--text:#f2f2f2;--muted:#a8a8a8;--accent:#ededed;--ink:#111111;font-family:system-ui,-apple-system,"Noto Sans Bengali","Segoe UI",sans-serif;background:var(--bg);color:var(--text)}
*{box-sizing:border-box}body{margin:0;min-height:100dvh}button,input,select,textarea{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px}button:disabled{opacity:.35;cursor:default}
.shell{max-width:48rem;margin:auto;min-height:100dvh}header{display:flex;align-items:center;justify-content:space-between;padding:1rem clamp(1rem,5vw,2.5rem);border-bottom:1px solid var(--stroke)}.brand{display:flex;gap:.75rem;align-items:center}.brand strong,.brand div>span{display:block}.brand strong{font-size:1.04rem;letter-spacing:.035em}.brand div>span{font-size:.81rem;color:var(--muted);margin-top:.1rem}.sigil{display:grid;place-items:center;background:#191919;border:1px solid #333333;color:var(--accent);width:2.5rem;height:2.5rem;border-radius:.8rem;font-size:1.35rem}.icon{display:grid;place-items:center;min-width:44px;min-height:44px;border:1px solid var(--stroke);background:var(--panel);color:var(--text);border-radius:.7rem}.icon svg{width:22px;height:22px}.small{font-size:1.4rem}
main{padding:1rem clamp(1rem,5vw,2.5rem) 2rem}.section-top{padding:1.45rem 0 1.05rem}.eyebrow{font-size:.84rem;color:var(--accent);margin:0 0 .65rem;letter-spacing:.04em}.eyebrow span{display:inline-block;width:6px;height:6px;background:var(--accent);border-radius:50%;margin-right:.45rem;vertical-align:middle}h1{font-weight:650;letter-spacing:-.045em;font-size:clamp(2.2rem,10vw,3.7rem);margin:0;overflow-wrap:anywhere}h2{font-size:1.25rem;margin:0;overflow-wrap:anywhere}.section-top>p:last-child{color:var(--muted);line-height:1.65;margin:.55rem 0 0}.bar{display:flex;min-height:3.4rem;align-items:center;justify-content:space-between;gap:.6rem;margin:.3rem 0 .7rem;border-top:1px solid var(--stroke);padding-top:.65rem}.bar span,.local{color:var(--muted);font-size:.86rem}.primary{padding:.65rem .85rem;border:none;min-height:44px;background:var(--accent);color:var(--ink);font-weight:670;border-radius:.65rem;white-space:nowrap}.cards{display:grid;gap:.75rem}.card,.empty{background:var(--card);border:1px solid var(--stroke);border-radius:.85rem;padding:.85rem 1rem}.empty{border-style:dashed;padding:2rem 1rem;text-align:center}.empty p{color:var(--muted);margin:.45rem auto 0;line-height:1.6}.card-head{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.card-head h2{font-size:1.1rem}.handle{min-width:34px;color:var(--muted);cursor:grab;user-select:none}.card.dragging{opacity:.4}.card.target{border-color:var(--accent)}.rows{display:grid;gap:.2rem;margin:.55rem 0 0;padding:0;list-style:none}.rows li{overflow-wrap:anywhere;white-space:pre-wrap;padding:.2rem 0}.rows label{display:flex;gap:.65rem;align-items:center;min-height:44px}.rows input{width:20px;height:20px;flex:none;accent-color:var(--accent);margin:0}.rows .done span{text-decoration:line-through;color:var(--muted)}.card details{position:relative}.card summary{list-style:none;min-width:44px;min-height:44px;display:grid;place-items:center;cursor:pointer;border-radius:.6rem;color:var(--accent)}.card summary::-webkit-details-marker{display:none}.actions{min-width:170px;position:absolute;right:0;top:100%;background:#242424;z-index:2;padding:.28rem;border:1px solid var(--stroke);border-radius:.65rem;box-shadow:0 8px 18px #0008}.actions button,.listButton{min-height:44px;width:100%;text-align:left;padding:.55rem .7rem;background:transparent;color:var(--text);border:0;border-radius:.5rem}.actions button:hover,.listButton:hover,.listButton.active{background:#303030}.local{text-align:center;margin-top:1.3rem}
dialog{background:var(--panel);color:var(--text);border:1px solid var(--stroke)}dialog::backdrop{background:#000a}.drawer{position:fixed;inset:0 0 0 auto;margin:0;width:min(89vw,23rem);max-width:none;height:100dvh;max-height:none;padding:1.15rem;border-radius:1rem 0 0 1rem;overflow:auto;animation:slide .2s ease-out}.drawer-head{display:flex;justify-content:space-between;align-items:center;gap:.5rem;margin-bottom:1rem}.drawer nav{display:grid;gap:.25rem;margin-bottom:1.1rem}.listButton{display:flex;justify-content:space-between;gap:.5rem;align-items:center;overflow-wrap:anywhere}.listButton small{color:var(--muted)}.drawer form{border-top:1px solid var(--stroke);padding-top:1rem}.inline{display:flex;gap:.45rem}.inline input{min-width:0;flex:1}.editor{padding:1.15rem;border-radius:1rem;width:min(92vw,28rem);max-height:95dvh;overflow:auto}.editor form{display:grid;gap:.55rem}.editor .drawer-head{margin-bottom:.3rem}form label{font-size:.9rem;display:block;color:var(--muted);margin-bottom:.25rem}input:not([type=checkbox]),textarea,select{width:100%;background:#0d0d0d;border:1px solid var(--stroke);border-radius:.55rem;padding:.65rem .7rem;color:var(--text);min-height:44px}textarea{resize:vertical}.wide{margin-top:.5rem}.error{color:#e6e6e6;font-size:.88rem;margin:.45rem 0 0}.toast:not(:empty){position:fixed;left:50%;bottom:1rem;transform:translateX(-50%);background:#2b2b2b;padding:.7rem 1rem;border-radius:.7rem;z-index:5;max-width:90vw;text-align:center}.toast:empty{display:none}#edge{position:fixed;top:23%;bottom:23%;right:0;width:18px;touch-action:pan-y;display:none}#edge span{position:absolute;right:0;top:45%;height:36px;width:3px;border-radius:4px;background:#777777}@media(pointer:coarse){#edge{display:block}}@media(min-width:620px){.cards{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.empty{grid-column:1/-1}}@keyframes slide{from{transform:translateX(100%)}to{transform:translateX(0)}}@media(prefers-reduced-motion:reduce){.drawer{animation:none}}

.sync-box{border-top:1px solid var(--stroke);margin-top:1.3rem;color:var(--muted);font-size:.88rem}.sync-actions{display:flex;flex-wrap:wrap;gap:.45rem}.sync-actions button{min-height:44px;padding:.45rem .65rem;color:var(--text);background:#171717;border:1px solid var(--stroke);border-radius:.55rem}#shell[inert]{opacity:.6}