:root{color-scheme:light;font-family:system-ui,"Yu Gothic",sans-serif;color:#49343d;background:#fff5f7;line-height:1.7}
*{box-sizing:border-box}body{margin:0}main{max-width:1040px;padding:28px 20px;margin:auto}h1{font-size:32px;margin:0}header>p{margin:5px 0 18px}.eyebrow{letter-spacing:.13em;font-size:12px;font-weight:700;color:#9d526b}#status{padding:12px 16px;background:#f8e1e9;border-radius:12px;border:1px solid #eac2d0}.layout{display:grid;grid-template-columns:1fr 1fr;gap:20px}.card{background:#fff;border:1px solid #edd8e1;border-radius:20px;padding:22px;box-shadow:0 6px 24px #65424c08}label{font-weight:700;font-size:14px;display:block;margin-bottom:5px}select,button{font:inherit;border-radius:10px;min-height:44px}select{width:100%;padding:9px 10px;border:1px solid #dccbd2;background:#fff;color:inherit}button{border:0;background:#aa496b;color:#fff;padding:10px 15px;cursor:pointer;font-weight:600}button:hover{filter:brightness(.96)}button:disabled{cursor:default;opacity:.5}button:focus-visible,select:focus-visible{outline:3px solid #925481;outline-offset:3px}.secondary{background:#f5e9ee;color:#713c50}.actions{display:flex;gap:10px}.board{display:grid;grid-template-columns:22px repeat(8,minmax(0,1fr));margin:20px auto 0;width:100%;max-width:420px;gap:1px}.coord{font-size:12px;text-align:center;align-self:center;color:#71505e}.square{aspect-ratio:1;background:#d6e9dc;display:grid;place-items:center;border:1px solid #abc9b4;position:relative}.disc{width:77%;height:77%;border-radius:50%;display:block}.black{background:radial-gradient(circle at 35% 28%,#626267,#19191b 75%);box-shadow:0 2px 2px #0003}.white{background:radial-gradient(circle at 30% 25%,white,#e5e4e6);border:1px solid #a7a4aa;box-shadow:0 2px 2px #0002}.legal{width:14%;height:14%;border-radius:50%;background:#709b7b}.best{outline:3px solid #bc5376;outline-offset:-3px}.result{margin-top:20px;min-height:165px}.score{font-size:36px;font-weight:750;line-height:1.2;margin:12px 0}.badge{display:inline-block;border-radius:50px;background:#f7e9ef;color:#7d3952;font-size:12px;padding:2px 9px}.muted{font-size:13px;color:#705d66}#checks{padding-left:22px;font-size:13px}#checks li{margin:6px 0}#check{width:100%;margin-top:8px}.ok{color:#296545}.error{color:#a42944}details{border-top:1px solid #efe0e6;padding-top:12px;margin-top:14px}summary{cursor:pointer;font-size:13px}pre{max-height:220px;overflow:auto;white-space:pre-wrap;word-break:break-word;font-size:11px;background:#faf6f8;padding:10px}footer{font-size:12px;color:#7a626c;margin-top:24px;text-align:center}a{color:#97435f}@media(max-width:700px){main{padding:16px 12px}.layout{grid-template-columns:1fr}.card{padding:17px}h1{font-size:28px}.result{min-height:0}}
/* Candidate values, version 0.3.0. */
.board-view-control{margin-top:14px}.board-perspective{font-size:14px;font-weight:650;margin:15px 0 0}.board{margin-top:12px}.board .square{border-radius:0;min-height:0;padding:0;line-height:1;background:#d6e9dc;color:#49343d}.board button.square{font-family:inherit;cursor:pointer}.board button.square:hover{filter:brightness(.96)}.board .candidate-value{transform:translateY(3px);font-size:clamp(13px,3.5vw,21px);font-weight:750;letter-spacing:-.04em}.board .positive{color:#b4233f}.board .negative{color:#2452a1}.board .zero{color:#943b65;background:#fce4ec}.board .exact-loss{color:#fff;background:#233d6a;border-color:#172d52}.board .best{outline:2px solid #bc8622;outline-offset:-2px}.best-mark{position:absolute;top:2px;left:2px;color:#79591e;font-size:10px;line-height:1}.board .exact-loss .best-mark{color:#ffd071}.loss-mark{position:absolute;right:2px;top:2px;font-size:9px;line-height:1;color:white}.board .selected{box-shadow:inset 0 0 0 2px #68466f}.board .exact-loss.selected{box-shadow:inset 0 0 0 2px #dab7e3}.board button:focus-visible{outline:3px solid #ad69a5;outline-offset:-3px}.legend{display:flex;gap:7px 12px;flex-wrap:wrap;font-size:12px;margin:14px 0 0;align-items:center}.legend-positive{color:#b4233f;font-weight:650}.legend-negative{color:#2452a1;font-weight:650}.legend-zero{color:#943b65;background:#fce4ec;border-radius:5px;padding:2px 6px}.legend-loss{color:white;background:#233d6a;border-radius:5px;padding:2px 6px}.board-help{margin:9px 0;line-height:1.7}.candidate-detail{border-top:1px solid #efe0e6;margin-top:18px;padding-top:14px}.candidate-detail h2{font-size:17px;margin:0 0 8px}.candidate-detail p{margin:7px 0}.candidate-explanation{font-size:15px;font-weight:650}.loss-explanation{font-size:15px;font-weight:650;color:#233d6a}#candidate-progress{min-height:22px}#run{flex:1}#stop{flex-shrink:0}@media(max-width:360px){.board .candidate-value{transform:translateY(3px);font-size:13px}.best-mark{font-size:8px}.loss-mark{font-size:8px}.card{padding:13px}.actions{gap:5px}.actions button{font-size:14px;padding:8px 10px}}
