/* PSYCBEAT'S CANVAS STUDIO FOR AI & AGENTS - MOTIONSITES LUXE EDITION */

:root {
  --app-bg: #07080B;
  --header-bg: rgba(12, 14, 21, 0.88);
  --panel-bg: #0C0E15;
  --panel-border: rgba(255, 255, 255, 0.08);
  --canvas-bg: #050608;
  --accent-yellow: #FACC15;
  --accent-blue: #38BDF8;
  --accent-red: #F43F5E;
  --text-primary: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --input-bg: rgba(255, 255, 255, 0.035);
  --input-border: rgba(255, 255, 255, 0.1);
  --ease-out-expo: cubic-bezier(.16, 1, .3, 1);
  --ease-out-quint: cubic-bezier(.22, 1, .36, 1);
  --ease-standard: cubic-bezier(.25, .1, .25, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
}

body.illustrator-theme {
  background-color: var(--app-bg);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, sans-serif;
  height: 100vh;
  width: 100vw;
  max-width: 100vw;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ============================================================
   LIVE SYNC INDICATOR & AI GHOST CURSOR
============================================================ */
.live-sync-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  padding: 3px 10px;
  border-radius: 9999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 800;
  color: #4ade80;
  letter-spacing: 1px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: #22c55e;
  border-radius: 50%;
  animation: pulseLive 1.5s infinite;
}

@keyframes pulseLive {
  0% { transform: scale(0.9); opacity: 0.7; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
  70% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.9); opacity: 0.7; }
}

/* AI Ghost Cursor */
.ai-ghost-cursor {
  position: absolute;
  pointer-events: none;
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  transition: left 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), top 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.45));
}

.cursor-pointer {
  transform: translate(-2px, -2px);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.cursor-badge {
  background: linear-gradient(135deg, #7E22CE 0%, #4338CA 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: 4px;
  margin-top: 10px;
  white-space: nowrap;
  animation: floatBadge 2s ease-in-out infinite;
}

.cursor-badge .ai-name {
  font-weight: 800;
  color: #FACC15;
}

.cursor-badge .ai-action-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 9px;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  padding-left: 5px;
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* AI Editing Aura on Menu Cards */
.ai-editing-pulse {
  outline: 2.5px solid #9333EA !important;
  box-shadow: 0 0 20px rgba(147, 51, 234, 0.35) !important;
  position: relative;
}

.ai-editing-pulse::after {
  content: 'ANTIGRAVITY EDITING';
  position: absolute;
  top: -18px;
  right: 8px;
  background-color: #9333EA;
  color: #FFFFFF;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 1px 6px;
  border-radius: 3px;
  z-index: 100;
  animation: pulseText 1.2s infinite;
}

@keyframes pulseText {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; transform: scale(1.04); }
}

/* Subtle live updated highlight flash */
.live-updated-flash {
  animation: flashGreen 1.2s ease-out;
}

@keyframes flashGreen {
  0% { background-color: rgba(34, 197, 94, 0.2); }
  100% { background-color: var(--color-bg-card); }
}
.app-header {
  height: 48px;
  background-color: var(--header-bg);
  border-bottom: 1px solid var(--panel-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  gap: 8px;
  z-index: 100;
  width: 100%;
  max-width: 100vw;
  flex-shrink: 0;
  overflow: hidden;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.brand-badge {
  background-color: #330000;
  color: #FF7700;
  border: 1px solid #FF7700;
  font-weight: 900;
  font-size: 13px;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Bebas Neue', sans-serif;
}

.brand-title {
  font-size: 13px;
  letter-spacing: 1.2px;
  color: #CCCCCC;
  white-space: nowrap;
}

.brand-title strong {
  color: var(--accent-yellow);
}

.doc-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 10px;
  border-left: 1px solid var(--panel-border);
  flex-shrink: 0;
}

.doc-name {
  font-size: 11.5px;
  font-weight: 600;
  color: #AAAAAA;
  white-space: nowrap;
}

.doc-badge {
  font-size: 9.5px;
  font-family: 'JetBrains Mono', monospace;
  background-color: #2C2C2C;
  color: #999999;
  padding: 2px 5px;
  border-radius: 3px;
  white-space: nowrap;
}

.author-badge {
  font-size: 9.5px;
  font-family: 'JetBrains Mono', monospace;
  background-color: #1e293b;
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 2px 6px;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.author-badge:hover {
  background-color: #38bdf8;
  color: #0f172a;
  border-color: #38bdf8;
}

/* Artboard Switcher Tabs - MotionSites Floating Pill Track */
.artboard-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  padding: 3px 6px;
}

.artboard-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #94A3B8;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.16s var(--ease-out-expo);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tab-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.06);
}

.tab-btn.active {
  color: #07080B;
  background: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.tab-btn.all-boards-btn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-left: 2px;
}

.tab-btn.add-board-tab-btn {
  border: 1px dashed rgba(56, 189, 248, 0.45);
  background-color: rgba(56, 189, 248, 0.08);
  color: #38bdf8;
  margin-left: 2px;
  padding: 5px 10px;
}

.tab-btn.add-board-tab-btn:hover {
  background-color: #38bdf8;
  color: #07080B;
  border-color: #38bdf8;
}

.tab-btn.add-board-tab-btn .tab-num {
  font-size: 13px;
  font-weight: 700;
  color: inherit;
}

/* Header Right */
.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.zoom-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  padding: 3px 8px;
}

.zoom-controls button {
  background: transparent;
  border: none;
  color: #CCCCCC;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  width: 22px;
  height: 22px;
  border-radius: 3px;
}

.zoom-controls button:hover {
  background-color: #333333;
}

#zoomValue {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent-yellow);
  min-width: 42px;
  text-align: center;
}

.history-controls {
  display: flex;
  gap: 2px;
}

.history-controls button {
  background: transparent;
  border: 1px solid var(--panel-border);
  color: #AAAAAA;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
}

.history-controls button:hover:not(:disabled) {
  background-color: #333333;
  color: #FFFFFF;
}

.history-controls button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.18s var(--ease-out-expo);
  border: none;
  font-family: inherit;
  letter-spacing: -0.01em;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: #E2E8F0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.btn-secondary:active {
  transform: scale(0.98);
}

.btn-primary {
  background: #FFFFFF;
  color: #07080B;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.btn-primary:hover {
  background: #F8FAFC;
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.18);
  color: #07080B;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-block {
  width: 100%;
  justify-content: center;
  padding: 10px;
}

.status-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 3px;
  letter-spacing: 1px;
}

.status-ready {
  background-color: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.status-busy {
  background-color: rgba(255, 230, 0, 0.2);
  color: var(--accent-yellow);
  border: 1px solid rgba(255, 230, 0, 0.4);
}

/* ============================================================
   MAIN WORKBENCH LAYOUT
============================================================ */
.workbench {
  flex: 1;
  display: flex;
  width: 100%;
  max-width: 100vw;
  min-width: 0;
  overflow: hidden;
  position: relative;
}

/* Left Tool Palette */
.tool-palette {
  width: 48px;
  flex-shrink: 0;
  background-color: var(--panel-bg);
  border-right: 1px solid var(--panel-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
  gap: 6px;
  z-index: 60;
}

.tool-btn {
  width: 36px;
  height: 36px;
  background-color: #2A2A2A;
  border: 1px solid #383838;
  border-radius: 6px;
  color: #BBBBBB;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.12s ease;
  flex-shrink: 0;
}

.tool-btn:hover {
  background-color: #383838;
  color: #FFFFFF;
}

.tool-btn.active {
  background-color: var(--accent-yellow);
  color: #0A0A0A;
  border-color: var(--accent-yellow);
  box-shadow: 0 0 10px rgba(255, 230, 0, 0.3);
}

.tool-key {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  font-weight: 700;
  opacity: 0.7;
  margin-top: 1px;
}

.tool-separator {
  width: 24px;
  height: 1px;
  background-color: #383838;
  margin: 4px 0;
  flex-shrink: 0;
}

/* Center Canvas Viewport */
.canvas-viewport {
  flex: 1 1 0;
  min-width: 0 !important;
  width: 100%;
  height: 100%;
  background-color: var(--canvas-bg);
  background-image: radial-gradient(#262626 1px, transparent 1px);
  background-size: 20px 20px;
  overflow: auto;
  position: relative;
  padding: 24px;
  box-sizing: border-box;
  scrollbar-width: thin;
}

.canvas-stage-sizer {
  position: relative;
  margin: 0 auto;
  flex-shrink: 0;
  transition: none !important;
}

.canvas-stage {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: top left;
  transition: none !important;
  flex-shrink: 0;
}

/* Artboards Container */
.artboards-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.artboards-container.grid-view {
  flex-direction: row;
  flex-wrap: wrap;
  width: calc(794px * 2 + 60px);
}

.page-artboard-wrapper {
  position: relative;
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.85);
  border: 1px solid #333333;
}

.artboard-label-tag {
  position: absolute;
  top: -24px;
  left: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: #777777;
  letter-spacing: 1px;
}

/* Transform Overlay & Bounding Box */
.transform-overlay {
  position: absolute;
  border: 2px solid var(--accent-blue);
  pointer-events: none;
  z-index: 1000;
  transition: none !important;
}

.transform-overlay .handle {
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: #FFFFFF;
  border: 1.5px solid var(--accent-blue);
}

.transform-overlay .handle.top-left { top: -4px; left: -4px; }
.transform-overlay .handle.top-right { top: -4px; right: -4px; }
.transform-overlay .handle.bottom-left { bottom: -4px; left: -4px; }
.transform-overlay .handle.bottom-right { bottom: -4px; right: -4px; }

.transform-overlay .label-pill {
  position: absolute;
  top: -22px;
  left: -2px;
  background-color: var(--accent-blue);
  color: #FFFFFF;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 2px;
  text-transform: uppercase;
}

/* Margin Safety Guides */
.print-guide-overlay {
  display: none;
  position: absolute;
  pointer-events: none;
  border: 1px dashed rgba(255, 51, 75, 0.5);
  z-index: 999;
}

.print-guide-overlay.visible {
  display: block;
}

/* Illustrator Artboard Tool Overlay */
.artboard-overlay {
  position: absolute;
  border: 2px dashed #0A84FF;
  box-shadow: 0 0 0 1px rgba(10, 132, 255, 0.4), inset 0 0 0 1px rgba(10, 132, 255, 0.15);
  pointer-events: auto;
  z-index: 1005;
  transition: none !important;
}

.artboard-handle {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: #FFFFFF;
  border: 2px solid #0A84FF;
  border-radius: 1px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  z-index: 1010;
}

.artboard-handle.nw { top: -6px; left: -6px; cursor: nwse-resize; }
.artboard-handle.n  { top: -6px; left: calc(50% - 5px); cursor: ns-resize; }
.artboard-handle.ne { top: -6px; right: -6px; cursor: nesw-resize; }
.artboard-handle.e  { top: calc(50% - 5px); right: -6px; cursor: ew-resize; }
.artboard-handle.se { bottom: -6px; right: -6px; cursor: nwse-resize; }
.artboard-handle.s  { bottom: -6px; left: calc(50% - 5px); cursor: ns-resize; }
.artboard-handle.sw { bottom: -6px; left: -6px; cursor: nesw-resize; }
.artboard-handle.w  { top: calc(50% - 5px); left: -6px; cursor: ew-resize; }

.artboard-size-badge {
  position: absolute;
  top: -26px;
  left: 0;
  background-color: #0A84FF;
  color: #FFFFFF;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}

/* Editable element hover state */
.hover-target {
  outline: 1.5px dashed var(--accent-blue) !important;
  cursor: pointer;
}

.active-selection {
  outline: 2px solid var(--accent-yellow) !important;
}

/* ============================================================
   RIGHT INSPECTOR & PROPERTIES PANEL
============================================================ */
.inspector-panel {
  width: 320px;
  flex-shrink: 0;
  background-color: var(--panel-bg);
  border-left: 1px solid var(--panel-border);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  z-index: 50;
  transition: width 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.22s ease, opacity 0.22s ease;
}

.inspector-panel.collapsed {
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  padding: 0 !important;
  border-left: none !important;
  opacity: 0;
  pointer-events: none;
}

.panel-header {
  padding: 10px 14px;
  border-bottom: 1px solid var(--panel-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.panel-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-panel-close {
  background: transparent;
  border: none;
  color: #888888;
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}

.btn-panel-close:hover {
  background-color: #333333;
  color: #FFFFFF;
}

.btn-icon-only {
  padding: 6px 8px;
}

.drawer-backdrop {
  display: none;
}

.panel-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #888888;
}

.selection-type-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  background-color: #2C2C2C;
  color: var(--accent-yellow);
  padding: 2px 8px;
  border-radius: 3px;
}

.inspector-section {
  padding: 14px 16px;
  border-bottom: 1px solid var(--panel-border);
}

.section-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #777777;
  margin-bottom: 12px;
}

.section-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.active-board-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 800;
  color: var(--accent-yellow);
  background-color: #1A1A1A;
  border: 1px solid #333333;
  padding: 1px 6px;
  border-radius: 3px;
}

.artboard-dim-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 12px;
}

.prop-field.half {
  flex: 1;
  margin-bottom: 0;
}

.input-unit-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-unit-wrap input {
  width: 100%;
  padding-right: 26px;
}

.unit-label {
  position: absolute;
  right: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #777777;
  pointer-events: none;
}

.orientation-btn {
  background-color: #2A2A2A;
  border: 1px solid #383838;
  color: #CCCCCC;
  width: 34px;
  height: 34px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
  margin-bottom: 1px;
}

.orientation-btn:hover {
  background-color: #383838;
  color: var(--accent-yellow);
  border-color: #555555;
}

.artboard-actions-row {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.card-reorder-group {
  display: flex;
  gap: 6px;
}

.btn-micro {
  flex: 1;
  background-color: #2A2A2A;
  border: 1px solid #383838;
  color: #CCCCCC;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 0;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
}

.btn-micro:hover:not(:disabled) {
  background-color: #383838;
  color: #FFFFFF;
}

.btn-micro:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.btn-danger {
  color: var(--accent-red);
}

.btn-danger:hover:not(:disabled) {
  background-color: rgba(255, 51, 75, 0.2);
  border-color: var(--accent-red);
}

.prop-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
}

.prop-field label {
  font-size: 11px;
  font-weight: 600;
  color: #AAAAAA;
}

.prop-field input[type="text"],
.prop-field textarea,
.prop-field select {
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  color: #FFFFFF;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.15s ease;
}

.prop-field input[type="text"]:focus,
.prop-field textarea:focus,
.prop-field select:focus {
  border-color: var(--accent-yellow);
}

.prop-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.flex-1 {
  flex: 1;
}

/* Color Pickers */
.color-picker-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  padding: 4px 8px;
  border-radius: 4px;
}

.color-picker-wrap input[type="color"] {
  border: none;
  background: transparent;
  width: 22px;
  height: 22px;
  cursor: pointer;
  padding: 0;
}

.color-hex {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #CCCCCC;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #333333;
  transition: 0.2s;
  border-radius: 22px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.2s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: var(--accent-yellow);
}

input:checked + .toggle-slider:before {
  transform: translateX(16px);
  background-color: #000000;
}

/* Range input */
input[type="range"] {
  accent-color: var(--accent-yellow);
  cursor: pointer;
}

/* Audit summary box */
.audit-summary-box {
  background-color: #161616;
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.audit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #888888;
}

.audit-row strong {
  color: #EEEEEE;
  font-family: 'JetBrains Mono', monospace;
}

.badge-audit-pass {
  background-color: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
}

.audit-row a {
  color: var(--accent-yellow);
  text-decoration: none;
  font-weight: 700;
}

.audit-row a:hover {
  text-decoration: underline;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 9999;
}

.toast {
  background-color: #1A1A1A;
  border: 1px solid #333333;
  color: #FFFFFF;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.2s ease-out;
}

.toast.toast-success {
  border-left: 4px solid #22c55e;
}

.toast.toast-warn {
  border-left: 4px solid var(--accent-yellow);
}

.toast.toast-error {
  border-left: 4px solid var(--accent-red);
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Loading spinner */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 100px;
  color: #888888;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #333333;
  border-top-color: var(--accent-yellow);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   RESPONSIVE UX / UI ENGINE (ALL BREAKPOINTS & SPLIT-SCREEN)
============================================================ */

/* Medium Displays / Compact Laptops (<= 1200px) */
@media (max-width: 1200px) {
  .doc-meta { display: none !important; }
}

/* Tablet / Split-Screen Half-Windows (<= 960px) */
@media (max-width: 960px) {
  .tab-label { display: none !important; }
  .btn-text { display: none !important; }
  .btn-text-panel { display: none !important; }
  .sync-text { display: none !important; }
  .status-pill { display: none !important; }
  .history-controls { display: none !important; }

  /* Off-Canvas Slide-Out Inspector Drawer */
  .inspector-panel {
    position: fixed !important;
    right: 0 !important;
    top: 48px !important;
    bottom: 0 !important;
    width: 330px !important;
    max-width: 86vw !important;
    z-index: 1000 !important;
    transform: translateX(100%);
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.75);
    background-color: #1F1F1F !important;
    border-left: 1px solid #333333 !important;
  }

  .inspector-panel.open {
    transform: translateX(0) !important;
  }

  .drawer-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  .drawer-backdrop.active {
    opacity: 1;
    pointer-events: auto;
  }
}

/* Compact Screens / Split Windows (<= 768px) */
@media (max-width: 768px) {
  .brand-title { display: none !important; }
  .zoom-controls #zoomValue { display: none !important; }

  /* Floating Bottom Dock Tool Palette */
  .tool-palette {
    position: fixed !important;
    bottom: 16px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    flex-direction: row !important;
    width: auto !important;
    height: 46px !important;
    padding: 0 10px !important;
    border-radius: 9999px !important;
    background: rgba(26, 26, 26, 0.94) !important;
    backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65) !important;
    z-index: 900 !important;
    gap: 4px !important;
    align-items: center !important;
  }

  .tool-palette .tool-btn {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
  }

  .tool-palette .tool-key {
    display: none !important;
  }

  .tool-palette .tool-separator {
    width: 1px !important;
    height: 20px !important;
    margin: 0 4px !important;
  }

  .canvas-viewport {
    padding: 12px 12px 76px 12px !important; /* clearance for floating dock */
  }
}

/* Ultra Narrow / Phone / Snap Half-Screen (<= 540px) */
@media (max-width: 540px) {
  .app-header {
    padding: 0 6px !important;
    gap: 4px !important;
  }

  .header-left {
    gap: 4px !important;
  }

  .header-right {
    gap: 4px !important;
  }

  .artboard-tabs {
    gap: 2px !important;
    flex-shrink: 1 !important;
    min-width: 0 !important;
  }

  .tab-btn {
    padding: 4px 6px !important;
    font-size: 11px !important;
  }

  .zoom-controls {
    padding: 2px 3px !important;
    gap: 2px !important;
  }

  .zoom-controls button {
    width: 20px !important;
    height: 20px !important;
    font-size: 11px !important;
  }

  .btn {
    padding: 5px 8px !important;
  }
}

/* ============================================================
   GRID CONTROLS, BRAND THEMES & VECTOR QR INSPECTOR STYLES
============================================================ */

.mt-3 {
  margin-top: 12px;
}

/* Segmented Control */
.segmented-control {
  display: flex;
  background: #181818;
  border: 1px solid #333333;
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}

.seg-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: #999999;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  text-align: center;
}

.seg-btn:hover {
  color: #FFFFFF;
  background: #252525;
}

.seg-btn.active {
  background: #2C2C2C;
  color: var(--accent-yellow);
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* Theme Swatches Grid */
.theme-swatches-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.theme-swatch-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #181818;
  border: 1px solid #333333;
  border-radius: 6px;
  padding: 6px 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.theme-swatch-chip:hover {
  border-color: #555555;
  background: #222222;
}

.theme-swatch-chip.active {
  border-color: var(--accent-yellow);
  background: #262626;
}

.swatch-circle {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.swatch-label {
  font-size: 11px;
  font-weight: 600;
  color: #CCCCCC;
}

.theme-swatch-chip.active .swatch-label {
  color: #FFFFFF;
  font-weight: 700;
}

/* QR URL Input Row */
.qr-input-row {
  display: flex;
  gap: 6px;
}

.qr-input-row input {
  flex: 1;
}

/* ============================================================
   UNIVERSAL EXPORT STUDIO MODAL (CTRL + E)
============================================================ */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.15s ease-out;
}

.export-modal {
  width: 720px;
  max-width: 96vw;
  max-height: 90vh;
  background: #1C1C1E;
  border: 1px solid #383838;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: scaleUp 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleUp {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid #2C2C2E;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #18181A;
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  background: var(--accent-yellow);
  color: #111111;
  padding: 2px 7px;
  border-radius: 4px;
}

.modal-title-wrap h3 {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #FFFFFF;
  margin: 0;
}

.btn-modal-close {
  background: transparent;
  border: none;
  color: #888888;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.12s;
}

.btn-modal-close:hover {
  color: #FFFFFF;
  background: #2C2C2E;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-section-label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #AAAAAA;
  display: block;
  margin-bottom: 8px;
}

/* 8-Format Card Grid */
.export-format-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.format-card {
  background: #242426;
  border: 1.5px solid #333336;
  border-radius: 8px;
  padding: 12px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  transition: all 0.15s ease;
}

.format-card:hover {
  background: #2C2C30;
  border-color: #55555C;
  transform: translateY(-1px);
}

.format-card.active {
  background: #2D2D20;
  border-color: var(--accent-yellow);
  box-shadow: 0 4px 14px rgba(255, 230, 0, 0.15);
}

.format-icon {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: var(--accent-yellow);
}

.format-card.active .format-icon {
  color: #FFE600;
}

.format-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.format-name {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
}

.format-desc {
  font-size: 10px;
  color: #8E8E93;
  line-height: 1.3;
}

.format-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #888888;
  background: #18181A;
  padding: 2px 5px;
  border-radius: 3px;
}

.format-card.active .format-badge {
  background: var(--accent-yellow);
  color: #111111;
}

/* Options Grid */
.export-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.option-col {
  display: flex;
  flex-direction: column;
}

/* Toggles Row */
.export-toggles-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: #18181A;
  border-radius: 8px;
  border: 1px solid #2C2C2E;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-yellow);
  cursor: pointer;
}

.checkbox-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #DDDDDD;
}

/* Modal Footer */
.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid #2C2C2E;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #18181A;
}

.footer-left-actions, .footer-right-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-lg {
  padding: 8px 18px !important;
  font-size: 12px !important;
}

.export-spinner {
  animation: spin 0.8s linear infinite;
}

/* Mobile Modal Breakpoints */
@media (max-width: 768px) {
  .export-format-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .export-options-grid {
    grid-template-columns: 1fr;
  }
  .modal-footer {
    flex-direction: column-reverse;
    gap: 10px;
    align-items: stretch;
  }
  .footer-left-actions, .footer-right-actions {
    justify-content: stretch;
  }
  .footer-left-actions button, .footer-right-actions button {
    flex: 1;
  }
}

/* ============================================================
   MOTIONSITES-INSPIRED WELCOME & NEW DOCUMENT ONBOARDING
   ============================================================ */
.welcome-modal {
  width: 820px;
  max-width: 95vw;
  max-height: 92vh;
  background: rgba(12, 14, 21, 0.95);
  -webkit-backdrop-filter: blur(32px);
  backdrop-filter: blur(32px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.85), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: scaleUp 0.22s var(--ease-out-expo);
  position: relative;
}

.pb-badge {
  background: #FFFFFF !important;
  color: #07080B !important;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.brand-sub {
  font-size: 9.5px;
  font-style: normal;
  color: #38BDF8;
  font-weight: 700;
  letter-spacing: 1.2px;
  margin-left: 6px;
  text-transform: uppercase;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 2px 7px;
  border-radius: 9999px;
}

.welcome-modal-body {
  padding: 22px 28px;
  overflow-y: auto;
  max-height: calc(92vh - 140px);
}

.welcome-hero-banner {
  background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.15) 0%, rgba(12, 14, 21, 0.2) 70%), rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 20px;
}

.welcome-hero-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #38BDF8;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.welcome-hero-title {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 6px 0;
  letter-spacing: -0.4px;
}

.welcome-hero-sub {
  font-size: 13.5px;
  line-height: 1.55;
  color: #94A3B8;
  margin: 0;
  max-width: 640px;
}

.welcome-nav-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.welcome-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 9999px;
  border: 1px solid transparent;
  background: transparent;
  color: #94A3B8;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s var(--ease-out-expo);
}

.welcome-tab-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.05);
}

.welcome-tab-btn.active {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.18);
}

.welcome-presets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.wpreset-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.18s var(--ease-out-expo);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.wpreset-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
}

.wpreset-card.active {
  background: rgba(56, 189, 248, 0.09);
  border-color: #38BDF8;
  box-shadow: 0 0 0 1px #38BDF8, 0 8px 24px rgba(56, 189, 248, 0.15);
}

.wpreset-icon {
  font-size: 22px;
}

.wpreset-info strong {
  display: block;
  font-size: 13.5px;
  color: #F8FAFC;
  font-weight: 700;
}

.wpreset-info span {
  font-size: 11px;
  color: #94A3B8;
  font-family: 'JetBrains Mono', monospace;
}

.wpreset-tag {
  align-self: flex-start;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 2px 7px;
  border-radius: 9999px;
  font-weight: 600;
}

.welcome-template-choices {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.template-choice-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 18px;
  cursor: pointer;
  transition: all 0.18s var(--ease-out-expo);
}

.template-choice-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(56, 189, 248, 0.35);
}

.template-choice-card.active {
  background: rgba(56, 189, 248, 0.08);
  border-color: #38BDF8;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.4);
}

.template-choice-card input[type="radio"] {
  margin-top: 3px;
  accent-color: #38BDF8;
}

.choice-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #F8FAFC;
  margin-bottom: 4px;
}

.choice-title em {
  font-style: normal;
  font-size: 11.5px;
  color: #38BDF8;
  font-weight: 600;
}

.choice-desc {
  display: block;
  font-size: 12.5px;
  color: #94A3B8;
  line-height: 1.45;
}

/* Tour Feature Grid */
.tour-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.tour-feature-card {
  background: #161822;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 16px;
}

.tour-feature-badge {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #38bdf8;
  margin-bottom: 8px;
}

.tour-feature-card h4 {
  margin: 0 0 6px 0;
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
}

.tour-feature-card p {
  margin: 0;
  font-size: 12px;
  color: #94A3B8;
  line-height: 1.5;
}

/* ============================================================
   CLAUDE CANVAS & ILLUSTRATOR STYLE ELEMENT DRAGGING & REORDERING
   ============================================================ */
.menu-card, .vector-shape-item {
  cursor: grab !important;
  transition: transform 0.12s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.12s ease;
  position: relative;
}

.menu-card:active, .vector-shape-item:active {
  cursor: grabbing !important;
}

.menu-card.is-dragging, .vector-shape-item.is-dragging {
  cursor: grabbing !important;
  opacity: 0.85;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.65), 0 0 0 2px #38bdf8 !important;
  z-index: 999;
  pointer-events: none;
  transform-origin: center center;
}

.menu-card.drop-before-indicator, .vector-shape-item.drop-before-indicator {
  position: relative;
  outline: 2px dashed #38bdf8 !important;
  box-shadow: 0 -4px 14px rgba(56, 189, 248, 0.4) !important;
}

.menu-card.drop-before-indicator::before, .vector-shape-item.drop-before-indicator::before {
  content: "INSERT BEFORE ⮥";
  position: absolute;
  top: -14px;
  left: 8px;
  background: #38bdf8;
  color: #07080B;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 3px;
  letter-spacing: 0.5px;
  z-index: 100;
  pointer-events: none;
}

.menu-card.drop-after-indicator, .vector-shape-item.drop-after-indicator {
  position: relative;
  outline: 2px dashed #38bdf8 !important;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.4) !important;
}

.menu-card.drop-after-indicator::after, .vector-shape-item.drop-after-indicator::after {
  content: "INSERT AFTER ⮧";
  position: absolute;
  bottom: -14px;
  left: 8px;
  background: #38bdf8;
  color: #07080B;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 3px;
  letter-spacing: 0.5px;
  z-index: 100;
  pointer-events: none;
}

/* Floating Pos Coordinate Pill */
.drag-coordinate-pill {
  position: absolute;
  top: -24px;
  left: 0;
  background: #0f172a;
  color: #38bdf8;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid rgba(56, 189, 248, 0.4);
  pointer-events: none;
  z-index: 1000;
}

/* Floating Element Actions Mini Toolbar */
.floating-element-toolbar {
  position: absolute;
  top: -34px;
  right: 0;
  background: #141722;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  z-index: 1050;
  animation: fadeIn 0.12s ease-out;
}

.floating-element-toolbar button {
  background: transparent;
  border: none;
  color: #94A3B8;
  width: 26px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transition: all 0.1s ease;
}

.floating-element-toolbar button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.floating-element-toolbar button.btn-toolbar-del:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #EF4444;
}

/* Vector Shapes */
.vector-shape-item {
  box-sizing: border-box;
}

.vector-shape-rect {
  min-height: 80px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 16px;
}

.vector-shape-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.1);
  border: 2px solid #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px auto;
}

.vector-shape-line {
  height: 2px;
  background: rgba(255, 255, 255, 0.25);
  margin: 16px 0;
  width: 100%;
}

.vector-text-block {
  padding: 8px 12px;
  min-height: 40px;
}

.vector-text-block h2 {
  margin: 0;
  font-size: 20px;
  color: var(--color-text-primary, #FFFFFF);
}

.vector-text-block p {
  margin: 4px 0 0 0;
  font-size: 13px;
  color: var(--color-text-muted, #94A3B8);
}

/* Top bar buttons */
.btn-sm {
  padding: 4px 8px !important;
  font-size: 11px !important;
}

.dup-board-tab-btn {
  border: 1px solid #444 !important;
  margin-left: 2px;
}
.dup-board-tab-btn:hover {
  background: #2C2C2C !important;
  color: #FFFFFF !important;
}

