/* Humanta app shell. Colours come from brand.css tokens (docs/brand.md); this file adds surface,
   spacing and component tokens on top. No external fonts or assets.
   Deliberately plain: flat surfaces separated by space and one hairline, status as coloured text, sentence
   case, small radii that differ by role (controls 6, surfaces 8, dialogs 10), no glass, no hover lift. */
:root {
	--tap-target: 44px;
	--bg: #f3f4f6;
	--surface: #ffffff;
	--surface-2: var(--brand-card);
	--ink: var(--brand-ink);
	--body: var(--brand-body);
	--muted: #59616c; /* brand muted is under 4.5:1 on the grey surfaces */
	--line: var(--brand-line);
	--blue: var(--brand-blue);
	--blue-d: var(--brand-blue-d);
	--blue-l: var(--brand-blue-l);
	--blue-m: var(--brand-blue-m);
	--band: var(--brand-band);
	--char: var(--brand-char);
	--ok: var(--brand-ok);
	--warn: var(--brand-warn);
	--crit: var(--brand-crit);
	--attn: var(--brand-attn);
	--ok-l: #e8f6ec;
	--warn-l: #fdf0e6;
	--crit-l: #fbeaeb;
	--attn-l: #fcf6dc;
	--r-s: 6px;
	--r-m: 8px;
	--r-l: 8px;
	--shadow-1: none;
	--shadow-2: 0 8px 24px rgba(17, 21, 24, .12);
	--shadow-3: 0 18px 48px rgba(17, 21, 24, .24);
	--side-w: 248px;
	--font: var(--brand-font, "Segoe UI", system-ui, sans-serif);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body { font-family: var(--font); color: var(--body); background: var(--bg); font-size: 14.5px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-d); }
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.25; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Layout --------------------------------------------------------------------------- */
.app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
body { overflow-x: hidden; }
.side { background: var(--band); color: #c9d0d8; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; overflow-y: auto; }
.side-brand { padding: 20px 20px 14px; display: flex; flex-direction: column; gap: 6px; border-bottom: 1px solid rgba(255,255,255,.06); }
.side-brand img { height: 22px; width: auto; mix-blend-mode: lighten; align-self: flex-start; }
.side-brand .co { color: #fff; font-weight: 600; font-size: 13px; }
.side-brand .co small { display: block; color: #8a94a1; font-weight: 400; font-size: 11.5px; }
.nav { padding: 10px 10px 16px; flex: 1; }
.nav-group { margin-top: 14px; }
.nav-group > span { display: block; font-size: 12px; color: #8f99a5; padding: 0 12px 4px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 8px 12px; border-radius: 6px; color: #c9d0d8; font-size: 13.8px; position: relative; min-height: 38px; }
.nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.nav a.on { background: rgba(255,255,255,.09); color: #fff; }
.nav a .badge { margin-left: auto; color: #fff; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.side-me { border-top: 1px solid rgba(255,255,255,.06); padding: 14px 16px; display: flex; gap: 10px; align-items: center; }
.side-me .who { min-width: 0; flex: 1; }
.side-me .who b { display: block; color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-me .who small { color: #8a94a1; font-size: 11.5px; }
.side-me a { color: #8a94a1; display: inline-flex; padding: 6px; border-radius: 8px; }
.side-me a:hover { color: #fff; background: rgba(255,255,255,.06); }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid transparent; display: flex; align-items: center; gap: 12px; padding: 12px 28px; min-height: 64px; }
.top.scrolled { border-bottom-color: var(--line); }
.top .menu-btn { display: none; }
.search { flex: 1; max-width: 460px; position: relative; }
.search input { width: 100%; height: 38px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); padding: 0 14px 0 38px; outline: none; transition: border-color .15s, box-shadow .15s; }
.search input:focus { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.search svg { position: absolute; left: 12px; top: 11px; color: var(--muted); }
.search-results { position: absolute; top: 46px; left: 0; right: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow-2); padding: 6px; display: none; max-height: 380px; overflow: auto; }
.search-results.open { display: block; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.preview { display: flex; align-items: center; gap: 8px; background: var(--attn-l); border: 1px solid #efdf9b; color: #6b5a12; border-radius: 6px; padding: 0 6px 0 12px; height: 40px; font-size: 13px; }
.preview select { border: 0; background: transparent; font-weight: 600; color: #4b3f0c; height: 36px; cursor: pointer; outline: none; }
.content { padding: 8px 28px 48px; max-width: 1320px; width: 100%; }

/* Buttons and inputs ------------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 13.5px; cursor: pointer; transition: background .15s, border-color .15s, transform .05s, box-shadow .15s; white-space: nowrap; }
.btn:hover { border-color: #c8ced6; background: #fafbfc; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-d); border-color: var(--blue-d); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--body); }
.btn.ghost:hover { background: rgba(17,21,24,.05); }
.btn.danger { color: var(--crit); }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 5px; }
.btn.icon { width: 38px; padding: 0; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.field .hint { font-size: 12px; color: var(--muted); }
.input, .field input, .field select, .field textarea { width: 100%; min-height: 40px; border: 1px solid #cfd5dc; border-radius: 6px; padding: 8px 11px; background: var(--surface); outline: none; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; gap: 10px; align-items: center; font-size: 13.5px; margin-bottom: 12px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); }

/* Page header ------------------------------------------------------------------------- */
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 18px 0 22px; flex-wrap: wrap; }
.ph h1 { font-size: 24px; font-weight: 650; }
.ph p { margin: 4px 0 0; color: var(--muted); }
.ph .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 10px 14px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.on { color: var(--blue); border-bottom-color: var(--blue); }
.tabs button .n { color: var(--muted); font-weight: 400; margin-left: 5px; font-variant-numeric: tabular-nums; }

/* Cards ------------------------------------------------------------------------------- */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; grid-auto-flow: row dense; align-items: start; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 18px 20px; min-width: 0; }
.card.s { grid-column: span 4; }
.card.m { grid-column: span 6; }
.card.l { grid-column: span 8; }
.card.xl { grid-column: span 12; }
.card-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 10px; }
.card-h h3 { font-size: 15px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.card-h h3 svg { display: none; }
.card-h a { font-size: 12.5px; font-weight: 600; }
.empty { color: var(--muted); padding: 14px 0; font-size: 13.5px; }
.empty svg { display: none; }
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); min-width: 0; }
.li:first-child { border-top: 0; padding-top: 2px; }
.li .grow { flex: 1; min-width: 0; }
.li .t { color: var(--ink); font-weight: 600; font-size: 13.8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li .s { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li .end { display: flex; gap: 6px; align-items: center; flex: none; }
.click { cursor: pointer; border-radius: 6px; }
.click:hover { background: var(--surface-2); }

/* Hero -------------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; border-radius: 18px; padding: 28px 30px; color: #e9eef5; background: radial-gradient(1200px 300px at 85% -40%, rgba(46,110,207,.55), transparent 60%), linear-gradient(135deg, #111518 0%, #19212c 55%, #1b2b45 100%); margin: 18px 0 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.hero::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; border: 1px solid rgba(157,187,232,.18); box-shadow: 0 0 0 40px rgba(157,187,232,.04), 0 0 0 90px rgba(157,187,232,.03); pointer-events: none; }
.hero .date { font-size: 13px; color: var(--blue-m); }
.hero h1 { color: #fff; font-size: 28px; font-weight: 650; margin: 4px 0 6px; }
.hero p { margin: 0; color: #b7c1cd; max-width: 620px; }
.hero .chips { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.hero .chip { background: transparent; border: 0; padding: 0; color: #c3ccd6; font-weight: 400; }
.hero .chip + .chip::before { content: "·"; margin-right: 8px; color: #6f7a87; }
.clock { position: relative; z-index: 1; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 8px; padding: 16px 18px; min-width: 230px; text-align: center; }
.clock .time { font-size: 28px; font-weight: 650; color: #fff; font-variant-numeric: tabular-nums; }
.clock .st { font-size: 12.5px; color: #b7c1cd; margin: 2px 0 12px; }
.clock .btn { width: 100%; }
.attendance-hours { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #e9eef5; }
.attendance-punch .btn, #chk { min-height: var(--tap-target); }
.attendance-punch .field select { min-height: var(--tap-target); }

.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.qa { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 0 14px; height: 38px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; text-align: left; }
.qa:hover { border-color: #b9c1cb; }
.qa .ic { display: inline-flex; color: var(--muted); }
.qa b { color: var(--ink); font-size: 13.5px; font-weight: 600; }
.dlg .quick { flex-direction: column; align-items: stretch; }
.dlg .qa { width: 100%; height: 44px; }

/* Bits -------------------------------------------------------------------------------- */
.av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 13px; color: #4a525c; flex: none; background: #e3e7ec !important; overflow: hidden; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av.lg { width: 64px; height: 64px; font-size: 22px; }
.av.sm { width: 28px; height: 28px; font-size: 11px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border-radius: 4px; font-size: 12.5px; background: var(--surface-2); color: var(--body); white-space: nowrap; }
.pill { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pill.ok { color: #2a7a40; }
.pill.warn { color: #9a4d14; }
.pill.crit { color: var(--crit); }
.pill.info { color: var(--blue-d); }
.pill.mute { color: var(--muted); font-weight: 400; }
.co-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.co-tag i { width: 8px; height: 8px; border-radius: 2px; background: var(--c, var(--muted)); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.kpi { padding: 4px 0; }
.kpi b { display: block; font-size: 26px; color: var(--ink); font-weight: 650; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi span { font-size: 12.5px; color: var(--muted); }
.kpi.blue b { color: var(--blue-d); }
.bal { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.bal .b { border-left: 3px solid var(--line); padding: 2px 0 2px 12px; }
.bal .b b { font-size: 24px; color: var(--ink); }
.bal .b small { color: var(--muted); display: block; }
.meter { height: 6px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin-top: 10px; }
.meter i { display: block; height: 100%; background: var(--blue); border-radius: 4px; }
.progress-ring { --p: 0; width: 64px; height: 64px; border-radius: 50%; background: conic-gradient(var(--blue) calc(var(--p) * 1%), var(--surface-2) 0); display: grid; place-items: center; flex: none; }
.progress-ring span { width: 50px; height: 50px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-weight: 700; color: var(--ink); font-size: 13px; }
.steps .li .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; flex: none; }
.steps .li.done .dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.steps .li.done .t { color: var(--muted); text-decoration: line-through; }
.post { padding: 16px 0; border-top: 1px solid var(--line); }
.post:first-child { border-top: 0; padding-top: 0; }
.post h4 { font-size: 15.5px; margin: 6px 0 4px; }
.post .meta { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 12.5px; flex-wrap: wrap; }
.post .body { color: var(--body); margin-top: 6px; }
.post .body p { margin: 0 0 8px; }
.post.pinned { background: var(--attn-l); margin: 0 -20px; padding: 16px 20px; border-radius: 0; }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.t th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); position: sticky; top: 0; }
table.t td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:hover td { background: #fafbfc; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding-top: 10px; }
.bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bars .bar i { width: 100%; max-width: 38px; border-radius: 3px 3px 0 0; background: var(--blue); min-height: 3px; }
.bars .bar i.alt { background: var(--blue-m); }
.bars .bar small { color: var(--muted); font-size: 11.5px; }
.hbar { display: grid; grid-template-columns: 140px 1fr 40px; gap: 10px; align-items: center; margin: 8px 0; font-size: 13px; }
.hbar .track { height: 10px; background: var(--surface-2); border-radius: 2px; overflow: hidden; }
.hbar .track i { display: block; height: 100%; background: var(--blue); }
/* WP-36 attendance calendar: one component (calendarMonth in app.js) for "Attendance" and a member's month.
   Solid fills; each fill/ink pair is at least 4.5:1 (tests/test_wp36_ui.py computes it from these variables).
   The spec's green #1f8a4c is 4.38:1 with white, so the full-day green is the darker #1b7f46. */
:root { /* WP-36 calendar colours */
	--cal-full: #1b7f46; --cal-full-ink: #ffffff;
	--cal-short: #e0a100; --cal-short-ink: #1b1f24;
	--cal-under: #c8372d; --cal-under-ink: #ffffff;
	--cal-wfh: #2f6fde; --cal-wfh-ink: #ffffff;
	--cal-leave: #6b4bc4; --cal-leave-ink: #ffffff;
	--cal-pending-bg: #ffffff; --cal-pending-ink: #6b4bc4;
	--cal-off: #e7e9ee; --cal-off-ink: #4d5560;
	--cal-absent: #8a1c1c; --cal-absent-ink: #ffffff;
	--cal-open-bg: #ffffff; --cal-open-ink: #1b1f24;
	--cal-none-bg: #ffffff; --cal-none-ink: #59616c;
	--cal-late-on-dark: #e0a100; --cal-late-on-light: #b26b00;
	--cal-today: #1b1f24;
}
/* Dark set, ready for a dark theme (the app has none yet, so nothing sets data-theme today). */
:root[data-theme="dark"] {
	--cal-full: #1b7f46; --cal-full-ink: #ffffff;
	--cal-short: #e0a100; --cal-short-ink: #1b1f24;
	--cal-under: #c8372d; --cal-under-ink: #ffffff;
	--cal-wfh: #2f6fde; --cal-wfh-ink: #ffffff;
	--cal-leave: #6b4bc4; --cal-leave-ink: #ffffff;
	--cal-pending-bg: #1d2127; --cal-pending-ink: #b9a6f0;
	--cal-off: #2b3038; --cal-off-ink: #c3cad3;
	--cal-absent: #8a1c1c; --cal-absent-ink: #ffffff;
	--cal-open-bg: #1d2127; --cal-open-ink: #e9edf2;
	--cal-none-bg: #16191d; --cal-none-ink: #9aa3ae;
	--cal-late-on-dark: #f0b429; --cal-late-on-light: #f0b429;
	--cal-today: #e9edf2;
}
.calm { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.calm .dow { font-size: 12px; color: var(--muted); text-align: center; padding-bottom: 2px; }
.cd { position: relative; min-height: 96px; padding: 8px; border-radius: 8px; border: 0; margin: 0; font: inherit; text-align: left;
	display: flex; flex-direction: column; align-items: flex-start; gap: 2px; background: var(--cal-none-bg); color: var(--cal-none-ink); min-width: 0; }
button.cd { cursor: pointer; }
button.cd:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.cd.pad, .cd.k-none { background: transparent; }  /* no record: the card's surface (--cal-none-bg) shows through */
.cd-n { font-size: 15px; font-weight: 650; line-height: 1.2; font-variant-numeric: tabular-nums; }
.cd-s { font-size: 12.5px; font-weight: 600; line-height: 1.25; }
.cd-t { font-size: 12px; line-height: 1.25; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cd-late { position: absolute; top: 8px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--cal-late-on-dark); box-shadow: 0 0 0 2px #ffffff; }
.cd.k-full, .cd.k-present { background: var(--cal-full); color: var(--cal-full-ink); }
.cd.k-short, .cd.k-half { background: var(--cal-short); color: var(--cal-short-ink); }
.cd.k-under { background: var(--cal-under); color: var(--cal-under-ink); }
.cd.k-wfh { background: var(--cal-wfh); color: var(--cal-wfh-ink); }
.cd.k-leave { background: var(--cal-leave); color: var(--cal-leave-ink); }
.cd.k-pending { background: var(--cal-pending-bg); color: var(--cal-pending-ink); border: 2px solid var(--cal-leave); padding: 6px; }
.cd.k-off { background: var(--cal-off); color: var(--cal-off-ink); }
.cd.k-absent { background: var(--cal-absent); color: var(--cal-absent-ink); }
.cd.k-noout, .cd.k-review { background: var(--cal-open-bg); color: var(--cal-open-ink); border: 2px dashed var(--cal-under); padding: 6px; }
.cd.k-in { background: var(--cal-open-bg); color: var(--cal-open-ink); border: 2px dashed var(--cal-full); padding: 6px; }
.cd.k-short .cd-late, .cd.k-half .cd-late, .cd.k-off .cd-late, .cd.k-pending .cd-late, .cd.k-noout .cd-late, .cd.k-review .cd-late,
.cd.k-in .cd-late, .cd.k-none .cd-late { background: var(--cal-late-on-light); }
.cd.today { outline: 2px solid var(--cal-today); outline-offset: 2px; }
.cd.future .cd-n { font-weight: 500; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; font-size: 12.5px; color: var(--body); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend .sw { display: inline-block; width: 14px; height: 14px; border-radius: 4px; }
.cal-legend .sw.k-full, .cal-legend .sw.k-present { background: var(--cal-full); }
.cal-legend .sw.k-short, .cal-legend .sw.k-half { background: var(--cal-short); }
.cal-legend .sw.k-under { background: var(--cal-under); }
.cal-legend .sw.k-wfh { background: var(--cal-wfh); }
.cal-legend .sw.k-leave { background: var(--cal-leave); }
.cal-legend .sw.k-pending { border: 2px solid var(--cal-leave); }
.cal-legend .sw.k-off { background: var(--cal-off); border: 1px solid #c9ced6; }
.cal-legend .sw.k-absent { background: var(--cal-absent); }
.cal-legend .sw.k-noout, .cal-legend .sw.k-review { border: 2px dashed var(--cal-under); }
.cal-legend .sw.k-in { border: 2px dashed var(--cal-full); }
.cal-legend .sw-late { width: 9px; height: 9px; border-radius: 50%; background: var(--cal-late-on-light); }
.cal-note { margin: 10px 0 0; color: var(--muted); font-size: 12.5px; }
.day-rows { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; margin: 0; font-size: 14.5px; }
.day-rows dt { color: var(--muted); }
.day-rows dd { margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
	.cd .cd-t { display: none; }
	.calm { gap: 4px; }
	.cd { min-height: 64px; padding: 6px; }
	.cd-s { font-size: 11.5px; overflow-wrap: anywhere; }
	.cd-late { top: 6px; right: 6px; }
	dialog.dlg.day-sheet, dialog.dlg.filter-sheet { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 12px 12px 0 0; }
}
.matrix td, .matrix th { text-align: center; }
.matrix td:first-child, .matrix th:first-child { text-align: left; position: sticky; left: 0; background: var(--surface); z-index: 1; min-width: 210px; }
.lv { border: 0; border-radius: 4px; padding: 4px 6px; font-size: 12px; font-weight: 650; cursor: pointer; }
.lv.l0 { background: var(--surface-2); color: var(--muted); }
.lv.l1 { background: var(--blue-l); color: var(--blue-d); }
.lv.l2 { background: var(--blue); color: #fff; }
.lv.inh { opacity: .5; outline: 1px dashed var(--blue-m); }
.lv[disabled] { cursor: default; }
.kanban { display: grid; grid-template-columns: repeat(5, minmax(200px, 1fr)); gap: 14px; overflow-x: auto; }
.kcol { background: var(--surface-2); border-radius: 8px; padding: 12px; min-height: 200px; }
.kcol h4 { font-size: 13px; color: var(--body); font-weight: 600; margin-bottom: 10px; display: flex; justify-content: space-between; }
.kcard { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; margin-bottom: 8px; }
.kcard b { color: var(--ink); font-size: 13px; display: block; }
.kcard small { color: var(--muted); }
.org { overflow: auto; padding: 10px 0 20px; }
.org ul { list-style: none; padding-left: 26px; margin: 0; border-left: 1px dashed var(--line); }
.org > ul { border-left: 0; padding-left: 0; }
.org li { padding: 6px 0 6px 14px; position: relative; }
.org li::before { content: ""; position: absolute; left: -26px; top: 26px; width: 34px; border-top: 1px dashed var(--line); }
.org > ul > li::before { display: none; }
.org .node { display: inline-flex; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px 8px 8px; cursor: pointer; }
.org .node.static { cursor: default; }
.org .node b { color: var(--ink); font-size: 13px; display: block; }
.org .node small { color: var(--muted); font-size: 12px; }
.pass { text-align: center; }
.pass .code { font-size: 26px; letter-spacing: 6px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.pass svg { width: 180px; height: 180px; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 6px; background: var(--blue-l); color: var(--blue-d); font-size: 13.5px; margin-bottom: 18px; }
.notice.warn { background: var(--attn-l); color: #6b5a12; }
.notice code { background: rgba(255,255,255,.6); padding: 1px 6px; border-radius: 5px; font-size: 12.5px; word-break: break-all; }

/* Dialog and toast -------------------------------------------------------------------- */
dialog.dlg { border: 0; padding: 0; border-radius: 10px; box-shadow: var(--shadow-3); width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); }
dialog.dlg::backdrop { background: rgba(17, 21, 24, .5); }
.dlg-h { padding: 20px 22px 6px; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.dlg-h h2 { font-size: 19px; }
.dlg-h p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.dlg-b { padding: 12px 22px; overflow: auto; max-height: calc(100vh - 220px); }
.dlg-f { padding: 14px 22px 20px; display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); }
.toasts { position: fixed; bottom: 22px; right: 22px; display: flex; flex-direction: column; gap: 10px; z-index: 100; }
.toast { background: var(--band); color: #fff; border-radius: 6px; padding: 12px 16px; box-shadow: var(--shadow-3); font-size: 13.5px; display: flex; gap: 10px; align-items: center; max-width: 380px; animation: tin .2s ease-out; }
.toast.err { background: var(--crit); }
.toast.ok svg { color: var(--ok); }
@keyframes tin { from { transform: translateY(10px); opacity: 0; } }
.skel { background: linear-gradient(90deg, var(--surface-2) 25%, #eceff3 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: sk 1.3s ease infinite; border-radius: 10px; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.fade { }

/* Mobile ------------------------------------------------------------------------------ */
.tabbar { display: none; }
@media (max-width: 1100px) {
	.card.s { grid-column: span 6; }
	.card.l, .card.m { grid-column: span 12; }
}
@media (max-width: 860px) {
	.app { grid-template-columns: minmax(0, 1fr); }
	.search { min-width: 0; }
	.search input { padding-right: 8px; }
	.top { gap: 8px; }
	.top-actions { gap: 6px; }
	#newbtn span { display: none; }
	#newbtn { width: 40px; padding: 0; }
	.preview { padding: 0 4px 0 8px; }
	.preview select { max-width: 92px; }
	.side { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; z-index: 60; transform: translateX(-100%); transition: transform .22s ease; }
	.app.drawer .side { transform: none; box-shadow: var(--shadow-3); }
	.app.drawer::after { content: ""; position: fixed; inset: 0; background: rgba(17,21,24,.45); z-index: 50; }
	.top { padding: 10px 16px; }
	.top .menu-btn { display: inline-flex; }
	.content { padding: 4px 16px 96px; }
	.card.s, .card.m, .card.l { grid-column: span 12; }
	.hero { grid-template-columns: minmax(0, 1fr); padding: 22px; }
	.hero h1 { font-size: 24px; }
	.clock { min-width: 0; }
	.row2 { grid-template-columns: 1fr; }
	.preview span.lbl { display: none; }
	.tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; background: var(--surface); border-top: 1px solid var(--line); z-index: 30; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
	.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--muted); padding: 6px 0; min-height: 44px; }
	.tabbar a.on { color: var(--blue); }
	.hbar { grid-template-columns: 100px 1fr 34px; }
	.toasts { left: 16px; right: 16px; bottom: 84px; }
}

/* Login ------------------------------------------------------------------------------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-art { background: var(--band); color: #dfe6ee; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-art img { height: 30px; mix-blend-mode: lighten; align-self: flex-start; }
.login-art h1 { color: #fff; font-size: 36px; font-weight: 650; line-height: 1.15; max-width: 520px; }
.login-art p { color: #b7c1cd; max-width: 460px; font-size: 15.5px; }
.login-art .feat { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 8px; font-size: 14px; color: #c3ccd6; }
.login-art .feat div { display: flex; gap: 10px; align-items: center; }
.login-art .feat svg { color: #8f99a5; }
.login-box { display: grid; place-items: center; padding: 32px 16px; background: var(--surface); }
.login-box .inner { width: min(380px, 100%); }
.login-box h2 { font-size: 26px; margin-bottom: 6px; }
.login-box .sub { color: var(--muted); margin: 0 0 26px; }
.sso { width: 100%; height: 48px; justify-content: flex-start; gap: 12px; padding: 0 16px; margin-bottom: 10px; font-size: 14.5px; }
.sso .logo { width: 20px; height: 20px; }
.sso[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 22px 0 16px; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.login-err { background: var(--crit-l); color: var(--crit); border-radius: 6px; padding: 10px 12px; font-size: 13px; margin-bottom: 14px; display: none; }
.login-err.show { display: block; }
.fine { color: var(--muted); font-size: 12px; margin-top: 22px; }
@media (max-width: 860px) {
	.login { grid-template-columns: 1fr; }
	.login-art { padding: 28px 20px; min-height: 0; }
	.login-art h1 { font-size: 28px; }
	.login-art .feat { display: none; }
}

.content > .kpis { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px 20px; gap: 0; margin-bottom: 16px; }
.content > .kpis .kpi + .kpi { border-left: 1px solid var(--line); padding-left: 20px; }

/* Company switcher (Humanta) ------------------------------------------------------------ */
.space-name { color: #8f99a5; font-size: 12px; }
.tenant-sw { margin: 10px 10px 0; }
.tenant-sw button { width: 100%; display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); color: #fff; border-radius: 6px; padding: 8px 10px; cursor: pointer; text-align: left; }
.tenant-sw button:hover { background: rgba(255,255,255,.1); }
.tenant-sw .mark { min-width: 26px; padding: 0 4px; height: 26px; border-radius: 5px; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; background: var(--c, #4a5f7d); flex: none; }
.tenant-sw .nm { flex: 1; min-width: 0; }
.tenant-sw .nm b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tenant-sw .nm small { display: block; color: #8f99a5; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tenant-list { display: flex; flex-direction: column; }
.tenant-list button { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border: 0; border-top: 1px solid var(--line); background: none; cursor: pointer; text-align: left; border-radius: 0; }
.tenant-list button:first-child { border-top: 0; }
.tenant-list button:hover { background: var(--surface-2); }
.tenant-list button.on b::after { content: " (current)"; color: var(--muted); font-weight: 400; }
.tenant-list .mark { min-width: 34px; padding: 0 5px; height: 30px; border-radius: 6px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; background: var(--c, #4a5f7d); flex: none; }
.tenant-list b { display: block; color: var(--ink); }
.tenant-list small { color: var(--muted); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: none; padding: 6px 12px; font-size: 13px; cursor: pointer; color: var(--body); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--band); color: #fff; }

/* In my team (WP-31): team list and one member's month */
.team-h { font-size: 15px; margin: 20px 0 10px; color: var(--ink); }
.team-h small { color: var(--muted); font-weight: 400; margin-left: 4px; }
.team-search { width: 100%; max-width: 360px; min-height: var(--tap-target); padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); margin: 8px 0 4px; font: inherit; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.team-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.team-card[hidden] { display: none; }
.team-who { display: flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; min-height: var(--tap-target); }
.team-who:hover b { color: var(--blue-d); text-decoration: underline; }
.team-who span { display: flex; flex-direction: column; min-width: 0; }
.team-who small { color: var(--muted); font-size: 12.5px; }
.team-today { display: flex; gap: 8px; flex-wrap: wrap; }
.kpi b small { font-size: 14px; color: var(--muted); font-weight: 400; }
.member-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.member-head h1 { font-size: 22px; margin: 0; }
.member-head p { margin: 4px 0 0; color: var(--muted); }
.member-head .grow { flex: 1; min-width: 200px; }
.month-nav { display: flex; align-items: center; gap: 10px; }
.month-nav b { min-width: 130px; text-align: center; }
.member-kpis { margin-bottom: 16px; }
.meter { display: block; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin-top: 6px; }
.meter > i { display: block; height: 100%; background: var(--ok); border-radius: 3px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.legend i.ok, .trend circle.ok { background: var(--ok); fill: var(--ok); }
.legend i.late, .trend circle.late { background: var(--crit); fill: var(--crit); }
.legend i.ln { height: 2px; background: var(--muted); }
.mix { display: flex; height: 22px; border-radius: 6px; overflow: hidden; gap: 2px; }
.mix i, .legend i.office, .legend i.wfh, .legend i.client { display: block; }
.mix .office, .legend i.office { background: var(--blue); }
.mix .wfh, .legend i.wfh { background: var(--blue-m); }
.mix .client, .legend i.client { background: var(--attn); }
.bal { display: flex; flex-direction: column; gap: 12px; }
.bal-t { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.bal-t span { color: var(--muted); }
.trend { width: 100%; height: auto; display: block; }
.trend path { fill: none; stroke: var(--blue-m); stroke-width: 1.5; }
.trend line.start { stroke: var(--muted); stroke-dasharray: 4 4; }
.trend line.limit { stroke: var(--crit); stroke-dasharray: 2 4; opacity: .6; }
.trend .tl { font-size: 11px; fill: var(--muted); }
@media (max-width: 600px) {
	.month-nav { width: 100%; justify-content: space-between; }
}
.stack { grid-column: span 4; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.stack > .card { grid-column: auto; }
@media (max-width: 1100px) { .stack { grid-column: span 12; } }

/* WP-32: pick separate leave dates */
.pick-h { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 8px; }
.pick { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.pick .dow { font-size: 11.5px; color: var(--muted); text-align: center; padding: 2px 0; }
.pick .pd { min-height: 40px; border: 1px solid #dfe3e8; border-radius: 6px; background: var(--surface); font: inherit; font-size: 13px; cursor: pointer; color: var(--ink); }
.pick .pd:hover { border-color: var(--blue); }
.pick .pd.now { outline: 2px solid var(--blue-l); }
.pick .pd.on { background: #5b3fa0; border-color: #5b3fa0; color: #fff; font-weight: 650; }
.pick .pd:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.pick-sum { font-size: 12.5px; color: var(--muted); margin: 8px 0 12px; min-height: 18px; }

/* WP-33: HR's Home, everyone today */
#hr-today { margin-top: 18px; }
.hr-today-note { font-size: 12.5px; color: var(--muted); margin: 10px 0 12px; }
.hr-today-list { max-height: 520px; overflow-y: auto; padding-right: 2px; }
.kpi.warn b { color: #a4561d; }

/* WP-34: Company settings. Rows of label + control, a preview and history column, one save bar. */
.set-intro { color: var(--muted); margin: -8px 0 18px; max-width: 760px; }
.set-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.set-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.set-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 16px; min-width: 0; }
.set-group .card-h { margin-bottom: 4px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; border-top: 1px solid var(--line); }
.set-group .card-h + .set-row { border-top: 0; }
.set-row.changed { box-shadow: inset 3px 0 0 var(--blue); padding-left: 12px; margin-left: -12px; }
.set-row.locked .set-label { color: var(--muted); }
.set-text { min-width: 0; }
.set-label { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.set-label svg { width: 15px; height: 15px; }
.set-text p { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); max-width: 520px; }
.set-text .set-err { color: var(--crit); font-weight: 600; }
.set-ctl { flex: none; }
.set-note { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.set-note svg { width: 14px; height: 14px; }

.switch { position: relative; width: 48px; height: 28px; border-radius: 14px; border: 0; background: #c4cad2; cursor: pointer; padding: 0; transition: background .15s; }
.switch span { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.switch[aria-checked="true"] { background: var(--ok); }
.switch[aria-checked="true"] span { transform: translateX(20px); }
.switch:focus-visible, .stepper button:focus-visible, .stepper input:focus-visible, .set-time:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.switch[disabled] { opacity: .5; cursor: not-allowed; }
.switch::after { content: ""; position: absolute; inset: -8px; }  /* 44px tap target */

.stepper { display: inline-flex; align-items: center; border: 1px solid #cfd5dc; border-radius: 6px; background: var(--surface); overflow: hidden; }
.stepper button { width: 40px; height: 40px; border: 0; background: var(--surface-2); font-size: 18px; color: var(--ink); cursor: pointer; }
.stepper button:hover { background: var(--blue-l); }
.stepper button[disabled] { opacity: .45; cursor: not-allowed; }
.stepper input { width: 58px; height: 40px; border: 0; text-align: right; font: inherit; font-weight: 650; color: var(--ink); background: transparent; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input[aria-invalid="true"] { color: var(--crit); }
.stepper .unit { padding: 0 10px 0 4px; color: var(--muted); font-size: 12.5px; min-width: 34px; }
.set-time { height: 40px; border: 1px solid #cfd5dc; border-radius: 6px; padding: 0 10px; font: inherit; background: var(--surface); }

.set-preview-card #set-preview p { margin: 0 0 10px; font-size: 13.5px; }
.set-preview-card #set-preview p:last-child { margin-bottom: 0; }
.bandbar { display: flex; height: 30px; border-radius: 6px; overflow: hidden; margin: 4px 0 12px; font-size: 11.5px; font-weight: 650; }
.bandbar span { display: flex; align-items: center; justify-content: center; min-width: 44px; white-space: nowrap; }
.bandbar .r { background: var(--crit-l); color: var(--crit); }
.bandbar .y { background: var(--warn-l); color: #8a501b; }
.bandbar .g { background: var(--ok-l); color: #2a7a40; }
.set-hist { display: flex; flex-direction: column; gap: 12px; font-size: 13px; }
.set-hist .s { color: var(--muted); font-size: 12px; }
.set-hist ul { margin: 4px 0 0; padding-left: 18px; color: var(--body); }

.set-table th[scope="row"] b { display: block; }
.set-table th[scope="row"] small { color: var(--muted); font-weight: 400; }
.set-table tr.changed th { box-shadow: inset 3px 0 0 var(--blue); }

.savebar { position: fixed; left: calc(var(--side-w) + 24px); right: 24px; bottom: 16px; z-index: 40; display: flex; align-items: center; gap: 10px;
	background: var(--char, #1d2329); color: #fff; padding: 10px 12px 10px 16px; border-radius: 10px; box-shadow: var(--shadow-3); }
.savebar .grow { flex: 1; }
.savebar .btn:not(.primary) { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
body.has-savebar #view { padding-bottom: 90px; }

@media (max-width: 1100px) {
	.set-layout { grid-template-columns: minmax(0, 1fr); }
	.set-side { position: static; }
}
@media (max-width: 860px) {
	.savebar { left: 12px; right: 12px; bottom: calc(70px + env(safe-area-inset-bottom)); flex-wrap: wrap; }
	.savebar #savebar-n { flex-basis: 100%; }
	.set-row { flex-direction: column; align-items: stretch; gap: 10px; }
	.set-row.changed { padding-left: 10px; margin-left: -10px; }
	.set-ctl { align-self: flex-start; }
	.set-intro { margin-top: -6px; }
}

/* WP-35: Roles & access */
.acc-scope { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin: 0 0 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: 13.5px; color: var(--body); }
.acc-scope svg { width: 16px; height: 16px; flex: none; color: var(--muted); }
.acc-scope > span { flex: 1; min-width: 200px; }
.acc-scope-pick select { min-height: 36px; padding: 4px 10px; font-size: 13px; }
.acc-roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.acc-role { display: flex; flex-direction: column; padding: 0; }
.acc-role-main { display: block; padding: 18px 18px 12px; color: inherit; text-decoration: none; flex: 1; }
.acc-role-main:hover h2 { color: var(--blue); }
.acc-role-main:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; border-radius: 8px; }
.acc-role-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.acc-role-h h2 { font-size: 16px; margin: 0; margin-right: auto; }
.acc-about { margin: 6px 0 10px; color: var(--body); font-size: 13.5px; }
.acc-can { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.acc-can b { color: var(--ink); font-weight: 650; margin-right: 4px; }
.acc-can.muted { font-style: italic; }
.acc-role-f { display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.acc-role-f > span { display: inline-flex; align-items: center; gap: 6px; margin-right: auto; }
.acc-role-f svg { width: 14px; height: 14px; }
.acc-role-top { padding-bottom: 16px; }
.acc-role-top > p { margin: 6px 0 0; color: var(--body); }
.acc-role-actions { margin-top: 12px; display: flex; gap: 8px; }
.acc-seg button { min-height: 36px; min-width: 72px; }
.acc-seg button[disabled] { opacity: .4; cursor: not-allowed; }
.acc-seg button.on[disabled] { opacity: .75; }
.acc-seg button:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.acc-mod.off .set-label { color: var(--muted); }
.acc-why { display: block; color: var(--muted); font-style: italic; }
.acc-dot { font-size: 11px; font-weight: 600; color: var(--blue-d); background: var(--blue-l); border-radius: 10px; padding: 1px 8px; }
.acc-add { margin-top: 12px; }
.acc-people-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.acc-people-h .input { max-width: 300px; }
.acc-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.acc-chips .chip a { color: inherit; text-decoration: none; }
.acc-chips .chip a:hover { text-decoration: underline; }
.chip-x { border: 0; background: none; padding: 0 2px; font-size: 15px; line-height: 1; cursor: pointer; color: var(--muted); }
.chip-x:hover { color: var(--crit); }
.acc-give { max-width: 180px; min-height: 36px; padding: 4px 8px; font-size: 12.5px; }
.acc-person[hidden] { display: none; }
.acc-legend { display: flex; gap: 14px; margin-bottom: 10px; font-size: 12.5px; color: var(--muted); }
.acc-legend .lvk { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.lvk.l0 { background: var(--surface-2); border: 1px solid var(--line); }
.lvk.l1 { background: var(--blue-l); }
.lvk.l2 { background: var(--blue); }
.matrix th a { color: inherit; text-decoration: none; }
.matrix th a:hover { text-decoration: underline; }
.matrix th.acc-group { background: var(--surface-2); font-size: 12.5px; color: var(--body); font-weight: 600; text-align: left; }
.matrix span.lv { display: inline-block; cursor: default; }
.lv.off { opacity: .45; }
.acc-off { display: block; color: var(--muted); font-weight: 400; font-size: 11.5px; }
@media (max-width: 860px) {
	.acc-roles { grid-template-columns: 1fr; }
	.acc-mod { flex-direction: column; align-items: stretch; gap: 10px; }
	.acc-seg { width: 100%; }
	.acc-seg button { flex: 1; min-width: 0; min-height: 44px; }
	.acc-person { flex-wrap: wrap; }
	.acc-give { max-width: none; width: 100%; }
}

/* WP-35: sign-in, remembered accounts */
.rem-wrap { margin-top: 14px; }
.rem-btn { width: 100%; height: 46px; justify-content: center; gap: 8px; }
.rem-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.rem-list { margin-top: 10px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.rem { display: flex; align-items: center; border-top: 1px solid var(--line); }
.rem:first-child { border-top: 0; }
.rem-go { flex: 1; display: flex; align-items: center; gap: 12px; padding: 10px 14px; min-height: 56px; border: 0; background: var(--surface); text-align: left; cursor: pointer; font: inherit; color: var(--ink); }
.rem-go:hover { background: var(--blue-l); }
.rem-go:focus-visible, .rem-x:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.rem-go[disabled] { opacity: .6; cursor: progress; }
.rem-av { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--blue-l); color: var(--blue-d); font-size: 12.5px; font-weight: 700; }
.rem-who { display: flex; flex-direction: column; min-width: 0; }
.rem-who small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rem-x { border: 0; background: none; padding: 0 14px; min-height: 56px; color: var(--muted); font-size: 12.5px; cursor: pointer; }
.rem-x:hover { color: var(--crit); }

/* WP-36: "Today" as words and faces (In my team, HR's Everyone today). No tiles, no big numbers. */
.today-strip { margin: 0 0 16px; }
.ts-line { margin: 0 0 8px; color: var(--body); font-size: 14px; }
.ts-groups { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.tg { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: var(--tap-target); padding: 4px 10px 4px 6px; margin-left: -6px; border: 0; border-radius: var(--r-s); background: none; font: inherit; color: var(--ink); cursor: pointer; }
.tg:hover { background: var(--surface-2); }
.tg:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.tg[aria-pressed="true"] { background: var(--blue-l); box-shadow: inset 0 -2px 0 var(--blue); }
.tg-h { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.tg-h b { font-weight: 650; font-size: 14px; }
.tg-h small { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.tg-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.tg-in .tg-dot { background: var(--cal-full); }
.tg-late .tg-dot { background: var(--cal-short); }
.tg-away .tg-dot { background: var(--cal-leave); }
.tg-yet .tg-dot { border: 2px solid var(--muted); width: 10px; height: 10px; }
.tg-faces { display: inline-flex; align-items: center; }
.tg-face { display: inline-flex; margin-left: -8px; border-radius: 50%; box-shadow: 0 0 0 2px var(--surface); }
.tg-face:first-child { margin-left: 0; }
.tg-more { margin-left: 6px; font-size: 12.5px; color: var(--muted); }
.tg-tip { display: none; position: absolute; left: 0; top: calc(100% + 4px); z-index: 20; width: max-content; max-width: min(320px, 80vw); padding: 8px 10px; border-radius: var(--r-s); background: var(--band); color: #fff; font-size: 12.5px; line-height: 1.4; text-align: left; white-space: normal; box-shadow: var(--shadow-2); }
.tg:hover .tg-tip, .tg:focus-visible .tg-tip { display: block; }

/* WP-36: People, grouped by department; a calm list; the profile shows more on demand. */
.pf { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.pf-search { flex: 1; max-width: 420px; display: flex; align-items: center; gap: 8px; min-height: var(--tap-target); padding: 0 12px; border: 1px solid #cfd5dc; border-radius: var(--r-s); background: var(--surface); color: var(--muted); }
.pf-search:focus-within { outline: 2px solid var(--blue); outline-offset: 1px; }
.pf-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; height: 40px; color: var(--ink); }
.pf-filter { display: none; min-height: var(--tap-target); }
.pf-chips { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.fchips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fchips-l { font-size: 12.5px; color: var(--muted); min-width: 84px; }
.fchip { min-height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); font: inherit; font-size: 13px; color: var(--body); cursor: pointer; position: relative; }
.fchip::after { content: ""; position: absolute; inset: -6px -2px; }  /* 44px tap target */
.fchip:hover { border-color: #b9c1cb; }
.fchip:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.fchip[aria-pressed="true"] { background: var(--band); border-color: var(--band); color: #fff; }
.filter-sheet .fchips { margin-bottom: 14px; }
.filter-sheet .fchips-l { display: block; width: 100%; font-weight: 600; color: var(--ink); }
.filter-sheet .fchip { min-height: var(--tap-target); }
.pg { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); margin-bottom: 10px; }
.pg-h { margin: 0; font-size: inherit; }
.pg-t { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 16px; border: 0; background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; border-radius: var(--r-l); }
.pg-t:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.pg-chev { transition: transform .15s; color: var(--muted); }
.pg-t[aria-expanded="true"] .pg-chev { transform: rotate(90deg); }
.pg-name { font-weight: 650; font-size: 15px; }
.pg-n { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.pg-faces { display: inline-flex; margin-left: auto; }
.pg-faces .av { margin-left: -8px; box-shadow: 0 0 0 2px var(--surface); }
.pg-faces .av:first-child { margin-left: 0; }
.pg-more { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.pg-list { list-style: none; margin: 0; padding: 0 0 6px; border-top: 1px solid var(--line); }
.prow { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 16px; color: inherit; text-decoration: none; }
a.prow:hover { background: var(--surface-2); color: inherit; }
a.prow:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.prow-w { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.prow-w b { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow-w small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow-go { visibility: hidden; color: var(--blue-d); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
a.prow:hover .prow-go, a.prow:focus-visible .prow-go { visibility: visible; }
.p-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.p-summary { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.p-summary .grow { flex: 1; min-width: 200px; }
.p-summary h1 { font-size: 22px; margin: 0; }
.p-summary p { margin: 4px 0 0; color: var(--body); }
.p-summary .btn { min-height: var(--tap-target); }
.p-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin-top: 8px; font-size: 13px; color: var(--muted); }
.disc { margin-bottom: 10px; padding: 0; }
.disc-h { margin: 0; font-size: inherit; }
.disc-h button { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 20px; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; color: var(--ink); border-radius: var(--r-l); }
.disc-h button:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.disc-t { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.disc-t b { font-weight: 650; font-size: 15px; }
.disc-t small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.disc-chev { color: var(--muted); transition: transform .15s; }
.disc-h button[aria-expanded="true"] .disc-chev { transform: rotate(180deg); }
.disc-b { padding: 0 20px 18px; }
.disc-b .btn { min-height: var(--tap-target); }
.p-rows { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; }
.p-rows dt { color: var(--muted); }
.p-rows dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.p-line { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.p-line li + li::before { content: "↓"; display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
@media (max-width: 600px) {
	.pf-chips { display: none; }
	.pf-filter { display: inline-flex; }
	.pf-search { max-width: none; }
	.pg-faces, .pg-more { display: none; }
	.prow-go { display: none; }
	.p-summary .btn { width: 100%; }
}

/* WP-37: the org chart as a tree of reporting lines; Settings > Holidays as the year in months; Settings >
   Departments as cards. Phone first: one column, 44px targets, a deep tree scrolls sideways inside the chart
   only. Holiday cells reuse the WP-36 calendar idea (solid fill, ink at least 4.5:1, tests/test_wp37_ui.py). */
:root { /* WP-37 holiday colours */
	--cal-hol: #2e6ecf; --cal-hol-ink: #ffffff;           /* the brand blue */
	--cal-hol-past: #eaf1fb; --cal-hol-past-ink: #1f55a8;  /* brand blue light and dark: a past holiday */
}
:root[data-theme="dark"] { /* WP-37 holiday colours, dark */
	--cal-hol: #2f6fde; --cal-hol-ink: #ffffff;
	--cal-hol-past: #1d2a3d; --cal-hol-past-ink: #9dbbe8;
}

/* Org chart */
.org-card { padding: 14px 16px; }
.org-skel { height: 56px; margin: 8px 0; border-radius: var(--r-m); }
.org-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.org-bar .btn { min-height: var(--tap-target); }
.org-tree { overflow: auto; max-width: 100%; padding-bottom: 6px; }
.org-ul { list-style: none; margin: 0; padding: 0; }
.org-ul .org-ul { margin-left: 23px; padding-left: 14px; border-left: 1px solid var(--line); }
.org-li { position: relative; padding: 4px 0; }
.org-ul .org-ul > .org-li::before { content: ""; position: absolute; left: -14px; top: 30px; width: 12px; border-top: 1px solid var(--line); }
.org-li > .node { display: flex; align-items: center; gap: 10px; min-height: 52px; min-width: 250px; max-width: 540px; padding: 6px 6px 6px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); }
.org-li > .node[data-me] { border-color: var(--blue); box-shadow: inset 3px 0 0 var(--blue); }
.org-w { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.org-w b { color: var(--ink); font-weight: 600; font-size: 14px; }
.org-w small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.org-you { margin-left: 4px; padding: 1px 7px; border-radius: 10px; background: var(--blue-l); color: var(--blue-d); font-size: 11.5px; font-weight: 600; }
.org-tg { display: inline-flex; align-items: center; gap: 4px; min-height: var(--tap-target); min-width: var(--tap-target); padding: 0 8px 0 10px; border: 0; border-radius: var(--r-s); background: var(--surface-2); color: var(--ink); font: inherit; font-size: 12.5px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.org-tg:hover { background: var(--blue-l); }
.org-tg:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.org-chev { width: 16px; height: 16px; transition: transform .15s; }
.org-tg[aria-expanded="true"] .org-chev { transform: rotate(90deg); }
.org-more { margin: 4px 0 0; color: var(--muted); font-size: 12.5px; }
.org-alone { margin-top: 16px; padding-top: 6px; border-top: 1px solid var(--line); }
.org-alone .pg-t { padding-left: 0; }

/* Holidays */
.hol { display: flex; flex-direction: column; gap: 14px; }
.hol-next { display: flex; align-items: center; gap: 16px; border-left: 4px solid var(--cal-hol); }
.hol-next.none { border-left-color: var(--line); }
.hol-next .grow { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.hol-cal { width: 56px; flex: none; padding: 6px 0; border-radius: var(--r-m); background: var(--cal-hol); color: var(--cal-hol-ink); text-align: center; }
.hol-cal small { display: block; font-size: 12px; font-weight: 600; }
.hol-cal b { display: block; font-size: 24px; line-height: 1.1; }
.hol-k { color: var(--muted); font-size: 12.5px; }
.hol-name { color: var(--ink); font-size: 18px; font-weight: 650; }
.hol-rel { padding: 4px 12px; border-radius: 14px; background: var(--blue-l); color: var(--blue-d); font-weight: 650; white-space: nowrap; }
.hol-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.hol-bar .btn { min-height: var(--tap-target); }
.hol-offs { flex: 1; min-width: 220px; margin: 0; display: flex; align-items: center; gap: 8px; color: var(--body); font-size: 13.5px; }
.hm-sw { display: inline-block; width: 14px; height: 14px; flex: none; border-radius: 4px; }
.hm-sw.is-off { background: var(--cal-off); border: 1px solid #c9ced6; }
.hol-sum { margin: -6px 0 12px; color: var(--muted); font-size: 13px; }
.hol-step button { width: var(--tap-target); height: var(--tap-target); }
.hm-wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px 20px; }
.hm h4 { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 6px; font-size: 14px; font-weight: 650; }
.hm h4 small { color: var(--muted); font-size: 12px; font-weight: 400; }
.hm.past h4 { color: var(--muted); }
.hm-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; font-size: 12px; text-align: center; font-variant-numeric: tabular-nums; }
.hm-w { padding-bottom: 2px; color: var(--muted); font-size: 11px; }
.hm-d { aspect-ratio: 1; display: grid; place-items: center; border-radius: 5px; color: var(--body); }
.hm-d.is-off { background: var(--cal-off); color: var(--cal-off-ink); }
.hm-d.is-hol { background: var(--cal-hol); color: var(--cal-hol-ink); font-weight: 700; }
.hm-d.is-hol.past { background: var(--cal-hol-past); color: var(--cal-hol-past-ink); font-weight: 600; }
.hm-d.today { outline: 2px solid var(--cal-today); outline-offset: 1px; }
.hm-d.next { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--cal-hol); }
.hm-list { list-style: none; margin: 8px 0 0; padding: 0; }
.hd-row { display: flex; align-items: center; gap: 10px; min-height: var(--tap-target); padding: 4px 0; border-top: 1px solid var(--line); }
.hd-d { width: 34px; flex: none; text-align: center; line-height: 1.1; }
.hd-d b { display: block; color: var(--ink); font-size: 16px; }
.hd-d small { color: var(--muted); font-size: 11px; }
.hd-w { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hd-w b { color: var(--ink); font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; }
.hd-w small { color: var(--blue-d); font-size: 12px; font-weight: 600; }
.hd-row.past .hd-d b, .hd-row.past .hd-w b { color: var(--muted); font-weight: 500; }
.hd-row.past .hd-w small { color: var(--muted); font-weight: 400; }
.hd-row.next .hd-w b { color: var(--blue-d); }
.hd-x { min-height: var(--tap-target); }

/* Departments */
.dc-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.dc-bar .btn { min-height: var(--tap-target); }
.dc-sum { margin: 0; color: var(--muted); font-size: 13.5px; }
.dc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.dc { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); color: var(--body); font: inherit; text-align: left; cursor: pointer; }
.dc:hover { border-color: #b9c1cb; }
.dc:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.dc-h { width: 100%; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.dc-h b { color: var(--ink); font-size: 15.5px; font-weight: 650; overflow-wrap: anywhere; }
.dc-h small { color: var(--muted); font-size: 12.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dc-head { color: var(--body); font-size: 13px; }
.dc-faces { display: inline-flex; align-items: center; min-height: 28px; }
.dc-faces .av { margin-left: -8px; box-shadow: 0 0 0 2px var(--surface); }
.dc-faces .av:first-child { margin-left: 0; }
.dc-more { margin-left: 8px; color: var(--muted); font-size: 12.5px; }
.dc-go { margin-top: auto; color: var(--blue-d); font-size: 12.5px; font-weight: 600; }
.dc-empty { margin-top: 18px; }
.dc-empty-t { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap-target); padding: 0 8px 0 0; border: 0; border-radius: var(--r-s); background: none; color: var(--muted); font: inherit; font-size: 13.5px; cursor: pointer; }
.dc-empty-t:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.dc-empty-t[aria-expanded="true"] .pg-chev { transform: rotate(90deg); }
.dc-empty-list { list-style: none; max-width: 520px; margin: 4px 0 0; padding: 0; }
.dc-empty-list li { display: flex; align-items: center; gap: 10px; min-height: var(--tap-target); border-top: 1px solid var(--line); color: var(--body); }
.dc-empty-list .grow { flex: 1; min-width: 0; }
.dc-empty-list .btn { min-height: var(--tap-target); }
.dc-note { margin: 6px 0 0; color: var(--muted); font-size: 12.5px; }
.dc-people { border-top: 0; }
.dc-people .pill { margin-left: auto; }

@media (max-width: 600px) {
	.org-card { padding: 12px; }
	.org-ul .org-ul { margin-left: 14px; padding-left: 10px; }
	.org-ul .org-ul > .org-li::before { left: -10px; width: 8px; }
	.org-li > .node { min-width: 230px; }
	.hol-next { flex-wrap: wrap; gap: 12px; }
	.hol-bar .btn, .dc-bar .btn { width: 100%; }
	.hm-wrap { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.hm { padding: 10px 0; border-top: 1px solid var(--line); }
	.hm.none .hm-grid, .hm.past .hm-grid { display: none; }  /* a month with nothing in it, or gone, is one line */
	.hm.none h4, .hm.past h4 { margin: 0; }
	.hm-grid { max-width: 340px; }
	.dc-grid { grid-template-columns: minmax(0, 1fr); }
	dialog.dlg.dept-sheet { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 12px 12px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
	.org-chev, .pg-chev { transition: none; }
}

/* WP-37 second round: holidays list beside the months; Delete on department cards; leave types removed;
   Home's "Holidays & celebrations" beside Announcements. */
.hol-split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.hol-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 16px; min-width: 0; }
.hol-listcard .card-h { margin-bottom: 6px; }
.hol-add { min-height: var(--tap-target); }
.hol-listcard .hm-list { margin: 0; }
.hol-listcard .hd-d { width: 40px; }
.dc-li { position: relative; }
.dc-x { position: absolute; right: 10px; bottom: 10px; z-index: 1; min-height: var(--tap-target); }
.dc-li .dc { padding-bottom: 20px; }
.lt-off th b { color: var(--muted); }
.lt-off th small { display: block; }
.hc-h { margin: 4px 0 2px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.hc-h + .list, .hc-h + .empty { margin-bottom: 10px; }
.hc-d { width: 40px; flex: none; text-align: center; line-height: 1.1; }
.hc-d small { display: block; color: var(--muted); font-size: 11.5px; }
.hc-d b { display: block; color: var(--ink); font-size: 18px; }
@media (max-width: 1100px) {
	.hol-split { grid-template-columns: minmax(0, 1fr); }
	.hol-side { position: static; }
}
/* WP-41 T9: the Approvals heading. --crit on --surface passes WCAG AA (see T9 report). */
.appr-wait .card-h h3 { color: var(--crit); }
/* WP-41 T12: Exit employee and the People admin form groups. Neutral tokens, 44 px targets. */
.exit-tap { min-height: var(--tap-target); min-width: var(--tap-target); }
.exit-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.exit-home { margin: 0 0 14px; }
.exit-grp { margin: 14px 0 8px; font-size: 14px; font-weight: 700; color: var(--ink); }
.exit-note { margin: 10px 0 0; }
.exit-dlg [hidden] { display: none; }
.exit-who { margin: 0 0 10px; font-weight: 600; color: var(--ink); }
.exit-saved, .exit-last, .exit-what { margin: 0 0 10px; font-size: 13.5px; color: var(--body); }
.exit-last { font-weight: 600; color: var(--ink); }
.exit-reasons { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.exit-reasons legend { padding: 0; margin-bottom: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.exit-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.exit-chip { position: relative; display: inline-flex; }
.exit-chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.exit-chip span { display: inline-flex; align-items: center; min-height: var(--tap-target); padding: 0 16px; border: 1px solid #cfd5dc; border-radius: 22px; background: var(--surface); color: var(--ink); }
.exit-chip input:checked + span { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); font-weight: 700; }
.exit-chip input:checked + span::before { content: "\2713"; margin-right: 6px; }
.exit-chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.exit-err { color: var(--crit); }
.exit-warn { margin: 0; font-weight: 600; color: var(--ink); }
.exit-dlg .field input, .exit-dlg .field select, .exit-dlg .field textarea { min-height: var(--tap-target); }
.exit-dlg .field textarea { min-height: 96px; }

/* WP-43 T2: UAT bug reports pinned to the page (feedback.js). Every rule starts with .uat-. */
.uat-layer { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.uat-layer > * { pointer-events: auto; }
.uat-picking, .uat-picking * { cursor: crosshair !important; }
.uat-fab { position: fixed; right: 16px; bottom: 16px; width: 44px; height: 44px; min-width: 44px; min-height: 44px; border-radius: 50%; border: 2px solid var(--surface); background: var(--band); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; box-shadow: var(--shadow-2); display: grid; place-items: center; padding: 0; }
.uat-fab[aria-pressed="true"] { background: var(--blue); }
.uat-fab:focus-visible, .uat-pin:focus-visible, .uat-btn:focus-visible, .uat-menuitem:focus-visible, .uat-x:focus-visible, .uat-thumb:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.uat-hint { position: fixed; left: 50%; top: 12px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 24px); padding: 6px 8px 6px 14px; border-radius: 8px; background: var(--band); color: #fff; font-size: 13.5px; box-shadow: var(--shadow-2); }
.uat-menu { position: fixed; min-width: 190px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow-2); }
.uat-menuitem { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: var(--ink); font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; }
.uat-menuitem:hover { background: var(--blue-l); }
.uat-pop { position: fixed; max-height: calc(100vh - 16px); overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--body); box-shadow: var(--shadow-2); font-size: 13.5px; }
.uat-pop-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 4px 4px 14px; border-bottom: 1px solid var(--line); }
.uat-pop-h h2 { margin: 0; font-size: 15px; color: var(--ink); }
.uat-pop-h h2:focus { outline: none; }
.uat-pop-b { padding: 12px 14px 14px; }
.uat-x { width: 44px; height: 44px; min-width: 44px; border: 0; background: transparent; font-size: 24px; line-height: 1; color: var(--body); cursor: pointer; border-radius: 6px; }
.uat-x:hover { background: rgba(17,21,24,.05); }
.uat-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.uat-field label, .uat-lbl { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.uat-field textarea { width: 100%; min-height: 96px; border: 1px solid #cfd5dc; border-radius: 6px; padding: 8px 11px; resize: vertical; font: inherit; }
.uat-pop select, .uat-filters select, .uat-filters input { min-height: 44px; border: 1px solid #cfd5dc; border-radius: 6px; padding: 0 10px; background: var(--surface); font: inherit; }
.uat-count, .uat-when { font-size: 12px; color: var(--muted); }
.uat-sevs { border: 0; padding: 0; margin: 0 0 12px; min-width: 0; }
.uat-sevs legend { padding: 0; margin-bottom: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.uat-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.uat-chip { position: relative; display: inline-flex; }
.uat-chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.uat-chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid #cfd5dc; border-radius: 22px; background: var(--surface); color: var(--ink); }
.uat-chip input:checked + span { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); font-weight: 700; }
.uat-chip input:checked + span::before { content: "\2713"; margin-right: 6px; }
.uat-chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.uat-check { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-bottom: 8px; }
.uat-check input { width: 22px; height: 22px; }
.uat-err { margin: 0 0 10px; color: var(--crit); font-weight: 600; }
.uat-acts { display: flex; justify-content: flex-end; gap: 8px; }
.uat-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); font-weight: 600; font-size: 13.5px; cursor: pointer; }
.uat-btn.uat-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.uat-btn.uat-sm { padding: 0 10px; font-size: 12.5px; }
.uat-btn[disabled] { opacity: .55; cursor: not-allowed; }
.uat-hint .uat-btn { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.uat-text { margin: 0 0 8px; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.uat-meta { margin: 0 0 8px; color: var(--body); }
.uat-h3 { margin: 14px 0 6px; font-size: 13px; color: var(--ink); }
.uat-comments { list-style: none; margin: 0 0 10px; padding: 0; }
.uat-comments li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.uat-comments p { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.uat-thumb { display: block; width: 100%; min-height: 44px; margin: 0 0 8px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); cursor: zoom-in; overflow: hidden; }
.uat-thumb img { display: block; width: 100%; max-height: 120px; object-fit: cover; object-position: top left; }
.uat-thumb.uat-big img { max-height: none; }
.uat-sevtag { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 700; border: 2px solid currentColor; }
.uat-sev-blocker { color: #a8271e; }
.uat-sev-annoying { color: #8a5300; }
.uat-sev-cosmetic { color: #1f56b5; }
.uat-pin { position: fixed; left: 0; top: 0; width: 44px; height: 44px; min-width: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.uat-pin-dot { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-weight: 800; font-size: 13px; color: #fff; background: #c8372d; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.uat-pin.uat-sev-annoying .uat-pin-dot { background: #e0a100; color: #1b1f24; }
.uat-pin.uat-sev-cosmetic .uat-pin-dot { background: #2f6fde; border-style: dashed; }
.uat-pin.uat-sev-blocker .uat-pin-dot { box-shadow: 0 0 0 2px #c8372d, 0 1px 4px rgba(0,0,0,.4); }
.uat-pin.uat-moved .uat-pin-dot { opacity: .8; outline: 2px dotted #1b1f24; outline-offset: 2px; }
.uat-pin.uat-moved::after { content: "moved"; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: -8px; padding: 0 5px; border-radius: 4px; background: var(--band); color: #fff; font-size: 10.5px; line-height: 16px; }
.uat-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 14px; }
.uat-filters .field { margin-bottom: 0; }
@media (max-width: 860px) { .uat-fab { bottom: calc(76px + env(safe-area-inset-bottom)); } }

/* Humanta brand mark in the sidebar ------------------------------------------------------ */
.side-brand .brand-mark { height: 28px; width: 28px; mix-blend-mode: normal; flex: none; border-radius: 7px; }
