/* The board frame is level-based. This sheet only fits its stable canvas into
   the available work surface; moving or rotating a tool never changes layout. */
.cut-shell.compact-shell {
  width:100%;
  max-width:1360px;
  height:100vh;height:100svh;
  margin:0 auto;
  padding:max(8px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));
  overflow:hidden;
}
.workbench-card.compact-card {
  display:grid;
  grid-template-rows:60px minmax(0,1fr);
  width:100%;
  height:100%;
  min-width:0;
  min-height:0;
  border-radius:17px;
  overflow:hidden;
  position:relative;
  font-size:16px;
}
.workbench-header.compact-header {
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  padding:5px 16px;
  border-bottom:1px solid #455940;
  background:#16231bd9;
}
.workbench-header .cut-brand {display:flex; flex:none; min-width:30px; min-height:48px; align-items:center; justify-content:center; gap:0;}
.workbench-header .cut-brand img {width:30px; height:40px; object-fit:contain; display:block;}
.workbench-header .compact-title {min-width:0; flex:0 1 auto;}
.workbench-header .compact-title h1 {margin:0; font-size:clamp(20px,2vw,25px); line-height:1.15; letter-spacing:-.035em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.workbench-header .compact-title h1 span {color:#dec77e;}
.workbench-header .compact-title small {display:none;}
.workbench-header .header-progress {display:flex; flex-direction:column; justify-content:center; gap:1px; min-width:0; margin-left:auto; text-align:right;}
.workbench-header .level-name {display:block; min-width:0; font-size:15px; font-weight:650; line-height:1.25; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.workbench-header .level-picker {display:block; max-width:100%; min-width:0; min-height:0; padding:0; border:0; border-radius:4px; background:transparent; text-align:right;}
.workbench-header .level-name b {margin-right:6px;}
.workbench-header .sheet-number {display:block; font-size:14px; line-height:1.25; color:#c7d4b8; white-space:nowrap;}
.workbench-header nav {display:flex; align-items:center; flex:none; gap:5px;}
.workbench-header nav button {min-width:48px; min-height:48px; padding:8px 12px; font-size:15px;}
.cut-workspace {
  display:grid;
  grid-template-columns:minmax(0,1fr) 292px;
  gap:18px;
  min-width:0;
  min-height:0;
  padding:14px 16px 12px;
}
.play-column {display:flex; flex-direction:column; min-width:0; min-height:0; gap:6px;}
.board-area {position:relative; flex:1 1 0; min-width:0; min-height:0; isolation:isolate;}
.board-area .sheet-stage {
  position:absolute;
  inset:0;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  place-items:center;
  width:100%;
  height:100%;
  min-width:0;
  min-height:0;
  padding:0;
  overflow:hidden;
  overflow-anchor:none;
}
.board-area .sheet-svg {
  display:block;
  width:100%;
  height:100%;
  min-width:0;
  min-height:0;
  max-width:none;
  max-height:none;
  overflow:visible;
}
.compact-card .sheet-svg [aria-disabled="true"] {cursor:default;}
.play-column .board-legend {flex:none; min-height:22px; margin:0; gap:14px; font-size:14px; line-height:20px; align-items:center; white-space:nowrap;}
.chain-panel {flex:none; min-width:0;}
.chain-panel .queue-title {min-height:23px; border:0; padding:0 0 4px; gap:8px;}
.chain-panel .queue-title .mini-label {font-size:14px; line-height:19px; letter-spacing:.025em;}
.chain-panel .queue-title > span:last-child {font-size:14px;}
.chain-panel .sheet-queue {display:flex; align-items:stretch; min-height:70px; height:70px; gap:6px; padding:0 0 2px; scrollbar-width:thin; overscroll-behavior:contain; overflow-x:auto; overflow-y:hidden;}
.chain-panel .sheet-queue button {position:relative; flex:0 0 66px; width:66px; min-width:66px; max-width:66px; height:66px; min-height:66px; padding:4px; gap:1px; border-radius:9px; font-size:14px;}
.chain-panel .sheet-queue button > span {font-size:14px; line-height:18px;}
.chain-panel .sheet-queue svg {width:44px; height:38px; flex:none;}
.chain-panel .sheet-queue .current {padding:3px;}
.chain-panel .sheet-queue button > small {font-size:12px; line-height:16px; top:3px; right:3px;}
.decision-panel {display:flex; flex-direction:column; gap:12px; min-width:0; min-height:0;}
.decision-panel .target-box {
  display:grid;
  grid-template-columns:64px minmax(0,1fr);
  align-items:center;
  gap:12px;
  width:100%;
  min-width:0;
  min-height:116px;
  margin:0;
  padding:12px;
  border:2px solid #dfc16b;
  border-radius:12px;
  background:linear-gradient(145deg,#4d4828,#2d3220);
  box-shadow:inset 0 0 0 1px #ead38e24;
  color:#faf0cf;
  font-family:inherit;
  text-align:left;
}
.decision-panel #final-goal:disabled {opacity:1; cursor:default;}
.decision-panel .target-shape {display:flex; align-items:center; justify-content:center; width:64px; height:64px; margin:0;}
.decision-panel .target-shape svg {width:64px; height:64px; max-width:100%; max-height:64px;}
.decision-panel .goal-copy {display:flex; flex-direction:column; gap:3px; min-width:0;}
.decision-panel .goal-label {font-size:14px; line-height:18px; font-weight:800; color:#f3da8f; letter-spacing:.025em;}
.decision-panel .goal-exact {font-size:17px; line-height:21px; font-weight:800; color:#fff4d3;}
.decision-panel .goal-count,.decision-panel .goal-rotation {font-size:14px; line-height:18px; color:#e4d6a7;}
.decision-panel .tool-comparison {display:grid; grid-template-columns:minmax(0,1fr) 16px minmax(0,1fr); align-items:center; gap:5px; min-width:0;}
.tool-comparison > section {display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; min-width:0; min-height:126px; padding:8px 5px; border:1px solid #485f42; border-radius:10px; background:#15221bcc; text-align:center;}
.tool-comparison .next-tool {border-style:dashed;}
.tool-comparison .next-tool.legal {border-style:solid; border-color:#9abf79; background:#283b25;}
.tool-comparison .mini-label {display:flex; align-items:center; justify-content:center; min-height:36px; font-size:14px; line-height:18px; letter-spacing:0; font-weight:750; color:#c0d1b4;}
.tool-comparison .large-shape {display:flex; align-items:center; justify-content:center; width:100%; height:52px; margin:0;}
.tool-comparison .large-shape svg {width:64px; height:52px; max-width:100%; max-height:52px;}
.tool-comparison .tool-count {font-size:14px; line-height:18px; color:#bed0af;}
.comparison-arrow {font-size:20px; line-height:1; color:#bdd4a7; text-align:center;}
.mobile-label {display:none;}
.action-panel {display:flex; flex-direction:column; gap:7px; min-width:0;}
.action-panel .cut-status {height:66px; min-height:66px; margin:0; padding:5px 4px; font-size:16px; line-height:22px; overflow:auto; color:#eac0aa;}
.action-panel .cut-status.legal {color:#d1e1b7;}
.essential-actions {display:grid; grid-template-columns:1fr 1fr 1fr; gap:7px;}
.essential-actions button {min-width:0; min-height:48px; margin:0; padding:8px 5px; font-size:15px; line-height:20px; white-space:nowrap;}
.essential-actions [data-action="cut"] {grid-column:1/-1; min-width:0; min-height:52px; font-size:17px; letter-spacing:.06em;}
.action-panel .hint-shortcut {min-height:48px; padding:8px; font-size:15px;}
 .precision-pad {position:absolute; right:8px; bottom:8px; z-index:6; display:grid; grid-template-columns:minmax(0,1fr) 48px; grid-template-rows:48px 48px; gap:4px; width:238px; padding:6px; background:#172b1f; border:1px solid #a7bf8b; border-radius:12px; box-shadow:0 6px 24px #0007;}
.precision-pad > span {grid-column:1; grid-row:1; align-self:center; padding-left:5px; font-size:14px; line-height:18px; color:#c4d6b5;}
.precision-pad button {width:48px; min-width:48px; min-height:48px; height:48px; padding:5px; font-size:22px;}
.precision-pad .precision-close {grid-column:2; grid-row:1; font-size:18px;}
.precision-pad .precision-arrows {grid-column:1/-1; grid-row:2; display:grid; grid-template-columns:repeat(4,48px); gap:4px; justify-content:center;}
.precision-arrows [data-action="up"] {grid-column:2; grid-row:1;}
.precision-arrows [data-action="left"] {grid-column:1; grid-row:1;}
.precision-arrows [data-action="down"] {grid-column:3; grid-row:1;}
.precision-arrows [data-action="right"] {grid-column:4; grid-row:1;}
.sheet-inspection {position:absolute; inset:0; z-index:7; display:flex; flex-direction:column; gap:8px; padding:12px; min-width:0; min-height:0; border:1px solid #a9bf87; border-radius:12px; background:#1a2c20; box-shadow:0 8px 24px #0005;}
.sheet-inspection h2 {font-size:20px; line-height:1.2; margin:0;}
.sheet-inspection p {font-size:16px; line-height:1.4; margin:0;}
.sheet-inspection .inspection-head,.sheet-inspection .inspection-heading {display:flex; align-items:center; justify-content:space-between; gap:8px; flex:none;}
.sheet-inspection .inspection-head > div,.sheet-inspection .inspection-heading > div {min-width:0;}
.sheet-inspection .inspection-heading h2 {min-width:0;}
.sheet-inspection .inspection-close {flex:none; width:48px; padding:6px;}
.sheet-inspection button {min-height:48px; font-size:15px;}
.sheet-inspection .inspection-board,.sheet-inspection .inspect-board,.sheet-inspection .inspection-sheet {flex:1 1 0; min-width:0; min-height:0; display:grid; place-items:center; margin:0;}
.sheet-inspection .sheet-svg {width:100%; height:100%; min-width:0; max-width:none; max-height:none;}
.sheet-inspection .inspection-footer {display:flex; justify-content:space-between; align-items:center; gap:8px; flex:none; font-size:14px; line-height:18px;}
.sheet-inspection .inspect-goal {font-size:14px; line-height:18px; gap:8px;}
.sheet-inspection .inspect-goal svg {width:36px; height:36px; flex:none;}
.workbench-card .cut-hint {position:absolute; z-index:8; inset:auto 8px 8px; max-height:min(260px,80%); overflow:auto; padding:16px; border:1px solid #a0b878; border-radius:12px; background:#2c4028; box-shadow:0 8px 28px #0008;}
.workbench-card .cut-hint p {font-size:16px; line-height:1.5; margin:0 0 10px; padding-right:42px;}
.workbench-card .cut-hint .hint-close {position:absolute; top:5px; right:5px; width:48px; min-width:48px; height:48px; min-height:48px; padding:6px; font-size:20px; background:transparent;}
.workbench-card .cut-hint button {min-height:48px; font-size:15px;}
.decision-panel .chain-win {display:flex; flex-wrap:wrap; align-items:flex-start; gap:10px; margin:0; padding:14px; border:1px solid #a5bb78; border-radius:12px;}
.decision-panel .chain-win > div {min-width:0; flex:1 1 170px; max-width:none;}
.decision-panel .chain-win > span {width:32px; height:32px; font-size:22px;}
.decision-panel .chain-win h2 {font-size:22px; line-height:1.2; margin:4px 0 8px;}
.decision-panel .chain-win p {font-size:15px; line-height:1.45;}
.decision-panel .chain-win .primary {width:100%; min-width:0; min-height:48px; margin:0; font-size:15px;}
.decision-panel .lesson-handoff {width:100%; flex:1 1 100%; margin:0; gap:7px;}
.compact-card .eyebrow {font-size:14px; line-height:1.4; letter-spacing:.06em;}
/* Optional menus and rules use the same readable scale as the work surface. */
.cut-modal {max-height:calc(100vh - 28px);max-height:calc(100svh - 28px); overflow:auto;}
.cut-modal p,.cut-modal .inspect-goal {font-size:16px; line-height:1.5;}
.cut-modal h2 {font-size:25px; line-height:1.2;}
.cut-modal button {min-height:48px; font-size:15px;}
.cut-modal .three-rules > span {font-size:16px; line-height:1.45;}
.cut-modal .eyebrow {font-size:14px; line-height:1.4; letter-spacing:.06em;}
.cut-modal .chain-levels button > span,.cut-modal .history-list span {font-size:15px; line-height:1.4;}
.cut-modal .chain-levels button > small,.cut-modal .tutorial-options small,.cut-modal .tutorial-options .eyebrow {font-size:14px; line-height:1.4;}
.cut-modal .tutorial-options strong {font-size:20px; line-height:1.25;}
.cut-menu-grid {display:grid; grid-template-columns:1fr 1fr; gap:8px;}
.cut-menu-grid button {text-align:left; justify-content:flex-start; min-height:52px; padding:10px 14px; font-size:16px;}
.cut-menu-summary,.menu-summary {display:flex; flex-wrap:wrap; gap:8px 20px; align-items:center;font-size:16px; line-height:1.5; color:#d5dabb; margin:0 0 14px;}
.goal-detail-shape {display:flex; justify-content:center; padding:12px;}
.goal-detail-shape svg {width:100px; height:100px;}
.rule-final-goal {padding:12px; border:2px solid #dfc16b; border-radius:12px; background:#383b24;}
.rule-final-goal .goal-detail-shape {float:left; padding:0 16px 8px 0;}
.rule-final-goal::after {content:""; display:block; clear:both;}

@media (min-width:1500px) and (min-height:850px) {
  .cut-shell.compact-shell {padding-top:16px; padding-bottom:16px;}
  .cut-workspace {grid-template-columns:minmax(0,1fr) 306px; gap:24px; padding:18px 20px;}
  .decision-panel {gap:16px;}
  .tool-comparison > section {min-height:138px;}
  .tool-comparison .large-shape,.tool-comparison .large-shape svg {height:64px; max-height:64px;}
}
@media (max-width:1000px) and (min-width:701px) {
  .cut-workspace {grid-template-columns:minmax(0,1fr) 266px; gap:12px; padding:10px 12px;}
  .workbench-header {gap:8px; padding-inline:12px;}
  .workbench-header .compact-title h1 {font-size:21px;}
  .workbench-header .level-name {max-width:210px;}
  .decision-panel .target-box {grid-template-columns:52px minmax(0,1fr); gap:9px; padding:10px;}
  .decision-panel .target-shape,.decision-panel .target-shape svg {width:52px; height:52px;}
}
@media (max-width:700px) {
  .cut-shell.compact-shell {padding:max(4px,env(safe-area-inset-top)) max(4px,env(safe-area-inset-right)) max(4px,env(safe-area-inset-bottom)) max(4px,env(safe-area-inset-left));}
  .workbench-card.compact-card {grid-template-rows:56px minmax(0,1fr); border-radius:12px;}
  .workbench-header.compact-header {gap:7px; padding:3px 8px;}
  .workbench-header .cut-brand {min-width:24px;}
  .workbench-header .cut-brand img {width:24px; height:34px;}
  .workbench-header .compact-title {display:none;}
  .workbench-header .header-progress {flex:1 1 auto; margin-left:0; text-align:left;}
  .workbench-header .level-name {font-size:15px; line-height:19px;}
  .workbench-header .level-picker {display:block; max-width:100%; min-width:0; min-height:0; padding:0; border:0; border-radius:4px; background:transparent; text-align:right;}
.workbench-header .level-name b {margin-right:6px;}
.workbench-header .sheet-number {font-size:14px; line-height:18px;}
  .workbench-header nav {gap:4px;}
  .workbench-header nav button {min-width:48px; min-height:48px; padding:7px; font-size:15px;}
  .workbench-header nav .nav-label {display:none;}
  .cut-workspace {grid-template-columns:minmax(0,1fr) 140px; grid-template-rows:104px minmax(0,1fr) auto; gap:8px; padding:8px;}
  .decision-panel {display:contents;}
  .decision-panel .target-box {grid-column:2; grid-row:1; display:grid; grid-template-columns:minmax(0,1fr) 32px; grid-template-rows:28px 18px minmax(18px,1fr); gap:3px 5px; min-width:0; min-height:0; height:104px; padding:6px; border-radius:10px; text-align:left;}
  .decision-panel .target-shape {grid-column:2; grid-row:1; width:28px; height:28px; justify-self:end;}
  .decision-panel .target-shape svg {width:28px; height:28px; max-height:28px;}
  .decision-panel .goal-copy {display:contents;}
  .decision-panel .goal-label {grid-column:1; grid-row:1; align-self:center; font-size:14px; line-height:18px; letter-spacing:0;}
  .decision-panel .goal-exact {grid-column:1/-1; grid-row:2; align-self:center; font-size:14px; line-height:18px;}
  .decision-panel .goal-count {grid-column:1/-1; grid-row:3; align-self:center; font-size:14px; line-height:18px;}
  .decision-panel .goal-count br {display:none;}
  .decision-panel .goal-rotation {display:none;}
  .decision-panel .tool-comparison {grid-column:1; grid-row:1; grid-template-columns:minmax(0,1fr) 12px minmax(0,1fr); gap:3px; align-items:stretch;}
  .tool-comparison > section {min-height:0; height:104px; padding:5px 2px; gap:3px; border-radius:9px;}
  .tool-comparison .mini-label {display:block; min-height:18px; font-size:14px; line-height:18px;}
  .tool-comparison .large-shape {height:42px; flex:1; min-height:0;}
  .tool-comparison .large-shape svg {width:48px; height:42px; max-height:42px;}
  .tool-comparison .tool-count {font-size:14px; line-height:18px; white-space:nowrap;}
  .comparison-arrow {align-self:center; font-size:16px;}
  .desktop-label {display:none;}
  .mobile-label {display:inline;}
  .play-column {grid-column:1/-1; grid-row:2; gap:4px;}
  .play-column .board-legend {min-height:20px; font-size:14px; line-height:18px; gap:10px;}
  .chain-panel .queue-title {display:none;}
  .chain-panel .sheet-queue {height:64px; min-height:64px; gap:5px; padding:0;}
  .chain-panel .sheet-queue button {width:60px; min-width:60px; max-width:60px; flex-basis:60px; height:64px; min-height:64px; gap:1px; padding:4px;}
  .chain-panel .sheet-queue .current {padding:3px;}
  .chain-panel .sheet-queue svg {width:40px; height:36px;}
  .chain-panel .sheet-queue button > small {font-size:12px; line-height:16px;}
  .action-panel {grid-column:1/-1; grid-row:3; gap:4px;}
  .action-panel .cut-status {height:44px; min-height:44px; font-size:16px; line-height:20px; padding:2px 0;}
  .essential-actions {grid-template-columns:48px minmax(68px,.85fr) minmax(60px,.75fr) minmax(100px,1.35fr); gap:5px;}
  .essential-actions button {display:flex; flex-direction:column; align-items:center; justify-content:center; gap:0; min-height:48px; padding:3px; font-size:14px; line-height:18px; border-radius:9px;}
  .essential-actions [data-action="cut"] {flex-direction:row; gap:4px; grid-column:auto; min-width:0; min-height:48px; font-size:15px; letter-spacing:.025em;}
  .action-panel .hint-shortcut {display:none;}
  .decision-panel .chain-win {grid-column:1/-1; grid-row:3; display:flex; flex-wrap:wrap; align-items:center; max-height:200px; overflow:auto; gap:7px; padding:8px; border-radius:10px;}
  .decision-panel .chain-win > span {width:28px; height:28px; font-size:20px;}
  .decision-panel .chain-win > div {flex:1 1 210px;}
  .decision-panel .chain-win h2 {font-size:20px; line-height:1.2; margin:2px 0 4px;}
  .decision-panel .chain-win p {font-size:14px; line-height:1.35;}
  .decision-panel .chain-win .primary {min-height:48px; font-size:14px;}
  .decision-panel .chain-win .lesson-handoff {display:flex; flex-direction:row; gap:5px; margin:0;}
  .decision-panel .chain-win .lesson-handoff button {min-width:0; flex:1; white-space:normal; font-size:14px;}
  .compact-card .eyebrow {font-size:13px; line-height:17px;}
  .precision-pad {right:4px; bottom:4px;}
  .sheet-inspection {padding:8px; gap:6px;}
  .sheet-inspection h2 {font-size:18px;}
  .sheet-inspection p {display:none; font-size:14px; line-height:18px;}
  .sheet-inspection .inspection-return {display:none;}
  .sheet-inspection .inspection-footer {font-size:14px; line-height:18px; flex-wrap:wrap;}
  .workbench-card .cut-hint {inset:auto 4px 4px; padding:12px;}
  .workbench-card .cut-hint p {font-size:16px;}
  .cut-modal h2 {font-size:22px;}
  .cut-modal .three-rules > span {font-size:15px;}
  .cut-menu-grid {gap:6px;}
}
@media (max-width:359px) {
  .cut-workspace {padding:6px; gap:6px;}
  .workbench-header.compact-header {padding-inline:6px; gap:5px;}
  .workbench-header .cut-brand {display:none;}
  .workbench-header nav button {padding-inline:5px;}
  .essential-actions {grid-template-columns:48px minmax(64px,.85fr) minmax(54px,.75fr) minmax(90px,1.35fr); gap:4px;}
  .essential-actions button {font-size:14px;}
  .play-column .board-legend {gap:7px;}
}
/* Wide, short screens use a compact side panel rather than stacking chrome
   above the board. The goal remains in the first visible, unscrolled slot. */
@media (min-width:701px) and (max-height:650px) {
  .cut-shell.compact-shell {padding-block:4px;}
  .workbench-card.compact-card {grid-template-rows:52px minmax(0,1fr);}
  .workbench-header.compact-header {padding-block:2px; gap:8px;}
  .workbench-header .compact-title h1 {font-size:21px;}
  .workbench-header nav button {min-height:48px;}
  .cut-workspace {grid-template-columns:minmax(0,1fr) 268px; gap:12px; padding:8px 12px;}
  .decision-panel {gap:7px;}
  .decision-panel .target-box {min-height:90px; grid-template-columns:44px minmax(0,1fr); gap:8px; padding:7px;}
  .decision-panel .target-shape,.decision-panel .target-shape svg {width:44px; height:44px;}
  .decision-panel .goal-exact {font-size:16px; line-height:19px;}
  .decision-panel .goal-copy {gap:1px;}
  .decision-panel .goal-rotation {display:none;}
  .tool-comparison > section {min-height:90px; padding:5px 3px; gap:2px;}
  .tool-comparison .mini-label {min-height:18px; font-size:14px; line-height:18px;}
  .tool-comparison .large-shape,.tool-comparison .large-shape svg {height:38px; max-height:38px;}
  .tool-comparison .desktop-label {display:none;}
  .tool-comparison .mobile-label {display:inline;}
  .action-panel {gap:4px;}
  .action-panel .cut-status {height:44px; min-height:44px; padding:1px 0; font-size:15px; line-height:20px;}
  .essential-actions {gap:5px;}
  .essential-actions button {min-height:48px; padding:5px; font-size:14px;}
  .essential-actions [data-action="cut"] {min-height:48px; font-size:16px;}
  .action-panel .hint-shortcut {display:none;}
  .chain-panel .sheet-queue {height:60px; min-height:60px;}
  .chain-panel .sheet-queue button {height:58px; min-height:58px;}
  .chain-panel .sheet-queue svg {height:30px;}
  .decision-panel .chain-win {padding:8px; gap:6px; max-height:200px; overflow:auto;}
  .decision-panel .chain-win h2 {font-size:19px;}
  .decision-panel .chain-win p {font-size:14px;}
}
/* Short phone landscape returns to a compact two-column work surface. */
@media (min-width:560px) and (max-height:470px) {
  .cut-shell.compact-shell {padding-top:4px; padding-bottom:4px;}
  .workbench-card.compact-card {grid-template-rows:52px minmax(0,1fr);}
  .workbench-header.compact-header {gap:8px; padding:2px 8px;}
  .workbench-header .compact-title {display:none;}
  .workbench-header .header-progress {margin-left:0; text-align:left;}
  .workbench-header .level-picker {text-align:left;}
  .workbench-header .level-title {display:none;}
  .workbench-header nav {margin-left:auto;}
  .workbench-header nav button {min-height:48px; min-width:48px; padding:7px;}
  .cut-workspace {grid-template-columns:minmax(0,1fr) 280px; grid-template-rows:minmax(0,1fr); gap:10px; padding:6px 10px;}
  .play-column {grid-column:1; grid-row:1; gap:4px;}
  .play-column .board-legend {min-height:20px; font-size:14px; line-height:18px; gap:7px;}
  .decision-panel {display:grid; grid-column:2; grid-row:1; grid-template-columns:minmax(0,1fr); grid-template-rows:76px 72px minmax(0,1fr); gap:5px;}
  .decision-panel .target-box {display:grid; grid-column:1; grid-row:1; grid-template-columns:44px minmax(0,1fr); grid-template-rows:auto; gap:8px; min-height:0; height:76px; padding:5px 8px; text-align:left;}
  .decision-panel .target-shape {grid-column:auto; grid-row:auto; width:44px; height:44px; justify-self:center;}
  .decision-panel .target-shape svg {width:44px; height:44px; max-height:44px;}
  .decision-panel .goal-copy {display:flex; flex-direction:column; gap:1px;}
  .decision-panel .goal-copy > * {align-self:auto;}
  .decision-panel .goal-label {font-size:14px; line-height:16px;}
  .decision-panel .goal-exact {font-size:16px; line-height:19px;}
  .decision-panel .goal-count {font-size:14px; line-height:16px;}
  .decision-panel .goal-rotation {display:none;}
  .decision-panel .tool-comparison {grid-column:1; grid-row:2; grid-template-columns:minmax(0,1fr) 16px minmax(0,1fr); gap:5px; min-height:0;}
  .tool-comparison > section {min-height:0; height:72px; padding:3px; gap:1px;}
  .tool-comparison .mini-label {font-size:14px; line-height:16px; min-height:16px;}
  .tool-comparison .desktop-label {display:none;}
  .tool-comparison .mobile-label {display:inline;}
  .tool-comparison .large-shape {height:29px; flex:none;}
  .tool-comparison .large-shape svg {height:29px; max-height:29px;}
  .tool-comparison .tool-count {font-size:14px; line-height:16px;}
  .action-panel {grid-column:1; grid-row:3; gap:3px;}
  .action-panel .cut-status {height:42px; min-height:42px; font-size:14px; line-height:18px; padding:2px 0;}
  .essential-actions {grid-template-columns:48px 68px 54px minmax(0,1fr); gap:4px;}
  .essential-actions button {display:flex; flex-direction:column; align-items:center; justify-content:center; gap:0; min-height:48px; padding:4px 2px; font-size:14px; line-height:18px;}
  .essential-actions [data-action="cut"] {flex-direction:row; gap:3px; grid-column:auto; min-height:48px; font-size:14px; letter-spacing:0;}
  .action-panel .hint-shortcut {display:none;}
  .chain-panel .queue-title {display:none;}
  .chain-panel .sheet-queue {height:60px; min-height:60px;}
  .chain-panel .sheet-queue button {height:58px; min-height:58px;}
  .chain-panel .sheet-queue svg {height:30px;}
  .decision-panel .chain-win {grid-column:1; grid-row:3; max-height:none; overflow:auto; padding:5px;}
  .decision-panel .chain-win p {display:none;}
  .decision-panel .chain-win h2 {font-size:17px; margin:0;}
  .decision-panel .chain-win > span {display:none;}
  .decision-panel .chain-win .eyebrow {font-size:13px;}
  .decision-panel .chain-win .primary {min-height:48px; font-size:14px;}
}
@media (min-width:560px) and (max-height:340px) {
  .cut-shell.compact-shell {padding-top:2px; padding-bottom:2px;}
  .workbench-card.compact-card {grid-template-rows:48px minmax(0,1fr);}
  .workbench-header.compact-header {padding-top:0; padding-bottom:0;}
  .cut-workspace {padding-top:4px; padding-bottom:4px;}
}
