.sketch-page{--ink:#234138;--muted:#4c665d;--line:#d4e2d9;--accent:#fff0a5;--board:#f2f6f2;display:grid;grid-template-columns:minmax(0,1fr);gap:12px;max-width:1600px;margin:0 auto 44px;padding:14px clamp(8px,2vw,24px);color:var(--ink)}
.sketch-heading{display:flex;justify-content:space-between;align-items:center;gap:14px}.sketch-heading h1{font-size:clamp(25px,3.4vw,42px);line-height:1.08;margin:0}.sketch-heading a{color:var(--muted);font-size:13px;white-space:nowrap}
.sketch-toolbar,.sketch-boardbar,.sketch-actions,.sketch-switch,.sketch-options-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.sketch-toolbar{padding:8px;border:1px solid var(--line);border-radius:14px;background:#f8faf6}
.sketch-actions{margin-left:auto}
.sketch-page button,.sketch-page input,.sketch-page select{min-height:42px;padding:7px 12px;border:1px solid #b8cbbd;border-radius:8px;background:white;color:var(--ink);font:650 13px/1.2 system-ui,sans-serif}
.sketch-page button{cursor:pointer}.sketch-page button:disabled{opacity:.48;cursor:default}
.sketch-page [aria-pressed=true]{background:#e1eae0;border-color:#8da99a}
.sketch-page button.sketch-accent{background:var(--accent);border-color:#d3b951}.sketch-page button.sketch-dark{background:#274a3d;border-color:#274a3d;color:#fff}
.sketch-page :is(input,button,select,summary,a,[tabindex]):focus-visible{outline:2px solid #9b7206;outline-offset:2px}
.sketch-page [hidden]{display:none!important}
.sketch-wish{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:650;white-space:nowrap}
.sketch-wish>span{display:flex;align-items:center;gap:4px}.sketch-wish input{width:86px;padding-inline:7px;font-weight:500}
.sketch-board{border:1px solid var(--line);border-radius:14px;background:#fff;overflow:hidden;min-width:0}
.sketch-boardbar{justify-content:space-between;padding:7px 10px;font-size:13px;font-weight:700;border-bottom:1px solid var(--line)}
.sketch-grid-label{color:var(--muted);font-size:12px;font-weight:500}.sketch-boardbar button{min-height:36px}
.sketch-visual{height:clamp(420px,65svh,740px);background:var(--board)}.sketch-visual svg{display:block;width:100%;height:100%;touch-action:pan-y}
.sketch-visual svg.drawing{cursor:crosshair;touch-action:none}.sketch-visual [data-room]{cursor:grab;touch-action:none}.sketch-visual [data-room] text,.sketch-visual svg>text,.sketch-visual svg>line,.sketch-visual svg>path{pointer-events:none}
.sketch-visual [data-room]:focus-visible polygon{stroke:#b7841a;stroke-width:3}
.sketch-message{padding:8px 12px;margin:0;background:#fff;min-height:35px;color:var(--muted);font-size:13px}
.sketch-options{padding:8px 12px;border:1px solid var(--line);border-radius:10px}.sketch-options summary{cursor:pointer;font-weight:650}
.sketch-options-row{padding-top:10px;align-items:end}.sketch-options-row label{display:grid;gap:4px;font-size:12px;font-weight:650}.sketch-options-row input{width:97px}
.sketch-note{margin:0;font-size:12px;color:var(--muted)}
.sketch-request{width:min(560px,calc(100vw - 24px));max-height:92dvh;padding:14px;border:1px solid #d4ded4;border-radius:16px;background:#fff;color:#24392f;overflow:auto}
.sketch-request::backdrop{background:#203b2a86}.sketch-request header{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:0 8px 8px;background:white;color:#24392f;position:static}
.sketch-request h2{font-size:22px;margin:0}.sketch-request header button,.sketch-request section button{min-height:44px;border-radius:8px;padding:8px 12px;border:1px solid #d1b45e;background:#fff4c2;font:700 14px system-ui;color:#332b13;cursor:pointer}
.sketch-request header button{min-width:44px;font-size:23px}.sketch-request iframe{width:100%;height:min(650px,76dvh);border:0;display:block}
@media(max-width:700px){
 .sketch-page{padding-inline:0;gap:9px}.sketch-heading a{font-size:12px}.sketch-toolbar{gap:6px;padding:6px}.sketch-actions{margin:0;width:100%}
 .sketch-page button{min-height:42px;padding-inline:8px}.sketch-actions [data-request]{margin-left:auto}
 .sketch-visual{height:clamp(330px,52svh,510px)}.sketch-boardbar{gap:5px;font-size:12px}.sketch-boardbar button{min-height:36px}.sketch-grid-label{display:none}
}
@media(max-width:400px){.sketch-wish{gap:4px}.sketch-wish input{width:66px}.sketch-toolbar .sketch-switch button{font-size:12px}}

.sketch-stair-type{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:650}
.sketch-stair-type select{max-width:180px}
.sketch-visual :is([data-window],[data-stair],[data-deck-opening]){cursor:grab;touch-action:none}.sketch-visual [data-window] line{pointer-events:stroke}

.sketch-guide{min-width:0;background:#fff;border:1px solid var(--line);border-radius:12px;padding:6px 8px}
.sketch-phases,.sketch-phase-controls,.sketch-phase-controls>[data-step-panel],.sketch-guide-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.sketch-phases button{min-height:34px;background:#f4f7f2;border-color:#d4e1d6;font-size:12px;padding:6px 9px}
.sketch-phases button[aria-current=step]{background:#ffefaa;border-color:#d5bd62;color:#433812}
.sketch-phases button span{margin-right:2px;font-weight:800}
.sketch-phase-controls{justify-content:space-between;margin-top:5px}
.sketch-phase-controls label{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:650}
.sketch-phase-controls select,.sketch-guide-actions button{min-height:34px;font-size:12px;padding:5px 8px}
.sketch-guide-actions{margin-left:auto;flex-wrap:nowrap}
@media(max-width:620px){
 .sketch-phases{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}
 .sketch-phases button{display:grid;grid-template-rows:auto 1fr;justify-content:center;align-items:center;gap:2px;min-width:0;height:48px;padding:3px 2px;font-size:11px;line-height:1.08;text-align:center;white-space:normal}
 .sketch-phases button span{margin:0}
 .sketch-phase-controls label{flex-wrap:wrap}
 .sketch-phase-controls select{max-width:205px}
 .sketch-message{min-height:47px}
}

.sketch-visual svg > [data-interior-wall]{pointer-events:stroke;touch-action:none;outline:none}
.sketch-visual [data-interior-wall][data-axis=x]{cursor:ew-resize}
.sketch-visual [data-interior-wall][data-axis=y]{cursor:ns-resize}
.sketch-visual [data-interior-wall]:focus-visible{stroke:#d2a837;stroke-opacity:.55}
@media(hover:hover){.sketch-visual [data-interior-wall]:hover{stroke:#d2a837;stroke-opacity:.45}}
