/* ==========================================================================
   SVG Creator Pro — base tokens, resets, typography
   ========================================================================== */

:root {
  /* Palette */
  --color-primary: #6C4AB6;
  --color-primary-dark: #563C93;
  --color-primary-light: #8A6BCB;
  --color-accent: #E8DDF7;
  --color-bg: #F7F7FA;
  --color-surface: #FFFFFF;
  --color-text: #242424;
  --color-text-muted: #6B6B78;
  --color-border: #E4E2EC;
  --color-success: #2E8B57;
  --color-warning: #B7791F;
  --color-danger: #C0392B;

  /* Type */
  --font-display: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

  /* Radii / shadow */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(36, 36, 36, 0.06);
  --shadow-md: 0 8px 24px rgba(36, 36, 36, 0.08);
  --shadow-lg: 0 16px 40px rgba(36, 36, 36, 0.14);

  /* Layout */
  --header-h: 76px;
  --panel-controls-w: 320px;
  --panel-results-w: 320px;

  --transition-fast: 140ms ease;
  --transition-med: 240ms ease;
}

* , *::before, *::after { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-display);
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 600; }

p { margin: 0 0 8px; }

a { color: var(--color-primary); }

button, input, select, textarea { font-family: inherit; color: inherit; }

button { cursor: pointer; }

::selection { background: var(--color-accent); }

svg { display: block; }

/* Any component class (badge, row, modal-overlay, etc.) may set its own
   `display`; the native [hidden] attribute must always win regardless
   of selector specificity or source order. */
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.hint-text {
  font-size: 12.5px;
  color: var(--color-text-muted);
  margin: 6px 0 10px;
  line-height: 1.45;
}

.warning-text {
  font-size: 12.5px;
  color: var(--color-warning);
  background: #FBF3E1;
  border: 1px solid #F0DEB0;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  margin: 8px 0;
}

.empty-state {
  color: var(--color-text-muted);
  text-align: center;
  padding: 40px 20px;
  font-size: 14px;
}

#workCanvas { display: none; }
