@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --ink: #f4f5f0;
    --muted: #8c958e;
    --line: #29322e;
    --panel: #111715;
    --bg: #0b0e0d;
    --acid: #c8f169;
    --orange: #ff8d62
}

.hidden {
    display: none !important
}

.login-screen {
    position: fixed;
    z-index: 10;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: var(--bg)
}

.login-panel {
    width: min(100%, 420px);
    padding: 42px;
    background: var(--panel);
    border: 1px solid var(--line)
}

.login-panel img {
    width: 140px;
    max-height: 48px;
    object-fit: contain;
    margin-bottom: 54px
}

.login-panel h1 {
    font-size: 42px
}

.login-copy {
    color: var(--muted);
    margin: 14px 0 30px
}

label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font: 10px 'DM Mono', monospace;
    letter-spacing: .7px;
    text-transform: uppercase
}

input {
    width: 100%;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--ink);
    padding: 12px;
    font: 13px 'DM Mono', monospace
}

form label + label {
    margin-top: 16px
}

.primary-button {
    width: 100%;
    margin: 24px 0 0;
    padding: 13px;
    background: var(--acid);
    color: var(--bg);
    border-color: var(--acid);
    font-weight: 500
}

.primary-button:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--bg)
}

.form-error {
    color: var(--orange);
    min-height: 16px;
    margin: 12px 0 0;
    font: 11px 'DM Mono', monospace
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Space Grotesk', sans-serif
}

body:before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .22;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, #000, transparent 75%)
}

.app-shell {
    position: relative;
    max-width: 1440px;
    margin: auto;
    padding: 0 42px
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 58px
}

.side-nav {
    display: flex;
    flex-direction: column;
    min-height: 650px;
    padding-top: 76px
}

.side-nav .eyebrow {
    padding-left: 14px
}

.tab-button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 2px 0;
    padding: 14px;
    border: 1px solid transparent;
    text-align: left
}

.tab-button.active {
    border-color: var(--line);
    background: var(--panel);
    color: var(--acid)
}

.tab-icon {
    width: 20px;
    color: var(--orange);
    font: 16px 'DM Mono', monospace;
    text-align: center
}

.nav-spacer {
    flex: 1
}

.nav-version {
    padding: 14px;
    color: var(--muted);
    font: 9px 'DM Mono', monospace;
    letter-spacing: 1px
}

.tab-panel {
    display: none
}

.tab-panel.active {
    display: block
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin: 76px 0 42px
}

.section-heading h1 {
    font-size: clamp(42px, 5vw, 68px)
}

.section-copy {
    color: var(--muted);
    margin: 14px 0 0
}

.status-summary {
    margin-top: 26px
}

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

.health-grid > div {
    padding: 24px 26px;
    border-right: 1px solid var(--line)
}

.health-grid > div:last-child {
    border: 0
}

.health-grid span {
    display: block;
    color: var(--muted);
    font: 10px 'DM Mono', monospace;
    text-transform: uppercase
}

.health-grid strong {
    display: block;
    margin-top: 10px;
    font-size: 17px
}

.performance-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-bottom: 26px
}

.performance-metrics .metric {
    padding-top: 20px;
    padding-bottom: 20px
}

.performance-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px
}

.chart-panel .panel-heading > span {
    color: var(--acid);
    font: 20px 'DM Mono', monospace
}

.chart-panel canvas {
    display: block;
    width: 100%;
    height: 260px;
    padding: 18px 26px 24px
}

.system-details {
    margin-top: 26px
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr)
}

.details-grid > div {
    padding: 22px 26px;
    border-right: 1px solid var(--line)
}

.details-grid > div:last-child {
    border: 0
}

.details-grid span {
    display: block;
    color: var(--muted);
    font: 10px 'DM Mono', monospace;
    text-transform: uppercase
}

.details-grid strong {
    display: block;
    margin-top: 9px;
    font: 12px 'DM Mono', monospace;
    overflow-wrap: anywhere
}

.topbar {
    height: 82px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between
}

.brand {
    display: flex;
    align-items: center;
    gap: 18px;
    font: 500 11px 'DM Mono', monospace;
    letter-spacing: 2px
}

.brand img {
    width: 124px;
    max-height: 42px;
    object-fit: contain
}

.topbar-meta,
footer {
    color: var(--muted);
    font: 11px 'DM Mono', monospace;
    letter-spacing: .5px
}

.live-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--acid);
    margin-right: 8px;
    box-shadow: 0 0 12px var(--acid)
}

button {
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    padding: 9px 15px;
    margin-left: 18px;
    font: 11px 'DM Mono', monospace;
    cursor: pointer
}

button:hover {
    border-color: var(--acid);
    color: var(--acid)
}

main {
    padding: 76px 0
}

.intro {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 52px
}

.eyebrow {
    color: var(--acid);
    font: 11px 'DM Mono', monospace;
    letter-spacing: 1.5px;
    margin: 0 0 15px
}

h1,
h2 {
    margin: 0;
    font-weight: 600;
    letter-spacing: -1.8px
}

h1 {
    font-size: clamp(42px, 6vw, 82px);
    line-height: .95
}

h1 em {
    color: var(--orange);
    font-style: normal
}

.status-pill {
    border: 1px solid var(--acid);
    color: var(--acid);
    padding: 12px 16px;
    font: 11px 'DM Mono', monospace
}

.metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-bottom: 26px
}

.metric {
    padding: 22px 20px;
    border-right: 1px solid var(--line)
}

.metric:first-child {
    padding-left: 0
}

.metric:last-child {
    border: 0
}

.metric span,
.metric small,
.guild small,
td small {
    display: block;
    color: var(--muted);
    font: 11px 'DM Mono', monospace
}

.metric strong {
    display: block;
    margin-top: 12px;
    font-size: 22px
}

.content-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 26px
}

.panel {
    background: rgba(17, 23, 21, .9);
    border: 1px solid var(--line);
    min-width: 0
}

.panel-heading {
    padding: 25px 26px;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: end
}

.panel-heading h2 {
    font-size: 25px
}

.panel-count {
    color: var(--acid);
    font: 20px 'DM Mono', monospace
}

.table-wrap {
    overflow-x: auto
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left
}

th {
    color: var(--muted);
    font: 10px 'DM Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 1px
}

th,
td {
    padding: 17px 26px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap
}

td {
    font-size: 13px
}

td:first-child {
    min-width: 170px
}

td small {
    margin-top: 4px;
    font-size: 9px
}

.tag {
    font: 10px 'DM Mono', monospace;
    padding: 5px 8px
}

.tag-on {
    background: rgba(200, 241, 105, .12);
    color: var(--acid)
}

.tag-off {
    background: rgba(255, 141, 98, .12);
    color: var(--orange)
}

.guild-list {
    padding: 8px 26px
}

.guild {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line)
}

.guild:last-child {
    border-bottom: 0
}

.guild-mark {
    width: 34px;
    height: 34px;
    background: #29322e;
    color: var(--acid);
    display: grid;
    place-items: center;
    font: 13px 'DM Mono', monospace
}

.guild-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.guild strong {
    font-size: 13px
}

.guild span {
    margin-left: auto;
    color: var(--muted);
    font: 10px 'DM Mono', monospace
}

.empty {
    color: var(--muted);
    padding: 24px !important;
    font: 12px 'DM Mono', monospace
}

footer {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding: 22px 0 30px
}

@media(max-width:800px) {
    .app-shell {
        padding: 0 20px
    }

    .topbar {
        height: 70px
    }

    .brand span {
        display: none
    }

    main {
        padding: 52px 0
    }

    .dashboard-layout {
        display: block
    }

    .side-nav {
        position: fixed;
        z-index: 5;
        right: 0;
        bottom: 0;
        left: 0;
        min-height: 0;
        height: 68px;
        padding: 7px 10px;
        flex-direction: row;
        gap: 5px;
        background: rgba(11, 14, 13, .97);
        border-top: 1px solid var(--line)
    }

    .side-nav .eyebrow,
    .nav-spacer,
    .nav-version {
        display: none
    }

    .tab-button {
        justify-content: center;
        flex-direction: column;
        gap: 2px;
        margin: 0;
        padding: 5px;
        font-size: 10px;
        text-align: center
    }

    .tab-icon {
        font-size: 14px
    }

    .section-heading {
        margin: 52px 0 28px
    }

    .health-grid {
        grid-template-columns: 1fr
    }

    .performance-metrics,
    .performance-grid,
    .details-grid {
        grid-template-columns: 1fr
    }

    .performance-metrics .metric,
    .details-grid > div {
        border-right: 0;
        border-bottom: 1px solid var(--line)
    }

    .performance-metrics .metric:last-child,
    .details-grid > div:last-child {
        border-bottom: 0
    }

    .health-grid > div {
        border-right: 0;
        border-bottom: 1px solid var(--line)
    }

    .health-grid > div:last-child {
        border-bottom: 0
    }

    .intro {
        display: block
    }

    .status-pill {
        display: inline-block;
        margin-top: 25px
    }

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

    .metric:nth-child(2) {
        border-right: 0
    }

    .metric:nth-child(3),
    .metric:nth-child(4) {
        border-top: 1px solid var(--line)
    }

    .content-grid {
        grid-template-columns: 1fr
    }

    .panel-wide {
        order: 2
    }

    h1 {
        font-size: 48px
    }

    footer {
        padding-bottom: 94px;
        font-size: 9px
    }

    .login-panel {
        padding: 28px
    }

}