:root {
    color-scheme: dark;
    --bg: #06131d;
    --panel: rgba(9, 26, 39, 0.9);
    --line: rgba(139, 213, 255, 0.2);
    --text: #eef7ff;
    --muted: #91a8b7;
    --ok: #42d67a;
    --warn: #ffd45a;
    --bad: #ff6b74;
    --accent: #82dfff;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
    margin: 0;
    background: radial-gradient(circle at 20% 10%, rgba(38, 92, 120, 0.32), transparent 34%), var(--bg);
    color: var(--text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.console-shell {
    min-height: 100svh;
    width: min(920px, 100%);
    margin: 0 auto;
    padding: max(18px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 12px;
}

.console-header, .terminal, .prompt {
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(16px);
}

.console-header {
    border-radius: 22px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.eyebrow {
    margin: 0 0 4px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: clamp(18px, 5vw, 28px);
    letter-spacing: -.04em;
}

.status-pill {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 10px;
    color: var(--muted);
    font-size: 11px;
    white-space: nowrap;
}
.status-pill.is-ok { color: var(--ok); }
.status-pill.is-bad { color: var(--bad); }

.terminal {
    min-height: 0;
    overflow: auto;
    border-radius: 22px;
    padding: 14px;
    scrollbar-width: thin;
    scrollbar-color: rgba(130, 223, 255, .42) transparent;
}

.line {
    margin: 0 0 9px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.45;
    font-size: 13px;
}
.line.command { color: var(--accent); }
.line.ok { color: var(--ok); }
.line.warn { color: var(--warn); }
.line.bad { color: var(--bad); }
.line.muted { color: var(--muted); }

.prompt {
    border-radius: 18px;
    padding: 12px 14px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: center;
}

.prompt span { color: var(--accent); font-weight: 800; }
.prompt input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
    font: inherit;
    font-size: 16px;
}

@media (max-width: 560px) {
    .console-shell { padding-left: 10px; padding-right: 10px; }
    .console-header { align-items: flex-start; flex-direction: column; }
    .terminal { padding: 12px; }
    .line { font-size: 12px; }
}
