/* ============================================================
   Saturno Labs · Time Tracking — design system
   Tokens → base → layout → components → page patterns.
   Documented in docs/design-system.md. Contrast pairs meet WCAG 2.1 AA.
   ============================================================ */

/* ── 1. Tokens ─────────────────────────────────────────────── */
:root {
  color-scheme: light;

  /* Typography */
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-display: clamp(3rem, 14vw, 4.5rem);
  --leading-tight: 1.2;
  --leading-normal: 1.5;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Spacing (4px scale) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;

  /* Shape */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 999px;
  --border-width: 1px;

  /* Sizing */
  --control-height: 2.5rem;      /* 40px */
  --control-height-lg: 3.5rem;   /* 56px: primary clock action */
  --header-height: 3.75rem;
  --content-narrow: 30rem;
  --content-wide: 72rem;

  /* Motion */
  --duration-fast: 120ms;
  --duration-base: 200ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);

  /* Colour — light */
  --color-bg: #f6f7fb;
  --color-surface: #ffffff;
  --color-surface-muted: #f1f3f9;
  --color-border: #e2e5ee;
  --color-border-strong: #c3c9d8;
  --color-text: #111827;
  --color-text-muted: #4b5563;
  --color-text-subtle: #5f6673;
  --color-primary: #4f46e5;
  --color-primary-hover: #4338ca;
  --color-on-primary: #ffffff;
  --color-primary-soft: #eef2ff;
  --color-primary-soft-text: #3730a3;
  --color-success: #15803d;
  --color-success-soft: #dcfce7;
  --color-success-soft-text: #166534;
  --color-danger: #b91c1c;
  --color-danger-hover: #991b1b;
  --color-on-danger: #ffffff;
  --color-danger-soft: #fee2e2;
  --color-danger-soft-text: #991b1b;
  --color-warning-soft: #fef3c7;
  --color-warning-soft-text: #92400e;
  --color-focus: #4f46e5;
  --color-overlay: rgba(17, 24, 39, 0.5);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 4px 16px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 16px 40px rgba(16, 24, 40, 0.18);
}

/* Colour — dark (explicit choice) */
:root[data-theme="dark"] {
  color-scheme: dark;
  --color-bg: #0b0f1a;
  --color-surface: #121826;
  --color-surface-muted: #1a2233;
  --color-border: #263045;
  --color-border-strong: #3a4660;
  --color-text: #e5e7eb;
  --color-text-muted: #a7b0c0;
  --color-text-subtle: #8b95a7;
  --color-primary: #818cf8;
  --color-primary-hover: #a5b4fc;
  --color-on-primary: #0b0f1a;
  --color-primary-soft: #1e1b4b;
  --color-primary-soft-text: #c7d2fe;
  --color-success: #4ade80;
  --color-success-soft: #052e16;
  --color-success-soft-text: #86efac;
  --color-danger: #f87171;
  --color-danger-hover: #fca5a5;
  --color-on-danger: #0b0f1a;
  --color-danger-soft: #450a0a;
  --color-danger-soft-text: #fca5a5;
  --color-warning-soft: #451a03;
  --color-warning-soft-text: #fcd34d;
  --color-focus: #a5b4fc;
  --color-overlay: rgba(0, 0, 0, 0.6);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
}

/* Colour — dark (system preference, unless light was chosen) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --color-bg: #0b0f1a;
    --color-surface: #121826;
    --color-surface-muted: #1a2233;
    --color-border: #263045;
    --color-border-strong: #3a4660;
    --color-text: #e5e7eb;
    --color-text-muted: #a7b0c0;
    --color-text-subtle: #8b95a7;
    --color-primary: #818cf8;
    --color-primary-hover: #a5b4fc;
    --color-on-primary: #0b0f1a;
    --color-primary-soft: #1e1b4b;
    --color-primary-soft-text: #c7d2fe;
    --color-success: #4ade80;
    --color-success-soft: #052e16;
    --color-success-soft-text: #86efac;
    --color-danger: #f87171;
    --color-danger-hover: #fca5a5;
    --color-on-danger: #0b0f1a;
    --color-danger-soft: #450a0a;
    --color-danger-soft-text: #fca5a5;
    --color-warning-soft: #451a03;
    --color-warning-soft-text: #fcd34d;
    --color-focus: #a5b4fc;
    --color-overlay: rgba(0, 0, 0, 0.6);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  }
}

/* ── 2. Base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--text-md);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
a { color: var(--color-primary); }
svg { flex-shrink: 0; }
[hidden] { display: none !important; }
code { font-family: var(--font-mono); font-size: 0.9em; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 100;
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-md);
  background: var(--color-primary); color: var(--color-on-primary); font-weight: var(--weight-semibold);
}
.skip-link:focus { top: var(--space-2); }

.text-muted { color: var(--color-text-muted); }
.text-subtle { color: var(--color-text-subtle); font-size: var(--text-sm); }
.tabular { font-variant-numeric: tabular-nums; }

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

/* ── 3. Layout: app shell ──────────────────────────────────── */
.app-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--color-surface) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: var(--border-width) solid var(--color-border);
}
.app-header__inner {
  max-width: var(--content-wide); margin: 0 auto; height: var(--header-height);
  padding: 0 var(--space-4);
  display: flex; align-items: center; gap: var(--space-4);
}
.brand {
  display: inline-flex; align-items: center; gap: var(--space-2);
  color: var(--color-text); text-decoration: none;
  font-weight: var(--weight-bold); letter-spacing: -0.01em;
}
.brand__mark { color: var(--color-primary); }
.brand__name { white-space: nowrap; }

.app-nav { display: flex; gap: var(--space-1); }
.app-nav__link {
  display: inline-flex; align-items: center; gap: var(--space-2);
  height: 2.25rem; padding: 0 var(--space-3); border-radius: var(--radius-md);
  color: var(--color-text-muted); text-decoration: none;
  font-size: var(--text-sm); font-weight: var(--weight-medium);
  transition: background var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard);
}
.app-nav__link:hover { background: var(--color-surface-muted); color: var(--color-text); }
.app-nav__link[aria-current="page"] { background: var(--color-primary-soft); color: var(--color-primary-soft-text); }

.app-header__actions { margin-left: auto; display: flex; align-items: center; gap: var(--space-2); }
.user-chip { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); color: var(--color-text-muted); }
.user-chip__email { max-width: 16rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.container { max-width: var(--content-wide); margin: 0 auto; padding: var(--space-6) var(--space-4) var(--space-12); }
.container--narrow { max-width: calc(var(--content-narrow) + 2 * var(--space-4)); }
.stack { display: flex; flex-direction: column; gap: var(--space-4); }

.page-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-6); }
.page-title { font-size: var(--text-2xl); font-weight: var(--weight-bold); letter-spacing: -0.02em; line-height: var(--leading-tight); }
.page-subtitle { margin-top: var(--space-1); color: var(--color-text-muted); font-size: var(--text-sm); }

/* Mobile: brand name hides, nav stays reachable, email collapses to the avatar. */
@media (max-width: 40rem) {
  .brand__name, .user-chip__email, .app-nav__label-long { display: none; }
  .app-header__inner { gap: var(--space-2); }
  .container { padding-top: var(--space-4); }
}

/* ── 4. Components ─────────────────────────────────────────── */

/* Card */
.card {
  background: var(--color-surface);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-6);
}
.card--flush { padding: 0; overflow: hidden; }
.card__header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding: var(--space-4) var(--space-6); border-bottom: var(--border-width) solid var(--color-border);
}
.card__title { font-size: var(--text-lg); font-weight: var(--weight-semibold); }
.card__description { margin-top: var(--space-1); color: var(--color-text-muted); font-size: var(--text-sm); }
.eyebrow { font-size: var(--text-xs); font-weight: var(--weight-semibold); letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-subtle); }

/* Button */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  height: var(--control-height); padding: 0 var(--space-4);
  border: var(--border-width) solid transparent; border-radius: var(--radius-md);
  font: inherit; font-size: var(--text-sm); font-weight: var(--weight-semibold);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard),
              color var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard);
}
.btn:active:not(:disabled) { transform: scale(0.98); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.btn--primary { background: var(--color-primary); color: var(--color-on-primary); }
.btn--primary:hover:not(:disabled) { background: var(--color-primary-hover); }
.btn--danger { background: var(--color-danger); color: var(--color-on-danger); }
.btn--danger:hover:not(:disabled) { background: var(--color-danger-hover); }
.btn--secondary { background: var(--color-surface); color: var(--color-text); border-color: var(--color-border-strong); }
.btn--secondary:hover:not(:disabled) { background: var(--color-surface-muted); }
.btn--ghost { background: transparent; color: var(--color-text-muted); }
.btn--ghost:hover:not(:disabled) { background: var(--color-surface-muted); color: var(--color-text); }
.btn--sm { height: 2rem; padding: 0 var(--space-3); }
.btn--lg { height: var(--control-height-lg); padding: 0 var(--space-6); font-size: var(--text-lg); border-radius: var(--radius-lg); }
.btn--block { width: 100%; }
.btn--icon { width: var(--control-height); padding: 0; }
.btn[aria-busy="true"]::before {
  content: ""; width: 1em; height: 1em; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Form controls */
.field { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.label { font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--color-text); }
.label__optional { margin-left: var(--space-1); font-weight: var(--weight-regular); color: var(--color-text-subtle); }
.hint { font-size: var(--text-xs); color: var(--color-text-subtle); }
.input {
  width: 100%; min-height: var(--control-height); padding: var(--space-2) var(--space-3);
  border: var(--border-width) solid var(--color-border-strong); border-radius: var(--radius-md);
  background: var(--color-surface); color: var(--color-text);
  font: inherit; font-size: var(--text-md);
  transition: border-color var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard);
}
.input:hover { border-color: var(--color-text-subtle); }
.input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 25%, transparent); }
.input[readonly] { background: var(--color-surface-muted); color: var(--color-text-muted); }
input.input, select.input { height: var(--control-height); padding-block: 0; }
input.input[type="checkbox"] { height: auto; }
textarea.input { resize: vertical; min-height: 4.5rem; }
.checkbox { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); cursor: pointer; }
.checkbox input { width: 1.125rem; height: 1.125rem; accent-color: var(--color-primary); }
.form-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--space-2); }
.toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-3); }
.toolbar .field { flex: 1 1 12rem; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }

/* Segmented control (radio group) */
.segmented { display: inline-flex; padding: var(--space-1); gap: var(--space-1); border-radius: var(--radius-md); background: var(--color-surface-muted); }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label {
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm);
  font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--color-text-muted); cursor: pointer;
}
.segmented input:checked + label { background: var(--color-surface); color: var(--color-primary); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--color-border-strong); font-weight: var(--weight-semibold); }
.segmented input:focus-visible + label { outline: 2px solid var(--color-focus); outline-offset: 1px; }

/* Badge */
.badge {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-1) var(--space-3); border-radius: var(--radius-full);
  font-size: var(--text-xs); font-weight: var(--weight-semibold); white-space: nowrap;
  background: var(--color-surface-muted); color: var(--color-text-muted);
}
.badge--success { background: var(--color-success-soft); color: var(--color-success-soft-text); }
.badge--danger { background: var(--color-danger-soft); color: var(--color-danger-soft-text); }
.badge--warning { background: var(--color-warning-soft); color: var(--color-warning-soft-text); }
.badge--primary { background: var(--color-primary-soft); color: var(--color-primary-soft-text); }
.badge__dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; }
.badge--live .badge__dot { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

/* Avatar */
.avatar {
  display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--color-primary-soft); color: var(--color-primary-soft-text);
  font-size: var(--text-sm); font-weight: var(--weight-bold); text-transform: uppercase;
}
.avatar--sm { width: 2rem; height: 2rem; font-size: var(--text-xs); }

/* Tabs */
.tabs { display: flex; gap: var(--space-1); overflow-x: auto; border-bottom: var(--border-width) solid var(--color-border); margin-bottom: var(--space-6); scrollbar-width: none; }
.tabs__tab {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-4); margin-bottom: -1px;
  border: 0; border-bottom: 2px solid transparent; background: none;
  color: var(--color-text-muted); font: inherit; font-size: var(--text-sm); font-weight: var(--weight-medium);
  cursor: pointer; white-space: nowrap;
}
.tabs__tab:hover { color: var(--color-text); }
.tabs__tab[aria-selected="true"] { color: var(--color-primary); border-bottom-color: var(--color-primary); }

/* Table */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.table th {
  padding: var(--space-3) var(--space-6); text-align: left; white-space: nowrap;
  font-size: var(--text-xs); font-weight: var(--weight-semibold); letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--color-text-subtle); background: var(--color-surface-muted);
}
.table td { padding: var(--space-3) var(--space-6); border-top: var(--border-width) solid var(--color-border); vertical-align: middle; }
.table tbody tr:hover { background: color-mix(in srgb, var(--color-surface-muted) 60%, transparent); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table__secondary { display: block; color: var(--color-text-subtle); font-size: var(--text-xs); }
.table__placeholder { text-align: center; color: var(--color-text-subtle); padding: var(--space-8) var(--space-6) !important; }

/* KPI */
.kpi-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); margin-bottom: var(--space-4); }
.kpi { padding: var(--space-5); }
.kpi__label { font-size: var(--text-sm); color: var(--color-text-muted); }
.kpi__value { margin-top: var(--space-1); font-size: var(--text-2xl); font-weight: var(--weight-bold); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.kpi__unit { margin-left: var(--space-1); font-size: var(--text-md); font-weight: var(--weight-medium); color: var(--color-text-subtle); }

/* Callout */
.callout {
  display: flex; gap: var(--space-3); padding: var(--space-4); border-radius: var(--radius-md);
  background: var(--color-primary-soft); color: var(--color-primary-soft-text); font-size: var(--text-sm);
}
.callout--success { background: var(--color-success-soft); color: var(--color-success-soft-text); }
.callout--danger { background: var(--color-danger-soft); color: var(--color-danger-soft-text); }
.callout--warning { background: var(--color-warning-soft); color: var(--color-warning-soft-text); }
.callout strong { font-weight: var(--weight-semibold); }

/* Empty state */
.empty-state { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); padding: var(--space-12) var(--space-6); text-align: center; color: var(--color-text-muted); }
.empty-state__icon { color: var(--color-text-subtle); }
.empty-state__title { font-size: var(--text-lg); font-weight: var(--weight-semibold); color: var(--color-text); }

/* Skeleton */
.skeleton {
  height: 1rem; border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--color-surface-muted) 25%, var(--color-border) 50%, var(--color-surface-muted) 75%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* Toast */
.toast-region {
  position: fixed; z-index: 50; left: 50%; bottom: var(--space-6); transform: translateX(-50%);
  display: flex; flex-direction: column; gap: var(--space-2); width: min(26rem, calc(100% - 2 * var(--space-4)));
}
.toast {
  display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  background: var(--color-text); color: var(--color-bg); font-size: var(--text-sm); font-weight: var(--weight-medium);
  animation: toast-in var(--duration-base) var(--ease-standard);
}
.toast--success { background: var(--color-success); color: var(--color-on-primary); }
.toast--danger { background: var(--color-danger); color: var(--color-on-danger); }
:root[data-theme="dark"] .toast--success { color: #052e16; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .toast--success { color: #052e16; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* Dialog */
.dialog {
  width: min(36rem, calc(100% - 2 * var(--space-4))); max-height: calc(100vh - 2 * var(--space-8));
  padding: 0; border: var(--border-width) solid var(--color-border); border-radius: var(--radius-lg);
  background: var(--color-surface); color: var(--color-text); box-shadow: var(--shadow-lg);
}
.dialog::backdrop { background: var(--color-overlay); }
.dialog__header { display: flex; align-items: center; justify-content: space-between; padding: var(--space-5) var(--space-6) 0; }
.dialog__title { font-size: var(--text-lg); font-weight: var(--weight-semibold); }
.dialog__body { padding: var(--space-5) var(--space-6); }
.dialog__footer { padding: var(--space-4) var(--space-6); border-top: var(--border-width) solid var(--color-border); background: var(--color-surface-muted); }

/* Details / disclosure */
.disclosure summary { cursor: pointer; font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--color-text-muted); }
.disclosure summary:hover { color: var(--color-text); }
.disclosure code { display: block; margin-top: var(--space-2); padding: var(--space-3); border-radius: var(--radius-md); background: var(--color-surface-muted); word-break: break-all; font-size: var(--text-xs); color: var(--color-text-muted); }

/* ── 5. Page patterns ──────────────────────────────────────── */

/* Clock page */
.clock-card { display: flex; flex-direction: column; gap: var(--space-6); }
.clock-card__top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.clock { text-align: center; }
.clock__time {
  font-size: var(--text-display); font-weight: var(--weight-bold); line-height: 1;
  letter-spacing: -0.04em; font-variant-numeric: tabular-nums;
}
.clock__date { margin-top: var(--space-2); color: var(--color-text-muted); }
.clock__tz { margin-top: var(--space-1); font-size: var(--text-xs); color: var(--color-text-subtle); }
.shift-timer {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-md);
  background: var(--color-success-soft); color: var(--color-success-soft-text);
}
.shift-timer__label { font-size: var(--text-sm); font-weight: var(--weight-medium); }
.shift-timer__value { font-size: var(--text-xl); font-weight: var(--weight-bold); font-variant-numeric: tabular-nums; }
.employee { display: flex; align-items: center; gap: var(--space-3); }
.employee__name { font-weight: var(--weight-semibold); }
.employee__email { font-size: var(--text-sm); color: var(--color-text-subtle); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.employee__info { min-width: 0; }

/* Centered single-message page (signed out, no permission) */
.center-page { min-height: calc(100vh - var(--header-height)); display: grid; place-items: center; padding: var(--space-4); }
.center-page .card { max-width: 26rem; text-align: center; }
