:root{--green:#23443a;--gold:#b88b4c;--ink:#292e2b;--muted:#73776d;--line:#ddd7cb;--paper:#fbf9f4;--editor-height:700px;font-family:Arial,sans-serif;color:var(--ink);background:var(--paper)}*{box-sizing:border-box}body{margin:0;display:flow-root}button,input,select{font:inherit}button{cursor:pointer;position:relative;overflow:hidden;min-height:40px;padding:9px 13px;border:1px solid var(--line);border-radius:7px;background:#fffdf9;color:var(--green);transition:box-shadow .18s ease,transform .18s ease,border-color .18s ease}button:disabled{opacity:.45;cursor:default}button::after{content:"";pointer-events:none;position:absolute;inset:-25% -60%;background:linear-gradient(110deg,transparent 40%,#f5d39666 50%,transparent 60%);transform:translateX(-100%)}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--gold);outline-offset:3px}button:focus-visible::after{animation:km-home-hover-glint .78s ease-out}button:active:not(:disabled){transform:translateY(3px) scale(.985)}@media(hover:hover){button:hover:not(:disabled){border-color:var(--gold);box-shadow:0 0 15px #cda56d33}button:hover:not(:disabled)::after{animation:km-home-hover-glint .78s ease-out}}@keyframes km-home-hover-glint{to{transform:translateX(100%)}}[hidden]{display:none!important}button[aria-pressed=true],.primary{color:white;background:var(--green);border-color:var(--green)}#kitchen-app{max-width:1440px;margin:auto;padding:32px 0}.app-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:26px}.app-heading h1{font:400 clamp(30px,3vw,46px)/1.1 Georgia,serif;margin:8px 0}.eyebrow{position:relative;display:table;margin:0 0 10px;padding-bottom:8px;letter-spacing:.17em;color:#9b7947;font:700 10px/1.4 Arial,sans-serif}.eyebrow::after{content:"";position:absolute;bottom:0;left:0;width:100%;height:1px;background:var(--gold);transform:scaleX(0);transform-origin:left;transition:transform 1.45s cubic-bezier(.45,0,.2,1)}.eyebrow.in-view::after{transform:scaleX(1)}.save-state{color:var(--muted);font-size:12px}.editor{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(340px,1fr);gap:22px;align-items:start}.visual,.settings{border:1px solid var(--line);border-radius:16px;overflow:hidden;min-width:0}.visual{background:#e9e6df;display:flex;flex-direction:column;height:var(--editor-height);position:sticky;top:8px}.visual-bar{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;gap:10px}.view-tabs{display:flex;gap:4px;background:#dedbd3;padding:4px;border-radius:9px}.view-tabs button{background:none;border:0;min-height:34px;padding:7px 10px;color:var(--ink);font-size:12px}.view-tabs button[aria-pressed=true]{background:#fffdf9;box-shadow:0 1px 4px #0001}.icon-button{font-size:11px;background:transparent;padding:7px 9px}.stage{position:relative;min-height:260px;flex:1;overflow:hidden}#scene,#drawing{position:absolute;inset:0}#scene canvas{width:100%;height:100%;display:block;touch-action:none}#drawing{padding:8px;overflow:auto;display:flex;align-items:center;justify-content:center}#drawing svg{width:100%;max-height:100%;display:block}#drawing [data-module-id]{cursor:pointer;outline:none}#drawing [data-module-id]:focus-visible{stroke:#b88b4c;stroke-width:4}.scene-help{position:absolute;left:16px;bottom:12px;color:#5a665d;font-size:10px;line-height:1.5;pointer-events:none;display:flex;gap:12px;flex-wrap:wrap}.interior-toggle{position:absolute;right:16px;top:12px;background:#fffdf9df;padding:8px 10px;border:1px solid var(--line);border-radius:7px;font-size:11px;color:var(--green);display:flex;align-items:center;gap:6px}.visual-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-top:1px solid #d5d1c7;font-size:12px;line-height:1.4}.visual-meta strong{font-weight:500}.visual-meta span{font-size:11px;color:#617466}.run-strip{padding:0 16px 14px;display:flex;gap:5px;overflow-x:auto;min-height:49px}.run-strip button{min-width:54px;flex:1;min-height:36px;font-size:11px;padding:5px 7px;white-space:nowrap}.settings{background:white;display:flex;flex-direction:column;max-height:var(--editor-height)}.steps{display:flex;flex-shrink:0;border-bottom:1px solid var(--line);padding:0 12px}.steps button{flex:1;border:0;border-radius:0;background:none;color:var(--muted);font-size:12px;padding:17px 5px;border-bottom:2px solid transparent}.steps button[aria-pressed=true]{border-bottom-color:var(--green);color:var(--green);font-weight:bold}.controls{padding:20px 24px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;min-height:0}.controls h2{font:400 26px/1.15 Georgia,serif;margin:0 0 9px}.controls h3{font-size:13px;font-weight:600;margin:18px 0 10px}.muted,.field-help{color:var(--muted);font-size:11px;line-height:1.6;margin:8px 0 12px}.field{display:flex;flex-direction:column;gap:6px;font-size:12px;margin:12px 0}.field input,.field select{min-width:0;width:100%;border:1px solid var(--line);border-radius:6px;min-height:39px;padding:9px 10px;background:#fbfaf7;color:var(--ink);outline-offset:2px}.field input[type=number]{text-align:right}.field small{font-size:10px;color:var(--muted)}.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}.field-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.layout-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:18px 0}.layout-choice{padding:9px 3px;font-size:10px;display:flex;flex-direction:column;align-items:center;gap:8px}.layout-choice svg{width:34px;height:28px;stroke:currentColor;fill:none;stroke-width:5}.side-choices{display:flex;gap:6px;margin:12px 0;flex-wrap:wrap}.side-choices button{font-size:12px;min-height:35px;flex:1}.compact-detail{border:1px solid var(--line);border-radius:7px;margin:12px 0;padding:0 12px}.compact-detail summary{min-height:36px;padding:10px 0;cursor:pointer;color:var(--green);font-size:12px}.compact-detail[open]{padding-bottom:10px}.check{display:flex;gap:8px;align-items:center;font-size:12px;margin:14px 0}.check input{accent-color:var(--green)}.primary{font-weight:500}.wide{width:100%;margin-top:14px}.panel-status{font-size:11px;line-height:1.5;padding:10px 24px;background:#f6f7f2;border-top:1px solid var(--line);color:#53705f;flex-shrink:0}.panel-status.error{color:#a13c26;background:#fff4ed}.module-list{display:flex;flex-direction:column;gap:5px;margin:12px 0}.module-list button{display:flex;text-align:left;gap:10px;align-items:center;font-size:12px;padding:8px 10px}.module-list .number{font-size:11px;min-width:24px}.module-list .module-width{margin-left:auto;white-space:nowrap}.module-editor{border:1px solid #bfd0c2;background:#f4f8f3;border-radius:9px;padding:14px;margin:12px 0}.module-editor h3{margin:0 0 8px}.module-editor .field{margin:9px 0}.module-tools{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}.module-tools button{font-size:11px;min-height:34px;padding:7px 10px}.danger{color:#a1462d}.add-module{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end}.add-module .field{margin:6px 0}.add-module button{margin-bottom:6px}.measure-balance{height:4px;border-radius:3px;background:#e5e8df;overflow:hidden;margin:8px 0}.measure-balance span{display:block;height:100%;background:#729380}.swatches{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.swatch{display:flex;gap:7px;align-items:center;flex-direction:column;padding:9px 5px;font-size:10px;min-height:68px}.swatch i{width:32px;height:25px;border-radius:4px;border:1px solid #0002;display:block}.swatch[aria-pressed=true]{background:#edf3ed;color:var(--green);outline:1px solid var(--green);outline-offset:-1px}.project-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,.65fr);align-items:center;gap:35px;margin-top:24px;padding:24px;background:white;border:1px solid var(--line);border-radius:14px}.project-actions h2{font:400 27px/1.2 Georgia,serif;margin:0 0 10px}.project-actions p:not(.eyebrow){font-size:12px;line-height:1.7;color:var(--muted);max-width:600px;margin:0}.action-buttons{display:grid;grid-template-columns:1fr;gap:8px}.action-buttons>.primary{min-height:46px}.history{display:flex;gap:5px;flex-wrap:wrap}.history button{font-size:10px;min-height:30px;padding:5px 8px;flex:1;border:0;background:transparent}.project-note{font-size:10px;color:var(--muted);line-height:1.6;margin:14px 0}#toast{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);background:#23443af5;color:white;border-radius:9px;padding:12px 18px;font-size:12px;box-shadow:0 5px 24px #0003;z-index:50;max-width:90vw}.no-webgl{padding:30px;font-size:14px;text-align:center}body.embed{background:transparent}body.embed #kitchen-app{padding:0}body.embed .app-heading{display:none}body:not(.embed){padding-inline:max(64px,calc((100vw - 1440px)/2))}@media(max-width:1199px){body:not(.embed){padding-inline:32px}.editor{gap:16px;grid-template-columns:minmax(0,1.25fr) minmax(330px,1fr)}.controls{padding:18px 20px}.visual-bar{padding:10px;flex-wrap:wrap}.scene-help{max-width:60%;gap:0;flex-direction:column}}@media(max-width:999px){.editor{grid-template-columns:1fr}.visual{height:550px;position:relative;top:auto}.settings{max-height:none}.controls{max-height:600px}.project-actions{gap:20px}.visual-bar{flex-wrap:nowrap}.scene-help{max-width:none;flex-direction:row;gap:12px}.app-heading{align-items:flex-start;flex-direction:column}}@media(max-width:767px){body:not(.embed){padding-inline:20px}.visual{height:410px;border-radius:12px}.visual-bar{padding:9px;gap:5px}.view-tabs button{font-size:10px;padding:7px 8px}.icon-button{font-size:10px;padding:7px}.visual-meta{padding:9px 12px;align-items:flex-start;flex-direction:column;gap:3px}.run-strip{padding:0 12px 10px}.stage{min-height:200px}.scene-help{display:none}.interior-toggle{font-size:10px;right:10px;top:9px}.settings{border-radius:12px}.controls{padding:18px 16px;max-height:none;overflow:visible}.project-actions{grid-template-columns:1fr;padding:20px}.steps{position:sticky;top:0;background:white;z-index:1}.panel-status{padding:10px 16px}.project-actions h2{font-size:25px}.field-grid.three{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}.eyebrow::after{transform:scaleX(1)}button:active:not(:disabled){transform:none}}

/* Mouse guidance matching the wardrobe constructor. */
.scene-help{inset:0;max-width:none;display:block;pointer-events:none}.scene-help[hidden]{display:none!important}.kitchen-mouse-hint{position:absolute;top:50%;transform:translateY(-50%);width:134px;padding:10px 9px 14px;border:1px solid #d3cbbd;border-radius:10px;background:#fcfaf4ed;box-shadow:0 3px 12px #243f370a;color:#243f37;text-align:center;font-size:14px;line-height:1.4;pointer-events:none}.kitchen-mouse-left{left:16px}.kitchen-mouse-right{right:16px}.kitchen-mouse-hint svg{display:block;width:72px;height:94px;margin:0 auto 4px}.kitchen-mouse-hint span{display:block}.kitchen-mouse-hint strong{font-weight:700}@media(max-width:1199px){.kitchen-mouse-hint{width:108px;padding:8px;font-size:12px}.kitchen-mouse-hint svg{width:58px;height:76px}.kitchen-mouse-left{left:10px}.kitchen-mouse-right{right:10px}}@media(max-width:767px),(hover:none) and (pointer:coarse){.scene-help{display:none}}

/* Shared constructor toolbar and export layout. */
.project-toolbar{margin:0 0 14px;display:flex;align-items:center}.project-toolbar .history{display:flex;gap:8px;width:auto}.project-toolbar .history button{border:1px solid #ddd7ce;padding:8px 12px;border-radius:6px;background:#fcfaf4;font-size:12px}.visual-bar{display:flex;justify-content:space-between;gap:12px;padding:12px 20px}.visual-switches{display:flex;gap:8px;flex-wrap:wrap}.visual-bar #kitchen-title{font-size:14px;min-width:0}.selection-caption{padding:8px 20px;color:#243f37;font-size:12px;border-bottom:1px solid #ddd7ce}.drawing-tools{padding:8px 20px}.drawing-tools[hidden]{display:none}.reset-project{border:0;background:transparent;padding:0;font-size:11px;color:#77766d}.action-buttons{display:flex;flex-direction:column;align-items:stretch;gap:10px}.download-buttons{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}.download-buttons button{font-size:13px;padding:12px 18px}.export-help{font-size:12px;line-height:1.6;color:#77766d;margin:0}.action-buttons #export-status:empty{display:none}.action-buttons #export-status a{display:block}.project-actions{align-items:start}.view-tabs button{white-space:nowrap}@media(max-width:1199px){.visual-bar{flex-wrap:wrap}.visual-switches{margin-left:auto}}@media(max-width:767px){.visual-bar{padding:10px 12px;gap:8px}.visual-bar #kitchen-title{font-size:12px;width:100%}.visual-switches{margin-left:0;justify-content:space-between;width:100%}.selection-caption,.drawing-tools{padding:8px 12px}.download-buttons{justify-content:stretch}.download-buttons button{flex:1 1 150px}.project-toolbar{margin-bottom:10px}}

.project-toolbar .history button{white-space:nowrap;flex:none}

/* Half-size mouse hints in the upper corners. */
.kitchen-mouse-hint{top:12px;transform:scale(.5);transform-origin:top left}.kitchen-mouse-right{transform-origin:top right}
