/*
    santi-rdd — stylesheet

    Design note: RDD is a machine that pulls build artifacts apart and puts them
    back together, so the interface is styled as instrumentation rather than as a
    marketing page. Data is monospace throughout, panels have hairline rules and
    a visible "head" strip, and state is carried by a small fixed set of signal
    colours instead of by decoration.
*/

/* ── Tokens ─────────────────────────────────────────────────── */

:root {
    --bg: #0b0c0e;
    --bg-grid: #121417;
    --panel: #101215;
    --panel-raised: #16191d;
    --panel-head: #0e1013;
    --line: #23272d;
    --line-soft: #1a1e22;

    --text: #e7e9eb;
    --text-dim: #9aa1a9;
    --text-faint: #666d75;

    --accent: #ffb84d;
    --accent-dim: #7a5a26;
    --accent-wash: rgba(255, 184, 77, 0.11);

    --ok: #4ade80;
    --ok-wash: rgba(74, 222, 128, 0.12);
    --warn: #fbbf24;
    --warn-wash: rgba(251, 191, 36, 0.12);
    --bad: #f87171;
    --bad-wash: rgba(248, 113, 113, 0.12);
    --info: #7dd3fc;
    --info-wash: rgba(125, 211, 252, 0.12);

    --radius: 10px;
    --radius-sm: 6px;
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 8px 24px -12px rgba(0, 0, 0, .7);

    --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, monospace;
    --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --shell: 1240px;
}

:root[data-theme="light"] {
    --bg: #f7f6f3;
    --bg-grid: #efeee9;
    --panel: #ffffff;
    --panel-raised: #fbfaf8;
    --panel-head: #f3f2ee;
    --line: #dedcd5;
    --line-soft: #e9e7e1;

    --text: #17191c;
    --text-dim: #5c636b;
    --text-faint: #8b9299;

    --accent: #b4700a;
    --accent-dim: #e2b877;
    --accent-wash: rgba(180, 112, 10, 0.09);

    --ok: #15803d;
    --ok-wash: rgba(21, 128, 61, 0.1);
    --warn: #a16207;
    --warn-wash: rgba(161, 98, 7, 0.1);
    --bad: #b91c1c;
    --bad-wash: rgba(185, 28, 28, 0.09);
    --info: #0369a1;
    --info-wash: rgba(3, 105, 161, 0.1);

    --shadow: 0 1px 2px rgba(60, 50, 30, .06), 0 8px 24px -14px rgba(60, 50, 30, .22);
}

/* ── Base ───────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    background-image:
        radial-gradient(ellipse 900px 420px at 50% -8%, var(--accent-wash), transparent 70%),
        linear-gradient(var(--line-soft) 1px, transparent 1px),
        linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
    background-size: auto, 56px 56px, 56px 56px;
    background-position: center top, center top, center top;
    color: var(--text);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

:root[data-theme="light"] body {
    background-image:
        radial-gradient(ellipse 900px 420px at 50% -8%, var(--accent-wash), transparent 70%),
        linear-gradient(var(--line-soft) 1px, transparent 1px),
        linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
}

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: var(--accent); text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); text-underline-offset: 2px; }
a:hover { text-decoration-color: currentColor; }

code, .mono, pre { font-family: var(--mono); font-size: 0.9em; }
code { color: var(--text-dim); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 100;
    background: var(--accent); color: #0b0c0e; padding: 10px 16px; border-radius: 0 0 var(--radius-sm) 0;
    font-weight: 600;
}
.skip-link:focus { left: 0; }

main { max-width: var(--shell); margin: 0 auto; padding: 0 24px 72px; }

/* ── Masthead ───────────────────────────────────────────────── */

.masthead {
    position: sticky; top: 0; z-index: 40;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(14px) saturate(140%);
}

.masthead__inner {
    max-width: var(--shell); margin: 0 auto; padding: 12px 24px;
    display: flex; align-items: center; gap: 24px;
}

.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }

.brand__mark { width: 30px; height: 30px; }
.brand__mark rect { fill: none; stroke: var(--line); }
.brand__mark path { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--mono); font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.brand__host { font-family: var(--mono); font-size: 10.5px; color: var(--text-faint); letter-spacing: 0.01em; }

.ticker {
    flex: 1; min-width: 0;
    display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
}
.ticker::-webkit-scrollbar { display: none; }
.ticker__loading { font-family: var(--mono); font-size: 11.5px; color: var(--text-faint); white-space: nowrap; align-self: center; }

.tick {
    display: flex; align-items: baseline; gap: 7px; flex-shrink: 0;
    padding: 4px 10px; border: 1px solid var(--line); border-radius: 100px;
    background: var(--panel);
    font-family: var(--mono); font-size: 11.5px; white-space: nowrap;
}
.tick__os { color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; font-size: 9.5px; }
.tick__v { color: var(--text); }
.tick__age { color: var(--text-faint); font-size: 10.5px; }
.tick__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ok); align-self: center; box-shadow: 0 0 0 3px var(--ok-wash); }

.masthead__actions { display: flex; gap: 4px; flex-shrink: 0; }

.iconlink {
    display: grid; place-items: center; width: 32px; height: 32px;
    border: 1px solid transparent; border-radius: var(--radius-sm);
    background: none; color: var(--text-dim); cursor: pointer;
}
.iconlink:hover { background: var(--panel-raised); border-color: var(--line); color: var(--text); }
.iconlink svg { width: 16px; height: 16px; }

.icon-sun { display: none; }
:root[data-theme="light"] .icon-moon { display: none; }
:root[data-theme="light"] .icon-sun { display: block; }

/* ── Panels ─────────────────────────────────────────────────── */

.workbench {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 20px;
    padding-top: 32px;
}

.panel {
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--panel); box-shadow: var(--shadow);
    display: flex; flex-direction: column; min-width: 0;
}

.panel__head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 11px 16px; border-bottom: 1px solid var(--line);
    background: var(--panel-head); border-radius: var(--radius) var(--radius) 0 0;
}

.panel__title {
    font-family: var(--mono); font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.11em; color: var(--text-dim);
}

.panel__note { font-family: var(--mono); font-size: 10.5px; color: var(--text-faint); }
.panel__note code { font-size: inherit; color: inherit; }

.panel__body { padding: 20px 18px; display: flex; flex-direction: column; gap: 20px; }

/* ── Fields ─────────────────────────────────────────────────── */

.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field--tiles { border: 0; margin: 0; padding: 0; }

.field__label {
    font-family: var(--mono); font-size: 10.5px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim);
    padding: 0;
}
.field__value { color: var(--accent); }
.field__hint { font-size: 12px; color: var(--text-faint); line-height: 1.45; }
.field__hint code { font-size: 11px; }

.field-row { display: grid; grid-template-columns: 1fr 168px; gap: 14px; }
.field--narrow { min-width: 0; }

.input {
    width: 100%; padding: 9px 11px;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--bg-grid); color: var(--text);
    font-family: var(--sans); font-size: 14px;
    transition: border-color .12s, box-shadow .12s;
}
.input--mono { font-family: var(--mono); font-size: 13px; }
.input::placeholder { color: var(--text-faint); }
.input:hover { border-color: color-mix(in srgb, var(--line) 60%, var(--text-faint)); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }

select.input {
    appearance: none; cursor: pointer; padding-right: 30px;
    background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
    background-position: calc(100% - 15px) 51%, calc(100% - 11px) 51%;
    background-size: 4px 4px, 4px 4px;
    background-repeat: no-repeat;
}

.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; min-width: 0; }

/* Binary type tiles */

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }

.tile { position: relative; cursor: pointer; }
.tile input { position: absolute; opacity: 0; width: 0; height: 0; }

.tile__inner {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 13px 6px 11px;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--bg-grid); text-align: center;
    transition: border-color .12s, background .12s, transform .12s;
}
.tile:hover .tile__inner { border-color: var(--accent-dim); transform: translateY(-1px); }

.tile__os { width: 15px; height: 15px; color: var(--text-faint); transition: color .12s; }
.tile__product { font-size: 13px; font-weight: 600; letter-spacing: -0.01em; }
.tile__platform { font-family: var(--mono); font-size: 9.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.07em; }

.tile input:checked + .tile__inner {
    border-color: var(--accent); background: var(--accent-wash);
    box-shadow: inset 0 0 0 1px var(--accent);
}
.tile input:checked + .tile__inner .tile__os { color: var(--accent); }
.tile input:focus-visible + .tile__inner { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Advanced disclosure */

.advanced { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-grid); }

.advanced__summary {
    padding: 9px 12px; cursor: pointer; list-style: none;
    font-family: var(--mono); font-size: 10.5px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim);
    display: flex; align-items: center; gap: 8px;
}
.advanced__summary::-webkit-details-marker { display: none; }
.advanced__summary::before {
    content: ""; width: 0; height: 0;
    border-left: 4px solid currentColor; border-top: 3.5px solid transparent; border-bottom: 3.5px solid transparent;
    transition: transform .15s;
}
.advanced[open] .advanced__summary::before { transform: rotate(90deg); }
.advanced__summary:hover { color: var(--text); }

.advanced__body { padding: 4px 12px 14px; display: flex; flex-direction: column; gap: 16px; }

/* Switch */

.switch { display: flex; gap: 11px; align-items: flex-start; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }

.switch__track {
    flex-shrink: 0; margin-top: 2px;
    width: 34px; height: 20px; padding: 2px;
    border: 1px solid var(--line); border-radius: 100px; background: var(--panel);
    transition: background .15s, border-color .15s;
}
.switch__thumb {
    display: block; width: 14px; height: 14px; border-radius: 50%;
    background: var(--text-faint); transition: transform .15s, background .15s;
}
.switch input:checked + .switch__track { background: var(--accent-wash); border-color: var(--accent); }
.switch input:checked + .switch__track .switch__thumb { transform: translateX(14px); background: var(--accent); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--accent); outline-offset: 2px; }

.switch__text { display: flex; flex-direction: column; gap: 1px; }
.switch__title { font-size: 13.5px; font-weight: 500; }
.switch__sub { font-size: 12px; color: var(--text-faint); line-height: 1.45; }

/* Range */

.range { width: 100%; height: 20px; appearance: none; background: none; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: var(--line); }
.range::-moz-range-track { height: 3px; border-radius: 2px; background: var(--line); }
.range::-webkit-slider-thumb {
    appearance: none; margin-top: -6px; width: 15px; height: 15px; border-radius: 50%;
    background: var(--accent); border: 2px solid var(--bg);
}
.range::-moz-range-thumb { width: 15px; height: 15px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); }
.range__ends { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; color: var(--text-faint); }

/* ── Buttons ────────────────────────────────────────────────── */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    padding: 9px 15px; border-radius: var(--radius-sm);
    border: 1px solid var(--line); background: var(--panel-raised); color: var(--text);
    font-family: var(--sans); font-size: 13.5px; font-weight: 500; cursor: pointer;
    transition: background .12s, border-color .12s, color .12s, opacity .12s;
    white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; }
.btn:hover:not(:disabled) { border-color: var(--text-faint); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.btn--primary {
    background: var(--accent); border-color: var(--accent);
    color: #14100a; font-weight: 600;
}
.btn--primary:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 86%, #fff); border-color: color-mix(in srgb, var(--accent) 86%, #fff); }
:root[data-theme="light"] .btn--primary { color: #fff; }

.btn--ghost { background: transparent; color: var(--text-dim); }
.btn--ghost:hover:not(:disabled) { background: var(--panel-raised); color: var(--text); }

.btn--danger { background: transparent; border-color: color-mix(in srgb, var(--bad) 45%, transparent); color: var(--bad); }
.btn--danger:hover:not(:disabled) { background: var(--bad-wash); }

.btn--small { padding: 6px 11px; font-size: 12.5px; }

.actions { display: flex; gap: 9px; flex-wrap: wrap; }
.actions .btn--primary { flex: 1; min-width: 200px; }

.permalink {
    font-family: var(--mono); font-size: 10.5px; color: var(--text-faint);
    word-break: break-all; line-height: 1.5;
    padding-top: 2px;
}

/* ── Console ────────────────────────────────────────────────── */

.panel--console { min-height: 480px; }

.status-pill {
    font-family: var(--mono); font-size: 10px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.09em;
    padding: 3px 9px; border-radius: 100px;
    border: 1px solid var(--line); color: var(--text-faint); background: var(--panel);
    display: inline-flex; align-items: center; gap: 6px;
}
.status-pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-pill[data-state="running"] { color: var(--accent); border-color: var(--accent-dim); background: var(--accent-wash); }
.status-pill[data-state="running"]::before { animation: pulse 1.1s ease-in-out infinite; }
.status-pill[data-state="done"] { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: var(--ok-wash); }
.status-pill[data-state="error"] { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); background: var(--bad-wash); }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.progress { padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--panel-head); }

.progress__bar { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.progress__fill {
    height: 100%; width: 0%; border-radius: 2px;
    background: linear-gradient(90deg, var(--accent-dim), var(--accent));
    transition: width .25s ease-out;
}

.progress__meta {
    display: flex; justify-content: space-between; gap: 12px;
    margin-top: 8px; font-size: 12px; color: var(--text-dim);
}
.progress__meta .mono { font-size: 11px; color: var(--text-faint); white-space: nowrap; }

/* One cell per package — you can watch the deployment fill in. */
.pkggrid { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 10px; }
.pkggrid:empty { display: none; }
.pkgcell {
    width: 9px; height: 9px; border-radius: 2px;
    background: var(--line); transition: background .2s;
}
.pkgcell[data-state="active"] { background: var(--accent); animation: pulse 1s ease-in-out infinite; }
.pkgcell[data-state="done"] { background: var(--ok); }
.pkgcell[data-state="warn"] { background: var(--warn); }

.console {
    flex: 1; overflow-y: auto; padding: 14px 16px;
    font-family: var(--mono); font-size: 12px; line-height: 1.7;
    max-height: 560px; scrollbar-width: thin;
}
.console::-webkit-scrollbar { width: 9px; }
.console::-webkit-scrollbar-thumb { background: var(--line); border-radius: 5px; border: 2px solid var(--panel); }

.console__empty { font-family: var(--sans); font-size: 13.5px; color: var(--text-faint); line-height: 1.6; max-width: 46ch; }
.console__empty strong { color: var(--text-dim); }

.line { display: flex; gap: 9px; padding: 1px 0; word-break: break-word; }
.line__glyph { flex-shrink: 0; width: 12px; text-align: center; }
.line__text { min-width: 0; }
.line[data-kind="step"] .line__glyph { color: var(--info); }
.line[data-kind="ok"] .line__glyph { color: var(--ok); }
.line[data-kind="warn"] { color: var(--warn); }
.line[data-kind="warn"] .line__glyph { color: var(--warn); }
.line[data-kind="error"] { color: var(--bad); }
.line[data-kind="error"] .line__glyph { color: var(--bad); }
.line[data-kind="info"] { color: var(--text-dim); }

.console__download {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 12px;
    padding: 10px 14px; border-radius: var(--radius-sm);
    border: 1px solid var(--ok); background: var(--ok-wash); color: var(--ok);
    font-family: var(--sans); font-size: 13px; font-weight: 600; cursor: pointer;
}
.console__download:hover { background: color-mix(in srgb, var(--ok) 20%, transparent); }

/* ── Sections ───────────────────────────────────────────────── */

.section { padding-top: 52px; }

.section__head {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
    flex-wrap: wrap; margin-bottom: 18px;
    padding-bottom: 14px; border-bottom: 1px solid var(--line);
}

.section__title { font-size: 19px; letter-spacing: -0.02em; }
.section__sub { font-size: 13.5px; color: var(--text-dim); margin-top: 3px; max-width: 68ch; }

.section__tools { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }

.input--search { width: 210px; padding: 7px 11px; font-size: 13px; }

.segmented { display: flex; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--panel); }
.segmented__btn {
    padding: 7px 12px; border: 0; background: none; color: var(--text-dim);
    font-family: var(--sans); font-size: 12.5px; cursor: pointer;
    border-right: 1px solid var(--line);
}
.segmented__btn:last-child { border-right: 0; }
.segmented__btn:hover { background: var(--panel-raised); color: var(--text); }
.segmented__btn.is-active { background: var(--accent-wash); color: var(--accent); font-weight: 600; }

/* Version cards */

.vgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); gap: 14px; }

.vcard {
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--panel); overflow: hidden;
}
.vcard--skeleton { height: 178px; background: linear-gradient(100deg, var(--panel) 30%, var(--panel-raised) 50%, var(--panel) 70%); background-size: 300% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -300% 0; } }

.vcard__head {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--panel-head);
}
.vcard__title { font-family: var(--mono); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); }

.vcard__tag {
    font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
    padding: 2.5px 7px; border-radius: 100px; border: 1px solid currentColor;
}
.vcard__tag[data-tone="live"] { color: var(--ok); background: var(--ok-wash); }
.vcard__tag[data-tone="future"] { color: var(--info); background: var(--info-wash); }
.vcard__tag[data-tone="past"] { color: var(--text-faint); background: var(--panel-raised); }

.vcard__rows { padding: 4px 0; }

.vrow {
    display: grid; grid-template-columns: 74px 1fr; align-items: baseline; gap: 10px;
    padding: 8px 14px; border-bottom: 1px solid var(--line-soft);
}
.vrow:last-child { border-bottom: 0; }
.vrow__os { font-family: var(--mono); font-size: 10.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; }
.vrow__body { min-width: 0; }
.vrow__version { font-family: var(--mono); font-size: 12px; word-break: break-all; display: block; }
.vrow__age { font-size: 11px; color: var(--text-faint); }

.vrow__use {
    display: inline-block; margin-left: 8px;
    font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em;
    color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer;
    text-decoration: underline; text-underline-offset: 2px;
}
.vrow__use:hover { color: var(--text); }

.vcard__empty, .panel-error {
    padding: 16px 14px; font-size: 13px; color: var(--text-faint); line-height: 1.55;
}
.panel-error {
    grid-column: 1 / -1;
    border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent);
    border-radius: var(--radius); background: var(--warn-wash); color: var(--warn);
}

/* Executor cards */

.exec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(288px, 1fr)); gap: 12px; }

.exec-card {
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--panel); padding: 14px;
    display: flex; flex-direction: column; gap: 11px;
    transition: border-color .12s;
}
.exec-card:hover { border-color: color-mix(in srgb, var(--line) 50%, var(--text-faint)); }
.exec-card--skeleton { height: 176px; background: linear-gradient(100deg, var(--panel) 30%, var(--panel-raised) 50%, var(--panel) 70%); background-size: 300% 100%; animation: shimmer 1.4s linear infinite; border-color: var(--line); }

.exec-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.exec-card__identity { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.exec-card__logo {
    flex-shrink: 0; width: 32px; height: 32px; border-radius: 7px;
    object-fit: cover; background: var(--bg-grid); border: 1px solid var(--line);
}
.exec-card__name { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.exec-card__ver { font-family: var(--mono); font-size: 11px; color: var(--text-faint); display: block; margin-top: 1px; }

.state {
    flex-shrink: 0;
    font-family: var(--mono); font-size: 9.5px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.07em;
    padding: 3px 8px; border-radius: 100px; border: 1px solid currentColor;
}
.state[data-state="current"] { color: var(--ok); background: var(--ok-wash); }
.state[data-state="behind"] { color: var(--warn); background: var(--warn-wash); }
.state[data-state="patched"] { color: var(--bad); background: var(--bad-wash); }
.state[data-state="unknown"] { color: var(--text-faint); background: var(--panel-raised); }

.bars { display: flex; flex-direction: column; gap: 6px; }
.bar { display: grid; grid-template-columns: 40px 1fr 38px; align-items: center; gap: 9px; }
.bar__label { font-family: var(--mono); font-size: 9.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; }
.bar__track { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.bar__fill { height: 100%; border-radius: 2px; background: var(--accent); }
.bar__fill[data-tone="high"] { background: var(--ok); }
.bar__fill[data-tone="mid"] { background: var(--warn); }
.bar__fill[data-tone="low"] { background: var(--bad); }
.bar__pct { font-family: var(--mono); font-size: 10.5px; color: var(--text-dim); text-align: right; }

.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip {
    font-family: var(--mono); font-size: 10px; letter-spacing: 0.02em;
    padding: 2.5px 7px; border-radius: var(--radius-sm);
    border: 1px solid var(--line); background: var(--bg-grid); color: var(--text-faint);
}
.chip[data-tone="ok"] { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); background: var(--ok-wash); }
.chip[data-tone="bad"] { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, transparent); background: var(--bad-wash); }
.chip[data-tone="accent"] { color: var(--accent); border-color: var(--accent-dim); background: var(--accent-wash); }

.exec-card__foot {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line-soft);
}
.exec-card__rbx { font-family: var(--mono); font-size: 10px; color: var(--text-faint); word-break: break-all; min-width: 0; }
.exec-card__get {
    flex-shrink: 0; font-family: var(--mono); font-size: 10.5px;
    color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer;
    text-decoration: underline; text-underline-offset: 2px;
}
.exec-card__get:hover { color: var(--text); }

.empty-note { grid-column: 1 / -1; padding: 28px 0; text-align: center; color: var(--text-faint); font-size: 13.5px; }

/* Usage */

.usage { display: flex; flex-direction: column; gap: 16px; }

.usage__code {
    margin: 0; padding: 13px 15px; overflow-x: auto;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--panel); font-size: 12px; color: var(--text-dim);
}
.usage__code code { color: inherit; font-size: inherit; }

.usage__params { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; margin: 0; font-size: 13px; }
.usage__params dt { font-family: var(--mono); font-size: 12px; }
.usage__params dt code { color: var(--accent); }
.usage__params dd { margin: 0; color: var(--text-dim); }
.usage__params dd code { font-size: 11.5px; }

.usage__note { font-size: 12.5px; color: var(--text-faint); }

/* ── Footer ─────────────────────────────────────────────────── */

.footer { border-top: 1px solid var(--line); background: var(--panel-head); margin-top: 40px; }
.footer__inner { max-width: var(--shell); margin: 0 auto; padding: 36px 24px 44px; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 40px; }

.credit__title { font-family: var(--mono); font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.11em; color: var(--text-dim); margin-bottom: 12px; }
.credit__list { display: flex; flex-direction: column; gap: 11px; font-size: 13px; color: var(--text-dim); line-height: 1.6; }
.credit__list strong { color: var(--text); font-weight: 600; }

.footer__meta { display: flex; flex-direction: column; gap: 12px; font-size: 12.5px; color: var(--text-faint); line-height: 1.6; }
.footer__links { display: flex; gap: 9px; flex-wrap: wrap; }

/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 1000px) {
    .workbench { grid-template-columns: 1fr; }
    .panel--console { min-height: 380px; }
    .footer__inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 680px) {
    main { padding: 0 16px 56px; }
    .masthead__inner { padding: 10px 16px; gap: 14px; flex-wrap: wrap; }
    .ticker { order: 3; width: 100%; flex-basis: 100%; }
    .masthead__actions { margin-left: auto; }
    .tiles { grid-template-columns: repeat(2, 1fr); }
    .field-row { grid-template-columns: 1fr; }
    .section__head { align-items: flex-start; }
    .section__tools { width: 100%; }
    .input--search { flex: 1; width: auto; min-width: 140px; }
    .actions .btn--primary { min-width: 0; width: 100%; }
    .footer__inner { padding: 28px 16px 36px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
