/* Fit Check, on the FC Labz theme tokens sidepanel.css defines. Everything is scoped under
   #fit (the side panel tab) or body.fit-page (the roles admin page) so nothing here can
   restyle Employer Finder. The palette is the same four accents: mint for good, amber for
   "confirm on the call", red for a knockout, muted for everything else. */

/* The ported code toggles a .hidden class (sidepanel.js toggles el.hidden); both must hide. */
.hidden { display: none !important; }

/* ---------- shared primitives ---------- */
#fit .small, .fit-page .small { font-size: 12px; }
#fit .muted, .fit-page .muted { color: var(--muted); }
#fit .strong { font-weight: 650; }
#fit .stack, .fit-page .stack { display: flex; flex-direction: column; gap: 6px; }
#fit .row, .fit-page .row { display: flex; align-items: center; gap: 8px; }
#fit .row.between, .fit-page .row.between { justify-content: space-between; }
#fit .row.wrap, .fit-page .row.wrap { flex-wrap: wrap; }
#fit .mt6, .fit-page .mt6 { margin-top: 6px; }
#fit .mt8, .fit-page .mt8 { margin-top: 8px; }
#fit .mt10, .fit-page .mt10 { margin-top: 10px; }
#fit .mb6, .fit-page .mb6 { margin-bottom: 6px; }
#fit p { margin: 0 0 8px; }
#fit h2, .fit-page h2 { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 8px; font-weight: 600; }
#fit .card { padding: 12px; margin-top: 0; }
#fit .card + .card, #fit .verdict + .card { margin-top: 10px; }
#fit label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin: 0 0 4px; }
#fit select, .fit-page select, .fit-page input[type="text"], .fit-page input[type="number"], .fit-page input[type="url"], .fit-page textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--s1);
  border: 1px solid var(--card-border); border-radius: 9px; padding: 8px 9px; margin-top: 0;
}
#fit select:focus, .fit-page select:focus, .fit-page input:focus, .fit-page textarea:focus { outline: none; border-color: var(--accent-line); }
#fit select option, .fit-page select option { background: var(--s1); color: var(--text); }
#fit .help, .fit-page .help { font-size: 11.5px; color: var(--muted); margin-top: 6px; }

#fit .btn, .fit-page .btn { margin-top: 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
#fit .btn.block { width: 100%; padding: 10px 12px; font-size: 14px; margin-top: 10px; }
#fit .btn.small, .fit-page .btn.small { padding: 5px 9px; font-size: 12px; font-weight: 600; }
.fit-page .btn.danger { color: var(--danger); }
#fit .link-summary { cursor: pointer; color: var(--accent); font-weight: 600; list-style: none; }
#fit .link-summary::-webkit-details-marker { display: none; }

/* ---------- who / name prompt ---------- */
#fit .who { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--muted); margin: 8px 0 0; }
#fit .who b { color: var(--text); font-weight: 600; }

/* ---------- status pill ---------- */
#fit .pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600;
  background: var(--soft); color: var(--muted); border: 1px solid var(--card-border);
}
#fit .pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
#fit .pill.ok { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }
#fit .pill.warn { background: var(--warn-soft); color: var(--warn); border-color: var(--warn-line); }
#fit .pill.bad { background: var(--danger-soft); color: var(--danger); border-color: var(--danger-line); }

/* ---------- notices ---------- */
#fit .notice, .fit-page .notice {
  border-radius: 9px; padding: 8px 10px; font-size: 12px;
  background: var(--warn-soft); border: 1px solid var(--warn-line); color: var(--warn-text);
}
#fit .notice.info, .fit-page .notice.info { background: var(--accent-soft); border-color: var(--accent-line); color: var(--text); }
#fit .notice.error, .fit-page .notice.error { background: var(--danger-soft); border-color: var(--danger-line); color: var(--danger-text); }

#fit .spinner {
  width: 14px; height: 14px; border: 2px solid rgba(4, 18, 12, .25); border-top-color: var(--on-accent);
  border-radius: 50%; animation: fit-spin .8s linear infinite;
}
@keyframes fit-spin { to { transform: rotate(360deg); } }

/* ---------- inner tabs (Result / Role notes / Recent) ---------- */
#fit .fit-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--card-border); margin-top: 14px; }
#fit .fit-tabs button {
  font: inherit; font-weight: 600; background: none; border: 0; cursor: pointer;
  padding: 8px 10px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
#fit .fit-tabs button.active { color: var(--text); border-bottom-color: var(--accent); }

/* ---------- queue ---------- */
#fit .queue-row { display: flex; align-items: center; gap: 8px; padding: 6px 2px; }
#fit .queue-row .name { flex: 1; min-width: 0; overflow-wrap: break-word; font-size: 13px; }

/* ---------- collapsible results ---------- */
#fit .result-item { border: 1px solid var(--card-border); border-radius: 12px; padding: 8px 10px; background: var(--card-fill); }
#fit .result-item + .result-item { margin-top: 8px; }
#fit .result-summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; }
#fit .result-summary::-webkit-details-marker { display: none; }
#fit .result-summary .name { flex: 1; min-width: 0; overflow-wrap: break-word; font-weight: 650; font-size: 13px; }
#fit .result-item[open] .result-summary { margin-bottom: 4px; }

/* ---------- verdict ---------- */
#fit .verdict { border-radius: 12px; padding: 12px; display: flex; align-items: center; gap: 12px; border: 1px solid transparent; }
#fit .verdict .big { font-size: 17px; font-weight: 750; }
#fit .verdict .sub { font-size: 12px; opacity: .85; }
#fit .verdict .score { margin-left: auto; text-align: right; }
#fit .verdict .score .n { font-size: 24px; font-weight: 800; line-height: 1; }
#fit .verdict .score .l { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; opacity: .8; }
#fit .v-strong { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }
#fit .v-verify { background: var(--warn-soft); color: var(--warn); border-color: var(--warn-line); }
#fit .v-not { background: var(--danger-soft); color: var(--danger); border-color: var(--danger-line); }

/* ---------- criteria ---------- */
#fit .crit { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
#fit .crit li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; }
#fit .crit .ic {
  width: 20px; height: 20px; border-radius: 50%; font-size: 12px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
#fit .crit .met .ic { background: var(--accent-soft); color: var(--accent); }
#fit .crit .not_met .ic { background: var(--danger-soft); color: var(--danger); }
#fit .crit .unknown .ic { background: var(--warn-soft); color: var(--warn); }
/* 'likely' (9/25): implied by titles/credentials/skills. A softer check than 'met'. */
#fit .crit .likely .ic { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent-line); }
#fit .crit .lk { font-size: 10.5px; font-weight: 600; color: var(--accent); margin-left: 6px; padding: 0 5px; border: 1px solid var(--accent-line); border-radius: 999px; cursor: help; }
#fit .crit .t { font-weight: 600; overflow-wrap: break-word; }
#fit .crit .e { color: var(--muted); font-size: 12px; margin-top: 1px; overflow-wrap: break-word; }
#fit .crit .w { font-size: 10.5px; color: var(--muted); font-weight: 500; margin-left: 4px; }

#fit .qs { margin: 0; padding-left: 18px; }
#fit .qs li { margin-bottom: 4px; overflow-wrap: break-word; }
#fit .flags li { color: var(--danger-text); }

#fit .tag-industry { display: inline-block; font-size: 11px; padding: 1px 6px; border-radius: 4px; background: var(--soft); color: var(--muted); }
#fit .ind-strong { background: var(--accent-soft); color: var(--accent); }
#fit .ind-partial { background: var(--warn-soft); color: var(--warn); }
#fit .ind-weak { background: var(--danger-soft); color: var(--danger); }
#fit .pre, .fit-page .pre { white-space: pre-wrap; font-size: 12px; line-height: 1.5; overflow-wrap: break-word; }

/* ---------- history ---------- */
#fit .hist { list-style: none; margin: 0; padding: 0; }
#fit .hist li { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; padding: 8px 0; border-bottom: 1px solid var(--card-border); cursor: pointer; }
#fit .hist li:last-child { border-bottom: 0; }
#fit .hist .n { font-weight: 600; overflow-wrap: break-word; }
#fit .export-box { display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 1px solid var(--card-border); border-radius: 8px; }
#fit .export-box .row { gap: 6px; flex-wrap: wrap; align-items: center; }
#fit .hist .role { grid-column: 1 / -1; font-weight: 600; }
#fit .hist .m { color: var(--muted); font-size: 12px; overflow-wrap: break-word; }
#fit .hist .v { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; align-self: start; border: 1px solid transparent; }
#fit .chk { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; margin: 0; font-size: 12px; color: var(--muted); }
#fit .chk input { width: auto; margin: 0; }

/* ---------- conversation notes ---------- */
#fit .notes-log, .fit-page .notes-log { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
#fit .notes-log li, .fit-page .notes-log li { font-size: 12px; padding: 6px 8px; background: var(--soft); border-radius: 6px; overflow-wrap: break-word; }
#fit .notes-log li .m, .fit-page .notes-log li .m { color: var(--muted); font-weight: 600; margin-right: 6px; }
.fit-page .notes-log li.empty { background: none; color: var(--muted); padding: 0; }

/* =====================================================================================
   Roles admin page (options.html). A full-width page, same tokens.
   ===================================================================================== */
body.fit-page { padding: 0; font-size: 13.5px; }
.fit-page .topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 20px; position: sticky; top: 0; z-index: 5;
  background: var(--bg); border-bottom: 1px solid var(--card-border);
}
.fit-page .topbar .brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.fit-page .topbar .who { font-size: 12px; color: var(--muted); }
.fit-page .page { max-width: 860px; margin: 0 auto; padding: 20px 20px 60px; display: flex; flex-direction: column; gap: 14px; }
.fit-page h1 { font-size: 18px; margin: 0; font-weight: 650; }
.fit-page .card { margin-top: 0; padding: 16px; }
.fit-page label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.fit-page textarea { resize: vertical; min-height: 64px; }
.fit-page .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fit-page .grid3 { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 12px; }
.fit-page .grid-loc { display: grid; grid-template-columns: 130px 1fr 150px auto; gap: 12px; align-items: end; }
@media (max-width: 700px) { .fit-page .grid2, .fit-page .grid3, .fit-page .grid-loc { grid-template-columns: 1fr; } }
.fit-page .self-end { align-self: end; padding-bottom: 8px; }
.fit-page .dash { color: var(--muted); padding: 0 2px; }
.fit-page .lbl-note { font-weight: 400; color: var(--muted); opacity: .85; }
.fit-page label.check { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--text); margin: 6px 0 0; cursor: pointer; }
.fit-page label.check input { width: auto; margin: 0; }
.fit-page .roles-list { list-style: none; margin: 0; padding: 0; }
.fit-page .roles-list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--card-border); }
.fit-page .roles-list li:last-child { border-bottom: 0; }
.fit-page .roles-list li.group { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 14px 0 4px; border-bottom: 0; }
.fit-page .roles-list li.group:first-child { padding-top: 4px; }
.fit-page .roles-head { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; }
.fit-page .roles-head .actions { justify-content: flex-end; }
.fit-page .roles-list .btn.danger { color: var(--muted); }
.fit-page .roles-list .btn.danger:hover { color: var(--danger); }
.fit-page .roles-list .t { font-weight: 650; }
.fit-page .roles-list .c { color: var(--muted); font-size: 12px; }
.fit-page .roles-list .closed .t { color: var(--muted); text-decoration: line-through; }
.fit-page .roles-list .t.clickable { cursor: pointer; }
.fit-page .roles-list .t.clickable:hover { color: var(--accent); }
.fit-page .roles-list li.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; align-items: start; background: var(--soft); border-radius: 8px; padding: 12px 14px; margin: 2px 0 8px; border-bottom: 0; }
@media (max-width: 700px) { .fit-page .roles-list li.detail { grid-template-columns: 1fr; } }
.fit-page .roles-list li.detail .dblock.wide { grid-column: 1 / -1; }
.fit-page .roles-list li.detail h3 { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.fit-page .roles-list li.detail h3 .chip { text-transform: none; letter-spacing: 0; font-weight: 600; }
.fit-page .roles-list li.detail .pre { max-height: 320px; overflow: auto; background: var(--s1); border: 1px solid var(--card-border); border-radius: 6px; padding: 8px 10px; }
.fit-page .roles-list li.detail ul.plain { list-style: none; margin: 4px 0 0; padding: 0; }
.fit-page .roles-list li.detail ul.plain li { padding: 2px 0; }
.fit-page .roles-list li.detail .dblock > div > div { margin-bottom: 4px; }
.fit-page .chip { font-size: 11px; padding: 2px 7px; border-radius: 999px; background: var(--soft); color: var(--muted); font-weight: 600; border: 1px solid var(--card-border); text-transform: none; letter-spacing: 0; }
.fit-page .chip.active { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }
.fit-page .chip.warn, .fit-page .chip.draft { background: var(--warn-soft); color: var(--warn); border-color: var(--warn-line); }
.fit-page .chip.bad { background: var(--danger-soft); color: var(--danger); border-color: var(--danger-line); }
.fit-page .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.fit-page .status-line { font-size: 12px; min-height: 18px; color: var(--muted); }
.fit-page .status-line.ok { color: var(--accent); }
.fit-page .status-line.err { color: var(--danger); }
.fit-page code { background: var(--soft); padding: 1px 5px; border-radius: 4px; font-size: 12px; }
.fit-page details.sec { padding: 0; }
.fit-page details.sec > summary, .fit-page .sec-summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 10px; padding: 12px 16px; user-select: none; }
.fit-page details.sec > summary::-webkit-details-marker, .fit-page #intakeInput > summary::-webkit-details-marker, .fit-page .how > summary::-webkit-details-marker { display: none; }
.fit-page details.sec > summary::before, .fit-page #intakeInput > summary::before { content: '▸'; color: var(--muted); font-size: 12px; width: 12px; flex: none; transform: translateY(-1px); }
.fit-page details.sec[open] > summary::before, .fit-page #intakeInput[open] > summary::before { content: '▾'; }
.fit-page details.sec[open] > summary { border-bottom: 1px solid var(--card-border); }
.fit-page .sec-title { font-size: 14px; font-weight: 650; flex: none; }
.fit-page .sec-meta { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.fit-page .sec-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 14px; }
.fit-page #intakeInput > summary { padding: 4px 0; }
.fit-page .how { padding: 10px 16px; }
.fit-page .how > summary { cursor: pointer; font-weight: 600; list-style: none; }
.fit-page #editorCard { display: flex; flex-direction: column; gap: 10px; }
.fit-page .editor-bar { display: flex; align-items: center; gap: 8px; position: sticky; top: 46px; z-index: 4; padding: 10px 16px; background: var(--bg); }
.fit-page .editor-bar h1 { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.fit-page .status-select { width: auto; max-width: 240px; }
.fit-page .editor-status { padding: 0 4px; }
.fit-page .editor-status:empty { display: none; }
.fit-page .editor-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 4px 0 0; }
.fit-page .rows { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.fit-page .rows .crow { display: grid; grid-template-columns: 1fr auto auto; gap: 6px; align-items: center; }
.fit-page .rows .crow.no-weight { grid-template-columns: 1fr auto; }
.fit-page .rows .crow.contact { grid-template-columns: 1.2fr 1.4fr 1.4fr auto; }
.fit-page .rows .crow select { width: auto; min-width: 150px; }
.fit-page .rows .crow .x { width: 32px; height: 34px; padding: 0; font-size: 16px; line-height: 1; color: var(--muted); }
.fit-page .rows .crow .x:hover { color: var(--danger); }

/* Roles admin: the assignment checklist (0.2.1) */
.fit-page .admin-tabs { position: static; max-width: 280px; margin: 0 0 4px; }
.fit-page .assign-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.fit-page .assign-chips:empty { display: none; }
.fit-page .assign-chip { display: inline-flex; align-items: center; gap: 4px; }
.fit-page .assign-chip button { border: 0; background: transparent; color: inherit; cursor: pointer; font: inherit; padding: 0 2px; line-height: 1; }
.fit-page .checklist { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 6px 0 2px; }
.fit-page .checklist label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.fit-page .checklist label .em { color: var(--muted); font-size: 11.5px; }

/* Score a list page (0.7.0) */
.list-page .page { max-width: 1100px; }
.list-page select { width: 100%; }
.list-page .drop { border: 1.5px dashed var(--accent-line); border-radius: 12px; padding: 18px 16px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; background: var(--accent-soft); }
.list-page .drop:hover, .list-page .drop:focus-visible, .list-page .drop.over { border-color: var(--accent); outline: none; }
.list-page .help b { color: var(--text); }
.list-page .bigline { display: flex; align-items: baseline; gap: 6px; }
.list-page .big { font-size: 30px; font-weight: 750; letter-spacing: -.02em; line-height: 1; }
.list-page .progress { height: 7px; border-radius: 4px; background: var(--accent-soft); overflow: hidden; }
.list-page .progress > div { height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.list-page .mono { font-variant-numeric: tabular-nums; }
.list-page #activity.err { color: var(--danger-text); }
.list-page .chip { border: 1px solid var(--card-border); background: transparent; border-radius: 999px; padding: 4px 11px; font-size: 12.5px; cursor: pointer; color: var(--text); }
.list-page .chip b { font-variant-numeric: tabular-nums; }
.list-page .chip.fit { color: var(--accent); } .list-page .chip.not_fit { color: var(--danger); } .list-page .chip.insufficient { color: var(--warn); } .list-page .chip.likely { color: var(--accent); } .list-page .chip.error { color: var(--muted); }
.list-page .chip[aria-pressed="true"] { border-color: currentColor; }
.list-page .ov-h { margin: 0; font-size: 15px; }
.list-page .ov-sec { display: flex; flex-direction: column; gap: 4px; }
.list-page .ov-title { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--muted); }
.list-page .ov-title .muted { font-weight: 500; letter-spacing: 0; text-transform: none; }
.list-page table.ov { min-width: 640px; }
.list-page table.ov tbody tr[data-run] { cursor: pointer; }
.list-page table.ov tbody tr[data-run]:hover td { background: var(--soft); }
.list-page table.ov tr.sel td { background: var(--accent-soft); }
.list-page table.ov td { vertical-align: middle; }
.list-page table.ov .acts { text-align: right; white-space: nowrap; }
.list-page table.ov .acts .btn { margin-left: 4px; }
.list-page table.ov .prog { white-space: nowrap; }
.list-page table.ov .mini { display: inline-block; width: 110px; height: 6px; border-radius: 3px; background: var(--accent-soft); overflow: hidden; vertical-align: middle; margin-right: 8px; }
.list-page table.ov .mini > div { height: 100%; background: var(--accent); }
.list-page table.ov .err { color: var(--danger-text); }
.list-page .live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 7px; vertical-align: middle; animation: fcl-pulse 1.4s ease-in-out infinite; }
.list-page #btnAddList.on { outline: 2px solid var(--accent-line); outline-offset: 1px; }
@keyframes fcl-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .list-page .live { animation: none; } }
.list-page #search { flex: 1; min-width: 220px; max-width: 420px; }
.list-table th button { background: none; border: 0; padding: 0; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
.list-table th button:hover { color: var(--text); }
.list-table th .arrow { font-size: 9px; color: var(--accent); }
.list-table td a { color: var(--text); font-weight: 650; text-decoration: none; border-bottom: 1px solid var(--accent-line); }
.list-table td a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.list-page .tablewrap { overflow-x: auto; border: 1px solid var(--card-border); border-radius: 12px; background: var(--card-fill); }
.list-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 760px; }
.list-table th { text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--card-border); position: sticky; top: 0; background: var(--bg); }
.list-table td { padding: 9px 12px; border-bottom: 1px solid var(--card-border); vertical-align: top; }
.list-table tr:last-child td { border-bottom: 0; }
.list-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.list-table .sub { color: var(--muted); font-size: 12px; }
.list-table .li { font-size: 12px; color: var(--muted); word-break: break-all; max-width: 220px; }
.list-table .why { color: var(--muted); font-size: 12.5px; max-width: 72ch; }
/* The Lists page's Why column (10/26, KAN-737): the explanation is the point of the row, so it takes a third of the table (it was a 42-character strip that showed the first 100 characters of a line of evidence). */
.list-table td.why { width: 33%; }
.list-table tr.current td { background: var(--accent-soft); }
.list-table .v { display: inline-block; font-size: 12px; font-weight: 650; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.list-table .v.fit { color: var(--accent); background: var(--accent-soft); }
.list-table .v.not_fit { color: var(--danger-text); background: var(--danger-soft); }
.list-table .v.insufficient { color: var(--warn-text); background: var(--warn-soft); }
.list-table .v.likely { color: var(--accent); background: transparent; border: 1px solid var(--accent-line); }
.list-table .v.error { color: var(--muted); background: var(--soft); }
.list-table .v.wait { color: var(--muted); border: 1px dashed var(--card-border); font-weight: 500; }
.list-table .v.now { color: var(--accent); border: 1px solid var(--accent-line); font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .list-page .progress > div { transition: none; } }

/* Outreach after a 70+ score (0.3.0; 80+ until 0.6.1) */
#fit .who { flex-wrap: wrap; }
#fit .who .mailbox { flex-basis: 100%; }
#fit .outreach h2 { margin-bottom: 4px; }
#fit .outreach .contact b { color: var(--text); }
#fit .outreach .msg { min-height: 16px; }
#fit .outreach .vm-pick { max-width: 100%; }
.fit-page .staff-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; padding: 10px 0; border-bottom: 1px solid var(--card-border); }
.fit-page .staff-row .full { grid-column: 1 / -1; }
.fit-page .staff-row label { font-size: 11.5px; color: var(--muted); display: block; margin-bottom: 3px; }
.fit-page .staff-row input, .fit-page .staff-row textarea, .fit-page .staff-row select { width: 100%; }
.fit-page .staff-row textarea { min-height: 72px; }
.fit-page .staff-add { border: 1px solid var(--card-border); border-radius: 10px; padding: 12px; }
.fit-page .staff-row .chk { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text); }
.fit-page .staff-row .chk input { width: auto; }
.fit-page .staff-row .actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; }

/* Admin -> Costs (0.7.0). Series colors from the validated reference palette, stepped per theme
   (dark default, light restated); text always wears text tokens, never a series color. */
.fit-page { --s1c: #3987e5; --s2c: #d95926; --s3c: #199e70; --s4c: #c98500; }
:root[data-theme="light"] .fit-page { --s1c: #2a78d6; --s2c: #eb6834; --s3c: #1baf7a; --s4c: #eda100; }
.fit-page .seg { display: inline-flex; border: 1px solid var(--card-border); border-radius: 9px; overflow: hidden; }
.fit-page .seg button { background: transparent; border: 0; padding: 5px 11px; font: inherit; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.fit-page .seg button[aria-pressed="true"] { background: var(--accent-soft); color: var(--text); font-weight: 600; }
.cost-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.cost-tiles .tile { border: 1px solid var(--card-border); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.cost-tiles .tile.total { background: var(--accent-soft); border-color: var(--accent-line); }
.cost-tiles .k { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.cost-tiles b { font-size: 22px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.cost-tiles .s { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.fit-page .sw { display: inline-block; width: 9px; height: 9px; border-radius: 2px; vertical-align: middle; }
.fit-page .sw.s1, .cost-chart rect.s1 { background: var(--s1c); fill: var(--s1c); }
.fit-page .sw.s2, .cost-chart rect.s2 { background: var(--s2c); fill: var(--s2c); }
.fit-page .sw.s3, .cost-chart rect.s3 { background: var(--s3c); fill: var(--s3c); }
.fit-page .sw.s4, .cost-chart rect.s4 { background: var(--s4c); fill: var(--s4c); }
.cost-chart { position: relative; }
.cost-chart svg { width: 100%; height: 220px; display: block; }
.cost-chart .grid { stroke: var(--card-border); stroke-width: 1; }
.cost-chart .ax { fill: var(--muted); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.cost-chart .hit { fill: transparent; cursor: default; }
.cost-chart .hit:hover { fill: var(--soft); }
.cost-chart .tip { position: absolute; top: 0; width: 220px; background: var(--s1); border: 1px solid var(--card-border); border-radius: 10px; padding: 8px 10px; font-size: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.25); pointer-events: none; display: grid; gap: 2px; }
.cost-chart .tip i { margin-right: 5px; }
.cost-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); }
.cost-legend i { margin-right: 6px; }
.fit-page .tablewrap { overflow-x: auto; }
.cost-table { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 620px; }
.cost-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 7px 8px; border-bottom: 1px solid var(--card-border); }
.cost-table td { padding: 7px 8px; border-bottom: 1px solid var(--card-border); font-variant-numeric: tabular-nums; }
.cost-table .num { text-align: right; }

/* Search Kit (KAN-630): cannot-have hits, red, above the score */
#fit .cannot-hits { background: var(--danger-soft); border: 1px solid var(--danger-line); border-left: 4px solid var(--danger); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; }
#fit .cannot-hits .h { color: var(--danger); font-weight: 700; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
#fit .cannot-hits ul { margin: 0; padding-left: 16px; }
#fit .cannot-hits li { color: var(--danger-text); margin-bottom: 4px; overflow-wrap: break-word; }
#fit .cannot-hits li:last-child { margin-bottom: 0; }
#fit .cannot-hits .e { font-size: 12px; opacity: .85; margin-top: 2px; }

/* Score a list outreach (0.7.2): enrichment, contact column, email preview dialog. */
.list-page .outreach-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; border: 1px solid var(--accent-line); border-radius: 10px; background: var(--accent-soft); }
.list-page .outreach-bar label.check { margin: 0; font-weight: 600; color: var(--text); }
.list-page .lookup-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; border: 1px solid var(--card-border); border-radius: 10px; background: var(--soft); }
.list-page .lookup-bar .lookup-text { flex: 1 1 320px; min-width: 0; }
.list-page .lookup-bar label { margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.list-page .lookup-bar input[type="number"] { width: 4.5em; }
.list-page .lookup-bar .lookup-verify { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.list-page .lookup-bar .btn:disabled { opacity: .45; cursor: default; }
.list-page .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.list-table .selcol { width: 28px; }
.list-table td.selcol input { width: auto; margin: 0; }
.list-table .contact { font-size: 12px; min-width: 150px; }
.list-table .contact .more { color: var(--muted); cursor: help; }
/* 10/8 (Luke: "there is horizontal scrolling"): the outreach column wraps instead of stretching the table. */
.list-table .outr { white-space: normal; min-width: 130px; max-width: 240px; }
/* The table fits down to ~910px (laptops with display scaling): pills wrap, the call pill sits under the
   score, long links in Why break, Contact gives a little. */
.list-table .v { white-space: normal; }
.list-table td.num .pill { display: block; width: max-content; margin: 3px 0 0 auto; white-space: nowrap; }
.list-table .why { overflow-wrap: anywhere; min-width: 150px; }
.list-table .outr .done-chip { margin-bottom: 3px; }
.list-table .outr .btn { margin: 0 4px 4px 0; }
.list-table .done-chip { display: inline-block; font-size: 11px; font-weight: 650; color: var(--accent); margin-right: 6px; }
.list-table .row-msg { font-size: 11.5px; color: var(--muted); white-space: normal; max-width: 220px; }
.list-table .row-msg.err { color: var(--danger-text); }
.mail-dlg { border: 1px solid var(--card-border); border-radius: 14px; background: var(--s1); color: var(--text); padding: 0; width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 48px); }
.mail-dlg::backdrop { background: rgba(0,0,0,.55); }
.mail-dlg .md-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px 18px 8px; }
.mail-dlg .md-head h2 { margin: 0; font-size: 16px; text-transform: none; letter-spacing: 0; color: var(--text); }
.mail-dlg .md-list { padding: 0 18px; max-height: calc(100vh - 220px); overflow: auto; display: flex; flex-direction: column; gap: 12px; }
.mail-dlg .md-item { border: 1px solid var(--card-border); border-radius: 10px; padding: 10px 12px; display: grid; gap: 6px; }
.mail-dlg .md-item .md-who { font-weight: 650; display: flex; justify-content: space-between; gap: 8px; }
.mail-dlg .md-item label { font-size: 11.5px; color: var(--muted); margin: 0; }
.mail-dlg .md-item input, .mail-dlg .md-item textarea { width: 100%; }
.mail-dlg .md-item textarea { min-height: 170px; font: inherit; line-height: 1.45; }
.mail-dlg .md-item .md-state { font-size: 12px; }
.mail-dlg .md-item .md-state.ok { color: var(--accent); }
.mail-dlg .md-item .md-state.err { color: var(--danger-text); }
.mail-dlg .md-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 18px 16px; }
.mail-dlg .md-foot #mdMsg { margin-right: auto; }

/* All lists (0.7.3): browse by CLIENT - ROLE, then the role's lists. */
.list-page #browseSearch { flex: 1; min-width: 200px; max-width: 360px; }
.list-page #browseCrumb .link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; }
.list-page table.ov tbody tr[data-role], .list-page table.ov tbody tr[data-list] { cursor: pointer; }
.list-page table.ov tbody tr[data-role]:hover td, .list-page table.ov tbody tr[data-list]:hover td { background: var(--soft); }
.list-page .newest { display: inline-block; margin-left: 6px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); border: 1px solid var(--accent-line); border-radius: 999px; padding: 0 6px; }
.list-page .live-t { display: inline-flex; align-items: center; }
.list-page #viewHead { padding-bottom: 6px; border-bottom: 1px solid var(--card-border); }
.list-page #viewHead .link { background: none; border: 0; padding: 0; margin-left: 8px; font: inherit; color: var(--accent); cursor: pointer; }
/* Filters above the table (0.7.4): result chips, then the enrichment chips for fits. */
.list-page .row.end { justify-content: flex-end; }
.list-page #chips { align-items: center; gap: 6px 8px; }
.list-page #chips .chip-label { font-size: 12px; font-weight: 650; color: var(--muted); margin-right: 2px; }
.list-page #chips .chip-sep { width: 1px; height: 18px; background: var(--card-border); margin: 0 6px; }
.list-page .chip.contact { color: var(--text); }
.list-page .outreach-bar .btn:disabled { opacity: .45; cursor: default; }
.list-table td.contact .btn { margin-top: 4px; }
/* To and Numbers as checkboxes (Luke 10/1): one email or voicemail per ticked address or number. */
.md-to-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.md-tos { display: grid; gap: 4px; }
.mail-dlg .md-to { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--text); cursor: pointer; }
.mail-dlg .md-item .md-to input, .mail-dlg .md-to input { width: auto; margin: 0; }
/* Queue button and pop-up (Luke 10/1). */
.queue-fab { position: fixed; right: 20px; bottom: 20px; z-index: 30; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--card-border); background: var(--s1, #172229); box-shadow: 0 6px 20px rgba(0,0,0,.25); display: grid; place-items: center; cursor: pointer; padding: 0; }
.queue-fab:hover { border-color: var(--accent); }
.queue-fab.hidden { display: none; }
.queue-fab .queue-badge { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--warn, #9a6400); color: #fff; font: 700 11px/20px var(--f-mono, monospace); text-align: center; }
.queue-fab .queue-badge.hidden { display: none; }
.queue-dlg { width: min(1000px, calc(100vw - 32px)); }
.queue-dlg #queueFilter { width: auto; min-width: 150px; }
.queue-dlg .cost-tiles { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
/* Ledger chips (Luke 10/2). */
.done-chip.reply { background: var(--good-soft, #dcf1e4); color: var(--good, #1f7a4a); font-weight: 700; }
.done-chip.owner { background: var(--accent-soft); color: var(--accent); }
.done-chip.warn { background: var(--warn-soft); color: var(--warn); }
.done-chip.ok { background: var(--good-soft, #dcf1e4); color: var(--good, #1f7a4a); font-weight: 700; }   /* "Cleared: not the client" (KAN-735) */
.nc-reason { display: grid; gap: 4px; margin-top: 12px; }
.nc-reason select { width: 100%; }
#inmailDlg textarea, #inmailDlg input { width: 100%; }
.mail-dlg .warn-text { color: var(--warn); }
#inmailDlg #inmailOpen { flex: none; width: auto; }
#histOwnerEdit { display: flex; align-items: center; gap: 8px; } #histOwnerEdit.hidden { display: none; } #histOwnerEdit select, #histOwnerEdit .btn { width: auto; flex: none; min-width: 200px; } #histOwnerEdit .btn { min-width: 0; }

/* Hide confirm (Luke 10/8) */
.mail-dlg.confirm-dlg { width: min(460px, calc(100vw - 32px)); }
.confirm-dlg .hide-who { border: 1px solid var(--card-border); border-radius: 10px; padding: 10px 12px; display: grid; gap: 2px; }
.confirm-dlg .hide-who b { font-size: 14.5px; }
.confirm-dlg .hide-who .sub { color: var(--muted); font-size: 12.5px; }
.confirm-dlg .hide-body { margin: 2px 0 4px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.confirm-dlg .hide-body b { color: var(--text); font-weight: 600; }
.list-page .chip.hid { color: var(--muted); }
.list-page #chips .chip-act { font-size: 12px; font-weight: 650; padding: 2px 10px; min-height: 0; border-radius: 999px; color: var(--accent); border: 1px solid var(--accent-line); background: var(--accent-soft); opacity: 1; }
.list-page #chips .chip-act:hover { filter: brightness(1.1); }

/* Duplicate checker (10/8) */
.list-page .chip.rep { color: var(--muted); }
.list-table .sub.rep-note { color: var(--warn); }

/* Same person picker + duplicate actions (10/8) */
.confirm-dlg #pickSearch { width: 100%; margin: 4px 0 8px; }
.confirm-dlg .pick-list { max-height: 300px; overflow: auto; display: grid; gap: 4px; padding-bottom: 4px; }
.confirm-dlg .pick-list button { text-align: left; background: var(--s1); border: 1px solid var(--card-border); border-radius: 8px; padding: 6px 10px; color: var(--text); cursor: pointer; font: inherit; font-size: 13px; }
.confirm-dlg .pick-list button:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.confirm-dlg .pick-list .sub { display: block; color: var(--muted); font-size: 12px; }
.list-table .row-acts { display: flex; flex-wrap: wrap; gap: 2px 10px; }

/* Loading, not errors (Luke 10/9) */
.spin { display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -2px; border: 2px solid var(--accent-line); border-top-color: var(--accent); border-radius: 50%; animation: fit-spin .8s linear infinite; }
.mail-dlg .md-loading { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 18px 4px; color: var(--muted); font-size: 13px; }
