/* Midasblue ATS — UI styles
   VOICE: calm, confident work tool; colour carries meaning (state, priority, urgency), chrome stays quiet.
   COLOUR: Midas blue #1346b4 leads, deep navy rail, a single gold accent for "Midas" moments; state colours are admin-configurable.
   TYPE: Plus Jakarta Sans throughout, 4 sizes. */
:root {
  --brand: #1346b4; --brand-2: #1d5be0; --brand-50: #eef3ff; --brand-100: #dbe6ff;
  --rail: #0b1d47; --rail-2: #13295e; --gold: #f5b301;
  --bg: #f3f5fa; --card: #ffffff; --ink: #0f172a; --ink-2: #334155; --muted: #64748b; --line: #e3e8f2; --line-2: #eef1f7;
  --ok: #16a34a; --warn: #d97706; --bad: #dc2626; --info: #0284c7;
  --r: 12px; --r-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 16px rgba(15, 23, 42, .05);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, .18);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; min-width: 0; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand); text-decoration: none; }
svg.i { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.mono { font-variant-numeric: tabular-nums; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hidden { display: none !important; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--rail); color: #c8d3ee; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 18px 12px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 22px; color: #fff; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: #fff url("data:image/png;base64,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") center / 26px 26px no-repeat; box-shadow: 0 1px 0 rgba(0,0,0,.12); flex: none; }
.brand-name { font-weight: 800; font-size: 16px; letter-spacing: -.2px; line-height: 1.1; }
.brand-name span { display: block; font-weight: 500; font-size: 11.5px; color: #8fa2cf; letter-spacing: 0; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; color: #c8d3ee; font-weight: 600; }
.nav a:hover { background: var(--rail-2); color: #fff; }
.nav a.on { background: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(19, 70, 180, .45); }
.nav .sep { height: 1px; background: rgba(255,255,255,.08); margin: 12px 8px; }
.side-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; background: rgba(255,255,255,.04); }
.side-foot .who { flex: 1; line-height: 1.25; }
.side-foot .who b { color: #fff; display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-foot .who span { font-size: 11.5px; color: #8fa2cf; }
.iconbtn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; border: 0; background: transparent; color: inherit; cursor: pointer; }
.iconbtn:hover { background: rgba(127, 127, 127, .14); }

.main { display: flex; flex-direction: column; min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 12px clamp(14px, 3vw, 28px); background: rgba(243, 245, 250, .86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar h1 { font-size: 20px; margin: 0; letter-spacing: -.3px; flex: none; }
.gsearch { position: relative; flex: 1; max-width: 460px; margin-left: auto; }
.gsearch input { width: 100%; height: 40px; padding: 0 12px 0 38px; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.gsearch > svg { position: absolute; left: 12px; top: 11px; color: var(--muted); }
.gresults { position: absolute; top: 46px; left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; max-height: 70vh; overflow: auto; }
.gresults h6 { margin: 8px 10px 4px; font-size: 11.5px; color: var(--muted); font-weight: 700; }
.gresults a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--ink); }
.gresults a:hover, .gresults a:focus { background: var(--brand-50); outline: none; }
.content { padding: clamp(14px, 3vw, 28px); padding-bottom: 96px; max-width: 1480px; width: 100%; }
.bottomnav { display: none; }

/* ---------- buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s; }
.btn:hover { border-color: #c9d3e6; background: #f8faff; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 2px 8px rgba(19, 70, 180, .28); }
.btn.primary:hover { background: var(--brand-2); }
.btn.danger { color: var(--bad); }
.btn.danger.solid { background: var(--bad); color: #fff; border-color: var(--bad); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: rgba(19, 70, 180, .07); }
.btn.sm { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 8px; }
.btn[disabled] { opacity: .55; pointer-events: none; }
:focus-visible { outline: 3px solid rgba(29, 91, 224, .45); outline-offset: 1px; }
.input, select.input, textarea.input { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; transition: border-color .15s, box-shadow .15s; }
textarea.input { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; }
.input:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(29, 91, 224, .15); }
.input[readonly] { background: var(--line-2); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.field > label i { color: var(--bad); font-style: normal; }
.field .hint { font-size: 12px; color: var(--muted); }
.grid-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.grid-form .span2 { grid-column: 1 / -1; }
.form-section { grid-column: 1 / -1; font-size: 12.5px; font-weight: 800; color: var(--brand); padding-top: 6px; border-top: 1px dashed var(--line); margin-top: 4px; }
.toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; min-height: 40px; font-weight: 600; color: var(--ink-2); }
.toggle input { appearance: none; width: 40px; height: 24px; border-radius: 99px; background: #cbd5e1; position: relative; cursor: pointer; transition: background .15s; flex: none; margin: 0; }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.toggle input:checked { background: var(--ok); }
.toggle input:checked::after { transform: translateX(16px); }
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 13px; color: var(--ink-2); }
.seg input:checked + span { border-color: var(--c, var(--brand)); background: color-mix(in srgb, var(--c, var(--brand)) 12%, white); color: color-mix(in srgb, var(--c, var(--brand)) 85%, black); box-shadow: inset 0 0 0 1px var(--c, var(--brand)); }
.seg input:focus-visible + span { outline: 3px solid rgba(29, 91, 224, .45); }

/* ---------- chips & badges ---------- */
.chip { --c: #64748b; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; background: color-mix(in srgb, var(--c) 13%, white); color: color-mix(in srgb, var(--c) 82%, black); border: 1px solid color-mix(in srgb, var(--c) 26%, white); }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.chip.plain::before { display: none; }
.chip.solid { background: var(--c); color: #fff; border-color: var(--c); }
.chip.solid::before { background: rgba(255,255,255,.7); }
button.chip { cursor: pointer; }
button.chip:hover { box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); }
.badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.b-ok { background: #dcfce7; color: #166534; }
.b-warn { background: #fef3c7; color: #92400e; }
.b-bad { background: #fee2e2; color: #991b1b; }
.b-info { background: #e0f2fe; color: #075985; }
.b-mute { background: #eef1f6; color: #475569; }
.b-brand { background: var(--brand-100); color: var(--brand); }
.prio { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px; border-radius: 6px; font-size: 11.5px; font-weight: 800; color: #fff; background: var(--c); }
.tag { display: inline-block; padding: 1px 7px; margin: 2px 4px 0 0; border-radius: 5px; background: var(--line-2); color: var(--ink-2); font-size: 11.5px; font-weight: 600; }
.avatar { --c: var(--brand); width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11.5px; font-weight: 800; color: #fff; background: var(--c); flex: none; }
.avatar.lg { width: 48px; height: 48px; font-size: 16px; }
.cust { --c: var(--brand); display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
.cust::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--c); }

/* ---------- cards & layout ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px 10px; }
.card-h h3 { margin: 0; font-size: 15px; letter-spacing: -.1px; }
.card-b { padding: 4px 18px 18px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.toolbar .search { position: relative; flex: 1 1 240px; max-width: 360px; }
.toolbar .search input { padding-left: 36px; }
.toolbar .search svg { position: absolute; left: 11px; top: 11px; color: var(--muted); }
.toolbar select.input { width: auto; max-width: 200px; }
.toolbar .grow { flex: 1; }
.statebar { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; margin-bottom: 4px; scrollbar-width: thin; }
.statebar .chip { height: 32px; padding: 0 12px; flex: none; cursor: pointer; border-radius: 9px; background: #fff; color: var(--ink-2); border-color: var(--line); }
.statebar .chip b { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 700; }
.statebar .chip.on { background: color-mix(in srgb, var(--c) 14%, white); color: color-mix(in srgb, var(--c) 85%, black); border-color: var(--c); box-shadow: inset 0 0 0 1px var(--c); }
.viewtoggle { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.viewtoggle button { border: 0; background: transparent; height: 38px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--muted); cursor: pointer; }
.viewtoggle button.on { background: var(--brand-50); color: var(--brand); }
.flags { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.flags button { height: 32px; border-radius: 99px; border: 1px dashed #c3cde0; background: #fff; padding: 0 12px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.flags button.on { border-style: solid; border-color: var(--brand); background: var(--brand-50); color: var(--brand); }

/* ---------- tables ---------- */
.tablewrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: separate; border-spacing: 0; }
.t th { position: sticky; top: 0; background: #f8fafd; text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t th.sortable { cursor: pointer; user-select: none; }
.t th.sortable:hover { color: var(--brand); }
.t th .arr { opacity: .7; }
.t td { padding: 11px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.t tbody tr { cursor: pointer; transition: background .1s; }
.t tbody tr:hover { background: #f6f9ff; }
.t tbody tr.inactive td { opacity: .55; }
.t tr:last-child td { border-bottom: 0; }
.t .who { display: flex; align-items: center; gap: 10px; }
.t .who b { display: block; font-weight: 700; color: var(--ink); white-space: nowrap; }
.t .who > div > span { font-size: 12px; color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.t .stripe { width: 4px; padding: 0; background: var(--c, transparent); }
.ctc { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ctc small { display: block; font-weight: 700; font-size: 11.5px; }
.progress { height: 6px; border-radius: 99px; background: var(--line-2); overflow: hidden; display: flex; min-width: 70px; }
.progress i { display: block; height: 100%; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty svg { width: 42px; height: 42px; color: #b6c2da; margin-bottom: 6px; }
.empty b { display: block; color: var(--ink-2); font-size: 15px; margin-bottom: 4px; }
.more { display: flex; justify-content: center; padding: 14px; }

/* ---------- dashboard ---------- */
.dash { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.kpis { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.kpi { --c: var(--brand); position: relative; padding: 16px 16px 14px; overflow: hidden; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.kpi .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 13%, white); color: var(--c); margin-bottom: 10px; }
.kpi .v { font-size: 30px; font-weight: 800; letter-spacing: -1px; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi .l { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 6px; }
.kpi::after { content: ""; position: absolute; right: -24px; top: -24px; width: 84px; height: 84px; border-radius: 50%; background: color-mix(in srgb, var(--c) 8%, transparent); }
.col-8 { grid-column: span 8; } .col-4 { grid-column: span 4; } .col-6 { grid-column: span 6; } .col-12 { grid-column: 1 / -1; }
.funnel { display: flex; flex-direction: column; gap: 7px; }
.frow { display: grid; grid-template-columns: 150px minmax(0, 1fr) 40px; align-items: center; gap: 10px; cursor: pointer; padding: 2px 4px; border-radius: 6px; }
.frow:hover { background: var(--line-2); }
.frow .nm { font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frow .bar { height: 22px; border-radius: 6px; background: var(--line-2); overflow: hidden; }
.frow .bar i { display: block; height: 100%; background: var(--c); border-radius: 6px; min-width: 3px; transition: width .5s ease; }
.frow .n { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.mlist { display: flex; flex-direction: column; }
.mitem { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 4px; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.mitem:last-child { border-bottom: 0; }
.mitem:hover { background: #f8faff; }
.mitem b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mitem .sub { font-size: 12px; color: var(--muted); }
.feed { display: flex; flex-direction: column; }
.feed .ev { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 12px; padding: 8px 0; position: relative; }
.feed .ev::before { content: ""; position: absolute; left: 4px; top: 22px; bottom: -8px; width: 2px; background: var(--line-2); }
.feed .ev:last-child::before { display: none; }
.feed .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--muted)); margin-top: 6px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, #64748b) 18%, white); }
.feed .tx { font-size: 13px; }
.feed .tm { font-size: 11.5px; color: var(--muted); }
.lead { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 0; }

/* ---------- drives ---------- */
.dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 14px; }
.drive { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 14px; padding: 16px; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.drive:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.dcal { --c: var(--brand); border-radius: 12px; overflow: hidden; text-align: center; border: 1px solid color-mix(in srgb, var(--c) 30%, white); align-self: start; }
.dcal .m { background: var(--c); color: #fff; font-size: 11.5px; font-weight: 800; padding: 3px 0; }
.dcal .d { font-size: 26px; font-weight: 800; line-height: 1.2; padding-top: 4px; }
.dcal .w { font-size: 11px; font-weight: 700; color: var(--muted); padding-bottom: 6px; }
.drive h4 { margin: 0 0 4px; font-size: 15px; }
.drive .meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--muted); }
.drive .meta span { display: inline-flex; align-items: center; gap: 5px; }
.drive .meta svg { width: 14px; height: 14px; }
.panelfaces { display: flex; margin-top: 10px; }
.panelfaces .avatar { width: 26px; height: 26px; font-size: 10px; border: 2px solid #fff; margin-left: -6px; }
.panelfaces .avatar:first-child { margin-left: 0; }
.outbar { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }

/* ---------- board ---------- */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 12px; align-items: start; }
.bcol { --c: #64748b; background: #eaeef6; border-radius: 12px; padding: 10px; min-height: 120px; border-top: 4px solid var(--c); }
.bcol.over { background: color-mix(in srgb, var(--c) 14%, #eaeef6); outline: 2px dashed var(--c); }
.bcol h5 { margin: 2px 4px 10px; font-size: 13px; display: flex; justify-content: space-between; color: var(--ink-2); }
.bcard { background: #fff; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; box-shadow: 0 1px 2px rgba(0,0,0,.06); border: 1px solid var(--line); cursor: grab; }
.bcard:active { cursor: grabbing; }
.bcard.dragging { opacity: .45; }
.bcard b { display: block; font-size: 13.5px; }
.bcard .sub { font-size: 12px; color: var(--muted); }
.bcard .row { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; gap: 6px; flex-wrap: wrap; }

/* ---------- modal & drawer ---------- */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(11, 29, 71, .42); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade .15s ease; }
.modal { background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); width: min(680px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; animation: pop .18s ease; }
.modal.wide { width: min(980px, 100%); }
.modal.narrow { width: min(440px, 100%); }
.modal-h { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-h h2 { margin: 0; font-size: 17px; flex: 1; }
.modal-b { padding: 18px 20px; overflow: auto; }
.modal-f { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); background: #fafbfe; border-radius: 0 0 16px 16px; flex-wrap: wrap; }
.modal-f .left { margin-right: auto; }
.overlay.drawer { justify-content: flex-end; padding: 0; align-items: stretch; }
.overlay.drawer .modal { width: min(720px, 100%); max-height: 100vh; height: 100vh; border-radius: 0; animation: slide .22s ease; }
.overlay.drawer .modal-f { border-radius: 0; }
.dhead { display: flex; gap: 14px; align-items: flex-start; }
.dhead h2 { margin: 0; font-size: 20px; letter-spacing: -.3px; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 14px 18px; margin: 16px 0; }
.kv > div > span { display: block; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.kv > div > b { font-weight: 600; word-break: break-word; }
.sect { margin-top: 18px; }
.sect h4 { margin: 0 0 10px; font-size: 13.5px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.statepick { display: flex; flex-wrap: wrap; gap: 8px; }
.statepick .chip { height: 34px; padding: 0 12px; cursor: pointer; font-size: 13px; }
.statepick .chip.cur { background: var(--c); color: #fff; }
.panelrow { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr .9fr 36px; gap: 8px; margin-bottom: 8px; }
.collist .crow { display: grid; grid-template-columns: 28px 26px minmax(0, 1fr) minmax(0, 1.3fr) 66px; gap: 8px; align-items: center; padding: 6px 8px; border: 1px solid var(--line); border-radius: 9px; margin-bottom: 6px; background: #fff; }
.collist .crow.off { background: var(--line-2); }
.collist .crow.off .input { opacity: .55; }
.collist .crow.dragging { opacity: .4; }
.collist .crow .lbl { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.collist .crow .handle { cursor: grab; color: #94a3b8; display: grid; place-items: center; }
.collist .crow .input { height: 34px; }
.tpl { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tpl button { height: 32px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 12.5px; cursor: pointer; }
.tpl button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.preview { overflow: auto; max-height: 260px; border: 1px solid var(--line); border-radius: 10px; }
.preview table { border-collapse: collapse; font-size: 12px; }
.preview th, .preview td { padding: 6px 10px; border-bottom: 1px solid var(--line-2); white-space: nowrap; text-align: left; }
.preview th { background: var(--brand); color: #fff; position: sticky; top: 0; }

.toasts { position: fixed; z-index: 80; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { pointer-events: auto; background: #0f172a; color: #fff; padding: 11px 16px; border-radius: 10px; box-shadow: var(--shadow-lg); font-weight: 600; display: flex; gap: 10px; align-items: center; animation: pop .2s ease; max-width: 92vw; }
.toast.ok { background: #14532d; } .toast.bad { background: #991b1b; }
.fab { display: none; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 10px 14px; font-weight: 700; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.on { color: var(--brand); border-bottom-color: var(--brand); }
.tabs button .n { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 99px; background: var(--line-2); font-size: 11.5px; }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.login-art { background: radial-gradient(1200px 600px at -10% -10%, #2a63e6 0%, transparent 60%), linear-gradient(160deg, #0b1d47 0%, #102a6b 55%, #1346b4 100%); color: #fff; padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-art h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; margin: 0 0 14px; letter-spacing: -1px; max-width: 14ch; text-wrap: balance; }
.login-art p { color: #c3d1f3; max-width: 44ch; font-size: 15.5px; margin: 0; }
.pipe { display: flex; flex-direction: column; gap: 10px; margin: 36px 0; max-width: 460px; }
.pipe div { display: grid; grid-template-columns: 130px minmax(0, 1fr) 34px; gap: 12px; align-items: center; font-size: 13px; color: #dbe5ff; font-weight: 600; }
.pipe div i { display: block; height: 14px; border-radius: 99px; background: var(--c); box-shadow: 0 0 18px color-mix(in srgb, var(--c) 60%, transparent); animation: grow 1s ease both; transform-origin: left; }
.pipe div b { text-align: right; font-variant-numeric: tabular-nums; }
.login-form { display: grid; place-items: center; padding: 28px; }
.login-form form { width: min(380px, 100%); display: flex; flex-direction: column; gap: 14px; }
.login-form h1 { margin: 0 0 4px; font-size: 26px; letter-spacing: -.5px; }
.err { background: #fee2e2; color: #991b1b; padding: 10px 12px; border-radius: 9px; font-weight: 600; font-size: 13px; }
.demo-note { background: #fff8e1; border: 1px solid #fde68a; border-radius: 10px; padding: 10px 12px; font-size: 12.5px; color: #78350f; }
.demo-users { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.97) translateY(6px); } }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
@keyframes grow { from { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .col-8, .col-4, .col-6 { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
  .topbar { padding: 10px 14px; gap: 10px; }
  .topbar h1 { font-size: 18px; }
  .topbar .gsearch { max-width: none; }
  .topbar .newbtn { display: none; }
  .content { padding: 14px 12px 110px; }
  .bottomnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 6px 6px max(6px, env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(15, 23, 42, .06); }
  .bottomnav a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 700; color: var(--muted); padding: 6px 0; border-radius: 10px; }
  .bottomnav a.on { color: var(--brand); background: var(--brand-50); }
  .fab { display: grid; place-items: center; position: fixed; z-index: 31; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); width: 56px; height: 56px; border-radius: 18px; border: 0; background: var(--brand); color: #fff; box-shadow: 0 8px 24px rgba(19, 70, 180, .45); cursor: pointer; }
  .fab svg { width: 24px; height: 24px; }
  .toolbar .search { max-width: none; flex-basis: 100%; }
  .toolbar select.input { flex: 1 1 140px; max-width: none; }
  .toolbar .hide-sm { display: none; }
  .grid-form { grid-template-columns: minmax(0, 1fr); }
  .overlay { padding: 0; align-items: flex-end; }
  .modal, .modal.wide, .modal.narrow { width: 100%; max-height: 94vh; border-radius: 18px 18px 0 0; animation: up .22s ease; }
  .modal-f { border-radius: 0; padding-bottom: max(14px, env(safe-area-inset-bottom)); }
  .overlay.drawer { align-items: flex-end; }
  .overlay.drawer .modal { height: 94vh; border-radius: 18px 18px 0 0; }
  .login { grid-template-columns: minmax(0, 1fr); }
  .login-art { padding: 28px 22px; }
  .login-art .pipe { display: none; }
  .panelrow { grid-template-columns: 1fr 1fr; }
  .panelrow .iconbtn { justify-self: end; }
  .collist .crow { grid-template-columns: 24px 24px minmax(0, 1fr) 66px; }
  .collist .crow .lbl { display: none; }
  .frow { grid-template-columns: 110px minmax(0, 1fr) 32px; }
  /* tables become cards */
  table.cards thead { display: none; }
  table.cards, table.cards tbody { display: block; }
  table.cards tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); position: relative; }
  table.cards td { display: block; padding: 0; border: 0; }
  table.cards td.stripe { position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; }
  table.cards td.c-main { grid-column: 1; }
  table.cards td.c-side { grid-column: 2; justify-self: end; align-self: start; }
  table.cards td.c-meta { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink-2); }
  table.cards td.c-meta::before { content: attr(data-l) ": "; color: var(--muted); font-weight: 600; }
  table.cards td.c-meta:empty, table.cards td.hide-sm { display: none; }
  table.cards td.c-meta .ctc small { display: inline; margin-left: 6px; }
}
@keyframes up { from { transform: translateY(40px); opacity: 0; } }

.badge svg.i { width: 12px; height: 12px; }
.ctc.inl small { display: inline; margin-left: 4px; }
.overlay.still, .overlay.still .modal { animation: none; }
.demo-note svg.i { vertical-align: -4px; margin-right: 4px; }

.t .trunc { max-width: 190px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1360px) { .t .hide-md { display: none; } }

/* quick-add rows */
.t tr.draft { cursor: default; background: #fffbeb; }
.t tr.draft:hover { background: #fffbeb; }
.t tr.draft.saved, .t tr.draft.saved:hover { background: #f0fdf4; }
.t tr.draft.error, .t tr.draft.error:hover { background: #fef2f2; }
.t tr.draft td { vertical-align: top; padding: 8px 6px; }
.t tr.draft .input { height: 34px; font-size: 13px; padding: 0 8px; border-radius: 7px; min-width: 120px; }
.t tr.draft td.c-main .input { width: 220px; }
.t tr.draft select.input { max-width: 190px; }
.dstack { display: flex; flex-direction: column; gap: 6px; }
.dstat { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 12px; min-height: 30px; }
.dstat svg.i { width: 14px; height: 14px; vertical-align: -2px; }
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; cursor: pointer; }
.chk input { width: 16px; height: 16px; margin: 0; }
.t tr.addrow, .t tr.addrow:hover { cursor: default; background: transparent; }
.t tr.addrow td { padding: 0; border-bottom: 0; }
.addline { width: 100%; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; padding: 12px 14px; border: 0; border-top: 1px dashed #c3cde0; background: transparent; color: var(--brand); font-weight: 700; font-size: 14px; cursor: pointer; text-align: left; }
.addline:hover { background: var(--brand-50); }
.addline .plus { width: 28px; height: 28px; border-radius: 8px; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; }
@media (max-width: 860px) {
  table.cards tr.draft { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  table.cards tr.draft td, table.cards tr.draft td.c-main { grid-column: 1 / -1; }
  table.cards tr.draft td.c-meta::before { display: block; margin-bottom: 4px; }
  table.cards tr.draft td.hide-md, table.cards tr.draft td.hide-sm { display: none; }
  .t tr.draft .input, .t tr.draft td.c-main .input, .t tr.draft select.input { width: 100% !important; max-width: none; }
  table.cards tr.addrow { display: block; padding: 0; }
  table.cards tr.addrow td { display: block; }
}
.t tr.draft td.stripe { padding: 0; }

/* user code badges */
.ucode { --c: var(--brand); display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 5px; border-radius: 6px; background: var(--c); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .3px; vertical-align: middle; flex: none; }
.ucode.sm { min-width: 22px; height: 18px; font-size: 10px; border-radius: 5px; }
/* shared tags */
.tagc { --c: #0ea5e9; display: inline-flex; align-items: center; height: 20px; padding: 0 8px; margin: 3px 4px 0 0; border-radius: 99px; font-size: 11.5px; font-weight: 700; background: color-mix(in srgb, var(--c) 14%, white); color: color-mix(in srgb, var(--c) 80%, black); border: 1px solid color-mix(in srgb, var(--c) 30%, white); white-space: nowrap; }
.tagpick { display: flex; flex-wrap: wrap; gap: 8px; }
.tagpick label { cursor: pointer; }
.tagpick input { position: absolute; opacity: 0; pointer-events: none; }
.tagpick label span, .tagtog { --c: #0ea5e9; display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 99px; border: 1px dashed color-mix(in srgb, var(--c) 45%, white); background: #fff; color: color-mix(in srgb, var(--c) 75%, black); font-weight: 600; font-size: 13px; cursor: pointer; }
.tagpick input:checked + span, .tagtog.on { background: var(--c); border: 1px solid var(--c); color: #fff; }
.tagpick input:focus-visible + span { outline: 3px solid rgba(29, 91, 224, .45); }
/* candidate counts per state in MPR rows */
.spills { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; max-width: 330px; }
.spill { --c: #64748b; display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: 7px; border: 1px solid color-mix(in srgb, var(--c) 30%, white); background: color-mix(in srgb, var(--c) 12%, white); color: color-mix(in srgb, var(--c) 82%, black); font-size: 11.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.spill b { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 5px; background: var(--c); color: #fff; font-size: 11px; }
.spill:hover { box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 20%, transparent); }
.mprno { font-size: 15px; letter-spacing: .3px; font-variant-numeric: tabular-nums; }
.toolbar .mprbox { flex: 0 1 230px; }
@media (max-width: 860px) { .toolbar .mprbox { flex-basis: 100%; } .spills { max-width: none; } }

/* comments in MPR rows */
.cmt { display: flex; gap: 6px; align-items: flex-start; margin-top: 6px; padding: 5px 8px; border-radius: 7px; background: #fffbeb; border: 1px solid #fde68a; color: #78350f; font-size: 12px; max-width: 340px; }
.cmt svg.i { width: 14px; height: 14px; margin-top: 2px; color: #b45309; }
.cmt span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* allocation badges in MPR rows */
.allocs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; max-width: 220px; }
.abadge { display: inline-flex; align-items: center; gap: 4px; }
.abadge small { font-size: 11px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.abtn { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 7px; border-radius: 6px; border: 1px solid var(--line); background: #fff; color: var(--brand); font-size: 12px; font-weight: 700; cursor: pointer; }
.abtn svg.i { width: 14px; height: 14px; }
.abtn.empty { border: 1px dashed #93a8d6; background: var(--brand-50); }
.abtn:hover { border-color: var(--brand); }
/* assign modal */
.alist { display: flex; flex-direction: column; gap: 6px; }
.arow { display: grid; grid-template-columns: 20px auto minmax(0, 1fr) auto 84px; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.arow.on { border-color: var(--brand); background: var(--brand-50); }
.arow input[type=checkbox] { width: 18px; height: 18px; margin: 0; }
.arow .nm { display: flex; flex-direction: column; line-height: 1.25; }
.arow .input { height: 34px; }
/* allocation tab */
.daynav { display: inline-flex; align-items: center; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 2px; }
.daynav .input { border: 0; height: 36px; width: 150px; }
.wlgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.wl { border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.wl.mine { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.wl-h { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; margin-bottom: 8px; }
.wl-h .nm { display: flex; flex-direction: column; line-height: 1.3; }
.wl-load { display: flex; gap: 3px; margin-bottom: 8px; }
.wl-load i { flex: 1; height: 6px; border-radius: 3px; background: var(--line-2); }
.wl-load i.on { background: var(--c); }
.mchip { --c: var(--brand); display: inline-block; margin: 2px 4px 0 0; padding: 1px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; color: color-mix(in srgb, var(--c) 85%, black); background: color-mix(in srgb, var(--c) 12%, white); border: 1px solid color-mix(in srgb, var(--c) 30%, white); cursor: pointer; font-variant-numeric: tabular-nums; }
.kpi .v small { font-size: 14px; color: var(--muted); font-weight: 700; letter-spacing: 0; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #fff; }
.stepper.hit { border-color: #16a34a; box-shadow: inset 0 0 0 1px #16a34a; }
.stepper button { width: 34px; height: 34px; border: 0; background: #f4f6fb; font-size: 18px; font-weight: 700; color: var(--brand); cursor: pointer; }
.stepper button:hover { background: var(--brand-50); }
.stepper input { width: 56px; height: 34px; border: 0; text-align: center; font-weight: 800; font-size: 15px; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:disabled { background: #fff; color: var(--ink); }
.ninput { width: 70px; height: 34px; text-align: right; }
.t tr.mine td { background: #f5f8ff; }
@media (max-width: 860px) {
  .bottomnav { grid-template-columns: repeat(6, 1fr) !important; }
  .bottomnav a { font-size: 10.5px; }
  .arow { grid-template-columns: 20px auto minmax(0, 1fr) 70px; }
  .arow .badge { display: none; }
  .allocs, .cmt { max-width: none; }
}

.t td[data-l=Role] { min-width: 250px; }
@media (max-width: 860px) { .t td[data-l=Role] { min-width: 0; } }

/* collapsible sidebar */
.shell { transition: grid-template-columns .2s ease; }
.brand { position: relative; }
.brand .collapser { margin-left: auto; width: 32px; height: 32px; color: #8fa2cf; }
.brand .collapser:hover { color: #fff; background: rgba(255,255,255,.08); }
.brand .collapser svg { transition: transform .2s ease; }
.shell.collapsed { grid-template-columns: 76px minmax(0, 1fr); }
.shell.collapsed .sidebar { padding: 18px 10px; align-items: stretch; }
.shell.collapsed .brand { flex-direction: column; gap: 10px; padding: 4px 0 18px; }
.shell.collapsed .brand .collapser { margin: 0; }
.shell.collapsed .brand .collapser svg { transform: scaleX(-1); }
.shell.collapsed .brand-name, .shell.collapsed .nav .lbl, .shell.collapsed .side-foot .who { display: none; }
.shell.collapsed .nav a { justify-content: center; padding: 11px 0; }
.shell.collapsed .nav .sep { margin: 12px 4px; }
.shell.collapsed .side-foot { flex-direction: column; padding: 8px 0; gap: 6px; }
.brand-name span { white-space: nowrap; }

/* requirement state + work-today focus */
.mstate { --c: #64748b; appearance: none; -webkit-appearance: none; height: 30px; padding: 0 28px 0 12px; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--c) 40%, white); background: color-mix(in srgb, var(--c) 13%, white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23475569' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right 10px center; color: color-mix(in srgb, var(--c) 85%, black); font-weight: 800; font-size: 12.5px; cursor: pointer; }
.mstate:focus-visible { outline: 3px solid rgba(29, 91, 224, .45); }
.t tbody tr.focus { background: #fffbeb; }
.t tbody tr.focus:hover { background: #fef6d8; }
.todaytag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; background: #f5b301; color: #3b2a00; font-size: 11px; font-weight: 800; vertical-align: middle; }
.toggle.sm { min-height: 28px; gap: 7px; font-size: 12px; margin-bottom: 6px; }
.toggle.sm input { width: 32px; height: 19px; }
.toggle.sm input::after { width: 13px; height: 13px; }
.toggle.sm input:checked { background: #f5b301; }
.toggle.sm input:checked::after { transform: translateX(13px); }
.toggle.sm input:disabled { opacity: .45; cursor: not-allowed; }
.needrec { font-size: 11.5px; font-weight: 800; color: var(--bad); margin: -2px 0 6px; }
.card.alert { border-color: #fecaca; box-shadow: 0 0 0 3px #fee2e2; }
.card.alert h3 { color: #991b1b; display: flex; align-items: center; gap: 8px; }
/* export views */
.tplgroups { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.tplgroups .tpl { margin: 0; align-items: center; }
.tplh { display: inline-flex; align-items: center; gap: 6px; min-width: 132px; font-size: 12px; font-weight: 800; color: var(--muted); }
.tplh svg.i { width: 15px; height: 15px; }
.colchips { display: flex; flex-wrap: wrap; gap: 2px; max-width: 520px; }
@media (max-width: 860px) { .tplh { min-width: 0; width: 100%; } }
.toggle.sm span { white-space: nowrap; }
@media (max-width: 860px) { .t tbody tr.focus td.c-main { box-shadow: none; } }

/* requirement state tabs */
.segtabs { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; }
.segtabs button { --c: var(--brand); display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; font-weight: 700; color: var(--muted); cursor: pointer; white-space: nowrap; }
.segtabs button b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--line-2); color: var(--ink-2); font-size: 11.5px; }
.segtabs button.on { background: color-mix(in srgb, var(--c) 12%, white); color: color-mix(in srgb, var(--c) 85%, black); }
.segtabs button.on b { background: var(--c); color: #fff; }
.sttag { --c: #64748b; display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 5px; font-size: 10.5px; font-weight: 800; background: color-mix(in srgb, var(--c) 15%, white); color: color-mix(in srgb, var(--c) 85%, black); vertical-align: middle; }
.stseg { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; vertical-align: middle; }
.stseg button { --c: #64748b; height: 30px; padding: 0 12px; border: 0; border-right: 1px solid var(--line); background: #fff; font-weight: 700; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.stseg button:last-child { border-right: 0; }
.stseg button.on { background: var(--c); color: #fff; }
/* compact opened date */
.opened { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; white-space: nowrap; font-size: 13px; font-weight: 600; }
.age { font-size: 11px; font-weight: 800; padding: 1px 6px; border-radius: 5px; }
.age.ok { background: #dcfce7; color: #166534; } .age.warn { background: #fef3c7; color: #92400e; } .age.bad { background: #fee2e2; color: #991b1b; } .age.mute { background: #eef1f6; color: #64748b; }
/* pinned candidate-state strip on requirement rows */
.fstrip { --n: 6; display: grid; grid-template-columns: repeat(var(--n), 46px); gap: 3px; }
.fhead { margin-top: 6px; }
.fhead span { --c: #64748b; font-size: 9.5px; font-weight: 800; color: color-mix(in srgb, var(--c) 85%, black); text-align: center; white-space: nowrap; overflow: hidden; border-bottom: 2px solid var(--c); padding-bottom: 2px; }
.fcell { --c: #64748b; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 28px; padding: 0; border-radius: 6px; border: 1px solid color-mix(in srgb, var(--c) 32%, white); background: color-mix(in srgb, var(--c) 14%, white); color: color-mix(in srgb, var(--c) 85%, black); font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums; cursor: pointer; }
.fcell.z { background: #f8fafc; border-color: #eef1f7; color: #c4cdda; font-weight: 600; }
.fcell:hover { box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 35%, transparent); }
.fcell .fl { display: none; max-width: 100%; overflow: hidden; margin-bottom: 2px; font-size: 9px; font-weight: 700; line-height: 1; white-space: nowrap; }
.fstrip.labeled .fcell { height: 38px; }
.fstrip.labeled .fcell .fl { display: block; }
/* import */
.drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px; border: 2px dashed #b9c6e2; border-radius: 14px; background: #f8faff; text-align: center; cursor: pointer; }
.drop svg.i { width: 30px; height: 30px; color: var(--brand); }
.drop.over { border-color: var(--brand); background: var(--brand-50); }
.drop.has { border-style: solid; border-color: #16a34a; background: #f0fdf4; }
.impstats { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.preview tr.error td { background: #fef2f2; }
.preview td.errtxt { color: #991b1b; white-space: normal; min-width: 260px; }
.impcols summary { cursor: pointer; font-weight: 700; color: var(--brand); padding: 6px 0; }
.impcols .t td { padding: 6px 10px; }
@media (max-width: 860px) { .fcell { height: 38px; } .fcell .fl { display: block; } .segtabs { max-width: 100%; overflow-x: auto; } }

/* state strip v2: one connected, self-labelled pipeline per row (readable without the table heading) */
.fstrip { --n: 6; display: grid; grid-template-columns: repeat(var(--n), minmax(48px, 1fr)); gap: 0; max-width: 330px; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #fff; }
.fcell, .fstrip.labeled .fcell { height: 40px; border: 0; border-right: 1px solid var(--line-2); border-radius: 0; background: #fff; color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 0 2px; position: relative; }
.fcell:last-child { border-right: 0; }
.fcell .fl, .fstrip.labeled .fcell .fl { display: block; margin: 0; font-size: 9.5px; font-weight: 700; color: var(--muted); letter-spacing: -.1px; }
.fcell b { font-size: 14px; line-height: 1.1; }
.fcell::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--c); opacity: .9; }
.fcell:not(.z) { background: color-mix(in srgb, var(--c) 9%, white); }
.fcell:not(.z) b { color: color-mix(in srgb, var(--c) 85%, black); }
.fcell.z { background: #fff; }
.fcell.z b { color: #c4cdda; font-weight: 600; }
.fcell.z::after { opacity: .25; }
.fcell:hover { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 45%, transparent); }
.fhead { display: none; }
/* collapsed sidebar: icon + short label */
.nav .slbl { display: none; }
.shell.collapsed { grid-template-columns: 84px minmax(0, 1fr); }
.shell.collapsed .nav a { flex-direction: column; gap: 4px; padding: 9px 0 7px; }
.shell.collapsed .nav .slbl { display: block; font-size: 10.5px; font-weight: 700; line-height: 1.1; text-align: center; }
@media (max-width: 860px) { .fstrip { max-width: none; } }

/* row controls: priority dropdown + Active switch; left edge = Active */
.t td.stripe { width: 5px; }
.mctl { display: flex; align-items: center; gap: 5px; margin: 4px 0 2px; flex-wrap: wrap; }
.psel { --c: #2563eb; appearance: none; -webkit-appearance: none; height: 24px; padding: 0 20px 0 8px; border: 0; border-radius: 6px; background: var(--c) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M1 1l3 3 3-3' stroke='white' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 7px center; color: #fff; font-weight: 800; font-size: 12px; cursor: pointer; }
.psel option { color: #0f172a; background: #fff; }
.psel:hover { filter: brightness(1.08); }
.psel:focus-visible { outline: 3px solid rgba(29, 91, 224, .45); }
.toggle.sm.act { margin: 2px 0 4px; }
.toggle.sm.act input:checked { background: #22c55e; }
.flags .gdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; margin-right: 6px; vertical-align: 1px; }

/* 8 pinned states: narrower boxes */
.fstrip { grid-template-columns: repeat(var(--n), minmax(40px, 1fr)); max-width: calc(var(--n) * 46px); }
.fcell .fl, .fstrip.labeled .fcell .fl { font-size: 9px; }
/* compact positions */
.pos { display: flex; flex-direction: column; gap: 4px; width: 46px; font-size: 13px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pos b { font-size: 15px; color: var(--ink); }
.pbar { display: flex; height: 4px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.pbar i { display: block; height: 100%; }
@media (max-width: 860px) { .pos { flex-direction: row; align-items: center; gap: 8px; width: auto; } .pbar { width: 80px; } .fstrip { max-width: none; } }

/* more legible labels (20 Nov): state box labels, BU and level */
.fcell .fl, .fstrip.labeled .fcell .fl { font-size: 10px; font-weight: 800; color: color-mix(in srgb, var(--c) 65%, #0f172a); letter-spacing: 0; }
.fcell.z .fl { color: #334155; }
.fcell.z b { color: #94a3b8; }
.bu { margin-top: 2px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.lvl { display: inline-block; margin-top: 2px; padding: 1px 7px; border-radius: 5px; background: #eef2ff; color: #3730a3; font-size: 12px; font-weight: 700; }
.fstrip { grid-template-columns: repeat(var(--n), minmax(49px, 1fr)); max-width: calc(var(--n) * 54px); }
.fcell { padding: 0 1px; }
.fcell .fl, .fstrip.labeled .fcell .fl { letter-spacing: -.2px; overflow: visible; }
.lvl { display: block; padding: 0; background: none; color: #3730a3; font-size: 12.5px; font-weight: 700; line-height: 1.3; }
@media (max-width: 860px) {
  .fstrip { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); max-width: none; }
  .fcell .fl, .fstrip.labeled .fcell .fl { font-size: 8.5px; letter-spacing: -.3px; }
}

/* Candidates by state as pills: pinned states always shown (0 = white pill, still readable) */
.spills { max-width: 360px; gap: 4px; }
.spills.others { margin-top: 4px; padding-top: 4px; border-top: 1px dashed var(--line); }
.spill { height: 23px; padding: 0 3px 0 8px; gap: 5px; font-size: 11.5px; }
.spill b { min-width: 18px; height: 17px; }
.spill.z { background: #fff; border-color: #dfe5ee; color: #334155; }
.spill.z b { background: #e2e8f0; color: #64748b; }
@media (max-width: 860px) { .spills { max-width: none; } }
.spills:not(.others) { display: grid; grid-template-columns: repeat(4, max-content); gap: 4px; }
.spills:not(.others) .spill { justify-content: space-between; }
.spill:not(.z) { color: color-mix(in srgb, var(--c) 60%, #0f172a); }

/* slim MPR column */
.mprt td.mprcol { width: 104px; min-width: 104px; }
.mprcol .mctl { gap: 4px; }
.mprcol .todaytag, .mprcol .sttag { height: 22px; }
td[data-l=Role] .lvl { display: inline-block; margin: 1px 0 2px; font-size: 12px; }
/* JD / Search text buttons */
.txtbtns { display: flex; gap: 4px; margin-top: 8px; }
.tbtn { height: 24px; padding: 0 8px; border-radius: 6px; border: 1px dashed #b9c6e2; background: #fff; color: var(--brand); font-size: 11.5px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.tbtn.on { border: 1px solid var(--brand); background: var(--brand-50); }
.tbtn:hover { background: var(--brand); color: #fff; border-style: solid; }
.txtbtns.big .tbtn { height: 32px; padding: 0 12px; font-size: 13px; }
.txtarea { min-height: 50vh; font: 13.5px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; }
/* BU chip bar */
.bubar { display: flex; align-items: center; gap: 6px; overflow-x: auto; padding: 2px 2px 10px; margin-bottom: 4px; scrollbar-width: thin; }
.bulbl { font-size: 11.5px; font-weight: 800; color: var(--muted); flex: none; }
.buchip { --c: var(--brand); flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap; }
.buchip i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.buchip b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--line-2); font-size: 11.5px; }
.buchip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.buchip.on b { background: rgba(255,255,255,.25); color: #fff; }
.buchip.on i { background: #fff; }
.bunav { display: inline-flex; gap: 6px; flex: none; }
.bunav svg.i { width: 15px; height: 15px; }
@media (max-width: 860px) { .mprt td.mprcol { width: auto; min-width: 0; } .bunav .btn { padding: 0 8px; } }
.mprt .txtbtns:not(.big) { flex-direction: column; align-items: flex-start; }
.mprt .txtbtns:not(.big) .tbtn { width: 58px; }
.t td[data-l=Role] { min-width: 220px; }
@media (max-width: 860px) { .t td[data-l=Role] { min-width: 0; } }

.lastcol .pos { margin-top: 8px; }

.buchip.muted:not(.on) { background: #f8fafc; color: var(--muted); border-style: dashed; }
/* JD / Search: small round pills side by side */
.mprt .txtbtns:not(.big) { flex-direction: row; align-items: center; gap: 4px; margin-top: 6px; }
.mprt .txtbtns:not(.big) .tbtn { width: auto; height: 20px; padding: 0 8px; border-radius: 99px; font-size: 10.5px; line-height: 1; }
.lastcol .opened { flex-direction: row; align-items: center; gap: 5px; }
.lastcol .pos { margin-top: 6px; }

.cco { font-weight: 700; color: var(--ink); }
.cdes { color: var(--ink-2); font-weight: 600; }
/* candidates table: keep it within the screen */
.t .trunc { max-width: 160px; }
@media (min-width: 861px) { .t td[data-l^=Company] { min-width: 160px; } }
@media (max-width: 1500px) { .t .hide-md { display: none; } }

/* candidate row: comments, skills, interview panel column */
.who .ccom { margin-top: 4px; font-size: 12px; color: var(--ink-2); font-style: italic; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-left: 2px solid var(--line); padding-left: 6px; }
.cskill { color: var(--ink-2); max-width: 220px; }
.trunc { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ivl { display: flex; align-items: center; gap: 6px; font-size: 12.5px; line-height: 1.5; max-width: 170px; }
.ivl .trunc { min-width: 0; }
.ivk { flex: none; font-size: 10px; font-weight: 800; letter-spacing: .02em; padding: 0 5px; border-radius: 4px; background: #eef2ff; color: #3730a3; }
.ivk.av { background: #ecfdf5; color: #047857; }
tr.draft .dstack .input { min-width: 0; }
@media (max-width: 860px) { .who .ccom { max-width: 100%; white-space: normal; } table.cards td.c-meta .ivl { display: inline-flex; margin-right: 10px; max-width: none; } }
.t th .sortable { cursor: pointer; user-select: none; }
.t th .sortable:hover { color: var(--brand); }
.cnot { margin-top: 5px; }
.who .ccom { max-width: 220px; }
@media (min-width: 861px) { .t.cards td[data-l=MPR] .trunc { max-width: 150px; } .ivl { max-width: 140px; } }
@media (min-width: 861px) {
  .t.cards .who > div > span { max-width: 215px; }
  .who .ccom { max-width: 200px; }
  .t.cards td[data-l=MPR] .trunc { max-width: 125px; }
  .ivl { max-width: 125px; }
  .t.cards td.c-side .chip { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (min-width: 861px) {
  .t.cards .who > div > span { max-width: 200px; }
  .who .ccom { max-width: 190px; }
  .t.cards td.c-side .chip { max-width: 108px; }
}
@media (max-width: 860px) { .shell, .shell.collapsed { grid-template-columns: minmax(0, 1fr); } }

/* ---- compact two-line candidate rows ---- */
.ctable td { padding-top: 9px; padding-bottom: 9px; }
.ctable .who { gap: 9px; }
.ctable .who .avatar { flex: none; }
.ctable .cw { min-width: 0; }
.ctable .l1 { display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; }
.ctable .l1 .tagc { flex: none; }
.ctable td.c-meta .l1 .cust { overflow: hidden; text-overflow: ellipsis; max-width: 110px; }
.ctable .cdes { color: var(--ink-2); font-size: 12.5px; }
.ctable .ctc.inl small { font-size: 11px; }
.ctable .cnot { margin-top: 4px; }
.pdots { display: flex; gap: 4px; }
.pdot { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 9.5px; font-weight: 800; letter-spacing: -.02em;
  color: #94a3b8; border: 1.5px dashed #cbd5e1; background: #fff; flex: none; }
.pdot.on { border-style: solid; color: #fff; }
.pdot.on.p-l1 { background: #2563eb; border-color: #2563eb; }
.pdot.on.p-l2 { background: #7c3aed; border-color: #7c3aed; }
.pdot.on.p-hm { background: #ea580c; border-color: #ea580c; }
.avl { margin-top: 3px; color: var(--ink-2); max-width: 110px; }
.avl b { font-size: 10px; color: #047857; background: #ecfdf5; padding: 0 4px; border-radius: 4px; }
.obadges { display: flex; gap: 4px; margin-bottom: 3px; }
.ucode.none { --c: #cbd5e1; color: #94a3b8 !important; background: #f1f5f9 !important; }
.ccom2 { font-size: 12.5px; color: var(--ink-2); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 861px) {
  .ctable .cw > span { display: block; font-size: 12px; color: var(--muted); max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ctable td[data-l=MPR] { max-width: 190px; }
  .ctable td[data-l=MPR] .trunc { max-width: 170px; }
  .ctable td[data-l=Company] { min-width: 150px; max-width: 230px; }
  .ctable td[data-l=Company] .trunc { max-width: 220px; }
  .ctable td.ccomc { min-width: 150px; max-width: 240px; }
  .ctable td.c-side .chip { max-width: 100px; }
}
/* quick-add row: two lines of inputs per cell */
.d2 { display: grid; grid-template-rows: auto auto; grid-auto-flow: column; gap: 6px; align-items: center; }
.d2.one { grid-auto-flow: row; }
.t tr.draft .d2 .input, .t tr.draft td.c-main .d2 .input { width: 118px; min-width: 0; }
.t tr.draft td.c-main .d2 .input[data-fld=name], .t tr.draft td.c-main .d2 .input[data-fld=email] { width: 180px; }
.t tr.draft td[data-l=MPR] select.input { width: 170px; }
.t tr.draft td[data-l=Comments] .input { width: 170px; }
.t tr.draft .d2 select.input { width: 130px; }
.dchk { display: flex; gap: 8px; }
.dcust { padding-left: 2px; }
@media (max-width: 860px) {
  .d2 { grid-auto-flow: row; grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .d2.one { grid-template-columns: 1fr; }
  .t tr.draft .d2 .input { width: 100% !important; }
  .ctable .cw > span { display: block; font-size: 12px; color: var(--muted); }
  .ctable .l1 { flex-wrap: wrap; white-space: normal; }
  .obadges { display: inline-flex; margin-right: 8px; vertical-align: middle; }
}
@media (min-width: 861px) {
  .ctable td { padding-left: 8px; padding-right: 8px; }
  .ctable td.c-main { padding-left: 12px; }
  .ctable td.c-main .l1 { max-width: 215px; overflow: hidden; }
  .ctable .cw > span { max-width: 180px; }
  .ctable td.c-side .chip { max-width: 92px; }
  .ctable td.c-meta .l1 .cust { max-width: 88px; }
  .ctable td[data-l=MPR] .trunc { max-width: 150px; }
  .ctable td[data-l=Company] .trunc { max-width: 200px; }
  .ctable td.ccomc { min-width: 120px; }
  .ctable .avl { max-width: 86px; }
}
.cnot { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
@media (min-width: 861px) {
  .ctable th { padding-left: 8px; padding-right: 8px; white-space: normal; line-height: 1.25; }
  .ctable th:nth-child(2) { padding-left: 12px; }
  .ctable td.c-main .l1 { max-width: 200px; }
  .ctable .cw > span { max-width: 200px; }
  .ctable td[data-l=Company] .trunc { max-width: 190px; }
  .ctable td[data-l=Company] { min-width: 140px; }
  .ctable td.ccomc { min-width: 110px; }
}
.ctable .l1 > b { flex: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.ctable td.c-main .l1 .tagc { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.chk input { flex: none; }
.t tr.draft .d2 .input, .t tr.draft td.c-main .d2 .input { width: 104px; }
.t tr.draft td.c-main .d2 .input[data-fld=name], .t tr.draft td.c-main .d2 .input[data-fld=email] { width: 170px; }
.t tr.draft .d2 select.input { width: 120px; }
.t tr.draft td[data-l=State] select.input { width: 104px; min-width: 0; }
.t tr.draft td[data-l=MPR] select.input { width: 150px; }
.t tr.draft td[data-l=Comments] .input { width: 150px; }
.t tr.draft td[data-l=Owner] .input[type=date] { width: 132px; }
@media (max-width: 860px) { .t tr.draft .d2 .input, .t tr.draft td[data-l] select.input { width: 100% !important; } }
.dchk { gap: 8px; }
.dchk .chk { flex: none; font-size: 11.5px; gap: 4px; }
.dchk .chk input { width: 14px; height: 14px; }
@media (max-width: 860px) { .ctable td.c-meta .l1 .cust { max-width: none; } }
.d2 { grid-auto-columns: max-content; } .t tr.draft .chk { min-width: max-content; }
.t tr.draft td.c-main .dstat { width: 130px; line-height: 1.2; } .t tr.draft td.c-main .d2 .input[data-fld=phone] { width: 130px; }

/* skills · exp column, tiny comments */
.cskl { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.cexp { color: var(--ink-2); margin-top: 2px; }
.cexp b { color: var(--ink); font-weight: 700; }
.ctable th.ccomh { width: 30px; padding-left: 4px; padding-right: 8px; color: var(--muted); }
.ctable th.ccomh svg { width: 14px; height: 14px; vertical-align: -2px; }
.ctable td.ccomc { width: 30px; text-align: center; }
.cnote { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: #fff7ed; color: #c2410c; cursor: help; }
.cnote svg { width: 13px; height: 13px; }
.ccomm { display: none; }
@media (min-width: 861px) {
  .ctable td.ccomc { min-width: 0; max-width: 40px; padding-left: 4px; padding-right: 8px; }
  .ctable td[data-l="Skills · Exp"] .trunc { max-width: 170px; }
  .ctable td[data-l=Company] .trunc { max-width: 175px; }
  .t tr.draft td[data-l=Comments] .input { width: 110px; }
}
@media (max-width: 860px) {
  .ctable td.ccomc { text-align: left; }
  .ctable td.ccomc:empty { display: none; }
  .cnote { display: none; }
  .ccomm { display: block; font-size: 12.5px; color: var(--ink-2); font-style: italic; }
}
@media (min-width: 861px) and (max-width: 1500px) {
  .ctable td[data-l="Skills · Exp"] .trunc { max-width: 150px; }
  .ctable td[data-l=Company] .trunc { max-width: 158px; }
  .ctable td.c-main .l1, .ctable .cw > span { max-width: 182px; }
  .ctable td[data-l=MPR] .trunc { max-width: 138px; }
  .ctable td.c-meta .l1 .cust { max-width: 78px; }
}
@media (min-width: 861px) and (max-width: 1500px) {
  .ctable td, .ctable th { padding-left: 6px; padding-right: 6px; }
  .ctable td.c-main, .ctable th:nth-child(2) { padding-left: 10px; }
}
@media (max-width: 860px) { table.cards tr:not(.draft) td.c-main { grid-row: 1; } table.cards tr:not(.draft) td.c-side { grid-row: 1; } }

/* ---- select mode, bulk update, copy fields ---- */
.btn.on { background: #eef3ff; border-color: #b9cbfb; color: var(--brand); }
.bulkbar { position: sticky; top: 8px; z-index: 5; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; padding: 8px 12px;
  background: #0f2a6b; color: #fff; border-radius: 12px; box-shadow: 0 6px 18px rgba(15, 42, 107, .22); }
.bulkbar .btn { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: #fff; }
.bulkbar .btn:hover { background: rgba(255,255,255,.22); }
.bulkbar .btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.bulkbar .btn.danger:hover { filter: brightness(1.1); }
.bulkbar .btn.primary { background: #fff; color: #0f2a6b; border-color: #fff; }
.bulkbar .muted { color: rgba(255,255,255,.7); }
.bulkbar .srcnote { font-size: 12.5px; color: #dbe5ff; }
.bulkbar .grow { flex: 1; }
.ctable .rsel { width: 16px; height: 16px; margin: 2px 8px 0 0; flex: none; accent-color: var(--brand); cursor: pointer; }
.ctable.selecting tbody tr[data-type=cand] { cursor: pointer; }
.ctable tbody tr.picked td { background: #eef3ff; }
.ctable tbody tr.srcrow td.c-main { box-shadow: inset 3px 0 0 #1346b4; }
.ctable tbody tr.srcrow .cw b::after { content: 'copy from'; margin-left: 6px; font-size: 10px; font-weight: 700; color: #fff; background: #1346b4; border-radius: 4px; padding: 1px 5px; vertical-align: 1px; }
.rselall { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.rselall input { width: 16px; height: 16px; accent-color: var(--brand); }
.addrow .carry { display: flex; align-items: center; gap: 8px; margin: -4px 14px 12px; font-size: 12.5px; color: var(--ink-2); cursor: pointer; width: fit-content; }
.addrow .carry input { width: 15px; height: 15px; accent-color: var(--brand); }
.cpform .field { max-width: 460px; }
.cplist { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 6px; margin-top: 6px; }
.cpf { display: grid; grid-template-columns: 18px 130px minmax(0, 1fr); align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 13px; }
.cpf:has(input:checked) { border-color: #9fb7f5; background: #f3f6ff; }
.cpf input { width: 15px; height: 15px; accent-color: var(--brand); }
.cpf .cpl { font-weight: 600; }
.cpf .cpv { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.cpf .cpv.muted { font-style: italic; color: var(--muted); }
@media (max-width: 860px) { .bulkbar { top: 0; border-radius: 10px; } .cpf { grid-template-columns: 18px 110px minmax(0, 1fr); } }

/* ================= CV screening ================= */
.mpill { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px 0 6px; border-radius: 999px; font-size: 11.5px; font-weight: 800; white-space: nowrap;
  color: var(--mc); background: color-mix(in srgb, var(--mc) 12%, #fff); border: 1px solid color-mix(in srgb, var(--mc) 30%, #fff); line-height: 1; }
.mpill i { font-style: normal; font-weight: 600; font-size: 10.5px; opacity: .85; }
.mpill .i { width: 12px; height: 12px; }
.mpill.mb-strong { --mc: #15803d; } .mpill.mb-good { --mc: #0f766e; } .mpill.mb-moderate { --mc: #b45309; } .mpill.mb-low { --mc: #b91c1c; } .mpill.mb-none { --mc: #64748b; }
.mpill.old { opacity: .55; border-style: dashed; }
.mpill.xs { height: 17px; font-size: 10.5px; padding: 0 6px; }
.mpill .aidot { font-size: 8.5px; font-weight: 800; color: #fff; background: #7c3aed; border-radius: 4px; padding: 1px 3px; margin-left: 1px; }
.ctable td.c-side { white-space: nowrap; }
.ctable td.c-side .mpill { display: flex; width: fit-content; margin-top: 5px; }
@media (max-width: 860px) { .ctable td.c-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; } .ctable td.c-side .mpill { margin-top: 0; } }

.dropnote { font-size: 12.5px; color: var(--ink-2); background: #f8fafc; border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px; margin: 6px 0; }
.dropnote.warn { background: #fffbeb; border-color: #fcd34d; }
.warn-t { color: var(--warn); } .ok-t { color: var(--ok); font-weight: 700; } .bad-t { color: var(--bad); }
.cvlist { display: grid; gap: 6px; margin-bottom: 10px; }
.cvfile { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.cvfile.older { opacity: .7; }
.cvfile > .i { color: var(--brand); flex: none; }
.cvfile .cvn { min-width: 0; flex: 1; display: grid; }
.cvfile .cvn b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cvfile .cvn span { font-size: 11.5px; color: var(--muted); }
.cvfile .iconbtn { width: 30px; height: 30px; }
.mcard { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 12px; background: linear-gradient(180deg, #f8fafc, #fff); border: 1px solid var(--line); }
.mring { --mc: #64748b; flex: none; width: 74px; height: 74px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: radial-gradient(closest-side, #fff 78%, transparent 79% 100%), conic-gradient(var(--mc) calc(var(--p) * 1%), #e5e9f2 0); }
.mring b { font-size: 22px; line-height: 1; color: var(--mc); }
.mring span { font-size: 9px; font-weight: 800; color: var(--mc); text-transform: uppercase; letter-spacing: 0; }
.mring.mb-strong { --mc: #15803d; } .mring.mb-good { --mc: #0f766e; } .mring.mb-moderate { --mc: #b45309; } .mring.mb-low { --mc: #b91c1c; }
.mmeta { min-width: 0; }
.msum { font-weight: 700; font-size: 13.5px; margin-bottom: 2px; }
.mfactors { display: grid; gap: 5px; margin: 12px 0; }
.mf { display: grid; grid-template-columns: 150px minmax(0, 1fr) 62px; align-items: center; gap: 10px; font-size: 12.5px; }
.mf > span { color: var(--ink-2); }
.mf > b { text-align: right; font-size: 12.5px; } .mf > b small { color: var(--muted); font-weight: 500; }
.mbar { height: 7px; border-radius: 99px; background: #eef1f7; overflow: hidden; }
.mbar i { display: block; height: 100%; border-radius: 99px; background: #0f766e; }
.mbar i.mid { background: #d97706; } .mbar i.lo { background: #dc2626; }
.mf.pen > b { color: var(--bad); }
.mskills { display: grid; gap: 8px; margin-bottom: 10px; }
.mskills h5, .mcols h5, .scrsect h5, .aibox h5 { margin: 0 0 5px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.mskills h5 b { color: var(--ink); }
.skx { display: inline-flex; align-items: center; gap: 4px; margin: 0 4px 4px 0; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; border: 1px solid; }
.skx.ok { color: #166534; background: #f0fdf4; border-color: #bbf7d0; }
.skx.ok.listed { color: #92400e; background: #fffbeb; border-color: #fde68a; }
.skx.miss { color: #991b1b; background: #fff; border-color: #fecaca; text-decoration: line-through; text-decoration-color: rgba(153, 27, 27, .35); }
.skx.miss.soft { color: #94a3b8; border-color: #e2e8f0; }
.skx.bad { color: #fff; background: #dc2626; border-color: #dc2626; }
.skx.nice { color: #1e40af; background: #eff6ff; border-color: #bfdbfe; }
.skx i { font-style: normal; font-size: 10px; font-weight: 800; opacity: .7; }
.mcols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 6px 0 8px; }
.mul { margin: 0; padding-left: 18px; font-size: 12.5px; color: var(--ink-2); }
.mul li { margin-bottom: 3px; }
.mul.ok li::marker { color: var(--ok); } .mul.bad li::marker { color: var(--bad); }
.mfacts { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); padding: 8px 0; border-top: 1px solid var(--line-2); }
.mfacts b { color: var(--ink); } .mfacts i { font-style: normal; color: var(--muted); }
.aibox { margin-top: 10px; padding: 12px; border-radius: 12px; border: 1px solid #ddd6fe; background: #faf5ff; }
.aibox.empty { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.aih { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.aih b { display: inline-flex; align-items: center; gap: 6px; color: #6d28d9; }
.aibox p { margin: 0 0 8px; font-size: 13px; }
.scrsect .pfsum { display: grid; gap: 6px; margin-bottom: 10px; }
.pfsum > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; align-items: baseline; }
.pfsum > div > span { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.btnrow { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 10px; }
.rkh { margin-top: 12px !important; }
.rklist { display: grid; gap: 4px; }
.rk { display: grid; grid-template-columns: 20px 96px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 8px; cursor: pointer; border: 1px solid transparent; }
.rk:hover { background: var(--brand-50); border-color: var(--brand-100); }
.rkn { font-size: 11.5px; color: var(--muted); font-weight: 700; text-align: right; }
.rkm { min-width: 0; display: grid; } .rkm b { font-size: 13px; } .rkm span { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.booldet { margin-top: 10px; border-top: 1px solid var(--line-2); padding-top: 8px; }
.booldet summary { cursor: pointer; font-weight: 700; font-size: 13px; color: var(--brand); }
.boolrow { display: grid; grid-template-columns: 118px minmax(0, 1fr) 32px; gap: 8px; align-items: start; margin: 8px 0; }
.boolrow > span { font-size: 12px; font-weight: 700; color: var(--muted); padding-top: 4px; }
.boolrow code { font-size: 11.5px; background: #f8fafc; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; word-break: break-word; white-space: pre-wrap; }
.boolrow .nk { grid-column: span 2; background: #f8fafc; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }
.cvtext { white-space: pre-wrap; font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; max-height: 62vh; overflow: auto; background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin: 0; }

/* profile editor */
.pe { display: grid; gap: 12px; }
.peb { display: grid; gap: 6px; }
.peh { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.peh b { font-size: 13px; }
.pechips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pec { display: inline-flex; align-items: center; gap: 2px; padding: 2px 3px 2px 9px; border-radius: 8px; background: #f0fdf4; border: 1px solid #bbf7d0; font-size: 12.5px; }
.pe-nice .pec { background: #eff6ff; border-color: #bfdbfe; }
.pe-excl .pec { background: #fef2f2; border-color: #fecaca; }
.pec.loc { background: #f8fafc; border-color: var(--line); }
.pec b { font-weight: 600; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-right: 4px; }
.pec i { font-style: normal; font-weight: 800; font-size: 11.5px; min-width: 16px; text-align: center; }
.pec button { width: 20px; height: 20px; border: 0; background: transparent; border-radius: 5px; cursor: pointer; font-weight: 800; color: var(--ink-2); line-height: 1; }
.pec button:hover { background: rgba(15, 23, 42, .08); }
.pec button.x { color: var(--muted); }
.peadd { width: 150px !important; height: 28px !important; }
.pegrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 14px; }
.pef { display: grid; gap: 4px; align-content: start; }
.pef > label { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.pex { display: flex; align-items: center; gap: 6px; } .pex .input { width: 80px; }
.input.sm { height: 32px; padding: 4px 9px; font-size: 13px; }
.pew summary { cursor: pointer; font-weight: 700; font-size: 13px; color: var(--brand); }
.pewg { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin: 8px 0; }
.pewg label { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; }
.pewg .input { width: 70px; }
.pe.compact { gap: 10px; }
.pe.compact .pegrid { grid-template-columns: 1fr; }

/* add CVs */
.dropzone { display: grid; place-items: center; gap: 4px; padding: 26px 16px; border: 2px dashed #b9cbfb; border-radius: 14px; background: #f5f8ff; cursor: pointer; text-align: center; }
.dropzone .i { width: 26px; height: 26px; color: var(--brand); }
.dropzone.over, .dropzone:hover { background: #eaf0ff; border-color: var(--brand); }
.dzsum { margin: 12px 0 8px; font-size: 13px; }
.dzt td { vertical-align: middle; padding: 6px 8px; }
.dzt .input.sm { width: 100%; min-width: 130px; }
.dzt tr.err td { background: #fff7f7; }

/* CV search page */
.srch { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 16px; align-items: start; }
.srch-side { padding: 14px; display: grid; gap: 14px; position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow: auto; }
.srf { display: grid; gap: 10px; border-top: 1px solid var(--line-2); padding-top: 12px; }
.srhead { display: flex; align-items: center; gap: 8px; padding: 12px 14px; flex-wrap: wrap; }
.srt td.c-meta { vertical-align: top; }
.srt td.c-meta .skx { font-size: 11px; padding: 1px 6px; }
.srt .cw > span { display: block; font-size: 12px; color: var(--muted); }
.srt .l1 { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
@media (max-width: 1100px) { .srch { grid-template-columns: 1fr; } .srch-side { position: static; max-height: none; } }
@media (max-width: 860px) { .mcols { grid-template-columns: 1fr; } .mf { grid-template-columns: 110px minmax(0, 1fr) 54px; } .boolrow { grid-template-columns: 1fr 32px; } .boolrow > span { grid-column: span 2; } }
@media (min-width: 861px) and (max-width: 1500px) {
  .ctable td[data-l="Skills · Exp"] .trunc { max-width: 142px; }
  .ctable td[data-l=Company] .trunc { max-width: 148px; }
}

/* drive sheet */
.dshead { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; margin-bottom: 12px; flex-wrap: wrap; }
.dshead .dcal { flex: none; }
.dsinfo { flex: 1; min-width: 260px; }
.dsinfo h2 { margin: 0 0 2px; font-size: 18px; }
.dsmeta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.dsbtns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.dsheet td { vertical-align: top; }
.dsheet .dsfb { width: 100%; min-width: 180px; height: auto; min-height: 34px; resize: vertical; font: inherit; font-size: 12.5px; line-height: 1.35; padding: 6px 8px; }
.dsheet td[data-l=Feedback] { min-width: 190px; }
.ivgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; min-width: 230px; }
.ivgrid label { display: flex; align-items: center; gap: 4px; }
.ivgrid .input.sm { height: 28px; font-size: 12px; padding: 3px 6px; min-width: 0; width: 100%; }
.saved-flash { box-shadow: 0 0 0 2px #86efac !important; transition: box-shadow .2s; }
@media (max-width: 860px) { .dsbtns { justify-content: flex-start; } .ivgrid { min-width: 0; } }
.dsheet td[data-l=Feedback] { min-width: 150px; }
.dsheet .dsfb { min-width: 140px; }
.ivgrid { min-width: 190px; }
.ivgrid .input.sm { padding: 3px 5px; }
@media (max-width: 860px) { .dsheet td[data-l=Feedback], .dsheet .dsfb { min-width: 0; } .ivgrid { min-width: 0; } .dshead .dsinfo { min-width: 0; } }
.topbar h1 { min-width: 0; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 860px) { .topbar .gsearch { min-width: 0; flex: 1 1 120px; } }
@media (max-width: 860px) { table.cards td.dsrm { grid-column: 1 / -1; justify-self: end; margin-top: -4px; } }
.ivgrid { min-width: 180px; } .dsheet td[data-l=Feedback] { min-width: 140px; } .dsheet .dsfb { min-width: 130px; }

/* requirement statements (MidasMatch-style) */
.pest > summary { cursor: pointer; list-style: none; display: flex; gap: 8px; align-items: baseline; }
.pest > summary::-webkit-details-marker { display: none; }
.pest > summary::before { content: '▸'; color: var(--muted); font-size: 11px; transition: transform .15s; display: inline-block; }
.pest[open] > summary::before { transform: rotate(90deg); }
.pehint { line-height: 1.45; margin: 2px 0 4px; }
.stlist { display: grid; gap: 6px; max-height: 46vh; overflow: auto; padding-right: 2px; }
.pe.compact .stlist { max-height: 300px; }
.st { border: 1px solid var(--line); border-radius: 10px; padding: 7px 9px; background: var(--card); display: grid; gap: 5px; }
.st.off { opacity: .55; background: #f8fafc; }
.st.noitems { border-style: dashed; }
.st.editing { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.st.editing textarea { width: 100%; resize: vertical; min-height: 52px; font: inherit; font-size: 13px; }
.sth { display: flex; gap: 8px; align-items: flex-start; }
.stk { flex: none; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; padding: 2px 6px; border-radius: 5px; margin-top: 2px; min-width: 44px; text-align: center; }
.stk.k-must { background: #fee2e2; color: #991b1b; } .stk.k-responsibility { background: #e0e7ff; color: #3730a3; }
.stk.k-nice { background: #e0f2fe; color: #075985; } .stk.k-context { background: #f1f5f9; color: #475569; }
.stt { flex: 1; min-width: 0; font-size: 13px; line-height: 1.4; }
.sttag { display: inline-block; margin-left: 6px; font-size: 10.5px; font-weight: 700; padding: 0 5px; border-radius: 4px; background: #fef3c7; color: #92400e; vertical-align: 1px; }
.sttag.add { background: #dcfce7; color: #166534; }
.stwas { font-size: 11.5px; color: var(--muted); padding-left: 52px; text-decoration: line-through; text-decoration-color: rgba(100, 116, 139, .4); }
.stw { flex: none; display: inline-flex; align-items: center; gap: 1px; }
.stw button { width: 22px; height: 26px; border: 1px solid var(--line); background: #fff; border-radius: 6px; cursor: pointer; font-weight: 800; color: var(--ink-2); }
.stw button:hover { background: var(--brand-50); }
.stw .input.sm { width: 40px; height: 26px; padding: 2px; text-align: center; -moz-appearance: textfield; }
.stw .input.sm::-webkit-inner-spin-button { display: none; }
.sth .iconbtn { width: 26px; height: 26px; flex: none; }
.stitems { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding-left: 52px; }
.sti { display: inline-flex; align-items: center; gap: 2px; padding: 1px 3px 1px 7px; border-radius: 6px; font-size: 11.5px; font-weight: 600; background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.sti.src-derived { border-style: dashed; background: #fff; }
.sti.src-added { background: #fff; border-color: #86efac; }
.sti.comp { background: #f5f3ff; border-color: #ddd6fe; color: #5b21b6; }
.sti.comp.src-derived { background: #fff; }
.sti button { width: 16px; height: 16px; border: 0; background: transparent; cursor: pointer; color: var(--muted); font-weight: 800; border-radius: 4px; line-height: 1; padding: 0; }
.sti button:hover { background: rgba(15, 23, 42, .08); }
.stadd { width: 96px !important; height: 24px !important; font-size: 12px !important; }
.stef { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.stef .grow, .grow { flex: 1; }
.pec.hand { box-shadow: 0 0 0 2px var(--brand) inset; }
.penew { display: grid; gap: 6px; margin-top: 6px; padding: 8px; border: 1px dashed var(--line); border-radius: 10px; background: #fafbff; }
.penewg { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.pe.compact .penewg { grid-template-columns: 1fr; }
.pedom summary { cursor: pointer; font-size: 13px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.domlist { display: grid; gap: 2px; max-height: 220px; overflow: auto; padding: 6px 4px; }
.domlist .chk { font-size: 12.5px; }
.btn.link { border: 0; background: transparent; color: var(--brand); padding-left: 4px; }
.stsum { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.stsum li { display: flex; gap: 6px; } .stsum li b { flex: none; min-width: 18px; text-align: center; font-size: 11px; border-radius: 4px; background: var(--brand-50); color: var(--brand); }
/* statement match in the candidate panel */
.stm { margin: 10px 0; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; }
.stm > summary { cursor: pointer; font-size: 13px; }
.stmr { display: flex; gap: 8px; align-items: flex-start; padding: 6px 0; border-top: 1px solid var(--line-2, #f1f5f9); font-size: 12.5px; }
.stmr:first-of-type { border-top: 0; }
.stmw { flex: none; min-width: 20px; text-align: center; font-size: 11px; font-weight: 800; border-radius: 4px; background: var(--brand-50); color: var(--brand); margin-top: 1px; }
.stmt { flex: 1; min-width: 0; display: grid; gap: 3px; }
.stmp { flex: none; font-weight: 800; font-size: 12px; } .stmp.hi { color: var(--ok); } .stmp.mid { color: var(--warn); } .stmp.lo { color: var(--bad); }
.sti.lv-none { background: #fff; border-color: #fecaca; color: #991b1b; text-decoration: line-through; text-decoration-color: rgba(153, 27, 27, .35); padding-right: 7px; }
.sti.lv-listed, .sti.lv-claim { background: #fffbeb; border-color: #fde68a; color: #92400e; padding-right: 7px; }
.sti.lv-used, .sti.lv-evidence { padding-right: 7px; }
@media (max-width: 640px) { .stitems, .stwas { padding-left: 0; } .sth { flex-wrap: wrap; } .stt { flex-basis: calc(100% - 60px); } .penewg { grid-template-columns: 1fr; } }
.pedom { position: relative; }
.pedom[open] > summary { border-color: var(--brand); }
.dompop { position: absolute; left: 0; top: calc(100% + 4px); z-index: 6; min-width: 100%; width: max-content; max-width: 320px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 6px 8px; }
.dompop .btn.link { width: 100%; text-align: left; border-top: 1px solid var(--line); border-radius: 0; margin-top: 4px; padding: 6px 4px 2px; }
.stmt > div:last-child { display: flex; flex-wrap: wrap; gap: 4px; }
.pe.compact .sth { flex-wrap: wrap; } .pe.compact .stt { flex-basis: calc(100% - 60px); } .pe.compact .stitems, .pe.compact .stwas { padding-left: 0; }
.srch-add { width: 100%; justify-content: center; margin: 2px 0 4px; }

/* ===== MidasMatch-style screening output ===== */
.mb-strong { --mc: #15803d; --mbg: #dcfce7; } .mb-good { --mc: #0f766e; --mbg: #ccfbf1; } .mb-moderate { --mc: #b45309; --mbg: #fef3c7; } .mb-low { --mc: #b91c1c; --mbg: #fee2e2; } .mb-none { --mc: #64748b; --mbg: #f1f5f9; }
.mmcat { display: grid; gap: 2px; margin-top: 4px; }
.mmbadge { justify-self: start; font-size: 11.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; color: var(--mc); background: var(--mbg); white-space: nowrap; }
.mmact { font-size: 11px; color: var(--muted); white-space: nowrap; }
.mmscore { display: flex; align-items: center; gap: 8px; }
.mmscore b { font-size: 22px; font-weight: 800; min-width: 30px; }
.mmbar { width: 56px; height: 6px; border-radius: 4px; background: #e5e9f2; overflow: hidden; }
.mmbar i { display: block; height: 100%; background: var(--mc); border-radius: 4px; }
.srhead { display: flex; align-items: center; gap: 10px; padding: 12px 14px; flex-wrap: wrap; }
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding: 0 14px 12px; }
.tile { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 8px 11px; cursor: pointer; font: inherit; }
.tile:hover { border-color: var(--brand); }
.tile[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-50) inset, 0 0 0 1px var(--brand); background: var(--brand-50); }
.tile .k { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.tile .v { font-size: 22px; font-weight: 800; line-height: 1.2; }
.tile-sub { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mc, #64748b); display: inline-block; flex: none; } .dot.all { background: var(--brand); }
.rankwrap { overflow-x: auto; border-top: 1px solid var(--line); }
table.rank { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 1060px; }
table.rank th { text-align: left; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; padding: 8px 8px; background: #f8fafc; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.rank td { padding: 9px 8px; border-bottom: 1px solid var(--line-2, #eef2f7); vertical-align: top; }
table.rank tr.cand { cursor: pointer; }
table.rank tr.cand:hover td { background: #fafbff; }
table.rank tr.cand.open td { background: var(--brand-50); border-bottom-color: transparent; }
table.rank tr.detail > td { background: #f8fafc; padding: 12px 14px 16px; }
.cand-cell { min-width: 210px; max-width: 260px; }
.cand-name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 3px; }
.linkbtn { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; font-size: 13.5px; color: var(--ink); cursor: pointer; text-align: left; }
.linkbtn:hover { color: var(--brand); text-decoration: underline; }
.flag-ic { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #fee2e2; color: #b91c1c; font-size: 11px; font-weight: 900; cursor: help; }
.cinfo { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 11.5px; color: var(--ink-2); margin-top: 2px; }
.cinfo > span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cand-cell .btn.sm { margin-top: 6px; }
.meta-tags { margin-top: 4px; } .mt { font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 4px; } .mt.excl { background: #fee2e2; color: #991b1b; }
.stab { display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 999px; white-space: nowrap; }
.stab.good { background: #dcfce7; color: #166534; } .stab.warn { background: #fef3c7; color: #92400e; } .stab.bad { background: #fee2e2; color: #991b1b; } .stab.none { background: #f1f5f9; color: #475569; }
.hops { min-width: 130px; } .hops .hl { margin-top: 4px; } .hops .sub, .gapline { font-size: 11px; color: var(--muted); } .hops .sub.warn, .gapline.warn { color: #b45309; font-weight: 700; } .gapline.ok { color: #15803d; }
.col-cur { min-width: 140px; max-width: 190px; } .cp-v b { font-size: 14px; } .cp-v.good b { color: #15803d; } .cp-v.mid b { color: #b45309; } .cp-v.low b { color: #b91c1c; }
.cp-t { font-size: 11.5px; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.nowrap { white-space: nowrap; }
.fit { display: grid; gap: 3px; }
.fp { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; white-space: nowrap; color: var(--ink-2); }
.fp i { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; } .fp.g i { background: #16a34a; } .fp.a i { background: #f59e0b; } .fp.r i { background: #dc2626; }
.miss-cell { min-width: 130px; }
.mtag { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 1px 7px; border-radius: 5px; margin: 0 4px 4px 0; border: 1px solid #fecaca; color: #991b1b; background: #fff; }
.mtag.ok { border-color: #bbf7d0; background: #f0fdf4; color: #166534; } .mtag.half { border: 1px dashed #86efac; background: #fff; color: #166534; }
.mtag.nice { border-color: #bfdbfe; background: #eff6ff; color: #1e40af; } .mtag.grey { border-color: var(--line); background: #f8fafc; color: #475569; }
.mtag.excl { border-color: #dc2626; background: #dc2626; color: #fff; } .mtag.more { border-color: var(--line); color: var(--muted); }
/* detail */
.mmd { display: grid; gap: 10px; margin-top: 10px; }
.dtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.dtabs button { border: 0; background: none; font: inherit; font-size: 13px; font-weight: 700; color: var(--muted); padding: 7px 10px; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; }
.dtabs button[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); }
.dtabs .tc { font-size: 10.5px; background: #eef2f7; color: var(--ink-2); border-radius: 999px; padding: 0 6px; margin-left: 3px; }
.sumbox { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 12px 14px; }
.sumbox h5 { margin: 0 0 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.sumbox p { margin: 0 0 8px; font-size: 13px; line-height: 1.5; }
.sumbox .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sumbox ul { margin: 4px 0 0; padding-left: 18px; font-size: 12.5px; } .sumbox li { margin-bottom: 2px; } .sumbox li.s::marker { color: #16a34a; } .sumbox li.c::marker { color: #dc2626; }
.dgrid { display: grid; grid-template-columns: 1.1fr 1.1fr 1fr; gap: 10px; margin-top: 10px; align-items: start; }
.dgrid.two { grid-template-columns: 1.3fr 1fr; margin-top: 0; }
.dcol { display: grid; gap: 10px; align-content: start; }
.panel { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 11px 13px; min-width: 0; }
.panel h4 { margin: 0 0 8px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.bd-row { display: grid; grid-template-columns: 128px 1fr 56px; gap: 8px; align-items: center; font-size: 12px; margin-bottom: 5px; }
.bd-row .num { text-align: right; } .bd-row.tot { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 7px; }
.bar { height: 7px; border-radius: 4px; background: #e5e9f2; overflow: hidden; } .bar i { display: block; height: 100%; background: var(--brand); border-radius: 4px; } .bar.sm { height: 5px; margin-top: 3px; }
.sk-sec { margin-bottom: 8px; } .sk-sec .t { font-size: 11.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 4px; }
.note, .notes { font-size: 11.5px; color: var(--muted); margin-top: 6px; line-height: 1.45; }
dl.kv2 { display: grid; grid-template-columns: 96px 1fr; gap: 5px 10px; margin: 0; font-size: 12.5px; } dl.kv2 dt { color: var(--muted); } dl.kv2 dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
ul.mmflags { margin: 10px 0 0; padding: 8px 10px 8px 26px; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 8px; font-size: 12px; color: #9a3412; }
.smatch .row2 { display: grid; grid-template-columns: 34px 1fr 64px; gap: 10px; padding: 8px 0; border-top: 1px solid #eef2f7; font-size: 12.5px; }
.smatch .row2:first-of-type { border-top: 0; } .smatch .w { font-weight: 800; color: var(--brand); font-size: 12px; }
.smatch .it { display: inline-flex; align-items: baseline; gap: 4px; font-size: 11.5px; padding: 1px 7px; border-radius: 5px; margin: 4px 4px 0 0; border: 1px solid; flex-wrap: wrap; }
.smatch .it.ok { border-color: #bbf7d0; background: #f0fdf4; color: #166534; } .smatch .it.part { border-color: #fde68a; background: #fffbeb; color: #92400e; } .smatch .it.no { border-color: #fecaca; color: #991b1b; }
.smatch .ic { font-weight: 900; } .smatch .snip { font-style: italic; color: var(--muted); font-size: 11px; }
.tl { display: grid; gap: 0; }
.job { display: grid; grid-template-columns: 120px 1fr 96px; gap: 10px; padding: 8px 0; border-top: 1px solid #eef2f7; font-size: 12.5px; }
.job:first-child { border-top: 0; } .job.proj { padding-left: 14px; border-left: 3px solid #e0e7ff; }
.job .when { font-size: 11.5px; color: var(--muted); display: grid; } .job .when b { color: var(--ink); font-size: 12.5px; }
.job .short { font-size: 10px; background: #fef3c7; color: #92400e; border-radius: 4px; padding: 0 4px; }
.job .co { color: var(--ink-2); } .job .what .mtag { margin-top: 3px; }
.stabbox ul { margin: 8px 0; padding-left: 18px; font-size: 12.5px; }
.emp { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; font-size: 12px; padding: 6px 0; border-top: 1px dashed var(--line); } .emp .s { color: #b45309; font-weight: 700; }
.gapsec { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; } .gapsec h5 { margin: 0 0 6px; font-size: 12px; }
ul.gaps { margin: 0; padding-left: 18px; font-size: 12px; } ul.gaps li.notable { color: #9a3412; } .expl { color: #15803d; font-size: 11.5px; }
.edu { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 2px 12px; font-size: 11.5px; margin-top: 6px; }
/* candidate panel (narrow) */
.drawer .dgrid, .cvsect .dgrid { grid-template-columns: 1fr; }
.cvsect .dgrid.two { grid-template-columns: 1fr; }
@media (max-width: 1500px) { .dgrid { grid-template-columns: 1fr 1fr; } .dgrid > .panel:last-child:nth-child(3) { grid-column: 1 / -1; } }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sumbox .cols, .dgrid, .dgrid.two { grid-template-columns: 1fr; } .job { grid-template-columns: 1fr; } }
.srch-side { position: sticky; }
.srch-hide { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; z-index: 2; }
.srch-side > .pef:first-of-type { padding-right: 30px; }
.srch-show { display: none; }
.srch.noside { grid-template-columns: minmax(0, 1fr); }
.srch.noside .srch-side { display: none; }
.srch.noside .srch-show { display: inline-flex; }
table.rank { min-width: 980px; }
.cand-cell { min-width: 190px; max-width: 240px; } .hops { min-width: 116px; } .col-cur { min-width: 126px; max-width: 170px; } .miss-cell { min-width: 118px; }
tr.detail > td > .mmd { position: sticky; left: 14px; }
.fp i { display: inline-block; flex: none; }
.srhead label { display: inline-flex; align-items: center; gap: 6px; } .srhead label select { width: auto; }

/* ===== Screener: pool, decisions, benchmarks, questions & ratings ===== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.srx { border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.srx > summary { list-style: none; cursor: pointer; padding: 8px 10px; display: flex; gap: 8px; align-items: baseline; justify-content: space-between; font-size: 13px; }
.srx > summary::-webkit-details-marker { display: none; }
.srx > summary b::before { content: '▸ '; color: var(--muted); font-size: 11px; }
.srx[open] > summary b::before { content: '▾ '; }
.srx-b { padding: 0 10px 10px; display: grid; gap: 8px; font-size: 12.5px; }
#sr-extra { display: grid; gap: 8px; }
.blist { display: grid; gap: 4px; }
.bitem { display: grid; grid-template-columns: 1fr auto; gap: 0 6px; align-items: center; padding: 5px 8px; border-radius: 8px; background: #f8fafc; }
.bitem .nm { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bitem .mt { grid-column: 1; font-size: 11px; color: var(--muted); }
.bitem .x { grid-row: 1 / span 2; grid-column: 2; border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 16px; }
.bprof { display: grid; gap: 5px; }
.chip-s { display: inline-block; font-size: 11px; padding: 1px 7px; margin: 2px 3px 0 0; border-radius: 999px; background: #eef2ff; color: #3730a3; border: 1px solid #e0e7ff; font-weight: 600; }
.chip-s.out { background: #fff; border-style: dashed; color: var(--ink-2); }
button.chip-s { cursor: pointer; font-family: inherit; } button.chip-s:hover { border-color: var(--brand); color: var(--brand); }
.qw { display: grid; grid-template-columns: 110px 1fr 40px; gap: 8px; align-items: center; font-size: 12px; }
.qw input { width: 100%; accent-color: var(--brand); }
.decf { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 14px 12px; }
.fchip { font: inherit; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; }
.fchip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
table.rank.withdec { min-width: 1180px; }
.col-bm { width: 28px; text-align: center; padding-left: 6px !important; padding-right: 0 !important; }
.bm-star { border: 0; background: none; font-size: 17px; line-height: 1; cursor: pointer; color: #cbd5e1; padding: 2px; }
.bm-star:hover { color: #f59e0b; } .bm-star.on { color: #f59e0b; }
.bm-tag { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; padding: 1px 6px; border-radius: 4px; background: #fef3c7; color: #92400e; }
.newcv { font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: #e0f2fe; color: #075985; white-space: nowrap; }
.pname { font-size: 13.5px; }
tr.poolrow td:first-child { box-shadow: inset 3px 0 0 #7dd3fc; }
.col-dec { min-width: 170px; width: 180px; cursor: default; }
.dec { display: grid; gap: 5px; }
.dec-btns { display: flex; gap: 3px; }
.dbtn { flex: 1; font: inherit; font-size: 11px; font-weight: 700; padding: 4px 4px; border-radius: 7px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.dbtn:hover { border-color: #94a3b8; }
.dbtn.proceed[aria-pressed="true"] { background: #16a34a; border-color: #16a34a; color: #fff; }
.dbtn.hold[aria-pressed="true"] { background: #f59e0b; border-color: #f59e0b; color: #fff; }
.dbtn.reject[aria-pressed="true"] { background: #dc2626; border-color: #dc2626; color: #fff; }
.dec-cmt { width: 100%; font: inherit; font-size: 12px; border: 1px solid var(--line); border-radius: 7px; padding: 4px 6px; resize: vertical; min-height: 30px; }
.dec-meta { font-size: 10.5px; color: var(--muted); min-height: 12px; }
.dec .btn.link { padding: 0; font-size: 11.5px; text-align: left; }
.cdec { display: grid; grid-template-columns: 1fr; gap: 4px; margin: 10px 0 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.cdec .dec { grid-template-columns: 1fr; } .cdec .dec-btns { max-width: 320px; }
.qscore { font-size: 11px; color: var(--ink-2); margin-top: 3px; white-space: nowrap; }
.livescore { font-size: 13px; margin: 2px 0 8px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bmpanel { margin-top: 10px; } .bmh { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; } .bmh h4 { margin: 0 0 2px; }
.bmbars { display: grid; grid-template-columns: 100px 1fr 40px; gap: 5px 8px; align-items: center; font-size: 12px; margin: 8px 0 6px; max-width: 460px; }
.qpanel { display: grid; gap: 8px; }
.qhead { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; } .qhead h4 { margin: 0; }
.qsum { font-size: 12px; color: var(--ink-2); } .qact { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; } .qact .btn.link { padding: 0; font-size: 12px; }
.rguide { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11px; color: var(--muted); } .rguide i { font-style: normal; font-weight: 800; color: var(--ink-2); margin-right: 3px; }
.qrow { display: grid; grid-template-columns: 22px 1fr 132px; gap: 10px; padding: 10px 0; border-top: 1px solid #eef2f7; }
.qrow .n { font-weight: 800; color: var(--muted); font-size: 12px; padding-top: 2px; }
.ivbody { display: grid; gap: 5px; min-width: 0; font-size: 13px; } .qt { font-weight: 600; line-height: 1.4; }
.ans { font-size: 12px; background: #f8fafc; border-left: 3px solid #bbf7d0; padding: 5px 8px; border-radius: 0 6px 6px 0; line-height: 1.45; } .ans b { color: #166534; margin-right: 4px; }
.ans.none { border-left-color: var(--line); color: var(--muted); font-style: italic; }
.hide-ans .ans { display: none; }
.ivtools { display: flex; gap: 12px; } .ivtools .btn.link { padding: 0; font-size: 12px; }
.ivnote { font-size: 12px; min-height: 30px; resize: vertical; }
.rstep { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.rstep button { width: 26px; height: 30px; border: 0; background: #f8fafc; cursor: pointer; font-weight: 800; color: var(--ink-2); }
.rstep input { width: 38px; height: 30px; border: 0; text-align: center; font: inherit; font-weight: 800; font-size: 14px; -moz-appearance: textfield; } .rstep input::-webkit-inner-spin-button { display: none; }
.rstep .of { font-size: 11px; color: var(--muted); padding-right: 4px; }
.rstep.hi { border-color: #86efac; } .rstep.hi input { color: #15803d; } .rstep.mid { border-color: #fcd34d; } .rstep.mid input { color: #b45309; } .rstep.lo { border-color: #fca5a5; } .rstep.lo input { color: #b91c1c; }
.qmeta { font-size: 11px; color: var(--muted); margin-top: 4px; } .qmeta .btn.link { padding: 0; font-size: 11px; }
.badge-ed { display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 700; padding: 0 5px; border-radius: 4px; background: #fef3c7; color: #92400e; vertical-align: 1px; } .badge-ed.jd { background: #e0e7ff; color: #3730a3; }
.ived { display: grid; gap: 5px; font-size: 12px; } .ived label { font-weight: 700; color: var(--ink-2); } .ived textarea { font: inherit; font-size: 13px; }
.ivadd, .jqadd { padding-top: 6px; }
.jqrm { font-size: 12px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding-top: 6px; } .rmq { background: #f8fafc; border-radius: 6px; padding: 1px 6px; } .rmq .btn.link { padding: 0; font-size: 11.5px; }
.jqsec { margin-bottom: 18px; } .jqsec h3 { font-size: 15px; margin: 6px 0; }
ol.qlist { margin: 0; padding-left: 20px; display: grid; gap: 10px; font-size: 13px; } ol.qlist .sk { margin-bottom: 3px; } ol.qlist .q { font-weight: 600; margin-bottom: 4px; }
.jqfoot { margin-top: 6px; } .jqfoot .btn.link { padding: 0; font-size: 12px; }
.btn.link.danger { color: #b91c1c; }
.fromcv-note { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.input.fromcv, select.fromcv, textarea.fromcv { background: #f0fdf4; border-color: #86efac; }
ul.plain { margin: 0; padding-left: 18px; font-size: 13px; display: grid; gap: 4px; }
@media (max-width: 640px) { .qrow { grid-template-columns: 18px 1fr; } .qrow > div:last-child { grid-column: 2; } .qact { margin-left: 0; } }
.ivnote.input { min-height: 34px; height: 34px; padding: 6px 8px; } .ivnote.input:focus { height: 64px; }
.warntxt { color: #92400e; margin-top: 3px; white-space: normal; }
