:root {
  /* Scout24 brand: orange fills carry #333 text; orange text uses the darker ink tone for contrast. */
  --brand: #ff9214;
  --brand-hover: #f28500;
  --brand-edge: #dd7500;
  --brand-ink: #b35900;
  --brand-ink-strong: #a35200;
  --brand-soft: #fff4e8;
  --brand-tint: #ffe6c9;
  /* Harbour navy, shared with the Scout Wiki sign-in, carries the landing stage and hard button shadows. */
  --navy: #103c5c;
  --navy-deep: #0b2c44;
  --cloud: #dce8f0;
  --paper: #fafafa;
  --canvas: #f2f2f2;
  --canvas-wash: linear-gradient(170deg, #fafafa 0%, #f2f2f2 55%, #ebebeb 100%);
  --surface: #ffffff;
  --ink: #333333;
  --ink-muted: #666666;
  --ink-subtle: #adadad;
  --grey: #ededed;
  --line: rgb(51 51 51 / .1);
  --line-strong: rgb(51 51 51 / .2);
  --success: #1a7f4b;
  --success-soft: #e4f3ea;
  --info: #007ca1;
  --info-soft: #e0f1f6;
  --danger: #c0243a;
  --danger-soft: #fbe7ea;
  --sidebar: rgb(255 255 255 / .6);
  --hover: rgb(51 51 51 / .05);
  /* Text on orange fills stays dark in both themes. */
  --on-brand: #333333;
  --radius-card: 12px;
  --radius-control: 8px;
  --shadow-card: 0 1px 2px rgb(51 51 51 / .04);
  --font: "Make It Better", Arial, sans-serif;
  /* Machine identifiers (POs, tickets, serials, object IDs) are set in mono so they read as codes, not prose. */
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

/* Dark theme: applied from the account menu choice, or the OS setting when the choice is "system". */
:root[data-theme="dark"] {
  --brand-ink: #ffab4d;
  --brand-ink-strong: #ffb766;
  --brand-soft: rgb(255 146 20 / .1);
  --brand-tint: rgb(255 146 20 / .2);
  --paper: #16181b;
  --canvas: #111315;
  --canvas-wash: linear-gradient(170deg, #16181b 0%, #111315 55%, #0d0f11 100%);
  --surface: #1d2024;
  --ink: #ececec;
  --ink-muted: #a3a3a3;
  --ink-subtle: #6b6b6b;
  --grey: #2a2e33;
  --line: rgb(255 255 255 / .09);
  --line-strong: rgb(255 255 255 / .18);
  --sidebar: rgb(22 24 27 / .7);
  --hover: rgb(255 255 255 / .06);
  --success: #4cc38a;
  --success-soft: rgb(76 195 138 / .14);
  --info: #4db8d9;
  --info-soft: rgb(77 184 217 / .14);
  --danger: #f06b7e;
  --danger-soft: rgb(240 107 126 / .14);
  --shadow-card: 0 1px 2px rgb(0 0 0 / .3), 0 8px 28px rgb(0 0 0 / .25);
  color-scheme: dark;
}

@font-face { font-family: "Make It Better"; font-weight: 400; font-display: swap; src: url("/fonts/MakeItBetter-Regular.woff2") format("woff2"); }
@font-face { font-family: "Make It Better"; font-weight: 700; font-display: swap; src: url("/fonts/MakeItBetter-Bold.woff2") format("woff2"); }
@font-face { font-family: "Make It Better"; font-weight: 800; font-display: swap; src: url("/fonts/MakeItBetter-XBold.woff2") format("woff2"); }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink);
  font: 400 14px/1.5 var(--font); letter-spacing: 0.01em; -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; letter-spacing: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 2px; }
h1, h2, h3 { margin: 0; font-weight: 700; }
h1 { font-size: 24px; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: 16px; line-height: 1.3; letter-spacing: 0.01em; }
h3 { font-size: 14px; }
.muted { color: var(--ink-muted); font-weight: 400; }
.num { font-variant-numeric: tabular-nums; }
.code, .ref { font-family: var(--mono); font-size: .92em; letter-spacing: 0; }

/* Brand lockup, shared by the landing page and the sidebar. */
.lockup { display: flex; align-items: center; gap: 11px; width: fit-content; }
.lockup img { display: block; height: 30px; width: auto; }
.lockup span { padding-left: 11px; border-left: 1px solid var(--line-strong); font-size: 16px; font-weight: 700; white-space: nowrap; }

/* Landing: a split sign-in page in the family of the Scout Wiki and Employee Services Hub. */
.landing {
  min-height: 100vh; min-height: 100svh; display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(480px, 1fr); background: var(--paper);
}
.landing-panel {
  display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh;
  padding: clamp(28px, 4.5vw, 64px) clamp(32px, 6vw, 96px);
}
.landing-copy { max-width: 600px; margin: auto 0; padding-block: 48px; animation: reveal .56s cubic-bezier(.22, 1, .36, 1) both; }
.eyebrow {
  margin: 0 0 22px; color: var(--brand-ink); font: 700 12px/1.4 var(--mono); letter-spacing: .11em; text-transform: uppercase;
}
.landing-copy h1 { font-size: clamp(48px, 6vw, 88px); line-height: .96; letter-spacing: -0.045em; margin-bottom: 40px; }
.landing-copy h1 span { display: block; color: var(--brand-ink); }
.landing-action {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 32px;
  min-width: 320px; min-height: 58px; padding: 0 18px 0 22px; cursor: pointer;
  border: 1px solid var(--brand-edge); border-radius: 6px; background: var(--brand); color: var(--on-brand);
  box-shadow: 0 6px 0 var(--navy); font-size: 15px; font-weight: 700;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.landing-action svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.landing-action:hover { background: #ff9d2e; transform: translateY(-2px); box-shadow: 0 8px 0 var(--navy); }
.landing-action:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--navy); }
.landing-action:focus-visible { outline: 3px solid var(--navy); outline-offset: 4px; }
.persona-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 10px; max-width: 580px; }
.persona-picker p { grid-column: 1 / -1; margin: 0 0 2px; font-size: 13px; font-weight: 700; }
.persona {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; text-align: left; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: var(--radius-control); background: var(--surface);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.persona:hover { border-color: var(--brand); transform: translateY(-1px); box-shadow: 0 4px 0 var(--navy); }
.persona b, .persona small { display: block; }
.persona small { color: var(--ink-muted); font-size: 12px; }
.assurance { display: flex; align-items: center; gap: 7px; margin: 24px 0 0; color: var(--ink-muted); font-size: 13px; }
.assurance svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.35; }
.landing-foot { display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--ink-muted); font-size: 13px; }
.landing-foot a { color: inherit; text-decoration: none; }
.landing-foot a:hover { color: var(--ink); text-decoration: underline; }

/* The stage hangs an external's pass from a lanyard; its checklist ticks through onboarding on load. */
.landing-stage {
  position: relative; overflow: hidden; display: grid; place-items: center; min-height: 100vh; min-height: 100svh;
  background: radial-gradient(110% 70% at 50% 0%, #185278 0%, var(--navy) 55%, var(--navy-deep) 100%);
}
.pass-hang { position: relative; margin-top: 8vh; transform: rotate(-2.5deg); animation: hang-in .9s cubic-bezier(.2, .9, .3, 1.15) both; }
.lanyard {
  position: absolute; z-index: 1; left: 50%; bottom: calc(100% - 30px); width: 30px; height: 100vh; translate: -50% 0;
  background: linear-gradient(90deg, var(--brand-edge) 0 3px, var(--brand) 3px 27px, var(--brand-edge) 27px);
}
.lanyard::after {
  content: ""; position: absolute; left: 50%; bottom: -8px; width: 22px; height: 26px; translate: -50% 0;
  border-radius: 5px; background: linear-gradient(180deg, #e9eef2, #b9c5ce); box-shadow: 0 2px 4px rgb(0 0 0 / .3);
}
.pass {
  user-select: none;
  --surface: #ffffff; --ink: #333333; --ink-muted: #666666; --ink-subtle: #adadad; --line: rgb(51 51 51 / .1); --line-strong: rgb(51 51 51 / .2);
  --brand-tint: #ffe6c9; --brand-ink-strong: #a35200; --success: #1a7f4b; color: var(--ink);
  position: relative; width: 340px; padding: 44px 26px 22px; border-radius: 22px; background: var(--surface);
  box-shadow: 0 40px 80px rgb(0 0 0 / .35), 0 8px 18px rgb(0 0 0 / .18);
}
.pass-slot { position: absolute; top: 16px; left: 50%; width: 58px; height: 10px; translate: -50% 0; border-radius: 999px; background: var(--navy); }
.pass-head { display: flex; align-items: center; justify-content: space-between; }
.pass-head img { display: block; height: 20px; width: auto; }
.pass-head span {
  padding: 3px 8px; border-radius: 4px; background: var(--navy); color: #fff;
  font: 700 11px/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase;
}
.pass-person { display: flex; align-items: center; gap: 16px; margin: 22px 0 18px; }
.pass-photo {
  flex: none; display: grid; place-items: center; width: 76px; height: 88px; border-radius: 12px;
  background: var(--brand-tint); color: var(--brand-ink-strong); font-size: 28px; font-weight: 800;
}
.pass-name { margin: 0; font-size: 26px; line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; }
.pass-role { margin: 6px 0 0; color: var(--ink-muted); font-size: 13px; }
.pass-meta { display: grid; grid-template-columns: auto 1fr; gap: 12px 24px; margin: 0; }
.pass-meta dt { color: var(--ink-muted); font: 400 10.5px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.pass-meta dd { margin: 2px 0 0; font: 600 13px/1.4 var(--mono); white-space: nowrap; }
.pass-checks { list-style: none; margin: 18px 0 0; padding: 12px 0 0; border-top: 1.5px dashed var(--line-strong); }
.pass-checks li { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-weight: 700; animation: check-text .3s calc(1s + var(--i) * .45s) both; }
/* Stagger index in CSS: the CSP blocks inline style attributes. */
.pass-checks li:nth-child(1) { --i: 0; }
.pass-checks li:nth-child(2) { --i: 1; }
.pass-checks li:nth-child(3) { --i: 2; }
.pass-checks li:nth-child(4) { --i: 3; }
.pass-checks li:nth-child(5) { --i: 4; }
/* Resting styles are the finished state, so reduced motion shows the completed pass. */
.tick {
  position: relative; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--success); background: var(--success);
  animation: tick-on .3s calc(1s + var(--i) * .45s) both;
}
.tick::after {
  content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px;
  border: solid #fff; border-width: 0 2px 2px 0; rotate: 45deg;
}
.pass-foot {
  display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
  color: var(--ink-muted); font: 400 11px/1.3 var(--mono); letter-spacing: .04em;
}
.pass-stamp {
  margin: 0; padding: 3px 12px; rotate: -8deg;
  border: 2.5px solid var(--success); border-radius: 8px; color: var(--success); background: rgb(255 255 255 / .75);
  font-size: 20px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  animation: stamp .35s 3.3s cubic-bezier(.3, 1.6, .5, 1) both;
}
@keyframes reveal { from { opacity: 0; transform: translateY(18px); } }
@keyframes hang-in { from { opacity: 0; transform: translateY(-60px) rotate(-8deg); } }
@keyframes tick-on { from { background: var(--surface); border-color: var(--line-strong); } }
@keyframes check-text { from { color: var(--ink-subtle); } }
@keyframes stamp { from { opacity: 0; scale: 1.8; } }

/* Shell, after Lumos: a full-height sidebar with grouped navigation; pages open with their title, no header bar. */
.shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
/* Collapsed navigation: an icon rail with tooltips; on phones the nav is a horizontal bar, so there is nothing to collapse. */
@media (min-width: 721px) {
  .shell { transition: grid-template-columns .2s ease; }
  .shell.nav-collapsed { grid-template-columns: 64px minmax(0, 1fr); }
  .nav-collapsed .sidebar { padding-inline: 10px; }
  .nav-collapsed .sidebar-head { justify-content: center; padding: 2px 0 0; }
  .nav-collapsed .lockup, .nav-collapsed .nav-group, .nav-collapsed .account-label { display: none; }
  .nav-collapsed .nav-item, .nav-collapsed .account-button { position: relative; justify-content: center; padding-inline: 0; }
  .nav-collapsed .nav-item > span[data-i18n] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nav-collapsed .nav-count { position: absolute; top: 2px; right: 4px; min-width: 16px; padding: 0 4px; font-size: 10px; line-height: 16px; }
  .nav-collapsed .account-panel { left: 0; }
}
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 20px; padding: 16px 12px 14px;
  background: var(--surface); border-right: 1px solid var(--line);
}
.sidebar-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 0 0 8px; }
/* The lockup gives way (the label shortens) before the toggle is pushed past the sidebar's edge. */
.sidebar-head .lockup { gap: 9px; min-width: 0; }
.sidebar-head .lockup img { height: 22px; flex: none; }
.sidebar-head .lockup span { padding-left: 9px; font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.sidebar nav { display: grid; gap: 2px; }
.nav-group { margin: 14px 0 6px; padding: 0 12px; color: var(--ink-muted); font-size: 12px; font-weight: 700; line-height: 1; }
.nav-group:first-child { margin-top: 0; }
.nav-item {
  display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 12px; border-radius: 8px; white-space: nowrap;
  text-decoration: none; color: var(--ink); transition: background-color .15s, color .15s;
}
.nav-item svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--ink-muted); }
.nav-item:hover { background: var(--hover); }
.nav-item[aria-current="page"] { background: var(--brand-soft); font-weight: 700; }
.nav-item[aria-current="page"] svg { color: var(--brand-ink); }
.nav-count {
  margin-left: auto; min-width: 20px; text-align: center; background: var(--brand); color: var(--on-brand);
  font-size: 11px; font-weight: 700; line-height: 20px; border-radius: 999px; padding: 0 6px;
}
.sidebar-bottom { margin-top: auto; display: grid; gap: 4px; }
.nav-toggle {
  display: grid; place-items: center; width: 32px; height: 32px; padding: 0; flex: none;
  border: 0; border-radius: 8px; background: none; color: var(--ink-muted); cursor: pointer; transition: background-color .15s, color .15s;
}
.nav-toggle:hover { background: var(--hover); color: var(--ink); }
.nav-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.main-col { display: flex; flex-direction: column; min-width: 0; }

/* Account: the signed-in user at the foot of the sidebar opens a menu for persona, language, theme and sign-out. */
.account-menu { position: relative; padding-top: 8px; border-top: 1px solid var(--line); }
.account-button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; border: 0; border-radius: 8px;
  background: none; text-align: left; cursor: pointer; transition: background-color .15s;
}
.account-button:hover, .account-button[aria-expanded="true"] { background: var(--hover); }
.account-button .avatar { width: 30px; height: 30px; font-size: 12px; }
.account-label { display: grid; min-width: 0; line-height: 1.3; }
.account-label b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.account-label .code { color: var(--ink-muted); font-size: 11px; }
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-panel {
  position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 20; width: 260px; display: grid; gap: 14px; padding: 16px;
  background: var(--surface); border-radius: 12px; box-shadow: 0 12px 40px rgb(0 0 0 / .18), 0 0 0 1px var(--line);
}
.account-who { display: grid; min-width: 0; }
.account-who b, .account-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-who span { color: var(--ink-muted); font-size: 12px; }
.menu-field { display: grid; gap: 6px; font-size: 12px; color: var(--ink-muted); }
.menu-field select { min-height: 34px; padding-block: 5px; }
.menu-signout {
  padding: 9px 12px; border: 0; border-top: 1px solid var(--line); margin: 0 -16px -16px; border-radius: 0 0 12px 12px;
  background: none; text-align: left; font-weight: 700; cursor: pointer;
}
.menu-signout:hover { background: var(--hover); }

/* Underline tabs with counts, as on Lumos list and detail pages. */
.tabs { display: flex; gap: 20px; margin-bottom: 16px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent;
  background: none; text-decoration: none; color: var(--ink-muted); white-space: nowrap; cursor: pointer;
}
.tab:hover { color: var(--ink); }
.tab[aria-current="page"], .tab[aria-pressed="true"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--brand); }
.tab-count { min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--grey); color: var(--ink-muted); font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; font-variant-numeric: tabular-nums; }
.tab[aria-pressed="true"] .tab-count, .tab[aria-current="page"] .tab-count { background: var(--brand-tint); color: var(--brand-ink-strong); }

/* Settings: a grouped sub-navigation card beside the page, and a help card beside the integrations. */
.settings-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; }
.settings-nav { position: sticky; top: 24px; display: grid; gap: 2px; padding: 12px 8px; }
.settings-nav .nav-group { margin-top: 12px; }
.settings-nav .nav-group:first-child { margin-top: 4px; }
.settings-nav a { display: block; padding: 7px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.settings-nav a:hover { background: var(--hover); }
.settings-nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-ink-strong); font-weight: 700; }
.settings-main { display: grid; gap: 16px; min-width: 0; }
.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 16px; align-items: start; }
.help-card { padding: 18px; }
.help-card h3 { margin: 10px 0 6px; font-size: 15px; }
.help-card p { margin: 0; color: var(--ink-muted); font-size: 13px; }
.help-card p + p { margin-top: 8px; }
.help-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-ink); }
.help-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.settings-list { list-style: none; margin: 0; padding: 0; }
.settings-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; }
.settings-list li + li { border-top: 1px solid var(--line); }
.settings-name { font-weight: 700; }
.settings-list li.integration { display: grid; gap: 14px; justify-content: stretch; }
.integration-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
/* Vendor icons sit on a white chip with rounded corners, as the vendors' brand guides ask, in both themes. */
.integration-title { display: flex; align-items: center; gap: 12px; }
.integration-logo { width: 32px; height: 32px; padding: 3px; border-radius: 8px; background: #fff; border: 1px solid var(--line); object-fit: contain; }
.integration .form-grid > label.checkbox { display: flex; align-items: center; gap: 8px; }
.integration-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.settings-result { margin: 0; font-size: 13px; color: var(--ink-muted); }
.settings-result[data-ok="false"] { color: var(--danger); }
.card-head { padding: 16px 20px 0; }
.card-head p { margin: 4px 0 0; }

.content { padding: 20px 32px 48px; max-width: 1440px; width: 100%; outline: none; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head p { margin: 2px 0 0; color: var(--ink-muted); font-weight: 400; font-size: 13px; }
.head-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.breadcrumb { font-size: 13px; color: var(--ink-muted); margin-bottom: 14px; display: flex; gap: 6px; }
.breadcrumb a { text-decoration: none; color: var(--brand-ink); }
.breadcrumb a:hover { text-decoration: underline; }

/* Home: the greeting is the page title; the inbox lists what waits on the signed-in user. */
.greeting { margin: 0 0 16px; }
.greeting .date { margin: 0 0 2px; color: var(--ink-muted); font-size: 13px; }
.greeting p { margin: 2px 0 0; color: var(--ink-muted); font-weight: 400; font-size: 13px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 0 14px;
  border-radius: var(--radius-control); border: 1px solid var(--line); background: var(--surface);
  font-weight: 700; letter-spacing: 0.02em; text-decoration: none; cursor: pointer; transition: background-color .15s, box-shadow .15s, transform .15s;
}
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.btn:hover { background: var(--grey); }
.btn.primary { background: var(--brand); border-color: var(--brand-edge); color: var(--on-brand); box-shadow: 0 3px 0 var(--navy); }
.btn.primary:hover { background: #ff9d2e; transform: translateY(-1px); box-shadow: 0 4px 0 var(--navy); }
.btn.primary:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--navy); }
.btn.danger { color: var(--danger); }
.btn.danger:hover { background: var(--danger-soft); }
.btn.small { min-height: 30px; padding: 0 10px; font-size: 13px; border-radius: 8px; }
.btn.primary.small { box-shadow: 0 2px 0 var(--navy); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }

.pending_procurement_approval, .pending_et_approval { --dot: var(--brand); }
.changes_requested { --dot: var(--danger); }
.provisioning { --dot: var(--info); }
.active { --dot: var(--success); }
.offboarding { --dot: var(--ink-muted); }
.offboarded, .withdrawn { --dot: var(--ink-subtle); }

.toolbar { display: flex; gap: 10px; align-items: center; padding: 12px 16px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.toolbar-count { margin-left: auto; color: var(--ink-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.count-chip { padding: 3px 10px; border-radius: 999px; background: var(--grey); color: var(--ink-muted); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.search {
  flex: 0 1 300px; min-width: 220px; min-height: 36px; padding-left: 34px; border-radius: 8px;
  background: var(--surface) no-repeat 11px 50% / 15px url("/search.svg");
}
.table-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); color: var(--ink-muted); font-size: 13px; }

input, select { border: 1px solid var(--line-strong); border-radius: var(--radius-control); padding: 9px 12px; background: var(--surface); min-height: 40px; }
input::placeholder { color: var(--ink-subtle); font-weight: 400; font-family: var(--font); }
input:focus, select:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgb(255 146 20 / .25); }

table { width: 100%; border-collapse: collapse; }
th {
  text-align: left; font-size: 13px; font-weight: 700; color: var(--ink-muted); padding: 10px 16px; height: 44px;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
/* Sortable column headers: the whole label is the button; the arrow shows the current order. */
th .sort { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
th .sort:hover { color: var(--ink); }
.sort-arrow { color: var(--ink-subtle); font-size: 12px; }
th[aria-sort="ascending"] .sort, th[aria-sort="descending"] .sort { color: var(--ink); }
th[aria-sort="ascending"] .sort-arrow, th[aria-sort="descending"] .sort-arrow { color: var(--brand-ink); }
td { padding: 8px 16px; height: 52px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th:first-child, td:first-child { padding-left: 20px; }
td + td { white-space: nowrap; }
tbody tr { cursor: pointer; transition: background-color .12s; }
tbody tr:hover { background: var(--hover); }
tbody tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }
.person { display: flex; align-items: center; gap: 12px; }
.person > div { min-width: 0; }
.person-name { font-weight: 700; }
.person-sub { font-size: 12px; color: var(--ink-muted); font-weight: 400; }
td .person-sub { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar {
  flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; background: var(--brand-tint); color: var(--brand-ink-strong);
}
.avatar.large { width: 48px; height: 48px; font-size: 17px; }

.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.due { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-muted); white-space: nowrap; }
.due-flag { padding: 0 8px; border-radius: 999px; font-weight: 700; }
.due.due_soon .due-flag { background: var(--brand-tint); color: var(--brand-ink-strong); }
.due.overdue { color: var(--danger); }
.due.overdue .due-flag { background: var(--danger-soft); color: var(--danger); }
.badge.pending_procurement_approval, .badge.pending_et_approval { background: var(--brand-tint); color: var(--brand-ink-strong); }
.badge.changes_requested { background: var(--danger-soft); color: var(--danger); }
.badge.provisioning { background: var(--info-soft); color: var(--info); }
.badge.active { background: var(--success-soft); color: var(--success); }
.badge.offboarding { background: var(--grey); color: var(--ink); }
.badge.offboarded { background: var(--canvas); color: var(--ink-muted); }
.badge.withdrawn { background: var(--canvas); color: var(--ink-muted); text-decoration: line-through; }

.empty { padding: 56px 20px; text-align: center; color: var(--ink-muted); font-weight: 400; }
.empty h2 { color: var(--ink); margin-bottom: 6px; font-size: 17px; }
.empty .btn { margin-top: 16px; }

/* Profile header, after the Lumos identity page: avatar, name and status, then key facts split by dividers. */
.profile-head { display: flex; gap: 14px 28px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.profile-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.profile-who h1 { font-size: 20px; }
.profile-who p { margin: 0; color: var(--ink-muted); font-size: 13px; }
.profile-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.profile-stats { display: flex; flex-wrap: wrap; margin: 0; }
.profile-stats > div { padding: 0 20px; border-left: 1px solid var(--line-strong); }
.profile-stats > div:first-child { padding-left: 0; border-left: 0; }
.profile-stats dd { margin: 0; font-weight: 700; white-space: nowrap; }
.profile-stats dt { color: var(--ink-muted); font-size: 12px; white-space: nowrap; }
.profile-actions { margin-left: auto; display: flex; gap: 8px; }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.profile-grid + .card { margin-top: 16px; }
.section { padding: 20px 24px; }
.section + .section { border-top: 1px solid var(--line); }
.section > p.muted { margin: 0; }
.session-panel { display: grid; gap: 12px; justify-items: start; }
.session-panel h2 { margin: 0; }
.session-panel label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
.review-skip-types { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; }
.review-skip-types legend { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.session-panel label.skip-type { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.section-note { margin: -8px 0 16px; color: var(--ink-muted); font-weight: 400; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; margin: 0; }
.fields dt { font-size: 12px; color: var(--ink-muted); font-weight: 400; }
.fields dd { margin: 3px 0 0; overflow-wrap: anywhere; }
.fields .wide { grid-column: 1 / -1; }

.progress { display: flex; align-items: center; gap: 10px; width: 45%; }
.progress-bar { flex: 1; height: 8px; border-radius: 999px; background: var(--grey); overflow: hidden; min-width: 60px; }
.progress-bar span { display: block; height: 100%; background: var(--brand); border-radius: inherit; transition: width .4s ease; }
.progress-label { font-size: 12px; color: var(--ink-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Steps are a real sequence, so a connecting rail links the markers. */
.steps { list-style: none; margin: 0; padding: 0; }
.step { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 14px; padding: 0 0 18px; }
.step:last-child { padding-bottom: 0; }
.step:not(:last-child)::before { content: ""; position: absolute; left: 11px; top: 26px; bottom: 2px; width: 2px; border-radius: 1px; background: var(--line); }
.step[data-state="done"]:not(:last-child)::before { background: var(--success); opacity: .35; }
.check {
  width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; background: var(--surface);
}
.check svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.step[data-state="done"] .check { background: var(--success); border-color: var(--success); }
.step[data-state="current"] .check { border-color: var(--brand); box-shadow: inset 0 0 0 4px var(--surface), inset 0 0 0 12px var(--brand); }
.step[data-state="failed"] .check { background: var(--danger); border-color: var(--danger); }
.step-title { font-weight: 700; line-height: 24px; }
.step-sub { font-size: 13px; color: var(--ink-muted); font-weight: 400; }
.ref { color: var(--ink); }
.step-form { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.step-override { margin-top: 8px; }
.step-override > summary { cursor: pointer; width: fit-content; font-size: 13px; color: var(--ink-muted); list-style: none; }
.step-override > summary::-webkit-details-marker { display: none; }
.step-override > summary::after { content: " ›"; }
.step-override[open] > summary::after { content: " ⌄"; }
.step-override > summary:hover { color: var(--ink); }
.step-form input { flex: 1 1 200px; min-width: 0; min-height: 32px; padding-block: 5px; border-radius: 10px; }

.task-list { overflow: hidden; }
.task-list .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; }
.task-list .row + .row { border-top: 1px solid var(--line); }
.task-list .row:hover { background: var(--brand-soft); }
.card-title { padding: 18px 20px 6px; }

dialog { background: var(--surface); color: var(--ink); border: 0; border-radius: 24px; padding: 0; width: min(680px, calc(100vw - 24px)); box-shadow: 0 24px 80px rgb(51 51 51 / .22); }
dialog[open] { animation: rise .2s ease-out; }
dialog::backdrop { background: rgb(16 60 92 / .45); backdrop-filter: blur(2px); }
dialog form { padding: 28px; }
.dialog-head h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.dialog-head p { margin: 6px 0 20px; color: var(--ink-muted); font-weight: 400; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid > label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
.form-grid input, .form-grid select { font-size: 14px; font-weight: 400; }
.form-grid .span { grid-column: 1 / -1; }
.form-section {
  grid-column: 1 / -1; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line);
  color: var(--ink-muted); font: 700 11px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase;
}
.form-section:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
fieldset { border: 0; display: grid; gap: 10px; padding: 0; margin: 0; }
legend { font-size: 13px; font-weight: 700; padding: 0; margin-bottom: 6px; }
.device-choice { grid-template-columns: 1fr 1fr; }
.choice {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; cursor: pointer; font-weight: 400; font-size: 13px; color: var(--ink-muted);
  border: 1px solid var(--line-strong); border-radius: var(--radius-control); transition: border-color .15s, background-color .15s;
}
.choice b { display: block; color: var(--ink); font-size: 14px; }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.choice input { min-height: 0; margin: 3px 0 0; accent-color: var(--brand-ink); }
.form-warning { color: var(--brand-ink-strong); background: var(--brand-soft); border-radius: var(--radius-control); padding: 8px 12px; margin: 12px 0 0; }
.device-choice .span { grid-column: 1 / -1; }
.keyboard-choice { grid-template-columns: repeat(3, 1fr); }
.choice .recommended { display: inline-block; margin-top: 6px; color: var(--brand-ink); font-size: 12px; font-weight: 700; }
.choice .recommended[hidden] { display: none; }
.choice:has(.recommended:not([hidden])) { border-color: var(--brand-ink); }
.form-error { color: var(--danger); min-height: 1.5em; margin: 12px 0 0; font-weight: 400; }
.dialog-actions { display: flex; justify-content: end; gap: 8px; margin-top: 8px; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 10;
  background: var(--navy); color: #fff; padding: 11px 18px; border-radius: 999px; box-shadow: 0 12px 32px rgb(20 20 20 / .22);
  animation: rise .2s ease-out;
}
.toast.error { background: var(--danger); }
@keyframes rise { from { opacity: 0; translate: 0 8px; } }

/* Linear issue references the Hub created, shown beside steps and section titles. */
.issue-link { margin-left: 8px; font: 700 12px/1 var(--mono); color: var(--brand-ink); text-decoration: none; }
.issue-link:hover { text-decoration: underline; }
h2 .issue-link { vertical-align: 1px; }
.link-button { border: 0; background: none; padding: 0; color: var(--brand-ink); font-weight: 700; cursor: pointer; }
.link-button:hover { text-decoration: underline; }
.inline-form { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.inline-form input { min-height: 32px; padding-block: 4px; }

@media (max-width: 1100px) { .hide-lg { display: none; } }
@media (max-width: 1040px) {
  .landing { grid-template-columns: minmax(380px, 1fr) minmax(440px, 1fr); }
  .landing-panel { padding-inline: clamp(28px, 5vw, 60px); }
}
@media (max-width: 960px) {
  td .person-sub { max-width: 160px; }
  .profile-grid, .with-aside, .settings-layout { grid-template-columns: 1fr; }
  .settings-nav { position: static; display: flex; flex-wrap: wrap; }
  .settings-nav .nav-group { display: none; }
  .hide-md { display: none; }
  .content { padding: 16px 24px 48px; }
}
@media (max-width: 820px) {
  .landing { display: block; }
  .landing-panel { min-height: auto; padding: 24px 24px 40px; }
  .landing-copy { padding-block: 64px 16px; }
  .landing-stage { min-height: 620px; }
  .pass-hang { margin-top: 60px; }
}
@media (max-width: 720px) {
  .shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .nav-toggle, .nav-group, .sidebar-bottom > .nav-item, .account-label { display: none !important; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar-head { padding: 0; }
  .sidebar nav { display: flex; }
  .sidebar-bottom { margin: 0 0 0 auto; }
  .account-menu { padding: 0; border: 0; }
  .account-panel { left: auto; right: 0; bottom: auto; top: calc(100% + 8px); }
  .content { padding: 12px 14px 40px; }
  .hide-sm { display: none; }
  .fields, .form-grid, .device-choice, .keyboard-choice { grid-template-columns: 1fr; }
  .search { flex-basis: 100%; min-width: 0; }
  .toolbar-count { margin-left: 0; }
  .progress { width: 100%; }
  .section-head { flex-wrap: wrap; }
  .profile-stats > div { padding: 4px 12px 4px 0; border-left: 0; }
  .profile-actions { margin-left: 0; }
  .section { padding: 20px; }
}
@media (max-width: 480px) {
  .landing-action { min-width: 0; width: 100%; }
  .landing .lockup img { height: 26px; }
  .pass { width: 300px; padding-inline: 20px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Settings → Audit log */
.audit-filters .search { flex: 1 1 220px; min-width: 200px; }
.inline-field { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-muted); }
.audit-table td { vertical-align: top; }
.audit-table td + td { white-space: normal; }
.audit-table td:first-child { white-space: nowrap; }
.audit-details { font-size: 12px; color: var(--ink-muted); max-width: 360px; overflow-wrap: anywhere; }
tbody tr.static { cursor: default; }
tbody tr.static:hover { background: none; }
.audit-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line); font-size: 13px; }

/* Documentation (Settings → Documentation) */
.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; }
.doc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; padding: 24px 28px; border-bottom: 1px solid var(--line); }
.doc-head h2 { font-size: 22px; letter-spacing: -0.01em; }
.doc-head p { margin: 6px 0 0; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.doc-meta dt { padding: 4px 10px; border-radius: 999px; background: var(--canvas); color: var(--ink-muted); font-size: 12px; font-weight: 700; }
.doc-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; padding: 28px; }
.doc-toc { position: sticky; top: 24px; align-self: start; }
.doc-toc-title { margin: 0 0 10px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-subtle); }
.doc-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.doc-toc a { display: block; margin-left: -1px; padding: 6px 12px; border-left: 2px solid transparent; color: var(--ink-muted); font-size: 13px; text-decoration: none; }
.doc-toc a:hover { color: var(--ink); }
.doc-toc a.current { border-left-color: var(--brand); color: var(--brand-ink-strong); font-weight: 700; }
.doc-body { max-width: 780px; line-height: 1.6; }
.doc-section { scroll-margin-top: 24px; }
.doc-section + .doc-section { margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--line); }
.doc-section h2 { font-size: 20px; margin-bottom: 12px; }
.doc-section h3 { font-size: 15px; }
.doc-section p { margin: 0 0 12px; }
.doc-lead { font-size: 16px; }
.doc-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 20px 0 0; padding: 0; }
.doc-facts li { padding: 14px 16px; border-radius: var(--radius-control); background: var(--brand-soft); color: var(--brand-ink-strong); font-weight: 700; font-size: 14px; line-height: 1.4; }
.doc-steps { list-style: none; margin: 20px 0 0; padding: 0; }
.doc-steps li { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 16px; padding-bottom: 22px; }
.doc-steps li:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: var(--line); }
.doc-step-number { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-strong); font-weight: 700; font-size: 13px; }
.doc-steps p { margin: 8px 0 0; }
.doc-actor { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-muted); }
.doc-role { padding: 2px 10px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; }
.doc-matrix { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius-control); }
.doc-matrix th, .doc-matrix td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: center; }
.doc-matrix tbody th { text-align: left; font-weight: 400; }
.doc-matrix thead th:first-child { text-align: left; }
.doc-matrix tr:last-child > * { border-bottom: 0; }
.doc-matrix .doc-mine { background: var(--brand-soft); }
.doc-yes svg { width: 14px; height: 14px; fill: none; stroke: var(--success); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.doc-no { color: var(--ink-subtle); }
.doc-own { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--info-soft); color: var(--info); font-size: 12px; font-weight: 700; white-space: nowrap; }
.doc-note { margin-top: 10px; font-size: 13px; }
.doc-guides { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.doc-guide { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-control); }
.doc-guide.doc-mine { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.doc-guide p { margin: 4px 0 12px; font-size: 13px; }
.doc-guide ol { margin: 0; padding-left: 18px; font-size: 14px; }
.doc-guide li + li { margin-top: 6px; }
.doc-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; list-style: none; margin: 4px 0 20px; padding: 0; }
.doc-features li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
.doc-features p { margin: 4px 0 0; font-size: 14px; color: var(--ink-muted); }
.doc-feature-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--canvas); color: var(--navy); }
.doc-feature-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.doc-callout { padding: 12px 16px; border-left: 3px solid var(--info); border-radius: 0 var(--radius-control) var(--radius-control) 0; background: var(--info-soft); font-size: 14px; }
.doc-faq details { border-bottom: 1px solid var(--line); }
.doc-faq summary { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; cursor: pointer; font-weight: 700; list-style: none; }
.doc-faq summary::-webkit-details-marker { display: none; }
.doc-faq summary::after { content: "+"; color: var(--ink-muted); font-weight: 400; font-size: 18px; line-height: 1; }
.doc-faq details[open] summary::after { content: "–"; }
.doc-faq details p { margin: 0 0 16px; color: var(--ink-muted); }
:root[data-theme="dark"] .doc-role { background: var(--cloud); color: var(--navy-deep); }
@media (max-width: 960px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .doc-toc { position: static; }
  .doc-toc ol { display: flex; flex-wrap: wrap; gap: 4px; border-left: 0; }
  .doc-toc a { margin: 0; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
  .doc-toc a.current { border-color: var(--brand); }
  .doc-guides, .doc-facts, .doc-features { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  .doc-toc { display: none; }
  .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .doc-faq details > p { display: block; }
}
:root[data-theme="dark"] .doc-feature-icon { color: var(--brand-ink); }
/* Linear's icon is already a full tile. */
.integration-logo[src$=".svg"] { padding: 0; border: 0; background: none; }

/* Reviews: a comment box with approve / request changes; a returned external shows the reviewer's comment. */
.review-form { flex-direction: column; align-items: stretch; }
.review-comment { width: 100%; min-height: 56px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-control); background: var(--surface); resize: vertical; font: inherit; }
.review-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.review-notice { margin: 0 0 16px; border-left-color: var(--danger); background: var(--danger-soft); }
.review-notice p { margin: 0 0 10px; }
.review-actions { align-items: center; }
.review-actions label { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-muted); }
.review-thread { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.review-thread li { padding: 8px 12px; border-left: 3px solid var(--line-strong); }
.review-thread p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.review-meta { font-size: 0.85em; color: var(--ink-muted); }
.review-meta b { color: inherit; font-weight: 600; }
input[readonly] { background: var(--grey); color: var(--ink-muted); }

/* Dashboard. One series colour (blue, validated against both surfaces); status colours only where something is due. */
:root { --series-1: #2a78d6; }
:root[data-theme="dark"] { --series-1: #3987e5; }
.dash-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.dash-filters select { min-height: 34px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-control); background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow-card); }
.stat-label { color: var(--ink-muted); font-size: 13px; }
.stat-value { margin-top: 4px; font-size: 32px; font-weight: 700; line-height: 1.1; }
.stat-note { margin-top: 4px; color: var(--ink-muted); font-size: 12px; }
.stat.warn { border-color: var(--brand); }
button.stat { display: flex; flex-direction: column; justify-content: flex-start; font: inherit; color: inherit; text-align: left; cursor: pointer; }
button.stat:not(:disabled):hover, button.stat:focus-visible { border-color: var(--brand); }
button.stat:disabled { cursor: default; }
.selection-banner { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 16px; margin-bottom: 12px; }
.stat.warn .stat-label::before { content: "⚠ "; color: var(--brand-ink); }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 16px; }
.dash-card { margin: 0; }
.dash-card h2 { font-size: 16px; margin: 0; }
.dash-card h3 { display: flex; align-items: center; gap: 8px; margin: 16px 0 8px; font-size: 13px; color: var(--ink-muted); font-weight: 700; }
.dash-body { padding: 12px 20px 20px; }
.segmented { display: inline-flex; gap: 2px; padding: 2px; margin-bottom: 12px; border-radius: var(--radius-control); background: var(--grey); }
.segmented button { padding: 4px 10px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-muted); font: inherit; font-size: 12px; cursor: pointer; }
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 700; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.bar-row { display: grid; grid-template-columns: minmax(90px, 38%) 1fr auto; align-items: center; gap: 10px; padding: 4px 6px; border-radius: 6px; font-size: 13px; }
.bar-row:hover { background: var(--hover); }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-label .link { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.bar-label .link:hover { text-decoration: underline; }
.bar-track { display: flex; align-items: center; gap: 6px; min-width: 0; }
.bar { height: 12px; border-radius: 0 4px 4px 0; background: var(--series-1); }
.bar-value { font-variant-numeric: tabular-nums; font-weight: 700; }
.bar-note { color: var(--ink-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.line-chart { width: 100%; height: auto; display: block; }
.line-chart .grid { stroke: var(--line); stroke-width: 1; }
.line-chart .axis { fill: var(--ink-muted); font-size: 11px; }
.line-chart .value { fill: var(--ink); font-size: 12px; font-weight: 700; }
.line-chart .line { fill: none; stroke: var(--series-1); stroke-width: 2; stroke-linejoin: round; }
.line-chart .line.projected { stroke-dasharray: 5 4; }
.line-chart .marker { fill: var(--series-1); stroke: var(--surface); stroke-width: 2; }
.line-chart .guide { stroke: var(--line-strong); stroke-width: 1; }
.line-chart .hit { fill: transparent; }
.chart-readout { min-height: 18px; margin-top: 4px; color: var(--ink-muted); font-size: 12px; }
.chart-table { margin-top: 8px; font-size: 12px; }
.chart-table summary { cursor: pointer; color: var(--ink-muted); }
.chart-table table, .flow { width: 100%; border-collapse: collapse; font-size: 13px; }
.chart-table th, .chart-table td, .flow th, .flow td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; font-variant-numeric: tabular-nums; }
.flow th { color: var(--ink-muted); font-weight: 400; font-size: 12px; }
.people { list-style: none; margin: 0; padding: 0; }
.people li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.people li:last-child { border-bottom: 0; }
.people a { color: var(--ink); font-weight: 700; text-decoration: none; }
.people a:hover { text-decoration: underline; }
.people-more { color: var(--ink-muted); justify-content: flex-start !important; }
.due { font-variant-numeric: tabular-nums; color: var(--ink-muted); white-space: nowrap; }
.due.soon { color: var(--danger); font-weight: 700; }
.due.soon::before { content: "● "; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.chip { padding: 2px 8px; border-radius: 999px; background: var(--grey); color: var(--ink-muted); font-size: 12px; }
.loose h3 { justify-content: space-between; }
.tab-count.alert { background: var(--danger-soft); color: var(--danger); }

/* Employee Tech acting for another role (B11): the dialog asking for the offline approval, and its marks on the profile. */
#override-dialog { width: min(520px, calc(100vw - 24px)); }
.override-field { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
.override-field textarea { width: 100%; min-height: 80px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-control); background: var(--surface); resize: vertical; font: inherit; font-size: 14px; font-weight: 400; }
.badge.override { height: 20px; padding: 0 8px; margin-left: 8px; font-size: 12px; background: var(--brand-soft); color: var(--brand-ink-strong); border: 1px solid var(--brand-tint); vertical-align: middle; }
.override-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.override-list li { display: grid; gap: 2px; }
.override-list .override-comment { white-space: pre-wrap; }
