:root { --navy-950:#0a1430; --navy-900:#0f1d42; --navy:#142a59; --navy-600:#24407f; --amber:#f3a712; --sky:#f3f6fc; --line:#dde3ef; }
body { font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; background: var(--sky); color: #172036; font-size: .94rem; }
.cc { display: flex; min-height: 100vh; }
.cc-side { width: 250px; flex: none; background: linear-gradient(180deg, var(--navy-900), var(--navy-950)); color: #b9c5e6; position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 18px 14px; }
.cc-side .brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 18px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 14px; }
.cc-side .brand img { height: 30px; }
.cc-side .brand small { display: block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); font-weight: 800; }
.cc-side .sec { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: #6f7ea8; margin: 16px 10px 6px; font-weight: 700; }
.cc-side a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: #c8d2ee; text-decoration: none; font-weight: 600; font-size: .9rem; }
.cc-side a:hover { background: rgba(255,255,255,.06); color: #fff; }
.cc-side a.on { background: var(--amber); color: var(--navy-950); }
.cc-side a .badge { margin-left: auto; }
.cc-main { flex: 1; min-width: 0; }
.cc-top { background: #fff; border-bottom: 1px solid var(--line); padding: 12px 26px; display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: 0; z-index: 10; }
.cc-top h1 { font-size: 1.2rem; font-weight: 800; margin: 0; color: var(--navy-900); }
.cc-body { padding: 24px 26px 60px; }
.cc-toggle { display: none; }
@media (max-width: 992px) {
  .cc-side { position: fixed; left: -260px; z-index: 40; transition: left .2s; }
  .cc-side.open { left: 0; box-shadow: 0 0 40px rgba(0,0,0,.4); }
  .cc-toggle { display: inline-flex; }
  .cc-body { padding: 18px 14px 50px; } .cc-top { padding: 10px 14px; }
}
.card { border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 4px 16px -12px rgba(15,29,66,.4); }
.card-header { background: #fff; border-bottom: 1px solid var(--line); font-weight: 700; border-radius: 14px 14px 0 0 !important; }
.kpi { padding: 16px 18px; }
.kpi .n { font-size: 1.7rem; font-weight: 800; color: var(--navy-900); line-height: 1.1; }
.kpi .l { color: #5d6680; font-size: .82rem; font-weight: 600; }
.kpi i { font-size: 1.4rem; color: var(--navy-600); }
.btn-primary { background: var(--navy); border-color: var(--navy); }
.btn-primary:hover, .btn-primary:focus { background: var(--navy-600); border-color: var(--navy-600); }
.btn-amber { background: var(--amber); border-color: var(--amber); color: var(--navy-950); font-weight: 700; }
.btn-amber:hover { background: #ffb726; color: var(--navy-950); }
.table { margin: 0; }
.table > :not(caption) > * > * { padding: .6rem .75rem; vertical-align: middle; }
.table thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: #5d6680; background: #f8f9fd; font-weight: 700; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.dot.online { background: #17936b; box-shadow: 0 0 0 3px rgba(23,147,107,.18); }
.dot.offline { background: #d64545; box-shadow: 0 0 0 3px rgba(214,69,69,.18); }
.dot.never { background: #a0a8bd; }
.mod-chip { display: inline-block; font-size: .72rem; padding: 2px 8px; border-radius: 999px; background: #e7edf8; color: var(--navy); margin: 1px; font-weight: 600; }
.mod-chip.off { background: #f3f3f3; color: #9aa; text-decoration: line-through; }
.keybox { font-family: ui-monospace, Menlo, Consolas, monospace; background: #0f1d42; color: #ffd27a; border-radius: 10px; padding: 10px 12px; word-break: break-all; font-size: .85rem; }
.form-label { font-weight: 700; font-size: .85rem; }
.auth-page { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(900px 500px at 80% -10%, #2a4a98 0%, transparent 60%), linear-gradient(160deg, var(--navy-900), var(--navy-950)); padding: 20px; }
.auth-box { width: 100%; max-width: 420px; background: #fff; border-radius: 18px; padding: 32px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); }
.auth-box .logo { height: 38px; margin-bottom: 6px; }
.auth-box .sub { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: #d98e00; margin-bottom: 22px; }
.code-input { font-size: 1.6rem; letter-spacing: .5em; text-align: center; font-weight: 700; }
.bar-mini { display: flex; align-items: flex-end; gap: 4px; height: 70px; }
.bar-mini span { flex: 1; background: linear-gradient(180deg, #5a73b3, var(--navy)); border-radius: 4px 4px 1px 1px; min-height: 2px; }
