:root {
    --sidebar: #172033;
    --accent: #1f7a5c;
    --surface: #f5f7fb;
    --line: #dde3ed;
}
body { background: var(--surface); color: #1e293b; }
.auth-body { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(135deg, #eaf2ff, #f7fafc); }
.auth-shell { width: min(440px, calc(100% - 32px)); }
.auth-panel { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 32px; box-shadow: 0 16px 40px rgba(15, 23, 42, .08); }
.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 260px; background: var(--sidebar); color: #fff; padding: 20px 16px; position: sticky; top: 0; height: 100vh; transition: margin .2s ease; }
.sidebar.collapsed { margin-left: -260px; }
.brand { font-size: 1.25rem; font-weight: 700; margin-bottom: 24px; }
.sidebar a { display: block; color: #cbd5e1; text-decoration: none; padding: 10px 12px; border-radius: 6px; margin-bottom: 4px; }
.sidebar a.active, .sidebar a:hover { background: rgba(255,255,255,.12); color: #fff; }
.main { flex: 1; min-width: 0; }
.topbar { height: 64px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; position: sticky; top: 0; z-index: 2; }
.content { padding: 24px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 20px; min-height: 112px; }
.stat-card small { color: #64748b; display: block; }
.stat-card strong { font-size: 2rem; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 20px; }
.tree-list { list-style: none; padding-left: 18px; margin: 0; }
.tree-list li { margin: 7px 0; position: relative; }
.tree-list li::before { content: ""; position: absolute; left: -13px; top: 12px; width: 8px; border-top: 1px solid #94a3b8; }
.tree-item { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 6px 8px; background: #f8fafc; border: 1px solid var(--line); border-radius: 6px; }
.table-actions { white-space: nowrap; width: 1%; }
.badge-soft { background: #e8f5ef; color: var(--accent); }
@media (max-width: 860px) {
    .sidebar { position: fixed; z-index: 5; }
    .sidebar.collapsed { margin-left: -260px; }
    .main { margin-left: 0; }
    .content { padding: 16px; }
}
