.plan-start-art { min-height: 180px; display: grid; place-items: center; font-size: 100px; color: #315b43; background-color:#e8ede2; background-image:linear-gradient(#c9d3c4 1px,transparent 1px),linear-gradient(90deg,#c9d3c4 1px,transparent 1px); background-size:30px 30px; }
.plan-tools { display: grid; grid-template-columns: repeat(4,1fr); gap: 4px; margin-bottom: 12px; }
.plan-tools button { display: flex; flex-direction: column; align-items: center; min-height: 48px; font-size: 11px; padding: 4px; border: 1px solid var(--brand-line); border-radius: 8px; }
.plan-tools button > span:first-child { font-size: 18px; }
.plan-tools button[aria-pressed=true] { background: #315b43; color: white; }
.plan-heading,.plan-wall-nav,.plan-height { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan-heading { font-size: 12px; }
.plan-heading button,.plan-wall-nav button,.plan-height button { min-width: 44px; min-height: 44px; border: 1px solid var(--brand-line); border-radius: 8px; }
#plan-scroll { overflow: auto; max-height: 42vh; min-height: 190px; border: 1px solid var(--brand-line); border-radius: 8px; padding: 12px; background: #f9faf6; overscroll-behavior: contain; }
#plan-grid { position: relative; display: grid; grid-template-columns: repeat(var(--cols),44px); grid-template-rows: repeat(var(--rows),44px); width: max-content; touch-action: none; }
#plan-grid .plan-cell { width: 44px; height: 44px; min-width: 44px; min-height: 44px; border: 1px solid #d1d9ce; border-radius: 0; background: #fff; padding: 0; font-size: 26px; color: #315b43; }
#plan-grid .plan-cell[aria-selected=true] { background: #d3e2d1; }
#plan-grid .plan-cell:focus-visible,.plan-edge:focus-visible { outline: 3px solid #b37222; outline-offset: -4px; z-index: 3; }
.plan-cell[data-opening*=window] { background: #d6e8ed !important; }
.plan-cell[data-opening*=door] { background: #e6d9c6 !important; }
.plan-cell[data-opening*=louver] { background: #dce0d6 !important; }
#plan-grid .is-stroke { background: #bbd8b8 !important; box-shadow: inset 0 0 0 2px #315b43; }
.plan-walls { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.plan-walls line { stroke: #315b43; stroke-width: 4; }
.plan-walls .has-opening { stroke: #b37222; stroke-dasharray: 8 4; }
.plan-edge { position: absolute; border: 1px solid #71926a; border-radius: 4px; background: #e8f0e0aa; z-index: 2; padding: 0; touch-action: none; }
.plan-edge.h { width: 44px; height: 20px; }.plan-edge.v { width: 20px; height: 44px; }
.plan-edge.is-partition { background: #315b43; }
.plan-options { display: grid; gap: 8px; margin-top: 12px; }
.plan-options label { font-size: 12px; }
.plan-options [hidden],.plan-wall-nav[hidden],#tab-draw[hidden] { display: none !important; }
#plan-status { font-size: 12px; color: #315b43; line-height: 1.5; }
.has-plan .shell-controls,.has-plan #plan-convert { display: none !important; }
.has-plan.buyer-mode .tool-tabs { display: flex !important; }
.has-plan .tool-tabs { grid-template-columns: repeat(5,minmax(0,1fr)); }
.has-plan .tool-tabs button { padding-left: 4px; padding-right: 4px; }
.has-plan.buyer-mode .tool-tabs button:not(#tab-draw):not(#tab-design) { display: none; }
.drawing-plan .tool-heading,.drawing-plan .inspector-context { display: none !important; }
.drawing-plan .viewport-selection { display: none; }
.drawing-plan .viewport-help { display:none; }
.drawing-plan #plan-convert { display: none; }
@media(max-width:700px) {
  .plan-desktop-help { display:none; }
  .plan-edge.h { height:36px; transform:translateY(-8px); }
  .plan-edge.v { width:36px; transform:translateX(-8px); }
  .drawing-plan.compact-workspace #panel-viewport { height:35svh; min-height:240px; }
  .drawing-plan .viewport-camera,.drawing-plan .viewport-help,.drawing-plan .viewport-views { display: none; }
  .drawing-plan .panel-stats,.drawing-plan .panel-stage .title-row,.drawing-plan .mobile-model-button { display:none !important; }
  .drawing-plan.has-plan .tool-tabs { display: none !important; }
  .drawing-plan .plan-tools { position: fixed; bottom:0; left:0; right:0; z-index:20; margin:0; padding:8px 6px max(8px,env(safe-area-inset-bottom)); display:flex; overflow-x:auto; background:#f7f9f2; border-top:1px solid var(--brand-line); }
  .drawing-plan .plan-tools button { min-width:60px; flex-shrink:0; }
  .drawing-plan .tool-body { padding-bottom:90px; }
  .drawing-plan .panel-price { position:static; margin-bottom:76px; }
  #plan-scroll { max-height:42svh; }
  .drawing-plan .panel-controls { min-height:0; height:auto; }
}
