.figure-paper.paper{width:210mm;height:297mm;min-height:297mm;max-height:297mm;padding:9mm 10mm;gap:3mm;overflow:hidden;box-sizing:border-box}
.figure-paper .paper-head{flex:0 0 11mm;padding:0 0 2mm;min-height:0}
.figure-paper h2{font-size:20px;flex:0 0 auto;line-height:1.15}
.figure-paper .child-row{flex:0 0 5mm;margin:0;font-size:12px}
.figure-paper.paper>.figure-page-focus{position:absolute;top:20mm;right:13mm;width:28mm;height:20mm;z-index:2;pointer-events:none}.figure-page-focus>svg{display:block;width:100%;height:100%}.figure-paper>h2,.figure-paper>.child-row{padding-right:42mm}.page-bw>.figure-page-focus{filter:grayscale(1)}
.figure-paper .paper-foot{flex:0 0 5mm;margin:0;padding-top:2mm;font-size:9px}
.figure-paper.full-page>h2,.figure-paper.full-page>.child-row{display:none}
.figure-board{flex:1;min-height:0;position:relative;width:100%}
.figure-board>svg{display:block;width:100%;height:100%;overflow:visible;touch-action:pan-y pinch-zoom}
.page-bw .figure-board{filter:grayscale(1)}
.zone-shape{fill:white;stroke:var(--zone-ink,#4c6f84);stroke-opacity:var(--zone-strength,1);stroke-width:1.5;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.figure-zone{cursor:pointer;outline:none}
.figure-zone:hover>.zone-shape,.figure-zone:focus>.zone-shape{fill:#f3f7f9;stroke:#3d5e73;stroke-opacity:1;stroke-width:2.5}
.figure-zone>svg,.figure-zone>g{pointer-events:none}
.zone-caption{font-family:Arial,sans-serif;fill:#4d626e;font-size:16px;letter-spacing:.3px}
.zone-knob{fill:white;stroke:#4c6f84;stroke-width:2;vector-effect:non-scaling-stroke}
.zone-divider{stroke:transparent;stroke-width:18;fill:none;touch-action:none}
.zone-handle{outline:none;touch-action:none;cursor:col-resize}
.zone-handle *{touch-action:none}
html.figure-resizing,html.figure-resizing body{user-select:none;-webkit-user-select:none;overscroll-behavior:none}
.figure-drag-guide,.figure-drag-guide *{pointer-events:none!important}
.figure-drag-guide .zone-divider{stroke:#3d5e73;stroke-dasharray:8 6;stroke-linecap:round}
.figure-drag-guide .zone-knob{fill:#4c6f84;stroke:white}
.figure-hold-pending .zone-knob{animation:figure-boundary-hold .3s linear forwards}
.figure-hold-ready .zone-knob{fill:#4c6f84;stroke:#243d4b}
@keyframes figure-boundary-hold{from{fill:#e3edf3}to{fill:#4c6f84}}
.zone-handle[data-axis=y]{cursor:row-resize}
.zone-handle[data-outer=true] .zone-knob{fill:#e3edf3}
.zone-handle:focus .zone-knob,.zone-handle:hover .zone-knob{fill:#d5e4ec;stroke:#243d4b}
.figure-page-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.figure-page-select{min-width:110px;max-width:240px}
.page-strip{display:flex;gap:6px;overflow:auto;max-width:100%;padding:3px 0 8px;scrollbar-width:thin}
.page-strip button{white-space:nowrap;flex:none;padding:7px 11px;font-size:13px;min-height:36px}
.page-strip button[aria-pressed=true]{background:#4c6f84;color:white;border-color:#4c6f84}
.figure-toolbar{width:100%;display:grid;gap:12px;margin-bottom:3px}
.figure-top-line{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.figure-top-line h2{font-size:15px;margin:0;line-height:1.6;color:#3d5e73}
.figure-page-controls label{display:flex;align-items:center;gap:7px;font-size:13px;font-weight:600}
.figure-page-controls select{padding:7px 30px 7px 10px;min-height:38px}
.figure-toolbar button{min-height:38px}
.figure-icon{display:flex;align-items:center;justify-content:center;background:#e3edf3;border-radius:16px;width:70px;height:70px;font-size:40px;font-weight:600;color:#4c6f84}
body:has(.figure-toolbar) .material-symbol{display:none}
body:has(.figure-toolbar) .editor-head{margin-bottom:12px}
#workspace .figure-paper[data-active=false]{display:none}
.figure-stage{width:100%;display:flex;justify-content:center}
.layout-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:10px}
.layout-choices button{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 6px;font-size:12px;min-width:0}
.layout-choices svg{display:block;width:100%;height:100px;pointer-events:none}
.layout-choices button[aria-pressed=true],.kind-choices button[aria-pressed=true],.art-choices button[aria-pressed=true],.visual-choices button[aria-pressed=true]{border:2px solid #4c6f84;background:#e3edf3}
.kind-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0}
.kind-choices button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:9px 5px;min-height:91px;font-size:12px;font-weight:500;line-height:1.3;min-width:0}
.kind-choices .kind-picture{display:flex;align-items:center;justify-content:center;height:45px;width:66px;font-size:28px;color:#4c6f84}
.kind-picture svg{height:44px;width:58px}
.art-choices{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;margin:12px 0}
.art-choices button{padding:5px;min-width:0;font-size:10px;display:flex;flex-direction:column;gap:3px;align-items:center}
.art-choices svg{width:42px;max-width:100%;height:42px}
.visual-choices{display:flex;gap:8px;margin:10px 0;flex-wrap:wrap}
.visual-choices button{flex:1;min-width:80px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;line-height:1.3;gap:4px;padding:8px;font-size:12px}
.visual-choices svg{height:50px;width:50px}
.zone-option{padding-top:12px;border-top:1px solid #d5e4ec;margin-top:12px}
.zone-option h3{font-size:14px;margin:0 0 8px;color:#3d5e73}
.zone-option label.field{display:flex;flex-direction:column;gap:7px;font-size:13px}
.zone-option input[type=range]{width:100%;accent-color:#4c6f84}
.zone-option .checks{margin-top:10px;gap:10px}
.zone-option .checks label{font-size:13px}
.zone-preview{height:160px;border:1px solid #d5e4ec;border-radius:10px;background:white;margin:10px 0;display:flex;align-items:center;justify-content:center;overflow:hidden}
.zone-preview>svg{max-height:150px;max-width:95%}
.figure-settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.figure-settings-grid .field{display:flex;flex-direction:column;gap:6px;font-size:13px}
.figure-settings-grid select{width:100%}
.figure-settings-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}
.figure-note{font-size:12px;color:#607680;line-height:1.5;margin:10px 0}
.figure-cuts summary{font-size:13px;color:#3d5e73;cursor:pointer;padding:12px 0}
.figure-cuts label{display:grid;grid-template-columns:1fr 1.5fr;gap:8px;align-items:center;margin-bottom:10px;font-size:12px}
.keep-zones{display:grid;gap:8px;margin:12px 0}
.keep-zones label{display:flex;gap:8px;align-items:center;padding:9px;background:#f0f5f7;border-radius:6px;font-size:13px}
.figure-error{font-size:13px;color:#a43434;min-height:20px}
.figure-photo-options{display:flex;gap:8px;flex-wrap:wrap}
.figure-photo-options label{display:inline-flex;align-items:center;justify-content:center;padding:9px 12px;border:1px solid #a3b6c1;border-radius:8px;cursor:pointer;font-size:13px}
@media screen{.figure-paper.paper{box-shadow:0 4px 24px #243c4c15;border:1px solid #dce5e9}.figure-paper .figure-board{min-height:0}}
@media screen and (max-width:850px){#workspace{display:block;overflow:hidden}.figure-paper.paper{transform-origin:top left;margin:0 auto}.figure-toolbar{min-width:0}.figure-page-controls{gap:7px}.figure-page-controls label{font-size:12px}.figure-page-controls select{min-width:64px}.figure-page-controls button{font-size:12px;padding:7px 9px}}
@media screen and (max-width:420px){.kind-choices{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.layout-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.art-choices{grid-template-columns:repeat(3,minmax(0,1fr))}.figure-settings-grid{grid-template-columns:1fr}.figure-page-controls{align-items:stretch}.figure-page-controls label{flex:1}.figure-page-controls select{width:100%}.figure-page-controls .page-layout-button{flex:1}.figure-page-controls #figure-undo{margin-left:auto}.figure-top-line{gap:6px}}
@media print{#print-root .figure-paper.paper{width:210mm;height:296.5mm;min-height:296.5mm;max-height:296.5mm;margin:0;padding:9mm 10mm;gap:3mm;display:flex!important;overflow:hidden}#print-root .figure-paper .paper-head{flex:0 0 11mm;padding:0 0 2mm}#print-root .figure-paper h2{font-size:15pt}#print-root .figure-paper .child-row{flex:0 0 5mm;font-size:9pt}#print-root .figure-paper .paper-foot{flex:0 0 5mm;margin:0;padding-top:2mm;font-size:7pt}.figure-zone>.zone-shape{fill:white!important;stroke:var(--zone-ink,#4c6f84)!important;stroke-opacity:var(--zone-strength,1)!important;stroke-width:1.5}.figure-paper[data-zone-borders=false] .figure-zone>.zone-shape{stroke:none!important}.figure-paper[data-zone-borders=false] .zone-ornament{display:none!important}.figure-zone{cursor:default}.figure-paper .figure-board{flex:1;min-height:0}.figure-paper .editor-only{display:none!important}}

.figure-theme-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0}.figure-theme-choices button{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:0;font-size:12px;padding:8px}.figure-theme-choices svg{width:100%;height:55px}.figure-theme-choices button[aria-pressed=true]{border:2px solid #4c6f84;background:#e3edf3}.figure-border-intensity{margin-top:15px}.zone-ornament{pointer-events:none}

.figure-page-controls .figure-setting-button{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:48px;padding:7px 13px;background:#f5f8fa;font-size:13px;color:#3d5e73}.figure-setting-button strong{font-size:24px;line-height:1;font-weight:600}.figure-mini-layout{display:flex;width:28px;height:34px}.figure-mini-layout svg{width:100%;height:100%}.figure-picker{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;margin:18px 0}.figure-picker button{font-size:27px;font-weight:600;min-height:60px}.figure-picker button[aria-pressed=true],.figure-zone-picker button[aria-pressed=true]{background:#d5e4ec;border:2px solid #4c6f84;color:#3d5e73}.figure-zone-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0}.figure-zone-picker button{display:flex;flex-direction:column;align-items:center;gap:8px;font-size:14px;padding:12px}.figure-zone-picker svg{height:92px;width:100%;pointer-events:none}
@media screen and (max-width:420px){.figure-page-controls{display:grid;grid-template-columns:1fr 1fr 44px}.figure-page-controls .figure-setting-button{gap:8px}.figure-page-controls #figure-zones{grid-column:2/4}.figure-page-controls #figure-layout{grid-column:1/3}.figure-page-controls #figure-undo{width:44px;margin:0}.figure-picker{grid-template-columns:repeat(4,minmax(0,1fr))}.figure-zone-picker{grid-template-columns:repeat(2,minmax(0,1fr))}}

.figure-paper.paper[data-orientation=landscape]{width:297mm;height:210mm;min-height:210mm;max-height:210mm}.figure-orientation-picker{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:20px 0}.figure-orientation-picker button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:9px;padding:16px 8px}.figure-orientation-picker svg{width:100%;height:110px;pointer-events:none}.figure-orientation-picker small{font-weight:400;color:#607680;font-size:11px}.figure-orientation-picker button[aria-pressed=true]{background:#d5e4ec;border:2px solid #4c6f84}
@media screen and (max-width:420px){.figure-page-controls #figure-layout{grid-column:1}.figure-page-controls #figure-orientation{grid-column:2;font-size:11px;padding:7px 4px}.figure-page-controls #figure-undo{grid-column:3}}
@page figure-portrait{size:A4 portrait;margin:0}@page figure-landscape{size:A4 landscape;margin:0}
@media print{#print-root .figure-paper{page:figure-portrait}#print-root .figure-paper[data-orientation=landscape]{page:figure-landscape;width:297mm;height:209.5mm;min-height:209.5mm;max-height:209.5mm}}

/* Keep the physical sheet intact; only its outer screen transform is scaled. */
@media screen{body[data-website-material] #workspace:has(.figure-paper){display:block;overflow:hidden}body[data-website-material] .workspace>.figure-paper.paper{max-width:none;flex:none;transform-origin:top left;margin:0 auto}}

.figure-layout-more{margin:16px 0}.figure-layout-more>summary{cursor:pointer;color:#3d5e73;font-size:13px;padding:10px 0}

.figure-irregular-heading{margin-top:22px}.maze-level-choices button{min-height:44px}.maze-extra-goals{margin-top:12px}.maze-extra-goals summary{cursor:pointer;color:#3d5e73;padding:10px 0;font-size:13px}

.figure-live-options{width:min(1120px,calc(100vw - 32px));max-width:none;overflow:hidden}.figure-live-options #modal-body{overflow:hidden;padding:16px}.figure-live-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(290px,.85fr);gap:22px;height:min(72vh,760px)}.figure-live-preview{display:flex;flex-direction:column;min-height:0;margin:0}.figure-live-preview>p{font-size:12px;color:#607680;margin:0 0 10px}#figure-zone-live-view{min-height:0;flex:1;background:#f5f8fa;border:1px solid #d5e4ec;border-radius:8px;padding:10px;display:flex;align-items:center;justify-content:center}#figure-zone-live-view>svg{width:100%;height:100%;display:block}.figure-live-controls{overflow:auto;min-width:0;padding:0 12px 10px 0;overscroll-behavior:contain}.figure-live-controls .art-choices{grid-template-columns:repeat(3,minmax(0,1fr))}.figure-live-controls .art-choices button{min-width:0}.figure-live-controls .zone-preview{display:none}
@media screen and (max-width:650px){.figure-live-options{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.figure-live-options #modal-body{padding:10px}.figure-live-layout{grid-template-columns:1fr;grid-template-rows:minmax(150px,32vh) minmax(0,1fr);height:calc(100dvh - 110px);gap:12px}.figure-live-preview>p{margin-bottom:5px}.figure-live-controls{padding-right:6px}}

.figure-paper>.figure-page-decoration{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:0}.figure-paper>.paper-head,.figure-paper>h2,.figure-paper>.child-row,.figure-paper>.figure-board,.figure-paper>.paper-foot{position:relative;z-index:1}
.page-bw>.figure-page-decoration{filter:grayscale(1)}
.figure-paper.full-page>.paper-head small{visibility:hidden}

#figure-current-options{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:50px;padding:12px 18px;margin:10px 0 18px;font-weight:700;text-align:center;line-height:1.3}#figure-current-options .figure-edit-icon{flex:none;font-size:24px;line-height:1}

.figure-page-actions{display:grid;gap:6px;width:240px;max-width:100%;flex:none}.figure-file-actions{display:flex;align-items:stretch;justify-content:flex-end;gap:6px}.figure-file-actions .figure-remove-page{font-size:12px;padding:6px 10px;min-height:44px}.figure-file-button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;padding:5px 8px;min-width:52px;min-height:44px;font-size:10px}.figure-file-button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.figure-page-actions>#figure-add{width:100%;min-height:44px}
@media screen and (max-width:420px){.figure-page-actions{width:100%}.figure-file-actions{justify-content:center}.figure-file-actions .figure-remove-page{flex:1}}

.figure-paper:has(>.figure-page-decoration)>.paper-head{border-bottom-color:transparent;background:linear-gradient(#d5dfe5,#d5dfe5) left bottom/calc(100% - 70mm) 1px no-repeat}.figure-paper.full-page:has(>.figure-page-decoration)>.paper-head{background-size:calc(100% - 52mm) 1px}

@media screen{.figure-paper:has(>.figure-page-decoration)>h2.edit-text{max-width:calc(100% - 70mm)}}

.figure-page-actions #figure-undo{width:44px;min-height:44px;padding:6px}
.figure-focus-button{display:flex;align-items:center;gap:10px;text-align:left;min-width:175px;background:#f3f7f9}.figure-focus-button>svg{width:40px;height:40px;flex:none}.figure-focus-button>span{display:flex;flex-direction:column;gap:3px;font-size:11px}.figure-focus-button strong{font-size:17px;font-weight:600}.figure-page-controls>button{min-height:46px}.figure-page-controls{display:flex;flex-wrap:wrap;gap:8px}.figure-page-controls #figure-zones strong{font-size:22px;margin-left:8px}.shape-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0}.shape-choices button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-width:0;padding:10px 6px;min-height:90px;font-size:12px}.shape-choices button svg{width:60px;height:48px;pointer-events:none}.shape-choices button[aria-pressed=true]{border:2px solid #4c6f84;background:#e3edf3}.shape-choices.compact{grid-template-columns:repeat(4,minmax(0,1fr))}.shape-choices.compact button{font-size:11px;min-height:78px}.shape-choices.compact svg{height:34px}.shape-check{display:flex;align-items:center;gap:10px;font-size:13px;line-height:1.5;margin:12px 0;min-height:30px}.shape-check input{width:18px;height:18px;accent-color:#4c6f84;flex:none}.shape-checks{padding:8px 0}.current-content{width:100%;font-size:15px;min-height:46px;margin:0 0 10px}.figure-live-controls h3{font-size:14px;margin:22px 0 10px}.figure-live-controls .visual-choices{gap:6px}.figure-live-controls .visual-choices button{min-height:42px;padding:8px 10px;font-size:12px}.figure-decoration{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:0}.figure-paper>*:not(.figure-decoration){position:relative;z-index:1}.figure-paper.paper{position:relative}.zone-caption{letter-spacing:0;font-size:16px}.kind-picture svg{width:66px;height:45px}.figure-paper .paper-foot{z-index:1}.figure-live-options #modal-body{max-height:none}.figure-live-layout{height:min(72vh,760px)}.figure-file-button{font-size:18px}.figure-file-button span{font-size:10px}.figure-zone-picker button{min-height:110px}.figure-zone-picker button span{font-size:13px}
@media screen and (max-width:500px){.figure-page-controls{display:grid;grid-template-columns:1fr 1fr 44px}.figure-page-controls #figure-focus{grid-column:1/3}.figure-page-controls #figure-zones{grid-column:3;padding:4px;font-size:10px;display:flex;flex-direction:column;align-items:center}.figure-page-controls #figure-zones strong{margin:0}.figure-page-controls #figure-layout{grid-column:1}.figure-page-controls #figure-orientation{grid-column:2}.figure-page-controls #figure-undo{grid-column:3}.shape-choices{grid-template-columns:repeat(3,minmax(0,1fr))}.shape-choices.compact{grid-template-columns:repeat(3,minmax(0,1fr))}.figure-live-layout{grid-template-rows:minmax(130px,28vh) minmax(0,1fr)}.figure-live-preview>p{font-size:11px}.figure-live-controls{padding-bottom:30px}}
/* Keep the enclosing print context on the final named page, avoiding an empty
   anonymous page after a mixed portrait/landscape document in Chromium. */
@media print{
 html:has(#print-root>.figure-paper:last-child[data-orientation=portrait]),body:has(#print-root>.figure-paper:last-child[data-orientation=portrait]),#print-root:has(>.figure-paper:last-child[data-orientation=portrait]){page:figure-portrait}
 html:has(#print-root>.figure-paper:last-child[data-orientation=landscape]),body:has(#print-root>.figure-paper:last-child[data-orientation=landscape]),#print-root:has(>.figure-paper:last-child[data-orientation=landscape]){page:figure-landscape}
}
.scene-picture-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0}
.figure-top-line h2{flex:1;min-width:0}
.figure-toolbar .figure-current-sample{display:flex;align-items:center;justify-content:center;width:160px;height:108px;flex:none;padding:4px 14px;margin:0 6px 0 auto;border:1px solid transparent;border-radius:12px;background:transparent;box-shadow:none}
.figure-current-sample>svg{display:block;width:100%;height:100%;pointer-events:none}
.figure-toolbar .figure-current-sample:hover,.figure-toolbar .figure-current-sample:focus-visible{border-color:#b7cedd;background:#e3edf3}
.figure-current-sample .visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media screen and (max-width:650px){.figure-top-line:has(.figure-current-sample){display:grid;grid-template-columns:minmax(0,1fr) 92px;gap:8px 12px}.figure-toolbar .figure-current-sample{width:92px;height:80px;margin:0;padding:3px 6px}.figure-top-line:has(.figure-current-sample) .figure-page-actions{grid-column:1/-1;width:100%}}
.scene-picture-choices button{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;min-height:120px;gap:8px;padding:9px 6px;font-size:12px}
.scene-picture-choices svg{width:100%;height:95px;pointer-events:none}
.scene-picture-choices button[aria-pressed=true],.arrangement-choices button[aria-pressed=true]{border:2px solid #4c6f84;background:#e3edf3}
.nature-picture-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.nature-picture-choices svg{height:115px}
.arrangement-choices button{display:flex;flex-direction:column;align-items:center;gap:5px}.arrangement-choices svg{height:40px;width:85px;pointer-events:none}
.figure-live-controls .shape-choices button{min-height:82px}.figure-live-controls .shape-choices button svg{height:40px}
@media screen and (max-width:500px){.scene-picture-choices svg{height:65px}.scene-picture-choices button{min-height:92px}.nature-picture-choices svg{height:85px}}

.figure-focus-note{width:72px;height:72px;margin:8px 0}.figure-focus-note svg{width:100%;height:100%}.shape-choices button:disabled[aria-pressed=true]{opacity:1;cursor:default}
.scene-focus-summary{display:flex;align-items:center;gap:12px;margin:18px 0;padding:10px 12px;background:#f0f5f8;border-radius:8px;font-size:13px}.scene-focus-summary svg{width:44px;height:44px;flex:none}.scene-guide-choices button{display:flex;align-items:center;gap:10px;flex-direction:column}.scene-guide-choices svg{width:48px;height:48px}.scene-advanced{margin-top:20px;padding:12px 0;border-top:1px solid #d5e4ec}.scene-advanced summary{cursor:pointer;font-size:13px;font-weight:600;color:#3d5e73;min-height:32px}

.puzzle-count-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))!important}

.puzzle-count-choices button{min-width:0}
.figure-mini-shapes,.figure-live-controls .shape-choices.compact{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}
.figure-mini-shapes button,.figure-live-controls .shape-choices.compact button{display:flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;padding:7px;gap:0;border:1px solid #b8cdd9;border-radius:7px;background:white}
.figure-mini-shapes button>svg,.figure-live-controls .shape-choices.compact button>svg{display:block;width:28px;height:28px;pointer-events:none}
.figure-mini-shapes button[aria-pressed=true],.figure-live-controls .shape-choices.compact button[aria-pressed=true]{background:#e3edf3;border:2px solid #4c6f84;padding:6px}
.figure-live-controls .shape-choices.compact button>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.figure-set-section{margin-top:20px;border-top:1px solid #d5e4ec;padding-top:4px}.figure-set-count{margin:8px 0 12px}.figure-set-section .primary{min-height:44px}
.figure-focus-note{width:38px;height:38px}
.figure-style-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0 18px}
.figure-style-choices button{position:relative;display:block;width:100%;min-height:66px;padding:6px;border:1px solid #b8cdd9;background:white;overflow:hidden}
.figure-style-choices button[aria-pressed=true]{border:2px solid #4c6f84;padding:5px;background:#e3edf3}
.figure-style-choices button[aria-pressed=true]:after{content:'✓';position:absolute;right:7px;bottom:6px;width:20px;height:20px;border-radius:50%;background:#4c6f84;color:white;font-size:13px;line-height:20px;text-align:center}
.figure-style-header{display:block;width:100%;height:auto;max-height:114px;pointer-events:none}
.figure-live-controls{padding-right:4px}.figure-live-controls h3{font-size:13px;line-height:1.3;margin:10px 0 5px}.figure-live-controls .help{font-size:11px;line-height:1.35;margin:5px 0}.figure-live-controls .help:empty{display:none}
.figure-live-controls .visual-choices{display:grid;gap:5px;margin:6px 0}.figure-live-controls .visual-choices button{box-sizing:border-box;min-width:0;min-height:32px;padding:5px 6px;font-size:11px;border:2px solid #c5d6e1;line-height:1.2}
.figure-live-controls .visual-choices button[aria-pressed=true]{border-color:#4c6f84}.figure-live-controls .shape-check{font-size:12px;line-height:1.25;min-height:26px;margin:5px 0}
.figure-live-controls .shape-choices.compact{margin:7px 0;gap:5px}.figure-search-focus{display:flex;align-items:center;gap:9px;margin:8px 0;font-size:12px;min-height:30px}.figure-search-focus>svg{width:28px;height:28px;flex:none}
.figure-live-controls .arrangement-choices{grid-template-columns:1fr 1fr}.figure-live-controls .arrangement-choices svg{height:25px;width:65px}.figure-live-controls .scene-picture-choices{gap:6px;margin:7px 0}.figure-live-controls .scene-picture-choices button{box-sizing:border-box;min-height:74px;padding:5px 4px;font-size:11px;gap:4px;border:2px solid #c5d6e1}.figure-live-controls .scene-picture-choices button[aria-pressed=true]{border-color:#4c6f84}.figure-live-controls .scene-picture-choices svg{height:43px}
.figure-live-controls .scene-focus-summary{padding:6px 9px;margin:8px 0;font-size:12px;gap:8px}.figure-live-controls .scene-focus-summary svg{width:28px;height:28px}.figure-live-controls .scene-guide-choices svg{width:25px;height:25px}.figure-live-controls .scene-advanced{margin-top:10px;padding:8px 0}.figure-live-controls #figure-change-kind,.figure-live-controls #figure-new-arrangement,.figure-live-controls #figure-auto-missing{min-height:32px;padding:6px 10px;font-size:12px}
@media screen and (min-width:651px){.figure-live-layout{height:min(78vh,760px)}}
@media screen and (max-width:650px){.figure-live-controls .visual-choices button{min-height:40px}.figure-live-controls .shape-check{min-height:32px}}

@media screen and (max-width:500px){.figure-style-choices{grid-template-columns:1fr}.figure-style-header{max-height:80px}}
.figure-design-options{display:flex;gap:9px;align-items:center;margin:12px 0 22px}.figure-design-options button{position:relative;flex:0 0 62px;width:62px;height:62px;padding:7px;border:2px solid #c5d6e1;border-radius:5px;background:white}.figure-design-options button[aria-pressed=true]{border-color:#4c6f84;background:#e3edf3}.figure-design-options svg{display:block;width:100%;height:100%;pointer-events:none}.figure-design-options button[data-tip]:after{content:attr(data-tip);display:none;position:absolute;left:0;top:calc(100% + 5px);z-index:5;width:max-content;max-width:220px;padding:7px 9px;border-radius:5px;background:#3d5e73;color:white;font-size:12px;font-weight:400;text-align:left;line-height:1.35;box-shadow:0 2px 6px #0002}.figure-design-options button:hover:after,.figure-design-options button:focus:after{display:block}.figure-design-options button:last-child:after{left:auto;right:0}.figure-style-choices button{min-height:92px}.figure-style-header{height:76px;max-height:76px}.figure-style-choices button[aria-pressed=true]:after{right:auto;left:5px;bottom:5px}.figure-live-controls .figure-search-modes button{display:flex;align-items:center;justify-content:center;gap:6px;flex-direction:column;min-height:54px}.figure-search-modes svg{height:27px;width:75px}.figure-live-controls .figure-name-choices{grid-template-columns:1fr 1fr}.figure-name-choices button{display:flex;align-items:center;justify-content:center;gap:7px;flex-direction:column}.figure-name-choices svg{width:35px;height:35px}.figure-live-controls .scene-guide-choices{grid-template-columns:1fr 1fr}.figure-live-controls .shape-choices.compact button:disabled:not([aria-pressed=true]){opacity:.35;cursor:default}
@media screen and (max-width:500px){.figure-design-options{gap:7px}.figure-design-options button{flex:0 0 calc((100% - 28px)/5);width:calc((100% - 28px)/5);height:auto;aspect-ratio:1;min-width:44px;padding:5px}.figure-style-choices{grid-template-columns:repeat(3,minmax(0,1fr))}.figure-style-choices button{min-height:64px;padding:3px}.figure-style-header{height:52px;max-height:52px}.figure-design-options button:nth-child(n+3):after{left:auto;right:0}}
.figure-style-choices button{border:2px solid #b8cdd9;padding:4px}.figure-style-choices button[aria-pressed=true]{border-color:#4c6f84;padding:4px}
/* Unavailable choices remain reachable so a tap or keyboard press explains why. */
#figure-zone-controls button[aria-disabled="true"],#figure-create-set[aria-disabled="true"]{opacity:.58;cursor:help}
#figure-choice-explanation{position:fixed;inset:auto;margin:0;width:min(340px,calc(100vw - 24px));padding:16px 42px 16px 16px;border:1px solid #9cb9c9;border-radius:12px;background:#f5f9fb;color:#29495c;box-shadow:0 6px 26px #29495c33;font:14px/1.5 Arial,sans-serif}
#figure-choice-explanation p{margin:0}#figure-choice-explanation button{position:absolute;right:5px;top:5px;min-height:32px;width:32px;padding:0;font-size:22px;background:transparent;border:0}
.figure-result-summary{margin:12px 0;padding:10px 12px;background:#e3edf3;border-radius:8px;font-size:13px;line-height:1.45}
.figure-search-advanced{border-top:1px solid #d5e4ec;padding-top:10px}.figure-search-advanced>summary{cursor:pointer;font-weight:600;color:#3d5e73;padding:6px 0}
.figure-photo-crop{margin:14px auto;touch-action:none;cursor:grab;background:#e3edf3;border:1px solid #b4cbd8;overflow:hidden}.figure-photo-crop:active{cursor:grabbing}.figure-photo-crop>svg{width:100%;height:100%;display:block;pointer-events:none}
.figure-own-photo{display:flex;align-items:center;gap:8px;margin-top:10px}.figure-own-photo>button:first-child{width:108px;display:grid;gap:4px;padding:6px}.figure-own-photo img{width:100%;height:60px;object-fit:contain}.figure-own-photo span{font-size:11px}
.figure-photo-modes{margin:12px 0}
.figure-zone-picker button[aria-disabled=true]{opacity:.5;cursor:help}
.kind-choices button[aria-disabled=true]{opacity:.5;cursor:help}.figure-option-notice{padding:12px;background:#e3edf3;border:1px solid #b6cddb;border-radius:8px;color:#3d5e73;font-size:13px;line-height:1.5}

.shape-choices>[data-pick-shape="quad"]>svg{width:110px;max-width:100%;height:56px}
