.solver-entry{display:grid;grid-template-columns:52px minmax(0,1fr) auto;gap:13px;align-items:center;margin:14px 0;padding:17px;border:1px solid #99bdcf;border-radius:12px;background:linear-gradient(120deg,#eaf9fb,var(--surface))}.solver-entry strong{font-size:.95rem}.solver-entry p{margin:4px 0 0;color:var(--muted-foreground);font-size:.78rem}.solver-entry-art{display:grid;place-items:center;font-size:2.3rem;color:#227b95}.solver-entry .btn{white-space:nowrap}:root[data-theme="dark"] .solver-entry{background:linear-gradient(120deg,#173443,var(--surface));border-color:#5e9bae}
body.solver-practice-active{overflow:hidden}body.solver-practice-active>.site-header,body.solver-practice-active main>.site-header{display:none}body.solver-practice-active>main{max-width:none;padding:0;height:100dvh}.solver-practice{position:fixed;inset:0;z-index:70;background:var(--background);overflow:hidden}.sp-shell{height:100%;height:100dvh;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:10px;padding:12px 18px 8px;max-width:1560px;margin:auto}.sp-header{display:flex;align-items:center;gap:12px;min-width:0}.sp-header h1{font-size:1.25rem;line-height:1.2}.sp-eyebrow{display:block;font-size:.62rem;font-weight:750;letter-spacing:.15em;color:#257e93;margin-bottom:3px}:root[data-theme="dark"] .sp-eyebrow{color:#8edce8}.sp-no-limit{margin-left:auto;border:1px solid var(--panel-edge);padding:5px 9px;border-radius:20px;font-size:.72rem;color:var(--muted-foreground)}.sp-icon{min-width:42px;min-height:42px;padding:4px 10px;font-size:1.2rem}.sp-body{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:18px;min-height:0}.sp-stage{min-height:0;min-width:0;display:flex;align-items:center;justify-content:center;overflow:hidden;border:1px solid var(--panel-edge);border-radius:14px;background:color-mix(in srgb,var(--surface) 64%,var(--background));padding:3px}.sp-board{display:grid;grid-template-columns:repeat(var(--sp-size),minmax(0,1fr));gap:2px;max-width:100%;flex:none;touch-action:none;user-select:none;-webkit-user-select:none}.sp-cell{position:relative;width:100%;min-width:0;min-height:0;aspect-ratio:1;border:1px solid color-mix(in srgb,var(--edge) 72%,var(--surface));background:var(--sp-paint,var(--surface));padding:0;border-radius:4px;display:grid;place-items:center;cursor:pointer;color:var(--foreground);isolation:isolate}.sp-cell:hover{outline:2px solid #d2ad26;outline-offset:-2px;z-index:2}.sp-cell:focus-visible{outline:3px solid #e5b725;outline-offset:-3px;z-index:3}.sp-cell .sp-marker{width:72%;height:72%;font-size:clamp(.45rem,calc(var(--sp-cell)*.34),1.2rem);border:2px solid #ffffffb0;box-shadow:0 0 0 1.2px #28384b;z-index:2}.sp-marker{display:inline-grid;place-items:center;aspect-ratio:1;border-radius:50%;font-weight:800;line-height:1;flex:none}.sp-marker.is-partner{border-style:dashed;outline:1px dashed var(--foreground);outline-offset:2px}.sp-route-letter{position:relative;z-index:2;font-size:clamp(.4rem,calc(var(--sp-cell)*.28),1rem);font-weight:650;opacity:.8}.sp-void{aspect-ratio:1}.sp-board.is-hex{position:relative;display:block;gap:0}.sp-board.is-hex .sp-cell{position:absolute;width:var(--sp-cell);height:calc(var(--sp-cell)*1.1547005);aspect-ratio:auto;clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);border:0;border-radius:0;background:var(--edge);overflow:hidden}.sp-board.is-hex .sp-cell:before{content:"";position:absolute;inset:1.1px;clip-path:inherit;background:var(--sp-paint,var(--surface));z-index:0}.sp-board.is-hex .sp-cell .sp-marker{width:70%;height:auto}.sp-bridge{position:absolute;inset:0;width:100%;height:100%;z-index:1;pointer-events:none}.sp-sidebar{min-height:0;display:flex;flex-direction:column;gap:9px;overflow:hidden}.sp-map-label{font-size:.78rem;line-height:1.4;margin:0;color:var(--muted-foreground)}.sp-marker-count{font-size:.71rem;color:var(--muted-foreground)}.sp-status{padding:12px;border:1px solid var(--panel-edge);border-radius:10px;background:var(--surface);min-width:0}.sp-status strong{display:block;font-size:.94rem;line-height:1.35}.sp-status p{font-size:.77rem;line-height:1.45;margin:6px 0 0;color:var(--muted-foreground)}.sp-status[data-status="optimal"]{border-color:#449377;background:color-mix(in srgb,#2ba477 9%,var(--surface))}.sp-status[data-status="optimal"] strong{color:#187654}.sp-status[data-status="impossible"],.sp-status[data-status="error"]{border-color:#bc6375;background:color-mix(in srgb,#cb425e 7%,var(--surface))}.sp-status[data-status="impossible"] strong,.sp-status[data-status="error"] strong{color:var(--error)}.sp-status[data-status="running"]{border-color:#66a9c3}.sp-status[data-status="running"] strong:before{content:"";display:inline-block;width:9px;height:9px;margin-right:7px;border-radius:50%;background:#269db1;animation:sp-breathe 1.2s ease-in-out infinite}.sp-bound{display:block;margin-top:6px;font-size:.71rem;font-variant-numeric:tabular-nums;color:var(--muted-foreground)}.sp-palette{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.sp-color{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:43px;padding:5px 4px;border:1px solid var(--panel-edge);border-radius:8px;background:var(--surface);cursor:pointer;color:var(--foreground)}.sp-color .sp-marker{width:25px;font-size:.8rem;border:1px solid #fff8;box-shadow:0 0 0 1px #30465e}.sp-color-count{font-size:.63rem;color:var(--muted-foreground)}.sp-color[aria-pressed="true"]{outline:3px solid #f5cc27;outline-offset:-3px;box-shadow:inset 0 0 0 5px #34455a}.sp-color.is-full .sp-color-count{font-weight:800}.sp-tools{display:flex;gap:6px}.sp-tools .sp-icon{flex:0 0 43px}.sp-erase{flex:1;padding:5px;font-size:.76rem}.sp-erase[aria-pressed="true"]{outline:3px solid #f5cc27;outline-offset:-3px;background:var(--hover)}.sp-primary{width:100%;min-height:46px;font-size:.91rem;font-weight:750;margin-top:auto}.sp-result-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.8fr);gap:6px}.sp-result-actions:empty{display:none}.sp-result-actions .btn{min-height:35px;padding:5px 6px;font-size:.69rem}.sp-selected-color{display:none}.sp-foot{font-size:.68rem;line-height:1.3;text-align:center;color:var(--muted-foreground);margin:0}.sp-dialog{width:min(480px,calc(100vw - 28px));max-height:calc(100dvh - 30px);padding:18px;border:1px solid var(--panel-edge);border-radius:16px;color:var(--foreground);background:var(--surface);box-shadow:0 18px 80px #0005;overflow:auto}.sp-dialog::backdrop{background:#0b162677;backdrop-filter:blur(4px)}.sp-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.sp-dialog-header h2{margin:0}.sp-settings-fields{display:grid;gap:13px}.sp-settings-fields > :is(label,.sp-map-field){display:grid;gap:6px;font-size:.8rem}.sp-settings-fields select{min-width:0;width:100%;font-size:.85rem}.sp-objective,.sp-settings-help{font-size:.74rem;line-height:1.55;color:var(--muted-foreground);margin:14px 0}.sp-objective{border-left:3px solid #53a4b7;padding-left:10px}.sp-settings-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.sp-settings-actions .btn{font-size:.79rem}.sp-display-actions{display:flex;gap:7px;margin-bottom:16px}.sp-display-actions .btn{flex:1;font-size:.72rem}.sp-color-dialog .sp-palette{gap:9px}.sp-color-dialog .sp-color{min-height:52px}.sp-color-dialog .sp-color .sp-marker{width:29px}.sp-color-dialog .sp-color-count{font-size:.75rem}:root[data-theme="dark"] .sp-status[data-status="optimal"] strong{color:#8ee4bc}
@keyframes sp-breathe{50%{opacity:.35}}
.sp-display-actions{flex-wrap:wrap}.sp-display-actions .btn{flex:1 1 110px}.sp-practice-volume{display:flex;align-items:center;gap:9px;margin:0 0 18px;font-size:.74rem;color:var(--muted-foreground)}.sp-practice-volume input{min-width:0;width:100%;min-height:30px;padding:0;flex:1;text-transform:none;accent-color:var(--primary)}.sp-practice-volume output{min-width:34px;text-align:right;font-variant-numeric:tabular-nums}
@media(max-width:720px){.solver-entry{grid-template-columns:38px minmax(0,1fr);padding:14px;gap:10px}.solver-entry .btn{grid-column:1/-1}.solver-entry-art{font-size:1.9rem}.sp-shell{padding:9px 9px 7px;gap:7px}.sp-header{gap:9px}.sp-header h1{font-size:1.02rem}.sp-eyebrow{font-size:.54rem}.sp-no-limit{font-size:.6rem;padding:4px 7px}.sp-header .sp-icon{min-height:38px;min-width:38px;padding:4px 7px}.sp-body{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:8px}.sp-sidebar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;overflow:visible}.sp-map-label{grid-column:1/-1;font-size:.63rem;line-height:1.2;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.sp-marker-count{display:none}.sp-status{grid-column:1/-1;padding:7px 9px}.sp-status strong{font-size:.79rem}.sp-status p{font-size:.67rem;line-height:1.35;margin-top:3px}.sp-bound{font-size:.63rem;margin-top:3px}.sp-sidebar>.sp-palette{display:none}.sp-selected-color{display:flex;align-items:center;gap:7px;min-height:39px;padding:4px 8px;font-size:.72rem}.sp-selected-color .sp-marker{width:25px;font-size:.74rem;border:1px solid var(--edge)}.sp-chevron{margin-left:auto}.sp-tools{grid-column:2;grid-row:auto;gap:4px}.sp-tools .sp-icon{min-width:36px;min-height:39px;flex-basis:36px;padding:3px 6px}.sp-erase{min-height:39px;padding:4px 8px;font-size:.68rem}.sp-primary{grid-column:1/-1;min-height:42px;font-size:.83rem;margin-top:0}.sp-result-actions{grid-column:1/-1;grid-template-columns:1fr 1fr}.sp-result-actions .btn{min-height:31px;font-size:.64rem;padding:4px 6px}.sp-foot{font-size:.59rem}.sp-stage{border-radius:10px}.sp-cell .sp-marker{border-width:1.4px}.sp-header .sp-no-limit{max-width:120px}.sp-palette .sp-color{min-height:45px}}
@media(max-height:620px) and (min-width:721px){.sp-shell{padding:7px 12px 5px;gap:6px}.sp-header h1{font-size:1rem}.sp-header .sp-icon{min-height:34px}.sp-eyebrow{font-size:.52rem}.sp-sidebar{gap:5px}.sp-map-label{font-size:.67rem}.sp-status{padding:7px}.sp-status strong{font-size:.8rem}.sp-status p{font-size:.67rem;margin-top:3px}.sp-marker-count{display:none}.sp-color{min-height:32px;padding:3px}.sp-color .sp-marker{width:21px;font-size:.66rem}.sp-color-count{font-size:.56rem}.sp-palette{gap:4px}.sp-tools .btn{min-height:34px}.sp-primary{min-height:37px}.sp-result-actions .btn{min-height:29px}.sp-foot{font-size:.58rem}}
@media(max-height:520px){.sp-body{grid-template-columns:minmax(0,1fr) 245px;grid-template-rows:minmax(0,1fr)}.sp-shell{gap:5px;padding:6px 9px 4px}.sp-sidebar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-content:start;gap:5px}.sp-sidebar>.sp-palette{display:none}.sp-selected-color{display:flex;align-items:center;gap:6px;min-height:34px;padding:3px 6px;font-size:.66rem}.sp-selected-color .sp-marker{width:21px}.sp-map-label,.sp-status,.sp-primary,.sp-result-actions{grid-column:1/-1}.sp-marker-count{display:none}.sp-tools{grid-column:2}.sp-tools .sp-icon{min-width:30px;min-height:34px;flex-basis:30px;padding:2px 5px}.sp-erase{font-size:.6rem;min-height:34px;padding:3px}.sp-status{padding:6px}.sp-status strong{font-size:.75rem}.sp-status p{font-size:.63rem;line-height:1.35}.sp-header .sp-icon{min-height:32px}.sp-header h1{font-size:.9rem}.sp-no-limit{font-size:.6rem}.sp-primary{min-height:35px;font-size:.76rem}.sp-result-actions .btn{min-height:29px;font-size:.6rem}.sp-foot{font-size:.54rem}}
@media(prefers-reduced-motion:reduce){.sp-status[data-status="running"] strong:before{animation:none}}
