/* Website Studio chrome only. Editable documents, previews and exports retain their own design. */
body.brand-editor {
  --studio-ink: #172033;
  --studio-muted: #68758b;
  --studio-line: #e0e6ee;
  --studio-panel: #ffffff;
  --studio-soft: #f4f6fa;
  --studio-brand: #ea4325;
  --studio-purple: #ea4325;
  --text: var(--studio-ink);
  --muted: var(--studio-muted);
  --line: var(--studio-line);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body.brand-editor :is(.studio-toolbar,.studio-panel,.studio-dialog,.canvas-toolbar,.canvas-footer,.notice,.editor-state) :is(button,input,textarea,select) { font-family: inherit; }
body.brand-editor .studio-toolbar { height: 72px; padding: 0 22px; gap: 20px; background: #142238; border-bottom: 1px solid #2d3c52; }
body.brand-editor .brand-mark small { color: #e2e7ef; border-color: #405067; letter-spacing: .14em; font-size: 8px; line-height: 1.7; max-width: 90px; }
body.brand-editor .project-meta { border-left: 1px solid #405067; padding-left: 20px; gap: 5px; }
body.brand-editor .project-meta input { font-size: 13px; font-weight: 600; }
body.brand-editor .project-meta input:focus { border-radius: 2px; outline-color: #ea4325; }
body.brand-editor .project-meta #saveStatus { color: #acb9cc; }
body.brand-editor #saveStatus[data-state=saved] { color: #a5dfbd; }
body.brand-editor #saveStatus[data-state=error],body.brand-editor #saveStatus[data-state=conflict] { color: #ffbdac; }
body.brand-editor .toolbar-history { border-color: #405067; padding-right: 18px; }
body.brand-editor .studio-toolbar button { min-height: 34px; padding: 8px 12px; border-color: #42516a; color: #f3f6fa; background: #22334d; font-size: 11px; border-radius: 5px; }
body.brand-editor .studio-toolbar button:hover { background: #314765; }
body.brand-editor .studio-toolbar button:disabled { opacity: .4; }
body.brand-editor .studio-toolbar .icon-button { font-size: 24px; padding: 0; }
body.brand-editor .toolbar-actions { gap: 7px; }
body.brand-editor .toolbar-actions #saveButton { border-color: #768298; background: transparent; }
body.brand-editor .toolbar-actions .button-brand { background: var(--studio-brand); border-color: var(--studio-brand); color: #fff; padding-left: 17px; padding-right: 17px; }
body.brand-editor .toolbar-actions .button-brand:hover { background: #d63a1f; }
body.brand-editor .studio-workspace { grid-template-columns: 244px minmax(0,1fr) 294px; }
body.brand-editor .studio-panel { background: var(--studio-panel); color: var(--studio-ink); }
body.brand-editor .panel-tabs { min-height: 50px; padding: 0 16px; border-color: var(--studio-line); background: var(--studio-panel); position: sticky; top: 0; z-index: 2; }
body.brand-editor .left-panel > .panel-tabs { gap: 0; padding: 0 8px; }
body.brand-editor .panel-tabs button { font-size: 11px; color: var(--studio-muted); border-radius: 0; background: transparent; }
body.brand-editor .panel-tabs button[aria-selected=true] { color: var(--studio-ink); font-weight: 650; }
body.brand-editor .panel-tabs button[aria-selected=true]::after { background: var(--studio-brand); height: 3px; }
body.brand-editor .panel-intro { padding: 22px 18px 14px; color: var(--studio-muted); font-size: 8px; font-weight: 650; letter-spacing: .12em; }
body.brand-editor .panel-intro span { font-size: 9px; font-weight: 400; }
body.brand-editor .panel-footer { padding: 16px 18px; background: var(--studio-soft); color: var(--studio-muted); border-color: var(--studio-line); font-size: 10px; }
body.brand-editor .left-panel .gjs-layer { font-size: 11px; color: var(--studio-ink); }
body.brand-editor .left-panel .gjs-layer-title { padding-top: 11px; padding-bottom: 11px; border-bottom-color: var(--studio-line); }
body.brand-editor .left-panel .gjs-layer-title:hover { background: var(--studio-soft); }
body.brand-editor .left-panel .gjs-layer.gjs-selected > .gjs-layer-title { background: #fff0eb; color: #b3341c; box-shadow: inset 3px 0 var(--studio-brand); }
body.brand-editor .left-panel .gjs-layer-name { font-weight: 500; }
body.brand-editor .studio-page-row { padding: 4px 12px; }
body.brand-editor .studio-page-row > button:first-child { padding: 13px; gap: 6px; border-radius: 6px; }
body.brand-editor .studio-page-row button[aria-pressed=true] { border-color: #f0b4a7; background: #fff3ef; color: #a8331e; }
body.brand-editor .studio-page-row span { color: var(--studio-muted); }
body.brand-editor .page-actions { border-top: 1px solid var(--studio-line); margin-top: 18px; padding: 18px; }
body.brand-editor .page-actions button { min-height: 38px; border-color: var(--studio-line); border-radius: 5px; }
body.brand-editor .insert-grid { gap: 10px; padding: 0 16px; }
body.brand-editor .insert-grid button { height: 86px; border-radius: 7px; border-color: var(--studio-line); font-weight: 500; gap: 10px; }
body.brand-editor .insert-grid button:hover { background: #fff3ef; border-color: #efad9e; }
body.brand-editor .insert-symbol { color: var(--studio-ink); }
body.brand-editor .panel-tip { color: var(--studio-muted); margin: 18px; line-height: 1.7; }
body.brand-editor .selection-header { padding: 18px; background: var(--studio-soft); border-color: var(--studio-line); align-items: center; }
body.brand-editor .selection-header .eyebrow { color: var(--studio-muted); letter-spacing: .11em; margin-bottom: 8px; }
body.brand-editor .selection-header strong { font-size: 13px; max-width: 180px; }
body.brand-editor .selection-actions button { border: 1px solid var(--studio-line); background: var(--studio-panel); width: 29px; min-height: 29px; border-radius: 5px; }
body.brand-editor .empty-inspector { padding: 52px 28px; }
body.brand-editor .empty-inspector > span { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 23px; border-radius: 12px; font-size: 28px; color: var(--studio-brand); background: var(--studio-soft); }
body.brand-editor .empty-inspector strong { color: var(--studio-ink); font-size: 18px; line-height: 1.4; font-weight: 600; letter-spacing: -.025em; }
body.brand-editor .empty-inspector p { color: var(--studio-muted); font-size: 12px; line-height: 1.7; }
body.brand-editor .property-group { padding: 20px 18px; border-color: var(--studio-line); }
body.brand-editor .property-group h2 { display: flex; align-items: center; gap: 9px; margin-bottom: 18px; color: var(--studio-ink); font-size: 12px; letter-spacing: -.01em; }
body.brand-editor .property-group h2::before { content: ""; width: 3px; height: 12px; background: var(--studio-brand); border-radius: 1px; }
body.brand-editor .property-group label { font-size: 10px; color: var(--studio-muted); line-height: 1.5; }
body.brand-editor .property-group :is(input,select,textarea) { min-height: 34px; border-radius: 5px; border-color: var(--studio-line); background: var(--studio-panel); color: var(--studio-ink); font-size: 11px; padding: 8px; }
body.brand-editor .property-group .field-grid { gap: 0 12px; }
body.brand-editor .property-group input[type=checkbox] { min-height: 0; accent-color: var(--studio-brand); }
body.brand-editor .property-group input[type=file]::file-selector-button { background: var(--studio-soft); color: var(--studio-ink); }
body.brand-editor .field-help { color: var(--studio-muted); font-size: 10px; line-height: 1.6; }
body.brand-editor .canvas-toolbar { height: 50px; background: var(--studio-panel); border-color: var(--studio-line); color: var(--studio-ink); padding: 0 18px; }
body.brand-editor .canvas-toolbar select { border: 1px solid var(--studio-line); border-radius: 4px; background: var(--studio-panel); font-size: 10px; padding: 6px 7px; }
body.brand-editor .canvas-toolbar #pageSelect { max-width: 145px; }
body.brand-editor .canvas-toolbar #deviceSelect { max-width: 90px; }
body.brand-editor .toolbar-divider { background: var(--studio-line); }
body.brand-editor #canvasLabel { color: var(--studio-muted); font-size: 8px; letter-spacing: .1em; }
body.brand-editor .canvas-footer { height: 32px; border-top: 1px solid var(--studio-line); background: var(--studio-panel); color: var(--studio-muted); }
body.brand-editor #selectedBreadcrumb { color: var(--studio-muted); }
body.brand-editor .notice.demo-notice { padding: 11px 22px; background: #fff4ef; border-color: #f0d5cb; color: #86412e; font-size: 11px; }
body.brand-editor .notice.demo-notice strong { font-weight: 650; }
body.brand-editor .recovery-notice .notice-primary { background: #17253c; border-color: #17253c; color: white; }
body.brand-editor .studio-panel .ad-section { border: 1px solid var(--studio-line); border-radius: 6px; background: var(--studio-panel); }
body.brand-editor .studio-panel .ad-section summary { color: var(--studio-ink); font-weight: 600; padding: 12px; background: var(--studio-soft); border-radius: 5px; }
body.brand-editor .studio-panel .ad-section :is(input,select,textarea) { background: var(--studio-panel); color: var(--studio-ink); border-color: var(--studio-line); }
body.brand-editor .studio-panel :is(.ad-badge,.ad-empty) { color: var(--studio-muted); background: var(--studio-soft); }
body.brand-editor .studio-panel .ad-help { color: var(--studio-muted); line-height: 1.6; }
body.brand-editor .studio-dialog { background: var(--studio-panel); color: var(--studio-ink); padding: 28px; border-color: var(--studio-line); border-top: 3px solid var(--studio-brand); border-radius: 10px; box-shadow: 0 28px 90px #0b172b33; }
body.brand-editor .studio-dialog::backdrop { background: #0d1a2d88; backdrop-filter: blur(4px); }
body.brand-editor .studio-dialog .dialog-heading { border-bottom: 1px solid var(--studio-line); margin-bottom: 22px; padding-bottom: 20px; }
body.brand-editor .studio-dialog h2 { font-size: 22px; letter-spacing: -.03em; font-weight: 650; }
body.brand-editor .studio-dialog .dialog-heading button { width: 30px; height: 30px; min-height: 30px; line-height: 1; padding: 0; border-color: var(--studio-line); background: var(--studio-soft); color: var(--studio-muted); }
body.brand-editor .studio-dialog label { font-size: 11px; font-weight: 500; color: var(--studio-muted); }
body.brand-editor .studio-dialog :is(input,select,textarea) { border-color: var(--studio-line); color: var(--studio-ink); background: var(--studio-panel); border-radius: 5px; min-height: 38px; }
body.brand-editor .studio-dialog input[type=checkbox] { min-height: 0; accent-color: var(--studio-brand); }
body.brand-editor .studio-dialog .dialog-actions { border-top: 1px solid var(--studio-line); padding-top: 20px; margin-top: 24px; gap: 8px; }
body.brand-editor .studio-dialog button { min-height: 36px; background: var(--studio-soft); color: var(--studio-ink); border-color: var(--studio-line); border-radius: 5px; font-size: 11px; }
body.brand-editor .studio-dialog .button-brand { background: #17253c; border-color: #17253c; color: white; }
body.brand-editor .studio-dialog :is(.history-help,.history-version small,.collab-role,.collab-status) { color: var(--studio-muted); }
body.brand-editor .studio-dialog .history-version { background: var(--studio-panel); border-color: var(--studio-line); }
body.brand-editor .studio-dialog .history-version[aria-pressed=true] { background: var(--studio-soft); border-color: var(--studio-brand); }
body.brand-editor .studio-dialog .studio-collaboration { color: var(--studio-ink); }
body.brand-editor .studio-dialog .studio-collaboration fieldset { padding: 16px; background: var(--studio-soft); border: 1px solid var(--studio-line); border-radius: 6px; margin: 20px 0; }
body.brand-editor .studio-dialog .studio-collaboration p { color: var(--studio-muted); }
body.brand-editor .editor-state { top: 72px; background: var(--studio-soft); }
body.brand-editor .state-card { border: 1px solid var(--studio-line); border-radius: 12px; background: var(--studio-panel); padding: 36px; }
body.brand-editor .state-card h1 { color: var(--studio-ink); }
body.brand-editor .state-card p { color: var(--studio-muted); }
body.brand-editor :is(.studio-toolbar,.studio-panel,.studio-dialog,.canvas-toolbar,.editor-state) :is(button,a,input,textarea,select):focus-visible { outline: 2px solid var(--studio-brand); outline-offset: 3px; }
@media (prefers-color-scheme: dark) {
  body.brand-editor { --studio-ink: #edf2fa; --studio-muted: #a7b5cc; --studio-line: #2c3b52; --studio-panel: #152236; --studio-soft: #1b2c44; color-scheme: dark; }
  body.brand-editor .studio-panel button { background: var(--studio-soft); color: var(--studio-ink); border-color: var(--studio-line); }
  body.brand-editor .studio-panel .panel-tabs button { background: transparent; }
  body.brand-editor .left-panel .gjs-layer.gjs-selected > .gjs-layer-title { background: #3e2e30; color: #ffb19b; }
  body.brand-editor .studio-page-row button[aria-pressed=true] { background: #3e2e30; color: #ffb19b; border-color: #a75d4c; }
  body.brand-editor .insert-grid button:hover { background: #3e2e30; border-color: #a75d4c; }
  body.brand-editor .notice.demo-notice { background: #34282a; border-color: #57403c; color: #edb5a4; }
  body.brand-editor .notice.recovery-notice { background: #2b2d31; color: var(--studio-ink); border-color: var(--studio-line); }
  body.brand-editor .notice-copy strong { color: var(--studio-ink); }
  body.brand-editor .notice-copy span { color: var(--studio-muted); }
  body.brand-editor .recovery-notice button { background: var(--studio-panel); border-color: var(--studio-line); color: var(--studio-ink); }
  body.brand-editor .recovery-notice .notice-primary { background: #ea4325; border-color: #ea4325; color: #fff; }
}
@media (min-width: 1600px) { body.brand-editor .studio-workspace { grid-template-columns: 258px minmax(0,1fr) 314px; } }
@media (max-width: 1180px) {
  body.brand-editor .studio-workspace { grid-template-columns: 206px minmax(0,1fr) 260px; }
  body.brand-editor .studio-toolbar { gap: 12px; padding: 0 16px; }
  body.brand-editor .brand-mark small { display: none; }
  body.brand-editor .project-meta { padding-left: 12px; }
  body.brand-editor .toolbar-actions button { padding: 8px 10px; }
  body.brand-editor .canvas-toolbar { padding: 0 12px; }
  body.brand-editor #canvasLabel { display: none; }
  body.brand-editor .selection-header strong { max-width: 146px; }
}
@media (max-width: 800px) {
  body.brand-editor .studio-workspace { display: flex; }
  body.brand-editor .studio-toolbar { height: 64px; gap: 8px; padding: 0 12px; }
  body.brand-editor .toolbar-actions { gap: 5px; }
  body.brand-editor .toolbar-actions button { min-height: 32px; font-size: 10px; padding: 7px 8px; }
  body.brand-editor .studio-panel { width: 280px; top: 50px; }
  body.brand-editor .canvas-toolbar { gap: 6px; padding: 0 10px; }
  body.brand-editor .canvas-options { gap: 4px; }
  body.brand-editor .canvas-toolbar #pageSelect { max-width: 110px; }
  body.brand-editor .canvas-toolbar .toolbar-divider { display: none; }
  body.brand-editor .notice.demo-notice { padding: 10px 12px; gap: 7px 10px; }
  body.brand-editor .editor-state { top: 64px; }
}
@media (max-width: 600px) {
  body.brand-editor .studio-toolbar { flex-wrap: wrap; height: 112px; padding: 11px 12px; gap: 10px 12px; align-content: center; }
  body.brand-editor .project-meta { min-width: 0; padding-left: 12px; }
  body.brand-editor .project-meta input { font-size: 12px; }
  body.brand-editor .project-meta #saveStatus { font-size: 9px; }
  body.brand-editor .toolbar-actions { flex-basis: 100%; justify-content: space-between; gap: 5px; }
  body.brand-editor .toolbar-actions button { min-height: 31px; padding: 6px 8px; font-size: 9px; }
  body.brand-editor .toolbar-actions .button-brand { max-width: none; padding: 6px 10px; }
  body.brand-editor .canvas-toolbar { padding: 0 8px; gap: 4px; }
  body.brand-editor .canvas-toolbar select { padding: 5px 3px; font-size: 9px; }
  body.brand-editor .canvas-toolbar #pageSelect { max-width: 82px; }
  body.brand-editor .canvas-toolbar #deviceSelect { max-width: 66px; }
  body.brand-editor .panel-mobile-controls { gap: 4px; }
  body.brand-editor .panel-mobile-controls button { padding: 5px 7px; min-height: 29px; background: var(--studio-soft); border-color: var(--studio-line); color: var(--studio-ink); }
  body.brand-editor .studio-dialog { padding: 22px; }
  body.brand-editor .studio-dialog .dialog-actions { justify-content: start; }
  body.brand-editor .studio-dialog .dialog-heading { padding-bottom: 18px; }
  body.brand-editor .editor-state { top: 112px; }
  body.brand-editor .state-card { padding: 28px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  body.brand-editor .studio-toolbar *, body.brand-editor .studio-panel *, body.brand-editor .studio-dialog *, body.brand-editor .canvas-toolbar * { transition: none !important; animation: none !important; }
}
/* Preview spans the full workspace at every breakpoint. */
body.brand-editor .studio.preview-mode .studio-workspace { grid-template-columns: minmax(0,1fr); }
body.brand-editor .studio.preview-mode :is(.studio-panel,.canvas-footer,.panel-mobile-controls) { display: none; }
