:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --hover: #f1f5fe;
  --border: #e7e8eb;
  --border-strong: #d9dbe0;
  --text: #0f1115;
  --text-2: #0f1115;
  --muted: #0f1115;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-weak: #eef3fe;
  --chart-1: #2a78d6;
  --chart-base: #8a8f99;
  --chart-band: #eceef1;
  --red: #b42318; --red-bg: #fdecea; --red-bd: #f6cfcb;
  --amber: #a15c07; --amber-bg: #fdf3e2; --amber-bd: #f3dcb2;
  --green: #17723b; --green-bg: #e9f6ee;
  --blue: #1d4fbf; --blue-bg: #ebf1fd;
  --violet: #5a3fc0; --violet-bg: #f1edfc;
  --teal: #0f6e6a; --teal-bg: #e6f5f4;
  --gray: #0f1115; --gray-bg: #eef0f3;
  --radius: 8px;
  --sidebar: 228px;
  font-size: 13px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; font-feature-settings: 'tnum' 1, 'cv11' 1; line-height: 1.4; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
svg.lucide { width: 16px; height: 16px; stroke-width: 1.75; flex: none; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.link { color: var(--accent); cursor: pointer; }
.link:hover { text-decoration: underline; }

/* ---------- Shell ---------- */
.app { display: grid; grid-template-columns: var(--sidebar) 1fr; height: 100vh; transition: grid-template-columns .15s; }
.app.collapsed { --sidebar: 60px; }
.sidebar { border-right: 1px solid var(--border); background: #fff; display: flex; flex-direction: column; min-height: 0; padding: 10px 10px 8px; }
.brand { display: flex; align-items: center; gap: 6px; padding: 4px 6px 14px; font-weight: 700; font-size: 15px; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; }
.brand .logo-load { font-weight: 800; }
.brand .logo-up { color: var(--accent); font-weight: 800; }
.brand .logo-360 { background: var(--accent); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700; padding: 2px 6px; }
.brand .sub { color: var(--muted); font-weight: 500; font-size: 12px; margin-left: 2px; }
.nav-label { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; padding: 8px 8px 6px; white-space: nowrap; overflow: hidden; }
.nav { display: flex; flex-direction: column; gap: 3px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 7px 9px; border-radius: 6px; color: var(--text); font-weight: 500; background: var(--surface); white-space: nowrap; overflow: hidden; }
.nav a:hover { background: var(--hover); }
.nav a.active { background: var(--accent); color: #fff; }
.nav a .count { margin-left: auto; font-size: 11px; font-weight: 600; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red-bg); color: var(--red); display: inline-flex; align-items: center; justify-content: center; }
.nav a.active .count { background: rgba(255,255,255,.22); color: #fff; }
.sidebar .spacer { flex: 1; }
.profile { display: flex; align-items: center; gap: 9px; padding: 8px 6px; border-top: 1px solid var(--border); margin-top: 8px; white-space: nowrap; overflow: hidden; }
.profile .who { min-width: 0; }
.profile .who b { display: block; font-size: 13px; }
.profile .who span { font-size: 11.5px; color: var(--muted); }
.app.collapsed .nav a span, .app.collapsed .nav a .count, .app.collapsed .nav-label, .app.collapsed .brand .sub, .app.collapsed .brand .logo-load, .app.collapsed .brand .logo-up, .app.collapsed .profile .who { display: none; }
.app.collapsed .nav a { justify-content: center; }

.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.topbar { min-width: 0; overflow: hidden; height: 48px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 16px 0 12px; border-bottom: 1px solid var(--border); background: #fff; }
.topbar .sep { width: 1px; height: 20px; background: var(--border); margin: 0 4px; }
.topbar .grow { flex: 1; }
.asof { font-size: 12px; color: var(--muted); white-space: nowrap; }
.demo-pill { font-size: 11px; font-weight: 600; color: var(--gray); background: var(--gray-bg); border-radius: 4px; padding: 2px 6px; letter-spacing: .02em; white-space: nowrap; }
.content { flex: 1; overflow: auto; min-height: 0; }
.page { padding: 18px 24px 32px; max-width: 1600px; }
.page-head { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.page-head h1 { font-size: 19px; font-weight: 700; margin: 0; letter-spacing: -0.01em; }
.page-head .desc { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }

/* ---------- Controls ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 1px solid var(--border-strong); background: #fff; border-radius: 6px; cursor: pointer; font-weight: 500; white-space: nowrap; }
.btn:hover { background: var(--hover); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-hover); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--hover); }
.btn.icon { width: 30px; padding: 0; justify-content: center; }
.btn.sm { height: 26px; padding: 0 8px; font-size: 12px; }
.btn .caret { color: var(--muted); }
.select { position: relative; display: inline-flex; }
.select select { appearance: none; height: 30px; padding: 0 28px 0 10px; border: 1px solid var(--border-strong); border-radius: 6px; background: #fff; cursor: pointer; font-size: 12.5px; max-width: 220px; }
.select select.set { border-color: var(--accent); background: var(--accent-weak); color: var(--blue); }
.select::after { content: ''; position: absolute; right: 10px; top: 12px; width: 6px; height: 6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); pointer-events: none; }
.search { position: relative; display: inline-flex; align-items: center; }
.search svg { position: absolute; left: 9px; color: var(--muted); width: 15px; height: 15px; }
.search input { height: 30px; border: 1px solid var(--border-strong); border-radius: 6px; padding: 0 10px 0 30px; width: 240px; background: #fff; }
input:focus, select:focus, textarea:focus, .btn:focus-visible { outline: 2px solid rgba(37,99,235,.25); outline-offset: 0; border-color: var(--accent); }
.filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.filters .grow { flex: 1; }
.seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 6px; overflow: hidden; background: #fff; }
.seg button { border: 0; background: transparent; height: 28px; padding: 0 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-weight: 500; border-right: 1px solid var(--border); }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--accent); color: #fff; font-weight: 600; }
.chips { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 28px; padding: 0 10px; border: 1px solid var(--border-strong); background: #fff; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--text-2); }
.chip .n { color: inherit; opacity: .75; font-weight: 500; font-size: 11.5px; }
.chip.on { background: var(--text); border-color: var(--text); color: #fff; }
.chip.on .n { color: rgba(255,255,255,.7); }
.clear-link { font-size: 12px; color: var(--accent); cursor: pointer; background: none; border: 0; padding: 0 4px; }

/* popover */
.pop { position: absolute; z-index: 60; background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 24px rgba(16,24,40,.12); padding: 6px; min-width: 200px; }
.pop .item { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 5px; cursor: pointer; }
.pop .item:hover { background: var(--hover); }
.pop .item.on { font-weight: 600; }
.pop .item .chk { margin-left: auto; color: var(--accent); }
.pop hr { border: 0; border-top: 1px solid var(--border); margin: 6px 0; }
.pop .custom { padding: 6px 8px; display: grid; gap: 6px; }
.pop .custom input { height: 28px; border: 1px solid var(--border-strong); border-radius: 5px; padding: 0 6px; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 4px; font-size: 11.5px; font-weight: 500; white-space: nowrap; background: var(--gray-bg); color: var(--gray); }
.badge svg.lucide { width: 12px; height: 12px; stroke-width: 2; }
.badge.green { background: var(--green-bg); color: var(--green); }
.badge.blue { background: var(--blue-bg); color: var(--blue); }
.badge.violet { background: var(--violet-bg); color: var(--violet); }
.badge.teal { background: var(--teal-bg); color: var(--teal); }
.badge.amber { background: var(--amber-bg); color: var(--amber); }
.badge.red { background: var(--red-bg); color: var(--red); }
.badge.outline { background: #fff; border: 1px solid var(--border-strong); color: var(--text-2); }
.badge.dark { background: #e6e7ea; color: #2b2f38; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: currentColor; flex: none; }
.pulse { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.avatar { width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); color: var(--text-2); font-size: 10px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; flex: none; border: 1px solid var(--border); }
.avatar.lg { width: 30px; height: 30px; font-size: 11.5px; }
.sev { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; font-size: 12px; }
.sev.critical { color: var(--red); }
.sev.warning { color: var(--amber); }

/* ---------- Panels ---------- */
.panel { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; min-width: 0; }
.panel-h { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--border); min-height: 44px; }
.panel-h h3 { margin: 0; font-size: 13px; font-weight: 600; white-space: nowrap; }
.panel-h .sub { color: var(--muted); font-size: 12px; }
.panel-h .r { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.panel-b { padding: 12px 14px; }
.panel-b.flush { padding: 0; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
.grid-halves { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.stack { display: grid; gap: 16px; }

/* KPI strip */
.kpis { display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 16px; background: #fff; }
.kpi { padding: 11px 14px 10px; border-right: 1px solid var(--border); min-width: 0; cursor: default; }
.kpi:last-child { border-right: 0; }
.kpi.clickable { cursor: pointer; }
.kpi.clickable:hover { background: var(--hover); }
.kpi .l { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.kpi .v { font-size: 20px; font-weight: 650; letter-spacing: -0.02em; margin-top: 3px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi .s { font-size: 11.5px; color: var(--muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.delta { font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.delta.good { color: var(--green); }
.delta.bad { color: var(--red); }
.delta.flat { color: var(--muted); font-weight: 500; }
.info-tip { color: var(--muted); cursor: help; display: inline-flex; }
.info-tip svg.lucide { width: 13px; height: 13px; }

/* ---------- Tables ---------- */
.tbl-wrap { overflow: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tbl th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 8px 10px; border-bottom: 1px solid var(--border); background: var(--surface); white-space: nowrap; position: sticky; top: 0; z-index: 1; user-select: none; }
.tbl th.sortable { cursor: pointer; }
.tbl th.sortable:hover { color: var(--text); }
.tbl th .arr { font-size: 10px; margin-left: 3px; color: var(--text); }
.tbl td { padding: 7px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr.clickable { cursor: pointer; }
.tbl tbody tr.clickable:hover td { background: var(--hover); }
.tbl td.r, .tbl th.r { text-align: right; }
.tbl .primary { font-weight: 550; }
.tbl .sub { color: var(--muted); font-size: 11.5px; }
.tbl .clip { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.tbl tr.total td { font-weight: 600; background: #fff; border-top: 2px solid var(--border-strong); }
.tbl tr.flagged td:first-child { box-shadow: inset 3px 0 0 var(--amber); }
.tbl-foot { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.tbl-foot .grow { flex: 1; }
.empty { padding: 36px 16px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--text); font-weight: 600; margin-bottom: 4px; }

/* ---------- Overview ---------- */
.funnel { display: grid; gap: 2px; }
.f-row { display: grid; grid-template-columns: 130px 1fr 56px 168px; align-items: center; gap: 12px; padding: 6px 0; cursor: pointer; border-radius: 4px; }
.f-row:hover .f-bar i { background: var(--accent-hover); }
.f-name { font-weight: 500; }
.f-bar { height: 18px; background: #eef1f6; border-radius: 3px; position: relative; }
.f-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--chart-1); border-radius: 3px; min-width: 2px; }
.f-n { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.f-c { font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.f-c .m { color: var(--muted); }
.note { font-size: 11.5px; color: var(--muted); display: flex; gap: 6px; align-items: flex-start; }
.note svg.lucide { width: 13px; height: 13px; margin-top: 1px; }

.alert-list { display: flex; flex-direction: column; }
.alert-item { padding: 11px 14px; border-bottom: 1px solid var(--border); cursor: pointer; display: grid; grid-template-columns: 16px 1fr; gap: 10px; }
.alert-item:last-child { border-bottom: 0; }
.alert-item:hover { background: var(--hover); }
.alert-item .ic { margin-top: 1px; }
.alert-item .ic.critical { color: var(--red); }
.alert-item .ic.warning { color: var(--amber); }
.alert-item .t { font-weight: 600; font-size: 12.5px; }
.alert-item .w { color: var(--text-2); font-size: 12px; margin-top: 2px; }
.alert-item .meta { display: flex; gap: 10px; margin-top: 6px; font-size: 11.5px; color: var(--muted); flex-wrap: wrap; align-items: center; }
.calm { padding: 26px 16px; text-align: center; }
.calm .ok { width: 32px; height: 32px; border-radius: 50%; background: var(--green-bg); color: var(--green); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.calm b { display: block; }
.calm span { color: var(--muted); font-size: 12px; }

.mini-list { display: grid; }
.mini-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; padding: 7px 14px; border-bottom: 1px solid var(--border); align-items: center; font-size: 12.5px; cursor: pointer; }
.mini-row:hover { background: var(--hover); }
.mini-row:last-child { border-bottom: 0; }

/* ---------- Board ---------- */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.col { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; max-height: calc(100vh - 200px); min-width: 0; }
.col-h { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-bottom: 1px solid var(--border); font-weight: 600; }
.col-h .n { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.col-h .s { margin-left: auto; font-size: 11px; color: var(--muted); font-weight: 500; }
.col-b { overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 8px 10px; cursor: pointer; }
.card:hover { border-color: var(--border-strong); box-shadow: 0 1px 2px rgba(16,24,40,.06); }
.card .r1 { display: flex; align-items: center; gap: 6px; }
.card .nm { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .id { color: var(--muted); font-size: 11px; }
.card .r2 { color: var(--text-2); font-size: 12px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .r3 { display: flex; align-items: center; gap: 6px; margin-top: 7px; font-size: 11.5px; color: var(--muted); }
.card .r3 .grow { flex: 1; }
.col-more { margin: 2px 0 4px; }
.col-empty { padding: 18px 8px; text-align: center; color: var(--muted); font-size: 12px; }

/* ---------- Drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(15,17,21,.38); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .15s; }
.scrim.open { opacity: 1; pointer-events: auto; }
/* Detail views open as a large centered modal (not a side panel). */
.drawer { position: fixed; left: 50%; top: 24px; bottom: 24px; width: min(var(--dw, 1000px), calc(100vw - 48px)); background: #fff; z-index: 50; border-radius: 12px; box-shadow: 0 24px 64px rgba(16,24,40,.28); transform: translate(-50%, 14px); opacity: 0; pointer-events: none; transition: opacity .16s ease, transform .16s ease; display: flex; flex-direction: column; overflow: hidden; }
.drawer.open { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.drawer .d-head { padding: 16px 24px 14px; }
.drawer .d-body { padding: 4px 24px 32px; }
@media (max-width: 860px) { .drawer { top: 0; bottom: 0; width: 100vw; border-radius: 0; } }
.d-head { padding: 14px 20px 12px; border-bottom: 1px solid var(--border); flex: none; }
.d-crumb { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.d-crumb .back { cursor: pointer; color: var(--accent); display: inline-flex; align-items: center; gap: 2px; }
.d-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.d-title h2 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.d-title .x { margin-left: auto; }
.d-meta { display: flex; gap: 14px; margin-top: 6px; color: var(--text-2); font-size: 12.5px; flex-wrap: wrap; align-items: center; }
.d-meta span { display: inline-flex; align-items: center; gap: 5px; }
.d-meta svg.lucide { width: 14px; height: 14px; color: var(--muted); }
.d-body { flex: 1; overflow-y: auto; padding: 4px 20px 32px; }
.sec { padding: 16px 0 4px; border-bottom: 1px solid var(--border); }
.sec:last-child { border-bottom: 0; }
.sec > h4 { margin: 0 0 10px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; display: flex; align-items: center; gap: 8px; }
.sec > h4 .r { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 500; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px 20px; margin-bottom: 12px; }
.kv div { min-width: 0; }
.kv dt { font-size: 11.5px; color: var(--muted); }
.kv dd { margin: 1px 0 0; font-weight: 500; overflow-wrap: anywhere; }
.d-cols { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; }
.crit { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-bottom: 12px; }
.crit td { padding: 7px 8px 7px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.crit tr:last-child td { border-bottom: 0; }
.crit .st { width: 92px; }
.crit .q { color: var(--text-2); font-style: italic; }
.crit .src { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.st-met { color: var(--green); display: inline-flex; gap: 4px; align-items: center; font-weight: 500; }
.st-not { color: var(--red); display: inline-flex; gap: 4px; align-items: center; font-weight: 500; }
.st-na { color: var(--muted); display: inline-flex; gap: 4px; align-items: center; }
.st-met svg.lucide, .st-not svg.lucide, .st-na svg.lucide { width: 14px; height: 14px; }
.callrow { display: grid; grid-template-columns: 110px 96px 1fr auto; gap: 12px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; margin-bottom: 6px; cursor: pointer; align-items: start; font-size: 12.5px; }
.callrow:hover { background: var(--hover); }
.callrow .sm { color: var(--text-2); }
.timeline { list-style: none; margin: 0 0 12px; padding: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 12px 22px; font-size: 12.5px; }
.timeline li::before { content: ''; position: absolute; left: 5px; top: 14px; bottom: -2px; width: 1px; background: var(--border-strong); }
.timeline li:last-child::before { display: none; }
.timeline li .mk { position: absolute; left: 0; top: 4px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--border-strong); background: #fff; }
.timeline li.bad .mk { border-color: var(--red); }
.timeline li.alert .mk { border-color: var(--amber); background: var(--amber); }
.timeline li.good .mk { border-color: var(--green); background: var(--green); }
.timeline li.cur .mk { border-color: var(--accent); background: var(--accent); }
.timeline .tt { color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.timeline .by { color: var(--muted); }
.notes .n { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 12.5px; }
.notes .n:last-child { border-bottom: 0; }
.notes .n .h { display: flex; gap: 8px; color: var(--muted); font-size: 11.5px; margin-bottom: 2px; align-items: center; }
.notes .n .h b { color: var(--text); font-weight: 600; }
.note-form { display: grid; gap: 8px; margin: 6px 0 12px; }
.note-form textarea { border: 1px solid var(--border-strong); border-radius: 6px; padding: 8px; min-height: 58px; resize: vertical; }
.actions-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.callout { border: 1px solid var(--border); background: var(--surface); border-radius: 6px; padding: 10px 12px; font-size: 12.5px; margin-bottom: 12px; }
.callout.warn { background: var(--amber-bg); border-color: var(--amber-bd); }
.callout.crit { background: var(--red-bg); border-color: var(--red-bd); }
.callout .h { font-weight: 600; display: flex; align-items: center; gap: 6px; margin-bottom: 3px; }

/* player */
.player { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; margin: 14px 0 4px; }
.player .play { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--text); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.player .play svg.lucide { width: 15px; height: 15px; }
.wave { display: flex; align-items: center; gap: 2px; height: 34px; cursor: pointer; }
.wave i { flex: 1; background: var(--border-strong); border-radius: 1px; min-width: 2px; }
.wave i.p { background: var(--chart-1); }
.player .time { font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.player .speed { height: 26px; border: 1px solid var(--border-strong); border-radius: 5px; background: #fff; padding: 0 6px; font-size: 12px; cursor: pointer; }
.transcript { display: grid; gap: 10px; }
.tl-line { display: grid; grid-template-columns: 40px 1fr; gap: 8px; font-size: 12.5px; padding: 2px 4px; border-radius: 4px; }
.tl-line.now { background: var(--accent-weak); }
.tl-line .ts { color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; cursor: pointer; padding-top: 1px; }
.tl-line .who { font-weight: 600; font-size: 11.5px; color: var(--text-2); }
.tl-line.driver .who { color: var(--blue); }
.tl-line.system { color: var(--muted); font-style: italic; }

/* charts */
.chart { position: relative; width: 100%; }
.chart svg { display: block; overflow: visible; }
.chart text { font-size: 11px; fill: var(--muted); font-family: inherit; }
.chart .axis line, .chart .grid line { stroke: var(--border); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); align-items: center; }
.legend .sw { display: inline-block; width: 14px; height: 0; border-top: 2px solid var(--chart-1); margin-right: 5px; vertical-align: middle; }
.legend .sw.base { border-top: 2px dashed var(--chart-base); }
.legend .sw.band { height: 10px; border: 0; background: var(--chart-band); }
.legend .sw.bar { height: 10px; border: 0; background: var(--chart-1); border-radius: 2px; width: 10px; }
.tip { position: fixed; z-index: 80; pointer-events: none; background: #fff; border: 1px solid var(--border); box-shadow: 0 6px 18px rgba(16,24,40,.12); border-radius: 6px; padding: 7px 9px; font-size: 12px; min-width: 140px; display: none; }
.tip .h { font-weight: 600; margin-bottom: 4px; }
.tip .r { display: flex; justify-content: space-between; gap: 14px; color: var(--text-2); }
.tip .r b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

.diag { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.diag td { padding: 6px 0; border-bottom: 1px solid var(--border); }
.diag td:first-child { color: var(--muted); width: 44%; padding-right: 12px; }
.diag tr:last-child td { border-bottom: 0; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: 8px; margin: 14px 0 4px; }
.facts > div { padding: 9px 12px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); min-width: 0; }
.facts > div:nth-child(4n) { border-right: 0; }
.facts > div:nth-last-child(-n+4) { border-bottom: 0; }
.facts dt { font-size: 11.5px; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 550; font-size: 12.5px; }
.rules { font-size: 12px; color: var(--text-2); }
.rules li { margin-bottom: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .grid-2 { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpi:nth-child(3n) { border-right: 0; }
  .kpi:nth-child(-n+3) { border-bottom: 1px solid var(--border); }
  .d-cols { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .app, .app.collapsed { grid-template-columns: minmax(0, 1fr); }
  .app .sidebar { position: fixed; z-index: 45; left: 0; top: 0; bottom: 0; width: 228px; transform: translateX(-100%); transition: transform .15s; }
  .app.mobile-open .sidebar { transform: none; box-shadow: 8px 0 24px rgba(0,0,0,.12); }
  .app.collapsed .nav a span, .app.collapsed .nav-label, .app.collapsed .profile .who, .app.collapsed .brand .logo-load, .app.collapsed .brand .logo-up { display: initial; }
  .page { padding: 14px 16px 28px; }
  .grid-halves { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi { border-bottom: 1px solid var(--border); }
  .kpi:nth-child(3n) { border-right: 1px solid var(--border); }
  .kpi:nth-child(2n) { border-right: 0; }
  .asof, .topbar .hide-sm, .demo-pill, #rangeBtn .caret, #companyBtn .caret { display: none; }
  #companyBtn b { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; }
  .topbar { gap: 4px; padding: 0 8px; }
  .panel-h { flex-wrap: wrap; }
  .panel-h .r { margin-left: 0; }
  .search input { width: 100%; }
  .search { flex: 1 1 100%; }
  .f-row { grid-template-columns: 96px 1fr 44px; }
  .f-row .f-c { grid-column: 2 / 4; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div:nth-child(2n) { border-right: 0; }
  .callrow { grid-template-columns: 1fr auto; }
}

/* horizontal bars */
.hb { display: grid; gap: 4px; }
.hb-row { display: grid; grid-template-columns: 190px 1fr 64px; gap: 10px; align-items: center; padding: 4px 0; cursor: pointer; font-size: 12.5px; }
.hb-row:hover .hb-l { color: var(--accent); }
.hb-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.hb-t { height: 14px; position: relative; }
.hb-t i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--chart-1); border-radius: 0 3px 3px 0; min-width: 2px; }
.hb-v { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.sm-label { font-size: 12px; color: var(--text-2); font-weight: 500; margin: 2px 0 2px; display: flex; gap: 8px; align-items: baseline; }
.sm-label .muted { font-weight: 400; }
@media (max-width: 860px) { .hb-row { grid-template-columns: 120px 1fr 56px; } }

/* drag & drop */
.card[draggable="true"] { cursor: grab; }
.card.dragging { opacity: .45; cursor: grabbing; }
.col.drop { border-color: var(--accent); background: var(--accent-weak); box-shadow: inset 0 0 0 1px var(--accent); }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 90; background: var(--text); color: #fff; border-radius: 8px; padding: 9px 12px 9px 14px; font-size: 12.5px; display: flex; gap: 14px; align-items: center; box-shadow: 0 8px 24px rgba(16,24,40,.2); transition: opacity .15s, transform .15s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast-btn { background: transparent; border: 0; color: #9ec5f4; font-weight: 600; cursor: pointer; padding: 2px 4px; }

/* overview: attention lines + decisions */
.attn { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 16px; background: #fff; }
.attn-row { display: grid; grid-template-columns: 10px minmax(200px, 1.3fr) minmax(160px, 1fr) 70px minmax(150px, 1fr) 16px; gap: 14px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--border); cursor: pointer; font-size: 13px; }
.attn-row:last-child { border-bottom: 0; }
.attn-row:hover { background: var(--hover); }
.attn-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.attn-dot.critical { background: var(--red); }
.attn-t { font-weight: 600; }
.attn-g { color: var(--text-2); font-variant-numeric: tabular-nums; }
.attn-d { color: var(--muted); font-variant-numeric: tabular-nums; }
.attn-a { color: var(--accent); font-weight: 500; }
.attn-go { color: var(--muted); }
.calm-line { display: flex; gap: 8px; align-items: center; padding: 10px 14px; color: var(--green); font-weight: 500; }
.kpi.hl { background: var(--surface); }
.shift { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--border); background: var(--surface); font-size: 12.5px; border-radius: 0 0 var(--radius) var(--radius); }
.shift svg.lucide { color: var(--accent); }
.shift .muted { font-size: 11.5px; flex-basis: 100%; padding-left: 26px; }
@media (max-width: 860px) {
  .attn-row { grid-template-columns: 10px 1fr 16px; row-gap: 2px; }
  .attn-g, .attn-d, .attn-a { grid-column: 2; }
  .attn-go { grid-column: 3; grid-row: 1; }
}
#decTbl td:nth-child(2) { min-width: 240px; }

/* heatmap */
.hm { display: grid; gap: 2px; align-items: center; }
.hm i { height: 26px; border-radius: 2px; display: flex; align-items: center; justify-content: center; cursor: default; font-style: normal; font-size: 11px; font-weight: 500; font-variant-numeric: tabular-nums; }
.hm-scroll { overflow-x: auto; }
.hm-scroll .hm { min-width: 640px; }
.hm i:hover { outline: 2px solid var(--text); outline-offset: -1px; }
.hm-c { font-size: 10.5px; color: var(--muted); text-align: center; white-space: nowrap; overflow: visible; }
.hm-r { font-size: 11px; color: var(--text-2); }
.hm-legend { display: flex; align-items: center; gap: 2px; margin-top: 8px; font-size: 11px; color: var(--muted); justify-content: flex-end; }
.hm-legend i { width: 18px; height: 8px; border-radius: 1px; display: inline-block; }
.hm-legend span { margin: 0 6px; }

/* business flow */
.flow { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.fl-step { padding: 12px 14px; border-right: 1px solid var(--border); position: relative; cursor: pointer; min-width: 0; }
.fl-step:last-child { border-right: 0; }
.fl-step:hover { background: var(--hover); }
.fl-step:not(:last-child)::after { content: ''; position: absolute; right: -6px; top: 22px; width: 10px; height: 10px; background: #fff; border-top: 1px solid var(--border); border-right: 1px solid var(--border); transform: rotate(45deg); z-index: 1; }
.fl-step:hover::after { background: var(--hover); }
.fl-l { font-size: 12px; color: var(--muted); white-space: nowrap; }
.fl-v { font-size: 22px; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-top: 2px; }
.fl-p { font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fl-lost { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--border-strong); font-size: 12px; color: var(--text-2); }
.fl-lost b { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.fl-lost .r { color: var(--muted); font-size: 11.5px; margin-top: 2px; line-height: 1.35; }
.fl-act { font-size: 11.5px; color: var(--blue); margin-top: 4px; }
.reason-g { font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 12px 0 4px; display: flex; justify-content: space-between; }
.reason-g:first-child { margin-top: 0; }
@media (max-width: 1180px) { .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); } .fl-step::after { display: none; } .fl-step { border-bottom: 1px solid var(--border); } }
@media (max-width: 860px) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* report */
.report h2 { font-size: 14px; margin: 0 0 8px; }
.report .rsec { margin-bottom: 22px; }
.report .summary { font-size: 13.5px; line-height: 1.6; color: var(--text-2); max-width: 980px; }
.report .summary b { color: var(--text); }
@media print {
  .sidebar, .topbar, .no-print, .scrim, .drawer, .tip { display: none !important; }
  .app { display: block; height: auto; }
  .content { overflow: visible; }
  .page { padding: 0; max-width: none; }
  .panel, .rsec { break-inside: avoid; }
}

/* application answers */
.app-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-bottom: 12px; font-size: 13px; }
.as { display: inline-flex; align-items: center; gap: 5px; color: var(--text-2); }
.as b { font-size: 15px; color: var(--text); font-variant-numeric: tabular-nums; }
.as svg.lucide { width: 15px; height: 15px; stroke-width: 2.4; }
.as.ok svg { color: var(--green); }
.as.bad svg { color: var(--red); }
.as.warn svg { color: var(--amber); }
.as.zero { opacity: .45; }
.as-bar { display: inline-flex; gap: 3px; margin-left: auto; }
.as-bar i { width: 18px; height: 8px; border-radius: 2px; background: var(--green); opacity: .85; }
.as-bar i.bad { background: var(--red); opacity: 1; }
.as-bar i.warn { background: #e5a000; opacity: 1; }
.as-bar.sm { margin: 6px 0 0; display: flex; }
.as-bar.sm i { width: auto; flex: 1; height: 4px; }
.qa-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
.qa { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: start; padding: 9px 11px; border: 1px solid var(--border); border-radius: 6px; background: #fff; }
.qa.bad { background: var(--red-bg); border-color: var(--red-bd); }
.qa.warn { background: var(--amber-bg); border-color: var(--amber-bd); }
.qa-ic { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.qa-ic svg.lucide { width: 13px; height: 13px; stroke-width: 2.6; }
.qa.ok .qa-ic { background: var(--green-bg); color: var(--green); }
.qa.bad .qa-ic { background: var(--red); color: #fff; }
.qa.warn .qa-ic { background: #e5a000; color: #fff; }
.qa-q { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.qa-a { font-size: 14px; font-weight: 600; margin-top: 2px; }
.qa.bad .qa-a { color: var(--red); }
.qa-n { font-size: 12px; color: var(--amber); font-weight: 600; margin-top: 2px; }
.qa-r { font-size: 11.5px; color: var(--muted); text-align: right; max-width: 130px; line-height: 1.3; }
.qa-info { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; padding: 8px 2px 10px; }
.qa-info em { font-style: normal; color: var(--muted); margin-right: 4px; }
.qa-info em::after { content: ':'; }
@media (max-width: 1180px) { .qa-grid { grid-template-columns: 1fr; } }

/* team workflow */
button.profile { width: 100%; border: 0; border-top: 1px solid var(--border); background: transparent; cursor: pointer; text-align: left; border-radius: 0; }
button.profile:hover { background: var(--hover); }
.profile .caret { margin-left: auto; color: var(--muted); }
.col.live { background: #fff; border-color: #cfdcf7; }
.col-sub { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 4px 2px 0; display: flex; justify-content: space-between; }
.card.mine { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.card .who { font-size: 12px; color: var(--text-2); }
.claim-timer { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--blue); white-space: nowrap; }
.claim-timer.warn { color: var(--amber); }
.claim-timer.big { font-size: 13px; }
.own { border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; margin: 14px 0 2px; display: grid; gap: 10px; background: var(--surface); }
.own.open { background: #fff; }
.own.taken { background: var(--blue-bg); border-color: #cfdcf7; }
.own.warn { background: var(--amber-bg); border-color: var(--amber-bd); }
.own-main { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font-size: 13px; }
.own-main b { font-size: 14px; }
.own-main span { color: var(--text-2); }
.own-act { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.own-rule { font-size: 11.5px; color: var(--muted); }
.activity { list-style: none; margin: 0 0 12px; padding: 0; }
.activity li { display: grid; grid-template-columns: 24px 1fr; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 12.5px; }
.activity li:last-child { border-bottom: 0; }
.activity .a-ic { width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; color: var(--text-2); }
.activity .a-ic svg.lucide { width: 13px; height: 13px; }
.activity li.t-take .a-ic { background: var(--blue-bg); color: var(--blue); }
.activity li.t-return .a-ic { background: var(--amber-bg); color: var(--amber); }
.activity li.t-call .a-ic, .activity li.t-sms .a-ic { background: var(--green-bg); color: var(--green); }
.activity li.sys { color: var(--muted); }
.activity li.sys .a-ic { background: transparent; }
.activity .tt { color: var(--muted); font-size: 11.5px; }
.a-ok { display: inline-block; font-size: 11px; font-weight: 600; color: var(--green); background: var(--green-bg); border-radius: 3px; padding: 0 5px; margin-left: 4px; }
.rules-form { display: grid; gap: 10px; padding: 8px; width: 330px; }
.rule { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.rule span { display: grid; }
.rule em { font-style: normal; color: var(--muted); font-size: 11.5px; }
.rule input, .rule select { width: 72px; height: 28px; border: 1px solid var(--border-strong); border-radius: 5px; padding: 0 6px; }

/* pool page + view switch */
.view-as { border-color: var(--accent); color: var(--blue); background: var(--accent-weak); }
.view-as b { font-weight: 600; color: var(--text); }
.view-as:hover { background: #e2eafd; }
.nav a .count.blue { background: var(--blue-bg); color: var(--blue); }
.nav a.active .count.blue { background: rgba(255,255,255,.22); color: #fff; }
.mine-strip { border: 1px solid #cfdcf7; background: var(--blue-bg); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 14px; }
.ms-h { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.ms-h .link { margin-left: auto; font-size: 12.5px; }
.ms-list { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.ms-item { display: inline-flex; gap: 10px; align-items: center; background: #fff; border: 1px solid #cfdcf7; border-radius: 6px; padding: 6px 10px; cursor: pointer; font-size: 12.5px; }
.ms-item.warn { border-color: var(--amber-bd); background: var(--amber-bg); }
.col-link { font-size: 12px; color: var(--accent); padding: 0 2px 2px; }
a.kpi { color: inherit; display: block; }

/* live RingCentral call */
.live-call { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 8px 12px; font-size: 13px; }
.live-call .btn { margin-left: auto; }
.lc-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.lc-dot.ringing { background: var(--accent); animation: pulse 1s ease-in-out infinite; }
.lc-dot.on { background: var(--green); }
.btn.danger { border-color: var(--red-bd); color: var(--red); }
.btn.danger:hover { background: var(--red-bg); }

/* RingCentral panel (mock of the LoadUp integration) */
.rc { position: fixed; right: 16px; bottom: 0; width: 250px; z-index: 70; background: #fff; border: 1px solid var(--border); border-bottom: 0; border-radius: 10px 10px 0 0; box-shadow: 0 -4px 24px rgba(16,24,40,.12); font-size: 12.5px; }
.rc.open { width: 250px; bottom: 16px; border-bottom: 1px solid var(--border); border-radius: 12px; }
.rc-h { display: flex; align-items: center; gap: 6px; padding: 9px 10px; cursor: pointer; border-bottom: 1px solid transparent; }
.rc.open .rc-h { border-bottom-color: var(--border); }
.rc-h { white-space: nowrap; }
.rc-h b { font-size: 14px; font-weight: 600; }
.rc-on { color: #16a34a; font-weight: 600; font-size: 12px; }
.rc-logo { width: 20px; height: 20px; border-radius: 50%; background: #e11d48; color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.rc-logo svg.lucide { width: 11px; height: 11px; stroke-width: 2.4; }
.rc-live { font-size: 11.5px; color: var(--green); font-weight: 600; font-variant-numeric: tabular-nums; }
.rc-chev { margin-left: auto; color: var(--text-2); display: inline-flex; }
.rc-f { display: grid; grid-template-columns: 62px 1fr; align-items: center; gap: 6px; padding: 5px 8px; border-bottom: 1px solid var(--border); }
.rc-f > label:first-child { color: var(--text-2); }
.rc-f .select select { width: 100%; max-width: none; height: 28px; font-size: 11.5px; }
.rc-tabs { display: grid; grid-template-columns: repeat(3, 1fr); padding: 6px 8px; border-bottom: 1px solid var(--border); }
.rc-tabs button { border: 0; background: transparent; height: 30px; border-radius: 7px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; justify-self: center; width: 34px; color: var(--text); }
.rc-tabs button.on { background: var(--accent); color: #fff; }
.rc-b { padding: 8px 10px 14px; }
.rc-to { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 6px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.rc-to label { color: var(--text-2); }
.rc-to input { height: 30px; border: 1px solid var(--border-strong); border-radius: 6px; padding: 0 8px; min-width: 0; }
.rc-x { border: 0; background: transparent; cursor: pointer; color: var(--muted); display: inline-flex; }
.rc-match { display: flex; gap: 5px; align-items: center; font-size: 11.5px; color: var(--blue); margin-top: 6px; }
.rc-match svg.lucide { width: 13px; height: 13px; }
.rc-pad { display: grid; grid-template-columns: repeat(3, 40px); gap: 10px 22px; justify-content: center; margin: 14px 0 12px; }
.rc-pad button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: #fff; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.rc-pad button:hover { background: var(--hover); }
.rc-pad b { font-size: 14px; font-weight: 500; }
.rc-pad span { font-size: 7px; color: var(--muted); margin-top: 2px; letter-spacing: .03em; }
.rc-dial { display: flex; justify-content: center; }
.rc-callbtn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #22c55e; color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.rc-callbtn:disabled { background: #86efac; cursor: default; }
.rc-call { display: grid; justify-items: center; gap: 4px; padding: 14px 0 6px; text-align: center; }
.rc-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 16px; color: var(--text-2); margin-bottom: 4px; }
.rc-name { font-weight: 600; font-size: 14px; }
.rc-num { color: var(--muted); font-variant-numeric: tabular-nums; }
.rc-state { margin-top: 6px; font-weight: 600; color: var(--blue); font-variant-numeric: tabular-nums; }
.rc-state.connected { color: var(--green); }
.rc-state.noanswer { color: var(--amber); }
.rc-hint { font-size: 11.5px; color: var(--muted); }
.rc-hint.ok { color: var(--green); font-weight: 600; }
.rc-end { margin-top: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #ef4444; color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.rc-btn { margin-top: 12px; border: 1px solid var(--border-strong); background: #fff; border-radius: 6px; height: 30px; padding: 0 16px; cursor: pointer; }
.rc-list { max-height: 320px; overflow-y: auto; margin: -4px -4px 0; }
.rc-row { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; width: 100%; border: 0; background: transparent; padding: 7px 4px; border-bottom: 1px solid var(--border); cursor: pointer; text-align: left; }
.rc-row:hover { background: var(--hover); }
.rc-rm, .rc-rt { display: grid; min-width: 0; }
.rc-rm b { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-rm em, .rc-rt em { font-style: normal; color: var(--muted); font-size: 11px; }
.rc-rt { text-align: right; font-size: 11.5px; }
.rc-ic { display: inline-flex; color: var(--muted); }
.rc-ic.ok { color: var(--green); } .rc-ic.miss { color: var(--red); } .rc-ic.sms { color: var(--blue); }
.rc-ic svg.lucide { width: 14px; height: 14px; }
.rc-empty { color: var(--muted); padding: 20px 0; text-align: center; }
.rc-sms { display: grid; gap: 8px; margin-top: 8px; }
.rc-sms textarea { border: 1px solid var(--border-strong); border-radius: 6px; padding: 8px; resize: vertical; }
@media print { .rc { display: none; } }

.wk { display: inline-flex; gap: 4px; align-items: center; }
.wk .select select { height: 26px; font-size: 12px; max-width: 260px; }
.wk .btn.icon { width: 26px; height: 26px; }

.hm i.off { background: repeating-linear-gradient(135deg, #e9ecf1 0 3px, #fff 3px 6px); cursor: default; }
.hm i.off:hover { outline: none; }

/* report */
.rep-total { display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 16px; font-size: 13px; color: var(--text-2); background: #fff; }
.rep-total b { color: var(--text); font-size: 15px; font-variant-numeric: tabular-nums; margin-right: 3px; }
.rep-total .hi b { color: var(--green); }
.tbl tr.sel td { background: var(--accent-weak) !important; }
.tbl tr.sel td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
/* report colour coding: AI = blue, HR = violet, result = green / amber / gray, cost = neutral */
.seg.blue button.on { background: var(--accent); color: #fff; }
.rep-total i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: 1px; }
.rep-total .t-ai i { background: #6da7ec; }
.rep-total .t-hr i { background: #9a85e9; }
.rep-total .t-hired i { background: #22a35a; } .rep-total .t-hired b { color: var(--green); }
.rep-total .t-open i { background: #e5a000; } .rep-total .t-open b { color: var(--amber); }
.rep-total .t-closed i { background: #b0b4bd; }
.rep-total .t-cost { margin-left: auto; }
.tbl.pivot tr.grp th { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; text-align: center; padding: 5px 10px; border-bottom: 0; }
.tbl.pivot tr.grp th.g-ai { background: var(--blue-bg); color: var(--blue); }
.tbl.pivot tr.grp th.g-hr { background: var(--violet-bg); color: var(--violet); }
.tbl.pivot tr.grp th.g-res { background: var(--green-bg); color: var(--green); }
.tbl.pivot tr.grp th.g-cost { background: var(--surface-2); color: var(--text-2); }
.tbl.pivot th.g-ai { background: #f3f7fe; } .tbl.pivot td.g-ai { background: #fafcff; }
.tbl.pivot th.g-hr { background: #f7f4fe; } .tbl.pivot td.g-hr { background: #fcfbff; }
.tbl.pivot th.g-res { background: #f1faf4; } .tbl.pivot td.g-res { background: #fbfefc; }
.tbl.pivot th.g-cost { background: var(--surface); }
.tbl.pivot th { top: 0; }
.tbl.pivot tr.grp th { position: static; }
.tbl.pivot td.c-hired b { color: var(--green); }
.tbl.pivot td.c-open { color: var(--amber); }
.tbl.pivot td.c-closed { color: var(--muted); }
.tbl.pivot tr.total td { background: #fff; border-top: 2px solid var(--border-strong); }
.tbl.pivot tbody tr.clickable:hover td { background: var(--accent-weak); }
.out { display: inline-block; font-size: 11.5px; font-weight: 500; padding: 2px 7px; border-radius: 4px; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.out.hired { background: var(--green-bg); color: var(--green); }
.out.open { background: var(--amber-bg); color: var(--amber); }
.out.closed { background: var(--gray-bg); color: var(--gray); }
#dims { flex-wrap: wrap; }
#pivot td:first-child { min-width: 230px; }

/* hierarchy without grey text: size and weight only */
.sub, .muted, .desc, .tt, .note, .kpi .l, .kpi .s, .tbl th, .panel-h .sub, .d-crumb, .col-h .s, .card .id, .hm-c, .hm-r, .chart text { color: var(--text) !important; }
.tbl th { font-weight: 600; }
.chart text { fill: var(--text) !important; }
.badge.outline { color: var(--text); }

/* table column filters */
.tbl tr.flt th { padding: 4px 6px 6px; background: #fff; top: 33px; }
.tbl tr.flt input, .tbl tr.flt select { width: 100%; min-width: 70px; height: 26px; border: 1px solid var(--border-strong); border-radius: 5px; padding: 0 6px; font-size: 12px; font-weight: 400; background: #fff; }
.tbl tr.flt .set { border-color: var(--accent); background: var(--accent-weak); }

/* lead view */
.lv-head .d-title h2 { font-size: 19px; }
.lv-id { font-size: 12.5px; font-variant-numeric: tabular-nums; }
.lv-bar { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center; border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; margin: 14px 0 4px; background: #fff; }
.lv-bar.taken { border-color: #cfdcf7; background: #f6f9ff; }
.lv-bar.warn { border-color: var(--amber-bd); background: var(--amber-bg); }
.lv-bar.good { border-color: #bfe3cc; background: var(--green-bg); }
.lv-st { font-size: 13.5px; }
.lv-st b { font-weight: 650; }
.lv-act { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.lv-note { grid-column: 1 / -1; font-size: 12px; }
.lv-by { font-size: 12px; }
.lv-dim { font-size: 12px; }
.app-t { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 8px; }
.app-t th { text-align: left; font-size: 12px; font-weight: 600; padding: 6px 10px; border-bottom: 1px solid var(--border-strong); }
.app-t td { padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.app-t td.ans { font-weight: 600; }
.app-t tr.bad td { background: var(--red-bg); }
.app-t tr.bad td.ans { color: var(--red); }
.app-t tr.warn td { background: var(--amber-bg); }
.app-t td.qa-ic { width: 30px; padding-right: 0; }
.app-t .qa-ic svg.lucide { width: 15px; height: 15px; stroke-width: 2.6; }
.app-t tr.ok .qa-ic { color: var(--green); }
.app-t tr.bad .qa-ic { color: var(--red); }
.app-t tr.warn .qa-ic { color: var(--amber); }
.tl-q { font-style: italic; }
.lv-cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; }
.note-line { display: flex; gap: 8px; margin-bottom: 8px; }
.note-line input { flex: 1; height: 30px; border: 1px solid var(--border-strong); border-radius: 6px; padding: 0 10px; }
.tl { list-style: none; margin: 0 0 12px; padding: 0; }
.tl li { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: start; padding: 7px 4px; border-bottom: 1px solid var(--border); font-size: 13px; }
.tl li.click { cursor: pointer; }
.tl li.click:hover { background: var(--hover); }
.tl-ic { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #eef2f8; }
.tl-ic svg.lucide { width: 13px; height: 13px; }
.tl-ic.ok { background: var(--green-bg); color: var(--green); }
.tl-ic.bad { background: var(--red-bg); color: var(--red); }
.tl-ic.warn { background: var(--amber-bg); color: var(--amber); }
.tl-w { font-size: 12px; white-space: nowrap; }
.tl-link { color: var(--accent); font-size: 12px; margin-left: 4px; }
.lv-kv { display: grid; grid-template-columns: 84px 1fr; gap: 8px 10px; margin: 0 0 12px; font-size: 13px; }
.lv-kv dt { font-weight: 600; }
.lv-kv dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 1000px) { .lv-cols { grid-template-columns: 1fr; } .lv-bar { grid-template-columns: 1fr; } .lv-act { justify-content: flex-start; } .tl li { grid-template-columns: 24px 1fr; } .tl-w { grid-column: 2; } }

.flab { font-size: 12.5px; font-weight: 600; min-width: 64px; }
.prange { font-size: 12.5px; font-weight: 600; color: var(--blue); }
input.dt { height: 30px; border: 1px solid var(--border-strong); border-radius: 6px; padding: 0 8px; }
.filters + .filters { margin-top: -4px; }

.rep-note { padding: 10px 14px; border-top: 1px solid var(--border); font-size: 12.5px; }

/* column header filter button + popover */
.th-in { display: inline-flex; align-items: center; gap: 3px; }
.tbl th.r .th-in { justify-content: flex-end; }
.th-f { border: 0; background: transparent; width: 20px; height: 20px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text); margin-left: 2px; }
.th-f svg.lucide { width: 12px; height: 12px; }
.th-f:hover { background: var(--hover); }
.th-f.on { background: var(--accent); color: #fff; }
.fpop { width: 250px; display: grid; gap: 8px; padding: 4px; }
.fpop-h { font-weight: 600; font-size: 12.5px; }
.fpop-q { height: 30px; border: 1px solid var(--border-strong); border-radius: 6px; padding: 0 8px; }
.fpop-list { max-height: 240px; overflow-y: auto; display: grid; gap: 2px; }
.fpop-o { display: grid; grid-template-columns: 18px 1fr auto; gap: 6px; align-items: center; padding: 4px 4px; border-radius: 4px; cursor: pointer; font-size: 12.5px; }
.fpop-o:hover { background: var(--hover); }
.fpop-o em { font-style: normal; font-size: 11.5px; }
.fpop-b { display: flex; justify-content: flex-end; gap: 6px; border-top: 1px solid var(--border); padding-top: 8px; }

/* alert view */
.al3 { display: grid; gap: 0; border: 1px solid var(--border); border-radius: 8px; margin-top: 14px; overflow: hidden; }
.al3 > div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.al3 > div:last-child { border-bottom: 0; }
.al3 p { margin: 0; font-size: 14px; line-height: 1.5; }
.al-k { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding-top: 2px; }
.al3.critical > div:first-child { background: var(--red-bg); }
.al3.warning > div:first-child { background: var(--amber-bg); }
.al3.done > div:first-child { background: var(--green-bg); }
.al3 > div:last-child { background: var(--accent-weak); }
details.tech { margin-top: 14px; border: 1px solid var(--border); border-radius: 8px; padding: 0 16px; }
details.tech summary { cursor: pointer; padding: 12px 0; font-weight: 600; list-style: none; display: flex; gap: 8px; align-items: baseline; }
details.tech summary::before { content: '▸'; }
details.tech[open] summary::before { content: '▾'; }
details.tech summary span { font-weight: 400; font-size: 12px; }
@media (max-width: 860px) { .al3 > div { grid-template-columns: 1fr; gap: 4px; } }

.ml-legend { margin-bottom: 6px; gap: 6px; }
.ml-key { border: 1px solid var(--border); background: #fff; border-radius: 999px; height: 24px; padding: 0 9px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 12px; }
.ml-key i { width: 10px; height: 3px; border-radius: 2px; display: inline-block; }
.ml-key.off { opacity: .4; text-decoration: line-through; }
.panel-h .r .seg button { height: 26px; font-size: 12px; }

.board-tabs .tab-n { font-size: 11px; font-weight: 600; background: rgba(0,0,0,.08); border-radius: 8px; padding: 0 6px; }
.board-tabs button.on .tab-n { background: rgba(255,255,255,.25); }
.rej-stats .peek b { color: var(--red); }
.rej-stats .peek { color: var(--red); }

.kpi.kpi-red .v { color: var(--red); }
@media (max-width: 1180px) { .kpis[style*="--n:7"] { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* own drivers page */
.own-sum { font-size: 12.5px; margin-top: 4px; max-width: 420px; }
tr.own-detail > td { background: #fff !important; padding: 0 10px 12px; border-bottom: 2px solid var(--accent); }
.own-det .app-t td { border-bottom: 1px solid var(--border); }
.own-det { border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; }
.own-det-h { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.own-det-h .grow { flex: 1; }
.own-det-s { margin: 0 0 10px; font-size: 13.5px; }

/* centered modal */
.mdl-wrap { position: fixed; inset: 0; background: rgba(15,17,21,.45); z-index: 85; display: flex; align-items: center; justify-content: center; padding: 16px; }
.mdl { background: #fff; border-radius: 12px; box-shadow: 0 24px 64px rgba(16,24,40,.3); max-height: calc(100vh - 32px); display: flex; flex-direction: column; overflow: hidden; }
.mdl-h { display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px 12px; border-bottom: 1px solid var(--border); }
.mdl-h > div { flex: 1; }
.mdl-h h3 { margin: 0; font-size: 17px; }
.mdl-sub { font-size: 12.5px; margin-top: 3px; }
.mdl-b { padding: 16px 20px; overflow-y: auto; display: grid; gap: 14px; }
.mdl-f { display: flex; gap: 8px; align-items: center; padding: 12px 20px; border-top: 1px solid var(--border); font-size: 13px; }
.mdl-f .grow { flex: 1; }
.mdl-lab { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.pcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pcard { border: 1.5px solid var(--border-strong); border-radius: 10px; padding: 12px 14px; cursor: pointer; display: grid; gap: 5px; font-size: 13px; position: relative; }
.pcard input { position: absolute; opacity: 0; }
.pcard:hover { border-color: var(--accent); }
.pcard.on { border-color: var(--accent); background: var(--accent-weak); box-shadow: 0 0 0 1px var(--accent); }
.pc-top { display: flex; gap: 8px; align-items: center; justify-content: space-between; font-size: 14px; }
.pc-grp { display: flex; gap: 6px; align-items: center; font-weight: 600; color: var(--blue); }
.pc-grp svg.lucide, .pc-dest svg.lucide { width: 14px; height: 14px; }
.pc-people { font-size: 12px; }
.pc-dest { display: flex; gap: 6px; align-items: center; font-size: 12px; margin-top: 2px; }
.mdl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mdl-list { margin: 0; padding-left: 18px; font-size: 13px; display: grid; gap: 3px; }
.mdl-list.ok li::marker { color: var(--green); }
.mdl-list.no li { color: var(--red); }
.mdl-price { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.mdl-price input { width: 100px; height: 32px; border: 1px solid var(--border-strong); border-radius: 6px; padding: 0 8px; font-weight: 400; }
@media (max-width: 700px) { .pcards, .mdl-grid { grid-template-columns: 1fr; } }

/* team + recruiter page */
.t-red { color: var(--red); }
.t-amber { color: var(--amber); }
.kpi .v.red { color: var(--red); }
.kpi-sm { font-size: 14px; font-weight: 500; }
.cmp { font-size: 11.5px; }
.cmp.good { color: var(--green); }
.cmp.bad { color: var(--red); }
.rec-now { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.now-list { display: grid; }
.now-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--border); cursor: pointer; font-size: 13px; }
.now-row:hover { background: var(--hover); }
.now-empty, .now-more { padding: 12px 14px; font-size: 12.5px; }
@media (max-width: 1000px) { .rec-now { grid-template-columns: 1fr; } }

.day-tl li { grid-template-columns: 70px 24px 1fr; }
.day-tl .tl-w { font-variant-numeric: tabular-nums; padding-top: 2px; }

.fl-d { font-size: 12px; font-weight: 600; margin-left: 4px; vertical-align: middle; }
.fl-d .delta { font-size: 12px; }
.fl-extra { border-left: 2px solid var(--border-strong); }
.fl-extra::after { display: none; }
.fl-step:nth-last-child(2)::after { display: none; }
.fl-extra.warn { background: #fffafa; }

.fl-sum { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 10px 14px; border-top: 1px solid var(--border); font-size: 13px; }
.fl-sum .link { margin-left: auto; font-size: 12.5px; }
.t-green { color: var(--green); } .t-blue { color: var(--blue); }

/* close-lead reasons */
.rgroups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.rgroup { display: grid; gap: 4px; align-content: start; }
.ropt { display: flex; gap: 8px; align-items: center; padding: 7px 10px; border: 1px solid var(--border); border-radius: 6px; cursor: pointer; font-size: 13px; }
.ropt input { margin: 0; }
.ropt:hover { border-color: var(--accent); }
.ropt.on { border-color: var(--accent); background: var(--accent-weak); }
.close-note { width: 100%; border: 1px solid var(--border-strong); border-radius: 6px; padding: 8px; resize: vertical; }
/* hiring checklist */
.chk { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin-top: 4px; }
.chk-s { display: grid; grid-template-columns: 24px 1fr; gap: 8px; border: 1px solid var(--border); border-radius: 8px; padding: 9px 10px; background: #fff; font-size: 12.5px; align-items: start; }
.chk-s.done { border-color: #bfe3cc; background: var(--green-bg); }
.chk-s.next { border-color: var(--accent); }
.chk-s.hire { grid-template-columns: 1fr; align-items: center; justify-items: center; border-style: dashed; }
.chk-n { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--border-strong); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; }
.chk-s.done .chk-n { background: var(--green); border-color: var(--green); color: #fff; }
.chk-s.done .chk-n svg.lucide { width: 12px; height: 12px; stroke-width: 3; }
.chk-m { font-size: 11.5px; margin-top: 2px; }
.chk-a { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.chk-a input { height: 26px; border: 1px solid var(--border-strong); border-radius: 5px; padding: 0 4px; font-size: 12px; }
@media (max-width: 1000px) { .chk:not(.orient) { grid-template-columns: 1fr 1fr; } .chk-s.wide { grid-column: auto; } .rgroups { grid-template-columns: 1fr; } }
.out.stuck { background: var(--red-bg); color: var(--red); }

/* Overview funnel: one number per step, reasons live in a modal */
.fun { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.fun-s { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-right: 1px solid var(--border); cursor: pointer; min-width: 0; }
.fun-s:last-child { border-right: 0; }
.fun-s:hover { background: var(--hover); }
.fun-s:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.fun-l { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fun-v { font-size: 22px; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.fun-bar { height: 4px; border-radius: 2px; background: #eef1f6; overflow: hidden; margin: 2px 0; }
.fun-bar i { display: block; height: 100%; background: var(--blue); border-radius: 2px; }
.fun-p { font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.own-link { margin-right: 12px; font-size: 12.5px; color: var(--red); display: inline-flex; gap: 5px; align-items: center; }
.own-link svg { width: 14px; height: 14px; }
@media (max-width: 1180px) { .fun { grid-template-columns: repeat(4, minmax(0, 1fr)); } .fun-s { border-bottom: 1px solid var(--border); } }
@media (max-width: 600px) { .fun { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.why-g { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }
.why-g.on { border-color: var(--blue); box-shadow: 0 0 0 3px #e3edfd; }
.why-h { display: flex; gap: 10px; justify-content: space-between; align-items: baseline; font-size: 13px; margin-bottom: 6px; }
.why-h b { font-weight: 600; }
.profile.static { cursor: default; }
.app-s { font-size: 13px; font-weight: 400; text-transform: none; letter-spacing: 0; margin-left: 10px; }
.qa-ai { font-weight: 400; font-size: 12.5px; margin-top: 3px; }
.qa-call { display: flex; gap: 6px; align-items: center; font-size: 13px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; margin-top: 10px; cursor: pointer; }
.qa-call:hover { background: var(--hover); }
.qa-call.muted { cursor: default; }
.qa-call.muted:hover { background: none; }
.qa-call svg { width: 15px; height: 15px; }
/* Lead view: plain tables for the application and the timeline */
.app-t.plain td { padding: 7px 10px; }
.app-t.plain td:first-child { width: 44%; }
.app-t.plain tr.bad td, .app-t.plain tr.warn td { background: none; }
.app-t.plain tr.bad td.ans { color: var(--red); }
.app-t.plain tr.warn td.ans { color: var(--amber); }
.tl-t td:first-child { width: 150px; }
.tl-t td:last-child { width: 1%; text-align: right; }
.tl-t tr.click { cursor: pointer; }
.tl-t tr.click:hover td { background: var(--hover); }

/* Call History / SMS: RingCentral-style list on the left, one number's history on the right */
.cx { display: grid; grid-template-columns: 340px minmax(0, 1fr); height: calc(100vh - 48px - 110px); min-height: 460px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; overflow: hidden; }
.cx-list { border-right: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; }
.cx-f { display: grid; gap: 8px; padding: 10px; border-bottom: 1px solid var(--border); }
.cx-f .search { width: 100%; }
.cx-f .seg { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); }
.cx-rows { overflow-y: auto; flex: 1; }
.cx-row { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--border); cursor: pointer; font-size: 13px; }
.cx-row:hover { background: var(--hover); }
.cx-row.on { background: #e8f0fd; box-shadow: inset 3px 0 0 var(--blue); }
.cx-ic { width: 30px; height: 30px; border-radius: 50%; background: #e8f0fd; color: var(--blue); display: inline-flex; align-items: center; justify-content: center; }
.cx-ic svg { width: 15px; height: 15px; }
.cx-ic.miss { background: var(--red-bg); color: var(--red); }
.cx-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cx-who > span { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-who b { font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.cx-t { font-size: 12px; white-space: nowrap; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.cx-t .link { display: inline-flex; gap: 3px; align-items: center; }
.cx-t .link svg { width: 12px; height: 12px; }
.cx-n { font-size: 11px; font-weight: 600; background: #eef1f6; border-radius: 9px; padding: 0 6px; }
.cx-n.new { background: #e3f4ea; color: #146c43; }
.cx-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.cx-head { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.cx-hn { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; font-size: 12.5px; }
.cx-hn b { font-size: 15px; font-weight: 650; }
.cx-ha { display: flex; gap: 8px; }
.cx-body { flex: 1; overflow-y: auto; padding: 4px 16px 16px; }
.cx-day { font-size: 12px; font-weight: 600; padding: 12px 0 6px; position: sticky; top: 0; background: #fff; }
.cx-call { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 6px; border-bottom: 1px solid var(--border); font-size: 13px; }
.cx-call.click { cursor: pointer; }
.cx-call.click:hover { background: var(--hover); }
.cx-sum { white-space: normal !important; margin-top: 2px; }
.cx-out { display: flex; gap: 8px; align-items: center; justify-content: flex-end; font-variant-numeric: tabular-nums; }
.cx-empty { padding: 24px; font-size: 13px; }
.chat { display: flex; flex-direction: column; gap: 6px; background: #fff; }
.chat .cx-day { text-align: center; }
.bub { max-width: 68%; padding: 8px 12px; border-radius: 14px; font-size: 13.5px; line-height: 1.4; }
.bub.me { align-self: flex-end; background: #2a6fdb; color: #fff; border-bottom-right-radius: 4px; }
.bub.them { align-self: flex-start; background: #eef1f6; color: var(--text); border-bottom-left-radius: 4px; }
.bub-m { font-size: 11px; margin-top: 3px; opacity: .85; }
.cx-send { display: flex; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--border); }
.cx-send input { flex: 1; height: 34px; border: 1px solid var(--border-strong); border-radius: 8px; padding: 0 10px; font: inherit; }
@media (max-width: 860px) { .cx { grid-template-columns: 1fr; height: auto; } .cx-list { max-height: 320px; border-right: 0; border-bottom: 1px solid var(--border); } .cx-call { grid-template-columns: 30px 1fr; } .cx-out, .cx-call .cx-t { grid-column: 2; justify-content: flex-start; align-items: flex-start; } }
.cx-n.red { background: var(--red); color: #fff; min-width: 18px; text-align: center; }
.cx-who .unread { font-weight: 600; }
.nav a .count.solid, .nav a.active .count.solid { background: var(--red); color: #fff; }

/* Call History views */
.ty { display: inline-flex; gap: 5px; align-items: center; }
.ty svg, .comm-t svg { width: 13px; height: 13px; vertical-align: -2px; }
.exp svg { width: 14px; height: 14px; vertical-align: -3px; margin-right: 4px; }
tr.miss-row td .primary { color: var(--red); }
.person-chip { display: inline-flex; gap: 10px; align-items: center; font-size: 13px; font-weight: 600; background: #e8f0fd; border: 1px solid #c9dafa; border-radius: 8px; padding: 4px 6px 4px 12px; margin-bottom: 10px; }
.comm-t td:first-child { width: 140px; }
.comm-t td:nth-child(2) { width: 230px; }
.comm-t td:nth-child(3) { width: 80px; }
.comm-t td:last-child { width: auto; text-align: left; }
.comm-t tr.day td { font-weight: 600; font-size: 12px; background: #f6f8fb; padding: 6px 10px; }
.comm-t { margin: 0; }
.comm-t .link svg { width: 12px; height: 12px; }
.app-t.plain.comm-t td:first-child { width: 90px; }
.app-t.plain.comm-t td:nth-child(2) { width: 300px; }
.app-t.plain.comm-t td:nth-child(3) { width: 90px; }
.app-t.plain.comm-t td:first-child { width: 150px; }

/* AI call view: big player, summary, transcript as chat */
.call-v { display: grid; gap: 14px; padding-bottom: 20px; }
.player.big { margin: 14px 0 0; padding: 12px 14px; }
.player.big .play { width: 44px; height: 44px; background: var(--blue); }
.player.big .play svg.lucide { width: 18px; height: 18px; }
.call-sum { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; font-size: 13.5px; }
.call-sum p { margin: 4px 0 0; line-height: 1.45; }
.tchat { display: flex; flex-direction: column; gap: 8px; background: #f4f6fa; border-radius: 10px; padding: 14px; }
.tchat .tl-line { display: flex; padding: 0; background: none; }
.tchat .tl-line.ai { justify-content: flex-end; }
.tchat .tl-line.drv { justify-content: flex-start; }
.tchat .tl-line.sys { justify-content: center; font-size: 12px; }
.tchat .tl-line.sys span { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 2px 10px; }
.tchat .tb { max-width: 72%; padding: 8px 12px 6px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; position: relative; }
.tchat .ai .tb { background: #2a6fdb; color: #fff; border-bottom-right-radius: 4px; }
.tchat .drv .tb { background: #fff; color: var(--text); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.tchat .tw { font-size: 11.5px; font-weight: 600; margin-bottom: 2px; }
.tchat .ts { all: unset; display: block; text-align: right; font-size: 11px; margin-top: 2px; cursor: pointer; opacity: .85; font-variant-numeric: tabular-nums; }
.tchat .ts:hover { text-decoration: underline; }
.tchat .tl-line.now .tb { box-shadow: 0 0 0 3px #f5b400; }
.btn.listen { gap: 6px; font-weight: 600; }
.btn.listen svg { width: 14px; height: 14px; }
.comm-tot { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 13.5px; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; margin-bottom: 14px; }
.comm-t .row-sum { margin-top: 3px; font-size: 12.5px; line-height: 1.4; }
.comm-t .msg { display: inline-block; max-width: 560px; padding: 6px 10px; border-radius: 12px; font-size: 13px; line-height: 1.4; }
.comm-t .msg.out { background: #e8f0fd; }
.comm-t .msg.in { background: #f1f2f4; }
.app-t.plain.comm-t td:last-child { width: 110px; text-align: right; }
.app-t.plain.comm-t td:nth-child(4) { width: auto; }
.comm-t td:nth-child(4), .comm-t .msg, .comm-t .row-sum { white-space: normal; overflow: visible; text-overflow: clip; }
.app-t.plain.comm-t td:nth-child(2) { width: 240px; }
.app-t.plain.comm-t td:nth-child(4) { min-width: 280px; }
.app-t.plain.comm-t td:first-child { width: 130px; }
.app-t.plain.comm-t td:nth-child(3) { width: 70px; }
.app-t.plain.comm-t td:last-child { width: 100px; }
/* driver suggestions in the new SMS pane */
.cmp-hit { all: unset; cursor: pointer; border: 1px solid var(--border); border-radius: 14px; padding: 3px 10px; font-size: 12.5px; }
.cmp-hit:hover { background: var(--hover); border-color: var(--blue); }
/* New SMS in the right pane */
.nm-head { gap: 8px; }
.nm-to { font-weight: 600; font-size: 14px; }
.nm-in { flex: 1; height: 36px; border: 1px solid var(--border-strong); border-radius: 8px; padding: 0 10px; font: inherit; font-size: 14px; }
.nm-in:focus { outline: 2px solid #c9dafa; border-color: var(--blue); }
.nm-hits { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px 16px; font-size: 12.5px; border-bottom: 1px solid var(--border); }
.nm-hits:empty { display: none; }
.nm-hits svg { width: 14px; height: 14px; }
.nm-empty { margin: auto; text-align: center; }
.nm-err { font-size: 13px; font-weight: 600; padding: 0 16px 8px; }
.nm-err:empty { display: none; }
/* + next to search; dial pad in the Calls page */
.cx-f2 { grid-template-columns: 1fr auto; align-items: center; }
.cx-plus { width: 34px; height: 34px; padding: 0; justify-content: center; }
.dial { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 16px; }
.dial-pad { display: grid; grid-template-columns: repeat(3, 64px); gap: 14px 22px; }
.dial-pad button { all: unset; box-sizing: border-box; width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; }
.dial-pad button:hover { background: var(--hover); }
.dial-pad b { font-size: 22px; font-weight: 500; line-height: 1; }
.dial-pad span { font-size: 9.5px; letter-spacing: .08em; min-height: 11px; }
.dial-act { display: flex; gap: 16px; align-items: center; }
.dial-call, .dial-end { all: unset; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #fff; }
.dial-call { background: #1baf5d; }
.dial-call:hover { background: #148a49; }
.dial-end { background: var(--red); }
.dial-call svg, .dial-end svg { width: 24px; height: 24px; }
.dial-from { font-size: 12.5px; }
.dial-live { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.rc-avatar.big { width: 72px; height: 72px; font-size: 22px; }
.dl-name { font-size: 18px; font-weight: 650; }
.dl-num { font-size: 13.5px; }
.dl-state { font-size: 14px; font-weight: 600; margin: 6px 0; }
.dl-state.connected { color: #148a49; }
.dl-state.noanswer { color: var(--red); }
.dl-hint { font-size: 12.5px; margin-bottom: 8px; }
.my-line { display: flex; align-items: baseline; gap: 10px; margin-top: 2px; }
.my-line span { font-size: 13px; }
.my-line b { font-size: 20px; font-weight: 650; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }

/* Hiring + Safety Orientation checklists */
.chk.orient { display: grid; grid-template-columns: 1fr; gap: 10px; }
.chk-s.done .chk-n, .chk-s .chk-n { flex: none; }
.chk-s.wide { grid-column: span 2; }
.chk-class { display: flex; gap: 6px; align-items: center; font-size: 13px; padding: 2px 0 4px; flex-wrap: wrap; }
.chk-class svg { width: 14px; height: 14px; }
.chk-day { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.chk-dh { grid-column: 1 / -1; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding-top: 4px; }
.docs { display: grid; gap: 6px; margin: 6px 0 4px; }
.doc { display: grid; grid-template-columns: 18px 1fr auto; gap: 8px; align-items: center; border: 1px dashed var(--border-strong); border-radius: 8px; padding: 6px 10px; font-size: 13px; }
.doc.ok { border-style: solid; border-color: #b7dfc6; background: #f3fbf6; }
.doc svg { width: 16px; height: 16px; }
.doc > span { display: flex; flex-direction: column; }
.doc label.btn { cursor: pointer; }
/* Approvals file column */
.fchk { display: inline-flex; gap: 3px; align-items: center; font-size: 12px; margin-right: 8px; white-space: nowrap; }
.fchk svg { width: 12px; height: 12px; }
.fchk.ok svg { color: #148a49; }
/* Orientation classes */
.cls-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; }
.cls { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 2px; min-width: 112px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; background: #fff; font-size: 12.5px; }
.cls:hover { background: var(--hover); }
.cls.on { border-color: var(--blue); box-shadow: 0 0 0 2px #c9dafa; }
.cls b { font-size: 13px; }
.cls-n { font-variant-numeric: tabular-nums; }
.cls-live { font-weight: 700; color: #148a49; }
.ostep { display: inline-flex; gap: 3px; align-items: center; }
.ostep i { width: 12px; height: 8px; border-radius: 2px; background: #e5e8ee; }
.ostep i.ok { background: #1baf5d; }
.ostep i.bad { background: var(--red); }
.ostep i.gap { margin-left: 6px; }

/* Safety Drivers page */
.today-h { display: flex; gap: 18px; align-items: baseline; flex-wrap: wrap; font-size: 13.5px; margin-bottom: 12px; }
.today-h b:first-child { font-size: 16px; }
.sgrid th.c, .sgrid td.c { text-align: center; width: 92px; }
.sgrid th.c { font-size: 11.5px; white-space: normal; line-height: 1.25; }
.sgrid tr[data-open] { cursor: pointer; }
.sgrid tr[data-open]:hover td { background: var(--hover); }
.schip { all: unset; box-sizing: border-box; width: 64px; height: 28px; border-radius: 6px; border: 1px dashed var(--border-strong); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.schip svg { width: 15px; height: 15px; stroke-width: 3; }
.schip.ok { background: #1baf5d; border: 0; color: #fff; }
.schip.bad { background: var(--red); border: 0; color: #fff; }
.schip.next { border: 1.5px solid var(--blue); color: var(--blue); background: #eef4fe; }
.schip.next[data-step] { cursor: pointer; background: var(--blue); color: #fff; }
.schip.next[data-step]:hover { filter: brightness(1.08); }
.wk-nav { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; font-size: 14px; }
.wk-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.wk-day { border: 1px solid var(--border); border-radius: 8px; background: #fff; padding: 8px; min-height: 180px; display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; }
.wk-day.today { border-color: var(--blue); box-shadow: 0 0 0 2px #c9dafa; }
.wk-dh { display: flex; justify-content: space-between; align-items: baseline; }
.wk-now { font-size: 11px; font-weight: 700; color: var(--blue); }
.wk-cls { display: flex; flex-direction: column; gap: 3px; }
.wk-ch { font-size: 11.5px; font-weight: 700; }
.wk-p { all: unset; cursor: pointer; display: flex; gap: 6px; align-items: center; padding: 2px 4px; border-radius: 4px; }
.wk-p:hover { background: var(--hover); }
.wk-p i { width: 9px; height: 9px; border-radius: 50%; background: #d4d8e0; flex: none; }
.wk-p.ok i { background: #1baf5d; }
.wk-p.half i { background: linear-gradient(90deg, #1baf5d 50%, #d4d8e0 50%); }
.wk-p.bad i { background: var(--red); }
.sboard .col { max-height: none; }
@media (max-width: 1100px) { .wk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* step window */
.res-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.res { all: unset; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; padding: 9px 14px; border: 1px solid var(--border-strong); border-radius: 8px; font-weight: 600; font-size: 13.5px; }
.res svg { width: 16px; height: 16px; }
.res.ok.on { background: #e3f4ea; border-color: #1baf5d; color: #146c43; }
.res.bad.on { background: var(--red-bg); border-color: var(--red); color: var(--red); }
.res.late.on { background: var(--amber-bg); border-color: var(--amber); color: var(--amber); }
.why { display: grid; gap: 6px; }
.sm-note { font-size: 12.5px; }
.doc-a { display: flex; gap: 6px; }
.files2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 860px) { .files2 { grid-template-columns: 1fr; } }
.doc-img { max-width: 100%; border-radius: 8px; }
.doc-frame { width: 100%; height: 70vh; border: 1px solid var(--border); border-radius: 8px; }
.doc-ph { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 48px 16px; border: 1px dashed var(--border-strong); border-radius: 8px; font-size: 13px; }
.doc-ph svg { width: 40px; height: 40px; }
.chk-s.failed { border-color: var(--red); background: var(--red-bg); }
.chk-s.failed .chk-n { background: var(--red); border-color: var(--red); color: #fff; }
/* Drivers · Today layout: class grid wide, tomorrow + approvals on the right */
.td-lay { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.td-side { display: flex; flex-direction: column; gap: 16px; }
.side-card { overflow: hidden; }
.side-h { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 13px; }
.side-h b { font-size: 14px; }
.side-row { all: unset; box-sizing: border-box; width: 100%; display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--border); cursor: pointer; }
.side-row:last-child { border-bottom: 0; }
.side-row:hover { background: var(--hover); }
.side-empty { padding: 12px 14px; font-size: 13px; }
.sn { font-weight: 600; font-size: 14px; }
.sgrid td.dcol, .sgrid th.dcol { min-width: 240px; }
.sgrid td { padding-top: 12px; padding-bottom: 12px; }
.sgrid th.c, .sgrid td.c { width: 78px; }
.sgrid td.now { min-width: 170px; }
.schip { width: 56px; }
.sboard .card[draggable] { cursor: grab; }
.sboard .card.dragging { opacity: .5; }
.sboard .col.over { outline: 2px dashed var(--blue); outline-offset: -2px; }
.page-head .actions .search { width: 260px; }
@media (max-width: 1100px) { .td-lay { grid-template-columns: 1fr; } }
.sgrid td.dcol, .sgrid th.dcol { min-width: 200px; }
.why[hidden] { display: none; }
.wk-title h2 { font-size: 16px; margin: 24px 0 10px; }
.schip.start[data-step] { width: 64px; background: #1baf5d; border-color: #1baf5d; }
.ap-n { background: var(--red); color: #fff; border-radius: 9px; padding: 0 6px; font-size: 11px; margin-left: 2px; }
.dchips { margin-bottom: 10px; }
.dchips .chip { text-decoration: none; }
.dlist tr.grp-row td { background: #f6f8fb; padding: 8px 10px; font-weight: 600; position: sticky; top: 0; }
.dlist tr[data-open] { cursor: pointer; }
.dlist tr[data-open]:hover td { background: var(--hover); }
/* documents: HR copy and Safety copy side by side */
.dtable { width: 100%; border-collapse: collapse; font-size: 13px; }
.dtable th { text-align: left; font-size: 12px; padding: 6px 8px; border-bottom: 1px solid var(--border-strong); }
.dtable td { padding: 6px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.dtable .dt-n { font-weight: 600; width: 190px; }
.dtable .dt-na { color: var(--muted); }
.dt-cell { display: grid; grid-template-columns: 16px 1fr auto; gap: 8px; align-items: center; }
.dt-cell svg { width: 15px; height: 15px; }
.dt-cell > span { display: flex; flex-direction: column; min-width: 0; }
.dt-cell b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-cell.ok svg:first-child { color: #148a49; }
.dt-cell.need .chk-m { color: var(--red); font-weight: 600; }
/* named orientation steps in a driver row */
.sps { display: flex; flex-direction: column; gap: 4px; }
.sps > div { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.sd { font-size: 11px; width: 22px; }
.sp { display: inline-flex; gap: 3px; align-items: center; font-size: 11.5px; padding: 2px 7px; border-radius: 10px; background: #eef0f4; white-space: nowrap; }
.sp svg { width: 11px; height: 11px; stroke-width: 3; }
.sp.ok { background: #e3f4ea; color: #146c43; }
.sp.bad { background: var(--red-bg); color: var(--red); }
.sp.next { background: #fff; box-shadow: inset 0 0 0 1.5px var(--blue); color: var(--blue); font-weight: 600; }
.dt-cell b { max-width: 220px; }
.mdl-wrap.top { z-index: 95; background: rgba(15,17,21,.35); }
.mdl-wrap .mdl .dtable .dt-n { width: 230px; }
.dt-cell b { max-width: 320px; }
.d-title #dlPdf { margin-left: auto; }
.d-title #dlPdf + .x { margin-left: 0; }
/* documents opened inside the lead window */
.dv { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 12px; overflow: hidden; }
.dv-tabs { display: flex; gap: 4px; flex-wrap: wrap; padding: 8px; border-bottom: 1px solid var(--border); background: #f6f8fb; }
.dv-tabs button { all: unset; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 6px; font-size: 13px; font-weight: 600; }
.dv-tabs button.on { background: #fff; box-shadow: 0 0 0 1px var(--border-strong); }
.dv-tabs i { width: 8px; height: 8px; border-radius: 50%; }
.dv-tabs i.ok { background: #1baf5d; } .dv-tabs i.bad { background: var(--red); }
.dv-tabs .dv-x { margin-left: auto; font-weight: 500; }
.dv-tabs .dv-x svg { width: 14px; height: 14px; }
.dv-pane { padding: 14px 16px; }
.dv-h { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 15px; }
.vd { display: inline-flex; gap: 4px; align-items: center; font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 10px; }
.vd svg { width: 13px; height: 13px; stroke-width: 3; }
.vd.ok { background: #e3f4ea; color: #146c43; } .vd.bad { background: var(--red-bg); color: var(--red); }
.dv-iss { font-size: 13px; color: var(--red); font-weight: 600; }
.dv-copies { display: flex; flex-direction: column; gap: 4px; margin: 8px 0 12px; font-size: 12.5px; }
.dv-copy { display: inline-flex; gap: 6px; align-items: center; }
.dv-copy svg { width: 13px; height: 13px; color: #148a49; }
.dv-body { position: relative; }
.dv-card { width: 100%; max-width: 640px; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.12); display: block; }
.dv-kv { border-collapse: collapse; font-size: 13.5px; margin-bottom: 10px; }
.dv-kv td { padding: 4px 16px 4px 0; }
.dv-list { max-width: 760px; }
.dv-mark { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--red); margin-top: 8px; }
/* Drivers: group filters stay pinned at the top while scrolling */
.dchips { position: sticky; top: 0; z-index: 6; background: var(--bg, #fff); padding: 8px 0; margin: -8px 0 6px; }
.dlist tr.grp-row td { top: 48px; z-index: 4; }
.dlist tr.grp-row { scroll-margin-top: 56px; }
/* files attached to an HR check */
.sf { display: grid; gap: 4px; margin-top: 6px; }
.sf-r { display: flex; gap: 6px; align-items: center; font-size: 12px; }
.sf-r svg { width: 13px; height: 13px; flex: none; }
.sf-r.ok svg:first-child { color: #148a49; }
.sf-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.sf-r .btn.sm { padding: 2px 8px; height: 24px; font-size: 11.5px; }
/* name correction */
.name-edit { display: inline-flex; gap: 6px; align-items: center; }
.name-edit input { font: inherit; font-size: 16px; font-weight: 600; height: 32px; border: 1px solid var(--blue); border-radius: 6px; padding: 0 8px; width: 280px; }
/* HR checks: one line per check, nothing squeezed */
.chk.hrlist { display: flex; flex-direction: column; gap: 6px; }
.hrs { display: grid; grid-template-columns: 26px minmax(220px, 1.1fr) minmax(260px, 1.6fr) auto; gap: 12px; align-items: center; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; background: #fff; font-size: 13px; }
.hrs.done { border-color: #bfe3cc; background: var(--green-bg); }
.hrs.done .chk-n { background: var(--green); border-color: var(--green); color: #fff; }
.hrs.done .chk-n svg.lucide { width: 12px; height: 12px; stroke-width: 3; }
.hrs.next { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.hrs-t b { font-weight: 600; }
.hrs-f .sf { margin: 0; }
.hrs-f .sf-r { gap: 8px; }
.hrs-f .sf-n { flex: 0 1 auto; min-width: 120px; }
.hrs-a .chk-a { margin: 0; justify-content: flex-end; }
.hrs-a .chk-m { text-align: right; }
@media (max-width: 900px) { .hrs { grid-template-columns: 26px 1fr; } .hrs-f, .hrs-a { grid-column: 2; } .hrs-a .chk-a { justify-content: flex-start; } }

/* Drivers list: hired / left rows as aligned columns */
.tgrid { display: grid; grid-template-columns: minmax(150px, 1.5fr) repeat(2, minmax(118px, 1fr)) minmax(96px, 1fr) 54px; gap: 2px 14px; align-items: start; }
.tgrid:not(:has(> :nth-child(4))) { grid-template-columns: repeat(2, minmax(118px, 1fr)) 54px; max-width: 420px; }
.tgrid span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tgrid small { font-size: 11px; color: var(--muted); }
.tgrid .tq { color: #8a5a00; }
.tgrid .tt { color: #b42318; }
.sf-r.miss { color: #b42318; }
.sf-r.miss svg { color: #b42318; }

/* Final decision after orientation */
.chk-dec { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; }
.chk-dec svg { width: 16px; height: 16px; flex: none; }
.chk-dec.ok svg { color: #148a49; } .chk-dec.bad svg, .chk-dec.bad b { color: #b42318; }
.chk-dec.due { border-color: var(--border-strong); background: var(--surface-2, #f7f7f8); }
.chk-dec .btn { margin-left: auto; }
.dec-t td { padding: 5px 8px; font-size: 13px; }
.dec-t svg { width: 13px; height: 13px; vertical-align: -2px; }
.t-green { color: #148a49; }
.res[disabled] { opacity: .45; cursor: not-allowed; }
.app-t.dec-t { width: 100%; table-layout: fixed; }
.app-t.dec-t td { padding: 5px 8px; width: auto; }
.app-t.dec-t td:nth-child(1) { width: 52px; white-space: nowrap; color: var(--muted); font-weight: 400; }
.app-t.dec-t td:nth-child(2) { width: 36%; font-weight: 600; color: var(--text); }
.app-t.dec-t td:nth-child(4) { width: 200px; white-space: nowrap; }
.app-t.dec-t td svg { display: inline-block; }
