* {
    box-sizing: border-box;
}

:root {
    --bg: #07111f;
    --panel: #0c1828;
    --panel2: #101e30;
    --line: #203147;
    --text: #edf3f9;
    --muted: #8da0b5;
    --accent: #37d5ad;
    --accent2: #57a6ff;
    --danger: #ff667a;
    --warning: #f3c969;
}

body {
    margin: 0;
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: var(--bg);
    color: var(--text);
}

button {
    font: inherit;
}

.shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 270px 1fr;
}

.sidebar {
    position: fixed;
    width: 270px;
    height: 100vh;
    padding: 26px 20px;

    background:
        linear-gradient(
            180deg,
            #0b1727 0%,
            #081321 100%
        );

    border-right: 1px solid var(--line);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 13px;

    display: grid;
    place-items: center;

    font-weight: 900;
    letter-spacing: -1px;

    color: #07111f;
    background:
        linear-gradient(
            135deg,
            var(--accent),
            #78f0d0
        );
}

.brand-name {
    font-weight: 900;
    letter-spacing: .08em;
}

.brand-sub {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.admin-badge {
    margin-top: 28px;
    padding: 8px 10px;

    border-radius: 8px;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: .15em;

    color: var(--accent);
    background: rgba(55, 213, 173, .08);
    border: 1px solid rgba(55, 213, 173, .2);
}

nav {
    margin-top: 24px;
    display: grid;
    gap: 7px;
}

.nav-item {
    width: 100%;
    border: 0;
    border-radius: 9px;
    padding: 12px;

    display: flex;
    gap: 11px;
    align-items: center;

    color: var(--muted);
    background: transparent;

    text-align: left;
}

.nav-item.active {
    color: white;
    background: #14253a;
}

.nav-item.disabled {
    opacity: .42;
}

.protected-box {
    position: absolute;
    bottom: 25px;
    left: 20px;
    right: 20px;

    padding: 15px;

    border-radius: 10px;

    background: rgba(255, 102, 122, .06);
    border: 1px solid rgba(255, 102, 122, .2);
}

.protected-title {
    margin-bottom: 7px;

    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
}

.protected-status {
    margin-top: 4px;

    color: var(--danger);
    font-size: 12px;
    font-weight: 700;
}

.main {
    grid-column: 2;
    padding: 30px 34px 50px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar h1 {
    margin: 0;
    font-size: 25px;
}

.topbar p {
    margin: 6px 0 0;
    color: var(--muted);
}

.system-health {
    padding: 10px 14px;

    border-radius: 999px;

    color: var(--accent);
    background: rgba(55, 213, 173, .08);
    border: 1px solid rgba(55, 213, 173, .2);

    font-size: 13px;
    font-weight: 700;
}

.health-dot {
    display: inline-block;

    width: 8px;
    height: 8px;

    margin-right: 6px;

    border-radius: 50%;

    background: var(--accent);
}

.hero {
    margin-top: 28px;
    padding: 28px;

    display: flex;
    justify-content: space-between;
    gap: 30px;

    border-radius: 16px;
    border: 1px solid var(--line);

    background:
        radial-gradient(
            circle at top right,
            rgba(55, 213, 173, .12),
            transparent 35%
        ),
        var(--panel);
}

.eyebrow {
    color: var(--accent);

    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
}

.hero h2 {
    margin: 9px 0 6px;

    font-size: 35px;
    letter-spacing: -.03em;
}

.hero p {
    margin: 0;
    color: var(--muted);
}

.overall-progress {
    min-width: 260px;
}

.progress-number {
    text-align: right;

    font-size: 38px;
    font-weight: 900;
}

.progress-label {
    margin-top: 3px;

    text-align: right;

    color: var(--muted);
    font-size: 12px;
}

.progress-track {
    height: 8px;

    margin-top: 15px;

    overflow: hidden;

    border-radius: 999px;

    background: #17283d;
}

.progress-fill {
    width: 0;
    height: 100%;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            var(--accent),
            var(--accent2)
        );
}

.kpi-grid {
    margin-top: 18px;

    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.kpi {
    padding: 18px;

    border-radius: 12px;

    background: var(--panel);
    border: 1px solid var(--line);
}

.kpi span {
    display: block;

    color: var(--muted);
    font-size: 12px;
}

.kpi strong {
    display: block;

    margin-top: 7px;

    font-size: 27px;
}

.grid-two {
    margin-top: 18px;

    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 18px;
}

.panel {
    margin-top: 18px;
    padding: 20px;

    border-radius: 14px;

    background: var(--panel);
    border: 1px solid var(--line);
}

.grid-two .panel {
    margin-top: 0;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;

    margin-bottom: 17px;
}

.panel-header h3 {
    margin: 0;
    font-size: 16px;
}

.panel-header p {
    margin: 5px 0 0;

    color: var(--muted);
    font-size: 12px;
}

.workstream {
    margin-bottom: 15px;
}

.workstream:last-child {
    margin-bottom: 0;
}

.ws-line {
    display: flex;
    justify-content: space-between;

    margin-bottom: 7px;

    font-size: 13px;
}

.ws-code {
    color: var(--muted);
}

.ws-track {
    height: 6px;

    overflow: hidden;

    border-radius: 999px;

    background: #182a3f;
}

.ws-fill {
    height: 100%;
    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            var(--accent),
            var(--accent2)
        );
}

.next-task {
    padding: 13px 0;

    border-bottom: 1px solid var(--line);
}

.next-task:last-child {
    border-bottom: 0;
}

.next-task-code {
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
}

.next-task-name {
    margin-top: 4px;
    font-weight: 700;
}

.next-task-meta {
    margin-top: 4px;

    color: var(--muted);
    font-size: 11px;
}

.filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.filter {
    border: 1px solid var(--line);
    border-radius: 7px;

    padding: 6px 9px;

    color: var(--muted);
    background: transparent;

    cursor: pointer;
}

.filter.active {
    color: #07111f;
    background: var(--accent);
    border-color: var(--accent);
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;

    border-collapse: collapse;

    font-size: 12px;
}

th {
    padding: 10px;

    color: var(--muted);

    text-align: left;
    font-weight: 600;

    border-bottom: 1px solid var(--line);
}

td {
    padding: 12px 10px;

    border-bottom: 1px solid rgba(32, 49, 71, .7);
}

.task-code {
    color: #b8c9dc;
    font-family: monospace;
}

.status {
    display: inline-block;

    padding: 4px 7px;

    border-radius: 6px;

    font-size: 10px;
    font-weight: 800;
}

.status.COMPLETED {
    color: var(--accent);
    background: rgba(55, 213, 173, .08);
}

.status.IN_PROGRESS {
    color: var(--accent2);
    background: rgba(87, 166, 255, .08);
}

.status.PLANNED {
    color: var(--warning);
    background: rgba(243, 201, 105, .08);
}

.status.BACKLOG {
    color: #ba9bff;
    background: rgba(186, 155, 255, .08);
}

.mini-progress {
    width: 90px;
}

.mini-track {
    height: 5px;

    margin-bottom: 4px;

    border-radius: 999px;

    background: #182a3f;
}

.mini-fill {
    height: 100%;

    border-radius: 999px;

    background: var(--accent);
}

.metric-list > div {
    padding: 13px 0;

    display: flex;
    justify-content: space-between;

    border-bottom: 1px solid var(--line);
}

.metric-list > div:last-child {
    border-bottom: 0;
}

.metric-list span {
    color: var(--muted);
}

.protected-row {
    padding: 11px 0;

    border-bottom: 1px solid var(--line);
}

.protected-row:last-child {
    border-bottom: 0;
}

.protected-code {
    color: #f0b5be;

    font-family: monospace;
    font-size: 11px;
}

.protected-name {
    margin-top: 4px;
    font-weight: 700;
}

.protected-policy {
    margin-top: 4px;

    color: var(--danger);

    font-size: 10px;
    font-weight: 800;
}

footer {
    margin-top: 22px;

    display: flex;
    justify-content: space-between;

    color: var(--muted);
    font-size: 11px;
}

.empty {
    padding: 20px 0;
    color: var(--muted);
}

@media (max-width: 1200px) {

    .kpi-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}

@media (max-width: 850px) {

    .shell {
        display: block;
    }

    .sidebar {
        display: none;
    }

    .main {
        padding: 20px;
    }

    .grid-two {
        grid-template-columns: 1fr;
    }

    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        flex-direction: column;
    }

    .overall-progress {
        min-width: 0;
    }

    .progress-number,
    .progress-label {
        text-align: left;
    }

}
