.scan-grid{grid-template-columns:minmax(180px,1fr) minmax(0,3fr) minmax(150px,1fr);align-items:start}.scan-choices legend,.scan-display h3{font-family:var(--font-body);font-size:1.15rem;font-weight:600;line-height:1.4;margin:0 0 12px}.scan-display h3{margin-top:0}.instrument-choices label>span{display:flex;align-items:center;gap:12px;text-align:left;padding:12px 8px 12px 26px;min-height:80px}.instrument-choices svg{width:48px;flex:none;color:var(--cyan)}.instrument-choices small{display:block;font-size:.75rem}.instrument-choices strong{display:block}.scan-choices label:hover>span{outline:1px solid var(--cyan)}.scan-display canvas[hidden]{display:none}.scan-display canvas+canvas{margin-top:8px}.scan-display button{margin:4px 8px 4px 0}.theme-card{padding:12px;gap:8px}.theme-card:hover::before{inset:3px}.theme-card .theme-select::before{content:none!important}.theme-card .selected{display:none}.theme-card[aria-pressed=true] .selected{display:inline}.theme-card[aria-pressed=true] .unselected{display:none}.theme-card .theme-select{width:100%;font-size:.75rem}.theme-card:focus-visible .theme-select{outline:2px solid white;outline-offset:2px}@media(max-width:1000px){.scan-grid{grid-template-columns:1fr}.scan-display{grid-row:3}.scan-choices{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}}
#theme-grid{margin-bottom:32px}.instrument-choices input{opacity:0;width:1px;height:1px}.instrument-choices label>span{position:relative;padding-left:30px;min-height:86px;border:1px solid var(--line);clip-path:polygon(10px 0,100% 0,100% calc(100% - 10px),calc(100% - 10px) 100%,0 100%,0 10px)}.instrument-choices label>span::before{content:'';position:absolute;left:7px;top:12px;bottom:12px;width:10px;border:1px solid var(--cyan)}.instrument-choices input:checked+span::before{background:var(--cyan);box-shadow:0 0 8px var(--cyan)}.instrument-choices label:focus-within{outline:2px solid var(--ink);outline-offset:3px}.instrument-choices label:hover>span{border-color:var(--cyan)}.theme-card:hover{outline:2px solid var(--sample);outline-offset:2px}

/* V115: continuous two-corner frames, scoped to the analyzer. */
.scan-grid { --scan-cut: 14px; --scan-frame: var(--cyan); }
.scan-grid > .scan-choices, .scan-grid > .scan-display {
 position:relative; isolation:isolate; border:0; padding:16px; margin:0;
 background:transparent; min-inline-size:0;
}
.scan-grid > .scan-choices::before, .scan-grid > .scan-display::before,
.instrument-choices label::before {
 content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
 background:var(--scan-frame); clip-path:polygon(var(--scan-cut) 0,100% 0,100% calc(100% - var(--scan-cut)),calc(100% - var(--scan-cut)) 100%,0 100%,0 var(--scan-cut));
}
.scan-grid > .scan-choices::after, .scan-grid > .scan-display::after,
.instrument-choices label::after {
 content:""; position:absolute; inset:1px; z-index:-1; pointer-events:none;
 background:var(--panel); clip-path:polygon(calc(var(--scan-cut) - .5px) 0,100% 0,100% calc(100% - var(--scan-cut) + .5px),calc(100% - var(--scan-cut) + .5px) 100%,0 100%,0 calc(var(--scan-cut) - .5px));
}
.scan-choices legend { padding:0; margin:0; float:left; width:100%; }
.scan-choices legend,.scan-display h3 {font-size:1.15rem; font-weight:600; line-height:1.4; margin:0 0 12px; border-bottom:1px solid var(--line); padding-bottom:8px;}
.instrument-choices label { isolation:isolate; --scan-cut:10px; --scan-frame:var(--line); }
.instrument-choices label>span,.instrument-choices input:checked+span,.instrument-choices label:hover>span {clip-path:none; border:0; outline:none; background:transparent; }
.instrument-choices label:has(input:checked),.instrument-choices label:hover {--scan-frame:var(--cyan);}
.instrument-choices label:has(input:checked)::after,.instrument-choices label:hover::after {inset:2px;}
.instrument-choices label:focus-within {outline:none;}
.instrument-choices label:has(input:focus-visible) {outline:2px solid var(--ink);outline-offset:3px;}
.scan-choices:not(.instrument-choices) input {appearance:none; -webkit-appearance:none; width:22px;height:22px; margin:0; top:9px;left:9px; border:2px solid #ddd; border-radius:0; background:#777; cursor:pointer;}
.scan-choices:not(.instrument-choices) input:checked {background:var(--cyan);border-color:var(--ink);}
.scan-choices:not(.instrument-choices) input:focus-visible {outline:2px solid var(--ink);outline-offset:3px;}
.scan-choices:not(.instrument-choices) label>span {border:2px solid var(--line);}
.scan-choices:not(.instrument-choices) input:checked+span,.scan-choices:not(.instrument-choices) label:hover>span {border-color:var(--cyan);}
@media(forced-colors:active){.scan-grid>.scan-choices,.scan-grid>.scan-display,.instrument-choices label{border:1px solid CanvasText}.scan-choices:not(.instrument-choices) input{appearance:auto}.instrument-choices input{opacity:1;width:16px;height:16px}.instrument-choices label>span::before{display:none}}
