/* ══════════════════════════════════════════════════════════════
   SimplisticNode IPM – Dark Void + Cyan
   ══════════════════════════════════════════════════════════════ */

:root {
    --bg: #030712;
    --surface: #0f172a;
    --surface-2: #1e293b;
    --border: rgba(255,255,255,0.06);
    --border-hover: rgba(255,255,255,0.12);
    --text: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --brand-400: #22d3ee;
    --brand-500: #06b6d4;
    --green: #34d399;
    --yellow: #fbbf24;
    --red: #f87171;
    --blue: #60a5fa;
    --purple: #a78bfa;
    --cyan: #22d3ee;
    --font-sans: 'Plus Jakarta Sans', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --radius: 10px;
    --radius-sm: 8px;
}

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

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
code, pre { font-family: var(--font-mono); }

/* ── App Layout ───────────────────────────────────────────────── */
.app-wrapper { display: flex; min-height: 100vh; }

/* ── Sidebar ──────────────────────────────────────────────────── */
.sidebar {
    width: 240px;
    flex-shrink: 0;
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
}

.sidebar-header {
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--border);
}

.sidebar-logo { display: flex; align-items: center; gap: 8px; }

.sidebar-badge {
    font-size: 10px; font-weight: 800;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--bg); background: var(--brand-500);
    padding: 2px 8px; border-radius: 4px;
}

.sidebar-nav { flex: 1; padding: 16px 12px; overflow-y: auto; }
.sidebar-section { margin-bottom: 24px; }

.sidebar-label {
    display: block; font-size: 10px; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--text-muted); padding: 0 10px; margin-bottom: 8px;
}

.sidebar-link {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 10px; font-size: 13px; font-weight: 500;
    color: var(--text-secondary); border-radius: var(--radius-sm);
    transition: all 0.15s;
}
.sidebar-link:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.sidebar-link.active { color: var(--brand-400); background: rgba(6,182,212,0.06); }
.sidebar-link svg { flex-shrink: 0; }

.sidebar-footer {
    display: flex; align-items: center; gap: 10px;
    padding: 16px 20px; border-top: 1px solid var(--border);
}

.sidebar-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); }
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { font-size: 11px; color: var(--text-muted); }
.sidebar-logout { color: var(--text-muted); transition: color 0.15s; }
.sidebar-logout:hover { color: var(--red); }

/* ── Main Content ─────────────────────────────────────────────── */
.main-content { flex: 1; margin-left: 240px; padding: 32px; min-width: 0; }

/* ── Page Header ──────────────────────────────────────────────── */
.page-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.page-header h1 { font-size: 22px; font-weight: 700; }

.back-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 500; color: var(--text-muted);
    margin-bottom: 8px; transition: color 0.15s;
}
.back-link:hover { color: var(--brand-400); }

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px; font-family: var(--font-sans);
    font-size: 14px; font-weight: 600; border-radius: var(--radius-sm);
    border: none; cursor: pointer; transition: all 0.2s; text-decoration: none;
}
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-primary { background: var(--brand-500); color: var(--bg); }
.btn-primary:hover { background: var(--brand-400); box-shadow: 0 0 20px rgba(6,182,212,0.3); }
.btn-secondary { background: rgba(255,255,255,0.06); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--border-hover); background: rgba(255,255,255,0.1); }

/* ── Stats Grid ───────────────────────────────────────────────── */
.stats-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px; margin-bottom: 28px;
}

.stat-card {
    display: flex; align-items: center; gap: 16px;
    padding: 20px; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius);
}

.stat-icon {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
}
.stat-icon.blue   { background: rgba(96,165,250,0.08); color: var(--blue); }
.stat-icon.green  { background: rgba(52,211,153,0.08); color: var(--green); }
.stat-icon.cyan   { background: rgba(6,182,212,0.08);  color: var(--cyan); }
.stat-icon.yellow { background: rgba(251,191,36,0.08); color: var(--yellow); }
.stat-icon.red    { background: rgba(248,113,113,0.08);color: var(--red); }
.stat-icon.purple { background: rgba(167,139,250,0.08);color: var(--purple); }

.stat-value { display: block; font-size: 24px; font-weight: 800; line-height: 1.1; }
.stat-label { display: block; font-size: 12px; color: var(--text-muted); font-weight: 500; }

/* ── Dashboard Grid ───────────────────────────────────────────── */
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 1100px) { .dashboard-grid { grid-template-columns: 1fr; } }

/* ── Panel ────────────────────────────────────────────────────── */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.panel-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.panel-header h2 { font-size: 14px; font-weight: 700; }
.panel-link { font-size: 12px; font-weight: 600; color: var(--brand-400); }
.panel-link:hover { text-decoration: underline; }
.panel-body { padding: 0; }
.panel-body .form-stack, .panel-body .form-grid { padding: 20px; }
.panel-scroll { max-height: 500px; overflow-y: auto; }

/* ── Block Rows (dashboard) ───────────────────────────────────── */
.block-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px; border-bottom: 1px solid var(--border); transition: background 0.1s;
}
.block-row:last-child { border-bottom: none; }
.block-row:hover { background: rgba(255,255,255,0.02); }
.block-cidr { font-size: 13px; color: var(--brand-400); background: none; }
.block-label { font-size: 12px; color: var(--text-muted); margin-left: 10px; }
.block-row-stats { display: flex; gap: 8px; }
.mini-stat { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.mini-stat.green  { color: var(--green); background: rgba(52,211,153,0.08); }
.mini-stat.cyan   { color: var(--cyan);  background: rgba(6,182,212,0.08); }
.mini-stat.yellow { color: var(--yellow); background: rgba(251,191,36,0.08); }

/* ── Activity Rows ────────────────────────────────────────────── */
.activity-row {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 20px; border-bottom: 1px solid var(--border); font-size: 13px;
}
.activity-row:last-child { border-bottom: none; }
.activity-detail { flex: 1; }
.activity-detail code { color: var(--brand-400); font-size: 12px; }
.activity-meta { font-size: 11px; color: var(--text-muted); white-space: nowrap; }

.activity-action {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; padding: 3px 8px; border-radius: 5px; white-space: nowrap;
}
.activity-action.assigned, .activity-action.imported { color: var(--cyan); background: rgba(6,182,212,0.08); }
.activity-action.unassigned   { color: var(--text-muted); background: rgba(255,255,255,0.04); }
.activity-action.reserved     { color: var(--yellow); background: rgba(251,191,36,0.08); }
.activity-action.unreserved   { color: var(--text-muted); background: rgba(255,255,255,0.04); }
.activity-action.blacklisted  { color: var(--red); background: rgba(248,113,113,0.08); }
.activity-action.unblacklisted{ color: var(--green); background: rgba(52,211,153,0.08); }
.activity-action.created      { color: var(--green); background: rgba(52,211,153,0.08); }
.activity-action.deleted      { color: var(--red); background: rgba(248,113,113,0.08); }
.activity-action.updated      { color: var(--blue); background: rgba(96,165,250,0.08); }

/* ── Data Table ───────────────────────────────────────────────── */
.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
    text-align: left; padding: 12px 16px; font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted);
    background: rgba(255,255,255,0.02); border-bottom: 1px solid var(--border); white-space: nowrap;
}
.data-table td { padding: 12px 16px; font-size: 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255,255,255,0.01); }

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 13px; }
.fw-400 { font-weight: 400; }
.fw-600 { font-weight: 600; }
.mono { font-family: var(--font-mono); }

.mono-link { font-family: var(--font-mono); font-size: 13px; color: var(--brand-400); }
.mono-link:hover { text-decoration: underline; }

.empty-td { text-align: center; color: var(--text-muted); padding: 32px 16px !important; }
.empty-small { text-align: center; color: var(--text-muted); padding: 24px 20px; font-size: 13px; }
.empty-small a { color: var(--brand-400); }
.empty-state { text-align: center; padding: 48px 20px; }
.empty-state h2 { font-size: 18px; margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); font-size: 14px; }

.table-actions { display: flex; gap: 12px; justify-content: flex-end; white-space: nowrap; }
.table-actions a { font-size: 12px; font-weight: 600; color: var(--text-muted); transition: color 0.15s; }
.table-actions a:hover { color: var(--brand-400); }
.table-actions a.delete:hover { color: var(--red); }

/* ── Status Badges ────────────────────────────────────────────── */
.status-badge {
    display: inline-block; padding: 3px 10px;
    font-size: 11px; font-weight: 700; border-radius: 20px;
    text-transform: uppercase; letter-spacing: 0.04em;
}
.status-badge.sm { font-size: 9px; padding: 2px 7px; }
.status-badge.available   { color: var(--green); background: rgba(52,211,153,0.08); border: 1px solid rgba(52,211,153,0.15); }
.status-badge.assigned    { color: var(--cyan);  background: rgba(6,182,212,0.08);  border: 1px solid rgba(6,182,212,0.15); }
.status-badge.reserved    { color: var(--yellow);background: rgba(251,191,36,0.08); border: 1px solid rgba(251,191,36,0.15); }
.status-badge.blacklisted { color: var(--red);   background: rgba(248,113,113,0.08);border: 1px solid rgba(248,113,113,0.15); }
.status-badge.maintenance { color: #fb923c; background: rgba(251,146,60,0.08); border: 1px solid rgba(251,146,60,0.15); }
.status-badge.decommissioned { color: var(--text-muted); background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); }

.mini-badge { font-size: 12px; font-weight: 700; }
.mini-badge.green  { color: var(--green); }
.mini-badge.cyan   { color: var(--cyan); }
.mini-badge.yellow { color: var(--yellow); }
.mini-badge.red    { color: var(--red); }

/* ── Block Info Grid ──────────────────────────────────────────── */
.block-info-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1px; background: var(--border); border: 1px solid var(--border);
    border-radius: var(--radius); margin-bottom: 20px; overflow: hidden;
}
.block-info-item { padding: 14px 18px; background: var(--surface); }
.block-info-label { display: block; font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.block-info-value { font-size: 14px; font-weight: 600; }
.block-info-value.mono { font-family: var(--font-mono); font-size: 13px; }

/* ── Utilization Bar ──────────────────────────────────────────── */
.utilization-bar-wrap { margin-bottom: 20px; }
.utilization-bar {
    height: 10px; background: rgba(52,211,153,0.1);
    border-radius: 6px; overflow: hidden; display: flex; margin-bottom: 10px;
}
.util-seg { height: 100%; transition: width 0.3s; }
.util-seg.assigned    { background: var(--cyan); }
.util-seg.reserved    { background: var(--yellow); }
.util-seg.blacklisted { background: var(--red); }

.utilization-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--text-muted); }
.legend-item { display: flex; align-items: center; gap: 6px; }
.legend-item.total { font-weight: 700; color: var(--text-secondary); }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; }
.legend-dot.green  { background: var(--green); }
.legend-dot.cyan   { background: var(--cyan); }
.legend-dot.yellow { background: var(--yellow); }
.legend-dot.red    { background: var(--red); }

/* ── Filter Bar ───────────────────────────────────────────────── */
.filter-bar { margin-bottom: 16px; }
.filter-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filter-search {
    display: flex; align-items: center; gap: 8px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 8px 14px;
    flex: 1; min-width: 180px; max-width: 320px; transition: border-color 0.15s;
}
.filter-search:focus-within { border-color: var(--brand-500); }
.filter-search svg { color: var(--text-muted); flex-shrink: 0; }
.filter-search input {
    background: none; border: none; outline: none;
    color: var(--text); font-family: var(--font-sans); font-size: 13px; width: 100%;
}
.filter-search input::placeholder { color: var(--text-muted); }

.filter-form select {
    padding: 8px 14px; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text);
    font-family: var(--font-sans); font-size: 13px; outline: none; cursor: pointer;
}
.filter-form select:focus { border-color: var(--brand-500); }
.filter-clear { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.filter-clear:hover { color: var(--brand-400); }

/* ── Forms ────────────────────────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.form-stack { display: flex; flex-direction: column; gap: 16px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group label {
    display: block; font-size: 12px; font-weight: 600;
    color: var(--text-secondary); margin-bottom: 6px;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 10px 14px;
    font-family: var(--font-sans); font-size: 14px;
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text);
    outline: none; transition: border-color 0.15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--brand-500); }
.mono-input { font-family: var(--font-mono) !important; font-size: 13px !important; }

.checkbox-label { display: flex; align-items: center; gap: 10px; font-size: 13px; cursor: pointer; }
.checkbox-label input[type="checkbox"] { accent-color: var(--brand-500); }
.form-actions { display: flex; gap: 10px; padding-top: 8px; grid-column: 1 / -1; }

/* ── IP Detail Grid ───────────────────────────────────────────── */
.ip-detail-grid { display: grid; grid-template-columns: 1fr 380px; gap: 20px; align-items: start; }
@media (max-width: 1100px) { .ip-detail-grid { grid-template-columns: 1fr; } }

.ip-address-title { font-size: 22px; font-weight: 800; color: var(--brand-400); background: none; margin-right: 12px; }

/* ── History List ─────────────────────────────────────────────── */
.history-list { display: flex; flex-direction: column; }
.history-item { display: flex; flex-direction: column; gap: 4px; padding: 12px 20px; border-bottom: 1px solid var(--border); }
.history-item:last-child { border-bottom: none; }
.history-detail { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.history-meta { font-size: 11px; color: var(--text-muted); }

/* ── Import Layout ────────────────────────────────────────────── */
.import-layout { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
@media (max-width: 1000px) { .import-layout { grid-template-columns: 1fr; } }

.guide-section { padding: 16px 20px; border-bottom: 1px solid var(--border); }
.guide-section:last-child { border-bottom: none; }
.guide-section h3 { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.guide-section p { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.guide-section pre {
    font-family: var(--font-mono); font-size: 12px;
    background: var(--bg); border: 1px solid var(--border);
    border-radius: 6px; padding: 12px; color: var(--text-secondary);
    overflow-x: auto; white-space: pre;
}

/* ── Pagination ───────────────────────────────────────────────── */
.pagination {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; margin-top: 24px; padding-top: 24px;
    border-top: 1px solid var(--border); flex-wrap: wrap;
}
.page-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; font-size: 13px; font-weight: 600;
    color: var(--text-secondary); background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    transition: all 0.15s;
}
.page-btn:hover { color: var(--text); border-color: var(--border-hover); }
.page-numbers { display: flex; align-items: center; gap: 4px; }
.page-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; font-size: 13px; font-weight: 600;
    color: var(--text-muted); border-radius: var(--radius-sm); transition: all 0.15s;
}
.page-num:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.page-num.active { color: var(--brand-400); background: rgba(6,182,212,0.08); border: 1px solid rgba(6,182,212,0.2); }
.page-dots { font-size: 13px; color: var(--text-muted); padding: 0 4px; }

/* ── Flash Messages ───────────────────────────────────────────── */
.flash {
    padding: 14px 20px; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 500; margin-bottom: 20px;
}
.flash.success { background: rgba(52,211,153,0.08); border: 1px solid rgba(52,211,153,0.2); color: var(--green); }
.flash.error   { background: rgba(248,113,113,0.08); border: 1px solid rgba(248,113,113,0.2); color: var(--red); }

/* ── Login Page ───────────────────────────────────────────────── */
.login-body {
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh; padding: 20px;
}
.login-card {
    width: 100%; max-width: 400px; text-align: center;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 16px; padding: 48px 40px;
}
.login-logo { display: flex; align-items: center; justify-content: center; margin-bottom: 24px; }
.login-card h1 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.login-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 32px; }
.login-error {
    background: rgba(248,113,113,0.08); border: 1px solid rgba(248,113,113,0.2);
    color: var(--red); padding: 12px 16px; border-radius: var(--radius-sm);
    font-size: 13px; margin-bottom: 24px;
}
.login-btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 12px; width: 100%; padding: 14px 24px;
    background: #5865F2; color: white;
    font-family: var(--font-sans); font-size: 15px; font-weight: 700;
    border-radius: var(--radius-sm); transition: all 0.2s;
}
.login-btn:hover { background: #4752c4; box-shadow: 0 4px 20px rgba(88,101,242,0.3); }

/* ── IP Assign Bar (server page) ───────────────────────────────── */
.ip-assign-bar {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.01);
}
.ip-assign-form {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ip-assign-select {
    flex: 1;
    max-width: 400px;
    padding: 8px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 13px;
    outline: none;
}
.ip-assign-select:focus { border-color: var(--brand-500); }

/* ── IP Picker Toggle ──────────────────────────────────────────── */
.ip-picker-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 0;
    background: none;
    border: none;
    color: var(--brand-400);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}
.ip-picker-toggle:hover { color: var(--brand-400); }
.ip-picker-chevron { margin-left: auto; transition: transform 0.2s; }
.ip-picker-toggle.open .ip-picker-chevron { transform: rotate(180deg); }

.ip-picker-panel {
    display: none;
    padding-top: 14px;
}
.ip-picker-panel.open { display: block; }

/* ── IP Picker (multi-select) ─────────────────────────────────── */
.ip-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.ip-picker-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ip-picker-grid {
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
}
.ip-picker-block { border-bottom: 1px solid var(--border); }
.ip-picker-block:last-child { border-bottom: none; }
.ip-picker-block-label {
    padding: 8px 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1;
}
.ip-picker-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0;
    padding: 4px;
}
.ip-picker-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.1s;
    border-radius: 4px;
    user-select: none;
}
.ip-picker-item:hover { background: rgba(255,255,255,0.04); }
.ip-picker-item input[type="checkbox"] {
    accent-color: var(--brand-500);
    flex-shrink: 0;
    width: 13px;
    height: 13px;
    margin: 0;
}
.ip-picker-item code {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
}
.ip-picker-item:has(input:checked) code { color: var(--brand-400); font-weight: 600; }
.ip-picker-item:has(input:checked) { background: rgba(6,182,212,0.06); }

.server-ips-section { margin-top: 0; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 768px) {
    .sidebar { display: none; }
    .sidebar.open { display: flex; }
    .main-content { margin-left: 0; padding: 20px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .form-grid { grid-template-columns: 1fr; }
    .span-2, .span-3, .span-4 { grid-column: span 1; }
    .form-row-2 { grid-template-columns: 1fr; }
}