:root {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #f3f6fb;
    background: #080d14;
    color-scheme: dark;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 0%, rgba(34, 120, 255, .13), transparent 32rem),
        radial-gradient(circle at 90% 10%, rgba(0, 214, 143, .10), transparent 28rem),
        #080d14;
}

.page {
    width: min(920px, calc(100% - 28px));
    margin: 0 auto;
    padding: 36px 0 60px;
}

.card {
    border: 1px solid #202b3a;
    background: rgba(16, 23, 34, .93);
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 18px;
    box-shadow: 0 16px 50px rgba(0, 0, 0, .18);
}

.hero { padding: 30px; }
.eyebrow { color: #5ca5ff; font-weight: 800; letter-spacing: .16em; font-size: 12px; }
h1 { margin: 8px 0 8px; font-size: clamp(30px, 6vw, 48px); }
h2 { margin: 0 0 14px; font-size: 20px; }
.lead { margin: 0 0 24px; color: #a9b6c7; font-size: 17px; }

.status-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.status-item {
    background: #0c131e;
    border: 1px solid #1e2a39;
    border-radius: 13px;
    padding: 14px;
    min-width: 0;
}
.status-item span { display: block; color: #78889c; font-size: 12px; margin-bottom: 5px; }
.status-item strong { display: block; overflow-wrap: anywhere; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.button {
    border: 1px solid transparent;
    border-radius: 11px;
    padding: 12px 18px;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
    transition: transform .08s ease, opacity .15s ease, border-color .15s ease;
}
.button:active:not(:disabled) { transform: translateY(1px); }
.button:disabled { opacity: .42; cursor: not-allowed; }
.button.primary { background: #247cff; color: white; }
.button.success { background: #00b979; color: #03130e; }
.button.secondary { background: #172231; color: #d9e2ee; border-color: #29384a; }
.button.small { padding: 9px 13px; font-size: 13px; }

.progress-wrap { margin-top: 10px; }
.progress-head { display: flex; justify-content: space-between; gap: 15px; color: #b6c2d0; font-size: 13px; }
.progress-track { height: 12px; border-radius: 999px; background: #090f17; overflow: hidden; margin-top: 8px; border: 1px solid #1d2936; }
.progress-bar { width: 0; height: 100%; background: linear-gradient(90deg, #247cff, #00cf8b); transition: width .12s linear; }

.notice { margin-top: 16px; padding: 13px 15px; border-radius: 11px; border: 1px solid #29405d; background: #101c2a; }
.notice.error { border-color: #6c2d38; background: #28151a; color: #ffb5bf; }
.notice.success { border-color: #1e634b; background: #0e271f; color: #a8f5d7; }
.hidden { display: none !important; }

.instructions ol { margin: 0; padding-left: 22px; color: #c5cfdb; }
.instructions li { margin: 8px 0; }
.hint { margin: 16px 0 0; color: #8fa0b3; }

.advanced summary { cursor: pointer; font-weight: 750; }
.check-row { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0; color: #c8d2de; }
.check-row input { margin-top: 4px; }
.check-row small { color: #8899ac; }

.terminal-head { display: flex; justify-content: space-between; align-items: center; }
.badge { border: 1px solid #2d3b4d; background: #0b121b; border-radius: 999px; padding: 5px 9px; font-size: 11px; font-weight: 800; color: #9cacbe; }
.terminal {
    margin: 0;
    height: 280px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
    border-radius: 12px;
    padding: 14px;
    border: 1px solid #1a2633;
    background: #05090e;
    color: #a9f5cf;
    font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (max-width: 700px) {
    .page { width: min(100% - 18px, 920px); padding-top: 16px; }
    .card, .hero { padding: 18px; border-radius: 14px; }
    .status-grid { grid-template-columns: 1fr; }
    .actions .button { flex: 1 1 100%; }
}

.admin-page { max-width: 920px; }
.admin-status-grid { margin-top: 24px; }
.upload-form { display: grid; gap: 12px; }
.upload-form input[type="file"],
.upload-form input[type="text"] {
    width: 100%;
    border: 1px solid #29384a;
    border-radius: 10px;
    padding: 11px 12px;
    background: #0b121b;
    color: #e8eef7;
    font: inherit;
}
.field-label { font-weight: 750; color: #d9e2ee; }
.field-help { color: #8899ac; margin-top: -5px; }
.top-hint { margin-top: 0; }
.upload-progress { color: #9cc3ff; font-size: 13px; }
.text-link { color: #75b5ff; text-decoration: none; font-weight: 700; }
.text-link:hover { text-decoration: underline; }

.login-card {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
