/* ==================================================
   TELL THE BUNKER — entry on the Overview and the cards sheet.
   Built on the tokens and sheet components in style.css.
   ================================================== */

.hud-tell {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    gap: var(--s-3);
    width: 100%;
    min-height: 56px;
    margin-bottom: var(--s-3);
    padding: var(--s-2) var(--s-4);
    border: 1px solid var(--metal-edge-hi);
    border-radius: 4px;
    background: var(--metal-face-raised);
    box-shadow: var(--metal-bevel);
    color: var(--bone);
    text-align: left;
    cursor: pointer;
}

.hud-tell:hover {
    border-color: var(--bone);
}

.hud-tell .bunker-icon {
    width: 24px;
    height: 24px;
}

.hud-tell__label {
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    font-weight: 700;
}

.hud-tell__hint {
    overflow: hidden;
    color: var(--steel);
    font-size: var(--fs-sm);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tell-voice {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s-2) var(--s-3);
}

.tell-voice__record .bunker-icon {
    width: 18px;
    height: 18px;
}

.tell-voice__live {
    color: var(--danger-soft);
    font-family: var(--font-mono);
}

.tell-voice__done {
    color: var(--ok);
    font-size: var(--fs-sm);
}

/* Which interpreter answers: real AI, demo, or not set up. */
.tell-source {
    margin: 0;
    padding: var(--s-2) var(--s-3);
    border-left: 3px solid var(--steel-dim);
    background: var(--plate-sunken);
    color: var(--bone);
    font-size: var(--fs-sm);
}

.tell-source--real {
    border-left-color: var(--ok);
}

.tell-source--warn,
.tell-source--demo {
    border-left-color: var(--area-trench);
}

.tell-demo {
    margin: 0;
    padding: var(--s-2) var(--s-3);
    border-left: 3px solid var(--area-trench);
    background: var(--plate-sunken);
    color: var(--bone);
    font-size: var(--fs-sm);
}

.tell-transcript,
.tell-left {
    margin: 0;
    padding: var(--s-2) var(--s-3);
    background: var(--metal-face-sunken);
    color: var(--bone);
    font-size: var(--fs-sm);
    white-space: pre-wrap;
}

.tell-cards {
    display: grid;
    gap: var(--s-3);
    margin: 0;
    padding: 0;
    list-style: none;
}

.tell-card {
    --card: var(--steel);
    display: grid;
    gap: var(--s-2);
    padding: var(--s-3);
    border: 1px solid var(--metal-edge);
    border-left: 3px solid var(--card);
    border-radius: 4px;
    background: var(--metal-face-sunken);
}

.tell-card--treasury { --card: var(--area-treasury); }
.tell-card--lyceum { --card: var(--area-lyceum); }
.tell-card--trench { --card: var(--area-trench); }
.tell-card--forge { --card: var(--area-forge); }
.tell-card--desert { --card: var(--area-desert); }

.tell-card--saved {
    opacity: 0.85;
}

.tell-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-3);
}

.tell-card__include {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    min-height: 36px;
    cursor: pointer;
}

.tell-card__include input {
    width: 20px;
    height: 20px;
    accent-color: var(--card);
}

.tell-card__type {
    color: var(--card);
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.tell-card__remove {
    width: 36px;
    height: 36px;
    border: 1px solid var(--metal-edge);
    border-radius: 3px;
    background: none;
    color: var(--steel);
    font-size: 1.25rem;
    cursor: pointer;
}

.tell-card__source {
    margin: 0;
    color: var(--steel);
    font-size: var(--fs-sm);
    font-style: italic;
}

.tell-card__questions {
    margin: 0;
    padding-left: var(--s-4);
    color: var(--area-trench);
    font-size: var(--fs-sm);
}

.tell-card__fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-2) var(--s-3);
}

.tell-card__fields .sheet__field:has(textarea) {
    grid-column: 1 / -1;
}

.tell-card__status {
    margin: 0;
    font-size: var(--fs-sm);
}

.tell-card__status--ok {
    color: var(--ok);
}

.tell-card__status--warn {
    color: var(--area-trench);
}

.tell-card__status--muted {
    color: var(--steel);
}

/* NEW vs CORRECT: the tag says it in words; a correction also gets a
   dashed edge so the two never look alike at a glance. */
.tell-card--correct {
    border-style: dashed;
    border-left-style: solid;
}

.tell-card__type--correct::before {
    content: "↺ ";
}

.tell-card__type--create::before {
    content: "+ ";
}

.tell-card__note {
    margin: 0;
    color: var(--steel);
    font-size: var(--fs-sm);
}

.tell-card__note--warn {
    padding: var(--s-2) var(--s-3);
    border-left: 3px solid var(--area-trench);
    background: var(--plate-sunken);
    color: var(--bone);
}

.tell-card__estimate {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--steel);
    font-size: var(--fs-sm);
}

.tell-card__check {
    display: inline-flex;
    grid-column: 1 / -1;
    align-items: center;
    gap: var(--s-2);
    min-height: 36px;
    font-size: var(--fs-sm);
    cursor: pointer;
}

.tell-card__check input {
    width: 18px;
    height: 18px;
    accent-color: var(--card);
}

.tell-original {
    display: grid;
    gap: 2px;
    padding: var(--s-2) var(--s-3);
    border: 1px solid var(--metal-edge);
    border-radius: 3px;
    background: var(--plate-sunken);
}

.tell-original__day {
    color: var(--steel);
    font-family: var(--font-mono);
    font-size: var(--fs-sm);
}

.tell-original__summary {
    color: var(--bone);
}

.tell-diff {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fs-sm);
}

.tell-diff th,
.tell-diff td {
    padding: var(--s-1) var(--s-2);
    border-bottom: 1px solid var(--metal-edge);
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.tell-diff thead th {
    color: var(--steel);
    font-weight: 400;
}

.tell-diff tbody th {
    width: 30%;
    color: var(--steel);
    font-weight: 400;
}

.tell-diff__before {
    color: var(--steel);
    text-decoration: line-through;
}

.tell-diff__after {
    color: var(--bone);
    font-weight: 700;
}

.tell-candidates {
    display: grid;
    gap: var(--s-1);
    margin: 0;
    padding: var(--s-2) var(--s-3);
    border: 1px solid var(--area-trench);
    border-radius: 3px;
}

.tell-candidates legend {
    padding: 0 var(--s-1);
    white-space: normal;
}

.tell-candidate {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    gap: var(--s-2);
    min-height: 40px;
    cursor: pointer;
}

.tell-candidate input {
    width: 18px;
    height: 18px;
    accent-color: var(--card);
}

.tell-candidate__day {
    color: var(--steel);
    font-family: var(--font-mono);
    font-size: var(--fs-sm);
    white-space: nowrap;
}

.tell-candidate__summary {
    overflow-wrap: anywhere;
}

.tell-stale {
    display: grid;
    gap: var(--s-2);
    padding: var(--s-2) var(--s-3);
    border-left: 3px solid var(--danger-soft);
    background: var(--plate-sunken);
}

.tell-stale p {
    margin: 0;
    font-size: var(--fs-sm);
}

@media (max-width: 640px) {
    .tell-candidate {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .tell-candidate__summary {
        grid-column: 2;
    }

    .hud-tell {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .hud-tell__hint {
        grid-column: 2;
        white-space: normal;
    }

    .tell-card__fields {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---- Continuation: what is still missing, and the answer ---- */
.tell-followup {
    display: grid;
    gap: var(--s-2);
    padding: var(--s-3);
    border: 1px solid var(--area-trench);
    border-left-width: 3px;
    border-radius: 4px;
    background: var(--plate-sunken);
}

.tell-followup__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: var(--fs-md);
    letter-spacing: 0.04em;
}

.tell-followup__questions {
    display: grid;
    gap: var(--s-1);
    margin: 0;
    padding-left: var(--s-4);
    color: var(--bone);
}

.tell-followup__questions--optional {
    color: var(--steel);
    font-size: var(--fs-sm);
}

.tell-followup__for {
    color: var(--steel);
    font-size: var(--fs-sm);
}

.tell-followup__answer {
    min-height: 72px;
}

.tell-source--update {
    border-left-color: var(--area-trench);
}

.tell-answers {
    display: grid;
    gap: var(--s-1);
    margin: 0;
    padding-left: var(--s-4);
}

.tell-card__ask {
    margin: 0;
    color: var(--area-trench);
    font-size: var(--fs-sm);
}

.tell-card__ask::before {
    content: "? ";
    font-weight: 700;
}

.tell-card--updated {
    box-shadow: 0 0 0 1px var(--area-trench);
}

.tell-updated {
    display: grid;
    gap: var(--s-1);
    padding: var(--s-2) var(--s-3);
    border-left: 3px solid var(--area-trench);
    background: var(--plate-sunken);
}

.tell-card__field--changed {
    outline: 2px solid var(--area-trench);
    outline-offset: 2px;
    border-radius: 2px;
}

.tell-card__note--fresh {
    color: var(--area-trench);
}

.tell-other summary {
    min-height: 36px;
    color: var(--steel);
    font-size: var(--fs-sm);
    cursor: pointer;
}

.tell-other[open] summary {
    margin-bottom: var(--s-2);
}

.tell-unsupported {
    display: grid;
    gap: var(--s-1);
    padding: var(--s-2) var(--s-3);
    border-left: 3px solid var(--steel-dim);
    background: var(--plate-sunken);
}

.tell-unsupported__list {
    margin: 0;
    padding-left: var(--s-4);
    color: var(--bone);
    font-size: var(--fs-sm);
}

.tell-followup--quiet {
    border-color: var(--metal-edge);
    border-left-color: var(--steel-dim);
}

.tell-followup--quiet > summary {
    min-height: 36px;
    color: var(--steel);
    font-size: var(--fs-sm);
    cursor: pointer;
}

.tell-followup--quiet[open] > summary {
    margin-bottom: var(--s-2);
    color: var(--bone);
}

/* ---- Round 6: compact review rows ---- */
.tell-card--compact {
    gap: var(--s-1);
    padding: var(--s-2) var(--s-3);
}

.tell-card__head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: var(--s-2);
}

.tell-card--saved .tell-card__head {
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.tell-card__line {
    min-width: 0;
    color: var(--bone);
    font-size: var(--fs-sm);
    overflow-wrap: anywhere;
}

.tell-card__toggle {
    min-height: 36px;
    padding: 0 var(--s-3);
    border: 1px solid var(--metal-edge-hi);
    border-radius: 3px;
    background: var(--metal-face-raised);
    color: var(--bone);
    font-size: var(--fs-sm);
    cursor: pointer;
}

.tell-card__flags {
    display: grid;
    gap: 2px;
}

.tell-card__flag {
    margin: 0;
    padding: 2px var(--s-2);
    border-left: 2px solid var(--steel-dim);
    color: var(--steel);
    font-size: var(--fs-xs);
    overflow-wrap: anywhere;
}

.tell-card__flag--create { border-left-color: var(--card); color: var(--bone); }
.tell-card__flag--ask { border-left-color: var(--area-trench); color: var(--area-trench); }
.tell-card__flag--warn { border-left-color: var(--danger-soft); color: var(--danger-soft); }
.tell-card__flag--change { border-left-color: var(--area-lyceum); color: var(--bone); }
.tell-card__flag--fresh { border-left-color: var(--ok); color: var(--ok); }

.tell-card__slots,
.tell-card__choice {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-1) var(--s-3);
    grid-column: 1 / -1;
    margin: 0;
    padding: var(--s-2);
    border: 1px solid var(--metal-edge);
    border-radius: 3px;
}

.tell-card__details,
.tell-card__energy-ref,
.tell-card__estimate {
    grid-column: 1 / -1;
}

.tell-card__details summary {
    color: var(--steel);
    font-size: var(--fs-sm);
    cursor: pointer;
}

.tell-card__exercises {
    display: grid;
    gap: var(--s-1);
    margin-top: var(--s-2);
}

.tell-card__exercise {
    display: grid;
    grid-template-columns: minmax(6rem, 2fr) repeat(3, minmax(3.5rem, 1fr)) 4.5rem 36px;
    gap: var(--s-1);
}

@media (max-width: 520px) {
    .tell-card__head {
        grid-template-columns: minmax(0, 1fr) auto auto;
    }

    .tell-card--saved .tell-card__head {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .tell-card__head > :first-child {
        grid-column: 1;
        grid-row: 1;
    }

    .tell-card__line {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .tell-card__fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .tell-card__exercise {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tell-card__exercise input:first-child {
        grid-column: 1 / -1;
    }
}
