*{box-sizing:border-box}:root{--ink:#13233a;--muted:#475569;--bg:#fbfaf7;--card:#fff;--line:#e2ddd2;--brand:#0b5cad;--ok:#14532d;--okbg:#dcfce7;--err:#991b1b;--errbg:#fee2e2;--sos:#b91c1c}body{color:var(--ink);background:var(--bg);margin:0;font:17px/1.55 system-ui,-apple-system,Segoe UI,Roboto,Noto Nastaliq Urdu,sans-serif}body.large{font-size:22px}body.large .btn,body.large .tile{min-height:60px}body.contrast{--ink:#000;--muted:#111;--bg:#fff;--card:#fff;--line:#000;--brand:#00337a}body.contrast .card{border-width:2px}h1{margin:.6em 0 .4em;font-size:1.6rem}h2{margin:0 0 .5em;font-size:1.15rem}a{color:var(--brand)}:focus-visible{outline-offset:2px;outline:3px solid #f59e0b}.skip{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.skip:focus{clip:auto;top:8px;z-index:10;background:#fff;width:auto;height:auto;padding:8px;inset-inline-start:8px}.narrow{max-width:520px;margin:0 auto;padding:16px}.app{max-width:760px;margin:0 auto;padding:0 14px 96px}.top{justify-content:space-between;align-items:center;padding:12px 0;font-size:1.1rem;display:flex}.top a{text-decoration:none}.brand{color:var(--ink);font-weight:800}.card{background:var(--card);border:1px solid var(--line);border-radius:16px;margin:12px 0;padding:16px}.field{flex:1;gap:4px;margin:10px 0;display:grid}.field label{font-weight:600}.field input,.field select,input[type=file]{font:inherit;color:#111;background:#fff;border:1px solid #8a8f98;border-radius:10px;width:100%;min-height:44px;padding:10px 12px}.field small,small{color:var(--muted)}.row{flex-wrap:wrap;align-items:flex-end;gap:8px;display:flex}.btn{font:inherit;background:var(--brand);color:#fff;cursor:pointer;border:0;border-radius:999px;justify-content:center;align-items:center;gap:6px;min-width:44px;min-height:44px;padding:10px 18px;font-weight:700;text-decoration:none;display:inline-flex}.btn.alt{color:var(--brand);border:2px solid var(--brand);background:#fff}.btn.danger{background:var(--err)}.btn:disabled{opacity:.55;cursor:default}.btn.sos{background:var(--sos);width:100%;min-height:72px;font-size:1.3rem}.big-btn{background:#15803d;width:100%;min-height:64px;font-size:1.2rem}.icon{font:inherit;cursor:pointer;background:0 0;border:0;border-radius:10px;min-width:44px;min-height:44px}.link{font:inherit;color:var(--brand);cursor:pointer;background:0 0;border:0;min-height:44px;text-decoration:underline}.actions{flex-wrap:wrap;align-items:center;gap:8px;margin-top:8px;display:flex}.list{gap:6px;margin:0;padding:0;list-style:none;display:grid}.list li{border-bottom:1px solid var(--line);align-items:center;gap:8px;padding:6px 0;display:flex}.list li>span{flex:1}.list li.col{flex-direction:column;align-items:stretch}.list.done span,.struck{color:var(--muted);text-decoration:line-through}.tick{border:2px solid var(--brand);color:#0000;cursor:pointer;background:#fff;border-radius:50%;min-width:44px;min-height:44px;font-size:1.2rem}.tick.on,.tick:hover{background:var(--brand);color:#fff}.check{align-items:center;gap:10px;min-height:44px;margin:8px 0;display:flex}.check input{width:24px;height:24px}.note{color:#713f12;background:#fef9c3;border-radius:10px;padding:8px 12px}.msg{border-radius:10px;padding:10px 12px}.msg.ok{background:var(--okbg);color:var(--ok)}.msg.err{background:var(--errbg);color:var(--err)}.promise{color:var(--ok);background:var(--okbg);border-radius:12px;padding:10px 14px;font-weight:700}.recovery{letter-spacing:.06em;text-align:center;word-break:break-word;background:#f1f5f9;border-radius:12px;padding:14px;font:700 1.4rem/1.4 ui-monospace,Menlo,monospace}.quote{white-space:pre-wrap;word-break:break-word;background:#f1f5f9;border-radius:10px;padding:10px 12px}.big{font-size:1.3rem;font-weight:700}.pill{background:#eef2ff;border-radius:999px;padding:2px 10px;font-size:.9rem;display:inline-block}.pill.ok{background:var(--okbg);color:var(--ok)}.coach{color:var(--muted);font-style:italic}.tiles{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;margin:12px 0;display:grid}.tile{background:var(--card);border:1px solid var(--line);min-height:120px;color:var(--ink);border-radius:18px;flex-direction:column;justify-content:center;align-items:center;gap:6px;font-size:1.05rem;font-weight:700;text-decoration:none;display:flex}.tile span{font-size:2.2rem}.simple{grid-template-columns:1fr 1fr;gap:14px;margin-top:20px;display:grid}.bigtile{text-align:center;background:var(--brand);color:#fff;cursor:pointer;border:0;border-radius:24px;justify-content:center;align-items:center;min-height:42vw;max-height:260px;padding:10px;font:800 1.35rem/1.2 inherit;text-decoration:none;display:flex}.bigtile.ok{background:#15803d}.bigtile.sos{background:var(--sos)}.bottom{border-top:1px solid var(--line);padding:6px 4px calc(6px + env(safe-area-inset-bottom));background:#fff;justify-content:space-around;display:flex;position:fixed;bottom:0;left:0;right:0}.bottom a{min-width:56px;min-height:48px;color:var(--muted);flex-direction:column;align-items:center;font-size:.8rem;text-decoration:none;display:flex}.bottom a span{font-size:1.3rem}.bottom a[aria-current=page]{color:var(--brand);font-weight:700}.toast{color:#fff;z-index:20;background:#111827;border-radius:12px;align-items:center;gap:12px;padding:10px 14px;display:flex;position:fixed;bottom:90px;left:50%;transform:translate(-50%)}.toast button{font:inherit;color:#111827;background:#fff;border:0;border-radius:8px;min-height:40px;padding:4px 12px;font-weight:700}.alerts{z-index:15;background:#fff7ed;border:2px solid #ea580c;border-radius:14px;margin:8px 0;padding:10px 14px;position:sticky;top:0}.alerts p{margin:4px 0;font-weight:700}.flash{animation:.9s fl}@keyframes fl{0%,50%{background:#fde68a}to{background:0 0}}.offline{background:#e0e7ff;border-radius:10px;padding:8px 12px}.chat{gap:6px;padding:0;list-style:none;display:grid}.chat li{background:#f1f5f9;border-radius:12px;padding:8px 10px}.chat li.them{background:#e0f2fe}.chat small{display:block}.links{gap:4px;display:grid}.powered{color:var(--muted);text-align:center;margin:20px 0;font-size:.9rem}.dev{background:#f1f5f9;border-radius:8px;padding:4px 8px}details summary{cursor:pointer;align-items:center;min-height:44px;font-weight:600;display:flex}[dir=rtl] .toast{transform:translate(50%)}@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
