/*
 * Copyright (c) 2026 New York for Training and Rehabilitation. All rights reserved.
 * Unauthorised copying, redistribution, or creation of derivative works is prohibited.
*/

/* The HTML `hidden` attribute is only `display: none` from the user-agent sheet, so any
   class that sets display - .stack sets flex - silently beats it and the element stays
   visible. Normalize it once here rather than remembering it per element. */
[hidden] { display: none !important; }

:root {
  color-scheme: light;
  /* Navy is the anchor color: sidebar, chrome, dark surfaces. */
  --navy-950: #0e1e43;
  --navy-900: #16264c;
  --navy-800: #1e3562;
  --navy-700: #29477e;
  --navy-600: #375ca0;
  --navy-50: #eaeef6;

  /* Crimson is the primary brand/action color. */
  --crimson-700: #a50d26;
  --crimson-600: #c8102e;
  --crimson-500: #d93a54;
  --crimson-400: #e4707f;
  --crimson-100: #f9d6da;
  --crimson-50: #fdf1f2;

  /* Broader accent family — used deliberately for category/data color-coding and
     decorative gradients, never for semantic status (see success/danger/warning below).
     Kept clear of crimson so decorative multi-hue coding never gets mistaken for the
     brand accent or a status color. */
  --violet-600: #6d28d9;
  --violet-500: #8b5cf6;
  --violet-50: #f4f1ff;
  --indigo-600: #4338ca;
  --indigo-500: #6366f1;
  --indigo-50: #eef1ff;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-50: #eff6ff;
  --cyan-600: #0e7490;
  --cyan-500: #06b6d4;
  --cyan-50: #ecfeff;
  --amber-600: #b45309;
  --amber-500: #f59e0b;
  --amber-50: #fffaeb;
  --rose-600: #9d174d;
  --rose-500: #db2777;
  --rose-50: #fdf2f8;
  --pink-600: #a3216f;
  --pink-500: #ec4899;
  --pink-50: #fdf2f9;

  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-subtle: #f7f9fb;
  --text: #1a2340;
  --muted: #6b7a96;
  --muted-strong: #4a5670;
  --border: #e5e9ef;
  --border-soft: #edf0f4;
  /* Darkened for hover-state affordance on inputs/buttons - derived, not a fourth
     hand-picked near-duplicate of the light neutral borders above. */
  --border-hover: color-mix(in srgb, var(--border) 75%, var(--muted) 25%);

  /* Semantic — always tied to good/caution/bad, never reused decoratively. */
  --success: #16a34a;
  --success-bg: #e8f6ec;
  --danger: #dc2626;
  --danger-bg: #fdeaea;
  --warning: #92600a;
  --warning-bg: #fff6e0;

  /* Report-status colors — the vocabulary used across status pills, KPI icons, and
     chart series. Kept distinct from --crimson-*, which is reserved for brand/primary
     actions, so a status color is never mistaken for a call to action. */
  --status-open: #f0a500;
  --status-open-bg: #fdf1da;
  --status-progress: #2d7ff9;
  --status-progress-bg: #e7f0fe;
  --status-resolved: #16a34a;
  --status-resolved-bg: #e8f6ec;
  --status-pending: #8791a8;
  --status-pending-bg: #eceef3;

  /* Chart series palette (line/donut charts, category coding) — navy/green/red/amber/blue
     plus a neutral grey for overflow ("Others") buckets. */
  --chart-navy: #0e1e43;
  --chart-blue: #2d7ff9;
  --chart-green: #16a34a;
  --chart-red: #dc2626;
  --chart-amber: #f0a500;
  --chart-grey: #94a3b8;

  --shadow-sm: 0 1px 2px rgba(14, 30, 67, 0.05), 0 4px 14px rgba(14, 30, 67, 0.05);
  --shadow-md: 0 14px 38px rgba(14, 30, 67, 0.12);

  /* IBM Plex Sans Arabic leads the stack under RTL so Arabic text renders correctly,
     while Western numerals/Latin fallback content (OVR numbers, emails, mixed strings)
     still falls through to IBM Plex Sans. */
  --font-sans: "IBM Plex Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow-glow: 0 10px 26px rgba(200, 16, 46, 0.16);
  --radius-sm: 11px;
  --radius-md: 17px;
  --radius-lg: 24px;
  --gradient-brand: linear-gradient(135deg, var(--crimson-500) 0%, var(--crimson-700) 100%);
  --gradient-hero: radial-gradient(circle at 15% 10%, rgba(200, 16, 46, 0.22), transparent 42%), radial-gradient(circle at 85% 90%, rgba(45, 127, 249, 0.14), transparent 46%), linear-gradient(160deg, var(--navy-800), var(--navy-950) 72%);
}

/* Deterministic accent classes for non-semantic, decorative color-coding (category
   tiles, distribution bars, stat icons) — a small fixed rotation, not free-form color. */
.accent-crimson { --accent: var(--crimson-600); --accent-soft: var(--crimson-50); }
.accent-violet { --accent: var(--violet-600); --accent-soft: var(--violet-50); }
.accent-indigo { --accent: var(--indigo-600); --accent-soft: var(--indigo-50); }
.accent-blue { --accent: var(--blue-600); --accent-soft: var(--blue-50); }
.accent-cyan { --accent: var(--cyan-600); --accent-soft: var(--cyan-50); }
.accent-amber { --accent: var(--amber-600); --accent-soft: var(--amber-50); }
.accent-rose { --accent: var(--rose-600); --accent-soft: var(--rose-50); }
.accent-pink { --accent: var(--pink-600); --accent-soft: var(--pink-50); }

* { box-sizing: border-box; }

html { min-height: 100%; scroll-behavior: smooth; }

html[dir="rtl"] {
  --font-sans: "IBM Plex Sans Arabic", "IBM Plex Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* Sign flip for physical-axis transforms (translateX) that can't be expressed with
     logical properties — e.g. the off-canvas sidebar's slide direction. */
  --dir: -1;
}

body {
  min-height: 100%;
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea { font: inherit; }

button,
a { -webkit-tap-highlight-color: transparent; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(200, 16, 46, 0.22);
  outline-offset: 2px;
}

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--navy-950); letter-spacing: -0.025em; }
p { line-height: 1.6; }
a { color: var(--crimson-700); text-decoration: none; }

.hidden { display: none !important; }
.muted { color: var(--muted); }
.high { color: var(--danger); }
.medium { color: var(--warning); }
.low { color: var(--success); }
.text-sm { font-size: 0.875rem; }

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-weight: 780;
  letter-spacing: -0.02em;
}

/* The mark never mirrors under RTL - logos don't flip - so it's excluded from the
   direction-aware layout rules everywhere it appears. */
.brand-mark {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
}

.wordmark .wm-navy { color: var(--navy-950); }
.wordmark .wm-accent { color: var(--crimson-600); }

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 13px;
  padding: 11px 18px;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  transition: transform 160ms cubic-bezier(.2,.8,.3,1.1), box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.btn:hover { transform: translateY(-1.5px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-primary {
  color: white;
  background: var(--crimson-600);
  box-shadow: 0 8px 20px rgba(200, 16, 46, 0.24);
}

.btn-primary:hover { background: var(--crimson-700); box-shadow: 0 12px 28px rgba(165, 13, 38, 0.26); }

.btn-secondary {
  color: var(--navy-900);
  background: white;
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

/* Language switch: two buttons (EN | AR) - never a dropdown, since there are only
   ever two supported languages. Mounted via mountLanguageSwitch() in i18n.js. */
.lang-switch {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: var(--surface-subtle);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
}

.lang-btn {
  min-height: 30px;
  padding-inline: 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.lang-btn.active {
  color: var(--navy-900);
  background: white;
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover { background: var(--surface-subtle); border-color: var(--border-hover); }
.btn-ghost { color: var(--muted-strong); background: transparent; }
.btn-danger { color: var(--danger); background: var(--danger-bg); }
.btn-wide { width: 100%; }

.card {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 200ms ease, transform 200ms ease;
}

.pill,
.status-badge,
.priority-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}

.pill { color: var(--accent, var(--crimson-700)); background: var(--accent-soft, var(--crimson-50)); border: 1px solid color-mix(in srgb, var(--accent, var(--crimson-600)) 28%, white); }
.pill::before { width: 6px; height: 6px; content: ""; border-radius: 50%; background: var(--accent, var(--crimson-500)); }

.status-badge { color: var(--status-pending); background: var(--status-pending-bg); }
.status-badge.status-new { color: color-mix(in srgb, var(--status-open) 70%, black); background: var(--status-open-bg); }
.status-badge.status-progress,
.status-badge.status-assigned { color: var(--status-progress); background: var(--status-progress-bg); }
.status-badge.status-resolved,
.status-badge.status-verified,
.status-badge.status-closed { color: var(--status-resolved); background: var(--status-resolved-bg); }
.status-badge.status-reopened { color: var(--danger); background: var(--danger-bg); }

.priority-badge.priority-critical,
.priority-badge.priority-high { color: var(--danger); background: var(--danger-bg); }
.priority-badge.priority-medium { color: var(--warning); background: var(--warning-bg); }
.priority-badge.priority-low { color: var(--success); background: var(--success-bg); }

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 14px 0;
}

.field label,
.field-label {
  color: var(--navy-900);
  font-size: 0.82rem;
  font-weight: 700;
}

.field input:not([type="checkbox"]):not([type="radio"]),
.field textarea,
.field select,
.routing-form input,
.routing-form select {
  width: 100%;
  color: var(--text);
  background: white;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 11px 13px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

/* Section sub-heading used inside multi-part forms (mobile capture flow and the full
   electronic OVR form both use it) — one shared definition instead of two. */
.form-section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 27px 0 5px; padding-bottom: 9px; border-bottom: 1px solid var(--border); color: var(--navy-900); font-size: 0.78rem; font-weight: 750; }
.form-section-title span:last-child { color: var(--muted); font-size: 0.65rem; font-weight: 650; white-space: nowrap; }
.required { margin-inline-start: 5px; color: var(--danger); font-size: 0.64rem; font-weight: 700; }
.field-help { color: var(--muted); font-size: 0.72rem; line-height: 1.45; }
.step-actions { display: flex; gap: 10px; margin-top: 22px; }
.step-actions .btn { flex: 1; }

.field input:hover,
.field textarea:hover,
.field select:hover,
.routing-form input:hover,
.routing-form select:hover { border-color: var(--border-hover); }

.field input:focus,
.field textarea:focus,
.field select:focus,
.routing-form input:focus,
.routing-form select:focus {
  outline: none;
  border-color: var(--crimson-600);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.12);
}

textarea { resize: vertical; line-height: 1.5; }
::placeholder { color: #94a3b8; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.row { display: flex; gap: 10px; align-items: center; }
.space { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 14px; }

.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 16px; text-align: start; border-bottom: 1px solid var(--border-soft); font-size: 0.875rem; }
th { color: var(--muted); background: var(--surface-subtle); font-size: 0.7rem; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
tbody tr { transition: background 120ms ease; }
tbody tr:hover { background: var(--surface-subtle); }
tbody tr:last-child td { border-bottom: 0; }
td a { font-weight: 750; }

.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-heading h2,
.section-heading h3 { margin-bottom: 5px; }
.section-heading p { margin: 0; color: var(--muted); font-size: 0.875rem; }

.eyebrow {
  margin-bottom: 7px;
  color: var(--crimson-700);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

/* Welcome page */
.welcome-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 10%, rgba(200, 16, 46, 0.12), transparent 30rem),
    radial-gradient(circle at 78% 22%, rgba(45, 127, 249, 0.10), transparent 26rem),
    radial-gradient(circle at 10% 90%, rgba(45, 127, 249, 0.08), transparent 28rem),
    linear-gradient(180deg, #f8fafd 0%, #f4f6f9 100%);
}

.welcome-nav {
  display: flex;
  max-width: 1180px;
  align-items: center;
  justify-content: space-between;
  margin: auto;
  padding: 24px 28px;
}

.welcome-nav .brand-lockup { color: var(--navy-950); font-size: 1.04rem; }
.welcome-nav-actions { display: flex; gap: 10px; }

.welcome-main {
  display: grid;
  max-width: 1180px;
  min-height: calc(100vh - 170px);
  grid-template-columns: 1.08fr 0.92fr;
  gap: 72px;
  align-items: center;
  margin: auto;
  padding: 54px 28px 90px;
}

.welcome-copy h1 { max-width: 720px; margin-bottom: 22px; font-size: clamp(2.65rem, 6vw, 5rem); line-height: 0.99; }
.welcome-copy > p { max-width: 590px; margin-bottom: 30px; color: var(--muted-strong); font-size: 1.08rem; }
.welcome-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.welcome-actions .btn { min-width: 145px; }
.welcome-trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 35px; color: var(--muted); font-size: 0.82rem; font-weight: 650; }
.trust-item { display: inline-flex; align-items: center; gap: 7px; }
.trust-check { display: grid; width: 19px; height: 19px; place-items: center; color: var(--success); background: var(--success-bg); border-radius: 50%; font-size: 0.7rem; }

.workflow-card { position: relative; padding: 28px; overflow: hidden; border-radius: 28px; box-shadow: var(--shadow-md); }
.workflow-card::before { position: absolute; width: 220px; height: 220px; inset-inline-end: -80px; top: -90px; content: ""; background: radial-gradient(circle, rgba(200, 16, 46, 0.12), rgba(45, 127, 249, 0.07) 60%, transparent 75%); border-radius: 50%; }
.workflow-card > * { position: relative; }
.workflow-head { margin-bottom: 24px; }
.workflow-head h2 { margin-bottom: 8px; font-size: 1.35rem; }
.workflow-head p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.workflow-list { display: grid; gap: 5px; }
.workflow-step { display: grid; grid-template-columns: 42px 1fr; gap: 14px; padding: 14px 0; }
.workflow-step:not(:last-child) { border-bottom: 1px solid var(--border-soft); }
.workflow-number { display: grid; width: 38px; height: 38px; place-items: center; color: var(--accent, var(--crimson-700)); background: var(--accent-soft, var(--crimson-50)); border: 1px solid color-mix(in srgb, var(--accent, var(--crimson-600)) 26%, white); border-radius: 12px; font-size: 0.78rem; font-weight: 800; }
.workflow-step:nth-child(1) .workflow-number { --accent: var(--crimson-600); --accent-soft: var(--crimson-50); }
.workflow-step:nth-child(2) .workflow-number { --accent: var(--indigo-600); --accent-soft: var(--indigo-50); }
.workflow-step:nth-child(3) .workflow-number { --accent: var(--violet-600); --accent-soft: var(--violet-50); }
.workflow-step:nth-child(4) .workflow-number { --accent: var(--cyan-600); --accent-soft: var(--cyan-50); }
.workflow-step h3 { margin-bottom: 3px; font-size: 0.94rem; }
.workflow-step p { margin: 0; color: var(--muted); font-size: 0.8rem; }
.welcome-footer { max-width: 1180px; margin: auto; padding: 0 28px 28px; color: var(--muted); font-size: 0.78rem; }

/* Login */
.login-page { min-height: 100vh; background: var(--navy-950); }
.login-shell { position: relative; display: grid; min-height: 100vh; grid-template-columns: minmax(360px, 0.9fr) minmax(520px, 1.1fr); }
.login-brand-panel {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  padding: 46px clamp(34px, 5vw, 80px);
  color: white;
  background: var(--gradient-hero);
}
.login-brand-panel::after { position: absolute; width: 340px; height: 340px; inset-inline-end: -180px; top: 18%; content: ""; border: 1px solid rgba(255,255,255,0.08); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,0.025), 0 0 0 140px rgba(255,255,255,0.018); }
.login-brand-panel::before { position: absolute; inset: 0; content: ""; background-image: radial-gradient(rgba(255,255,255,0.09) 1px, transparent 1px); background-size: 26px 26px; mask-image: radial-gradient(circle at 30% 30%, black, transparent 70%); opacity: 0.5; }
/* The brand-lockup and login-brand-copy pack together as one composition (an explicit
   margin, not the old justify-content:space-between, which stretched them apart to fill
   the panel and read as an unrelated logo floating above a separate content block). Only
   the footer gets pushed to the bottom, via its own margin-top:auto. */
.login-brand-panel .brand-lockup { position: relative; z-index: 1; gap: 16px; margin-bottom: 44px; color: white; }
.login-brand-panel .brand-mark { width: 52px; height: 52px; }
.login-brand-panel .wordmark { font-size: 2.7rem; line-height: 1; }
.login-brand-panel .wordmark .wm-navy { color: white; }
.login-brand-copy { position: relative; z-index: 1; max-width: 500px; }
.login-brand-copy h1 { color: white; font-size: clamp(2.15rem, 4.3vw, 4rem); line-height: 1.04; }
.login-brand-copy p { max-width: 450px; color: #bdd0de; font-size: 1rem; }
.security-list { display: grid; gap: 13px; margin-top: 30px; }
.security-item { display: flex; align-items: center; gap: 11px; color: #e5f0f5; font-size: 0.87rem; }
.security-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: linear-gradient(135deg, var(--status-resolved), var(--success)); box-shadow: 0 0 0 5px rgba(22, 163, 74, 0.14); }
.login-brand-foot { position: relative; z-index: 1; margin-top: auto; padding-top: 40px; color: #88a4b8; font-size: 0.76rem; }
/* Extra bottom padding (vs. the top) nudges the vertically-centered card upward,
   a standard optical-centering correction - true mathematical center reads as
   slightly low once the card's own footer content (demo card, back link) is weighed in. */
.login-form-panel { display: grid; place-items: center; padding: 40px 28px 76px; background: #f7fafb; }
.login-card { width: min(430px, 100%); }
.lang-switch-login { position: absolute; top: 24px; inset-inline-end: 24px; z-index: 5; }
.login-card h2 { margin-bottom: 8px; font-size: 2rem; }
.login-card > .muted { margin-bottom: 28px; }
.login-card .field { margin: 17px 0; }
.input-wrap { position: relative; }
.input-wrap input { padding-inline-end: 52px; }
.password-toggle { position: absolute; inset-inline-end: 7px; top: 50%; min-width: 40px; min-height: 34px; transform: translateY(-50%); border: 0; color: var(--crimson-700); background: transparent; border-radius: 8px; font-size: 0.76rem; font-weight: 750; cursor: pointer; }
.password-toggle:hover { background: var(--crimson-50); }
.login-error { min-height: 20px; margin: 10px 0 4px; font-size: 0.85rem; }
.demo-card { margin-top: 22px; padding: 14px 16px; color: var(--muted-strong); background: white; border: 1px solid var(--border-soft); border-radius: 12px; font-size: 0.78rem; line-height: 1.55; }
.demo-card strong { display: block; margin-bottom: 2px; color: var(--navy-900); }
.back-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 22px; color: var(--muted); font-size: 0.8rem; font-weight: 650; }

@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .welcome-main { gap: 36px; }
}

@media (max-width: 780px) {
  .welcome-nav { padding: 19px 20px; }
  .welcome-nav .btn-secondary { display: none; }
  .welcome-main { min-height: auto; grid-template-columns: 1fr; gap: 44px; padding: 55px 20px 72px; }
  .welcome-copy h1 { font-size: clamp(2.6rem, 13vw, 4rem); }
  .workflow-card { padding: 22px; }
  .welcome-footer { padding: 0 20px 24px; }
  .login-shell { grid-template-columns: 1fr; }
  .login-brand-panel { min-height: auto; padding: 24px; }
  /* The desktop lockup scale (52px mark / 2.7rem wordmark) is sized for a wide hero
     panel; back it off here so it doesn't crowd the corner language switch on a
     narrow screen. */
  .login-brand-panel .brand-lockup { margin-bottom: 22px; }
  .login-brand-panel .brand-mark { width: 36px; height: 36px; }
  .login-brand-panel .wordmark { font-size: 1.9rem; }
  .login-brand-copy { margin: 0; }
  .login-brand-copy h1 { font-size: 2.4rem; }
  .security-list,
  .login-brand-foot { display: none; }
  .login-form-panel { padding: 42px 20px 56px; }
  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .card { padding: 18px; }
  .welcome-nav .brand-lockup { font-size: 0.93rem; }
  .welcome-trust { display: grid; gap: 10px; }
  .section-heading { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* --------------------------------------------------- shared additions (v1.0) */
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.btn-sm { min-height: 34px; padding: 6px 12px; font-size: 0.8rem; border-radius: 9px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.8rem; }

.sla-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--muted-strong);
  background: var(--surface-subtle);
}

.sla-badge.sla-ok { color: var(--success); background: var(--success-bg); }
.sla-badge.sla-met { color: var(--status-progress); background: var(--status-progress-bg); }
.sla-badge.sla-risk { color: var(--warning); background: var(--warning-bg); }
.sla-badge.sla-breach { color: var(--danger); background: var(--danger-bg); }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
}
