:root {
    --bg: #071018;
    --panel: rgba(11, 24, 34, .94);
    --line: rgba(100, 255, 213, .18);
    --soft-line: rgba(255,255,255,.08);
    --text: #edfdf8;
    --muted: #8aa1a8;
    --green: #36d399;
    --cyan: #38bdf8;
    --red: #fb7185;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: linear-gradient(180deg, #08131d 0%, #05080d 100%);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
h1, h2, p { margin: 0; }
.admin-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    border-right: 1px solid var(--line);
    background: rgba(7, 16, 24, .92);
    padding: 18px 14px;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 8px 8px 18px; }
.logo {
    width: 42px; height: 42px; display: grid; place-items: center;
    color: #03100d; background: linear-gradient(135deg, var(--green), var(--cyan));
    font-weight: 900;
}
.brand h1 { font-size: 18px; }
.nav-group { margin-top: 14px; }
.nav-title { padding: 0 8px 8px; color: var(--muted); font-size: 12px; font-weight: 900; }
.nav-link {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 0 10px;
    color: var(--text);
    text-decoration: none;
    border: 1px solid transparent;
    font-weight: 800;
}
.nav-link:hover, .nav-link.active { border-color: var(--line); background: rgba(54,211,153,.08); }
.main { min-width: 0; padding: 18px; }
.topbar, .panel {
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 18px 55px rgba(0,0,0,.24);
}
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 70px;
    padding: 0 18px;
}
.page-title h2 { font-size: 24px; }
.page-title p { margin-top: 4px; color: var(--muted); font-size: 12px; }
.panel { margin-top: 18px; padding: 18px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-head h2 { font-size: 18px; }
.panel-head span { color: var(--muted); font-size: 12px; }
.tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.btn, button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    color: var(--text);
    text-decoration: none;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.06);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}
button:disabled { opacity: .55; cursor: not-allowed; }
select {
    min-height: 38px;
    padding: 0 12px;
    color: var(--text);
    border: 1px solid var(--line);
    background: rgba(255,255,255,.06);
    font: inherit;
    font-weight: 800;
}
.segmented { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.segmented button { min-width: 48px; padding: 0 12px; }
.segmented button.active { color: #03100d; border-color: transparent; background: linear-gradient(135deg, var(--green), var(--cyan)); }
.table-wrap { overflow-x: auto; border: 1px solid var(--soft-line); }
table { width: 100%; border-collapse: collapse; min-width: 980px; }
th, td { padding: 11px 12px; border-bottom: 1px solid var(--soft-line); text-align: left; white-space: nowrap; }
th { color: var(--text); background: rgba(255,255,255,.045); font-size: 12px; }
td { color: var(--muted); font-weight: 800; }
td.positive, span.positive { color: var(--green); }
td.negative, span.negative { color: var(--red); }
td.level { color: var(--text); font-size: 18px; font-weight: 950; }
.table-empty { padding: 18px; color: var(--muted); font-weight: 800; }
.pager {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    color: var(--muted);
    font-weight: 800;
}
.locked { margin-top: 18px; padding: 18px; border: 1px solid var(--line); color: var(--muted); background: rgba(255,255,255,.04); }
@media (max-width: 1100px) {
    .admin-shell { grid-template-columns: 1fr; }
    .sidebar { position: static; height: auto; }
}
@media (max-width: 640px) {
    .topbar, .panel-head, .pager { align-items: flex-start; flex-direction: column; }
}
