:root{color-scheme:dark;--bg:#0d0b13;--side:#11101a;--panel:#181520;--panel2:#211b2d;--border:#342b42;--txt:#f6f1fb;--muted:#a69bb4;--purple:#b57bf4;--pink:#ed75c4;--gold:#e8c18c}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--txt);font:14px/1.5 Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--purple);outline-offset:2px}#app{display:flex;min-height:100vh}.sidebar{width:242px;flex-shrink:0;background:var(--side);border-right:1px solid var(--border);padding:27px 17px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:11px;padding:0 8px 35px}.brand img{width:43px;height:43px;object-fit:cover;border-radius:12px}.brand b{font-size:14px;letter-spacing:1.2px}.brand small,.sidebar-bottom small{display:block;color:var(--muted);font-size:10px;letter-spacing:1.1px}.workspace-label{font-size:10px;letter-spacing:1.4px;color:#94889f;padding:0 12px 14px}.demo{color:#e4c396;font-size:9px;margin-left:5px}nav{display:grid;gap:6px}nav button{border:0;background:transparent;color:#bcb0ca;text-align:left;padding:13px 15px;border-radius:10px;display:flex;gap:14px;font-size:14px}nav button.active,nav button:hover{background:#30233f;color:#fff}nav button.active{box-shadow:inset 3px 0 #b77bff}.sidebar-bottom{margin-top:auto;border-top:1px solid var(--border);padding:22px 7px 0;display:flex;align-items:center;gap:10px}.avatar{background:linear-gradient(130deg,#9e64e4,#e86db5);border-radius:50%;width:34px;height:34px;display:grid;place-items:center;font-weight:800}.sidebar-bottom strong{font-size:12px}main{min-width:0;flex:1;padding:34px clamp(18px,3.2vw,52px) 18px;max-width:1900px}header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:34px}.eyebrow{color:var(--purple);font-size:10px;letter-spacing:2px;font-weight:750}h1{font-size:25px;letter-spacing:-.8px;margin:5px 0 0}h2,h3,p{margin-top:0}h2{font-size:24px;letter-spacing:-.7px}h3{font-size:16px;margin-bottom:5px}.head-actions,.section-head,.panel-head,.stage-top,.stage-foot,.modal-head,.modal-actions{display:flex;justify-content:space-between;align-items:center;gap:12px}.head-actions{justify-content:flex-end}button.primary,button.ghost{border-radius:9px;padding:10px 15px;font-weight:700;border:1px solid var(--border)}button.primary{background:linear-gradient(110deg,#ae75f4,#dc6fb9);color:#160b20;border:0}button.ghost{background:#221b2d;color:#e7dbf1}button:hover{filter:brightness(1.13)}.page{display:none}.page.active{display:block}.hero{min-height:258px;background:radial-gradient(circle at 80% 60%,#4b205c 0,transparent 35%),linear-gradient(120deg,#281a38,#17111f);border:1px solid #4b315a;border-radius:17px;padding:32px 36px;display:flex;justify-content:space-between;overflow:hidden;margin-bottom:20px}.hero h2{font-size:clamp(31px,3.6vw,51px);line-height:1.06;letter-spacing:-1.8px;margin:15px 0}.hero em{color:var(--pink);font-style:normal}.hero p{color:#c6b5d3;max-width:430px}.hero-graphic{display:grid;place-items:center;min-width:190px}.rings{border:1px solid #bd7ee7;border-radius:50%;width:210px;height:210px;display:grid;place-items:center;font-size:80px;color:#e3a6e9;box-shadow:0 0 0 25px #a365e015,0 0 0 50px #a365e010,0 0 90px #a365e040}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:20px}.stat,.panel{background:var(--panel);border:1px solid var(--border);border-radius:14px}.stat{padding:21px}.stat b{display:block;font-size:28px;line-height:1.25}.stat span{color:var(--muted);font-size:12px}.panel{padding:22px}.panel-head{margin-bottom:16px}.panel p,.section-head p{color:var(--muted);font-size:12px;margin:0}.project-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 8px;border-top:1px solid var(--border)}.project-row strong{display:block}.project-row small{color:var(--muted)}.project-row .right{display:flex;align-items:center;gap:12px}.status{font-size:11px;border:1px solid #66506c;border-radius:99px;padding:4px 10px;color:#dfb7ee;white-space:nowrap}.status.confirmed{color:#a9e5cb;border-color:#3a745b}.status.offer{color:#efcf9b;border-color:#746046}.section-head{margin-bottom:20px}.section-head h2{margin:0 0 3px}.notice{border:1px solid #635039;background:#292117;color:#eed6b3;border-radius:10px;padding:12px 16px;margin-bottom:16px;font-size:12px}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;text-align:left}th{color:var(--muted);font-size:10px;letter-spacing:1px;text-transform:uppercase;font-weight:700}td,th{padding:15px 10px;border-bottom:1px solid var(--border)}td b{font-weight:700}.small-btn{background:#30263b;border:1px solid #554166;border-radius:7px;color:#eadcf4;padding:6px 10px;margin-right:5px}.small-btn.danger,.danger{color:#f2a4b0!important}.designer-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:16px}.tools{padding:18px;align-self:start}.tools>p{color:var(--muted);font-size:12px}.palette-item{display:flex;align-items:center;gap:10px;background:#221b2d;border:1px solid #3b2e49;border-radius:9px;padding:10px;width:100%;color:#f1e7f6;text-align:left;margin-bottom:7px}.swatch{width:30px;height:30px;border-radius:7px;flex-shrink:0}.palette-item span:nth-child(2){flex:1}.palette-item small{display:block;color:var(--muted);font-size:10px}.palette-item .plus{font-size:22px;color:var(--pink)}.divider{border-top:1px solid var(--border);margin:20px 0}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:12px 0}.two-fields label,.field{font-size:11px;color:var(--muted)}input,select,textarea{background:#100e17;border:1px solid #4b3c5b;color:#f4ebfa;border-radius:8px;padding:10px;width:100%;min-width:0}input[type=color]{height:42px;padding:4px}textarea{min-height:85px;resize:vertical}.full{width:100%;margin-top:8px}.muted{color:var(--muted);font-size:12px}.stage{padding:0;overflow:hidden}.stage-top{padding:15px 18px;border-bottom:1px solid var(--border)}.stage-top>span{color:var(--muted);font-size:11px;letter-spacing:1px}.segmented{display:flex;background:#0f0c17;padding:4px;border-radius:9px}.segmented button{border:0;background:transparent;color:var(--muted);padding:8px 14px;border-radius:7px}.segmented button.selected{background:#463052;color:#fff}.canvas-wrap{background:#121019;position:relative;padding:10px;min-height:380px}canvas{display:block;width:100%;height:auto;max-height:70vh;touch-action:none;cursor:grab}canvas:active{cursor:grabbing}#canvasHint{position:absolute;left:22px;bottom:18px;background:#0b0914cf;padding:7px 11px;border-radius:6px;font-size:10px;color:#bdb0ca;pointer-events:none}.stage-foot{padding:13px 18px;border-top:1px solid var(--border);color:var(--muted);font-size:11px}.designer-project{display:flex;align-items:center;gap:9px}.designer-project label{color:var(--muted);font-size:10px}.designer-project select{min-width:185px}.section-head.designer-title{flex-wrap:wrap}footer{display:flex;justify-content:space-between;gap:15px;margin-top:35px;padding:18px 0;border-top:1px solid var(--border);font-size:10px;letter-spacing:1px;color:#7c7087}footer span{letter-spacing:0}dialog{border:1px solid #644979;background:#1a1424;color:#f8efff;border-radius:15px;width:min(500px,calc(100vw - 24px));padding:23px;box-shadow:0 30px 100px #0009}dialog::backdrop{background:#08050ccf}.modal-head{margin-bottom:15px}.modal-head h2{margin:0}.close{background:none;color:#fff;border:0;font-size:27px}.modal-fields{display:grid;gap:12px}.field{display:block}.field input,.field select,.field textarea{margin-top:5px}.modal-actions{justify-content:flex-end;margin-top:20px}@media(max-width:1000px){.sidebar{width:78px;padding:20px 10px}.brand{padding:0 7px 26px}.brand>div,.workspace-label,.sidebar-bottom>div:not(.avatar),nav button span{display:none}.sidebar-bottom{justify-content:center}nav button{justify-content:center;font-size:20px}.designer-layout{grid-template-columns:220px minmax(0,1fr)}}@media(max-width:720px){#app{display:block}.sidebar{position:static;width:100%;height:auto;padding:8px 12px;flex-direction:row;align-items:center;justify-content:space-between}.brand{padding:0}.brand img{width:36px;height:36px}.sidebar nav{display:flex;gap:3px}.sidebar nav button{padding:7px 10px}.sidebar-bottom{display:none}main{padding:19px 12px}header{align-items:flex-start;margin-bottom:20px}h1{font-size:20px}.head-actions{flex-wrap:wrap}.head-actions button{font-size:11px;padding:8px}.hero{padding:22px}.hero-graphic{display:none}.stats{grid-template-columns:repeat(2,1fr)}.designer-layout{grid-template-columns:1fr}.tools{order:2}.stage{order:1}.project-row{flex-wrap:wrap}.stage-top{flex-wrap:wrap}footer{flex-direction:column}}

.designer-tabs{margin-bottom:18px}.designer-tabs button{flex:1;padding:10px 7px}.tools .primary.full{margin-top:8px}.palette-item:disabled{opacity:.45;cursor:not-allowed}.palette-item b{font-size:12px}.palette-item small{line-height:1.4}.stage-top{flex-wrap:wrap}#configStatus{margin-top:12px;line-height:1.5}.notice-inline{padding:10px;border:1px solid #775d34;background:#302517;border-radius:9px;color:#f0d9b0;margin-bottom:12px;font-size:12px}
/* V3: per-structure inventory controls */
.palette-entry{margin-bottom:9px}.palette-entry .palette-item{margin-bottom:4px}.structure-remove,.structure-delete{border:1px solid #5b3e64;border-radius:7px;background:#271c30;color:#efc0dc;font-size:11px;padding:5px 9px;margin-right:5px}.structure-remove:disabled{opacity:.38;cursor:not-allowed}.structure-delete{color:#e9a4ad;border-color:#5c3546}.structure-remove:not(:disabled):hover,.structure-delete:hover{background:#3c2949}

.zoom-controls{position:absolute;right:22px;top:20px;z-index:5;display:flex;flex-direction:column;gap:5px}.zoom-controls button{width:38px;height:38px;border:1px solid #72538a;background:#21172fe8;color:#f6e7ff;border-radius:9px;font-size:22px;font-weight:700;box-shadow:0 3px 12px #0007}.zoom-controls button:last-child{font-size:12px}.zoom-controls button:hover{background:#49305c}

/* V3.1: compact remove control (roughly half the original footprint) */
.structure-remove{font-size:9px;padding:2px 5px;line-height:1.1;border-radius:5px;min-height:0;min-width:0}

/* V4: click swatches to customize outdoor and indoor object colors */
.palette-entry .palette-item{display:flex;align-items:center;gap:8px;padding:8px 9px}.palette-color{position:relative;width:30px;height:30px;flex:0 0 30px;cursor:pointer;border-radius:7px;overflow:hidden;border:1px solid #ffffff30}.palette-color input[type=color]{display:block;width:44px;height:44px;position:absolute;left:-7px;top:-7px;padding:0;border:0;border-radius:0;cursor:pointer;background:transparent}.palette-color-hint{position:absolute;bottom:0;right:1px;color:white;font-size:10px;text-shadow:0 1px 3px #000;pointer-events:none}.palette-add{display:flex;align-items:center;gap:6px;flex:1;min-width:0;background:transparent;border:0;color:inherit;text-align:left;padding:0;cursor:pointer}.palette-add:disabled{opacity:.45;cursor:not-allowed}.palette-label{flex:1;min-width:0}.palette-label b{display:block;font-size:12px}.palette-label small{display:block;color:var(--muted);font-size:10px}.palette-add .plus{font-size:22px;color:var(--pink)}

/* V5: project notification composer */
.notify-dialog{width:min(900px,calc(100vw - 28px));max-height:92vh;overflow:auto}.notify-dialog .field{margin:15px 0}.notify-summary{background:#211a2b;border:1px solid #493654;border-radius:12px;padding:14px 18px;margin:14px 0}.notify-summary h3{margin:0 0 8px}.notify-summary ul{margin:5px 0 12px;padding-left:19px}.notify-preview-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.notify-preview-grid>div{border:1px solid #483552;border-radius:12px;padding:10px;background:#120e19}.notify-preview-grid strong{font-size:12px}.notify-preview-grid img{display:block;width:100%;margin-top:8px;border-radius:7px}.notify-dialog .modal-actions{flex-wrap:wrap}@media(max-width:640px){.notify-preview-grid{grid-template-columns:1fr}}

/* V6: inventory cards stay wide, with stable swatch/add layout and compact remove */
.palette-entry{min-width:0;width:100%}.palette-entry .palette-item{width:100%;display:grid;grid-template-columns:30px minmax(0,1fr);align-items:center;gap:10px;padding:10px;margin-bottom:5px}.palette-entry .palette-color{width:30px;height:30px;min-width:30px}.palette-entry .palette-add{display:grid;grid-template-columns:minmax(0,1fr) 18px;align-items:center;gap:5px;width:100%;min-width:0;min-height:36px;padding:0;margin:0}.palette-entry .palette-label{min-width:0;overflow:hidden}.palette-entry .palette-label b{font-size:12px;line-height:1.35;overflow-wrap:break-word}.palette-entry .palette-label small{font-size:10px;line-height:1.35;overflow-wrap:break-word}.palette-entry .palette-add .plus{font-size:20px;line-height:1;justify-self:end}.structure-remove{font-size:9px!important;line-height:1.2!important;padding:3px 6px!important;width:auto!important;min-width:0!important}.notify-dialog #reportEmailArea[hidden]{display:none}.notify-dialog #reportEmailArea{padding:12px 14px;background:#251a31;border:1px solid #5a3e70;border-radius:10px;margin-top:15px}.notify-dialog #reportEmailArea .field{margin:0}.notify-dialog #notifyStatus{min-height:20px}
