/* Editor theme variants — synced with global theme system */
body.illustrator-mode[data-editor-theme="dark"],
body.illustrator-mode:not([data-editor-theme]) {
  --ai-bg: #1a1a2e;
  --ai-panel-bg: #252540;
  --ai-border: #3a3a5c;
  --ai-text: #f1f5f9;
  --ai-text-muted: #94a3b8;
  --ai-accent: #7c3aed;
  --ai-hover: #35355a;
  --ai-tool-active: #1e1e36;
  --ai-canvas-bg: #282828;
}

body.illustrator-mode[data-editor-theme="light"] {
  --ai-bg: #f1f5f9;
  --ai-panel-bg: #e2e8f0;
  --ai-border: #cbd5e1;
  --ai-text: #0f172a;
  --ai-text-muted: #475569;
  --ai-accent: #7c3aed;
  --ai-hover: #cbd5e1;
  --ai-tool-active: #ffffff;
  --ai-canvas-bg: #94a3b8;
}

body.illustrator-mode[data-editor-theme="ocean"] {
  --ai-bg: #06202d;
  --ai-panel-bg: #0c3d52;
  --ai-border: #155e75;
  --ai-text: #ecfeff;
  --ai-text-muted: #a5f3fc;
  --ai-accent: #0891b2;
  --ai-hover: #164e63;
  --ai-tool-active: #083344;
  --ai-canvas-bg: #164e63;
}

body.illustrator-mode[data-editor-theme="forest"] {
  --ai-bg: #071b12;
  --ai-panel-bg: #14532d;
  --ai-border: #166534;
  --ai-text: #ecfdf5;
  --ai-text-muted: #86efac;
  --ai-accent: #16a34a;
  --ai-hover: #15803d;
  --ai-tool-active: #052e16;
  --ai-canvas-bg: #14532d;
}

body.illustrator-mode[data-editor-theme="contrast"] {
  --ai-bg: #000000;
  --ai-panel-bg: #111111;
  --ai-border: #ffffff;
  --ai-text: #ffffff;
  --ai-text-muted: #dddddd;
  --ai-accent: #ffff00;
  --ai-hover: #333333;
  --ai-tool-active: #222222;
  --ai-canvas-bg: #333333;
}

.ai-canvas-container { background-color: var(--ai-canvas-bg); }

/* Editor suite switcher */
.editor-suite-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding-right: 8px;
}

.editor-suite-nav a {
  padding: 3px 10px;
  font-size: 11px;
  border-radius: 4px;
  color: var(--ai-text-muted);
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.editor-suite-nav a:hover {
  color: var(--ai-text);
  background: var(--ai-hover);
}

.editor-suite-nav a.active {
  color: #fff;
  background: var(--ai-accent);
  border-color: var(--ai-accent);
}

.editor-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ai-panel-bg);
  color: var(--ai-text);
  border: 1px solid var(--ai-border);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  z-index: 99999;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  animation: editorToastIn 0.3s ease;
}

@keyframes editorToastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
