/* Hallmark · shape: app screen · genre: modern-minimal · theme: custom (by request: owner's ResolveIT reference)
 * paper: #FBF7FA · accent: #D5418B (--accent) · display: Segoe UI Variable Display · body: Segoe UI Variable Text
 * nav: existing sidebar, light rail, collapses below 60rem · signature: approvals queue beside its request; ribbon on sign-in · states: loading, empty, error, full
 * axes: paper/system-sans/magenta · posture: quiet work surfaces, one decorative ribbon · contrast: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V3 · weakest: V, the sidebar layout is kept to preserve IA; variety is spent on the ribbon and the queue split */
/* Hallmark · answered: 3 (side stripes are message and receipt bars whose status is also stated in text), F7 (controls share one recipe on purpose; panels share one surface recipe per the brief's small surface set) */
/* Cloudnine HRMS stylesheet. Colours, fonts, timing and radii come from tokens.css (generated from docs/design/tokens.json).
   WCAG 2.2 AA: text pairs >= 4.5:1, control borders and focus >= 3:1. Only transform and opacity animate. */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; color-scheme: light; scroll-padding-top: 1rem; }
body { margin: 0; font: 400 1rem/1.55 var(--font); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 .5rem; font-weight: 650; color: var(--ink-heading); overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
h1 { font-size: 1.625rem; letter-spacing: -0.015em; }
h2 { font-size: 1.2rem; letter-spacing: -0.01em; margin-top: 1.5rem; }
h3 { font-size: 1.03rem; }
p { margin: 0 0 .75rem; max-width: 70ch; text-wrap: pretty; }
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; transition: color var(--dur-fast) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { a:hover { color: var(--link-hover); text-decoration-thickness: 2px; } }
::selection { background: var(--brand-wash); color: var(--ink); }
html { caret-color: var(--brand); scrollbar-color: var(--line-strong) var(--paper); }
.sidebar, .table-wrap, .split-list, .picker-list { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.muted { color: var(--ink-soft); } .small { font-size: .875rem; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
.skip-link { background: var(--surface); color: var(--ink); padding: .6rem 1rem; border-radius: var(--radius-sm); z-index: 600; box-shadow: 0 0 0 2px var(--focus); text-decoration: none; font-weight: 600; }
/* Hidden until focused (clipped, never offset: an offset link can land under a translucent bar inside a positioned parent). Focused, it is fixed to the viewport corner. */
.skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; box-shadow: none; }
.skip-link:focus { position: fixed; left: .5rem; top: .5rem; }
main { position: relative; z-index: 1; padding: 1.5rem max(clamp(1rem, 3vw, 2.5rem), env(safe-area-inset-right, 0px)) calc(3rem + env(safe-area-inset-bottom, 0px)) max(clamp(1rem, 3vw, 2.5rem), env(safe-area-inset-left, 0px)); max-width: var(--content-max); }
main:focus { outline: none; }
body.bare main { margin: 0 auto; }
.num, td.num, .figure-n { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
html { -webkit-tap-highlight-color: transparent; }
a, button, summary, [role="button"], label, select { touch-action: manipulation; }
button, .btn, .chip, .tabs a, .segmented a, .nav-list a, .motion-toggle, .sort-btn { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

/* ---------- Shell ---------- */
/* --sidebar-current is the live sidebar width, used by the ribbon. Collapsing applies on desktop only (see the min-width block). */
html { --sidebar-current: var(--sidebar-w); }
.shell { position: relative; display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
/* The sidebar is sticky at viewport height; this paints the rest of its column in the gradient's end colour so a long page (or a full-page capture) never shows a white strip below it. */
.shell::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--sidebar-w); background: var(--sidebar-bg-bottom); }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font-size: 1.05rem; padding: .25rem .5rem 1.1rem; }
@media (hover: hover) and (pointer: fine) { .brand:hover { color: var(--ink); text-decoration: none; } }
.brand-mark { width: 2rem; height: 2rem; flex: none; }
.brand-logo { display: block; height: auto; }
.brand strong { font-weight: 700; }

/* Sidebar: dark plum, brand row and collapse toggle fixed above its own scroll area, faint static blush flow low down (no motion here). */
.sidebar { position: sticky; top: 0; height: 100vh; height: 100dvh; z-index: 350; display: flex; flex-direction: column; overflow: hidden; color: var(--sidebar-ink);
  background: linear-gradient(159deg, var(--sidebar-bg-top) 6%, var(--sidebar-bg-bottom) 100%); }
.sidebar::before { content: ""; position: absolute; left: 0; bottom: 0; width: var(--sidebar-w); height: clamp(14rem, 42%, 21rem); background: url("../img/nav/sidebar-flow.svg") left bottom / 100% 100% no-repeat; pointer-events: none; }
.sidebar-head, .sidebar-scroll { position: relative; }
.sidebar-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: 1.25rem .5rem 1rem .75rem; border-bottom: 1px solid rgba(255, 255, 255, .25); }
.sidebar .brand { flex: 1 1 auto; min-width: 0; gap: .5rem; padding: 0; color: var(--sidebar-ink); font-size: 1.15rem; font-weight: 650; letter-spacing: -.01em; border-radius: var(--sidebar-radius); }
@media (hover: hover) and (pointer: fine) { .sidebar .brand:hover { color: var(--sidebar-ink); } }
.sidebar .brand-text { min-width: 0; line-height: 1.15; } /* the product name is never truncated: it wraps before it clips */
.sidebar .brand strong { font-weight: 700; }
.brand-tile { flex: none; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: .625rem; background: var(--sidebar-ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.brand-tile .brand-mark { width: 1.625rem; height: 1.625rem; }
.sidebar-collapse { flex: none; display: inline-grid; place-items: center; width: var(--tap); height: var(--tap); padding: 0; background: transparent; color: var(--sidebar-ink); border: 1px solid rgba(255, 255, 255, .24); border-radius: var(--sidebar-radius); cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), transform var(--dur-press) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .sidebar-collapse:hover { background: var(--sidebar-row-hover); } }
.sidebar-collapse:active { transform: scale(.94); background: var(--sidebar-row-active); }
.sidebar-collapse-symbol { position: relative; inline-size: 18px; block-size: 15px; border: 1.5px solid; border-radius: 3px; }
.sidebar-collapse-symbol::before { content: ""; position: absolute; inset: 0 auto 0 5px; border-inline-start: 1.5px solid; }
.sidebar-collapse-symbol::after { content: ""; position: absolute; inset: 4px auto auto 8px; inline-size: 4px; block-size: 4px; border-block-start: 1.5px solid; border-inline-start: 1.5px solid; transform: rotate(-45deg); }
.sidebar .brand:focus-visible, .sidebar-collapse:focus-visible { outline: 2px solid var(--sidebar-focus); outline-offset: 2px; border-radius: var(--sidebar-radius); }

.sidebar-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 1.5rem .75rem 2rem; scrollbar-width: thin; scrollbar-color: rgba(255, 249, 242, .4) transparent; }
.nav-section + .nav-section { margin-top: var(--sidebar-group-gap); }
.nav-heading { margin: 0 0 .75rem; padding: 0 .75rem; font-size: 1rem; font-weight: 650; color: var(--sidebar-ink-muted); max-width: none; line-height: 1.3; }
.nav-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sidebar-row-gap); }
.nav-list a { position: relative; display: flex; align-items: center; gap: var(--sidebar-icon-gap); min-height: var(--sidebar-row-h); padding: .375rem .5625rem .375rem .4375rem; border-inline-start: 3px solid transparent; border-radius: var(--sidebar-radius); color: var(--sidebar-ink); text-decoration: none; font-size: var(--text-nav, 1rem);
  transition: background-color var(--dur-fast) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .nav-list a:hover { background: var(--sidebar-row-hover); color: var(--sidebar-ink); text-decoration: none; } }
.nav-list a:active { background: var(--sidebar-row-active); }
.nav-list a[aria-current="page"] { background: var(--sidebar-row-active); border-inline-start-color: var(--nav-active-bar); color: var(--sidebar-ink); font-weight: 700; }
.nav-list a:focus-visible { outline: 2px solid var(--sidebar-focus); outline-offset: -2px; border-radius: var(--sidebar-radius); }
/* Icons: the owner's kit PNGs (static/img/nav/, two-tone artwork with a soft halo) and matching SVGs for entries the kit does not cover are
   drawn as a single-colour alpha mask in the row's text colour (the current row uses --sidebar-icon-active). The icon keeps a 24px layout
   box; the artwork's solid stroke only fills about half of a PNG, so the mask layer is larger than the box (--cn-grow) to land the visible
   glyph at the kit's 18-20px. Decorative. All 25 marks come from one sprite (static/img/nav/nav-sprite.png, 96px tiles in nav-key order,
   built from the kit PNGs and the extension SVGs) so a cold page load makes one image request instead of 25. */
.nav-icon { --cn-grow: -8px; position: relative; flex: none; display: block; inline-size: var(--sidebar-icon); block-size: var(--sidebar-icon); }
.nav-icon::before { content: ""; position: absolute; inset: var(--cn-grow); background-color: currentColor; -webkit-mask: url("../img/nav/nav-sprite.png") var(--cn-pos) 0 / 2500% 100% no-repeat; mask: url("../img/nav/nav-sprite.png") var(--cn-pos) 0 / 2500% 100% no-repeat; }
@supports not ((mask-image: url("")) or (-webkit-mask-image: url(""))) {
  .nav-icon::before { background: url("../img/nav/nav-sprite.png") var(--cn-pos) 0 / 2500% 100% no-repeat; }
}
.nav-list a[aria-current="page"] .nav-icon { color: var(--sidebar-icon-active); }
.nav-icon[data-icon="home"] { --cn-pos: 0.0%; }
.nav-icon[data-icon="directory"] { --cn-pos: 4.1667%; }
.nav-icon[data-icon="org-chart"] { --cn-pos: 8.3333%; }
.nav-icon[data-icon="profile"] { --cn-pos: 12.5%; }
.nav-icon[data-icon="approvals"] { --cn-pos: 16.6667%; }
.nav-icon[data-icon="attendance"] { --cn-pos: 20.8333%; }
.nav-icon[data-icon="leave"] { --cn-pos: 25.0%; }
.nav-icon[data-icon="roster"] { --cn-pos: 29.1667%; }
.nav-icon[data-icon="credentials"] { --cn-pos: 33.3333%; }
.nav-icon[data-icon="policies"] { --cn-pos: 37.5%; }
.nav-icon[data-icon="lifecycle"] { --cn-pos: 41.6667%; }
.nav-icon[data-icon="workforce"] { --cn-pos: 45.8333%; --cn-grow: -1.5px; }
.nav-icon[data-icon="compensation"] { --cn-pos: 50.0%; }
.nav-icon[data-icon="bonuses"] { --cn-pos: 54.1667%; }
.nav-icon[data-icon="benefits"] { --cn-pos: 58.3333%; }
.nav-icon[data-icon="finance-export"] { --cn-pos: 62.5%; --cn-grow: -1.5px; }
.nav-icon[data-icon="performance"] { --cn-pos: 66.6667%; }
.nav-icon[data-icon="engagement"] { --cn-pos: 70.8333%; }
.nav-icon[data-icon="internal-jobs"] { --cn-pos: 75.0%; }
.nav-icon[data-icon="raise-concern"] { --cn-pos: 79.1667%; }
.nav-icon[data-icon="recruitment"] { --cn-pos: 83.3333%; --cn-grow: -1.5px; }
.nav-icon[data-icon="talent"] { --cn-pos: 87.5%; --cn-grow: -1.5px; }
.nav-icon[data-icon="er"] { --cn-pos: 91.6667%; --cn-grow: -1.5px; }
.nav-icon[data-icon="survey-admin"] { --cn-pos: 95.8333%; --cn-grow: -1.5px; }
.nav-icon[data-icon="reports"] { --cn-pos: 100.0%; --cn-grow: -1.5px; }
.nav-label { min-width: 0; line-height: 1.25; overflow-wrap: anywhere; }

/* Desktop collapse: 282px to 76px. Same links, order, active item and accessible names; labels become tooltips from the link text. */
@media (min-width: 60.0625rem) {
  html[data-sidebar="collapsed"] { --sidebar-current: var(--sidebar-w-collapsed); }
  html[data-sidebar="collapsed"] .shell { grid-template-columns: var(--sidebar-w-collapsed) minmax(0, 1fr); }
  html[data-sidebar="collapsed"] .shell::before { width: var(--sidebar-w-collapsed); }
  html[data-sidebar="collapsed"] .sidebar-head { flex-direction: column; justify-content: flex-start; gap: .75rem; padding: 1.25rem .5rem 1rem; }
  html[data-sidebar="collapsed"] .sidebar .brand { flex: none; }
  html[data-sidebar="collapsed"] .sidebar .brand-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; } /* still the brand link's accessible name */
  html[data-sidebar="collapsed"] .sidebar-collapse-symbol::after { transform: rotate(135deg); }
  html[data-sidebar="collapsed"] .sidebar-scroll { padding-inline: .5rem; overflow-x: clip; }
  html[data-sidebar="collapsed"] .nav-section + .nav-section { margin-top: .875rem; padding-top: .875rem; border-top: 1px solid rgba(255, 255, 255, .25); }
  html[data-sidebar="collapsed"] .nav-heading { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; } /* still names each group list */
  html[data-sidebar="collapsed"] .nav-list a { justify-content: center; gap: 0; padding-inline: 0 .1875rem; }
  /* The label is the tooltip: out of the clipped scroll area (fixed), opacity 0 so it keeps the link's accessible name. Its top is set from its row's live rect by
     js/app.js (it follows the sidebar's own scroll); without it the label sits at its static position, which is only right while the sidebar is unscrolled. */
  html[data-sidebar="collapsed"] .nav-label { position: fixed; left: calc(var(--sidebar-w-collapsed) + .5rem); z-index: 360; padding: .4rem .75rem; border-radius: var(--radius-sm); background: var(--sidebar-bg-top); color: var(--sidebar-ink); border: 1px solid rgba(255, 255, 255, .28); box-shadow: var(--overlay-shadow);
    font-size: var(--text-nav, 1rem); font-weight: 500; white-space: nowrap; overflow-wrap: normal; opacity: 0; pointer-events: none; transition: opacity var(--dur-fast) var(--ease-out); }
  html[data-sidebar="collapsed"] .nav-list a:focus-visible .nav-label { opacity: 1; }
}
@media (min-width: 60.0625rem) and (hover: hover) and (pointer: fine) { html[data-sidebar="collapsed"] .nav-list a:hover .nav-label { opacity: 1; } }
/* Collapsing is an instant switch: width and grid-template-columns are layout properties, so animating them would reflow the whole main column on every frame.
   Only the tooltip fade above (opacity) transitions. */

/* Top bar: find a colleague, then the account menu. */
.main-col { position: relative; min-width: 0; }
.topbar { position: relative; z-index: 300; display: flex; align-items: center; gap: .75rem; padding: max(.5rem, env(safe-area-inset-top, 0px)) max(clamp(1rem, 3vw, 2.5rem), env(safe-area-inset-right, 0px)) .5rem max(clamp(1rem, 3vw, 2.5rem), env(safe-area-inset-left, 0px)); background: var(--surface-glass-strong); border-bottom: 1px solid var(--line); min-height: 3.5rem; }
.topbar-brand { display: none; align-items: center; gap: .5rem; min-height: var(--tap); font-weight: 650; color: var(--ink-heading); text-decoration: none; white-space: nowrap; }
.topbar-brand .brand-mark { width: 1.75rem; height: 1.75rem; }
.nav-toggle { display: none; align-items: center; justify-content: center; min-width: var(--tap); min-height: var(--tap); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); color: var(--ink); cursor: pointer; transition: background-color var(--dur-fast) var(--ease-out), transform var(--dur-press) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .nav-toggle:hover { background: var(--surface-hover); } }
.nav-toggle:active { transform: scale(.96); }
.topbar-search { position: relative; flex: 0 1 18rem; min-width: 0; margin-left: auto; }
.topbar-search input[type=search] { width: 100%; max-width: none; min-height: 2.5rem; padding: .4rem .75rem .4rem 2.5rem; border-radius: var(--radius-sm); background: var(--surface); }
.topbar-search-icon { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); color: var(--ink-soft); pointer-events: none; }
@media (pointer: coarse) { .topbar-search input[type=search] { min-height: var(--tap); } }
.usermenu { margin-left: auto; position: relative; }
.topbar-search + .usermenu { margin-left: 0; }
.usermenu summary { list-style: none; display: flex; align-items: center; gap: .6rem; min-height: var(--tap); cursor: pointer; padding: .25rem .5rem; border-radius: var(--radius-sm); font-weight: 650; color: var(--ink-heading); transition: background-color var(--dur-fast) var(--ease-out); }
.usermenu summary::-webkit-details-marker { display: none; }
@media (hover: hover) and (pointer: fine) { .usermenu summary:hover { background: var(--surface-hover); } }
.usermenu summary:active { background: var(--brand-wash); }
.usermenu-name { max-width: 14rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.usermenu-chevron { flex: none; color: var(--ink-soft); transition: transform var(--dur-base) var(--ease-out); }
.usermenu[open] .usermenu-chevron { transform: rotate(180deg); }
.avatar { display: inline-grid; place-items: center; flex: none; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--brand-wash); color: var(--brand-deep); border: 1px solid var(--line); font-size: .8125rem; font-weight: 700; letter-spacing: .02em; }
.usermenu-panel { position: absolute; right: 0; top: calc(100% + .35rem); min-width: 15rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem; box-shadow: var(--overlay-shadow); z-index: 310; display: grid; gap: .25rem; transform-origin: top right; }
.usermenu[open] .usermenu-panel { animation: pop-in var(--dur-overlay) var(--ease-out); }
.usermenu-panel a, .usermenu-panel button { display: flex; align-items: center; min-height: 2.5rem; padding: .35rem .5rem; border-radius: var(--radius-sm); }
@media (hover: hover) and (pointer: fine) { .usermenu-panel a:hover, .usermenu-panel button:hover { background: var(--surface-hover); } }
.usermenu-panel form { margin: 0; }
.usermenu-panel button { width: 100%; text-align: left; background: none; border: 0; font: inherit; color: var(--danger); cursor: pointer; }
.usermenu-panel .muted { padding: 0 .5rem .35rem; border-bottom: 1px solid var(--line); margin-bottom: .25rem; overflow-wrap: anywhere; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }

.messages { position: relative; z-index: 1; padding: 1rem clamp(1rem, 3vw, 2.5rem) 0; }
.msg { margin: 0 0 .5rem; padding: .7rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); max-width: none; }
.msg-error { background: var(--danger-bg); border-color: var(--danger); color: var(--danger-deep); }
.msg-success { background: var(--ok-bg); border-color: var(--ok); color: var(--ok-deep); }
.msg-warning { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-ink); }
.msg-info { background: var(--pending-bg); border-color: var(--pending-ink); color: var(--pending-ink); }


@media (max-width: 60rem) {
  .shell { display: block; }
  .shell::before { display: none; }
  .sidebar { display: none; position: fixed; top: 3.5rem; left: 0; right: 0; height: auto; max-height: calc(100dvh - 3.5rem); overflow-y: auto; overscroll-behavior: contain; box-shadow: var(--overlay-shadow); }
  .sidebar.is-open { display: block; animation: sheet-in var(--dur-overlay) var(--ease-out); }
  .sidebar::before { display: none; }
  .sidebar-head { display: none; }
  .sidebar-scroll { overflow: visible; padding: .75rem 1rem 1.25rem; }
  .nav-section + .nav-section { margin-top: 1.25rem; }
  .nav-heading { margin-bottom: .5rem; font-size: 1rem; }
  .nav-list { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
  .nav-list a { min-height: var(--tap); font-size: 1rem; }
  .nav-toggle { display: inline-flex; }
  .topbar-brand { display: inline-flex; }
  .topbar-search { flex: 1 1 8rem; margin-left: 0; }
  .topbar-search + .usermenu { margin-left: 0; }
  .usermenu-name { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; } /* visually hidden, still the summary's accessible name */
}
@media (max-width: 40rem) { .topbar-search { display: none; } .usermenu { margin-left: auto; } } /* phones: the directory search is one tap away in the menu */
@keyframes sheet-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Page header, sections, cards ---------- */
.page-header { display: flex; justify-content: space-between; align-items: flex-end; gap: .75rem 1.5rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.page-header > div:first-child { min-width: 0; }
.page-header h1 { margin-bottom: .2rem; }
.page-header .subtitle { color: var(--ink-soft); margin: 0; }
.page-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.crumb { margin: 0 0 .35rem; font-size: .875rem; display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.crumb a { display: inline-flex; align-items: center; min-height: 1.75rem; }
.grid { display: grid; gap: 1rem; margin-bottom: 1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; margin-bottom: 1rem; box-shadow: var(--card-shadow); }
.grid > .card { margin-bottom: 0; }
.card-title { font-size: 1.03rem; margin: 0 0 .6rem; }
.card-warn { border-color: var(--warn-line); }
.section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1rem; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; padding: .85rem 1.25rem; border-bottom: 1px solid var(--line); }
.section-head h2, .section-head h3 { margin: 0; font-size: 1.03rem; }
.section-head p { margin: 0; color: var(--ink-soft); font-size: .875rem; }
.section-body { padding: 1rem 1.25rem; }
.section > .table-wrap { border: 0; border-radius: 0 0 var(--radius) var(--radius); margin: 0; box-shadow: none; }
.plain { list-style: none; margin: 0 0 .75rem; padding: 0; }
.stack-sm { margin-bottom: .6rem; }
.form-inline { display: inline; }
.form-spaced { margin-bottom: 1rem; }
.links li { padding: .15rem 0; }
.figure { display: flex; align-items: baseline; gap: .5rem; }
.figure-n { font-size: 1.44rem; font-weight: 700; color: var(--ink); line-height: 1; }
.kv { display: grid; grid-template-columns: minmax(0, max-content) minmax(0, 1fr); gap: .4rem 1.25rem; margin: .75rem 0; }
.kv dt { color: var(--ink-soft); } .kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.callout { background: var(--warn-bg); color: var(--warn-ink); border-radius: var(--radius-sm); padding: .75rem 1rem; margin-bottom: 1rem; max-width: none; }
.callout-title { font-weight: 650; margin-bottom: .25rem; }
.banner { padding: .75rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; max-width: none; }
.banner-warn, .banner-asof { background: var(--warn-bg); color: var(--warn-ink); border: 1px solid var(--warn-line); }
.whisper { font-size: .875rem; color: var(--ink-soft); }

/* ---------- Status: always text, colour reinforces ---------- */
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .05rem .55rem; border-radius: var(--radius-pill); font-size: .8125rem; font-weight: 600; line-height: 1.5; border: 1px solid transparent; vertical-align: middle; white-space: nowrap; }
.badge-neutral { background: var(--neutral-bg); color: var(--neutral-ink); }
.badge-brand { background: var(--brand-wash); color: var(--brand-deep); }
.badge-pending { background: var(--pending-bg); color: var(--pending-ink); }
.badge-warn { background: var(--warn-bg); color: var(--warn-ink); }
.badge-danger { background: var(--danger-bg); color: var(--danger-deep); }
.badge-ok { background: var(--ok-bg); color: var(--ok-deep); }
.status { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; }

/* ---------- Buttons: instant press, distinct hover, focus, disabled, pending ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 2.5rem; font: inherit; font-weight: 600; padding: .45rem 1rem; border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer; text-decoration: none; line-height: 1.3; text-align: center; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-press) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .btn:hover { text-decoration: none; } }
.btn:active:not([disabled]):not([aria-disabled="true"]) { transform: scale(.98); transition-duration: var(--dur-press); }
.btn-primary { background: var(--btn-primary-bg); color: var(--on-action); }
@media (hover: hover) and (pointer: fine) { .btn-primary:hover { background: var(--btn-primary-bg-hover); color: var(--on-action); } }
.btn-primary:active { background: var(--btn-primary-bg-press); }
.btn-secondary { background: var(--surface); color: var(--brand-deep); border-color: var(--line-strong); }
@media (hover: hover) and (pointer: fine) { .btn-secondary:hover { background: var(--surface-hover); border-color: var(--brand); color: var(--brand-deep); } }
.btn-secondary:active { background: var(--brand-wash); }
.btn-quiet { background: transparent; color: var(--brand-deep); }
@media (hover: hover) and (pointer: fine) { .btn-quiet:hover { background: var(--surface-hover); color: var(--brand-deep); } }
.btn-quiet:active { background: var(--brand-wash); }
.btn-danger { background: var(--danger); color: var(--on-action); }
@media (hover: hover) and (pointer: fine) { .btn-danger:hover { background: var(--danger-deep); color: var(--on-action); } }
.btn-danger-quiet { background: var(--surface); color: var(--danger); border-color: var(--danger); }
@media (hover: hover) and (pointer: fine) { .btn-danger-quiet:hover { background: var(--danger-bg); color: var(--danger-deep); } }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--neutral-bg); color: var(--neutral-ink); border-color: var(--neutral-bg); cursor: not-allowed; }
.btn.is-pending { cursor: progress; }
.btn.is-pending::after { content: ""; width: .9em; height: .9em; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
.btn-sm { min-height: 2rem; padding: .25rem .7rem; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .5rem; }
@media (pointer: coarse) { .btn, .btn-sm { min-height: var(--tap); } }
/* Touch: list and footer links get a larger invisible hit area without moving the layout (WCAG 2.5.8; inline links in sentences are exempt). */
@media (pointer: coarse) { .plain li > a, .links li > a, .work-title a, .section-foot a, .crumb a, .subnav a, .summary dd > a { position: relative; } .plain li > a::after, .links li > a::after, .work-title a::after, .section-foot a::after, .crumb a::after, .subnav a::after, .summary dd > a::after { content: ""; position: absolute; inset: -.45rem -.25rem; } }

/* ---------- Shared link, button and surface components (names fixed by docs/design/shell-and-manager-home-plan.md) ---------- */
/* .chevron-link: understated outlined action. <a> for routes, <button> for in-place actions. The chevron is components/chevron.html;
   without it a CSS chevron is drawn, so the markup never shows two. */
.chevron-link { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 2.25rem; padding: .3rem .8rem; font: inherit; font-weight: 600; line-height: 1.3; text-align: center; text-decoration: none; cursor: pointer;
  color: var(--link); background: var(--surface); border: 1px solid var(--chevron-link-border); border-radius: 8px;
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-press) var(--ease-out); }
.chevron-link .chevron { flex: none; width: .875rem; height: .875rem; transition: transform var(--dur-fast) var(--ease-out); }
.chevron-link:not(:has(.chevron))::after, .inline-profile-link:not(:has(.chevron))::after { content: ""; flex: none; width: .4em; height: .4em; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); margin-inline: .05em .2em; }
@media (hover: hover) and (pointer: fine) { .chevron-link:hover { background: var(--surface-hover); border-color: var(--link); color: var(--link-hover); text-decoration: none; } .chevron-link:hover .chevron { transform: translateX(2px); } }
.chevron-link:active:not([disabled]):not([aria-disabled="true"]) { transform: scale(.98); background: var(--brand-wash); }
.chevron-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
.chevron-link[disabled], .chevron-link[aria-disabled="true"] { color: var(--neutral-ink); background: var(--neutral-bg); border-color: var(--neutral-bg); cursor: not-allowed; }
@media (pointer: coarse) { .chevron-link { min-height: var(--tap); } }

/* .inline-profile-link: a person's name as a readable link inside a sentence or cell. */
.inline-profile-link { display: inline-flex; align-items: center; gap: .25rem; color: var(--link); font-weight: 600; text-decoration: none; }
.inline-profile-link .chevron { flex: none; width: .75rem; height: .75rem; }
@media (hover: hover) and (pointer: fine) { .inline-profile-link:hover { color: var(--link-hover); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; } }
.inline-profile-link:focus-visible { text-decoration: underline; }

/* .row-link: one keyboard target per record. The name link stretches over its row (the row is the positioned box), a decorative
   chevron sits at the right edge, and the whole row is the click target. Name in --ink-heading. */
tr:has(.row-link), li:has(> .row-link), .row-link-host { position: relative; }
.row-link { color: var(--ink-heading); font-weight: 650; text-decoration: none; }
.row-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-sm); }
.row-link::before { content: ""; position: absolute; right: 1.1rem; top: 50%; width: .5rem; height: .5rem; margin-top: -.25rem; border-top: 2px solid var(--ink-soft); border-right: 2px solid var(--ink-soft); transform: rotate(45deg); pointer-events: none; transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); }
tr:has(.row-link) > :last-child { padding-right: 2.75rem; }
/* Other links in a row-link row (mailto, secondary profile links) stay separately clickable above the stretched target. */
tr:has(.row-link) a:not(.row-link), li:has(> .row-link) a:not(.row-link) { position: relative; z-index: 1; }
@media (hover: hover) and (pointer: fine) { .row-link:hover { color: var(--ink-heading); text-decoration: underline; text-underline-offset: .18em; } .row-link:hover::before { transform: translateX(2px) rotate(45deg); border-color: var(--ink-heading); } }
.row-link:focus-visible { outline: none; text-decoration: underline; }
.row-link:focus-visible::after { outline: 2px solid var(--focus); outline-offset: -2px; }

/* .surface-glass: warm translucent card. No backdrop blur. Inputs, menus and decision controls stay on opaque --surface. */
.surface-glass { background: var(--surface-glass); border: 1px solid var(--line); border-radius: var(--radius-lg); }
/* .btn-outline (with .btn): page-level secondary action next to the single .btn-primary. */
.btn-outline { background: var(--surface); color: var(--ink-heading); border-color: var(--line-strong); border-radius: 8px; }
@media (hover: hover) and (pointer: fine) { .btn-outline:hover { background: var(--surface-hover); border-color: var(--brand); color: var(--ink-heading); } }
.btn-outline:active { background: var(--brand-wash); }

/* ---------- Page background modes ---------- */
/* Default: the still paper background (task pages: forms, approvals detail, directory). An open-area page adds body.page-open
   (templates: {% block page_mode %} page-open{% endblock %}) for a soft blush sweep and pairs it with a ribbon variant. */
body.has-shell.page-open { background: linear-gradient(158deg, var(--surface) 0%, var(--surface-hover) 42%, var(--brand-wash) 100%) no-repeat; background-color: var(--paper); min-height: 100dvh; }

/* ---------- Forms ---------- */
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .25rem; }
.optional { font-weight: 400; color: var(--ink-soft); }
.hint { color: var(--ink-soft); font-size: .875rem; margin-bottom: .25rem; }
input[type=text], input[type=search], input[type=email], input[type=date], input[type=month], input[type=file], input[type=tel], input[type=number], input[type=url], input[type=password], input:not([type]), select, textarea {
  width: 100%; max-width: 28rem; min-height: 2.5rem; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: .45rem .65rem;
  transition: border-color var(--dur-fast) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { input:hover, select:hover, textarea:hover { border-color: var(--ink-soft); } }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--focus); outline-offset: 1px; }
input[disabled], select[disabled], textarea[disabled] { background: var(--neutral-bg); color: var(--neutral-ink); cursor: not-allowed; }
textarea { max-width: 40rem; }
select[multiple] { min-height: 7rem; }
@media (pointer: coarse) { input:not([type=checkbox]):not([type=radio]), select, textarea { min-height: var(--tap); font-size: max(1rem, 16px); } }
input[type=checkbox], input[type=radio] { width: 1.15rem; height: 1.15rem; accent-color: var(--brand); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); border-width: 2px; }
.error-text { color: var(--danger); font-weight: 600; margin: .25rem 0 0; }
.form-grid { display: grid; gap: .25rem; }
.form-narrow { max-width: var(--measure); }
.inline-form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-end; margin: 0; }
.inline-form .field { margin-bottom: 0; flex: 1 1 12rem; }
.inline-form input[type=text], .inline-form input:not([type]) { max-width: none; }
fieldset.field { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .75rem 1rem; }
fieldset.field legend { font-weight: 600; padding: 0 .35rem; }
.check { display: flex; gap: .5rem; align-items: center; font-weight: 400 !important; margin: .2rem 0; min-height: 2rem; }

/* Toolbar: search and filters grouped with the results they change */
.filters, .toolbar { display: flex; flex-wrap: wrap; gap: 0 1rem; align-items: flex-end; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1rem 0; margin-bottom: 1rem; }
.filters .field, .toolbar .field { flex: 1 1 11rem; min-width: 0; }
.toolbar .field-search { flex: 2 1 18rem; }
.toolbar .field-search input { max-width: none; }
.filters-actions, .toolbar-actions { margin-bottom: 1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.toolbar + .table-wrap, .toolbar + .chips + .table-wrap { margin-top: 0; }
.results-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin: 0 0 .6rem; color: var(--ink-soft); font-size: .875rem; }
.results-meta p { margin: 0; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0 0 .75rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; min-height: 2rem; padding: .15rem .35rem .15rem .75rem; background: var(--brand-wash); color: var(--brand-deep); border-radius: var(--radius-pill); font-size: .875rem; font-weight: 600; max-width: 100%; }
.chip > span { overflow-wrap: anywhere; }
.chip-remove { display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; flex: none; border-radius: 50%; color: var(--brand-deep); text-decoration: none; transition: background-color var(--dur-fast) var(--ease-out), transform var(--dur-press) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .chip-remove:hover { background: var(--surface); color: var(--brand-deep); } }
.chip-remove:active { transform: scale(.92); }
.chip-remove svg { width: .85rem; height: .85rem; }
@media (pointer: coarse) { .chip-remove { width: 2.25rem; height: 2.25rem; } .chip { min-height: 2.5rem; } }
.asof { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1rem; } .asof input { width: auto; } .asof label { font-weight: 600; }

/* ---------- Tables ---------- */
.table-wrap { position: relative; max-width: 100%; overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1rem; overscroll-behavior-x: contain; }
.table { width: 100%; border-collapse: collapse; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.table th, .table td { padding: .6rem .9rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { background: var(--table-head-bg); font-weight: 600; color: var(--ink); white-space: nowrap; }
.table tbody tr:last-child > * { border-bottom: 0; }
.table tbody th { font-weight: 600; }
.table tbody tr { transition: background-color var(--dur-fast) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .table tbody tr:hover { background: var(--surface-hover); } }
.table td.num, .table th.num { text-align: right; }
.sort-btn { display: inline-flex; align-items: center; gap: .3rem; min-height: 2rem; padding: 0 .25rem; margin: 0 -.25rem; background: none; border: 0; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; border-radius: var(--radius-sm); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .sort-btn:hover { background: var(--surface-hover); color: var(--ink); } }
.row-current, .table tbody tr.row-current, .table tbody tr[aria-current="true"] { background: var(--brand-wash); }
.actions { white-space: nowrap; }
.inline-delete { display: inline-block; margin-left: .75rem; } .inline-delete summary { cursor: pointer; color: var(--danger); text-decoration: underline; }
.step-pending td, .step-pending th { background: var(--pending-bg); }
.step-reassigned td, .step-reassigned th { color: var(--ink-soft); }
.step-overdue td, .case-overdue td, tr.overdue th, tr.overdue td { background: var(--danger-bg); }
.overdue-flag { color: var(--danger); font-weight: 700; }

/* ---------- Region states: empty, error, loading ---------- */
.state { text-align: center; padding: 2rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1rem; }
.state p { margin-inline: auto; } .state-title { font-weight: 650; font-size: 1.03rem; margin-bottom: .25rem; } .state-hint { color: var(--ink-soft); }
.state .btn { margin-top: .25rem; }
.state-error { text-align: left; border-color: var(--danger); background: var(--danger-bg); }
.state-error .state-title { color: var(--danger-deep); }
.spinner { display: inline-block; width: 1.5rem; height: 1.5rem; border: 3px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* Skeletons: aria-hidden shapes that match the content they replace */
.skeleton { display: grid; gap: .6rem; padding: .25rem 0; }
.skeleton-line, .skeleton-block { display: block; height: .85rem; border-radius: var(--radius-sm); background: var(--skeleton-base); animation: skeleton-pulse 1.6s var(--ease-in-out) infinite; }
.skeleton-line.is-short { width: 40%; } .skeleton-line.is-mid { width: 65%; }
.skeleton-block { height: 2.25rem; }
.skeleton-row td { padding-block: .8rem; }
@keyframes skeleton-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
[aria-busy="true"] { cursor: progress; }

/* ---------- Pagination, tabs, segmented ---------- */
.pagination { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; }
.pagination ul { list-style: none; display: flex; gap: .5rem; margin: 0; padding: 0; align-items: center; } .pagination p { margin: 0; color: var(--ink-soft); }
.pagination a { display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 .75rem; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); text-decoration: none; background: var(--surface); }
@media (hover: hover) and (pointer: fine) { .pagination a:hover { background: var(--surface-hover); } }
.tabs { border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; overflow-x: auto; }
.tabs ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.tabs a { display: flex; align-items: center; min-height: 2.75rem; padding: .5rem 1rem; text-decoration: none; color: var(--ink-soft); border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; font-weight: 600; transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .tabs a:hover { color: var(--ink); background: var(--surface-hover); } }
.tabs a[aria-current="page"] { color: var(--brand-deep); border-bottom-color: var(--brand); }
.segmented { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--neutral-bg); border-radius: var(--radius); margin: 0 0 1rem; list-style: none; }
.segmented a { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.25rem; padding: .25rem .9rem; border-radius: var(--radius-sm); color: var(--neutral-ink); text-decoration: none; font-weight: 600; transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .segmented a:hover { background: var(--surface-hover); color: var(--ink); } }
.segmented a[aria-current="page"] { background: var(--surface); color: var(--brand-deep); box-shadow: var(--card-shadow), inset 0 0 0 1px var(--line); }
@media (pointer: coarse) { .segmented a, .tabs a { min-height: var(--tap); } }
/* Narrow screens: every tab stays visible (wrap) instead of hiding off the edge with no scroll cue. */
@media (max-width: 40rem) { .tabs { overflow-x: visible; } .tabs ul { flex-wrap: wrap; row-gap: 0; } .tabs a { padding-inline: .75rem; } }
.chain { display: flex; flex-wrap: wrap; gap: .25rem .5rem; list-style: none; padding: 0; margin: 0 0 1rem; }
.chain li + li::before { content: "\203A"; margin-right: .5rem; color: var(--ink-soft); }
.subnav { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-bottom: 1rem; }

/* ---------- Records, summaries, comparisons ---------- */
.record-header { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.25rem; margin-bottom: 1rem; }
.record-header h1 { font-size: 1.44rem; margin: 0; }
.record-meta { display: flex; flex-wrap: wrap; gap: .15rem 1.25rem; margin: 0; padding: 0; list-style: none; color: var(--ink-soft); font-size: .9375rem; }
.record-meta li { min-width: 0; overflow-wrap: anywhere; }
.record-meta strong { color: var(--ink); font-weight: 600; }
.summary { margin: 0; }
.summary-row { display: grid; grid-template-columns: minmax(8rem, 14rem) minmax(0, 1fr); gap: .25rem 1.25rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.summary-row:last-child { border-bottom: 0; }
.summary dt { color: var(--ink-soft); font-weight: 600; }
.summary dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.summary .is-missing, .compare .is-missing { color: var(--ink-soft); font-style: italic; }
.compare { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: .6rem .75rem; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.compare thead th { background: var(--table-head-bg); font-weight: 600; }
.compare tbody th { color: var(--ink-soft); font-weight: 600; width: 11rem; }
.compare .is-changed { background: var(--surface-hover); }
.rel { display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; font-size: .875rem; white-space: nowrap; }
.rel-match { color: var(--ok); } .rel-differs { color: var(--warn-ink); } .rel-unavailable { color: var(--ink-soft); }
@media (max-width: 40rem) {
  .summary-row { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
  .compare, .compare thead, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare tr { padding: .5rem 0; border-bottom: 1px solid var(--line); }
  .compare th, .compare td { border: 0; padding: .15rem 0; }
  .compare td[data-label]::before { content: attr(data-label); display: block; font-size: .8125rem; color: var(--ink-soft); font-weight: 600; }
}
.disclosure { border-top: 1px solid var(--line); margin-top: .75rem; }
.disclosure > summary { display: flex; align-items: center; gap: .4rem; min-height: 2.5rem; cursor: pointer; font-weight: 600; color: var(--brand-deep); list-style: none; }
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary::before { content: ""; width: .5rem; height: .5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform var(--dur-base) var(--ease-out); }
.disclosure[open] > summary::before { transform: rotate(45deg); }

/* ---------- Decisions and receipts ---------- */
.decision { display: grid; gap: .75rem; }
.decision-actions { display: flex; flex-wrap: wrap; gap: .5rem; padding-top: .25rem; }
.decision-actions .btn { min-width: 7.5rem; }
.action-aside { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.action-feedback { margin: .5rem 0 0; font-weight: 600; }
.action-feedback.is-error { color: var(--danger); }
.receipt { background: var(--surface); border: 1px solid var(--ok); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1rem; }
.receipt h2 { color: var(--ok-deep); }
.receipt h2 { margin: 0 0 .35rem; font-size: 1.15rem; }
.receipt .summary-row { padding: .4rem 0; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.25rem; border-left: 2px solid var(--line); }
.timeline > li { position: relative; padding: 0 0 1rem .75rem; }
.timeline > li::before { content: ""; position: absolute; left: calc(-1.25rem - 6px); top: .45rem; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--brand); }
.timeline-head { font-weight: 650; margin: 0 0 .15rem; }

/* ---------- List and detail split ---------- */
.split { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.split-list { display: none; }
@media (min-width: 72rem) {
  .split { grid-template-columns: minmax(17rem, 22rem) minmax(0, 1fr); align-items: start; }
  .split-list { display: block; position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overscroll-behavior: contain; }
  .split .split-back { display: none; }
}
.queue { list-style: none; margin: 0; padding: .35rem; }
.queue a { display: block; padding: .55rem .75rem; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .queue a:hover { background: var(--surface-hover); color: var(--ink); } }
.queue a[aria-current="page"] { background: var(--brand-wash); color: var(--brand-deep); }
.queue a[aria-current="page"] .queue-title { font-weight: 700; }
.queue-title { display: block; font-weight: 600; }
.queue-meta { display: block; font-size: .8125rem; color: var(--ink-soft); }

/* ---------- Org chart tree ---------- */
.chart-tools { display: flex; flex-wrap: wrap; gap: 0 1rem; align-items: flex-end; margin-bottom: 1rem; }
.chart-search { position: relative; flex: 1 1 16rem; }
.chart-results { position: absolute; z-index: 100; top: 100%; left: 0; right: 0; max-width: 28rem; list-style: none; margin: .25rem 0 0; padding: .25rem; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); box-shadow: var(--overlay-shadow); }
.chart-results li { padding: .5rem .6rem; cursor: pointer; border-radius: 4px; }
.chart-results li:focus, .chart-results li[aria-selected="true"] { background: var(--brand-wash); }
@media (hover: hover) and (pointer: fine) { .chart-results li:hover { background: var(--brand-wash); } }
.tree, .tree ul { list-style: none; margin: 0; padding: 0; }
.tree { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem; min-height: 6rem; }
.tree ul[role=group] { margin-left: 1.4rem; border-left: 2px solid var(--line); padding-left: .5rem; }
.tree [role=treeitem][aria-expanded=false] > ul { display: none; }
.tree-row { display: flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: .3rem .5rem; border-radius: var(--radius-sm); cursor: pointer; transition: background-color var(--dur-fast) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .tree-row:hover { background: var(--surface-hover); } }
[role=treeitem]:focus { outline: none; } [role=treeitem]:focus > .tree-row { outline: 2px solid var(--focus); outline-offset: -2px; }
[role=treeitem][aria-selected=true] > .tree-row { background: var(--brand-wash); }
.tree-twist { display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; flex: none; border-radius: var(--radius-sm); color: var(--brand-deep); }
.tree-twist::before { content: "\25B8"; transition: transform var(--dur-base) var(--ease-out); } [aria-expanded=true] > .tree-row .tree-twist::before { transform: rotate(90deg); } .tree-twist.is-leaf::before { content: "\2022"; color: var(--line-strong); }
.tree-label { display: flex; flex-direction: column; min-width: 0; flex: 1; } .tree-meta { color: var(--ink-soft); font-size: .875rem; }
.tree-link { font-size: .875rem; flex: none; }
.tree-note { padding: .4rem .5rem; color: var(--ink-soft); font-size: .9rem; } .tree-error { color: var(--danger); font-weight: 600; }
.tree [aria-busy=true]::after { content: "Loading\2026"; display: block; padding: .4rem .5rem; color: var(--ink-soft); }

/* ---------- Person chip ---------- */
.person-chip { display: inline-block; line-height: 1.3; min-width: 0; overflow-wrap: anywhere; }
.person-meta { display: block; color: var(--ink-soft); font-size: .8125rem; font-weight: 400; }
.table tbody th .person-meta { font-weight: 400; }

/* ---------- Dev sign-in ---------- */
.dev-search { max-width: 28rem; margin-bottom: 1rem; }
.dev-count { color: var(--ink-soft); margin-bottom: .75rem; }
.dev-users form { margin: 0; }
.dev-users .btn { white-space: normal; text-align: center; }
@media (max-width: 40rem) {
  .dev-users, .dev-users tbody, .dev-users tr, .dev-users th, .dev-users td { display: block; width: 100%; }
  .dev-users thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .dev-users tr { padding: .75rem 1rem; border-bottom: 1px solid var(--line); }
  .dev-users th, .dev-users td { border: 0; padding: .15rem 0; }
  .dev-users td { color: var(--ink-soft); }
  .dev-users td.dev-action { padding-top: .5rem; }
  .dev-users .btn { display: flex; width: 100%; }
}

/* ---------- Misc shared ---------- */
.stat-row { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 1rem; }
.prose p { max-width: 70ch; white-space: pre-line; }
.chip-list { list-style: none; padding: 0; margin: 0 0 .75rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.pickers { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.picker { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; text-decoration: none; color: var(--ink); transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .picker:hover { border-color: var(--brand); background: var(--surface-hover); color: var(--ink); } }
.picker strong { display: block; color: var(--brand-deep); }
.notice-placeholder { border: 1px solid var(--warn-line); background: var(--warn-bg); color: var(--warn-ink); padding: .75rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; max-width: none; }
.suppressed { color: var(--ink-soft); font-style: italic; }
.bar { display: block; height: .6rem; border-radius: var(--radius-pill); background: var(--brand); min-width: 2px; }
.bar-track { background: var(--neutral-bg); border-radius: var(--radius-pill); }

/* Mobile reflow: nothing may make the document wider than the viewport (WCAG 1.4.10); tables scroll inside their own wrapper. */
main .table-wrap { position: relative; max-width: 100%; }
main .actions { white-space: normal; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
main .actions .btn { white-space: normal; }
main .plain { overflow-wrap: anywhere; }
main .table td.actions, main .table th.actions { display: table-cell; }
main .card, main .grid > *, main .page-header > *, main .filters, main .stat-row > * { min-width: 0; }
main img, main svg, main video { max-width: 100%; height: auto; }
main pre { max-width: 100%; overflow-x: auto; }
main .card-body, main .prose, main .state { overflow-wrap: anywhere; }
main .table th, main .table td { overflow-wrap: break-word; }
main .table thead th { overflow-wrap: normal; }
@media (max-width: 40rem) {
  main { padding-inline: .9rem; }
  h1 { font-size: 1.44rem; }
  .kv { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .kv dt { margin-top: .5rem; font-size: .875rem; }
  .page-header { align-items: flex-start; }
  .btn-row .btn, main .actions .btn, .decision-actions .btn { flex: 1 1 auto; }
  .filters .field, .toolbar .field { flex-basis: 100%; }
  .section-head, .section-body { padding-inline: 1rem; }
}

/* ---------- Careers (public) and candidate portal ---------- */
body.bare .careers-hero { background: var(--brand-wash); color: var(--ink); padding: 2rem clamp(1rem, 3vw, 2.5rem); border-bottom: 1px solid var(--line); }
body.bare .careers-hero p { color: var(--ink-soft); }
body.bare .careers-hero a { color: var(--brand-deep); }
.careers-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; padding: .75rem clamp(1rem, 3vw, 2.5rem); background: var(--surface); border-bottom: 1px solid var(--line); }
.careers-bar a.brand-link { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.careers-logo { width: 2.75rem; }
.careers-bar nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.job-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: .75rem; }
.job-card h2, .job-card h3 { margin: 0 0 .25rem; font-size: 1.1rem; }
.pipeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.pipeline .col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem .75rem; min-width: 0; }
.pipeline .col h3 { font-size: .95rem; margin: 0 0 .4rem; }
.scale { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }

/* ---------- Error summary, confirmation dialog, person picker ---------- */
.error-summary { border: 2px solid var(--danger); background: var(--surface); padding: .75rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; max-width: none; }
.error-summary:focus { outline: 2px solid var(--focus); outline-offset: 2px; }
.error-summary-title { font-weight: 700; margin: 0 0 .25rem; color: var(--danger-deep); }
.error-summary ul { margin: 0; padding-left: 1.25rem; }
.error-summary a { color: var(--danger); }
.messages-error .msg { border-color: var(--danger); }
.confirm-dialog { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.25rem; max-width: min(32rem, 92vw); color: var(--ink); background: var(--surface); box-shadow: var(--overlay-shadow); overscroll-behavior: contain; }
.confirm-dialog[open] { animation: pop-in var(--dur-overlay) var(--ease-out); }
.confirm-dialog::backdrop { background: var(--scrim); }
.confirm-dialog[open]::backdrop { animation: fade-in var(--dur-overlay) var(--ease-out); }
.confirm-dialog h2 { margin-top: 0; font-size: 1.15rem; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.person-picker { position: relative; max-width: 28rem; }
.person-picker input { max-width: none; }
.picker-list { list-style: none; margin: .25rem 0 0; padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); max-height: 14rem; overflow-y: auto; position: absolute; z-index: 100; left: 0; right: 0; box-shadow: var(--overlay-shadow); overscroll-behavior: contain; }
.picker-option { display: block; padding: .5rem .75rem; cursor: pointer; border-bottom: 1px solid var(--line); }
.picker-option:last-child { border-bottom: 0; }
.picker-option.is-active, .picker-option[aria-selected="true"] { background: var(--brand-wash); }
@media (hover: hover) and (pointer: fine) { .picker-option:hover { background: var(--surface-hover); } }
.picker-name { display: block; font-weight: 600; }
.picker-meta { display: block; color: var(--ink-soft); font-size: .8125rem; }
.picker-status { padding: .5rem .75rem; color: var(--ink-soft); font-size: .875rem; }
.picker-status.is-error { color: var(--danger); font-weight: 600; }
.confirm-fallback { margin: .5rem 0; }
.picker-chosen:empty { display: none; }

/* ---------- Promoted from page stylesheets (wave 1): picker states, segmented counts, secondary cell lines, section footers ---------- */
.picker-state .picker-skeleton { padding: 0 .75rem .6rem; }
.picker-state .picker-retry { margin: 0 .5rem .5rem; }
.picker-id { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.segmented .seg-count { display: inline-grid; place-items: center; min-width: 1.5rem; padding: 0 .4rem; border-radius: var(--radius-pill); background: var(--surface); color: var(--ink-soft); font-size: .8125rem; font-weight: 600; }
.segmented a[aria-current="page"] .seg-count { background: var(--brand-wash); color: var(--brand-deep); }
.cell-sub { display: block; color: var(--ink-soft); font-size: .8125rem; overflow-wrap: anywhere; }
.section-foot { margin: 0; padding: .6rem 1.25rem; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .875rem; }
.section > .table-wrap + .section-foot { border-top: 1px solid var(--line); }

/* ---------- Ribbon: one SVG component, three treatments (signin, subtle, static) ---------- */
.ribbon { --rb-amp: 1; position: fixed; inset: auto 0 0 auto; z-index: 0; pointer-events: none; user-select: none; overflow: hidden; contain: strict; }
.ribbon .rb-layer { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; transform-origin: 100% 100%; backface-visibility: hidden; overflow: visible; } /* overflow visible: a drifting box never shows its own edge; .ribbon clips at the viewport */
.ribbon--signin { inset: 0; }
.ribbon--subtle, .ribbon--static { left: var(--sidebar-current); top: auto; height: min(42vh, 26rem); opacity: .38; }
.rb-b1 { fill: var(--ribbon-1); fill-opacity: .62; }
.rb-b3 { fill: var(--ribbon-depth); fill-opacity: .42; }
.rb-b2 { fill: var(--ribbon-2); fill-opacity: .78; }
.rb-b4 { fill: var(--ribbon-3); fill-opacity: .82; }
.rb-lines path { fill: none; stroke: var(--ribbon-line); stroke-width: 1.4; stroke-linecap: round; stroke-opacity: .7; vector-effect: non-scaling-stroke; }
@media (prefers-reduced-motion: no-preference) {
  .ribbon--signin .rb-mid, .ribbon--subtle .rb-mid { animation: rb-drift-b var(--dur-ribbon) var(--ease-in-out) infinite; animation-delay: -7s; }
  .ribbon--signin .rb-front, .ribbon--subtle .rb-front { animation: rb-drift-c var(--dur-ribbon) var(--ease-in-out) infinite; animation-delay: -18s; }
  .ribbon--signin { --rb-amp: 2; }
  .ribbon--subtle { --rb-amp: .5; }
}
@keyframes rb-drift-b { 0%, 100% { transform: none; } 30% { transform: translate(calc(var(--rb-amp) * 12px), calc(var(--rb-amp) * -10px)) scale(calc(1 + var(--rb-amp) * 0.012)); } 65% { transform: translate(calc(var(--rb-amp) * -10px), calc(var(--rb-amp) * 6px)) scale(calc(1 - var(--rb-amp) * 0.008)); } }
@keyframes rb-drift-c { 0%, 100% { transform: none; opacity: 1; } 40% { transform: translate(calc(var(--rb-amp) * -18px), calc(var(--rb-amp) * 10px)) rotate(calc(var(--rb-amp) * -0.8deg)); opacity: .9; } 70% { transform: translate(calc(var(--rb-amp) * 8px), calc(var(--rb-amp) * 4px)) rotate(calc(var(--rb-amp) * 0.3deg)); opacity: .94; } }
/* Paused by preference or a hidden tab: freeze in place (no jump), resume where it stopped. */
html[data-motion="paused"] .ribbon *, html[data-motion-hidden] .ribbon * { animation-play-state: paused !important; }
html[data-motion="paused"] .skeleton-line, html[data-motion="paused"] .skeleton-block { animation: none; }
/* Still treatment: small or short screens, dense content, and the explicit static variant. */
.ribbon--static * { animation: none !important; }
@media (max-width: 64rem) { .ribbon--subtle { left: 0; height: 30vh; opacity: .26; } .ribbon--subtle * { animation: none !important; } }
@media (max-height: 36rem), (max-width: 40rem) { .ribbon--signin * { animation: none !important; } } /* short and phone screens: still treatment */
.motion-toggle { display: inline-flex; align-items: center; gap: .45rem; min-height: var(--tap); padding: .25rem .65rem; background: transparent; color: var(--ink-soft); border: 1px solid transparent; border-radius: var(--radius-sm); font: inherit; font-size: .875rem; cursor: pointer; transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-press) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .motion-toggle:hover { background: var(--surface-hover); color: var(--ink); } }
.motion-toggle:active { transform: scale(.97); }
.motion-toggle svg { width: 1rem; height: 1rem; flex: none; }
.motion-toggle .icon-play { display: none; }
html[data-motion="paused"] .motion-toggle .icon-pause { display: none; }
html[data-motion="paused"] .motion-toggle .icon-play { display: inline; }
@media (prefers-reduced-motion: reduce) { .motion-toggle { display: none; } }
@media (max-width: 64rem) { .page-motion .motion-toggle { display: none; } }

/* ---------- Auth pages: sign-in, signed out, access problems ---------- */
body.auth { min-height: 100dvh; background: radial-gradient(ellipse 70% 60% at 100% 0%, var(--brand-wash) 0%, transparent 70%), var(--paper); }
.auth-shell { position: relative; z-index: 1; min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; }
.auth-bar { display: flex; align-items: center; gap: .75rem; padding: 1.25rem clamp(1rem, 4vw, 3.5rem); }
.auth-bar .brand { padding: 0; }
.auth-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(20rem, 27rem); align-items: center; gap: 2rem clamp(2rem, 6vw, 6rem); max-width: 76rem; width: 100%; margin: 0 auto; padding: 1rem clamp(1rem, 4vw, 3.5rem) 4rem; }
.auth-intro { max-width: 34rem; }
.auth-title { font-family: var(--font-display); font-size: clamp(2rem, 1.2rem + 2.6vw, 2.75rem); line-height: 1.05; letter-spacing: -0.02em; font-weight: 700; color: var(--brand); margin: 0 0 .75rem; }
.auth-lede { font-size: 1.125rem; color: var(--ink-soft); max-width: 30rem; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--signin-card-shadow); padding: 2rem clamp(1.25rem, 3vw, 2.25rem); text-align: center; }
.auth-card .auth-logo { width: 5.5rem; margin: 0 auto .75rem; }
.auth-card h1, .auth-card h2 { font-size: 1.44rem; margin: 0 0 .35rem; }
.auth-card p { margin-inline: auto; color: var(--ink-soft); }
.auth-card .btn { width: 100%; min-height: 3rem; margin-top: .75rem; font-size: 1.03rem; }
.auth-card .btn-ms svg { width: 1.1rem; height: 1.1rem; flex: none; }
.auth-note { font-size: .875rem; color: var(--ink-soft); margin: 1rem auto 0; padding-top: 1rem; border-top: 1px solid var(--line); }
.auth-status { min-height: 1.25rem; margin: .5rem 0 0; font-size: .875rem; color: var(--ink-soft); }
.auth-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .5rem 1rem; padding: .75rem clamp(1rem, 4vw, 3.5rem) 1.25rem; font-size: .875rem; }
.auth-foot .motion-toggle { background: var(--surface); border-color: var(--line); color: var(--ink); box-shadow: var(--card-shadow); }
.auth-foot .motion-toggle:focus-visible { outline-offset: 0; box-shadow: 0 0 0 4px var(--surface); } /* ring sits on a near-white halo, so it reaches 3:1 over the ribbon */
@media (max-width: 40rem) { .auth-foot .motion-toggle { display: none; } } /* nothing loops on a phone, so there is nothing to pause */
@media (hover: hover) and (pointer: fine) { .auth-foot .motion-toggle:hover { background: var(--surface-hover); } }
.auth-card-wide { text-align: left; }
.auth-dev main, .auth-dev .auth-main { display: block; max-width: 72rem; }
@media (max-width: 56rem) {
  .auth-main { grid-template-columns: minmax(0, 1fr); padding-bottom: 32vh; }
  .auth-intro { text-align: center; margin: 0 auto; }
  .auth-lede { margin-inline: auto; }
  .ribbon--signin { top: auto; height: 42vh; }
}

/* Higher contrast (prefers-contrast: more): glass cards and the top bar become opaque, hairlines and control borders reach 3:1 (--line-strong is 3.5:1 on paper),
   the decorative ribbon and blush flow are removed, secondary text darkens and focus rings thicken. Tokens are re-pointed here so page stylesheets follow without edits. */
@media (prefers-contrast: more) {
  :root { --surface-glass: var(--surface); --surface-glass-strong: var(--surface); --line: var(--line-strong); --line-outline: var(--line-strong); --chevron-link-border: var(--link); --ink-soft: var(--neutral-ink); --ink-muted: var(--neutral-ink); --card-shadow: none; }
  .ribbon, .sidebar::before { display: none; }
  body.has-shell.page-open { background: var(--paper); }
  :focus-visible { outline-width: 3px; }
  .nav-list a:focus-visible, .sidebar .brand:focus-visible, .sidebar-collapse:focus-visible { outline-width: 3px; }
  .sidebar-head { border-bottom-color: var(--sidebar-ink); }
  .sidebar-collapse { border-color: var(--sidebar-ink); }
  html[data-sidebar="collapsed"] .nav-section + .nav-section { border-top-color: var(--sidebar-ink-muted); }
  .nav-list a[aria-current="page"] { outline: 2px solid var(--sidebar-ink); outline-offset: -2px; }
  .nav-list a[aria-current="page"]:focus-visible { outline: 3px solid var(--sidebar-focus); }
  .chevron-link { border-width: 2px; }
  a { text-decoration-thickness: 2px; }
}
@media (forced-colors: active) { .nav-icon::before { background-color: CanvasText; } .sidebar { border-right: 1px solid CanvasText; } .nav-list a[aria-current="page"] { outline: 2px solid Highlight; } .btn, .badge, .chip, .segmented a[aria-current="page"] { border: 1px solid ButtonText; } .ribbon { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .ribbon * { animation: none !important; }
  .spinner, .btn.is-pending::after { animation: none; border-right-color: currentColor; opacity: .6; }
}
