/* HRMS design system. System font stack (no web-font download) for low-bandwidth
   networks. Colour pairs below meet WCAG 2.2 AA contrast for their intended use. */
:root {
  --ink: #10221f;
  --ink-2: #33433f;
  --muted: #56655f;
  --line: #d9e1dc;
  --line-2: #eef2ef;
  --bg: #f5f7f4;
  --surface: #ffffff;
  --brand: #0b3b3c;
  --brand-700: #0d4a49;
  --brand-600: #0f5e5c;
  --brand-500: #12736f;
  --brand-50: #e8f3f1;
  --accent: #f0a243;
  --accent-ink: #4a2a00;
  --accent-50: #fdf2e3;
  --ok: #1d6f46; --ok-50: #e6f4ec;
  --warn: #8a5300; --warn-50: #fff3d9;
  --bad: #b42318; --bad-50: #fdecea;
  --info: #1d5fae; --info-50: #e8f0fb;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(16, 34, 31, .06), 0 4px 16px rgba(16, 34, 31, .06);
  --focus: 0 0 0 3px #f0a24399, 0 0 0 1px var(--brand-600);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; font-size: 16px; }
img, svg { max-width: 100%; }
a { color: var(--brand-600); text-underline-offset: 2px; }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5rem; color: var(--ink); }
h1 { font-size: clamp(1.6rem, 2.5vw, 2rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1rem; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 1000; border-radius: 8px; }
.skip-link:focus { left: 8px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
html { scroll-behavior: smooth; }

/* ---------- layout helpers */
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.stack > * + * { margin-top: var(--gap, 1rem); }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.end { justify-content: flex-end; }
.grow { flex: 1 1 auto; min-width: 0; }
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.xs { font-size: .78rem; }
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.mt-0 { margin-top: 0 !important; } .mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 1.25rem 0; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px; padding: .55rem 1rem;
  border-radius: 999px; border: 1px solid transparent; font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer;
  text-decoration: none; transition: background .15s, border-color .15s, color .15s; touch-action: manipulation; white-space: nowrap; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--brand-600); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--brand); color: #fff; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover:not(:disabled) { background: #e48f27; color: var(--accent-ink); }
.btn-secondary { background: var(--surface); color: var(--brand-700); border-color: var(--line); }
.btn-secondary:hover:not(:disabled) { border-color: var(--brand-500); color: var(--brand); }
.btn-ghost { background: transparent; color: var(--brand-700); }
.btn-ghost:hover:not(:disabled) { background: var(--brand-50); }
.btn-danger { background: var(--bad); color: #fff; }
.btn-sm { min-height: 36px; padding: .3rem .8rem; font-size: .85rem; }
.btn-block { width: 100%; }
.icon-btn { min-width: 44px; padding: .4rem; border-radius: 10px; }

/* ---------- forms */
.field { display: flex; flex-direction: column; gap: .3rem; }
.field label, .label { font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.field .hint { font-size: .8rem; color: var(--muted); }
.field .err { font-size: .82rem; color: var(--bad); font-weight: 600; }
.input, select.input, textarea.input { width: 100%; min-height: 44px; padding: .55rem .75rem; border: 1px solid #b9c5bf; border-radius: 10px;
  background: var(--surface); font: inherit; color: var(--ink); }
textarea.input { min-height: 96px; resize: vertical; }
.input:focus { outline: none; box-shadow: var(--focus); border-color: var(--brand-600); }
.input[aria-invalid="true"] { border-color: var(--bad); }
.check { display: flex; gap: .55rem; align-items: flex-start; font-size: .92rem; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand-600); flex: none; }
.form-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 4.5rem; }
.pw-wrap button { position: absolute; right: 4px; top: 4px; bottom: 4px; border: 0; background: transparent; color: var(--brand-600); font-weight: 600; cursor: pointer; padding: 0 .75rem; border-radius: 8px; }

/* ---------- surfaces */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.25rem; box-shadow: var(--shadow); min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .9rem; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.alert { padding: .8rem 1rem; border-radius: var(--radius); border: 1px solid; font-size: .93rem; }
.alert-info { background: var(--info-50); border-color: #b9d0f0; color: #123e73; }
.alert-ok { background: var(--ok-50); border-color: #b5dcc6; color: #13502f; }
.alert-warn { background: var(--warn-50); border-color: #f0d38c; color: #5c3800; }
.alert-bad { background: var(--bad-50); border-color: #f2b8b3; color: #7a1710; }
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .12rem .55rem; border-radius: 999px; font-size: .76rem; font-weight: 700; letter-spacing: .01em; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.badge-ok { background: var(--ok-50); color: var(--ok); }
.badge-warn { background: var(--warn-50); color: var(--warn); }
.badge-bad { background: var(--bad-50); color: var(--bad); }
.badge-info { background: var(--info-50); color: var(--info); }
.badge-brand { background: var(--brand-50); color: var(--brand-700); }
.badge-illustrative { background: var(--accent-50); color: #7a4500; border: 1px dashed #d99a4a; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: currentColor; }

/* ---------- tables */
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { padding: .65rem .8rem; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: #fafbf9; position: sticky; top: 0; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafcfb; }
.table th button.sort { all: unset; cursor: pointer; }
/* Small screens: tables become stacked cards (no horizontal page scroll). */
@media (max-width: 720px) {
  .table.stack-sm thead { display: none; }
  .table.stack-sm, .table.stack-sm tbody, .table.stack-sm tr, .table.stack-sm td { display: block; width: 100%; }
  .table.stack-sm tr { border-bottom: 1px solid var(--line); padding: .5rem 0; }
  .table.stack-sm td { border: 0; padding: .25rem .8rem; }
  .table.stack-sm td[data-label]::before { content: attr(data-label); display: block; font-size: .72rem; text-transform: uppercase; color: var(--muted); font-weight: 700; }
  .table-wrap:has(.stack-sm) { overflow-x: visible; }
}

.empty { text-align: center; padding: 2rem 1rem; color: var(--muted); }
.empty svg { width: 96px; height: 96px; margin-bottom: .5rem; }
.empty h3 { color: var(--ink); }
.spinner { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--brand-600); border-radius: 50%; animation: spin 1s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, #eef2ef 25%, #f6f8f6 50%, #eef2ef 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 8px; min-height: 1em; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- tabs, pagination, modal, toast */
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: thin; margin-bottom: 1rem; }
.tabs [role="tab"] { border: 0; background: none; padding: .7rem .9rem; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; min-height: 44px; }
.tabs [role="tab"][aria-selected="true"] { color: var(--brand); border-bottom-color: var(--accent); }
.pager { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .75rem 0; flex-wrap: wrap; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(10, 25, 22, .45); display: grid; place-items: center; z-index: 100; padding: 16px; }
.modal { background: var(--surface); border-radius: var(--radius-lg); width: min(640px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 1.25rem; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal.wide { width: min(920px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.toasts { position: fixed; bottom: 16px; right: 16px; left: 16px; display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; z-index: 200; pointer-events: none; }
.toast { pointer-events: auto; background: var(--ink); color: #fff; padding: .75rem 1rem; border-radius: 12px; max-width: 420px; box-shadow: var(--shadow); font-size: .93rem; }
.toast.bad { background: var(--bad); }

/* ---------- KPI */
.kpi { display: flex; flex-direction: column; gap: .2rem; }
.kpi .kpi-label { font-size: .82rem; color: var(--muted); font-weight: 600; }
.kpi .kpi-value { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; color: var(--brand); }
.kpi .kpi-foot { font-size: .78rem; color: var(--muted); }
.bar-row { display: grid; grid-template-columns: minmax(90px, 160px) 1fr auto; gap: .6rem; align-items: center; font-size: .88rem; padding: .25rem 0; }
.bar-track { background: var(--line-2); border-radius: 999px; height: 10px; overflow: hidden; }
.bar-fill { background: var(--brand-500); height: 100%; border-radius: 999px; }

/* ---------- app shell */
.shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.sidebar { background: var(--brand); color: #d8ebe8; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .brand { display: flex; gap: .6rem; align-items: center; padding: 1.1rem 1.1rem .75rem; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.15rem; }
.sidebar nav { padding: .25rem .6rem 1rem; }
.sidebar .nav-group { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: #8fbcb6; margin: 1rem .6rem .35rem; font-weight: 700; }
.sidebar a.nav-link { display: flex; align-items: center; gap: .65rem; padding: .55rem .7rem; border-radius: 10px; color: #e2f1ee; text-decoration: none; font-size: .93rem; min-height: 40px; }
.sidebar a.nav-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidebar a.nav-link.active { background: rgba(240, 162, 67, .18); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.sidebar a.nav-link svg { width: 18px; height: 18px; flex: none; opacity: .9; }
.topbar { display: flex; align-items: center; gap: .75rem; padding: .6rem 1.25rem; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; min-height: 60px; }
.main { min-width: 0; display: flex; flex-direction: column; }
.content { padding: 1.25rem; width: 100%; max-width: 1400px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.page-head p { margin: .2rem 0 0; color: var(--muted); }
.menu-toggle { display: none; }
.org-select { max-width: 240px; min-height: 40px; }
.user-menu { position: relative; }
.user-menu .menu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); min-width: 220px; padding: .35rem; z-index: 50; }
.user-menu .menu a, .user-menu .menu button { display: block; width: 100%; text-align: left; padding: .6rem .75rem; border-radius: 8px; border: 0; background: none; font: inherit; color: var(--ink); text-decoration: none; cursor: pointer; }
.user-menu .menu a:hover, .user-menu .menu button:hover { background: var(--line-2); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; font-size: .85rem; flex: none; }
.bell { position: relative; }
.bell .count { position: absolute; top: 4px; right: 4px; background: var(--bad); color: #fff; font-size: .65rem; font-weight: 800; border-radius: 999px; padding: 0 5px; min-width: 16px; text-align: center; }
.bottom-nav { display: none; }
@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 90; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; box-shadow: 0 0 0 100vmax rgba(10,25,22,.45); }
  .menu-toggle { display: inline-flex; }
  .content { padding: 1rem 1rem 5.5rem; }
  .org-select { max-width: 150px; }
  .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; background: var(--surface); border-top: 1px solid var(--line); z-index: 40; padding-bottom: env(safe-area-inset-bottom); }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: .45rem 0; font-size: .7rem; color: var(--muted); text-decoration: none; min-height: 52px; justify-content: center; }
  .bottom-nav a.active { color: var(--brand-600); font-weight: 700; }
  .bottom-nav svg { width: 20px; height: 20px; }
  .hide-sm { display: none !important; }
  .vh-sm { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; } /* hidden visually, still the accessible name */
}

/* ---------- auth pages */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-side { background: radial-gradient(1200px 500px at -10% 110%, #f0a24333, transparent 60%), var(--brand); color: #dcefeb; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side h2 { color: #fff; font-size: 1.8rem; }
.auth-main { display: grid; place-items: center; padding: 2rem 16px; }
.auth-card { width: min(460px, 100%); }
@media (max-width: 860px) { .auth-wrap { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* ---------- landing */
.lp-nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.lp-nav .container { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.lp-nav .links { display: flex; gap: 1.1rem; margin-left: 1rem; }
.lp-nav .links a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; }
.lp-nav .links a:hover { color: var(--brand-600); }
.logo { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.2rem; color: var(--brand); text-decoration: none; }
.logo svg { width: 32px; height: 32px; }
.lp-burger { display: none; }
.lp-mobile { display: none; }
@media (max-width: 960px) {
  .lp-nav .links, .lp-nav .cta-desktop { display: none; }
  .lp-burger { display: inline-flex; margin-left: auto; }
  .lp-mobile.open { display: block; border-top: 1px solid var(--line); padding: .5rem 0 1rem; }
  .lp-mobile a.m-link { display: block; padding: .75rem 0; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-2); }
}
.hero { background: radial-gradient(900px 420px at 85% 0%, #f0a24326, transparent 60%), linear-gradient(180deg, #fff, var(--bg)); padding: 4rem 0 3rem; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); letter-spacing: -.025em; line-height: 1.08; }
.hero .lead { font-size: 1.15rem; color: var(--ink-2); max-width: 38rem; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--brand-500); margin-bottom: .75rem; }
.hero-panel { background: var(--surface); border-radius: 20px; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(11,59,60,.12); padding: 1rem; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-top: 2.5rem; } }
.section { padding: 4.5rem 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section.dark { background: var(--brand); color: #d8ebe8; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section-head { max-width: 46rem; margin-bottom: 2.25rem; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.02em; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section.dark .section-head p { color: #b8d7d2; }
.feature { padding: 1.25rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.feature .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); margin-bottom: .75rem; }
.feature .ic svg { width: 22px; height: 22px; }
.status-pill { font-size: .72rem; font-weight: 800; padding: .1rem .5rem; border-radius: 999px; }
.lifecycle { display: grid; grid-template-columns: repeat(7, 1fr); gap: .5rem; counter-reset: step; }
.lifecycle li { list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .9rem .75rem; position: relative; }
.lifecycle li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: .85rem; margin-bottom: .5rem; }
@media (max-width: 1000px) { .lifecycle { grid-template-columns: repeat(2, 1fr); } }
.stat-big { font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.03em; color: #9c5300; line-height: 1; } /* accent orange fails contrast as text on light surfaces */
.quote { font-size: 1.02rem; color: var(--ink); }
.quote::before { content: "“"; font-size: 3rem; line-height: .5; color: var(--accent); display: block; margin-bottom: .5rem; }
.price-card { border: 2px solid var(--brand-600); position: relative; }
.price { font-size: 3rem; font-weight: 800; color: var(--brand); letter-spacing: -.03em; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 1rem; margin-bottom: .6rem; }
.faq summary { cursor: pointer; padding: 1rem 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; min-height: 44px; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--brand-600); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); }
.calc-out { background: var(--brand); color: #fff; border-radius: var(--radius-lg); padding: 1.25rem; }
.calc-out .v { font-size: 1.8rem; font-weight: 800; color: var(--accent); }
.footer { background: #082b2c; color: #a9c9c4; padding: 3rem 0 2rem; font-size: .92rem; }
.footer a { color: #d8ebe8; }
.footer p a { display: inline-block; padding: .3rem 0; min-height: 24px; } /* WCAG 2.5.8 target size */
.footer h4 { color: #fff; font-size: .95rem; }
.matrix td, .matrix th { font-size: .86rem; }

/* ---------- domain widgets */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: .75rem; overflow-x: auto; padding-bottom: .5rem; }
.kanban-col { background: #eef2ef; border-radius: 12px; padding: .6rem; min-height: 200px; }
.kanban-col.drop { outline: 2px dashed var(--brand-500); }
.kanban-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .65rem; margin-bottom: .5rem; cursor: grab; }
.roster { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .82rem; }
.roster th, .roster td { border-bottom: 1px solid var(--line-2); border-right: 1px solid var(--line-2); padding: .35rem; vertical-align: top; min-width: 112px; }
.roster th:first-child, .roster td:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; min-width: 150px; }
.roster td.drop { background: var(--brand-50); }
.roster td.off { background: repeating-linear-gradient(45deg, #fafafa, #fafafa 6px, #f0f0f0 6px, #f0f0f0 12px); }
.shift-chip { display: block; border-radius: 8px; padding: .25rem .4rem; margin-bottom: .25rem; font-weight: 600; cursor: grab; border-left: 4px solid; background: #f4f7f6; }
.shift-chip.conflict { background: var(--bad-50); border-left-color: var(--bad) !important; }
.map { height: 420px; border-radius: var(--radius); border: 1px solid var(--line); z-index: 0; }
.clock-btn { width: min(260px, 70vw); aspect-ratio: 1; border-radius: 50%; border: 0; font-size: 1.4rem; font-weight: 800; cursor: pointer; color: #fff; box-shadow: 0 16px 40px rgba(11,59,60,.25); }
.clock-btn.in { background: radial-gradient(circle at 30% 30%, #1d8c84, var(--brand-600)); }
.clock-btn.out { background: radial-gradient(circle at 30% 30%, #e8892f, #b75f12); }
.timeline { border-left: 2px solid var(--line); padding-left: 1rem; }
.timeline .ev { position: relative; padding-bottom: .9rem; }
.timeline .ev::before { content: ""; position: absolute; left: -1.38rem; top: .35rem; width: 10px; height: 10px; border-radius: 50%; background: var(--brand-500); }
.cal-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; font-size: .78rem; }
.cal-month .d { background: var(--surface); min-height: 74px; padding: .25rem; border: 1px solid var(--line-2); overflow: hidden; }
.cal-month .d.out { background: #f5f6f5; color: #9aa6a1; }
.cal-month .d.today { outline: 2px solid var(--accent); }
.progress { height: 8px; background: var(--line-2); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--brand-500); }
.chat .msg { border: 1px solid var(--line); border-radius: 12px; padding: .6rem .8rem; margin-bottom: .6rem; background: var(--surface); }
.chat .msg.internal { background: var(--warn-50); border-color: #f0d38c; }
.chat .msg.mine { background: var(--brand-50); }
.chip-list { display: flex; flex-wrap: wrap; gap: .35rem; }
.offline-banner { background: var(--warn-50); color: #5c3800; text-align: center; padding: .4rem; font-size: .85rem; font-weight: 600; }

/* Steps 4–11 module pages */
.kpi-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.list > li { padding: .45rem 0; border-bottom: 1px solid var(--line); }
.list > li:last-child { border-bottom: 0; }
.dl { display: grid; gap: .6rem; margin: 0; }
.dl dt { font-weight: 600; font-size: .85rem; }
.dl dd { margin: 0; font-size: .93rem; }
.h4 { font-size: 1rem; margin: 0 0 .5rem; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: .75rem; overflow-x: auto; padding-bottom: .5rem; }
.board-col { background: var(--surface-2, #f6f7f9); border-radius: var(--radius); padding: .6rem; min-height: 120px; }
.board-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem; margin-top: .5rem; }
.clock { font-size: 2.2rem; font-weight: 700; font-variant-numeric: tabular-nums; }
button.link { background: none; border: 0; padding: 0; color: var(--brand, #1a56db); text-decoration: underline; cursor: pointer; font: inherit; }

/* Roster week grid (scheduler) */
.roster-grid table { min-width: 720px; table-layout: fixed; }
.roster-grid th[scope="row"] { width: 9rem; white-space: normal; }
.roster-grid .grid-cell { vertical-align: top; min-height: 3rem; padding: .25rem; }
.roster-grid .grid-cell.drop-target { outline: 2px dashed var(--brand, #0f766e); outline-offset: -3px; background: color-mix(in srgb, var(--brand, #0f766e) 8%, transparent); }
.shift-chip { display: flex; flex-direction: column; align-items: flex-start; width: 100%; margin-bottom: .25rem; padding: .3rem .4rem; min-height: 44px;
  border: 1px solid var(--line, #d0d7de); border-left: 4px solid var(--brand, #0f766e); border-radius: 6px; background: var(--card, #fff); color: inherit; cursor: grab; text-align: left; font: inherit; }
.shift-chip:focus-visible { outline: 3px solid var(--focus, #2563eb); outline-offset: 2px; }
.shift-chip.chip-warn { border-left-color: var(--warn, #b45309); }
.shift-chip.chip-bad { border-left-color: var(--bad, #b91c1c); }
.shift-chip.dragging { opacity: .5; }
