:root {
    color-scheme: dark;
    --page: #101418;
    --panel: #181f25;
    --panel-soft: #202932;
    --text: #f4f7f8;
    --muted: #9eabb3;
    --line: #31404b;
    --green: #37d67a;
    --yellow: #eabf45;
    --red: #f15b5b;
    --blue: #67b7ff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--page);
    color: var(--text);
}

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

.panel {
    width: min(760px, 100%);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 28px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: 34px;
    line-height: 1.1;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 132px;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 10px 14px;
    background: var(--panel-soft);
    color: var(--muted);
    font-weight: 700;
}

.status-light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--yellow);
    box-shadow: 0 0 18px rgba(234, 191, 69, 0.55);
}

.status-light.online {
    background: var(--green);
    box-shadow: 0 0 18px rgba(55, 214, 122, 0.62);
}

.status-light.offline,
.status-light.stopping {
    background: var(--red);
    box-shadow: 0 0 18px rgba(241, 91, 91, 0.62);
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 0 0 24px;
}

.stats div {
    min-width: 0;
    background: var(--panel-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
}

dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
}

dd {
    margin: 0;
    min-height: 22px;
    font-size: 16px;
    overflow-wrap: anywhere;
}

.secret-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 18px;
}

label {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

input {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #0f151a;
    color: var(--text);
    padding: 0 12px;
}

button {
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    padding: 0 18px;
    color: #071014;
    background: var(--blue);
    font-weight: 800;
    cursor: pointer;
}

button:disabled {
    opacity: 0.55;
    cursor: wait;
}

.actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.primary {
    background: var(--green);
}

.danger {
    color: #fff;
    background: var(--red);
}

.message {
    min-height: 22px;
    margin: 18px 0 0;
    color: var(--muted);
}

@media (max-width: 680px) {
    .panel {
        padding: 20px;
    }

    .topbar,
    .secret-row {
        grid-template-columns: 1fr;
        display: grid;
        align-items: stretch;
    }

    .status-pill {
        justify-content: flex-start;
    }

    .stats,
    .actions {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 28px;
    }
}
