:root{--bg:#0f172a;--panel:#1e293b;--line:#334155;--text:#e2e8f0;--muted:#94a3b8;--accent:#38bdf8;--bad:#f87171;--ok:#4ade80}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--text);font:16px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
#app{min-height:100dvh;display:flex;flex-direction:column}
h1{margin:0 0 .25rem;font-size:1.75rem}h2{margin:0 0 .75rem;font-size:1.25rem}
.sub{color:var(--muted);margin:.25rem 0 1rem}
.center{flex:1;display:flex;align-items:center;justify-content:center;padding:1rem}
.card{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:1rem;margin-bottom:1rem}
.narrow{width:100%;max-width:380px}
form{display:flex;flex-direction:column;gap:.75rem}
input{width:100%;padding:.85rem 1rem;font-size:1rem;color:var(--text);background:var(--bg);border:1px solid var(--line);border-radius:10px}
input:focus{outline:2px solid var(--accent);outline-offset:1px}
button{min-height:44px;padding:.75rem 1rem;font-size:1rem;font-weight:600;color:#06202e;background:var(--accent);border:0;border-radius:10px;cursor:pointer}
.btn{display:flex;align-items:center;justify-content:center;min-height:44px;padding:.75rem 1rem;font-weight:600;border-radius:10px;text-decoration:none}
.btn.google{background:#fff;color:#1f2937}
.or{text-align:center;color:var(--muted);margin:1rem 0 .75rem;font-size:.9rem}
button:disabled{opacity:.5;cursor:default}
button.secondary{background:transparent;color:var(--text);border:1px solid var(--line);width:100%}
button.link{background:none;color:var(--accent);font-weight:400;min-height:44px;text-decoration:underline}
.msg{min-height:1.4em;margin:.5rem 0 0;color:var(--muted)}.msg.bad{color:var(--bad)}
.row{display:flex;justify-content:space-between;padding:.5rem 0;border-bottom:1px solid var(--line)}.row:last-child{border:0}
.screen{flex:1;padding:1rem;padding-bottom:calc(76px + env(safe-area-inset-bottom));max-width:720px;width:100%;margin:0 auto}
.bar{display:flex;align-items:center;justify-content:space-between;margin-bottom:.75rem}.bar h2{margin:0}
.bell{position:relative;background:transparent;color:var(--text);border:1px solid var(--line)}
.badge{margin-left:.5rem;background:var(--bad);color:#2a0a0a;border-radius:999px;padding:0 .45rem;font-size:.75rem}
.addbox{position:relative;margin-bottom:1rem}
.hits{list-style:none;margin:.25rem 0 0;padding:0}
.hit{width:100%;text-align:left;background:var(--panel);color:var(--text);border:1px solid var(--line);font-weight:400;margin-top:.25rem}
.hit:disabled{opacity:.6}
.wlist,.alerts{list-style:none;margin:0;padding:0}
.wrow{display:flex;align-items:center;gap:.5rem;background:var(--panel);border:1px solid var(--line);border-radius:14px;margin-bottom:.6rem}
.wmain{flex:1;padding:.8rem 1rem;color:var(--text);text-decoration:none;min-width:0}
.wtop{display:flex;justify-content:space-between;align-items:center;gap:.5rem}
.wsub{color:var(--muted);font-size:.85rem;margin-top:.25rem}
.icon{background:transparent;color:var(--muted);min-width:44px;font-size:1.4rem;padding:0}
.pill{display:inline-block;padding:.1rem .6rem;border-radius:999px;font-size:.75rem;font-weight:700;background:var(--line);color:var(--text)}
.pill.good{background:#14532d;color:#bbf7d0}.pill.mid{background:#713f12;color:#fde68a}.pill.bad{background:#7f1d1d;color:#fecaca}
.lock{border-color:var(--accent)}
h3{margin:1.25rem 0 .1rem;font-size:1.05rem}
.block{margin-bottom:1rem}
.warn{color:#fbbf24}
.watch{background:transparent;color:var(--accent);border:1px solid var(--line);margin-right:.6rem;min-width:76px;padding:.5rem}
.watch:disabled{color:var(--ok);opacity:.8}
.chips{display:flex;gap:.5rem;overflow-x:auto;padding:.25rem 0 .75rem}
.chip{flex:0 0 auto;min-height:36px;padding:.35rem .8rem;font-size:.85rem;font-weight:500;background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:999px}
.chip.on{background:var(--accent);color:#06202e;border-color:var(--accent)}
.sortbar{display:flex;align-items:center;gap:.5rem;margin:.25rem 0 .75rem}
select{min-height:44px;padding:.5rem;font-size:1rem;color:var(--text);background:var(--panel);border:1px solid var(--line);border-radius:10px}
button.small{width:auto;min-height:44px;padding:.5rem .8rem}
input[type=search]{margin-bottom:.5rem}
.mix{display:flex;height:14px;border-radius:7px;overflow:hidden;gap:2px;margin-bottom:.75rem}
.seg{background:var(--line)}.seg.good{background:#22c55e}.seg.mid{background:#eab308}.seg.bad{background:#ef4444}
.hist{display:flex;align-items:flex-end;gap:3px;height:70px}
.hist .col{flex:1;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;font-size:.6rem;color:var(--muted)}
.hist .bar2{width:100%;background:var(--accent);border-radius:3px 3px 0 0;min-height:2px}
form.card input{margin-bottom:.6rem}
.back{display:inline-block;min-height:44px;line-height:44px;color:var(--accent);text-decoration:none}
.tight{margin:0}.flush{margin-top:0}
.crow{display:flex;align-items:center;gap:.6rem;margin:.5rem 0}
.clabel{width:7.5rem;font-size:.85rem;color:var(--muted)}
.ctrack{flex:1;height:10px;background:var(--bg);border-radius:5px;overflow:hidden}
.cbar{height:100%;border-radius:5px}.cbar.pos{background:#22c55e}.cbar.neg{background:#ef4444}
.cval{width:2.5rem;text-align:right;font-variant-numeric:tabular-nums}
.hlist{list-style:none;margin:0;padding:0}
.hlist li{display:flex;justify-content:space-between;align-items:center;gap:.5rem;padding:.4rem 0;border-bottom:1px solid var(--line)}
.card .secondary,.screen>.secondary,.screen>button{margin-bottom:.75rem}
.screen>button,.card>button{width:100%}
.danger{border-color:#7f1d1d}
.danger-btn{background:#ef4444;color:#2a0a0a;width:100%}
h3.flush+*{margin-top:.25rem}
.alerts li{padding:.5rem 0;border-bottom:1px solid var(--line)}.alerts li.unread{font-weight:600}
.tabs{position:fixed;left:0;right:0;bottom:0;display:flex;background:var(--panel);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom)}
.tabs a{flex:1;min-height:56px;display:flex;align-items:center;justify-content:center;color:var(--muted);text-decoration:none;font-size:.8rem}
.tabs a.on{color:var(--accent);font-weight:700}
.tabs a:focus-visible{outline:2px solid var(--accent);outline-offset:-4px}
