/* ─────────────────────────────────────────────────────────────────────
   LCAgent — global stylesheet
   Visual tokens are the single source of truth (DESIGN.md).
   Component-level styling lives in the corresponding .jsx files.
   ───────────────────────────────────────────────────────────────────── */

/* ── Tokens ───────────────────────────────────────────────────────── */
:root {
  /* Primary palette */
  --color-charcoal:   #534A4C;
  --color-sand:       #D0B285;
  --color-terracotta: #9F7767;
  --color-pale-sage:  #DAE0CC;
  --color-sage:       #9BB496;

  /* Neutral scale */
  --color-n900: #282926;
  --color-n700: #534A4C;
  --color-n500: #737375;
  --color-n300: #C8C3C4;
  --color-n100: #F2F1EF;
  --color-bg:   #FAF8F4;

  /* Semantic */
  --color-success: #2E705B;
  --color-info:    #4C6EF5;
  --color-warning: #D05B2B;
  --color-error:   #B5473A;

  /* Node status (galaxy chart, lands in Session 034) */
  --color-status-verified: var(--color-sage);
  --color-status-assumed:  var(--color-sand);
  --color-status-missing:  var(--color-error);

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-xs:   12px;
  --font-size-sm:   13px;
  --font-size-base: 15px;
  --font-size-md:   17px;
  --font-size-lg:   22px;
  --font-size-xl:   28px;
  --font-size-2xl:  40px;

  --font-weight-light:    300;
  --font-weight-normal:   400;
  --font-weight-medium:   500;
  --font-weight-semibold: 600;
  --font-weight-bold:     700;

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

  /* Radius */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(40, 41, 38, 0.06);
  --shadow-md: 0 4px 16px rgba(40, 41, 38, 0.08);
  --shadow-lg: 0 12px 40px rgba(40, 41, 38, 0.18);
}

/* ── Reset ────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  color: var(--color-n900);
  background: var(--color-bg);
  min-width: 1200px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

input {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── Utilities ────────────────────────────────────────────────────── */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--color-n300);
  border-top-color: var(--color-n900);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

.error-msg {
  color: var(--color-error);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
}
