/* spec_lr_home_1124 — Home leads with the study's status; Analyze shows how far each
   engine has come (guide: Home: status first; Analyze: engines with study status). */

/* the status panel: one lit panel */
.lr-home-status {
    margin: 0 0 24px;
    padding: 24px 28px;
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
}
.lr-home-status__head {
    margin: 0 0 6px;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text);
}
.lr-home-status__line { margin: 0 0 14px; font-size: 14px; color: var(--text-secondary); }
.lr-home-status__line:empty { display: none; }

/* the strip, under the panel: a white card with dividers */
#mf-home .mf-strip {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
}

/* the three areas as the study's road: a dashed gold line, a lamp on each stage */
#mf-home .mf-home-area { position: relative; }
#mf-home .mf-home-area::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    border-top: 2px dashed var(--gold);
    opacity: 0.6;
}
.lr-home-stage { display: inline-flex; vertical-align: middle; margin-right: 8px; }
.lr-home-fly { position: absolute; top: 10px; right: 14px; line-height: 0; }
.lr-home-fly .lr-firefly { width: 30px; height: 22px; }
.lr-home-fly[hidden] { display: none; }

/* the Deliverables shelf */
.lr-home-shelf { display: flex; flex-wrap: wrap; gap: 10px; }
.lr-home-shelf__wait { font-size: 14px; color: var(--text-secondary); }
.lr-home-chip {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 10px 14px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    background: var(--bg-card);
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.lr-home-chip:hover, .lr-home-chip:focus-visible { border-color: var(--slate); }
.lr-home-chip__label { font-weight: 600; font-size: 14px; }
.lr-home-chip__meta { font-size: 12px; color: var(--text-muted); }
.lr-home-shelf__empty {
    padding: 18px 22px;
    border: 2px dashed var(--border-light);
    border-radius: var(--radius-lg);
    background: none;
    color: var(--text-secondary);
    font: inherit;
    cursor: pointer;
}
.lr-home-shelf__empty:hover, .lr-home-shelf__empty:focus-visible { border-color: var(--slate); color: var(--text); }

/* recent runs: a slate dot on each row; a running row carries its small road */
#mf-home-recent .mf-row__label::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 8px;
    border-radius: var(--radius-round);
    background: var(--slate);
    vertical-align: middle;
}
.lr-home-miniroad { display: inline-flex; gap: 6px; align-items: center; margin-left: 12px; }

/* Analyze: a status line per engine, the lit row, a lamp in each step chip */
.mf-engine__status { display: block; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.mf-engine__status:empty { display: none; }
.mf-engine__status.is-lit { color: var(--text); }
.mf-engine:has(.mf-engine__status.is-lit) { border-top: 3px solid var(--gold); }
.mf-engine__step::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 6px;
    border: 1.5px solid var(--mist);
    border-radius: var(--radius-round);
    vertical-align: middle;
}
.mf-engine__step[data-lamp="done"]::before { border-color: var(--gold); background: var(--gold); }
