:root {
    color-scheme: dark;
    --bg: #080a0f;
    --panel: #10141d;
    --panel-2: #151b26;
    --line: #263041;
    --line-soft: #1c2431;
    --text: #eef2f7;
    --muted: #8f9bad;
    --soft: #c8d0dc;
    --accent: #6ee7b7;
    --accent-2: #93c5fd;
    --warn: #fbbf24;
    --danger: #fb7185;
    --radius: 8px;
    --shadow: 0 24px 80px rgba(0, 0, 0, .38);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
    margin: 0;
    background: radial-gradient(circle at 20% 0%, rgba(110, 231, 183, .08), transparent 30%), var(--bg);
    color: var(--text);
    letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.app-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    border-right: 1px solid var(--line-soft);
    background: rgba(9, 12, 18, .92);
    display: flex;
    flex-direction: column;
    padding: 18px 14px;
}

.brand-mark {
    display: inline-flex;
    gap: 10px;
    align-items: center;
}

.brand-glyph {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(110, 231, 183, .55);
    background: #0d1717;
    color: var(--accent);
    border-radius: 7px;
    font-weight: 800;
    font-size: 12px;
}

.brand-mark strong { display: block; font-size: 13px; }
.brand-mark small { display: block; color: var(--muted); font-size: 11px; margin-top: 1px; }
.sidebar-brand { margin: 2px 4px 22px; }

.sidebar-nav {
    display: grid;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 0 10px;
    border-radius: 7px;
    color: var(--soft);
    font-size: 14px;
}

.nav-item:hover,
.nav-item.active {
    background: #151b26;
    color: var(--text);
}

.nav-icon {
    width: 18px;
    height: 18px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: #0d121b;
}

.sidebar-footer {
    margin-top: auto;
}

.main-shell {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--line-soft);
    background: rgba(8, 10, 15, .88);
    backdrop-filter: blur(14px);
}

.topbar h1 {
    margin: 2px 0 0;
    font-size: 22px;
    font-weight: 720;
}

.eyebrow {
    margin: 0;
    color: var(--muted);
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-shell {
    width: min(1440px, 100%);
    margin: 0 auto;
    padding: 24px;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    padding: 6px 9px;
    background: rgba(21, 27, 38, .72);
}

.user-chip span,
.avatar {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: #17252a;
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
}

@media (max-width: 980px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { position: relative; height: auto; }
    .sidebar-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .topbar { align-items: flex-start; flex-direction: column; }
    .content-shell { padding: 16px; }
}
