/* kernwerk · model overview. Tokens and frames follow kernwerk.org. */
@font-face { font-family: 'Geist'; src: url('fonts/Geist-Variable-latin.woff2') format('woff2'); font-weight: 300 600; font-display: swap; }
@font-face { font-family: 'iAWriterQuattroS'; src: url('fonts/iAWriterQuattroS-Regular.woff2') format('woff2'); font-weight: normal; font-display: swap; }
@font-face { font-family: 'iAWriterQuattroS'; src: url('fonts/iAWriterQuattroS-Bold.woff2') format('woff2'); font-weight: bold; font-display: swap; }
@font-face { font-family: 'Kernwerk Mark'; src: url('fonts/NotoSans-Bold-mark.woff2') format('woff2'); font-weight: normal bold; unicode-range: U+203B; font-display: block; }

:root {
  --bg: #ECF0F1; --front: #34495E; --accent: #16A085; --red: #EE5253; --yellow: #FFA801;
  --mute: #8296A6; --rule: #C3CED3; --mark: #00B894;
  --ink-60: #34495e99; --ink-40: #34495e70; --ink-10: #34495e1c; --ink-06: #34495e10;
  --mint: #8fdcc4; --sky: #9dd3e0;
  --grad: linear-gradient(90deg, #ECF0F1, var(--mint) 50%, var(--sky));
  --hair: 1px solid var(--front);
  --text: 'Geist', 'Kernwerk Mark', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'iAWriterQuattroS', 'Kernwerk Mark', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); }
body { font-family: var(--text); color: var(--front); -webkit-font-smoothing: antialiased; font-size: 17px; line-height: 1.4; letter-spacing: -.01em;
  background-image: linear-gradient(#34495e0b 1px, transparent 1px), linear-gradient(90deg, #34495e0b 1px, transparent 1px); background-size: 46px 46px; }
button { font: inherit; color: inherit; cursor: pointer; }
.caption { font-family: var(--mono); font-size: 13px; letter-spacing: .02em; text-transform: uppercase; color: var(--ink-60); }
.mono { font-family: var(--mono); }
.grey { color: var(--ink-60); }

.ruled { position: relative; border: var(--hair); }
.ruled > .x { position: absolute; width: 11px; height: 11px; pointer-events: none; }
.ruled > .x::before, .ruled > .x::after { content: ""; position: absolute; background: var(--front); }
.ruled > .x::before { left: 5px; top: 0; width: 1px; height: 11px; }
.ruled > .x::after { top: 5px; left: 0; height: 1px; width: 11px; }
.x.tl { left: -6px; top: -6px; } .x.tr { right: -6px; top: -6px; } .x.bl { left: -6px; bottom: -6px; } .x.br { right: -6px; bottom: -6px; }

#app { padding: 22px 28px 28px; max-width: 1760px; margin: 0 auto; }
.nav { height: 64px; display: flex; align-items: stretch; background: #ecf0f1f2; }
.logo { display: flex; align-items: center; gap: 10px; padding: 0 24px; border-right: var(--hair); font-weight: 600; font-size: 25px; letter-spacing: -.03em; }
.logo .m { font-family: 'Kernwerk Mark'; color: var(--mark); font-size: 28px; font-weight: bold; line-height: 1; }
.crumb { display: flex; align-items: center; gap: 10px; padding: 0 22px; border-right: var(--hair); font-size: 16px; white-space: nowrap; min-width: 0; }
.crumb .file { font-family: var(--mono); font-size: 15px; overflow: hidden; text-overflow: ellipsis; max-width: 360px; }
.steps { display: flex; flex: 1; }
.step { flex: 0 1 220px; display: flex; align-items: center; gap: 10px; padding: 0 18px; border: 0; border-right: var(--hair); background: none; font-size: 17px; position: relative; color: var(--ink-60); text-align: left; }
.step[disabled] { cursor: default; }
.step .n { font-family: var(--mono); font-size: 13px; width: 24px; height: 24px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; flex: none; }
.step.done { color: var(--front); }
.step.done .n { background: var(--front); color: var(--bg); border-color: var(--front); }
.step.active { color: var(--front); font-weight: 500; }
.step.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--grad); }
.step.active .n { border-color: var(--accent); color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 12px; padding: 0 22px; border-left: var(--hair); font-size: 15px; white-space: nowrap; margin-left: auto; }
.lab-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mark); box-shadow: 0 0 0 4px #00b89430; animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 0 8px #00b89410; } }

.main { border-top: 0; min-height: calc(100vh - 110px); }
.screen { padding: 36px 44px 30px; display: none; flex-direction: column; }
.screen.on { display: flex; animation: enter .45s cubic-bezier(.2,.7,.2,1); }
@keyframes enter { from { opacity: 0; transform: translateY(12px); } }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 26px; }
.head h1 { font-size: 42px; line-height: 1.05; letter-spacing: -.035em; font-weight: 500; margin: 8px 0 0; }
.head p { margin: 8px 0 0; font-size: 19px; color: var(--ink-60); }

.btn { position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border: 0; border-radius: 5px; background: transparent; font-size: 19px; font-weight: 500; letter-spacing: -.02em; white-space: nowrap; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad); opacity: .75; transition: opacity .3s; }
.btn:hover::before { opacity: 1; }
.btn.ghost { box-shadow: inset 0 0 0 1px var(--front); }
.btn.ghost::before { opacity: 0; }
.btn.ghost:hover::before { opacity: .45; }
.btn[disabled] { opacity: .35; pointer-events: none; }
.btn .arr { font-family: var(--mono); }

.tag { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-60); }
.tag i { width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--mute); flex: none; }
.foot { margin-top: 22px; }

/* ---------- 1 · model ---------- */
.s1 { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; min-height: 520px; }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; border: 2px dashed var(--rule); border-radius: 6px; background: #34495e06; transition: all .3s; cursor: pointer; padding: 30px; text-align: center; }
.drop.hover { border-color: var(--accent); background: #16a08512; }
.drop.has { border-style: solid; border-color: var(--front); }
.drop .ico { width: 82px; height: 82px; border: var(--hair); border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 34px; }
.drop .big { font-size: 30px; font-weight: 500; letter-spacing: -.03em; word-break: break-all; }
.progress { width: 70%; height: 6px; background: var(--ink-10); border-radius: 3px; overflow: hidden; display: none; }
.progress > i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.progress.busy > i { width: 30% !important; animation: slide 1.1s ease-in-out infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
.err { color: var(--red); font-size: 16px; max-width: 46ch; }
.parse { display: flex; flex-direction: column; opacity: .3; transition: opacity .4s; }
.parse.on { opacity: 1; }
.kvs { padding: 4px 26px 8px; background: #ecf0f1d0; }
.kv { display: grid; grid-template-columns: 150px 1fr; padding: 13px 0; border-bottom: 1px solid var(--rule); align-items: baseline; gap: 12px; }
.kv:last-child { border-bottom: 0; }
.kv .v { font-family: var(--mono); font-size: 19px; min-width: 0; overflow-wrap: anywhere; }
.kv .v small { font-size: 14px; color: var(--ink-60); margin-left: 8px; }

/* ---------- 2 · overview ---------- */
.s2 { display: grid; grid-template-columns: minmax(0, 1fr) 700px; gap: 32px; align-items: start; }
.ovleft { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.what { display: grid; grid-template-columns: repeat(3, 1fr); background: #ecf0f1d0; }
.what > div { padding: 18px 22px; border-right: 1px solid var(--rule); min-width: 0; }
.what > div:last-of-type { border-right: 0; }
.what .wv { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.what .wv svg { flex: none; }
.what b { display: block; font-size: 22px; font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }
.what .wd { font-family: var(--mono); font-size: 13px; color: var(--ink-60); margin-top: 3px; overflow-wrap: anywhere; }
.how { margin-top: 10px; font-size: 13.5px; color: var(--ink-60); line-height: 1.35; }
.how summary { cursor: pointer; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; list-style: none; display: inline-flex; gap: 8px; align-items: center; }
.how summary::-webkit-details-marker { display: none; }
.how ul { margin: 6px 0 0; padding-left: 16px; }
.conf { display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; padding: 1px 7px; border-radius: 3px; margin-left: 2px; vertical-align: 2px; }
.conf.high { background: var(--accent); color: #fff; }
.conf.medium { background: #ffa80133; color: var(--front); }
.conf.low { box-shadow: inset 0 0 0 1px var(--mute); color: var(--ink-60); }

.ovarch { padding: 18px 22px 16px; background: #ecf0f1d0; }
.archhd { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.flow { display: flex; align-items: stretch; gap: 10px; margin-top: 14px; overflow-x: auto; padding-bottom: 4px; }
.io { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 96px; flex: none; text-align: center; }
.io small { font-family: var(--mono); font-size: 11.5px; color: var(--ink-60); line-height: 1.25; overflow-wrap: anywhere; }
.arw { display: flex; align-items: center; font-family: var(--mono); color: var(--mute); font-size: 20px; flex: none; }
.blk { flex: 1 1 0; min-width: 0; background: #fff; border: var(--hair); border-radius: 4px; padding: 12px 14px 12px; display: flex; flex-direction: column; position: relative; }
.blk.rep { box-shadow: 4px 4px 0 -1px #fff, 4px 4px 0 0 var(--front), 8px 8px 0 -1px #fff, 8px 8px 0 0 var(--front); margin-right: 8px; }
.blk .bt { font-family: var(--mono); font-size: 13px; color: var(--ink-60); }
.blk .bt b { font-size: 22px; color: var(--front); font-weight: normal; }
.blk svg.ill { width: 100%; height: 76px; margin: 8px 0 6px; }
.blk .bn { font-size: 17px; font-weight: 500; line-height: 1.15; letter-spacing: -.015em; overflow-wrap: break-word; hyphens: auto; }
.flow.many .blk { padding: 10px 10px; }
.flow.many .blk .bn { font-size: 14.5px; }
.flow.many .blk .bs { font-size: 10.5px; }
.flow.many .io { width: 78px; }
.flow.many .blk .bt b { font-size: 19px; }
.blk .bs { font-family: var(--mono); font-size: 11.5px; color: var(--ink-60); margin-top: 3px; line-height: 1.3; }
.blk.share-hint::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--accent); opacity: .7; width: var(--share); }
.flownote { margin-top: 10px; font-size: 14px; color: var(--ink-60); }

.ovbottom { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.ovstats { display: grid; grid-template-columns: 1fr 1fr; background: #ecf0f1d0; }
.ovstats > div:not(.x) { padding: 16px 20px; border-bottom: 1px solid var(--rule); }
.ovstats > div:nth-of-type(odd) { border-right: 1px solid var(--rule); }
.ovstats b { display: block; font-size: 34px; font-weight: 500; letter-spacing: -.04em; line-height: 1.05; }
.ovstats span { font-size: 14px; color: var(--ink-60); }
.ovsize { padding: 16px 20px; background: #ecf0f1d0; display: flex; flex-direction: column; gap: 10px; }
.sz { display: grid; grid-template-columns: 52px 1fr 92px; align-items: center; gap: 12px; }
.sz .pl { font-family: var(--mono); font-size: 14px; }
.szb { height: 16px; background: var(--ink-06); border-radius: 0 3px 3px 0; }
.szb i { display: block; height: 100%; background: var(--front); border-radius: 0 3px 3px 0; width: 0; transition: width .9s cubic-bezier(.2,.7,.2,1); }
.sz .sv { font-family: var(--mono); font-size: 15px; text-align: right; }
.sznote { font-size: 13px; color: var(--ink-60); line-height: 1.35; }

.ops { padding: 16px 20px; background: #ecf0f1d0; }
.oprow { display: grid; grid-template-columns: minmax(0, 1.6fr) auto minmax(40px, 1fr); gap: 12px; align-items: center; padding: 5px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.oprow:last-child { border-bottom: 0; }
.oprow .on { font-family: var(--mono); font-size: 12px; color: var(--ink-60); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oprow .c { font-family: var(--mono); text-align: right; }
.opsgrid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; margin-top: 8px; }

.ovtargets { padding: 18px 20px 14px; background: #ecf0f1d0; display: flex; flex-direction: column; position: sticky; top: 16px; max-height: calc(100vh - 32px); }
.tfilters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0 12px; }
.tf { display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 10px 14px; border: 1px solid var(--rule); border-radius: 4px; background: transparent; text-align: left; font-size: 14px; color: var(--ink-60); }
.tf b { font-size: 26px; font-weight: 500; color: var(--front); letter-spacing: -.03em; line-height: 1.1; }
.tf.on { border-color: var(--front); background: #fff; box-shadow: inset 0 -3px 0 var(--accent); }
.thd, .trow { display: grid; grid-template-columns: minmax(0, 1fr) 150px 170px 44px; gap: 10px; align-items: center; }
.cellhd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.cellhd i { font-style: normal; text-align: center; font-size: 10.5px; }
.cells { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.cell { height: 26px; border-radius: 3px; display: grid; place-items: center; font-family: var(--mono); font-size: 13px; cursor: default; }
.cell.fits { background: #16a08526; color: var(--accent); }
.cell.fits.best { background: var(--accent); color: #fff; }
.cell.too_big { box-shadow: inset 0 0 0 1px #ee525380; color: var(--red); }
.cell.not_run { color: var(--ink-40); background: var(--ink-06); }
.cell.cpu { background: #ffa80133; color: var(--front); font-size: 10px; letter-spacing: .03em; }
.trow .how { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 1.15; min-width: 0; }
.trow .how small { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--ink-60); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow .how > span:last-child { min-width: 0; }
.lv { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-family: var(--mono); font-size: 12px; font-weight: bold; flex: none; vertical-align: middle; }
.lv.asis { background: var(--accent); color: #fff; }
.lv.convert { background: #fff; color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.lv.quantize { background: var(--yellow); color: var(--front); }
.lv.no { background: #fff; color: var(--red); box-shadow: inset 0 0 0 1.5px var(--red); }
.tlegend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 6px; font-size: 13px; color: var(--ink-60); margin: 0 0 10px; }
.tlegend .lv { width: 18px; height: 18px; font-size: 10px; margin-left: 8px; }
.tlegend .lv:first-child { margin-left: 0; }
.trow.no .bn { color: var(--ink-60); }
.thd { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-60); padding: 0 6px 6px; border-bottom: var(--hair); }
.tlist { overflow-y: auto; flex: 1; min-height: 200px; }
.trow { padding: 8px 6px; border-bottom: 1px solid var(--rule); font-size: 15px; }
.trow .bn { line-height: 1.2; min-width: 0; }
.trow .bn small { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--ink-60); }
.trow.no .bn { color: var(--ink-60); }
.fit { font-family: var(--mono); font-size: 13px; display: flex; align-items: center; gap: 7px; }
.fit svg { flex: none; }
.fit .ok { width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 12px; flex: none; }
.fit .ko { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--red); color: var(--red); display: grid; place-items: center; font-size: 12px; flex: none; }
.fit small { color: var(--ink-60); font-size: 11.5px; display: block; line-height: 1.2; }
.inlab { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 3px 8px; border-radius: 3px; background: var(--front); color: var(--bg); }
.inlab::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mark); }
.notlab { color: var(--ink-40); font-family: var(--mono); }
.tfoot { font-size: 12.5px; line-height: 1.35; padding-top: 10px; }

/* ---------- 3 · layers ---------- */
:root { --npu: #16A085; --cpuf: #D4740A; --fused: #C3CED3; }
.headbtns { display: flex; gap: 12px; }
.pnote { display: none; margin: -8px 0 18px; padding: 10px 14px; border-left: 3px solid var(--yellow); background: #ffa8011a; font-size: 15px; }
.pnote.on { display: block; }
.pl { padding: 18px 22px 10px; background: #ecf0f1d0; }
.plhd { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 12px; flex-wrap: wrap; }
.pllegend { display: flex; gap: 18px; font-size: 14px; align-items: center; flex-wrap: wrap; }
.pllegend span { display: inline-flex; align-items: center; gap: 7px; }
.sw { width: 14px; height: 14px; border-radius: 2px; display: inline-block; flex: none; }
.sw.npu { background: var(--npu); } .sw.cpu { background: var(--cpuf); } .sw.fused { background: var(--fused); }
.plsub { font-size: 13px; }
.plrow { display: grid; grid-template-columns: 230px minmax(0, 1fr) 150px 120px 92px; gap: 16px; align-items: center; padding: 9px 6px; border-bottom: 1px solid var(--rule); }
.plrow:not(.plcols) { cursor: pointer; }
.plrow:not(.plcols):hover { background: #ffffff80; }
.plrow.sel { background: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.plcols { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-60); border-bottom: var(--hair); cursor: default; padding-top: 0; }
.plrow .bn { font-size: 16px; line-height: 1.2; min-width: 0; }
.plrow .bn small { display: block; font-family: var(--mono); font-size: 11px; color: var(--ink-60); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plrow canvas { width: 100%; height: 26px; display: block; }
.cnt { font-family: var(--mono); font-size: 14px; white-space: nowrap; }
.cnt .c { color: var(--cpuf); font-weight: bold; }
.cnt .z { color: var(--ink-40); }
.macp { display: flex; flex-direction: column; gap: 4px; font-family: var(--mono); font-size: 14px; }
.macp .szb { height: 6px; }
.macp .szb i { background: var(--npu); }
.ho { font-family: var(--mono); font-size: 14px; }
.ho small { display: block; font-size: 10.5px; color: var(--ink-60); }
.warn { color: var(--cpuf); font-family: var(--mono); font-size: 11px; }
.pdetail { margin-top: 22px; padding: 18px 22px; background: #ecf0f1d0; display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 32px; }
.pdetail h3 { margin: 6px 0 4px; font-size: 24px; font-weight: 500; letter-spacing: -.02em; }
.pdetail .facts { font-size: 14px; color: var(--ink-60); line-height: 1.5; }
.pdetail .facts b { color: var(--front); font-weight: 500; }
.fb { display: grid; grid-template-columns: 1fr 50px; gap: 8px; font-family: var(--mono); font-size: 13px; padding: 4px 0; border-bottom: 1px solid var(--rule); }
.fb span:last-child { text-align: right; }
.ltabs { display: flex; gap: 8px; margin: 2px 0 10px; }
.ltabs button { border: 1px solid var(--rule); background: transparent; border-radius: 3px; padding: 4px 10px; font-size: 13px; color: var(--ink-60); }
.ltabs button.on { border-color: var(--front); color: var(--front); background: #fff; }
.llist { max-height: 420px; overflow-y: auto; border-top: var(--hair); }
.lrow { display: grid; grid-template-columns: 54px 66px 150px minmax(0, 1fr) 90px; gap: 10px; padding: 4px 4px; border-bottom: 1px solid var(--rule); font-family: var(--mono); font-size: 12.5px; align-items: center; }
.lrow .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-60); }
.lrow .mc { text-align: right; color: var(--ink-60); }
.pill { display: inline-block; text-align: center; border-radius: 3px; padding: 1px 0; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.pill.npu { background: var(--npu); color: #fff; } .pill.cpu { background: var(--cpuf); color: #fff; } .pill.fused { background: var(--fused); color: var(--front); }
@media (max-width: 1100px) { .plrow { grid-template-columns: 170px minmax(0, 1fr) 120px; } .plrow > :nth-child(4), .plrow > :nth-child(5) { display: none; } .pdetail { grid-template-columns: 1fr; } }

/* ---------- 3 · boards ---------- */
.ch { padding: 16px 22px 12px; background: #ecf0f1d0; }
.chtop { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 10px; flex-wrap: wrap; }
.chsort { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-60); flex-wrap: wrap; }
.chsort button { border: 1px solid var(--rule); background: transparent; border-radius: 3px; padding: 4px 10px; font-size: 13px; color: var(--ink-60); }
.chsort button.on { border-color: var(--front); color: var(--front); background: #fff; }
.chsel { display: flex; gap: 12px; align-items: center; font-size: 14px; }
.lnk { border: 0; background: none; padding: 0; color: var(--accent); text-decoration: underline; font-size: 14px; }
.chrow { display: grid; grid-template-columns: 34px minmax(170px, 1.4fr) minmax(100px, .7fr) minmax(120px, .9fr) minmax(90px, .6fr) minmax(130px, .9fr) minmax(180px, 1.2fr) 90px 80px; gap: 14px; align-items: center; padding: 11px 6px; border-bottom: 1px solid var(--rule); font-size: 15px; }
.chrow:not(.chcols) { cursor: pointer; }
.chrow:not(.chcols):hover { background: #ffffff80; }
.chrow.on { background: #fff; }
.chrow.off { opacity: .55; }
.chcols { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-60); border-bottom: var(--hair); padding-top: 0; cursor: default; }
.chrow > div { min-width: 0; line-height: 1.2; }
.chrow small { display: block; font-family: var(--mono); font-size: 11px; color: var(--ink-60); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chrow .v { font-family: var(--mono); font-size: 15px; }
.box { width: 20px; height: 20px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px var(--front); display: grid; place-items: center; color: #fff; }
.chrow.on .box { background: var(--accent); box-shadow: none; }
.labbar { display: grid; grid-template-columns: 1fr; gap: 3px; }
.labbar .szb { height: 6px; }
.labbar .szb i { background: var(--front); }
.vf { color: var(--ink-60); font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .04em; border: 1px solid var(--rule); border-radius: 3px; padding: 0 5px; margin-left: 6px; vertical-align: 2px; }
.na { color: var(--ink-40); font-family: var(--mono); font-size: 13px; }
@media (max-width: 1250px) { .chrow { grid-template-columns: 30px minmax(150px, 1.4fr) 100px 120px minmax(160px, 1.2fr); } .chrow > :nth-child(5), .chrow > :nth-child(6), .chrow > :nth-child(8), .chrow > :nth-child(9) { display: none; } }
/* step 2 'what' panel: each column sizes its own content; when a column is narrow the icon goes above the text */
.what > div { container-type: inline-size; }
.what .wv > div { min-width: 0; }
.what b { overflow-wrap: break-word; hyphens: auto; }
@container (max-width: 300px) { .what .wv { flex-direction: column; align-items: flex-start; gap: 8px; } .what .wv svg { width: 44px; height: 44px; } .what b { font-size: 19px; } }
@media (max-width: 1440px) { .s2 { grid-template-columns: 1fr; } .ovtargets { position: static; max-height: 720px; } }

#tip { position: fixed; pointer-events: none; background: var(--front); color: var(--bg); padding: 10px 13px; border-radius: 4px; font-size: 14px; line-height: 1.4; max-width: 380px; opacity: 0; transition: opacity .12s; z-index: 50; }

@media (max-width: 1250px) {
  .s2 { grid-template-columns: 1fr; }
  .ovtargets { position: static; max-height: 720px; }
}
@media (max-width: 900px) {
  .s1, .ovbottom, .what, .opsgrid { grid-template-columns: 1fr; }
  .what > div { border-right: 0; border-bottom: 1px solid var(--rule); }
  .crumb, .nav-right { display: none; }
  .screen { padding: 24px 20px; }
  .head { flex-direction: column; align-items: flex-start; }
}

/* step 2: board panel collapsed by default, a click opens it */
.oprow > span:first-child { min-width: 0; }
.s2.compact { grid-template-columns: minmax(0, 1fr) 300px; }
.s2.compact .tfilters { grid-template-columns: 1fr; }
.s2.compact #tlegend, .s2.compact .thd, .s2.compact #tlist, .s2.compact #tfoot { display: none; }
.thead2 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.s2.compact .thead2 { flex-direction: column; align-items: flex-start; gap: 6px; }
@media (max-width: 1440px) { .s2.compact { grid-template-columns: 1fr; } .s2.compact .tfilters { grid-template-columns: repeat(3, 1fr); } }

/* step 3: sliders, best match, charts */
.pick { display: grid; grid-template-columns: minmax(320px, .8fr) minmax(0, 1.6fr); gap: 24px; margin-bottom: 24px; align-items: stretch; }
.prefs, .best, .chart { padding: 16px 22px 14px; background: #ecf0f1d0; }
.sl { display: grid; grid-template-columns: 150px minmax(0, 1fr) 28px; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.sl .sln { font-size: 17px; } .sl small { display: block; font-family: var(--mono); font-size: 11px; color: var(--ink-60); }
.sl b { font-family: var(--mono); font-weight: normal; font-size: 18px; text-align: right; }
.sl input { width: 100%; accent-color: var(--accent); }
.sl.off { opacity: .5; }
.pnote { font-size: 12.5px; line-height: 1.4; margin-top: 10px; }
.besthd { display: flex; justify-content: space-between; align-items: baseline; }
.bcard { display: grid; grid-template-columns: 34px minmax(160px, 1fr) minmax(0, 2fr) 90px; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.bcard:last-child { border-bottom: 0; }
.brk { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--mono); }
.bname { font-size: 17px; min-width: 0; } .bname small { display: block; font-family: var(--mono); font-size: 11px; color: var(--ink-60); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bst { min-width: 0; } .bst .bl { display: block; font-size: 12px; color: var(--ink-60); } .bst .v { font-family: var(--mono); font-size: 17px; }
.bst small { display: block; font-family: var(--mono); font-size: 11px; color: var(--ink-60); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.charts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.sc { width: 100%; height: auto; display: block; margin-top: 6px; overflow: visible; }
.sc text { font-family: var(--mono); font-size: 11px; fill: var(--ink-60); }
.sc .gr { stroke: var(--rule); stroke-width: 1; }
.sc .hint { font-family: var(--text); font-size: 12px; fill: var(--front); }
.sc .hit { fill: transparent; }
.sc .dot { fill: var(--front); stroke: #ecf0f1; stroke-width: 2; }
.sc .top .dot { fill: var(--accent); }
.sc .nofit .dot { fill: #ecf0f1; stroke: var(--mute); stroke-width: 1.5; }
.sc .lab { font-family: var(--text); font-size: 13px; fill: var(--front); }
.sc .pt { cursor: default; }
.chleg { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--ink-60); margin-top: 6px; }
.lg { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--front); margin-right: 6px; vertical-align: -1px; }
.lg.top { background: var(--accent); } .lg.nofit { background: transparent; box-shadow: inset 0 0 0 1.5px var(--mute); }
.chempty { padding: 60px 0; text-align: center; color: var(--ink-60); }
.vs { font-family: var(--mono); font-size: 9.5px; color: var(--ink-60); margin-left: 4px; text-transform: uppercase; }
.srcs { margin-top: 8px; } .srcs summary { cursor: pointer; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.srcs ul { margin: 6px 0 0 18px; padding: 0; } .srcs li { margin: 3px 0; } .srcs a { color: var(--accent); }
@media (max-width: 1250px) { .pick, .charts { grid-template-columns: 1fr; } }
