:root { --bg: #f6f4ef; --surface: #fff; --text: #1d2327; --soft: #5b656b; --line: #d9d5cb; --accent: #0b6b4f; --accent-t: #fff; --warn: #b3261e; --ok-bg: #dff2e8; --off-bg: #ece9e1; }
@media (prefers-color-scheme: dark) { :root { --bg: #14181a; --surface: #1d2326; --text: #eceae4; --soft: #a2aab0; --line: #384045; --accent: #54c79d; --accent-t: #0b1b15; --warn: #ff8a80; --ok-bg: #1d3a2e; --off-bg: #2a3033; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
h1, h2, h3 { line-height: 1.15; margin: 0; }
button, input, select { font: inherit; color: inherit; }
#offline { background: var(--warn); color: #fff; padding: 8px 16px; text-align: center; }
#toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 30px); opacity: 0; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 8px; transition: .2s; pointer-events: none; max-width: 90vw; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.login { max-width: 380px; margin: 12vh auto; padding: 0 16px; }
.login h1 { font-size: 1.6rem; margin-bottom: 4px; } .login p { color: var(--soft); margin: 0 0 20px; }
.field { margin-bottom: 14px; } label { display: block; font-size: .85rem; font-weight: 600; color: var(--soft); margin-bottom: 4px; }
input, select { width: 100%; min-height: 44px; padding: 0 10px; border: 2px solid var(--line); border-radius: 8px; background: var(--surface); }
input:focus-visible, select:focus-visible, .btn:focus-visible, .tabs button:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.err { color: var(--warn); min-height: 1.4em; margin: 0 0 10px; }
.btn { min-height: 44px; padding: 0 16px; border: 2px solid var(--text); border-radius: 8px; background: var(--surface); font-weight: 700; cursor: pointer; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-t); }
.btn.small { min-height: 36px; padding: 0 12px; font-size: .9rem; } .btn:disabled { opacity: .5; cursor: default; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.top h1 { font-size: 1.1rem; }
.tabs { display: flex; gap: 4px; padding: 0 12px; overflow-x: auto; border-bottom: 1px solid var(--line); background: var(--surface); }
.tabs button { padding: 12px 14px; border: 0; background: none; font-weight: 600; color: var(--soft); border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected=true] { color: var(--text); border-bottom-color: var(--accent); }
.wrap { max-width: 980px; margin: 0 auto; padding: 20px 16px 80px; }
.wrap h2 { font-size: 1.5rem; margin-bottom: 4px; } .lead { color: var(--soft); margin: 0 0 18px; max-width: 70ch; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-bottom: 18px; }
.box h3 { font-size: 1.05rem; margin-bottom: 10px; }
.g { display: grid; gap: 10px 12px; grid-template-columns: 1fr; } @media (min-width: 720px) { .g { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); } }
.rows { list-style: none; margin: 0; padding: 0; } .rows li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.rows li.off { opacity: .6; } .rows .who { flex: 1 1 200px; } .rows .who b { display: block; } .rows .who span { color: var(--soft); font-size: .9rem; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 99px; background: var(--off-bg); font-size: .82rem; font-weight: 700; white-space: nowrap; } .badge.on { background: var(--ok-bg); } .badge.bad { background: var(--warn); color: #fff; }
.creds { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; background: var(--bg); padding: 12px; border-radius: 8px; margin: 12px 0; font-variant-numeric: tabular-nums; word-break: break-all; } .creds span { color: var(--soft); }
.bands { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: end; max-width: 520px; margin-bottom: 8px; }
dialog { border: 0; border-radius: 12px; padding: 20px; max-width: min(460px, 92vw); background: var(--surface); color: var(--text); } dialog::backdrop { background: rgba(0,0,0,.5); } dialog h2 { font-size: 1.2rem; margin-bottom: 8px; } dialog .row { display: flex; gap: 8px; margin-top: 14px; }
.msg { color: var(--soft); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
