/* UI-only foundation shared by the four embedded applications.
   Never target exported art, email HTML, card canvases or client-facing forms. */
html[data-studio-ui="1"] {
  --studio-paper:250 250 249; --studio-surface:241 240 237; --studio-line:222 219 213;
  --studio-ink:26 26 24; --studio-muted:98 97 92; --studio-bg:#fafaf9; --studio-panel:#f1f0ed; --studio-text:#1a1a18; --studio-secondary:#62615c; --studio-border:#dedbd5;
  --p44-canvas:var(--studio-bg); --p44-surface:var(--studio-panel); --p44-surface-2:#eae8e3; --p44-surface-3:#e3e0d9;
  --p44-ink:var(--studio-text); --p44-ink-2:var(--studio-text); --p44-ink-mute:var(--studio-secondary); --p44-ink-quiet:var(--studio-secondary);
  --p44-line:var(--studio-border); --p44-line-strong:#b6b2a9; --p44-font-ui:var(--font-inter,'Inter'),system-ui,sans-serif; --p44-font-display:var(--p44-font-ui);
  --p44-text-xs:12px; --p44-text-sm:14px; --p44-text-base:16px;
  --background:60 9% 98%; --foreground:60 4% 10%; --card:45 13% 94%; --card-foreground:60 4% 10%;
  --border:42 12% 86%; --card-border:42 12% 86%; --muted:45 13% 94%; --muted-foreground:50 3% 37%;
  --primary:60 4% 10%; --primary-foreground:60 9% 98%; --input:40 8% 68%;
  --font-sans:'Inter',system-ui,sans-serif; --font-serif:'Inter',system-ui,sans-serif;
  color-scheme:light;
}
html[data-studio-ui="1"][data-studio-theme="dark"] {
  --studio-paper:23 23 22; --studio-surface:32 32 30; --studio-line:60 59 54; --studio-ink:244 242 237; --studio-muted:193 190 182;
  --studio-bg:#171716; --studio-panel:#20201e; --studio-text:#f4f2ed; --studio-secondary:#c1beb6; --studio-border:#3c3b36;
  --p44-surface-2:#292927; --p44-surface-3:#33332f; --p44-line-strong:#5a584f;
  --background:60 2% 9%; --foreground:43 24% 94%; --card:60 3% 13%; --card-foreground:43 24% 94%;
  --border:50 5% 22%; --card-border:50 5% 22%; --muted:60 3% 13%; --muted-foreground:44 8% 74%;
  --primary:43 24% 94%; --primary-foreground:60 2% 9%; --input:50 7% 34%;
  color-scheme:dark;
}
html[data-studio-ui="1"] body { background:var(--studio-bg); color:var(--studio-text); font-family:var(--font-inter,'Inter'),system-ui,sans-serif; }
html[data-studio-ui="1"] .p44-portal-ui .font-serif { font-family:var(--font-inter,'Inter'),system-ui,sans-serif; }
html[data-studio-ui="1"] .p44-portal-ui .italic { font-style:normal; }
html[data-studio-ui="1"] .p44-portal-ui .chrome,
html[data-studio-ui="1"] .p44-portal-ui .editorial-dateline,
html[data-studio-ui="1"] .p44-portal-ui .editorial-eyebrow { font-size:12px; color:var(--studio-secondary); }
html[data-studio-ui="1"] .p44-portal-ui main>div:not(.signature-studio):not(.logo-library):not(.business-cards) { padding-top:40px; padding-bottom:48px; }
html[data-studio-ui="1"] .p44-portal-ui h1 { font-size:clamp(26px,2.5vw,34px); line-height:1.2; font-weight:600; }
html[data-studio-ui="1"] .p44-portal-ui .editorial-button { background:var(--studio-text); color:var(--studio-bg); text-transform:none; letter-spacing:0; font-size:14px; min-height:44px; }
html[data-studio-ui="1"] .p44-portal-ui .editorial-button--ghost { text-transform:none; letter-spacing:0; font-size:14px; min-height:44px; }
html[data-studio-ui="1"] :focus-visible { outline:2px solid var(--studio-text); outline-offset:3px; }
html[data-studio-ui="1"] .signature-studio {
  --sig-bg:var(--studio-bg); --sig-surface:var(--studio-panel); --sig-text:var(--studio-text); --sig-muted:var(--studio-secondary); --sig-line:var(--studio-border); --sig-button:var(--studio-text); --sig-inverse:var(--studio-bg);
}
html[data-studio-ui="1"] .business-cards {
  --bc-bg:var(--studio-bg); --bc-panel:var(--studio-panel); --bc-soft:var(--studio-panel); --bc-text:var(--studio-text); --bc-muted:var(--studio-secondary); --bc-line:var(--studio-border); --bc-inverse:var(--studio-bg);
}
html[data-studio-ui="1"] .logo-library {
  --logo-bg:var(--studio-bg); --logo-panel:var(--studio-panel); --logo-text:var(--studio-text); --logo-muted:var(--studio-secondary); --logo-line:var(--studio-border); --logo-soft:var(--studio-panel); --logo-inverse:var(--studio-bg);
}
html[data-embed="1"] [data-theme-control],
html[data-embed="1"] [data-studio-chrome],
html[data-embed="1"] [data-testid="button-menu"],
html[data-embed="1"] [data-testid="button-theme-toggle"] { display:none!important; }
.studio-wordmark { display:block; width:176px; height:auto; }
.studio-wordmark--white { display:none; }
[data-studio-theme="dark"] .studio-wordmark--black { display:none; }
[data-studio-theme="dark"] .studio-wordmark--white { display:block; }
html[data-studio-ui="1"] .p44-content { max-width:1400px; padding:40px clamp(20px,4vw,56px); }
html[data-studio-ui="1"] .btn { min-height:44px; }
html[data-studio-ui="1"] .p44-sidebar__brand img { width:176px; height:auto; }
html[data-studio-ui="1"] .font-display,html[data-studio-ui="1"] .display-serif { font-family:var(--font-inter,'Inter'),system-ui,sans-serif; }
html[data-embed="1"] .p44-embed-hide,html[data-embed="1"] .p44-topbar { display:none!important; }
html[data-studio-ui="1"] .text-\[10px\],html[data-studio-ui="1"] .text-\[11px\] { font-size:12px; }
html[data-studio-ui="1"] .logo-stage-label { font-size:12px; }
@media(max-width:720px) {
  html[data-studio-ui="1"] .p44-portal-ui main>div:not(.signature-studio):not(.logo-library):not(.business-cards) { padding:28px 20px; }
  html[data-studio-ui="1"] button,html[data-studio-ui="1"] select { min-height:44px; }
  html[data-studio-ui="1"] input:not([type="checkbox"]):not([type="radio"]),html[data-studio-ui="1"] textarea { font-size:16px; }
  html[data-studio-ui="1"] .toolbar { flex-wrap:wrap; gap:16px; }
}
@media(prefers-reduced-motion:reduce) { html[data-studio-ui="1"] *,html[data-studio-ui="1"] *::before,html[data-studio-ui="1"] *::after { scroll-behavior:auto!important; transition:none!important; animation:none!important; } }
