/* Procol Chart Studio — design tokens */

@font-face {
  font-family: 'Geist';
  src: url('/assets/fonts/Geist-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand palette (procol-brand-kit/color-guide.md) */
  --color-primary: #1375E4;
  --color-secondary: #5C93FF;
  --color-accent: #093970;
  --color-warning: #FFC055;
  --color-negative: #FF5151;
  --color-neutral: #6C757D;
  --color-black: #0A0B0B;
  --color-primary-light: #C4DDF8;
  /* Chart-semantics-only extension, not a core brand color (see plan §Context) */
  --color-positive: #2E9E5B;

  /* Neutral UI scale */
  --ui-bg: #FFFFFF;
  --ui-bg-subtle: #F7F9FC;
  --ui-bg-canvas: #F1F3F6;
  --ui-border: #E4E8EE;
  --ui-border-strong: #D3D9E1;
  --ui-text: #0A0B0B;
  --ui-text-secondary: #565E68;
  --ui-text-muted: #8A929C;
  --ui-focus: var(--color-primary);

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --text-xs: 11px;
  --text-sm: 13px;
  --text-md: 14px;
  --text-lg: 16px;
  --text-xl: 18px;
  --text-2xl: 22px;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;

  /* Radius / shadow */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(10, 11, 11, 0.06);
  --shadow-md: 0 4px 12px rgba(10, 11, 11, 0.08);
  --shadow-lg: 0 12px 32px rgba(10, 11, 11, 0.14);

  /* Layout */
  --topnav-height: 52px;
  --leftpanel-width: 375px;
  --statusbar-height: 32px;
}

/* Keyboard-only focus ring — mouse clicks never trigger :focus-visible, so
 * this adds real keyboard-navigation affordance without cluttering the
 * click-driven interactions the rest of the app is styled around. */
button:focus-visible,
.template-pill:focus-visible,
.template-card:focus-visible,
[role="tab"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--color-primary-light), 0 0 0 1px var(--color-primary);
}

/* Slim, brand-neutral scrollbars on the app's main scroll containers — the
 * default OS scrollbar reads noticeably heavier/lower-fidelity than the rest
 * of this UI, especially on Windows/Linux where it isn't an overlay. */
.editor-panel__body,
.modal-panel__body,
.data-grid-wrap,
.preview-pane__canvas-wrap {
  scrollbar-width: thin;
  scrollbar-color: var(--ui-border-strong) transparent;
}
.editor-panel__body::-webkit-scrollbar,
.modal-panel__body::-webkit-scrollbar,
.data-grid-wrap::-webkit-scrollbar,
.preview-pane__canvas-wrap::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.editor-panel__body::-webkit-scrollbar-track,
.modal-panel__body::-webkit-scrollbar-track,
.data-grid-wrap::-webkit-scrollbar-track,
.preview-pane__canvas-wrap::-webkit-scrollbar-track {
  background: transparent;
}
.editor-panel__body::-webkit-scrollbar-thumb,
.modal-panel__body::-webkit-scrollbar-thumb,
.data-grid-wrap::-webkit-scrollbar-thumb,
.preview-pane__canvas-wrap::-webkit-scrollbar-thumb {
  background: var(--ui-border-strong);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.editor-panel__body::-webkit-scrollbar-thumb:hover,
.modal-panel__body::-webkit-scrollbar-thumb:hover,
.data-grid-wrap::-webkit-scrollbar-thumb:hover,
.preview-pane__canvas-wrap::-webkit-scrollbar-thumb:hover {
  background: var(--ui-text-muted);
}
