/* Heckler lives beside the puzzle. Decoration never receives pointer input. */
.home-header .home-music{min-width:44px;min-height:44px;padding:5px;font-size:19px;color:#dce7cf}
.settings-row #heckler-mode{max-width:180px;width:auto;margin:0;min-height:44px;font-size:16px}
.cut-tutorial-speaker{float:left;width:38px;height:46px;object-fit:contain;margin:2px 10px 3px 0}
.hint-heckler-line{color:#d9d19d!important;font-style:italic}
.lesson-board{max-width:250px;margin:12px auto}.lesson-board .sheet-svg{max-height:190px}
.lesson-demonstration{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:15px 0}
.lesson-demonstration figure{padding:8px;border:1px dashed #789468;border-radius:10px;background:#17271c;text-align:center}
.lesson-demonstration figure>svg{width:100%;height:64px;margin:8px 0}
.lesson-demonstration figcaption{font-size:14px}.demo-cut{display:flex;align-items:center;justify-content:center;gap:5px}
.demo-cut svg{width:36px;height:35px}
.decision-panel .cut-result .result-lesson{flex:none;display:grid}
@media(max-width:700px){
 .home-header{grid-template-columns:44px minmax(0,1fr) auto 44px 67px!important;gap:4px!important}
 .home-header .home-music{grid-column:4}.home-header .language-picker{grid-column:5!important}
 .home-header .home-player{padding-inline:0;font-size:13px}
 .lesson-demonstration{gap:4px}.lesson-demonstration figure{padding:5px}
}
.cut-framed-home {
 position:relative;
 isolation:isolate;
 background:linear-gradient(145deg,#1b2d21d9,#14231be8);
}
.cut-framed-home > .home-header,.cut-framed-home > .home-main {
 position:relative;
 z-index:1;
}
/* A closed band of whole interlocking pieces; the SVG never stretches cells. */
.cut-piece-frame {
 --frame-cell:18px;
 --blue-top:#8bc9dc;--blue-base:#548da5;
 --paper-top:#d4c5a2;--paper-base:#a18d68;
 position:absolute;
 inset:2px;
 z-index:0;
 pointer-events:none;
 user-select:none;
}
.cut-frame-mosaic {display:block;width:100%;height:100%;filter:drop-shadow(0 2px 2px #07130d99);}
.cut-frame-depth {fill:#2a433d;stroke:#172c24;stroke-width:1.4;stroke-linejoin:round;}
.cut-piece-face {stroke:#45665d;stroke-width:.8;stroke-linejoin:round;}
.cut-piece-rim {fill:none;stroke:#1f3e36;stroke-width:1.65;stroke-dasharray:4 3;stroke-linejoin:round;opacity:.85;}
.cut-piece-grid {fill:none;stroke:#e3ecda;stroke-width:.7;stroke-dasharray:2 3;opacity:.3;}
.cut-framed-home {padding:max(56px,env(safe-area-inset-top)) max(56px,env(safe-area-inset-right)) max(56px,env(safe-area-inset-bottom)) max(56px,env(safe-area-inset-left));}
.cut-framed-home .home-header,.cut-framed-home .home-main {padding-inline:0;}
.home-heckler-bubble {
 position:relative;
 width:fit-content;
 max-width:min(31ch,100%);
 margin:14px auto 0;
 padding:10px 13px;
 border:1px solid #7b9566;
 border-radius:12px;
 background:#203021;
 color:#e4ecd5;
 font-size:16px;
 line-height:1.4;
 overflow-wrap:anywhere;
}
.home-heckler-bubble::before {
 content:"";
 position:absolute;
 top:-7px;
 left:57%;
 width:12px;
 height:12px;
 border-top:1px solid #7b9566;
 border-left:1px solid #7b9566;
 background:#203021;
 transform:rotate(45deg);
}
.home-heckler-bubble[hidden],.cut-coach[hidden],.result-lesson[hidden],.exercise-feedback[hidden] {display:none!important;}
.home-art:has(.home-heckler-bubble) .home-roast {display:none;}

/* Factual rule/status text remains a separate row above this optional comment. */
.cut-coach {
 display:grid;
 grid-template-columns:36px minmax(0,1fr) 32px;
 align-items:center;
 gap:7px;
 min-width:0;
 min-height:62px;
 padding:4px 0;
}
.cut-coach > img {
 display:block;
 width:36px;
 height:44px;
 object-fit:contain;
}
.cut-coach-bubble {
 position:relative;
 min-width:0;
 margin:0;
 padding:7px 9px;
 border:1px solid #658052;
 border-radius:10px;
 background:#213322;
 color:#dce8cf;
 font-size:14px;
 line-height:1.3;
 overflow-wrap:anywhere;
}
.cut-coach-bubble::before,.heckler-comment > p::before {
 content:"";
 position:absolute;
 left:-5px;
 top:calc(50% - 4px);
 width:8px;
 height:8px;
 background:inherit;
 border-left:1px solid #658052;
 border-bottom:1px solid #658052;
 transform:rotate(45deg);
}
.action-panel .cut-coach-dismiss {
 display:flex;
 align-items:center;
 justify-content:center;
 width:32px;
 min-width:32px;
 height:44px;
 min-height:44px;
 padding:0;
 border:0;
 background:transparent;
 color:#afc49d;
 font-size:20px;
 line-height:1;
}
.cut-coach-dismiss:hover {color:#eef5e4;background:#34462b;}
.cut-coach-dismiss:focus-visible {outline:2px solid #d8df9d;outline-offset:1px;}
.is-guided .cut-coach {display:none;}

.cut-result > .result-lesson {
 display:grid;
 gap:6px;
 width:100%;
 max-width:none;
 flex:none!important;
 padding:9px 10px;
 border-left:2px dashed #b8ca8c;
 border-radius:0 9px 9px 0;
 background:#22351f;
}
.result-lesson h3 {font-size:15px;line-height:1.3;margin:0;color:#e8dca7;}
.cut-result .result-lesson p {font-size:15px!important;line-height:1.4!important;margin:0!important;color:#d7e3c8;}
.cut-result .result-lesson button {
 justify-self:start;
 margin:0;
 min-width:0;
 min-height:44px;
 padding:6px 8px;
 font-size:15px;
 text-align:left;
 background:#30452a;
 border-color:#799460;
 color:#eef3dd;
}
.heckler-comment {
 display:flex;
 align-items:center;
 gap:12px;
 min-width:0;
 margin:10px 0 15px;
}
.heckler-comment > img {width:56px;height:66px;object-fit:contain;flex:none;}
.heckler-comment > p,.cut-modal .heckler-comment > p {
 position:relative;
 min-width:0;
 margin:0;
 padding:10px 12px;
 border:1px solid #658052;
 border-radius:11px;
 background:#213322;
 color:#e3edd5;
 font-size:16px;
 line-height:1.45;
 overflow-wrap:anywhere;
}
.lesson-detail {min-width:0;}
.lesson-detail h3 {margin:16px 0 8px;color:#e6d79d;font-size:19px;line-height:1.3;}
.lesson-detail p {overflow-wrap:anywhere;}
.lesson-detail figure {min-width:0;margin:0;}
.lesson-detail figcaption {margin-top:8px;font-size:15px;line-height:1.4;color:#c3d2b6;overflow-wrap:anywhere;}
.lesson-shapes {
 display:grid;
 grid-template-columns:repeat(2,minmax(0,1fr));
 align-items:start;
 gap:13px;
 margin:14px 0;
}
.lesson-shapes > figure,.lesson-shapes > .lesson-shape {
 display:grid;
 justify-items:center;
 gap:7px;
 min-width:0;
 padding:12px 9px;
 border:1px dashed #789468;
 border-radius:11px;
 background:#17271c;
 text-align:center;
}
.lesson-shapes svg {display:block;width:100%;max-width:140px;height:100px;}
.lesson-shapes .shape-cells {display:grid;justify-content:center;}
.lesson-shapes .is-highlighted {border-color:#e5ce82;background:#323b24;}
.lesson-shapes .lesson-shape-label {font-size:15px;line-height:1.4;color:#d6e2c6;}
.lesson-library {display:grid;gap:10px;min-width:0;}
.lesson-card {
 display:grid;
 gap:5px;
 min-width:0;
 width:100%;
 padding:13px;
 border:1px solid #60794e;
 border-radius:11px;
 background:#1a2c20;
 color:#e6edd8;
 text-align:left;
 overflow-wrap:anywhere;
}
.lesson-card strong {display:block;font-size:18px;line-height:1.3;color:#e8dda7;}
.lesson-card small,.lesson-card p {font-size:15px;line-height:1.45;color:#c6d6b8;margin:0;}
.lesson-card .lesson-status {font-size:14px;color:#a6c58b;}
.exercise-options {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0;min-width:0;}
.exercise-options .exercise-choice {
 display:flex;
 flex-direction:column;
 align-items:center;
 justify-content:center;
 gap:9px;
 min-width:0;
 min-height:80px;
 padding:12px;
 border:1px dashed #789468;
 border-radius:11px;
 background:#17271c;
 color:#e0ead1;
 font-size:16px;
 line-height:1.4;
 text-align:center;
 overflow-wrap:anywhere;
}
.exercise-choice svg {width:100%;max-width:140px;height:100px;}
.exercise-choice.is-selected,.exercise-choice[aria-pressed="true"] {border:2px solid #dfce8a;background:#37482a;padding:11px;}
.exercise-choice.is-correct {border-color:#b4d58b;background:#30472a;}
.exercise-choice:focus-visible {outline:3px solid #e2dd9a;outline-offset:3px;}
.exercise-feedback {margin:12px 0;padding:12px;border-left:2px dashed #b8ca8c;background:#283c23;color:#dfe9d2;border-radius:0 9px 9px 0;font-size:16px;line-height:1.5;}
.exercise-feedback p {margin:0 0 8px;}
.exercise-feedback p:last-child {margin-bottom:0;}
.lesson-actions {display:flex;gap:8px;flex-wrap:wrap;margin:14px 0 0;}
.lesson-actions button {flex:1 1 160px;min-width:0;}

@media(max-width:700px) {
 .home-heckler-bubble {margin-top:9px;padding:7px 10px;max-width:min(31ch,100%);font-size:14px;line-height:1.35;}
 .cut-coach {min-height:56px;gap:5px;padding:1px 0;}
 .cut-coach-bubble {padding:5px 7px;font-size:14px;line-height:1.25;}
 .cut-result > .result-lesson {padding:7px 8px;gap:4px;}
 .cut-result .result-lesson p {font-size:14px!important;line-height:1.35!important;}
 .cut-result .result-lesson button {font-size:14px;min-height:44px;}
 .heckler-comment {gap:9px;}
 .heckler-comment > img {width:44px;height:54px;}
 .heckler-comment > p,.cut-modal .heckler-comment > p {font-size:15px;padding:8px 10px;}
 .lesson-shapes {gap:8px;}
 .lesson-shapes > figure,.lesson-shapes > .lesson-shape {padding:10px 6px;}
 .lesson-shapes svg,.exercise-choice svg {height:88px;}
}
@media(max-width:700px) and (max-height:660px) {
 .home-heckler-bubble {margin-top:6px;padding:6px 9px;font-size:14px;max-width:34ch;}
 .cut-coach {display:none;}
}
@media(min-width:560px) and (max-height:470px) {
 .home-heckler-bubble {margin-top:6px;font-size:14px;line-height:1.3;padding:6px 9px;max-width:32ch;}
 .cut-coach {display:none;}
 .cut-result > .result-lesson {padding:6px;}
 .cut-result .result-lesson p {font-size:14px!important;}
}
@media(max-width:380px) {
 .exercise-options {grid-template-columns:minmax(0,1fr);}
 .exercise-options .exercise-choice {min-height:64px;}
 .lesson-card {padding:11px;}
 .lesson-card strong {font-size:17px;}
}
@media(prefers-reduced-motion:reduce) {
 .cut-piece-frame,.cut-piece-frame *,.home-heckler-bubble,.cut-coach {animation:none!important;transition:none!important;}
}

@media(max-width:700px){
 .cut-piece-frame {--frame-cell:8px;}
 .cut-framed-home {padding:max(25px,env(safe-area-inset-top)) max(25px,env(safe-area-inset-right)) max(25px,env(safe-area-inset-bottom)) max(25px,env(safe-area-inset-left));}
 .cut-framed-home .home-header > * {grid-row:1;}
}
@media(min-width:560px) and (max-height:470px){
 .cut-piece-frame {--frame-cell:8px;}
 .cut-framed-home {padding:25px;}
}

/* Stable readable game text on Android: prevent WebView text inflation. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
.compact-shell{height:100vh;height:100svh}
.workbench-header .header-progress{flex:1 1 0;overflow:hidden}
.workbench-header .level-picker{width:100%;overflow:hidden}
.workbench-header .level-name{width:100%;max-width:100%;line-height:20px}
.workbench-header .compact-title{flex:0 1 190px}
.essential-actions button{display:flex;flex-direction:column;justify-content:center;align-items:center;white-space:normal;overflow-wrap:anywhere;min-width:0;min-height:64px;gap:2px}
.essential-actions .rotate-button{min-width:0}
.essential-actions [data-action="cut"]{flex-direction:row;min-height:50px}
.decision-panel .target-box{height:auto;flex:0 0 auto;min-height:120px}
.decision-panel .tool-comparison{flex:0 0 auto}
.decision-panel .tool-comparison>section{height:auto;min-height:126px}
.decision-panel .chain-win{flex-shrink:0}
.cut-spotlight-ring{border:4px solid #ffe27c;box-shadow:0 0 0 5px #ffe27c44,0 0 28px #ffdc6c99}
.cut-spotlight-arrow{position:fixed;z-index:3;display:flex;align-items:center;justify-content:center;line-height:1;color:#ffe27c;text-shadow:0 3px 0 #15251c,0 -3px 0 #15251c,3px 0 0 #15251c,-3px 0 0 #15251c,0 0 15px #ffe27c88;pointer-events:none;transform-origin:center}
.cut-spotlight-arrow[hidden]{display:none}
.cut-spotlight-coach{padding:10px 12px 4px}
.cut-spotlight-copy{flex:1 1 auto}
.cut-spotlight-coach h2{font-size:21px;line-height:1.18}
.cut-spotlight-coach p{font-size:16px;line-height:1.4}
.cut-coach-slot{flex:0 0 218px}
/* Tablet portrait: previews above the board, controls below. No narrow rail. */
@media(min-width:701px) and (max-width:1100px) and (orientation:portrait){
 .workbench-header .compact-title{display:none}
 .cut-workspace{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:138px minmax(0,1fr) auto;gap:10px;padding:10px}
 .decision-panel{display:contents}
 .decision-panel .target-box{grid-column:2;grid-row:1;min-height:0;height:138px;grid-template-columns:48px minmax(0,1fr);padding:10px;gap:8px}
 .decision-panel .target-shape,.decision-panel .target-shape svg{width:48px;height:48px}
 .decision-panel .tool-comparison{grid-column:1;grid-row:1}
 .decision-panel .tool-comparison>section{height:138px;min-height:0}
 .play-column{grid-column:1/-1;grid-row:2}
 .action-panel{grid-column:1/-1;grid-row:3}
 .action-panel .cut-status{height:auto;min-height:24px;padding:0}
 .action-panel .cut-coach,.action-panel .hint-shortcut{display:none}
 .essential-actions{grid-template-columns:repeat(3,minmax(0,1fr)) minmax(0,1.3fr)}
 .essential-actions [data-action="cut"]{grid-column:auto}
 .decision-panel .chain-win{grid-column:1/-1;grid-row:3;max-height:260px;overflow:auto}
 .decision-panel .chain-win>div{flex:1 1 260px}
 .decision-panel .chain-win .lesson-handoff{flex:0 0 100%;display:flex}
 .decision-panel .chain-win .lesson-handoff button{flex:1}
 .is-guided .cut-coach-slot{flex-basis:218px}
 .is-guided.has-queue .play-column{display:grid;grid-template-columns:minmax(0,1fr) 72px;grid-template-rows:minmax(0,1fr) 218px;gap:6px}
 .is-guided.has-queue .board-area{grid-column:1;grid-row:1}
 .is-guided .board-legend,.is-guided .queue-title{display:none}
 .is-guided.has-queue .chain-panel{grid-column:2;grid-row:1;min-height:0}
 .is-guided.has-queue .sheet-queue{height:100%;flex-direction:column;overflow-y:auto;overflow-x:hidden}
 .is-guided.has-queue .sheet-queue button{flex:0 0 66px}
 .is-guided.has-queue .cut-coach-slot{grid-column:1/-1;grid-row:2}
}
@media(max-width:700px) and (min-height:471px){
 .cut-coach-slot{flex-basis:210px}
 .is-guided.has-queue .play-column{grid-template-rows:minmax(0,1fr) 210px}
 .is-guided .decision-panel .target-box{height:90px;min-height:0}
 .is-guided .decision-panel .tool-comparison>section{height:90px;min-height:0}
 .cut-spotlight-coach{padding:8px 10px 3px}
 .cut-spotlight-coach h2{font-size:18px;line-height:21px}
 .cut-spotlight-coach p{font-size:15px;line-height:1.35}
 .essential-actions button{min-height:52px;font-size:13px;line-height:16px}
 .decision-panel .target-box{min-height:0;height:104px}
 .decision-panel .tool-comparison>section{height:104px;min-height:0}
}
@media(min-width:560px) and (max-height:470px){
 .cut-coach-slot{flex-basis:auto}
 .cut-spotlight-coach h2{font-size:18px}.cut-spotlight-coach p{font-size:15px;line-height:1.3}
 .essential-actions button{min-height:48px}
}
@media(prefers-reduced-motion:no-preference){.cut-spotlight-ring{animation:cut-guide-glow 1.2s ease-in-out infinite}@keyframes cut-guide-glow{50%{box-shadow:0 0 0 8px #ffe27c55,0 0 32px #ffdc6caa}}}
.reduced .cut-spotlight-ring{animation:none}
@media(max-width:700px){
 .essential-actions{grid-template-columns:minmax(68px,.9fr) minmax(66px,1fr) minmax(52px,.8fr) minmax(84px,1.3fr);gap:4px}
 .essential-actions .help-price{font-size:12px;line-height:16px;overflow-wrap:normal}
}

/* 0.4.7: one icon menu, with intrinsic text rows instead of clipped boxes. */
.icon-home.cut-home{width:100%;max-width:1100px;gap:20px;padding:52px;justify-content:center}
.icon-home .home-header{display:grid!important;grid-template-columns:44px 44px minmax(0,1fr) auto 76px!important;gap:8px!important;width:100%;max-width:850px;align-self:center}
.icon-home .home-header>*{grid-row:1!important;min-width:0}
.icon-home .home-settings{grid-column:1!important;width:44px;height:44px;font-size:26px!important}
.icon-home .home-music{grid-column:2!important;width:44px;height:44px}
.icon-home .home-balance{grid-column:4!important;margin:0;padding:6px 10px}
.icon-home .language-picker{grid-column:5!important;width:76px!important;margin:0;min-height:44px}
.icon-home .home-main{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:34px;width:100%;max-width:900px;align-self:center;align-items:center}
.icon-home .home-art{display:flex;flex-direction:column;align-items:center;min-width:0}
.icon-home .home-art h1{font-size:48px;line-height:1;margin:0;letter-spacing:-.045em}
.icon-home .home-heckler{width:100%;height:300px;max-width:350px;margin:8px auto 0;object-fit:contain}
.icon-home .home-heckler-bubble{font-size:16px;line-height:1.35;margin-top:6px;padding:8px 12px;max-width:30ch}
.icon-home .home-actions{gap:14px;min-width:0}
.icon-home .home-progress{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:14px;font-size:15px;line-height:1.4}
.icon-home .home-play{min-height:100px!important;padding:14px 18px!important}
.icon-home .home-play strong{font-size:28px;line-height:1.2}
.icon-home .home-play small{font-size:16px;line-height:1.4}
.home-tile-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.icon-home .home-tile{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:12px 5px;min-width:0;min-height:104px;border:1px solid #627b66;border-radius:15px;background:linear-gradient(150deg,#304a3b,#1b2d24);box-shadow:0 4px 0 #0c1b14;color:#eaf0df}
.icon-home .home-tile strong{font-size:15px;line-height:1.3;font-weight:750;overflow-wrap:anywhere}
.icon-home .home-tile svg{width:48px;height:46px;flex:none;filter:drop-shadow(0 2px 1px #0005)}
.icon-home .tile-levels{border-color:#6f9ba9;background:linear-gradient(150deg,#304b4d,#203237)}
.icon-home .tile-levels svg{width:59px}
.icon-home .tile-modes{color:#bde1ef;border-color:#608b9e;background:linear-gradient(150deg,#294956,#1a2f37)}
.icon-home .tile-friend{color:#f3dba0;border-color:#a18a52;background:linear-gradient(150deg,#4d472c,#2f3222)}
.icon-home .tile-gifts{color:#dcf0a7;border-color:#879e59;background:linear-gradient(150deg,#43542b,#28381e)}
.icon-home .tile-invite{color:#d6c8ed;border-color:#8d78a1;background:linear-gradient(150deg,#433b52,#292735)}
.icon-home .tile-learn{color:#f0c7ad;border-color:#a18069;background:linear-gradient(150deg,#503e32,#322a23)}
.home-tile strong{color:#f0f2e8}.gift-dot{position:absolute;right:10px;top:10px;width:11px;height:11px;border-radius:50%;background:#d5f281;box-shadow:0 0 0 3px #263a20}
.icon-home .home-tile:hover{filter:brightness(1.12)}
.icon-home .home-tile:focus-visible{outline:3px solid #fff0a3;outline-offset:3px}
/* Tablets use a compact centred vertical menu instead of two narrow text columns. */
@media(max-width:1100px) and (orientation:portrait){
 .icon-home.cut-home{padding:42px;gap:18px;max-width:none}
 .icon-home .home-header{max-width:600px}
 .icon-home .home-main{grid-template-columns:minmax(0,1fr);max-width:560px;gap:22px}
 .icon-home .home-art{display:grid;grid-template-columns:.8fr 1.2fr;align-items:center;gap:6px 14px}
 .icon-home .home-art h1{font-size:48px;text-align:left}
 .icon-home .home-heckler{height:240px;max-width:280px;margin:0}
 .icon-home .home-heckler-bubble{grid-column:1/-1;justify-self:center;margin:0;font-size:16px}
 .icon-home .home-play{min-height:98px!important}
 .icon-home .home-tile{min-height:112px}
}
@media(max-width:600px){
 .icon-home.cut-home{padding:26px;gap:10px;justify-content:center}
 .icon-home .home-header{grid-template-columns:40px 40px minmax(0,1fr) auto 65px!important;gap:4px!important}
 .icon-home .home-header .home-settings,.icon-home .home-header .home-music{width:40px;min-width:40px;padding:3px}
 .icon-home .home-header .language-picker{width:65px!important;font-size:12px}
 .icon-home .home-balance{padding:5px;gap:3px}.icon-home .home-balance b{font-size:19px}.icon-home .home-balance .hc-icon{width:24px;height:24px}
 .icon-home .home-main{gap:12px}
 .icon-home .home-art h1{font-size:34px}
 .icon-home .home-heckler{height:155px;max-width:190px}
 .icon-home .home-heckler-bubble{font-size:14px;line-height:1.3;padding:6px 9px}
 .icon-home .home-actions{gap:10px}
 .icon-home .home-progress{font-size:14px;gap:10px}
 .icon-home .home-play{min-height:78px!important;padding:11px 14px!important}
 .icon-home .home-play strong{font-size:24px}.icon-home .home-play small{font-size:14px}
 .home-tile-grid{gap:8px}
 .icon-home .home-tile{min-height:88px;padding:8px 3px;gap:5px;border-radius:12px}
 .icon-home .home-tile svg{width:38px;height:36px}.icon-home .tile-levels svg{width:48px}
 .icon-home .home-tile strong{font-size:13px;line-height:1.3}
}
@media(min-width:601px) and (max-height:600px){
 .icon-home.cut-home{padding:28px;gap:8px;justify-content:flex-start}
 .icon-home .home-main{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:24px;max-width:900px}
 .icon-home .home-art h1{font-size:34px}.icon-home .home-heckler{height:180px}
 .icon-home .home-heckler-bubble{font-size:14px}
 .icon-home .home-actions{gap:8px}.icon-home .home-play{min-height:76px!important}
 .icon-home .home-tile{min-height:80px;padding:7px 3px;gap:4px}.icon-home .home-tile svg{height:32px}.icon-home .home-tile strong{font-size:14px}
}
/* Text can grow without being cut by the header's former 60px row. */
.workbench-card.compact-card{grid-template-rows:auto minmax(0,1fr)}
.workbench-header.compact-header{min-height:72px;height:auto;padding:8px 10px;align-items:center}
.workbench-header .compact-title{display:none}
.workbench-header .header-progress{overflow:visible;align-self:center}
.workbench-header .level-picker{overflow:visible;align-items:flex-start;text-align:left;gap:4px;padding:2px 4px;min-height:48px}
.workbench-header .level-name{white-space:normal;overflow:visible;font-size:15px;line-height:1.3;max-width:none}
.workbench-header .level-title{display:block;font-weight:450;font-size:14px;line-height:1.3}
.workbench-header .header-meta{justify-content:flex-start;gap:8px;line-height:1.3;flex-wrap:wrap}
.workbench-header .sheet-number,.workbench-header .difficulty-rating{line-height:1.3}
.workbench-header nav button{min-height:48px;line-height:1.3}
.chain-panel .queue-title{min-height:0;padding:0 0 5px}
.chain-panel .queue-title .mini-label{font-size:13px;line-height:1.4;letter-spacing:.04em}
.chain-panel .sheet-queue{height:auto;min-height:96px;align-items:stretch;padding:0 0 4px;gap:8px}
.chain-panel .sheet-queue button,.chain-panel .sheet-queue .current{display:grid;grid-template-rows:auto 48px;align-content:center;justify-items:center;gap:4px;flex:0 0 82px;width:82px;min-width:82px;max-width:82px;height:auto;min-height:90px;padding:6px}
.chain-panel .sheet-queue button>span{align-self:center;justify-self:start;font-size:14px;line-height:1.3;white-space:nowrap}
.chain-panel .sheet-queue svg{width:56px;height:48px;max-height:none}
.decision-panel .mini-label,.decision-panel .tool-count,.decision-panel .goal-label,.decision-panel .goal-exact,.decision-panel .goal-count,.decision-panel .goal-rotation{line-height:1.3}
.play-column .board-legend{line-height:1.4;min-height:0;white-space:normal}
.essential-actions button,.essential-actions .help-price{line-height:1.3}
@media(min-width:701px) and (max-width:1100px) and (orientation:portrait){
 .cut-workspace{grid-template-rows:minmax(138px,max-content) minmax(0,1fr) auto}
 .decision-panel .target-box,.decision-panel .tool-comparison>section{height:auto;min-height:138px}
 .decision-panel .tool-comparison{align-items:stretch}
 .tool-comparison .mini-label{min-height:0}
 .is-guided.has-queue .sheet-queue{min-height:0;height:100%}
 .is-guided.has-queue .sheet-queue button{flex-basis:84px;min-width:66px;max-width:66px;width:66px;min-height:84px;grid-template-rows:auto 40px;padding:4px}
 .is-guided.has-queue .sheet-queue svg{width:48px;height:40px}
}
@media(max-width:700px){
 .workbench-header.compact-header{min-height:64px;gap:5px;padding:6px}
 .workbench-header .level-title{display:none}
 .workbench-header .level-name{font-size:14px}
 .workbench-header .header-meta{gap:5px}
 .workbench-header .sheet-number{font-size:13px}
 .chain-panel .sheet-queue{min-height:76px;gap:6px}
 .chain-panel .sheet-queue button,.chain-panel .sheet-queue .current{flex-basis:64px;width:64px;min-width:64px;max-width:64px;min-height:72px;padding:4px;grid-template-rows:auto 36px;gap:2px}
 .chain-panel .sheet-queue svg{width:46px;height:36px}
 .is-guided.has-queue .sheet-queue{min-height:0;height:100%}
 .is-guided.has-queue .sheet-queue button{width:54px;min-width:54px;max-width:54px;flex-basis:64px;min-height:64px;grid-template-rows:auto 28px;padding:3px}
 .is-guided.has-queue .sheet-queue svg{width:40px;height:28px}
}
@media(min-width:560px) and (max-height:470px){
 .workbench-header.compact-header{min-height:54px;padding-block:3px}
 .workbench-header .level-title{display:none}
 .chain-panel .sheet-queue{min-height:60px}
 .chain-panel .sheet-queue button{min-height:56px;grid-template-rows:auto 26px;padding:3px}
 .chain-panel .sheet-queue svg{height:26px}
}
@media(max-width:700px) and (min-height:471px){
 .cut-workspace,.is-guided .cut-workspace{grid-template-rows:minmax(110px,max-content) minmax(0,1fr) auto}
 .decision-panel .target-box,.is-guided .decision-panel .target-box{height:auto;min-height:110px;grid-template-columns:minmax(0,1fr);grid-template-rows:auto 30px auto;gap:3px;padding:5px;text-align:center}
 .decision-panel .goal-label,.is-guided .decision-panel .goal-label{grid-column:1;grid-row:1;font-size:12px;line-height:1.3}
 .decision-panel .target-shape,.is-guided .decision-panel .target-shape{grid-column:1;grid-row:2;width:34px;height:30px;justify-self:center}
 .decision-panel .target-shape svg,.is-guided .decision-panel .target-shape svg{width:34px;height:30px}
 .decision-panel .goal-exact{display:none}
 .decision-panel .goal-count{grid-column:1;grid-row:3;font-size:12px;line-height:1.3}
 .decision-panel .tool-comparison{align-items:stretch}
 .decision-panel .tool-comparison>section,.is-guided .decision-panel .tool-comparison>section{height:auto;min-height:110px;padding:5px 3px;gap:4px}
 .tool-comparison .mini-label{font-size:12px;line-height:1.3;min-height:0}
 .tool-comparison .tool-count,.is-guided .tool-comparison .tool-count{font-size:12px;line-height:1.3;white-space:normal}
 .tool-comparison .large-shape{flex:none;height:30px}
 .tool-comparison .large-shape svg{height:30px;max-height:30px}
 .awaiting-placement{font-size:12px;line-height:1.3}
 .action-panel .cut-coach{display:none}
 .action-panel .cut-status{height:auto;min-height:0;max-height:4em;font-size:14px;line-height:1.35;padding:2px 0;overflow:auto}
 .essential-actions{grid-template-columns:minmax(64px,1fr) minmax(64px,1fr) minmax(52px,.8fr) minmax(100px,1.35fr)}
 .essential-actions .cut-scissors{display:none}
 .essential-actions [data-action="cut"]{font-size:14px;letter-spacing:0;overflow-wrap:normal}
}
@media(max-width:359px){.essential-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.essential-actions [data-action="cut"]{grid-column:auto}}
/* Tablet portrait uses a shared full-width help row, not half an empty row. */
@media(min-width:701px) and (max-width:1000px) and (orientation:portrait){
 .workbench-card .cut-hint{grid-column:1/-1;grid-row:4;width:auto;max-height:300px;overflow:auto}
 .workbench-card:has(.cut-hint) .cut-workspace{grid-template-rows:auto minmax(140px,1fr) auto minmax(0,300px)}
 .cut-hint.is-dead-end .mistake-comparison{float:right;width:42%;margin:0 0 8px 12px}
}
/* Short landscape keeps the four actions visible together. Optional result
   details still scroll; the playing controls do not require hunting below them. */
@media(min-width:560px) and (max-height:470px) and (orientation:landscape){
 .workbench-card .cut-workspace{grid-template-columns:minmax(0,1fr) 280px;grid-template-rows:minmax(0,1fr)}
 .workbench-card .decision-panel{display:flex;flex-direction:column;gap:8px;min-height:0;overflow:auto;padding-right:4px}
 .workbench-card .decision-panel>*{flex:0 0 auto}
 .workbench-card .decision-panel .target-box{height:auto;min-height:64px;grid-template-columns:38px minmax(0,1fr);grid-template-rows:auto;padding:5px;gap:7px;text-align:left}
 .workbench-card .decision-panel .target-shape{grid-column:1;grid-row:1;width:38px;height:38px}
 .workbench-card .decision-panel .goal-copy{grid-column:2;grid-row:1}
 .workbench-card .decision-panel .goal-exact{display:none}
 .workbench-card .decision-panel .tool-comparison>section{height:76px;min-height:76px;padding:4px;gap:2px}
 .workbench-card .decision-panel .tool-comparison .awaiting-placement{display:none}
 .workbench-card .decision-panel .tool-placement-label{display:none}
 .workbench-card .decision-panel .tool-count{font-size:12px;line-height:16px}
 .workbench-card .action-panel{height:auto;min-height:0}
 .workbench-card .action-panel .cut-status{height:auto;min-height:0;max-height:36px;overflow:auto;font-size:13px;line-height:18px;margin:0 0 3px}
 .workbench-card .essential-actions{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
 .workbench-card .essential-actions button{min-height:52px;height:auto;padding:4px 2px;font-size:12px;line-height:16px;flex-direction:column;flex-wrap:wrap;gap:1px;word-break:normal;overflow-wrap:anywhere}
 .workbench-card .essential-actions .cut-scissors{display:none}
 .workbench-card .essential-actions .help-price{flex-basis:auto;font-size:11px;line-height:15px}
 .workbench-card .sheet-queue{height:68px;min-height:68px;gap:6px}
 .workbench-card .chain-panel .sheet-queue button,.workbench-card .chain-panel .sheet-queue .current{flex:0 0 64px;min-width:64px;max-width:64px;height:64px;min-height:64px;grid-template-rows:auto 32px;padding:3px;gap:2px}
 .workbench-card .sheet-queue svg{height:32px}
 .workbench-card .decision-panel .cut-result{max-height:none;overflow:visible}
 .workbench-card .decision-panel .cut-result p{display:block}
}
@media(min-width:740px) and (max-height:470px) and (orientation:landscape){
 .workbench-card .cut-workspace{grid-template-columns:minmax(0,1fr) 320px}
}
