:root {
    --radar-bg: #f8fafc;
    --radar-card: #ffffff;
    --radar-text: #0f172a;
    --radar-muted: #64748b;
    --radar-primary: #2563eb;
    --radar-sidebar: #0f172a;
    --radar-border: #e2e8f0;
}

body {
    background: var(--radar-bg);
    color: var(--radar-text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, .18), transparent 28rem),
        linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
}

.auth-card, .panel, .metric-card, .table-shell, .comment-card {
    background: var(--radar-card);
    border: 1px solid var(--radar-border);
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .06);
}

.auth-card {
    width: min(440px, 92vw);
    padding: 2rem;
}

.app-shell {
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    min-height: 100vh;
    position: fixed;
    inset: 0 auto 0 0;
    background: var(--radar-sidebar);
    color: #e2e8f0;
    padding: 1.25rem;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    font-weight: 800;
}

.sidebar a {
    color: #cbd5e1;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .72rem .85rem;
    border-radius: 12px;
    margin-bottom: .2rem;
}

.sidebar a:hover, .sidebar a.active {
    background: rgba(255,255,255,.09);
    color: #fff;
}

.main-content {
    margin-left: 280px;
    padding: 1.4rem;
}

.topbar {
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(12px);
    border: 1px solid var(--radar-border);
    border-radius: 18px;
    padding: .95rem 1.1rem;
}

.metric-card {
    padding: 1.15rem;
}

.metric-value {
    font-size: 1.9rem;
    font-weight: 800;
}

.muted, .text-muted-soft {
    color: var(--radar-muted);
}

.panel {
    padding: 1.15rem;
}

.table-shell {
    overflow: hidden;
}

.table > :not(caption) > * > * {
    padding: .9rem 1rem;
}

.badge-soft {
    border-radius: 999px;
    padding: .42rem .65rem;
}

.score-pill {
    min-width: 54px;
    display: inline-flex;
    justify-content: center;
}

.form-control, .form-select, .btn {
    border-radius: 12px;
}

.btn-primary {
    background: var(--radar-primary);
    border-color: var(--radar-primary);
}

.page-title {
    font-size: 1.55rem;
    font-weight: 800;
}

.comment-card {
    padding: 1rem;
}

.comment-card.resolved {
    opacity: .68;
}

.comment-feed {
    max-height: 620px;
    overflow: auto;
}

.chart-box {
    min-height: 280px;
}

.strategy-grid textarea {
    min-height: 110px;
}

@media (max-width: 991.98px) {
    .sidebar {
        position: static;
        width: 100%;
        min-height: auto;
        border-radius: 0 0 20px 20px;
    }

    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
}

