/* DesignX Admin surfaces, scoped to the workspace and its overlays. */
body:has(#app .simple-shell) {
  --panel-dark: #171a21;
  --panel-top: #13151d;
  --panel-card: #10121a;
  --panel-rule: #30333c;
  --panel-type: #f3f5f8;
  --panel-secondary: #acb5c3;
  --panel-selected: #17344a;
  --panel-blue: #56aef4;
  --panel-tint: #222a36;
  --control-edge: #47789e;
  --field-fill: #25272d;
  --field-height: 34px;
  --illustration-tint: #36445a92;
  --danger: #ffb2ac;
  --danger-wash: #3b262d;
  --success: #80d4aa;
  --dialog-scrim: #07090db0;
  --field-placeholder: #98a4b5;
  --logo-checker-light: #252b36;
  --logo-checker-dark: #191e26;
  --workspace-scheme: dark;
  --ink: var(--panel-type);
  --muted: var(--panel-secondary);
  --line: var(--panel-rule);
  --paper: var(--panel-dark);
  --surface: #20252e;
  --surface-warm: var(--panel-card);
  --wash: var(--panel-selected);
  --soft: #242c3a;
  --canvas: #151a22;
  --admin-selected: var(--panel-selected);
  --admin-accent: #91caff;
  --admin-highlight: var(--panel-blue);
  --accent: var(--admin-accent);
  --accent-strong: var(--admin-accent);
  --accent-light: #176ca7;
  --accent-hover: #237cb6;
  --focus: var(--panel-blue);
  --control-radius: 5px;
  --tile-radius: 4px;
  --panel-radius: 6px;
  --workspace-glass: #1d222bee;
  --workspace-shadow: 0 6px 18px #0709112c, inset 0 1px 0 #ffffff05;
  background: var(--paper);
}
:root[data-workspace-theme=light] body:has(#app .simple-shell) {
  --panel-dark: #f2f2f2;
  --panel-top: #eaeaea;
  --panel-card: #fcfcfc;
  --panel-rule: #d1d1d1;
  --panel-type: #333;
  --panel-secondary: #505050;
  --panel-selected: #cfdeee;
  --panel-blue: #1976b7;
  --panel-tint: #e3eaf1;
  --control-edge: #8cabc7;
  --field-fill: #e5e5e5;
  --illustration-tint: #cfdeeeaf;
  --danger: #a62b22;
  --danger-wash: #f9e0dc;
  --success: #1a6848;
  --dialog-scrim: #15192259;
  --field-placeholder: #626972;
  --logo-checker-light: #f8f8f8;
  --logo-checker-dark: #e4e4e4;
  --workspace-scheme: light;
  --surface: #fff;
  --soft: #e6e6e6;
  --canvas: #e6e6e6;
  --admin-accent: #165683;
  --accent-light: #176ca7;
  --accent-hover: #125787;
  --workspace-glass: #fcfcfcee;
  --workspace-shadow: 0 6px 18px #141c3010;
}
.simple-shell,
#app:has(.simple-shell) ~ :is(#modal, .font-picker-panel, .studio-select-menu, #toast) {
  color: var(--ink);
  color-scheme: var(--workspace-scheme);
  accent-color: var(--panel-blue);
}
.simple-shell {
  --glass-surface: var(--workspace-glass);
  --glass-edge: var(--line);
  --glass-depth: var(--workspace-shadow);
  --workspace-header-height: 64px;
  --workspace-dock-width: 184px;
  --workspace-inset: clamp(12px, 2.3vw, 28px);
  --panel-inset: clamp(13px, 1.9vw, 24px);
  background: var(--paper);
}

.simple-shell > .workspace > .simple-topbar {
  height: var(--workspace-header-height);
  padding-inline: clamp(16px, 2.6vw, 36px);
  background: var(--panel-top);
  border-color: var(--line);
  color: var(--ink);
  box-shadow: 0 4px 18px #14141417;
}
/* The workspace dock lives outside the full-screen design canvas. */
.simple-shell:not(.studio-shell) > .workspace {
  display: grid;
  grid-template-columns: var(--workspace-dock-width) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 100svh;
}
.simple-shell > .workspace > .simple-topbar { grid-column: 1 / -1; }
.workspace-dock {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: calc(100svh - var(--workspace-header-height));
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 8px;
  background: var(--panel-top);
  border-right: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.2;
}
.workspace-dock a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
}
.workspace-dock a:hover { background: var(--surface); }
.workspace-dock a[aria-current] {
  background: var(--admin-selected);
  border-color: var(--control-edge);
  color: var(--admin-accent);
  font-weight: 650;
}
.workspace-dock-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  border-radius: var(--tile-radius);
  background: color-mix(in srgb, var(--dock-color, var(--focus)) 16%, var(--panel-card));
  color: var(--dock-color, var(--admin-accent));
}
.workspace-dock-icon svg { width: 15px; height: 15px; }
[data-dock-section=audience] { --dock-color: var(--success); }
[data-dock-section=search] { --dock-color: #ad9ae5; }
[data-dock-section=settings] { --dock-color: var(--muted); }
:root[data-workspace-theme=light] [data-dock-section=search] { --dock-color: #67469d; }
.simple-shell > .workspace > main { min-width: 0; }
.simple-shell > .workspace > .page {
  width: 100%;
  padding: clamp(24px, 3.2vw, 44px) clamp(18px, 3.2vw, 46px) 58px;
  font-size: 14px;
}
.simple-shell > .workspace > .creative-launcher {
  min-height: calc(100svh - var(--workspace-header-height));
}
.simple-shell > .workspace > .focused-starter {
  padding: clamp(20px, 2.7vw, 42px);
}
.simple-topbar .product-lockup { flex-shrink: 0; }
.simple-topbar .product-lockup:focus-visible { outline-color: var(--focus); }
.workspace-breadcrumb { display: flex; align-items: center; gap: 12px; }
.workspace-breadcrumb a { color: var(--ink); text-decoration: none; }
.workspace-breadcrumb a:hover { text-decoration: underline; }
.workspace-breadcrumb .current-section { color: var(--muted); }
.simple-shell .account-menu > summary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.simple-shell .account-menu > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.simple-shell .account-menu > div { color: var(--ink); border-radius: 8px; box-shadow: 0 12px 32px #17171729; }
.simple-shell .account-menu button { border-radius: 5px; }
.simple-shell .account-menu button:hover { background: var(--wash); }
.workspace-appearance {
  min-inline-size: 0;
  margin: 9px 0;
  padding: 7px;
  border: 0;
  border-bottom: 1px solid var(--line);
}
.workspace-appearance legend { padding: 0; color: var(--muted); font-size: 12px; }
.workspace-appearance > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: var(--panel-top);
}
.workspace-appearance label { min-width: 0; cursor: pointer; }
.workspace-appearance label span {
  display: grid;
  place-items: center;
  min-height: 34px;
  padding: 3px;
  border: 1px solid transparent;
  border-radius: 3px;
  color: var(--ink);
  font-size: 12px;
}
.workspace-appearance label:hover span { background: var(--surface); }
.workspace-appearance input:checked + span {
  background: var(--wash);
  border-color: var(--control-edge);
  color: var(--accent-strong);
  font-weight: 650;
}
.workspace-appearance input:focus-visible + span { outline: 2px solid var(--focus); }
.newsletter-review-actions { align-items: center; flex-wrap: wrap; margin: 10px 0; }
.newsletter-review-actions p { margin: 0; overflow-wrap: anywhere; }
.newsletter-from { overflow-wrap: anywhere; }
.newsletter-review-issues { padding-inline-start: 20px; }
.newsletter-recipient-list { margin: 10px 0; }
.newsletter-recipient-list ul { max-height: 175px; overflow: auto; padding-inline-start: 22px; overflow-wrap: anywhere; }
.newsletter-phone-preview {
  display: block;
  width: min(100%, 390px);
  min-height: 380px;
  margin: 14px auto;
  border: 1px solid var(--line);
  background: #fff;
}
.native-embed-panel { display: grid; gap: 10px; margin-block: 18px; }
.native-embed-panel :is(h3,p,.field) { margin: 0; }
.native-embed-panel h3 { padding-top: 12px; border-top: 1px solid var(--line); font-size: 15px; }
.native-embed-panel textarea { font: 12px/1.5 monospace; resize: vertical; }
.native-embed-panel > button { justify-self: start; }
.native-embed-check { display: grid; gap: 10px; }
.native-embed-check > button { justify-self: start; }
.native-embed-check [data-native-check-result]:empty { display: none; }
.native-embed-check [data-native-check-result] ul { padding-inline-start: 20px; }
.native-embed-check [data-native-check-result] { margin-top: 8px; }
.group-connected-design { display: grid; gap: 4px; }
.simple-shell .group-connected-links .group-submissions-link {
  display: inline-block;
  justify-self: start;
  margin-left: 10px;
  padding: 4px 8px;
  background: transparent;
  color: var(--accent-strong);
  box-shadow: none;
}

/* DesignX panel hierarchy uses small title bars and a consistent control scale. */
.simple-shell > .workspace > .page .page-heading {
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.simple-shell > .workspace > .page .page-heading h1,
.simple-shell .starter-heading h1 {
  font: 550 clamp(25px, 3vw, 34px)/1.15 var(--app-font);
  letter-spacing: -.034em;
}
.simple-shell > .workspace > .page :is(.panel, .hub-activity, .studio-entry, .group-contacts-panel, .saved-work-card, .group-card) {
  border-radius: var(--panel-radius);
}
.simple-shell > .workspace > .page .button {
  min-height: 36px;
  padding-block: 8px;
  border-radius: var(--control-radius);
}
.simple-shell > .workspace > .page .button.small { min-height: 32px; }
.simple-shell :is(.settings-nav, .crm-navigation) {
  position: static;
  display: flex;
  flex-flow: row nowrap;
  gap: 4px;
  overflow-x: auto;
  margin: 0 0 18px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
  background: var(--panel-top);
}
.simple-shell :is(.settings-nav button, .crm-navigation a) {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 12px;
  border-radius: var(--control-radius);
  font-size: 13px;
  white-space: nowrap;
}
.simple-shell :is(.settings-nav button:hover, .crm-navigation a:hover) { background: var(--surface); }
.simple-shell :is(.settings-nav button[aria-pressed=true], .crm-navigation a[aria-current]) {
  color: var(--admin-accent);
  background: var(--admin-selected);
  box-shadow: none;
  font-weight: 600;
}
.simple-shell :is(.settings-nav button, .crm-navigation a):focus-visible { outline-color: var(--focus); outline-offset: -2px; }
.simple-shell .settings-content .settings-panel { padding: clamp(17px, 2.5vw, 24px); }
.simple-shell :is(.settings-card-head, .group-contacts-head) {
  border-bottom: 1px solid var(--line);
}
.simple-shell .settings-card-head { padding-bottom: 10px; }
.simple-shell .group-contacts-head { padding-block: 12px; }
.simple-shell .group-contacts-panel .group-toolbar { padding-block: 9px; }
.simple-shell .connection-tile { border-radius: var(--panel-radius); }
.simple-shell .connections-gallery > h2 { padding-bottom: 8px; border-bottom: 1px solid var(--line); }

.design-gallery-section { margin-bottom: 25px; }
.design-gallery-section > h2 {
  margin-bottom: 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.simple-shell .design-gallery { gap: 12px; }
.simple-shell .design-gallery > a {
  border-radius: var(--control-radius);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.simple-shell .design-gallery > a:is(:hover, :focus-visible) {
  border-color: var(--admin-highlight);
  box-shadow: 0 0 0 1px var(--admin-highlight);
}
.simple-shell .design-gallery > a > strong { padding: 10px 12px; font-weight: 600; }
.simple-shell .design-gallery > a > strong small { font-size: 11px; }
.simple-shell .design-gallery-art { min-height: clamp(155px, 14vw, 198px); }
.simple-shell .starter-heading { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.simple-shell .starter-recipe[aria-pressed=true] {
  border-color: var(--admin-accent);
  box-shadow: 0 0 0 1px var(--admin-accent);
  background: var(--admin-selected);
}
.simple-shell .starter-style .creative-layout-options button[aria-pressed=true] {
  border-color: var(--admin-accent);
  background: var(--admin-selected);
}
#app:has(.simple-shell) ~ #modal {
  border-radius: var(--panel-radius);
  border: 1px solid var(--line);
  background-color: var(--paper);
  box-shadow: 0 16px 48px #0008;
}
#app:has(.simple-shell) ~ #modal::backdrop { background: var(--dialog-scrim); }
#app:has(.simple-shell) ~ #modal .dialog-head {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
#app:has(.simple-shell) ~ #modal .dialog-head h2 { font-size: 19px; font-weight: 600; }

.simple-shell > .workspace > .page :is(.button.primary, .studio-entry-action.button),
#app:has(.simple-shell) ~ #modal .button.primary {
  color: #fff;
  background: var(--accent-light);
  border-color: var(--accent-light);
}
.simple-shell > .workspace > .page :is(.button.primary, .studio-entry-action.button):hover,
#app:has(.simple-shell) ~ #modal .button.primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.simple-shell > .workspace > .page .brand-kit {
  background-image: radial-gradient(ellipse at 0% 0%, #6d9bcc14, transparent 62%);
}
/* The shared picker controls also serve the dark editor. */
.simple-shell .brand-kit :is(.studio-select-trigger, .font-picker-trigger) {
  background: var(--surface) !important;
  border-color: var(--line) !important;
  color: var(--ink) !important;
}
.simple-shell .brand-kit :is(.studio-select-trigger, .font-picker-trigger):focus-visible {
  outline-color: var(--focus);
}
.simple-shell .connection-tile {
  background: var(--surface-warm);
}
.simple-shell .connection-tile:hover,
.simple-shell .connection-tile:focus-visible {
  background: var(--surface);
  border-color: var(--control-edge);
}
.simple-shell .connection-tile-photofolio .connection-tile-icon { background: var(--wash); color: var(--accent-strong); }
.simple-shell .connection-tile-status:not(.is-connected) { color: var(--muted); }
.simple-shell .usage-panel .plan-option.plan-option-studio {
  background: var(--wash);
  border-color: var(--control-edge);
}
.simple-shell .usage-meter {
  --usage-fill: #57a6e6;
  --usage-reserved: #acbcd0;
  --usage-track: #7893b333;
}
.simple-shell .research-usage-panel .usage-meter {
  --usage-fill: #ad94e6;
  --usage-reserved: #c7b7e5;
  --usage-track: #9d82cd33;
}
.simple-shell .media-usage .usage-meter {
  --usage-fill: #69c69c;
  --usage-reserved: #aecbbd;
  --usage-track: #729e8a33;
}

.simple-shell .creative-studio {
  --editor-base: var(--paper);
  --editor-panel: var(--surface);
  --editor-bar: var(--panel-top);
  --editor-line: var(--line);
  --editor-selection: var(--wash);
  --editor-selected-ink: var(--admin-accent);
  color: var(--ink);
  background: var(--editor-base);
}
.creative-studio :is(.creative-toolbar, .creative-status, .creative-rail) {
  background-color: var(--editor-bar);
  border-color: var(--editor-line);
}
.creative-studio :is(#creative-inspector, #creative-selection-toolbar, #creative-spacing-toolbar, .creative-tool-picker) {
  background-color: var(--editor-panel);
  border-color: var(--editor-line);
}
.creative-studio :is(.creative-editor-toolbar, .creative-rail, #creative-selection-toolbar) button[aria-pressed=true] {
  background: var(--editor-selection);
  border-color: #4d83ab;
  color: var(--editor-selected-ink);
}
.creative-studio .creative-editor-toolbar .creative-tool-icon.creative-primary {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: #fff;
}
.creative-studio .creative-editor-toolbar .creative-tool-icon.creative-primary:hover { background: var(--accent-hover); }
.creative-studio :is(.creative-editor-toolbar, .creative-rail, #creative-selection-toolbar) :focus-visible {
  outline-color: var(--editor-selected-ink);
}

:root[data-workspace-theme=light] .simple-shell .creative-studio {
  --editor-base: var(--paper);
  --editor-panel: var(--panel-card);
  --editor-bar: var(--panel-top);
  --editor-line: var(--line);
  --editor-selection: var(--wash);
  --editor-selected-ink: var(--admin-accent);
  color: var(--ink);
}
:root[data-workspace-theme=light] .creative-studio :is(.creative-scroll,.creative-spread) {
  background-color: var(--canvas);
  background-image: radial-gradient(#50505032 .7px, transparent .7px);
}
:root[data-workspace-theme=light] .creative-studio :is(.creative-toolbar button,.creative-rail button,.creative-status,.creative-exit,.creative-tool-picker),
:root[data-workspace-theme=light] .creative-studio :is(#creative-inspector,#creative-selection-toolbar) button {
  color: var(--ink);
}
:root[data-workspace-theme=light] .creative-studio :is(.creative-toolbar button,.creative-rail button,.creative-tool-picker button,.creative-tool-group-detail summary):hover {
  background-color: var(--surface);
}
:root[data-workspace-theme=light] .creative-studio :is(.creative-toolbar,.creative-rail,#creative-selection-toolbar,#creative-inspector) :is(button[aria-pressed=true],button[aria-expanded=true]) {
  color: var(--admin-accent);
  background: var(--wash);
  border-color: var(--control-edge);
}
:root[data-workspace-theme=light] .creative-studio .creative-primary-actions .creative-primary {
  color: #fff;
  background: var(--accent-light);
  border-color: var(--accent-light);
}
:root[data-workspace-theme=light] .creative-studio .creative-primary-actions .creative-primary:hover { background: var(--accent-hover); }
:root[data-workspace-theme=light] .creative-studio :is(.creative-email-review,.creative-template-action,.creative-save-button,.creative-spacing-chip,.creative-nine-grid) {
  color: var(--ink);
  border-color: var(--line);
  background-color: var(--surface);
}
:root[data-workspace-theme=light] .creative-studio .creative-design-title #creative-name { color: var(--ink) !important; }
:root[data-workspace-theme=light] .creative-studio :is(.creative-toolbar > span,.creative-output-kind,#creative-inspector :is(label,p,summary,h3),.creative-layout-grids > div > span,#creative-selection-toolbar label,#creative-spacing-toolbar :is(strong,span)) {
  color: var(--muted) !important;
}
:root[data-workspace-theme=light] .creative-studio :is(#creative-inspector,.creative-tool-group,.creative-tool-group-detail,.creative-action,.creative-geometry,.creative-layout-panel,.creative-document-controls) {
  border-color: var(--line);
}
:root[data-workspace-theme=light] .creative-studio :is(.creative-save-button[data-save-state=error],#creative-selection-toolbar .creative-quick-delete) {
  color: var(--danger);
}
.creative-tool-picker .workspace-appearance {
  margin-bottom: 0;
  padding: 7px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

@media (max-width: 930px) {
  .simple-shell:not(.studio-shell) > .workspace { display: block; }
  .workspace-dock {
    position: static;
    min-height: 0;
    flex-direction: row;
    padding: 7px 12px;
    border: 0;
    border-bottom: 1px solid var(--line);
  }
}
@media (max-width: 600px) {
  .workspace-dock {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 5px 8px;
  }
  .workspace-dock a {
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-height: 50px;
    padding: 4px 2px;
    text-align: center;
    font-size: 11px;
  }
  .workspace-dock-icon { width: 21px; height: 21px; }
  .simple-shell :is(.settings-nav button, .crm-navigation a) { min-height: 42px; padding-inline: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .simple-shell .design-gallery > a { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .simple-shell { background: var(--paper); --glass-surface: var(--surface); }
  .simple-shell .connection-tile { background: var(--surface); }
}


.auth {
  --brand-charcoal: var(--product-charcoal);
  --brand-panel: #222326;
  --brand-rose: #f5f5f7;
  --accent-hover: #dedee3;
}
.auth-story { background: var(--product-wash); color: var(--product-ink); }
.auth-story .wordmark.product-lockup { color: var(--product-ink); }
.auth-story h1 em { color: #56595e; }


/* Activity and Design Studio share the same title bars and selected states. */
.simple-shell :is(.hub-activity, .design-studio-panel, .focused-starter) {
  border: 1px solid var(--panel-rule);
  border-radius: 7px;
  background: var(--panel-dark);
  color: var(--panel-type);
}
.simple-shell > .workspace > .page section.hub-activity {
  padding: 0;
  background-color: var(--panel-dark);
  border-color: var(--panel-rule);
  backdrop-filter: none;
  box-shadow: 0 8px 24px #141c301c;
}
.simple-shell .studio-panel-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 41px;
  padding: 7px 14px;
  border-bottom: 1px solid var(--panel-rule);
  border-radius: 6px 6px 0 0;
  background: var(--panel-top);
  color: var(--panel-type);
}
.studio-panel-titlebar :is(h1,h2,.studio-panel-name) {
  margin: 0;
  font: 700 13px/1.3 var(--app-font);
  letter-spacing: .045em;
  text-transform: uppercase;
}
.simple-shell .hub-activity-heading h2 { font-size: 13px; letter-spacing: .045em; }
.simple-shell .hub-activity-heading > span { color: var(--panel-secondary); }
.simple-shell .hub-stats { margin: 0; padding: 12px; gap: 8px; }
.simple-shell > .workspace > .page .hub-stats li {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 60px;
  padding: 9px 11px;
  border-color: var(--panel-rule);
  border-radius: 5px;
  background-color: var(--panel-card);
}
.hub-stat-copy { min-width: 0; }
.simple-shell .hub-stat-label { display: block; color: var(--panel-type); font-size: 12px; font-weight: 600; }
.simple-shell .hub-stats strong {
  display: block;
  margin-top: 4px;
  color: var(--panel-secondary);
  font-size: 17px;
  font-weight: 500;
}
.simple-shell .hub-stat-icon { flex: 0 0 31px; width: 31px; height: 31px; background: #173045; color: #7dcbff; }
.simple-shell .hub-stats li:nth-child(2) .hub-stat-icon { background: #16312b; color: #6bd9a5; }
.simple-shell .hub-stats li:nth-child(3) .hub-stat-icon { background: #352e21; color: #f3cc79; }
.simple-shell .hub-stats li:nth-child(4) .hub-stat-icon { background: #2c263e; color: #c6aff3; }
:root[data-workspace-theme=light] .simple-shell .hub-stat-icon { background: #e1ecf7; color: #1c5d8a; }
:root[data-workspace-theme=light] .simple-shell .hub-stats li:nth-child(2) .hub-stat-icon { background: #deeee5; color: #236347; }
:root[data-workspace-theme=light] .simple-shell .hub-stats li:nth-child(3) .hub-stat-icon { background: #f4ead4; color: #73541d; }
:root[data-workspace-theme=light] .simple-shell .hub-stats li:nth-child(4) .hub-stat-icon { background: #ebe5f6; color: #63478d; }

.design-studio-body { padding: clamp(15px, 2vw, 25px); }
.design-studio-body > h2,
.simple-shell .focused-starter .starter-heading h1 {
  margin: 0 0 5px;
  font-size: clamp(23px, 2.15vw, 30px);
  font-weight: 550;
  letter-spacing: -.025em;
}
.design-studio-body > p { margin-bottom: 18px; color: var(--panel-secondary); }
.design-studio-panel .design-gallery-section:last-child { margin-bottom: 0; }
.design-studio-panel .design-gallery-section > h2 {
  color: var(--panel-type);
  border-color: var(--panel-rule);
}
.design-studio-panel .design-gallery {
  grid-template-columns: repeat(3, minmax(0, 265px));
}
.simple-shell > .workspace > .page .design-studio-panel .design-gallery > a {
  border-color: var(--panel-rule);
  background: var(--panel-card);
  color: var(--panel-type);
  box-shadow: none;
}
.simple-shell > .workspace > .page .design-studio-panel .design-gallery > a:is(:hover,:focus-visible) {
  border-color: var(--panel-blue);
  box-shadow: 0 0 0 1px var(--panel-blue);
}
.simple-shell .design-studio-panel .design-gallery-art {
  min-height: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-color: var(--panel-rule);
}
.design-studio-panel .design-gallery-art > .studio-sample {
  max-width: 84%;
  transform: none;
}
.simple-shell .design-studio-panel .design-gallery > a > strong {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.design-studio-panel .design-gallery > a > strong small {
  color: var(--panel-secondary);
  letter-spacing: normal;
  text-transform: none;
}
.simple-shell .studio-panel-titlebar .button {
  min-height: 30px;
  padding: 5px 9px;
  border-color: var(--panel-rule);
  border-radius: 4px;
  background: var(--panel-dark);
  color: var(--panel-type);
}
.simple-shell .studio-panel-titlebar .button:hover { background: var(--panel-selected); }

.simple-shell > .workspace > .focused-starter {
  min-height: 0;
  margin: clamp(12px, 2vw, 26px);
  padding: 0;
}
.studio-starter-body { padding: clamp(13px, 2vw, 25px); }
.simple-shell .focused-starter .starter-heading { margin-bottom: 16px; border-color: var(--panel-rule); }
.simple-shell .focused-starter :is(.starter-heading p,.starter-next,.starter-preview .studio-panel-titlebar span) { color: var(--panel-secondary); }
.simple-shell .focused-starter {
  --starter-ink: var(--panel-type);
  --starter-muted: var(--panel-secondary);
  --starter-line: var(--panel-rule);
}
.focused-starter :is(.starter-heading,.starter-setup,.starter-workspace) { max-width: 1320px; }
.focused-starter .starter-workspace {
  grid-template-columns: minmax(0, 1fr) minmax(210px, .48fr);
  gap: clamp(12px, 1.8vw, 22px);
  margin-top: 20px;
}
.focused-starter .starter-setup { gap: 4px; margin-inline: auto; }
.starter-strip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.simple-shell .focused-starter .starter-setup h2 {
  font-size: 13px;
  font-weight: 700;
  margin: 0;
}
.starter-strip-controls { display: flex; gap: 5px; }
.simple-shell .starter-strip-controls button {
  width: 34px;
  min-height: 32px;
  padding: 0;
  border-radius: 5px;
  line-height: 1;
}
.starter-strip-controls button:disabled { cursor: default; opacity: .38; }
.focused-starter .starter-recipes {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  min-width: 0;
  padding: 5px 4px 10px;
  scroll-padding-inline: 4px;
  scroll-snap-type: inline proximity;
  scrollbar-width: thin;
  overscroll-behavior-inline: contain;
}
.simple-shell .focused-starter .starter-recipe {
  position: relative;
  flex: 0 0 clamp(150px, 20vw, 194px);
  min-width: 0;
  grid-template-rows: auto 1fr;
  padding: 0;
  gap: 0;
  border-radius: var(--control-radius);
  scroll-snap-align: start;
  background: var(--panel-card);
}
.simple-shell .focused-starter .starter-recipe:is(:hover,:has(button[aria-pressed=true])) {
  border-color: var(--panel-blue);
}
.simple-shell .focused-starter .starter-recipe:has(button[aria-pressed=true]) {
  background: var(--panel-selected);
  box-shadow: 0 0 0 1px var(--panel-blue);
}
.starter-card-art {
  display: grid;
  place-items: start center;
  min-width: 0;
  height: 144px;
  padding: 9px 11px 0;
  overflow: hidden;
  border-radius: 4px 4px 0 0;
  border-bottom: 1px solid var(--panel-rule);
  background: var(--soft);
}
.starter-card-sheet {
  position: relative;
  width: var(--popup-card-width, 100%);
  height: 100%;
  overflow: hidden;
  box-shadow: 0 3px 12px #0002;
}
.popup-recipes .starter-card-art { padding-bottom: 9px; }
.starter-card-canvas {
  position: absolute;
  inset: 0 auto auto 0;
  transform-origin: top left;
  color-scheme: light;
}
.starter-card-canvas :is(.creative-text,.creative-button) > span,
.starter-card-canvas .source-inputs span { color: inherit; font-size: inherit; }
.focused-starter .starter-recipe > button {
  min-height: 42px;
  padding: 8px 9px;
  border: 0;
  color: var(--panel-type);
  background: transparent;
  text-align: left;
  overflow-wrap: anywhere;
}
.focused-starter .starter-recipe > button strong { font-size: 12px; line-height: 1.25; }
.focused-starter .starter-recipe > button::after { content: ''; position: absolute; inset: 0; border-radius: var(--control-radius); }
.focused-starter .starter-recipe:has(button:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.focused-starter .starter-recipe > button:focus-visible { outline: none; }
.focused-starter .vertical-starter-body {
  display: grid;
  grid-template-columns: clamp(178px, 18vw, 230px) minmax(0, 1fr);
  align-items: start;
  gap: 16px clamp(14px, 2vw, 24px);
}
.simple-shell .focused-starter .vertical-starter-body > .starter-heading {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0;
}
.focused-starter .vertical-starter-body > :is(.starter-heading, .starter-setup, .starter-workspace) { max-width: none; }
.focused-starter .vertical-starter-body > :is(.starter-setup, .starter-workspace) { margin: 0; }
.focused-starter .vertical-starter-body > .starter-workspace { grid-template-columns: minmax(0, 1fr); }
.focused-starter .vertical-starter-body > .starter-setup {
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
  overflow: hidden;
}
.simple-shell .focused-starter .vertical-starter-body .starter-strip-header {
  min-height: 40px;
  padding: 4px 8px 4px 12px;
  border-top: 0;
  border-bottom: 1px solid var(--line);
  background: var(--panel-top);
}
.focused-starter .vertical-starter-body + .studio-starter-actions { padding-inline: var(--panel-inset); }
.focused-starter .vertical-recipes {
  --popup-card-height: 144px;
  --popup-card-peek: 72px;
  flex-direction: column;
  block-size: calc(var(--popup-card-height) + 2 * var(--popup-card-peek));
  overflow: hidden auto;
  padding: var(--popup-card-peek) 4px;
  scroll-padding: 0;
  scroll-snap-type: block mandatory;
  border-radius: 0;
  background: var(--soft);
}
.simple-shell .focused-starter .vertical-recipes .starter-recipe {
  flex-basis: var(--popup-card-height);
  grid-template-rows: minmax(0, 1fr) auto;
  scroll-snap-align: center;
}
.vertical-recipes .starter-card-art { height: 100%; }
.vertical-recipes .starter-card-sheet { max-width: 165px; }
.vertical-recipes .starter-recipe:not(:hover, :focus-within, :has([aria-pressed=true])) .starter-card-sheet {
  opacity: .65;
}
@media (max-width: 600px) {
  .focused-starter .vertical-starter-body { grid-template-columns: minmax(0, 1fr); }
}
.simple-shell .focused-starter :is(.starter-preview,.starter-settings) {
  display: block;
  grid-row: auto;
  justify-items: stretch;
  min-width: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
  background: var(--panel-card);
}
.starter-preview .studio-panel-titlebar span {
  flex: none;
  font-size: 11px;
}
.starter-preview-stage {
  max-height: clamp(235px, 45svh, 540px);
  overflow: auto;
  padding: clamp(10px, 1.8vw, 22px);
  background: var(--soft);
  border-radius: 0 0 6px 6px;
}
.starter-preview-stage:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.starter-preview-stage .starter-preview-well { margin-inline: auto; }
.starter-settings-fields {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
}
.vertical-starter-body .starter-settings-fields {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.starter-settings-fields .starter-group-assignment { margin: 0; }
.starter-settings-fields .starter-style { border-bottom: 0; }
.starter-settings-fields .starter-style:last-child summary { padding-bottom: 0; }
.simple-shell .focused-starter :is(.creative-recipe-control,.starter-destination) .studio-select-trigger {
  background: var(--panel-card) !important;
  color: var(--panel-type) !important;
  border-color: var(--panel-rule) !important;
}
.simple-shell .focused-starter .starter-style .creative-layout-options button[aria-pressed=true] {
  border-color: var(--panel-blue);
  background: var(--panel-selected);
}
.simple-shell .focused-starter :is(button,summary):focus-visible { outline-color: var(--panel-blue); }
.studio-starter-actions {
  position: sticky;
  bottom: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border-top: 1px solid var(--panel-rule);
  border-radius: 0 0 6px 6px;
  background: var(--paper);
}
.studio-starter-actions > .button {
  flex: none;
  margin-left: auto;
  min-height: 36px;
  border-color: #378ac5;
  border-radius: 4px;
  color: #fff;
  background: #14689f;
}
.studio-starter-actions > .button:hover { background: #1976af; }
@media (max-width: 730px) {
  .design-studio-panel .design-gallery { grid-template-columns: repeat(2, minmax(0, 265px)); }
  .focused-starter .starter-workspace { grid-template-columns: minmax(0, 1fr); }
  .starter-card-art { height: 130px; }
  .starter-preview-stage { max-height: 60svh; }
}
@media (max-width: 1120px) {
  .simple-shell .hub-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 460px) {
  .design-studio-panel .design-gallery { grid-template-columns: minmax(0, 1fr); }
  .simple-shell > .workspace > .page .hub-stats li { align-items: start; flex-direction: column; gap: 5px; }
  .simple-shell .hub-stat-icon { flex-basis: auto; width: 27px; height: 27px; }
  .studio-starter-actions .starter-next { font-size: 11px; line-height: 1.3; }
}


/* Keep authoring previews independent from the signed-in interface. */
.simple-shell :is(.creative-artboard, #brand-preview),
#app:has(.simple-shell) ~ #modal .creative-artboard { color-scheme: light; }

.simple-shell > .workspace > .page .studio-entry {
  background: radial-gradient(ellipse 230px 165px at 50% 40%, var(--illustration-tint), transparent), var(--surface-warm);
}
.simple-shell .studio-entry-pause { color: var(--muted); }
.simple-shell :is(.brand-color, .brand-logo-tile, .brand-preview-stage) {
  background: var(--surface-warm);
  border-color: var(--line);
}
.simple-shell .brand-logo-tile:is(:hover,:focus-within,.is-dragging) {
  background: var(--surface);
  border-color: var(--focus);
  outline-color: var(--focus);
}
.simple-shell .brand-logo-thumb {
  color: var(--accent);
  background: repeating-conic-gradient(var(--logo-checker-light) 0 25%, var(--logo-checker-dark) 0 50%) 0 0 / 12px 12px;
}
.simple-shell .brand-logo-arrow { color: var(--accent); }

.simple-shell > .workspace > .page .finder-search { background: var(--glass-surface); }
.simple-shell .finder-illustration { background: radial-gradient(ellipse at center, var(--illustration-tint), var(--panel-top)); }
.simple-shell .finder-examples button {
  background: var(--surface-warm);
  border-color: var(--line);
  color: var(--muted);
}
.simple-shell .finder-examples button:hover {
  background: var(--wash);
  border-color: var(--control-edge);
  color: var(--ink);
}
#app:has(.simple-shell) ~ #modal .finder-quote-stats > div { background: var(--surface-warm); }
.simple-shell > .workspace > .page .group-contacts-panel .group-contacts-head { background-color: var(--panel-top); }
.simple-shell .group-empty { background: var(--surface-warm); }
.simple-shell :is(.group-connection-icon, .connection-tile-email .connection-tile-icon) {
  background: var(--wash);
  color: var(--accent);
}
.simple-shell .connection-tile-status.is-connected { color: var(--success); }
.simple-shell .group-more[open] > summary { border-color: var(--focus); }
.simple-shell :is(.group-card-delete:hover, .group-contact-remove:hover, .group-contact-remove[aria-expanded=true]) {
  background: var(--danger-wash);
  color: var(--danger);
}
.simple-shell .usage-panel :is(.usage-meter,.plan-option,.credit-balances > div,.usage-metrics > div) {
  background: var(--surface-warm);
  border-color: var(--line);
  box-shadow: none;
}
.simple-shell :is(.notice.error,.error-message), #app:has(.simple-shell) ~ #modal .error-message { color: var(--danger); }

body:has(#app .simple-shell) :is(.font-picker-panel,.studio-select-menu) {
  background: var(--panel-top);
  border-color: var(--line);
  color: var(--ink);
  box-shadow: 0 12px 30px #0009;
}
#app:has(.simple-shell) ~ .font-picker-panel :is(header,footer,.font-picker-sample,.font-picker-search) {
  background: var(--surface-warm);
  border-color: var(--line);
  color: var(--muted);
}
#app:has(.simple-shell) ~ .font-picker-panel :is(button,input,[role=option],.font-picker-sample strong) { color: var(--ink); }
#app:has(.simple-shell) ~ .font-picker-panel input {
  background: var(--surface);
  border-color: var(--line);
}
#app:has(.simple-shell) ~ .font-picker-panel [role=option] { border-color: var(--line); }
#app:has(.simple-shell) ~ .font-picker-panel :is([role=option][aria-selected=true],[role=option]:hover,[role=option].is-highlighted) {
  background: var(--wash);
}
body:has(#app .simple-shell) .studio-select-menu [role=option] { color: var(--ink); }
body:has(#app .simple-shell) .studio-select-menu [role=option]:is(:hover,:focus,[aria-selected=true]) {
  background: var(--wash);
}

#app:has(.simple-shell) ~ #toast { background: var(--panel-top); border: 1px solid var(--line); }

.simple-shell :is(.field input,.field textarea)::placeholder,
#app:has(.simple-shell) ~ :is(#modal,.font-picker-panel) :is(input,textarea)::placeholder {
  color: var(--field-placeholder);
  opacity: 1;
}
.simple-shell .font-picker-trigger:focus-visible,
#app:has(.simple-shell) ~ .font-picker-panel input:focus-visible { outline-color: var(--focus); }
#app:has(.simple-shell) ~ .font-picker-panel :is(small,[data-font-sample-name],.font-picker-option-check) { color: var(--muted); }
#app:has(.simple-shell) ~ .font-picker-panel [role=option][aria-selected=true] { box-shadow: inset 3px 0 var(--focus); }

.simple-shell .hub-entry-grid .workspace-tools {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.simple-shell .workspace-tools > .studio-panel-titlebar {
  justify-content: flex-start;
  border: 1px solid var(--line);
}
.simple-shell > .workspace > .page .workspace-tools .studio-entry {
  flex: 1;
  border-top: 0;
  border-radius: 0 0 var(--panel-radius) var(--panel-radius);
}
.simple-shell .workspace-tools .studio-entry-action { align-self: end; }

.simple-shell :is(.settings-card-head h2,.connections-gallery > h2,.group-contacts-head h2) {
  font-weight: 650;
  letter-spacing: -.01em;
}
.simple-shell > .workspace > .page :is(.settings-panel, .group-contacts-panel, .form-inbox-panel) {
  box-shadow: none;
}
.simple-shell :is(.group-card h2,.group-card h3) {
  font-family: var(--app-font);
  font-weight: 600;
}
.simple-shell :is(.group-card,.saved-work-card,.connection-tile):is(:hover,:focus-within) {
  border-color: var(--control-edge);
}

/* Controls belong to the Admin interface. The artboards and public previews carry their own styles. */
.simple-shell :is(.page,.starter-settings,.creative-media-body) .field
  :is(input:not([type=range],[type=checkbox],[type=radio],[type=file]),select,textarea),
#app:has(.simple-shell) ~ #modal .field
  :is(input:not([type=range],[type=checkbox],[type=radio],[type=file]),select,textarea),
.creative-studio #button-link input[type=url] {
  min-height: var(--field-height);
  padding: 6px 9px;
  border-color: transparent;
  border-radius: var(--control-radius);
  background: var(--field-fill);
  color: var(--ink);
}
.simple-shell :is(.page,.starter-settings) :is(.studio-select-trigger,.font-picker-trigger),
#app:has(.simple-shell) ~ #modal :is(.studio-select-trigger,.font-picker-trigger) {
  min-height: var(--field-height);
  border-color: transparent !important;
  background: var(--field-fill) !important;
  color: var(--ink) !important;
}
.simple-shell :is(.page,.starter-settings,.creative-studio) :is(.field input,.field select,.field textarea):focus-visible,
#app:has(.simple-shell) ~ #modal .field :is(input,select,textarea):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}
.creative-studio :is(#creative-spacing-toolbar .creative-spacing-chip,.creative-nine-grid,.creative-image-fit) {
  border-color: var(--line);
  background: var(--panel-top);
  color: var(--muted);
}
.creative-studio :is(#creative-inspector,#creative-selection-toolbar,#creative-spacing-toolbar)
  :is(input,select,textarea,.font-picker-trigger,.studio-select-trigger),
.creative-studio .creative-editor-toolbar .studio-select-trigger {
  border-color: transparent !important;
  background-color: var(--field-fill) !important;
  color: var(--ink) !important;
}
.creative-studio #creative-inspector {
  padding: 12px;
  color: var(--ink);
}
.creative-studio #creative-inspector > header {
  padding: 0 0 8px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.creative-studio #creative-inspector > label:not(:has(textarea)),
.creative-studio #creative-inspector .creative-pair label {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 6px;
}
.creative-studio #creative-inspector .creative-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.creative-studio #creative-inspector :is(input,select,textarea,.font-picker-trigger,.studio-select-trigger) {
  min-width: 0;
  min-height: 28px;
  width: 100%;
  padding: 4px 7px;
}
.creative-studio #creative-inspector :is(.creative-layout-panel,.creative-document-controls,.creative-geometry) {
  border-color: var(--line);
}
.creative-studio #creative-selection-toolbar {
  border-radius: var(--panel-radius);
  color: var(--ink);
  scrollbar-width: thin;
}
.creative-studio #creative-selection-toolbar :is(.creative-quick-hint,.creative-quick-type,label) {
  color: var(--muted);
}
.creative-studio :is(.creative-quick-divider,.creative-tool-group,.creative-tool-group-detail) {
  border-color: var(--line);
}
.creative-studio #creative-selection-toolbar button:hover,
.creative-studio #creative-inspector button:hover { background-color: var(--wash); }
.creative-studio :is(.creative-quick-delete,.creative-save-button[data-save-state=error]) { color: var(--danger); }
.creative-studio :is(.creative-element.is-selected,.creative-selection-chrome) { outline-color: var(--panel-blue); }
.creative-studio .creative-selection-chrome :is(.creative-move,.creative-resize) {
  border-color: var(--panel-blue);
  background: var(--panel-card);
  color: var(--admin-accent);
}
.creative-studio :is(.creative-move,.creative-resize,.creative-spacing-chip input):focus-visible {
  outline-color: var(--focus);
}
.creative-studio .creative-artboard.has-center-guides::before,
.creative-studio .creative-artboard.has-center-guides::after {
  background: color-mix(in srgb, var(--panel-blue) 38%, transparent);
}
.creative-studio :is(.creative-padding-box, .creative-row-box, .creative-snap-guides > div) {
  border-color: color-mix(in srgb, var(--panel-blue) 65%, transparent);
}
.creative-studio .creative-artboard.snap-center-x::before,
.creative-studio .creative-artboard.snap-center-y::after {
  background: var(--panel-blue);
  box-shadow: none;
}
.creative-studio :is(.creative-row-box > span,.creative-snap-guides span) {
  background: var(--panel-card);
  color: var(--ink);
}
.creative-studio .creative-rail button[aria-expanded=true] {
  background: var(--wash);
  color: var(--admin-accent);
}

.creative-studio #creative-button-link {
  position: fixed;
  inset: auto;
  margin: 0;
  width: min(320px, calc(100vw - 16px));
  max-height: calc(100dvh - 16px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
  overflow: auto;
  background: var(--panel-card);
  color: var(--ink);
  box-shadow: 0 12px 32px #0a0d164d;
}
#creative-button-link .studio-panel-titlebar { min-height: 34px; padding: 3px 10px; }
#creative-button-link .icon-button { width: 30px; height: 30px; }
#button-link { padding: 12px; }
#button-link .field { margin-bottom: 9px; }
#button-link .row { flex-wrap: wrap; }
#button-link .button { min-height: 32px; padding: 5px 9px; }
#button-link .error-message:empty { display: none; }
#button-link .error-message { color: var(--danger); }
#button-link .row { margin-top: 10px; }
#button-link .button.primary { background: var(--accent-light); color: #fff; }

.creative-studio .creative-media-tray {
  max-height: min(440px, calc(100% - 62px));
  padding: 0;
  border-color: var(--line);
  border-radius: var(--panel-radius);
  background: var(--panel-card);
  color: var(--ink);
}
.creative-studio .creative-media-tray .studio-panel-titlebar { position: sticky; top: 0; z-index: 1; }
.creative-media-tray .studio-panel-titlebar button { width: 30px; height: 30px; border-color: transparent; font-size: 20px; }
.creative-media-body { padding: 12px; }
.creative-media-body > p { margin: 0 0 9px; color: var(--muted); font-size: 12px; }
.creative-media-tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.creative-media-tools .field { flex: 1; max-width: 300px; margin: 0; }
.creative-media-tools [role=status] { color: var(--muted); white-space: nowrap; font-size: 12px; }
.creative-media-tray .photo-media-list {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(min(100%, 100px),1fr));
  max-height: none;
  overflow: visible;
}
.creative-media-tray .photo-media-list button {
  display: grid;
  width: 100%;
  height: auto;
  border-color: var(--line);
  background: var(--paper);
  text-align: start;
}
.creative-media-tray .photo-media-list button:is(:hover,:focus-visible) { border-color: var(--focus); }
.creative-media-tray .photo-media-list button[hidden] { display: none; }
.creative-media-tray .photo-media-list img { aspect-ratio: 4 / 3; height: auto; }
.creative-media-tray .photo-media-list span { padding: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.creative-media-body [data-photo-empty] { margin-top: 8px; }

@media (max-width: 650px) {
  .creative-studio #creative-inspector :is(input,select,textarea) { min-height: 36px; }
  #creative-button-link input[type=url], .creative-media-tools input { font-size: 16px; }
}

.creative-studio .creative-element [contenteditable]:focus-visible {
  outline-color: var(--panel-blue);
}

/* Match the dock and its content panels across the signed-in routes. */
.simple-shell > .workspace > .workspace-panel {
  align-self: start;
  width: calc(100% - 2 * var(--workspace-inset));
  margin: var(--workspace-inset) auto;
  padding: 0 var(--panel-inset) var(--panel-inset);
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
  background: var(--paper);
}
.simple-shell .workspace-section-bar {
  justify-content: flex-start;
  gap: 9px;
  min-height: 43px;
  margin: 0 calc(-1 * var(--panel-inset)) var(--panel-inset);
  padding: 6px var(--panel-inset);
}
.workspace-section-bar .workspace-section-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  color: inherit;
  text-decoration: none;
}
.workspace-section-back > svg {
  width: 13px;
  height: 13px;
  transform: rotate(180deg);
  color: var(--muted);
}
.workspace-section-back:hover > svg { color: var(--accent); }
.workspace-dock a > svg,
.settings-nav button > svg {
  width: 13px;
  height: 13px;
  margin-left: auto;
  flex-shrink: 0;
  color: var(--muted);
}
.workspace-dock a[aria-current] > svg,
.settings-nav button[aria-pressed=true] > svg { color: var(--accent); }
.workspace-panel .page-heading {
  align-items: center;
  gap: 10px 20px;
  flex-wrap: wrap;
}
.simple-shell > .workspace > .workspace-panel .page-heading {
  margin-bottom: 16px;
  padding-bottom: 12px;
}
.simple-shell > .workspace > .workspace-panel .page-heading h1 {
  margin: 0 0 5px;
  font-size: clamp(22px, 2.6vw, 29px);
  letter-spacing: -.024em;
}
.workspace-panel .page-heading .eyebrow { margin-bottom: 4px; }
.workspace-panel .page-heading p { font-size: 13px; }
.simple-shell .workspace-panel .crm-navigation {
  margin-bottom: 15px;
  background: var(--panel-card);
}
.simple-shell .workspace-panel .crm-navigation a {
  min-height: 32px;
}
.simple-shell .workspace-panel .hub-activity {
  margin: 0 0 15px;
  box-shadow: none;
}
.simple-shell .workspace-panel .hub-entry-grid {
  margin: 0 0 15px;
  gap: 12px;
}
.simple-shell .workspace-panel .workspace-tools,
.simple-shell .workspace-panel .brand-kit { margin-bottom: 0; }
.simple-shell > .workspace > .workspace-panel .brand-kit { background-image: none; }
.workspace-panel .hub-stats strong {
  color: var(--ink);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

/* The settings dock and compact input rows follow the Admin subpanel layout. */
.simple-shell .settings-workspace {
  display: grid;
  grid-template-columns: 160px minmax(0,1fr);
  align-items: start;
  gap: 14px;
  max-width: none;
}
.simple-shell .settings-nav {
  position: sticky;
  top: 12px;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  background: var(--panel-card);
}
.simple-shell .settings-nav button { gap: 7px; padding: 5px 7px; }
.settings-nav .workspace-dock-icon { width: 23px; height: 23px; }
.settings-nav button > span:nth-child(2) { min-width: 0; }
.settings-content #settings-form { --settings-inset: clamp(14px, 2vw, 22px); padding: var(--settings-inset); }
#settings-form > .studio-panel-titlebar {
  margin: calc(-1 * var(--settings-inset)) calc(-1 * var(--settings-inset)) 6px;
  padding-inline: var(--settings-inset);
}
.settings-content #settings-form .settings-fields { display: block; }
.settings-content #settings-form .settings-fields .field {
  grid-template-columns: minmax(0,1fr) minmax(0, 66%);
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  margin: 0;
  border-bottom: 1px solid var(--line);
}
#settings-form .settings-fields .field input { width: 100%; }
.settings-content #settings-form .settings-detail {
  border-top: 0;
  margin-top: 0;
}
.simple-shell .settings-content > section > details.panel {
  padding-block: 12px;
  margin: 12px 0;
  background-color: var(--panel-card);
}
.simple-shell .settings-content > section > details.panel > summary {
  font-weight: 650;
}
.simple-shell .connections-gallery {
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
}
.connections-grid {
  grid-template-columns: repeat(auto-fit,minmax(min(100%,230px),1fr));
  gap: 8px;
  padding: 12px;
}
.simple-shell .connection-tile {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: start;
  gap: 9px;
  min-height: 0;
  padding: 10px;
  box-shadow: none;
  background: var(--panel-card);
}
.connection-tile-copy { display: grid; gap: 3px; }
.connection-tile-copy strong { font-size: 13px; }
.connection-tile-copy .connection-tile-status { margin-top: 1px; }
.connection-tile .connection-tile-icon {
  width: 31px;
  height: 31px;
  border-radius: var(--tile-radius);
}
.connection-tile .connection-tile-icon :is(img,svg) { width: 18px; height: 18px; }

/* Directories and searches use the same compact card grid. */
.workspace-panel .group-grid {
  grid-template-columns: repeat(auto-fit,minmax(min(100%,260px),1fr));
  gap: 9px;
}
.simple-shell > .workspace > .page .group-card .research-card {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  align-content: center;
  align-items: start;
  gap: 9px;
  min-height: 96px;
  padding: 10px 48px 10px 10px;
  border-radius: var(--panel-radius);
  box-shadow: none;
  background: var(--panel-card);
  overflow-wrap: anywhere;
}
.group-card-copy { display: grid; gap: 3px; }
.group-card-copy strong { font-size: 15px; line-height: 1.25; }
.group-card-description,
.group-card-counts { color: var(--muted); font-size: 12px; line-height: 1.3; }
.group-card-counts { font-size: 11px; }
.workspace-panel .group-directory-actions { margin: 0 0 14px; }
.workspace-panel .group-email-history { margin-top: 12px; }
.simple-shell > .workspace > .page :is(.finder-search-panel,.finder-lists) {
  --finder-inset: clamp(12px, 2vw, 20px);
  padding: var(--finder-inset);
  box-shadow: none;
}
.finder-search-panel > .studio-panel-titlebar,
.finder-lists > .studio-panel-titlebar {
  margin: calc(-1 * var(--finder-inset)) calc(-1 * var(--finder-inset)) 12px;
  padding-inline: var(--finder-inset);
}
.simple-shell > .workspace > .page .finder-search {
  margin: 0;
  padding: 0;
  gap: 16px;
  background: transparent;
}
.finder-search form { padding: 0; }
.finder-search-intro { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.workspace-panel .saved-work-grid { gap: 9px; }
.simple-shell > .workspace > .page .saved-work-card {
  padding: 12px 14px;
  gap: 4px;
  background: var(--panel-card);
  box-shadow: none;
}
.simple-shell .design-studio-panel { box-shadow: none; }
.simple-shell .design-gallery-section > h2 {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: var(--tile-radius);
  background: var(--panel-top);
}

/* Panel title bars use one scale in the editor and its settings dialogs. */
.creative-studio #creative-inspector > header {
  margin: -12px -12px 10px;
  padding: 7px 11px;
  background: var(--panel-top);
}
.creative-studio #creative-inspector > header button { color: var(--muted); }
#app:has(.simple-shell) ~ #modal .dialog-head h2 {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
}
@media (max-width: 1120px) {
  .workspace-dock a > svg { display: none; }
}
@media (max-width: 930px) {
  .simple-shell .settings-workspace {
    grid-template-columns: minmax(0,1fr);
    gap: 10px;
  }
  .simple-shell .settings-nav { position: static; flex-direction: row; }
  .settings-nav button > svg { display: none; }
}
@media (max-width: 560px) {
  .simple-shell .settings-nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .simple-shell .settings-nav button { min-height: 36px; }
  .workspace-panel .page-heading { align-items: start; }
  .simple-shell > .workspace > .page .finder-search { grid-template-columns: minmax(0,1fr); }
  .workspace-panel .finder-illustration { display: none; }
}

.workspace-section-name { display: flex; align-items: center; gap: 9px; }
.simple-shell > .workspace > .page:has(> .design-studio-panel) { padding: var(--workspace-inset); }
.simple-shell > .workspace > .focused-starter { margin: var(--workspace-inset); }
.simple-shell .design-studio-panel > .studio-panel-titlebar,
.simple-shell .focused-starter > .studio-panel-titlebar { padding-inline: var(--panel-inset); }
.studio-starter-body,
.design-studio-body { padding: var(--panel-inset); }
.focused-starter .starter-strip-header {
  padding-block: 6px;
  border-top: 2px solid var(--panel-blue);
}
.simple-shell .focused-starter .starter-strip-header h2 {
  text-transform: uppercase;
  letter-spacing: .045em;
}

.simple-shell .page .brand-kit,
.simple-shell .settings-content .usage-panel {
  --settings-inset: clamp(14px, 2vw, 22px);
  padding: var(--settings-inset);
}
.simple-shell .brand-kit > .studio-panel-titlebar,
.simple-shell .usage-panel > .settings-card-head {
  margin: calc(-1 * var(--settings-inset)) calc(-1 * var(--settings-inset)) 12px;
  padding: 7px var(--settings-inset);
  min-height: 41px;
  border-radius: 6px 6px 0 0;
  background: var(--panel-top);
}
.simple-shell :is(.settings-content .studio-panel-titlebar,.usage-panel > .settings-card-head,.group-contacts-head) h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.brand-kit-intro {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}
.simple-shell .finder-search-panel { margin-bottom: 12px; }

.hub-stat-link { text-decoration-offset: 3px; }
.hub-stat-link:hover { color: var(--accent); }
.booking-heading-actions,
.booking-filters,
.booking-links,
.booking-calendar-status,
#booking-scheduler-actions .row { flex-wrap: wrap; }
.simple-shell .booking-filters {
  display: flex;
  align-items: end;
  gap: 10px;
  padding: 12px;
  margin-bottom: 10px;
}
.booking-filters .field { margin: 0; min-width: 0; }
.booking-filters .field:first-child { flex: 1 1 190px; max-width: 360px; }
#booking-scheduler-actions:not(:empty) { margin-bottom: 10px; }
.simple-shell .booking-card { padding: 0; margin-bottom: 8px; }
.booking-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px 14px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
  overflow-wrap: anywhere;
}
.booking-summary::-webkit-details-marker { display: none; }
.booking-summary:hover { background: var(--panel-top); }
.booking-summary::after {
  content: '';
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--muted);
  border-bottom: 1px solid var(--muted);
  transform: rotate(45deg);
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  pointer-events: none;
}
.booking-card details[open] .booking-summary::after { transform: translateY(4px) rotate(225deg); }
.booking-guest,
.booking-appointment { display: grid; gap: 4px; }
.booking-guest small,
.booking-appointment time { color: var(--muted); font-size: 12px; }
.booking-state {
  grid-column: 3;
  grid-row: 1;
  margin-right: 17px;
  padding: 3px 7px;
  border-radius: var(--tile-radius);
  color: var(--success);
  background: color-mix(in srgb, var(--success) 14%, var(--panel-card));
  font-size: 11px;
  font-weight: 600;
}
.booking-state.is-cancelled { background: var(--panel-top); color: var(--muted); }
.booking-details { padding: 12px 14px; border-top: 1px solid var(--line); }
.booking-details dl { display: grid; gap: 6px; margin: 0 0 14px; }
.booking-details dl > div { display: grid; grid-template-columns: minmax(100px,1fr) minmax(0,2fr); gap: 10px; }
.booking-details dt { color: var(--muted); }
.booking-details dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.simple-shell .capture-admin-directory {
  margin-block: 14px 0;
  padding: 14px;
}
.simple-shell #saved-schedulers { margin: 0 0 12px; }
.capture-admin-directory > summary { font-weight: 650; cursor: pointer; }
.capture-admin-directory > .row { flex-wrap: wrap; }
.capture-admin-list { list-style: none; margin: 0; padding: 0; }
.capture-admin-list > li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding-block: 12px;
  overflow-wrap: anywhere;
}
.capture-admin-list > li + li { border-top: 1px solid var(--panel-rule); }
.capture-admin-list small { display: block; color: var(--panel-secondary); }
.capture-admin-list .row { flex-wrap: wrap; }
.booking-calendar-status { margin-bottom: 12px; }
.booking-pagination { margin-top: 10px; }
@media(max-width:550px) {
  .booking-summary { grid-template-columns: minmax(0,1fr) auto; }
  .booking-summary::after, .booking-state { grid-column: 2; }
  .booking-appointment { grid-column: 1 / -1; grid-row: 2; }
  .booking-details dl > div { grid-template-columns: minmax(0,1fr); gap: 3px; }
}
