/* Desktop workspaces: keep the useful controls within one viewport. */
.app-header{height:60px;padding:0 20px}.brand strong{font-size:13px}.brand small{font-size:9px}.brand-mark{height:31px;font-size:23px}.project-bar{height:52px;padding:7px 18px}.project-actions button{padding:6px 10px}.project-bar #projectTitle{font-size:14px}main{height:calc(100dvh - 112px);min-height:0}.settings{width:258px;min-width:258px}.sidebar-top{padding:13px 15px 4px}.sidebar-top .eyebrow{display:none}.sidebar-top h1{font-size:21px;margin:3px 0}.stats{padding:8px 15px 11px;gap:8px}.stats strong{font-size:23px}.stats small{font-size:10px;margin-top:2px}.issues{margin:0 12px 8px;padding:6px 8px;font-size:10px}.issues button{margin-top:2px}.settings details{margin:0 14px;padding:9px 0}.settings summary{font-size:11px}.settings .fields{padding-top:8px;gap:7px}.settings label{font-size:10px;gap:3px}.settings input:not([type=checkbox]):not([type=radio]):not([type=color]),.settings select{padding:5px 6px;min-height:27px;font-size:11px}.settings .two,.settings .compact-two{display:grid;grid-template-columns:1fr 1fr;gap:7px}.settings .compact-two>label:last-child{grid-column:1/-1}.settings .category-colors{display:grid;grid-template-columns:1fr 1fr;gap:5px 7px}.settings .category-color{gap:5px;min-width:0;line-height:1.2;font-size:10px}.settings .category-color span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.settings .category-color input{width:19px;height:19px;flex-shrink:0}.settings .check{gap:6px;align-items:center}.settings .check input{margin:0}.settings #scaleSlider{margin:0;height:17px}.settings #fitPage{padding:5px 8px;min-height:27px}.sidebar-bottom{padding:6px 13px 10px;display:flex;flex-flow:row wrap;align-items:center;gap:5px 10px}.sidebar-bottom button{padding:5px 0;font-size:10px;text-align:left}.sidebar-bottom small{display:none}.sidebar-bottom img{width:108px;max-height:28px;margin:0;object-fit:contain}.selection-panel{width:278px;min-width:278px;padding:13px 13px 10px}.selection-panel>.eyebrow{font-size:9px;padding-right:35px;display:flex;align-items:center;justify-content:flex-start;gap:5px;min-height:18px}.selection-panel .close{top:13px;right:12px}.selection-panel h2{font-size:18px;line-height:1.15;margin:8px 20px 4px 0}.selection-panel>p{font-size:10px;line-height:1.35;margin:0 0 6px}.selection-area{font-size:24px;margin:7px 0 8px}.selection-panel label{font-size:10px;gap:3px;margin:0}.selection-panel input:not([type=checkbox]),.selection-panel select{font-size:11px;padding:5px 6px;min-height:27px}.selection-panel .scope-field{margin-bottom:8px}.dimension-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.dimension-fields:has(#heightField[hidden]){grid-template-columns:1fr 1fr}.selection-panel .check{display:flex;flex-direction:row;align-items:center;gap:6px;margin:8px 0}.selection-panel .check input{margin:0;accent-color:#355b49}.shape-actions{display:flex;gap:4px;flex-wrap:wrap;margin:3px 0 9px}.selection-panel .shape-actions button{width:auto;flex:1;padding:5px 5px;font-size:10px;margin:0;min-height:27px}.selection-panel #copyPuzzleShape{flex-basis:100%;background:#f2f6ef}.floor-move-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;align-items:end;border-top:1px solid var(--line);padding-top:9px;margin-top:4px}.selection-panel .floor-move-row button{width:auto;margin:0;min-height:27px;padding:5px 9px;font-size:11px}.rotation-fields{display:grid;grid-template-columns:1fr 1fr auto;gap:6px;align-items:end;margin-top:9px}.selection-panel .rotation-fields button{width:auto;margin:0;min-height:27px;padding:5px 9px;font-size:11px}.alignment-section{border-top:1px solid var(--line);padding-top:9px;margin-top:10px}.alignment-section h3,.puzzle-control-section h3{font-size:11px;margin:0 0 7px;font-weight:600}.selection-panel .alignment-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin:0}.selection-panel .alignment-tools button{min-height:25px;padding:4px 2px;margin:0;font-size:10px;width:auto}.selection-panel .alignment-tools button:nth-last-child(2),.selection-panel .alignment-tools button:last-child{grid-column:span 1}.selection-panel .delete-selection{padding:6px;margin:10px 0 0;font-size:11px;color:#874b43;background:#fcf7f5;border-color:#e2d0cb;min-height:28px}.puzzle-control-section{border-top:1px solid var(--line);padding:10px 0;margin:0 14px}.puzzle-control-section .grid-controls{display:grid;grid-template-columns:1fr auto;gap:9px;align-items:end;margin-bottom:8px}.grid-controls>.check{min-height:27px}.puzzle-control-section .reference-settings{display:flex;flex-direction:column;gap:8px}.reference-settings input[type=range]{padding:0;min-height:18px;accent-color:#355b49}.reference-settings .help{display:none}.puzzle-control-section .grid-info{font-size:10px;color:#728177;display:block;margin-top:5px}.puzzle-control-section .magnet-toggle{padding:0;margin:2px 0}#puzzleSettings>#resetPuzzle{font-size:10px;padding:5px 10px;margin:0 6px}.settings .magnet-toggle{font-size:11px}.puzzle-toolbar{padding:7px 14px;gap:8px;min-height:42px}.puzzle-toolbar .floor-picker select{min-width:150px;max-width:225px}.canvas-toolbar{gap:8px;padding:7px 12px;min-height:47px}.canvas-toolbar .segmented button{padding:6px 8px;font-size:11px}.canvas-toolbar .page-info{font-size:9px;min-width:0}.workspace-footer{min-height:25px;padding:5px 12px}.canvas.puzzle-mode{background-image:none;background-color:#f3f5f0}.work-grid{pointer-events:none}.work-grid line{vector-effect:non-scaling-stroke;stroke:#dce5dc;stroke-width:.65}.work-grid .major{stroke:#c3d1c3;stroke-width:.9}.work-grid .zero{stroke:#9aae9d;stroke-width:1}.magnet-corner{fill:#fff3e5;stroke:#c36d20;stroke-width:2;vector-effect:non-scaling-stroke;pointer-events:none}.area-variants{font-size:9px;color:#8a5e27;display:block;white-space:nowrap;padding:3px 6px}.settings details>summary .context-help-button{margin-left:auto}.selection-panel .context-help-button{width:19px!important;height:19px!important;min-height:19px!important;margin:0!important;padding:0!important;font-size:12px!important}.settings .context-help-button{width:18px;height:18px;margin:0;padding:0}.settings .sidebar-bottom{border-top:1px solid var(--line)}body[data-mode=puzzle] #pageInfo{display:none}
@media(min-width:900px){body{height:100dvh;overflow:hidden}.settings,.selection-panel{overflow-y:auto;scrollbar-width:thin}}
@media(min-width:900px) and (max-height:730px){.settings{width:246px;min-width:246px}.settings details{padding:7px 0}.settings .fields{gap:5px;padding-top:6px}.sidebar-top{padding-top:8px}.stats{padding-top:5px;padding-bottom:7px}.settings .category-color{font-size:9px}.sidebar-bottom img{width:88px;max-height:23px}.selection-panel{padding-top:10px}.selection-panel h2{font-size:17px;margin-top:5px}.selection-area{margin:5px 0 6px}.selection-panel .scope-field{margin-bottom:6px}.floor-move-row{margin-top:0;padding-top:7px}.rotation-fields{margin-top:7px}.alignment-section{margin-top:8px;padding-top:7px}}
@media(max-width:899px){body{height:auto;overflow:auto}main{height:auto;min-height:600px;flex-wrap:wrap}.settings{width:100%;min-width:100%;max-height:none;display:block}.workspace{height:640px;min-width:100%}.selection-panel{width:100%;min-width:100%;overflow:visible}.dimension-fields{grid-template-columns:repeat(3,1fr)}.project-bar{height:auto;flex-wrap:wrap}.header-actions{gap:6px}.brand small{display:none}}
.settings .sidebar-top{padding:8px 12px 0}.settings .sidebar-top h1{font-size:15px;line-height:18px;margin:0}.settings .stats{padding:5px 12px 8px}.settings .stats strong{font-size:21px}.settings .stats small{margin-top:1px}.settings details{padding:6px 0;margin:0 12px}.settings summary{min-height:18px;line-height:16px}.settings .fields{padding-top:4px;gap:5px}.settings label{line-height:1.25}.settings input:not([type=checkbox]):not([type=radio]):not([type=color]),.settings select{min-height:25px;padding:4px 5px}.settings .compact-two>label:last-child{grid-column:auto}.settings .compact-three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.settings .two,.settings .compact-two{gap:5px}.settings .category-colors{gap:3px 5px}.settings .category-color input{width:17px;height:17px}.settings .category-color{font-size:9px;line-height:17px}.settings .scale-controls{display:grid;grid-template-columns:80px minmax(0,1fr);gap:8px;align-items:end}.settings .scale-controls #scaleSlider{height:25px;min-height:25px;padding:0}.settings .fit-controls{display:flex;align-items:center;gap:6px;justify-content:space-between}.settings .fit-controls #fitPage{font-size:10px;min-height:25px;padding:4px 5px}.settings .fit-controls .check{font-size:9px;gap:4px;white-space:nowrap}.settings .sidebar-bottom{padding:5px 12px;gap:6px;flex-wrap:nowrap}.sidebar-bottom button{font-size:9px;white-space:nowrap}.settings .sidebar-bottom img{width:80px;max-height:23px}.project-bar .issues{margin:0;padding:0;border:0;background:none;flex-shrink:0}.project-bar .issues button{margin:0;padding:5px 7px;font-size:10px;color:#8a602c;border:1px solid #ead7b4;background:#fff6e7;border-radius:4px;text-decoration:none}.settings .context-help-button{min-height:18px;min-width:18px;font-size:12px}

@media(min-width:900px) and (max-height:730px){.settings .category-colors{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:900px){.canvas.puzzle-mode{overflow:hidden}.canvas.puzzle-mode .puzzle-canvas,.canvas.puzzle-mode .three-canvas{min-height:0}}

.presentation-ratio{margin:0 0 8px!important}.presentation-ratio input{max-width:100%}.presentation-marquee{position:fixed;z-index:1000;pointer-events:none;border:1px solid #355b4e;background:#537e6b22;box-sizing:border-box}#pages{touch-action:pan-y;user-select:none}#pages [data-room]{touch-action:none}.page [data-room].selected rect,.page [data-room].selected polygon{stroke:#c4782a!important;stroke-width:2!important;vector-effect:non-scaling-stroke}body[data-mode=presentation] .dimension-fields{grid-template-columns:1fr 1fr}body[data-mode=presentation] .settings .compact-two{grid-template-columns:1fr}
