/* MatrAIx Employee Portal.
   Notion-like: white pages, a light grey sidebar grouped into sections, warm grey ink, hairline cards and small
   radii. Notion blue marks primary actions and links; green, amber and red mean done, waiting and problems.
   One focus per page: a single card with a soft shadow carries the thing to do now. */

:root {
  --s0: oklch(100% 0 0);                 /* page */
  --s1: oklch(96.4% 0.002 95);           /* wells, hover */
  --s2: oklch(100% 0 0);                 /* cards */
  --s3: oklch(98.2% 0.002 95);           /* inputs */
  --sb: oklch(97.6% 0.002 95);           /* sidebar */
  --ink: oklch(32% 0.008 85);            /* Notion's #37352F */
  --ink-2: oklch(54% 0.006 85);
  --ink-3: oklch(68% 0.005 85);
  --hair: color-mix(in oklch, var(--ink) 9%, transparent);
  --hair-2: color-mix(in oklch, var(--ink) 16%, transparent);
  --hover: color-mix(in oklch, var(--ink) 6%, transparent);
  --accent: oklch(58% 0.16 250);          /* Notion blue */
  --accent-ink: oklch(100% 0 0);
  --accent-soft: color-mix(in oklch, var(--accent) 9%, var(--s2));
  --solid: var(--accent);
  --solid-ink: var(--accent-ink);
  --ok: oklch(56% 0.1 155);
  --wait: oklch(66% 0.12 75);
  --bad: oklch(57% 0.16 28);
  --w-reg: 400; --w-med: 500; --w-semi: 600; --w-bold: 700;
  --shadow-s: 0 1px 2px color-mix(in oklch, var(--ink) 6%, transparent);
  --shadow: 0 0 0 1px color-mix(in oklch, var(--ink) 4%, transparent), 0 3px 6px color-mix(in oklch, var(--ink) 6%, transparent),
            0 9px 24px color-mix(in oklch, var(--ink) 7%, transparent);
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
          "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --display: var(--sans);
  --serif: var(--sans);
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --bar: 48px;
  --side: 244px;
  --r-control: 6px; --r-card: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --s0: oklch(20.5% 0 0); --s1: oklch(25% 0.002 85); --s2: oklch(23% 0.001 85); --s3: oklch(24.5% 0.002 85); --sb: oklch(22.5% 0.001 85);
    --ink: oklch(91% 0.003 85); --ink-2: oklch(72% 0.004 85); --ink-3: oklch(58% 0.004 85);
    --accent: oklch(66% 0.14 250); --accent-ink: oklch(99% 0 0);
    --ok: oklch(74% 0.1 155); --wait: oklch(80% 0.1 78); --bad: oklch(72% 0.13 28);
    --w-reg: 360; --w-med: 460; --w-semi: 560; --w-bold: 660;
    --shadow-s: 0 1px 2px oklch(10% 0 0 / .5);
    --shadow: 0 0 0 1px oklch(100% 0 0 / .06), 0 3px 6px oklch(8% 0 0 / .3), 0 9px 24px oklch(8% 0 0 / .4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --s0: oklch(20.5% 0 0); --s1: oklch(25% 0.002 85); --s2: oklch(23% 0.001 85); --s3: oklch(24.5% 0.002 85); --sb: oklch(22.5% 0.001 85);
  --ink: oklch(91% 0.003 85); --ink-2: oklch(72% 0.004 85); --ink-3: oklch(58% 0.004 85);
  --accent: oklch(66% 0.14 250); --accent-ink: oklch(99% 0 0);
  --ok: oklch(74% 0.1 155); --wait: oklch(80% 0.1 78); --bad: oklch(72% 0.13 28);
  --w-reg: 360; --w-med: 460; --w-semi: 560; --w-bold: 660;
  --shadow-s: 0 1px 2px oklch(10% 0 0 / .5);
  --shadow: 0 0 0 1px oklch(100% 0 0 / .06), 0 3px 6px oklch(8% 0 0 / .3), 0 9px 24px oklch(8% 0 0 / .4);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar) + 20px); }
body {
  margin: 0; background: var(--s0); color: var(--ink); font: var(--w-reg) 14.5px/1.6 var(--sans); font-feature-settings: "cv11";
  -webkit-font-smoothing: antialiased; min-height: 100vh;
}
:lang(zh-CN) body, html:lang(zh-CN) { letter-spacing: .01em; }
h1, h2, h3, h4 { font-family: var(--sans); font-weight: var(--w-semi); margin: 0; text-wrap: balance; letter-spacing: -0.011em; }
p, li, dd, .hint, .lede { text-wrap: pretty; }
p { margin: 0 0 .7em; }
p:last-child { margin-bottom: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
strong { font-weight: var(--w-semi); }
code, .mono { font-family: var(--mono); font-size: 12.5px; }
td, .att-n, .meter-n, .focus-count, .when, .slot-time, .badge, .team-count, .quiet-stats strong, .nav-aside, .tab-n { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.sr, input.sr { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }
.ic { width: 18px; height: 18px; flex: none; vertical-align: -0.2em; }
.ic-s { width: 13px; height: 13px; vertical-align: -0.125em; margin-left: 5px; opacity: .7; }
.ic-flip { transform: scaleX(-1); margin: 0 6px 0 0; }

/* --- brand (signed-out pages) ------------------------------------------------------------------------------ */
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-wordmark { height: 21px; width: auto; display: block; }
.brand-mark { height: 30px; width: auto; display: none; border-radius: 50%; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-wordmark { display: none; }
  :root:not([data-theme="light"]) .brand-mark { display: block; }
}
:root[data-theme="dark"] .brand-wordmark { display: none; }
:root[data-theme="dark"] .brand-mark { display: block; }

/* --- people ------------------------------------------------------------------------------------------------ */
.who { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.who-name { font-weight: var(--w-semi); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-role { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
  font: var(--w-semi) 11.5px/1 var(--sans); letter-spacing: .01em; color: var(--ink-2); background: var(--s1);
}
/* Notion's tag colours, so faces without photos are still told apart */
.avatar[data-tone="0"] { background: oklch(91.5% 0.035 55); color: oklch(42% 0.07 55); }
.avatar[data-tone="1"] { background: oklch(92.5% 0.03 150); color: oklch(38% 0.05 150); }
.avatar[data-tone="2"] { background: oklch(91.5% 0.025 235); color: oklch(38% 0.05 240); }
.avatar[data-tone="3"] { background: oklch(91.5% 0.025 310); color: oklch(40% 0.06 310); }
.avatar[data-tone="4"] { background: oklch(94% 0.045 90); color: oklch(40% 0.05 70); }
.avatar[data-tone="5"] { background: oklch(92% 0.03 25); color: oklch(42% 0.08 25); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .avatar[data-tone] { background: color-mix(in oklch, currentColor 22%, var(--s2)); filter: brightness(1.7); }
}
.avatar-l { width: 40px; height: 40px; font-size: 13.5px; }
.avatar-photo { object-fit: cover; padding: 0; background: var(--s1); }
.avatar-xl { width: 72px; height: 72px; font-size: 22px; }
.icon-btn {
  border: 0; background: transparent; color: var(--ink-2); width: 30px; height: 30px; border-radius: var(--r-control);
  display: grid; place-items: center; cursor: pointer; flex: none;
}
.icon-btn:hover { background: var(--hover); color: var(--ink); }
.lang { display: inline-flex; padding: 2px; border-radius: 7px; background: var(--s1); }
.lang a { font: var(--w-med) 12px/1 var(--sans); color: var(--ink-3); padding: 5px 8px; border-radius: 5px; }
.lang a:hover { color: var(--ink); text-decoration: none; }
.lang a[aria-current] { background: var(--s2); color: var(--ink); box-shadow: var(--shadow-s); }

/* --- frame: sidebar on the left, a thin bar and the page on the right -------------------------------------- */
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--side); z-index: 30; display: flex; flex-direction: column;
  background: var(--sb); box-shadow: inset -1px 0 0 var(--hair); }
.sb-brand { display: flex; align-items: center; gap: 9px; padding: 14px 16px 10px; color: var(--ink); min-width: 0; }
.sb-brand:hover { text-decoration: none; }
.sb-logo { width: 22px; height: 22px; border-radius: 6px; flex: none; }
.sb-name { font-weight: var(--w-semi); font-size: 14px; }
.sb-search { position: relative; display: flex; align-items: center; margin: 2px 10px 8px; }
.sb-search .ic { position: absolute; left: 9px; width: 16px; height: 16px; color: var(--ink-3); pointer-events: none; }
.sidebar .sb-search input { min-height: 30px; padding: 5px 30px 5px 32px; font-size: 13.5px; background: var(--s2); border-radius: var(--r-control);
  box-shadow: inset 0 0 0 1px var(--hair); }
.sb-search kbd { position: absolute; right: 8px; font: var(--w-med) 11px/1 var(--mono); color: var(--ink-3); padding: 2px 5px; border-radius: 4px;
  box-shadow: inset 0 0 0 1px var(--hair-2); pointer-events: none; }
.sb-search input:focus + kbd { display: none; }
.sb-nav { flex: 1; overflow-y: auto; padding: 2px 8px 16px; }
.nav-group { display: flex; flex-direction: column; gap: 1px; }
.nav-group + .nav-group { margin-top: 16px; }
.nav-label { font: var(--w-semi) 12px/1 var(--sans); color: var(--ink-3); margin: 0 8px 6px; }
.nav-item { display: flex; align-items: center; gap: 9px; min-height: 30px; padding: 4px 8px; border-radius: var(--r-control);
  color: var(--ink-2); font-size: 14px; font-weight: var(--w-med); }
.nav-item .ic { width: 17px; height: 17px; color: var(--ink-3); }
.nav-item:hover { background: var(--hover); color: var(--ink); text-decoration: none; }
.nav-item[aria-current="page"] { background: var(--hover); color: var(--ink); font-weight: var(--w-semi); }
.nav-item[aria-current="page"] .ic { color: var(--ink); }
.nav-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-aside { font-size: 12px; color: var(--ink-3); font-weight: var(--w-med); }
.sb-foot { display: flex; align-items: center; gap: 4px; padding: 8px 8px 10px; box-shadow: 0 -1px 0 var(--hair); }
.sb-me { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; padding: 4px 6px; border-radius: var(--r-control); color: var(--ink); }
.sb-me:hover { background: var(--hover); text-decoration: none; }
.main-col { margin-left: var(--side); min-height: 100vh; display: flex; flex-direction: column; min-width: 0; }
.bar { position: sticky; top: 0; z-index: 20; height: var(--bar); display: flex; align-items: center; gap: 10px; padding: 0 20px;
  background: color-mix(in oklch, var(--s0) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.crumbs { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; }
.crumb-sep { color: var(--hair-2); }
.crumb-here { color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.menu-btn { display: none; }
.nav-toggle, .scrim { display: none; }
.content { flex: 1; width: 100%; max-width: 1160px; margin: 0 auto; padding: 20px 48px 64px; min-width: 0; }
.tabs { display: flex; gap: 2px; margin: -4px 0 26px; box-shadow: inset 0 -1px 0 var(--hair); overflow-x: auto; scrollbar-width: none; }
.tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px 10px; color: var(--ink-3); font-size: 14px; font-weight: var(--w-med);
  white-space: nowrap; box-shadow: inset 0 -2px 0 transparent; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a[aria-current] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
.tab-n { font-size: 11.5px; color: var(--accent-ink); background: var(--accent); border-radius: 999px; padding: 2px 6px; line-height: 1.1; }

.footer {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 48px; font-size: 12px; color: var(--ink-3);
}

/* --- page structure ---------------------------------------------------------------------------------------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 26px; flex-wrap: wrap; }
.page-head h1 { font: var(--w-bold) clamp(26px, 2.6vw, 32px)/1.2 var(--sans); letter-spacing: -0.022em; }
.page-head .lede { margin: 8px 0 0; color: var(--ink-2); font-size: 15.5px; }
.eyebrow { font: var(--w-med) 13px/1.2 var(--sans); color: var(--ink-3); margin: 0 0 10px; }
.head-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; margin-top: 22px; }
.cols:first-child { margin-top: 0; }
/* one rhythm between the blocks of a page */
.content > * + * { margin-top: 28px; }
.content > .page-head + * { margin-top: 4px; }
.col-main, .col-side { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.back { margin: 0 0 18px; font-size: 13.5px; }
.back a { color: var(--ink-3); display: inline-flex; align-items: center; }
.back a:hover { color: var(--ink); text-decoration: none; }

/* the raised panel: the page's focus, or its form */
.card { background: var(--s2); border-radius: var(--r-card); box-shadow: 0 0 0 1px var(--hair); padding: 24px 26px; min-width: 0; }
.card + .card, .card + .section, .section + .card, .notice + .card { margin-top: 22px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.card-head h2 { font-size: 17px; }
/* the focus card: a little more air and a soft lift off the page */
.focus { padding: 26px 28px; border-radius: 12px; box-shadow: var(--shadow); }
.focus-flush { padding: 8px 26px 14px; }
.kicker { font: var(--w-med) 12.5px/1.3 var(--sans); color: var(--ink-3); margin: 0 0 8px; }
.focus-meta { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.focus-meta .kicker { margin: 0; }
.focus-count { font-size: 13.5px; color: var(--ink-3); }
.focus-count strong { color: var(--ink); font: var(--w-semi) 15px/1 var(--sans); }
.kicker-next { margin-top: 26px; }
.focus-title { font: var(--w-bold) clamp(20px, 1.8vw, 23px)/1.3 var(--sans); letter-spacing: -0.015em; margin-bottom: 6px; }
.focus-text { color: var(--ink-2); font-size: 15.5px; margin-bottom: 20px; }

/* sections: secondary content in quiet cards, lighter than the focus panel */
.section { min-width: 0; background: var(--s2); border-radius: var(--r-card); padding: 18px 20px 20px; box-shadow: 0 0 0 1px var(--hair); }
/* a section whose content is itself cards: no box of its own */
.section-bare { background: none; box-shadow: none; padding: 0; }
.section-bare + .section-bare { margin-top: 36px; }
.section + .section { margin-top: 22px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.section-head h2 { font: var(--w-semi) 15px/1.3 var(--sans); color: var(--ink); }
.section-link { font-size: 13.5px; font-weight: var(--w-med); display: inline-block; margin-top: 12px; }
.section-head .section-link { margin-top: 0; }
.empty { color: var(--ink-3); margin: 0; }
.focus .empty { font-size: 15px; }

.flash { border-radius: 12px; padding: 11px 14px 11px 38px; margin-bottom: 22px; font-size: 14px; font-weight: var(--w-med); position: relative;
  background: var(--s2); box-shadow: 0 0 0 1px var(--hair); }
.flash::before { content: ""; position: absolute; left: 16px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--ok); }
.flash-warn::before { background: var(--wait); }
.flash-error::before { background: var(--bad); }
.notice { background: var(--s1); border-radius: var(--r-control); padding: 11px 14px; font-size: 14px; color: var(--ink-2); margin: 14px 0; }
.card .notice { background: var(--s3); }
.notice-warn { background: color-mix(in oklch, var(--wait) 12%, var(--s2)) !important; color: var(--ink); }

/* --- buttons & forms --------------------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 32px; padding: 0 12px; max-width: 100%;
  border: 0; border-radius: var(--r-control); cursor: pointer; white-space: nowrap; text-decoration: none;
  font: var(--w-med) 14px/1.2 var(--sans); color: var(--ink); background: var(--s2);
  box-shadow: inset 0 0 0 1px var(--hair-2); transition: background 140ms, box-shadow 140ms, transform 100ms;
}
.btn:hover { text-decoration: none; background: var(--hover); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--solid); color: var(--solid-ink); box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--solid) 80%, var(--ink)), 0 1px 2px color-mix(in oklch, var(--ink) 10%, transparent); }
.btn-primary:hover { background: color-mix(in oklch, var(--solid) 88%, var(--ink)); }
.btn-quiet { background: transparent; box-shadow: inset 0 0 0 1px var(--hair-2); }
.btn-block { width: 100%; min-height: 38px; }
.btn-s { min-height: 28px; padding: 0 10px; font-size: 13px; }
.btn-link { border: 0; background: none; padding: 0; color: var(--accent); font: var(--w-med) 13.5px/1.4 var(--sans); cursor: pointer; }
.btn-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.btn-link.danger { color: var(--bad); }
.btn .ic-s { opacity: .85; }
button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: none; box-shadow: 0 0 0 1px color-mix(in oklch, var(--accent) 60%, transparent), 0 0 0 5px color-mix(in oklch, var(--accent) 18%, transparent);
}
form.inline { display: inline; margin: 0; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 20px; }

.stack { display: flex; flex-direction: column; gap: 14px; }
.grid-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: 1 / -1; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 4px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.label { font-size: 13px; font-weight: var(--w-semi); color: var(--ink-2); }
fieldset.field { border: 0; margin: 0; padding: 0; }
fieldset.field > legend { padding: 0; margin-bottom: 6px; }
.lead-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 9.5em); gap: 8px; }
.lead-row + .lead-row { margin-top: 2px; }
.label-opt { margin-left: 6px; font: var(--w-reg) 12px/1 var(--sans); color: var(--ink-3); }
.field-error { font-size: 12.5px; line-height: 1.45; color: var(--bad); font-weight: var(--w-med); }
.field-invalid input:not([type="checkbox"]), .field-invalid select, .field-invalid textarea {
  box-shadow: 0 0 0 1px color-mix(in oklch, var(--bad) 60%, transparent), 0 0 0 4px color-mix(in oklch, var(--bad) 14%, transparent); }
.hint { font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }
.static { margin: 0; padding: 9px 0; }
input:not([type="checkbox"]), select, textarea {
  width: 100%; border: 0; border-radius: var(--r-control); background: var(--s3); color: var(--ink);
  font: var(--w-reg) 14px/1.4 var(--sans); padding: 7px 10px; min-height: 34px;
  box-shadow: 0 0 0 1px var(--hair); transition: box-shadow 140ms;
}
textarea { resize: vertical; min-height: 80px; }
select { appearance: none; padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
input:focus, select:focus, textarea:focus {
  outline: none; box-shadow: 0 0 0 1px color-mix(in oklch, var(--accent) 55%, transparent), 0 0 0 5px color-mix(in oklch, var(--accent) 16%, transparent);
}
input[readonly] { color: var(--ink-2); }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 14.5px; }
.check input { margin: 3px 0 0; width: 17px; height: 17px; accent-color: var(--solid); flex: none; }
.check .check-label { display: block; }
.check-row { display: flex; flex-wrap: wrap; gap: 12px 26px; }
.addon { display: flex; align-items: stretch; border-radius: var(--r-control); background: var(--s3); box-shadow: 0 0 0 1px var(--hair); transition: box-shadow 140ms; }
.addon:focus-within { box-shadow: 0 0 0 1px color-mix(in oklch, var(--accent) 55%, transparent), 0 0 0 5px color-mix(in oklch, var(--accent) 16%, transparent); }
.addon input, .addon input:focus { box-shadow: none; background: transparent; }
.addon-text { display: flex; align-items: center; padding: 0 12px; color: var(--ink-3); font-size: 14.5px; white-space: nowrap; }
.hint.is-ok { color: var(--ok); }
.hint.is-bad { color: var(--bad); }
.alias-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; margin-top: 16px; }
.alias-form .form-actions { grid-column: 1 / -1; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.chips .label { margin-right: 4px; }
.chip { border: 0; border-radius: 6px; padding: 6px 10px; background: var(--s3); color: var(--ink); font: var(--w-med) 13px/1 var(--sans);
  cursor: pointer; box-shadow: inset 0 0 0 1px var(--hair); }
.chip:hover { background: var(--s2); box-shadow: inset 0 0 0 1px var(--hair-2); }
.copy-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.copy-row input { flex: 1 1 220px; }
.btn[data-copied="true"] { background: var(--ok); color: var(--accent-ink); }

/* --- badges, tables ---------------------------------------------------------------------------------------- */
.badge { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 4px; font: var(--w-reg) 12px/1 var(--sans);
  white-space: nowrap; background: oklch(91% 0.003 85); color: var(--ink); }
.badge-done { background: oklch(92.5% 0.03 150); color: oklch(33% 0.05 150); }
.badge-wait { background: oklch(94% 0.045 90); color: oklch(33% 0.05 70); }
.badge-info { background: oklch(91.5% 0.025 235); color: oklch(33% 0.05 240); }
.badge-danger { background: oklch(92% 0.03 25); color: oklch(36% 0.09 25); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .badge { background: var(--s1); color: var(--ink-2); }
  :root:not([data-theme="light"]) .badge-done { background: color-mix(in oklch, var(--ok) 22%, var(--s2)); color: var(--ok); }
  :root:not([data-theme="light"]) .badge-wait { background: color-mix(in oklch, var(--wait) 22%, var(--s2)); color: var(--wait); }
  :root:not([data-theme="light"]) .badge-info { background: color-mix(in oklch, var(--accent) 22%, var(--s2)); color: var(--accent); }
  :root:not([data-theme="light"]) .badge-danger { background: color-mix(in oklch, var(--bad) 22%, var(--s2)); color: var(--bad); }
}
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.table-wrap { overflow-x: auto; position: relative; }  /* keeps .sr text inside the scroller */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font: var(--w-med) 12.5px/1.2 var(--sans); color: var(--ink-3);
  padding: 0 14px 10px 0; white-space: nowrap; }
.tbl td { padding: 12px 14px 12px 0; border-top: 1px solid var(--hair); vertical-align: top; }
.tbl td:last-child, .tbl th:last-child { padding-right: 0; }
.section .tbl th { padding-top: 0; }
.req-form { display: grid; grid-template-columns: 130px minmax(160px, 1fr) auto; gap: 8px; min-width: 380px; }
.req-form input, .req-form select { min-height: 32px; padding: 5px 10px; font-size: 13.5px; }

/* --- home & lists ------------------------------------------------------------------------------------------ */
.progress { height: 6px; border-radius: 999px; background: color-mix(in oklch, var(--ink) 8%, transparent); overflow: hidden; }
.progress-fill { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--solid);
  transition: width 700ms var(--ease); }
.mini-progress { display: flex; align-items: center; gap: 10px; min-width: 140px; }
.mini-progress .progress { flex: 1; }
.mini-progress span { font-size: 12.5px; color: var(--ink-3); }
.attention { list-style: none; margin: 0; padding: 0; }
.attention li + li { margin-top: 1px; }
.attention a { display: flex; align-items: center; gap: 10px; padding: 6px; margin: 0 -6px; color: var(--ink); border-radius: var(--r-control); font-size: 14px; }
.attention a:hover { text-decoration: none; background: var(--s1); }
.attention a:hover { background: var(--hover); text-decoration: none; }
.att-n { font: var(--w-semi) 12px/1 var(--sans); min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); }
.att-l { flex: 1; min-width: 0; }
.att-ic { width: 15px; height: 15px; color: var(--ink-3); }
.quiet-stats { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 20px 4px 44px; font-size: 13.5px; color: var(--ink-3); }
.quiet-stats strong { color: var(--ink); font-size: 15px; margin-right: 3px; }
.linklist { list-style: none; margin: 0; padding: 0; }
.linklist li + li { box-shadow: 0 -1px 0 var(--hair); }
.linklist a { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t i" "s i"; padding: 10px 6px; color: var(--ink); border-radius: 8px; }
.linklist a:hover { text-decoration: none; background: var(--s1); }
.card .linklist a:hover { background: var(--s3); }
.ll-title { grid-area: t; font-weight: var(--w-semi); font-size: 14.5px; }
.ll-sub { grid-area: s; font-size: 13px; color: var(--ink-3); }
.ll-ic { grid-area: i; align-self: center; color: var(--ink-3); }
.agenda { list-style: none; margin: 0; padding: 0; }
.agenda li { display: flex; flex-direction: column; padding: 10px 0; font-size: 14px; }
.agenda li + li { box-shadow: 0 -1px 0 var(--hair); }
.agenda .when { font-weight: var(--w-semi); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 9px 18px; margin: 0 0 12px; font-size: 14px; }
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.facts-n { grid-template-columns: 1fr auto; margin: 0; }
.facts-n dd { font-weight: var(--w-semi); text-align: right; font-variant-numeric: tabular-nums; }
.post + .post { margin-top: 22px; padding-top: 22px; box-shadow: 0 -1px 0 var(--hair); }
.post header { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.post h3 { font-size: 17px; }
.post-body { color: var(--ink-2); }
.post-meta { font-size: 12.5px; color: var(--ink-3); margin-top: 8px; }

/* --- onboarding: a timeline with one open card -------------------------------------------------------------- */
.head-meter { display: flex; align-items: center; gap: 12px; min-width: 260px; }
.head-meter .progress { flex: 1; }
.meter-n { font-size: 14px; color: var(--ink-3); white-space: nowrap; }
.meter-n strong { font: var(--w-bold) 24px/1 var(--sans); color: var(--ink); }
.meter-l { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.timeline { list-style: none; margin: 6px 0 0; padding: 0; }
.tl { position: relative; padding-left: 52px; }
.tl::before { content: ""; position: absolute; left: 15px; top: 0; bottom: 0; width: 2px; background: var(--hair); }
.tl:first-child::before { top: 24px; }
.tl:last-child::before { height: 24px; bottom: auto; }
.tl-dot { position: absolute; left: 0; top: 8px; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--s0); box-shadow: inset 0 0 0 1.5px var(--hair-2); font: var(--w-semi) 13px/1 var(--display); color: var(--ink-3); }
.tl-done .tl-dot { background: color-mix(in oklch, var(--ok) 13%, var(--s0)); box-shadow: none; color: var(--ok); }
.tl-waiting .tl-dot, .tl-ready .tl-dot { box-shadow: inset 0 0 0 1.5px var(--ink-3); color: var(--ink); }
.tl-current .tl-dot { top: 26px; background: var(--solid); color: var(--solid-ink); box-shadow: 0 0 0 5px color-mix(in oklch, var(--ink) 8%, transparent); }
.ic-dot { width: 15px; height: 15px; stroke-width: 2.4; }
.tl details > summary { list-style: none; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 10px; margin-left: -10px;
  border-radius: 10px; cursor: pointer; }
.tl details > summary::-webkit-details-marker { display: none; }
.tl details > summary:hover { background: var(--s1); }
.tl-title { flex: 1; font: var(--w-med) 15.5px/1.35 var(--sans); color: var(--ink-2); }
.tl-done .tl-title { color: var(--ink-3); }
.tl-waiting .tl-title, .tl-ready .tl-title { color: var(--ink); }
.tl-chev { color: var(--ink-3); transition: transform 200ms var(--ease); opacity: .8; }
.tl details[open] .tl-chev { transform: rotate(90deg); }
.tl details > .tl-body { padding: 4px 0 26px; }
.tl-sum { color: var(--ink-3); font-size: 14px; }
.tl-card { background: var(--s2); border-radius: 12px; box-shadow: 0 0 0 1px var(--hair), var(--shadow); padding: 26px 30px 30px; margin: 10px 0 18px; min-width: 0; }
.tl-current-title { font: var(--w-bold) clamp(24px, 2.2vw, 28px)/1.2 var(--sans); letter-spacing: -0.018em; margin-bottom: 6px; }
.tl-card .tl-sum { font-size: 15px; margin-bottom: 18px; }
.tl-card .tl-body { padding: 18px 0 0; box-shadow: 0 -1px 0 var(--hair); }
.sub { font-size: 14px; margin: 22px 0 12px; }
.steps-list { margin: 8px 0 12px; padding-left: 20px; }
.steps-list li { margin: 5px 0; }
.ticks { list-style: none; padding: 0; margin: 10px 0 14px; }
.ticks li { position: relative; padding-left: 20px; margin: 6px 0; }
.ticks li::before { content: ""; position: absolute; left: 3px; top: .65em; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); }
.plain { margin: 0; padding-left: 18px; }
.plain li { margin: 7px 0; }

.slots { display: flex; flex-direction: column; gap: 16px; }
.slot-day h4 { font-size: 13px; color: var(--ink-2); margin-bottom: 8px; font-weight: var(--w-semi); }
.slot-row { display: flex; flex-wrap: wrap; gap: 8px; }
.slot { border: 0; cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 9px 13px; min-width: 132px;
  border-radius: var(--r-control); background: var(--s2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--hair-2); font-family: var(--sans);
  transition: box-shadow 140ms, background 140ms; }
.slot:hover { background: var(--s2); box-shadow: inset 0 0 0 1.5px var(--ink); }
.slot-time { font-weight: var(--w-semi); font-size: 14.5px; }
.slot-meta { font-size: 12px; color: var(--ink-3); }
.tz-note { font-size: 12.5px; color: var(--ink-3); margin-top: 14px; }
.booked { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px 16px; margin-top: 16px;
  border-radius: 12px; background: var(--s1); }
.booked > .ic { color: var(--ink); margin-top: 2px; }
.booked p { margin: 0 0 2px; font-size: 14px; }
.booked-when { font: var(--w-semi) 16px/1.35 var(--sans) !important; }
.booked-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.booked-done { background: color-mix(in oklch, var(--ok) 10%, var(--s2)); grid-template-columns: 22px 1fr; }
.booked-done > .ic { color: var(--ok); }

/* --- directory ---------------------------------------------------------------------------------------------- */
.dir-tools { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.seg { display: inline-flex; padding: 2px; border-radius: 8px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--hair); max-width: 100%; overflow-x: auto; }
.seg a { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 6px; color: var(--ink-2); font-size: 13.5px; font-weight: var(--w-med); white-space: nowrap; }
.seg-page { margin-bottom: 26px; }
.seg a .ic { width: 16px; height: 16px; color: var(--ink-3); }
.seg a:hover { color: var(--ink); text-decoration: none; }
.seg a[aria-current] { background: var(--s2); color: var(--ink); box-shadow: var(--shadow-s), 0 0 0 1px var(--hair); }
.seg a[aria-current] .ic { color: var(--ink); }
.search input { width: 280px; background: var(--s2); }
.you { font: var(--w-med) 11px/1 var(--sans); color: var(--ink-3); background: var(--s1); padding: 3px 6px; border-radius: 5px; margin-left: 6px; vertical-align: 2px; }
.team + .team { margin-top: 34px; }
.team-name { display: flex; align-items: center; gap: 8px; font: var(--w-semi) 13px/1.3 var(--sans);
  color: var(--ink-2); padding-bottom: 10px; box-shadow: 0 1px 0 var(--hair); }
.team-count { font: var(--w-semi) 11.5px/1 var(--sans); letter-spacing: 0; color: var(--ink-3); background: var(--s1); padding: 4px 7px; border-radius: 999px; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li + li { box-shadow: 0 -1px 0 var(--hair); }
.row-link { display: grid; grid-template-columns: 32px minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: center; padding: 11px 8px; margin: 0 -8px;
  border-radius: 10px; color: var(--ink); }
.row-link:hover { text-decoration: none; background: var(--s1); }
.row-main { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.row-name { font-weight: var(--w-semi); }
.row-sub { font-size: 13px; color: var(--ink-3); }
.row-aside { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-hero { display: flex; gap: 24px; align-items: center; }
.profile-name { font: var(--w-bold) clamp(28px, 2.8vw, 36px)/1.15 var(--sans); letter-spacing: -0.02em; }
.profile-role { color: var(--ink-2); font-size: 16px; margin: 4px 0 0; }
.profile-bio { color: var(--ink-2); margin-top: 12px; }

/* --- resources ---------------------------------------------------------------------------------------------- */
.contact-groups { display: flex; flex-direction: column; gap: 20px; margin-bottom: 8px; }
.contact-groups h3 { font-size: 13.5px; color: var(--ink-2); margin-bottom: 10px; font-weight: var(--w-semi); }
.contacts { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.contacts li { display: flex; gap: 10px; align-items: center; font-size: 13.5px; line-height: 1.35; }

/* --- admin queue -------------------------------------------------------------------------------------------- */
.queue-item { display: flex; flex-direction: column; gap: 16px; padding: 20px 0; box-shadow: 0 -1px 0 var(--hair); }
.queue-item:first-child { box-shadow: none; padding-top: 0; }
.queue-item:last-child { padding-bottom: 0; }
.queue-title { font: var(--w-semi) 13.5px/1.3 var(--sans); color: var(--ink-2); margin: 0 0 4px; }
.queue-ask { margin: 0 0 4px; }
.ask-main { font: var(--w-semi) 19px/1.3 var(--sans); letter-spacing: -0.01em; margin-right: 6px; }
.queue-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.decline { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.decline input { min-height: 38px; width: 220px; }

/* --- signed-out pages --------------------------------------------------------------------------------------- */
body.bare { background: var(--s0); }
.bare-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 28px 16px 0; }
.bare-top { width: 100%; max-width: 1100px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 72px; }
.bare-brand .brand-wordmark { height: 24px; }
.bare-card { width: 100%; max-width: 400px; background: var(--s2); border-radius: 12px; padding: 34px 34px 30px; box-shadow: 0 0 0 1px var(--hair), var(--shadow); }
.bare-title { font: var(--w-bold) 32px/1.15 var(--sans); letter-spacing: -0.02em; margin-bottom: 10px; }
.bare-lede { color: var(--ink-2); margin-bottom: 24px; }
.bare-foot { font-size: 13px; color: var(--ink-3); margin: 20px 0 0; }
.bare-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; font-size: 13px; margin: 20px 0 0; }
.bare-wrap .footer { width: 100%; margin-top: auto; padding-top: 64px; justify-content: center; box-shadow: none; }
.error-page { padding: 40px 0; }
.error-page h1 { font: var(--w-bold) 34px/1.15 var(--sans); margin-bottom: 8px; }
.error-page .lede { color: var(--ink-2); margin-bottom: 20px; }

/* --- search ------------------------------------------------------------------------------------------------ */
.search-hero { position: relative; display: flex; gap: 10px; align-items: center; margin-bottom: 30px; }
.search-hero .ic { position: absolute; left: 16px; width: 20px; height: 20px; color: var(--ink-3); pointer-events: none; }
.search-hero input { min-height: 46px; padding-left: 44px; font-size: 16px; background: var(--s2); border-radius: 8px; box-shadow: 0 0 0 1px var(--hair-2), var(--shadow-s); }
.search-hero .btn { min-height: 46px; padding: 0 18px; }
.search-results > .card + .section, .search-results > .section + .section { margin-top: 36px; }
.chips-try { margin-top: -10px; }
.chips a.chip { text-decoration: none; display: inline-block; }
mark { background: color-mix(in oklch, var(--accent) 16%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.hits { list-style: none; margin: 0; padding: 0; }
.hits li + li { box-shadow: 0 -1px 0 var(--hair); }
.hits li { padding: 12px 0; }
.hits-links li { padding: 0; }
.hits-links a { display: flex; flex-direction: column; padding: 11px 8px; margin: 0 -8px; border-radius: 10px; color: var(--ink); }
.hits-links a:hover { text-decoration: none; background: var(--s1); }
.hit-title { font-weight: var(--w-semi); margin: 0 0 2px; }
.hit-sub { font-size: 13.5px; color: var(--ink-3); margin: 0; }
.hit-link { display: inline-flex; align-items: center; font-size: 13.5px; font-weight: var(--w-med); margin-top: 6px; }
.row-link-s { grid-template-columns: 32px minmax(0, 1fr) minmax(0, 1fr); }

.col-main > .section, .col-side > .section, .col-main > .card, .col-side > .card { margin-top: 0; }

/* --- tiles and person cards ------------------------------------------------------------------------------ */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.focus .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tile { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 8px; background: var(--s1); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--hair); transition: background 140ms, box-shadow 140ms; }
.tile:hover { text-decoration: none; background: var(--s2); box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--accent) 35%, transparent), var(--shadow-s); }
.tile-title { font-weight: var(--w-semi); font-size: 14.5px; display: flex; align-items: center; justify-content: space-between; }
.tile-title .ic-s { color: var(--ink-3); }
.tile-sub { font-size: 12.5px; color: var(--ink-3); line-height: 1.4; }
.depts > .dept + .dept { margin-top: 32px; }
.dept-name { font: var(--w-semi) 13px/1.3 var(--sans); color: var(--ink-3); margin: 0 0 12px; letter-spacing: 0.01em; }
.teams-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; align-items: start; }
.teams-grid .team { background: var(--s2); border-radius: 14px; padding: 18px 18px 10px; box-shadow: 0 0 0 1px var(--hair), var(--shadow-s); }
.teams-grid .team + .team { margin-top: 0; }
.members { display: flex; flex-direction: column; margin: 10px -8px 0; }
.member { display: flex; gap: 12px; align-items: flex-start; padding: 10px 8px; border-radius: 10px; color: var(--ink); }
.member + .member { box-shadow: 0 -1px 0 var(--hair); }
.members > .empty { padding: 8px 8px 2px; font-size: 13.5px; }
.member:hover { text-decoration: none; background: var(--s1); }
.member-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.member-name { font-weight: var(--w-semi); font-size: 14.5px; }
.member-role { font-size: 13px; color: var(--ink-2); }
.member-place { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.teams-grid .team-name { box-shadow: none; padding-bottom: 0; text-transform: none; letter-spacing: 0; font-size: 15.5px; color: var(--ink); }
.team-name a { color: inherit; }
.team-summary { font-size: 13.5px; color: var(--ink-3); margin: 6px 0 0; }
.team-links { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.link-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: var(--r-control); font-size: 12.5px;
  color: var(--ink-2); background: var(--s1); }
.link-chip:hover { color: var(--ink); background: var(--hover); text-decoration: none; }
.link-chip .ic-s { margin-left: 4px; }
.team-loose { background: var(--s1) !important; box-shadow: inset 0 0 0 1px var(--hair) !important; }
.member-name .badge { margin-left: 8px; height: 19px; font-size: 10.5px; padding: 0 7px; vertical-align: 1px; }
.members-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2px 18px; margin: 0 -8px; }
.members-grid .member + .member { box-shadow: none; }
.tools-title { font-size: 15.5px; }

/* people around you: lead, mentor, mentees */
.team-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.team-dept { flex-basis: 100%; font: var(--w-med) 12.5px/1.3 var(--sans); color: var(--ink-3); margin-bottom: -6px; }
.team-title { font: var(--w-bold) clamp(24px, 2.2vw, 28px)/1.2 var(--sans); letter-spacing: -0.015em; color: var(--ink); }
.team-head + .team-summary { font-size: 14.5px; color: var(--ink-2); margin-top: 6px; }
.pcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-top: 18px; }
.section .pcards:first-child, .team-lead .pcards { margin-top: 0; }
.team-lead { margin-top: 20px; max-width: 860px; }
.pcard { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r-card); background: var(--s2); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--hair); transition: background 140ms, box-shadow 140ms; min-width: 0; }
.pcard:hover { text-decoration: none; background: var(--hover); }
.pcard-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.pcard-role { font: var(--w-med) 12px/1.3 var(--sans); color: var(--ink-3); margin-bottom: 1px; }
.pcard-name { font-weight: var(--w-semi); font-size: 15px; }
.pcard-sub { font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --- profile photo ---------------------------------------------------------------------------------------- */
.photo-row { display: flex; flex-wrap: wrap; gap: 16px 18px; align-items: center; }
.photo-actions { flex: 1 1 180px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; }
.photo-actions .hint { flex-basis: 100%; margin: 2px 0 0; }
.photo-form { display: contents; }
.photo-form label.btn { cursor: pointer; position: relative; }
.photo-form label.btn:focus-within { box-shadow: 0 0 0 1px color-mix(in oklch, var(--accent) 55%, transparent), 0 0 0 5px color-mix(in oklch, var(--accent) 16%, transparent); }
.profile-role .badge { vertical-align: 2px; }

/* --- onboarding progress: one card per new hire ------------------------------------------------------------ */
.pc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.pc { background: var(--s2); border-radius: var(--r-card); box-shadow: 0 0 0 1px var(--hair), var(--shadow-s); padding: 16px 18px 14px; min-width: 0; }
.pc-head { display: flex; gap: 12px; align-items: center; color: var(--ink); margin-bottom: 14px; }
.pc-head:hover { text-decoration: none; }
.pc-head:hover .pc-name { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--hair-2); }
.pc-who { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.35; }
.pc-name { font-weight: var(--w-semi); font-size: 15px; }
.pc-sub { font-size: 12.5px; color: var(--ink-3); }
.pc-count { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pc-count strong { font: var(--w-bold) 22px/1 var(--sans); color: var(--ink); }
.pc-note { font-size: 13.5px; color: var(--ink-3); margin: 0; }
.checklist { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.ck { display: flex; align-items: center; gap: 10px; padding: 4px 0; font-size: 13.5px; color: var(--ink-2); min-width: 0; }
.ck-box { width: 18px; height: 18px; flex: none; border-radius: 5px; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--hair-2); }
.ck-box .ic { width: 12px; height: 12px; stroke-width: 2.6; vertical-align: 0; }
.ck-title { flex: 1; min-width: 0; }
.ck-done .ck-box { background: var(--solid); color: var(--solid-ink); box-shadow: none; }
.ck-done .ck-title { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--hair-2); }
.ck-waiting .ck-box { background: color-mix(in oklch, var(--wait) 18%, var(--s2)); color: color-mix(in oklch, var(--wait) 55%, var(--ink)); box-shadow: none; }
.ck-ready .ck-box { box-shadow: inset 0 0 0 1.5px var(--ink); }
.ck-waiting .ck-title, .ck-ready .ck-title { color: var(--ink); }
.ck-state { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.pc-next { margin: 14px 0 0; padding-top: 12px; box-shadow: 0 -1px 0 var(--hair); font-size: 13.5px; color: var(--ink-3); }
.pc-next strong { color: var(--ink); font-weight: var(--w-semi); margin-left: 4px; }
.pc-finished { color: var(--ok); display: flex; align-items: center; gap: 6px; }
.pc-finished .ic { width: 16px; height: 16px; }

/* one person's checklist, read-only */
.person-head { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; margin-bottom: 26px; }
.person-head-text { flex: 1; min-width: 200px; }
.person-head h1 { font: var(--w-bold) clamp(28px, 2.8vw, 36px)/1.15 var(--sans); letter-spacing: -0.02em; }
.person-head .lede { margin: 6px 0 0; color: var(--ink-3); }
.steps { list-style: none; margin: 0; padding: 0; }
.step-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 14px 0; }
.step-row + .step-row { box-shadow: 0 -1px 0 var(--hair); }
.step-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: var(--w-semi) 12.5px/1 var(--sans); color: var(--ink-3);
  box-shadow: inset 0 0 0 1.5px var(--hair-2); }
.step-n .ic { width: 14px; height: 14px; stroke-width: 2.4; vertical-align: 0; }
.step-done .step-n { background: var(--solid); color: var(--solid-ink); box-shadow: none; }
.step-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.4; }
.step-title { font-weight: var(--w-semi); font-size: 14.5px; }
.step-done .step-title { color: var(--ink-2); }
.step-sum { font-size: 13.5px; color: var(--ink-3); }
.step-extra { font-size: 13px; color: var(--ink-2); margin-top: 4px; }

/* home: the people you mentor, one line each */
.mrows { list-style: none; margin: 0; padding: 0; }
.mrows li + li { box-shadow: 0 -1px 0 var(--hair); }
.mrow { display: flex; gap: 12px; align-items: center; padding: 10px 8px; margin: 0 -8px; border-radius: 10px; color: var(--ink); }
.mrow:hover { text-decoration: none; background: var(--s3); }
.mrow-text { flex: 1; display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.mrow-name { font-weight: var(--w-semi); font-size: 14.5px; }
.mrow-sub { font-size: 13px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrow-meter { display: flex; align-items: center; gap: 10px; width: 150px; flex: none; }
.mrow-meter .progress { flex: 1; }
.mrow-n { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.side-people .pcards { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.cols-ob { margin-top: 0; }

/* --- sent email ------------------------------------------------------------------------------------------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.mail-body summary { cursor: pointer; }
.mail-body pre { white-space: pre-wrap; font: 13px/1.55 var(--sans); color: var(--ink-2); background: var(--s1); border-radius: 10px; padding: 12px 14px; margin: 8px 0 0; }

/* --- narrow screens ----------------------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .cols { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}
@media (max-width: 860px) {
  /* the sidebar slides in over the page from the menu button */
  .sidebar { transform: translateX(-100%); visibility: hidden; transition: transform 220ms var(--ease), visibility 0s 220ms; }
  .nav-toggle:checked ~ .sidebar { transform: none; visibility: visible; transition: transform 220ms var(--ease); box-shadow: var(--shadow); }
  .nav-toggle:checked ~ .scrim { display: block; position: fixed; inset: 0; z-index: 25; background: color-mix(in oklch, var(--ink) 25%, transparent); }
  .main-col { margin-left: 0; }
  .menu-btn { display: grid; }
  .bar { padding: 0 10px 0 8px; }
  .content { padding: 14px 16px 44px; }
  .search-hero .btn { display: none; }
  .grid-form, .grid-3, .alias-form { grid-template-columns: minmax(0, 1fr); }
  .span-2, .span-3 { grid-column: auto; }
  .card, .focus { padding: 20px 18px 22px; }
  .tl { padding-left: 42px; }
  .tl::before { left: 13px; }
  .tl-dot { width: 28px; height: 28px; font-size: 12px; }
  .tl-current .tl-dot { top: 22px; }
  .tl-card { padding: 20px 18px 22px; }
  .booked { grid-template-columns: 22px minmax(0, 1fr); }
  .booked-actions { grid-column: 1 / -1; }
  .head-actions { width: 100%; }
  .head-meter { min-width: 0; width: 100%; }
  .pc-grid { grid-template-columns: minmax(0, 1fr); }
  .mrow-meter { width: 90px; }
  .step-row { grid-template-columns: 28px minmax(0, 1fr); }
  .step-row .badge { grid-column: 2; justify-self: start; }
  .search, .search input { width: 100%; }
  .row-link { grid-template-columns: 32px minmax(0, 1fr); }
  .focus .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row-aside { grid-column: 2; }
  .profile-hero { flex-direction: column; align-items: flex-start; }
  .decline { margin-left: 0; width: 100%; }
  .decline input { flex: 1; width: auto; }
  .bare-top { margin-bottom: 40px; }
  .footer { padding: 16px; }
  .tabs { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
