/* =====================================================================================================================
   Compare page (compare.html). Builds on proto.css: tokens, .bf-tug, .bf-card, .bf-seg, tabs, tiles, verdict, needs-ribbon.
   Sections: 1 head and filters  2 face-off  3 presets and notes  4 numbers (sticky time bar, verdict, tug rows)
             5 openings and playstyle  6 tabs: chart, positions, team, review, data  7 live state  8 picker  9 phone
   ===================================================================================================================== */
.cmp [hidden] { display: none !important; }
:root { --cmp-top: var(--header-h); }

/* 1 ---------- head and filters */
.cmp-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-3) var(--s-5); margin-bottom: var(--s-4); }
.cmp-h1 { font: 700 clamp(1.6rem, 1.25rem + 1.3vw, 2.15rem)/1.08 var(--display); letter-spacing: -.015em; text-wrap: balance; }
.cmp-head__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cmp-filters { margin-bottom: var(--s-5); padding: var(--s-3) var(--s-4) var(--s-3); background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line-2); }
.cmp-filters .bf-filters__sentence { margin-top: 2px; }

/* 2 ---------- face-off header */
.cmp-face { --pad: var(--s-4); position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr) minmax(0, 1fr); gap: var(--s-4); padding: var(--pad); background: linear-gradient(180deg, var(--panel-2), var(--panel) 40%); border: 1px solid var(--line-2); box-shadow: var(--glow); }
.cmp-face { grid-template-rows: auto 1fr; }
.cmp-face::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: var(--frame); }
.cmp-face > .cmp-side--a { grid-column: 1; grid-row: 1 / span 2; }
.cmp-face > .cmp-side--b { grid-column: 3; grid-row: 1 / span 2; }
.cmp-face > .cmp-vs { grid-column: 2; grid-row: 1; justify-self: center; align-self: end; }
.cmp-face > .cmp-ladder { grid-column: 2; grid-row: 2; }
.cmp-face > * { position: relative; z-index: 1; }
.cmp-side { --c: var(--a); display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 16px 18px 14px 24px; background: var(--bg-2); border: 1px solid var(--line-2); }
.cmp-side::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); box-shadow: 0 0 16px var(--c); }
.cmp-side--b { --c: var(--b); align-items: flex-end; text-align: right; padding: 16px 24px 14px 18px; }
.cmp-side--b::before { left: auto; right: 0; }
.cmp-side__k { display: flex; align-items: center; gap: 8px; font: 700 12px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--c); }
.cmp-side--b .cmp-side__k { flex-direction: row-reverse; }
.cmp-side.is-me .cmp-side__k::after { content: "YOU"; padding: 2px 6px; background: var(--cyan); color: var(--on-cyan); font: 700 12px/1.4 var(--display); letter-spacing: .1em; }
.cmp-side__n { font: 700 clamp(1.5rem, 1.1rem + 1.5vw, 2.25rem)/1.08 var(--display); letter-spacing: -.01em; overflow-wrap: anywhere; }
.cmp-side__n a { display: inline-block; padding: 10px 0; margin: -10px 0; color: var(--text); text-decoration: none; }
.cmp-side__n a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--c); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.cmp-side__n--ph { color: var(--muted); }
.cmp-side__id { display: flex; flex-wrap: wrap; gap: 2px 12px; }
.cmp-side--b .cmp-side__id { justify-content: flex-end; }
.cmp-side__pos { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 6px; }
.cmp-side__pos small { font: 500 12px/1 var(--mono); color: var(--muted); }
.cmp-side--b .cmp-side__pos { justify-content: flex-end; }
.cmp-side__act { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; }
.cmp-side--b .cmp-side__act { justify-content: flex-end; }
.cmp-side__act .bf-btn--quiet { padding-inline: 10px; }
.cmp-side--empty { border-style: dashed; border-color: var(--line-3); }
.cmp-side--ghost { border: 1px dashed #8a6a2a; background-image: repeating-linear-gradient(135deg, rgba(253,192,76,.045) 0 10px, transparent 10px 20px); --c: var(--amber); }
.cmp-side--ghost .bf-caption { max-width: 28ch; }
.cmp-ladder { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 0 var(--s-2); }
.cmp-vs { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 6px; font: 700 15px/1 var(--display); letter-spacing: .06em; color: var(--on-amber); background: var(--amber); clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.cmp-lrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(118px, 156px) minmax(0, 1fr); align-items: center; gap: 12px; min-height: 46px; border-top: 1px solid var(--line); }
.cmp-lrow:first-of-type { border-top: 0; }
.cmp-lrow__v { display: flex; align-items: center; gap: 8px; min-width: 0; font: 700 clamp(1.1rem, 1rem + .55vw, 1.45rem)/1.1 var(--display); letter-spacing: -.005em; font-variant-numeric: tabular-nums; color: var(--text); }
.cmp-lrow__v--a { justify-content: flex-end; text-align: right; }
.cmp-lrow__v--b { justify-content: flex-start; text-align: left; }
.cmp-lrow__v small { font: 500 12px/1 var(--mono); color: var(--muted); letter-spacing: 0; }
.cmp-lrow__v img { width: 28px; height: 28px; object-fit: contain; background: var(--bg); border: 1px solid var(--line); flex: none; }
.cmp-lrow__v .bf-os { font-size: 15px; padding: 3px 10px; }
.cmp-lrow--open .cmp-lrow__v { font-size: 1.05rem; }
.cmp-lrow__k { display: flex; align-items: center; justify-content: center; gap: 6px; text-align: center; font: 600 12px/1.25 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cmp-ladder__ph { padding: var(--s-4) var(--s-3); text-align: center; color: var(--text-2); }
.cmp-ladder__ph p + p { margin-top: 6px; }

/* 3 ---------- start-position note and presets */
.cmp-note { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-top: var(--s-3); padding: 12px 16px; background: linear-gradient(90deg, rgba(60,198,244,.08), rgba(60,198,244,.01) 70%); border: 1px solid var(--cyan-lo); border-left: 3px solid var(--cyan); }
.cmp-note__ico { display: grid; place-items: center; flex: none; width: 32px; height: 32px; color: var(--cyan); border: 1px solid var(--cyan-lo); background: rgba(60,198,244,.07); }
.cmp-note__ico svg { width: 18px; height: 18px; }
.cmp-note p { flex: 1 1 360px; min-width: 0; font-size: 14px; line-height: 1.55; color: var(--text-2); }
.cmp-note p b { color: #fff; font-weight: 600; }
.cmp-note__act { display: flex; flex-wrap: wrap; gap: 8px; }
.cmp-note__act--row { align-items: center; margin-top: var(--s-4); }
.cmp-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: var(--s-3); }
.cmp-presets__k { font: 600 12px/1.3 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cmp-presets__list { display: flex; flex-wrap: wrap; gap: 8px; }
.cmp-preset { --cut: 7px; --edge: var(--line-3); display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 14px; border: 1px solid var(--line-3); background-color: var(--panel-2); color: var(--text); font: 600 14px/1.2 var(--body); text-decoration: none; clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); background-image: linear-gradient(to bottom right, transparent calc(50% - .5px), var(--edge) calc(50% - .5px), var(--edge) calc(50% + 1px), transparent calc(50% + 1px)), linear-gradient(to top left, transparent calc(50% - .5px), var(--edge) calc(50% - .5px), var(--edge) calc(50% + 1px), transparent calc(50% + 1px)); background-position: top left, bottom right; background-size: var(--cut) var(--cut); background-repeat: no-repeat; background-origin: border-box; }
.cmp-preset small { font: 500 12px/1 var(--mono); color: var(--muted); }
button.cmp-preset, a.cmp-preset { cursor: pointer; transition: border-color .15s, background-color .15s; }
button.cmp-preset:hover, a.cmp-preset:hover { --edge: var(--cyan); border-color: var(--cyan); background-color: var(--cyan-tint); color: #fff; }
.cmp-preset:focus-visible { clip-path: none; }
.cmp-preset.is-current { --edge: var(--cyan-lo); border-color: var(--cyan-lo); background-color: var(--cyan-tint); color: var(--cyan-hi); }
.cmp-preset svg { width: 16px; height: 16px; }
.cmp-preset .bf-tag { --cut: 4px; min-height: 24px; padding: 1px 8px; font-size: 12px; }

/* 4 ---------- numbers: sticky game-time bar, verdict, groups of tug rows */
.cmp-numbers { margin-top: var(--s-5); }
.cmp-sticky { position: sticky; top: var(--cmp-top); z-index: 45; background: rgba(9,15,23,.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--line-2); box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.cmp-sticky::before { content: ""; position: absolute; left: -1px; top: -1px; width: 64px; height: 2px; background: var(--cyan); box-shadow: 0 0 12px rgba(60,198,244,.6); }
.cmp-mini { display: none; }
.cmp-timebar { display: grid; grid-template-columns: auto minmax(0, 520px) minmax(0, 1fr); align-items: center; gap: 8px var(--s-4); padding: 10px var(--s-4); }
.cmp-timebar__k { display: flex; align-items: center; gap: 6px; font: 700 13px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--text); }
.cmp-chips { display: flex; gap: 6px; }
.cmp-chip { --cut: 7px; --edge: var(--line-3); position: relative; flex: 1 1 0; min-width: 0; min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 6px 4px; border: 1px solid var(--line-3); background-color: var(--panel-2); color: var(--text-2); cursor: pointer; transition: border-color .15s, background-color .15s, color .15s; }
.cmp-chip b { font: 700 17px/1 var(--display); letter-spacing: .02em; color: #fff; }
.cmp-chip small { font: 600 12px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cmp-chip:hover { --edge: var(--cyan); border-color: var(--cyan); background-color: var(--cyan-tint); }
.cmp-chip[aria-pressed="true"] { --edge: var(--cyan-hi); border-color: var(--cyan); background-color: var(--cyan-tint); box-shadow: inset 0 -3px 0 var(--cyan), 0 0 18px rgba(60,198,244,.2); }
.cmp-chip[aria-pressed="true"] b { color: var(--cyan-hi); }
.cmp-chip[data-ev="thin"] { border-style: dashed; }
.cmp-chip[data-ev="thin"] b { color: var(--text-2); }
.cmp-ev { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.cmp-ev i { width: 4px; background: var(--ev-c, var(--cyan)); opacity: .28; }
.cmp-ev i:nth-child(1) { height: 5px; } .cmp-ev i:nth-child(2) { height: 8px; } .cmp-ev i:nth-child(3) { height: 12px; }
.cmp-chip[data-ev="solid"] .cmp-ev i { opacity: 1; }
.cmp-chip[data-ev="fair"] { --ev-c: var(--amber); } .cmp-chip[data-ev="fair"] .cmp-ev i:nth-child(-n+2) { opacity: 1; }
.cmp-chip[data-ev="thin"] { --ev-c: #8a9cab; } .cmp-chip[data-ev="thin"] .cmp-ev i:nth-child(1) { opacity: 1; }
.cmp-timebar__ev { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-width: 0; }
.cmp-timebar__note { font-size: 13px; color: var(--amber-hi); line-height: 1.4; }
.cmp-verdict { margin-top: var(--s-4); }
.cmp-verdict .bf-verdict.is-flash { animation: cmp-flash .9s var(--ease); }
.cmp-verdict .bf-verdict.is-thin { background: linear-gradient(90deg, rgba(138,156,171,.12), rgba(138,156,171,.02) 60%); border-color: #3a4a58; }
.cmp-verdict .bf-verdict.is-thin::before { background: #8a9cab; box-shadow: none; }
.cmp-verdict .bf-verdict.is-thin .bf-verdict__k { color: var(--text-2); }
@keyframes cmp-flash { 0% { box-shadow: 0 0 0 1px var(--amber), 0 0 34px rgba(253,192,76,.4); } 100% { box-shadow: 0 0 0 0 transparent; } }
.cmp-numhead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-3) var(--s-4); margin: var(--s-6) 0 var(--s-3); }
.cmp-numhead .bf-caption { margin-top: 4px; }
.cmp-who { display: none; align-items: center; gap: 10px; margin-bottom: var(--s-3); }
.cmp-who__k { font: 600 12px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cmp-legend { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-bottom: var(--s-3); font: 700 12px/1.2 var(--display); letter-spacing: .12em; text-transform: uppercase; }
.cmp-legend__a { color: var(--a-hi); } .cmp-legend__b { color: var(--b-hi); text-align: right; }
.cmp-legend__mid { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; letter-spacing: .08em; text-transform: none; font-size: 12px; text-align: center; }
.cmp-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: var(--s-4); }
.cmp-grp { padding: var(--s-4) var(--s-4) var(--s-5); }
.cmp-grp__h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: var(--s-4); padding-bottom: var(--s-3); border-bottom: 1px solid var(--line); }
.cmp-grp__rows { display: flex; flex-direction: column; gap: 18px; }
.cmp-foot { margin-top: var(--s-4); max-width: 80ch; }
#cmp-nums.is-thin .bf-tug__bars i { opacity: .28 !important; box-shadow: none !important; }
#cmp-nums.is-thin .bf-tug__v, #cmp-nums.is-thin .bf-tug__v.is-lead { color: var(--muted); font-weight: 600; }

/* the tug rows: same classes as BF.c.tug, with fixed value columns so bars line up, a gap line and a details panel */
.cmp-tug .bf-tug__row { grid-template-columns: 76px minmax(0, 1fr) 76px; }
.cmp-tug .bf-tug__label { flex-wrap: wrap; }
.cmp-tug__name { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 2px; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; text-align: center; cursor: pointer; }
.cmp-tug__name::before { content: ""; position: absolute; inset: -8px -6px; }
.cmp-tug__name::after { content: ""; flex: none; width: 6px; height: 6px; border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint); transform: rotate(45deg) translate(-1px, -1px); transition: transform .2s var(--ease); }
.cmp-tug__name[aria-expanded="true"]::after { transform: rotate(-135deg) translate(-1px, -1px); }
.cmp-tug__name:hover { color: #fff; }
.cmp-tug__u { font: 500 12px/1 var(--body); letter-spacing: 0; text-transform: none; color: var(--faint); }
.cmp-tug__sub { display: grid; grid-template-columns: 76px minmax(0, 1fr) 76px; gap: 12px; min-height: 16px; margin-top: 1px; }
.cmp-tug__gap { font: 600 12px/1.3 var(--mono); color: var(--muted); white-space: nowrap; }
.cmp-tug__gap--a { text-align: right; color: var(--a-hi); } .cmp-tug__gap--b { text-align: left; color: var(--b-hi); } .cmp-tug__gap--c { text-align: center; font-family: var(--body); font-weight: 500; }
.cmp-tug.is-empty .bf-tug__v { color: var(--faint); font-size: 14px; font-weight: 500; }
.cmp-tug.is-empty .bf-tug__bars { opacity: .5; }
.cmp-detail { margin-top: 10px; padding: 12px 14px 12px; background: var(--bg-2); border: 1px solid var(--line); }
.cmp-detail__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 24px; }
.cmp-detail__p { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cmp-detail__p > b { font: 600 13px/1.3 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-detail__p--a > b { box-shadow: inset 3px 0 0 var(--a); padding-left: 8px; } .cmp-detail__p--b > b { box-shadow: inset 3px 0 0 var(--b); padding-left: 8px; }
.cmp-detail .bf-range__lbl { font-size: 12px; }
.cmp-solo { padding: 14px 0; border-top: 1px solid var(--line); }
.cmp-solo:first-child { border-top: 0; padding-top: 0; }
.cmp-solo__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cmp-solo__l { display: inline-flex; align-items: center; gap: 6px; font: 600 13px/1.3 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
.cmp-solo__v { font: 700 24px/1 var(--display); }
.cmp-solo--a .cmp-solo__v { color: var(--a-hi); } .cmp-solo--b .cmp-solo__v { color: var(--b-hi); }
.cmp-find { position: relative; display: flex; align-items: center; gap: 10px; max-width: 460px; min-height: 48px; margin-bottom: var(--s-4); padding: 0 14px; background: var(--bg-2); border: 1px solid var(--line-3); color: var(--cyan); }
.cmp-find:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 1px rgba(60,198,244,.3); }
.cmp-find svg { width: 20px; height: 20px; flex: none; }
.cmp-find input { flex: 1; min-width: 0; height: 46px; border: 0; background: none; outline: 0; font: 500 15px/1 var(--body); color: var(--text); }
.cmp-find input::placeholder { color: var(--faint); opacity: 1; }
.cmp-find:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.cmp-allgroups { display: grid; gap: var(--s-3); }
.cmp-agrp > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 var(--s-4); list-style: none; cursor: pointer; }
.cmp-agrp > summary::-webkit-details-marker { display: none; }
.cmp-agrp > summary::after { content: ""; flex: none; width: 8px; height: 8px; margin-left: 6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s var(--ease); }
.cmp-agrp[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.cmp-agrp > summary small { margin-left: auto; font: 500 12px/1 var(--mono); color: var(--muted); }
.cmp-agrp__rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px 40px; padding: var(--s-2) var(--s-4) var(--s-5); }
.cmp-agrp[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: var(--s-3); }
.cmp-pct { margin-top: var(--s-4); padding: 0; background: none; border: 0; box-shadow: none; }
.cmp-pct::before { display: none; }
.cmp-pct__in { padding: var(--s-5) var(--s-4) var(--s-4); } .cmp-pct__in b { font: 600 15px/1.3 var(--display); letter-spacing: .06em; text-transform: uppercase; }

/* 5 ---------- openings and playstyle */
.cmp-sec .bf-sh { margin-bottom: var(--s-4); }
.cmp-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.cmp-two--tight { gap: var(--s-3); }
.cmp-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.cmp-open { padding: 0; }
.cmp-open__h { display: flex; flex-direction: column; gap: 2px; padding: var(--s-4) var(--s-4) var(--s-3); border-bottom: 1px solid var(--line); }
.cmp-open__k { font: 700 12px/1.2 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--a); }
.cmp-open--b .cmp-open__k, .cmp-known--b .cmp-open__k, .cmp-lane--b .cmp-open__k { color: var(--b-hi); }
.cmp-open__h h3 { font: 700 20px/1.2 var(--display); }
.cmp-units { display: flex; flex-direction: column; padding: var(--s-2) var(--s-4) var(--s-3); }
.cmp-unit { display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(90px, 34%) 3.4em; grid-template-areas: "i t bar pct"; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.cmp-unit:first-child { border-top: 0; }
.cmp-unit img { grid-area: i; width: 44px; height: 44px; object-fit: contain; background: var(--bg); border: 1px solid var(--line); }
.cmp-unit__t { grid-area: t; display: flex; flex-direction: column; min-width: 0; }
.cmp-unit__t b { font: 600 15px/1.25 var(--body); color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-unit__t small { font-size: 12px; color: var(--muted); line-height: 1.4; }
.cmp-unit__bar { grid-area: bar; height: 8px; }
.cmp-unit__pct { grid-area: pct; text-align: right; font: 700 15px/1 var(--mono); color: var(--text); }
.cmp-open--b .bf-bar > i { background: linear-gradient(90deg, #a2392d, var(--red)); }
.cmp-style { padding: var(--s-4) var(--s-4) var(--s-3); }
.cmp-style__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(130px, 190px) minmax(0, 1fr); gap: 14px; margin-bottom: var(--s-2); font: 700 12px/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.cmp-style__a { color: var(--a-hi); } .cmp-style__b { color: var(--b-hi); text-align: right; } .cmp-style__mid { text-align: center; }
.cmp-prow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(130px, 190px) minmax(0, 1fr); align-items: stretch; gap: 14px; padding: 8px 0; border-top: 1px solid var(--line); }
.cmp-prow__k { display: flex; align-items: center; justify-content: center; text-align: center; font: 600 12px/1.3 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 0 4px; }
.cmp-prow__a, .cmp-prow__b { display: flex; flex-direction: column; justify-content: center; gap: 8px; min-width: 0; }
.cmp-habit { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; min-height: 52px; padding: 8px 12px 8px 14px; background: var(--panel-2); border: 1px solid var(--line-2); border-left: 3px solid var(--a); }
.cmp-habit--b { border-left: 1px solid var(--line-2); border-right: 3px solid var(--b); flex-direction: row-reverse; text-align: right; }
.cmp-habit img { width: 28px; height: 28px; object-fit: contain; background: var(--bg); border: 1px solid var(--line); }
.cmp-habit__v { font: 600 15px/1.3 var(--body); color: var(--text); min-width: 0; overflow-wrap: anywhere; }
.cmp-habit__s { font-size: 12px; color: var(--muted); }
.cmp-habit .bf-tip { margin-left: auto; } .cmp-habit--b .bf-tip { margin-left: 0; margin-right: auto; }
.cmp-habit.is-none { background: transparent; border-style: dashed; }
.cmp-habit.is-none .cmp-habit__v { color: var(--muted); font-weight: 500; font-style: italic; }
.cmp-hl { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 14px; background: var(--panel-2); border: 1px solid var(--line-2); border-left: 3px solid var(--a); }
.cmp-hl img { width: 40px; height: 40px; object-fit: contain; background: var(--bg); border: 1px solid var(--line); flex: none; }
.cmp-hl p { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.cmp-hl p b { font: 600 15px/1.3 var(--body); color: var(--text); } .cmp-hl p span { font-size: 12px; color: var(--muted); }
.cmp-hl--b { border-left: 1px solid var(--line-2); border-right: 3px solid var(--b); flex-direction: row-reverse; text-align: right; }
.cmp-hl--none { background: transparent; border-style: dashed; } .cmp-hl--none p span { max-width: 38ch; }
.cmp-hl--b.cmp-hl--none { text-align: right; }
.cmp-style__more { margin: var(--s-4) 0 var(--s-2); padding-top: var(--s-3); border-top: 1px solid var(--line-2); font: 600 12px/1.3 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.cmp-more { border-top: 1px solid var(--line); }
.cmp-more > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; list-style: none; cursor: pointer; font: 600 14px/1.2 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.cmp-more > summary::-webkit-details-marker { display: none; }
.cmp-more > summary::after { content: ""; flex: none; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s var(--ease); }
.cmp-more[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.cmp-more > summary small { margin-left: auto; font: 500 12px/1 var(--mono); color: var(--muted); }
.cmp-more__rows { padding-bottom: var(--s-3); }

/* 6 ---------- tabs: chart, positions, team, review, data */
.cmp-rest { scroll-margin-top: calc(var(--cmp-top) + 12px); }
.cmp-stack { display: flex; flex-direction: column; gap: var(--s-4); }
.cmp-chartcard__h { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: var(--s-3); }
.cmp-chartcard__h .bf-caption { margin-top: 4px; }
.cmp-chartctl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: var(--s-3); }
.cmp-select { position: relative; display: inline-flex; }
.cmp-select select { appearance: none; -webkit-appearance: none; min-height: 44px; padding: 0 40px 0 14px; border: 1px solid var(--line-3); background: var(--panel-2); color: var(--text); font: 600 13px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; border-radius: 0; max-width: 100%; }
.cmp-select select:hover { border-color: var(--cyan); }
.cmp-select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px; margin-top: -6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); pointer-events: none; }
.cmp-legend2 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-bottom: var(--s-2); }
.cmp-key { display: inline-flex; align-items: center; gap: 8px; font: 600 14px/1 var(--body); color: var(--text); }
.cmp-check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-left: auto; font-size: 14px; color: var(--text-2); cursor: pointer; }
.cmp-check input { width: 20px; height: 20px; accent-color: var(--cyan); }
.cmp-chart { position: relative; width: 100%; min-height: 270px; border: 1px solid var(--line); background: var(--bg-2); touch-action: pan-y; cursor: crosshair; }
.cmp-chart:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.cmp-ch { display: block; }
.cmp-ch__grid { stroke: var(--line); stroke-width: 1; }
.cmp-ch__tick { fill: var(--muted); font: 500 12px var(--mono); }
.cmp-ch__sel { stroke: var(--amber); stroke-width: 1.5; stroke-dasharray: 5 4; opacity: .9; }
.cmp-ch__selt { fill: var(--amber-hi); font: 600 12px var(--body); }
.cmp-ch__cross { stroke: var(--line-3); stroke-width: 1; }
.cmp-ch__ln { stroke-width: 2.5; stroke-linecap: round; } .cmp-ch__ln--a { stroke: var(--a); } .cmp-ch__ln--b { stroke: var(--b); } .cmp-ch__ln.is-thin { stroke-dasharray: 3 6; opacity: .75; }
.cmp-ch__pt { stroke-width: 2.5; paint-order: stroke; }
.cmp-ch__pt--a { fill: var(--a); stroke: var(--bg-2); } .cmp-ch__pt--b { fill: var(--b); stroke: var(--bg-2); }
.cmp-ch__pt.is-thin { fill: var(--bg-2); } .cmp-ch__pt--a.is-thin { stroke: var(--a); } .cmp-ch__pt--b.is-thin { stroke: var(--b); }
.cmp-tip { position: absolute; z-index: 5; min-width: 180px; padding: 10px 12px; background: var(--panel-2); border: 1px solid var(--line-3); box-shadow: var(--shadow-pop); pointer-events: none; font-size: 13px; }
.cmp-tip__t { font: 700 13px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); margin-bottom: 8px; }
.cmp-tip__r { display: grid; grid-template-columns: 22px auto 1fr; align-items: baseline; gap: 4px 8px; padding: 2px 0; }
.cmp-tip__r b { font: 700 15px/1.2 var(--mono); color: #fff; } .cmp-tip__r span { color: var(--text-2); } .cmp-tip__r em { grid-column: 2 / -1; font-style: normal; font-size: 12px; color: var(--muted); margin-top: -2px; }
.cmp-tip__k { align-self: center; width: 18px; height: 0; border-top: 3px solid var(--a); } .cmp-tip__k--b { border-top-color: var(--b); }
.cmp-tip__h { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); }
.cmp-tblbtn { margin-top: var(--s-2); }
.cmp-tbl-wrap { margin-top: var(--s-2); }
.cmp-end { display: flex; flex-direction: column; gap: 22px; }
.cmp-tug__cov { text-align: center; margin-top: 2px; }
.cmp-poslist { display: flex; flex-direction: column; gap: 16px; }
.cmp-pos .bf-tug__label { gap: 10px; }
.cmp-lane { padding: var(--s-4); }
.cmp-lane__h { display: flex; flex-direction: column; gap: 2px; margin-bottom: var(--s-3); }
.cmp-lane__l { display: flex; flex-direction: column; gap: 14px; }
.cmp-lane__m { padding-top: 12px; border-top: 1px solid var(--line); }
.cmp-lane__m:first-child { padding-top: 0; border-top: 0; }
.cmp-lane__mh { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cmp-lane__n { margin-left: auto; font: 500 12px/1.3 var(--mono); color: var(--muted); }
.cmp-lane__o { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cmp-needs { padding: 44px var(--s-4) var(--s-4); }
.cmp-needs .bf-caption { margin-top: 6px; max-width: 64ch; }
.cmp-needs--wide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-5); align-items: start; }
.cmp-gaps { display: flex; flex-direction: column; }
.cmp-gap { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.cmp-gap:first-child { border-top: 0; }
.cmp-gap__t { display: flex; flex-direction: column; min-width: 0; }
.cmp-gap__t b { font: 600 15px/1.3 var(--body); color: var(--text); }
.cmp-gap__t > span { font-size: 13px; color: var(--muted); }
.cmp-gap__who { color: var(--text-2); font-weight: 600; }
.cmp-gap__who--a { box-shadow: inset 0 -2px 0 var(--a); } .cmp-gap__who--b { box-shadow: inset 0 -2px 0 var(--b); }
.cmp-list { display: flex; flex-direction: column; gap: 10px; margin-top: var(--s-3); padding-left: 0; font-size: 14px; line-height: 1.55; color: var(--text-2); }
.cmp-list li { position: relative; padding-left: 18px; }
.cmp-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; background: var(--cyan-lo); clip-path: polygon(0 0, 70% 0, 100% 30%, 100% 100%, 30% 100%, 0 70%); }
.cmp-list b { color: var(--text); font-weight: 600; }

/* 7 ---------- the "computed live" state */
.cmp-live { margin-top: var(--s-5); background: linear-gradient(180deg, var(--panel-2), var(--panel)); }
.cmp-live__in { display: flex; gap: var(--s-5); padding: var(--s-6) var(--s-5) var(--s-5); }
.cmp-live__ico { display: grid; place-items: center; flex: none; width: 64px; height: 64px; color: var(--amber); border: 1px solid #6b5320; background: rgba(253,192,76,.07); }
.cmp-live__ico svg { width: 32px; height: 32px; }
.cmp-live__body { min-width: 0; }
.cmp-live__body .bf-lead { margin-top: var(--s-3); }
.cmp-live__fact { margin-top: var(--s-3); max-width: 70ch; padding: 10px 14px; border-left: 3px solid var(--cyan); background: var(--cyan-tint); color: var(--text-2); font-size: 15px; }
.cmp-live__fact b { color: #fff; font-weight: 600; }
.cmp-live__dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-top: var(--s-4); }
.cmp-live__dl > div { padding: 10px 14px; background: var(--panel); border: 1px solid var(--line); }
.cmp-live__dl dt { font: 600 12px/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.cmp-live__dl dd { margin: 0; font: 500 14px/1.35 var(--body); color: var(--text); }
.cmp-live__dl .is-changed { background: var(--cyan-tint); box-shadow: inset 3px 0 0 var(--cyan); }
.cmp-req summary { cursor: pointer; font: 600 13px/1.2 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); min-height: 44px; display: flex; align-items: center; }
.cmp-req pre { margin: 8px 0 0; padding: 12px 14px; overflow-x: auto; background: var(--bg-2); border: 1px solid var(--line); font: 400 12.5px/1.6 var(--mono); color: var(--text-2); white-space: pre-wrap; word-break: break-all; }
.cmp-known { padding: var(--s-4); }
.cmp-known header { margin-bottom: 8px; }
.cmp-known__l { display: flex; flex-direction: column; gap: 8px; margin-top: var(--s-3); }
.cmp-known__l li { display: flex; flex-direction: column; padding: 8px 12px; background: var(--panel-2); border: 1px solid var(--line-2); border-left: 3px solid var(--a); }
.cmp-known--b .cmp-known__l li { border-left-color: var(--line-2); border-right: 3px solid var(--b); }
.cmp-known__l b { font: 600 15px/1.3 var(--body); color: var(--text); } .cmp-known__l span { font-size: 12px; color: var(--muted); }
.cmp-known__l .is-none { border-style: dashed; background: transparent; } .cmp-known__l .is-none b { color: var(--muted); font-weight: 500; font-style: italic; }
.cmp-ghost { min-width: 0; display: flex; flex-direction: column; gap: 16px; }

/* 8 ---------- picker (the One Box look inside a sheet) */
.cmp-pick { margin: var(--s-3) -18px 0; }
.cmp-pick .bf-og:first-child { border-top: 0; }
button.cmp-opt { width: 100%; border: 0; border-left: 3px solid transparent; background: none; text-align: left; font: inherit; cursor: pointer; }
.cmp-opt:hover, .cmp-opt:focus-visible { background: linear-gradient(90deg, rgba(60,198,244,.14), rgba(60,198,244,.02)); border-left-color: var(--cyan); }

/* 9 ---------- tablet and phone */
@media (max-width: 1100px) {
  .cmp-face { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr); }
  .cmp-three { grid-template-columns: minmax(0, 1fr); }
  .cmp-needs--wide { grid-template-columns: minmax(0, 1fr); }
  .cmp-timebar { grid-template-columns: auto minmax(0, 1fr); }
  .cmp-timebar__ev { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .cmp-two { grid-template-columns: minmax(0, 1fr); }
  .cmp-face { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto; --pad: 12px; gap: 10px; }
  .cmp-face > .cmp-side--a { grid-column: 1; grid-row: 1; }
  .cmp-face > .cmp-side--b { grid-column: 2; grid-row: 1; }
  .cmp-face > .cmp-vs { grid-column: 1 / -1; grid-row: 1; align-self: center; width: 40px; height: 40px; margin: 0; z-index: 3; }
  .cmp-face > .cmp-ladder { grid-column: 1 / -1; grid-row: 2; padding: 4px 0 0; }
  .cmp-side { min-height: 132px; padding: 12px 12px 10px 18px; }
  .cmp-side--b { padding: 12px 18px 10px 12px; }
  .cmp-side__n { font-size: clamp(1.25rem, 5.4vw, 1.75rem); }
  .cmp-side__act { gap: 4px; }
  .cmp-side__act .bf-btn { padding-inline: 8px; }
}
@media (max-width: 760px) {
  .cmp-head { align-items: flex-end; flex-wrap: nowrap; gap: 12px; }
  .cmp-head__actions { flex: none; gap: 8px; }
  .cmp-head__actions .bf-btn { padding-inline: 0; width: 44px; }
  .cmp-btn-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cmp-h1 { font-size: clamp(1.35rem, 6.2vw, 1.75rem); }
  .cmp-filters { margin-inline: calc(var(--gutter) * -1); padding: 10px var(--gutter); border-inline: 0; background: var(--panel); }
  .cmp-side__prof { display: none; }
  .cmp-side__act { justify-content: flex-start; } .cmp-side--b .cmp-side__act { justify-content: flex-end; }
  .cmp-lrow { grid-template-columns: minmax(0, 1fr) 104px minmax(0, 1fr); gap: 0 8px; min-height: 48px; padding: 6px 0; }
  .cmp-lrow__k .bf-tip { display: none; }
  .cmp-lrow__v { font-size: 1.15rem; }
  .cmp-lrow--open { min-height: 74px; }
  .cmp-lrow--open .cmp-lrow__v { flex-direction: column; gap: 4px; font-size: 1rem; }
  .cmp-lrow--open .cmp-lrow__v--a { align-items: flex-end; } .cmp-lrow--open .cmp-lrow__v--b { align-items: flex-start; }
  .cmp-note { align-items: flex-start; padding: 12px; gap: 8px 10px; }
  .cmp-note__ico { display: none; }
  .cmp-note__act { width: 100%; } .cmp-note__act .bf-btn { flex: 1 1 0; padding-inline: 8px; }
  .cmp-presets { align-items: stretch; flex-direction: column; flex-wrap: nowrap; gap: 8px; }
  .cmp-presets__list { width: auto; max-width: none; flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; min-width: 0; }
  .cmp-presets__list::-webkit-scrollbar { display: none; }
  .cmp-preset { flex: none; }
  .cmp-sticky { margin-inline: calc(var(--gutter) * -1); border-inline: 0; }
  .cmp-sticky.is-mini .cmp-mini { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 6px var(--gutter); border-bottom: 1px solid var(--line); font: 700 12px/1.2 var(--display); letter-spacing: .08em; text-transform: uppercase; }
  .cmp-mini__a { color: var(--a-hi); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; box-shadow: inset 3px 0 0 var(--a); padding-left: 8px; }
  .cmp-mini__b { color: var(--b-hi); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; box-shadow: inset -3px 0 0 var(--b); padding-right: 8px; }
  .cmp-mini__vs { padding: 1px 6px; background: var(--amber); color: var(--on-amber); font-size: 12px; }
  .cmp-timebar { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 8px var(--gutter) 10px; }
  .cmp-timebar__k { display: none; }
  .cmp-chips { gap: 5px; }
  .cmp-chip { min-height: 52px; padding-inline: 2px; }
  .cmp-chip small { display: none; }
  .cmp-chip b { font-size: 15px; }
  .cmp-timebar__ev { gap: 4px 10px; }
  .cmp-timebar__ev .bf-ev { transform: scale(.94); transform-origin: left center; }
  .cmp-who { display: flex; }
  .cmp-numhead { flex-direction: column; align-items: stretch; margin-top: var(--s-5); }
  .cmp-numctl .bf-seg { display: flex; width: 100%; } .cmp-numctl .bf-seg button { flex: 1; padding-inline: 8px; }
  .cmp-legend { grid-template-columns: 1fr 1fr; }
  .cmp-legend__mid { grid-column: 1 / -1; grid-row: 2; justify-content: center; }
  .cmp-groups { grid-template-columns: minmax(0, 1fr); }
  .cmp-grp { padding: var(--s-4) var(--s-3) var(--s-5); }
  .cmp-grp__h { flex-direction: column; gap: 2px; }
  .cmp-tug .bf-tug__row { grid-template-columns: 64px minmax(0, 1fr) 64px; gap: 8px; }
  .cmp-tug__sub { grid-template-columns: 64px minmax(0, 1fr) 64px; gap: 8px; }
  .cmp-tug .bf-tug__v { font-size: 15px; }
  .cmp-tug .bf-tug__bars { height: 22px; }
  .cmp-tug .bf-tug__bars i { top: 4px; bottom: 4px; }
  .cmp-detail__grid { grid-template-columns: minmax(0, 1fr); }
  .cmp-agrp > summary { padding: 0 var(--s-3); }
  .cmp-agrp__rows { grid-template-columns: minmax(0, 1fr); padding-inline: var(--s-3); gap: 20px; }
  .cmp-unit { grid-template-columns: 44px minmax(0, 1fr) 3.2em; grid-template-areas: "i t pct" "i bar bar"; gap: 4px 12px; padding: 8px 0; }
  .cmp-unit img { width: 40px; height: 40px; align-self: start; } .cmp-unit__bar { height: 6px; }
  .cmp-style { padding-inline: var(--s-3); }
  .cmp-style__head { display: none; }
  .cmp-prow { grid-template-columns: 1fr 1fr; grid-template-areas: "k k" "a b"; gap: 8px 8px; padding: 12px 0; }
  .cmp-prow__k { grid-area: k; } .cmp-prow__a { grid-area: a; } .cmp-prow__b { grid-area: b; }
  .cmp-habit { flex-direction: column; align-items: flex-start; padding: 8px 10px 8px 12px; min-height: 64px; }
  .cmp-habit--b { align-items: flex-end; padding: 8px 12px 8px 10px; }
  .cmp-habit .bf-tip, .cmp-habit--b .bf-tip { margin: 0; position: absolute; right: 8px; top: 8px; } .cmp-habit--b .bf-tip { right: auto; left: 8px; }
  .cmp-habit__v { padding-right: 22px; } .cmp-habit--b .cmp-habit__v { padding-right: 0; padding-left: 22px; }
  .cmp-hl, .cmp-hl--b { flex-direction: row; text-align: left; border-right: 1px solid var(--line-2); }
  .cmp-hl--b { border-left: 1px solid var(--line-2); border-right: 3px solid var(--b); }
  .cmp-prow--hl { grid-template-columns: minmax(0, 1fr); grid-template-areas: "k" "a" "b"; gap: 10px; }
  .cmp-prow--hl .cmp-prow__a::before, .cmp-prow--hl .cmp-prow__b::before { content: attr(data-who); font: 700 12px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--a-hi); }
  .cmp-prow--hl .cmp-prow__b::before { color: var(--b-hi); }
  .cmp-hl--none { text-align: left; } .cmp-hl--b.cmp-hl--none { text-align: left; }
  .cmp-check { margin-left: 0; }
  .cmp-chartcard__h { flex-direction: column; }
  .cmp-live__in { flex-direction: column; padding: var(--s-6) var(--s-4) var(--s-4); gap: var(--s-4); }
  .cmp-live__ico { width: 52px; height: 52px; }
  .cmp-live__dl { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cmp-gap { grid-template-columns: 30px minmax(0, 1fr); } .cmp-gap .bf-btn { grid-column: 2; justify-self: start; }
  .cmp-pick { margin-inline: -18px; }
  .cmp-select select { max-width: 100%; }
  .cmp-select { max-width: 100%; }
}

/* tables inside the tabs, and the data tiles */
.cmp-rest .bf-table tbody th { position: static; padding: 10px 14px; background: none; border-bottom: 1px solid var(--line); color: var(--text); font: 600 14px/1.3 var(--mono); letter-spacing: 0; text-transform: none; white-space: nowrap; }
.cmp-rest .bf-table tbody tr:last-child th { border-bottom: 0; }
.cmp-datatab .bf-tile__value { font-size: clamp(1.45rem, 1.15rem + 1vw, 2rem); white-space: nowrap; }
@media (max-width: 760px) { .cmp-datatab .bf-tile__value { font-size: 1.5rem; } .cmp-datatab .bf-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cmp-rest .bf-table th, .cmp-rest .bf-table td { padding-inline: 8px; } }

/* dig deeper links */
.cmp-explore { margin-top: var(--s-4); padding: var(--s-4); border: 1px solid var(--line); background: var(--bg-2); }
.cmp-explore__k { margin-bottom: var(--s-3); font: 600 12px/1.3 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cmp-explore__g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.cmp-explore__c { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.cmp-explore__c b { flex-basis: 100%; font: 700 13px/1.3 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); padding-left: 8px; box-shadow: inset 3px 0 0 var(--a); }
.cmp-explore__c--b b { box-shadow: inset 3px 0 0 var(--b); }
.cmp-explore__c a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--cyan-hi); font: 500 14px/1.2 var(--body); text-decoration: none; }
.cmp-explore__c a:hover { border-color: var(--cyan); background: var(--cyan-tint); color: #fff; }
@media (max-width: 760px) { .cmp-explore__g { grid-template-columns: minmax(0, 1fr); } }

/* ---------- production additions: the real run (progress, stopped, failed), the movement snapshots, percentile marks, lane details.
   Only the tokens and components of bf.css; the rest of this file is the prototype's. */
.cmp-run { display: grid; gap: 8px; max-width: 70ch; margin-top: var(--s-4); }
.cmp-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.cmp-steps i { display: block; height: 6px; background: var(--bg-2); border: 1px solid var(--line-2); }
.cmp-steps i.is-done { background: var(--cyan-lo); border-color: var(--cyan-lo); }
.cmp-steps i.is-now { background: var(--cyan); border-color: var(--cyan); animation: bf-pulse 1.4s ease-in-out infinite; }
.cmp-run__msg { margin: 0; font: 600 16px/1.4 var(--display); color: var(--text); }
.cmp-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; margin-bottom: var(--s-4); padding: 4px 8px 4px 16px; border: 1px solid #6b5320; background: var(--amber-tint); color: var(--text); font-size: 14px; }
.cmp-err h2 { margin: 0 0 6px; color: #fff; }
.cmp-err p { margin: 0; color: var(--text); max-width: 70ch; }
.cmp-pctbar { margin-top: 4px; }
.cmp-pctbar--b > i { background: linear-gradient(90deg, #8b3a32, var(--b)); }
.cmp-open__cov { margin-top: 10px; }
.cmp-lane__d { margin-top: 8px; }
.cmp-lane__opp { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.cmp-lane__opp:first-child { border-top: 0; }
.cmp-lane__opp a { color: var(--cyan-hi); font-weight: 600; text-decoration: none; }
.cmp-lane__opp a:hover { color: #fff; text-decoration: underline; }
.cmp-lane__d .bf-table-wrap { margin-top: 8px; }
.cmp-mv__ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: var(--s-3) 0; }
.cmp-mv__ctl input[type="range"] { flex: 1 1 220px; min-width: 160px; min-height: 44px; accent-color: var(--amber); }
.cmp-mv__time { min-width: 4.5ch; font: 600 16px/1 var(--mono); color: var(--amber-hi); }
.cmp-mv__maps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.cmp-mv__map { min-width: 0; padding: var(--s-3); background: var(--bg-2); border: 1px solid var(--line-2); border-top: 3px solid var(--a); }
.cmp-mv__map--b { border-top-color: var(--b); }
.cmp-mv__map header { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.cmp-mv__cv { display: block; width: 100%; height: auto; aspect-ratio: 1; background: #0a131d; border: 1px solid var(--line); cursor: crosshair; touch-action: pan-y; }
.cmp-mv__read { min-height: 3em; margin: 8px 0 0; }
.cmp-mv__legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: var(--s-3); }
.cmp-mv__ramp { width: 120px; height: 10px; border: 1px solid var(--line-2); background: linear-gradient(90deg, rgba(253,192,76,0), rgba(253,192,76,1)); }
@media (max-width: 760px) { .cmp-mv__maps { grid-template-columns: minmax(0, 1fr); } .cmp-bar { padding-left: 12px; } }
.cmp-lane__d { margin-top: 0; }
.cmp-lane__d > summary { min-height: 44px; font-size: 12px; color: var(--cyan); }
.cmp-lane__d .cmp-more__rows { padding-bottom: var(--s-2); }

/* ---------- one player: the report for a single player (the other side is an invitation, the numbers carry their own range) */
.cmp-face--one > .cmp-ladder { grid-row: 1 / span 2; }
.cmp-lrow--one { grid-template-columns: minmax(118px, 1fr) minmax(0, 1fr); }
.cmp-lrow--one .cmp-lrow__k { justify-content: flex-start; text-align: left; }
.cmp-lrow--one .cmp-lrow__v--a { justify-content: flex-end; }
.cmp-onecap { margin: 0 0 var(--s-3); max-width: 80ch; }
.cmp-two--one, .cmp-explore__g--one { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.cmp-prow--one { grid-template-columns: minmax(130px, 220px) minmax(0, 1fr); }
.cmp-prow--one .cmp-prow__k { justify-content: flex-start; text-align: left; }
.cmp-mv__maps--one { grid-template-columns: minmax(0, 1fr); max-width: 620px; }
.cmp-p1__list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.cmp-p1 { display: grid; grid-template-columns: minmax(130px, 220px) minmax(0, 1fr) 44px 44px; align-items: center; gap: 12px; }
.cmp-p1__v { font: 700 18px/1 var(--display); text-align: right; font-variant-numeric: tabular-nums; }
.cmp-p1 small { font: 500 12px/1 var(--mono); color: var(--muted); }
.cmp-mini--one { display: none; }
.cmp-sticky.is-mini .cmp-mini--one { grid-template-columns: 1fr; }
@media (max-width: 760px) {
  .cmp-face--one > .cmp-ladder { grid-column: 1 / -1; grid-row: 2; padding: 4px 0 0; }
  .cmp-lrow--one { grid-template-columns: minmax(104px, 1fr) minmax(0, 1fr); min-height: 48px; }
  .cmp-prow--one { grid-template-columns: minmax(0, 1fr); grid-template-areas: "k" "a"; gap: 8px; }
  .cmp-p1 { grid-template-columns: minmax(0, 1fr) 40px 40px; grid-template-areas: "n n n" "b v s"; row-gap: 6px; }
  .cmp-p1__n { grid-area: n; } .cmp-p1__bar { grid-area: b; } .cmp-p1__v { grid-area: v; } .cmp-p1 small { grid-area: s; }
}
