/* Admin shell theme tokens: the light default palette, the dark override and theme transitions. One of the shell stylesheets; they load in the
  shell's order, which keeps the cascade. */

  /* IT4Y_PHASE177_LIGHT_THEME_DEFAULT_V1 ─────────────────────────────────────
   * :root defines the LIGHT palette (the new default). Dark mode is an
   * override under html[data-theme="dark"]. Both palettes share variable
   * names so all components automatically re-skin via CSS vars only — no
   * JS DOM rewrites needed when the user toggles. */
  :root {
    /* Surfaces */
    --bg:#f3f5f9; --bg-2:#ffffff; --panel:#ffffff; --panel-2:#f7f9fc;
    /* Borders */
    --border:#d8dde7; --border-soft:#e6e9ef;
    /* Text */
    --text:#0d1117; --text-dim:#2d3748; --muted:#5a6578;
    /* Accent */
    --accent:#2563eb; --accent-soft:#dbeafe;
    /* Semantic */
    --ok:#15803d; --warn:#b45309; --danger:#b91c1c; --info:#2563eb;
    /* Filled controls: the background of a control with white text, at least 4.5:1 against #fff in both themes
       (IT4Y_ADMIN_FILL_CONTRAST_2026_11_11) */
    --accent-fill:#2563eb; --warn-fill:#b45309; --danger-fill:#b91c1c;
    /* Table accents (Phase 177: extracted from inline hex colors) */
    --table-row-border:#e6e9ef; --row-hover:#eef2f8;
    /* Shadow */
    --shadow-sm: 0 1px 2px rgba(15,23,42,.06);
    --shadow-md: 0 4px 12px rgba(15,23,42,.08);
    /* Layout */
    --admin-nav-w:260px; --header-h:56px;
  }
  html[data-theme="dark"] {
    --bg:#0a1219; --bg-2:#0c1722; --panel:#0f1e2e; --panel-2:#152a40;
    --border:#1f3a5a; --border-soft:#15273e;
    --text:#e8edf6; --text-dim:#b4c0d0; --muted:#8fa0b6;
    --accent:#3b9eff; --accent-soft:#1d3a5e;
    --accent-fill:#1f6fd1; --warn-fill:#b45309; --danger-fill:#b91c1c;
    --ok:#34d399; --warn:#fbbf24; --danger:#f87171; --info:#60a5fa;
    --table-row-border:#131e2d; --row-hover:#11203a;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.35);
    --shadow-md: 0 4px 12px rgba(0,0,0,.45);
  }
  /* Smooth color transitions when the user toggles themes (200ms is long
   * enough to feel intentional, short enough to not slow workflows). */
  html, body, .app-header, .card, .kpi, .panel, table, th, td,
  .tn-item, .tn-dd-item, .pill, .btn, input, select, textarea {
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
  }
  * { box-sizing: border-box; }
  html, body { height: 100%; margin: 0; }
  body { font: 14px -apple-system, "Segoe UI", system-ui, sans-serif;
         background: var(--bg); color: var(--text); }
  a { color: var(--accent); text-decoration: none; }
  a:hover { text-decoration: underline; }
  code { font: 12px ui-monospace, "SF Mono", Menlo, monospace; color: var(--info); }
  pre { font: 12px ui-monospace, "SF Mono", Menlo, monospace; }
