/* ---------- SA-030: Market & segments ---------- */

.mkt { padding-bottom: 64px; }
.mkt .panel + .panel,
.mkt .panel + .mkt-cards,
.mkt .mkt-cards + .panel { margin-top: 20px; }
.mkt h2 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; }
.mkt .section-head { margin-bottom: 6px; }
.mkt .section-note { margin-bottom: 18px; max-width: 980px; }

.mkt-head { align-items: flex-end; }
.mkt-head__side { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.mkt-field { display: flex; flex-direction: column; gap: 6px; }
.mkt-field__label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-gray); }
.mkt-run-pick { min-width: 260px; max-width: 340px; }
.mkt-head .tabs { margin-bottom: 0; }

/* The three markets */
.mkt-top { padding: 26px 32px; }
.mkt-def { font-size: 0.92rem; line-height: 1.5; margin-bottom: 6px; max-width: 1100px; }
.mkt-def--muted { color: var(--text-gray); font-size: 0.85rem; }
.mkt-def--warn { color: #8A5A00; font-size: 0.85rem; }
.mkt-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.mkt-tile { padding: 18px 20px; border: 1px solid var(--border-gray); border-radius: var(--radius); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mkt-tile--accent { border-color: var(--primary); box-shadow: inset 0 3px 0 var(--accent); }
.mkt-tile__head { display: flex; align-items: baseline; gap: 8px; }
.mkt-tile__name { flex: 1 1 auto; min-width: 0; }
.mkt-tile__abbr { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; padding: 2px 7px; border-radius: 4px; background: var(--primary); color: var(--white); }
.mkt-tile--accent .mkt-tile__abbr { background: var(--accent); }
.mkt-tile__name { font-size: 0.86rem; font-weight: 600; }
.mkt-tile__value { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; margin-top: 6px; }
.mkt-tile__range { font-size: 0.82rem; color: var(--text-gray); font-variant-numeric: tabular-nums; }
.mkt-tile__rel { font-size: 0.8rem; font-weight: 600; color: var(--ink-soft); }
.mkt-tile__line { font-size: 0.82rem; color: var(--text-gray); line-height: 1.45; margin-top: 6px; }

.mkt-save { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--border-gray); font-size: 0.84rem; }
.mkt-save__text { color: var(--ink-soft); }
.mkt-save__status { color: var(--text-gray); }
.mkt-save__status--bad { color: #B42318; }

/* The funnel: a grid of rows — step (with its bar), people, the share kept, the source. */
.mkt-funnel { display: flex; flex-direction: column; }
.mkt-frow {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) 104px minmax(250px, 1.35fr) minmax(0, 1.25fr);
    gap: 8px 18px;
    padding: 14px 0;
    border-top: 1px solid var(--border-gray);
    align-items: start;
}
.mkt-frow--head { border-top: 0; padding: 0 0 8px; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-gray); }
.mkt-frow--branch { background: var(--light-gray); margin: 0 -14px; padding-left: 14px; padding-right: 14px; border-radius: 8px; border-top-color: transparent; }
.mkt-frow--branch + .mkt-frow { border-top-color: transparent; }
.mkt-frow--result .mkt-fstep__label { font-weight: 700; }
.mkt-fcell { min-width: 0; }
.mkt-fcell--1 { text-align: right; }
.mkt-frow--head .mkt-fcell--1 { text-align: right; }
.mkt-fstep { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.mkt-fstep__label { font-weight: 600; font-size: 0.92rem; }
.mkt-fstep__why { font-size: 0.8rem; color: var(--text-gray); line-height: 1.45; margin: 3px 0 8px; }
.mkt-ftag { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; padding: 2px 6px; border-radius: 4px; color: var(--white); background: var(--primary); }
.mkt-ftag--tam { background: #737373; }
.mkt-ftag--sam { background: var(--accent); }
.mkt-ftag--som { background: var(--accent-dark); }
.mkt-fbar { height: 10px; background: var(--light-gray); border-radius: 0 4px 4px 0; margin-top: 4px; }
.mkt-frow--branch .mkt-fbar { background: var(--white); }
.mkt-fbar__fill { height: 100%; border-radius: 0 4px 4px 0; min-width: 2px; }
.mkt-fbar__fill--base { background: #A3A3A3; }
.mkt-fbar__fill--step { background: var(--ink-soft); }
.mkt-fbar__fill--tam { background: #737373; }
.mkt-fbar__fill--sam { background: var(--accent); }
.mkt-fbar__fill--som { background: var(--accent-dark); }
.mkt-fnum { font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.mkt-fnum__range { font-size: 0.76rem; color: var(--text-gray); font-variant-numeric: tabular-nums; }
.mkt-fsrc { font-size: 0.78rem; color: var(--text-gray); line-height: 1.45; overflow-wrap: break-word; }

/* SA-034: the five stages of the funnel — a head per stage, "data / assumption / questionnaire" marks, what was left out. */
.mkt-fstage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 18px;
    padding: 20px 0 10px;
    border-top: 2px solid var(--primary);
    margin-top: 10px;
}
.mkt-frow--head + .mkt-fstage { margin-top: 0; }
.mkt-fstage__title { display: flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 700; }
.mkt-fstage__n {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--primary); color: var(--white); font-size: 0.74rem; font-weight: 700;
}
.mkt-fstage__text { grid-column: 1; margin: 0; font-size: 0.82rem; color: var(--text-gray); line-height: 1.45; }
.mkt-fstage__num { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-gray); }
.mkt-fstage + .mkt-frow { border-top-color: transparent; }
.mkt-fkind {
    font-size: 0.66rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
    padding: 1px 6px; border-radius: 4px; border: 1px solid var(--border-strong); color: var(--text-gray);
}
.mkt-fkind--assumption { border-color: var(--accent); color: var(--accent-dark); }
.mkt-fkind--brief { border-color: var(--primary); color: var(--primary); }
.mkt-fstep__reason { color: var(--ink-soft); }
.mkt-fnot {
    padding: 10px 12px; margin: 4px 0 6px; border-radius: 8px; background: var(--light-gray);
    font-size: 0.8rem; color: var(--text-gray); line-height: 1.55;
}
.mkt-fnot b { color: var(--ink-soft); }
/* 2026-10-08: the funnel is the user's to compose — the tools above it, the marks and the remove button of a step,
   the removed and suggested steps under it. */
.mkt-ftools { margin: 4px 0 14px; max-width: 860px; }
.mkt-ftools--old { display: flex; align-items: center; gap: 8px; max-width: none; }
.mkt-ftool { margin: 0; min-width: 0; }
.mkt-ftool .mkt-ctl__select--wide { min-width: 220px; }
.mkt-ftools__err { margin: -6px 0 12px; font-size: 0.8rem; color: var(--accent-dark); }
.mkt-fapprox { font-weight: 700; color: var(--accent-dark); cursor: help; }
.mkt-fremove {
    display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; padding: 0; margin-left: 2px;
    border: 0; border-radius: 6px; background: transparent; color: var(--text-gray); cursor: pointer; opacity: 0.55;
}
.mkt-fremove:hover, .mkt-fremove:focus-visible { opacity: 1; background: var(--light-gray); color: var(--primary); }
/* 2026-10-08: segments — the reason of a segment, and "Change the division…" */
.sch-reason { margin: 0 0 6px; font-size: 0.86rem; line-height: 1.45; }
.sd-change { margin: 0 0 12px; }
.sd-change__row { display: flex; gap: 8px; flex-wrap: wrap; }
.sd-change__grid { margin-top: 10px; max-width: 760px; }
.sd-change__err, .sd-prop__warn { color: var(--accent-dark); }
.sd-change__err { margin: 6px 0 0; font-size: 0.8rem; }
/* 2026-10-08: the searches of the questionnaire in two steps (qsearch.js) — the list of queries, the proposal by country. */
.qs-box { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 4px; }
.qs-head { display: flex; align-items: center; gap: 6px; font-size: 0.86rem; }
.qs-list { display: flex; flex-direction: column; gap: 6px; }
.qs-query { margin: 0; }
.qs-query .fld__head { display: none; }
.qs-query .fld__ctl { display: flex; align-items: center; gap: 6px; }
.qs-query .fld__ctl > input { flex: 1; min-width: 0; }
.qs-query .fld__hint { display: none; }
.qs-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.qs-remove { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--text-gray); cursor: pointer; }
.qs-remove:hover, .qs-remove:focus-visible { background: var(--light-gray); color: var(--primary); }
.qs-add { align-self: flex-start; padding: 0; border: 0; background: none; color: var(--accent-dark); font: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer; }
.qs-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.qs-err { margin: 0; font-size: 0.8rem; color: var(--accent-dark); }
.qs-note, .qs-wait { margin: 0; font-size: 0.82rem; color: var(--text-gray); }
.qs-found__row { display: flex; flex-direction: column; gap: 2px; padding: 4px 0; }
.qs-found__more { font-size: 0.8rem; color: var(--text-gray); padding-left: 26px; }
.qs-flow { margin: 0; }
.wz-below { margin-top: -6px; }
.mkt-fedit { padding: 12px 14px 4px; margin: 0 0 10px; border-radius: 8px; background: var(--light-gray); }
.mkt-fedit__grid, .mkt-fedit__groups { max-width: 860px; }
.mkt-fcomp { display: flex; flex-direction: column; gap: 6px; }
.mkt-fcomp__line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.mkt-fchip {
    display: inline-flex; align-items: center; gap: 8px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border-strong);
    background: var(--white); color: var(--ink-soft); font: inherit; font-size: 0.78rem; cursor: pointer;
}
.mkt-fchip:hover, .mkt-fchip:focus-visible { border-color: var(--primary); }
.mkt-fchip__do { color: var(--accent-dark); font-weight: 600; }
.mkt-fnot__name { font-weight: 600; color: var(--ink-soft); }
.mkt-fnot__item--pending .mkt-fnot__name { color: var(--accent-dark); }

/* SA-034: questions to the marketer before the numbers are final. */
.mkt-questions { border-left: 3px solid var(--accent); }
.mkt-q { padding: 12px 0; border-top: 1px solid var(--border-gray); display: flex; flex-direction: column; gap: 8px; }
.mkt-q__head { display: flex; gap: 10px; align-items: baseline; }
.mkt-q__n {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--white); font-size: 0.74rem; font-weight: 700;
}
.mkt-q__why { margin: 0 0 0 32px; font-size: 0.8rem; color: var(--text-gray); }
.mkt-q .ac-select, .mkt-q .ac-input { margin-left: 32px; width: calc(100% - 32px); max-width: 640px; }
.mkt-q .fld__ctl { display: flex; flex-direction: column; gap: 8px; }
.mkt-q .fld__head { margin-bottom: 0; }
.mkt-q .fld__hint { margin-top: 0; }
.mkt-q .fld__hint { margin-left: 32px; }
.mkt-q .mkt-q__head { display: inline-flex; }
.mkt-q + .mkt-q { margin-top: 0; }
.mkt-q__actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--border-gray); }
.mkt-q__done { margin: 10px 0 0; font-size: 0.8rem; }

.mkt-ctl { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mkt-ctl .ac-select { width: auto; min-width: 0; flex: 1 1 110px; }
.mkt-ctl .mkt-ctl__select--wide { flex-basis: 100%; }
.mkt-ctl__pct { display: inline-flex; align-items: center; gap: 4px; }
.mkt-ctl__pct[hidden] { display: none; }
.mkt-ctl__num { width: 76px; }
.mkt-ctl__fld { flex: 0 0 auto; }
.mkt-ctl__fld .fld__hint:empty, .mkt-ctl__fld:not(.invalid) .fld__hint { display: none; }
.mkt-over { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; margin-top: 8px; font-size: 0.78rem; }
.mkt-over__reset { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--accent-dark); cursor: pointer; }
.mkt-over__reset:hover { text-decoration: underline; }

/* Money settings */

.mkt-money.fgrid { --fgap: 22px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); column-gap: 28px; }
.mkt-money .tabs { margin-bottom: 0; align-self: flex-start; }
.mkt-money .mkt-ctl .ac-select { flex: 1 1 180px; }
.mkt-money__note { margin-top: 20px; padding-top: 14px; border-top: 1px dashed var(--border-gray); font-size: 0.84rem; line-height: 1.5; color: var(--ink-soft); }

/* Countries: a ranked bar chart */
.mkt-panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 20px; flex-wrap: wrap; }
.mkt-panel-head .tabs { margin-bottom: 14px; }
.mkt-bars { display: flex; flex-direction: column; gap: 2px; }
.mkt-bars__row { display: grid; grid-template-columns: 26px minmax(130px, 210px) minmax(0, 1fr) 52px; gap: 12px; align-items: center; padding: 5px 6px; border-radius: 6px; font-size: 0.86rem; }
.mkt-bars__row:hover { background: var(--light-gray); }
.mkt-bars__rank { color: var(--text-faint); font-variant-numeric: tabular-nums; text-align: right; }
.mkt-bars__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mkt-bars__track { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mkt-bars__fill { height: 14px; border-radius: 0 4px 4px 0; flex: 0 0 auto; max-width: calc(100% - 70px); }
.mkt-bars__fill--tam { background: #737373; }
.mkt-bars__fill--sam { background: var(--accent); }
.mkt-bars__fill--som { background: var(--accent-dark); }
.mkt-bars__val { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mkt-bars__share { text-align: right; color: var(--text-gray); font-variant-numeric: tabular-nums; }
.mkt-more { margin-top: 12px; }
.mkt-rest { font-size: 0.82rem; margin-top: 8px; }

/* Segments: one bar with the part no segment covers; segment × country */
.mkt-segbar { display: flex; height: 22px; border-radius: 6px; overflow: hidden; background: var(--light-gray); gap: 2px; }
.mkt-segbar__part { height: 100%; min-width: 2px; }
.mkt-segbar__part--rest { background: #E5E5E5; }
.mkt-h3 { font-size: 0.92rem; font-weight: 700; margin: 26px 0 10px; }
.mkt-heat-wrap { overflow-x: auto; }
.mkt-heat { table-layout: fixed; }
.mkt-heat th, .mkt-heat td { white-space: normal; padding: 10px 8px; }
.mkt-heat th:first-child, .mkt-heat td:first-child { width: 120px; }
.mkt-heat th { vertical-align: bottom; line-height: 1.3; }
.mkt-heat__sub { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--text-faint); margin-top: 2px; }
.mkt-heat__cell { font-variant-numeric: tabular-nums; border-left: 2px solid var(--white); }
.mkt-heat__cell--dark { color: var(--white); font-weight: 600; }
.mkt-heat .seg-legend__dot { display: inline-block; }

/* Segment cards */
/* SA-033: at most 9 personas — a 3 × 3 grid (2 columns, then 1, on narrow screens). */
@media (max-width: 1100px) { .persona-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .persona-grid { grid-template-columns: 1fr; } }
.mkt-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1100px) { .mkt-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .mkt-cards { grid-template-columns: 1fr; } }
.mkt-card { padding: 22px 24px; border-top: 4px solid var(--primary); display: flex; flex-direction: column; gap: 10px; }
.mkt .mkt-card + .mkt-card { margin-top: 0; }
.mkt-card--focus { box-shadow: 0 0 0 3px var(--accent-ring), var(--shadow); }
.mkt-card__head h3 { font-size: 1.05rem; font-weight: 700; }
.mkt-card__persona { font-size: 0.8rem; color: var(--text-gray); }
.mkt-card__size { display: flex; flex-direction: column; gap: 2px; }
.mkt-card__size b { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; }
.mkt-card__size span { font-size: 0.8rem; color: var(--text-gray); }
.mkt-card__who { font-size: 0.88rem; line-height: 1.45; }
.mkt-card__countries { display: flex; flex-direction: column; gap: 5px; font-size: 0.84rem; }
.mkt-card__country { display: grid; grid-template-columns: minmax(0, 1fr) 90px 40px; gap: 10px; align-items: center; }
.mkt-card__country b { text-align: right; font-variant-numeric: tabular-nums; }
.mkt-card__country--rest { display: block; color: var(--text-gray); font-size: 0.8rem; }
.mkt-card__track { height: 6px; background: var(--light-gray); border-radius: 0 3px 3px 0; }
.mkt-card__fill { display: block; height: 100%; border-radius: 0 3px 3px 0; }
.mkt-card__links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--border-gray); }
.mkt-link { font-size: 0.84rem; font-weight: 600; color: var(--accent-dark); text-decoration: none; }
.mkt-link:hover { text-decoration: underline; }

/* How it was calculated (collapsed) and the sources */
.mkt-details { padding: 0; }
.mkt-details__summary { cursor: pointer; padding: 20px 32px; display: flex; gap: 6px 14px; align-items: baseline; flex-wrap: wrap; list-style-position: inside; }
.mkt-details__summary > span:first-child { font-size: 1.05rem; font-weight: 700; }
.mkt-details__summary .cell-muted { font-size: 0.82rem; }
.mkt-details[open] .mkt-details__summary { border-bottom: 1px solid var(--border-gray); }
.mkt-info { padding: 22px 32px 28px; }
.mkt-info .seg-info__table { width: 100%; }
.mkt-country-pick { max-width: 360px; margin-bottom: 12px; }
.mkt-src-extra { margin-top: 16px; font-size: 0.86rem; }
.mkt-src-note { font-size: 0.8rem; margin-top: 10px; }

.mkt-picklist { display: flex; flex-direction: column; gap: 10px; }
.mkt-pick { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border: 1px solid var(--border-gray); border-radius: var(--radius); text-decoration: none; color: inherit; font-size: 0.88rem; }
.mkt-pick:hover { border-color: var(--primary); }

.mkt-hover {
    position: fixed; z-index: 600; pointer-events: none; max-width: 300px;
    padding: 8px 10px; background: var(--primary); color: var(--white); border-radius: 6px;
    font-size: 0.78rem; line-height: 1.45; box-shadow: var(--shadow);
}
.mkt-hover[hidden] { display: none; }
.mkt-hover__title { font-weight: 700; }

@media (max-width: 1280px) {
    .mkt .panel { padding: 24px; }
    .mkt-details { padding: 0; }
    .mkt-details__summary { padding: 18px 24px; }
    .mkt-info { padding: 18px 24px 24px; }
    .mkt-frow { grid-template-columns: minmax(0, 1.6fr) 92px minmax(230px, 1.4fr); }
    .mkt-frow .mkt-fcell--3 { grid-column: 1 / -1; }
    .mkt-frow--head .mkt-fcell--3 { display: none; }
    .mkt-tile__value { font-size: 1.6rem; }
}
@media (max-width: 900px) {
    .mkt-tiles { grid-template-columns: 1fr; }
    .mkt-frow { grid-template-columns: minmax(0, 1fr) 92px; }
    .mkt-frow .mkt-fcell--2 { grid-column: 1 / -1; }
}

/* SA-030: the run page keeps a short line per persona and a link to Market & segments. */
.seg-link { font-weight: 600; color: var(--accent-dark); text-decoration: none; white-space: nowrap; }
.seg-link:hover { text-decoration: underline; }
.seg__compact { line-height: 1.5; margin-bottom: 4px; }
.seg__where-label { color: var(--text-gray); }
.mkt-ctl__hint { font-size: 0.76rem; color: var(--text-gray); margin-top: 6px; }
.mkt-info.seg-info { max-width: none; }
.mkt-info .seg-info__p, .mkt-info .seg-info__list { max-width: 1100px; }

/* SA-032: segments of the market, reviewed before the personas (run page) */
.sch-panel { margin-bottom: 20px; padding: 22px 28px; }
.sch-panel .seg-summary__head { margin-bottom: 14px; }
.sch-panel .seg-summary__head h2 { display: flex; align-items: center; gap: 6px; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; }
.sch-panel .section-note { max-width: 980px; }
.sch-cov { margin: 10px 0 18px; font-size: 0.9rem; }
.sch-cov--low b { color: #8A5A00; }
.sch-cards { margin-top: 4px; }
.sch-card { gap: 8px; }
.sch-card--off { opacity: 0.62; }
.sch-card__head { display: flex; flex-direction: column; gap: 2px; }
.sch-where { font-size: 0.84rem; line-height: 1.5; }
.sch-agree { font-size: 0.8rem; color: var(--text-gray); display: flex; align-items: center; gap: 6px; }
.sch-agree--weak { color: #8A5A00; }
.sch-beh { border-top: 1px dashed var(--border-gray); padding-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.sch-beh__head { display: flex; align-items: center; gap: 8px; }
.sch-beh__line { font-size: 0.84rem; line-height: 1.45; margin: 0; }
.sch-beh__line b { font-weight: 600; }
.sch-assume { cursor: pointer; }
.sch-card__foot { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--border-gray); display: flex; flex-direction: column; gap: 10px; }
.sch-card__tools { display: flex; gap: 10px; align-items: center; }
.sch-card__tools .ac-select, .sch-merge { flex: 1; min-width: 0; }
.sch-go { display: flex; align-items: center; gap: 16px; margin-top: 20px; flex-wrap: wrap; }
.sch-go .cell-muted { font-size: 0.84rem; max-width: 760px; }
.sch-q { margin-top: 14px; font-size: 0.88rem; }
.sch-props { margin-top: 18px; border: 1px solid var(--border-gray); border-radius: var(--radius); }
.sch-props .mkt-fold__head { padding: 14px 18px; }
.sch-props .mkt-fold__title > span:first-child { font-size: 0.95rem; }
.sch-props__note { padding: 10px 18px 0; font-size: 0.8rem; }
.sch-props .mkt-heat-wrap { padding: 10px 18px 16px; }
.sch-props__table { table-layout: fixed; width: 100%; }
.sch-props__table th, .sch-props__table td { white-space: normal; vertical-align: top; font-size: 0.82rem; }
.sch-props__table th:nth-child(1), .sch-props__table td:nth-child(1) { width: 36px; }
.sch-props__table th:nth-child(2), .sch-props__table td:nth-child(2) { width: 150px; }
.sch-props__table th:nth-child(n+4), .sch-props__table td:nth-child(n+4) { width: 96px; }
.sch-props__segs { overflow-wrap: anywhere; }
.seg-bar__part--nopersona { opacity: 0.45; }

/* SA-033: cover more of the market (Market & segments) */
.mkt-cover { display: flex; flex-direction: column; gap: 12px; }
.mkt-cover .section-note { margin-bottom: 0; }
.mkt-cover__last { margin: 0; font-size: 0.9rem; }
.mkt-cover__gap { border: 1px solid var(--border-gray); border-radius: var(--radius); padding: 14px 18px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.mkt-cover__who { margin: 0; font-weight: 600; }
.mkt-cover__gap .cell-muted { margin: 0; font-size: 0.84rem; max-width: 980px; }
.mkt-cover__merges { display: flex; flex-direction: column; gap: 6px; }
.mkt-cover__merge { display: flex; gap: 12px; align-items: center; justify-content: space-between; font-size: 0.86rem; border-bottom: 1px dashed var(--border-gray); padding: 6px 0; }
.mkt-cards > .panel + .panel { margin-top: 0; }
.sch-panel .result-acts .btn { white-space: nowrap; }

/* SA-001: Settings — models */
.set-help { font-size: 0.88rem; line-height: 1.5; max-width: 980px; margin-bottom: 18px; }
.set-help p { margin: 0 0 6px; }
.set-efforts { margin: 0; padding-left: 18px; }
.set-table { table-layout: fixed; width: 100%; }
.set-table th:nth-child(1) { width: 40%; }
.set-table th:nth-child(2) { width: 25%; }
.set-table th:nth-child(3) { width: 17%; }
.set-table td { vertical-align: top; white-space: normal; }
.set-what { font-size: 0.8rem; color: var(--text-gray); margin-top: 4px; line-height: 1.4; }
.set-select { width: 100%; }
.set-last { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.set-status { font-size: 0.78rem; color: var(--text-gray); }
.set-status--err { color: #B42318; }

/* SA-038: folding blocks — the Book Forms icon button with an arrow at the right of a block's header */
.icon-btn {
    background: none; border: 0; cursor: pointer; padding: 6px; border-radius: 6px; line-height: 0;
    color: var(--text-gray); display: inline-flex; align-items: center; justify-content: center; transition: var(--transition);
}
.icon-btn:hover:not(:disabled) { color: var(--primary); background: rgba(9, 18, 39, 0.06); }
.icon-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-ring); }
.icon-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.fold-btn { width: 30px; height: 30px; flex-shrink: 0; margin-left: auto; }
/* One place in every block: the right end of the title's line, the arrow on the content's right edge. */
.fold-head-row > .fold-btn { margin-right: -6px; align-self: flex-start; }
.mkt-fold__head > .fold-btn { margin-top: -2px; }
.fold-btn .fold-btn__icon { width: 18px; height: 18px; transition: transform 0.18s ease; transform: rotate(180deg); }
.is-folded .fold-btn .fold-btn__icon { transform: rotate(0deg); }
.foldable.is-folded > :not(.fold-keep) { display: none !important; }
/* A section that opens on request (fold.js details — what <details> was): the head line, our arrow at its right. */
.fold-details > .fold-details__head { position: relative; cursor: pointer; min-width: 0; padding-right: 28px; }
.fold-details > .fold-details__head > .fold-btn { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; padding: 3px; margin: 0; }
.fold-details > .fold-details__head > .fold-btn .fold-btn__icon { width: 16px; height: 16px; }
.fold-head--click { cursor: pointer; }
.fold-head { display: flex; align-items: flex-start; gap: 12px; }
.fold-head > :first-child { flex: 1 1 auto; min-width: 0; }
.panel.foldable.is-folded { padding-bottom: 18px; }
.persona-card.is-folded { gap: 0; }
.persona-card__head .fold-btn { align-self: flex-start; margin-top: -4px; margin-right: -6px; }
.persona-card__head > div { flex: 1 1 auto; min-width: 0; }
.run-report__head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.run-report__head > div { flex: 1 1 auto; min-width: 0; }
.run-report__head .section-note { margin: 2px 0 0; }
.run-report__head h2 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.run-report.is-folded .run-report__head { margin-bottom: 0; }
.hyp-section.is-folded .hyp-section__head { margin-bottom: 0; }
/* The block's tabs under its header (the header: the title and the fold button only). */
.hyp-section__head { flex-wrap: nowrap; }
.hyp-section__head > div:first-child { flex: 1 1 auto; min-width: 0; }
.hyp-section__tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hyp-section__tools:has(.tabs:not([hidden])), .hyp-section__tools:has(#hypNew) { margin-bottom: 16px; }
.seg-summary__head .result-acts { flex-shrink: 0; flex-wrap: nowrap; }
.seg-summary__head .result-acts .btn { white-space: nowrap; }
.mkt-fold__head { padding: 20px 32px; display: flex; gap: 12px; align-items: center; }
.mkt-fold__title { display: flex; gap: 6px 14px; align-items: baseline; flex-wrap: wrap; flex: 1 1 auto; min-width: 0; }
.mkt-fold__title > span:first-child, .mkt-fold__title > h2 { font-size: 1.05rem; font-weight: 700; margin: 0; }
.mkt-fold__title .cell-muted { font-size: 0.82rem; }
.mkt-fold:not(.is-folded) .mkt-fold__head { border-bottom: 1px solid var(--border-gray); }
.mkt-fold__body { padding: 22px 32px 28px; }
@media (max-width: 1280px) {
    .mkt-fold__head { padding: 18px 24px; }
    .mkt-fold__body { padding: 18px 24px 24px; }
}

/* SA-040: the Persona library fits the width; what the models cost */
.lib-table { table-layout: fixed; width: 100%; }
.lib-table th, .lib-table td { padding-left: 12px; padding-right: 12px; }
.lib-table .lib-company { width: 13%; }
.lib-table .lib-decision { width: auto; }
.lib-table .lib-num { width: 92px; }
.lib-table .lib-model { width: 15%; }
.lib-table .lib-status { width: 138px; }
.lib-table .lib-spent { width: 118px; white-space: normal; }
.lib-table .lib-date { width: 118px; }
.lib-table td { overflow: hidden; text-overflow: ellipsis; }
.lib-table td.cell-clip { max-width: none; }
.lib-table .lib-wrap { white-space: normal; line-height: 1.35; }
.lib-table th.num, .lib-table td.num { text-align: right; }
.lib-total { display: flex; align-items: baseline; gap: 6px; font-size: 0.9rem; }
.lib-spent__btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--primary); cursor: pointer; border-bottom: 1px dashed var(--border-gray); }
.lib-spent__btn:hover { color: var(--accent); border-bottom-color: var(--accent); }
.lib-spent__note { font-size: 0.72rem; color: var(--text-gray); white-space: nowrap; }
.spend-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.spend-tile { border: 1px solid var(--border-gray); border-radius: var(--radius); padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; }
.spend-tile__label { font-size: 0.76rem; color: var(--text-gray); text-transform: uppercase; letter-spacing: 0.02em; }
.spend-tile b { font-size: 1.4rem; }
.spend-table { margin-top: 10px; }
.spend-table td, .spend-table th { white-space: normal; vertical-align: top; font-size: 0.84rem; padding: 9px 10px; }
.spend-models { font-size: 0.74rem; color: var(--text-gray); font-weight: 400; margin-top: 2px; }

/* SA-039: rethinking the segments with an agent; the archive of a run */
.sd { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.sd--review { border-top: 1px solid var(--border-gray); padding-top: 20px; }
.sd-panel .sd { margin-top: 14px; }
.sd__title { font-size: 1.02rem; font-weight: 700; margin: 0; }
.sd .section-note { margin: 0; }
.sd__log { display: flex; flex-direction: column; gap: 10px; max-height: 560px; overflow-y: auto; padding: 4px 2px; }
.sd__log .msg__body { max-width: 88%; }
.sd__form { display: flex; flex-direction: column; gap: 8px; }
.sd__acts { display: flex; justify-content: flex-end; gap: 8px; }
.sd__acts .btn { white-space: nowrap; }
.sd-prop { margin-top: 10px; background: var(--white); border: 1px solid var(--border-gray); border-radius: var(--radius); padding: 12px 14px; }
.sd-prop__cols { display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); gap: 10px; align-items: start; }
.sd-prop__arrow { font-size: 1.2rem; color: var(--text-gray); text-align: center; padding-top: 22px; }
.sd-prop__list { list-style: none; margin: 6px 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.sd-seg { display: flex; align-items: center; gap: 8px; font-size: 0.84rem; }
.sd-seg__name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.sd-seg__share { font-weight: 700; white-space: nowrap; }
.sd-seg--gone .sd-seg__name, .sd-seg--gone .sd-seg__share { text-decoration: line-through; color: var(--text-gray); }
.sd-seg__tag { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.03em; padding: 1px 6px; border-radius: 4px; background: var(--light-gray); color: var(--text-gray); white-space: nowrap; }
.sd-seg__tag--new { background: var(--accent-ring); color: var(--accent-dark); }
.sd-prop__cov { font-size: 0.78rem; color: var(--text-gray); }
.sd-prop__note { font-size: 0.82rem; margin: 8px 0 0; color: var(--text-gray); }
.sd-prop__foot { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.sd-prop__foot:empty { display: none; }
.arch-list { display: flex; flex-direction: column; margin-top: 12px; }
.arch-item { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 0; border-top: 1px solid var(--border-gray); font-size: 0.88rem; }
.arch-item .btn { white-space: nowrap; }
@media (max-width: 720px) { .sd-prop__cols { grid-template-columns: 1fr; } .sd-prop__arrow { display: none; } }
.sd-panel h2, .arch-panel h2 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.sd-panel .section-note, .arch-panel .section-note { margin: 2px 0 0; }
.arch-report { max-height: 60vh; overflow-y: auto; }

/* SA-042: Settings → Providers (keys, checks) and the price table; model marks on Settings → Models. */
.set-needs { color: var(--ink-soft); }
.set-marks { background: none; border: 0; padding: 0; margin-top: 4px; font: inherit; font-size: 0.8rem; color: var(--text-gray); text-decoration: underline dotted; cursor: pointer; }
.set-marks:hover { color: var(--accent); }
.set-fallback { margin-top: 6px; line-height: 1.4; }
/* SA-048: one provider for every task */
.set-mode { border: 1px solid var(--border-gray); border-radius: var(--radius); padding: 12px 14px; margin: 0 0 16px; max-width: 980px; }
.set-mode__row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.set-mode__label { margin: 0; }
.set-mode__select { min-width: 260px; }
.set-mode p { margin: 6px 0 0; }
.set-role { color: var(--ink-soft); }
.set-mode-note { color: var(--ink-soft); border-left: 2px solid var(--accent); padding-left: 8px; }
.prov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 14px; }
.prov-card { border: 1px solid var(--border-gray); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.prov-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.prov-card__head .badge { white-space: nowrap; }
.prov-card__body { display: flex; flex-direction: column; gap: 4px; font-size: 0.88rem; min-width: 0; overflow-wrap: anywhere; }
.prov-card__foot { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.prov-key code { font-size: 0.85rem; background: var(--light-gray); padding: 1px 6px; border-radius: 4px; }
.prov-del:hover { color: #B42318; }
.prov-foot { margin-top: 14px; max-width: 980px; }
.prov-bar { margin: 6px 0 10px; }
.prov-filter { min-width: 220px; }
.prov-prices { table-layout: fixed; width: 100%; }
/* Model · input · cached input · output · web search (SA-045) · source · edit */
.prov-prices th:nth-child(1) { width: 21%; }
.prov-prices th:nth-child(2), .prov-prices th:nth-child(4) { width: 10%; }
.prov-prices th:nth-child(3) { width: 12%; }
.prov-prices th:nth-child(5) { width: 15%; }
.prov-prices th:nth-child(7) { width: 110px; }
.prov-prices td { vertical-align: top; white-space: normal; overflow-wrap: anywhere; }
.prov-src a { color: inherit; }
.prov-key-input { width: 100%; font-family: ui-monospace, monospace; }
.prov-keys-link { display: inline-block; margin: 2px 0 14px; }

/* ---------- Data sources: the table of Settings → Data sources, the connect window, the assistant's connect card ---------- */
.src-panel { min-width: 0; }
.src-table-wrap { max-width: 100%; }
.src-table { min-width: 760px; }
.src-table td { vertical-align: middle; white-space: normal; }
.src-table .src-col-name { min-width: 200px; }
.src-table .src-col-fits { min-width: 150px; color: var(--ink-soft); }
.src-name { display: flex; align-items: center; gap: 6px; }
.src-row--soon td:not(.src-col-status), .src-row--off td:not(.src-col-use):not(.src-col-status) { color: var(--text-gray); }
.src-row--soon .src-name b { font-weight: 600; }
.src-status { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
/* The marks of the Status column — this table's own (the app's .badge is not used here): a light plate with a dot. */
.src-st { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; line-height: 1.3; }
.src-st__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.src-st--on { background: #EDEDED; color: #404040; }
.src-st--bad { background: #FDE8E8; color: #B42318; }
.src-st--soon { background: #F5F5F5; color: #A3A3A3; }
.src-st--none { padding: 0; font-weight: 400; color: var(--text-gray); }
.src-whose { font-size: 0.76rem; color: var(--text-faint, var(--text-gray)); }
.src-open, .src-connect { appearance: none; border: 0; background: none; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; border-radius: 999px; text-align: left; }
.src-open--name { border-radius: 4px; }
.src-open--name:hover b { text-decoration: underline; }
.src-open:hover .src-st { box-shadow: 0 0 0 2px var(--accent-ring); }
.src-connect { color: var(--ink, #111); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; border-radius: 4px; }
.src-connect:hover { text-decoration-thickness: 2px; }
.src-open:focus-visible, .src-connect:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-ring); }
.src-result { margin-top: 4px; font-size: 0.88rem; color: var(--ink-soft); }
.src-result--bad { color: #B42318; }
.ac-dialog:has(> .src-dialog) .ac-dialog__foot { flex-wrap: wrap; row-gap: 8px; }
.src-use { margin: 0; }
.src-use .ac-check__label:empty { display: none; }
.src-mock { margin: 0 0 12px; }
.src-dialog .src-fields { margin: 0; }
/* The connect window: the fields on the left, the instruction (open) on the right; one column on a narrow screen,
   the instruction above the fields (it stands first in the markup). */
.src-dialog--how { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 28px; align-items: start; }
.src-dialog--how > .src-form { grid-column: 1; grid-row: 1; min-width: 0; }
.src-dialog--how > .src-how { grid-column: 2; grid-row: 1; }
.src-how { padding: 16px 18px; border-radius: 12px; background: var(--light-gray); font-size: 0.88rem; line-height: 1.45; color: var(--ink-soft); min-width: 0; }
.src-how__title { font-weight: 700; color: var(--primary); }
.src-how__where { margin-top: 2px; font-size: 0.8rem; color: var(--text-gray); overflow-wrap: anywhere; }
.src-how__steps { margin: 12px 0 0; padding-left: 1.35em; display: flex; flex-direction: column; gap: 7px; }
.src-how__steps b { font-weight: 700; color: var(--primary); }
.src-how__facts { margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--border-gray); list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 0.8rem; color: var(--text-gray); }
@media (max-width: 760px) {
    .src-dialog--how { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .src-dialog--how > .src-form, .src-dialog--how > .src-how { grid-column: 1; grid-row: auto; }
}
.ac-dialog__title .tip-icon { margin-left: 8px; vertical-align: middle; }
.src-table td[data-col="Access"], .src-table td[data-col="Group"] { white-space: nowrap; }
/* A narrow screen: the pickers of the top bar must not push the page sideways (they were already under the button). */
@media (max-width: 600px) { .topbar__ctx { overflow: hidden; } }
.is-read-only .nav-item[data-route="sources"] { display: none; }
.asst-card--connect { border-left: 3px solid var(--primary); max-width: 640px; }
.asst-card--connect .asst-card__acts .badge { white-space: nowrap; }
.voa-connect { grid-column: 1 / -1; margin: 0; font-size: 0.86rem; color: var(--ink-soft); background: var(--light-gray); border-radius: 8px; padding: 8px 12px; }


/* SA-035: "Find data" beside an assumption — the search, its results, a found value in use. */
.mkt-fkind--found { border-color: var(--primary); background: var(--primary); color: var(--white); }
.mkt-find { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.mkt-find .btn-sm { padding: 4px 10px; font-size: 0.76rem; }
.mkt-find__status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; width: 100%; font-size: 0.76rem; }
.mkt-find__status .badge { min-width: 0; padding: 2px 8px; font-size: 0.68rem; }
.mkt-find__status--error { color: #B42318; }
.mkt-find__link { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.mkt-found { color: var(--primary); }
.mkt-found .cell-muted { margin-top: 2px; }
.fd { display: flex; flex-direction: column; gap: 10px; text-align: left; max-height: 62vh; overflow-y: auto; padding-right: 4px; }
.fd__now { margin: 0; font-size: 0.84rem; color: var(--text-gray); line-height: 1.5; }
.fd__summary { margin: 0; font-size: 0.9rem; line-height: 1.5; }
.fd__nothing { margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--light-gray); font-size: 0.86rem; line-height: 1.5; }
.fd__opt-main { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.fd__opt-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-size: 0.88rem; line-height: 1.4; }
.fd__value { font-variant-numeric: tabular-nums; white-space: nowrap; }
.fd__src { font-size: 0.8rem; line-height: 1.45; overflow-wrap: anywhere; }
.fd__src a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.fd__quote { margin: 0; padding: 4px 0 4px 10px; border-left: 2px solid var(--border-strong); font-size: 0.8rem; color: var(--ink-soft); line-height: 1.45; }
.fd__meta { margin: 0; font-size: 0.78rem; color: var(--text-gray); line-height: 1.45; }
.fd__warn { font-size: 0.78rem; color: #B42318; }
/* SA-045: a value the model gave without a sentence from its source. */
.fd__noquote { margin: 0; padding: 4px 0 4px 10px; border-left: 2px dashed var(--border-strong); font-size: 0.78rem; color: var(--text-gray); line-height: 1.45; }
/* SA-045: Google's Search Suggestions, shown with results found through Gemini's Google Search (Google's terms). */
.fd__google { display: flex; flex-direction: column; gap: 4px; }
.fd__google iframe { width: 100%; height: 48px; border: 0; background: transparent; }
.fd__fit { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 0.74rem; }
.fd__fitmark { padding: 1px 7px; border-radius: 10px; border: 1px solid var(--border-strong); white-space: nowrap; }
.fd__fitmark--yes { background: var(--primary); border-color: var(--primary); color: var(--white); }
.fd__fitmark--partly { border-color: var(--accent); color: var(--accent-dark); }
.fd__fitmark--no { color: var(--text-gray); background: var(--light-gray); }
.fd__own { display: flex; flex-wrap: wrap; gap: 12px; }
.fd__own[hidden] { display: none; }
.fd__ownf { flex: 0 0 120px; }
.fd__num { width: 100%; }

/* SA-043: who they are in life — the data, then labelled hypotheses */
.sp { border-top: 1px dashed var(--border-gray); padding-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.sp__head { display: flex; align-items: center; gap: 8px; min-height: 30px; }
.sp__head .fold-btn { width: 26px; height: 26px; margin-right: -6px; }
.sp__body { display: flex; flex-direction: column; gap: 6px; }
.sp__sub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.sp__subtitle { font-size: 0.8rem; font-weight: 700; }
.sp__cov { font-size: 0.76rem; }
.sp__data, .sp__hyp { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.sp__fact { font-size: 0.84rem; line-height: 1.45; padding-left: 12px; position: relative; cursor: pointer; border-radius: 6px; }
.sp__fact::before { content: ''; position: absolute; left: 2px; top: 0.6em; width: 4px; height: 4px; border-radius: 50%; background: var(--primary); }
.sp__fact:hover, .sp__fact.has-tip--open { background: var(--light-gray); }
.sp__fig { display: flex; justify-content: space-between; gap: 10px; font-size: 0.82rem; line-height: 1.4; cursor: pointer; border-radius: 6px; padding: 1px 4px; margin: 0 -4px; }
.sp__fig:hover, .sp__fig.has-tip--open { background: var(--light-gray); }
.sp__fig-label { color: var(--text-gray); min-width: 0; }
.sp__fig b { font-weight: 600; text-align: right; }
.sp__hyp li { font-size: 0.84rem; line-height: 1.45; color: var(--ink-soft); }
.sp__hyp b { font-weight: 600; }
.sp__check { font-size: 0.74rem; color: var(--text-faint); white-space: nowrap; }
.sp__more { display: flex; gap: 14px; flex-wrap: wrap; }
.sp__link { background: none; border: 0; padding: 0; font: inherit; font-size: 0.8rem; font-weight: 600; color: var(--accent-dark); cursor: pointer; }
.sp__link:hover { text-decoration: underline; }
.sp__foot { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 2px; }
.sp__note { font-size: 0.78rem; line-height: 1.4; margin: 0; }
.sp-table__sec td { font-weight: 700; background: var(--light-gray); }

.sp-table { table-layout: fixed; }
.sp-table th:nth-child(1) { width: 25%; } .sp-table th:nth-child(2) { width: 20%; }
.sp-table th:nth-child(3) { width: 33%; } .sp-table th:nth-child(4) { width: 22%; }
.sp-table td { overflow-wrap: anywhere; }
.sp-table td:first-child { min-width: 0; }
.sp-table__src { white-space: normal; }


/* The base market of a product (2026-10-23, plan 1.3; base-market.js): the choice "Zones" over the table, the window of the groups */
.bm-bar { display: flex; align-items: flex-start; gap: 8px 12px; flex-wrap: wrap; margin-bottom: 12px; }
.bm-bar .bm-mode { margin: 0; min-width: 200px; max-width: 100%; }
.bm-bar .fld--action { margin: 0; }
.bm-earlier { margin-top: 12px; }
.bm-assessed { margin: 8px 0 0; }
.bm-versions { margin-top: 6px; }
/* (2026-10-23, plan 1.3a) the question “Zones” of the questionnaire: the way, the regions and “Edit groups” on one line, level */
.wz-zones .bm-bar .bm-edit { height: var(--ac-control-h); padding-top: 0; padding-bottom: 0; }
.wz-zones .table-scroll { margin-top: 4px; }

/* 2026-10-27 (plan 1.4): the segments of a product (product-segments.js) — the market's segment cards and tables */
.pseg { display: flex; flex-direction: column; gap: 14px; }
.pseg > p { margin: 0; }
.pseg__title { font-size: 1rem; font-weight: 700; margin: 6px 0 0; }
.pseg .mkt-card { box-shadow: none; border: 1px solid var(--border-gray); border-top: 4px solid var(--primary); }
.pseg .mkt-card--focus { box-shadow: 0 0 0 3px var(--accent-ring); }
.pseg-table td .cell-muted { font-size: 0.78rem; }
.pseg-cal { display: flex; flex-direction: column; gap: 4px; }
.pseg-cal p { margin: 0; }
.asst-card .pseg .mkt-cards { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.asst-card .pseg .mkt-card { padding: 14px 16px; }
