:root {
    --bg: #0f1115;
    --panel: #171a21;
    --line: #262b36;
    --text: #e6e9ef;
    --muted: #8b93a7;
    --accent: #4f8cff;
    --ok: #3fb950;
    --fail: #f85149;
    --warn: #d29922;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 15px/1.5 "Segoe UI", system-ui, sans-serif;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1 { font-size: 22px; margin: 0 0 4px; }
h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 12px; }

.muted { color: var(--muted); }
.mono { font-family: Consolas, monospace; font-size: 13px; }

.shell { max-width: 1100px; margin: 0 auto; padding: 0 24px 48px; }

header {
    display: flex; align-items: center; gap: 24px;
    padding: 16px 0; margin-bottom: 24px;
    border-bottom: 1px solid var(--line);
}
.brand { font-weight: 600; font-size: 17px; color: var(--text); }
header nav { display: flex; gap: 18px; }
header .logout { margin-left: auto; display: flex; align-items: center; gap: 12px; }
header .who { color: var(--muted); font-size: 13px; }

button {
    background: var(--panel); color: var(--text);
    border: 1px solid var(--line); border-radius: 6px;
    padding: 8px 14px; cursor: pointer; font-size: 14px;
}
button:hover:not(:disabled) { border-color: var(--accent); }
button:disabled { opacity: .45; cursor: default; }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; width: 100%; margin-top: 16px; }

input, select {
    width: 100%; padding: 9px 11px; margin-bottom: 14px;
    background: #0c0e13; color: var(--text);
    border: 1px solid var(--line); border-radius: 6px; font-size: 14px;
}
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 5px; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 820px) { .grid { grid-template-columns: 1fr; } }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 20px; }

.radio { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.radio input { width: auto; margin: 0; }
.radio label { margin: 0; color: var(--text); font-size: 14px; }

.own { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }

.preview dl { display: grid; grid-template-columns: 92px 1fr; gap: 8px 14px; margin: 0; }
.preview dt { color: var(--muted); font-size: 13px; }
.preview dd { margin: 0; font-family: Consolas, monospace; font-size: 13px; word-break: break-all; }

.error { background: rgba(248,81,73,.12); border: 1px solid var(--fail); color: #ffb4ae;
         padding: 10px 12px; border-radius: 6px; margin: 14px 0; font-size: 14px; }
.ok    { background: rgba(63,185,80,.12); border: 1px solid var(--ok); color: #8ee79a;
         padding: 10px 12px; border-radius: 6px; margin: 14px 0; }
.warn  { background: rgba(210,153,34,.12); border: 1px solid var(--warn); color: #f0cd7a;
         padding: 10px 12px; border-radius: 6px; margin: 10px 0; font-size: 13px; }

.steps { margin-top: 20px; }
.step {
    display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center;
    padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px;
    margin-bottom: 8px; background: var(--panel);
}
.step .icon { font-size: 15px; text-align: center; }
.step .elapsed { color: var(--muted); font-size: 12px; }
.step.succeeded .icon { color: var(--ok); }
.step.failed .icon { color: var(--fail); }
.step.running .icon { color: var(--accent); }
.step.failed { border-color: var(--fail); }
.step .log {
    grid-column: 1 / -1; margin: 6px 0 0;
    font-family: Consolas, monospace; font-size: 12px; color: var(--muted);
    white-space: pre-wrap; max-height: 220px; overflow-y: auto;
}

table.sites { width: 100%; border-collapse: collapse; margin-top: 16px; }
table.sites th {
    text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em;
    color: var(--muted); font-weight: 500; padding: 8px 12px; border-bottom: 1px solid var(--line);
}
table.sites td { padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }

.state { font-size: 12px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); }
.state.live { color: var(--ok); border-color: var(--ok); }
.state.failed { color: var(--fail); border-color: var(--fail); }
.state.pending { color: var(--warn); border-color: var(--warn); }

.empty-shell { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px; }
.login-card {
    background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
    padding: 32px; width: 100%; max-width: 360px;
}
.login-card h1 { margin-bottom: 2px; }
.login-card .sub { color: var(--muted); font-size: 13px; margin: 0 0 24px; }
