/* Ananas API test bench */

:root {
    --bg: #f5f6f8;
    --panel: #ffffff;
    --panel-2: #f8f9fb;
    --code-bg: #f4f6f9;
    --border: #e2e5ea;
    --border-strong: #cfd4dc;
    --text: #1b2130;
    --muted: #697185;
    --accent: #2563eb;
    --accent-soft: #e8efff;
    --brand: #f2b705;

    --passed: #1a8f4c;
    --passed-soft: #e5f5ec;
    --failed: #d03535;
    --failed-soft: #fdecec;
    --error: #b4530b;
    --error-soft: #fdf1e3;
    --dry: #5b5bd6;
    --dry-soft: #eeeefd;
    --none: #c3c8d1;
    --note: #8a6100;
    --note-soft: #fff7df;

    --radius: 10px;
    --mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, "Liberation Mono", monospace;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #11141a;
        --panel: #181c24;
        --panel-2: #1d222b;
        --code-bg: #12161d;
        --border: #2a303b;
        --border-strong: #3a4250;
        --text: #e4e7ec;
        --muted: #9199a8;
        --accent: #6c9cff;
        --accent-soft: #1d2a45;
        --passed: #3fbf72;
        --passed-soft: #15291e;
        --failed: #f06464;
        --failed-soft: #341c1f;
        --error: #f0a04b;
        --error-soft: #33261a;
        --dry: #9696ff;
        --dry-soft: #23234a;
        --none: #4a5160;
        --note: #f2c44d;
        --note-soft: #2e2817;
        color-scheme: dark;
    }
}

* { box-sizing: border-box; }

html { scroll-padding-top: 72px; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 14px/1.5 var(--sans);
}

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

code, pre, kbd { font-family: var(--mono); font-size: 12.5px; }

h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
h1 { font-size: 24px; font-weight: 650; letter-spacing: -0.01em; }
h2 { font-size: 15px; font-weight: 650; }
h3 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 18px 0 6px; }
h4 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 8px; }

.muted { color: var(--muted); }
.small { font-size: 12.5px; }
[hidden] { display: none !important; }

/* ---------- Top bar ---------- */

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 18px;
    height: 54px;
    padding: 0 20px;
    background: #141821;
    color: #e8eaef;
    border-bottom: 1px solid #000;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 650;
    font-size: 15px;
}
.brand:hover { text-decoration: none; }
.brand-mark { width: 24px; height: 24px; }
.brand-sub { color: #9aa3b5; font-weight: 450; }

.env {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 6px;
    border-radius: 999px;
    background: #222836;
    font-size: 12px;
}
.env code { color: #c8cedb; font-size: 12px; }
.env-label {
    padding: 1px 8px;
    border-radius: 999px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 10.5px;
    background: #3b4458;
}
.env-staging .env-label { background: #1f5d3a; color: #c8f5d9; }
.env-production .env-label { background: #8a1f1f; color: #ffd9d9; }

.topnav { margin-left: auto; display: flex; gap: 18px; }
.topnav a { color: #c8cedb; }
.topnav a:hover { color: #fff; text-decoration: none; }

/* ---------- Layout ---------- */

.shell {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    min-height: calc(100vh - 54px);
}

.main {
    padding: 28px 36px 80px;
    max-width: 1280px;
    width: 100%;
}

/* ---------- Sidebar ---------- */

.sidebar {
    position: sticky;
    top: 54px;
    height: calc(100vh - 54px);
    overflow-y: auto;
    background: var(--panel);
    border-right: 1px solid var(--border);
    padding: 14px 10px 40px;
}

.sidebar-search { position: relative; margin: 0 4px 10px; }
.sidebar-search input {
    width: 100%;
    padding: 7px 30px 7px 10px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: var(--panel-2);
    color: var(--text);
    font: inherit;
}
.sidebar-search input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.sidebar-search kbd {
    position: absolute;
    right: 8px;
    top: 7px;
    padding: 0 5px;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--muted);
    font-size: 11px;
}

.nav-section + .nav-section { margin-top: 12px; }
.nav-title {
    padding: 6px 8px 4px;
    font-size: 11px;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}
.nav-section ul { list-style: none; margin: 0; padding: 0; }

.nav-test {
    display: grid;
    grid-template-columns: 10px auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    border-radius: 6px;
    color: var(--text);
    font-size: 13px;
}
.nav-test:hover { background: var(--panel-2); text-decoration: none; }
.nav-test.is-current { background: var(--accent-soft); }
.nav-id { font-family: var(--mono); font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.nav-test.is-current .nav-id { color: var(--accent); }
.nav-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Status dots & flags ---------- */

.dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--none);
    flex: none;
}
.dot-passed { background: var(--passed); }
.dot-failed { background: var(--failed); }
.dot-error { background: var(--error); }
.dot-dry { background: transparent; box-shadow: inset 0 0 0 2px var(--dry); }
.dot-none { background: transparent; box-shadow: inset 0 0 0 1.5px var(--none); }

.flag {
    display: inline-grid;
    place-items: center;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    background: var(--note-soft);
    color: var(--note);
    font-size: 11px;
    font-weight: 800;
    flex: none;
}
.flag-inline { vertical-align: -2px; }

/* ---------- Generic blocks ---------- */

.card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-bottom: 18px;
}

.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card-actions { display: flex; gap: 6px; }

.count {
    display: inline-block;
    min-width: 20px;
    padding: 0 6px;
    margin-left: 4px;
    border-radius: 999px;
    background: var(--panel-2);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 600;
    text-align: center;
    vertical-align: 1px;
}

.lede { margin: 6px 0 0; color: var(--muted); max-width: 72ch; }
.lede code { color: var(--text); }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 7px;
    background: var(--panel);
    color: var(--text);
    font: inherit;
    font-weight: 550;
    cursor: pointer;
}
.btn:hover { background: var(--panel-2); text-decoration: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent); filter: brightness(1.08); }
.btn-ghost { background: transparent; }
.btn-small { padding: 3px 9px; font-size: 12px; font-weight: 500; }

.tag, .pill, .chip {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid var(--border);
    background: var(--panel-2);
    color: var(--muted);
}
.tag-writes { background: var(--error-soft); border-color: transparent; color: var(--error); }
.pill-dry { background: var(--dry-soft); border-color: transparent; color: var(--dry); }

.chip.type-positive { background: var(--passed-soft); color: var(--passed); border-color: transparent; }
.chip.type-negative { background: var(--failed-soft); color: var(--failed); border-color: transparent; }
.chip.type-security { background: var(--dry-soft); color: var(--dry); border-color: transparent; }
.chip.type-boundary, .chip.type-validation { background: var(--note-soft); color: var(--note); border-color: transparent; }
.chip.type-functional { background: var(--accent-soft); color: var(--accent); border-color: transparent; }

.callout {
    border-radius: 8px;
    padding: 12px 14px;
    margin: 0 0 16px;
    border: 1px solid transparent;
}
.callout p { margin: 6px 0 0; }
.callout-note { background: var(--note-soft); color: var(--text); margin: 0 0 12px; }
.callout-discrepancy { background: var(--note-soft); border-color: color-mix(in srgb, var(--note) 25%, transparent); }
.callout-discrepancy strong { color: var(--note); }
.callout-error { background: var(--failed-soft); border-color: color-mix(in srgb, var(--failed) 25%, transparent); }
.callout-error strong { color: var(--failed); }
.callout-warning { background: var(--error-soft); border-color: color-mix(in srgb, var(--error) 25%, transparent); }
.callout-warning strong { color: var(--error); }
.callout .section-note { font-size: 13px; }

.endpoints { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.endpoints code {
    padding: 2px 7px;
    border-radius: 5px;
    background: var(--code-bg);
    border: 1px solid var(--border);
    font-size: 11.5px;
}

.empty { padding: 60px 0; }
.empty p { color: var(--muted); }

/* ---------- Overview ---------- */

.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 20px; }

.stats {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 18px;
}
.stats-numbers { display: flex; gap: 36px; flex-wrap: wrap; margin-bottom: 12px; }
.stat b { display: block; font-size: 24px; font-weight: 650; line-height: 1.1; }
.stat span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; }
.stat-passed b { color: var(--passed); }
.stat-failed b { color: var(--failed); }
.stat-error b { color: var(--error); }
.stat-dry b { color: var(--dry); }

.stack-bar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: var(--panel-2); gap: 2px; }
.seg-passed { background: var(--passed); }
.seg-failed { background: var(--failed); }
.seg-error { background: var(--error); }
.seg-dry { background: var(--dry); opacity: 0.6; }
.seg-none { background: var(--none); opacity: 0.6; }

.section-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-head p { margin: 6px 0 0; max-width: 80ch; }
.section-meta { display: flex; align-items: flex-start; gap: 10px; flex: none; }
.section-meta code { font-size: 11.5px; }

.tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 10px;
}

.tile {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--none);
    border-radius: 8px;
    background: var(--panel);
    color: var(--text);
    min-height: 92px;
}
.tile:hover { text-decoration: none; border-color: var(--border-strong); box-shadow: 0 2px 8px rgb(0 0 0 / 0.06); }
.tile-top { display: flex; justify-content: space-between; align-items: center; }
.tile-id { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.tile-name { font-weight: 550; font-size: 13px; line-height: 1.35; }
.tile-meta { margin-top: auto; display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.tile-passed { border-left-color: var(--passed); }
.tile-failed { border-left-color: var(--failed); background: color-mix(in srgb, var(--failed-soft) 45%, var(--panel)); }
.tile-error { border-left-color: var(--error); background: color-mix(in srgb, var(--error-soft) 45%, var(--panel)); }
.tile-dry { border-left-color: var(--dry); }

.params { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px 20px; }
.param { display: flex; flex-direction: column; gap: 2px; }
.param-key { font-family: var(--mono); font-size: 12px; font-weight: 600; }
.param-hint { font-size: 12px; color: var(--muted); }
.param input {
    margin-top: 4px;
    padding: 6px 9px;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    background: var(--panel);
    color: var(--text);
    font: 12.5px var(--mono);
}
.param input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.param.is-overridden input { border-color: var(--dry); background: var(--dry-soft); }
.param-env { font-size: 11.5px; color: var(--dry); }
.param-readonly code { margin-top: 4px; padding: 6px 9px; border-radius: 6px; background: var(--panel-2); border: 1px dashed var(--border-strong); }
.params-actions { grid-column: 1 / -1; display: flex; gap: 8px; }

/* ---------- Test page ---------- */

.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.pager { margin-left: auto; display: flex; gap: 14px; font-family: var(--mono); font-size: 12px; }

.test-head { margin-bottom: 18px; }
.test-id { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.test-id > code { font-size: 13px; font-weight: 600; color: var(--accent); margin-right: 4px; }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: stretch; margin-bottom: 18px; }
.grid-2 > .card { margin-bottom: 0; }

.spec h3:first-of-type { margin-top: 12px; }
.steps { margin: 0; padding-left: 20px; }
.steps li + li { margin-top: 3px; }
.expected { margin: 0; padding: 8px 12px; background: var(--panel-2); border-left: 3px solid var(--passed); border-radius: 4px; }

.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; margin: 12px 0 4px; }
.kv dt { font-family: var(--mono); font-size: 11.5px; color: var(--muted); padding-top: 2px; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.run-actions { display: flex; gap: 8px; margin: 16px 0 8px; flex-wrap: wrap; }

.code-card { padding: 0; overflow: hidden; }
.code-card > summary {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 14px 20px;
    cursor: pointer;
    list-style: none;
}
.code-card > summary::-webkit-details-marker { display: none; }
.code-card > summary::before { content: "▸"; color: var(--muted); transition: transform 0.15s; }
.code-card[open] > summary::before { transform: rotate(90deg); }
.code-card > summary .muted { font-size: 12.5px; }

.code {
    border-top: 1px solid var(--border);
    background: var(--code-bg);
    padding: 10px 0;
    max-height: 520px;
    overflow: auto;
    font: 12.5px/1.6 var(--mono);
}
.ln { display: grid; grid-template-columns: 22px 44px 1fr; white-space: pre; }
.ln-mark { text-align: center; font-weight: 700; }
.ln-no { color: var(--muted); opacity: 0.6; text-align: right; padding-right: 14px; user-select: none; }
.ln-passed { background: color-mix(in srgb, var(--passed-soft) 70%, transparent); }
.ln-passed .ln-mark { color: var(--passed); }
.ln-failed { background: var(--failed-soft); }
.ln-failed .ln-mark { color: var(--failed); }
.ln-error { background: var(--error-soft); }
.ln-error .ln-mark, .ln-warning .ln-mark { color: var(--error); }
.ln-warning { background: color-mix(in srgb, var(--error-soft) 60%, transparent); }
.code-foot { padding: 8px 20px 12px; margin: 0; border-top: 1px solid var(--border); background: var(--code-bg); }

.c-comment { color: #7a8394; font-style: italic; }
.c-string { color: #0a7d4f; }
.c-var { color: #8a3ffc; }
.c-num { color: #c2410c; }
.c-kw { color: #c2185b; font-weight: 600; }
.c-fn { color: #1d5fd1; }
.c-class { color: #a16207; }
@media (prefers-color-scheme: dark) {
    .c-string { color: #7fd6a4; }
    .c-var { color: #c4a5ff; }
    .c-num { color: #ffab70; }
    .c-kw { color: #ff79b0; }
    .c-fn { color: #79b8ff; }
    .c-class { color: #ffd479; }
}

.empty-result p { margin: 0; color: var(--muted); }

/* ---------- Result ---------- */

.result-banner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 12px;
    border: 1px solid var(--border);
    background: var(--panel);
}
.outcome-pill {
    padding: 3px 12px;
    border-radius: 999px;
    color: #fff;
    font-weight: 700;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.outcome-passed { border-color: color-mix(in srgb, var(--passed) 35%, transparent); background: var(--passed-soft); }
.outcome-passed .outcome-pill { background: var(--passed); }
.outcome-failed { border-color: color-mix(in srgb, var(--failed) 35%, transparent); background: var(--failed-soft); }
.outcome-failed .outcome-pill { background: var(--failed); }
.outcome-error { border-color: color-mix(in srgb, var(--error) 35%, transparent); background: var(--error-soft); }
.outcome-error .outcome-pill { background: var(--error); }
.result-banner.is-dry { background: var(--dry-soft); border-color: color-mix(in srgb, var(--dry) 30%, transparent); }
.result-banner.is-dry .outcome-pill { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1.5px currentColor; }
.result-meta { color: var(--muted); font-size: 13px; }
.result > .muted { margin: -4px 0 14px; }

.warnings { margin: 6px 0 0; padding-left: 18px; }
.warnings code { font-size: 11.5px; }

.assertions { width: 100%; border-collapse: collapse; margin-top: 8px; }
.assertions th { text-align: left; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); padding: 6px 10px; border-bottom: 1px solid var(--border); }
.assertions td { padding: 7px 10px; border-bottom: 1px solid var(--border); vertical-align: top; overflow-wrap: anywhere; }
.assertions tr:last-child td { border-bottom: 0; }
.assertions .mark { width: 24px; font-weight: 700; }
.assertions .is-passed .mark { color: var(--passed); }
.assertions .is-failed { background: var(--failed-soft); }
.assertions .is-failed .mark { color: var(--failed); }

/* ---------- Exchanges ---------- */

.exchange { border: 1px solid var(--border); border-radius: 8px; margin-top: 8px; background: var(--panel); }
.exchange.has-error { border-color: color-mix(in srgb, var(--failed) 40%, var(--border)); }
.exchange > summary {
    display: grid;
    grid-template-columns: 24px auto minmax(0, 1fr) auto auto 64px 120px;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    list-style: none;
}
.exchange > summary::-webkit-details-marker { display: none; }
.exchange > summary:hover { background: var(--panel-2); border-radius: 8px; }
.exchange[open] > summary { border-bottom: 1px solid var(--border); border-radius: 8px 8px 0 0; }
.exchange > summary > .pill-dry:only-of-type { justify-self: start; }
.ex-index { color: var(--muted); font: 12px var(--mono); text-align: right; }
.ex-path { font: 12.5px var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-time { font: 12px var(--mono); color: var(--muted); text-align: right; }

.wf { position: relative; height: 6px; background: var(--panel-2); border-radius: 99px; overflow: hidden; }
.wf > span { position: absolute; top: 0; bottom: 0; background: var(--accent); border-radius: 99px; opacity: 0.75; }
.exchange.has-error .wf > span { background: var(--failed); }

.method {
    display: inline-block;
    min-width: 44px;
    padding: 1px 6px;
    border-radius: 4px;
    font: 700 11px var(--mono);
    text-align: center;
    background: var(--panel-2);
    color: var(--muted);
}
.m-get { background: #e3f1ff; color: #1767b8; }
.m-post { background: #e5f6ea; color: #17803d; }
.m-put { background: #fff2dc; color: #a75b00; }
.m-delete { background: #fde8e8; color: #b42318; }
@media (prefers-color-scheme: dark) {
    .m-get { background: #16304d; color: #8cc4ff; }
    .m-post { background: #173525; color: #7fdba0; }
    .m-put { background: #3b2b12; color: #ffc46b; }
    .m-delete { background: #3d1a1a; color: #ff9b9b; }
}

.ex-status { font: 600 12px var(--mono); padding: 1px 7px; border-radius: 4px; white-space: nowrap; }
.st-2xx { background: var(--passed-soft); color: var(--passed); }
.st-3xx { background: var(--accent-soft); color: var(--accent); }
.st-4xx { background: var(--note-soft); color: var(--note); }
.st-5xx { background: var(--failed-soft); color: var(--failed); }
.st-none { background: var(--failed-soft); color: var(--failed); }

.ex-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ex-col { padding: 14px 16px; min-width: 0; }
.ex-col + .ex-col { border-left: 1px solid var(--border); }
.ex-url { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.ex-url code { overflow-wrap: anywhere; font-size: 12px; }

.headers {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 3px 12px;
    margin: 0 0 12px;
    padding: 8px 10px;
    background: var(--panel-2);
    border-radius: 6px;
    font: 12px/1.5 var(--mono);
}
.headers dt { color: var(--muted); white-space: nowrap; }
.headers dd { margin: 0; overflow-wrap: anywhere; }

.body-block { position: relative; }
.body-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.body-block pre {
    margin: 0;
    padding: 10px 12px;
    max-height: 420px;
    overflow: auto;
    background: var(--code-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 12px;
    line-height: 1.5;
}
.body-empty { margin: 0; }

.curl { border-top: 1px solid var(--border); }
.curl > summary { padding: 7px 16px; cursor: pointer; font-size: 12px; color: var(--muted); }
.curl .body-block { padding: 0 16px 14px; }
.curl .copy { position: absolute; top: 6px; right: 22px; }

/* ---------- Running overlay ---------- */

.running {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    background: rgb(10 14 22 / 0.35);
    backdrop-filter: blur(1px);
}
.running-box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    border-radius: 12px;
    background: var(--panel);
    border: 1px solid var(--border);
    box-shadow: 0 10px 40px rgb(0 0 0 / 0.2);
}
.running-box div { display: flex; flex-direction: column; }
.running-box span { color: var(--muted); font-size: 12.5px; }
.spinner {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 3px solid var(--accent-soft);
    border-top-color: var(--accent);
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Narrow screens ---------- */

@media (max-width: 1100px) {
    .grid-2, .ex-body { grid-template-columns: minmax(0, 1fr); }
    .ex-col + .ex-col { border-left: 0; border-top: 1px solid var(--border); }
    .exchange > summary { grid-template-columns: 24px auto minmax(0, 1fr) auto auto 64px; }
    .wf { display: none; }
}

@media (max-width: 820px) {
    .shell { grid-template-columns: minmax(0, 1fr); }
    .sidebar { position: static; height: auto; max-height: 40vh; border-right: 0; border-bottom: 1px solid var(--border); }
    .main { padding: 20px 16px 60px; }
    .env code { display: none; }
}

@media (prefers-color-scheme: dark) {
    .btn-primary { color: #0b1530; }
}
