/* SkyScope admin page: same plain palette as the rest of the site. */
:root { --bg: #07090a; --surface: #0c1011; --line: #1a2224; --text: #e6ece9; --muted: #93a39c; --accent: #4ed84e; --ok: #4ed84e; --bad: #f87171; color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
button, input, select { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; }
button { cursor: pointer; }
button:hover { border-color: #3a4a46; }
button.small { padding: 3px 9px; font-size: 13px; margin-left: 8px; }
button.warn { border-color: #6b5520; color: var(--accent); }
button.danger { border-color: #6b2a2a; color: var(--bad); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.topbar { display: flex; align-items: center; gap: 16px; padding: 0 20px; height: 56px; border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; text-decoration: none; }
.tag { color: var(--accent); font-size: 13px; font-weight: 600; }
.tabs { display: flex; gap: 4px; margin-left: 16px; }
.tabs button { background: none; border-color: transparent; color: var(--muted); }
.tabs button[aria-current] { color: var(--text); background: var(--surface); border-color: var(--line); }
.back { margin-left: auto; color: var(--muted); text-decoration: none; font-size: 14px; }
main { max-width: 1200px; margin: 0 auto; padding: 24px 20px 60px; }
h2 { font-size: 16px; margin: 28px 0 12px; }
h3 { font-size: 14px; margin: 22px 0 8px; color: var(--muted); }
#notice { max-width: 1200px; margin: 12px auto 0; padding: 10px 14px; border: 1px solid #2d5a3d; border-radius: 6px; background: #13241a; }
#notice.error { border-color: #6b2a2a; background: #2a1414; }

.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.stat { padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.stat span { display: block; color: var(--muted); font-size: 13px; }
.stat strong { display: block; font-size: 26px; font-variant-numeric: tabular-nums; }
.stat small { color: var(--muted); font-size: 12px; }
.bars { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; align-items: end; height: 120px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.bar { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.bar i { display: block; width: 100%; min-height: 2px; background: var(--accent); border-radius: 3px 3px 0 0; }
.bar span { font-size: 11px; color: var(--muted); }

.search { display: flex; gap: 8px; margin-bottom: 14px; }
.search input { flex: 1; max-width: 420px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 500; background: var(--surface); }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
.pill { display: inline-block; margin-left: 6px; padding: 1px 8px; border: 1px solid var(--line); border-radius: 99px; font-size: 12px; color: var(--muted); }
.pill.on { color: var(--ok); border-color: #2d5a3d; }
.pill.off { color: var(--bad); border-color: #6b2a2a; }
.pill.owner { color: var(--accent); border-color: #6b5520; }

.events { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 8px; }
.events li { display: flex; gap: 14px; padding: 9px 14px; border-bottom: 1px solid var(--line); }
.events li:last-child { border-bottom: 0; }
.events .when { flex: none; width: 80px; color: var(--muted); font-size: 13px; }
.ev-login_failed, .ev-login_blocked_disabled, .ev-admin_disabled, .ev-admin_deleted_account { color: #fbb4b4; }
ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li { padding: 6px 0; border-bottom: 1px solid var(--line); }

.panel { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); display: flex; justify-content: flex-end; }
.panel[hidden] { display: none; }
.panel-body { position: relative; width: min(560px, 100%); height: 100%; overflow-y: auto; padding: 24px; background: var(--bg); border-left: 1px solid var(--line); }
.panel-body h2 { margin-top: 0; font-size: 20px; }
.close { position: absolute; top: 16px; right: 16px; padding: 2px 10px; font-size: 20px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
@media (max-width: 700px) { .tabs { margin-left: 0; } .back { display: none; } th:nth-child(2), td:nth-child(2), th:nth-child(3), td:nth-child(3) { display: none; } }
