/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Palette lives in theme.css, which every page loads before this file. */

/* ─── Base ─── */
html { background: var(--bg); min-height: 100%; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    padding: 2rem 1rem 4rem;
    line-height: 1.6;
}

/* ─── Container ─── */
.container { max-width: 680px; margin: 0 auto; }

/* ─── Back link ─── */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 0.06em;
    margin-bottom: 2.5rem;
    transition: color 0.15s;
}
.back-link:hover { color: var(--text); }
.back-link::before { content: '<'; }

/* ─── Header ─── */
.header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.5rem;
}
.header-title {
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--text-bright);
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}
.header-sub {
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 0.12em;
}

/* ─── Prompt line ─── */
.prompt-line {
    font-size: 0.8rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 6px;
}
.prompt-line .cwd { color: var(--accent); }
.prompt-cursor {
    display: inline-block;
    width: 7px;
    height: 13px;
    background: var(--text);
    animation: blink 1.1s step-end infinite;
    vertical-align: -2px;
}
@keyframes blink { 50% { opacity: 0; } }

/* ─── Field label ─── */
.field-label {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
    padding-left: 2px;
}

/* ─── Status line ─── */
.status-line {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    color: var(--accent);
    margin-top: 1.2rem;
    min-height: 18px;
    padding-left: 2px;
    transition: color 0.2s;
}
.status-line.ok  { color: var(--ok); }
.status-line.err { color: var(--err); }

/* ─── Fade in animation ─── */
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ─── Run button ─── */
.run-btn {
    font-family: inherit;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    width: 100%;
    padding: 13px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.run-btn:hover:not(:disabled) { color: var(--text-bright); border-color: var(--border-hover); background: var(--bg3); }
.run-btn:active:not(:disabled) { background: var(--bg3); }
.run-btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* ─── Footer ─── */
.footer {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.72rem;
    color: var(--text-dimmer);
    letter-spacing: 0.1em;
    text-align: right;
}
