/* =====================================================================
 * styles.css — Farahi Law Firm Onboarding & Training Tracker
 * Brand (LIENWISE-aligned): Deep Green #0A2F26 / #10453A, Gold #C9A34E,
 * Warm Cream #F6F4ED. Display: Georgia. Body: system sans.
 * NOTE: the "--navy*" token names are kept (they're referenced app-wide);
 * their VALUES now hold the deep-green brand ramp.
 * ===================================================================== */

:root {
  --navy: #10453a;        /* primary deep green */
  --navy-deep: #0a2f26;   /* darkest — sidebar / topbar / hero */
  --navy-700: #175a4b;
  --navy-500: #1f7361;    /* links / accents / charts */
  --gold: #c9a34e;
  --gold-soft: #e4d2a4;
  --gold-deep: #a8862f;
  --cream: #f6f4ed;       /* page canvas — warm cream (reference) */
  --cream-deep: #ece8db;  /* secondary surface / wells / hovers */
  --ink: #1a231f;         /* primary text — warm deep green-gray */
  --ink-soft: #5c675f;    /* secondary text */
  --line: #e5e0d2;        /* hairline borders / dividers */
  --white: #ffffff;

  --ok: #2f7d5b;
  --ok-bg: #e6f2ec;
  --watch: #b9821f;
  --watch-bg: #fbf1dc;
  --risk: #b23b3b;
  --risk-bg: #fbe7e7;
  --info: #1f7361;
  --info-bg: #e7f0ec;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  /* Modern, soft, low-opacity layered elevation (warm green-tinted) */
  --shadow-sm: 0 1px 2px rgba(20, 33, 27, 0.05), 0 1px 1px rgba(20, 33, 27, 0.04);
  --shadow: 0 1px 3px rgba(20, 33, 27, 0.05), 0 8px 20px -6px rgba(20, 33, 27, 0.10);
  --shadow-md: 0 4px 10px -2px rgba(20, 33, 27, 0.06), 0 16px 36px -8px rgba(20, 33, 27, 0.14);
  --shadow-lg: 0 28px 64px -16px rgba(20, 33, 27, 0.30);

  /* Ink-grade status text (>=4.5:1 on tints); brighter base tokens kept for rails/icons */
  --ok-ink: #2c7254;
  --watch-ink: #8a6212;
  --gold-ink: #836620;
  --line-strong: #d5cfbe;

  /* Spacing scale (4/8/12/16/24/32) + one section gap */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --section-gap: 24px;

  /* Type scale + leading + caps tracking */
  --fs-2xs: 11px; --fs-xs: 12px; --fs-sm: 13px; --fs-base: 14px;
  --fs-md: 16px; --fs-lg: 20px; --fs-xl: 24px; --fs-2xl: 32px;
  --lh-tight: 1.15; --lh-snug: 1.3; --lh-normal: 1.5; --ls-caps: 0.08em;

  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Calibri, system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
}
h1, h2, h3, h4, .serif { font-family: var(--serif); }
a { color: var(--navy-500); }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; box-shadow: 0 0 0 4px rgba(201, 163, 78, .55); border-radius: 6px; }

/* ---------- App shell ---------- */
#app { min-height: 100vh; }
.shell { display: flex; min-height: 100vh; }
.main { flex: 1; min-width: 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 28px clamp(16px, 4vw, 40px) 64px; }

/* ---------- Top bar ---------- */
.topbar {
  background: linear-gradient(120deg, var(--navy-deep), var(--navy));
  color: var(--cream);
  border-bottom: 3px solid var(--gold);
}
.topbar-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px);
}
.brand-lockup { display: flex; align-items: center; gap: 12px; min-width: 0; }
.crest {
  width: 38px; height: 38px; border-radius: 9px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, var(--gold-soft), var(--gold) 60%, var(--gold-deep));
  color: var(--navy-deep); font-family: var(--serif); font-weight: 700; font-size: 18px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.brand-text { line-height: 1.1; min-width: 0; }
.brand-text .firm { font-family: var(--serif); font-size: 16px; letter-spacing: .2px; }
.brand-text .sub { font-size: 11.5px; color: var(--gold-soft); text-transform: uppercase; letter-spacing: 1.4px; }
.topbar-spacer { flex: 1; }
.topbar .pill {
  background: rgba(255, 255, 255, 0.1); color: var(--cream);
  border: 1px solid rgba(228, 210, 164, 0.35);
}

/* ---------- Sidebar (admin) ---------- */
.sidebar {
  width: 248px; flex: 0 0 248px; background: var(--navy-deep); color: var(--cream);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.sidebar .side-brand { padding: 20px 18px 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar .side-brand .firm { font-family: var(--serif); font-size: 15px; }
.sidebar .side-brand .sub { font-size: 10.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold-soft); }
.nav { padding: 14px 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; overflow-y: auto; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 10px;
  color: rgba(247, 244, 236, 0.82); text-decoration: none; font-size: 14.5px; font-weight: 500;
  transition: background .15s, color .15s;
}
.nav a .ic { width: 18px; text-align: center; opacity: .9; }
.nav a:hover { background: rgba(255, 255, 255, 0.06); color: var(--cream); }
.nav a.active { background: var(--gold); color: var(--navy-deep); font-weight: 600; }
.nav-badge { margin-left: auto; background: var(--risk); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 7px; }
.nav a.active .nav-badge { background: var(--navy-deep); }
.nav a.active .ic { opacity: 1; }
.side-foot { padding: 14px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; color: rgba(247,244,236,.6); }
.side-foot button { width: 100%; }

@media (max-width: 820px) {
  .shell { flex-direction: column; }
  .sidebar { width: auto; flex: none; height: auto; position: static; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .sidebar .side-brand { border-bottom: none; padding: 12px 14px; flex: 1 1 auto; }
  .nav { flex-direction: row; flex-wrap: wrap; padding: 0 10px 10px; gap: 6px; flex: 1 1 100%; }
  .nav a { padding: 8px 12px; font-size: 13.5px; }
  .side-foot { border-top: none; padding: 0 14px 12px; display: flex; align-items: center; gap: 12px; }
  .side-foot button { width: auto; }
}

/* ---------- Typography helpers ---------- */
.page-title { font-size: clamp(22px, 3vw, 30px); margin: 0 0 4px; color: var(--navy-deep); }
.page-sub { color: var(--ink-soft); margin: 0 0 22px; font-size: 14.5px; }
.eyebrow { text-transform: uppercase; letter-spacing: 1.6px; font-size: 11px; color: var(--gold-deep); font-weight: 700; }
.muted { color: var(--ink-soft); }
.section-title { font-size: 18px; color: var(--navy-deep); margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
hr.rule { border: none; border-top: 1px solid var(--line); margin: 22px 0; }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 20px;
}
.card.pad-lg { padding: 26px; }
.card-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 920px) { .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; } }

/* ---------- Stat tiles ---------- */
.stat {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 18px 16px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gold); }
.stat .k { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-soft); }
.stat .v { font-family: var(--serif); font-size: 32px; color: var(--navy-deep); line-height: 1.1; margin-top: 6px; }
.stat .d { font-size: 12.5px; color: var(--ink-soft); margin-top: 4px; }
.stat.good::before { background: var(--ok); }
.stat.watch::before { background: var(--watch); }
.stat.risk::before { background: var(--risk); }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; border: 1px solid transparent; white-space: nowrap;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.ok { color: var(--ok); background: var(--ok-bg); border-color: #cfe6da; }
.badge.watch { color: var(--watch); background: var(--watch-bg); border-color: #f0e0bd; }
.badge.risk { color: var(--risk); background: var(--risk-bg); border-color: #f1cccc; }
.badge.info { color: var(--info); background: var(--info-bg); border-color: #d3deef; }
.badge.neutral { color: var(--ink-soft); background: var(--cream-deep); border-color: var(--line); }
.badge.gold { color: var(--gold-deep); background: #f7eecf; border-color: var(--gold-soft); }
.badge.lg { font-size: 13.5px; padding: 5px 13px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 10px; border: 1px solid transparent; cursor: pointer;
  font-size: 14.5px; font-weight: 600; text-decoration: none; transition: filter .15s, background .15s, transform .04s;
  background: var(--cream-deep); color: var(--navy-deep);
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.primary { background: var(--navy); color: var(--cream); }
.btn.primary:hover { background: var(--navy-700); }
.btn.gold { background: var(--gold); color: var(--navy-deep); }
.btn.gold:hover { filter: brightness(1.04); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--navy-deep); }
.btn.ghost:hover { background: var(--cream-deep); }
.btn.danger { background: transparent; border-color: #e2b6b6; color: var(--risk); }
.btn.danger:hover { background: var(--risk-bg); }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.btn.block { width: 100%; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Forms ---------- */
.field { margin-bottom: 15px; }
.field > label, .lbl { display: block; font-size: 13px; font-weight: 600; color: var(--navy-deep); margin-bottom: 6px; }
.field .req { color: var(--risk); margin-left: 3px; }
.hint { font-size: 12.5px; color: var(--ink-soft); margin-top: 5px; }
input[type="text"], input[type="password"], input[type="number"], input[type="date"],
select, textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 15px; color: var(--ink); background: var(--white);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--gold); box-shadow: 0 0 0 1px var(--navy), 0 0 0 4px rgba(201, 163, 78, 0.45); outline: none;
}
textarea { resize: vertical; min-height: 78px; line-height: 1.5; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 140px; }
.input-invalid { border-color: var(--risk) !important; box-shadow: 0 0 0 3px rgba(178,59,59,.14) !important; }

/* Segmented choice (attendance / day rating / progress) */
.seg { display: flex; gap: 7px; flex-wrap: wrap; }
.seg .opt {
  flex: 1; min-width: 56px; text-align: center; cursor: pointer; user-select: none;
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 6px; background: var(--white);
  font-size: 13.5px; font-weight: 600; color: var(--ink-soft); transition: all .12s;
}
.seg .opt small { display: block; font-weight: 500; font-size: 11px; opacity: .8; }
.seg .opt:hover { border-color: var(--gold-soft); }
.seg .opt.on { background: var(--navy); border-color: var(--navy); color: var(--cream); }
.seg .opt.on.ok { background: var(--ok); border-color: var(--ok); }
.seg .opt.on.watch { background: var(--watch); border-color: var(--watch); }
.seg .opt.on.risk { background: var(--risk); border-color: var(--risk); }
.seg.scale .opt { min-width: 44px; }

/* Toggle (yes/no) */
.toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.toggle button { border: none; background: var(--white); padding: 8px 16px; cursor: pointer; font-weight: 600; color: var(--ink-soft); }
.toggle button.on { background: var(--navy); color: var(--cream); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tbl th, table.tbl td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
table.tbl thead th {
  background: var(--cream); color: var(--navy-deep); font-size: 12px; text-transform: uppercase;
  letter-spacing: .6px; position: sticky; top: 0;
}
table.tbl tbody tr { transition: background .12s; }
table.tbl tbody tr:hover { background: var(--cream); }
table.tbl tbody tr.clickable { cursor: pointer; }
table.tbl tbody tr:last-child td { border-bottom: none; }
.cell-strong { font-weight: 600; color: var(--navy-deep); }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin-left: 8px; padding-left: 22px; border-left: 2px solid var(--line); }
.tl-item { position: relative; padding: 0 0 20px 4px; }
.tl-item::before {
  content: ""; position: absolute; left: -29px; top: 3px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold); border: 2px solid var(--white); box-shadow: 0 0 0 1px var(--gold-soft);
}
.tl-date { font-size: 12.5px; color: var(--ink-soft); font-weight: 600; }
.tl-card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; margin-top: 6px; box-shadow: var(--shadow-sm); }

/* ---------- Progress bars ---------- */
.bar { height: 10px; border-radius: 999px; background: var(--cream-deep); overflow: hidden; }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-deep)); border-radius: 999px; }
.bar.navy > span { background: linear-gradient(90deg, var(--navy-500), var(--navy)); }

/* ---------- Mini bar charts (analytics) ---------- */
.vchart { display: flex; align-items: flex-end; gap: 8px; padding-top: 8px; }
.vcol { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.vbar-wrap { width: 100%; height: 130px; display: flex; align-items: flex-end; justify-content: center; }
.vbar { width: 62%; min-height: 3px; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--gold), var(--gold-deep)); transition: height .3s; }
.vbar.navy { background: linear-gradient(180deg, var(--navy-500), var(--navy)); }
.vbar.ok { background: linear-gradient(180deg, #57b487, var(--ok)); }
.vbar.watch { background: linear-gradient(180deg, #e0b14e, var(--watch)); }
.vbar.risk { background: linear-gradient(180deg, #d56b6b, var(--risk)); }
.vbar.neutral { background: linear-gradient(180deg, #b9c0cc, #8c97a8); }
.vnum { font-size: 11.5px; font-weight: 700; color: var(--navy-deep); }
.vlbl { font-size: 10.5px; color: var(--ink-soft); text-align: center; line-height: 1.15; }
.legend-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; font-size: 12px; color: var(--ink-soft); }
.legend-row .lg { display: flex; align-items: center; gap: 6px; }
.legend-row .sw { width: 11px; height: 11px; border-radius: 3px; }

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: 48px 24px; color: var(--ink-soft); }
.empty .em-ic { font-size: 40px; margin-bottom: 10px; }
.empty h3 { color: var(--navy-deep); margin: 0 0 6px; }

/* ---------- Premium dashboard components ---------- */
.card { transition: box-shadow .18s ease, transform .18s ease; }
.card.lift:hover, .qa-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Sidebar refinements */
.nav-label { padding: 12px 14px 5px; font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; color: rgba(228, 210, 164, 0.55); font-weight: 700; }
.nav a { position: relative; }
.nav a.active { box-shadow: 0 4px 12px rgba(201, 163, 78, 0.28); }
.side-search { padding: 12px 12px 4px; }
.ss-wrap { position: relative; }
.side-search-ic { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: rgba(247,244,236,.5); pointer-events: none; }
.side-search-ic svg { width: 100%; height: 100%; display: block; }
.side-search input { padding-left: 32px; }
.side-search input { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: var(--cream); font-size: 13px; padding: 9px 11px; }
.side-search input::placeholder { color: rgba(247,244,236,.5); }
.side-search input:focus { border-color: var(--gold); box-shadow: none; background: rgba(255,255,255,.12); }

/* Greeting hero */
.hero {
  background: linear-gradient(120deg, var(--navy-deep), var(--navy) 70%, #1b5747);
  color: var(--cream); border-radius: var(--radius); padding: 24px 26px; margin-bottom: 18px;
  position: relative; overflow: hidden; box-shadow: var(--shadow-md);
}
.hero::after { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(201,163,78,.22), transparent 70%); }
.hero .eyebrow { color: var(--gold-soft); }
.hero h1 { font-size: clamp(22px, 3vw, 28px); margin: 4px 0 6px; color: #fff; }
.hero .hero-sum { font-size: 14px; color: rgba(247,244,236,.85); }
.hero .hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; position: relative; z-index: 1; }

/* Jump-to search */
.jump { position: relative; min-width: 230px; }
.jump input { background: rgba(255,255,255,.1); border: 1px solid rgba(228,210,164,.35); color: #fff; padding: 10px 12px; border-radius: 10px; width: 100%; }
.jump input::placeholder { color: rgba(247,244,236,.6); }
.jump-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); overflow: hidden; z-index: 40; }
.jump-results a { display: block; padding: 10px 13px; color: var(--ink); text-decoration: none; font-size: 14px; border-bottom: 1px solid var(--line); }
.jump-results a:last-child { border-bottom: none; }
.jump-results a:hover { background: var(--cream); }

/* Quick actions */
.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
@media (max-width: 760px) { .quick-actions { grid-template-columns: repeat(2, 1fr); } }
.qa-tile {
  display: flex; align-items: center; gap: 12px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 15px 16px; cursor: pointer; text-decoration: none; color: var(--navy-deep);
  box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s;
}
.qa-tile .qa-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 19px; background: var(--cream-deep); flex: 0 0 auto; }
.qa-tile.gold .qa-ic { background: #f6ecce; }
.qa-tile .qa-t { font-weight: 600; font-size: 14px; }
.qa-tile .qa-s { font-size: 11.5px; color: var(--ink-soft); }

/* KPI deltas */
.delta { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.delta.up { color: var(--ok); background: var(--ok-bg); }
.delta.down { color: var(--risk); background: var(--risk-bg); }
.delta.flat { color: var(--ink-soft); background: var(--cream-deep); }

/* Attention banner */
.attention { display: flex; align-items: center; gap: 14px; border-radius: var(--radius); padding: 16px 20px; margin-bottom: 18px; background: linear-gradient(120deg, #fbe7e7, #fbf1dc); border: 1px solid #f0d9bd; }
.attention .att-ic { font-size: 24px; }
.attention .att-body { flex: 1; }
.attention .att-body strong { color: var(--navy-deep); }

/* Activity feed */
.feed-item { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.feed-item:last-child { border-bottom: none; }
.feed-item .fi-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: 0 0 auto; background: var(--cream-deep); color: var(--navy-deep); }
.feed-item .fi-main { flex: 1; min-width: 0; font-size: 13.5px; }
.feed-item .fi-meta { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }

/* Bulk capture grid */
.cap-row { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.cap-row:last-child { border-bottom: none; }
.cap-name { flex: 1 1 170px; min-width: 130px; font-weight: 600; color: var(--navy-deep); }
.cap-field .hint { margin: 0 0 3px; }
.minisel { display: inline-flex; gap: 3px; }
.minisel .b { border: 1px solid var(--line); background: #fff; border-radius: 7px; padding: 5px 10px; font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--ink-soft); }
.minisel .b:hover { border-color: var(--gold-soft); }
.minisel .b.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.minisel .b.on.ok { background: var(--ok); border-color: var(--ok); }
.minisel .b.on.risk { background: var(--risk); border-color: var(--risk); }
.minisel .b.on.watch { background: var(--watch); border-color: var(--watch); }
.cap-note { flex: 1 1 160px; min-width: 140px; }

/* Voice dictation button */
.dictate-btn { margin-top: 6px; }
.dictate-btn.listening { background: var(--risk); color: #fff; border-color: var(--risk); animation: dictpulse 1.2s infinite; }
@keyframes dictpulse { 0%, 100% { opacity: 1; } 50% { opacity: .6; } }

/* Tabs (role Training Plan) */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; }
.tabs a { padding: 10px 16px; text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; }
.tabs a:hover { color: var(--navy-deep); }
.tabs a.active { color: var(--navy-deep); border-bottom-color: var(--gold); }

/* Agenda items */
.agenda-day { font-family: var(--serif); font-weight: 700; color: var(--navy-deep); font-size: 14px; margin: 14px 0 4px; padding: 4px 10px; background: var(--cream-deep); border-radius: 8px; display: inline-block; }
.agenda-item { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.agenda-item:last-child { border-bottom: none; }
.agenda-num { width: 27px; height: 27px; border-radius: 50%; background: var(--cream-deep); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--navy-deep); flex: 0 0 auto; }
.agenda-item.done .agenda-num { background: var(--ok); color: #fff; }
.agenda-main { flex: 1; min-width: 0; }
.agenda-main .at { font-weight: 600; color: var(--navy-deep); }
.agenda-item.done .agenda-main .at { text-decoration: line-through; color: var(--ink-soft); }
.agenda-checkrow { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.agenda-checkrow:last-child { border-bottom: none; }
.agenda-checkrow input { width: 18px; height: 18px; flex: 0 0 auto; }

/* Attachments */
.att-chip { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.att-chip:last-child { border-bottom: none; }
.att-chip img { width: 42px; height: 42px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); flex: 0 0 auto; }
.att-chip .att-ic { width: 42px; height: 42px; border-radius: 8px; display: grid; place-items: center; background: var(--cream-deep); font-size: 19px; flex: 0 0 auto; }
.att-chip .att-meta { flex: 1; min-width: 0; }
.att-chip .att-name { font-weight: 600; color: var(--navy-deep); text-decoration: none; word-break: break-word; }
.att-chip .att-name:hover { text-decoration: underline; }

/* Avatars */
.avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12.5px; font-weight: 700; background: linear-gradient(135deg, var(--navy-500), var(--navy)); color: var(--cream); flex: 0 0 auto; }
.avatar.gold { background: linear-gradient(135deg, var(--gold-soft), var(--gold-deep)); color: var(--navy-deep); }
.avatar.sm { width: 26px; height: 26px; font-size: 10.5px; }
.named { display: flex; align-items: center; gap: 10px; }

/* Buttons: subtle modern depth */
.btn.primary, .btn.gold { box-shadow: 0 2px 8px rgba(3, 30, 57, 0.12); }

/* ---------- Landing ---------- */
.landing { min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(1200px 600px at 70% -10%, #12305f 0%, var(--navy-deep) 55%); }
.landing-card { width: min(560px, 100%); }
.landing-hero { text-align: center; color: var(--cream); margin-bottom: 26px; }
.landing-hero .crest { width: 64px; height: 64px; font-size: 30px; margin: 0 auto 16px; border-radius: 16px; }
.landing-hero h1 { font-size: 30px; margin: 0 0 6px; color: var(--white); }
.landing-hero p { margin: 0; color: var(--gold-soft); }
.role-grid { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .role-grid { grid-template-columns: 1fr; } }
.role-btn {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px;
  text-align: left; cursor: pointer; box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s;
  display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink);
}
.role-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.role-btn .role-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: var(--cream-deep); }
.role-btn.gold .role-ic { background: #f6ecce; }
.role-btn h3 { margin: 0; color: var(--navy-deep); font-size: 18px; }
.role-btn p { margin: 0; font-size: 13px; color: var(--ink-soft); }

/* ---------- Capture (mobile-first) ---------- */
.capture-shell { max-width: 640px; margin: 0 auto; padding: 0 0 90px; }
.capture-top {
  position: sticky; top: 0; z-index: 20; background: linear-gradient(120deg, var(--navy-deep), var(--navy));
  color: var(--cream); border-bottom: 3px solid var(--gold);
}
.capture-top-inner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; max-width: 640px; margin: 0 auto; }
.capture-body { padding: 18px 16px 0; }
.trainee-line { border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 12px; padding: 14px; margin-bottom: 14px; background: var(--white); box-shadow: var(--shadow-sm); }
.trainee-line .tl-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.sticky-submit {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; padding: 12px 16px;
  background: rgba(247, 244, 236, 0.94); backdrop-filter: blur(6px); border-top: 1px solid var(--line);
}
.sticky-submit .inner { max-width: 640px; margin: 0 auto; }

/* ---------- Concern/issue collapsible ---------- */
.disclosure { border: 1px dashed var(--line); border-radius: 12px; padding: 12px 14px; background: var(--cream); }
.disclosure.active { background: var(--white); border-style: solid; }

/* ---------- Modal ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(3, 30, 57, 0.5); display: grid; place-items: center; z-index: 100; padding: 20px; }
.modal { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); width: min(560px, 100%); max-height: 88vh; overflow: auto; }
.modal-hd { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.modal-hd h3 { margin: 0; color: var(--navy-deep); }
.modal-bd { padding: 20px 22px; }
.modal-ft { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }
.icon-x { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--ink-soft); line-height: 1; }

/* ---------- Toast ---------- */
#toast-host { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--navy-deep); color: var(--cream); padding: 12px 18px; border-radius: 10px; box-shadow: var(--shadow-lg); font-size: 14px; border-left: 3px solid var(--gold); animation: toastIn .2s ease; }
.toast.ok { border-left-color: var(--ok); }
.toast.err { border-left-color: var(--risk); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Report output ---------- */
.report-out {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 34px;
  font-size: 14.5px; line-height: 1.6; box-shadow: var(--shadow-sm);
}
.report-out h1 { font-size: 24px; color: var(--navy-deep); border-bottom: 3px solid var(--gold); padding-bottom: 10px; margin-top: 0; }
.report-out h2 { font-size: 18px; color: var(--navy-deep); margin-top: 26px; border-bottom: 1px solid var(--line); padding-bottom: 5px; }
.report-out h3 { font-size: 15px; color: var(--navy-700); margin-top: 18px; }
.report-out ul { padding-left: 20px; }
.report-out table { border-collapse: collapse; width: 100%; margin: 10px 0; }
.report-out th, .report-out td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; font-size: 13.5px; }
.report-out th { background: var(--cream); }
.report-meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 0; }

/* ---------- Misc ---------- */
.flex { display: flex; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; }
.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 14px; font-size: 14px; }
.kv .k { color: var(--ink-soft); }
.divider-soft { height: 1px; background: var(--line); margin: 16px 0; }

/* ---------- Print (report → branded PDF) ---------- */
.report-print-head, .report-print-foot { display: none; }
@media print {
  @page { margin: 16mm 14mm 20mm; }
  .topbar, .sidebar, .no-print, .sticky-submit, #toast-host { display: none !important; }
  body { background: var(--white); }
  .wrap { padding: 0; max-width: none; }
  .report-out { border: none; box-shadow: none; padding: 0; }
  .report-out h1 { border-bottom: 2px solid var(--navy); }

  .report-print-head { display: flex !important; align-items: center; gap: 12px; padding-bottom: 10px; margin-bottom: 14px; border-bottom: 2px solid var(--gold); }
  .report-print-head .crest { width: 34px; height: 34px; font-size: 17px; }
  .report-print-head .firm { font-family: var(--serif); font-size: 16px; color: var(--navy-deep); font-weight: 700; }
  .report-print-head .sub { font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold-deep); }
  .report-print-foot {
    display: block !important; position: fixed; bottom: 0; left: 0; right: 0;
    text-align: center; font-size: 9.5px; color: var(--ink-soft);
    border-top: 1px solid var(--gold); padding-top: 5px;
  }
}

/* ---- Phase handoffs / endorsements -------------------------------- */
.hof-arrow { color: var(--gold-deep); font-weight: 700; padding: 0 2px; }
.hof-card { border-left: 3px solid var(--gold); }
.hof-warn {
  background: var(--watch-bg); border: 1px solid var(--watch); color: var(--ink);
  border-radius: 10px; padding: 10px 13px; font-size: 13.5px; margin: 4px 0 14px;
}
.hof-endorse-hd { margin-bottom: 12px; }
.hof-doc {
  max-height: 62vh; overflow: auto; background: var(--cream);
  border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px;
}
.hof-doc .report-out { background: transparent; box-shadow: none; padding: 0; }
.hof-pick {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px; margin-bottom: 7px; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.hof-pick:hover { border-color: var(--gold); background: var(--cream); }
.hof-pick .hint { margin-left: auto; }
.hof-bulk-row { align-items: center; gap: 12px; }
.hof-bulk-pick { display: flex; align-items: center; gap: 8px; flex: 1; font-weight: 600; cursor: pointer; }

/* =====================================================================
 * Dashboard — premium pass (UI/UX Pro Max)
 * SVG icons, KPI cards, segmented pipeline, tabular figures, motion.
 * ===================================================================== */
.ic-svg { width: 100%; height: 100%; display: block; }

/* Hero: pulse chips + search field icon */
.hero-pulse { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-top: 10px; }
.pulse-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: rgba(247,244,236,.92); }
.pulse-chip.soft { color: rgba(247,244,236,.7); }
.pulse-chip b { font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255,255,255,.08); }
.pulse-dot.ok { background: #5fc79a; } .pulse-dot.watch { background: var(--gold-soft); } .pulse-dot.risk { background: #e98a8a; }
.pulse-sep { width: 1px; height: 14px; background: rgba(228,210,164,.3); }
.jump { display: flex; align-items: center; }
.jump-ic { position: absolute; left: 12px; top: 11px; width: 18px; height: 18px; color: rgba(247,244,236,.7); pointer-events: none; z-index: 1; }
.jump input { padding-left: 38px; transition: border-color .15s, background .15s; }
.jump input:focus { border-color: var(--gold); background: rgba(255,255,255,.16); outline: none; }

/* Quick actions: SVG icon chips */
.qa-tile .qa-ic { color: var(--gold-deep); }
.qa-tile .qa-ic .ic-svg { width: 21px; height: 21px; }
.qa-tile.gold .qa-ic { color: var(--gold-deep); }
.qa-tile:not(.gold) .qa-ic { color: var(--navy-500); }
.qa-tile { transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.qa-tile:hover { border-color: var(--gold-soft); }

/* KPI cards */
.kpi-row { margin-bottom: 16px; }
.kpi-card {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .16s ease, box-shadow .16s ease;
}
.kpi-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gold); }
.kpi-card.watch::before { background: var(--watch); }
.kpi-card.good::before { background: var(--ok); }
.kpi-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kpi-k { font-size: 11.5px; text-transform: uppercase; letter-spacing: .8px; color: var(--ink-soft); font-weight: 600; }
.kpi-ic { width: 34px; height: 34px; border-radius: 10px; padding: 7px; background: var(--cream); color: var(--gold-deep); display: grid; place-items: center; flex: 0 0 auto; }
.kpi-card.watch .kpi-ic { background: var(--watch-bg); color: var(--watch); }
.kpi-card.good .kpi-ic { background: var(--ok-bg); color: var(--ok); }
.kpi-v { font-family: var(--serif); font-size: 33px; line-height: 1.05; color: var(--navy-deep); margin: 9px 0 4px; font-variant-numeric: tabular-nums; }
.kpi-d { font-size: 12.5px; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* Segmented onboarding pipeline */
.pipeline-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--cream-deep); margin: 4px 0 12px; box-shadow: inset 0 1px 2px rgba(3,30,57,.06); }
.pl-seg { height: 100%; transition: width .4s cubic-bezier(.2,.7,.3,1); }
.pl-seg + .pl-seg { box-shadow: inset 1px 0 0 rgba(255,255,255,.5); }
.pipeline-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.pl-lg { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-soft); }
.pl-lg b { color: var(--navy-deep); font-weight: 700; font-variant-numeric: tabular-nums; }
.pl-dot { width: 9px; height: 9px; border-radius: 3px; flex: 0 0 auto; }
.kicker { font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--ink-soft); font-weight: 700; margin: 2px 0 8px; }

/* Attention banner: icon chip + info variant */
.attention .att-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; padding: 9px; background: rgba(178,59,59,.12); color: var(--risk); flex: 0 0 auto; }
.attention .att-ic .ic-svg { width: 100%; height: 100%; }
.attention.info { background: linear-gradient(120deg, var(--info-bg), var(--cream)); border-color: #cfe0d7; }
.attention.info .att-ic { background: rgba(42,74,127,.12); color: var(--info); }

/* Activity feed polish */
.feed-item .fi-ic { box-shadow: 0 0 0 2px var(--white), 0 0 0 3px var(--gold-soft); background: var(--cream); }
.feed-item { transition: background .15s ease; border-radius: 8px; padding-left: 6px; padding-right: 6px; margin: 0 -6px; }
.feed-item:hover { background: var(--cream); }

/* Watchlist table refinements (scoped) */
.dash-table thead th { font-size: 11px; text-transform: uppercase; letter-spacing: .7px; color: var(--ink-soft); background: var(--cream); border-bottom: 1px solid var(--line); }
.dash-table tbody tr { transition: background .14s ease; }
.dash-table tbody td { border-bottom: 1px solid var(--line); }
.dash-table td.num { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--navy-deep); }
.dash-table tbody tr.row-risk td:first-child { box-shadow: inset 3px 0 0 var(--risk); }
.dash-table tbody tr.row-watch td:first-child { box-shadow: inset 3px 0 0 var(--watch); }
.dash-table tbody tr:hover { background: var(--cream); }

/* Subtle staggered entrance — motion conveys load order; respects reduced-motion */
@keyframes riseIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  [data-anim] { animation: riseIn .34s cubic-bezier(.2,.7,.3,1) both; animation-delay: calc(var(--d, 0) * 60ms); }
}

/* =====================================================================
 * Modern refresh (UI/UX Pro Max) — contemporary surfaces, elevation,
 * type rhythm. Token-driven; brand navy/gold preserved.
 * ===================================================================== */
body { line-height: 1.5; letter-spacing: .005em; }

/* Type: tighter, more deliberate display tracking + clearer hierarchy */
h1, h2, h3, .serif { letter-spacing: -.01em; }
.page-title { letter-spacing: -.022em; font-weight: 700; }
.page-sub { margin-bottom: 24px; }
.section-title { font-size: 17px; letter-spacing: -.01em; }
.eyebrow { letter-spacing: 1.8px; }

/* Cards: crisp white, generous padding, soft modern elevation */
.card { padding: 22px; box-shadow: var(--shadow-sm); }
.card.lift:hover, .qa-tile:hover, .kpi-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* Hero: larger radius + richer depth */
.hero { border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 28px 30px; }

/* Sidebar: refined active pill + readable dark-surface controls */
.nav a.active { box-shadow: 0 6px 16px rgba(201, 163, 78, .30); }
.side-foot .btn.ghost { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: var(--cream); }
.side-foot .btn.ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); }

/* Buttons: subtle depth on emphasis, clean surface on secondary */
.btn { border-radius: 10px; }
.btn.primary, .btn.gold { box-shadow: var(--shadow-sm); }
.btn.primary:hover, .btn.gold:hover { box-shadow: var(--shadow); }
.btn.ghost { background: var(--white); }
.btn.ghost:hover { background: var(--cream); border-color: #d3d8e4; }

/* Inputs: cleaner radius (focus ring defined once, above) */
input[type="text"], input[type="password"], input[type="number"], input[type="date"], select, textarea { border-radius: 10px; }

/* Tables: modern header treatment + comfortable density */
.table-wrap { box-shadow: var(--shadow-sm); }
table.tbl th, table.tbl td { padding: 13px 16px; }
table.tbl thead th { font-weight: 700; color: var(--ink-soft); letter-spacing: .5px; border-bottom: 1px solid var(--line); }
table.tbl tbody tr:hover { background: var(--cream); }

/* Badges: a touch tighter for a refined, modern chip */
.badge { padding: 3px 9px; }

/* =====================================================================
 * Design-system pass (UI/UX Pro Max audit) — token consolidation,
 * WCAG contrast fixes, spacing rhythm, data-viz repair. Authoritative.
 * ===================================================================== */

/* --- Accessibility: status text now meets 4.5:1 on its tint --- */
.badge.ok, .delta.up { color: var(--ok-ink); }
.badge.watch { color: var(--watch-ink); }
.kpi-card.watch .kpi-ic { color: var(--watch-ink); }
.badge.gold { color: var(--navy-deep); background: #f4e8c6; border-color: #d8c089; }
.eyebrow { color: var(--gold-ink); }
.hero .eyebrow { color: var(--gold-soft); } /* keep light on navy */

/* --- Secondary buttons: visible edge on white cards --- */
.btn.ghost { background: var(--white); border-color: var(--line-strong); color: var(--navy-deep); }
.btn.ghost:hover { background: var(--cream); border-color: #c2c9d8; }
.btn.sm { border-radius: 9px; }

/* --- Spacing rhythm: 16 within sections, 24 between --- */
.hero, .attention, .quick-actions, .kpi-row { margin-bottom: var(--section-gap); }
.quick-actions { gap: var(--s4); }
.card-hd { margin-bottom: var(--s4); }

/* --- Card / tile padding squared on the 8-grid --- */
.card { padding: var(--s5); }
.card.pad-lg { padding: var(--s6); }
.qa-tile { padding: var(--s4); }
.kpi-card, .stat { padding: 18px; }

/* --- Typography: one caps-label role, one display-number, scaled meta --- */
.eyebrow, .stat .k, .kpi-k, .kicker {
  font-size: var(--fs-2xs); letter-spacing: var(--ls-caps); text-transform: uppercase; font-weight: 700;
}
table.tbl thead th { font-size: var(--fs-xs); letter-spacing: var(--ls-caps); font-weight: 700; color: var(--ink-soft); }
.stat .v, .kpi-v {
  font-family: var(--serif); font-size: var(--fs-2xl); line-height: var(--lh-tight);
  font-variant-numeric: tabular-nums; letter-spacing: -.01em;
}
.btn, .nav a, .tabs a, table.tbl { font-size: var(--fs-base); }
.btn.sm { font-size: var(--fs-sm); }
.hint, .stat .d, .kpi-d, .qa-tile .qa-s, .feed-item .fi-meta { font-size: var(--fs-xs); }
.page-sub { font-size: var(--fs-md); line-height: var(--lh-snug); margin-bottom: var(--s5); }
.agenda-day { font-family: var(--sans); font-weight: 700; }

/* --- Emphasis weight ladder: 600 for small sans numerics (700 read blocky) --- */
.vnum, .delta, .pl-lg b, .dash-table td.num { font-weight: 600; }

/* --- Pipeline bar: a real, readable stacked bar --- */
.pipeline-bar { height: 18px; }
.pl-seg {
  min-width: 6px; display: grid; place-items: center; color: #fff;
  font: 700 11px/1 var(--sans); font-variant-numeric: tabular-nums; text-shadow: 0 1px 1px rgba(3, 30, 57, .4);
}
.pl-seg + .pl-seg { box-shadow: inset 2px 0 0 #fff; }
.pl-seg.narrow b { display: none; }
.pl-lg b { min-width: 1.6ch; text-align: right; display: inline-block; }

/* --- Upcoming new hires list (dashboard card + Upcoming view) --- */
.up-list { display: flex; flex-direction: column; }
.up-row {
  display: flex; align-items: center; gap: var(--s4); padding: 11px var(--s2); margin: 0 calc(-1 * var(--s2));
  border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); border-radius: 8px;
  transition: background .14s ease;
}
.up-row:last-child { border-bottom: none; }
.up-row:hover { background: var(--cream); }
.up-when { flex: 0 0 76px; display: flex; flex-direction: column; line-height: 1.2; }
.up-when b { font-family: var(--serif); color: var(--navy-deep); font-size: var(--fs-md); }
.up-main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.up-mgr { flex: 0 0 auto; text-align: right; }
@media (max-width: 620px) { .up-mgr { display: none; } }

/* --- Trainer capture: Daily ⇄ Bulk mode toggle --- */
.cap-modes { display: inline-flex; gap: 4px; padding: 4px; background: var(--cream-deep); border-radius: 12px; margin-bottom: 14px; }
.cap-mode { padding: 8px 16px; border-radius: 9px; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-soft); text-decoration: none; transition: background .14s ease, color .14s ease; }
.cap-mode:hover { color: var(--navy-deep); }
.cap-mode.on { background: var(--white); color: var(--navy-deep); box-shadow: var(--shadow-sm); }

/* --- Agenda dropdown inside the trainer bulk groups --- */
.ag-drop { border: 1px solid var(--line); border-radius: 10px; margin: 4px 0 10px; background: var(--cream); }
.ag-drop > summary { cursor: pointer; padding: 9px 13px; font-weight: 600; font-size: var(--fs-sm); color: var(--navy-deep); list-style: none; user-select: none; }
.ag-drop > summary::-webkit-details-marker { display: none; }
.ag-drop > summary::before { content: "▸ "; color: var(--gold-deep); }
.ag-drop[open] > summary::before { content: "▾ "; }
.ag-drop[open] > summary { border-bottom: 1px solid var(--line); }
.ag-drop-body { padding: 10px 13px; }

/* =====================================================================
 * Dashboard charts (SVG) — premium analytics: trend line, bars, rings.
 * ===================================================================== */
.chart-card .chart-line, .chart-card .chart-bars { display: block; width: 100%; margin-top: 6px; }
.chart-donut { display: block; }
.chart-donut-num { font-family: var(--serif); font-weight: 700; font-size: 22px; fill: var(--navy-deep); }
.chart-bar-val { font-family: var(--sans); font-weight: 700; font-size: 12px; fill: var(--navy-deep); font-variant-numeric: tabular-nums; }
.chart-bar-lbl { font-family: var(--sans); font-weight: 600; font-size: 12px; fill: var(--ink-soft); }
.chart-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.chart-foot b { font-family: var(--serif); color: var(--navy-deep); font-variant-numeric: tabular-nums; }

/* Ring KPI cards (donut + label) */
.ring-card { display: flex; align-items: center; gap: var(--s4); }
.ring-wrap { flex: 0 0 auto; width: 88px; }
.ring-wrap .chart-donut { width: 88px; height: 88px; }
.ring-meta { min-width: 0; }
.ring-label { font-weight: 700; color: var(--navy-deep); font-size: var(--fs-md); }
.ring-sub { margin-top: 2px; }
@media (max-width: 720px) { .ring-wrap { width: 76px; } .ring-wrap .chart-donut { width: 76px; height: 76px; } }
