:root {
  --ink: #10253f;
  --ink-2: #344960;
  --muted: #718196;
  --line: #dbe3ea;
  --canvas: #f3f6f8;
  --paper: #ffffff;
  --navy: #0c213b;
  --blue: #176bff;
  --cyan: #25b6c8;
  --green: #20a979;
  --amber: #dc8a14;
  --red: #cf3f4d;
  --shadow: 0 10px 35px rgba(12, 33, 59, .06);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas); }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--canvas); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; }
a { color: inherit; }
button, input, select { font: inherit; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 230px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; background: var(--navy); color: #d7e3ef; padding: 28px 18px 22px; display: flex; flex-direction: column; }
.login-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; letter-spacing: -.02em; }
.brand-mark { width: 39px; height: 39px; border: 1px solid rgba(255,255,255,.28); display: grid; place-items: center; font-weight: 800; font-size: 15px; color: #fff; transform: rotate(-3deg); }
.login-brand > span:last-child { display: flex; flex-direction: column; font-size: 19px; line-height: 1; }
.login-brand small { font-size: 8px; letter-spacing: .18em; margin-top: 6px; opacity: .65; }
.server-brand { display: grid; gap: 9px; padding: 0 10px 32px; color: white; text-decoration: none; }
.server-brand-primary, .server-brand-ip { display: flex; align-items: center; gap: 9px; }
.server-brand-primary { font-size: 16px; letter-spacing: -.02em; }
.server-brand-ip { color: #a9bbcb; font-size: 11px; letter-spacing: .015em; }
.server-brand svg { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.server-brand-ip svg { width: 16px; height: 16px; color: #ff4d62; }
.sidebar nav { display: grid; gap: 6px; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 9px; text-decoration: none; color: #9fb0c3; font-weight: 650; }
.nav-link span { width: 20px; text-align: center; font-size: 18px; }
.nav-link:hover, .nav-link.active { color: #fff; background: rgba(255,255,255,.08); }
.nav-link.active { box-shadow: inset 3px 0 0 var(--cyan); }
.sidebar-foot { margin-top: auto; padding: 18px 8px 0; border-top: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.identity { display: flex; align-items: center; gap: 9px; min-width: 0; }
.identity > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.identity strong { overflow: hidden; text-overflow: ellipsis; }
.identity small { color: #7f93a8; text-transform: uppercase; font-size: 9px; letter-spacing: .1em; }
.avatar { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #32678f; font-weight: 800; }
.text-button { border: 0; background: none; color: #8fa2b7; cursor: pointer; padding: 6px; font-size: 12px; }
.text-button:hover { color: white; }
.main { min-width: 0; }
.topbar { height: 104px; padding: 24px 34px; display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.78); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.topbar h1 { margin: 3px 0 0; font-size: 26px; letter-spacing: -.03em; }
.eyebrow { display: block; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.live { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 12px; font-weight: 700; }
.live > span { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(32,169,121,.12); }
.content { padding: 28px 34px 54px; max-width: 1660px; margin: 0 auto; }
.flash { margin-bottom: 18px; border-radius: 10px; padding: 13px 15px; border: 1px solid; }
.flash-success { color: #0b704f; background: #e8f8f2; border-color: #b9e7d7; }
.flash-error { color: #9b2431; background: #fff0f1; border-color: #f0c3c8; }
.flash-warn { color: #80500b; background: #fff8e7; border-color: #ecd7a4; }
.status-strip { display: flex; align-items: center; gap: 36px; padding: 12px 18px; margin-bottom: 20px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.status-strip > div { display: flex; align-items: center; gap: 10px; min-width: 0; }
.status-strip > div + div { padding-left: 35px; border-left: 1px solid var(--line); }
.status-strip span:last-child { display: flex; flex-direction: column; min-width: 0; }
.status-strip small { color: var(--muted); font-size: 9px; letter-spacing: .12em; font-weight: 750; }
.status-strip strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.status-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; }
.status-dot.ok { background: var(--green); } .status-dot.warn { background: var(--amber); } .status-dot.bad { background: var(--red); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.card h2 { margin: 4px 0 0; font-size: 19px; letter-spacing: -.02em; }
.card h3 { margin: 8px 0 14px; font-size: 19px; }
.card-head, .section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(260px, .8fr); gap: 20px; }
.big-number { font-size: 42px; line-height: 1; letter-spacing: -.06em; }
.storage-bar { display: block; width: 100%; height: 16px; border: 0; border-radius: 999px; background: #dfe8ed; margin: 27px 0 14px; overflow: hidden; }
.storage-bar::-webkit-progress-bar { background: #dfe8ed; border-radius: 999px; }.storage-bar::-webkit-progress-value { background: linear-gradient(90deg, var(--blue), var(--cyan)); border-radius: 999px; }.storage-bar::-moz-progress-bar { background: linear-gradient(90deg, var(--blue), var(--cyan)); border-radius: 999px; }
.storage-legend { display: flex; gap: 28px; color: var(--muted); font-size: 12px; }
.storage-legend span { display: flex; align-items: center; gap: 6px; }
.storage-legend strong { color: var(--ink); }
.storage-legend i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.storage-legend .legend-free { background: #dfe8ed; }
.pressure { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin-top: 24px; padding-top: 17px; border-top: 1px dashed var(--line); }
.pressure-label { font-size: 9px; font-weight: 800; letter-spacing: .14em; color: var(--muted); }
.pressure-track { width: 100%; height: 3px; border: 0; background: #e4e9ed; }
.pressure-track::-webkit-progress-bar { background: #e4e9ed; }.pressure-track::-webkit-progress-value { background: var(--amber); }.pressure-track::-moz-progress-bar { background: var(--amber); }
.pressure strong { font-size: 11px; color: var(--green); }
.reclaim-card { display: flex; flex-direction: column; align-items: flex-start; background: linear-gradient(145deg, #102a47, #0b1d34); color: #fff; border-color: transparent; }
.reclaim-card .eyebrow { color: #7fa3c3; }
.reclaim-number { margin-top: 18px; font-size: 38px; font-weight: 800; letter-spacing: -.04em; }
.reclaim-card p { color: #afbdcb; line-height: 1.55; }
.reclaim-card .button { margin-top: auto; }
.button { border: 0; border-radius: 9px; padding: 11px 15px; display: inline-flex; justify-content: center; gap: 24px; color: #fff; text-decoration: none; font-weight: 750; cursor: pointer; }
.button-primary { background: var(--blue); box-shadow: 0 7px 18px rgba(23,107,255,.22); }
.button-primary:hover { background: #0759db; }
.button-danger { background: var(--red); }
.button-wide { width: 100%; }
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.chart-card canvas { width: 100%; height: 150px; margin-top: 14px; }
.chart-card .card-head > strong { color: var(--blue); font-size: 12px; }
.table-section { margin-top: 25px; }
.table-section.card { margin-top: 0; }
.section-head { margin-bottom: 15px; }
.section-head h2 { margin: 4px 0 0; font-size: 20px; }
.table-count { color: var(--muted); font-size: 12px; }
.table-wrap { width: 100%; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.card > .table-wrap { border-radius: 9px; }
table { width: 100%; border-collapse: collapse; min-width: 1080px; }
th { padding: 11px 13px; color: #77879a; background: #f7f9fa; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; text-align: left; border-bottom: 1px solid var(--line); }
td { padding: 13px; border-bottom: 1px solid #e8edf1; vertical-align: middle; color: var(--ink-2); font-size: 12px; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f9fbfc; }
td.number, th.number { text-align: right; }
td small { display: block; color: var(--muted); margin-top: 4px; }
code { padding: 2px 5px; border-radius: 4px; background: #edf2f5; color: #31506c; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; word-break: break-word; }
.app-name { display: flex; align-items: center; gap: 10px; min-width: 135px; }
.app-name > span:last-child { display: flex; flex-direction: column; }
.app-icon { width: 31px; height: 31px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; color: #1f679e; background: #e5f2f6; font-weight: 850; }
.pill { display: inline-flex; padding: 4px 8px; border-radius: 999px; font-size: 9px; text-transform: uppercase; letter-spacing: .06em; font-weight: 850; }
.pill-ok { color: #087352; background: #e2f6ef; } .pill-warn { color: #94600c; background: #fff2d4; } .pill-bad { color: #9f2935; background: #ffe6e8; } .pill-muted { color: #677585; background: #e8edf0; }
.table-note { color: var(--muted); font-size: 11px; line-height: 1.5; }
.empty-state { min-height: 360px; display: grid; place-items: center; align-content: center; text-align: center; }
.empty-state > span { font-size: 48px; color: var(--blue); }
.empty-state h2 { margin: 12px 0 5px; }.empty-state p { max-width: 450px; color: var(--muted); }
.two-column { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr); gap: 20px; }
.form-card > p, .boundary-card > p { color: var(--muted); line-height: 1.6; }
.cleanup-list { margin: 20px 0; border: 1px solid var(--line); border-radius: 9px; }
.cleanup-list > div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 14px; }
.cleanup-list > div + div { border-top: 1px solid var(--line); }
.cleanup-list span { display: flex; flex-direction: column; }.cleanup-list small { color: var(--muted); margin-top: 4px; }
.stacked-form, .auth-form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; color: var(--ink-2); font-size: 12px; font-weight: 750; }
label small { color: var(--muted); font-weight: 500; }
input, select { width: 100%; border: 1px solid #cbd6df; border-radius: 8px; padding: 11px 12px; color: var(--ink); background: #fff; outline: none; }
input:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23,107,255,.1); }
label.check { display: flex; align-items: center; gap: 8px; } label.check input { width: auto; }
hr { border: 0; border-top: 1px solid var(--line); width: 100%; }
.boundary-card ul { padding-left: 20px; line-height: 2; color: var(--ink-2); }
.backup-hero { display: flex; align-items: center; gap: 22px; border-left: 5px solid var(--green); }
.backup-hero.status-warning { border-left-color: var(--amber); }
.backup-symbol { width: 54px; height: 54px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--green); font-size: 27px; font-weight: 850; }
.status-warning .backup-symbol { background: var(--amber); }
.backup-hero p { margin: 6px 0 0; color: var(--muted); }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 20px 0; }
.metric { padding: 17px; background: #fff; border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 7px; }
.metric small { color: var(--muted); font-size: 9px; letter-spacing: .11em; font-weight: 800; }.metric strong { font-size: 13px; }
.log-card pre { margin: 0; padding: 16px; max-height: 480px; overflow: auto; background: #0a1a2e; color: #b7d1e4; border-radius: 9px; font-size: 11px; line-height: 1.65; white-space: pre-wrap; }
.users-layout { grid-template-columns: minmax(330px, .8fr) minmax(0, 1.2fr); }
.user-list { margin-top: 15px; display: grid; }.user-list > div { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }.user-list > div > span:nth-child(2) { display: flex; flex-direction: column; }.user-list small { color: var(--muted); margin-top: 3px; }
.main-login { grid-column: 1 / -1; }
.main-login .content { max-width: none; padding: 0; }
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(390px, 540px) 1fr; background: #fff; }
.login-panel { padding: clamp(45px, 7vw, 100px); display: flex; flex-direction: column; justify-content: center; }
.login-brand { margin-bottom: 58px; color: var(--ink); }
.login-brand .brand-mark { background: var(--navy); }
.login-panel h1 { font-size: clamp(38px, 4.5vw, 66px); line-height: 1.02; letter-spacing: -.055em; margin: 12px 0 18px; }
.muted { color: var(--muted); line-height: 1.65; }
.login-panel .muted { max-width: 440px; margin-bottom: 24px; }
.auth-form { max-width: 440px; }
.login-note { max-width: 440px; margin-top: 18px; text-align: center; color: #8a98a8; font-size: 10px; letter-spacing: .07em; }
.login-visual { position: relative; overflow: hidden; background: linear-gradient(145deg, #0a1e36, #113b5a); }
.login-visual::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 48px 48px; }
.orbit { position: absolute; border: 1px solid rgba(76,192,209,.2); border-radius: 50%; }.orbit-one { width: 620px; height: 620px; top: 50%; left: 50%; transform: translate(-50%,-50%); }.orbit-two { width: 420px; height: 420px; top: 50%; left: 50%; transform: translate(-50%,-50%); box-shadow: 0 0 100px rgba(29,120,255,.14); }
.server-glyph { position: absolute; width: 250px; padding: 22px; top: 50%; left: 50%; transform: translate(-50%,-50%); border: 1px solid rgba(255,255,255,.22); border-radius: 18px; background: rgba(8,26,46,.6); box-shadow: 0 35px 90px rgba(0,0,0,.35); backdrop-filter: blur(10px); }
.server-glyph i { display: block; height: 45px; margin: 9px 0; border: 1px solid rgba(255,255,255,.18); border-radius: 7px; background: linear-gradient(90deg, rgba(255,255,255,.08), rgba(37,182,200,.13)); }.server-glyph i::before { content: ""; display: block; width: 8px; height: 8px; margin: 18px; border-radius: 50%; background: #34d2a0; box-shadow: 20px 0 0 rgba(255,255,255,.22); }

@media (max-width: 1050px) {
  .shell { grid-template-columns: 82px minmax(0,1fr); }.sidebar { padding-left: 12px; padding-right: 12px; }.server-brand { justify-items: center; padding-left: 0; padding-right: 0; }.server-brand-primary strong, .server-brand-ip { display: none; }.nav-link { font-size: 0; }.nav-link span { font-size: 19px; }.nav-link { justify-content: center; }.identity > span:last-child, .text-button { display: none; }.sidebar-foot { justify-content: center; }.overview-grid { grid-template-columns: 1fr; }.reclaim-card .button { margin-top: 12px; }.status-strip { overflow-x: auto; }
}
@media (max-width: 760px) {
  .shell { display: block; }.sidebar { position: static; width: 100%; height: auto; padding: 10px 14px; flex-direction: row; align-items: center; overflow-x: auto; }.server-brand { padding: 0 12px 0 0; }.sidebar nav { display: flex; }.nav-link { white-space: nowrap; }.sidebar-foot { display: none; }.topbar { height: auto; padding: 18px; }.content { padding: 18px; }.topbar .live { display: none; }.chart-grid, .two-column, .metric-grid { grid-template-columns: 1fr; }.status-strip { align-items: stretch; flex-direction: column; gap: 10px; }.status-strip > div + div { padding: 10px 0 0; border-left: 0; border-top: 1px solid var(--line); }.storage-legend { flex-wrap: wrap; }.login-wrap { grid-template-columns: 1fr; }.login-panel { padding: 35px 24px; }.login-visual { display: none; }
}
