/* Composer Benchmark labeller. Every rule sits under .cb, because Propshaft's :app bundle loads this file on public pages too.
   Tokens live in composer_benchmark_tokens.css and base components here; job-specific files (composer_benchmark_plan.css, …) build on them. */
.cb { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 14px; line-height: 1.5; padding-inline: 20px; padding-block: 0 48px; min-height: 100vh; -webkit-font-smoothing: antialiased; }
.cb *, .cb *::before, .cb *::after { box-sizing: border-box; }
.cb button { font: inherit; color: inherit; }
.cb :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cb [hidden] { display: none !important; }
.cb[data-lane="practice"] [data-exclude] { display: none !important; }
.cb h2, .cb h3, .cb h4, .cb p { margin: 0; }
.cb .mono { font-family: var(--mono); }
.cb kbd { font-family: var(--mono); font-size: 0.68rem; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 4px; padding: 0 4px; background: var(--paper); color: var(--muted); }
.cb .small { font-size: 0.75rem; color: var(--muted); margin: 0; }

/* Job bar: one row, under the Composer Benchmark app bar */
.cb .appbar { display: flex; align-items: center; gap: 10px; height: var(--bar); flex: none; padding: 0 12px 0 18px; background: var(--page); border-bottom: 1px solid var(--line); white-space: nowrap; min-width: 0; }
.cb .job { display: flex; align-items: baseline; gap: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; margin-right: auto; }
.cb .job b { font-size: 0.9rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.cb .job span { font-size: 0.75rem; color: var(--muted); }
.cb .stats { display: flex; align-items: center; gap: 6px; flex: none; }
.cb .saved { display: inline-flex; align-items: center; gap: 6px; font-size: 0.74rem; color: var(--muted); padding: 0 6px; }
.cb .dotsave { width: 7px; height: 7px; border-radius: 50%; background: var(--good); }
.cb .saved.saving .dotsave { background: var(--gold); }
.cb .saved.failed { color: var(--warn); font-weight: 600; }
.cb .saved.failed .dotsave { background: var(--warn); }
.cb .saved .linkbtn { font-size: 0.74rem; }

/* Buttons and options */
.cb .btn { border: 1px solid var(--line-strong); background: var(--paper); padding: 8px 14px; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 0.85rem; transition: background 0.15s, border-color 0.15s; }
.cb .btn:hover { background: var(--sunk); }
.cb .btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.cb .btn.primary:hover { filter: brightness(1.1); background: var(--accent); }
.cb .btn:disabled { opacity: 0.4; cursor: not-allowed; }
.cb .small-btn { padding: 6px 12px; font-size: 0.8rem; }
.cb .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cb .row.spread { justify-content: space-between; }
.cb details.more { border: 1px solid var(--line); border-radius: 10px; background: var(--sunk); }
.cb details.more summary { list-style: none; cursor: pointer; padding: 7px 11px; font-size: 0.8rem; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.cb details.more summary::-webkit-details-marker { display: none; }
.cb details.more summary::before { content: "▸"; font-size: 0.7rem; transition: transform 0.15s; }
.cb details.more[open] summary::before { transform: rotate(90deg); }
.cb details.more summary:hover { color: var(--ink); }
.cb details.more .body { padding: 0 11px 10px; font-size: 0.8rem; color: var(--muted); display: flex; flex-direction: column; gap: 8px; }
.cb details.more .body b { color: var(--ink); }
.cb .linkbtn { border: 0; background: none; padding: 0; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; font-size: 0.85rem; }
.cb .toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--muted); cursor: pointer; }
.cb .opts { display: flex; flex-direction: column; gap: 6px; }
.cb .opt { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 1px solid var(--line); background: var(--paper); border-radius: 10px; padding: 10px 12px; cursor: pointer; font-size: 0.9rem; transition: border-color 0.15s, background 0.15s; }
.cb .opt:hover { border-color: var(--line-strong); background: var(--sunk); }
.cb .opt[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); font-weight: 600; box-shadow: inset 0 0 0 1px var(--accent); }
.cb .opt .k { font-family: var(--mono); font-size: 0.68rem; color: var(--muted); min-width: 16px; text-align: center; border: 1px solid var(--line); border-radius: 4px; }
.cb .opt.cant { border-style: dashed; color: var(--muted); }
.cb .opt:disabled { opacity: 0.4; cursor: not-allowed; }
.cb .ghost { border: 0; background: none; padding: 2px 0; font-size: 0.78rem; color: var(--muted); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.cb .ghost:hover { color: var(--ink); }
.cb .ghost[aria-pressed="true"] { color: var(--accent); font-weight: 600; }
.cb .chips2 { display: flex; flex-wrap: wrap; gap: 6px; }
.cb .chipbtn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); border-radius: 10px; padding: 8px 12px; font-size: 0.85rem; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.cb .chipbtn:hover { border-color: var(--muted); }
.cb .chipbtn .k { font-family: var(--mono); font-size: 0.62rem; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; }
.cb .chipbtn[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); font-weight: 600; }
.cb .chipbtn[aria-pressed="true"]::after { content: "✓"; color: var(--accent); font-weight: 700; }
.cb input.other, .cb .field input, .cb .field select { font: inherit; font-size: 0.84rem; padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--paper); color: var(--ink); width: 100%; }
.cb .field { display: flex; flex-direction: column; gap: 5px; font-size: 0.82rem; font-weight: 500; }

/* Job page: the job bar over one left column (steps, then the step's panel) and a canvas that fills the rest.
   .work and .main dissolve so the panel and canvas of the current step become cells of .app. The page never scrolls. */
.cb.cb-job { --bar: 50px; --col: 312px; height: 100vh; padding: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.cb .app { flex: 1; min-height: 0; display: grid; grid-template-columns: var(--col) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
.cb .main, .cb .work:not(.single) { display: contents; }
.cb .rail { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 1px; padding: 10px 10px 8px; background: var(--page); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cb .rail button { display: grid; grid-template-columns: 20px 1fr; gap: 9px; align-items: center; text-align: left; border: 0; background: transparent; padding: 2px 8px; height: 26px; border-radius: 8px; cursor: pointer; color: var(--muted); }
.cb .rail button:hover { background: var(--paper); color: var(--ink); }
.cb .rail button[aria-current="step"] { background: var(--paper); color: var(--ink); box-shadow: inset 2px 0 0 var(--accent); }
.cb .rail .tick { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: inline-flex; align-items: center; justify-content: center; font-size: 0.64rem; font-family: var(--mono); background: var(--paper); }
.cb .rail button[aria-current="step"] .tick { border-color: var(--accent); color: var(--accent); }
.cb .rail button.done .tick { background: var(--good); border-color: var(--good); color: var(--accent-ink); }
.cb .rail .name { font-size: 0.83rem; font-weight: 600; line-height: 1.2; }
.cb .rail .grp { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); padding: 4px 8px 1px; }
.cb .rail .grp:first-child { padding-top: 0; }
.cb .rail .flag { height: auto; margin-top: 6px; padding-block: 0; color: var(--muted); font-size: 0.76rem; display: block; text-decoration: underline; text-underline-offset: 2px; }
.cb .rail .flag:hover { color: var(--warn); background: transparent; }
.cb .rail .total { font-size: 0.7rem; color: var(--muted); padding-inline: 8px; }

.cb a.btn { color: inherit; text-decoration: none; display: inline-block; }
.cb .work:not(.single) > .panel { grid-column: 1; grid-row: 2; min-height: 0; overflow: auto; padding: 14px 14px 16px; gap: 12px; background: var(--page); border-right: 1px solid var(--line); }
.cb .work:not(.single) > .canvas { grid-column: 2; grid-row: 1 / -1; min-height: 0; padding: 0; gap: 0; border: 0; border-radius: 0; box-shadow: none; background: var(--lightbox); overflow: auto; }
.cb .work.single { grid-column: 2; grid-row: 1 / -1; min-height: 0; overflow: auto; }
.cb .work.single .panel { max-width: 720px; margin-inline: auto; }
.cb .work:not(.single) > .panel .row:has(> .btn.primary) { position: sticky; bottom: -16px; z-index: 1; margin-bottom: -16px; padding-block: 8px 16px; background: var(--page); box-shadow: 0 -8px 8px -4px var(--page); }
.cb .canvas { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 14px; min-width: 0; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }
.cb .panel { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; box-shadow: var(--shadow); }
.cb .work:not(.single) > .panel { border-radius: 0; border-width: 0 1px 0 0; box-shadow: none; }
.cb .canvas > .row { flex: none; min-height: 42px; flex-wrap: nowrap; gap: 8px; padding: 0 10px; border-bottom: 1px solid var(--line); background: var(--page); white-space: nowrap; overflow-x: auto; }
.cb .panel h2 { font-family: var(--display); font-size: 1.15rem; font-weight: 600; letter-spacing: -0.015em; margin: 0; line-height: 1.15; text-wrap: balance; }
.cb .sub { color: var(--muted); font-size: 0.88rem; margin: 0; }
.cb .keys { font-size: 0.74rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.cb .hint { font-size: 0.82rem; color: var(--muted); background: var(--sunk); border-radius: 10px; padding: 9px 12px; margin: 0; }
.cb .hint b { color: var(--ink); font-weight: 600; }
.cb .q { font-size: 1.05rem; font-weight: 600; line-height: 1.3; margin: 0; letter-spacing: -0.01em; }

/* Image stage: a dark lightbox that fills what the toolbar and filmstrip leave. Its size never depends on the panel. */
.cb .stage { position: relative; flex: 1; min-height: 0; width: 100%; overflow: auto; display: flex; background: var(--lightbox); padding: 12px; }
.cb .stage svg, .cb .stage img { display: block; margin: auto; touch-action: none; user-select: none; -webkit-user-select: none; border-radius: 4px; }
.cb .stage img.photo { max-width: 100%; max-height: 100%; object-fit: contain; }
.cb .stage svg.crosshair { cursor: crosshair; }
.cb .colour-pick { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.cb .swatch { display: inline-block; width: 22px; height: 22px; border: 1px solid var(--line); border-radius: 6px; vertical-align: middle; margin-right: 6px; }
.cb .swatches { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.cb .swatchbtn { min-height: 44px; }
.cb .swatchbtn .swatch { margin-right: 0; }
.cb .swatch.empty { background: repeating-linear-gradient(45deg, #fff, #fff 4px, #e8e4dc 4px, #e8e4dc 8px); margin-right: 0; }
.cb .stage .plan-ref { background: #ffffff; }
.cb .twoup { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: 1px; background: var(--line); }
.cb .twoup figure { margin: 0; min-height: 0; display: flex; flex-direction: column; background: var(--lightbox); }
.cb .twoup figcaption { flex: none; font-size: 0.75rem; color: var(--muted); padding: 4px 12px 6px; }

/* Photo strip */
.cb .ph { flex: none; width: 118px; border: 2px solid transparent; border-radius: 10px; padding: 4px; background: var(--sunk); cursor: pointer; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.cb .ph img { width: 100%; height: 60px; object-fit: cover; display: block; border-radius: 6px; }

/* Questions */
.cb .qhead { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.cb .qhead .n { font-size: 0.75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.cb .dots { display: flex; gap: 4px; }
.cb .dot { flex: 1; height: 4px; border-radius: 99px; border: 0; background: var(--line); cursor: pointer; padding: 0; min-width: 18px; }
.cb .dot.a { background: var(--good); }
.cb .dot.cur { background: var(--accent); }
.cb .tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: 6px; }
.cb .tile { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 5px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); cursor: pointer; text-align: center; font-size: 0.72rem; line-height: 1.2; color: var(--ink); transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; }
.cb .tile:hover { border-color: var(--line-strong); transform: translateY(-1px); box-shadow: var(--shadow); }
.cb .tile .ico { width: 100%; height: auto; display: block; border-radius: 6px; }
.cb .tile[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--accent); }
.cb .tile:not(:has(.ico)) .tk { position: static; align-self: center; }
.cb .tile .tk { position: absolute; top: 8px; left: 8px; font-family: var(--mono); font-size: 0.6rem; background: rgba(255, 255, 255, 0.92); color: #56616c; border-radius: 4px; padding: 0 4px; }
.cb .fq-head { display: flex; flex-direction: column; gap: 10px; }
.cb .items { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; flex-shrink: 0; }
.cb .item { border-bottom: 1px solid var(--line); }
.cb .item:last-child { border-bottom: 0; }
.cb .item-row { display: grid; grid-template-columns: minmax(8rem, 3fr) minmax(0, 2fr); align-items: center; gap: 12px; width: 100%; padding: 11px 14px; background: none; border: 0; text-align: left; cursor: pointer; min-height: 46px; }
.cb .item-row:hover { background: var(--sunk); }
.cb .item .il { font-size: 0.86rem; color: var(--muted); line-height: 1.3; }
.cb .item.answered .il { color: var(--ink); }
.cb .item.open { background: var(--sunk); box-shadow: inset 3px 0 0 var(--accent); }
.cb .item.open .il { color: var(--ink); font-weight: 600; font-size: 0.92rem; }
.cb .item .ia { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; flex-wrap: wrap; font-size: 0.84rem; font-weight: 600; text-align: right; overflow-wrap: break-word; }
.cb .item .ia > * { min-width: 0; }
.cb .item .ia .ico, .cb .item .ia .swatch { flex-shrink: 0; }
.cb .item .ia .ico { width: 34px; height: auto; border-radius: 4px; border: 1px solid var(--line); }
.cb .item .ia .ok { color: var(--good); font-weight: 700; }
.cb .item .ia .todo { font-weight: 400; font-size: 0.78rem; color: var(--muted); }
.cb .cant-txt { color: var(--muted); font-weight: 500; font-style: italic; }
.cb .has-note { font-size: 0.66rem; font-weight: 600; color: var(--gold); border: 1px solid var(--gold); border-radius: 4px; padding: 0 4px; margin-left: 4px; white-space: nowrap; }
.cb .has-note.unsure { color: var(--accent); border-color: var(--accent); }
.cb .item-body { padding: 0 14px 14px 17px; display: flex; flex-direction: column; gap: 10px; }
.cb .item-hint { font-size: 0.78rem; color: var(--muted); margin: 0; }
.cb .item-hint b { color: var(--ink); font-weight: 600; }
.cb .secondary { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.cb .dnf { margin: 0; font-size: 0.8rem; color: var(--ink); background: var(--gold-soft); border-radius: 8px; padding: 8px 10px; }
.cb .fq-foot { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }

/* Box */
.cb .stepper { display: flex; gap: 4px; flex-wrap: wrap; }
.cb .stepper span { border: 1px solid var(--line); background: var(--paper); border-radius: 99px; padding: 3px 10px; font-size: 0.76rem; }
.cb .stepper span.cur { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cb .stepper span.ok::before { content: "✓ "; color: var(--good); }
.cb .stepper span.cur.ok::before { color: var(--paper); }
.cb .readout { font-family: var(--mono); font-size: 0.8rem; background: var(--sunk); border-radius: 8px; padding: 8px 12px; }

/* Review, banners and end states */
.cb .checks { display: flex; flex-direction: column; gap: 6px; }
.cb .check { display: grid; grid-template-columns: 20px 1fr; gap: 8px; font-size: 0.85rem; padding: 9px 12px; border-radius: 10px; background: var(--sunk); }
.cb .check.ok .i { color: var(--good); }
.cb .check.warn { background: var(--warn-soft); }
.cb .check.warn .i { color: var(--warn); }
.cb .check .i { font-weight: 700; }
.cb .linkcheck { width: 100%; text-align: left; border: 0; cursor: pointer; font: inherit; color: inherit; }
.cb .linkcheck .go { color: var(--accent); font-weight: 600; margin-left: 6px; }
.cb .banner { padding: 10px 14px; border-radius: 10px; font-size: 0.86rem; }
.cb .banner.ok { background: var(--good-soft); }
.cb .banner.warn { background: var(--warn-soft); }
.cb .summary { display: flex; flex-direction: column; gap: 18px; padding: 6px; }
.cb .summary h2 { margin: 0; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
.cb .summary h4 { margin: 0 0 6px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.cb .summary .crop { display: block; width: 100%; max-width: 360px; height: auto; border-radius: 8px; background: var(--lightbox); }
.cb .review-crop { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.cb .review-crop .crop { flex: 0 1 360px; min-width: 0; }
.cb .review-fronts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cb .review-fronts .small { flex-basis: 100%; color: var(--ink); font-weight: 600; }
.cb .review-fronts img { display: block; width: 88px; height: 66px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--lightbox); }
.cb .answers { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cb .answer { background: none; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 0.86rem; }
.cb .answer:last-child { border-bottom: 0; }
.cb .answer .ico { width: 52px; height: auto; border-radius: 4px; border: 1px solid var(--line); display: block; }
.cb .answer .al { color: var(--muted); font-size: 0.78rem; }
.cb .answer .av { font-weight: 600; }
.cb .answer .an { font-size: 0.78rem; color: var(--muted); font-style: italic; }
.cb .answer.flagged { background: var(--gold-soft); }
.cb .answer.unsure { background: var(--accent-soft); }
.cb .done-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 48px 24px; }
.cb .done-card .tickbig { width: 64px; height: 64px; border-radius: 50%; background: var(--good-soft); display: grid; place-items: center; }
.cb .done-card h2 { margin: 0; font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em; }
.cb .menu { display: flex; flex-direction: column; gap: 6px; }
.cb .cheer { margin: 0; font-weight: 600; }
.cb .lplate { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 4px; background: var(--plate); color: var(--plate-ink); border: 1px solid var(--line-strong); font: 700 0.9rem/1 Arial, Helvetica, sans-serif; }
.cb .job b .lplate { margin-left: 8px; vertical-align: middle; }
.cb .job b .goldpill { margin-left: 8px; padding: 2px 8px; border-radius: 99px; background: var(--gold-soft); color: var(--gold); border: 1px solid var(--gold); font-size: 0.72rem; font-weight: 600; vertical-align: middle; }

/* Landing page: greeting, licence line, one card per kind of job */
.cb .start { max-width: 880px; margin: 24px auto 0; display: flex; flex-direction: column; gap: 20px; }
.cb .start-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.cb .start h1 { margin: 0; font-family: var(--display); font-size: 1.9rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.cb .lic { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--muted); }
.cb .lic > b { color: var(--ink); font-weight: 600; margin-right: 2px; }
.cb .cat { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--paper); border-radius: 99px; padding: 2px 10px 2px 2px; color: var(--muted); }
.cb .cat .letter { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 0.72rem; font-weight: 500; background: var(--sunk); color: var(--muted); }
.cb .cat.full { border-color: var(--good); color: var(--good); font-weight: 600; }
.cb .cat.full .letter { background: var(--good); color: var(--paper); }
.cb .jc-head .cat { padding: 2px; }
.cb .jobs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cb .jobcard { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); min-width: 0; }
.cb .jobcard .jc-head { display: flex; align-items: center; gap: 10px; }
.cb .jobcard h2 { margin: 0 auto 0 0; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
.cb .jobcard .status { font-size: 0.84rem; margin: 0; }
.cb .jobcard .status.ok { color: var(--good); font-weight: 600; }
.cb .pips { display: inline-flex; gap: 4px; vertical-align: middle; margin-right: 6px; }
.cb .pips i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--line-strong); }
.cb .pips i.on { background: var(--good); border-color: var(--good); }
.cb .aside { font-size: 0.82rem; color: var(--muted); background: var(--sunk); border-radius: 10px; padding: 9px 12px; margin: 0; }
.cb form.button_to { display: contents; }

/* Practice test result */
.cb .result { max-width: 640px; margin: 24px auto 0; }
.cb .diffs { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 480px; text-align: left; }
.cb .diff { background: var(--sunk); border-radius: 10px; padding: 10px 12px; font-size: 0.84rem; display: flex; flex-direction: column; gap: 2px; }
.cb .diff b { font-weight: 600; }
.cb .diff span { color: var(--muted); }

/* Shortcut map */
.cb .shortcuts { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(10, 14, 18, 0.45); padding: 16px; }
.cb .shortcuts-card { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.cb .shortcuts-card h3 { font-size: 1rem; }
.cb .shortcuts-card h4 { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.cb .shortcuts-card dl { display: grid; grid-template-columns: minmax(0, 140px) minmax(0, 1fr); gap: 4px 12px; margin: 0; font-size: 0.84rem; }
.cb .shortcuts-card dd { margin: 0; }

.cb .mat-split { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cb .mat-pane { min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 12px; padding: 14px 16px 20px; background: var(--page); border-right: 1px solid var(--line); }
.cb .mat-photo { min-height: 0; display: flex; flex-direction: column; }
.cb .mat-top { display: flex; flex-direction: column; gap: 12px; }
.cb .mat-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.cb .mat-head h3 { margin: 0; font-family: var(--display); font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; flex: 1 1 100%; }
.cb .mat-head .btn { margin-left: auto; }
.cb .mat-steps { display: flex; flex-direction: column; gap: 10px; }
.cb .mat-step { display: flex; flex-direction: column; gap: 6px; }
.cb .mat-step.waiting { opacity: 0.6; }
.cb .mat-q { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.cb .mat-n { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 99px; background: var(--line); font-family: var(--mono); font-size: 0.68rem; }
.cb .mat-step.done .mat-n { background: var(--good); color: #ffffff; }
.cb .mat-chips { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 28px; }
.cb .mat-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); border-radius: 99px; padding: 4px 11px; font-size: 0.82rem; cursor: pointer; text-transform: capitalize; }
.cb .mat-chip:hover { border-color: var(--accent); }
.cb .mat-chip .n { font-family: var(--mono); font-size: 0.68rem; color: var(--muted); }
.cb .mat-chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); font-weight: 600; }
.cb .mat-chip .x { color: var(--muted); font-size: 0.95rem; line-height: 1; }
.cb .mat-search { width: 100%; font: inherit; font-size: 0.85rem; padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--paper); color: var(--ink); }
.cb .mat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.cb .mat-tile { display: flex; flex-direction: column; gap: 5px; padding: 5px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); cursor: pointer; text-align: left; transition: border-color 0.15s, box-shadow 0.15s; }
.cb .mat-tile { position: relative; }
.cb .mat-tile .tk { position: absolute; z-index: 1; top: 9px; left: 9px; font-family: var(--mono); font-size: 0.6rem; background: rgba(255, 255, 255, 0.92); color: #56616c; border-radius: 4px; padding: 0 4px; }
.cb .mat-tile:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.cb .mat-tile[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.cb .mat-name { font-family: var(--mono); font-size: 0.68rem; line-height: 1.25; overflow-wrap: anywhere; padding: 0 2px 2px; }
.cb .mat-tile[aria-pressed="true"] .mat-name { font-weight: 600; }
.cb .mat-thumb { display: block; width: 100%; aspect-ratio: 1; border-radius: 6px; overflow: hidden; isolation: isolate; }
.cb .mat-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.cb .mat-thumb.mini { width: 34px; height: 34px; flex-shrink: 0; border: 1px solid var(--line); }
.cb .mat-empty { grid-column: 1 / -1; padding: 24px 0; text-align: center; }

@media (max-width: 1100px) {
  .cb.cb-job { height: auto; min-height: 100vh; overflow: visible; }
  .cb .appbar { height: auto; min-height: var(--bar); flex-wrap: wrap; white-space: normal; }
  .cb .app { display: flex; flex-direction: column; }
  .cb .work:not(.single) { display: flex; flex-direction: column; }
  .cb .work:not(.single) > .canvas { height: 70vh; min-height: 360px; flex: none; }
  .cb .work:not(.single) > .panel { overflow: visible; border-width: 0; }
  .cb .rail { border-right: 0; }
  .cb .mat-split { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
  .cb .mat-pane { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .cb { padding-inline: 16px; }
  .cb.cb-job { padding-inline: 0; }
  .cb .rail { flex-direction: row; overflow-x: auto; }
  .cb .rail button { min-width: 160px; }
  .cb .rail .grp, .cb .rail .total { display: none; }
  .cb .job { flex-wrap: wrap; }
  .cb .twoup { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .cb .answer { grid-template-columns: 40px minmax(0, 1fr); }
  .cb .jobs { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .cb * { transition: none !important; } .cb .tile:hover { transform: none; } }

/* Other images drawer: the house's listing photos (plan job) or floor plan (photos job), read-only */
.cb .drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 40; width: min(460px, 92vw); overflow: auto; background: var(--paper); border-left: 1px solid var(--line); box-shadow: -8px 0 32px rgba(0, 0, 0, 0.25); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.cb .drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cb .drawer-head h2 { font-size: 1rem; margin: 0; }
.cb .drawer-thumbs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cb .drawer-thumb { aspect-ratio: 4 / 3; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--lightbox); overflow: hidden; cursor: zoom-in; }
.cb .drawer-thumb:hover { border-color: var(--line-strong); }
.cb .drawer-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cb .drawer-large { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.cb .drawer-large img { display: block; width: 100%; height: auto; border-radius: 10px; background: var(--lightbox); }
.cb .drawer-large figcaption { display: flex; justify-content: space-between; gap: 12px; }

/* Front-photo grid */
.cb .fwrap { flex: 1; min-height: 0; overflow-y: auto; background: var(--lightbox); padding: 12px; display: flex; flex-direction: column; gap: 10px; overflow-anchor: none; }
.cb .fhead { margin: 0; font-size: 0.85rem; color: var(--ink); }
.cb .fhead ~ .fhead { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-strong); }
.cb .fact { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.cb .fhead .mono { color: var(--muted); font-weight: 400; }
.cb .fempty { border: 2px dashed var(--line-strong); border-radius: 10px; padding: 18px; text-align: center; font-size: 0.85rem; color: var(--muted); }
/* Tile sizes, shared by the front and rear steps. */
.cb { --grid-tile-min: 170px; --shelf-tile-min: 220px; }
.cb .fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--grid-tile-min), 1fr)); gap: 10px; align-content: start; }
.cb .fgrid.fronts { grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--shelf-tile-min)), 1fr)); }
.cb .fpill { font-size: 0.7rem; padding: 1px 8px; border-radius: 99px; background: var(--paper); color: var(--ink); border: 1px solid var(--line-strong); cursor: pointer; }
.cb .fpill.set { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.cb .ftile { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 6px; transition: border-color 0.15s, background 0.15s; border: 2px solid transparent; border-radius: 10px; background: var(--sunk); }
.cb .ftile.front { border-color: var(--line-strong); }
.cb .ftile.primary { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.cb .ftile.cur { outline: 2px dashed var(--accent); outline-offset: 2px; }
.cb .fronts-strip { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; flex: none; }
.cb .fronts-strip .small { color: var(--ink); font-weight: 600; }
.cb .front-thumb { width: 52px; height: 36px; padding: 0; border: 2px solid var(--line-strong); border-radius: 8px; background: var(--lightbox); overflow: hidden; cursor: pointer; flex: none; }
.cb .front-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cb .front-thumb:hover { border-color: var(--accent); }
.cb .front-thumb.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.cb .fimg { display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: 6px; background: var(--lightbox); cursor: pointer; overflow: hidden; }
.cb .fimg img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cb .flab { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 0.75rem; padding-inline: 2px; min-height: 22px; }
.cb .mkprimary { font-size: 0.72rem; padding: 2px 8px; border: 1px solid var(--accent); border-radius: 99px; background: var(--paper); color: var(--ink); cursor: pointer; }
.cb .mkprimary:hover { background: var(--accent-soft); }
.cb h3.q { font-size: 0.9rem; margin: 4px 0 0; }

/* Rear-tags top-up: no step rail. */
.cb[data-rear] .rail { display: none; }
.cb[data-rear] .work:not(.single) > .panel { grid-row: 1 / -1; }
.cb .rfront { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.cb .rfront img { display: block; width: 100%; max-height: 30vh; object-fit: contain; border-radius: 8px; background: var(--lightbox); }
.cb .fzoom { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 6px; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 0.95rem; line-height: 1; cursor: zoom-in; opacity: 0; transition: opacity 0.12s; }
.cb .ftile:hover .fzoom, .cb .fzoom:focus-visible, .cb .fgrid.fronts .fzoom { opacity: 1; }
.cb .flightbox { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.88); cursor: zoom-out; }
.cb .flightbox img { max-width: 96vw; max-height: 92vh; object-fit: contain; }
.cb .flightbox-hint { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font-size: 0.75rem; color: #ccc; }
