/* PH Studio — screen-only visual layer. The planner and print report keep their own behavior. */
@media screen {
  :root{--ink:#252820;--muted:#73756b;--line:#e2e3d9;--paper:#fffefa;--surface:#efeee7;--soft-blue:#fff3c8;--accent:#ffc21a;--teal:#3d7056}
  body{background:#efeee7}
  button{border-radius:8px;transition:background .16s,border-color .16s,box-shadow .16s}
  button:hover{background:#fff6da;border-color:#c8b264}
  button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,a:focus-visible{outline:3px solid #b47c00;outline-offset:3px}
  input,select{background:#fff;border-color:#dcdfd3;border-radius:8px;box-shadow:0 1px 2px #25282004}
  input:hover,select:hover{border-color:#b8bdae}
  input:focus,select:focus{border-color:#b9963b}
  button.primary{background:#ffc21a;border-color:#e8ad07;color:#252820;font-weight:700;box-shadow:0 2px 4px #00000010}
  button.primary:hover{background:#ffd252;border-color:#e8ad07;box-shadow:0 3px 10px #ffc21a24}
  .app-header{height:auto;min-height:104px;padding:10px 22px;gap:22px;background:#1c211c;border-bottom:1px solid #3b4235;box-shadow:0 3px 16px #25302014}
  .app-header::after{bottom:0;right:22px;height:3px;width:88px;border-radius:3px 3px 0 0;background:#ffc21a}
  .app-header .brand{gap:18px;min-width:0;max-width:none}
  .app-header .brand-logo{width:185px}
  .brand-name-row{gap:8px}
  .app-header .brand strong{font-size:1.25rem;line-height:1.15;letter-spacing:.015em;white-space:nowrap}
  .gallery-toggle{font-size:11px;padding:5px 8px;border-radius:6px;color:#f0d98a;border-color:#545b43;background:#ffffff04;line-height:1.25}
  .gallery-toggle:hover{background:#333c2b;border-color:#a48d46}
  .project-name{margin:0 auto;min-width:210px;max-width:250px;flex:1;text-align:left}
  .project-name input{text-align:left;padding:7px 10px;border:1px solid #535b4d;background:#272e26;border-radius:7px;font-weight:700;font-size:14px;color:#fffef3}
  .project-name input:hover,.project-name input:focus{background:#30392c;border-color:#b5a259}
  #savedProjects{padding:5px 9px;margin-top:5px;font-size:12px;background:#1c211c;border-color:#434c3b;color:#e2e7d8;border-radius:6px}
  #saveStatus{display:block;margin:5px 0 0;font-size:11px;line-height:1.35;color:#c3c9b9;white-space:normal}
  #saveStatus[data-save-state=saved]{color:#bfdf9d}
  #saveStatus[data-save-state=saved]::before{content:'';display:inline-block;width:6px;height:6px;margin-right:6px;margin-bottom:1px;border-radius:50%;background:#b5d88d}
  #saveStatus[data-save-state=warning]{color:#ffd16a}
  .header-actions{gap:6px;max-width:390px;align-items:center}
  .header-actions button{padding:9px 11px;min-height:37px;font-size:12px;line-height:1.25;border-radius:7px}
  .header-actions button.quiet{background:#ffffff04;border-color:#505a45;color:#f0f2e8}
  .header-actions button.quiet:hover{background:#333c2b;border-color:#9aab7b}
  .left-panel,.right-panel{background:#fffefa;border:1px solid #dedfd4;scrollbar-width:thin;scrollbar-color:#bec3b3 transparent}
  .panel-section{padding:19px 17px;border-color:#e8e8df}
  .section-label{gap:9px;margin-bottom:15px}
  .section-label h2{font-size:19px;line-height:1.35;letter-spacing:.01em}
  .section-number{width:26px;height:26px;border:1px solid #edcb6d;background:#fff1bb;border-radius:7px;font:700 11px Arial,sans-serif;color:#766022}
  label{font-size:13px;color:#454b3e}
  label input,label select,.room-settings select{font-size:14px}
  .field-pair{gap:9px;margin-top:13px}
  .room-settings input{font-variant-numeric:tabular-nums;font-weight:600}
  .room-tabs{background:#f1f2e9;padding:3px;border:1px solid #e2e4d8;border-radius:9px;gap:3px}
  .room-tabs button{border:1px solid transparent;font-size:12px;min-height:32px;background:transparent;color:#5e6556}
  .room-tabs button.active{background:#fff;border-color:#e0dfcd;color:#292e23;box-shadow:0 1px 4px #3038220b}
  .area-display{color:#686f5d;font-size:12px}
  .micro{font-size:11px;line-height:1.55;color:#7a806f}
  .details-toggle{font-size:21px;color:#837637}
  .category-tabs{background:#f1f2e9;border:1px solid #e2e4d8;border-radius:8px;padding:3px;gap:4px;margin-bottom:16px}
  .category-tabs button{flex:1;padding:7px 4px;font-size:12px;border-radius:6px;box-shadow:none}
  .category-tabs button.active{background:#fff;color:#333b29;box-shadow:0 1px 4px #3038220b}
  .catalog-heading{font-size:10px;font-weight:800;color:#818772;letter-spacing:.1em;margin:5px 0 10px}
  .shower-group{padding:12px 10px;background:#fff;border:1px solid #e2e5d9;border-radius:10px;box-shadow:0 2px 5px #30382204;margin-bottom:8px}
  .shower-group-title strong{font-size:13px;line-height:1.4}
  .shower-group-title .catalog-icon{background:#f4f5ed;border-radius:6px;width:29px;height:29px;padding:3px}
  .shower-group p{font-size:11px;color:#7a806f}
  .preset-sizes button{border-color:#e1ddcc;background:#fffbef;border-radius:6px;font-size:12px;min-height:33px;font-weight:600;color:#6a5b32}
  .preset-sizes button:hover{background:#ffecab;border-color:#d7b653;box-shadow:none}
  .catalog-item{padding:10px 7px;border:1px solid transparent;gap:9px;border-radius:9px}
  .catalog-item:hover{background:#fff7dd;border-color:#eadba8}
  .catalog-item .catalog-icon{border:1px solid #e5e7dc;border-radius:8px;background:#f7f8f1;width:35px;height:35px;padding:4px;color:#59674c}
  .catalog-copy strong{font-size:13px;font-weight:650}
  .catalog-copy small{font-size:11px;color:#7b8270}
  .catalog-add{display:grid;place-items:center;width:23px;height:23px;flex:none;background:#fff3c7;border-radius:50%;color:#92711f;font-size:18px}
  .shortcuts{background:#f6f7f0}
  kbd{background:#fff;border-color:#e0e3d6;border-radius:4px;color:#686f5d}
  .workspace{background:#f7f6ef;border:1px solid #dedfd4;overflow:hidden}
  .canvas-toolbar{padding:11px 14px;gap:9px;background:#fffefa;border-color:#e7e8df;box-shadow:none}
  .view-tabs{padding:4px;background:#f0f1e9;border:1px solid #e0e3d7;border-radius:10px;gap:3px}
  .view-tabs button{padding:8px 11px;min-height:35px;font-size:12px;border-radius:7px;color:#737b67}
  .view-tabs button.active{background:#2e3728;color:#ffdd76;box-shadow:0 2px 5px #25302012;font-weight:700}
  .wall-visibility{gap:7px;padding-left:10px}
  .wall-visibility>span,.wall-visibility .check-label{font-size:11px}
  .space-mouse-tools{background:#f2f3eb;border-color:#e1e4d8;border-radius:8px;padding:3px}
  .space-mouse-tools>span{font-size:11px}
  .space-mouse-tools button{font-size:12px;border-radius:6px;padding:5px 8px;min-height:30px}
  .space-mouse-tools button[aria-pressed=true]{background:#fff;border-color:#d4dac8;color:#445039;box-shadow:0 1px 3px #30382208}
  .tool-group{gap:3px}
  .icon-button{border-radius:7px;background:#fff;border-color:#e0e4d8;color:#68745b;width:31px;height:32px}
  .small-button{padding:7px 8px;font-size:11px;color:#656e59;border-radius:6px}
  #printPlan{border-color:#dedfcf;background:#f6f7ed;font-weight:600}
  .studio-first-help{margin:10px 12px 0;padding:9px 11px;border:1px solid #ece0b7;border-radius:9px;background:#fff8e1;color:#7e713b;gap:10px;font-size:11px;line-height:1.5}
  .studio-first-help strong{color:#665523;font-weight:700}
  .studio-first-help button{padding:6px 8px;background:#fffdf6;border:1px solid #e5d496;border-radius:6px;flex-shrink:0;font-size:10px;color:#77612c}
  .canvas-caption{padding:14px 18px 2px;gap:6px;font-size:13px}
  .canvas-caption strong{font-size:17px;color:#454d3b}
  .canvas-caption>div{gap:7px}
  .live-dot{background:#b9c49f;width:5px;height:16px;border-radius:3px}
  #planMeta,#selectionHint{font-size:10px;color:#747d66}
  .drawing-surface{background-color:#f7f6ef;background-image:radial-gradient(#a5b39432 .8px,transparent .8px);background-size:20px 20px}
  .zoom-controls,.space-controls{background:#fffffff0;border:1px solid #e0e3d6;border-radius:10px;box-shadow:0 4px 16px #34452a0a;color:#6d775e;font-size:11px;bottom:14px}
  .zoom-controls{right:16px;gap:5px}
  .space-controls{left:16px;max-width:calc(100% - 150px);gap:6px}
  .space-controls span{font-size:10px}
  .zoom-controls button,.space-controls button{border-radius:6px;color:#667459}
  .canvas-footer{background:#fffefa;border-color:#e5e7dc;padding:11px 14px;gap:12px}
  .check-label{font-size:11px;color:#747c66}
  .check-label select{font-size:11px;background:#f1f3e8;color:#566447;border-radius:5px}
  .check-label:has(#showZones){font-size:11px;padding:4px 6px;border-radius:6px;background:#fff8f2;border-color:#e5d2c5;color:#996b50}
  .collision-summary{font-size:10px;color:#698254}
  .collision-summary.bad{color:#b54d3e}
  .studio-side-tabs{padding:9px;gap:4px;background:#f3f4eb;border-bottom-color:#e4e6d9}
  .studio-side-tabs button{padding:9px 5px;border:1px solid transparent;border-radius:7px;background:transparent;color:#7a826d;font-size:11px;line-height:1.35;min-height:37px}
  .studio-side-tabs button[aria-selected=true]{background:#fff;border-color:#dbdfd0;color:#424e34;box-shadow:0 1px 4px #2530200b;font-weight:700}
  .studio-guide{padding:21px 19px;line-height:1.65}
  .guide-eyebrow{font-size:9px;letter-spacing:.1em;line-height:1.6;font-weight:800;color:#72795c}
  .studio-guide h2{font-size:28px;line-height:1.16;color:#343d29;margin:8px 0 13px;letter-spacing:0}
  .studio-guide p{font-size:14px;line-height:1.65;color:#737b67}
  .guide-steps{margin:24px 0 9px}
  .guide-steps li{padding:0 0 21px 35px}
  .guide-steps li:before{width:25px;height:25px;top:1px;border:1px solid #e5cb7e;border-radius:8px;background:#fff0b9;color:#85702d;font-size:12px;box-shadow:0 1px 3px #6f5d2206}
  .guide-steps strong{font-size:14px;font-weight:750;margin-bottom:5px;color:#4a543c}
  .guide-steps span{font-size:13px;line-height:1.6;color:#747d67}
  .studio-guide [data-guide-action]{font-size:12px;margin-top:10px;padding:7px 9px;border-color:#e5d9b4;border-radius:6px;background:#fffae9;color:#8a7334}
  .studio-guide details{border-top-color:#e8eadf;padding:14px 0}
  .studio-guide summary{font-size:13px;line-height:1.6;color:#626e51}
  .studio-guide details>div{padding-top:13px}
  .studio-guide details p{font-size:13px}
  .studio-guide h3{font-family:'PH Poster',Impact,sans-serif;font-size:23px;color:#48563a}
  .guide-visit{padding:16px;border:1px solid #eadba8;border-left:3px solid #dfb43d;border-radius:9px;background:#fff8df;margin-top:16px}
  .guide-visit strong{font-size:14px;line-height:1.5;color:#77602c}
  .guide-visit p{font-size:12px;color:#89784b}
  .guide-visit a{font-size:12px;color:#806128}
  .object-heading .catalog-icon{background:#f3f5e9;border:1px solid #e0e6d1;border-radius:9px}
  .inspector-grid{gap:12px 9px}
  .inspector-grid label{font-size:12px}
  .inspector-grid input,.inspector-grid select{font-size:14px}
  .inspector-actions button,.rotation-buttons button{font-size:12px;border-radius:7px}
  .clear-state{font-size:12px;color:#748561}
  .object-row{font-size:12px;padding:10px 7px;border-radius:7px}
  .object-row small{font-size:10px}
  .object-row.active{background:#fff3cb;color:#76602b}
  .fixture-toggle,.fixture-options{border-radius:10px;border-color:#d5dac9;box-shadow:0 5px 18px #25302018;background:#fffefa}
  .fixture-choice,.furniture-swatch{border-radius:7px}
  .material-swatch{border-radius:8px;border-color:#d9ddcf}
  .material-upload,.material-preview-button,.stack-action{border-radius:7px}
  .customer-gallery,.publish-dialog{border-radius:14px;border-color:#e2d3a8;box-shadow:0 20px 90px #1f281f33}
  .gallery-card{border-radius:10px;border-color:#e0e4d7;box-shadow:0 3px 14px #25302007}
  .app-footer{background:#efeee7;border:0;font-size:10px;color:#747d66;min-height:27px}
  .app-footer a{color:#7c8869}
  .toast{border-radius:10px;background:#2c3626;border-left-color:#ffc21a;box-shadow:0 6px 26px #25302024}
}
@media screen and (min-width:721px) {
  body:not(.shared-preview){display:flex;flex-direction:column;height:100svh;overflow:hidden}
  body:not(.shared-preview) .app-header,body:not(.shared-preview) .app-footer{flex-shrink:0}
  body:not(.shared-preview) .app-shell{flex:1;min-height:0;height:auto;padding:12px 12px 0;gap:12px;grid-template-columns:218px minmax(0,1fr) 282px}
  body:not(.shared-preview) .left-panel,body:not(.shared-preview) .right-panel,body:not(.shared-preview) .workspace{border-radius:13px;box-shadow:0 3px 12px #35432905}
  .shared-preview .app-header{min-height:104px}
  .shared-preview .app-header .brand-logo{width:185px}
}
@media screen and (min-width:1181px){body:not(.shared-preview) .app-shell{grid-template-columns:232px minmax(0,1fr) 300px}}
@media screen and (min-width:1600px){body:not(.shared-preview) .app-shell{grid-template-columns:264px minmax(0,1fr) 324px;padding:16px 16px 0;gap:16px}.panel-section{padding-left:21px;padding-right:21px}.studio-guide{padding:24px}.app-header{padding-inline:28px}.app-header .brand-logo{width:220px}.app-header .brand strong{font-size:1.4rem}.project-name{max-width:300px}}
@media screen and (min-width:721px) and (max-width:1180px){
  .app-header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 18px;padding:13px 17px}
  .app-header .brand{gap:13px}.app-header .brand-logo{width:160px}.app-header .brand strong{font-size:19px}
  .project-name{grid-row:2;grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:4px 9px;max-width:none;width:100%;margin:0;min-width:0}
  .project-name input,#savedProjects{margin:0;padding:6px 9px;font-size:12px}
  #saveStatus{grid-column:1/-1;margin:0;font-size:10px}
  .header-actions{max-width:355px;gap:4px}.header-actions button{font-size:11px;padding:8px}
  .canvas-toolbar{padding:10px;gap:7px}.view-tabs button{padding:7px 9px}.panel-section{padding:17px 13px}.section-label h2{font-size:18px}
}
@media screen and (min-width:721px) and (max-width:950px){
  body:not(.shared-preview) .app-shell{grid-template-columns:186px minmax(0,1fr) 230px;padding:8px 8px 0;gap:8px}
  .app-header .brand-logo{width:120px}.app-header .brand{gap:10px}.app-header .brand strong{font-size:16px}.gallery-toggle{font-size:10px}
  .header-actions{max-width:285px}.header-actions button{font-size:10px;padding:7px}
  .studio-side-tabs button{font-size:10px;padding-inline:3px}.studio-guide{padding:17px 14px}.studio-guide h2{font-size:25px}
  .studio-first-help{flex-wrap:wrap;margin:8px 9px 0;padding:8px;font-size:10px}.studio-first-help button{margin-left:auto}
  .catalog-copy strong,.shower-group-title strong{font-size:12px}.catalog-item .catalog-icon{width:29px;height:29px}.panel-section{padding:16px 11px}
}
@media screen and (max-width:720px){
  .app-header{min-height:0;padding:17px 14px;gap:14px}
  .app-header .brand{flex-basis:100%;gap:15px;justify-content:center}.app-header .brand-logo{width:170px}.app-header .brand strong{font-size:18px}.gallery-toggle{font-size:10px}
  .project-name{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:5px 8px;width:100%;max-width:none;min-width:0;flex-basis:100%;margin:0}
  .project-name input,#savedProjects{margin:0;padding:8px;font-size:13px}
  #saveStatus{grid-column:1/-1;text-align:center;margin:1px 0 0;font-size:10px}
  .header-actions{max-width:none;justify-content:center;padding-top:12px;gap:6px;border-top:1px solid #414b37}.header-actions button{min-height:38px;font-size:11px;padding:9px}
  .app-shell{gap:12px;padding:12px 10px;height:auto}
  .workspace,.left-panel,.right-panel{border-radius:12px}
  .workspace{height:610px;min-height:610px}.left-panel{border:1px solid #dedfd4}.right-panel{border:1px solid #dedfd4}
  .canvas-toolbar{padding:9px;gap:7px}.view-tabs button{min-height:34px;font-size:12px}.small-button{padding:6px;font-size:10px}
  .studio-first-help{flex-wrap:wrap;margin:9px 9px 0;font-size:10px;padding:8px 10px}.studio-first-help button{margin-left:auto;min-height:30px}
  .canvas-caption{padding:11px 13px 2px}.canvas-caption strong{font-size:17px}.canvas-footer{padding:10px;gap:9px}.collision-summary{font-size:10px}
  .canvas-footer .check-label{font-size:11px}.wall-visibility .check-label{font-size:11px}.zoom-controls{right:10px;bottom:12px}.space-controls{left:10px;bottom:12px}
  .room-settings input,.room-settings select,.inspector-grid input,.inspector-grid select,.material-card input{font-size:16px}
  .panel-section{padding:20px 16px}.studio-side-tabs{padding:9px}.studio-side-tabs button{font-size:12px}.studio-guide{padding:24px 20px}.studio-guide h2{font-size:30px}
  .guide-eyebrow{font-size:10px}.studio-guide p{font-size:14px}.guide-steps strong{font-size:14px}.guide-steps span{font-size:13px}.studio-guide summary{font-size:14px}.studio-guide details p{font-size:13px}
  .studio-guide [data-guide-action]{font-size:12px;min-height:36px}.catalog-item{min-height:60px}.preset-sizes button{min-height:38px}
  .app-footer{padding:8px 14px;gap:5px 12px;text-align:center}.app-footer span:nth-child(2){font-size:10px}
  .shared-preview .project-name{display:block}.shared-preview .app-header{padding:12px 14px;gap:10px}.shared-preview .app-header .brand{justify-content:flex-start;gap:12px}.shared-preview .workspace{height:100%;min-height:0;border-radius:0}.shared-preview .app-shell{padding:0;gap:0}.shared-preview .app-header .brand-logo{width:155px}.shared-preview .app-header .header-actions{border:0;padding:0;width:auto}.shared-preview #saveStatus{text-align:left}
}
@media screen and (max-width:520px){.left-panel{display:block}.left-panel .catalog{display:flex}.panel-section{border-bottom:1px solid #e7e9dc}.catalog-section .catalog-item{padding-inline:6px}.shower-group{padding:13px}.catalog-item .catalog-copy strong{font-size:14px}.catalog-item .catalog-copy small{font-size:12px}.space-controls span{display:none}.space-controls{max-width:none}.canvas-footer{gap:7px}}
@media screen and (max-width:360px){.app-header .brand-logo{width:140px}.app-header .brand strong{font-size:16px}.app-header .brand{gap:11px}.gallery-toggle{font-size:9px}.header-actions button{font-size:10px;padding:8px}.project-name input,#savedProjects{font-size:12px}.studio-first-help strong{display:block}.workspace{min-height:640px;height:640px}}
@media screen and (prefers-reduced-motion:reduce){button{transition:none}}
