/* Fimex design tokens and base styles. Direction B "Workbench":
   dark sidebar, white cards on a cool grey ground, teal accent. */

:root {
  --ground: #EEF1F5;
  --surface: #FFFFFF;
  --surface-2: #F5F7F9;
  --sidebar: #0F2533;
  --sidebar-ink: #C7D3DE;
  --sidebar-ink-strong: #FFFFFF;
  --sidebar-hover: rgba(255, 255, 255, 0.08);
  --sidebar-active: rgba(255, 255, 255, 0.12);
  --ink: #16212B;
  --ink-2: #3E4C59;
  --muted: #6B7A88;
  --rule: #EDF0F3;
  --rule-strong: #C9D2DB;
  --accent: #17787A;
  --accent-strong: #0F5C5E;
  --accent-soft: #E3F1F1;
  --ok: #1E6B44;
  --ok-soft: #E1F3EA;
  --wait: #8A5A12;
  --wait-soft: #FBEBD2;
  --bad: #A93A3A;
  --bad-soft: #F8E3E3;
  --bad-tint: #FBF3F2;
  --shadow-card: 0 1px 2px rgba(22, 33, 43, 0.06), 0 0 0 1px rgba(22, 33, 43, 0.05);
  --shadow-pop: 0 8px 24px rgba(22, 33, 43, 0.14), 0 0 0 1px rgba(22, 33, 43, 0.06);
  --radius: 8px;
  --radius-lg: 10px;
  --font-display: "Sora", "Trebuchet MS", "Segoe UI", sans-serif;
  --font-body: "Public Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --control-h: 38px;
  --sidebar-w: 232px;
  --page-pad: 32px;
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 16px; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: 26px; }
h2 { font-size: 18px; }
h3 { font-size: 15px; }
h4 { font-size: 13px; }

p { margin: 0; }
p + p { margin-top: 0.6em; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 2px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

button { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.icon { flex-shrink: 0; }

.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.lbl {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: var(--radius); z-index: 100; }
.skip-link:focus { left: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
