/* spec_lr_steps_1126 — the stepper and the run screens, restyled in place (guide: The
   stepper; Module run screens; Lamps). Nothing here moves a layout. */

/* the stepper: one pill-shaped strip under the page head */
.lr-stepper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin: 0 0 24px;
    padding: 6px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    background: var(--bg-input);
}
.lr-stepper__step {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid transparent;
    border-radius: var(--radius-xl);
    background: none;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
}
.lr-stepper__step:hover, .lr-stepper__step:focus-visible { color: var(--text); }
.lr-stepper__step.is-current { border-color: var(--slate); background: var(--bg-card); color: var(--text); }
.lr-stepper__step:disabled { opacity: 0.45; cursor: not-allowed; }
.lr-stepper__sep { width: 14px; border-top: 1px dashed var(--mist); }

/* the two run panels: lit, with the estimate in gold on Night */
#q-run-panel, #qt-run-panel {
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
}
#q-run-panel .mf-hero, #qt-run-panel .mf-hero {
    display: inline-block;
    padding: 14px 18px;
    border-radius: var(--radius);
    background: var(--night);
    color: var(--gold-text);
}

/* readiness as lamps: lit when done, hollow when not */
.q-readiness li[data-ok] { display: flex; align-items: center; gap: 10px; }
.q-readiness li[data-ok]::before,
.q-ready-item > span:first-child {
    content: "";
    flex: none;
    width: 12px;
    height: 12px;
    border: 1.5px solid var(--mist);
    border-radius: var(--radius-round);
    box-sizing: border-box;
}
.q-ready-item > span:first-child { font-size: 0; }
.q-readiness li[data-ok="1"]::before,
.q-ready-item[data-ok="1"] > span:first-child {
    border-color: var(--gold);
    background: var(--gold);
    box-shadow: var(--shadow-lamp-rest);
}

/* the last-run line: gold when it completed, red when it failed */
.mf-last-run[data-status]::before {
    content: "";
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 8px;
    border-radius: var(--radius-round);
    background: var(--gold);
    vertical-align: middle;
}
.mf-last-run[data-status="failed"]::before { background: var(--fault); }

/* "Approved": slate, not green */
.q-mapping-approved-line, #qt-settings summary .text-success { color: var(--slate); }

/* spec_lr_modules_1126 — Document Analysis' estimate, and the Instruments menu's tools as cards */
#b-estimate-panel .mf-hero {
    display: inline-block;
    align-self: flex-start;
    padding: 14px 18px;
    border-radius: var(--radius);
    background: var(--night);
    color: var(--gold-text);
}
.inst-lens-entry {
    display: block;
    width: 100%;
    padding: 20px 22px;
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    text-align: left;
    font: inherit;
    cursor: pointer;
}
.inst-lens-entry:hover, .inst-lens-entry:focus-visible { border-color: var(--slate); border-left-color: var(--gold); }
.inst-lens-entry__name {
    display: block;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
}
.inst-lens-entry__desc {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
}
