[data-bs-theme="dark"] {
    --gauge-track: #34373d;
    --gauge-fill: #6fd3ea;
    --gauge-needle: #4d94ff;
}

[data-bs-theme="light"] {
    --gauge-track: #e4e7ec;
    --gauge-fill: #0b6377;
    --gauge-needle: #0052cc;
}

main {
    flex-direction: column;
    gap: 16px;
}

.st-card {
    background-color: var(--surface);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    max-width: 640px;
    width: 100%;
}

.st-head {
    margin-bottom: 20px;
}

.st-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.st-title .mdi {
    color: var(--accent);
}

.st-sub {
    color: var(--muted);
    word-break: break-word;
}

.gauge {
    width: 100%;
    max-width: 340px;
    height: auto;
    display: block;
    margin: 0 auto 20px;
}

.gauge-track {
    stroke: var(--gauge-track);
}

.gauge-fill {
    stroke: var(--gauge-fill);
    transition: none;
}

.gauge-needle {
    stroke: var(--gauge-needle);
    stroke-width: 4;
    stroke-linecap: round;
}

.gauge-hub {
    fill: var(--gauge-needle);
}

.gauge-label {
    fill: var(--muted);
    font-size: 12px;
    font-family: var(--bs-font-monospace);
}

.st-start {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 42px;
    padding: 0 28px;
    border: 1px solid var(--accent);
    background-color: var(--accent);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;
    margin-bottom: 24px;
}

.st-start:hover:not(:disabled) {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
}

.st-start:disabled {
    cursor: default;
    opacity: 0.6;
}

.st-start.running .mdi {
    animation: st-spin 1s linear infinite;
}

@keyframes st-spin {
    to { transform: rotate(360deg); }
}

.st-results {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}

.st-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background-color: var(--surface-2);
}

.st-icon {
    font-size: 18px;
    color: var(--muted);
}

.st-value {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.1;
    font-family: var(--bs-font-monospace);
}

.st-unit {
    font-size: var(--font-size-sm);
    color: var(--muted);
}

.st-name {
    font-size: var(--font-size-sm);
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.st-status {
    font-size: var(--font-size-sm);
    color: var(--muted);
    min-height: 1.2em;
}

.st-server {
    text-align: left;
}

.st-server-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: var(--font-size-lg);
    margin-bottom: 12px;
}

.st-server-head .mdi {
    color: var(--muted);
    font-size: 19px;
}

.st-server-info {
    margin-bottom: 14px;
    color: var(--bs-body-color);
}

.st-muted {
    color: var(--muted);
}

.st-cmd {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--code);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 8px 12px;
    margin-bottom: 8px;
}

.st-cmd code {
    flex: 1;
    background-color: transparent;
    padding: 0;
    color: var(--bs-body-color);
    font-family: var(--bs-font-monospace);
    font-size: var(--font-size-sm);
    word-break: break-all;
}

.st-cmd:last-child {
    margin-bottom: 0;
}

.st-copy {
    appearance: none;
    border: none;
    background: transparent;
    color: var(--faint);
    cursor: pointer;
    font-size: 16px;
    padding: 2px 4px;
    transition: color 0.15s;
}

.st-copy:hover {
    color: var(--accent);
}

@media (max-width: 767.98px) {
    .st-card {
        padding: 18px;
    }

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