/* Wattstone Studio 7 — one design system for shell and editors.
   Loaded last. The :not(#s):not(#t) prefix outranks the older layered sheets
   (planner-ui, customer-ui, premium-ui) without touching them. */

:root{
  --s-bg:#f5f5f7;--s-card:#fff;--s-ink:#1d1d1f;--s-ink-2:#424245;--s-muted:#6e6e73;--s-faint:#86868b;
  --s-line:#d2d2d7;--s-hair:rgba(0,0,0,.08);--s-fill:#f5f5f7;--s-fill-2:#e8e8ed;
  --s-accent:#0071e3;--s-accent-hover:#0077ed;--s-accent-press:#006edb;--s-tint:#f0f6ff;--s-ring:rgba(0,113,227,.28);
  --s-ok:#1d8a4a;--s-ok-tint:#eaf6ee;--s-warn:#b25e00;--s-warn-tint:#fff5e6;--s-err:#d70015;--s-err-tint:#fff0f1;
  --s-r-control:10px;--s-r-card:18px;--s-r-pill:980px;
  --s-shadow-1:0 1px 2px rgba(0,0,0,.04),0 0 0 1px rgba(0,0,0,.05);
  --s-shadow-2:0 8px 28px rgba(0,0,0,.08),0 0 0 1px rgba(0,0,0,.04);
  --s-font:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI Variable Text","Segoe UI",system-ui,Roboto,"Helvetica Neue",Arial,sans-serif;
  --s-font-display:-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI Variable Display","Segoe UI",system-ui,Roboto,"Helvetica Neue",Arial,sans-serif;
  --s-t-caption:12px;--s-t-label:13px;--s-t-body:15px;--s-t-title:22px;--s-t-display:34px;
  --s-h-control:44px;--s-ease:cubic-bezier(.25,.1,.25,1);
}

/* ── Foundations ─────────────────────────────────────────────────────────── */
body.planner-ui:not(#s):not(#t){background:var(--s-bg);color:var(--s-ink);font-family:var(--s-font);font-size:var(--s-t-body);line-height:1.45;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;--customer-blue:var(--s-accent);--customer-tint:var(--s-tint);--ink:var(--s-ink);--text:var(--s-ink);--muted:var(--s-muted);--line:var(--s-line)}
body.planner-ui:not(#s):not(#t) :is(button,input,select,textarea,summary,label,legend){font-family:inherit;letter-spacing:0}
body.planner-ui:not(#s):not(#t) :is(h1,h2,h3){font-family:var(--s-font-display);color:var(--s-ink);letter-spacing:-.022em;font-weight:600}
body.planner-ui:not(#s):not(#t) small{font-size:var(--s-t-caption)}
body.planner-ui:not(#s):not(#t) ::selection{background:rgba(0,113,227,.18)}
body.planner-ui:not(#s):not(#t) :focus-visible{outline:none;box-shadow:0 0 0 4px var(--s-ring)}

/* Controls */
body.planner-ui:not(#s):not(#t) :is(input:not([type=radio]):not([type=checkbox]):not([type=range]):not([type=file]):not([type=hidden]),select,textarea){min-height:var(--s-h-control);height:var(--s-h-control);padding:0 14px;border:1px solid var(--s-line);border-radius:var(--s-r-control);background-color:#fff;color:var(--s-ink);font-size:var(--s-t-body);box-shadow:none;transition:border-color .15s var(--s-ease),box-shadow .15s var(--s-ease)}
body.planner-ui:not(#s):not(#t) textarea{height:auto;padding:12px 14px}
body.planner-ui:not(#s):not(#t) select{padding-right:36px;appearance:none!important;-webkit-appearance:none!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1.5 1.5 6 6l4.5-4.5' stroke='%236e6e73' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 14px center!important;background-size:12px 8px!important}
body.planner-ui:not(#s):not(#t) :is(input,select,textarea):hover:not(:focus):not(:disabled){border-color:#b8b8be}
body.planner-ui:not(#s):not(#t) :is(input:not([type=radio]):not([type=checkbox]),select,textarea):focus{border-color:var(--s-accent);box-shadow:0 0 0 4px var(--s-ring);outline:none}
body.planner-ui:not(#s):not(#t) ::placeholder{color:#b0b0b6;opacity:1}
body.planner-ui:not(#s):not(#t) :is(input,select,textarea)[aria-invalid=true]{border-color:var(--s-err);box-shadow:0 0 0 4px rgba(215,0,21,.14)}
body.planner-ui:not(#s):not(#t) label{font-size:var(--s-t-label);font-weight:600;color:var(--s-ink)}
body.planner-ui:not(#s):not(#t) label em{font-style:normal;font-weight:400;font-size:var(--s-t-caption);color:var(--s-faint);margin-left:6px}

/* Buttons */
body.planner-ui:not(#s):not(#t) :is(button.primary,a.primary){min-height:var(--s-h-control);padding:0 22px;border:0!important;border-radius:var(--s-r-pill)!important;background:var(--s-accent)!important;color:#fff!important;font-size:var(--s-t-body);font-weight:500!important;box-shadow:none!important;transition:background .15s var(--s-ease),transform .1s var(--s-ease)}
body.planner-ui:not(#s):not(#t) :is(button.primary,a.primary):hover:not(:disabled){background:var(--s-accent-hover)!important}
body.planner-ui:not(#s):not(#t) :is(button.primary,a.primary):active:not(:disabled){background:var(--s-accent-press)!important;transform:scale(.985)}
body.planner-ui:not(#s):not(#t) :is(button.primary,a.primary):disabled{background:var(--s-fill-2)!important;color:var(--s-faint)!important}
body.planner-ui:not(#s):not(#t) :is(button.secondary,a.secondary){min-height:var(--s-h-control);padding:0 20px;border:0!important;border-radius:var(--s-r-pill)!important;background:var(--s-fill-2)!important;color:var(--s-ink)!important;font-size:var(--s-t-body);font-weight:500!important;box-shadow:none!important;transition:background .15s var(--s-ease)}
body.planner-ui:not(#s):not(#t) :is(button.secondary,a.secondary):hover:not(:disabled){background:#dedee3!important}

/* Disclosures: quiet rows with a chevron instead of text triangles */
body.planner-ui:not(#s):not(#t) details>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:8px;font-size:var(--s-t-body);font-weight:500;color:var(--s-ink)}
body.planner-ui:not(#s):not(#t) details>summary::-webkit-details-marker{display:none}
body.planner-ui:not(#s):not(#t) details>summary::marker{content:""}
body.planner-ui:not(#s):not(#t) details>summary::before{content:"";flex:none;width:7px;height:7px;margin:0 4px 0 2px;border:solid var(--s-faint);border-width:0 1.6px 1.6px 0;transform:rotate(-45deg);transition:transform .2s var(--s-ease);background:none}
body.planner-ui:not(#s):not(#t) details[open]>summary::before{transform:rotate(45deg)}

/* ── Shell: top bar ──────────────────────────────────────────────────────── */
body.planner-ui.project-master-shell:not(#s):not(#t)>.topbar{position:sticky;top:0;z-index:50;height:56px;padding:0 20px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px;background:rgba(255,255,255,.78);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);border:0;border-bottom:1px solid var(--s-hair);box-shadow:none}
body.planner-ui.project-master-shell:not(#s):not(#t)>.topbar .brand{grid-column:1;grid-row:1;justify-self:start;order:0;margin:0!important;display:flex;align-items:center}
body.planner-ui.project-master-shell:not(#s):not(#t)>.topbar .brand img{height:26px!important;width:auto!important;max-width:none}
body.planner-ui.project-master-shell:not(#s):not(#t)>.topbar .planner-back{grid-column:1;grid-row:1;justify-self:start;margin-left:112px;min-height:32px;height:32px;padding:0 12px;border:0;border-radius:var(--s-r-pill);background:transparent;color:var(--s-accent);font-size:var(--s-t-label);font-weight:500}
body.planner-ui.project-master-shell:not(#s):not(#t)>.topbar .planner-back:hover{background:var(--s-fill)}
body.planner-ui.project-master-shell:not(#s):not(#t)>.topbar .steps{grid-column:2;grid-row:1;justify-self:center;display:flex!important;gap:2px!important;padding:3px!important;width:auto!important;margin:0!important;border:0!important;border-radius:var(--s-r-pill)!important;background:var(--s-fill-2)!important}
body.planner-ui.project-master-shell:not(#s):not(#t)>.topbar .steps button{min-height:30px!important;height:30px!important;padding:0 16px!important;border:0!important;border-radius:var(--s-r-pill)!important;background:transparent!important;color:var(--s-ink-2)!important;font-size:var(--s-t-label)!important;font-weight:500!important;box-shadow:none!important;transition:background .2s var(--s-ease),color .2s var(--s-ease)}
body.planner-ui.project-master-shell:not(#s):not(#t)>.topbar .steps button span{font-size:inherit;font-weight:inherit;color:inherit}
body.planner-ui.project-master-shell:not(#s):not(#t)>.topbar .steps button:hover:not(.active){color:var(--s-ink)}
body.planner-ui.project-master-shell:not(#s):not(#t)>.topbar .steps button.active{background:#fff!important;color:var(--s-ink)!important;font-weight:600!important;box-shadow:0 1px 3px rgba(0,0,0,.12),0 0 0 .5px rgba(0,0,0,.04)!important}
body.planner-ui.project-master-shell:not(#s):not(#t)>.topbar .planner-detail-toggle{grid-column:3;grid-row:1;justify-self:end;margin-right:150px;min-height:32px;height:32px;padding:0 12px;border:0;border-radius:var(--s-r-pill);background:transparent;color:var(--s-muted);font-size:var(--s-t-label);font-weight:500}
body.planner-ui.project-master-shell:not(#s):not(#t)>.topbar .planner-detail-toggle:hover{background:var(--s-fill);color:var(--s-ink)}
body.planner-ui.project-master-shell:not(#s):not(#t)>.topbar .planner-detail-toggle[aria-pressed=true]{background:var(--s-ink);color:#fff}
body.planner-ui.project-master-shell:not(#s):not(#t)>.topbar .premium-open-project{grid-column:3;grid-row:1;justify-self:end;min-height:32px;height:32px;padding:0 14px;border:0;border-radius:var(--s-r-pill);background:var(--s-fill-2);color:var(--s-ink);font-size:var(--s-t-label);font-weight:500;box-shadow:none}
body.planner-ui.project-master-shell:not(#s):not(#t)>.topbar .premium-open-project:hover{background:#dedee3}
body.planner-ui.project-master-shell:not(#s):not(#t)>.legal-footer{background:transparent;border:0;color:var(--s-faint);font-size:var(--s-t-caption)}
body.planner-ui.project-master-shell:not(#s):not(#t)>.legal-footer a{color:var(--s-faint);text-decoration:none}
body.planner-ui.project-master-shell:not(#s):not(#t)>.legal-footer a:hover{color:var(--s-ink)}

/* ── Start screen ────────────────────────────────────────────────────────── */
body.planner-ui.project-master-shell[data-step="1"]:not(#s):not(#t) main{max-width:none;width:auto;padding:0;margin:0}
body.planner-ui.project-master-shell[data-step="1"]:not(#s):not(#t) .workspace{max-width:920px;width:auto;margin:0 auto;padding:56px 24px 120px}
body.planner-ui.project-master-shell[data-step="1"]:not(#s):not(#t) .screen.active{width:auto;max-width:none;display:flex;flex-direction:column;gap:28px}
body.planner-ui.project-master-shell[data-step="1"]:not(#s):not(#t) .section-head{text-align:center;margin:0;padding:0;border:0}
body.planner-ui.project-master-shell[data-step="1"]:not(#s):not(#t) .section-head h1{font-size:var(--s-t-display);line-height:1.12;font-weight:600;letter-spacing:-.028em;margin:0 0 8px}
body.planner-ui.project-master-shell[data-step="1"]:not(#s):not(#t) .section-head span{font-size:17px;color:var(--s-muted)}

body.planner-ui.project-master-shell:not(#s):not(#t) .customer-choice{margin:0;padding:0;border:0;background:none}
body.planner-ui.project-master-shell:not(#s):not(#t) .customer-choice>p{margin:14px 0 0;text-align:center;font-size:var(--s-t-label);color:var(--s-faint)}
body.planner-ui.project-master-shell:not(#s):not(#t) .customer-type-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
body.planner-ui.project-master-shell:not(#s):not(#t) .customer-type-cards label{position:relative;display:flex;flex-direction:column;overflow:hidden;padding:0;border:0;border-radius:var(--s-r-card);background:var(--s-card);box-shadow:var(--s-shadow-1);cursor:pointer;transition:box-shadow .2s var(--s-ease),transform .2s var(--s-ease)}
body.planner-ui.project-master-shell:not(#s):not(#t) .customer-type-cards label:hover{box-shadow:var(--s-shadow-2);transform:translateY(-2px)}
body.planner-ui.project-master-shell:not(#s):not(#t) .customer-type-cards label:has(input:checked){box-shadow:0 0 0 2.5px var(--s-accent),var(--s-shadow-2);background:var(--s-card)}
body.planner-ui.project-master-shell:not(#s):not(#t) .customer-type-cards label img{width:100%;height:150px;object-fit:cover;border:0;border-radius:0;margin:0}
body.planner-ui.project-master-shell:not(#s):not(#t) .customer-type-cards label>span{display:block;padding:16px 18px 18px}
body.planner-ui.project-master-shell:not(#s):not(#t) .customer-type-cards label b{display:block;font-size:17px;font-weight:600;letter-spacing:-.01em;color:var(--s-ink)}
body.planner-ui.project-master-shell:not(#s):not(#t) .customer-type-cards label small{display:block;margin-top:2px;font-size:var(--s-t-label);font-weight:400;color:var(--s-muted)}
body.planner-ui.project-master-shell:not(#s):not(#t) .customer-type-cards input[type=radio]{position:absolute;top:14px;right:14px;left:auto;width:24px;height:24px;margin:0;appearance:none;-webkit-appearance:none;border:1.5px solid rgba(255,255,255,.9);border-radius:50%;background:rgba(0,0,0,.18);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);cursor:pointer;transition:background .15s var(--s-ease),border-color .15s var(--s-ease)}
body.planner-ui.project-master-shell:not(#s):not(#t) .customer-type-cards input[type=radio]:checked{border-color:var(--s-accent);background:var(--s-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10' fill='none'%3E%3Cpath d='M1.5 5.2 4.6 8.2 10.5 1.8' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat}

body.planner-ui.project-master-shell:not(#s):not(#t) .project-form-groups{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:0!important;padding:0!important;border:0;border-radius:var(--s-r-card);background:var(--s-card);box-shadow:var(--s-shadow-1);overflow:hidden}
body.planner-ui.project-master-shell:not(#s):not(#t) .project-form-groups>fieldset{order:1;grid-column:1/-1!important;margin:0;padding:24px 24px 26px;border:0;border-radius:0;background:none;box-shadow:none;min-width:0}
body.planner-ui.project-master-shell:not(#s):not(#t) .project-form-groups>fieldset>legend{float:left;width:100%;margin:0 0 16px;padding:0;font-family:var(--s-font-display);font-size:19px;font-weight:600;letter-spacing:-.015em;color:var(--s-ink)}
body.planner-ui.project-master-shell:not(#s):not(#t) .project-form-groups>fieldset>legend+*{clear:both}
body.planner-ui.project-master-shell:not(#s):not(#t) .project-form-groups .form-grid{gap:16px!important;align-items:end!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .project-form-groups .form-grid label{display:block!important;position:relative;min-height:0!important;height:auto!important;padding:0!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .project-form-groups .form-grid label>:is(input,select){display:block;width:100%;margin-top:7px!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .project-form-groups .form-grid label>small{display:block;margin-top:6px}
body.planner-ui.project-master-shell:not(#s):not(#t) .project-form-groups .form-grid label em{position:static!important;display:block!important;margin:1px 0 0!important;white-space:nowrap;transform:none!important;line-height:inherit}
body.planner-ui.project-master-shell:not(#s):not(#t) .customer-help{font-size:var(--s-t-caption);font-weight:400;color:var(--s-faint)}
body.planner-ui.project-master-shell:not(#s):not(#t) .project-form-groups>details{order:2;display:block!important;grid-column:1/-1!important;justify-self:stretch!important;width:auto!important;max-width:none!important;margin:0!important;padding:0 24px!important;border:0;border-top:1px solid var(--s-hair);border-radius:0;background:none;box-shadow:none}
body.planner-ui.project-master-shell:not(#s):not(#t) .project-form-groups>details>summary{min-height:52px!important;padding:0!important;border:0!important;color:var(--s-ink)}
body.planner-ui.project-master-shell:not(#s):not(#t) .project-form-groups>details[open]{padding-bottom:22px}
body.planner-ui.project-master-shell:not(#s):not(#t) .project-form-groups>details fieldset{width:auto!important;margin:0!important;padding:4px 0 0!important;border:0!important;background:none!important;box-shadow:none!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .project-form-groups>details fieldset>legend{display:none}

body.planner-ui.project-master-shell:not(#s):not(#t) .screen[data-screen="1"]>details.customer-details{margin:-12px auto 0!important;padding:0 24px!important;width:auto!important;border:0;border-radius:var(--s-r-card);background:var(--s-card);box-shadow:var(--s-shadow-1)}
body.planner-ui.project-master-shell:not(#s):not(#t) .screen[data-screen="1"]>details.customer-details>summary{min-height:52px!important;padding:0!important;border:0!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .screen[data-screen="1"]>details.customer-details[open]{padding-bottom:22px}

body.planner-ui.project-master-shell:not(#s):not(#t) .location-panel{margin:0!important;padding:20px 24px!important;border:0!important;border-radius:var(--s-r-card)!important;background:var(--s-card)!important;box-shadow:var(--s-shadow-1)!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:12px!important;text-align:left}
body.planner-ui.project-master-shell:not(#s):not(#t) .location-panel>*{width:auto!important;max-width:none!important;margin-left:0!important;margin-right:0!important;justify-self:stretch}
body.planner-ui.project-master-shell:not(#s):not(#t) .location-panel>div:first-child small{font-size:var(--s-t-caption);font-weight:600;letter-spacing:.04em;color:var(--s-faint)}
body.planner-ui.project-master-shell:not(#s):not(#t) .location-panel #location-title{display:block;margin-top:2px;font-size:17px;font-weight:600;letter-spacing:-.01em}
body.planner-ui.project-master-shell:not(#s):not(#t) .location-panel #location-detail{font-size:var(--s-t-label);color:var(--s-muted)}
body.planner-ui.project-master-shell:not(#s):not(#t) .location-panel details.customer-details{margin:0!important;padding:0!important;border:0;border-top:1px solid var(--s-hair);border-radius:0;background:none;box-shadow:none;width:auto}
body.planner-ui.project-master-shell:not(#s):not(#t) .location-panel details.customer-details>summary{min-height:48px!important;padding:0!important;border:0!important;justify-content:flex-start}
body.planner-ui.project-master-shell:not(#s):not(#t) .solar-prefetch{margin:0;padding:10px 14px;border:0;border-radius:12px;background:var(--s-fill);font-size:var(--s-t-label);color:var(--s-muted);display:flex;gap:8px;align-items:center}
body.planner-ui.project-master-shell:not(#s):not(#t) .solar-prefetch b{color:var(--s-ink);font-weight:600}
body.planner-ui.project-master-shell:not(#s):not(#t) .solar-prefetch:is(.error,[data-state=error],.unavailable){background:var(--s-warn-tint);color:var(--s-warn);border:0}

body.planner-ui.project-master-shell:not(#s):not(#t) .message:not([hidden]){margin:0;padding:12px 16px;border:0;border-radius:12px;background:var(--s-ok-tint);color:var(--s-ok);font-size:var(--s-t-label);font-weight:500}
body.planner-ui.project-master-shell:not(#s):not(#t) .message.error:not([hidden]){background:var(--s-err-tint);color:var(--s-err)}

body.planner-ui.project-master-shell[data-step="1"]:not(#s):not(#t) .customer-start-actions{position:fixed!important;left:0!important;right:0!important;bottom:0!important;width:auto!important;max-width:none!important;z-index:40;margin:0!important;padding:14px max(24px,calc((100vw - 872px)/2))!important;display:flex!important;justify-content:space-between;align-items:center;gap:12px;background:rgba(255,255,255,.82);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);border:0;border-top:1px solid var(--s-hair);box-shadow:none}
body.planner-ui.project-master-shell[data-step="1"]:not(#s):not(#t) .customer-start-actions .secondary{background:transparent!important;color:var(--s-accent)!important;padding:0 6px}
body.planner-ui.project-master-shell[data-step="1"]:not(#s):not(#t) .customer-start-actions .secondary:hover{background:transparent!important;text-decoration:underline}
body.planner-ui.project-master-shell[data-step="1"]:not(#s):not(#t) .customer-start-actions .primary{min-width:220px;min-height:48px;font-size:17px}
body.planner-ui.project-master-shell[data-step="1"]:not(#s):not(#t)>.legal-footer{padding-bottom:90px}

/* ── Shell: planning step (canvas first) ─────────────────────────────────── */
body.planner-ui.project-master-shell[data-step="3"]:not(#s):not(#t)>.legal-footer{display:none}
body.planner-ui.project-master-shell[data-step="3"]:not(#s):not(#t) main{padding:0!important;margin:0!important;max-width:none!important}
body.planner-ui.project-master-shell[data-step="3"]:not(#s):not(#t) .workspace,
body.planner-ui.project-master-shell[data-step="3"]:not(#s):not(#t) .planning-screen.active{display:flex!important;flex-direction:column!important;padding:0!important;margin:0!important;max-width:none!important;width:auto!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .planning-head{flex:none;height:52px!important;min-height:0!important;margin:0!important;padding:0 20px!important;display:grid!important;grid-template-columns:1fr auto 1fr!important;align-items:center!important;gap:12px!important;background:var(--s-bg)!important;border:0!important;box-shadow:none!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .planning-head #surface-switcher{justify-self:start;width:auto!important;min-width:180px;max-width:280px;height:36px!important;min-height:36px!important;border:0!important;border-radius:var(--s-r-pill)!important;background-color:var(--s-fill-2)!important;font-size:var(--s-t-label)!important;font-weight:600!important;padding:0 34px 0 14px!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .planning-head>div:first-child:not(:has(.ux-surface-menu)){display:none!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .planning-head>div:has(.ux-surface-menu){grid-column:3;grid-row:1;justify-self:end;display:flex!important;align-items:center;gap:6px!important;margin:0!important;position:relative}
body.planner-ui.project-master-shell:not(#s):not(#t) .planning-head #surface-switcher{grid-column:1;grid-row:1}
body.planner-ui.project-master-shell:not(#s):not(#t) .planning-head .ux-surface-menu{position:relative;margin:0!important;padding:0!important;border:0!important;background:none!important;width:auto!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .planning-head .ux-surface-menu>div{position:absolute!important;right:0;top:40px;z-index:60;display:flex!important;flex-direction:column;gap:2px;min-width:180px;padding:6px!important;border:0!important;border-radius:14px!important;background:rgba(255,255,255,.92)!important;-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);box-shadow:var(--s-shadow-2)!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .planning-head .ux-surface-menu>div button{justify-content:flex-start;text-align:left;border-radius:9px!important;background:transparent!important;height:36px!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .planning-head .ux-surface-menu>div button:hover{background:var(--s-fill)!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .planning-head .planning-view-bar{grid-column:2;grid-row:1;justify-self:center;display:flex!important;align-items:center;gap:8px!important;margin:0!important;padding:0!important;border:0!important;background:none!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .planning-head :is(button,summary){min-height:32px!important;height:32px!important;padding:0 14px!important;border:0!important;border-radius:var(--s-r-pill)!important;background:var(--s-fill-2)!important;color:var(--s-ink)!important;font-size:var(--s-t-label)!important;font-weight:500!important;box-shadow:none!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .planning-head :is(button,summary):hover{background:#dedee3!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .planning-head :is(button.active,button[aria-pressed=true]){background:var(--s-ink)!important;color:#fff!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .planning-head summary::before{display:none}
body.planner-ui.project-master-shell:not(#s):not(#t) #spatial-workspace{margin:0!important;padding:0!important;border:0!important;background:var(--s-bg)!important}
body.planner-ui.project-master-shell:not(#s):not(#t) #surface-editor{border:0!important;border-radius:0!important;background:var(--s-bg)!important}

/* ── Embedded editors: shared ────────────────────────────────────────────── */
body.planner-ui.project-master-embed:not(#s):not(#t){background:var(--s-bg)!important}
body.planner-ui.project-master-embed:not(#s):not(#t) :is(main,.app-shell){margin:0!important;padding:0!important;max-width:none!important;background:none!important;border:0!important;box-shadow:none!important}
body.planner-ui.project-master-embed:not(#s):not(#t) #planner-form.panel{margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important}
body.planner-ui.project-master-embed:not(#s):not(#t) .eyebrow{font-size:var(--s-t-caption)!important;font-weight:600!important;letter-spacing:.06em!important;color:var(--s-faint)!important}
body.planner-ui.project-master-embed:not(#s):not(#t) .eyebrow::before{display:none!important}
body.planner-ui.project-master-embed:not(#s):not(#t) .unit{position:relative;display:block}
body.planner-ui.project-master-embed:not(#s):not(#t) .unit>input{width:100%;padding-right:44px!important}
body.planner-ui.project-master-embed:not(#s):not(#t) .unit>i{position:absolute;right:14px;top:50%;transform:translateY(-50%);font-style:normal;font-size:var(--s-t-label);color:var(--s-faint);pointer-events:none;border:0;background:none;padding:0}
body.planner-ui.project-master-embed:not(#s):not(#t) .info-tip{width:18px!important;height:18px!important;min-height:0!important;padding:0!important;border:0!important;border-radius:50%!important;background:var(--s-fill-2)!important;color:var(--s-muted)!important;font-size:11px!important;font-weight:600!important;line-height:18px!important}

/* Bottom action bar (all editor stages) */
body.planner-ui.project-master-embed:not(#s):not(#t) .screen.active>.actions{position:fixed!important;left:0!important;right:0!important;bottom:0!important;z-index:30;width:auto!important;margin:0!important;padding:12px 20px!important;display:flex!important;justify-content:space-between!important;align-items:center!important;gap:12px;background:rgba(255,255,255,.82)!important;-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);border:0!important;border-top:1px solid var(--s-hair)!important;box-shadow:none!important}
body.planner-ui.project-master-embed:not(#s):not(#t) .screen.active>.actions>div{display:flex;gap:10px;align-items:center}
body.planner-ui.project-master-embed:not(#s):not(#t) .screen.active>.actions .primary{min-width:200px}
body.planner-ui.project-master-embed:not(#s):not(#t) .screen.active>.actions .primary b{font-weight:400;margin-left:6px}

/* Error toast: always visible above the action bar */
body.planner-ui.project-master-embed:not(#s):not(#t) .screen.active>.error:not([hidden]){position:fixed!important;left:50%!important;bottom:84px!important;transform:translateX(-50%);z-index:35;max-width:min(560px,calc(100vw - 48px));margin:0!important;padding:12px 18px!important;border:0!important;border-radius:14px!important;background:#1d1d1f!important;color:#fff!important;font-size:var(--s-t-label)!important;font-weight:500!important;box-shadow:0 12px 32px rgba(0,0,0,.24)!important;animation:studio-toast .28s var(--s-ease)}
body.planner-ui.project-master-embed:not(#s):not(#t) .screen.active>.error:not([hidden])::before{content:"";display:inline-block;width:8px;height:8px;margin-right:10px;border-radius:50%;background:#ff453a;vertical-align:1px}
@keyframes studio-toast{from{opacity:0;transform:translate(-50%,8px)}to{opacity:1;transform:translate(-50%,0)}}

/* ── Roof editor stage 1: system form ────────────────────────────────────── */
body.planner-ui.project-master-embed[data-planner-step="1"]:not(#s):not(#t) .screen.active{max-width:820px!important;width:auto!important;margin:0 auto!important;padding:40px 24px 120px!important;display:flex!important;flex-direction:column!important;gap:16px!important;background:none!important;border:0!important;box-shadow:none!important}
body.planner-ui.project-master-embed[data-planner-step="1"]:not(#s):not(#t) .screen.active>.section-head{margin:0 0 4px!important;padding:0!important;border:0!important;display:block!important;text-align:center}
body.planner-ui.project-master-embed[data-planner-step="1"]:not(#s):not(#t) .screen.active>.section-head .eyebrow{display:none!important}
body.planner-ui.project-master-embed[data-planner-step="1"]:not(#s):not(#t) .screen.active>.section-head h2{margin:0!important;font-size:var(--s-t-display)!important;line-height:1.12!important;letter-spacing:-.028em!important;font-weight:600!important}
body.planner-ui.project-master-embed[data-planner-step="1"]:not(#s):not(#t) .premium-guidance{max-width:560px!important;margin:-8px auto 12px!important;padding:0!important;border:0!important;background:none!important;text-align:center;font-size:17px!important;line-height:1.4!important;color:var(--s-muted)!important}
body.planner-ui.project-master-embed[data-planner-step="1"]:not(#s):not(#t) :is(.windload-card,.studio-card,.screen.active>details.premium-disclosure){margin:0!important;padding:24px!important;border:0!important;border-radius:var(--s-r-card)!important;background:var(--s-card)!important;box-shadow:var(--s-shadow-1)!important}
body.planner-ui.project-master-embed[data-planner-step="1"]:not(#s):not(#t) .screen.active>details.premium-disclosure{padding:0 24px!important}
body.planner-ui.project-master-embed[data-planner-step="1"]:not(#s):not(#t) .screen.active>details.premium-disclosure>summary{min-height:56px!important;padding:0!important;border:0!important}
body.planner-ui.project-master-embed[data-planner-step="1"]:not(#s):not(#t) .screen.active>details.premium-disclosure[open]{padding-bottom:24px!important}
body.planner-ui.project-master-embed[data-planner-step="1"]:not(#s):not(#t) .windload-head{margin:0 0 18px!important;padding:0!important;border:0!important;display:block!important}
body.planner-ui.project-master-embed[data-planner-step="1"]:not(#s):not(#t) .windload-head :is(h3,.studio-card-title),
body.planner-ui.project-master-embed[data-planner-step="1"]:not(#s):not(#t) .studio-card-title{margin:0!important;font-family:var(--s-font-display);font-size:19px!important;font-weight:600!important;letter-spacing:-.015em!important;color:var(--s-ink)!important}
body.planner-ui.project-master-embed[data-planner-step="1"]:not(#s):not(#t) .windload-head p:not(.eyebrow),
body.planner-ui.project-master-embed[data-planner-step="1"]:not(#s):not(#t) .studio-card-hint{margin:4px 0 0!important;max-width:none!important;font-size:var(--s-t-label)!important;font-weight:400!important;color:var(--s-muted)!important}
body.planner-ui.project-master-embed[data-planner-step="1"]:not(#s):not(#t) .windload-head .badge{display:none!important}
body.planner-ui.project-master-embed[data-planner-step="1"]:not(#s):not(#t) .grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important;align-items:start!important;margin:0!important}
body.planner-ui.project-master-embed[data-planner-step="1"]:not(#s):not(#t) .grid label{display:block!important;min-height:0!important;height:auto!important;margin:0!important;padding:0!important}
body.planner-ui.project-master-embed[data-planner-step="1"]:not(#s):not(#t) .grid label>:is(input,select,.unit){display:block;width:100%;margin-top:7px!important}
body.planner-ui.project-master-embed[data-planner-step="1"]:not(#s):not(#t) .grid label>small{display:block;margin-top:6px;font-weight:400;color:var(--s-faint)}
body.planner-ui.project-master-embed[data-planner-step="1"]:not(#s):not(#t) .studio-card{display:flex;flex-direction:column;gap:18px}
body.planner-ui.project-master-embed[data-planner-step="1"]:not(#s):not(#t) .studio-card>h3{margin:0!important}

/* Product picker */
body.planner-ui:not(#s):not(#t) .studio-visually-hidden{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
body.planner-ui:not(#s):not(#t) .studio-products{display:grid;grid-template-columns:repeat(auto-fill,minmax(168px,1fr));gap:12px}
body.planner-ui:not(#s):not(#t) .studio-product{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-height:0;height:auto;padding:14px 14px 13px;border:0;border-radius:14px;background:var(--s-fill);color:var(--s-ink);text-align:left;cursor:pointer;box-shadow:none;transition:background .15s var(--s-ease),box-shadow .15s var(--s-ease),transform .15s var(--s-ease)}
body.planner-ui:not(#s):not(#t) .studio-product:hover:not(:disabled){background:var(--s-fill-2)}
body.planner-ui:not(#s):not(#t) .studio-product[aria-checked=true]{background:var(--s-tint);box-shadow:0 0 0 2px var(--s-accent)}
body.planner-ui:not(#s):not(#t) .studio-product:disabled{opacity:.4;cursor:not-allowed}
body.planner-ui:not(#s):not(#t) .studio-product svg{width:100%;height:56px;margin-bottom:8px;color:var(--s-ink)}
body.planner-ui:not(#s):not(#t) .studio-product[aria-checked=true] svg{color:var(--s-accent)}
body.planner-ui:not(#s):not(#t) .studio-product b{font-size:var(--s-t-body);font-weight:600;letter-spacing:-.01em}
body.planner-ui:not(#s):not(#t) .studio-product small{font-size:var(--s-t-caption);font-weight:400;color:var(--s-muted)}
body.planner-ui:not(#s):not(#t) .studio-field-label{display:block;margin:0 0 8px;font-size:var(--s-t-label);font-weight:600;color:var(--s-ink)}

/* Segmented control (built from a short select) */
body.planner-ui:not(#s):not(#t) .studio-segment{display:inline-flex;gap:2px;padding:3px;border-radius:var(--s-r-control);background:var(--s-fill-2)}
body.planner-ui:not(#s):not(#t) .studio-segment button{min-height:34px;height:34px;padding:0 18px;border:0;border-radius:8px;background:transparent;color:var(--s-ink-2);font-size:var(--s-t-label);font-weight:500;box-shadow:none;cursor:pointer;transition:background .2s var(--s-ease)}
body.planner-ui:not(#s):not(#t) .studio-segment button[aria-checked=true]{background:#fff;color:var(--s-ink);font-weight:600;box-shadow:0 1px 3px rgba(0,0,0,.12),0 0 0 .5px rgba(0,0,0,.04)}
body.planner-ui:not(#s):not(#t) .studio-segment button:disabled{opacity:.4;cursor:not-allowed}

/* Product facts strip */
body.planner-ui.project-master-embed:not(#s):not(#t) #product-card{margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;display:grid!important;grid-template-columns:repeat(auto-fit,minmax(120px,1fr))!important;gap:0!important}
body.planner-ui.project-master-embed:not(#s):not(#t) #product-card.empty{display:none!important}
body.planner-ui.project-master-embed:not(#s):not(#t) #product-card>div{padding:0 14px!important;border:0!important;border-left:1px solid var(--s-hair)!important;background:none!important}
body.planner-ui.project-master-embed:not(#s):not(#t) #product-card>div:first-child{padding-left:0!important;border-left:0!important}
body.planner-ui.project-master-embed:not(#s):not(#t) #product-card small{display:block;font-size:11px!important;font-weight:600!important;letter-spacing:.05em!important;color:var(--s-faint)!important}
body.planner-ui.project-master-embed:not(#s):not(#t) #product-card strong{display:block;margin-top:3px;font-size:var(--s-t-body)!important;font-weight:600!important;color:var(--s-ink)!important}
body.planner-ui.project-master-embed:not(#s):not(#t) #product-card span{display:block;margin-top:1px;font-size:var(--s-t-caption)!important;color:var(--s-muted)!important}

/* Planning mode cards */
body.planner-ui.project-master-embed:not(#s):not(#t) .planning-mode-field{margin:0!important;padding:0!important;border:0!important}
body.planner-ui.project-master-embed:not(#s):not(#t) .planning-mode-options{display:grid!important;grid-template-columns:1fr 1fr!important;gap:12px!important}
body.planner-ui.project-master-embed:not(#s):not(#t) .planning-mode-option{position:relative;display:block!important;min-height:0!important;padding:16px 16px 16px 48px!important;border:0!important;border-radius:14px!important;background:var(--s-fill)!important;box-shadow:none!important;cursor:pointer;transition:background .15s var(--s-ease),box-shadow .15s var(--s-ease)}
body.planner-ui.project-master-embed:not(#s):not(#t) .planning-mode-option:hover{background:var(--s-fill-2)!important}
body.planner-ui.project-master-embed:not(#s):not(#t) .planning-mode-option:has(input:checked){background:var(--s-tint)!important;box-shadow:0 0 0 2px var(--s-accent)!important}
body.planner-ui.project-master-embed:not(#s):not(#t) .planning-mode-option input{position:absolute!important;left:16px;top:17px;width:20px!important;height:20px!important;margin:0!important;appearance:none;-webkit-appearance:none;border:1.5px solid var(--s-line)!important;border-radius:50%!important;background:#fff!important}
body.planner-ui.project-master-embed:not(#s):not(#t) .planning-mode-option input:checked{border:6px solid var(--s-accent)!important}
body.planner-ui.project-master-embed:not(#s):not(#t) .planning-mode-option b{display:block;font-size:var(--s-t-body);font-weight:600;color:var(--s-ink)}
body.planner-ui.project-master-embed:not(#s):not(#t) .planning-mode-option small{display:block;margin-top:2px;font-size:var(--s-t-label);font-weight:400;color:var(--s-muted)}

body.planner-ui.project-master-shell:not(#s):not(#t) .planning-view-bar>span{display:none!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .planning-view-switch{display:flex!important;gap:2px!important;padding:3px!important;border:0!important;border-radius:var(--s-r-pill)!important;background:var(--s-fill-2)!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .planning-view-switch button{min-width:56px;height:28px!important;min-height:28px!important;background:transparent!important;color:var(--s-ink-2)!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .planning-view-switch button:is(.active,[aria-pressed=true]){background:#fff!important;color:var(--s-ink)!important;font-weight:600!important;box-shadow:0 1px 3px rgba(0,0,0,.12),0 0 0 .5px rgba(0,0,0,.04)!important}
body.planner-ui.project-master-embed:not(#s):not(#t) .planning-mode-option>span{display:block!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important}
body.planner-ui.project-master-embed:not(#s):not(#t) .planning-mode-option>span::before,body.planner-ui.project-master-embed:not(#s):not(#t) .planning-mode-option>span::after{display:none!important}
body.planner-ui:not(#s):not(#t) .studio-products.studio-invalid{border-radius:16px;box-shadow:0 0 0 2px var(--s-err);animation:studio-shake .32s var(--s-ease)}
@keyframes studio-shake{20%{transform:translateX(-4px)}60%{transform:translateX(4px)}}
body.planner-ui.project-master-embed[data-planner-step="1"]:not(#s):not(#t) .studio-system-card .grid{grid-template-columns:1fr!important}
body.planner-ui.project-master-embed[data-planner-step="1"]:not(#s):not(#t) .studio-system-card .grid label{display:flex!important;align-items:center;gap:14px}
body.planner-ui.project-master-embed[data-planner-step="1"]:not(#s):not(#t) .studio-system-card #product-card{padding-top:18px!important;border-top:1px solid var(--s-hair)!important}

/* ── Roof editor stages 2 + 3: the canvas is the screen ──────────────────── */
body.planner-ui.project-master-embed:is([data-planner-step="2"],[data-planner-step="3"]):not(#s):not(#t){overflow:hidden!important}
body.planner-ui.project-master-embed:is([data-planner-step="2"],[data-planner-step="3"]):not(#s):not(#t) .screen.active{position:relative!important;height:100vh!important;max-width:none!important;width:auto!important;margin:0!important;padding:4px 16px 78px!important;display:flex!important;flex-direction:column!important;gap:0!important;background:none!important;border:0!important;box-shadow:none!important;overflow:hidden!important}
body.planner-ui.project-master-embed:is([data-planner-step="2"],[data-planner-step="3"]):not(#s):not(#t) .screen.active>:is(.section-head,.editor-help,.data-note,.metrics){display:none!important}

/* shared: floating tool pill */
body.planner-ui.project-master-embed:not(#s):not(#t) :is(.roof-tools-row,.roof-workspace-dock){display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:2px!important;width:auto!important;margin:0!important;padding:5px!important;border:0!important;border-radius:16px!important;background:rgba(255,255,255,.9)!important;-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);box-shadow:0 6px 24px rgba(0,0,0,.1),0 0 0 1px rgba(0,0,0,.05)!important}
body.planner-ui.project-master-embed:not(#s):not(#t) :is(.roof-tools-row,.roof-workspace-dock)>small{display:none!important}
body.planner-ui.project-master-embed:not(#s):not(#t) :is(.roof-tools-row,.roof-workspace-dock) button{display:inline-flex!important;align-items:center!important;justify-content:center;gap:7px!important;min-height:36px!important;height:36px!important;min-width:36px;padding:0 12px!important;border:0!important;border-radius:11px!important;background:transparent!important;color:var(--s-ink)!important;font-size:var(--s-t-label)!important;font-weight:500!important;white-space:nowrap;box-shadow:none!important;transition:background .15s var(--s-ease),color .15s var(--s-ease)}
body.planner-ui.project-master-embed:not(#s):not(#t) :is(.roof-tools-row,.roof-workspace-dock) button:hover:not(:disabled){background:var(--s-fill)!important}
body.planner-ui.project-master-embed:not(#s):not(#t) :is(.roof-tools-row,.roof-workspace-dock) button:is(.active,[aria-pressed=true]){background:var(--s-accent)!important;color:#fff!important}
body.planner-ui.project-master-embed:not(#s):not(#t) :is(.roof-tools-row,.roof-workspace-dock) button:disabled{color:#c7c7cc!important;opacity:1!important}
body.planner-ui.project-master-embed:not(#s):not(#t) .roof-tools-row .icon-tool{padding:0!important;width:36px}
body.planner-ui.project-master-embed:not(#s):not(#t) .roof-tools-row .workbar-divider{flex:none;width:1px!important;height:20px!important;margin:0 5px!important;background:var(--s-hair)!important}
body.planner-ui.project-master-embed:not(#s):not(#t) .roof-tools-row .reset-roof{color:var(--s-err)!important;margin-left:4px!important}
body.planner-ui.project-master-embed:not(#s):not(#t) .roof-tools-row .info-tip{display:none!important}
body.planner-ui.project-master-embed:not(#s):not(#t) .studio-icon{flex:none;display:block}

/* toggle switch */
body.planner-ui.project-master-embed:not(#s):not(#t) :is(.editor-toggle,.visibility-toggle){display:inline-flex!important;align-items:center!important;gap:9px!important;margin:0 6px!important;padding:0!important;border:0!important;background:none!important;font-size:var(--s-t-label)!important;font-weight:500!important;color:var(--s-ink)!important;cursor:pointer;white-space:nowrap}
body.planner-ui.project-master-embed:not(#s):not(#t) :is(.editor-toggle,.visibility-toggle) b{font-weight:500!important}
body.planner-ui.project-master-embed:not(#s):not(#t) .toggle-track{position:relative;flex:none;width:38px!important;height:22px!important;border:0!important;border-radius:11px!important;background:#d2d2d7!important;transition:background .2s var(--s-ease)}
body.planner-ui.project-master-embed:not(#s):not(#t) .toggle-track::after,body.planner-ui.project-master-embed:not(#s):not(#t) .toggle-track::before{content:""!important;position:absolute!important;left:2px!important;top:2px!important;width:18px!important;height:18px!important;border:0!important;border-radius:50%!important;background:#fff!important;box-shadow:0 1px 3px rgba(0,0,0,.25)!important;transform:none;transition:transform .2s var(--s-ease)}
body.planner-ui.project-master-embed:not(#s):not(#t) .toggle-track::before{display:none!important}
body.planner-ui.project-master-embed:not(#s):not(#t) input:checked+.toggle-track{background:#34c759!important}
body.planner-ui.project-master-embed:not(#s):not(#t) input:checked+.toggle-track::after{transform:translateX(16px)!important}

/* stage 2 layout */
body.planner-ui.project-master-embed[data-planner-step="2"]:not(#s):not(#t) .editor-layout{flex:1 1 auto;min-height:0!important;height:auto!important;display:grid!important;grid-template-columns:minmax(0,1fr) 296px!important;grid-template-rows:minmax(0,1fr)!important;gap:14px!important;margin:0!important;padding:0!important}
body.planner-ui.project-master-embed[data-planner-step="2"]:not(#s):not(#t) .editor-tool-sidebar{grid-column:1!important;grid-row:1!important;align-self:start!important;justify-self:center!important;z-index:6;width:auto!important;max-width:calc(100% - 24px);margin:12px 0 0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;position:relative!important;top:auto!important;overflow:visible!important}
body.planner-ui.project-master-embed[data-planner-step="2"]:not(#s):not(#t) .roof-workbar{margin:0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;display:flex!important;flex-direction:column;align-items:center;gap:8px}
body.planner-ui.project-master-embed[data-planner-step="2"]:not(#s):not(#t) .canvas-card{grid-column:1!important;grid-row:1!important;min-height:0!important;height:auto!important;margin:0!important;padding:0!important;border:0!important;border-radius:var(--s-r-card)!important;background:#fff!important;box-shadow:var(--s-shadow-1)!important;overflow:hidden!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:minmax(0,1fr) auto!important}
body.planner-ui.project-master-embed[data-planner-step="2"]:not(#s):not(#t) .canvas-card>.solar-canvas{grid-column:1/-1!important;grid-row:1!important;min-height:0!important;height:auto!important;margin:0!important;border:0!important;border-radius:0!important;background:#fff!important}
body.planner-ui.project-master-embed[data-planner-step="2"]:not(#s):not(#t) .canvas-card>.canvas-head{grid-column:1/-1!important;grid-row:1!important;align-self:end!important;justify-self:center!important;z-index:4;margin:0 0 14px!important;padding:8px 14px!important;border:0!important;border-radius:var(--s-r-pill)!important;background:rgba(29,29,31,.82)!important;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);max-width:min(620px,calc(100% - 140px));text-align:center;pointer-events:none}
body.planner-ui.project-master-embed[data-planner-step="2"]:not(#s):not(#t) #tool-hint{font-size:var(--s-t-caption)!important;font-weight:500!important;color:#fff!important}
body.planner-ui.project-master-embed[data-planner-step="2"]:not(#s):not(#t) .editor-live-metrics{grid-column:1!important;grid-row:2!important;display:flex!important;align-items:center;gap:18px!important;margin:0!important;padding:10px 18px!important;border:0!important;border-top:1px solid var(--s-hair)!important;background:#fff!important;font-size:var(--s-t-caption)!important;color:var(--s-muted)!important}
body.planner-ui.project-master-embed[data-planner-step="2"]:not(#s):not(#t) .editor-live-metrics b{margin-left:5px;font-size:var(--s-t-label)!important;font-weight:600!important;color:var(--s-ink)!important;font-variant-numeric:tabular-nums}
body.planner-ui.project-master-embed[data-planner-step="2"]:not(#s):not(#t) #roof-change-status{margin-left:6px;color:var(--s-faint)!important;font-weight:400!important}
body.planner-ui.project-master-embed:not(#s):not(#t) :is(.canvas-legend,.plan-legend){grid-column:2!important;grid-row:2!important;display:flex!important;align-items:center;gap:14px!important;margin:0!important;padding:10px 18px!important;border:0!important;border-top:1px solid var(--s-hair)!important;background:#fff!important;font-size:var(--s-t-caption)!important;color:var(--s-muted)!important}
body.planner-ui.project-master-embed:not(#s):not(#t) :is(.canvas-legend,.plan-legend) span{display:inline-flex;align-items:center;gap:6px}
body.planner-ui.project-master-embed:not(#s):not(#t) :is(.canvas-legend,.plan-legend) i{width:10px!important;height:10px!important;border-radius:3px!important}

/* inspector */
body.planner-ui.project-master-embed[data-planner-step="2"]:not(#s):not(#t) .editor-properties{grid-column:2!important;grid-row:1!important;min-height:0;width:auto!important;margin:0!important;padding:6px 18px!important;border:0!important;border-radius:var(--s-r-card)!important;background:#fff!important;box-shadow:var(--s-shadow-1)!important;overflow-y:auto!important;position:static!important}
body.planner-ui.project-master-embed[data-planner-step="2"]:not(#s):not(#t) .editor-properties>details{margin:0!important;padding:0!important;border:0!important;border-bottom:1px solid var(--s-hair)!important;border-radius:0!important;background:none!important;box-shadow:none!important}
body.planner-ui.project-master-embed[data-planner-step="2"]:not(#s):not(#t) .editor-properties>details:last-of-type{border-bottom:0!important}
body.planner-ui.project-master-embed[data-planner-step="2"]:not(#s):not(#t) .editor-properties>details>summary{min-height:50px!important;padding:0!important;border:0!important;font-size:var(--s-t-body)!important;font-weight:600!important;flex-direction:row-reverse;justify-content:space-between}
body.planner-ui.project-master-embed[data-planner-step="2"]:not(#s):not(#t) .editor-properties>details>summary::before{margin:0 4px 0 0}
body.planner-ui.project-master-embed[data-planner-step="2"]:not(#s):not(#t) .editor-properties>details[open]{padding-bottom:16px!important}
body.planner-ui.project-master-embed[data-planner-step="2"]:not(#s):not(#t) .editor-properties>.tool-group{margin:0!important;padding:14px 0!important;border:0!important;border-bottom:1px solid var(--s-hair)!important;background:none!important;box-shadow:none!important}
body.planner-ui.project-master-embed[data-planner-step="2"]:not(#s):not(#t) .editor-properties :is(details .tool-group,.roof-alignment-controls){display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:12px!important;margin:0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important}
body.planner-ui.project-master-embed[data-planner-step="2"]:not(#s):not(#t) .editor-properties label{display:flex!important;flex-direction:column;gap:6px;margin:0!important;font-size:var(--s-t-label)!important}
body.planner-ui.project-master-embed[data-planner-step="2"]:not(#s):not(#t) .editor-properties input:not([type=checkbox]),
body.planner-ui.project-master-embed[data-planner-step="2"]:not(#s):not(#t) .editor-properties select{height:38px!important;min-height:38px!important;width:100%!important}
body.planner-ui.project-master-embed[data-planner-step="2"]:not(#s):not(#t) .editor-properties button:not(.info-tip){min-height:36px!important;height:36px!important;padding:0 14px!important;border:0!important;border-radius:var(--s-r-pill)!important;background:var(--s-fill-2)!important;color:var(--s-ink)!important;font-size:var(--s-t-label)!important;font-weight:500!important;display:inline-flex!important;align-items:center;justify-content:center;gap:6px}
body.planner-ui.project-master-embed[data-planner-step="2"]:not(#s):not(#t) .editor-properties :is(.rotation-input,.unit){position:relative;display:block}
body.planner-ui.project-master-embed[data-planner-step="2"]:not(#s):not(#t) .editor-properties .rotation-input>i{position:absolute;right:14px;top:50%;transform:translateY(-50%);font-style:normal;color:var(--s-faint)}
body.planner-ui.project-master-embed[data-planner-step="2"]:not(#s):not(#t) .editor-properties p{margin:0;font-size:var(--s-t-caption);color:var(--s-muted)}

/* map controls: one vertical pill */
body.planner-ui.project-master-embed:not(#s):not(#t) .canvas-view-controls{position:absolute!important;left:14px!important;top:50%!important;right:auto!important;bottom:auto!important;transform:translateY(-50%);z-index:4;display:flex!important;flex-direction:column!important;gap:1px!important;width:auto!important;height:auto!important;min-height:0!important;margin:0!important;padding:4px!important;border:0!important;border-radius:13px!important;background:rgba(255,255,255,.9)!important;-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);box-shadow:0 4px 16px rgba(0,0,0,.1),0 0 0 1px rgba(0,0,0,.05)!important}
body.planner-ui.project-master-embed:not(#s):not(#t) .canvas-view-controls button{display:grid!important;place-items:center;width:34px!important;height:34px!important;min-height:0!important;padding:0!important;border:0!important;border-radius:9px!important;background:transparent!important;color:var(--s-ink)!important;box-shadow:none!important;font-size:0!important}
body.planner-ui.project-master-embed:not(#s):not(#t) .canvas-view-controls button:hover:not(:disabled){background:var(--s-fill)!important}
body.planner-ui.project-master-embed:not(#s):not(#t) .canvas-view-controls button[aria-pressed=true]{background:var(--s-accent)!important;color:#fff!important}
body.planner-ui.project-master-embed:not(#s):not(#t) .canvas-view-controls button>span{display:none!important}

/* stage 3 layout */
body.planner-ui.project-master-embed[data-planner-step="3"]:not(#s):not(#t) .roof-occupancy-layout{flex:1 1 auto;min-height:0!important;height:auto!important;margin:0!important;padding:0!important;display:block!important}
body.planner-ui.project-master-embed[data-planner-step="3"]:not(#s):not(#t) .plan-card{height:100%!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:var(--s-r-card)!important;background:#fff!important;box-shadow:var(--s-shadow-1)!important;overflow:hidden!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:minmax(0,1fr) auto!important}
body.planner-ui.project-master-embed[data-planner-step="3"]:not(#s):not(#t) .plan-card>.solar-canvas{grid-column:1/-1!important;grid-row:1!important;min-height:0!important;height:auto!important;margin:0!important;border:0!important;border-radius:0!important;background:#fff!important}
body.planner-ui.project-master-embed[data-planner-step="3"]:not(#s):not(#t) .plan-head{grid-column:1!important;grid-row:2!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:14px!important;margin:0!important;padding:10px 18px!important;border:0!important;border-top:1px solid var(--s-hair)!important;background:#fff!important;min-width:0}
body.planner-ui.project-master-embed[data-planner-step="3"]:not(#s):not(#t) .plan-head>div{display:flex!important;align-items:baseline;gap:8px;min-width:0}
body.planner-ui.project-master-embed[data-planner-step="3"]:not(#s):not(#t) #plan-roof-name{font-size:var(--s-t-label)!important;font-weight:600!important;color:var(--s-ink)!important}
body.planner-ui.project-master-embed[data-planner-step="3"]:not(#s):not(#t) :is(#plan-direction,#plan-edit-hint){font-size:var(--s-t-caption)!important;font-weight:400!important;color:var(--s-muted)!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.planner-ui.project-master-embed[data-planner-step="3"]:not(#s):not(#t) #plan-edit-hint{display:none!important}
body.planner-ui.project-master-embed[data-planner-step="3"]:not(#s):not(#t) .roof-workspace-dock{position:absolute!important;top:16px!important;left:50%!important;transform:translateX(-50%);z-index:6}
body.planner-ui.project-master-embed[data-planner-step="3"]:not(#s):not(#t) .roof-workspace-status{margin:0 10px 0 12px!important;padding-left:14px!important;border-left:1px solid var(--s-hair);font-size:var(--s-t-caption)!important;font-weight:500!important;color:var(--s-muted)!important;white-space:nowrap}
body.planner-ui.project-master-embed[data-planner-step="3"]:not(#s):not(#t) #plan-validation.validation-bar{position:absolute!important;top:20px!important;left:32px!important;z-index:6;width:auto!important;max-width:320px;margin:0!important;padding:8px 14px!important;border:0!important;border-radius:var(--s-r-pill)!important;background:var(--s-ok-tint)!important;color:var(--s-ok)!important;font-size:var(--s-t-label)!important;font-weight:600!important;box-shadow:none!important}
body.planner-ui.project-master-embed[data-planner-step="3"]:not(#s):not(#t) #plan-validation.validation-bar:is(.invalid,.error,.warning){background:var(--s-err-tint)!important;color:var(--s-err)!important}
body.planner-ui.project-master-embed[data-planner-step="3"]:not(#s):not(#t) #plan-validation.validation-bar:empty{display:none!important}
body.planner-ui.project-master-embed[data-planner-step="2"]:not(#s):not(#t) .canvas-card>.solar-canvas{padding:66px 0 54px!important;box-sizing:border-box!important}
body.planner-ui.project-master-embed[data-planner-step="3"]:not(#s):not(#t) .plan-card>.solar-canvas{padding:66px 0 14px!important;box-sizing:border-box!important}
body.planner-ui.project-master-embed:not(#s):not(#t) .plan-legend .module-color{background:#1f865e!important;border:0!important}
body.planner-ui.project-master-embed[data-planner-step="2"]:not(#s):not(#t) .editor-live-metrics{flex-wrap:nowrap!important;min-width:0;overflow:hidden}
body.planner-ui.project-master-embed[data-planner-step="2"]:not(#s):not(#t) .editor-live-metrics>span{white-space:nowrap;flex:none}
body.planner-ui.project-master-embed[data-planner-step="2"]:not(#s):not(#t) #roof-change-status{flex:0 1 auto!important;overflow:hidden;text-overflow:ellipsis}

/* ── Result ──────────────────────────────────────────────────────────────── */
body.planner-ui.project-master-shell[data-step="4"]:not(#s):not(#t) .workspace{max-width:1120px!important;width:auto!important;margin:0 auto!important;padding:48px 24px 120px!important}
body.planner-ui.project-master-shell[data-step="4"]:not(#s):not(#t) .screen.active{width:auto!important;max-width:none!important;display:flex;flex-direction:column;gap:20px}
body.planner-ui.project-master-shell:not(#s):not(#t) .result-completion-head{display:grid!important;grid-template-columns:minmax(0,1fr) 380px!important;gap:32px!important;align-items:start!important;margin:0!important;padding:0!important;border:0!important;background:none!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .result-completion-head>div:first-child>p{display:none!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .result-completion-head h1{margin:0 0 6px!important;font-size:40px!important;line-height:1.08!important;letter-spacing:-.03em!important;font-weight:600!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .result-completion-head h1+span{font-size:17px!important;color:var(--s-muted)!important}
body.planner-ui.project-master-shell:not(#s):not(#t) #result-metrics{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:0!important;margin:28px 0 0!important;padding:22px 0!important;border:0!important;border-radius:var(--s-r-card)!important;background:var(--s-card)!important;box-shadow:var(--s-shadow-1)!important}
body.planner-ui.project-master-shell:not(#s):not(#t) #result-metrics article{margin:0!important;padding:0 22px!important;border:0!important;border-left:1px solid var(--s-hair)!important;border-radius:0!important;background:none!important;box-shadow:none!important}
body.planner-ui.project-master-shell:not(#s):not(#t) #result-metrics article:first-child{border-left:0!important}
body.planner-ui.project-master-shell:not(#s):not(#t) #result-metrics small{display:block;font-size:var(--s-t-label)!important;font-weight:500!important;color:var(--s-muted)!important;letter-spacing:0!important;text-transform:none!important}
body.planner-ui.project-master-shell:not(#s):not(#t) #result-metrics strong{display:block;margin-top:4px;font-family:var(--s-font-display);font-size:32px!important;line-height:1.1!important;font-weight:600!important;letter-spacing:-.025em!important;color:var(--s-ink)!important;font-variant-numeric:tabular-nums;white-space:nowrap}
body.planner-ui.project-master-shell:not(#s):not(#t) .customer-3d-invite{margin:18px 0 0!important;padding:0!important;border:0!important;background:none!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .project-code-row{display:inline-flex!important;align-items:center;gap:8px;margin:14px 0 0!important;padding:0!important;font-size:var(--s-t-label)!important;color:var(--s-muted)!important}
body.planner-ui.project-master-shell:not(#s):not(#t) #project-code-value{font-family:ui-monospace,"SF Mono",SFMono-Regular,Menlo,Consolas,monospace;font-size:var(--s-t-label)!important;font-weight:500!important;letter-spacing:.02em;color:var(--s-ink)!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .result-completion{margin:0!important;padding:22px!important;border:0!important;border-radius:var(--s-r-card)!important;background:var(--s-card)!important;box-shadow:var(--s-shadow-1)!important;display:flex!important;flex-direction:column;gap:6px}
body.planner-ui.project-master-shell:not(#s):not(#t) .readiness-banner{margin:0 0 6px!important;padding:14px 16px!important;border:0!important;border-radius:14px!important;background:var(--s-ok-tint)!important;box-shadow:none!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .readiness-banner small{font-size:11px!important;font-weight:600!important;letter-spacing:.05em!important;color:var(--s-ok)!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .readiness-banner strong{display:block;margin-top:2px;font-size:var(--s-t-body)!important;font-weight:600!important;color:var(--s-ink)!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .readiness-banner span{display:block;margin-top:2px;font-size:var(--s-t-label)!important;color:var(--s-ink-2)!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .result-completion :is(details.premium-disclosure,details.customer-details,details.result-more-actions){margin:0!important;padding:0!important;border:0!important;border-top:1px solid var(--s-hair)!important;border-radius:0!important;background:none!important;box-shadow:none!important;width:auto!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .result-completion details>summary{min-height:46px!important;padding:0!important;border:0!important;background:none!important;font-size:var(--s-t-label)!important;width:auto!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .result-header-actions{display:flex!important;flex-direction:column;gap:0!important;margin:0!important;padding:0!important;border:0!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .result-primary-actions{order:-1;margin:8px 0 12px!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .result-main-cta{width:100%!important;min-height:48px!important;font-size:17px!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .project-result-tabs{align-self:flex-start;display:inline-flex!important;gap:2px!important;margin:8px 0 0!important;padding:3px!important;border:0!important;border-radius:var(--s-r-control)!important;background:var(--s-fill-2)!important;width:auto!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .project-result-tabs button{min-height:34px!important;height:34px!important;padding:0 18px!important;border:0!important;border-radius:8px!important;background:transparent!important;color:var(--s-ink-2)!important;font-size:var(--s-t-label)!important;font-weight:500!important;letter-spacing:0!important;text-transform:none!important;box-shadow:none!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .project-result-tabs button::after{display:none!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .project-result-tabs button.active{background:#fff!important;color:var(--s-ink)!important;font-weight:600!important;box-shadow:0 1px 3px rgba(0,0,0,.12),0 0 0 .5px rgba(0,0,0,.04)!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .project-result-panel.active{display:flex;flex-direction:column;gap:16px;margin:0!important;padding:0!important;border:0!important;background:none!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .project-result-panel>details.customer-details{margin:0!important;padding:0 22px!important;border:0!important;border-radius:var(--s-r-card)!important;background:var(--s-card)!important;box-shadow:var(--s-shadow-1)!important;width:auto!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .project-result-panel>details.customer-details>summary{min-height:54px!important;padding:0!important;border:0!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .project-result-panel>details.customer-details[open]{padding-bottom:22px!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .result-site-plan-summary{margin:0!important;padding:22px!important;border:0!important;border-radius:var(--s-r-card)!important;background:var(--s-card)!important;box-shadow:var(--s-shadow-1)!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .result-site-plan-summary aside small{font-size:11px!important;font-weight:600!important;letter-spacing:.05em!important;color:var(--s-faint)!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .result-site-plan-summary aside>strong{display:block;margin:2px 0 10px;font-family:var(--s-font-display);font-size:var(--s-t-title)!important;font-weight:600!important;letter-spacing:-.02em!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .result-site-plan-summary dl>div{display:flex!important;justify-content:space-between;align-items:center;min-height:40px;margin:0!important;padding:0!important;border:0!important;border-top:1px solid var(--s-hair)!important;background:none!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .result-site-plan-summary dt{font-size:var(--s-t-label)!important;font-weight:400!important;color:var(--s-muted)!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .result-site-plan-summary dd{margin:0;font-size:var(--s-t-body)!important;font-weight:600!important;color:var(--s-ink)!important;font-variant-numeric:tabular-nums}
body.planner-ui.project-master-shell:not(#s):not(#t) .project-result-panel>h2{margin:12px 0 0!important;font-size:var(--s-t-title)!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .surface-result{margin:0!important;padding:20px 22px!important;border:0!important;border-radius:var(--s-r-card)!important;background:var(--s-card)!important;box-shadow:var(--s-shadow-1)!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .surface-result>small{font-size:11px!important;font-weight:600!important;letter-spacing:.05em!important;color:var(--s-ok)!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .surface-result>strong{display:block;margin-top:2px;font-size:19px!important;font-weight:600!important;letter-spacing:-.015em}
body.planner-ui.project-master-shell:not(#s):not(#t) .surface-result>span{display:block;font-size:var(--s-t-body)!important;color:var(--s-ink-2)!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .surface-result>em{display:block;margin-top:2px;font-style:normal;font-size:var(--s-t-caption)!important;color:var(--s-faint)!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .surface-result>div{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
body.planner-ui.project-master-shell:not(#s):not(#t) .surface-result>div button{min-height:36px!important;padding:0 16px!important;font-size:var(--s-t-label)!important}
body.planner-ui.project-master-shell[data-step="4"]:not(#s):not(#t) .screen.active>footer.actions,
body.planner-ui.project-master-shell[data-step="2"]:not(#s):not(#t) .screen.active>footer.actions{position:fixed!important;left:0!important;right:0!important;bottom:0!important;z-index:40;width:auto!important;max-width:none!important;margin:0!important;padding:12px max(24px,calc((100vw - 1072px)/2))!important;display:flex!important;justify-content:space-between!important;align-items:center;background:rgba(255,255,255,.82)!important;-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);border:0!important;border-top:1px solid var(--s-hair)!important;box-shadow:none!important}
body.planner-ui.project-master-shell:is([data-step="4"],[data-step="2"]):not(#s):not(#t)>.legal-footer{padding-bottom:84px}

body.planner-ui:not(#s):not(#t) select{height:var(--s-h-control)!important;min-height:var(--s-h-control)!important}
body.planner-ui:not(#s):not(#t) input:not([type=radio]):not([type=checkbox]):not([type=range]):not([type=file]):not([type=hidden]){height:var(--s-h-control)!important;min-height:var(--s-h-control)!important}
body.planner-ui.project-master-embed[data-planner-step="2"]:not(#s):not(#t) .editor-properties .rotation-input input{width:100%!important;padding-right:34px!important}
body.planner-ui.project-master-embed[data-planner-step="2"]:not(#s):not(#t) .editor-properties .view-rotation-tools{display:flex!important;align-items:center;gap:8px;margin:0!important;padding:0!important;border:0!important;background:none!important;font-size:var(--s-t-label);color:var(--s-muted)}
body.planner-ui.project-master-embed[data-planner-step="2"]:not(#s):not(#t) .editor-properties .visibility-toggle{flex-direction:row!important;align-self:flex-start;margin:0!important}

/* Tools inspector (layout stage) */
body.planner-ui.project-master-embed:not(#s):not(#t) #roof-workspace-panel{position:absolute!important;left:auto!important;right:12px!important;top:12px!important;bottom:56px!important;width:328px!important;max-width:calc(100% - 24px);height:auto!important;z-index:8;margin:0!important;padding:14px 16px 18px!important;border:0!important;border-radius:16px!important;background:rgba(255,255,255,.94)!important;-webkit-backdrop-filter:saturate(180%) blur(24px);backdrop-filter:saturate(180%) blur(24px);box-shadow:0 12px 40px rgba(0,0,0,.14),0 0 0 1px rgba(0,0,0,.05)!important;overflow-y:auto!important}
body.planner-ui.project-master-embed:not(#s):not(#t) #roof-workspace-panel :is(.plan-toolbar,.plan-tools-group,.plan-advanced){display:block!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;width:auto!important}
body.planner-ui.project-master-embed:not(#s):not(#t) #roof-workspace-panel .plan-tools-group{padding:12px 0!important;border-bottom:1px solid var(--s-hair)!important}
body.planner-ui.project-master-embed:not(#s):not(#t) #roof-workspace-panel .plan-tools-group>small{display:block!important;margin:0 0 8px!important;font-size:11px!important;font-weight:600!important;letter-spacing:.05em!important;text-transform:uppercase;color:var(--s-faint)!important}
body.planner-ui.project-master-embed:not(#s):not(#t) #roof-workspace-panel .plan-tools-group>div{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:6px!important}
body.planner-ui.project-master-embed:not(#s):not(#t) #roof-workspace-panel button{min-height:34px!important;height:34px!important;padding:0 12px!important;border:0!important;border-radius:9px!important;background:var(--s-fill)!important;color:var(--s-ink)!important;font-size:var(--s-t-label)!important;font-weight:500!important;box-shadow:none!important;white-space:nowrap}
body.planner-ui.project-master-embed:not(#s):not(#t) #roof-workspace-panel button:hover:not(:disabled){background:var(--s-fill-2)!important}
body.planner-ui.project-master-embed:not(#s):not(#t) #roof-workspace-panel button.active{background:var(--s-accent)!important;color:#fff!important}
body.planner-ui.project-master-embed:not(#s):not(#t) #roof-workspace-panel button:disabled{color:#c7c7cc!important;opacity:1!important}
body.planner-ui.project-master-embed:not(#s):not(#t) #roof-workspace-panel>button:first-child,
body.planner-ui.project-master-embed:not(#s):not(#t) #roof-workspace-panel [data-close-roof-workspace]{float:right;border-radius:var(--s-r-pill)!important}
body.planner-ui.project-master-embed:not(#s):not(#t) #roof-workspace-panel details{margin:6px 0!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;width:100%}
body.planner-ui.project-master-embed:not(#s):not(#t) #roof-workspace-panel details>summary{min-height:36px!important;padding:0!important;border:0!important;background:none!important;font-size:var(--s-t-label)!important;font-weight:500!important}
body.planner-ui.project-master-embed:not(#s):not(#t) #roof-workspace-panel input:not([type=checkbox]):not([type=radio]),
body.planner-ui.project-master-embed:not(#s):not(#t) #roof-workspace-panel select{height:36px!important;min-height:36px!important;font-size:var(--s-t-label)!important}
body.planner-ui.project-master-embed:not(#s):not(#t) #roof-workspace-panel input[type=number]{width:72px!important;padding:0 8px!important}
body.planner-ui.project-master-embed:not(#s):not(#t) #roof-workspace-panel label{font-size:var(--s-t-label)!important;font-weight:500!important}
body.planner-ui.project-master-embed:not(#s):not(#t) #roof-workspace-panel :is(h3,h4){margin:16px 0 8px!important;font-size:var(--s-t-body)!important;font-weight:600!important}
body.planner-ui.project-master-embed:not(#s):not(#t) #module-selection-summary{font-size:var(--s-t-caption)!important;color:var(--s-muted)!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .project-result-panel>h2{text-transform:none!important;letter-spacing:-.02em!important}
body.planner-ui.project-master-shell[data-step="2"]:not(#s):not(#t) .workspace{max-width:1120px!important;width:auto!important;margin:0 auto!important;padding:40px 24px 120px!important}
body.planner-ui.project-master-shell[data-step="2"]:not(#s):not(#t) .screen.active{width:auto!important;max-width:none!important}
body.planner-ui.project-master-shell[data-step="2"]:not(#s):not(#t) .section-head h1{font-size:var(--s-t-display)!important;line-height:1.12!important;letter-spacing:-.028em!important}
body.planner-ui.project-master-shell[data-step="2"]:not(#s):not(#t) .section-head>div>p{display:none!important}

/* ── Narrow screens ──────────────────────────────────────────────────────── */
@media (max-width:820px){
  body.planner-ui.project-master-shell:not(#s):not(#t)>.topbar{height:auto!important;padding:8px 12px!important;display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:8px!important}
  body.planner-ui.project-master-shell:not(#s):not(#t)>.topbar .brand{order:1;margin-right:auto!important}
  body.planner-ui.project-master-shell:not(#s):not(#t)>.topbar .planner-back{order:2;margin:0!important}
  body.planner-ui.project-master-shell:not(#s):not(#t)>.topbar .planner-detail-toggle{order:3;margin:0!important}
  body.planner-ui.project-master-shell:not(#s):not(#t)>.topbar .premium-open-project{order:4;margin:0!important}
  body.planner-ui.project-master-shell:not(#s):not(#t)>.topbar .steps{order:5;flex:1 1 100%;width:100%!important;justify-content:stretch}
  body.planner-ui.project-master-shell:not(#s):not(#t)>.topbar .steps button{flex:1 1 0;padding:0 6px!important;min-width:0}

  body.planner-ui.project-master-shell[data-step="1"]:not(#s):not(#t) .workspace{padding:28px 16px 120px!important}
  body.planner-ui.project-master-shell:is([data-step="2"],[data-step="4"]):not(#s):not(#t) .workspace{padding:24px 16px 120px!important}
  body.planner-ui.project-master-shell:not(#s):not(#t) .section-head h1,
  body.planner-ui.project-master-shell:not(#s):not(#t) .result-completion-head h1{font-size:28px!important}
  body.planner-ui.project-master-shell[data-step="1"]:not(#s):not(#t) .section-head span{font-size:var(--s-t-body)!important}
  body.planner-ui.project-master-shell:not(#s):not(#t) .customer-type-cards{grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
  body.planner-ui.project-master-shell:not(#s):not(#t) .customer-type-cards label{flex-direction:row!important;align-items:stretch}
  body.planner-ui.project-master-shell:not(#s):not(#t) .customer-type-cards label img{width:112px!important;height:auto!important;min-height:84px;flex:none}
  body.planner-ui.project-master-shell:not(#s):not(#t) .customer-type-cards label>span{flex:1;align-self:center;padding:12px 48px 12px 16px!important}
  body.planner-ui.project-master-shell:not(#s):not(#t) .customer-type-cards input[type=radio]{top:50%!important;transform:translateY(-50%);border-color:var(--s-line)!important;background-color:#fff}
  body.planner-ui.project-master-shell:not(#s):not(#t) .project-form-groups .form-grid{grid-template-columns:minmax(0,1fr)!important}
  body.planner-ui.project-master-shell:not(#s):not(#t) .project-form-groups .form-grid>label{grid-column:1/-1!important}
  body.planner-ui.project-master-shell:not(#s):not(#t) .project-form-groups>fieldset{padding:20px 18px!important}
  body.planner-ui.project-master-shell:not(#s):not(#t) .project-form-groups>details{padding:0 18px!important}
  body.planner-ui.project-master-shell[data-step="1"]:not(#s):not(#t) .customer-start-actions{padding:10px 16px calc(10px + env(safe-area-inset-bottom))!important;gap:8px}
  body.planner-ui.project-master-shell[data-step="1"]:not(#s):not(#t) .customer-start-actions .primary{min-width:0;flex:1 1 auto;font-size:var(--s-t-body)}
  body.planner-ui.project-master-shell[data-step="1"]:not(#s):not(#t) .customer-start-actions .secondary{flex:0 1 auto;font-size:var(--s-t-label);white-space:normal;text-align:left;line-height:1.2}

  body.planner-ui.project-master-shell:not(#s):not(#t) .planning-head{height:auto!important;padding:8px 12px!important;display:flex!important;flex-wrap:wrap!important;gap:8px!important}
  body.planner-ui.project-master-shell:not(#s):not(#t) .planning-head #surface-switcher{flex:1 1 140px;min-width:0!important;max-width:none!important}
  body.planner-ui.project-master-shell:not(#s):not(#t) .planning-head #planner-fullscreen{display:none!important}
  body.planner-ui.project-master-shell:not(#s):not(#t) .planning-head .planning-view-bar{position:static!important;flex:none;transform:none!important;margin:0!important}
  body.planner-ui.project-master-shell:not(#s):not(#t) .planning-head>div:has(.ux-surface-menu){position:relative!important;flex:1 1 100%;justify-content:flex-end;transform:none!important;margin:0!important;inset:auto!important}

  body.planner-ui.project-master-shell:not(#s):not(#t) .result-completion-head{grid-template-columns:minmax(0,1fr)!important;gap:20px!important}
  body.planner-ui.project-master-shell:not(#s):not(#t) #result-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important;row-gap:18px!important}
  body.planner-ui.project-master-shell:not(#s):not(#t) #result-metrics article:nth-child(odd){border-left:0!important}
  body.planner-ui.project-master-shell:not(#s):not(#t) #result-metrics strong{font-size:26px!important}
  body.planner-ui.project-master-shell:not(#s):not(#t) .project-result-tabs{max-width:100%;overflow-x:auto;align-self:stretch}
  body.planner-ui.project-master-shell:not(#s):not(#t) .project-result-tabs button{flex:none;padding:0 14px!important}
  body.planner-ui.project-master-shell:is([data-step="2"],[data-step="4"]):not(#s):not(#t) .screen.active>footer.actions{padding:10px 16px calc(10px + env(safe-area-inset-bottom))!important}

  body.planner-ui.project-master-embed[data-planner-step="1"]:not(#s):not(#t) .screen.active{padding:24px 16px 120px!important}
  body.planner-ui.project-master-embed[data-planner-step="1"]:not(#s):not(#t) .screen.active>.section-head h2{font-size:28px!important}
  body.planner-ui.project-master-embed[data-planner-step="1"]:not(#s):not(#t) .premium-guidance{font-size:var(--s-t-body)!important}
  body.planner-ui.project-master-embed[data-planner-step="1"]:not(#s):not(#t) :is(.windload-card,.studio-card){padding:20px 18px!important}
  body.planner-ui.project-master-embed[data-planner-step="1"]:not(#s):not(#t) .grid{grid-template-columns:minmax(0,1fr)!important}
  body.planner-ui.project-master-embed:not(#s):not(#t) .planning-mode-options{grid-template-columns:minmax(0,1fr)!important}
  body.planner-ui:not(#s):not(#t) .studio-products{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.planner-ui.project-master-embed:not(#s):not(#t) .screen.active>.actions{padding:10px 12px calc(10px + env(safe-area-inset-bottom))!important;gap:8px}
  body.planner-ui.project-master-embed:not(#s):not(#t) .screen.active>.actions .primary{min-width:0!important;flex:1 1 auto}
  body.planner-ui.project-master-embed:not(#s):not(#t) .screen.active>.actions :is(.primary,.secondary){padding:0 14px!important;font-size:var(--s-t-label)!important;white-space:nowrap}

  body.planner-ui.project-master-embed:is([data-planner-step="2"],[data-planner-step="3"]):not(#s):not(#t){overflow:auto!important}
  body.planner-ui.project-master-embed:is([data-planner-step="2"],[data-planner-step="3"]):not(#s):not(#t) .screen.active{height:auto!important;min-height:100vh;padding:4px 10px 78px!important;overflow:visible!important}
  body.planner-ui.project-master-embed[data-planner-step="2"]:not(#s):not(#t) .editor-layout{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:62vh auto!important}
  body.planner-ui.project-master-embed[data-planner-step="2"]:not(#s):not(#t) .editor-properties{grid-column:1!important;grid-row:2!important;overflow:visible!important}
  body.planner-ui.project-master-embed[data-planner-step="2"]:not(#s):not(#t) .editor-tool-sidebar{max-width:calc(100% - 16px);margin-top:8px!important}
  body.planner-ui.project-master-embed:not(#s):not(#t) :is(.roof-tools-row,.roof-workspace-dock){max-width:100%;overflow-x:auto!important;scrollbar-width:none}
  body.planner-ui.project-master-embed:not(#s):not(#t) :is(.roof-tools-row,.roof-workspace-dock)::-webkit-scrollbar{display:none}
  body.planner-ui.project-master-embed:not(#s):not(#t) :is(.roof-tools-row,.roof-workspace-dock) button{flex:none}
  body.planner-ui.project-master-embed[data-planner-step="2"]:not(#s):not(#t) .canvas-card{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr) auto auto!important}
  body.planner-ui.project-master-embed[data-planner-step="2"]:not(#s):not(#t) .canvas-card>.canvas-head{max-width:calc(100% - 24px);margin-bottom:10px!important}
  body.planner-ui.project-master-embed:not(#s):not(#t) :is(.canvas-legend,.plan-legend){grid-column:1!important;grid-row:3!important;flex-wrap:wrap;gap:8px 12px!important;border-top:0!important;padding-top:0!important}
  body.planner-ui.project-master-embed[data-planner-step="2"]:not(#s):not(#t) .editor-live-metrics{gap:12px!important;overflow-x:auto}
  body.planner-ui.project-master-embed[data-planner-step="3"]:not(#s):not(#t) .roof-occupancy-layout{height:calc(100vh - 96px)!important;min-height:420px!important;flex:none}
  body.planner-ui.project-master-embed[data-planner-step="3"]:not(#s):not(#t) .plan-card{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr) auto auto!important}
  body.planner-ui.project-master-embed[data-planner-step="3"]:not(#s):not(#t) .plan-card>.solar-canvas{padding-top:104px!important}
  body.planner-ui.project-master-embed[data-planner-step="3"]:not(#s):not(#t) .roof-workspace-dock{top:54px!important;left:10px!important;right:10px!important;transform:none!important;max-width:none}
  body.planner-ui.project-master-embed[data-planner-step="3"]:not(#s):not(#t) #plan-validation.validation-bar{top:14px!important;left:20px!important}
  body.planner-ui.project-master-embed:not(#s):not(#t) #roof-workspace-panel{left:8px!important;right:8px!important;top:auto!important;bottom:8px!important;width:auto!important;max-height:62vh}
  body.planner-ui.project-master-embed:not(#s):not(#t) .canvas-view-controls{left:8px!important}
  body.planner-ui.project-master-embed:not(#s):not(#t) .screen.active>.actions{flex-direction:row!important;flex-wrap:nowrap!important}
  body.planner-ui.project-master-embed:not(#s):not(#t) .screen.active>.actions>div{flex:1 1 auto;min-width:0;gap:8px}
  body.planner-ui.project-master-embed:not(#s):not(#t) .screen.active>.actions .secondary{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
  body.planner-ui.project-master-embed[data-planner-step="2"]:not(#s):not(#t) .editor-layout{grid-template-rows:minmax(380px,72vh) auto!important}
  body.planner-ui.project-master-embed[data-planner-step="2"]:not(#s):not(#t) .canvas-card{grid-template-rows:minmax(0,1fr) auto auto auto!important}
  body.planner-ui.project-master-embed[data-planner-step="2"]:not(#s):not(#t) .canvas-card>.solar-canvas{padding:60px 0 8px!important}
  body.planner-ui.project-master-embed[data-planner-step="2"]:not(#s):not(#t) .canvas-card>.canvas-head{grid-row:2!important;align-self:auto!important;justify-self:stretch!important;max-width:none!important;margin:0!important;padding:8px 16px 0!important;border-radius:0!important;background:none!important;-webkit-backdrop-filter:none;backdrop-filter:none;text-align:left}
  body.planner-ui.project-master-embed[data-planner-step="2"]:not(#s):not(#t) #tool-hint{color:var(--s-muted)!important;font-weight:400!important}
  body.planner-ui.project-master-embed[data-planner-step="2"]:not(#s):not(#t) .editor-live-metrics{grid-row:3!important;border-top:0!important}
  body.planner-ui.project-master-embed[data-planner-step="2"]:not(#s):not(#t) .canvas-legend{grid-row:4!important}
  body.planner-ui.project-master-embed:not(#s):not(#t) .canvas-view-controls{top:62px!important;transform:none!important}
  body.planner-ui.project-master-embed:not(#s):not(#t) .canvas-view-controls :is(#solar-fit-imagery,#solar-focus-mode,#plan-map-imagery,#plan-map-focus){display:none!important}
}

/* ── Studio shell: persistent sidebar (desktop) ──────────────────────────── */
@media (min-width:1100px){
  body.planner-ui.project-master-shell:not(#s):not(#t){--s-side:264px;padding-left:var(--s-side)!important;background:var(--s-bg)!important}
  body.planner-ui.project-master-shell:not(#s):not(#t)>.topbar{position:fixed!important;inset:0 auto 0 0!important;width:var(--s-side)!important;height:auto!important;z-index:60;padding:22px 14px 16px!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;background:rgba(251,251,253,.86)!important;-webkit-backdrop-filter:saturate(180%) blur(24px);backdrop-filter:saturate(180%) blur(24px);border:0!important;border-right:1px solid var(--s-hair)!important;overflow-y:auto}
  body.planner-ui.project-master-shell:not(#s):not(#t)>.topbar .brand{order:1;flex:none;margin:0 0 22px 10px!important;justify-content:flex-start}
  body.planner-ui.project-master-shell:not(#s):not(#t)>.topbar .brand img{height:24px!important}
  body.planner-ui.project-master-shell:not(#s):not(#t)>.topbar .planner-back{display:none!important}
  body.planner-ui.project-master-shell:not(#s):not(#t)>.topbar .context{order:2;flex:none!important;height:auto!important;display:block!important;margin:0 0 18px!important;padding:14px!important;border:0!important;border-radius:14px!important;background:#fff!important;box-shadow:var(--s-shadow-1)!important;min-width:0}
  body.planner-ui.project-master-shell:not(#s):not(#t)>.topbar .context :is(.planner-title,i,small){display:none!important}
  body.planner-ui.project-master-shell:not(#s):not(#t)>.topbar #header-project{display:block!important;font-family:var(--s-font-display);font-size:var(--s-t-body)!important;font-weight:600!important;letter-spacing:-.01em;color:var(--s-ink)!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body.planner-ui.project-master-shell:not(#s):not(#t)>.topbar #header-number{display:block!important;margin-top:2px;font-size:var(--s-t-caption)!important;font-weight:400!important;color:var(--s-muted)!important;font-variant-numeric:tabular-nums}
  body.planner-ui.project-master-shell:not(#s):not(#t)>.topbar .steps{order:3;flex:none;display:flex!important;flex-direction:column!important;gap:2px!important;width:auto!important;padding:0!important;border-radius:0!important;background:none!important;counter-reset:step}
  body.planner-ui.project-master-shell:not(#s):not(#t)>.topbar .steps button{counter-increment:step;display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:11px!important;width:100%!important;height:40px!important;min-height:40px!important;padding:0 10px!important;border-radius:10px!important;background:transparent!important;color:var(--s-ink-2)!important;font-size:var(--s-t-body)!important;font-weight:500!important;text-align:left;box-shadow:none!important}
  body.planner-ui.project-master-shell:not(#s):not(#t)>.topbar .steps button b{display:none!important}
  body.planner-ui.project-master-shell:not(#s):not(#t)>.topbar .steps button::before{content:counter(step)!important;position:static!important;flex:none;display:grid!important;place-items:center;width:24px!important;height:24px!important;border:0!important;border-radius:50%!important;opacity:1!important;transform:none!important;background:var(--s-fill-2)!important;color:var(--s-ink-2)!important;font-size:var(--s-t-caption);font-weight:600;font-variant-numeric:tabular-nums;transition:background .2s var(--s-ease),color .2s var(--s-ease)}
  body.planner-ui.project-master-shell:not(#s):not(#t)>.topbar .steps button:hover:not(.active){background:rgba(0,0,0,.04)!important}
  body.planner-ui.project-master-shell:not(#s):not(#t)>.topbar .steps button.active{background:rgba(0,113,227,.1)!important;color:var(--s-accent)!important;font-weight:600!important;box-shadow:none!important}
  body.planner-ui.project-master-shell:not(#s):not(#t)>.topbar .steps button.active::before{background:var(--s-accent)!important;color:#fff!important}
  body.planner-ui.project-master-shell:not(#s):not(#t)>.topbar .studio-surfaces{order:4;margin:18px 0 0;padding:16px 0 0;border-top:1px solid var(--s-hair);display:flex;flex-direction:column;gap:2px;min-height:0}
  body.planner-ui.project-master-shell:not(#s):not(#t)>.topbar .studio-surfaces:empty{display:none}
  body.planner-ui.project-master-shell:not(#s):not(#t)>.topbar .studio-surfaces-title{margin:0 10px 6px;font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--s-faint)}
  body.planner-ui.project-master-shell:not(#s):not(#t)>.topbar .studio-surface{display:flex!important;align-items:center;gap:10px;width:100%;height:38px!important;min-height:38px!important;padding:0 10px!important;border:0!important;border-radius:10px!important;background:transparent!important;color:var(--s-ink)!important;font-size:var(--s-t-label)!important;font-weight:500!important;text-align:left;box-shadow:none!important;cursor:pointer}
  body.planner-ui.project-master-shell:not(#s):not(#t)>.topbar .studio-surface:hover{background:rgba(0,0,0,.04)!important}
  body.planner-ui.project-master-shell:not(#s):not(#t)>.topbar .studio-surface[aria-current=true]{background:#fff!important;box-shadow:var(--s-shadow-1)!important}
  body.planner-ui.project-master-shell:not(#s):not(#t)>.topbar .studio-surface svg{flex:none;color:var(--s-muted)}
  body.planner-ui.project-master-shell:not(#s):not(#t)>.topbar .studio-surface[aria-current=true] svg{color:var(--s-accent)}
  body.planner-ui.project-master-shell:not(#s):not(#t)>.topbar .studio-surface span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body.planner-ui.project-master-shell:not(#s):not(#t)>.topbar .studio-surface small{flex:none;font-size:11px;font-weight:400;color:var(--s-faint)}
  body.planner-ui.project-master-shell:not(#s):not(#t)>.topbar .planner-detail-toggle{order:8;margin:auto 0 6px!important;justify-self:auto;width:100%;height:36px!important;justify-content:flex-start;text-align:left;padding:0 10px!important;border-radius:10px!important}
  body.planner-ui.project-master-shell:not(#s):not(#t)>.topbar .premium-open-project{order:9;margin:0!important;width:100%;height:38px!important;border-radius:10px!important;background:#fff!important;box-shadow:var(--s-shadow-1)!important}
  body.planner-ui.project-master-shell[data-step="1"]:not(#s):not(#t) .customer-start-actions{left:var(--s-side)!important;padding-left:max(24px,calc((100vw - var(--s-side) - 872px)/2))!important;padding-right:max(24px,calc((100vw - var(--s-side) - 872px)/2))!important}
  body.planner-ui.project-master-shell:is([data-step="2"],[data-step="4"]):not(#s):not(#t) .screen.active>footer.actions{left:var(--s-side)!important;padding-left:max(24px,calc((100vw - var(--s-side) - 1072px)/2))!important;padding-right:max(24px,calc((100vw - var(--s-side) - 1072px)/2))!important}
  body.planner-ui.project-master-shell:not(#s):not(#t) .planning-head{background:rgba(255,255,255,.8)!important;-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);border-bottom:1px solid var(--s-hair)!important;height:56px!important}
  body.planner-ui.project-master-shell:not(#s):not(#t) .result-completion-head{grid-template-columns:minmax(0,1fr) 340px!important}
}
body.planner-ui.project-master-shell:not(#s):not(#t)>.topbar .studio-surfaces{display:none}
@media (min-width:1100px){
  body.planner-ui.project-master-shell:not(#s):not(#t)>.topbar .studio-surfaces{display:flex}
  body.planner-ui.project-master-shell:not(#s):not(#t)>.topbar .studio-surfaces:empty{display:none}
}

/* ── 3D showroom ─────────────────────────────────────────────────────────── */
body.planner-ui.project-master-shell:not(#s):not(#t) .project-3d-viewer{position:relative!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important;height:min(76vh,820px)!important;min-height:520px!important;margin:0!important;padding:0!important;border:0!important;border-radius:24px!important;background:#eaf2f9!important;box-shadow:0 20px 60px rgba(30,60,90,.14),0 0 0 1px rgba(0,0,0,.05)!important;overflow:hidden!important;color:var(--s-ink)}
body.planner-ui.project-master-shell:not(#s):not(#t) .project-3d-viewer>*{grid-column:1!important;grid-row:1!important;min-width:0}
body.planner-ui.project-master-shell:not(#s):not(#t) .viewer-3d-layout{display:block!important;position:absolute!important;inset:0!important;height:auto!important;margin:0!important;padding:0!important;border:0!important;background:none!important;z-index:0}
body.planner-ui.project-master-shell:not(#s):not(#t) .viewer-3d-canvas{position:absolute!important;inset:0!important;width:auto!important;height:auto!important;min-height:0!important;margin:0!important;border:0!important;border-radius:0!important;background:linear-gradient(180deg,#cfe4f6 0%,#f5f8fb 72%)!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .viewer-3d-canvas canvas{display:block;width:100%!important;height:100%!important;border-radius:0!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .viewer-3d-head{z-index:3;align-self:start!important;display:flex!important;justify-content:space-between!important;align-items:flex-start!important;gap:16px;margin:0!important;padding:20px 22px!important;border:0!important;background:linear-gradient(180deg,rgba(255,255,255,.75),rgba(255,255,255,0))!important;pointer-events:none}
body.planner-ui.project-master-shell:not(#s):not(#t) .viewer-3d-head>*{pointer-events:auto}
body.planner-ui.project-master-shell:not(#s):not(#t) .viewer-3d-head small{font-size:11px!important;font-weight:600!important;letter-spacing:.08em!important;color:var(--s-muted)!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .viewer-3d-head h2{margin:2px 0 0!important;font-size:24px!important;font-weight:600!important;letter-spacing:-.025em!important;color:var(--s-ink)!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .viewer-3d-head p{margin:4px 0 0!important;max-width:420px;font-size:var(--s-t-label)!important;color:var(--s-muted)!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .viewer-3d-actions{display:flex!important;align-items:center!important;flex-wrap:nowrap!important;gap:8px!important;margin:0!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .project-3d-viewer label{display:inline-flex!important;align-items:center;gap:8px;margin:0!important;font-size:var(--s-t-label)!important;font-weight:500!important;color:var(--s-muted)!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .project-3d-viewer select{height:36px!important;min-height:36px!important;border:0!important;border-radius:var(--s-r-pill)!important;background-color:rgba(255,255,255,.8)!important;color:var(--s-ink)!important;font-size:var(--s-t-label)!important;font-weight:500!important;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1.5 1.5 6 6l4.5-4.5' stroke='%236e6e73' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .project-3d-viewer select option{color:#1d1d1f}
body.planner-ui.project-master-shell:not(#s):not(#t) .project-3d-viewer button{min-height:36px!important;height:36px!important;padding:0 16px!important;border:0!important;border-radius:var(--s-r-pill)!important;background:rgba(255,255,255,.8)!important;color:var(--s-ink)!important;font-size:var(--s-t-label)!important;font-weight:500!important;box-shadow:none!important;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);transition:background .15s var(--s-ease)}
body.planner-ui.project-master-shell:not(#s):not(#t) .project-3d-viewer button:hover:not(:disabled){background:#fff!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .project-3d-viewer button:is(.active,[aria-pressed=true]){background:var(--s-ink)!important;color:#fff!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .viewer-3d-navigation{z-index:3;align-self:end!important;justify-self:end!important;display:flex!important;align-items:center!important;flex-wrap:nowrap!important;gap:8px!important;width:auto!important;margin:0 20px 20px 0!important;padding:6px!important;border:0!important;border-radius:var(--s-r-pill)!important;background:rgba(255,255,255,.82)!important;-webkit-backdrop-filter:saturate(180%) blur(24px);backdrop-filter:saturate(180%) blur(24px);box-shadow:0 12px 40px rgba(30,60,90,.14),inset 0 0 0 1px rgba(0,0,0,.06)!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .viewer-3d-navigation>span{display:none!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .viewer-3d-navigation :is(.viewer-mode-switch,.viewer-quick-rotation){display:flex!important;gap:2px!important;margin:0!important;padding:0!important;border:0!important;background:none!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .viewer-3d-navigation button{background:transparent!important;-webkit-backdrop-filter:none;backdrop-filter:none}
body.planner-ui.project-master-shell:not(#s):not(#t) .viewer-3d-navigation select{background-color:transparent!important;-webkit-backdrop-filter:none;backdrop-filter:none}
body.planner-ui.project-master-shell:not(#s):not(#t) .viewer-3d-layerbar{z-index:3;align-self:end!important;justify-self:start!important;display:flex!important;align-items:center!important;gap:14px!important;width:auto!important;margin:0 0 22px 22px!important;padding:8px 14px!important;border:0!important;border-radius:var(--s-r-pill)!important;background:rgba(255,255,255,.82)!important;-webkit-backdrop-filter:saturate(180%) blur(24px);backdrop-filter:saturate(180%) blur(24px);box-shadow:inset 0 0 0 1px rgba(0,0,0,.06)!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .viewer-3d-layerbar>:is(strong,span){display:none!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .viewer-3d-layerbar input[type=checkbox]{width:16px!important;height:16px!important;min-height:0!important;accent-color:var(--s-accent)}
body.planner-ui.project-master-shell:not(#s):not(#t) .viewer-3d-help{display:none!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .viewer-3d-info{position:absolute!important;right:20px!important;top:92px!important;bottom:auto!important;z-index:3;width:240px!important;max-height:calc(100% - 180px);height:auto!important;margin:0!important;padding:16px!important;border:0!important;border-radius:18px!important;background:rgba(255,255,255,.82)!important;-webkit-backdrop-filter:saturate(180%) blur(24px);backdrop-filter:saturate(180%) blur(24px);box-shadow:0 12px 40px rgba(30,60,90,.14),inset 0 0 0 1px rgba(0,0,0,.06)!important;overflow-y:auto;color:var(--s-muted)!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .viewer-3d-info small{font-size:11px!important;font-weight:600!important;letter-spacing:.06em!important;color:var(--s-muted)!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .viewer-3d-info strong{display:block;margin-top:2px;font-size:var(--s-t-body)!important;font-weight:600!important;color:var(--s-ink)!important;overflow-wrap:normal;word-break:normal;hyphens:none}
body.planner-ui.project-master-shell:not(#s):not(#t) .viewer-3d-info :is(span,dt,dd,p){font-size:var(--s-t-caption)!important;color:var(--s-muted)!important;overflow-wrap:normal!important;word-break:normal!important;hyphens:none!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .viewer-3d-info dl>div{display:block!important;margin:10px 0 0!important;padding:10px 0 0!important;border:0!important;border-top:1px solid rgba(0,0,0,.08)!important;background:none!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .viewer-3d-info dd{margin:2px 0 0!important;font-size:var(--s-t-label)!important;font-weight:600!important;color:var(--s-ink)!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .viewer-3d-compass{left:auto!important;right:276px!important;top:92px!important;margin:0!important;padding:10px!important;border:0!important;border-radius:16px!important;background:rgba(255,255,255,.82)!important;-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px);box-shadow:inset 0 0 0 1px rgba(0,0,0,.06)!important;transform:scale(.82);transform-origin:top right}
body.planner-ui.project-master-shell:not(#s):not(#t) .viewer-3d-compass :is(small,span){color:var(--s-muted)!important}
@media (max-width:1099px){
  body.planner-ui.project-master-shell:not(#s):not(#t) .viewer-3d-info,
  body.planner-ui.project-master-shell:not(#s):not(#t) .viewer-3d-compass,
  body.planner-ui.project-master-shell:not(#s):not(#t) .viewer-3d-head p,
  body.planner-ui.project-master-shell:not(#s):not(#t) #expand-3d-view{display:none!important}
  body.planner-ui.project-master-shell:not(#s):not(#t) .viewer-3d-head{flex-direction:column;padding:16px!important}
  body.planner-ui.project-master-shell:not(#s):not(#t) .viewer-3d-navigation{max-width:calc(100% - 24px);overflow-x:auto;justify-self:stretch!important;margin:0 12px 60px!important}
  body.planner-ui.project-master-shell:not(#s):not(#t) .viewer-3d-layerbar{margin:0 0 14px 12px!important}
}

/* ── Start hero ──────────────────────────────────────────────────────────── */
body.planner-ui.project-master-shell[data-step="1"]:not(#s):not(#t) .workspace{max-width:none!important;padding:0 0 120px!important}
body.planner-ui.project-master-shell[data-step="1"]:not(#s):not(#t) .screen.active>*{width:auto!important;max-width:920px!important;margin-left:auto!important;margin-right:auto!important;box-sizing:border-box}
body.planner-ui.project-master-shell[data-step="1"]:not(#s):not(#t) .screen.active>:not(.section-head):not(.customer-start-actions){width:calc(100% - 48px)!important}
body.planner-ui.project-master-shell[data-step="1"]:not(#s):not(#t) .screen.active>.section-head{max-width:none!important;width:100%!important;margin:0!important;padding:clamp(64px,11vh,120px) 24px clamp(150px,22vh,210px)!important;border:0!important;text-align:center;color:#fff;background:linear-gradient(180deg,rgba(8,10,14,.62) 0%,rgba(8,10,14,.78) 55%,rgba(8,10,14,.96) 100%),url("/assets/planning-types/roof.webp") center 38%/cover no-repeat #0b0d11!important}
body.planner-ui.project-master-shell[data-step="1"]:not(#s):not(#t) .section-head>div{max-width:860px;margin:0 auto}
body.planner-ui.project-master-shell[data-step="1"]:not(#s):not(#t) .section-head>div>p{display:inline-block!important;margin:0 0 18px!important;padding:6px 12px!important;border-radius:var(--s-r-pill);background:rgba(255,226,77,.14);color:#ffe24d!important;font-size:12px!important;font-weight:600!important;letter-spacing:.1em!important}
body.planner-ui.project-master-shell[data-step="1"]:not(#s):not(#t) .section-head h1{margin:0 0 16px!important;font-size:clamp(38px,5.2vw,68px)!important;line-height:1.04!important;font-weight:600!important;letter-spacing:-.04em!important;color:#fff!important;text-wrap:balance}
body.planner-ui.project-master-shell[data-step="1"]:not(#s):not(#t) .section-head span{display:block;max-width:620px;margin:0 auto;font-size:clamp(16px,1.5vw,20px)!important;line-height:1.45!important;color:rgba(255,255,255,.72)!important;text-wrap:balance}
body.planner-ui.project-master-shell[data-step="1"]:not(#s):not(#t) .customer-choice{margin-top:clamp(-170px,-17vh,-120px)!important;position:relative;z-index:2}
body.planner-ui.project-master-shell[data-step="1"]:not(#s):not(#t) .customer-type-cards label{box-shadow:0 20px 50px rgba(0,0,0,.28),0 0 0 1px rgba(0,0,0,.06)!important}
body.planner-ui.project-master-shell[data-step="1"]:not(#s):not(#t) .customer-type-cards label:has(input:checked){box-shadow:0 0 0 3px var(--s-accent),0 24px 60px rgba(0,0,0,.34)!important}
body.planner-ui.project-master-shell[data-step="1"]:not(#s):not(#t) .customer-type-cards label img{height:170px!important}
@media (max-width:820px){
  body.planner-ui.project-master-shell[data-step="1"]:not(#s):not(#t) .screen.active>.section-head{padding:44px 20px 120px!important}
  body.planner-ui.project-master-shell[data-step="1"]:not(#s):not(#t) .customer-choice{margin-top:-96px!important}
  body.planner-ui.project-master-shell[data-step="1"]:not(#s):not(#t) .customer-type-cards label img{height:auto!important}
  body.planner-ui.project-master-shell[data-step="1"]:not(#s):not(#t) .screen.active>:not(.section-head):not(.customer-start-actions){width:calc(100% - 32px)!important}
}

/* ── Motion ──────────────────────────────────────────────────────────────── */
@keyframes studio-rise{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@keyframes studio-fade{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:no-preference){
  body.planner-ui.project-master-shell:not(#s):not(#t) .screen.active>*{animation:studio-rise .7s cubic-bezier(.2,.7,.2,1) backwards}
  body.planner-ui.project-master-shell:not(#s):not(#t) .screen.active>:nth-child(2){animation-delay:.06s}
  body.planner-ui.project-master-shell:not(#s):not(#t) .screen.active>:nth-child(3){animation-delay:.12s}
  body.planner-ui.project-master-shell:not(#s):not(#t) .screen.active>:nth-child(4){animation-delay:.18s}
  body.planner-ui.project-master-shell:not(#s):not(#t) .screen.active>:nth-child(n+5){animation-delay:.24s}
  body.planner-ui.project-master-shell:not(#s):not(#t) .screen.active>:is(footer.actions,.customer-start-actions),
  body.planner-ui.project-master-shell:not(#s):not(#t) .planning-screen.active>*{animation:studio-fade .4s ease backwards}
  body.planner-ui.project-master-shell[data-step="1"]:not(#s):not(#t) .section-head{animation:studio-fade .9s ease backwards}
  body.planner-ui.project-master-shell[data-step="1"]:not(#s):not(#t) .section-head>div>*{animation:studio-rise .9s cubic-bezier(.2,.7,.2,1) backwards}
  body.planner-ui.project-master-shell[data-step="1"]:not(#s):not(#t) .section-head h1{animation-delay:.08s}
  body.planner-ui.project-master-shell[data-step="1"]:not(#s):not(#t) .section-head span{animation-delay:.16s}
  body.planner-ui.project-master-shell[data-step="1"]:not(#s):not(#t) .customer-type-cards label{animation:studio-rise .8s cubic-bezier(.2,.7,.2,1) backwards}
  body.planner-ui.project-master-shell[data-step="1"]:not(#s):not(#t) .customer-type-cards label:nth-child(1){animation-delay:.22s}
  body.planner-ui.project-master-shell[data-step="1"]:not(#s):not(#t) .customer-type-cards label:nth-child(2){animation-delay:.3s}
  body.planner-ui.project-master-shell[data-step="1"]:not(#s):not(#t) .customer-type-cards label:nth-child(3){animation-delay:.38s}
  body.planner-ui.project-master-embed[data-planner-step="1"]:not(#s):not(#t) .screen.active>*{animation:studio-rise .6s cubic-bezier(.2,.7,.2,1) backwards}
  body.planner-ui.project-master-embed[data-planner-step="1"]:not(#s):not(#t) .screen.active>:nth-child(n+3){animation-delay:.08s}
  body.planner-ui.project-master-embed[data-planner-step="1"]:not(#s):not(#t) .screen.active>.actions{animation:none}
  body.planner-ui.project-master-embed:is([data-planner-step="2"],[data-planner-step="3"]):not(#s):not(#t) :is(.canvas-card,.plan-card,.editor-properties){animation:studio-fade .5s ease backwards}
  body.planner-ui.project-master-embed:not(#s):not(#t) :is(.roof-tools-row,.roof-workspace-dock){animation:studio-rise .5s cubic-bezier(.2,.7,.2,1) .1s backwards}
  body.planner-ui.project-master-embed[data-planner-step="3"]:not(#s):not(#t) .roof-workspace-dock{animation:none}
  body.planner-ui.project-master-shell:not(#s):not(#t) .project-3d-viewer{animation:studio-rise .8s cubic-bezier(.2,.7,.2,1) backwards}
}

body.planner-ui.project-master-shell[data-step="1"]:not(#s):not(#t) main{padding:0!important;margin:0!important;max-width:none!important;width:auto!important}
@media (min-width:821px){
  body.planner-ui.project-master-embed[data-planner-step="3"]:not(#s):not(#t) #plan-validation.validation-bar{top:auto!important;bottom:136px!important;left:32px!important}
}

body.planner-ui.project-master-shell[data-step="1"]:not(#s):not(#t) .screen.active{max-width:none!important;width:100%!important;margin:0!important}
body.planner-ui.project-master-shell[data-step="1"]:not(#s):not(#t) .screen.active>.customer-start-actions{max-width:none!important;width:auto!important;margin:0!important}
body.planner-ui.project-master-shell[data-step="1"]:not(#s):not(#t) .customer-start-actions .secondary{white-space:nowrap}
body.planner-ui.project-master-shell:not(#s):not(#t) #result-metrics{display:flex!important;flex-wrap:wrap;gap:18px 0!important}
body.planner-ui.project-master-shell:not(#s):not(#t) #result-metrics article{flex:1 1 auto;min-width:max-content}
/* Der breite Ertragswert bekommt eine eigene Zeile, so steht keine Kennzahl allein neben leerem Platz. */
body.planner-ui.project-master-shell:not(#s):not(#t) #result-metrics article.metric-wide{flex:1 1 100%}
body.planner-ui.project-master-shell:not(#s):not(#t) #editor-3d-preview .viewer-3d-head{justify-content:flex-end!important;background:none!important}
body.planner-ui.project-master-shell:not(#s):not(#t) #editor-3d-preview .viewer-3d-head>div:first-child{display:none!important}

/* ══ Wall editor (Fassade) ═══════════════════════════════════════════════ */
body.planner-ui.project-master-embed:not(#s):not(#t) :is(.planner-shell,.workspace){margin:0!important;padding:0!important;max-width:none!important;width:auto!important;background:none!important;border:0!important;box-shadow:none!important}
/* step 1: system */
body.planner-ui.project-master-embed[data-step="1"]:not(#s):not(#t) .screen.active{max-width:860px!important;width:auto!important;margin:0 auto!important;padding:40px 24px 120px!important;display:flex!important;flex-direction:column!important;gap:16px!important;background:none!important;border:0!important;box-shadow:none!important}
body.planner-ui.project-master-embed[data-step="1"]:not(#s):not(#t) .screen.active>.section-head{display:block!important;margin:0 0 8px!important;padding:0!important;border:0!important;text-align:center}
body.planner-ui.project-master-embed[data-step="1"]:not(#s):not(#t) .screen.active>.section-head :is(.eyebrow,.status-chip){display:none!important}
body.planner-ui.project-master-embed[data-step="1"]:not(#s):not(#t) .screen.active>.section-head h2{margin:0!important;font-size:var(--s-t-display)!important;line-height:1.12!important;letter-spacing:-.028em!important;font-weight:600!important}
body.planner-ui.project-master-embed[data-step="1"]:not(#s):not(#t) .screen.active>.section-head p:not(.eyebrow){max-width:560px;margin:8px auto 0!important;font-size:17px!important;color:var(--s-muted)!important}
body.planner-ui.project-master-embed[data-step="1"]:not(#s):not(#t) .planning-types{display:none!important}
body.planner-ui.project-master-embed[data-step="1"]:not(#s):not(#t) .screen.active>:is(details,.field-grid){margin:0!important;padding:0 24px!important;border:0!important;border-radius:var(--s-r-card)!important;background:var(--s-card)!important;box-shadow:var(--s-shadow-1)!important;width:auto!important}
body.planner-ui.project-master-embed[data-step="1"]:not(#s):not(#t) .screen.active>.field-grid{padding:22px 24px 24px!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important}
body.planner-ui.project-master-embed[data-step="1"]:not(#s):not(#t) .screen.active>.field-grid label{display:block!important;margin:0!important}
body.planner-ui.project-master-embed[data-step="1"]:not(#s):not(#t) .screen.active>.field-grid label>:is(input,select,.unit){display:block;width:100%;margin-top:7px!important}
body.planner-ui.project-master-embed[data-step="1"]:not(#s):not(#t) .screen.active>details>summary{min-height:56px!important;padding:0!important;border:0!important}
body.planner-ui.project-master-embed[data-step="1"]:not(#s):not(#t) .screen.active>details[open]{padding-bottom:24px!important}
body.planner-ui.project-master-embed[data-step="1"]:not(#s):not(#t) .screen.active>h3{margin:14px 4px -4px!important;font-size:19px!important;font-weight:600!important;letter-spacing:-.015em!important}
body.planner-ui.project-master-embed:not(#s):not(#t) .variant-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;margin:0!important;padding:0!important;border:0!important;background:none!important}
body.planner-ui.project-master-embed:not(#s):not(#t) .variant-grid>label{position:relative;display:block!important;margin:0!important;padding:18px!important;border:0!important;border-radius:var(--s-r-card)!important;background:var(--s-card)!important;box-shadow:var(--s-shadow-1)!important;cursor:pointer;transition:box-shadow .2s var(--s-ease),transform .2s var(--s-ease)}
body.planner-ui.project-master-embed:not(#s):not(#t) .variant-grid>label:hover{box-shadow:var(--s-shadow-2)!important;transform:translateY(-1px)}
body.planner-ui.project-master-embed:not(#s):not(#t) .variant-grid>label:has(input:checked){background:var(--s-tint)!important;box-shadow:0 0 0 2px var(--s-accent)!important}
body.planner-ui.project-master-embed:not(#s):not(#t) .variant-grid>label>input{position:absolute!important;right:16px;top:16px;width:20px!important;height:20px!important;min-height:0!important;margin:0!important;appearance:none;-webkit-appearance:none;border:1.5px solid var(--s-line)!important;border-radius:50%!important;background:#fff!important}
body.planner-ui.project-master-embed:not(#s):not(#t) .variant-grid>label>input:checked{border:6px solid var(--s-accent)!important}
body.planner-ui.project-master-embed:not(#s):not(#t) .variant-grid>label>span{display:block!important;margin:0!important;padding:0 28px 0 0!important;border:0!important;background:none!important;box-shadow:none!important}
body.planner-ui.project-master-embed:not(#s):not(#t) .variant-grid>label b{display:block;font-size:17px;font-weight:600;letter-spacing:-.01em}
body.planner-ui.project-master-embed:not(#s):not(#t) .variant-grid>label small{display:block;margin-top:3px;font-size:var(--s-t-label)!important;color:var(--s-muted)}
body.planner-ui.project-master-embed:not(#s):not(#t) .variant-grid>label em{display:block;margin-top:8px;font-style:normal;font-size:11px;color:var(--s-faint)}
body.planner-ui.project-master-embed:not(#s):not(#t) .reference-note{margin:4px 4px 0!important;padding:0!important;border:0!important;background:none!important;display:block!important;font-size:var(--s-t-caption)!important;color:var(--s-faint)!important}
body.planner-ui.project-master-embed:not(#s):not(#t) .reference-note strong{display:inline!important;font-weight:600;color:var(--s-muted)!important;margin-right:6px}
/* steps 2 + 3: canvas */
body.planner-ui.project-master-embed:is([data-step="2"],[data-step="3"]):not(#s):not(#t){overflow:hidden!important}
body.planner-ui.project-master-embed:is([data-step="2"],[data-step="3"]):not(#s):not(#t) .screen.active{position:relative!important;height:100vh!important;max-width:none!important;width:auto!important;margin:0!important;padding:4px 16px 78px!important;display:flex!important;flex-direction:column!important;gap:10px!important;background:none!important;border:0!important;box-shadow:none!important;overflow:hidden!important}
body.planner-ui.project-master-embed[data-step="2"]:not(#s):not(#t) .editor-layout{flex:1 1 auto;min-height:0!important;height:auto!important;display:grid!important;grid-template-columns:minmax(0,1fr) 296px!important;grid-template-rows:minmax(0,1fr)!important;gap:14px!important;margin:0!important;padding:0!important;border:0!important;background:none!important}
body.planner-ui.project-master-embed:is([data-step="2"],[data-step="3"]):not(#s):not(#t) .canvas-panel{grid-column:1!important;grid-row:1!important;min-height:0!important;height:auto!important;margin:0!important;padding:0!important;border:0!important;border-radius:var(--s-r-card)!important;background:#fff!important;box-shadow:var(--s-shadow-1)!important;overflow:hidden!important;display:flex!important;flex-direction:column!important}
body.planner-ui.project-master-embed:is([data-step="2"],[data-step="3"]):not(#s):not(#t) .canvas-panel>svg{flex:1 1 auto;min-height:0;width:100%;height:auto;background:#fff}
body.planner-ui.project-master-embed:is([data-step="2"],[data-step="3"]):not(#s):not(#t) .canvas-panel>.canvas-head{flex:none;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px;margin:0!important;padding:10px 14px 10px 18px!important;border:0!important;border-bottom:1px solid var(--s-hair)!important;background:#fff!important;font-size:var(--s-t-caption)!important;color:var(--s-muted)!important}
body.planner-ui.project-master-embed:is([data-step="2"],[data-step="3"]):not(#s):not(#t) .canvas-panel>.canvas-head button{min-height:32px!important;height:32px!important;padding:0 14px!important;border:0!important;border-radius:var(--s-r-pill)!important;background:var(--s-fill-2)!important;color:var(--s-ink)!important;font-size:var(--s-t-label)!important;font-weight:500!important}
body.planner-ui.project-master-embed:is([data-step="2"],[data-step="3"]):not(#s):not(#t) .canvas-panel>:is(.canvas-metrics,.legend){flex:none;display:flex!important;align-items:center;gap:18px!important;margin:0!important;padding:10px 18px!important;border:0!important;border-top:1px solid var(--s-hair)!important;background:#fff!important;font-size:var(--s-t-caption)!important;color:var(--s-muted)!important}
body.planner-ui.project-master-embed:is([data-step="2"],[data-step="3"]):not(#s):not(#t) .canvas-panel>.canvas-metrics b{margin-left:5px;font-size:var(--s-t-label)!important;font-weight:600!important;color:var(--s-ink)!important}
body.planner-ui.project-master-embed[data-step="2"]:not(#s):not(#t) .tool-rail{grid-column:1!important;grid-row:1!important;align-self:center!important;justify-self:start!important;z-index:5;display:flex!important;flex-direction:column!important;gap:2px!important;width:auto!important;height:auto!important;margin:0 0 0 14px!important;padding:5px!important;border:0!important;border-radius:16px!important;background:rgba(255,255,255,.92)!important;-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);box-shadow:0 6px 24px rgba(0,0,0,.1),0 0 0 1px rgba(0,0,0,.05)!important}
body.planner-ui.project-master-embed[data-step="2"]:not(#s):not(#t) .tool-rail button{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:3px!important;width:72px!important;height:58px!important;min-height:0!important;padding:0!important;border:0!important;border-radius:11px!important;background:transparent!important;color:var(--s-ink)!important;box-shadow:none!important}
body.planner-ui.project-master-embed[data-step="2"]:not(#s):not(#t) .tool-rail button:hover:not(:disabled){background:var(--s-fill)!important}
body.planner-ui.project-master-embed[data-step="2"]:not(#s):not(#t) .tool-rail button:is(.active,[aria-pressed=true]){background:var(--s-accent)!important;color:#fff!important}
body.planner-ui.project-master-embed[data-step="2"]:not(#s):not(#t) .tool-rail button:disabled{color:#c7c7cc!important;opacity:1!important}
body.planner-ui.project-master-embed[data-step="2"]:not(#s):not(#t) .tool-rail button i{font-style:normal;font-size:18px;line-height:1}
body.planner-ui.project-master-embed[data-step="2"]:not(#s):not(#t) .tool-rail button span{font-size:11px!important;font-weight:500!important}
body.planner-ui.project-master-embed:is([data-step="2"],[data-step="3"]):not(#s):not(#t) :is(.properties,.layout-summary){grid-column:2!important;grid-row:1!important;min-height:0;width:auto!important;margin:0!important;padding:18px!important;border:0!important;border-radius:var(--s-r-card)!important;background:#fff!important;box-shadow:var(--s-shadow-1)!important;overflow-y:auto!important;display:flex!important;flex-direction:column;gap:14px}
body.planner-ui.project-master-embed:is([data-step="2"],[data-step="3"]):not(#s):not(#t) :is(.properties,.layout-summary)>*{margin:0!important}
body.planner-ui.project-master-embed:is([data-step="2"],[data-step="3"]):not(#s):not(#t) .property-head{padding:0!important;border:0!important;background:none!important}
body.planner-ui.project-master-embed:is([data-step="2"],[data-step="3"]):not(#s):not(#t) :is(.property-head small,.master-building-geometry>small,.control-kicker,.layout-summary>small,.module-select){font-size:11px!important;font-weight:600!important;letter-spacing:.05em!important;text-transform:uppercase;color:var(--s-faint)!important}
body.planner-ui.project-master-embed:is([data-step="2"],[data-step="3"]):not(#s):not(#t) #property-title{display:block;font-size:19px!important;font-weight:600!important;letter-spacing:-.015em}
body.planner-ui.project-master-embed:is([data-step="2"],[data-step="3"]):not(#s):not(#t) #property-subtitle{font-size:var(--s-t-label)!important;color:var(--s-muted)!important}
body.planner-ui.project-master-embed:is([data-step="2"],[data-step="3"]):not(#s):not(#t) .master-building-geometry{padding:14px!important;border:0!important;border-radius:14px!important;background:var(--s-fill)!important;box-shadow:none!important}
body.planner-ui.project-master-embed:is([data-step="2"],[data-step="3"]):not(#s):not(#t) .master-building-geometry>strong{display:block;margin:2px 0 6px;font-size:var(--s-t-body)!important}
body.planner-ui.project-master-embed:is([data-step="2"],[data-step="3"]):not(#s):not(#t) :is(.master-building-geometry,.layout-summary) dl{margin:0!important}
body.planner-ui.project-master-embed:is([data-step="2"],[data-step="3"]):not(#s):not(#t) :is(.master-building-geometry,.layout-summary) dl>div{display:flex!important;justify-content:space-between;align-items:center;min-height:34px;margin:0!important;padding:0!important;border:0!important;border-top:1px solid var(--s-hair)!important;background:none!important}
body.planner-ui.project-master-embed:is([data-step="2"],[data-step="3"]):not(#s):not(#t) :is(.master-building-geometry,.layout-summary) dt{font-size:var(--s-t-label)!important;font-weight:400!important;color:var(--s-muted)!important}
body.planner-ui.project-master-embed:is([data-step="2"],[data-step="3"]):not(#s):not(#t) :is(.master-building-geometry,.layout-summary) dd{margin:0;font-size:var(--s-t-label)!important;font-weight:600!important;color:var(--s-ink)!important;font-variant-numeric:tabular-nums}
body.planner-ui.project-master-embed[data-step="2"]:not(#s):not(#t) #wall-properties{display:flex!important;flex-direction:column;gap:12px;padding:0!important;border:0!important;background:none!important}
body.planner-ui.project-master-embed[data-step="2"]:not(#s):not(#t) #wall-properties label{display:flex!important;flex-direction:column;gap:6px;margin:0!important}
body.planner-ui.project-master-embed[data-step="2"]:not(#s):not(#t) #wall-properties input:not([type=checkbox]),
body.planner-ui.project-master-embed[data-step="2"]:not(#s):not(#t) #wall-properties select,
body.planner-ui.project-master-embed[data-step="3"]:not(#s):not(#t) .layout-summary select{height:38px!important;min-height:38px!important;width:100%!important}
body.planner-ui.project-master-embed:is([data-step="2"],[data-step="3"]):not(#s):not(#t) :is(.properties,.layout-summary) details{padding:0!important;border:0!important;border-top:1px solid var(--s-hair)!important;border-radius:0!important;background:none!important;box-shadow:none!important}
body.planner-ui.project-master-embed:is([data-step="2"],[data-step="3"]):not(#s):not(#t) :is(.properties,.layout-summary) details>summary{min-height:44px!important;padding:0!important;border:0!important;font-size:var(--s-t-label)!important}
/* step 3: placement */
body.planner-ui.project-master-embed[data-step="3"]:not(#s):not(#t) .layout-stage{flex:1 1 auto;min-height:0!important;height:auto!important;display:grid!important;grid-template-columns:minmax(0,1fr) 296px!important;grid-template-rows:minmax(0,1fr)!important;gap:14px!important;margin:0!important;padding:0!important}
body.planner-ui.project-master-embed[data-step="3"]:not(#s):not(#t) .placement-controls{position:absolute!important;top:56px!important;left:calc((100% - 310px)/2)!important;transform:translateX(-50%);z-index:6;width:auto!important;margin:0!important;padding:0!important;border:0!important;background:none!important}
body.planner-ui.project-master-embed[data-step="3"]:not(#s):not(#t) .placement-action-panel{margin:0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important}
body.planner-ui.project-master-embed[data-step="3"]:not(#s):not(#t) .layout-toolbar{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:2px!important;margin:0!important;padding:5px!important;border:0!important;border-radius:16px!important;background:rgba(255,255,255,.92)!important;-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);box-shadow:0 6px 24px rgba(0,0,0,.1),0 0 0 1px rgba(0,0,0,.05)!important}
body.planner-ui.project-master-embed[data-step="3"]:not(#s):not(#t) .layout-toolbar :is(button,summary){min-height:36px!important;height:36px!important;padding:0 12px!important;border:0!important;border-radius:11px!important;background:transparent!important;color:var(--s-ink)!important;font-size:var(--s-t-label)!important;font-weight:500!important;white-space:nowrap;box-shadow:none!important}
body.planner-ui.project-master-embed[data-step="3"]:not(#s):not(#t) .layout-toolbar :is(button,summary):hover{background:var(--s-fill)!important}
body.planner-ui.project-master-embed[data-step="3"]:not(#s):not(#t) .layout-toolbar button:is(.active,[aria-pressed=true]){background:var(--s-accent)!important;color:#fff!important}
body.planner-ui.project-master-embed[data-step="3"]:not(#s):not(#t) .layout-toolbar button:disabled{color:#c7c7cc!important;opacity:1!important}
body.planner-ui.project-master-embed[data-step="3"]:not(#s):not(#t) .layout-toolbar details{position:relative;margin:0!important;padding:0!important;border:0!important;background:none!important;width:auto!important}
body.planner-ui.project-master-embed[data-step="3"]:not(#s):not(#t) .layout-toolbar details>summary::before{display:none}
body.planner-ui.project-master-embed[data-step="3"]:not(#s):not(#t) .layout-toolbar details[open]>:not(summary){position:absolute;top:44px;right:0;z-index:9;min-width:240px;padding:10px!important;border-radius:14px;background:rgba(255,255,255,.96);box-shadow:var(--s-shadow-2);display:flex;flex-direction:column;gap:6px}
body.planner-ui.project-master-embed[data-step="3"]:not(#s):not(#t) #layout-validation{flex:none;align-self:flex-start;margin:0!important;padding:7px 14px!important;border:0!important;border-radius:var(--s-r-pill)!important;background:var(--s-fill-2)!important;color:var(--s-ink-2)!important;font-size:var(--s-t-label)!important;font-weight:500!important;width:auto!important}
body.planner-ui.project-master-embed[data-step="3"]:not(#s):not(#t) #layout-validation:is(.valid,.ok){background:var(--s-ok-tint)!important;color:var(--s-ok)!important}
body.planner-ui.project-master-embed[data-step="3"]:not(#s):not(#t) #layout-validation:is(.invalid,.error){background:var(--s-err-tint)!important;color:var(--s-err)!important}
body.planner-ui.project-master-embed[data-step="3"]:not(#s):not(#t) .canvas-panel>svg{margin-top:54px}
body.planner-ui.project-master-embed[data-step="3"]:not(#s):not(#t) .variant-control{padding:0!important;border:0!important;background:none!important}
body.planner-ui.project-master-embed[data-step="3"]:not(#s):not(#t) .placement-variant-buttons{display:flex!important;gap:2px!important;margin:8px 0!important;padding:3px!important;border-radius:var(--s-r-control)!important;background:var(--s-fill-2)!important}
body.planner-ui.project-master-embed[data-step="3"]:not(#s):not(#t) .placement-variant{flex:1 1 0;min-width:0;min-height:34px!important;height:34px!important;padding:0 6px!important;border:0!important;border-radius:8px!important;background:transparent!important;color:var(--s-ink-2)!important;font-size:var(--s-t-caption)!important;font-weight:500!important;box-shadow:none!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.planner-ui.project-master-embed[data-step="3"]:not(#s):not(#t) .placement-variant.active{background:#fff!important;color:var(--s-ink)!important;font-weight:600!important;box-shadow:0 1px 3px rgba(0,0,0,.12)!important}
body.planner-ui.project-master-embed[data-step="3"]:not(#s):not(#t) .layout-summary p{font-size:var(--s-t-caption)!important;color:var(--s-muted)!important}
body.planner-ui.project-master-embed[data-step="3"]:not(#s):not(#t) .module-select{display:flex!important;flex-direction:column;gap:6px}

/* ══ Fence editor (Zaun) ═════════════════════════════════════════════════ */
body.planner-ui.project-master-embed[data-fence-step]:not(#s):not(#t) .fence-head{position:sticky;top:0;z-index:20;display:flex!important;justify-content:center!important;margin:0!important;padding:10px 16px!important;border:0!important;background:rgba(245,245,247,.86)!important;-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);box-shadow:none!important}
body.planner-ui.project-master-embed[data-fence-step]:not(#s):not(#t) .fence-head nav{display:inline-flex!important;gap:2px!important;width:auto!important;margin:0!important;padding:3px!important;border:0!important;border-radius:var(--s-r-pill)!important;background:var(--s-fill-2)!important}
body.planner-ui.project-master-embed[data-fence-step]:not(#s):not(#t) .fence-head nav button{min-height:30px!important;height:30px!important;padding:0 16px!important;border:0!important;border-radius:var(--s-r-pill)!important;background:transparent!important;color:var(--s-ink-2)!important;font-size:var(--s-t-label)!important;font-weight:500!important;box-shadow:none!important}
body.planner-ui.project-master-embed[data-fence-step]:not(#s):not(#t) .fence-head nav button.active{background:#fff!important;color:var(--s-ink)!important;font-weight:600!important;box-shadow:0 1px 3px rgba(0,0,0,.12)!important}
body.planner-ui.project-master-embed[data-fence-step]:not(#s):not(#t) .fence-screen.active>footer{position:fixed!important;left:0!important;right:0!important;bottom:0!important;z-index:30;width:auto!important;margin:0!important;padding:12px 20px!important;display:flex!important;justify-content:space-between!important;align-items:center!important;background:rgba(255,255,255,.82)!important;-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);border:0!important;border-top:1px solid var(--s-hair)!important;box-shadow:none!important}
body.planner-ui.project-master-embed[data-fence-step]:not(#s):not(#t) .fence-screen.active>footer .primary{min-width:200px}
/* fence step 1 */
body.planner-ui.project-master-embed[data-fence-step="1"]:not(#s):not(#t) .fence-screen.active{max-width:980px!important;width:auto!important;margin:0 auto!important;padding:28px 24px 120px!important;display:flex!important;flex-direction:column!important;gap:16px!important;background:none!important;border:0!important}
body.planner-ui.project-master-embed[data-fence-step="1"]:not(#s):not(#t) .section-title{display:block!important;margin:0 0 8px!important;padding:0!important;border:0!important;text-align:center;background:none!important}
body.planner-ui.project-master-embed[data-fence-step="1"]:not(#s):not(#t) .section-title :is(small,span){display:none!important}
body.planner-ui.project-master-embed[data-fence-step="1"]:not(#s):not(#t) .section-title h1{margin:0!important;font-size:var(--s-t-display)!important;line-height:1.12!important;letter-spacing:-.028em!important;font-weight:600!important}
body.planner-ui.project-master-embed[data-fence-step="1"]:not(#s):not(#t) .section-title p{max-width:560px;margin:8px auto 0!important;font-size:17px!important;color:var(--s-muted)!important}
body.planner-ui.project-master-embed[data-fence-step="1"]:not(#s):not(#t) .system-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important;margin:0!important;padding:0!important;border:0!important;background:none!important}
body.planner-ui.project-master-embed[data-fence-step="1"]:not(#s):not(#t) .system-grid>fieldset{min-width:0;margin:0!important;padding:22px!important;border:0!important;border-radius:var(--s-r-card)!important;background:var(--s-card)!important;box-shadow:var(--s-shadow-1)!important;display:flex!important;flex-direction:column;gap:8px}
body.planner-ui.project-master-embed[data-fence-step="1"]:not(#s):not(#t) .system-grid>fieldset>legend{float:left;width:100%;margin:0 0 6px!important;padding:0!important;font-family:var(--s-font-display);font-size:19px!important;font-weight:600!important;letter-spacing:-.015em!important}
body.planner-ui.project-master-embed[data-fence-step="1"]:not(#s):not(#t) .choice{position:relative;display:block!important;margin:0!important;padding:13px 14px 13px 44px!important;border:0!important;border-radius:12px!important;background:var(--s-fill)!important;box-shadow:none!important;font-size:var(--s-t-body)!important;font-weight:500!important;cursor:pointer;transition:background .15s var(--s-ease)}
body.planner-ui.project-master-embed[data-fence-step="1"]:not(#s):not(#t) .choice:hover{background:var(--s-fill-2)!important}
body.planner-ui.project-master-embed[data-fence-step="1"]:not(#s):not(#t) .choice:has(input:checked){background:var(--s-tint)!important;box-shadow:0 0 0 2px var(--s-accent)!important}
body.planner-ui.project-master-embed[data-fence-step="1"]:not(#s):not(#t) .choice input{position:absolute!important;left:14px;top:14px;width:20px!important;height:20px!important;min-height:0!important;margin:0!important;appearance:none;-webkit-appearance:none;border:1.5px solid var(--s-line)!important;border-radius:50%!important;background:#fff!important}
body.planner-ui.project-master-embed[data-fence-step="1"]:not(#s):not(#t) .choice input:checked{border:6px solid var(--s-accent)!important}
body.planner-ui.project-master-embed[data-fence-step="1"]:not(#s):not(#t) .choice :is(small,span span){display:block;font-size:var(--s-t-caption)!important;font-weight:400!important;color:var(--s-muted)!important}
body.planner-ui.project-master-embed[data-fence-step="1"]:not(#s):not(#t) .system-data{display:grid!important;grid-template-columns:200px repeat(3,minmax(0,1fr))!important;gap:0!important;align-items:start;margin:0!important;padding:22px!important;border:0!important;border-radius:var(--s-r-card)!important;background:var(--s-card)!important;box-shadow:var(--s-shadow-1)!important}
body.planner-ui.project-master-embed[data-fence-step="1"]:not(#s):not(#t) .system-data>label{display:flex!important;flex-direction:column;gap:7px;margin:0!important;padding-right:18px}
body.planner-ui.project-master-embed[data-fence-step="1"]:not(#s):not(#t) .system-data>article{margin:0!important;padding:0 16px!important;border:0!important;border-left:1px solid var(--s-hair)!important;border-radius:0!important;background:none!important;box-shadow:none!important}
body.planner-ui.project-master-embed[data-fence-step="1"]:not(#s):not(#t) .system-data>article small{display:block;font-size:11px!important;font-weight:600!important;letter-spacing:.05em!important;color:var(--s-faint)!important}
body.planner-ui.project-master-embed[data-fence-step="1"]:not(#s):not(#t) .system-data>article strong{display:block;margin-top:3px;font-size:var(--s-t-body)!important;font-weight:600!important}
body.planner-ui.project-master-embed[data-fence-step="1"]:not(#s):not(#t) .system-data>article span{display:block;margin-top:2px;font-size:var(--s-t-caption)!important;color:var(--s-muted)!important}
/* fence steps 2 + 3 */
body.planner-ui.project-master-embed:is([data-fence-step="2"],[data-fence-step="3"]):not(#s):not(#t) main{margin:0!important;padding:0!important}
body.planner-ui.project-master-embed:is([data-fence-step="2"],[data-fence-step="3"]):not(#s):not(#t) .fence-screen.active{margin:0!important;padding:0 16px 84px!important;display:flex!important;flex-direction:column!important;gap:12px!important;background:none!important;border:0!important;max-width:none!important;width:auto!important}
body.planner-ui.project-master-embed:is([data-fence-step="2"],[data-fence-step="3"]):not(#s):not(#t) .section-title{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px;margin:0!important;padding:0 4px!important;border:0!important;background:none!important}
body.planner-ui.project-master-embed:is([data-fence-step="2"],[data-fence-step="3"]):not(#s):not(#t) .section-title h1{margin:0!important;font-size:var(--s-t-title)!important;font-weight:600!important;letter-spacing:-.02em!important}
body.planner-ui.project-master-embed:is([data-fence-step="2"],[data-fence-step="3"]):not(#s):not(#t) .editor-summary{font-size:var(--s-t-label)!important;color:var(--s-muted)!important}
body.planner-ui.project-master-embed:is([data-fence-step="2"],[data-fence-step="3"]):not(#s):not(#t) .run-switch{display:flex!important;align-items:center;gap:8px;margin:0!important}
body.planner-ui.project-master-embed:is([data-fence-step="2"],[data-fence-step="3"]):not(#s):not(#t) .run-switch label{display:flex!important;align-items:center;gap:8px;margin:0!important}
body.planner-ui.project-master-embed:is([data-fence-step="2"],[data-fence-step="3"]):not(#s):not(#t) .run-switch select{height:36px!important;min-height:36px!important;border:0!important;border-radius:var(--s-r-pill)!important;background-color:var(--s-fill-2)!important;font-size:var(--s-t-label)!important;font-weight:600!important}
body.planner-ui.project-master-embed[data-fence-step]:not(#s):not(#t) .editor-grid{display:block!important;margin:0!important;padding:0!important}
body.planner-ui.project-master-embed[data-fence-step]:not(#s):not(#t) .editor-grid>.canvas-panel{margin:0!important;padding:0!important;border:0!important;border-radius:var(--s-r-card)!important;background:#fff!important;box-shadow:var(--s-shadow-1)!important;overflow:hidden!important}
body.planner-ui.project-master-embed[data-fence-step]:not(#s):not(#t) .canvas-panel>.toolbar{display:flex!important;flex-direction:column;gap:8px;margin:0!important;padding:12px 14px!important;border:0!important;border-bottom:1px solid var(--s-hair)!important;background:#fff!important}
body.planner-ui.project-master-embed[data-fence-step]:not(#s):not(#t) .canvas-panel>.toolbar>div{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:6px!important;margin:0!important;padding:0!important;border:0!important;background:none!important}
body.planner-ui.project-master-embed[data-fence-step]:not(#s):not(#t) .canvas-panel>.toolbar :is(button,summary){min-height:34px!important;height:34px!important;padding:0 13px!important;border:0!important;border-radius:var(--s-r-pill)!important;background:var(--s-fill)!important;color:var(--s-ink)!important;font-size:var(--s-t-label)!important;font-weight:500!important;box-shadow:none!important;white-space:nowrap}
body.planner-ui.project-master-embed[data-fence-step]:not(#s):not(#t) .canvas-panel>.toolbar :is(button,summary):hover{background:var(--s-fill-2)!important}
body.planner-ui.project-master-embed[data-fence-step]:not(#s):not(#t) .canvas-panel>.toolbar button:is(.active,[aria-pressed=true]){background:var(--s-accent)!important;color:#fff!important}
body.planner-ui.project-master-embed[data-fence-step]:not(#s):not(#t) .canvas-panel>.toolbar button:disabled{color:#c7c7cc!important;opacity:1!important}
body.planner-ui.project-master-embed[data-fence-step]:not(#s):not(#t) .canvas-panel>.toolbar input:not([type=checkbox]),
body.planner-ui.project-master-embed[data-fence-step]:not(#s):not(#t) .canvas-panel>.toolbar select{height:34px!important;min-height:34px!important;font-size:var(--s-t-label)!important}
body.planner-ui.project-master-embed[data-fence-step]:not(#s):not(#t) .canvas-panel>.plan-legend{grid-column:auto!important;grid-row:auto!important;flex-wrap:wrap}
body.planner-ui.project-master-embed[data-fence-step]:not(#s):not(#t) .ux-fence-properties{margin:0!important;padding:4px 20px!important;border:0!important;border-radius:var(--s-r-card)!important;background:#fff!important;box-shadow:var(--s-shadow-1)!important}
body.planner-ui.project-master-embed[data-fence-step]:not(#s):not(#t) .ux-fence-properties>details{margin:0!important;padding:0!important;border:0!important;border-bottom:1px solid var(--s-hair)!important;border-radius:0!important;background:none!important;box-shadow:none!important}
body.planner-ui.project-master-embed[data-fence-step]:not(#s):not(#t) .ux-fence-properties>details:last-child{border-bottom:0!important}
body.planner-ui.project-master-embed[data-fence-step]:not(#s):not(#t) .ux-fence-properties>details>summary{min-height:50px!important;padding:0!important;border:0!important;font-weight:600!important}
body.planner-ui.project-master-embed[data-fence-step]:not(#s):not(#t) .ux-fence-properties>details[open]{padding-bottom:16px!important}
@media (max-width:820px){
  body.planner-ui.project-master-embed:not(#s):not(#t) .variant-grid,
  body.planner-ui.project-master-embed[data-fence-step="1"]:not(#s):not(#t) .system-grid,
  body.planner-ui.project-master-embed[data-fence-step="1"]:not(#s):not(#t) .system-data,
  body.planner-ui.project-master-embed[data-step="1"]:not(#s):not(#t) .screen.active>.field-grid{grid-template-columns:minmax(0,1fr)!important}
  body.planner-ui.project-master-embed[data-fence-step="1"]:not(#s):not(#t) .system-data>article{padding:12px 0 0!important;margin-top:12px!important;border-left:0!important;border-top:1px solid var(--s-hair)!important}
  body.planner-ui.project-master-embed:is([data-step="2"],[data-step="3"]):not(#s):not(#t){overflow:auto!important}
  body.planner-ui.project-master-embed:is([data-step="2"],[data-step="3"]):not(#s):not(#t) .screen.active{height:auto!important;overflow:visible!important;padding:4px 10px 84px!important}
  body.planner-ui.project-master-embed[data-step="2"]:not(#s):not(#t) .editor-layout,
  body.planner-ui.project-master-embed[data-step="3"]:not(#s):not(#t) .layout-stage{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(380px,66vh) auto!important}
  body.planner-ui.project-master-embed:is([data-step="2"],[data-step="3"]):not(#s):not(#t) :is(.properties,.layout-summary){grid-column:1!important;grid-row:2!important;overflow:visible!important}
  body.planner-ui.project-master-embed[data-step="3"]:not(#s):not(#t) .placement-controls{position:static!important;transform:none!important}
  body.planner-ui.project-master-embed[data-step="3"]:not(#s):not(#t) .layout-toolbar{overflow-x:auto}
  body.planner-ui.project-master-embed[data-step="3"]:not(#s):not(#t) .canvas-panel>svg{margin-top:0}
  body.planner-ui.project-master-embed:is([data-fence-step="2"],[data-fence-step="3"]):not(#s):not(#t) .section-title{flex-wrap:wrap}
}
/* fence step 3 */
body.planner-ui.project-master-embed[data-fence-step="3"]:not(#s):not(#t) .section-title small{display:none!important}
body.planner-ui.project-master-embed[data-fence-step="3"]:not(#s):not(#t) .section-title p{margin:2px 0 0!important;font-size:var(--s-t-label)!important;color:var(--s-muted)!important}
body.planner-ui.project-master-embed[data-fence-step="3"]:not(#s):not(#t) .placement-actions{display:flex!important;gap:8px!important}
body.planner-ui.project-master-embed[data-fence-step="3"]:not(#s):not(#t) .placement-grid{display:grid!important;grid-template-columns:300px minmax(0,1fr)!important;gap:14px!important;margin:0!important;padding:0!important;align-items:start}
body.planner-ui.project-master-embed[data-fence-step="3"]:not(#s):not(#t) .placement-grid>:is(aside,section){min-width:0;margin:0!important;padding:18px!important;border:0!important;border-radius:var(--s-r-card)!important;background:#fff!important;box-shadow:var(--s-shadow-1)!important}
body.planner-ui.project-master-embed[data-fence-step="3"]:not(#s):not(#t) .placement-grid>aside{display:flex!important;flex-direction:column;gap:14px}
body.planner-ui.project-master-embed[data-fence-step="3"]:not(#s):not(#t) .placement-grid>aside label{display:flex!important;flex-direction:column;gap:6px;margin:0!important}
body.planner-ui.project-master-embed[data-fence-step="3"]:not(#s):not(#t) .placement-grid>aside :is(#field-list,p){margin:0!important;padding:0!important;border:0!important;background:none!important;font-size:var(--s-t-caption)!important;color:var(--s-muted)!important}
body.planner-ui.project-master-embed[data-fence-step="3"]:not(#s):not(#t) .elevation-head{display:flex!important;justify-content:space-between;gap:12px;margin:0 0 10px!important;padding:0!important;border:0!important;background:none!important;font-size:var(--s-t-caption)!important;color:var(--s-muted)!important}
body.planner-ui.project-master-embed[data-fence-step="3"]:not(#s):not(#t) .elevation-head :is(strong,b,small):first-child{font-size:11px!important;font-weight:600!important;letter-spacing:.05em!important;color:var(--s-faint)!important}
body.planner-ui.project-master-embed[data-fence-step="3"]:not(#s):not(#t) .placement-grid>section>:is(svg,div:not(.elevation-head):not(.bom-preview)){border:0!important;border-radius:12px!important;background:var(--s-fill)!important}
body.planner-ui.project-master-embed[data-fence-step="3"]:not(#s):not(#t) .bom-preview{margin:14px 0 0!important;padding:0!important;border:0!important;background:none!important}
body.planner-ui.project-master-embed:not(#s):not(#t) .bom-preview table{width:100%;border-collapse:collapse;font-size:var(--s-t-label)}
body.planner-ui.project-master-embed:not(#s):not(#t) .bom-preview th{padding:8px 10px!important;border:0!important;background:var(--s-fill)!important;color:var(--s-muted)!important;font-size:11px!important;font-weight:600!important;letter-spacing:.05em!important;text-align:left}
body.planner-ui.project-master-embed:not(#s):not(#t) .bom-preview th:first-child{border-radius:8px 0 0 8px}
body.planner-ui.project-master-embed:not(#s):not(#t) .bom-preview th:last-child{border-radius:0 8px 8px 0}
body.planner-ui.project-master-embed:not(#s):not(#t) .bom-preview td{padding:10px!important;border:0!important;border-bottom:1px solid var(--s-hair)!important;background:none!important;color:var(--s-ink)!important}
@media (max-width:820px){body.planner-ui.project-master-embed[data-fence-step="3"]:not(#s):not(#t) .placement-grid{grid-template-columns:minmax(0,1fr)!important}}
body.planner-ui.project-master-embed[data-step="3"]:not(#s):not(#t) .canvas-panel>.canvas-head{display:none!important}
body.planner-ui.project-master-embed[data-step="3"]:not(#s):not(#t) .placement-variant{text-transform:none!important;letter-spacing:0!important}
body.planner-ui.project-master-embed[data-step="3"]:not(#s):not(#t) .placement-variant :is(small,em,span+span){display:none!important}
body.planner-ui:not(#s):not(#t) .studio-products{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}
body.planner-ui:not(#s):not(#t) .studio-product{background:#fff;box-shadow:inset 0 0 0 1px var(--s-line)}
body.planner-ui:not(#s):not(#t) .studio-product:hover:not(:disabled){background:#fff;box-shadow:inset 0 0 0 1px #b8b8be,0 6px 18px rgba(0,0,0,.06)}
body.planner-ui:not(#s):not(#t) .studio-product[aria-checked=true]{background:#fff;box-shadow:inset 0 0 0 2px var(--s-accent),0 6px 18px rgba(0,113,227,.12)}
body.planner-ui:not(#s):not(#t) .studio-product img{display:block;width:100%;height:92px;margin:0 0 10px;object-fit:contain;object-position:center}

/* ── 3D-Belegung im Dach-Editor: Kopfzeile, Dock und Kompass überlagern sich nicht mehr ── */
body.planner-ui.project-master-shell:not(#s):not(#t) #editor-3d-preview .viewer-3d-actions label{display:none!important}
body.planner-ui.project-master-shell:not(#s):not(#t) #editor-3d-preview .viewer-3d-actions{margin-left:auto}
body.planner-ui.project-master-shell:not(#s):not(#t) #editor-3d-preview .viewer-3d-compass{right:22px!important;top:84px!important;transform:scale(.7)!important;transform-origin:top right}
body.planner-ui.project-master-shell:not(#s):not(#t) #editor-3d-preview #expand-3d-view{display:none!important}

/* Die Quell-SVGs der 3D-Belegung müssen 1000×600 groß bleiben (außerhalb des Bildschirms); eine Prozent-Höhe aus dem Review-Layout streckte sie auf 1716 px und machte die Maßlinien riesig. */
html body.planner-ui.spatial-tools svg.spatial-source:not(#a):not(#b){width:1000px!important;height:600px!important;min-height:0!important;max-height:600px!important}
body.planner-ui.project-master-shell:not(#s):not(#t) #editor-3d-preview .viewer-3d-actions{flex:0 0 auto!important;width:auto!important;min-width:0!important;justify-content:flex-end!important}

/* ── Dachkontur im Luftbild: das Gebäude bleibt sichtbar ── */
body.planner-ui.solar-imagery-active:not(#s):not(#t) .roof-shape{fill:rgba(255,255,255,.22)!important;stroke:#f5c518!important;stroke-width:2.5px!important}
body.planner-ui.solar-imagery-active:not(#s):not(#t) .roof-shape.drawing{fill:rgba(245,197,24,.14)!important}

/* ── Wand-Editor: Variantenschalter und Modulauswahl nicht mehr abgeschnitten ── */
body.planner-ui.project-master-embed:not(#s):not(#t) .placement-variant{padding:0 4px!important}
body.planner-ui.project-master-embed:not(#s):not(#t) .placement-variant strong{text-transform:none!important;letter-spacing:0!important;font-size:12px!important;font-weight:600!important}
body.planner-ui.project-master-embed:not(#s):not(#t) #placement-module-product{font-size:12.5px!important;text-overflow:ellipsis;padding-left:10px!important;padding-right:26px!important}

/* Das Menü „Fläche hinzufügen“ lag hinter dem Editor-Fenster. */
/* Die Kopfzeile ist ein Flex-Kind: z-index wirkt ohne position (bleibt static). */
body.planner-ui.project-master-shell:not(#s):not(#t) .planning-head{z-index:80}

/* Wand-Editor: die Werkzeugleiste schwebt links und verdeckte die Wand; die Zeichenfläche beginnt jetzt rechts davon. */
body.planner-ui.project-master-embed:not(#s):not(#t) #wall-editor{margin-left:96px!important;width:calc(100% - 96px)!important}

/* Angebots-Fenster: feste Zentrierung darf von keiner Einblendung überschrieben werden. */
html body.planner-ui.customer-ui #quote-request-preparation:not([hidden]){animation:none!important}

/* Live-Ertrag im Planungsschritt */
body.planner-ui:not(#s):not(#t) .plan-yield{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 14px;margin:10px 0 0;padding:12px 16px;border-radius:14px;background:#f5faf6;box-shadow:inset 0 0 0 1px rgba(46,125,50,.14)}
body.planner-ui:not(#s):not(#t) .plan-yield[hidden]{display:none}
body.planner-ui:not(#s):not(#t) .plan-yield strong{font-size:18px;font-weight:600;letter-spacing:-.01em;color:var(--s-ink)}
body.planner-ui:not(#s):not(#t) .plan-yield span{font-size:var(--s-t-caption);color:var(--s-muted)}

/* Der Live-Ertrag schwebt als kleine Karte über der Karte, direkt über der Planungs-Statusanzeige. */
body.planner-ui.project-master-embed[data-planner-step="3"]:not(#s):not(#t) #plan-yield{position:absolute!important;left:76px;bottom:184px;z-index:6;flex-direction:column;align-items:flex-start;gap:2px;width:auto;max-width:340px;margin:0;padding:10px 14px;border-radius:16px;background:rgba(255,255,255,.88);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);box-shadow:0 6px 24px rgba(0,0,0,.12),inset 0 0 0 1px rgba(0,0,0,.05)}
body.planner-ui.project-master-embed[data-planner-step="3"]:not(#s):not(#t) #plan-yield span{font-size:11px;line-height:1.35}
@media (max-width:820px){
  body.planner-ui.project-master-embed[data-planner-step="3"]:not(#s):not(#t) #plan-yield{left:76px;bottom:auto;top:14px}
}

/* Dachschritt: Die Werkzeugleiste bricht in einem schmalen Fenster um, statt links aus dem Bild zu ragen. */
body.planner-ui.project-master-embed:not(#s):not(#t) .roof-tools-row{flex-wrap:wrap!important;justify-content:center;max-width:calc(100% - 16px);row-gap:4px}
/* Wand-Editor: Die Gebäude-Infokarte hatte durch eine allgemeine Raster-Regel drei schmale Spalten. */
body.planner-ui.project-master-embed:not(#s):not(#t) .master-building-geometry{display:block!important;padding:14px 16px!important;border:0!important;border-radius:16px!important;background:var(--s-fill)!important}
body.planner-ui.project-master-embed:not(#s):not(#t) .master-building-geometry small{font-size:11px!important;letter-spacing:.06em!important;line-height:1.35}
body.planner-ui.project-master-embed:not(#s):not(#t) .master-building-geometry strong{margin:6px 0 8px!important;font-size:var(--s-t-body)!important}
body.planner-ui.project-master-embed:not(#s):not(#t) .master-building-geometry dl div{display:grid!important;grid-template-columns:minmax(64px,auto) 1fr;gap:10px;font-size:var(--s-t-caption)!important}
body.planner-ui.project-master-embed:not(#s):not(#t) .master-building-geometry dd{text-align:right;overflow-wrap:anywhere}
/* Die Werkzeugleiste darf die volle Breite ihres Bereichs nutzen und bricht dann in höchstens zwei Zeilen um. */
body.planner-ui.project-master-embed[data-planner-step="2"]:not(#s):not(#t) .roof-workbar{grid-column:1/-1!important;width:100%!important;max-width:100%}

/* Eigene Weiter-Leiste im 3D-Modus: Die Leiste des 2D-Editors liegt sonst verdeckt unter dem 3D-Bild. */
body.planner-ui.project-master-shell:not(#s):not(#t) .view3d-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 4px 0}
body.planner-ui.project-master-shell:not(#s):not(#t) .view3d-actions[hidden]{display:none}

/* Statusfarben: grün nur für abgeschlossen, gelb für offene Prüfung, rot für Kollisionen */
body.planner-ui.project-master-shell:not(#s):not(#t) .readiness-banner:is([data-tone=open],[data-tone=warn]){background:var(--s-warn-tint)!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .readiness-banner:is([data-tone=open],[data-tone=warn]) small{color:var(--s-warn)!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .readiness-banner[data-tone=error]{background:var(--s-err-tint)!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .readiness-banner[data-tone=error] small{color:var(--s-err)!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .readiness-banner[data-tone=error] strong{color:var(--s-err)!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .surface-result[data-tone=open]>small{color:var(--s-warn)!important}

/* Drehen direkt an der Auswahl: schwebende Leiste unten in der Zeichenfläche, unabhängig vom Werkzeug-Panel */
.plan-card>.solar-canvas{position:relative}
body.planner-ui:not(#s):not(#t) .quick-rotate-bar:not([hidden]){position:absolute;left:50%;bottom:14px;transform:translateX(-50%);z-index:7;display:flex;align-items:center;gap:6px;padding:6px 8px 6px 14px;border-radius:var(--s-r-pill);background:rgba(255,255,255,.94);-webkit-backdrop-filter:saturate(180%) blur(24px);backdrop-filter:saturate(180%) blur(24px);box-shadow:0 8px 28px rgba(0,0,0,.16),0 0 0 1px rgba(0,0,0,.05)}
body.planner-ui:not(#s):not(#t) .quick-rotate-bar b{font-size:var(--s-t-label);font-weight:600;color:var(--s-ink-2);margin-right:4px}
body.planner-ui:not(#s):not(#t) .quick-rotate-bar button{min-height:32px!important;height:32px!important;padding:0 12px!important;border:0!important;border-radius:var(--s-r-pill)!important;background:var(--s-fill)!important;color:var(--s-ink)!important;font-size:var(--s-t-label)!important;font-weight:500!important;box-shadow:none!important}
body.planner-ui:not(#s):not(#t) .quick-rotate-bar button:hover{background:var(--s-fill-2)!important}

/* 3D: Auswahlkarte einklappbar */
body.planner-ui.project-master-shell:not(#s):not(#t) .viewer-3d-info[data-collapsed]{display:none!important}
body.planner-ui.project-master-shell:not(#s):not(#t) .viewer-3d-info-toggle{position:absolute;right:20px;top:56px;z-index:4;min-height:28px;padding:0 12px;border:0;border-radius:var(--s-r-pill);background:rgba(255,255,255,.9);color:var(--s-ink-2);font-family:inherit;font-weight:500;font-size:var(--s-t-caption);line-height:28px;box-shadow:0 2px 10px rgba(0,0,0,.12);cursor:pointer}
body.planner-ui.project-master-shell:not(#s):not(#t) .viewer-3d-info-toggle:hover{background:#fff;color:var(--s-ink)}

/* Zaunplan: Kollisionsmeldung direkt über der Zeichenfläche, ohne ein Detailfeld zu öffnen */
body.planner-ui:not(#s):not(#t) .canvas-panel{position:relative}
body.planner-ui:not(#s):not(#t) .fence-collision-overlay:not([hidden]){position:absolute;left:16px;right:16px;bottom:16px;top:auto;z-index:6;margin:0;padding:10px 16px;border:0;border-radius:12px;background:var(--s-err-tint);color:var(--s-err);font-size:var(--s-t-label);font-weight:600;box-shadow:0 4px 18px rgba(0,0,0,.12);pointer-events:none}

.build-stamp{position:fixed;left:12px;bottom:3px;z-index:2;font-size:10px;line-height:1.2;color:var(--s-faint,#8e8e93);pointer-events:none;user-select:text}

/* Schmale Fenster: Ertragskarte ausblenden, sie überdeckt sonst Werkzeugleiste und Zeichenfläche (Ertrag steht im Ergebnis) */
@media (max-width:700px){
  body.planner-ui.project-master-embed[data-planner-step="3"]:not(#s):not(#t) #plan-yield{display:none!important}
}

body.planner-ui:not(#s):not(#t) .orientation-note:not([hidden]){margin:8px 0 0;padding:10px 14px;border-radius:12px;background:var(--s-warn-tint);color:var(--s-warn);font-size:var(--s-t-caption);line-height:1.4}

/* Fehler melden */
.bug-report-open{margin-top:8px;min-height:36px;padding:0 14px;border:0;border-radius:var(--s-r-pill,999px);background:var(--s-fill,#f2f2f7);color:var(--s-ink-2,#3a3a3c);font:500 var(--s-t-label,13px)/1 inherit;font-family:inherit;cursor:pointer}
.bug-report-open:hover{background:var(--s-fill-2,#e5e5ea)}
.bug-report-open.floating{position:fixed;left:14px;bottom:122px;z-index:60;width:236px}
@media(max-width:900px){.bug-report-open.floating{left:auto;right:12px;bottom:84px;width:auto;box-shadow:0 2px 10px rgba(0,0,0,.14)}}
.bug-report-backdrop{position:fixed;inset:0;z-index:2000;display:grid;place-items:center;padding:16px;background:rgba(0,0,0,.38);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.bug-report-card{width:min(640px,100%);max-height:calc(100dvh - 32px);overflow:auto;padding:22px;border-radius:20px;background:#fff;color:var(--s-ink,#1d1d1f);box-shadow:0 24px 80px rgba(0,0,0,.28);display:grid;gap:12px}
.bug-report-card h2{margin:0;font-size:20px;font-weight:600}
.bug-report-hint{margin:0;font-size:13px;color:var(--s-muted,#6e6e73);line-height:1.45}
.bug-report-preview{min-height:120px;max-height:260px;overflow:hidden;display:grid;place-items:center;border-radius:12px;background:#f5f5f7;color:var(--s-muted,#6e6e73);font-size:13px}
.bug-report-preview img{max-width:100%;max-height:260px;object-fit:contain;display:block}
.bug-report-card textarea,.bug-report-card input[type=text]{width:100%;box-sizing:border-box;padding:10px 12px;border:1px solid rgba(0,0,0,.14);border-radius:12px;font:inherit;font-size:14px;background:#fff}
.bug-report-tools,.bug-report-actions{display:flex;gap:8px;flex-wrap:wrap}
.bug-report-actions{justify-content:flex-end}
.bug-report-card button{min-height:38px;padding:0 16px;border:0;border-radius:999px;font:inherit;font-size:14px;font-weight:500;cursor:pointer}
.bug-report-secondary{background:#f2f2f7;color:#1d1d1f}
.bug-report-send{background:#0071e3;color:#fff}
.bug-report-card button:disabled{opacity:.55;cursor:default}
.bug-report-status{margin:0;min-height:18px;font-size:13px;color:#b25e00}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]) .bug-report-card{background:#2c2c2e;color:#f5f5f7}:root:not([data-theme=light]) .bug-report-card textarea,:root:not([data-theme=light]) .bug-report-card input[type=text]{background:#1c1c1e;color:#f5f5f7;border-color:rgba(255,255,255,.18)}:root:not([data-theme=light]) .bug-report-secondary{background:#3a3a3c;color:#f5f5f7}}
