:root {
    --ink: #182230;
    --muted: #667085;
    --line: #d9e2ec;
    --surface: #ffffff;
    --page: #f5f7fb;
    --primary: #146c75;
    --primary-dark: #0d4f56;
    --accent: #e56b4f;
    --success: #18794e;
    --warning: #b7791f;
}

body {
    min-height: 100vh;
    background: var(--page);
    color: var(--ink);
    letter-spacing: 0;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: linear-gradient(135deg, #e9f5f6 0%, #f8efe9 52%, #f6f7fb 100%);
}

.login-panel {
    width: min(420px, 100%);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 20px 50px rgba(24, 34, 48, 0.12);
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    margin-bottom: 18px;
}

.login-panel h1 {
    font-size: 28px;
    margin: 0;
}

.login-panel p {
    margin: 2px 0 24px;
    color: var(--muted);
}

.app-nav {
    background: var(--ink);
}

.navbar-brand {
    color: #fff;
    font-weight: 800;
}

.navbar-brand:hover {
    color: #fff;
}

.app-shell {
    padding: 28px;
}

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(24, 34, 48, 0.06);
}

.panel-heading h1,
.panel-heading h2 {
    font-size: 24px;
    margin: 4px 0 0;
}

.section-kicker {
    display: block;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.form-control,
.form-select,
.accordion-item,
.accordion-button {
    border-radius: 8px;
}

.progress-panel {
    min-height: calc(100vh - 112px);
}

.run-state {
    min-width: 96px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    background: #edf2f7;
    color: var(--muted);
}

.run-state.running {
    background: #e4f4f5;
    color: var(--primary-dark);
}

.run-state.complete {
    background: #e8f6ef;
    color: var(--success);
}

.run-state.warning {
    background: #fff4db;
    color: var(--warning);
}

.run-state.error {
    background: #fde8e2;
    color: #b42318;
}

.progress-wrap {
    margin: 22px 0 18px;
}

.progress {
    height: 14px;
    background: #e7edf3;
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar {
    background: var(--primary);
    transition: width 240ms ease;
}

.progress-label,
.progress-percent {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.step-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0 24px;
}

.step-item {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    min-height: 96px;
    display: grid;
    align-content: space-between;
    background: #fbfcfe;
}

.step-item span {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #edf2f7;
    color: var(--muted);
    font-weight: 800;
}

.step-item strong {
    display: block;
    font-size: 14px;
}

.step-item small {
    color: var(--muted);
}

.step-item.running {
    border-color: var(--primary);
    box-shadow: inset 0 0 0 1px var(--primary);
}

.step-item.running span {
    background: var(--primary);
    color: #fff;
}

.step-item.complete {
    border-color: rgba(24, 121, 78, 0.45);
    background: #f4fbf7;
}

.step-item.complete span {
    background: var(--success);
    color: #fff;
}

.step-item.warning,
.step-item.needs_input {
    border-color: rgba(183, 121, 31, 0.45);
    background: #fffaf0;
}

.step-item.warning span,
.step-item.needs_input span {
    background: var(--warning);
    color: #fff;
}

.strategy-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.strategy-pill {
    border-left: 4px solid var(--primary);
    background: #f8fbfc;
    padding: 10px 12px;
    border-radius: 8px;
}

.strategy-pill span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.strategy-pill strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
}

.status-log {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfe;
    margin-bottom: 18px;
    overflow: hidden;
}

.status-log-header {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.status-log-body {
    max-height: 150px;
    overflow: auto;
    padding: 8px 12px;
}

.status-log-row {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(217, 226, 236, 0.65);
    font-size: 13px;
}

.status-log-row:last-child {
    border-bottom: 0;
}

.status-log-row span {
    color: var(--muted);
}

.status-log-row strong {
    font-weight: 700;
}

.status-log-row.complete strong {
    color: var(--success);
}

.status-log-row.warning strong {
    color: var(--warning);
}

.status-log-row.error strong {
    color: #b42318;
}

.result-toolbar {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.result-output {
    min-height: 420px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
    background: #fbfcfe;
    white-space: pre-wrap;
    line-height: 1.62;
}

.result-output:empty::before {
    content: "Het blogbericht verschijnt hier.";
    color: var(--muted);
}

@media (max-width: 991px) {
    .app-shell {
        padding: 16px;
    }

    .step-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .strategy-strip {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .panel {
        padding: 18px;
    }

    .step-grid {
        grid-template-columns: 1fr;
    }
}
