/* Lead Magnet Lab (src/lead-magnets.html). Site tokens only. Class prefix: lab- */

/* Anchors land below the header and the sticky lab bar. */
html { scroll-padding-top: calc(var(--header-h) + 84px); }

/* ---------- Shared small parts ---------- */
.lab-label { font-family: var(--font-mono); font-size: var(--fs-micro); font-weight: 500; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--text-3); }
.section--ink .lab-label { color: var(--text-on-dark-2); }
.lab-mono { font-family: var(--font-mono); font-feature-settings: "zero"; font-variant-numeric: tabular-nums; }
.lab-loading { font-size: var(--fs-sm); color: var(--text-3); padding: 24px 0; }

/* Capture channel chips: Email / WhatsApp / Phone */
.lab-caps { display: flex; flex-wrap: wrap; gap: 6px; }
.lab-cap { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 8px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--paper); font-size: var(--fs-xs); font-weight: 500; color: var(--text-2); white-space: nowrap; }
.lab-cap .i { width: 14px; height: 14px; color: var(--text-3); }
.lab-cap--whatsapp .i { color: var(--whatsapp-ink); }
.section--ink .lab-cap { background: transparent; border-color: var(--ink-3); color: var(--text-on-dark); }
.section--ink .lab-cap .i { color: var(--text-on-dark-2); }
.section--ink .lab-cap--whatsapp .i { color: var(--whatsapp); }

/* Small tags */
.lab-tag { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: var(--r-xs); border: 1px solid var(--line); background: var(--mist); font-family: var(--font-mono); font-size: 11px; letter-spacing: .02em; color: var(--text-2); white-space: nowrap; }
.lab-tag--proto { background: var(--brand-tint); border-color: var(--brand-tint-2); color: var(--brand-ink); }
.lab-tag--fatal { background: color-mix(in srgb, var(--danger) 8%, var(--paper)); border-color: color-mix(in srgb, var(--danger) 35%, var(--paper)); color: var(--danger); }
.lab-tag--fatal .i { width: 13px; height: 13px; }
.lab-tag--bundle { background: var(--ink); border-color: var(--ink); color: var(--text-on-dark); }

/* Pick toggle (used on cards, rows and panels) */
.lab-add { gap: 8px; }
.lab-add .i { width: 16px; height: 16px; }
.lab-add[aria-pressed="true"] { --btn-bg: var(--brand-tint); --btn-fg: var(--brand-ink); --btn-bd: var(--brand-tint-2); }
.lab-add[aria-pressed="true"]:hover { --btn-bd: var(--brand); }

/* Score bars, drawn to scale on 0 to 10 */
.lab-bars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
.lab-bars--one { grid-template-columns: minmax(0, 1fr); }
.lab-bar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; align-items: baseline; font-size: var(--fs-xs); color: var(--text-2); min-width: 0; }
.lab-bar-row b { font-family: var(--font-mono); font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }
.lab-bar-track { grid-column: 1 / -1; position: relative; height: 6px; border-radius: 3px; background: var(--mist-2); overflow: hidden; }
.lab-bar-track::after { content: ""; position: absolute; z-index: 0; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--paper); }
.lab-bar-fill { position: absolute; z-index: 1; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--ink); }
.lab-total { display: flex; flex-direction: column; gap: 4px; }
.lab-total__v { font-family: var(--font-mono); font-size: clamp(2rem, 1.7rem + 1vw, 2.5rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.lab-total__v small { font-size: .42em; letter-spacing: 0; color: var(--text-3); margin-left: 2px; }
.lab-total__l { font-size: var(--fs-xs); color: var(--text-3); }

/* Spark: six score columns in a compact row */
.lab-spark { display: inline-grid; grid-template-columns: repeat(6, 5px); gap: 2px; height: 22px; align-items: end; }
.lab-spark i { display: block; height: 100%; border-radius: 2px; background: var(--mist-2); position: relative; overflow: hidden; }
.lab-spark i::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--v); background: var(--text-2); border-radius: 2px; }

/* Inline magnet reference (opens the detail panel) */
.lab-ref { display: inline; padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--text); text-align: left; text-decoration: underline; text-decoration-color: var(--line-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: pointer; }
.lab-ref:hover { text-decoration-color: var(--ink); }
.lab-ref.is-proto::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); margin-right: 6px; vertical-align: 1px; }
.lab-summary__text .lab-ref, .lab-fields .lab-ref, .lab-box p .lab-ref, .lab-rule__body .lab-ref, .lab-rule__lede .lab-ref, .lab-crit .lab-ref, .lab-brief .lab-ref, .lab-proto__one .lab-ref, .lab-bundle__lede .lab-ref, .lab-more__body .lab-ref, .lab-detail .lead .lab-ref, .lab-detail section > p .lab-ref { font-weight: 500; }
.lab-summary__text .lab-ref.is-proto::before, .lab-fields .lab-ref.is-proto::before, .lab-box p .lab-ref.is-proto::before, .lab-rule__body .lab-ref.is-proto::before, .lab-rule__lede .lab-ref.is-proto::before, .lab-crit .lab-ref.is-proto::before, .lab-brief .lab-ref.is-proto::before, .lab-proto__one .lab-ref.is-proto::before, .lab-more__body .lab-ref.is-proto::before, .lab-detail .lead .lab-ref.is-proto::before, .lab-detail section > p .lab-ref.is-proto::before { display: none; }
.lab-dot-key { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-xs); color: var(--text-3); }
.lab-dot-key::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

/* ---------- Hero ---------- */
.lab-hero { padding-block: clamp(28px, 3vw, 40px) clamp(56px, 6vw, 96px); }
.lab-hero .breadcrumbs { margin-bottom: clamp(28px, 4vw, 48px); }
.lab-hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 88px); align-items: end; }
.lab-hero h1 { font-size: var(--fs-display); line-height: var(--lh-tight); }
.lab-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.lab-how { list-style: none; padding: 16px 0 0; margin: 4px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; border-top: 1px solid var(--line); font-size: var(--fs-sm); line-height: 1.45; color: var(--text-2); counter-reset: how; max-width: 640px; }
.lab-how li { display: flex; flex-direction: column; gap: 6px; counter-increment: how; }
.lab-how li::before { content: "Step " counter(how); font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--brand); }
@media (max-width: 520px) { .lab-how { grid-template-columns: minmax(0, 1fr); gap: 10px; } .lab-how li { flex-direction: row; gap: 12px; align-items: baseline; } .lab-how li::before { content: counter(how); min-width: 12px; } }
.lab-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.lab-stats > div { padding: 22px 22px 22px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.lab-stats > div:nth-child(2n) { padding-left: 22px; padding-right: 0; border-left: 1px solid var(--line); }
.lab-stats__v { display: block; font-family: var(--font-sans); font-size: clamp(2.5rem, 1.9rem + 2.2vw, 4rem); font-weight: 600; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: var(--text); }
.lab-stats__l { display: block; margin-top: 10px; font-size: var(--fs-sm); color: var(--text-2); }

.lab-summary { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 16px clamp(32px, 5vw, 88px); margin-top: clamp(48px, 6vw, 80px); padding-top: 28px; border-top: 1px solid var(--line); }
.lab-summary__aside { display: flex; flex-direction: column; gap: 10px; }
.lab-summary__aside p { font-size: var(--fs-sm); color: var(--text-3); }
.lab-summary__text { font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.6; letter-spacing: -0.005em; color: var(--text); max-width: 70ch; text-wrap: pretty; }

.lab-swarm { margin-top: clamp(48px, 6vw, 72px); display: flex; flex-direction: column; gap: 20px; }
.lab-swarm__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.lab-swarm .steps { --steps: 5; }
.lab-swarm .step h3 { font-size: 1.0625rem; letter-spacing: -0.01em; }
.lab-swarm .step p { font-size: var(--fs-sm); color: var(--text-2); }

@media (max-width: 960px) {
  .lab-hero__grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .lab-summary { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Sticky lab bar (section nav + My picks) ---------- */
.lab-bar { position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); z-index: 40; background: color-mix(in srgb, var(--paper) 94%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-block: 1px solid var(--line); }
.lab-bar__inner { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.lab-bar__nav { position: relative; flex: 1; min-width: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, black calc(100% - 28px), transparent); mask-image: linear-gradient(to right, black calc(100% - 28px), transparent); padding-block: 8px; }
.lab-bar__nav::-webkit-scrollbar { display: none; }
.lab-bar__nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 8px; font-size: var(--fs-sm); font-weight: 500; color: var(--text-2); text-decoration: none; white-space: nowrap; transition: background-color .15s, color .15s; }
.lab-bar__nav a:hover { background: var(--mist); color: var(--text); }
.lab-bar__nav a[aria-current="true"] { background: var(--mist); color: var(--text); box-shadow: inset 0 -2px 0 var(--ink); border-radius: 8px 8px 2px 2px; }
.lab-bar__nav a:focus-visible { outline-offset: -2px; }
.lab-bar__nav a:last-child { margin-right: 24px; }
.lab-picks-btn { flex: none; gap: 10px; }
.lab-count { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 7px; border-radius: var(--r-pill); background: var(--ink-3); color: var(--text-on-dark); font-family: var(--font-mono); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; transition: background-color .2s, color .2s, transform .2s var(--ease); }
.lab-count.is-on { background: var(--brand-bright); color: var(--ink); }
.lab-count.is-bump { transform: scale(1.18); }
@media (max-width: 760px) {
  .lab-bar__inner { gap: 8px; min-height: 56px; }
  .lab-bar__nav a { padding: 0 10px; min-height: 44px; }
  .lab-picks-btn { min-height: 44px; padding: 0 12px; }
}
@media (max-width: 400px) { .lab-picks-btn > .i { display: none; } .lab-picks-btn { gap: 8px; } }

/* Toast under the lab bar (clear of every bottom fixed element) */
.lab-toast { position: fixed; z-index: 46; top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 72px); right: max(var(--gutter), calc((100vw - var(--container)) / 2)); max-width: min(420px, calc(100vw - 32px)); padding: 12px 16px; border-radius: var(--r-md); background: var(--ink); color: var(--text-on-dark); font-size: var(--fs-sm); box-shadow: var(--shadow-pop); display: flex; gap: 10px; align-items: center; opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease); }
.lab-toast .i { width: 18px; height: 18px; color: var(--brand-bright); }
.lab-toast.is-on { opacity: 1; transform: none; }
@media (max-width: 760px) { .lab-toast { left: 16px; right: 16px; max-width: none; top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 66px); } }

/* ---------- System diagram (ink section) ---------- */
.lab-flow { list-style: none; padding: 0; margin: clamp(40px, 5vw, 64px) 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.9fr) repeat(4, minmax(0, 1fr)); gap: 0; }
.lab-flow > li { position: relative; padding: 34px 18px 0 0; min-width: 0; }
.lab-flow > li::before { content: ""; position: absolute; left: 0; top: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); border: 2px solid var(--text-on-dark-2); box-sizing: border-box; }
.lab-flow__link { position: absolute; left: 20px; right: 8px; top: 5px; height: 2px; background: var(--ink-3); }
.lab-flow__link::after { content: ""; position: absolute; right: 0; top: -4px; width: 8px; height: 8px; border-top: 2px solid var(--text-on-dark-2); border-right: 2px solid var(--text-on-dark-2); transform: rotate(45deg); box-sizing: border-box; }
.lab-flow__body { display: flex; flex-direction: column; gap: 8px; }
.lab-flow__step { font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--text-on-dark-2); }
.lab-flow__title { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; color: var(--text-on-dark); line-height: 1.25; }
.lab-flow__desc { font-size: var(--fs-xs); line-height: 1.55; color: var(--text-on-dark-2); }
.lab-flow > li.is-conductor::before { background: var(--brand-bright); border-color: var(--brand-bright); }
.lab-flow > li.is-conductor { padding-right: 26px; }
.lab-flow > li.is-conductor .lab-flow__body { margin-top: -14px; padding: 18px 20px 20px; border-radius: var(--r-lg); background: var(--ink-2); border: 1px solid var(--brand-bright); gap: 10px; }
.lab-flow > li.is-conductor .lab-flow__step { color: var(--brand-bright); }
.lab-flow > li.is-conductor .lab-flow__title { font-size: 1.25rem; }
.lab-flow .check-list { gap: 8px; font-size: var(--fs-xs); line-height: 1.5; margin-top: 4px; }
.lab-flow .check-list .i { width: 16px; height: 16px; margin-top: 1px; }
.lab-flow .lab-caps { margin-top: 2px; }
.lab-flow__foot { margin-top: clamp(36px, 4vw, 56px); --cols: 4; }
.lab-flow__foot .stat__value { font-family: var(--font-mono); font-weight: 500; font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); letter-spacing: -0.04em; }
.lab-flow__foot .stat__value small { font-size: .5em; letter-spacing: 0; color: var(--text-on-dark-2); margin-left: 4px; }
.lab-system__links { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 28px; }

@media (max-width: 1100px) {
  .lab-flow { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
  .lab-flow > li, .lab-flow > li.is-conductor { padding: 0 0 26px 34px; }
  .lab-flow > li::before { top: 4px; }
  .lab-flow__link { left: 5px; right: auto; top: 22px; bottom: 6px; width: 2px; height: auto; }
  .lab-flow__link::after { right: auto; left: -3px; top: auto; bottom: 0; transform: rotate(135deg); }
  .lab-flow > li.is-conductor .lab-flow__body { margin-top: 0; }
  .lab-flow > li:last-child { padding-bottom: 0; }
}

/* ---------- Bundles ---------- */
.lab-bundles { margin-top: clamp(36px, 4vw, 56px); }
.lab-bundle { gap: 20px; }
.lab-bundle.is-chosen { border-color: var(--ink); box-shadow: var(--shadow-card); }
.lab-bundle__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.lab-bundle__top .stack { --stack: 6px; }
.lab-bundle__n { text-align: right; flex: none; }
.lab-bundle__n b { display: block; font-family: var(--font-mono); font-size: 2.5rem; font-weight: 500; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.lab-bundle__n span { font-size: var(--fs-xs); color: var(--text-3); }
.lab-facts { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line); }
.lab-facts > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.lab-facts dt { font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--text-3); padding-top: 3px; }
.lab-facts dd { color: var(--text); }
.lab-bundle__lede { font-size: var(--fs-sm); color: var(--text-2); }
.lab-bundle__inc { font-size: var(--fs-xs); color: var(--text-3); }
.lab-mlist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.lab-mlist li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: var(--fs-sm); min-width: 0; }
.lab-mlist li:last-child { border-bottom: 0; }
.lab-mlist .lab-ref { font-weight: 500; text-decoration-color: transparent; }
.lab-mlist .lab-ref:hover { text-decoration-color: var(--ink); }
.lab-mlist .lab-pickmark { flex: none; width: 18px; height: 18px; color: var(--brand); }
.lab-mlist .lab-pickmark[hidden] { display: none; }
.lab-more { font-size: var(--fs-sm); }
.lab-more summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; cursor: pointer; font-weight: 600; color: var(--text); }
.lab-more summary::-webkit-details-marker { display: none; }
.lab-more summary .i { width: 16px; height: 16px; transition: transform .2s var(--ease); color: var(--text-3); }
.lab-more[open] summary .i { transform: rotate(180deg); }
.lab-more__body { display: flex; flex-direction: column; gap: 10px; color: var(--text-2); padding-bottom: 6px; }
.lab-bundle__foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.lab-meter { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; font-size: var(--fs-xs); color: var(--text-3); }
.lab-meter__track { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: var(--mist-2); overflow: hidden; }
.lab-meter__fill { height: 100%; background: var(--brand); border-radius: 2px; transition: width .3s var(--ease); }
.lab-bundle .btn[data-state="full"] { --btn-bg: var(--brand-tint); --btn-fg: var(--brand-ink); --btn-bd: var(--brand-tint-2); }
.lab-bundle .btn[data-state="full"]:hover { --btn-bd: var(--brand); }

/* ---------- Prototype cards ---------- */
.lab-protos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: clamp(36px, 4vw, 56px); }
@media (max-width: 900px) { .lab-protos { grid-template-columns: minmax(0, 1fr); } }
.lab-proto { display: flex; flex-direction: column; min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: border-color .18s var(--ease), box-shadow .18s var(--ease); }
.lab-proto:hover { border-color: var(--line-strong); box-shadow: var(--shadow-card); }
.lab-shot { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--mist-2); border-bottom: 1px solid var(--line); overflow: hidden; }
.lab-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.lab-shot__ph { position: absolute; inset: 0; background-color: var(--mist); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 28px 28px; }
.lab-shot__win { position: absolute; left: 9%; right: 9%; top: 15%; bottom: -1px; background: var(--paper); border: 1px solid var(--line-strong); border-bottom: 0; border-radius: var(--r-md) var(--r-md) 0 0; box-shadow: var(--shadow-card); display: flex; flex-direction: column; overflow: hidden; }
.lab-shot__chrome { display: flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-bottom: 1px solid var(--line); background: var(--mist); flex: none; }
.lab-shot__chrome i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); flex: none; }
.lab-shot__url { margin-left: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-mono); font-size: 10.5px; color: var(--text-3); }
.lab-shot__page { flex: 1; padding: 6% 7%; display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.lab-shot__cat { font-family: var(--font-mono); font-size: 10px; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--brand); }
.lab-shot__name { font-weight: 600; font-size: clamp(.95rem, .8rem + .6vw, 1.25rem); letter-spacing: -0.02em; line-height: 1.15; color: var(--text); max-width: 22ch; }
.lab-shot__sk { display: grid; gap: 6px; margin-top: 4px; }
.lab-shot__sk span { display: block; height: 7px; border-radius: 4px; background: var(--mist-2); }
.lab-shot__sk span:nth-child(1) { width: 86%; } .lab-shot__sk span:nth-child(2) { width: 64%; } .lab-shot__sk span:nth-child(3) { width: 74%; }
.lab-shot__cta { width: 34%; height: 18px; border-radius: 5px; background: var(--brand-tint-2); margin-top: 6px; }
.lab-shot__rank { position: absolute; top: 12px; left: 12px; z-index: 2; display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--r-pill); background: var(--ink); color: var(--text-on-dark); font-family: var(--font-mono); font-size: 12px; letter-spacing: .02em; }
.lab-proto__body { display: flex; flex-direction: column; gap: 16px; padding: clamp(20px, 2.2vw, 28px); flex: 1; }
.lab-proto__meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .03em; color: var(--text-3); }
.lab-proto__title { display: flex; flex-direction: column; gap: 4px; }
.lab-proto__title h3 { font-size: 1.375rem; }
.lab-sub { font-size: var(--fs-sm); color: var(--text-2); line-height: 1.45; }
.lab-proto__one { font-size: var(--fs-sm); color: var(--text-2); }
.lab-score { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 20px; padding-top: 16px; border-top: 1px solid var(--line); align-items: start; }
.lab-proto__actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.lab-proto__actions .btn--ghost { margin-left: auto; }
@media (max-width: 520px) {
  .lab-score { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .lab-total { flex-direction: row; align-items: baseline; gap: 10px; }
  .lab-proto__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lab-proto__actions .btn { padding-inline: 10px; min-height: 44px; }
  .lab-proto__actions .btn--ghost { grid-column: 1 / -1; margin-left: 0; border: 1px solid var(--line); }
}

/* Spec disclosure on a prototype card */
.lab-spec { border-top: 1px solid var(--line); }
.lab-spec > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; cursor: pointer; font-weight: 600; font-size: var(--fs-sm); }
.lab-spec > summary::-webkit-details-marker { display: none; }
.lab-spec > summary .lab-label { margin-left: 8px; }
.lab-spec__body { padding-bottom: 8px; }

/* Plus/minus disc used by every disclosure */
.lab-pm { position: relative; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-strong); flex: none; transition: background-color .2s, border-color .2s; color: var(--text); }
.lab-pm::before, .lab-pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .2s var(--ease); }
.lab-pm::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] > summary .lab-pm, [aria-expanded="true"] .lab-pm { background: var(--ink); border-color: var(--ink); color: var(--paper); }
details[open] > summary .lab-pm::after, [aria-expanded="true"] .lab-pm::after { transform: translate(-50%, -50%) rotate(0deg); }

/* ---------- Detail content (catalogue rows and the side panel) ---------- */
.lab-detail { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 32px clamp(28px, 3.5vw, 48px); }
.lab-detail--panel { grid-template-columns: minmax(0, 1fr); gap: 28px; }
.lab-fields { display: flex; flex-direction: column; }
.lab-fields > div { padding: 16px 0; border-top: 1px solid var(--line); }
.lab-fields > div:first-child { border-top: 0; padding-top: 0; }
.lab-fields dt { margin-bottom: 6px; }
.lab-fields dd { font-size: var(--fs-sm); line-height: 1.65; color: var(--text); text-wrap: pretty; }
.lab-fields dd a { color: var(--brand); font-weight: 500; overflow-wrap: anywhere; }
.lab-ol { list-style: none; padding: 0; margin: 0; counter-reset: lol; display: flex; flex-direction: column; gap: 8px; }
.lab-ol > li { counter-increment: lol; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 6px; }
.lab-ol > li::before { content: counter(lol); font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-3); padding-top: 2px; }
.lab-ul { padding-left: 1.1em; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.lab-ul li::marker { color: var(--text-3); }
.lab-aside { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.lab-box { border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; background: var(--paper); }
.lab-box--mist { background: var(--mist); border-color: transparent; }
.lab-box__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.lab-box p { font-size: var(--fs-sm); color: var(--text-2); line-height: 1.6; }
.lab-box p b { color: var(--text); font-weight: 600; }
.lab-redteam.is-fatal { border-color: color-mix(in srgb, var(--danger) 40%, var(--paper)); background: color-mix(in srgb, var(--danger) 4%, var(--paper)); }
.lab-kv { display: grid; grid-template-columns: minmax(0, 120px) minmax(0, 1fr); gap: 6px 14px; font-size: var(--fs-sm); }
.lab-kv dt { color: var(--text-3); font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: .04em; text-transform: uppercase; padding-top: 3px; }
.lab-kv dd { color: var(--text); }
.lab-scen { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.lab-scen a { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 8px; padding: 6px 0; font-size: var(--fs-sm); color: var(--text); text-decoration: none; }
.lab-scen a:hover span:last-child { text-decoration: underline; text-underline-offset: 3px; }
.lab-scen a span:first-child { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-3); padding-top: 1px; }
.lab-brief { display: flex; flex-direction: column; gap: 0; }
.lab-brief > div { padding: 14px 0; border-top: 1px solid var(--line); }
.lab-brief > div:first-child { border-top: 0; padding-top: 4px; }
.lab-brief dt { margin-bottom: 6px; }
.lab-brief dd { font-size: var(--fs-sm); line-height: 1.65; color: var(--text); }
@media (max-width: 860px) { .lab-detail { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Routing matrix ---------- */
.lab-filterbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: clamp(32px, 4vw, 48px); }
.lab-chips { position: relative; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.lab-chips .chip { min-height: 40px; gap: 8px; padding: 0 14px; }
.lab-chips .chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.lab-chips .chip[aria-pressed="true"] .lab-chip-n { color: var(--text-on-dark-2); }
.lab-chip-n { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.lab-filterbar__side { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
@media (max-width: 760px) {
  .lab-chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter); }
  .lab-chips--scroll::-webkit-scrollbar { display: none; }
  .lab-chips .chip { min-height: 44px; flex: none; }
}
/* position: relative keeps absolutely positioned (visually hidden) labels inside the scroll box */
.lab-table-wrap { position: relative; margin-top: 20px; border-top: 1px solid var(--line-strong); }
.lab-route { width: 100%; min-width: 1100px; border-collapse: separate; border-spacing: 0; font-size: var(--fs-sm); }
.lab-route th, .lab-route td { padding: 16px 18px 16px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.lab-route thead th { padding-block: 12px; font-family: var(--font-mono); font-size: var(--fs-micro); font-weight: 500; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
.lab-route tbody th { font-weight: 400; }
.lab-route thead th:nth-child(1) { width: 26%; } .lab-route thead th:nth-child(2) { width: 11%; } .lab-route thead th:nth-child(3) { width: 10%; }
.lab-route thead th:nth-child(4) { width: 19%; } .lab-route thead th:nth-child(5) { width: 17%; } .lab-route thead th:nth-child(6) { width: 13%; } .lab-route thead th:nth-child(7) { width: 60px; }
.lab-route td:last-child, .lab-route th:last-child { padding-right: 0; text-align: right; }
.lab-route__scen strong { display: block; font-weight: 600; color: var(--text); line-height: 1.35; }
.lab-route__scen span { display: block; margin-top: 4px; font-size: var(--fs-xs); line-height: 1.5; color: var(--text-3); }
.lab-route__scen .lab-mono { display: inline; margin: 0 6px 0 0; font-size: 11px; color: var(--text-3); }
.lab-route .badge { height: 24px; font-weight: 500; }
.lab-route__share { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text); line-height: 1.5; }
.lab-route__mag { line-height: 1.45; }
.lab-route__mag .lab-ref { display: inline; }
.lab-route__note { display: block; margin-top: 4px; font-size: var(--fs-xs); line-height: 1.5; color: var(--text-3); }
.lab-route__note .lab-ref { font-weight: 500; color: var(--text-2); }
.lab-route__chan { font-size: var(--fs-xs); line-height: 1.5; color: var(--text-2); }
.lab-route tr.is-hl > td { background: var(--brand-tint); }
.lab-iconbtn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--paper); color: var(--text); cursor: pointer; transition: border-color .15s, background-color .15s; }
.lab-iconbtn:hover { border-color: var(--ink); }
.lab-iconbtn .i { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.lab-iconbtn[aria-expanded="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.lab-iconbtn[aria-expanded="true"] .i { transform: rotate(180deg); }
.lab-route__more > td, .lab-route__more > td:last-child { padding-top: 0; background: var(--mist); text-align: left; }
.lab-route__more .lab-kv { grid-template-columns: 150px minmax(0, 1fr); gap: 10px 20px; padding: 18px 20px; max-width: 980px; }
.lab-route__more dd { line-height: 1.6; }
.lab-route tr.has-more > td { border-bottom-color: transparent; }
.lab-empty { padding: 28px 0; font-size: var(--fs-sm); color: var(--text-2); }

/* ---------- Catalogue ---------- */
.lab-controls { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, .8fr) auto minmax(0, 1fr); gap: 14px 16px; align-items: end; margin-top: clamp(32px, 4vw, 48px); padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); }
.lab-ctl { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lab-ctl label, .lab-ctl .lab-label { display: block; }
.lab-controls .input, .lab-controls .select { min-height: 44px; padding-block: 8px; font-size: var(--fs-sm); }
.lab-search { position: relative; }
.lab-search .i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-3); pointer-events: none; }
.lab-search .input { padding-left: 38px; }
.lab-controls .seg { display: flex; }
.lab-controls .seg button { min-height: 36px; padding: 0 14px; white-space: nowrap; }
.lab-controls .seg button:focus-visible { outline-offset: 0; }
@media (max-width: 1100px) {
  .lab-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lab-ctl--search, .lab-ctl--status { grid-column: 1 / -1; }
  .lab-controls .seg button { flex: 1; }
}
@media (max-width: 520px) { .lab-controls { padding: 16px; gap: 12px; } .lab-controls .seg button { padding: 0 8px; min-height: 40px; } }
.lab-results { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin: 20px 0 12px; font-size: var(--fs-sm); color: var(--text-2); }
.lab-results strong { color: var(--text); font-family: var(--font-mono); font-weight: 500; }
.lab-listwrap { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.lab-list { list-style: none; padding: 0; margin: 0; }
.lab-list__head { display: grid; grid-template-columns: minmax(0, 1fr) 150px 164px 120px 26px; gap: 20px; padding: 12px 180px 12px 22px; border-bottom: 1px solid var(--line); background: var(--paper); }
.lab-listwrap .lab-empty { padding: 28px 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.lab-row + .lab-row { border-top: 1px solid var(--line); }
.lab-row__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding-right: 18px; }
.lab-row__toggle { display: grid; grid-template-columns: minmax(0, 1fr) 150px 164px 120px 26px; gap: 20px; align-items: center; width: 100%; min-height: 72px; padding: 14px 0 14px 22px; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.lab-row__toggle:focus-visible { outline-offset: -3px; border-radius: var(--r-md); }
.lab-row__toggle:hover .lab-row__short { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.lab-row__name { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lab-row__meta { display: contents; }
.lab-row__short { font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; line-height: 1.3; }
.lab-row__rest { font-size: var(--fs-xs); color: var(--text-3); line-height: 1.45; }
.lab-row__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.lab-row__tags:empty { display: none; }
.lab-row__cat { font-size: var(--fs-xs); color: var(--text-2); }
.lab-row__score { display: flex; align-items: center; gap: 12px; }
.lab-row__score b { font-family: var(--font-mono); font-weight: 500; font-size: 1.0625rem; font-variant-numeric: tabular-nums; min-width: 3.2ch; }
.lab-row .lab-add { width: 150px; }
.lab-row__body { padding: 8px 22px 28px; }
.lab-row__body .lab-lede { font-size: 1rem; line-height: 1.6; color: var(--text); max-width: 80ch; padding: 18px 0 24px; border-top: 1px dashed var(--line); margin-bottom: 4px; }
.lab-row.is-open { background: color-mix(in srgb, var(--mist) 45%, var(--paper)); }
.lab-row.is-open .lab-row__body .lab-box { background: var(--paper); }
@media (max-width: 1100px) {
  .lab-list__head { display: none; }
  .lab-row__toggle { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name chev" "meta meta"; gap: 10px 12px; padding: 16px 0 16px 18px; }
  .lab-row__name { grid-area: name; }
  .lab-row__chev { grid-area: chev; align-self: start; }
  .lab-row__meta { grid-area: meta; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
  .lab-row__head { padding-right: 14px; }
}
@media (max-width: 640px) {
  .lab-row__head { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0 14px 14px 0; }
  .lab-row__head .lab-add { margin-left: 18px; width: auto; justify-self: start; min-height: 44px; }
  .lab-row__body { padding: 4px 16px 24px; }
}

/* ---------- Rules ---------- */
.lab-rules { display: flex; flex-direction: column; gap: clamp(36px, 4vw, 56px); margin-top: clamp(36px, 4vw, 56px); }
.lab-rulegroup { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 16px clamp(28px, 4vw, 64px); padding-top: 22px; border-top: 1px solid var(--ink); }
.lab-rulegroup__head { display: flex; flex-direction: column; gap: 8px; }
.lab-rulegroup__head h3 { font-size: 1.25rem; }
.lab-rulegroup__head p { font-size: var(--fs-sm); color: var(--text-2); }
.lab-rulelist { border-top: 0; }
.lab-rule { border-bottom: 1px solid var(--line); }
.lab-rule:first-child > summary { padding-top: 0; }
.lab-rule > summary { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 16px 0; cursor: pointer; }
.lab-rule > summary::-webkit-details-marker { display: none; }
.lab-rule > summary strong { display: block; font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; color: var(--text); }
.lab-rule > summary span.lab-rule__lede { display: block; margin-top: 4px; font-size: var(--fs-sm); color: var(--text-2); line-height: 1.55; }
.lab-rule[open] > summary span.lab-rule__lede { display: none; }
.lab-rule__body { padding: 0 44px 20px 0; font-size: var(--fs-sm); line-height: 1.7; color: var(--text); max-width: 82ch; }
.lab-rule__body p + p { margin-top: .7em; }
.lab-rules__tools { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 860px) { .lab-rulegroup { grid-template-columns: minmax(0, 1fr); } .lab-rule__body { padding-right: 0; } }

/* ---------- Gaps and dropped ---------- */
.lab-critics { margin-top: clamp(32px, 4vw, 48px); }
.lab-critics summary { gap: 16px; }
.lab-critics summary .lab-mono { font-size: var(--fs-sm); color: var(--text-3); font-weight: 500; }
.lab-critics summary > span:first-child { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.lab-crit { list-style: none; padding: 0; margin: 0 0 24px; counter-reset: crit; }
.lab-crit li { display: grid; grid-template-columns: 34px minmax(0, 1.1fr) minmax(0, 1fr); gap: 8px 28px; padding: 16px 0; border-top: 1px solid var(--line); font-size: var(--fs-sm); line-height: 1.6; counter-increment: crit; }
.lab-crit li::before { content: counter(crit, decimal-leading-zero); font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-3); padding-top: 2px; }
.lab-crit li > div:first-of-type { color: var(--text); }
.lab-crit li > div:last-of-type { color: var(--text-2); }
.lab-crit .lab-label { display: block; margin-bottom: 4px; }
.lab-crit--drop li > div:first-of-type { font-weight: 600; }
@media (max-width: 760px) { .lab-crit li { grid-template-columns: 30px minmax(0, 1fr); } .lab-crit li > div:last-of-type { grid-column: 2; } }

/* ---------- Commission block (end of page) ---------- */
.lab-commission { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; padding: clamp(28px, 4vw, 48px); border-radius: var(--r-xl); background: var(--mist); border: 1px solid var(--line); }
.lab-commission h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); }
.lab-commission__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.lab-commission__status { font-size: var(--fs-sm); color: var(--text-2); min-height: 1.5em; }
@media (max-width: 860px) { .lab-commission { grid-template-columns: minmax(0, 1fr); } .lab-commission__actions .btn { flex: 1 1 200px; } }

/* ---------- Drawers: My picks and the detail panel ---------- */
.lab-drawer { position: fixed; inset: 0; z-index: 85; display: flex; justify-content: flex-end; }
.lab-drawer[hidden] { display: none; }
.lab-drawer__scrim { position: absolute; inset: 0; background: color-mix(in srgb, var(--ink) 52%, transparent); animation: labFade .2s var(--ease); }
.lab-drawer__panel { position: relative; width: min(500px, 100%); height: 100%; max-height: 100dvh; background: var(--paper); box-shadow: var(--shadow-pop); display: flex; flex-direction: column; animation: labSlide .26s var(--ease); outline: none; }
.lab-drawer--wide .lab-drawer__panel { width: min(780px, 100%); }
.lab-drawer__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: calc(18px + env(safe-area-inset-top, 0px)) 20px 18px 28px; border-bottom: 1px solid var(--line); flex: none; }
.lab-drawer__head h2 { font-size: 1.5rem; letter-spacing: -0.02em; }
.lab-drawer__close { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--text); cursor: pointer; }
.lab-drawer__close:hover { border-color: var(--ink); }
.lab-drawer__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 24px 28px 32px; }
.lab-drawer__foot { flex: none; border-top: 1px solid var(--line); padding: 16px 28px calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 10px; background: var(--paper); }
@keyframes labSlide { from { transform: translateX(24px); opacity: .001; } to { transform: none; opacity: 1; } }
@keyframes labFade { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 560px) {
  .lab-drawer__head { padding-left: 20px; padding-right: 14px; }
  .lab-drawer__body { padding: 20px 20px 28px; }
  .lab-drawer__foot { padding-inline: 20px; }
}
body.lab-lock { overflow: hidden; }

/* Picks list */
.lab-picks { display: flex; flex-direction: column; gap: 24px; }
.lab-picks__group { display: flex; flex-direction: column; gap: 4px; }
.lab-picks__group > .lab-label { display: flex; justify-content: space-between; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.lab-picks ul { list-style: none; padding: 0; margin: 0; }
.lab-pick { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.lab-pick__name { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lab-pick__name .lab-ref { font-weight: 600; text-decoration-color: transparent; }
.lab-pick__name .lab-ref:hover { text-decoration-color: var(--ink); }
.lab-pick__id { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); overflow-wrap: anywhere; }
.lab-pick__x { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: none; color: var(--text-3); cursor: pointer; }
.lab-pick__x:hover { background: var(--mist); color: var(--text); }
.lab-pick__x .i { width: 18px; height: 18px; }
.lab-bundle-note { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: var(--r-md); background: var(--mist); font-size: var(--fs-sm); color: var(--text-2); }
.lab-bundle-note strong { color: var(--text); }
.lab-empty-picks { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; padding: 8px 0; color: var(--text-2); font-size: var(--fs-sm); }
.lab-empty-picks .icon-tile { background: var(--mist); color: var(--text-2); }
.lab-copy-status { font-size: var(--fs-sm); color: var(--text-2); min-height: 1.4em; }
.lab-copy-status.is-ok { color: var(--brand-ink); }
.lab-foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.lab-textwrap summary { list-style: none; display: inline-flex; align-items: center; min-height: 40px; font-size: var(--fs-sm); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.lab-textwrap summary::-webkit-details-marker { display: none; }
.lab-textwrap textarea { width: 100%; min-height: 160px; margin-top: 8px; font-family: var(--font-mono); font-size: 12px; line-height: 1.55; }
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

/* Detail panel header */
.lab-ph { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.lab-ph h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.875rem); line-height: 1.15; }
.lab-ph .lab-sub { font-size: var(--fs-sm); }
.lab-panel-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.lab-section-t { font-size: 1.125rem; margin-bottom: 12px; }

/* ---------- Polish pass ---------- */
/* Section heads: heading left, intro right, wrapping cleanly on smaller screens */
.lab-head > :first-child { flex: 1 1 520px; }
.lab-head > :last-child:not(:first-child) { flex: 0 1 440px; }
.lab-head > .lab-rules__tools { flex: 0 0 auto; }

/* Prototype meta line separators */
.lab-proto__meta span + span::before { content: "·"; margin-right: 10px; color: var(--line-strong); }

/* Thumbnail placeholder: a wireframe of the prototype with its own score bars */
.lab-shot__page { flex-direction: row; gap: 7%; align-items: flex-start; }
.lab-shot__col { flex: 1.2; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.lab-shot__card { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); box-shadow: var(--shadow-xs); }
.lab-shot__k { width: 46%; height: 6px; border-radius: 3px; background: var(--mist-2); }
.lab-shot__big { font-family: var(--font-mono); font-size: clamp(1rem, .8rem + .8vw, 1.4rem); letter-spacing: -0.04em; line-height: 1; color: var(--text); }
.lab-shot__card i { display: block; height: 6px; border-radius: 3px; background: var(--line-strong); }
.lab-shot__card i.is-hi { background: var(--brand-tint-2); }
.lab-shot__name { max-width: none; }

/* Inline refs inside routing notes: quieter, no dot */
.lab-route__note .lab-ref.is-proto::before, .lab-pick .lab-ref.is-proto::before { display: none; }

/* Compact capture chips inside catalogue rows */
.lab-row .lab-caps { flex-wrap: nowrap; gap: 5px; }
.lab-row .lab-cap { height: 24px; padding: 0 8px 0 6px; gap: 5px; font-size: 12px; }
.lab-row .lab-cap .i { width: 13px; height: 13px; }
@media (max-width: 1100px) { .lab-row .lab-caps { flex-wrap: wrap; } .lab-ctl--sort { grid-column: 1 / -1; } }

/* Routing on phones: pin the scenario column, move "who" into the open row */
.lab-scroll-hint { display: none; }
.lab-sm-only { display: none; }
@media (max-width: 760px) {
  .lab-scroll-hint { display: block; margin-top: 16px; font-size: var(--fs-xs); color: var(--text-3); }
  .lab-route { min-width: 0; width: 1030px; table-layout: fixed; }
  .lab-route thead th:nth-child(1) { width: 164px; } .lab-route thead th:nth-child(2) { width: 150px; } .lab-route thead th:nth-child(3) { width: 112px; }
  .lab-route thead th:nth-child(4) { width: 210px; } .lab-route thead th:nth-child(5) { width: 190px; } .lab-route thead th:nth-child(6) { width: 148px; } .lab-route thead th:nth-child(7) { width: 56px; }
  .lab-route tbody th, .lab-route thead th:first-child { position: sticky; left: 0; z-index: 2; background: var(--paper); box-shadow: 1px 0 0 var(--line); padding-right: 14px; }
  .lab-route__scen > span { display: none; }
  .lab-route tr.is-hl > th { background: var(--brand-tint); }
  .lab-route__more > td > .lab-kv { position: sticky; left: 0; width: calc(100vw - 2 * var(--gutter)); max-width: none; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 16px 0 8px; }
  .lab-route__more .lab-kv dd { margin-bottom: 12px; }
  .lab-sm-only { display: block; }
}
