/*
 * TMS Core 7 — design tokens ("Highway Slate").
 * Loaded on every page; the tokens do nothing until tms-components.css
 * (scoped to body.ui-v2) uses them.
 *
 * Company branding: the layout may override --brand-accent / --brand-accent-strong /
 * --brand-accent-tint from the company profile. Everything else derives from these.
 */
:root {
  /* Ground and surfaces */
  --tms-bg: #F4F5F7;
  --tms-surface: #FFFFFF;
  --tms-surface-2: #F8F9FA;

  /* Text */
  --tms-ink: #16202C;
  --tms-ink-2: #2E3A48;
  --tms-muted: #5A6575;

  /* Lines */
  --tms-line: #E1E4E9;
  --tms-line-soft: #EDEFF2;
  --tms-line-strong: #D5DAE1;

  /* Brand accent (overridable per company) */
  --brand-accent: #C2410C;
  --brand-accent-strong: #9A3412;
  --brand-accent-tint: #FFF4ED;
  --brand-on-accent: #FFFFFF;

  /* Status */
  --tms-success: #166534;  --tms-success-bg: #DCFCE7;
  --tms-info: #1E40AF;     --tms-info-bg: #DBEAFE;
  --tms-warning: #92400E;  --tms-warning-bg: #FEF3C7;
  --tms-danger: #B42318;   --tms-danger-bg: #FDE8E6;
  --tms-neutral-bg: #F1F3F5;

  /* Type */
  --tms-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --tms-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --tms-fs-xs: 12px;
  --tms-fs-sm: 13px;
  --tms-fs-md: 14px;
  --tms-fs-lg: 16px;
  --tms-fs-xl: 20px;
  --tms-fs-2xl: 26px;

  /* Shape and space */
  --tms-radius: 6px;
  --tms-radius-lg: 8px;
  --tms-radius-xl: 10px;
  --tms-control-h: 36px;
  --tms-focus: 0 0 0 3px rgba(194, 65, 12, .22);
  --tms-shadow-pop: 0 10px 30px rgba(22, 32, 44, .14);
}

/* Shown in both looks by core/js/tms-ui.js when a form's data fails to load */
.tms-load-error {
  margin: 8px 0 12px;
  padding: 12px 14px;
  border: 1px solid #F3C4BE;
  border-left: 4px solid var(--tms-danger);
  border-radius: var(--tms-radius);
  background: var(--tms-danger-bg);
  color: #7A1A12;
  font-size: 14px;
  line-height: 1.45;
}
