:root{--bg:#f8fafc;--surface:#fff;--surface-alt:#eef2f7;--text:#0f172a;--muted:#475569;--border:#cbd5e1;--accent:#1d4ed8;--accent-text:#fff;--accent-soft:#dbeafe;--gold-bg:#fef3c7;--gold-text:#92400e;--focus:#0284c7}:root[data-theme=dark]{--bg:#000;--surface:#000;--surface-alt:#0b1120;--text:#f8fafc;--muted:#94a3b8;--border:#1e293b;--accent:#38bdf8;--accent-text:#000;--accent-soft:#082032;--gold-bg:#1c1404;--gold-text:#fbbf24;--focus:#38bdf8}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent;margin:0;padding:0}html,body{background:var(--bg);height:100%;color:var(--text);font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}button,a{font:inherit;color:inherit;touch-action:manipulation}:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.alert-shell{background:var(--bg);flex-direction:column;height:100dvh;display:flex;overflow:hidden}.super-bar{background:var(--surface);border-bottom:1px solid var(--border);padding:calc(5px + env(safe-area-inset-top,0px)) 8px 5px;z-index:30;flex:none}.super-bar-inner{justify-content:space-between;align-items:center;gap:8px;width:min(1160px,100%);margin:0 auto;display:flex}.brand-compact{white-space:nowrap;flex-shrink:0;align-items:center;gap:5px;font-size:14.5px;font-weight:900;text-decoration:none;display:inline-flex}.brand-badge{background:var(--accent-soft);border:1px solid var(--accent);border-radius:8px;justify-content:center;align-items:center;width:26px;height:26px;font-size:14px;display:inline-flex}.brand-word strong{color:var(--accent)}@media (max-width:410px){.brand-word{display:none}}.dual-tabs{background:var(--surface-alt);border:1px solid var(--border);border-radius:999px;flex:auto;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;max-width:340px;padding:3px;display:grid}.dual-tab{min-height:34px;color:var(--muted);cursor:pointer;white-space:nowrap;background:0 0;border:1px solid #0000;border-radius:999px;justify-content:center;align-items:center;gap:5px;padding:4px 10px;font-size:13px;font-weight:900;transition:background-color .16s,color .16s,border-color .16s;display:inline-flex}.dual-tab:hover{color:var(--text)}.dual-tab.active{background:var(--accent);color:var(--accent-text);border-color:var(--accent)}.tab-cnt{font-variant-numeric:tabular-nums;background:var(--gold-bg);color:var(--gold-text);border-radius:999px;padding:1px 6px;font-size:10px;font-weight:900}.dual-tab.active .tab-cnt{color:var(--accent-text);background:#0000003d}.super-actions{flex-shrink:0;align-items:center;gap:5px;display:inline-flex}.ico-btn{border:1px solid var(--border);background:var(--surface-alt);width:34px;height:34px;color:var(--text);cursor:pointer;border-radius:10px;justify-content:center;align-items:center;font-size:14px;font-weight:800;text-decoration:none;display:inline-flex}.pwa-install-banner{background:var(--surface-alt);border-bottom:1.5px solid var(--accent);flex:none;justify-content:space-between;align-items:center;gap:8px;width:100%;padding:7px 10px;display:flex}.pwa-copy{align-items:center;gap:8px;min-width:0;display:flex}.pwa-mark{background:var(--accent-soft);border:1px solid var(--accent);border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;width:30px;height:30px;display:inline-flex}.pwa-copy strong{color:var(--text);font-size:12.5px;font-weight:900;display:block}.pwa-copy span{color:var(--muted);font-size:11px;display:block}.pwa-actions{flex-shrink:0;align-items:center;gap:6px;display:inline-flex}.pwa-cta{background:var(--accent);height:32px;color:var(--accent-text);cursor:pointer;border:none;border-radius:999px;padding:0 14px;font-size:12px;font-weight:900}.pwa-close{width:30px;height:30px}.stage-wrap{background:var(--bg);flex:auto;width:100%;min-height:0;position:relative}.app-pane{visibility:hidden;opacity:0;pointer-events:none;z-index:1;background:var(--bg);width:100%;height:100%;position:absolute;inset:0}.app-pane.is-active{visibility:visible;opacity:1;pointer-events:auto;z-index:2}.app-frame{background:var(--bg);border:none;width:100%;height:100%;display:block}.pane-loader{z-index:4;background:var(--bg);color:var(--text);text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:12px;padding:20px;display:flex;position:absolute;inset:0}.pane-loader.is-hidden{display:none}.loader-ring{border:3px solid var(--border);border-top-color:var(--accent);border-radius:50%;width:34px;height:34px;animation:.8s linear infinite alertSpin}.loader-title{color:var(--text);font-size:13.5px;font-weight:800}.loader-fallback{color:var(--accent);border:1px solid var(--border);background:var(--surface-alt);border-radius:999px;padding:6px 12px;font-size:12px;font-weight:800;text-decoration:none}@keyframes alertSpin{to{transform:rotate(360deg)}}.sheet-overlay{z-index:80;background:#000000b8;justify-content:center;align-items:flex-end;display:none;position:fixed;inset:0}.sheet-overlay.open{display:flex}.sheet-card{background:var(--surface);border:1px solid var(--border);width:min(520px,100%);padding:16px 14px calc(18px + env(safe-area-inset-bottom,0px));border-bottom:none;border-radius:18px 18px 0 0;flex-direction:column;gap:12px;display:flex}.sheet-head{justify-content:space-between;align-items:center;gap:10px;display:flex}.sheet-head h2{font-size:16.5px;font-weight:900}.ios-steps{color:var(--muted);flex-direction:column;gap:8px;padding-left:20px;font-size:13.5px;line-height:1.5;display:flex}.toast-box{color:#f8fafc;opacity:0;pointer-events:none;z-index:95;background:#1e293b;border-radius:999px;padding:8px 14px;font-size:12.5px;font-weight:800;transition:opacity .18s,transform .18s;position:fixed;bottom:20px;left:50%;transform:translate(-50%)translateY(14px)}.toast-box.show{opacity:1;transform:translate(-50%)translateY(0)}@media (prefers-reduced-motion:reduce){.loader-ring{animation:none}.dual-tab,.toast-box{transition:none}}.brand-logo,.pwa-logo{object-fit:cover;border-radius:8px;flex-shrink:0}.alerts-pill-btn{background:var(--gold-bg);height:34px;color:var(--gold-text);font-variant-numeric:tabular-nums;cursor:pointer;white-space:nowrap;border:1.5px solid #f59e0b;border-radius:999px;align-items:center;gap:4px;padding:0 9px;font-size:12px;font-weight:900;display:inline-flex}.alerts-sheet{width:min(580px,100%);max-height:88dvh;overflow:hidden}.sheet-head-actions{align-items:center;gap:6px;display:inline-flex}.sheet-sub{color:var(--muted);margin-top:2px;font-size:11.5px}.alerts-filter-row{align-items:center;gap:6px;display:flex}.alerts-chip{border:1px solid var(--border);background:var(--surface-alt);height:30px;color:var(--muted);cursor:pointer;border-radius:999px;padding:0 12px;font-size:12px;font-weight:800}.alerts-chip.active{background:var(--accent);border-color:var(--accent);color:var(--accent-text)}.alerts-list{flex-direction:column;flex:auto;gap:8px;padding-bottom:6px;display:flex;overflow-y:auto}.alert-item{border:1px solid var(--border);background:var(--surface-alt);border-left-width:3.5px;border-radius:12px;flex-direction:column;gap:6px;padding:10px 11px;display:flex}.alert-item.tone-critical{border-left-color:#ef4444}.alert-item.tone-high{border-left-color:#f59e0b}.alert-item.tone-job{border-left-color:#22c55e}.alert-item.tone-news{border-left-color:var(--accent)}.alert-item-head{justify-content:space-between;align-items:center;gap:8px;display:flex}.alert-kind-pill{background:var(--accent-soft);color:var(--text);border-radius:999px;padding:2px 8px;font-size:10.5px;font-weight:900}.alert-kind-pill.tone-critical{color:#fca5a5;background:#3b0a0a}.alert-kind-pill.tone-high{background:var(--gold-bg);color:var(--gold-text)}:root:not([data-theme=dark]) .alert-kind-pill.tone-critical{color:#991b1b;background:#fee2e2}.alert-sub{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;font-size:11px;font-weight:700;overflow:hidden}.alert-title{color:var(--text);font-size:13.8px;font-weight:900;line-height:1.32}.alert-summary{color:var(--muted);-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:12px;line-height:1.45;display:-webkit-box;overflow:hidden}.alert-item-actions{justify-content:space-between;align-items:center;gap:8px;padding-top:4px;display:flex}.alert-open-btn{background:var(--accent);height:30px;color:var(--accent-text);cursor:pointer;border:none;border-radius:8px;padding:0 11px;font-size:11.8px;font-weight:900}.alert-direct-link{color:var(--accent);padding:4px 8px;font-size:11.8px;font-weight:800;text-decoration:none}.alerts-empty{text-align:center;color:var(--muted);padding:20px;font-size:13px}
