:root { --ink: #eef2f8; --muted: #9aa8bd; --line: rgba(255,255,255,.1); --glass: rgba(255,255,255,.06); --blue: #3d8bff; --good: #34d399; --warn: #fbbf24; --bad: #f87171; color-scheme: dark; }
* { box-sizing: border-box; margin: 0; }
body { min-height: 100vh; color: var(--ink); font: 400 15px/1.45 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif; letter-spacing: -.01em; background: radial-gradient(70% 60% at 10% -10%, #123a8c 0, rgba(18,58,140,0) 60%), radial-gradient(60% 50% at 100% 0, #4a1f7a 0, rgba(74,31,122,0) 55%), #070b14; background-attachment: fixed; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.glass { background: var(--glass); border: 1px solid var(--line); -webkit-backdrop-filter: blur(28px) saturate(170%); backdrop-filter: blur(28px) saturate(170%); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 18px 50px rgba(0,0,0,.3); }
.brand { font-size: 24px; font-weight: 800; letter-spacing: -.04em; } .dot { color: var(--blue); }
.muted { color: var(--muted); } .error { min-height: 1.4em; color: var(--bad); }
.gate { display: grid; place-items: center; min-height: 100vh; padding: 20px; }
.gate-card { display: grid; gap: 14px; width: min(420px, 100%); padding: 36px; border-radius: 28px; } .gate-card h1 { font-size: 26px; letter-spacing: -.03em; }
.shell { display: grid; grid-template-columns: 240px 1fr; gap: 16px; min-height: 100vh; padding: 16px; }
.side { position: sticky; top: 16px; display: flex; flex-direction: column; height: calc(100vh - 32px); padding: 20px 14px; border-radius: 26px; }
.side .brand { padding: 0 8px; } .sub { padding: 0 8px 16px; font-size: 12px; color: var(--muted); }
nav { display: grid; gap: 2px; } nav button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 42px; padding: 0 12px; border: 0; border-radius: 14px; background: none; text-align: left; cursor: pointer; color: var(--muted); font-weight: 500; }
nav button:hover { background: var(--glass); } nav button[aria-current="page"] { background: rgba(61,139,255,.18); color: #fff; }
.badge { min-width: 22px; padding: 1px 7px; border-radius: 99px; background: var(--bad); color: #210; font-size: 12px; font-weight: 700; text-align: center; }
.me { display: grid; gap: 4px; margin-top: auto; padding: 12px 8px 0; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); word-break: break-all; }
.link { padding: 0; border: 0; background: none; color: var(--blue); cursor: pointer; text-align: left; }
main { min-width: 0; padding: 8px 8px 40px; }
.top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; } .top h1 { font-size: 30px; font-weight: 800; letter-spacing: -.035em; }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); } .live i { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 10px var(--good); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { padding: 16px 18px; border-radius: 20px; } .stat b { display: block; font-size: 30px; font-weight: 700; letter-spacing: -.03em; } .stat span { font-size: 13px; color: var(--muted); } .stat.alert b { color: var(--bad); } .stat.warn b { color: var(--warn); }
.panel { margin-bottom: 16px; padding: 18px; border-radius: 22px; overflow-x: auto; } .panel h2 { margin-bottom: 10px; font-size: 16px; font-weight: 700; }
table { width: 100%; border-collapse: collapse; font-size: 14px; } th { padding: 8px 10px; text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; } td { padding: 10px; border-top: 1px solid var(--line); vertical-align: top; } td.nowrap { white-space: nowrap; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: rgba(255,255,255,.1); } .pill.good { background: rgba(52,211,153,.16); color: var(--good); } .pill.bad { background: rgba(248,113,113,.16); color: var(--bad); } .pill.warn { background: rgba(251,191,36,.16); color: var(--warn); }
.btn { min-height: 38px; padding: 0 16px; border: 0; border-radius: 99px; background: var(--blue); color: #fff; font-weight: 600; cursor: pointer; } .btn:hover { filter: brightness(1.1); } .btn.quiet { background: rgba(255,255,255,.1); } .btn.danger { background: rgba(248,113,113,.2); color: var(--bad); } .btn.sm { min-height: 30px; padding: 0 12px; font-size: 13px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.form { display: grid; gap: 10px; max-width: 520px; } label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); } input, select, textarea { width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0,0,0,.25); }
.check { display: flex; align-items: center; gap: 8px; color: var(--ink); } .check input { width: auto; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); } .switch:first-of-type { border-top: 0; } .switch small { display: block; color: var(--muted); }
.note { margin-bottom: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(251,191,36,.1); color: var(--warn); font-size: 14px; }
.toast { position: fixed; right: 20px; bottom: 20px; padding: 10px 16px; border-radius: 14px; background: #fff; color: #001A6E; font-weight: 600; }
code { font: 12px ui-monospace, Menlo, monospace; color: var(--muted); word-break: break-all; }
@media (max-width: 820px) { .shell { grid-template-columns: 1fr; } .side { position: static; height: auto; } nav { grid-template-columns: repeat(2, 1fr); } }
.skel { display: grid; gap: 14px; } .skcard { display: grid; gap: 12px; padding: 20px; border-radius: 20px; }
.sk { display: block; width: 84%; height: 12px; border-radius: 7px; background: linear-gradient(100deg, rgba(255,255,255,.07) 30%, rgba(255,255,255,.18) 50%, rgba(255,255,255,.07) 70%); background-size: 220% 100%; animation: sk 1.4s linear infinite; }
.sk:first-child { width: 32%; height: 16px; } .sk:last-child { width: 58%; }
@keyframes sk { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }
