:root {
    --bg: #f6efe5;
    --panel: rgba(255, 251, 246, 0.92);
    --panel-strong: #fffdf9;
    --ink: #2f241d;
    --muted: #6c5a4f;
    --line: rgba(83, 55, 34, 0.14);
    --accent: #b4552d;
    --accent-soft: #f2d5c2;
    --success: #1d7a52;
    --warning: #9a6a12;
    --danger: #a33a2a;
    --shadow: 0 18px 50px rgba(80, 48, 23, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(228, 166, 119, 0.35), transparent 30%),
        radial-gradient(circle at bottom right, rgba(132, 166, 143, 0.2), transparent 28%),
        linear-gradient(180deg, #fbf5ee 0%, #f3eadf 100%);
}

.shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 18px 48px;
}

.hero,
.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
}

.hero {
    padding: 24px;
    margin-bottom: 20px;
}

.hero h1,
.panel h2,
.panel h3 {
    margin-top: 0;
    font-family: Georgia, "Times New Roman", serif;
}

.hero p,
.muted {
    color: var(--muted);
}

.toolbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-top: 16px;
    flex-wrap: wrap;
}

.grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 20px;
}

.panel {
    padding: 20px;
}

.fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.field,
.field-wide {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-wide {
    grid-column: 1 / -1;
}

label {
    font-size: 0.92rem;
    color: var(--muted);
}

input,
textarea,
button,
.button-link {
    font: inherit;
}

input,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 14px;
    background: var(--panel-strong);
    color: var(--ink);
}

textarea {
    min-height: 110px;
    resize: vertical;
}

button,
.button-link {
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.button-primary {
    background: var(--accent);
    color: #fff;
}

.button-secondary {
    background: var(--accent-soft);
    color: var(--ink);
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.status-queued,
.status-starting {
    background: #f4e2b9;
    color: var(--warning);
}

.status-running {
    background: #d9ebe2;
    color: var(--success);
}

.status-success {
    background: #d9ebe2;
    color: var(--success);
}

.status-failed {
    background: #f3d4cf;
    color: var(--danger);
}

.jobs {
    display: grid;
    gap: 12px;
}

.job-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.62);
}

.job-card header,
.row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.job-meta {
    color: var(--muted);
    font-size: 0.9rem;
}

.flash {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 16px;
    border: 1px solid var(--line);
}

.flash-success {
    background: #e4f4ea;
}

.flash-error {
    background: #f9dfdb;
}

pre.log {
    margin: 0;
    padding: 18px;
    border-radius: 18px;
    background: #271d18;
    color: #f5e7da;
    overflow: auto;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.88rem;
    line-height: 1.55;
}

.login-card {
    max-width: 460px;
    margin: 10vh auto 0;
}

.check-list {
    display: grid;
    gap: 10px;
}

.check {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px dashed var(--line);
    padding-bottom: 10px;
}

.pill-ok,
.pill-no {
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.82rem;
}

.pill-ok {
    background: #d9ebe2;
    color: var(--success);
}

.pill-no {
    background: #f3d4cf;
    color: var(--danger);
}

@media (max-width: 920px) {
    .grid,
    .fields {
        grid-template-columns: 1fr;
    }

    .shell {
        padding-left: 14px;
        padding-right: 14px;
    }
}
