:root {
    --void: #0c0511;
    --void-2: #100714;
    --ink: #170c1f;
    --ink-2: #1e1024;
    --ink-3: #2b1733;
    --line: rgba(255, 43, 214, 0.16);
    --line-2: rgba(255, 255, 255, 0.07);
    --magenta: #ff2bd6;
    --amber: #ff8a55;
    --pink: #ff8df2;
    --cyan: #4de1ff;
    --green: #45f5b0;
    --red: #ff4d6d;
    --yellow: #ffcf5c;
    --paper: #fbf1f8;
    --paper-dim: #b79dbb;
    --paper-dimmer: #7c6684;
    --brand-primary: #ff2bd6;
    --brand-accent: #ff8a55;
    --font-hero: 'Michroma', 'Rajdhani', sans-serif;
    --font-display: 'Rajdhani', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
    --font-body: 'Titillium Web', system-ui, sans-serif;
    --sidebar-w: 240px;
    --topbar-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { min-height: 100%; background: var(--void); }

body {
    font-family: var(--font-body);
    color: var(--paper);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

::selection { background: var(--brand-primary); color: var(--void); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--void-2); }
::-webkit-scrollbar-thumb { background: var(--ink-3); border: 2px solid var(--void-2); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--magenta-dim, #7a1663); }

a { color: var(--brand-accent); text-decoration: none; }
button, input, select, textarea { font-family: inherit; }

.mono { font-family: var(--font-mono); }
.muted { color: var(--paper-dim); }
.dimmer { color: var(--paper-dimmer); }
.nowrap { white-space: nowrap; }

/* ===== animated background ===== */
.bg {
    position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
    background: radial-gradient(ellipse 70% 50% at 15% -5%, rgba(255,43,214,0.10), transparent 60%),
                radial-gradient(ellipse 60% 50% at 100% 110%, rgba(255,138,85,0.07), transparent 60%);
}
.bg-grid {
    position: absolute; inset: -2px;
    background-image:
        linear-gradient(rgba(255,43,214,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,43,214,0.05) 1px, transparent 1px);
    background-size: 46px 46px;
    animation: grid-drift 16s linear infinite;
    -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000 40%, transparent 100%);
    mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000 40%, transparent 100%);
}
@keyframes grid-drift { 0% { background-position: 0 0, 0 0; } 100% { background-position: 92px 46px, 92px 46px; } }

/* ===== shell ===== */
.shell { position: relative; z-index: 1; display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-w); flex-shrink: 0; position: fixed; top: 0; bottom: 0; left: 0; z-index: 40;
    display: flex; flex-direction: column;
    background: linear-gradient(180deg, rgba(23,12,31,0.92), rgba(12,5,17,0.92));
    border-right: 1px solid var(--line);
    backdrop-filter: blur(8px);
}
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.sidebar-brand .logo {
    width: 38px; height: 38px; flex-shrink: 0; object-fit: contain;
    -webkit-clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
    filter: drop-shadow(0 0 6px rgba(255,43,214,0.4));
}
.sidebar-brand .bname { font-family: var(--font-hero); font-size: 15px; text-transform: uppercase; letter-spacing: .04em; color: var(--paper); line-height: 1.2; }
.sidebar-brand .btag { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--paper-dim); }

.nav { flex: 1; overflow-y: auto; padding: 14px 12px; }
.nav-section { font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--paper-dimmer); margin: 18px 10px 8px; }
.nav-item {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 3px;
    color: var(--paper-dim); font-size: 14px; font-weight: 600; letter-spacing: .01em;
    -webkit-clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    border: 1px solid transparent; transition: all .2s ease; position: relative;
}
.nav-item i { width: 18px; text-align: center; font-size: 15px; }
.nav-item:hover { color: var(--paper); background: rgba(255,43,214,0.07); border-color: var(--line); }
.nav-item.active { color: #fff; background: rgba(255,43,214,0.14); border-color: rgba(255,43,214,0.5); box-shadow: inset 0 0 18px rgba(255,43,214,0.12); }
.nav-item.active i { color: var(--magenta); }

.sidebar-user { border-top: 1px solid var(--line); padding: 12px 14px; display: flex; align-items: center; gap: 11px; }
.user-avatar {
    width: 34px; height: 34px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    font-family: var(--font-hero); font-size: 15px; color: var(--void); background: linear-gradient(135deg, var(--magenta), var(--amber));
    -webkit-clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
    clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
}
.user-meta { flex: 1; min-width: 0; }
.user-name { font-size: 13px; font-weight: 600; color: var(--paper); text-transform: capitalize; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-role { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--paper-dim); }
.user-logout { color: var(--paper-dim); font-size: 16px; padding: 6px; transition: color .2s; }
.user-logout:hover { color: var(--red); }

/* ===== main ===== */
.main { flex: 1; margin-left: var(--sidebar-w); min-width: 0; display: flex; flex-direction: column; }
.topbar {
    height: var(--topbar-h); position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px;
    padding: 0 26px; background: rgba(12,5,17,0.82); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px);
}
.search { flex: 1; max-width: 620px; position: relative; }
.search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--paper-dimmer); font-size: 13px; }
.search input {
    width: 100%; padding: 9px 14px 9px 38px; background: var(--void-2); border: 1px solid var(--line);
    color: var(--paper); font-size: 13px; outline: none; transition: border-color .2s, box-shadow .2s;
    -webkit-clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.search input:focus { border-color: rgba(255,43,214,0.5); box-shadow: 0 0 0 3px rgba(255,43,214,0.12); }
.search kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-family: var(--font-mono); font-size: 10px; color: var(--paper-dimmer); border: 1px solid var(--line-2); padding: 2px 6px; }
.search-results {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--ink); border: 1px solid var(--line);
    max-height: 60vh; overflow-y: auto; z-index: 50; display: none;
    box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 0 1px rgba(255,43,214,0.1);
}
.search-results.show { display: block; }
.search-group-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--paper-dimmer); padding: 10px 14px 4px; }
.search-hit { display: flex; align-items: center; gap: 10px; padding: 9px 14px; cursor: pointer; border-left: 2px solid transparent; }
.search-hit:hover { background: var(--ink-2); border-left-color: var(--magenta); }
.search-hit .h-ip { font-family: var(--font-mono); color: var(--paper); font-size: 13px; }
.search-hit .h-sub { color: var(--paper-dim); font-size: 12px; margin-left: auto; }

.topbar-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
    position: relative; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    background: var(--void-2); border: 1px solid var(--line); color: var(--paper-dim); cursor: pointer; transition: all .2s;
    -webkit-clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.icon-btn:hover { color: var(--paper); border-color: rgba(255,43,214,0.5); }
.icon-btn .dot { position: absolute; top: 7px; right: 8px; min-width: 15px; height: 15px; padding: 0 3px; font-family: var(--font-mono); font-size: 9px; display: flex; align-items: center; justify-content: center; background: var(--red); color: #fff; border-radius: 8px; }

.content { padding: 28px 26px 60px; max-width: 1500px; width: 100%; }

/* ===== page header ===== */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.page-title { font-family: var(--font-hero); font-size: 28px; text-transform: uppercase; letter-spacing: .02em; color: var(--paper); line-height: 1.1; }
.page-sub { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: var(--paper-dim); text-transform: uppercase; margin-top: 6px; }
.page-head-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ===== panel (cut-corner) ===== */
.panel {
    position: relative; background: linear-gradient(180deg, rgba(30,16,36,0.55), rgba(12,7,18,0.5));
    border: 1px solid var(--line); backdrop-filter: blur(4px); margin-bottom: 20px;
    -webkit-clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.panel-title { font-family: var(--font-display); font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--paper); display: flex; align-items: center; gap: 9px; }
.panel-title i { color: var(--magenta); }
.panel-body { padding: 20px; }
.panel-flush .panel-body { padding: 0; }

/* corner accents on emphasized panels */
.panel.glow { border-color: rgba(255,43,214,0.3); box-shadow: 0 0 30px rgba(255,43,214,0.06); }

/* ===== stat cards ===== */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat {
    position: relative; padding: 18px 20px; background: linear-gradient(160deg, rgba(30,16,36,0.7), rgba(12,7,18,0.6));
    border: 1px solid var(--line); overflow: hidden;
    -webkit-clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    transition: border-color .25s, transform .25s;
}
.stat:hover { border-color: rgba(255,43,214,0.45); transform: translateY(-2px); }
.stat::after { content: ""; position: absolute; top: 0; right: 0; width: 70px; height: 70px; background: radial-gradient(circle at top right, rgba(255,43,214,0.14), transparent 70%); pointer-events: none; }
.stat-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--paper-dim); display: flex; align-items: center; gap: 8px; }
.stat-label i { color: var(--brand-primary); }
.stat-value { font-family: var(--font-hero); font-size: 32px; color: var(--paper); margin-top: 10px; line-height: 1; }
.stat-value.sm { font-size: 24px; }
.stat-foot { font-family: var(--font-mono); font-size: 11px; color: var(--paper-dimmer); margin-top: 8px; }
.stat.accent-green { border-color: rgba(69,245,176,0.3); }
.stat.accent-green .stat-label i, .stat.accent-green .stat-value { color: var(--green); }
.stat.accent-amber .stat-label i, .stat.accent-amber .stat-value { color: var(--amber); }
.stat.accent-red .stat-label i, .stat.accent-red .stat-value { color: var(--red); }
.stat.accent-cyan .stat-label i, .stat.accent-cyan .stat-value { color: var(--cyan); }

/* ===== buttons ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px;
    font-family: var(--font-display); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .05em;
    background: var(--ink-2); color: var(--paper); border: 1px solid var(--line); cursor: pointer; transition: all .2s; white-space: nowrap;
    -webkit-clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
    clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}
.btn:hover { border-color: rgba(255,43,214,0.5); background: var(--ink-3); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn i { font-size: 12px; }
.btn-primary { background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent)); color: #fff; border-color: transparent; box-shadow: 0 0 18px rgba(255,43,214,0.28); }
.btn-primary:hover { filter: brightness(1.12); border-color: transparent; }
.btn-ghost { background: transparent; }
.btn-danger { border-color: rgba(255,77,109,0.5); color: var(--red); background: rgba(255,77,109,0.08); }
.btn-danger:hover { background: rgba(255,77,109,0.18); border-color: var(--red); }
.btn-sm { padding: 6px 11px; font-size: 12px; }
.btn-icon { padding: 7px 9px; }

/* ===== tables ===== */
.table-wrap { overflow-x: auto; }
table.grid { width: 100%; border-collapse: collapse; font-size: 13px; }
table.grid thead th {
    font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--paper-dim);
    text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(255,43,214,0.03); white-space: nowrap;
}
table.grid tbody td { padding: 12px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.grid tbody tr { transition: background .15s; }
table.grid tbody tr:hover { background: rgba(255,43,214,0.05); }
table.grid tbody tr:last-child td { border-bottom: none; }
table.grid .ip-cell { font-family: var(--font-mono); color: var(--paper); }
table.grid .clickable { cursor: pointer; }
.cell-actions { display: flex; gap: 6px; justify-content: flex-end; }

/* ===== badges / pills ===== */
.badge {
    display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; font-family: var(--font-mono);
    font-size: 11px; text-transform: uppercase; letter-spacing: .05em; border: 1px solid transparent; white-space: nowrap;
    -webkit-clip-path: polygon(5px 0, 100% 0, 100% 100%, 0 100%, 0 5px);
    clip-path: polygon(5px 0, 100% 0, 100% 100%, 0 100%, 0 5px);
}
.badge-green { background: rgba(69,245,176,0.12); color: var(--green); border-color: rgba(69,245,176,0.4); }
.badge-red { background: rgba(255,77,109,0.12); color: var(--red); border-color: rgba(255,77,109,0.4); }
.badge-amber { background: rgba(255,138,85,0.12); color: var(--amber); border-color: rgba(255,138,85,0.4); }
.badge-magenta { background: rgba(255,43,214,0.12); color: var(--pink); border-color: rgba(255,43,214,0.4); }
.badge-cyan { background: rgba(77,225,255,0.12); color: var(--cyan); border-color: rgba(77,225,255,0.4); }
.badge-gray { background: rgba(255,255,255,0.05); color: var(--paper-dim); border-color: var(--line-2); }
.badge-blue { background: rgba(77,225,255,0.1); color: var(--cyan); border-color: rgba(77,225,255,0.35); }

.dot-status { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dot-status.up { background: var(--green); box-shadow: 0 0 8px var(--green); }
.dot-status.down { background: var(--paper-dimmer); }

/* ===== forms ===== */
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--paper-dim); margin-bottom: 7px; }
.field label .req { color: var(--magenta); }
.field small { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--paper-dimmer); margin-top: 6px; }
.input, .select, textarea.input {
    width: 100%; padding: 10px 13px; background: var(--void-2); border: 1px solid var(--line); color: var(--paper);
    font-size: 13px; outline: none; transition: border-color .2s, box-shadow .2s;
    -webkit-clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
    clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}
.input:focus, .select:focus, textarea.input:focus { border-color: rgba(255,43,214,0.5); box-shadow: 0 0 0 3px rgba(255,43,214,0.12); }
select.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23b79dbb' d='M6 8L2 4h8z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
textarea.input { resize: vertical; min-height: 84px; font-family: var(--font-mono); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-actions { display: flex; gap: 10px; margin-top: 20px; }
.radio-row { display: flex; gap: 18px; }
.radio-opt { display: flex; align-items: center; gap: 7px; cursor: pointer; font-size: 13px; color: var(--paper); }
.radio-opt input { accent-color: var(--magenta); }
.check-opt { display: flex; align-items: center; gap: 9px; cursor: pointer; font-size: 13px; color: var(--paper); }
.check-opt input { width: 16px; height: 16px; accent-color: var(--magenta); }

/* ===== progress ===== */
.progress { height: 6px; background: var(--void-2); border: 1px solid var(--line-2); overflow: hidden; position: relative; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent)); transition: width .4s ease; box-shadow: 0 0 10px rgba(255,43,214,0.5); }
.progress-bar.done { background: linear-gradient(90deg, var(--green), var(--cyan)); box-shadow: 0 0 10px rgba(69,245,176,0.5); }
.progress-bar.failed { background: var(--red); box-shadow: none; }
.progress-text { font-family: var(--font-mono); font-size: 11px; color: var(--paper-dim); margin-top: 5px; }

/* ===== modal ===== */
.modal-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(6,3,10,0.78); backdrop-filter: blur(4px); display: none; align-items: flex-start; justify-content: center; padding: 60px 20px; overflow-y: auto; }
.modal-overlay.show { display: flex; }
.modal {
    position: relative; width: 100%; max-width: 560px; background: linear-gradient(180deg, var(--ink), var(--void-2));
    border: 1px solid rgba(255,43,214,0.35); box-shadow: 0 30px 80px rgba(0,0,0,.7), 0 0 40px rgba(255,43,214,0.1);
    animation: modal-in .3s cubic-bezier(.2,.7,.2,1) both;
    -webkit-clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}
.modal.lg { max-width: 820px; }
@keyframes modal-in { from { transform: translateY(14px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line-2); }
.modal-title { font-family: var(--font-display); font-weight: 700; font-size: 17px; text-transform: uppercase; letter-spacing: .04em; }
.modal-close { background: none; border: none; color: var(--paper-dim); font-size: 20px; cursor: pointer; padding: 4px; }
.modal-close:hover { color: var(--red); }
.modal-body { padding: 22px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--line-2); }

/* ===== toast ===== */
.toast-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
    min-width: 280px; max-width: 380px; padding: 13px 16px; background: var(--ink); border: 1px solid var(--line);
    border-left: 3px solid var(--magenta); display: flex; align-items: center; gap: 11px; font-size: 13px; color: var(--paper);
    box-shadow: 0 12px 40px rgba(0,0,0,.5); animation: toast-in .3s ease both;
}
.toast.ok { border-left-color: var(--green); }
.toast.err { border-left-color: var(--red); }
.toast.warn { border-left-color: var(--amber); }
.toast i { font-size: 15px; }
.toast.ok i { color: var(--green); }
.toast.err i { color: var(--red); }
.toast.warn i { color: var(--amber); }
@keyframes toast-in { from { transform: translateX(40px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ===== misc ===== */
.empty { text-align: center; padding: 44px 20px; color: var(--paper-dim); font-family: var(--font-mono); font-size: 13px; }
.empty i { display: block; font-size: 30px; color: var(--paper-dimmer); margin-bottom: 12px; }
.loading { text-align: center; padding: 40px; color: var(--paper-dim); font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--magenta); border-radius: 50%; animation: spin .7s linear infinite; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.pill-tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; border: 1px solid; margin: 1px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; }
.mt-16 { margin-top: 16px; } .mb-0 { margin-bottom: 0; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; flex-wrap: wrap; }
.tab { padding: 10px 16px; font-family: var(--font-display); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--paper-dim); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab:hover { color: var(--paper); }
.tab.active { color: var(--magenta); border-bottom-color: var(--magenta); }

.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.filter-bar .input, .filter-bar .select { width: auto; min-width: 150px; }

.chart-bars { display: flex; align-items: flex-end; gap: 4px; height: 140px; padding-top: 10px; }
.chart-bars .bar { flex: 1; background: linear-gradient(180deg, var(--magenta), var(--magenta-dim, #7a1663)); min-height: 2px; transition: height .4s ease; position: relative; opacity: .85; }
.chart-bars .bar:hover { opacity: 1; box-shadow: 0 0 12px rgba(255,43,214,0.5); }

.kv { display: grid; grid-template-columns: 130px 1fr; gap: 10px 16px; font-size: 13px; }
.kv dt { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--paper-dim); }
.kv dd { color: var(--paper); font-family: var(--font-mono); }

/* ===== responsive ===== */
.menu-toggle { display: none; }
@media (max-width: 960px) {
    .sidebar { transform: translateX(-100%); transition: transform .25s ease; }
    .sidebar.open { transform: translateX(0); }
    .main { margin-left: 0; }
    .menu-toggle { display: flex; }
    .form-row, .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .search kbd { display: none; }
}
