/* Ubiquo PLM design system tokens (design system artifact AU5gzfjmzxTYuk4YEvCvbF, tokens.json v2, copied 2026-11-11). Variables only:
   the type-scale classes (.title, .small, .id …) are left out because the old PLM shell uses those names. Theme = <html data-theme> (theme.js). */
/* Ubiquo Robótica identity (Brand Book v1.0, kit templates/brand/ubiquo-robotica, Lucas 11-19 via Ubi: "o Ubiquo Hub não está com a
   identidade da Ubiquo Robótica"). Monochrome: ink #0B0C0E and paper; no brand colour. A state keeps a minimal functional colour and
   always a word. Space Grotesk for titles, IBM Plex Sans for text, IBM Plex Mono for ids and numbers; all served by the Hub (OFL 1.1). */
@font-face { font-family: "Space Grotesk"; src: url("fonts/SpaceGrotesk-var.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/IBMPlexSans-var.woff2") format("woff2"); font-weight: 100 700; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; font-style: italic; src: url("fonts/IBMPlexSans-italic-var.woff2") format("woff2"); font-weight: 100 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/IBMPlexMono-normal-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/IBMPlexMono-normal-500.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }
:root, [data-theme="dark"] {
  --bg: #0B0C0E;
  --surface: #131519;
  --surface-raised: #1B1E22;
  --surface-3: #2A2E34;
  --border: rgba(255,255,255,.12);
  --border-strong: #444A52;
  --ink: #F2F3F5;
  --ink-muted: #C2C7CD;
  --ink-subtle: #969CA4;
  --accent: #F2F3F5;
  --accent-fill: #F2F3F5;
  --on-accent: #0B0C0E;
  --accent-subtle: #1B1E22;
  --success: #7FBF95;
  --success-subtle: #16201A;
  --warning: #D9B36A;
  --warning-subtle: #241F14;
  --danger: #E0837D;
  --danger-subtle: #2A1716;
  --focus-ring: #F2F3F5;
  --shadow-card: none;
  --shadow-float: 0 16px 40px rgba(0,0,0,0.55);
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #F1F3F5;
  --surface: #FFFFFF;
  --surface-raised: #F7F8F9;
  --surface-3: #E0E3E7;
  --border: rgba(11,12,14,.12);
  --border-strong: #969CA4;
  --ink: #0B0C0E;
  --ink-muted: #444A52;
  --ink-subtle: #5E646B;
  --accent: #0B0C0E;
  --accent-fill: #0B0C0E;
  --on-accent: #F2F3F5;
  --accent-subtle: #E0E3E7;
  --success: #2F6B45;
  --success-subtle: #E3EDE6;
  --warning: #7A5A14;
  --warning-subtle: #F2ECDD;
  --danger: #9C2B24;
  --danger-subtle: #F4E3E1;
  --focus-ring: #0B0C0E;
  --shadow-card: none;
  --shadow-float: 0 12px 32px rgba(11,12,14,0.12);
  color-scheme: light;
}
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --radius-sm: 3px;
  --radius: 4px;
  --radius-lg: 6px;
  --radius-xl: 8px;
  --radius-pill: 4px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

/* ---- Bridge for the pages written before the design system (2026-11-12, DESIGN-SYSTEM.md "Legacy names"). The old names point at
   the tokens above; the *-rgb triplets are the same colours as numbers, for rgba(var(--x-rgb), a). New code uses the token names. ---- */
:root, [data-theme="dark"] {
  --ink-rgb: 242,243,245; --bg-rgb: 11,12,14;
  --sem-bad-rgb: 224,131,125; --sem-good-rgb: 127,191,149; --sem-warn-rgb: 217,179,106; --sem-info-rgb: 242,243,245;
  --holo-rgb: 242,243,245; --holo-glow-rgb: 194,199,205; --live-rgb: 242,243,245; --live: #F2F3F5;
}
[data-theme="light"] {
  --ink-rgb: 11,12,14; --bg-rgb: 241,243,245;
  --sem-bad-rgb: 156,43,36; --sem-good-rgb: 47,107,69; --sem-warn-rgb: 122,90,20; --sem-info-rgb: 11,12,14;
  --holo-rgb: 11,12,14; --holo-glow-rgb: 68,74,82; --live-rgb: 11,12,14; --live: #0B0C0E;
}
:root {
  --sem-bad: var(--danger); --sem-good: var(--success); --sem-warn: var(--warning); --sem-info: var(--accent);
  --wait: var(--warning); --wait-rgb: var(--sem-warn-rgb);
  --surface2: var(--surface-raised); --line: var(--border); --line2: var(--border-strong);
  --w94: var(--ink); --w78: rgba(var(--ink-rgb),.82); --w55: var(--ink-muted); --w44: var(--ink-subtle); --w42: var(--ink-subtle); --w34: var(--ink-subtle);
  --text-faint: var(--ink-subtle); --w22: rgba(var(--ink-rgb),.22); --w12: rgba(var(--ink-rgb),.12); --w07: rgba(var(--ink-rgb),.08);
  --r: var(--radius); --hdr: 0px; --side: 0px;
  --fg: var(--ink); --mute: var(--ink-subtle); --w70: var(--ink-muted); --warn: var(--warning); --ok: var(--success);
}

/* ---- Content colours: drawn data, not UI chrome (Form guides and cut lines). Kept here so no page carries a hex. ---- */
:root { --fm-guide: #b45cf0; --fm-cut: #e8743b; }
