body.pro-designed:has(#branding-view:not([hidden])) {
  --pro-ui-font:var(--brand-body-font),system-ui,sans-serif;
  --studio-edge:min(18px,var(--pro-radius));
  color:var(--brand-page-ink);background:color-mix(in srgb,var(--brand-secondary) 7%,var(--brand-background));
}
.pro-designed:has(#branding-view:not([hidden])) #pilot-notice {display:none}
#branding-view:not([hidden]) {min-width:0}
.pro-designed #branding-view .section-head {margin:0 0 12px}
.pro-designed #branding-view h1 {margin:4px 0;font:600 clamp(30px,3.4vw,48px)/1.1 var(--brand-heading-font)}
#branding-view .pro-section-links {margin:8px 0 16px}
.pro-designed #branding-view .studio-layout {display:grid;grid-template-columns:minmax(0,1.03fr) minmax(0,1fr);align-items:start;gap:clamp(14px,2vw,32px)}
.studio-controls,#branding-view .brand-side {display:grid;grid-template-columns:minmax(0,1fr);align-content:start;gap:16px;min-width:0}
.pro-designed #branding-view .brand-side {position:sticky;top:var(--studio-sticky,14px)}
.pro-designed #branding-view :is(.panel,.studio-drawer) {min-width:0;margin:0;padding:clamp(14px,1.8vw,26px);border:1px solid var(--pro-line);border-radius:var(--studio-edge);color:var(--brand-surface-ink);background:var(--brand-surface)}
.pro-designed #branding-view h2 {font:600 clamp(21px,2.4vw,30px)/1.15 var(--brand-heading-font);color:inherit;margin:0 0 16px}
.pro-designed #branding-view :is(button,summary,select,input:not([type=checkbox]),a.preview-link) {min-height:46px;touch-action:manipulation}
.pro-designed #branding-view :is(input,select,textarea,button) {max-width:100%;min-width:0;font-family:var(--pro-ui-font);box-sizing:border-box}
.pro-designed #branding-view :is(button,a,summary,select,input,textarea):focus-visible {outline:3px solid currentColor;outline-offset:2px}
.pro-designed #branding-view :is(select,textarea,input:not([type=checkbox],[type=color],[type=range])) {color:var(--brand-surface-ink);border-color:var(--pro-line);background:var(--brand-surface)}
.pro-designed #branding-view .studio-swatches {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.studio-swatches label {display:flex;flex-direction:column;gap:4px;min-width:0;overflow-wrap:anywhere;margin:0;padding:8px;background:var(--pro-wash);border-radius:var(--studio-edge);font-weight:650}
.pro-designed #branding-view .studio-swatches input {order:-1;display:block;width:100%;padding:0;cursor:pointer;border:1px solid var(--pro-line);border-radius:min(8px,var(--studio-edge));overflow:hidden;background:transparent}
.studio-swatches input::-webkit-color-swatch-wrapper {padding:0}
.studio-swatches input::-webkit-color-swatch {border:0}
.studio-swatches output {font:550 .79rem/1.2 ui-monospace,monospace;color:var(--pro-muted)}
.studio-type {margin-top:18px}
.pro-designed #branding-view .studio-type .font-comparison,.pro-designed #branding-view #brand-layout-controls {padding:8px 12px;border:1px solid var(--pro-line);border-radius:var(--studio-edge);margin:12px 0}
.pro-designed #branding-view .font-gallery {grid-template-columns:repeat(auto-fit,minmax(min(150px,100%),1fr))}
.pro-designed #branding-view .font-choice {background:var(--brand-surface);color:var(--brand-surface-ink);border-color:var(--pro-line)}
.pro-designed #branding-view .font-choice[aria-pressed=true] {background:var(--pro-wash);border-color:var(--brand-accent)}
.pro-designed #branding-view .font-choice small {color:var(--pro-muted)}
.pro-designed #branding-view .studio-check {min-height:48px;display:flex;gap:10px;align-items:center}
.studio-check input {accent-color:var(--brand-accent)}
.pro-designed #branding-view .studio-drawer {padding:0}
.pro-designed #branding-view .studio-drawer>summary {padding:12px 16px;align-content:center;cursor:pointer;font-weight:650}
.studio-drawer-content {padding:2px 16px 16px;min-width:0}
.pro-designed #brand-form>.studio-drawer {margin-block:12px}
#studio-logo-stage {background:linear-gradient(125deg,var(--brand-background),var(--brand-surface));color:var(--brand-page-ink);font:600 2rem/1.2 var(--brand-heading-font);display:grid;place-items:center;min-height:116px;padding:14px;border-radius:var(--studio-edge);overflow-wrap:anywhere}
#studio-logo-stage img {width:auto;height:auto;max-width:100%;max-height:110px;object-fit:contain}
#studio-logo-modes,#studio-views,.studio-wallet-modes,.studio-publish {display:flex;gap:6px;flex-wrap:wrap}
#studio-logo-modes {margin:10px 0}
.pro-designed #branding-view :is(#studio-logo-modes,#studio-views,.studio-wallet-modes)>button {flex:1 1 auto;min-height:46px;padding:8px 10px;font-size:.94rem;line-height:1.2;border:1px solid var(--pro-line);background:var(--brand-surface);color:var(--brand-surface-ink);border-radius:var(--studio-edge)}
.pro-designed #branding-view :is(#studio-logo-modes,#studio-views,.studio-wallet-modes)>button[aria-pressed=true] {border-color:var(--brand-accent);background:var(--pro-wash);box-shadow:inset 0 -3px var(--brand-accent);font-weight:750}
.studio-wallet-modes {margin-top:8px}
.studio-publish #brand-publish {flex:1 1 auto}
#studio-scene {display:grid;place-items:center;min-height:280px;margin-top:14px;padding:clamp(10px,1.7vw,26px);background:color-mix(in srgb,var(--brand-secondary) 14%,var(--brand-background));border-radius:var(--studio-edge)}
#studio-device {box-sizing:border-box;min-width:0;width:min(100%,310px);padding:7px;border-radius:26px;background:#26272a;box-shadow:0 12px 24px #15182026}
#studio-device-content {border-radius:19px;background:var(--brand-background);color:var(--brand-page-ink);overflow:hidden;font:500 .94rem/1.4 var(--brand-body-font);overflow-wrap:anywhere}
#studio-scene[data-mode=desktop] #studio-device {width:100%;border-radius:10px;padding:6px}
#studio-scene[data-mode=desktop] #studio-device-content {border-radius:5px}
.studio-page-mast {padding:10px 14px;border-bottom:1px solid var(--brand-border);font:600 1.25rem/1.2 var(--brand-heading-font)}
.studio-mark {display:block;max-width:78%;max-height:42px;width:auto;height:auto;object-fit:contain}
.studio-page-body {display:grid;gap:12px;padding:14px;min-width:0}
.studio-page-photo {margin:0}
.studio-page-photo img {display:block;width:100%;height:auto;max-height:146px;object-fit:contain;border-radius:var(--brand-radius)}
.studio-page-photo figcaption,.studio-kicker {font-size:.7rem}
.studio-story h3 {font:600 clamp(20px,2.1vw,32px)/1.06 var(--brand-heading-font);color:inherit;margin:0}
.studio-story p,.studio-services p {font:inherit;margin:5px 0 0}
.studio-services {min-width:0;border-top:1px solid var(--brand-border);padding-top:9px}
.studio-service {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px;padding:6px 0;font-size:.86rem}
.studio-example-action {display:block;margin:0 14px 14px;padding:10px;text-align:center;border-radius:var(--brand-radius);color:var(--brand-button-ink);background:var(--brand-accent);font-weight:700}
#studio-scene[data-mode=desktop] .studio-page-body:has(figure) {grid-template-columns:minmax(0,1.25fr) minmax(0,1fr)}
#studio-scene[data-mode=desktop] figure {grid-column:2;grid-row:1/span 2}
#studio-scene[data-mode=desktop] .studio-story {grid-column:1;grid-row:1}
.studio-native-pass {margin:15px 10px;padding:18px 14px;border-radius:15px;font:500 .94rem/1.4 system-ui,sans-serif;box-shadow:0 2px 12px #17171725}
.studio-pass-mast {display:flex;gap:7px;align-items:center;margin-bottom:24px}
.studio-pass-mast img {max-width:58%;max-height:48px;object-fit:contain}
.studio-native-pass h3 {font:650 1.6rem/1.15 system-ui,sans-serif;color:inherit;margin:4px 0 20px}
.studio-native-pass small {font-size:.66rem;letter-spacing:.07em}
.studio-native-pass p {margin:3px 0 10px}
.studio-pass-cover {width:100%;max-height:145px;object-fit:contain}
.pro-designed #studio-preview-note {font-size:.85rem;margin:12px 0 0}
#studio-other #brand-preview-card>:not(#brand-mail-preview),#studio-other #pro-brand-preview>p {display:none}
#studio-other .panel {border:0}
.pro-designed #studio-other #brand-preview-card {background:var(--brand-background);color:var(--brand-page-ink)}
.pro-designed #branding-view #site-builder {padding:0;border:0}
.pro-designed #branding-view #brand-preview-card,.pro-designed #branding-view #pro-brand-preview {position:static}
@media(max-width:1180px){.pro-designed #branding-view .brand-side{--studio-sticky:78px}}
@media(max-width:799px){.pro-designed #branding-view .studio-layout{grid-template-columns:minmax(0,1fr)}.pro-designed #branding-view .brand-side{position:static}.studio-swatches label{font-size:.9rem}}
@media(max-height:720px){.pro-designed #branding-view .brand-side{position:static}}
.studio-type summary span {display:inline-block;margin-inline-start:8px;font-size:1.13rem;line-height:1.25}
.studio-type summary::marker {color:var(--brand-surface-ink)}
.pro-designed #brand-form>.studio-check:has(#brand-logo-follow) {display:flex;flex-direction:row-reverse;justify-content:space-between;align-items:center;gap:12px;background:var(--pro-wash);border-radius:var(--studio-edge);padding:9px 12px;margin:12px 0}
.pro-designed #brand-form #brand-logo-follow {appearance:none;position:relative;flex:0 0 44px;width:44px;height:26px;min-height:26px;margin:0;padding:0;background:var(--brand-surface);border:1px solid var(--pro-muted);border-radius:16px;cursor:pointer}
#brand-logo-follow::after {position:absolute;content:"";width:16px;height:16px;left:4px;top:4px;border-radius:50%;background:var(--brand-surface-ink)}
.pro-designed #brand-form #brand-logo-follow:checked {background:var(--brand-accent);border-color:var(--brand-accent)}
#brand-logo-follow:checked::after {left:22px;background:var(--brand-button-ink)}
.pro-designed #branding-view :is(.studio-page-photo figcaption,.studio-kicker) {font-size:.67rem;line-height:1.3}
.studio-page-photo img {max-height:clamp(90px,12vh,140px)}
.pro-designed #branding-view :is(.body-type-preview,.brand-concept) {background:var(--pro-wash);color:var(--brand-surface-ink);border-color:var(--pro-line)}
.pro-designed #branding-view :is(.font-logo-reference p,.body-type-preview small,.body-type-preview p) {color:var(--brand-surface-ink)}
.pro-designed #branding-view #palette-proposal {border-color:var(--pro-line);background:var(--pro-wash);color:var(--brand-surface-ink)}
.pro-designed #branding-view .preview-link {padding:8px 12px}
@media(forced-colors:active){.pro-designed #brand-form #brand-logo-follow{appearance:auto}}

/* The workspace uses the published identity. Swatches, logo and device render the draft. */
.studio-section-title,.studio-preview-toolbar {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}
.studio-section-title>span {font-size:.75rem;color:var(--pro-muted);overflow-wrap:anywhere}
.studio-work-title {display:none}
#studio-variants {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;margin:7px 0}
.pro-designed #studio-variants button {min-height:44px;padding:6px;font-size:.85rem;color:var(--brand-surface-ink);background:var(--brand-surface);border:1px solid var(--pro-line);border-radius:var(--studio-edge)}
.pro-designed #studio-variants button[aria-pressed=true] {background:var(--pro-wash);box-shadow:inset 0 -3px var(--brand-accent)}
#studio-logo-stage:not([data-variant=full]) :is(#studio-logo-sample,#studio-logo-name) {display:none}
#studio-emblem {display:grid;place-items:center;width:86px;height:86px;overflow:hidden;background:var(--brand-background);color:var(--brand-page-ink);border:1px solid var(--brand-border);border-radius:var(--brand-radius)}
#studio-logo-stage #studio-emblem img {display:block;width:100%;height:100%;max-height:none;object-fit:cover}
#studio-wordmark,#studio-emblem>span {font:600 clamp(24px,3vw,40px)/1.1 var(--brand-heading-font);text-align:center;overflow-wrap:anywhere}
#studio-wordmark {color:var(--brand-readable-accent)}
#studio-framing {display:flex;align-items:center;gap:8px;font-size:.8rem}
#studio-framing input {flex:1;min-width:0;accent-color:var(--brand-accent)}
#studio-variant-note {margin:5px 0;color:var(--pro-muted);font-size:.8rem}
.studio-canvas-head {align-self:start;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:5px;width:100%;color:var(--brand-surface-ink);font:600 .72rem/1.3 var(--pro-ui-font);overflow-wrap:anywhere}
.studio-canvas-head span:first-child {background:var(--brand-surface);border-radius:var(--studio-edge);padding:4px 7px}
.studio-pass-notice {display:grid;width:min(100%,290px);padding:9px 13px;gap:1px;background:var(--brand-surface);color:var(--brand-surface-ink);border:1px solid var(--pro-line);border-radius:var(--studio-edge);font:500 .8rem/1.3 var(--pro-ui-font)}
.studio-pass-notice small {color:var(--pro-muted)}
.studio-example-times {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
.studio-example-times small {grid-column:1/-1}
.studio-example-times span {padding:4px;text-align:center;background:var(--brand-surface);color:var(--brand-surface-ink);border:1px solid var(--brand-border);border-radius:var(--brand-radius);font:600 .76rem/1.2 var(--brand-body-font)}
#studio-scene {gap:12px}
.pro-studio.pro-designed #branding-view .section-head {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:9px 13px;margin:0}
.pro-studio.pro-designed #branding-view .section-head h1 {font:650 clamp(19px,1.7vw,26px)/1.15 var(--brand-heading-font);margin:0}
.pro-studio #branding-view .section-head .eyebrow {margin:0 0 2px}
.pro-studio #branding-view .section-head .preview-link {display:inline-flex;align-items:center;min-height:44px;border:0;background:var(--desk-tint);color:var(--brand-surface-ink);border-radius:var(--desk-edge);padding:6px 10px;font-size:.85rem}
.pro-studio #branding-view .pro-section-links {display:flex;gap:6px;overflow-x:auto;flex-wrap:nowrap;margin:4px 0 9px}
.pro-studio #branding-view .pro-section-links a {white-space:nowrap;align-content:center;padding:6px 10px;min-height:44px}
.pro-studio #branding-view .studio-controls,.pro-studio #branding-view .brand-side {gap:10px}
.pro-studio.pro-designed #branding-view .studio-work-title {display:block;font:600 clamp(24px,2.25vw,36px)/1.08 var(--brand-heading-font);margin:3px 0}
.pro-studio.pro-designed #branding-view :is(#brand-form,#studio-logo-panel,.studio-preview-panel) {padding:clamp(12px,1.25vw,19px);border-radius:var(--desk-edge);border:1px solid var(--desk-line)}
.pro-studio.pro-designed #branding-view :is(.studio-section-title,#studio-logo-panel,.studio-preview-toolbar)>h2 {font:650 clamp(17px,1.45vw,24px)/1.15 var(--brand-heading-font);margin:0 0 9px}
.pro-studio #studio-palette-name {background:var(--desk-tint);color:var(--brand-surface-ink);border-radius:var(--desk-edge);padding:3px 7px;margin-bottom:7px}
.pro-studio.pro-designed #branding-view .studio-swatches label {border:1px solid var(--desk-line);border-radius:var(--desk-edge);background:var(--desk-tint);font-size:.87rem;padding:7px;gap:2px}
.pro-studio.pro-designed #branding-view .studio-swatches input {height:44px;min-height:44px;border-radius:var(--desk-edge);margin:0 0 2px}
.pro-studio.pro-designed #brand-form .studio-type summary {display:list-item;background:var(--desk-tint);padding:8px 10px;color:var(--brand-surface-ink);border-radius:var(--desk-edge);font-size:.78rem}
.pro-studio #studio-font-names {font-size:1.12rem;font-weight:600}
.pro-studio.pro-designed #brand-form>.studio-drawer {margin:8px 0}
.pro-studio.pro-designed #brand-form>.studio-check:has(#brand-logo-follow) {background:var(--desk-tint);font-size:.87rem;margin:7px 0}
.pro-studio #branding-view #studio-logo-stage {position:relative;min-height:132px;background:radial-gradient(ellipse at 48% 38%,var(--brand-surface),color-mix(in srgb,var(--brand-accent) 10%,var(--brand-background)));border:1px solid var(--brand-border);border-radius:var(--desk-edge);padding:10px 18px}
.pro-studio #studio-logo-stage #studio-logo-sample {max-height:112px}
.pro-studio.pro-designed #branding-view .studio-publish #brand-publish {background:var(--brand-accent);color:var(--pro-accent-text);min-height:50px;border-radius:var(--desk-edge)}
.pro-studio.pro-designed #branding-view .brand-side {top:calc(var(--desk-bar) + 9px)}
.pro-studio.pro-designed #branding-view .studio-preview-panel {padding:0;overflow:hidden}
.pro-studio .studio-preview-toolbar {gap:6px;padding:9px 10px;border-bottom:1px solid var(--desk-line)}
.pro-studio.pro-designed #branding-view .studio-preview-toolbar>h2 {margin:0}
.pro-studio #branding-view #studio-views {flex-wrap:nowrap;gap:2px}
.pro-studio.pro-designed #branding-view #studio-views button {font-size:.78rem;padding:6px 8px;min-height:44px}
.pro-studio #branding-view #studio-scene {margin:0;border-radius:0;min-height:370px;padding:10px clamp(9px,1.6vw,23px) 17px;background:color-mix(in srgb,var(--brand-secondary) 12%,var(--brand-background))}
.pro-studio #branding-view #studio-device {width:min(100%,280px);border:1px solid var(--desk-line);border-radius:23px;padding:5px}
.pro-studio #studio-scene[data-mode=mobile] #studio-device::before {content:"";display:block;width:44px;height:5px;border-radius:6px;background:#737775;margin:2px auto 5px}
.pro-studio #branding-view #studio-scene[data-mode=desktop] #studio-device {width:100%;border-radius:9px}
.pro-studio #studio-scene[data-mode=mobile] .studio-page-mast {display:flex;align-items:center;justify-content:center;text-align:center}
.pro-studio #studio-scene[data-mode=mobile] .studio-page-body {gap:8px;padding:10px}
.pro-studio #studio-scene[data-mode=mobile] .studio-story {grid-row:1;text-align:center}
.pro-studio #branding-view #studio-preview-note {font-size:.76rem;margin:8px 11px}
.pro-studio #branding-view .studio-wallet-modes {padding:0 8px 6px}
@media(min-width:951px){.pro-studio.pro-designed #branding-view .studio-layout {grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}}
@media(max-width:950px){.pro-studio.pro-designed #branding-view .brand-side {position:static}}
.studio-page-initial {display:inline-grid;place-items:center;min-width:34px;height:34px;padding:0 5px;background:var(--brand-accent);color:var(--brand-button-ink);border-radius:var(--brand-radius);font:650 1rem/1 var(--brand-heading-font)}
.studio-pane-switch {display:none}
.pro-studio.pro-phone-workspace {--desk-width:0px}
.pro-studio.pro-phone-workspace #branding-view .studio-layout {grid-template-columns:minmax(0,1fr)}
.pro-studio.pro-phone-workspace #branding-view .studio-pane-switch {
  position:sticky;top:var(--pro-header,60px);z-index:4;scroll-margin-top:var(--pro-header,60px);
  display:grid;grid-template-columns:1fr 1fr;gap:3px;margin:6px 0;padding:3px;
  border:1px solid var(--desk-line);border-radius:var(--desk-edge);background:var(--brand-surface);
}
.pro-studio.pro-phone-workspace #branding-view .studio-pane-switch button {
  min-height:44px;padding:5px 8px;border:0;border-radius:var(--desk-edge);
  background:var(--brand-surface);color:var(--brand-surface-ink);font:600 .95rem/1.2 var(--pro-ui-font);
}
.pro-studio.pro-phone-workspace #branding-view .studio-pane-switch [aria-pressed=true] {
  background:var(--brand-accent);color:var(--pro-accent-text);
}
.pro-studio.pro-phone-workspace #branding-view[data-pane=edit] .brand-side,
.pro-studio.pro-phone-workspace #branding-view[data-pane=preview] :is(.studio-controls,.pro-section-links),
.pro-studio.pro-phone-workspace #branding-view .pro-section-links a[href="#studio-preview"] {display:none}
.pro-studio.pro-phone-workspace #branding-view .section-head {padding:5px 0}
.pro-studio.pro-phone-workspace #branding-view .section-head h1 {font-size:clamp(24px,7vw,34px)}
.pro-studio.pro-phone-workspace #branding-view .studio-work-title {display:none}
.pro-studio.pro-phone-workspace #branding-view :is(#brand-form,#studio-logo-panel,#brand-direction,#site-builder,#brand-publish) {
  scroll-margin-top:calc(var(--pro-header,60px) + 62px);
}
.pro-studio.pro-phone-workspace #branding-view .studio-preview-toolbar {flex-wrap:wrap}
.pro-studio.pro-phone-workspace #branding-view #studio-views {width:100%}
