/* Employees — app styles (design option B)
   "A company home built around faces: who is out, who is new, who needs you."
   Type: Figtree 400/500/600/700. Spacing on a 4/8 px scale. One 12-column grid. */

:root {
  /* palette */
  --berry-600: #C8285F;   /* primary, active */
  --berry-700: #A61E4E;   /* hover, text links */
  --berry-800: #861840;   /* pressed */
  --berry-50:  #FCEBF1;   /* tints, selected */
  --berry-100: #F7D3E0;
  --ink:       #1E1B26;
  --grey-600:  #625E6E;
  --grey-400:  #A9A4B4;   /* input borders, disabled text on white is never this */
  --grey-200:  #DAD6E0;
  --grey-100:  #EFEDF3;   /* neutral tint, progress track */
  --page:      #F6F5F8;
  --line:      #E7E4EC;
  --white:     #FFFFFF;
  --green:     #1E7F4F;  --green-50: #E3F3EA;
  --amber:     #9A5B00;  --amber-50: #FDF0DA;
  --red:       #C0352B;  --red-50:   #FCE8E6;

  /* type */
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* radii */
  --r-card: 12px;
  --r-field: 8px;
  --r-pill: 999px;

  /* elevation: only cards and overlays */
  --shadow-card: 0 1px 2px rgba(30, 27, 38, .04);
  --shadow-pop: 0 8px 24px rgba(30, 27, 38, .12), 0 1px 3px rgba(30, 27, 38, .08);

  --focus: 0 0 0 2px var(--white), 0 0 0 4px var(--berry-600);
  --container: 1232px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font: 400 14px/20px var(--font);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: 28px; line-height: 36px; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 18px; line-height: 26px; font-weight: 600; }
h3 { font-size: 15px; line-height: 22px; font-weight: 600; }
a { color: var(--berry-700); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { flex: none; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip:focus-visible { position: fixed; top: 8px; left: 8px; width: auto; height: auto; margin: 0; padding: 8px 16px; clip: auto; overflow: visible; z-index: 100; background: var(--white); color: var(--ink); border-radius: var(--r-pill); }
.ic { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ic-16 { width: 16px; height: 16px; }
.ic-24 { width: 24px; height: 24px; }
.muted { color: var(--grey-600); }
.small { font-size: 13px; line-height: 18px; }
.caption { font-size: 12px; line-height: 16px; color: var(--grey-600); }
.strong { font-weight: 600; }
.nowrap { white-space: nowrap; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.page { padding-top: 32px; padding-bottom: 48px; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.col-3 { grid-column: span 3; } .col-9 { grid-column: span 9; } .col-4 { grid-column: span 4; } .col-5 { grid-column: span 5; } .col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; } .col-12 { grid-column: span 12; } .col-6 { grid-column: span 6; }
.stack { display: flex; flex-direction: column; gap: 24px; }
.stack-16 { display: flex; flex-direction: column; gap: 16px; }
.stack-8 { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; align-items: center; gap: 12px; }
.row-8 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }

/* ---------- top bar (desktop: two white rows, product mark + horizontal nav) ---------- */
.topbar { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar-row { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 28px; height: 28px; }
.org { display: inline-flex; align-items: center; gap: 8px; padding-left: 16px; margin-left: 4px; border-left: 1px solid var(--line); color: var(--grey-600); font-weight: 500; }
.topbar-title { display: none; font-size: 18px; font-weight: 700; }
.spacer { flex: 1 1 auto; }
.search-pill { position: relative; display: flex; align-items: center; width: 320px; height: 40px; background: var(--page); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 0 8px 0 40px; }
.search-pill .ic { position: absolute; left: 14px; color: var(--grey-600); width: 18px; height: 18px; }
.search-pill input { flex: 1; min-width: 0; border: 0; background: transparent; height: 38px; font-size: 14px; outline: none; }
.search-pill input::placeholder { color: var(--grey-600); }
.search-pill:focus-within { border-color: var(--berry-600); background: var(--white); box-shadow: 0 0 0 3px var(--berry-50); }
kbd { font: 500 12px/1 var(--font); color: var(--grey-600); background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 3px 7px; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--grey-100); text-decoration: none; }
.icon-btn .dot { position: absolute; top: 8px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--berry-600); border: 2px solid var(--white); }
.only-phone { display: none !important; }
.avatar-btn { border: 0; padding: 0; background: none; border-radius: 50%; cursor: pointer; }

.mainnav { display: flex; gap: 4px; height: 48px; align-items: stretch; }
.mainnav a { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; color: var(--grey-600); font-weight: 500; font-size: 14px; }
.mainnav a:hover { color: var(--ink); text-decoration: none; }
.mainnav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.mainnav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--berry-600); }
.count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-pill); background: var(--berry-600); color: var(--white); font-size: 12px; font-weight: 600; line-height: 1; }

/* phone bottom tabs */
.tabbar { display: none; }

/* ---------- footer ---------- */
.footer { padding: 24px 0 32px; color: var(--grey-600); font-size: 13px; }
.footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer a { color: var(--grey-600); }
.footer a:hover { color: var(--berry-700); }
.footer nav { display: flex; gap: 4px 16px; flex-wrap: wrap; align-items: center; }
.footer .switcher { display: block; font-size: 12px; }

/* ---------- page head ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.page-head .sub { margin-top: 4px; color: var(--grey-600); font-size: 15px; line-height: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.back { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; margin-bottom: 12px; }

/* ---------- avatars (initials on a tinted circle) ---------- */
.av { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; border-radius: 50%; font-weight: 600; font-size: 13px; line-height: 1; letter-spacing: .01em; }
.av-24 { width: 24px; height: 24px; font-size: 12px; }
.av-28 { width: 28px; height: 28px; font-size: 12px; }
.av-32 { width: 32px; height: 32px; font-size: 12px; }
.av-40 { width: 40px; height: 40px; font-size: 14px; }
.av-48 { width: 48px; height: 48px; font-size: 16px; }
.av-56 { width: 56px; height: 56px; font-size: 18px; }
.av-64 { width: 64px; height: 64px; font-size: 20px; }
.av-96 { width: 96px; height: 96px; font-size: 30px; }
.t1 { background: #FCE4EC; color: #9E1F4B; }
.t2 { background: #E2EBFA; color: #24519E; }
.t3 { background: #DDF1E6; color: #1A6A42; }
.t4 { background: #FCEDD5; color: #7A4600; }
.t5 { background: #EBE4FA; color: #5A389C; }
.t6 { background: #DAF0F1; color: #15636A; }
.t7 { background: #FDE4D9; color: #973812; }
.t8 { background: #E6E9F0; color: #3C4456; }
.t-sys { background: var(--ink); color: var(--white); }
.av-ring { box-shadow: 0 0 0 2px var(--white); }
.av-stack { display: inline-flex; }
.av-stack > * + * { margin-left: -8px; }

/* ---------- cards ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.card-pad { padding: 24px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px 0; }
.card-head + .card-body { padding-top: 16px; }
.card-body { padding: 20px 24px 24px; }
.card-head .see-all, .see-all { font-size: 14px; font-weight: 500; color: var(--berry-700); white-space: nowrap; display: inline-flex; align-items: center; gap: 2px; }
.card-sub { color: var(--grey-600); font-size: 14px; margin-top: 2px; }
.card-foot { border-top: 1px solid var(--line); padding: 12px 24px; display: flex; justify-content: flex-end; }

/* list rows inside cards */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; align-items: center; gap: 12px; padding: 14px 24px; border-top: 1px solid var(--line); }
.list > li:first-child { border-top: 0; }
.list .title { font-weight: 600; }
.list .meta { color: var(--grey-600); font-size: 13px; line-height: 18px; margin-top: 2px; }
.list-tight > li { padding: 12px 0; }
.list-tight > li:first-child { padding-top: 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 20px; border-radius: var(--r-pill); border: 1px solid transparent; font-weight: 600; font-size: 14px; line-height: 1; white-space: nowrap; cursor: pointer; text-decoration: none; transition: background-color .12s, border-color .12s; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--berry-600); color: var(--white); }
.btn-primary:hover { background: var(--berry-700); }
.btn-primary:active { background: var(--berry-800); }
.btn-secondary { background: var(--white); color: var(--ink); border-color: var(--grey-200); }
.btn-secondary:hover { border-color: var(--grey-400); background: var(--page); }
.btn-quiet { background: transparent; color: var(--berry-700); padding: 0 12px; }
.btn-quiet:hover { background: var(--berry-50); }
.btn-danger { background: var(--white); color: var(--red); border-color: #E9B7B2; }
.btn-danger:hover { background: var(--red-50); }
.btn-sm { height: 32px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 15px; }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--grey-100); color: #7C7788; border-color: transparent; cursor: not-allowed; }
.btn .ic { width: 18px; height: 18px; }
.btn-icon { width: 40px; padding: 0; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }

/* shortcuts (pill chips that are links) */
.shortcuts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.shortcut { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px; border-radius: var(--r-pill); background: var(--white); border: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.shortcut .ic { color: var(--berry-600); width: 18px; height: 18px; }
.shortcut:hover { border-color: var(--grey-200); background: var(--berry-50); text-decoration: none; }

/* ---------- chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap; background: var(--grey-100); color: var(--ink); }
.chip .ic { width: 14px; height: 14px; stroke-width: 2; }
.chip-berry  { background: var(--berry-50); color: var(--berry-700); }
.chip-green  { background: var(--green-50); color: var(--green); }
.chip-amber  { background: var(--amber-50); color: var(--amber); }
.chip-red    { background: var(--red-50); color: var(--red); }
.chip-ink    { background: var(--ink); color: var(--white); }
.chip-outline { background: var(--white); border: 1px solid var(--grey-200); color: var(--grey-600); }
.chip-sample { background: var(--amber-50); color: var(--amber); }
.chip-lg { height: 28px; padding: 0 12px; font-size: 13px; }

/* readiness pill: icon + words */
.ready { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 4px 12px 4px 8px; border-radius: var(--r-pill); font-size: 13px; font-weight: 600; line-height: 18px; }
.ready .ic { width: 16px; height: 16px; stroke-width: 2; }
.ready-ok { background: var(--green-50); color: var(--green); }
.ready-track { background: var(--grey-100); color: var(--ink); }
.ready-track .ic { color: var(--grey-600); }
.ready-missing { background: var(--amber-50); color: var(--amber); }
.ready-risk { background: var(--white); color: var(--amber); box-shadow: inset 0 0 0 1px var(--amber); }
.ready-blocked { background: var(--red-50); color: var(--red); }

/* overdue label: text + icon in red, never colour alone */
.overdue { display: inline-flex; align-items: center; gap: 4px; color: var(--red); font-weight: 600; font-size: 13px; }
.overdue .ic { width: 16px; height: 16px; stroke-width: 2; }

/* ---------- progress ---------- */
.progress { display: flex; align-items: center; gap: 12px; min-width: 140px; }
.bar { flex: 1 1 auto; height: 8px; border-radius: var(--r-pill); background: var(--grey-100); overflow: hidden; min-width: 64px; }
.bar > i { display: block; height: 100%; border-radius: var(--r-pill); background: var(--berry-600); }
.bar-green > i { background: var(--green); }
.progress .num { font-weight: 600; font-size: 13px; white-space: nowrap; min-width: 44px; text-align: right; }

/* ---------- segmented control & tabs ---------- */
.seg { display: inline-flex; padding: 4px; gap: 4px; background: var(--grey-100); border-radius: var(--r-pill); }
.seg a, .seg button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 16px; border-radius: var(--r-pill); border: 0; background: transparent; color: var(--grey-600); font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; }
.seg a:hover, .seg button:hover { color: var(--ink); text-decoration: none; }
.seg [aria-current="page"], .seg [aria-selected="true"], .seg [aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(30,27,38,.12); }
.seg .n { color: var(--grey-600); font-weight: 500; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs a { position: relative; display: inline-flex; align-items: center; height: 44px; padding: 0 12px; color: var(--grey-600); font-weight: 500; white-space: nowrap; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.tabs a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--berry-600); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-weight: 600; font-size: 14px; line-height: 20px; color: var(--ink); }
.req { color: var(--berry-700); font-weight: 600; margin-left: 2px; }
.opt { color: var(--grey-600); font-weight: 400; }
.input, .select, .textarea { width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--grey-400); border-radius: var(--r-field); background: var(--white); font-size: 15px; color: var(--ink); }
.textarea { height: auto; min-height: 96px; padding: 10px 14px; line-height: 22px; resize: vertical; }
.select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23625E6E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--grey-600); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--berry-600); box-shadow: 0 0 0 3px var(--berry-50); }
.input::placeholder, .textarea::placeholder { color: #827D8F; }
.input[disabled], .select[disabled] { background: var(--page); border-color: var(--line); color: #7C7788; }
.input.is-error, .select.is-error { border-color: var(--red); }
.help { font-size: 13px; line-height: 18px; color: var(--grey-600); }
.help b { color: var(--ink); font-weight: 600; }
.help .ok { color: var(--green); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.err { display: flex; align-items: flex-start; gap: 6px; font-size: 13px; line-height: 18px; color: var(--red); font-weight: 600; }
.err .ic { width: 16px; height: 16px; stroke-width: 2; margin-top: 1px; }
.affix { position: relative; display: flex; align-items: center; }
.affix .pre { position: absolute; left: 14px; color: var(--grey-600); font-size: 15px; pointer-events: none; }
.affix .input { padding-left: 30px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.section-title { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.section-title .ic-wrap { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; align-items: center; justify-content: center; background: var(--berry-50); color: var(--berry-700); }

/* checkbox, radio, switch */
.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; min-height: 24px; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 0; border: 1.5px solid var(--grey-400); border-radius: 6px; background: var(--white); display: grid; place-content: center; cursor: pointer; }
.check input[type="radio"] { border-radius: 50%; }
.check input:checked { background: var(--berry-600); border-color: var(--berry-600); }
.check input[type="checkbox"]:checked::before { content: ""; width: 12px; height: 12px; background: var(--white); clip-path: polygon(14% 44%, 0 59%, 40% 100%, 100% 22%, 86% 8%, 40% 71%); }
.check input[type="radio"]:checked { background: var(--white); border: 6px solid var(--berry-600); }
.check input:focus-visible { box-shadow: var(--focus); }
.check .lbl { flex: 1; min-width: 0; }
.switch { position: relative; display: inline-flex; flex: none; width: 40px; height: 24px; }
.switch input { appearance: none; -webkit-appearance: none; margin: 0; width: 40px; height: 24px; border-radius: var(--r-pill); background: var(--grey-400); cursor: pointer; transition: background .15s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.switch input:checked { background: var(--berry-600); }
.switch input:checked::after { transform: translateX(16px); }
.switch input:focus-visible { box-shadow: var(--focus); }

/* filter pills */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-select { position: relative; display: inline-flex; align-items: center; }
.filter-select label { position: absolute; left: 16px; font-size: 14px; color: var(--grey-600); pointer-events: none; }
.filter-select .select { height: 40px; border-radius: var(--r-pill); border-color: var(--line); background-color: var(--white); font-size: 14px; font-weight: 600; width: auto; }
.filter-check { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px; border-radius: var(--r-pill); background: var(--white); border: 1px solid var(--line); font-weight: 500; cursor: pointer; }

/* ---------- tables (become cards on phone) ---------- */
.table-card { overflow: hidden; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 13px; font-weight: 600; color: var(--grey-600); padding: 12px 16px; background: #FAF9FB; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 16px; border-top: 1px solid var(--line); vertical-align: top; }
.table tbody tr:first-child td { border-top: 0; }
.table tbody tr:hover td { background: #FCFBFD; }
.table th:first-child, .table td:first-child { padding-left: 24px; }
.table th:last-child, .table td:last-child { padding-right: 24px; }
.person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.person .name { font-weight: 600; color: var(--ink); }
.person a.name:hover { color: var(--berry-700); }
.person .sub { color: var(--grey-600); font-size: 13px; line-height: 18px; }
.cell-sub { color: var(--grey-600); font-size: 13px; line-height: 18px; margin-top: 4px; }

.table-onb th:nth-child(1) { width: 22%; }
.table-onb th:nth-child(2) { width: 112px; }
.table-onb th:nth-child(3) { width: 150px; }
.table-onb th:nth-child(4) { width: 160px; }
.table-onb th:nth-child(5) { width: 24%; }
.table-onb td:nth-child(2) { white-space: nowrap; }
.list > li.onb-wide { grid-template-columns: auto minmax(0, 1fr) 168px 320px; }

/* ---------- home: faces ---------- */
.faces { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.face { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 88px; flex: none; text-align: center; color: var(--ink); padding: 8px 4px; border-radius: var(--r-card); }
.face:hover { background: var(--page); text-decoration: none; }
.face .nm { font-weight: 600; font-size: 14px; line-height: 18px; }
.face .info { color: var(--grey-600); font-size: 13px; line-height: 16px; }
.face-wrap { position: relative; }
.face-badge { position: absolute; right: -4px; bottom: -2px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-content: center; background: var(--white); color: var(--berry-600); box-shadow: 0 0 0 1px var(--line); }
.face-badge .ic { width: 14px; height: 14px; stroke-width: 2; }
.avail-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--grey-600); margin-bottom: 12px; }
.avail-head b { color: var(--ink); font-weight: 600; }
.avail-head span { display: inline-flex; align-items: center; gap: 6px; }

.hires { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.hire { flex: 0 0 140px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 16px 12px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--white); color: var(--ink); }
.hire:hover { border-color: var(--berry-100); background: #FFFBFC; text-decoration: none; }
.hire .av { margin-bottom: 8px; }
.hire .nm { font-weight: 600; font-size: 14px; line-height: 18px; }
.hire .ttl { color: var(--grey-600); font-size: 13px; line-height: 18px; min-height: 36px; }
.hire .chip { margin-top: 8px; }
.hires-group { display: flex; flex-direction: column; gap: 8px; }
.hires-label { font-size: 13px; font-weight: 600; color: var(--grey-600); }
.hires-split { display: flex; gap: 24px; overflow-x: auto; padding-bottom: 4px; }
.hires-split .hires { overflow: visible; }
.vdiv { width: 1px; background: var(--line); flex: none; }

.needs-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-content: center; flex: none; }
.alert-row { display: flex; gap: 12px; align-items: flex-start; }
.alert-row + .alert-row { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { padding: 14px 16px; border-radius: var(--r-card); background: var(--page); }
.tile .k { font-size: 13px; color: var(--grey-600); font-weight: 500; }
.tile .v { font-size: 22px; line-height: 28px; font-weight: 700; margin-top: 2px; }
.tile .v small { font-size: 14px; font-weight: 500; color: var(--grey-600); }

/* onboarding rows on Home */
.list > li.onb { display: grid; grid-template-columns: auto minmax(0, 1fr) 168px 200px; gap: 16px; }
.onb-ready { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.onb .progress { min-width: 0; }

/* ---------- add hire ---------- */
.req-meter { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--r-card); background: var(--green-50); color: var(--green); font-weight: 600; font-size: 14px; }
.form-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 20px 24px; }
.what { position: sticky; top: 136px; }
.what-line { display: flex; gap: 12px; padding: 16px 24px; border-top: 1px solid var(--line); }
.what-line .lbl .t { font-weight: 600; }
.what-line .lbl .d { color: var(--grey-600); font-size: 13px; line-height: 18px; margin-top: 2px; }
.owners { display: flex; flex-wrap: wrap; gap: 8px; }
.owner-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 4px; border-radius: var(--r-pill); background: var(--page); font-size: 13px; font-weight: 600; }
.owner-chip .n { color: var(--grey-600); font-weight: 500; }
.taskgroup { margin-top: 12px; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.taskgroup-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #FAF9FB; font-weight: 600; font-size: 13px; }
.taskgroup-head .n { color: var(--grey-600); font-weight: 500; }
.tasks { list-style: none; margin: 0; padding: 0; }
.tasks li { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 8px 12px; border-top: 1px solid var(--line); font-size: 13px; line-height: 18px; }
.tasks li .due { color: var(--grey-600); white-space: nowrap; text-align: right; }
.tasks li .moved { display: block; color: var(--amber); font-weight: 600; font-size: 12px; white-space: normal; }
.done-sys { display: inline-flex; align-items: center; gap: 4px; color: var(--green); font-weight: 600; white-space: nowrap; }
.done-sys .ic { width: 14px; height: 14px; stroke-width: 2.25; }

/* ---------- profile header ---------- */
.profile { overflow: hidden; }
.cover { position: relative; height: 112px; background: var(--berry-600); }
.cover::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 38%; background: #B82357; }
.profile-main { padding: 0 24px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.profile-main .av { position: relative; z-index: 1; margin-top: -48px; box-shadow: 0 0 0 4px var(--white); }
.profile-main .nm { font-size: 22px; line-height: 28px; font-weight: 700; margin-top: 12px; }
.profile-main .ttl { font-size: 15px; margin-top: 2px; }
.profile-main .where { color: var(--grey-600); margin-top: 2px; }
.profile-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; color: var(--grey-600); font-size: 13px; margin-top: 12px; align-items: center; }
.quick { display: flex; justify-content: center; gap: 24px; margin: 20px 0 8px; flex-wrap: wrap; }
.quick a { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--ink); font-size: 13px; font-weight: 500; }
.quick a:hover { text-decoration: none; }
.quick .round { width: 48px; height: 48px; border-radius: 50%; background: var(--grey-100); display: grid; place-content: center; color: var(--ink); transition: background .12s; }
.quick a:hover .round { background: var(--berry-50); color: var(--berry-700); }
.profile .tabs { padding: 0 12px; margin-top: 8px; border-top: 1px solid var(--line); border-bottom: 0; }

/* ---------- org chart ---------- */
.org-chart { display: flex; flex-direction: column; align-items: center; padding: 8px 0; overflow-x: auto; }
.node { width: 196px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: 12px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; box-shadow: var(--shadow-card); }
.node .nm { font-weight: 600; font-size: 14px; margin-top: 6px; }
.node .ttl { color: var(--grey-600); font-size: 12px; line-height: 16px; }
.node .chip { margin-top: 8px; }
.node.is-hl { border-color: var(--berry-600); box-shadow: 0 0 0 3px var(--berry-50); }
.node.is-new { border-style: dashed; border-color: var(--grey-400); }
.org-v { width: 2px; height: 24px; background: var(--grey-200); }
.org-children { display: flex; gap: 16px; position: relative; padding-top: 24px; }
.org-children::before { content: ""; position: absolute; top: 0; left: 98px; right: 98px; height: 2px; background: var(--grey-200); }
.org-children > .org-col { position: relative; display: flex; flex-direction: column; align-items: center; }
.org-children > .org-col::before { content: ""; position: absolute; top: -24px; left: 50%; width: 2px; height: 24px; margin-left: -1px; background: var(--grey-200); }

/* ---------- feedback: toast, banner, modal, empty, skeleton ---------- */
.toast { display: inline-flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--r-card); background: var(--ink); color: var(--white); font-weight: 500; box-shadow: var(--shadow-pop); max-width: 100%; }
.toast .ic { color: #8FE0B5; }
.toast a, .toast button.linkish { color: #FFB3CC; font-weight: 600; background: none; border: 0; padding: 0; cursor: pointer; }
.banner { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--r-card); background: var(--amber-50); border: 1px solid #F1D7A8; }
.banner .ic { color: var(--amber); margin-top: 2px; }
.banner-info { background: var(--berry-50); border-color: var(--berry-100); }
.banner-info .ic { color: var(--berry-700); }
.modal-demo { position: relative; padding: 32px; border-radius: var(--r-card); background: rgba(30,27,38,.45); display: flex; justify-content: center; }
.modal { width: 100%; max-width: 480px; background: var(--white); border-radius: 16px; box-shadow: var(--shadow-pop); overflow: hidden; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 0 24px; }
.modal-body { padding: 12px 24px 20px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 24px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 32px 24px; }
.empty .ic-wrap { width: 48px; height: 48px; border-radius: 50%; background: var(--berry-50); color: var(--berry-700); display: grid; place-content: center; margin-bottom: 4px; }
.skel { display: block; height: 12px; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--grey-100), #F7F6F9, var(--grey-100)); background-size: 200% 100%; animation: shimmer 1.4s ease-in-out infinite; }
.skel-av { width: 40px; height: 40px; border-radius: 50%; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } }

/* ---------- design-system page ---------- */
.ds-section { scroll-margin-top: 128px; }
.ds-section > h2 { margin-bottom: 4px; }
.ds-section > .card-sub { margin-bottom: 16px; }
.ds-label { font-size: 13px; font-weight: 600; color: var(--grey-600); margin-bottom: 8px; }
.ds-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.ds-toc a { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: var(--r-pill); background: var(--white); border: 1px solid var(--line); color: var(--ink); font-size: 13px; font-weight: 500; }
.ds-toc a:hover { background: var(--berry-50); text-decoration: none; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.swatch { border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--white); }
.swatch i { display: block; height: 64px; }
.swatch div { padding: 8px 12px; font-size: 13px; line-height: 18px; }
.swatch b { display: block; font-weight: 600; }
.type-row { display: grid; grid-template-columns: 180px 1fr; gap: 16px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); }
.type-row:first-child { border-top: 0; }
.mini-bar { border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--white); }
.mini-bar .topbar { position: static; }
.mini-scroll { overflow-x: auto; }
.mini-bar .mainnav, .mini-bar .topbar-row { padding: 0 16px; }
.mini-bar .topbar-row { min-width: max-content; }
.mini-bar .mainnav { min-width: max-content; }
.phone-frame { width: 100%; max-width: 390px; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--white); }
.phone-frame .tabbar { display: flex; position: static; }
.balance { display: flex; flex-direction: column; gap: 4px; }
.sum-line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.sum-line:first-child { border-top: 0; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; }
.checklist .ic { width: 18px; height: 18px; stroke-width: 2; margin-top: 1px; }
.checklist .yes { color: var(--green); }
.checklist .no { color: var(--grey-600); }
.popover { width: 320px; max-width: 100%; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-pop); padding: 16px; }
.nf { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.longname .nm { overflow-wrap: break-word; hyphens: manual; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .search-pill { width: 240px; }
  .org { display: none; }
  .col-3, .col-9, .col-4, .col-5, .col-7, .col-8 { grid-column: span 12; }
  .what { position: static; }
}
@media (max-width: 760px) {
  body { font-size: 15px; line-height: 22px; padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .container { padding: 0 16px; }
  .page { padding-top: 20px; padding-bottom: 24px; }
  .grid { gap: 16px; }
  .stack { gap: 16px; }
  h1 { font-size: 24px; line-height: 32px; }
  .topbar-row { height: 56px; gap: 4px; }
  header.topbar .brand .word, header.topbar .org, header.topbar .mainnav, header.topbar .search-pill { display: none; }
  .mini-bar .org { min-width: 0; white-space: normal; }
  .topbar-title { display: block; margin-left: 8px; }
  .only-phone { display: inline-flex !important; }
  .only-desk { display: none !important; }
  .page-head { flex-direction: column; align-items: stretch; gap: 16px; margin-bottom: 16px; }
  .page-head .btn-primary { width: 100%; height: 48px; }
  .card-head { padding: 16px 16px 0; }
  .card-body { padding: 16px; }
  .card-pad { padding: 16px; }
  .list > li, .list > li.onb { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; row-gap: 8px; padding: 14px 16px; align-items: start; }
  .list > li > :nth-child(n+3) { grid-column: 2; justify-self: start; }
  .list > li.onb > .progress { justify-self: stretch; }
  .onb-ready { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .list-tight > li { padding: 12px 0; }
  .card-foot { padding: 12px 16px; }
  .btn { height: 44px; }
  .btn-sm { height: 40px; }
  .see-all, .card-head .see-all { min-height: 40px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-actions { padding: 16px; flex-direction: column; align-items: stretch; }
  .form-actions .btn { width: 100%; white-space: normal; text-align: center; height: auto; min-height: 48px; padding: 12px 20px; line-height: 20px; }
  .form-actions .btn-quiet { min-height: 44px; }
  .what-line { padding: 16px; }
  .ah-grid { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
  .ah-form { display: contents; }
  .ah-aside { order: 1; }
  .ah-actions { order: 2; }
  .req-meter { flex-wrap: wrap; }
  .req-meter .spacer { display: none; }
  .card-head { flex-wrap: wrap; }
  .taskgroup-wrap { margin-left: 0 !important; }
  .check { min-height: 40px; align-items: flex-start; padding-top: 10px; }
  .check input { margin-top: 1px; }
  .footer { padding-bottom: 24px; }
  .footer .container { flex-direction: column; align-items: flex-start; }
  .footer a { display: inline-flex; align-items: center; min-height: 40px; }
  .shortcut { height: 40px; }
  .shortcuts { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 16px; padding: 0 16px 4px; }
  .shortcut { flex: none; }
  .tabs a { height: 44px; }
  .seg a, .seg button { height: 40px; }
  .filter-select .select, .filter-check { height: 44px; }
  .face { width: 80px; }
  .hires-split { gap: 16px; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .type-row { grid-template-columns: 1fr; gap: 4px; }
  .col-6 { grid-column: span 12; }
  .profile-main { padding: 0 12px; }
  .quick { gap: 4px; }
  .quick a { min-width: 60px; }
  .modal-demo { padding: 16px 8px; }
  .org-chart { align-items: safe center; }
  .org-children { gap: 8px; }
  .org-children .node { width: 100px; padding: 10px 6px; }
  .org-children::before { left: 50px; right: 50px; }
  .mainnav-demo a { min-height: 44px; }

  /* tables become stacked cards */
  .table-card { background: transparent; border: 0; box-shadow: none; overflow: visible; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table thead { display: none; }
  .table tr { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow-card); }
  .table td, .table th:first-child, .table td:first-child, .table td:last-child { padding: 0; border: 0; }
  .table td + td { margin-top: 12px; }
  .table td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--grey-600); margin-bottom: 4px; }
  .table tbody tr:hover td { background: transparent; }
  .table td.td-person { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
  .table .person a.name { display: inline-flex; min-height: 40px; align-items: center; }
  .table .person .sub { margin-top: -8px; }
  .table-onb tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 16px; }
  .table-onb td.td-person, .table-onb td:nth-child(n+4) { grid-column: 1 / -1; }
  .table-onb td:nth-child(3) { margin-top: 12px; }
  .seg { display: flex; width: 100%; }
  .seg a, .seg button { flex: 1 1 auto; justify-content: center; padding: 0 10px; }
  .onb-ready { justify-content: flex-start; }
  .onb-ready .caption { text-align: left !important; }
  .filters { width: 100%; }

  /* bottom tabs */
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--white); border-top: 1px solid var(--line); padding: 0 4px env(safe-area-inset-bottom); height: calc(64px + env(safe-area-inset-bottom)); }
}
.tabbar a { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; color: var(--grey-600); font-size: 12px; font-weight: 500; position: relative; }
.tabbar a:hover { text-decoration: none; color: var(--ink); }
.tabbar a[aria-current="page"] { color: var(--berry-600); font-weight: 600; }
.tabbar .ic { width: 22px; height: 22px; }
.tabbar .count { position: absolute; top: 4px; left: calc(50% + 4px); min-width: 20px; height: 20px; font-size: 12px; box-shadow: 0 0 0 2px var(--white); }

/* =====================================================================
   App additions (art-director fixes + screens beyond the design pages)
   ===================================================================== */
/* fix 2: progress fill is ink or green, berry stays for actions */
.bar > i { background: #3A3646; }
.bar-green > i { background: var(--green); }
/* fix 4: new hire cards show the title only, 2 lines max */
.hire .ttl { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px; }
/* fix 3: phone shortcuts form a 2 x 2 grid */
@media (max-width: 760px) {
  .shortcuts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; overflow: visible; margin: 0 0 16px; padding: 0; }
  .shortcut { height: auto; min-height: 44px; white-space: normal; }
}

/* widths without inline styles */
.w0{width:0}.w5{width:5%}.w10{width:10%}.w15{width:15%}.w20{width:20%}.w25{width:25%}.w30{width:30%}.w35{width:35%}.w40{width:40%}.w45{width:45%}.w50{width:50%}
.w55{width:55%}.w60{width:60%}.w65{width:65%}.w70{width:70%}.w75{width:75%}.w80{width:80%}.w85{width:85%}.w90{width:90%}.w95{width:95%}.w100{width:100%}
.mt-4{margin-top:4px}.mt-8{margin-top:8px}.mt-12{margin-top:12px}.mt-16{margin-top:16px}.mt-24{margin-top:24px}.mb-16{margin-bottom:16px}.mb-24{margin-bottom:24px}
.ink{color:var(--ink)} .full-w{width:100%} .gap-16{gap:16px} .gap-24{gap:24px} .ta-r{text-align:right}
.ic-berry{background:var(--berry-50);color:var(--berry-700)} .ic-amber{background:var(--amber-50);color:var(--amber)} .ic-red{background:var(--red-50);color:var(--red)} .ic-green{background:var(--green-50);color:var(--green)} .ic-grey{background:var(--grey-100);color:var(--ink)}
[hidden] { display: none !important; }
.link-btn { background: none; border: 0; padding: 0; color: var(--berry-700); font-weight: 500; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
fieldset.plain { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.plain > legend { padding: 0; margin-bottom: 6px; }
.radios { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.radios-col { display: flex; flex-direction: column; gap: 12px; }

/* top bar menus (no JS needed to open) */
.topbar { position: sticky; top: 0; z-index: 40; background: var(--white); border-bottom: 1px solid var(--line); }
.menu { position: relative; }
.menu:not([open]) > .menu-pop { display: none; }
.menu > summary { list-style: none; cursor: pointer; display: inline-flex; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 8px); width: 260px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-pop); padding: 8px; z-index: 50; }
.menu-pop .who { padding: 8px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu-pop a, .menu-pop button.item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 12px; border: 0; background: none; border-radius: 8px; color: var(--ink); font-weight: 500; text-align: left; cursor: pointer; }
.menu-pop a:hover, .menu-pop button.item:hover { background: var(--page); text-decoration: none; }
.bell-pop { width: 380px; padding: 0; }
.bell-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.bell-list { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow-y: auto; }
.bell-list li a { display: block; padding: 12px 16px; border-top: 1px solid var(--line); color: var(--ink); }
.bell-list li:first-child a { border-top: 0; }
.bell-list li a:hover { background: var(--page); text-decoration: none; }
.bell-list li.unread a { background: #FFF8FA; }
.bell-list .t { font-weight: 600; display: flex; gap: 8px; align-items: baseline; }
.bell-list li.unread .t::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--berry-600); flex: none; transform: translateY(-1px); }
@media (max-width: 760px) {
  .menu-pop { position: fixed; left: 8px; right: 8px; top: 60px; width: auto; }
  .bell-pop { width: auto; }
}

/* toasts */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: center; width: max-content; max-width: calc(100% - 32px); }
@media (max-width: 760px) { .toasts { bottom: calc(80px + env(safe-area-inset-bottom)); } }
.toast.is-error .ic { color: #FFB3A8; }

/* banners, errors, notes */
.banner-error { background: var(--red-50); border-color: #F2C2BD; }
.banner-error .ic { color: var(--red); }
.banner-ok { background: var(--green-50); border-color: #BFE3CD; }
.banner-ok .ic { color: var(--green); }
.banner .grow > * + * { margin-top: 4px; }
.form-error:empty { display: none; }
.err:empty { display: none; }

/* sign-in pages */
.auth-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.auth-top { padding: 24px 32px; }
.auth-main { flex: 1; display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 440px); gap: 32px; justify-content: center; align-items: start; padding: 24px 16px 48px; }
.auth-main.single { grid-template-columns: minmax(0, 440px); }
.auth-card { padding: 32px; }
.auth-card h1 { font-size: 24px; line-height: 32px; }
.auth-card .stack-16 > .btn { width: 100%; }
.sample-box { padding: 24px; }
.sample-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.sample-list button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--white); text-align: left; cursor: pointer; }
.sample-list button:hover { border-color: var(--berry-100); background: #FFFBFC; }
.sample-list .who { font-weight: 600; }
.code-input { font-size: 22px; letter-spacing: .3em; text-align: center; height: 52px; }
.secret { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; word-break: break-all; background: var(--page); padding: 12px; border-radius: 8px; }
.codes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; background: var(--page); padding: 12px 16px; border-radius: 8px; list-style: none; margin: 0; }
@media (max-width: 900px) { .auth-main { grid-template-columns: minmax(0, 440px); } .auth-top { padding: 16px; } .auth-card { padding: 24px 20px; } }

/* stack helpers */
.stack { display: flex; flex-direction: column; gap: 24px; }
.stack-16 { display: flex; flex-direction: column; gap: 16px; }
.stack-8 { display: flex; flex-direction: column; gap: 8px; }

/* home */
.week-list { list-style: none; margin: 0; padding: 0; }
.week-list li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.week-list li:first-child { border-top: 0; padding-top: 0; }
.week-list .day { width: 48px; flex: none; text-align: center; border-radius: 8px; background: var(--page); padding: 6px 0; line-height: 16px; }
.week-list .day b { display: block; font-size: 16px; line-height: 20px; }
.week-list .day span { font-size: 12px; color: var(--grey-600); }
.hires-col { display: flex; flex-direction: column; }
.hires-col .hire-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink); }
.hires-col .hire-row:first-child { border-top: 0; padding-top: 0; }
.hires-col .hire-row:hover { text-decoration: none; }
.hires-col .hire-row:hover .strong { color: var(--berry-700); }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sec-label { font-size: 13px; font-weight: 600; color: var(--grey-600); margin: 12px 0 4px; }
.sec-label:first-child { margin-top: 0; }

/* inbox */
.inbox-list > li { align-items: flex-start; }
.inbox-list .acts { display: flex; gap: 8px; flex: none; }
.inbox-list li.is-done .title { color: var(--grey-600); }
@media (max-width: 760px) { .inbox-list .acts { grid-column: 1 / -1; } }

/* task sheet */
.sheet-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
@media (max-width: 1100px) { .sheet-grid { grid-template-columns: minmax(0, 1fr); } }
.steps-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 16px; margin: 0; }
.facts dt { color: var(--grey-600); font-size: 13px; }
.facts dd { margin: 0; font-weight: 500; }
.comments { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.comments li { display: flex; gap: 12px; }
.comments .bubble { background: var(--page); border-radius: var(--r-card); padding: 10px 14px; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.history { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; color: var(--grey-600); }

/* people directory */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.pcard { display: flex; gap: 12px; align-items: center; padding: 14px 16px; color: var(--ink); }
.pcard:hover { border-color: var(--berry-100); text-decoration: none; }
.pcard .grow { min-width: 0; }
.pcard .strong, .pcard .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.search-row .input { max-width: 360px; }

/* profile */
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.tabs a { position: relative; display: inline-flex; align-items: center; height: 48px; padding: 0 12px; color: var(--grey-600); font-weight: 500; white-space: nowrap; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.tabs a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--berry-600); }
.tl-group + .tl-group { margin-top: 24px; }
.tl-group > h3 { margin-bottom: 8px; }
.tl { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.tl > li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); align-items: start; }
.tl > li:first-child { border-top: 0; }
.tl .st { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--grey-400); display: grid; place-content: center; margin-top: 1px; }
.tl .st.ok { background: var(--green); border-color: var(--green); color: var(--white); }
.tl .st.ok .ic { width: 14px; height: 14px; stroke-width: 2.5; }
.tl .st.skip { background: var(--grey-100); border-color: var(--grey-200); }
.tl .who { font-size: 13px; color: var(--grey-600); margin-top: 2px; }
.tl .when { text-align: right; font-size: 13px; color: var(--grey-600); white-space: nowrap; }
.tl .when .overdue { justify-content: flex-end; }
.tl li.is-done .ttl { color: var(--grey-600); }
@media (max-width: 760px) { .tl > li { grid-template-columns: 24px minmax(0, 1fr); } .tl .when { grid-column: 2; text-align: left; } .tl .when .overdue { justify-content: flex-start; } }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checks li { display: flex; gap: 8px; align-items: center; }
.checks .yes { color: var(--green); } .checks .no { color: var(--grey-400); } .checks .late { color: var(--red); }
.kv { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 12px 16px; margin: 0; }
.kv dt { color: var(--grey-600); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 760px) { .kv { grid-template-columns: minmax(0, 1fr); gap: 2px; } .kv dd { margin-bottom: 10px; } }

/* documents */
.folder + .folder { margin-top: 16px; }
.doc-row { display: flex; gap: 12px; align-items: center; }
.doc-icon { width: 40px; height: 40px; border-radius: 8px; background: var(--grey-100); display: grid; place-content: center; flex: none; }

/* plan editor */
.plan-rows { display: grid; gap: 12px; }
.plan-row { display: grid; grid-template-columns: 150px 120px minmax(0, 1fr) 180px 160px auto; gap: 8px; align-items: start; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--white); }
.plan-row .row-acts { display: flex; gap: 4px; }
.plan-head { display: grid; grid-template-columns: 150px 120px minmax(0, 1fr) 180px 160px 132px; gap: 8px; padding: 0 13px; font-size: 13px; font-weight: 600; color: var(--grey-600); }
@media (max-width: 1100px) {
  .plan-head { display: none; }
  .plan-row { grid-template-columns: 1fr 1fr; }
  .plan-row .f-what, .plan-row .row-acts { grid-column: 1 / -1; }
}
.plan-row .sr-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 1100px) { .plan-row .sr-label { position: static; width: auto; height: auto; clip: auto; font-size: 13px; font-weight: 600; color: var(--grey-600); margin-bottom: 4px; display: block; } }
.week-day + .week-day { margin-top: 16px; }
.week-day h3 { margin-bottom: 8px; }

/* welcome portal */
.welcome-hero { padding: 28px 32px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.welcome-hero h1 { font-size: 30px; line-height: 38px; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps > li > a, .steps > li > div { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 24px; border-top: 1px solid var(--line); color: var(--ink); }
.steps > li:first-child > a, .steps > li:first-child > div { border-top: 0; }
.steps > li > a:hover { background: #FCFBFD; text-decoration: none; }
.steps .num { width: 32px; height: 32px; border-radius: 50%; display: grid; place-content: center; font-weight: 700; background: var(--grey-100); }
.steps .num.ok { background: var(--green); color: var(--white); }
.steps .num.ok .ic { width: 16px; height: 16px; stroke-width: 2.5; }
@media (max-width: 760px) { .steps > li > a, .steps > li > div { padding: 14px 16px; grid-template-columns: 32px minmax(0, 1fr); } .steps .st-chip { grid-column: 2; justify-self: start; } .welcome-hero { padding: 20px; } .welcome-hero h1 { font-size: 26px; line-height: 32px; } }
.step-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.step-form .card-pad + .card-pad { margin-top: 0; }
.saved-at { font-size: 13px; color: var(--grey-600); }
.sig-box { border: 1px dashed var(--grey-400); border-radius: var(--r-card); padding: 16px; background: #FCFBFD; }
.sig-preview { font-size: 26px; line-height: 34px; font-style: italic; font-weight: 500; min-height: 34px; }
.policy-body { max-height: 260px; overflow-y: auto; padding: 16px; background: var(--page); border-radius: 8px; white-space: pre-line; font-size: 14px; line-height: 22px; }
.people-cards { display: grid; gap: 12px; }

/* admin */
.admin-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.admin-nav a { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: var(--r-pill); background: var(--white); border: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.admin-nav a:hover { border-color: var(--grey-400); text-decoration: none; }
.admin-sec { scroll-margin-top: 140px; }
.mini-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mini-table th { text-align: left; font-size: 13px; color: var(--grey-600); font-weight: 600; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.mini-table td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.mini-table tr:first-child td { border-top: 0; }
.scroll-x { overflow-x: auto; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.inline-form .field { flex: 1 1 180px; }

/* 404 and errors */
.nf-card { max-width: 560px; margin: 48px auto; padding: 40px 32px; }
.nf-card h1 { font-size: 26px; line-height: 34px; }
.hires-col .hire-row .grow { min-width: 0; display: flex; flex-direction: column; }
.hire .ttl.clamp2 { display: -webkit-box; }
@media (max-width: 760px) {
  .shortcuts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .shortcut { min-height: 44px; height: auto; padding: 10px 12px; border-radius: 12px; }
}

/* people pages */
.plain-list { list-style: none; margin: 0; padding: 0; }
.block { display: block; }
.ta-c { text-align: center; }
.fw-500 { font-weight: 500; }
.pron { font-size: 15px; font-weight: 500; color: var(--grey-600); }
.pad-y-12 { padding-top: 12px; padding-bottom: 12px; }
.pad-y-16 { padding-top: 16px; padding-bottom: 16px; }
.green { color: var(--green); }
.flip { transform: rotate(180deg); }
.needs-icon.sm { width: 32px; height: 32px; }
.req-meter.is-partial { background: var(--grey-100); color: var(--ink); }
.pay-grid { display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 8px; }
.affix .post { position: absolute; right: 14px; color: var(--grey-600); font-size: 15px; pointer-events: none; }
.affix-end .input { padding-left: 14px; padding-right: 52px; }
.what-line.col { flex-direction: column; gap: 4px; }
.what-line .lbl .d { display: block; }
.what-line .check { align-items: flex-start; }
.taskgroup-wrap { margin-top: 8px; }
.taskgroup-wrap summary { cursor: pointer; padding: 4px 0; }
.tasks .due { text-align: right; white-space: nowrap; color: var(--grey-600); }
.tasks .moved { display: block; color: var(--amber); font-size: 12px; white-space: normal; }
.tl .moved { color: var(--amber); font-size: 12px; }
.warn-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; line-height: 18px; color: var(--grey-600); }
.warn-list li { display: flex; gap: 8px; align-items: flex-start; }
.warn-list .ic { color: var(--amber); flex: none; margin-top: 1px; }
.file-input { padding: 10px 12px; height: auto; }
.search-row .select { width: auto; min-width: 180px; }
.plan-row.is-new { border-color: var(--berry-600); }
@media (max-width: 760px) {
  .pay-grid { grid-template-columns: minmax(0, 1fr) 128px; }
  .search-row .input { max-width: none; flex: 1 1 100%; }
  .search-row .select { flex: 1 1 auto; }
}

/* welcome steps */
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; }
.form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step-form > .card-pad + .card-pad { border-top: 1px solid var(--line); }
.step-form details > summary { cursor: pointer; }
.saved-at.is-warn { color: var(--amber); font-weight: 600; }
.welcome-hero .stack-8 { min-width: 280px; }
@media (max-width: 760px) { .form-grid.cols-3 { grid-template-columns: minmax(0, 1fr); } .welcome-hero .stack-8 { min-width: 0; width: 100%; } .welcome-hero .btn { width: 100%; justify-content: center; } }
.step-wrap { max-width: 880px; }
.narrow { max-width: 640px; margin: 0 auto; }
.auth-main.single .narrow { width: 100%; }
.auth-main.single.wide { grid-template-columns: minmax(0, 640px); }
.mb-32 { margin-bottom: 32px; }
tr[data-href] { cursor: pointer; }
tr[data-href]:hover td { background: #F8F7FA; }
.table-off th:nth-child(1) { width: 28%; }
.stack-12 { display: grid; gap: 12px; }
.pre-wrap { white-space: pre-wrap; }
.inbox-acts { flex-shrink: 0; }

/* admin console (S27) */
.mb-4{margin-bottom:4px}.mb-12{margin-bottom:12px}.mt-32{margin-top:32px}.pb-0{padding-bottom:0}
.admin-wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; }
.admin-side { position: sticky; top: 88px; }
.admin-side-h { font-size: 13px; color: var(--grey-600); padding: 0 12px; margin-bottom: 8px; }
.admin-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.admin-side a { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border-radius: 8px; color: var(--ink); font-weight: 500; }
.admin-side a .ic { color: var(--grey-600); }
.admin-side a:hover { background: var(--white); text-decoration: none; }
.admin-side a[aria-current="page"] { background: var(--berry-50); color: var(--berry-800); font-weight: 600; }
.admin-side a[aria-current="page"] .ic { color: var(--berry-600); }
.admin-main { min-width: 0; }
.admin-actions { border-top: 1px solid var(--line); margin-top: 24px; }
.select-sm { height: 40px; min-width: 132px; }
.input-sm { height: 40px; }
.user-find { flex: 0 1 340px; flex-wrap: nowrap; }
.user-find .input { flex: 1 1 auto; min-width: 0; }
.select-auto { width: auto; min-width: 220px; }
.btn-field { flex: none; }
.inline-form > .btn-field { align-self: flex-start; margin-top: 26px; }
.btn-danger-text { color: var(--red); }
.btn-danger-text:hover { background: var(--red-50); }
.table-users .td-acts { width: 1%; white-space: nowrap; }
.table-users .td-acts .row-8 { flex-wrap: nowrap; justify-content: flex-end; }
@media (min-width: 761px) {
  .table-users th, .table-users td { padding-left: 12px; padding-right: 12px; }
  .table-users th:first-child, .table-users td:first-child { padding-left: 24px; }
}
.table-users .td-person .sub { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-users td { vertical-align: middle; }
.table-teams th:nth-child(3) { width: 96px; }
.table-teams .input, .table-teams .select { max-width: 360px; }
.table-teams tr.tr-new td { background: #FCFBFD; }
.table-teams td { vertical-align: middle; }
@media (min-width: 1101px) {
  .plan-row.tpl-row, .plan-head.tpl-head { grid-template-columns: 120px 112px minmax(0, 1fr) 160px 150px 40px; }
}
.ck-who { margin-top: 24px; }
.plan-row [data-move][disabled] { visibility: hidden; }
.admin-main .page-head > .row-8 { flex-wrap: nowrap; flex: none; }
.table-audit td { font-size: 14px; }
.table-audit th:nth-child(1) { width: 150px; }
.ck-list { list-style: none; margin: 0; padding: 0; }
.ck-list > li + li { border-top: 1px solid var(--line); }
.ck-card { display: flex; align-items: center; gap: 12px; padding: 16px 24px; color: var(--ink); }
.ck-card:hover { background: #FCFBFD; text-decoration: none; }
.ck-row, .ck-head { grid-template-columns: minmax(0, 1fr) 220px 88px 150px auto; }
.ck-head { grid-template-columns: minmax(0, 1fr) 220px 88px 150px 132px; }
.hol-row { display: flex; align-items: center; gap: 16px; }
.hol-date { width: 120px; flex: none; }
.mail-list > li { display: block; }
.mail summary { display: flex; gap: 16px; align-items: flex-start; cursor: pointer; list-style: none; }
.mail summary::-webkit-details-marker { display: none; }
.mail-body { padding: 12px 16px; background: var(--page); border-radius: 8px; }
.dialog { border: 0; border-radius: var(--r-card); padding: 24px; width: min(440px, calc(100vw - 32px)); box-shadow: var(--shadow-pop); color: var(--ink); }
.dialog::backdrop { background: rgba(30, 27, 38, .4); }
.dialog-acts { justify-content: flex-end; }
@media (max-width: 1100px) {
  .ck-row { grid-template-columns: 1fr 1fr; }
  .ck-row .f-what, .ck-row .row-acts { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .admin-wrap { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .admin-side { position: static; margin: 0 -16px; }
  .admin-side-h { display: none; }
  .admin-side ul { display: flex; overflow-x: auto; gap: 8px; padding: 0 16px 4px; scrollbar-width: none; }
  .admin-side a { white-space: nowrap; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-pill); min-height: 40px; }
  .admin-side a[aria-current="page"] { border-color: var(--berry-100); }
}
@media (max-width: 760px) {
  .inline-form { flex-direction: column; align-items: stretch; }
  .inline-form .field { flex: none; }
  .btn-field, .inline-form > .btn-field { margin-top: 0; width: 100%; }
  .select-auto { min-width: 0; flex: 1 1 auto; }
  .hol-row { flex-wrap: wrap; gap: 4px 12px; }
  .hol-row .hol-date { width: auto; }
  .hol-row form { width: 100%; }
  .table-users .td-acts { width: auto; white-space: normal; }
  .table-users tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; }
  .table-users td.td-person, .table-users td.td-acts { grid-column: 1 / -1; }
  .table-users td:nth-child(3) { margin-top: 12px; }
  .table-users td.td-acts:empty { display: none; }
  .table-users .td-acts .row-8 { justify-content: flex-start; }
  .user-find { width: 100%; }
  .ck-card { padding: 14px 16px; }
  .admin-actions .btn-primary { width: 100%; }
}
