:root {
    --brand: #176b4d;
    --brand-dark: #10523b;
    --ink: #17211d;
    --muted: #65736c;
    --line: #dce3df;
    --surface: #ffffff;
    --page: #f4f6f5;
}

body {
    min-height: 100vh;
    color: var(--ink);
    background: var(--page);
    letter-spacing: 0;
}

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

.sidebar {
    width: 236px;
    min-height: 100vh;
    background: #13221c;
}

.brand {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
}

.sidebar .nav-link {
    color: #cbd8d2;
    border-radius: 6px;
    padding: .65rem .8rem;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: #fff;
    background: #254437;
}

.main-content {
    width: calc(100% - 236px);
}

.page-header {
    min-height: 68px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}

.content-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px;
}

.panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.metric-value {
    font-size: 1.45rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.primary-domain {
    border-left: 5px solid var(--brand);
}

.btn-primary {
    --bs-btn-bg: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: var(--brand-dark);
    --bs-btn-hover-border-color: var(--brand-dark);
}

.table th {
    color: var(--muted);
    font-weight: 600;
    white-space: nowrap;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 6px;
    border-radius: 50%;
    background: #2e9c68;
}

.status-dot.off {
    background: #9aa59f;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: #edf2ef;
}

.auth-panel {
    width: min(100%, 440px);
}

code,
.mono {
    overflow-wrap: anywhere;
}

@media (max-width: 860px) {
    .app-shell {
        display: block !important;
    }

    .sidebar {
        width: 100%;
        min-height: auto;
    }

    .sidebar .nav {
        flex-direction: row !important;
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .sidebar .nav-link {
        white-space: nowrap;
    }

    .main-content {
        width: 100%;
    }

    .content-wrap {
        padding: 18px;
    }
}
