/* Talanta ATS — admin design system. Joskitech palette: navy #0F1733, blue #1FA0FF, green #2FD27A, yellow #FFC531, orange #FF5A36. */
@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/inter-latin-700-normal.woff2) format("woff2"); }

:root {
  --navy: #0F1733; --navy-2: #18224A; --navy-3: #24305E; --navy-4: #3A4677;
  --brand-blue: #1FA0FF; --brand-green: #2FD27A; --brand-yellow: #FFC531; --brand-orange: #FF5A36;
  --ink: #101828; --ink-2: #344054; --muted: #5D6679; --faint: #98A2B3;
  --line: #E4E7EC; --line-2: #EEF0F4; --bg: #F5F6FA; --card: #FFFFFF; --hover: #F8F9FC;
  --primary: #0B63C5; --primary-2: #0A56AB; --primary-50: #EAF3FF; --ring: rgba(11, 99, 197, .2);
  --danger: #B42318; --danger-50: #FEEDEB; --success: #157F4B; --success-50: #E8F7EF; --warn: #8A5300; --warn-50: #FFF4DB;
  --radius: 10px; --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 4px 16px rgba(16, 24, 40, .08), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-lg: 0 20px 48px rgba(16, 24, 40, .18);
  --sb-w: 248px; --top-h: 60px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 14px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); line-height: 1.3; }
h1 { font-size: 22px; font-weight: 650; letter-spacing: -.01em; }
h2 { font-size: 16px; font-weight: 600; }
h3 { font-size: 14px; font-weight: 600; }
p { margin: 0 0 10px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
code, kbd { font: 12.5px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--line-2); padding: 1px 5px; border-radius: 5px; }
::selection { background: #CFE3FF; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.ic { width: 18px; height: 18px; flex: none; vertical-align: middle; }
.ic-sm { width: 15px; height: 15px; }
.ic-lg { width: 22px; height: 22px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* ---------- Shell ---------- */
.app { display: grid; grid-template-columns: var(--sb-w) minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; background: var(--navy); color: #C9D0E4; display: flex; flex-direction: column; z-index: 40; transition: width .18s ease; width: var(--sb-w); }
.sb-brand { display: flex; align-items: center; gap: 11px; height: var(--top-h); padding: 0 18px; color: #fff; font-weight: 700; font-size: 19px; letter-spacing: -.02em; flex: none; }
.sb-brand:hover { text-decoration: none; }
.sb-mark { width: 32px; height: 32px; flex: none; }
.sb-nav { flex: 1; overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.sb-link { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: 8px; color: #C9D0E4; font-weight: 500; white-space: nowrap; position: relative; }
.sb-link:hover { background: var(--navy-2); color: #fff; text-decoration: none; }
.sb-link.is-active { background: var(--navy-3); color: #fff; }
.sb-link.is-active::before { content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand-orange); }
.sb-link .ic { color: #8F9AC0; }
.sb-link.is-active .ic, .sb-link:hover .ic { color: #fff; }
.sb-count { margin-left: auto; background: var(--brand-orange); color: var(--navy); font-size: 11px; font-weight: 600; border-radius: 10px; padding: 1px 7px; }
.sb-sep { height: 1px; background: rgba(255, 255, 255, .08); margin: 10px 4px; }
.sb-foot { padding: 12px; border-top: 1px solid rgba(255, 255, 255, .08); }
.sb-toggle { width: 100%; justify-content: flex-start; }
.is-collapsed .app { grid-template-columns: 72px minmax(0, 1fr); }
.is-collapsed .sidebar { width: 72px; }
.is-collapsed .sb-label, .is-collapsed .sb-count, .is-collapsed .sb-word { display: none; }
.is-collapsed .sb-brand { padding: 0 20px; }
.is-collapsed .sb-link { justify-content: center; padding: 0; }
.is-collapsed .sb-toggle .ic { transform: rotate(180deg); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; height: var(--top-h); background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding: 0 24px; }
.icon-btn.tb-menu { display: none; }
.tb-search { position: relative; flex: 1; max-width: 520px; }
.tb-search input { width: 100%; height: 38px; padding: 0 12px 0 38px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font: inherit; color: var(--ink); }
.tb-search input:focus { background: #fff; border-color: var(--primary); box-shadow: 0 0 0 3px var(--ring); outline: 0; }
.tb-search > .ic { position: absolute; left: 12px; top: 10px; color: var(--faint); }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.search-pop { position: absolute; left: 0; right: 0; top: 44px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); max-height: 420px; overflow: auto; padding: 6px; }
.search-pop a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--ink); }
.search-pop a:hover, .search-pop a.is-focus { background: var(--hover); text-decoration: none; }
.search-pop .grp { font-size: 11.5px; font-weight: 600; color: var(--muted); padding: 8px 10px 4px; }
.search-pop small { color: var(--muted); display: block; }

.content { padding: 24px; width: 100%; max-width: 1480px; margin: 0 auto; flex: 1; }
.app-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; flex-wrap: wrap; }
.powered { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.powered img { height: 22px; width: auto; }

/* ---------- Page header ---------- */
.page-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head .grow { flex: 1; min-width: 240px; }
.page-head .sub { color: var(--muted); margin-top: 4px; display: flex; gap: 6px 14px; flex-wrap: wrap; align-items: center; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 6px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.crumbs .ic { width: 14px; height: 14px; color: var(--faint); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--primary); background: var(--primary); color: #fff; font: 500 14px/1 Inter, system-ui, sans-serif; cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s, box-shadow .12s; text-decoration: none !important; }
.btn:hover { background: var(--primary-2); border-color: var(--primary-2); }
.btn:focus-visible { box-shadow: 0 0 0 3px var(--ring); outline: 0; }
.btn:disabled, .btn.is-loading { opacity: .6; cursor: not-allowed; }
.btn .ic { width: 16px; height: 16px; }
.btn-secondary { background: #fff; color: var(--ink-2); border-color: #D0D5DD; box-shadow: var(--shadow-sm); }
.btn-secondary:hover { background: var(--hover); border-color: #C3C9D3; color: var(--ink); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--line-2); border-color: transparent; color: var(--ink); }
.btn-danger { background: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: #912018; border-color: #912018; }
.btn-danger-ghost { background: transparent; border-color: transparent; color: var(--danger); }
.btn-danger-ghost:hover { background: var(--danger-50); border-color: transparent; }
.btn-success { background: var(--success); border-color: var(--success); }
.btn-success:hover { background: #0F6A3D; border-color: #0F6A3D; }
.btn-dark { background: var(--navy); border-color: var(--navy); }
.btn-dark:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 13px; gap: 5px; }
.btn-lg { height: 44px; padding: 0 20px; font-size: 15px; }
.btn-icon { width: 36px; padding: 0; }
.btn-sm.btn-icon { width: 30px; }
.btn-block { width: 100%; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { background: var(--line-2); }
.dot-count { position: absolute; top: 4px; right: 4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--brand-orange); color: var(--navy); font-size: 10.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.link-btn { background: none; border: 0; padding: 0; color: var(--primary); font: inherit; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.link-danger { color: var(--danger); }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field > label, .label { display: block; font-weight: 500; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.field .opt { color: var(--muted); font-weight: 400; }
.input, select.input, textarea.input { width: 100%; min-height: 38px; padding: 8px 11px; border: 1px solid #D0D5DD; border-radius: 8px; background: #fff; color: var(--ink); font: inherit; box-shadow: var(--shadow-sm); transition: border-color .12s, box-shadow .12s; }
textarea.input { min-height: 96px; resize: vertical; line-height: 1.5; }
select.input { appearance: none; padding-right: 34px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 10px center; }
select.input[multiple] { background-image: none; padding-right: 11px; min-height: 120px; }
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--ring); outline: 0; }
.input.is-invalid { border-color: var(--danger); }
.input.is-invalid:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, .15); }
.input-sm { min-height: 32px; padding: 5px 9px; font-size: 13px; }
.input[readonly] { background: var(--bg); }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.field-error { font-size: 12.5px; color: var(--danger); margin: 5px 0 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 16px; }
.span-2 { grid-column: span 2; }
.input-group { display: flex; }
.input-group .input { border-radius: 8px 0 0 8px; }
.input-group .addon { display: flex; align-items: center; padding: 0 12px; border: 1px solid #D0D5DD; border-left: 0; border-radius: 0 8px 8px 0; background: var(--bg); color: var(--muted); font-size: 13px; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-weight: 400; color: var(--ink-2); }
.check input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--primary); flex: none; }
.check small { display: block; color: var(--muted); font-size: 12.5px; }
.checks { display: grid; gap: 10px; }
.checks-inline { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { appearance: none; width: 38px; height: 22px; border-radius: 11px; background: #D0D5DD; position: relative; cursor: pointer; transition: background .15s; margin: 0; flex: none; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .15s; }
.switch input:checked { background: var(--primary); }
.switch input:checked::after { transform: translateX(16px); }
.switch input:focus-visible { box-shadow: 0 0 0 3px var(--ring); outline: 0; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; align-items: center; padding-top: 4px; flex-wrap: wrap; }
.form-actions .grow { flex: 1; }
.sticky-actions { position: sticky; bottom: 0; background: rgba(245, 246, 250, .94); backdrop-filter: blur(6px); padding: 14px 0; margin-top: 8px; border-top: 1px solid var(--line); z-index: 5; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }
.radio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.radio-card { position: relative; border: 1px solid #D0D5DD; border-radius: 10px; padding: 11px 12px; cursor: pointer; display: flex; gap: 10px; align-items: center; background: #fff; }
.radio-card:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 3px var(--ring); }
.radio-card input { accent-color: var(--primary); }
.file-drop { border: 1.5px dashed #C3C9D3; border-radius: 12px; padding: 18px; text-align: center; background: #FBFCFE; color: var(--muted); cursor: pointer; display: block; }
.file-drop:hover, .file-drop.is-over { border-color: var(--primary); background: var(--primary-50); }
.file-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-drop b { color: var(--primary); font-weight: 600; }
.file-name { color: var(--ink); font-weight: 500; margin-top: 6px; display: block; }

/* ---------- Cards & layout ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.card-pad { padding: 20px; }
.card-head { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line-2); min-height: 54px; }
.card-head h2, .card-head h3 { flex: 1; }
.card-head .meta { color: var(--muted); font-size: 13px; }
.card-body { padding: 20px; }
.card-foot { padding: 12px 20px; border-top: 1px solid var(--line-2); display: flex; gap: 10px; justify-content: flex-end; }
.card + .card { margin-top: 16px; }
:is(.cols-2, .cols-3, .cols-wide, .grid-2, .grid-3, .grid-4) > .card { margin-top: 0; }
.stack > * + * { margin-top: 16px; }
.stack-sm > * + * { margin-top: 8px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.cols-wide { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.flex { display: flex; align-items: center; gap: 10px; }
.flex-wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.right { margin-left: auto; }
.muted { color: var(--muted); }
.faint { color: var(--muted); }
.small { font-size: 12.5px; }
.tiny { font-size: 11.5px; }
.strong { font-weight: 600; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 20px; } .mt-4 { margin-top: 28px; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: 6px; } .mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 20px; }
.section-title { font-size: 13px; font-weight: 600; color: var(--muted); margin: 26px 0 10px; display: flex; align-items: center; gap: 8px; }
.section-title:first-child { margin-top: 0; }
.dl { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 9px 16px; margin: 0; }
.dl dt { color: var(--muted); font-size: 13px; }
.dl dd { margin: 0; overflow-wrap: anywhere; }
.kv { display: flex; flex-direction: column; gap: 2px; }
.kv span { font-size: 12.5px; color: var(--muted); }
.divider { border-top: 1px solid var(--line-2); margin: 16px 0; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; }
.table th { text-align: left; font-size: 12.5px; font-weight: 500; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); background: #FAFBFC; white-space: nowrap; }
.table th:first-child { border-top-left-radius: var(--radius-lg); }
.table th:last-child { border-top-right-radius: var(--radius-lg); }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--hover); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .w-check { width: 40px; }
.table .actions-col { width: 1%; white-space: nowrap; text-align: right; }
.table a.row-link { color: var(--ink); font-weight: 500; }
.table td .sub { display: block; color: var(--muted); font-size: 12.5px; margin-top: 1px; }
.table-compact td { padding: 8px 12px; }
.sort-link { color: inherit; display: inline-flex; gap: 4px; align-items: center; }
.sort-link.is-sorted { color: var(--ink); font-weight: 600; }
.bulkbar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--navy); color: #fff; border-radius: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.bulkbar .btn-secondary { box-shadow: none; }

/* ---------- Filters ---------- */
.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.filters .input { width: auto; min-width: 150px; }
.filters .search { position: relative; flex: 1; min-width: 220px; max-width: 360px; }
.filters .search .input { width: 100%; padding-left: 36px; }
.filters .search .ic { position: absolute; left: 11px; top: 10px; color: var(--faint); }
.seg { display: inline-flex; background: var(--line-2); border-radius: 10px; padding: 3px; gap: 2px; }
.seg a, .seg button { height: 30px; padding: 0 12px; border-radius: 8px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 13px; border: 0; background: transparent; cursor: pointer; }
.seg a:hover { text-decoration: none; background: rgba(255, 255, 255, .6); }
.seg .is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.seg .n { color: var(--muted); font-weight: 400; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs a, .tabs button { display: inline-flex; align-items: center; gap: 7px; padding: 10px 12px; color: var(--muted); font-weight: 500; border: 0; background: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; cursor: pointer; font: inherit; font-weight: 500; }
.tabs a:hover, .tabs button:hover { color: var(--ink); text-decoration: none; }
.tabs .is-active { color: var(--ink); border-bottom-color: var(--primary); }
.tabs .n { font-size: 12px; background: var(--line-2); color: var(--ink-2); border-radius: 10px; padding: 0 7px; }

/* ---------- Badges, chips, stages ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 11px; font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--line-2); color: var(--ink-2); }
.badge .ic { width: 13px; height: 13px; }
.badge-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.c-blue { background: #E8F2FF; color: #0B5CB5; } .c-indigo { background: #ECEEFF; color: #3F4CC2; } .c-amber { background: #FFF4DB; color: #8A5300; }
.c-teal { background: #E3F6F4; color: #0E7470; } .c-violet { background: #F1ECFF; color: #6237C8; } .c-green { background: #E8F7EF; color: #157F4B; }
.c-orange { background: #FFF0E8; color: #B6431A; } .c-red { background: #FEEDEB; color: #B42318; } .c-slate { background: #F2F4F7; color: #475467; }
.c-navy { background: var(--navy); color: #fff; }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border-radius: 13px; background: var(--line-2); color: var(--ink-2); font-size: 12.5px; border: 1px solid transparent; }
.chip-ok { background: var(--success-50); color: var(--success); }
.chip-miss { background: #fff; color: var(--muted); border-color: var(--line); text-decoration: line-through; text-decoration-color: rgba(93, 102, 121, .45); }
.chip-add { background: #fff; border: 1px dashed #C3C9D3; color: var(--ink-2); cursor: pointer; }
.chip-add:hover { border-color: var(--primary); color: var(--primary); }
.chip .x { border: 0; background: none; color: inherit; cursor: pointer; padding: 0 0 0 2px; font-size: 15px; line-height: 1; opacity: .6; }
.chip .x:hover { opacity: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips-input { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 38px; padding: 5px 8px; border: 1px solid #D0D5DD; border-radius: 8px; background: #fff; box-shadow: var(--shadow-sm); cursor: text; }
.chips-input:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--ring); }
.chips-input input { border: 0; outline: 0; flex: 1; min-width: 140px; font: inherit; padding: 3px 4px; background: transparent; }
.suggest { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.suggest > span { font-size: 12.5px; color: var(--muted); }

/* Match score */
.score { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 24px; padding: 0 8px; border-radius: 12px; font-weight: 650; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.g-A { background: #DDF5E7; color: #0F6A3D; } .g-B { background: #E3F0FF; color: #0B5CB5; } .g-C { background: #FFF1D1; color: #7A4A00; } .g-D { background: #F2F4F7; color: #5D6679; }
.score-lg { min-width: 64px; height: 40px; border-radius: 12px; font-size: 20px; }
.meter { height: 6px; background: var(--line-2); border-radius: 3px; overflow: hidden; }
.meter > i { display: block; height: 100%; background: var(--primary); border-radius: 3px; }
.meter.m-A > i { background: #1E9E5A; } .meter.m-B > i { background: #1F7FE0; } .meter.m-C > i { background: #E5A100; } .meter.m-D > i { background: #98A2B3; }
.breakdown { display: grid; gap: 12px; }
.breakdown .row { display: grid; grid-template-columns: 140px minmax(0, 1fr) 54px; gap: 12px; align-items: center; font-size: 13px; }
.breakdown .row b { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Stars */
.stars { display: inline-flex; gap: 1px; color: #D0D5DD; vertical-align: middle; }
.stars .on { color: #F5A524; }
.stars .ic { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.rate-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.rate-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rate-input label { cursor: pointer; color: #D0D5DD; padding: 2px; }
.rate-input label .ic { width: 22px; height: 22px; fill: currentColor; stroke: none; }
.rate-input label:hover, .rate-input label:hover ~ label, .rate-input input:checked ~ label { color: #F5A524; }
.rate-input input:focus-visible + label { outline: 2px solid var(--primary); border-radius: 4px; }

/* Avatars */
.av { --h: 210; width: 34px; height: 34px; border-radius: 50%; background: hsl(var(--h) 70% 92%); color: hsl(var(--h) 55% 28%); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 12.5px; flex: none; letter-spacing: .02em; }
.av-sm { width: 26px; height: 26px; font-size: 10.5px; }
.av-lg { width: 56px; height: 56px; font-size: 18px; }
.av-stack { display: inline-flex; }
.av-stack .av { border: 2px solid #fff; margin-left: -8px; }
.av-stack .av:first-child { margin-left: 0; }
.person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.person b { font-weight: 500; color: var(--ink); display: block; }
.person small { color: var(--muted); display: block; font-size: 12.5px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 15px 16px; box-shadow: var(--shadow-sm); display: block; color: inherit; }
a.stat:hover { border-color: #C3C9D3; text-decoration: none; }
.stat .k { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.stat .v { font-size: 26px; font-weight: 650; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat .d { font-size: 12px; color: var(--muted); margin-top: 2px; }
.stat .d.up { color: var(--success); }
.stat-accent { border-top: 3px solid var(--brand-orange); }

/* ---------- Lists ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line-2); }
.list > li:last-child { border-bottom: 0; }
.list .when { margin-left: auto; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 16px 26px; }
.timeline li::before { content: ""; position: absolute; left: 7px; top: 18px; bottom: 0; width: 2px; background: var(--line-2); }
.timeline li:last-child::before { display: none; }
.timeline .dot { position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid #C3C9D3; }
.timeline .dot.d-blue { border-color: #1F7FE0; } .timeline .dot.d-green { border-color: #1E9E5A; } .timeline .dot.d-red { border-color: #D92D20; } .timeline .dot.d-orange { border-color: var(--brand-orange); } .timeline .dot.d-violet { border-color: #7A5AF8; }
.timeline .t { font-size: 12.5px; color: var(--muted); }
.timeline .m { color: var(--ink-2); }

/* ---------- Alerts, empty states ---------- */
.alert { display: flex; gap: 10px; padding: 12px 14px; border-radius: 10px; border: 1px solid; font-size: 13.5px; margin-bottom: 16px; align-items: flex-start; }
.alert .ic { margin-top: 1px; }
.alert-info { background: #F0F7FF; border-color: #CFE3FF; color: #0B4A8F; }
.alert-success { background: var(--success-50); border-color: #BDE8CF; color: #0F5E37; }
.alert-warn { background: var(--warn-50); border-color: #F8DFA0; color: #6E4300; }
.alert-danger { background: var(--danger-50); border-color: #FAC9C4; color: #8F1D14; }
.alert p:last-child { margin: 0; }
.empty { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty .ei { width: 52px; height: 52px; border-radius: 14px; background: var(--line-2); display: inline-flex; align-items: center; justify-content: center; color: var(--muted); margin-bottom: 12px; }
.empty .ei .ic { width: 24px; height: 24px; }
.empty h3 { font-size: 15px; margin-bottom: 4px; color: var(--ink); }
.empty p { max-width: 420px; margin: 0 auto 14px; }

/* ---------- Menus, modals, toasts ---------- */
.dd { position: relative; display: inline-block; }
.dd > summary { list-style: none; cursor: pointer; }
.dd > summary::-webkit-details-marker { display: none; }
.dd-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 210px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; z-index: 50; }
.dd-left .dd-menu { right: auto; left: 0; }
.dd-menu a, .dd-menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--ink-2); background: none; border: 0; font: inherit; cursor: pointer; text-align: left; white-space: nowrap; }
.dd-menu a:hover, .dd-menu button:hover { background: var(--hover); color: var(--ink); text-decoration: none; }
.dd-menu .danger { color: var(--danger); }
.dd-menu hr { margin: 6px 0; }
.dd-menu form { margin: 0; }
.dd-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; }
.dd-head b { display: block; }
.dd-head small { color: var(--muted); }
.notif-pop { width: 360px; max-width: calc(100vw - 24px); padding: 0; }
.notif-pop .np-head { display: flex; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
.notif-pop .np-list { max-height: 400px; overflow: auto; }
.notif-pop .np-item { display: block; padding: 11px 14px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); }
.notif-pop .np-item:hover { background: var(--hover); text-decoration: none; }
.notif-pop .np-item.unread { background: #F5F9FF; }
.notif-pop .np-item b { color: var(--ink); font-weight: 500; display: block; }
.notif-pop .np-item small { color: var(--muted); }
.notif-pop .np-foot { padding: 10px 14px; text-align: center; }

dialog.modal { border: 0; border-radius: 16px; padding: 0; width: min(560px, calc(100vw - 32px)); box-shadow: var(--shadow-lg); color: var(--ink); }
dialog.modal-lg { width: min(820px, calc(100vw - 32px)); }
dialog.modal::backdrop { background: rgba(15, 23, 51, .45); }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 18px 22px 0; }
.modal-head h2 { flex: 1; font-size: 17px; }
.modal-body { padding: 16px 22px; max-height: 70vh; overflow: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 0 22px 20px; }
.toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 200; max-width: min(420px, calc(100vw - 40px)); }
.toast { display: flex; align-items: flex-start; gap: 10px; background: var(--navy); color: #fff; padding: 12px 14px; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: 13.5px; animation: toastIn .18s ease-out; }
.toast .ic { margin-top: 1px; }
.toast.t-success .ic { color: var(--brand-green); }
.toast.t-error { background: #7A1A12; }
.toast.t-warn .ic, .toast.t-info .ic { color: var(--brand-yellow); }
.toast a { color: #9FD3FF; }
.toast button { margin-left: auto; background: none; border: 0; color: rgba(255, 255, 255, .7); cursor: pointer; font-size: 18px; line-height: 1; padding: 0 0 0 8px; }
@keyframes toastIn { from { transform: translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Pagination ---------- */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.pager .pages { display: flex; gap: 4px; }
.pager a, .pager span.cur { min-width: 32px; height: 32px; padding: 0 8px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); border: 1px solid transparent; }
.pager a:hover { background: var(--line-2); text-decoration: none; }
.pager span.cur { border-color: var(--line); background: #fff; font-weight: 600; color: var(--ink); }
.pager .gap { color: var(--muted); padding: 0 4px; }

/* ---------- Pipeline board ---------- */
.board { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 14px; align-items: flex-start; min-height: 420px; scroll-snap-type: x proximity; }
.col { flex: 0 0 272px; background: #EEF0F5; border-radius: 14px; display: flex; flex-direction: column; max-height: calc(100vh - 230px); scroll-snap-align: start; }
.col-head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 8px; font-weight: 600; font-size: 13px; }
.col-head .n { margin-left: auto; color: var(--muted); font-weight: 500; background: rgba(255, 255, 255, .7); border-radius: 10px; padding: 0 8px; font-size: 12px; }
.col-head .sw { width: 8px; height: 8px; border-radius: 50%; }
.col-cards { padding: 4px 8px 10px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; min-height: 80px; flex: 1; border-radius: 0 0 14px 14px; }
.col.is-over .col-cards { background: rgba(11, 99, 197, .07); outline: 2px dashed rgba(11, 99, 197, .35); outline-offset: -4px; }
.col-closed { background: #F2F2F4; }
.kcard { background: #fff; border-radius: 10px; padding: 11px 12px; box-shadow: 0 1px 2px rgba(16, 24, 40, .08); border: 1px solid transparent; cursor: grab; position: relative; }
.kcard:hover { border-color: #C9D3E6; }
.kcard:focus-within { border-color: var(--primary); }
.kcard.is-dragging { opacity: .45; }
.kcard .kc-top { display: flex; gap: 8px; align-items: flex-start; }
.kcard .kc-name { font-weight: 500; color: var(--ink); line-height: 1.35; display: block; }
.kcard .kc-name:hover { text-decoration: underline; }
.kcard .kc-sub { font-size: 12px; color: var(--muted); margin-top: 1px; }
.kcard .kc-meta { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.kcard .kc-flag { color: var(--danger); display: inline-flex; align-items: center; gap: 3px; }
.kcard .kc-move { position: absolute; right: 6px; bottom: 6px; opacity: 0; }
.kcard:hover .kc-move, .kcard:focus-within .kc-move { opacity: 1; }
.col-empty { font-size: 12.5px; color: var(--muted); text-align: center; padding: 18px 8px; }

/* ---------- Rich text ---------- */
.rte { border: 1px solid #D0D5DD; border-radius: 8px; background: #fff; box-shadow: var(--shadow-sm); }
.rte:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--ring); }
.rte-bar { display: flex; gap: 2px; padding: 5px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.rte-bar button { height: 28px; min-width: 30px; padding: 0 7px; border: 0; background: none; border-radius: 6px; cursor: pointer; color: var(--ink-2); font: 600 13px Inter, sans-serif; }
.rte-bar button:hover { background: var(--line-2); }
.rte-bar .sep { width: 1px; background: var(--line); margin: 4px 4px; }
.rte-area { min-height: 140px; max-height: 480px; overflow: auto; padding: 11px 13px; outline: 0; line-height: 1.6; }
.rte-area:empty::before { content: attr(data-placeholder); color: var(--faint); }
.prose { line-height: 1.65; color: var(--ink-2); }
.prose p, .rte-area p { margin: 0 0 10px; }
.prose ul, .prose ol, .rte-area ul, .rte-area ol { margin: 0 0 10px; padding-left: 22px; }
.prose li, .rte-area li { margin: 3px 0; }
.prose h3, .prose h4, .rte-area h3, .rte-area h4 { margin: 16px 0 8px; font-size: 15px; color: var(--ink); }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.cv-text { white-space: pre-wrap; font: 13px/1.6 ui-monospace, Menlo, Consolas, monospace; background: #FAFBFC; border: 1px solid var(--line-2); border-radius: 10px; padding: 16px; max-height: 560px; overflow: auto; color: var(--ink-2); }
.cv-text mark { background: #FFF1B8; color: inherit; border-radius: 3px; padding: 0 1px; }
.doc-frame { width: 100%; height: 72vh; border: 1px solid var(--line); border-radius: 10px; background: #fff; }

/* ---------- Charts ---------- */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { font: 11.5px Inter, system-ui, sans-serif; fill: var(--muted); }
.chart .val { fill: var(--ink-2); font-weight: 600; }
.chart .gridline { stroke: var(--line-2); }
.chart .axis { stroke: var(--line); }
.chart [data-tip] { cursor: default; }
.chart-tip { position: fixed; pointer-events: none; background: var(--navy); color: #fff; font-size: 12px; padding: 6px 9px; border-radius: 7px; z-index: 300; white-space: nowrap; box-shadow: var(--shadow); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--ink-2); margin-top: 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.hbars { display: grid; gap: 10px; }
.hbar { display: grid; grid-template-columns: minmax(90px, 160px) minmax(0, 1fr) 44px; gap: 10px; align-items: center; font-size: 13px; }
.hbar .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.hbar .bar { height: 12px; display: block; outline-offset: 3px; border-radius: 2px; }
.hbar .bar i { display: block; height: 100%; border-radius: 0 4px 4px 0; background: #2a78d6; min-width: 0; }
.hbar .bar:hover i, .hbar .bar:focus i { filter: brightness(1.12); }
.hbar b { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.funnel { display: grid; gap: 8px; }
.funnel .fr { display: grid; grid-template-columns: 130px minmax(0, 1fr) 90px; gap: 12px; align-items: center; font-size: 13px; }
.funnel .fb { height: 26px; background: var(--line-2); border-radius: 6px; overflow: hidden; }
.funnel .fb i { display: block; height: 100%; background: var(--navy); border-radius: 6px; }
.funnel .fr:nth-child(2) .fb i { background: var(--navy-3); } .funnel .fr:nth-child(3) .fb i { background: #2C5BA8; } .funnel .fr:nth-child(4) .fb i { background: #1F7FE0; } .funnel .fr:nth-child(5) .fb i { background: #4AA6F0; } .funnel .fr:nth-child(6) .fb i { background: #1E9E5A; }
.funnel .fr span:last-child { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.funnel .fr span:last-child b { color: var(--ink); }

/* ---------- Auth & plain pages ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: #fff; }
.auth-side { background: var(--navy); color: #C9D0E4; padding: 44px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.auth-side::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(31, 160, 255, .25), transparent 65%); }
.auth-side .brand { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 700; font-size: 22px; letter-spacing: -.02em; }
.auth-side .pitch { margin-top: auto; max-width: 420px; position: relative; z-index: 1; }
.auth-side .pitch h2 { color: #fff; font-size: 28px; font-weight: 650; letter-spacing: -.02em; line-height: 1.25; margin-bottom: 12px; }
.auth-side .pitch p { font-size: 15px; }
.auth-side .by { margin-top: 32px; display: flex; align-items: center; gap: 10px; font-size: 12.5px; position: relative; z-index: 1; }
.auth-side .by img { height: 24px; width: auto; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-box { width: 100%; max-width: 380px; }
.auth-box h1 { font-size: 24px; margin-bottom: 6px; }
.auth-box .lead { color: var(--muted); margin-bottom: 24px; }
.plain { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.plain-box { max-width: 520px; text-align: center; }
.plain-box .code { font-size: 64px; font-weight: 700; color: var(--line); letter-spacing: -.04em; line-height: 1; }
.install { max-width: 760px; margin: 40px auto; padding: 0 20px; }
.steps { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.steps span { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 500; font-size: 13px; }
.steps span b { width: 24px; height: 24px; border-radius: 50%; background: var(--line-2); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.steps span.is-on { color: var(--ink); }
.steps span.is-on b { background: var(--navy); color: #fff; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-2); align-items: center; }
.checklist .ok { color: var(--success); }
.checklist .bad { color: var(--danger); }
.checklist .warn { color: var(--warn); }

/* Settings hub */
.hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.hub a { display: flex; gap: 12px; align-items: flex-start; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--ink); box-shadow: var(--shadow-sm); }
.hub a:hover { border-color: #C3C9D3; text-decoration: none; box-shadow: var(--shadow); }
.hub .hi { width: 38px; height: 38px; border-radius: 10px; background: var(--primary-50); color: var(--primary); display: flex; align-items: center; justify-content: center; flex: none; }
.hub b { display: block; font-weight: 600; }
.hub small { color: var(--muted); display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.4; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a { padding: 8px 12px; border-radius: 8px; color: var(--ink-2); font-weight: 500; }
.side-nav a:hover { background: var(--line-2); text-decoration: none; }
.side-nav a.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.settings-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.perm-table td, .perm-table th { text-align: center; }
.perm-table td:first-child, .perm-table th:first-child { text-align: left; }
.perm-table .grp td { background: #FAFBFC; font-weight: 600; font-size: 12.5px; color: var(--muted); }
.sortable-row { cursor: grab; }
.drag-handle { color: var(--faint); cursor: grab; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: -1px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .cols, .cols-wide { grid-template-columns: minmax(0, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .app { grid-template-columns: 72px minmax(0, 1fr); }
  .sidebar { width: 72px; }
  .sidebar .sb-label, .sidebar .sb-count, .sidebar .sb-word, .sb-toggle { display: none; }
  .sidebar .sb-link { justify-content: center; padding: 0; }
  .sidebar .sb-brand { padding: 0 20px; }
  .cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-layout { grid-template-columns: minmax(0, 1fr); }
  .side-nav { flex-direction: row; overflow-x: auto; }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-side { display: none; }
}
@media (max-width: 760px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 264px; transform: translateX(-100%); transition: transform .2s ease; }
  .sidebar .sb-label, .sidebar .sb-count, .sidebar .sb-word { display: inline; }
  .sidebar .sb-count { display: inline-block; }
  .sidebar .sb-link { justify-content: flex-start; padding: 0 12px; }
  .nav-open .sidebar { transform: none; box-shadow: var(--shadow-lg); }
  .nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(15, 23, 51, .4); z-index: 35; }
  .icon-btn.tb-menu { display: inline-flex; }
  .topbar { padding: 0 12px; gap: 6px; }
  .content { padding: 16px; }
  .grid-2, .grid-3, .grid-4, .cols-2, .cols-3 { grid-template-columns: minmax(0, 1fr); }
  .span-2 { grid-column: auto; }
  .dl { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .dl dd { margin-bottom: 8px; }
  .page-head .actions { width: 100%; }
  .table-stack thead { display: none; }
  .table-stack tr { display: block; padding: 10px 14px; border-bottom: 1px solid var(--line-2); }
  .table-stack td { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border: 0; text-align: right; }
  .table-stack td::before { content: attr(data-label); color: var(--muted); font-size: 12.5px; text-align: left; flex: none; }
  .table-stack td.cell-main { display: block; text-align: left; padding-bottom: 6px; }
  .table-stack td.cell-main::before { display: none; }
  .table-stack tbody tr:hover td { background: none; }
  .breakdown .row, .hbar { grid-template-columns: 100px minmax(0, 1fr) 44px; }
  .funnel .fr { grid-template-columns: 96px minmax(0, 1fr) 70px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters .input, .filters .search { min-width: 0; flex: 1 1 140px; max-width: none; }
  .col { flex-basis: 84vw; }
  .tb-search { max-width: none; }
  .hide-sm { display: none !important; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print {
  .sidebar, .topbar, .app-foot, .no-print, .page-head .actions, .filters, .tabs { display: none !important; }
  .app { display: block; }
  body { background: #fff; font-size: 12px; }
  .content { padding: 0; max-width: none; }
  .card { box-shadow: none; break-inside: avoid; }
  a { color: inherit; }
}

/* Notifications page */
.notif-list li.unread { background: #F5F9FF; }
.notif-list li.unread b::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); margin-right: 8px; vertical-align: 2px; }

/* Sent emails on a candidate profile */
.mail-item > summary { list-style: none; cursor: pointer; gap: 12px; align-items: center; }
.mail-item > summary::-webkit-details-marker { display: none; }
.mail-item[open] > summary .strong { color: var(--primary); }
.mail-body { white-space: pre-wrap; font-size: 13px; color: var(--ink-2); background: var(--hover); border: 1px solid var(--line-2); border-radius: 8px; padding: 12px 14px; margin-top: 10px; }
