:root{--piece-i: #ff5f54;--piece-l: #fbc627;--piece-t: #4bd350;--piece-o: #fb7ff2;--piece-z: #9c9bf9}.calculator-page .desk-frame{display:block;width:min(1080px,100%)}.calculator-page .desk-mast{border-radius:0 0 16px 16px}.calculator-page .desk-rail{position:static;min-height:0;padding:24px 28px 16px;border:0}.calculator-page .desk-main{padding:0 28px 20px}.calculator-page .chapter-toolbar{grid-template-columns:repeat(12,minmax(0,1fr));gap:8px;margin:12px 0 22px}.calculator-page .chapter-choice{height:40px}.calculator-page .piece-selector-list{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:12px 0}.calculator-page .piece-selector-list .piece-selector{display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:10px;padding:12px 8px}.calculator-page .piece-selector-title{grid-area:auto;font-size:13px;text-align:center}.calculator-page .piece-settings{grid-area:auto;width:100%;justify-content:center}.calculator-page .piece-selector-list .piece-silhouette{--piece-size: 18px;grid-template-columns:repeat(3,var(--piece-size))!important;grid-template-rows:repeat(2,var(--piece-size))!important;grid-auto-rows:var(--piece-size);gap:3px;min-height:39px;margin:0;align-content:center}.calculator-page .piece-selector-list .piece-selector:nth-child(1) .piece-silhouette{grid-template-columns:repeat(4,var(--piece-size))!important}.calculator-page .piece-selector-list .piece-selector:nth-child(4) .piece-silhouette{grid-template-columns:repeat(2,var(--piece-size))!important}.piece-selector:nth-child(1){--piece-color: var(--piece-i);--piece-edge: #e84b42}.piece-selector:nth-child(2){--piece-color: var(--piece-l);--piece-edge: #d6a500}.piece-selector:nth-child(3){--piece-color: var(--piece-t);--piece-edge: #2e9d3a}.piece-selector:nth-child(4){--piece-color: var(--piece-o);--piece-edge: #d95dce}.piece-selector:nth-child(5){--piece-color: var(--piece-z);--piece-edge: #706ee1}.calculator-page .piece-selector-list .piece-preview-cell{width:var(--piece-size);height:var(--piece-size);background:var(--piece-color);border:1px solid var(--piece-edge);border-radius:3px;box-shadow:0 2px 4px #00000015}.calculator-page .piece-selector-list .shape-quantity-empty .piece-silhouette{opacity:1}.calculator-page .piece-selector-list .shape-quantity-empty .piece-preview-cell{background:#e0e0e0;border-color:#bdbdbd}.calculator-page .desk-rail-note{display:none}.calculator-page .desk-settings{padding:0;border:0;margin-top:14px}.calculator-page .puzzle-settings{grid-template-columns:auto minmax(90px,120px);align-items:center;justify-content:start}.calculator-page .mobile-shape-stepper{display:grid;width:min(118px,100%);height:34px;grid-template-columns:1fr 1.15fr 1fr;align-items:stretch;gap:0;border:1px solid var(--ui-input-border);border-radius:8px;background:var(--ui-surface-soft);overflow:hidden}.calculator-page .mobile-shape-stepper button{width:100%;height:100%;padding:0;border:0;border-radius:0;background:var(--ui-surface-soft);color:var(--ui-primary);font-size:18px;box-shadow:none}.calculator-page .mobile-shape-stepper button:first-child{border-right:1px solid var(--ui-input-border)}.calculator-page .mobile-shape-stepper button:last-child{border-left:1px solid var(--ui-input-border)}.calculator-page .mobile-shape-stepper-value{display:grid;place-items:center;min-width:0;height:100%;color:var(--ui-text);background:var(--ui-surface-soft);font-size:14px}.calculator-page .desk-stage{padding:24px}.calculator-page #puzzle-board{width:min(100%,520px)}.calculator-page .desk-instruction{margin-bottom:18px}.board-actions{display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-end;gap:8px}.board-actions .board-reset{min-height:44px}.board-actions #min-hammer-start{min-inline-size:0}.board-actions .board-reset:disabled{opacity:.5;box-shadow:none;cursor:default}@media(max-width:767px){.calculator-page .board-heading{flex-wrap:wrap}.board-actions{width:100%}.board-actions .board-reset{flex:1 1 0;min-width:0;padding:8px 4px;font-size:12px;white-space:nowrap}}.calculator-page .board-mark-tools{width:min(100%,424px);padding:8px;gap:6px}.board-mark-tools .selected-shape-summary-head{justify-content:space-between}.board-mark-tools .selected-shape-summary-list{display:grid;grid-template-columns:repeat(var(--mark-shape-count, 1),minmax(0,1fr));gap:6px}.board-mark-tools .selected-shape-summary-item{min-width:0;min-height:44px;padding:6px 2px;flex-direction:row;gap:4px;color:var(--ui-text)}.board-mark-tools .selected-shape-icon{grid-template-columns:6px 6px 6px;grid-template-rows:6px 6px;grid-auto-columns:6px;grid-auto-rows:6px;width:20px;height:13px}.board-mark-tools .selected-shape-icon[data-shape=i]{grid-template-columns:6px 6px 6px 6px;grid-template-rows:6px;width:27px;height:6px}.board-mark-tools .selected-shape-icon[data-shape=o]{grid-template-columns:6px 6px;width:13px}.board-mark-tools .selected-shape-icon>span{width:6px;height:6px}.board-mark-tools .selected-shape-summary-item[aria-pressed=true]{background:color-mix(in srgb,var(--selected-shape-color) 16%,var(--ui-surface));border-color:var(--selected-shape-color);box-shadow:0 0 0 2px var(--selected-shape-color)}.board-mark-utilities{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding-top:6px;border-top:1px solid var(--ui-border)}.board-mark-utilities button{min-width:0;min-height:44px;padding:8px 4px;font-size:12px;border:1px solid var(--ui-border);border-radius:8px;color:var(--ui-text);background:var(--ui-surface-soft)}.board-mark-utilities button[aria-pressed=true]{border-color:var(--ui-primary);box-shadow:inset 0 0 0 1px var(--ui-primary);background:var(--ui-focus-ring)}.board-mark-hint{margin:0;min-height:1.4em;font-size:11px;line-height:1.4;text-align:left;color:var(--ui-muted)}.board-mark-tools button:focus-visible{outline:2px solid var(--ui-primary);outline-offset:3px}body.chapter-eleven-active .piece-selector-list .piece-selector .piece-settings{display:none}body.chapter-eleven-active .piece-selector-list .piece-selector .piece-preview-cell{background:#e0e0e0;border-color:#bdbdbd}body.chapter-eleven-active .piece-selector-list .piece-selector.chapter-eleven-double .piece-preview-cell{background:#ff5252;border-color:#d32f2f}body.chapter-eleven-active .piece-selector:after{content:"\d7 1";color:var(--ui-muted);font-size:12px}body.chapter-eleven-active .piece-selector.chapter-eleven-double:after{content:"\d7 2 \5df2\9009";color:var(--ui-primary);font-weight:700}.puzzle-cell.red,.mark-red i,.desk-key .marked{background:var(--piece-i);border-color:#ff5252}.puzzle-cell.yellow,.mark-yellow i{background:var(--piece-l);border-color:#ffd54f}.puzzle-cell.green,.mark-green i{background:var(--piece-t);border-color:#66bb6a}.puzzle-cell.purple,.mark-purple i{background:var(--piece-o);border-color:#ab47bc}.puzzle-cell.blue,.mark-blue i{background:var(--piece-z);border-color:#5c6bc0}.puzzle-cell:is(.red,.yellow,.green,.purple,.blue){box-shadow:inset 0 1px #ffffff40,0 2px 5px #00000016}.calculator-page #puzzle-board .puzzle-cell{transition:none}.layout-cell.red{border:2px solid #ff5252}.layout-matrix-wrap{padding:8px;background:var(--ui-board-bg);border-radius:9px}.layout-cell{border-radius:4px}.desk-primary,#submitAccessEntry{background:linear-gradient(135deg,var(--ui-primary-deep),var(--ui-action-end, var(--ui-primary)))}.calculator-page .desk-runbar{display:grid;grid-template-columns:minmax(0,.9fr) minmax(260px,1fr);gap:14px;padding:16px}.calculator-page .desk-runbar #solutionActions{min-width:0;justify-content:flex-start;margin:0;gap:10px}.calculator-page .desk-runbar #solutionActions .myButton{min-height:64px;min-width:140px;flex:1 1 140px;padding:12px 18px}.calculator-page .desk-runbar .layout-results-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-width:0}.calculator-page .desk-runbar .layout-results-stats>div{min-width:0;padding:10px 14px;gap:4px;border:1px solid var(--ui-border);border-radius:10px;background:var(--ui-surface-soft)}.calculator-page .desk-runbar .layout-results-stats strong{font-size:22px;line-height:1.2;overflow-wrap:anywhere}.calculator-page .desk-runbar .layout-results-stats span{font-size:11px;line-height:1.4}@media(min-width:768px){.calculator-page .desk-runbar{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}.calculator-page .desk-runbar #solutionActions{grid-column:2;width:clamp(220px,24vw,320px)}.calculator-page .desk-runbar .layout-results-stats{grid-column:3;justify-self:end;width:min(100%,320px);text-align:center}}.calculator-page .pass-image-panel{align-items:start}.calculator-page .pass-image-panel-main{display:grid;gap:18px}.calculator-page .pass-image-panel .pass-image-scope-home{justify-content:flex-start;margin:0}.calculator-page .pass-image-panel .pass-image-scope{max-width:320px;padding:0;gap:6px;border:0;background:transparent;box-shadow:none}.calculator-page .pass-image-panel .pass-image-scope-title{padding:0 0 2px;font-size:12px;font-weight:500}.calculator-page .pass-image-panel .pass-image-scope span{min-height:40px;background:var(--ui-surface-soft);border-color:var(--ui-border)}.calculator-page .pass-image-panel .pass-image-scope input:checked+span{color:var(--cf-button-text);background:var(--cf-button-bg);border-color:var(--cf-button-border);box-shadow:none}@media(max-width:767px){.calculator-page .pass-image-panel{grid-template-columns:minmax(0,1fr);gap:14px;padding:14px}.calculator-page .pass-image-panel-main{gap:14px}.calculator-page .pass-image-panel-heading{justify-content:space-between}.calculator-page .pass-image-panel-icon{order:1;flex-shrink:0}.calculator-page .pass-image-panel-main,.calculator-page .pass-image-scope-home,.calculator-page .pass-image-panel-actions{width:100%;min-width:0}.calculator-page .pass-image-panel .pass-image-scope{max-width:none}.calculator-page .pass-image-panel .pass-image-scope span{min-height:44px}.calculator-page .pass-image-panel-actions{padding-top:14px;border-top:1px solid var(--ui-border)}.calculator-page .pass-image-status-row{justify-content:flex-start}.calculator-page .pass-image-status{text-align:left}}@media(max-width:767px){.calculator-page .desk-runbar{grid-template-columns:minmax(0,1fr);padding:14px;gap:14px}.calculator-page .desk-runbar #solutionActions .myButton{flex:1 1 120px;min-width:0;min-height:48px}.calculator-page .desk-runbar .layout-results-stats>div{padding:10px 12px}}.desk-brand:after{border-radius:46%;background-color:var(--cute-badge-bg);border:1px solid var(--cute-badge-border,transparent);box-shadow:0 3px 0 var(--cute-badge-shadow,transparent)}html:is([data-theme=kitten],[data-theme=mofusand],[data-theme=rilakkuma],[data-theme=cinnamoroll],[data-theme=kuromi],[data-theme=kirby],[data-theme=inuyasha]) :is(.desk-primary,#submitAccessEntry,.board-reset){color:var(--cute-button-text);background:var(--cute-button-bg);border:1px solid var(--cute-button-border);border-radius:var(--cute-button-radius,12px);box-shadow:0 3px 0 var(--cute-button-shadow)}html:is([data-theme=kitten],[data-theme=mofusand],[data-theme=rilakkuma],[data-theme=cinnamoroll],[data-theme=kuromi],[data-theme=kirby],[data-theme=inuyasha]) .chapter-choice.active{color:var(--ui-primary-deep);background:var(--cute-active-bg);border-color:var(--cute-active-border);box-shadow:0 3px 0 var(--cute-button-shadow)}html[data-theme=inuyasha] .chapter-choice.active{color:#fff8f2}.mark-choice[data-shape=i]{--selected-shape-color: var(--piece-i);--mark-choice-edge: #e84b42}.mark-choice[data-shape=l]{--selected-shape-color: var(--piece-l);--mark-choice-edge: #d6a500}.mark-choice[data-shape=t]{--selected-shape-color: var(--piece-t);--mark-choice-edge: #2e9d3a}.mark-choice[data-shape=o]{--selected-shape-color: var(--piece-o);--mark-choice-edge: #d95dce}.mark-choice[data-shape=z]{--selected-shape-color: var(--piece-z);--mark-choice-edge: #706ee1}.cell-mark-options .mark-choice{border-radius:12px;background:var(--ui-surface-soft);font-weight:500}.cell-mark-options .mark-choice[data-shape]{color:var(--ui-text);background:var(--ui-surface);border-color:var(--ui-border);background:color-mix(in srgb,var(--selected-shape-color) 8%,var(--ui-surface));border-color:color-mix(in srgb,var(--selected-shape-color) 35%,var(--ui-border))}.cell-mark-options .selected-shape-icon{grid-template-columns:9px 9px 9px;grid-template-rows:9px 9px;grid-auto-columns:9px;grid-auto-rows:9px;width:39px;height:28px;gap:2px;padding:4px}.cell-mark-options .mark-choice[data-shape=i] .selected-shape-icon{grid-template-columns:9px 9px 9px 9px;grid-template-rows:9px;width:50px;height:17px}.cell-mark-options .mark-choice[data-shape=o] .selected-shape-icon{grid-template-columns:9px 9px;width:28px}.cell-mark-options .selected-shape-icon>span{width:9px;height:9px;border-color:var(--mark-choice-edge)}.cell-mark-options .mark-choice:hover{filter:brightness(.97)}.cell-mark-options .mark-choice:active{filter:brightness(.93)}@media(max-width:767px){.cell-mark-picker{padding:12px}.cell-mark-dialog{display:flex;flex-direction:column;padding:16px;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px)}.cell-mark-dialog h3{flex-shrink:0;margin-bottom:14px}.cell-mark-options{grid-template-columns:minmax(0,1fr);min-height:0;margin-bottom:12px;padding-bottom:4px;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.cell-mark-options .mark-choice{display:grid;grid-template-columns:repeat(2,52px);align-items:center;justify-content:center;justify-items:center;min-height:48px;padding:10px 14px;gap:12px;font-size:14px;text-align:center}.cell-mark-options .mark-choice>:first-child{justify-self:center}#dismiss-cell-picker{flex-shrink:0;min-height:44px}}html[data-theme=midnight]{--board-reset-bg: #b83851}html[data-theme=glacier]{--board-reset-bg: #c9323a}html[data-theme=warm]{--board-reset-bg: #a84337}html[data-theme=kitten]{--board-reset-bg: #ab4b60}html[data-theme=mofusand]{--board-reset-bg: #ab4c44}html[data-theme=rilakkuma]{--board-reset-bg: #a8583f}html[data-theme=cinnamoroll]{--board-reset-bg: #b94b61}html[data-theme=kuromi]{--board-reset-bg: #9e405c}html[data-theme=kirby]{--board-reset-bg: #b53b63}html[data-theme=inuyasha]{--board-reset-bg: #ab3029}.calculator-page .board-actions #resetPuzzleButton{color:#fff8f5!important;background:var(--board-reset-bg, #b13f49)!important;border-color:var(--board-reset-bg, #b13f49)!important;box-shadow:0 3px #742c38!important}.calculator-page .board-actions #resetPuzzleButton:hover{filter:brightness(.94)}.board-route-tools[hidden],.desk-to-top[hidden]{display:none!important}.board-route-tools{box-sizing:border-box;width:100%;max-width:640px;margin:12px auto;padding:8px 10px;border:1px solid var(--ui-border);border-radius:12px;background:var(--ui-surface-soft);touch-action:auto}.board-route-tools #opening-route-feature,.board-route-tools .min-hammer-panel{width:100%;max-width:none;min-width:0;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important}.board-route-tools #opening-route-feature{overflow:visible}.board-route-tools #opening-route-feature:before{display:none}.board-route-tools #opening-route-feature .opening-route-header{display:block;margin:0;padding:0;border:0;background:transparent!important}.board-route-tools #opening-route-feature .opening-route-header-actions{display:flex;align-items:center;flex-wrap:wrap;width:100%;gap:6px}.board-route-tools #opening-route-feature .opening-route-switch{flex:1;gap:7px}.board-route-tools #opening-route-feature .opening-route-header .opening-route-button{flex:0 0 auto;width:auto;min-width:0}.board-route-tools #opening-route-feature .opening-route-header .opening-route-button,.board-route-tools #opening-route-feature .opening-route-switch{min-height:44px;margin:0;padding:6px 8px;font-size:13px}.board-route-tools #opening-route-feature .opening-route-details{padding-top:10px}.board-route-tools #opening-route-feature .opening-route-route-list,.board-route-tools #opening-route-feature .opening-route-route-group-content:not([hidden]){display:grid;grid-template-columns:minmax(0,1fr);max-height:none;height:auto;overflow:visible;scroll-snap-type:none}@media(max-width:700px){.board-route-tools #opening-route-feature .opening-route-route-group-content:not([hidden]){display:flex;flex-wrap:nowrap;grid-template-columns:none;min-width:0;max-width:100%;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity}}.board-route-tools .min-hammer-panel{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:8px}.board-route-tools .min-hammer-panel[hidden]{display:none!important}.board-route-tools .min-hammer-header{grid-column:2;grid-row:1}.board-route-tools #opening-route-feature:not([hidden])+.min-hammer-panel{margin-top:6px!important;padding-top:6px!important;border-top:1px solid var(--ui-border)!important}.board-route-tools .min-hammer-actions{flex-wrap:nowrap;gap:6px}.board-route-tools .min-hammer-actions .opening-route-button{min-height:44px;padding:6px 10px}.board-route-tools #min-hammer-status{grid-column:1;grid-row:1;margin:0;font-size:12px;line-height:1.5}.board-route-tools #min-hammer-status:empty{display:none}@media(max-width:767px){.calculator-page .desk-rail{padding:18px 14px 14px}.calculator-page .desk-main{padding:0 14px 16px}.calculator-page .chapter-toolbar{grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;margin-bottom:18px}.calculator-page .chapter-choice{height:32px}.calculator-page .piece-selector-list{gap:6px}.calculator-page .piece-selector-list .piece-selector{padding:10px 3px;gap:8px}.calculator-page .piece-selector-title{font-size:0;min-height:14px}.calculator-page .piece-selector-title:before{content:attr(data-mobile-label);font-size:11px}.calculator-page .piece-selector-list .piece-silhouette{--piece-size: clamp(8px,2.4vw,14px);gap:2px;min-height:30px}.calculator-page .mobile-shape-stepper{height:30px}.calculator-page .mobile-shape-stepper button{font-size:16px}.calculator-page .mobile-shape-stepper-value{font-size:12px}.calculator-page .desk-stage{padding:18px 14px 14px}}.board-mark-utilities[hidden],.board-mark-hint[hidden]{display:none}.calculator-page.chapter-eleven-active .desk-runbar #solutionActions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.calculator-page.chapter-eleven-active .desk-runbar #solutionActions .myButton{min-width:0}.chapter-eleven-active #calculateLayoutsV2{grid-area:1 / 1}.chapter-eleven-active #generateProbabilityV2,.chapter-eleven-active #haltSearchButton{grid-area:1 / 2}.chapter-eleven-active[data-eleven-running] #generateProbabilityV2{visibility:hidden}.chapter-eleven-active #searchBusyIndicator{display:block!important;visibility:hidden}.chapter-eleven-active[data-eleven-running] #searchBusyIndicator{visibility:visible}.chapter-eleven-active .desk-runbar .layout-results-stats strong{white-space:nowrap;overflow-x:auto;scrollbar-width:none}.chapter-eleven-active .desk-runbar .layout-results-stats strong::-webkit-scrollbar{display:none}@media(max-width:360px){.calculator-page.chapter-eleven-active .desk-runbar .layout-results-stats strong{font-size:18px}}
