
body.studio-page {
  --studio-ink: #172638;
  --studio-navy: #152235;
  --studio-paper: #f5f3ee;
  --studio-panel: #fffefa;
  --studio-line: #dedbd3;
  --studio-purple: #6333a4;
  --studio-purple-soft: #eee6f8;
  --studio-font: "Segoe UI", system-ui, sans-serif;
  color: var(--studio-ink);
  font-family: var(--studio-font);
}
.studio-page > .studio-header {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  height: auto;
  min-height: 64px;
  padding: 9px clamp(16px, 3vw, 44px);
  background: var(--studio-navy);
  border: 0;
  border-bottom: 1px solid #b39561;
  color: #fff9ec;
  flex-wrap: wrap;
}
.studio-page .studio-header .studio-home {
  color: #f3d489;
  font: 700 30px/1 var(--studio-font);
  text-decoration: none;
}
.studio-page .studio-header .studio-switcher {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  width: auto;
  order: initial;
  gap: 4px;
}
.studio-page .studio-header .studio-switcher a,
.studio-page .studio-header .studio-integrations {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: auto;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #f8efdf;
  font: 600 13px/1.3 var(--studio-font);
  text-decoration: none;
  white-space: nowrap;
}
.studio-page .studio-header .studio-switcher a { font-size: 18px; }
.studio-page .studio-header .studio-switcher a[aria-current="page"] {
  background: #343050;
  border-color: #786597;
  color: white;
}
.studio-page .studio-header :is(.studio-switcher a, .studio-integrations):hover { background: #343050; }
.studio-page .studio-header :focus-visible { outline: 2px solid #d5aaf7; outline-offset: 2px; }
.studio-header svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.studio-page .studio-header .private { margin-inline-start: 0; color: #f3d489; }
.studio-page .studio-header .studio-integrations { margin-inline-start: auto; border-color: #788298; }
.studio-page .studio-header select { min-width: 0; max-width: min(100%, 275px); background: var(--studio-panel); color: var(--studio-ink); }
.website-studio {
  --ink: var(--studio-ink);
  --line: var(--studio-line);
  --violet: var(--studio-purple);
  --violet-soft: var(--studio-purple-soft);
  --canvas: var(--studio-paper);
  --font: var(--studio-font);
  background: var(--studio-paper);
}
.website-studio :is(.rail, .project-header, .conversation, .composer-area, .preview-heading, .preview-toolbar, .review-bar, .work-card, .working-card, .drawer) { background: var(--studio-panel); }
.website-studio .prototype-strip { background: var(--studio-purple-soft); color: #573c75; }
.website-studio .work-card { border-color: var(--studio-line); border-radius: 14px; }
.website-studio .project-header h1 { font-weight: 750; }
@media (min-width: 741px) {
  .website-studio:has(> .app-shell) { display: flex; flex-direction: column; height: 100svh; }
  .website-studio > .app-shell { flex: 1; height: auto; }
}
.seo-studio {
  --ink: var(--studio-ink);
  --muted: #47586a;
  --line: var(--studio-line);
  --paper: var(--studio-paper);
  --accent: var(--studio-purple-soft);
}
.seo-studio :is(.card, .mode, dialog) { background: var(--studio-panel); border-color: var(--studio-line); }
.seo-studio .card { border-radius: 14px; }
.seo-studio .intro h1 { font-weight: 750; letter-spacing: -.035em; }
.seo-studio :is(main, #review) button:not(.quiet, .close, .secondary) { background-color: var(--studio-purple); border-color: var(--studio-purple); }
.seo-studio :is(input, textarea, select, button, a):focus-visible { outline: 2px solid var(--studio-purple); outline-offset: 2px; }
.studio-page .website-dialog { background: var(--studio-panel); color: var(--studio-ink); border-color: var(--studio-line); }
.studio-page .website-button.primary { background: var(--studio-purple); border-color: var(--studio-purple); color: white; }
@media (max-width: 740px) {
  .studio-page > .studio-header { gap: 8px 12px; }
  .studio-page .studio-header .studio-switcher { gap: 1px; }
  .studio-page .studio-header .studio-switcher a { gap: 4px; padding: 7px 5px; font-size: clamp(13px, 3.4vw, 16px); }
  .studio-header .studio-switcher svg { width: 13px; height: 13px; }
}


/* Apply the same surfaces and control states within each studio's workspace. */
.website-studio .canvas,
.seo-studio .change-values > div { background: var(--studio-paper); }
.website-studio :is(.composer, .conversation-context, .site-frame, #review-dialog),
.seo-studio :is(.mode, .pillar, details, input, select, textarea) {
  background: var(--studio-panel);
  border-color: var(--studio-line);
}
.website-studio :is(.conversation-context, .device-switch button.active) { color: #51347a; background: var(--studio-purple-soft); }
.website-studio :is(.primary, .send-button),
.seo-studio a.button:not(.secondary) { background: var(--studio-purple); border-color: var(--studio-purple); color: white; }
.website-studio :is(.secondary, .prompt-chips button, .version-button, .compare-button),
.seo-studio button.secondary { background: var(--studio-panel); border-color: var(--studio-line); color: var(--studio-ink); }
.website-studio :is(.conversation-heading h2, .preview-heading h2, #review-dialog h2),
.seo-studio :is(.card h2, #review h2) { color: var(--studio-ink); font-weight: 720; letter-spacing: -.02em; }
.website-studio :is(.conversation-heading p, .preview-heading p, .saved),
.seo-studio :is(.helper, .intro p) { color: #47586a; }
.website-studio .preview-heading h2 { font-size: clamp(17px, 2vw, 24px); }
.website-studio .conversation-heading h2 { font-size: 16px; }
.seo-studio .pillar.active { background: var(--studio-purple-soft); border-color: #a886ce; color: #51347a; }
.seo-studio :is(main, #review) a:not(.button) { color: #593382; }
.seo-studio .eyebrow { color: #815917; }
.seo-studio dialog::backdrop, .website-studio dialog::backdrop { background: #15223588; }
.website-studio :is(button, a, textarea):focus-visible { outline: 2px solid var(--studio-purple); outline-offset: 2px; }
@media (max-width: 420px) {
  .studio-page > .studio-header { gap: 6px 8px; padding-inline: 10px; }
  .studio-page .studio-header .studio-switcher a { padding-inline: 4px; }
}


/* Integrations uses the same workspace and card treatment as Overview. */
.integration-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.integration-grid .dashboard-card { display:flex; flex-direction:column; gap:10px; }
.integration-grid .dashboard-card p { margin:0; }
.integration-grid .dashboard-card > button { align-self:flex-start; margin-top:auto; }
.integration-detail { max-width:800px; }
.integration-detail > h2 { margin-block:16px 8px; }
.integration-detail .delivery-card { border-color:var(--studio-line); background:var(--studio-panel); }
.integration-link { display:inline-block; margin-top:8px; color:var(--studio-purple); font-weight:650; }
.studio-page .studio-header .studio-integrations[aria-current="page"] { background:#343050; border-color:#ac8bc8; color:white; }
@media (max-width:650px){.integration-grid { grid-template-columns:1fr; }}


.studio-header .studio-articles { padding:8px 10px; color:#f8efdf; white-space:nowrap; border:1px solid #788298; border-radius:8px; text-decoration:none; }
.website-articles-open > :is(.app-shell, .prototype-strip) { display:none; }
#website-articles { width:min(1020px,100%); margin:0 auto; padding:24px clamp(16px,4vw,44px); }
.article-header { display:grid; gap:9px; margin-bottom:18px; }
.article-header h1 { font-size:clamp(29px,5vw,44px); letter-spacing:-.04em; }
.article-main { display:grid; gap:14px; justify-items:start; }
.article-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr)); gap:14px; width:100%; }
.article-card { width:100%; padding:22px; background:var(--studio-panel); border:1px solid var(--studio-line); border-radius:14px; display:grid; gap:12px; overflow-wrap:anywhere; }
.article-card h2 { line-height:1.25; }
.article-card .article-paragraph { max-width:75ch; line-height:1.75; white-space:pre-wrap; }
.article-card .article-field { display:grid; gap:6px; margin:0 0 16px; }
.article-field :is(input,textarea) { padding:10px; width:100%; border:1px solid var(--studio-line); border-radius:8px; font:inherit; color:inherit; background:#fff; }
.article-card .article-checkbox { display:flex; align-items:center; gap:8px; margin:0 0 12px; }
.article-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.article-action { justify-self:start; width:fit-content; border:1px solid var(--studio-line); border-radius:8px; background:white; color:var(--studio-ink); padding:8px 12px; margin-inline-end:6px; }
.article-action.primary { background:var(--studio-purple); color:white; }
.article-badge { color:#5d3985; }
.article-notice:empty { display:none; }
.article-notice:not(:empty) { margin-bottom:12px; color:#573c75; }
#article-strategy { margin-block:12px 16px; }

.article-channels { display:flex; flex-wrap:wrap; gap:8px 20px; padding:0; border:0; margin:0 0 12px; }
.article-channels legend { margin-bottom:8px; font-weight:600; }
.article-channels .article-checkbox { margin:0; }
.article-draft-links { display:flex; flex-wrap:wrap; gap:4px 16px; }
.article-draft-links h3 { flex-basis:100%; }
.article-draft-links:empty { display:none; }

