:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #718096;
  --line: #e5e9f1;
  --panel: #ffffff;
  --canvas: #f5f7fb;
  --blue: #2264e5;
  --blue-soft: #eaf1ff;
  --green: #17a673;
  --green-soft: #e8f7f1;
  --orange: #ed920b;
  --red: #d64545;
  --shadow-sm: 0 4px 16px rgba(31, 47, 78, .06);
  --shadow: 0 18px 48px rgba(31, 47, 78, .10);
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; font-family: "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif; color: var(--ink); background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(34,100,229,.18); outline-offset: 2px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.eyebrow { margin: 0 0 5px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.login-view { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 32px; background: radial-gradient(circle at 30% 20%, #e8f0ff, transparent 34%), linear-gradient(135deg, #f8fafc, #edf3ff); }
.login-card { width: min(430px, 100%); padding: 42px; border: 1px solid rgba(255,255,255,.75); border-radius: 26px; background: rgba(255,255,255,.92); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.login-card h1 { margin: 12px 0 8px; font-size: 27px; }
.qr-login-panel { display: grid; gap: 8px; margin-top: 24px; padding: 18px; border: 1px solid #dce5f4; border-radius: 18px; background: #f8fbff; text-align: center; }
.qr-login-panel > strong { font-size: 16px; }
.qr-login-panel > p { margin: 0; font-size: 12px; line-height: 1.6; }
.qr-code-frame { width: 176px; height: 176px; display: grid; place-items: center; margin: 4px auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; }
.qr-code-frame img { width: 100%; height: 100%; object-fit: contain; }
.qr-status { color: #526078; }
.login-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 0; color: var(--muted); font-size: 12px; }
.login-divider::before, .login-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.site-filing { color: #8a94a6; font-size: 12px; line-height: 1.6; text-align: center; }
.site-filing a { color: inherit; text-decoration: none; }
.site-filing a:hover { color: var(--blue); text-decoration: underline; }
.brand-mark { width: 54px; height: 54px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #2264e5, #17a673); border-radius: 17px; font-size: 23px; font-weight: 900; box-shadow: 0 12px 26px rgba(34,100,229,.25); }
.brand-mark.small { width: 38px; height: 38px; border-radius: 12px; font-size: 17px; }
.stack-form { display: grid; gap: 16px; margin-top: 28px; }
.stack-form label, .field { display: grid; gap: 7px; color: #465269; font-size: 13px; font-weight: 700; }
input, select, textarea { width: 100%; min-height: 42px; border: 1px solid #dce2ec; border-radius: 11px; padding: 10px 12px; color: var(--ink); background: #fff; outline: none; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
input:focus, select:focus, textarea:focus { border-color: #89adf6; box-shadow: 0 0 0 3px rgba(34,100,229,.10); }
textarea { min-height: 98px; resize: vertical; }
.form-error { min-height: 20px; margin: 12px 0 0; color: var(--red); font-size: 13px; }
.primary-btn, .soft-btn, .danger-btn, .danger-confirm-btn, .ghost-btn { min-height: 40px; border: 0; border-radius: 10px; padding: 9px 15px; font-weight: 800; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.primary-btn { color: #fff; background: linear-gradient(135deg,#172033,#253653); box-shadow: 0 6px 14px rgba(23,32,51,.14); }
.primary-btn:hover { transform: translateY(-1px); background: linear-gradient(135deg,#0e1421,#1c2a43); box-shadow: 0 9px 20px rgba(23,32,51,.18); }
.soft-btn { color: #344054; background: #eef1f6; }
.soft-btn:hover { background: #e4e8f0; }
.danger-btn { color: #c52d2d; background: #fff0f0; border: 1px solid #f4caca; }
.danger-btn:hover { color: #a92323; background: #ffe4e4; }
.danger-confirm-btn { color: #fff; background: var(--red); box-shadow: 0 6px 14px rgba(214,69,69,.18); }
.danger-confirm-btn:hover { background: #bd3434; }
.ghost-btn { color: var(--blue); background: transparent; }
.ghost-btn:hover { background: var(--blue-soft); }
button:disabled { cursor: not-allowed; opacity: .55; transform: none !important; box-shadow: none !important; }
.request-entry-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; width: min(620px,100%); padding: 6px; border-radius: 13px; background: #e9edf4; }
.request-entry-tabs button { width: 100%; color: #526078; background: transparent; box-shadow: none; }
.request-entry-tabs button:hover { color: var(--ink); background: #fff; }
.confirm-copy { margin: 0; color: #526078; line-height: 1.7; }
.full { width: 100%; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 10; width: 232px; display: flex; flex-direction: column; padding: 18px 14px; border-right: 1px solid var(--line); background: rgba(255,255,255,.97); box-shadow: 8px 0 28px rgba(31,47,78,.035); }
.brand { display: flex; align-items: center; gap: 11px; padding: 5px 8px 20px; }
.brand strong, .brand small { display: block; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.nav-list { display: grid; gap: 5px; overflow: auto; padding-right: 3px; }
.nav-section { margin: 16px 10px 5px; color: #9aa4b5; font-size: 11px; font-weight: 800; }
.nav-item { position: relative; width: 100%; min-height: 43px; display: flex; align-items: center; gap: 10px; padding: 10px 11px; border: 0; border-radius: 11px; color: #4a5568; background: transparent; text-align: left; transition: color .16s ease, background .16s ease, transform .16s ease; }
.nav-item:hover { color: var(--blue); background: #f1f5ff; transform: translateX(2px); }
.nav-item.active { color: var(--blue); background: var(--blue-soft); font-weight: 800; }
.nav-item.active::before { content: ""; position: absolute; left: -7px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--blue); }
.nav-icon { width: 22px; text-align: center; font-size: 16px; }
.account-card { margin-top: auto; display: grid; grid-template-columns: 38px 1fr 32px; align-items: center; gap: 9px; padding: 13px 8px 2px; border-top: 1px solid var(--line); }
.avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #e96f91; font-weight: 800; }
.account-copy { min-width: 0; }
.account-copy strong, .account-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-copy strong { font-size: 13px; }
.account-copy small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.icon-btn { width: 32px; height: 32px; border: 0; border-radius: 9px; color: #687387; background: transparent; font-size: 20px; }
.icon-btn:hover { background: #eef1f6; }
.main-shell { min-width: 0; margin-left: 232px; }
.topbar { position: sticky; top: 0; z-index: 8; display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 76px; padding: 13px 28px; border-bottom: 1px solid rgba(222,228,238,.92); background: rgba(248,250,253,.91); backdrop-filter: blur(18px); }
.topbar h2 { margin: 0; font-size: 21px; }
.top-actions { display: flex; align-items: center; gap: 9px; }
.global-search { width: min(380px, 32vw); display: flex; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); }
.global-search input { border: 0; padding-left: 0; box-shadow: none; }
.global-search input:focus { box-shadow: none; }
.badge { min-width: 19px; display: inline-grid; place-items: center; margin-left: 3px; padding: 2px 5px; border-radius: 9px; color: #fff; background: var(--red); font-size: 10px; }
.content { max-width: 1520px; margin: 0 auto; padding: 26px 30px 48px; }
.hero { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 150px; padding: 30px; border: 1px solid #d6e3fa; border-radius: 22px; background: linear-gradient(135deg, #fafdff, #eaf3ff); }
.hero h1 { margin: 6px 0 8px; font-size: 28px; }
.hero p { margin: 0; color: #64748b; }
.hero-badge { min-width: 150px; padding: 18px; border: 1px solid transparent; border-radius: 17px; color: #155d4b; background: rgba(255,255,255,.7); text-align: center; transition: transform .16s ease,border-color .16s ease,box-shadow .16s ease; }
.hero-badge:hover { transform: translateY(-2px); border-color: #bfe1d3; box-shadow: 0 10px 24px rgba(23,166,115,.12); }
.hero-badge strong { display: block; font-size: 28px; }
.grid { display: grid; gap: 14px; }
.metric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 14px; }
.metric-card, .panel, .module-card { border: 1px solid rgba(221,227,237,.95); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow-sm); }
.metric-card { position: relative; overflow: hidden; padding: 19px; }
.metric-card::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: linear-gradient(90deg,var(--blue),#77a9ff); opacity: .65; }
.metric-card.clickable { cursor: pointer; transition: transform .16s ease, box-shadow .16s ease; }
.metric-card.clickable:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.metric-card small { color: var(--muted); }
.metric-card strong { display: block; margin-top: 9px; font-size: 25px; }
.dashboard-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.dashboard-summary article { padding: 16px 18px; border-radius: 13px; background: linear-gradient(145deg,#f7faff,#eef4ff); }
.dashboard-summary small, .dashboard-summary strong { display: block; }
.dashboard-summary small { color: var(--muted); }
.dashboard-summary strong { margin-top: 7px; font-size: 26px; }
.status-chart { margin-top: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: #fbfcff; }
.status-chart h4 { margin: 0 0 15px; }
.status-chart-row { display: grid; grid-template-columns: 110px minmax(100px,1fr) 42px 44px; align-items: center; gap: 10px; margin-top: 11px; font-size: 13px; }
.status-chart-row > span { color: #475569; }
.status-chart-row > strong { text-align: right; }
.status-chart-row > small { color: var(--muted); text-align: right; }
.status-chart-track { height: 11px; overflow: hidden; border-radius: 999px; background: #e8eef8; }
.status-chart-track i { display: block; height: 100%; min-width: 3px; border-radius: inherit; background: linear-gradient(90deg,#3878e8,#6aa6ff); }
.dashboard-analysis-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 16px; margin-top: 20px; }
.dashboard-analysis-grid .status-chart { margin-top: 0; }
.retention-panel { padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(145deg,#fbfcff,#f5f8ff); }
.retention-panel h4 { margin: 0 0 15px; }
.retention-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; }
.retention-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 14px; border: 1px solid #e5ebf5; border-radius: 12px; background: #fff; }
.retention-card small, .retention-card strong { display: block; }
.retention-card small { color: var(--muted); }
.retention-card strong { margin-top: 5px; font-size: 23px; }
.retention-ring { --retention: 0; width: 58px; height: 58px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: conic-gradient(var(--green) calc(var(--retention)*1%),#e8eef5 0); }
.retention-ring::before { content: ""; grid-area: 1/1; width: 44px; height: 44px; border-radius: 50%; background: #fff; }
.retention-ring span { grid-area: 1/1; z-index: 1; color: #526078; font-size: 10px; font-weight: 800; }
.scope-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; padding: 14px 18px; border: 1px solid #dce7f8; border-radius: 14px; background: linear-gradient(135deg,#f7faff,#edf4ff); }
.scope-banner > div { display: grid; gap: 3px; }
.scope-banner small { color: var(--muted); font-size: 11px; }
.scope-banner strong { font-size: 17px; }
.scope-banner span { color: var(--muted); font-size: 12px; }
.dashboard-filters label { display: grid; gap: 4px; color: var(--muted); font-size: 11px; }
.dashboard-filters select { min-width: 170px; }
.source-panel { margin-top: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: #fbfcff; }
.source-panel h4 { margin: 0 0 14px; }
.source-bars { display: grid; gap: 10px; }
.source-bars article { display: grid; grid-template-columns: 110px minmax(100px,1fr) 42px 44px; align-items: center; gap: 10px; font-size: 12px; }
.source-bars article > span { overflow: hidden; color: #475569; text-overflow: ellipsis; white-space: nowrap; }
.source-bars article > div { height: 10px; overflow: hidden; border-radius: 999px; background: #e8eef8; }
.source-bars article i { display: block; min-width: 3px; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#27a876,#69cfaa); }
.source-bars article strong, .source-bars article em { text-align: right; }
.source-bars article em { color: var(--muted); font-style: normal; }
.flow-board { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: #fbfcff; }
.flow-board h4 { margin: 0 0 15px; }
.flow-steps { display: grid; grid-template-columns: repeat(9,minmax(0,1fr)); gap: 8px; width: 100%; }
.flow-step { position: relative; min-width: 0; padding: 12px 7px; border: 1px solid #dce6f7; border-radius: 12px; background: linear-gradient(145deg,#fff,#f0f5ff); text-align: center; }
.flow-step:not(:last-child)::after { content: "›"; position: absolute; z-index: 2; right: -8px; top: 34px; color: #8aa5d4; font-size: 18px; font-weight: 900; }
.flow-step > span { width: 23px; height: 23px; display: grid; place-items: center; margin: 0 auto 7px; border-radius: 50%; color: #fff; background: var(--blue); font-size: 11px; font-weight: 900; }
.flow-step small, .flow-step strong, .flow-step em { display: block; }
.flow-step small { overflow: hidden; color: #526078; text-overflow: ellipsis; white-space: nowrap; }
.flow-step strong { margin-top: 7px; font-size: 20px; }
.flow-step em { margin-top: 2px; color: var(--muted); font-size: 10px; font-style: normal; }
.exception-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0 10px; }
.exception-header h4 { margin: 0; }
.exception-header small { color: var(--muted); }
.exception-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 8px; }
.exception-card { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; padding: 11px 12px; border: 1px solid #f0dfdf; border-radius: 10px; background: #fff8f8; }
.exception-card span { overflow: hidden; color: #7e5454; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.exception-card strong { color: #9d3e3e; }
.management-overview .metric-card:nth-child(2)::after { background: var(--orange); }
.management-overview .metric-card:nth-child(3)::after { background: var(--green); }
.management-overview .metric-card:nth-child(4)::after { background: #7756d8; }
.compact-metrics { margin-top: 0; }
.source-detail-table { margin-top: 16px; }
.source-detail { margin-top: 14px; }
.source-detail > summary { width: fit-content; cursor: pointer; color: var(--blue); font-size: 12px; font-weight: 800; }
.dashboard-tabs { position: sticky; top: 148px; z-index: 5; display: flex; gap: 6px; margin-top: 16px; padding: 6px; border: 1px solid rgba(220,227,238,.95); border-radius: 14px; background: rgba(255,255,255,.92); box-shadow: var(--shadow-sm); backdrop-filter: blur(12px); }
.dashboard-tabs button { flex: 1; min-height: 42px; border: 0; border-radius: 10px; color: #637088; background: transparent; font-weight: 800; }
.dashboard-tabs button:hover { color: var(--blue); background: #f3f6fc; }
.dashboard-tabs button.active { color: #fff; background: linear-gradient(135deg,#2466e6,#4d83ec); box-shadow: 0 6px 15px rgba(34,100,229,.2); }
.dashboard-tab-panels > div { animation: tab-in .18s ease; }
.dashboard-tab-card { margin-top: 16px; }
@keyframes tab-in { from { opacity: .35; transform: translateY(5px); } }
.panel { margin-top: 16px; overflow: hidden; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 20px; border-bottom: 1px solid #edf0f5; background: linear-gradient(180deg,#fff,#fcfdff); }
.panel-header h3 { margin: 0; font-size: 16px; }
.panel-body { padding: 18px 20px; }
.module-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.module-card { display: flex; align-items: flex-start; gap: 13px; min-height: 98px; padding: 18px; text-align: left; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.module-card:hover { transform: translateY(-2px); border-color: #b9cef7; box-shadow: 0 12px 28px rgba(34,100,229,.09); }
.module-card span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--blue); background: var(--blue-soft); }
.module-card strong, .module-card small { display: block; }
.module-card small { margin-top: 5px; color: var(--muted); line-height: 1.45; }
.requirements-section { margin-top: 24px; display: grid; gap: 16px; }
.section-heading h2, .section-heading p { margin: 0; }
.section-heading p { margin-top: 5px; color: var(--muted); }
.plan-summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 16px; }
.plan-summary-card { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.plan-summary-card header { display: flex; gap: 12px; align-items: flex-start; }
.plan-summary-card header > div { min-width: 0; }
.plan-summary-card header strong { display: block; font-size: 17px; }
.plan-summary-card header small { display: block; margin-top: 6px; color: var(--muted); line-height: 1.45; }
.plan-summary-icon { display: grid; flex: 0 0 36px; width: 36px; height: 36px; place-items: center; border-radius: 10px; background: var(--blue-soft); color: var(--blue); }
.plan-gap-grid { display: grid; grid-template-columns: repeat(4, minmax(76px, 1fr)); gap: 10px; margin-top: 18px; }
.plan-gap-grid > div { padding: 12px; border-radius: 12px; background: var(--soft); }
.plan-gap-grid small { display: block; color: var(--muted); white-space: nowrap; }
.plan-gap-grid strong { display: block; margin-top: 5px; font-size: 21px; }
.plan-gap-grid .remaining { color: #b56500; background: #fff3df; }
.plan-gap-grid .complete { color: #16865a; background: #eaf8f1; }
.plan-summary-card footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.requirement-card { overflow: hidden; }
.requirement-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; }
.requirement-line { display: grid; grid-template-columns: 90px 1fr; gap: 10px; align-items: start; padding: 8px 0; border-bottom: 1px solid var(--line); }
.requirement-line strong { color: var(--muted); font-size: 13px; }
.requirement-line span { white-space: pre-wrap; line-height: 1.55; }
.toolbar { position: sticky; top: 76px; z-index: 6; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: -4px 0 15px; padding: 10px; border: 1px solid rgba(225,230,239,.92); border-radius: 14px; background: rgba(248,250,253,.94); box-shadow: var(--shadow-sm); backdrop-filter: blur(14px); }
.toolbar .grow { flex: 1; min-width: 220px; }
.toolbar-search { flex: 1 1 360px; min-width: 260px; }
.toolbar select { width: auto; min-width: 130px; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--shadow-sm); scrollbar-color: #c7d1e1 transparent; scrollbar-width: thin; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { height: 50px; padding: 12px 14px; border-bottom: 1px solid #edf0f5; text-align: left; white-space: nowrap; }
th { position: sticky; top: 0; z-index: 1; color: #5e6b80; background: #f7f9fc; font-size: 12px; font-weight: 800; }
tbody tr { transition: background .15s ease; }
tbody tr:hover { background: #f6f9ff; }
tbody tr[data-open], tbody tr[data-open-candidate], .clickable { cursor: pointer; }
.status-pill { display: inline-flex; align-items: center; min-height: 25px; padding: 5px 10px; border: 1px solid rgba(48,90,168,.08); border-radius: 999px; color: #305aa8; background: var(--blue-soft); font-size: 11px; font-weight: 800; }
.status-pill.green { color: #137553; background: var(--green-soft); }
.status-pill.orange { color: #a55c00; background: #fff3dd; }
.status-pill.red { color: #a33b3b; background: #fff0f0; border-color: #f4d0d0; }
.empty { padding: 46px 20px; color: var(--muted); text-align: center; }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.candidate-results-strip { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: -3px 2px 10px; padding: 0 4px; }
.candidate-results-strip > div { display: flex; align-items: baseline; gap: 5px; }
.candidate-results-strip strong { font-size: 22px; }
.candidate-results-strip span, .candidate-results-strip small { color: var(--muted); }
.candidate-table { table-layout: fixed; min-width: 0; width: 100%; }
.candidate-table-wrap { overflow-x: hidden; }
.candidate-table th { position: relative; white-space: nowrap; }
.candidate-table td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.candidate-table tbody tr { position: relative; }
.candidate-table tbody tr:hover { background: linear-gradient(90deg,#f0f5ff,#f8faff); box-shadow: inset 3px 0 0 var(--blue); }
.candidate-name-cell { min-width: 0; }
.candidate-name-cell strong, .candidate-name-cell small { display: block; overflow: hidden; text-overflow: ellipsis; }
.candidate-name-cell small { margin-top: 4px; color: #8a96aa; font-size: 10px; }
.grade-stars { color: #c2740a; letter-spacing: 2px; }
.candidate-mobile-card .grade-stars { display: block; margin-top: 4px; font-size: 13px; }
.list-item .grade-stars { margin-left: 8px; font-size: 13px; }
.person-chip { display: inline-flex; max-width: 100%; overflow: hidden; padding: 4px 8px; border-radius: 8px; color: #345b9c; background: #f0f5ff; text-overflow: ellipsis; }
.person-chip.secondary { color: #3e6d5e; background: #edf8f3; }
.candidate-mobile-list { display: none; }
.column-resizer { position: absolute; top: 0; right: -4px; width: 9px; height: 100%; cursor: col-resize; user-select: none; z-index: 2; }
.column-resizer:hover { background: rgba(45,108,223,.18); }
.column-setting-list { display: grid; gap: 8px; }
.column-setting-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.column-setting-row > div { display: flex; gap: 5px; }
.detail-hero { display: grid; grid-template-columns: 190px 1fr; gap: 26px; }
.candidate-profile-panel { border-color: #dce6f5; box-shadow: 0 12px 32px rgba(31,47,78,.07); }
.portrait-column { min-width: 0; }
.portrait-actions { margin-top: 9px; }
.portrait-actions button { flex: 1; padding-left: 8px; padding-right: 8px; }
.photo-tile { min-height: 215px; display: grid; place-items: center; border: 1px dashed #b9c7dc; border-radius: 17px; color: #789; background: #eef3f9; overflow: hidden; }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; }
.identity-head { display: flex; justify-content: space-between; gap: 16px; }
.identity-head h1 { margin: 0 0 7px; font-size: 25px; }
.info-grid { grid-template-columns: repeat(3, minmax(0,1fr)); margin-top: 20px; }
.info-item { min-height: 68px; padding: 12px 2px; border-bottom: 1px dashed #dfe4ec; }
.info-item small, .info-item strong { display: block; }
.info-item small { margin-bottom: 6px; color: var(--muted); }
.info-item.editable { cursor: text; border-radius: 9px; transition: background .15s ease; }
.info-item.editable:hover { padding-left: 9px; padding-right: 9px; color: var(--blue); background: #f3f7ff; }
.inline-controls { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; }
.inline-controls input, .inline-controls select { padding: 7px 8px; font-size: 12px; }
.info-item.editing { padding: 7px; background: #f7faff; box-shadow: inset 0 0 0 1px #c8daf8; }
.inline-actions { display: flex; gap: 6px; margin-top: 7px; }
.inline-actions button { padding: 6px 9px; font-size: 11px; }
.assignment-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-top: 18px; }
.assignment-grid > div { padding: 14px 16px; border: 1px solid #e9edf4; border-radius: 12px; background: linear-gradient(145deg,#f8fafc,#f1f4f8); }
.assignment-grid small, .assignment-grid strong { display: block; }
.assignment-grid small { margin-bottom: 5px; color: var(--muted); }
.current-task-panel { border-color: #cfe0fb; box-shadow: 0 10px 28px rgba(34,100,229,.07); }
.current-task-panel .panel-header { background: linear-gradient(135deg,#f8fbff,#edf4ff); }
.task-assignments { margin-top: 0; }
.task-assignments > div { background: #fff; }
.candidate-task-actions { margin-top: 14px; padding-top: 14px; border-top: 1px dashed #dbe3ef; }
.candidate-task-actions .primary-btn:first-of-type { box-shadow: 0 7px 17px rgba(23,32,51,.18); }
.action-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.list-item > .action-row { margin-top: 0; }
.info-item.editable::after { content: "编辑"; float: right; margin-top: -17px; color: transparent; font-size: 10px; transition: color .15s ease; }
.info-item.editable:hover::after { color: var(--blue); }
.photo-tile { transition: border-color .16s ease, box-shadow .16s ease; }
.photo-tile:hover { border-color: #8eade2; box-shadow: inset 0 0 0 3px rgba(34,100,229,.04); }
.photo-album-item { display: grid; gap: 8px; }
.photo-album-item .soft-btn { width: 100%; }
.timeline { display: grid; gap: 12px; }
.timeline-item { position: relative; padding: 14px 16px 14px 40px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfe; }
.timeline-item::before { content: ""; position: absolute; left: 17px; top: 19px; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }
.timeline-item p { margin: 7px 0 0; white-space: pre-wrap; }
.timeline-item small { color: var(--muted); }
.task-groups { display: grid; gap: 18px; }
.task-group { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fbfcff; }
.task-group > header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.task-group > header h4 { margin: 0; }
.task-group > header span { color: var(--muted); font-size: 13px; }
.task-group .list { padding: 8px; }
.mobile-more-hint { display: none; }
.candidate-backbar { display: flex; align-items: center; margin: -4px 0 2px; }
.candidate-backbar .soft-btn { background: #fff; box-shadow: 0 2px 8px rgba(31, 50, 81, .06); }
.rest-calendar { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.rest-day { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcff; }
.rest-day > strong { display: block; margin-bottom: 10px; }
.rest-person { display: grid; gap: 3px; margin-top: 8px; padding: 9px; border-radius: 10px; background: #fff3dd; }
.rest-person.approved { background: #e9f8f0; }
.rest-person small { color: var(--muted); }
.rest-person em { font-size: 12px; font-style: normal; color: var(--blue); }
@media (max-width: 900px) { .rest-calendar { grid-template-columns: 1fr; } }
.section-columns { display: grid; grid-template-columns: 1.35fr .65fr; gap: 14px; }
.detail-side { min-width: 0; }
.detail-summary > summary { cursor: pointer; list-style: none; }
.detail-summary > summary::-webkit-details-marker { display: none; }
.detail-summary > summary span { color: var(--muted); font-size: 11px; }
.detail-summary:not([open]) > summary { border-bottom: 0; }
.list { display: grid; gap: 10px; }
.list-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 13px; background: #fff; transition: border-color .16s ease, box-shadow .16s ease; }
.list-item:hover { border-color: #cbd9f4; box-shadow: 0 7px 18px rgba(34,100,229,.06); }
.list-item strong, .list-item small { display: block; }
.list-item small { margin-top: 5px; color: var(--muted); line-height: 1.45; }
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(15,23,42,.46); backdrop-filter: blur(4px); }
.modal-card { width: min(680px, 100%); max-height: min(88vh, 900px); display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(255,255,255,.75); border-radius: 22px; background: #fff; box-shadow: 0 28px 90px rgba(15,23,42,.23); }
.modal-card > header { display: flex; align-items: center; justify-content: space-between; padding: 19px 22px; border-bottom: 1px solid var(--line); }
.modal-card h3 { margin: 0; }
#modal-form { min-height: 0; display: flex; flex-direction: column; }
.modal-body { overflow: auto; padding: 20px 22px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px; }
.field.full { grid-column: 1 / -1; }
.modal-card footer { display: flex; justify-content: flex-end; gap: 8px; padding: 15px 22px; border-top: 1px solid var(--line); }
.toast-region { position: fixed; right: 22px; bottom: 22px; z-index: 120; display: grid; gap: 9px; }
.toast { min-width: 280px; max-width: 420px; padding: 13px 16px; border-radius: 11px; color: #fff; background: #172033; box-shadow: var(--shadow); animation: toast-in .22s ease; }
.toast.error { background: var(--red); }
.loading { padding: 60px 20px; color: var(--muted); text-align: center; }
.loading::before { content: ""; display: inline-block; width: 20px; height: 20px; margin-right: 9px; border: 2px solid #cbd5e1; border-top-color: var(--blue); border-radius: 50%; vertical-align: middle; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }
@media (max-width: 1050px) {
  .sidebar { width: 78px; }
  .brand > div, .account-copy, .nav-item span:last-child, .nav-section { display: none; }
  .main-shell { margin-left: 78px; }
  .nav-item { justify-content: center; }
  .account-card { grid-template-columns: 38px; justify-content: center; }
  .account-card .icon-btn { display: none; }
  .metric-grid, .dashboard-summary { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .module-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .dashboard-analysis-grid { grid-template-columns: 1fr; }
  .flow-steps { grid-template-columns: repeat(5,minmax(90px,1fr)); }
  .flow-step::after { display: none; }
  .exception-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { inset: auto 0 0; width: auto; height: 72px; flex-direction: row; padding: 7px 8px; border-top: 1px solid var(--line); border-right: 0; box-shadow: 0 -8px 26px rgba(31,47,78,.08); }
  .brand, .account-card, .nav-section { display: none; }
  .nav-list { width: 100%; display: flex; gap: 5px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .nav-list::-webkit-scrollbar { display: none; }
  .nav-item { flex: 0 0 72px; display: grid; gap: 2px; justify-items: center; padding: 5px 3px; font-size: 10px; }
  .nav-item span:last-child { display: block; }
  .nav-item.active::before { inset: auto 16px -5px; width: auto; height: 3px; }
  .main-shell { margin: 0 0 72px; }
  .topbar { align-items: flex-start; padding: 13px 16px; }
  .global-search { display: none; }
  .top-actions .soft-btn { padding: 9px; }
  .content { padding: 14px 12px 30px; }
  .toolbar { position: static; padding: 9px; }
  .toolbar .grow { min-width: 100%; }
  .toolbar-search { flex-basis: 100%; min-width: 100%; }
  .toolbar select { flex: 1; min-width: 0; }
  .candidate-toolbar > button { flex: 1 1 auto; }
  .candidate-table-wrap { display: none; }
  .candidate-mobile-list { display: grid; gap: 10px; }
  .candidate-results-strip { align-items: flex-start; flex-direction: column; gap: 2px; margin-top: 2px; }
  .candidate-mobile-card { padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--shadow-sm); cursor: pointer; }
  .candidate-mobile-card:active { transform: scale(.99); }
  .candidate-mobile-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid #edf0f5; }
  .candidate-mobile-card > header strong, .candidate-mobile-card > header small { display: block; }
  .candidate-mobile-card > header small { margin-top: 4px; color: var(--muted); font-size: 10px; }
  .candidate-mobile-meta { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding-top: 12px; }
  .candidate-mobile-meta span { min-width: 0; }
  .candidate-mobile-meta small, .candidate-mobile-meta strong { display: block; }
  .candidate-mobile-meta small { margin-bottom: 4px; color: var(--muted); font-size: 10px; }
  .candidate-mobile-meta strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
  .hero { padding: 20px; }
  .hero-badge { display: none; }
  .metric-grid, .info-grid, .section-columns, .form-grid, .dashboard-summary { grid-template-columns: 1fr; }
  .module-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .module-card { min-height: 88px; padding: 13px; }
  .module-card > span { display: none; }
  .requirement-grid { grid-template-columns: 1fr; }
  .plan-summary-grid { grid-template-columns: 1fr; }
  .plan-gap-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .status-chart-row { grid-template-columns: 88px minmax(70px,1fr) 34px; }
  .status-chart-row > small { display: none; }
  .flow-steps { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .retention-grid { grid-template-columns: 1fr; }
  .dashboard-tabs { position: static; overflow-x: auto; }
  .dashboard-tabs button { flex: 0 0 auto; min-width: 100px; padding: 0 14px; }
  .scope-banner { align-items: flex-start; flex-direction: column; }
  .source-bars article { grid-template-columns: 86px minmax(70px,1fr) 34px; }
  .source-bars article > em { display: none; }
  .exception-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .assignment-grid { grid-template-columns: 1fr; }
  .detail-hero { grid-template-columns: 1fr; }
  .photo-tile { max-height: 310px; min-height: 230px; }
  .portrait-column { width: min(100%,360px); margin: 0 auto; }
  .identity-head { align-items: flex-start; }
  .candidate-task-actions { position: sticky; bottom: 79px; z-index: 4; margin: 14px -15px -15px; padding: 11px 15px; border-top: 1px solid var(--line); background: rgba(255,255,255,.96); box-shadow: 0 -8px 22px rgba(31,47,78,.08); backdrop-filter: blur(12px); }
  .candidate-task-actions button { min-width: 46%; }
  .task-group .list-item:nth-child(n+4) { display: none; }
  .mobile-more-hint { display: block; padding: 0 16px 13px; color: var(--muted); font-size: 11px; text-align: center; }
  .topbar h2 { font-size: 18px; }
  .panel-header { align-items: flex-start; padding: 15px; }
  .panel-body { padding: 15px; }
  .list-item { align-items: stretch; flex-direction: column; }
  .list-item > button, .list-item > .action-row { align-self: stretch; }
  .list-item > button { width: 100%; }
  .action-row > button { flex: 1 1 auto; }
  .modal-backdrop { align-items: end; padding: 0; }
  .modal-card { width: 100%; max-height: 92vh; border-radius: 22px 22px 0 0; }
  .modal-card > header, .modal-body, .modal-card footer { padding-left: 17px; padding-right: 17px; }
  .toast-region { right: 12px; bottom: 84px; left: 12px; }
  .toast { min-width: 0; max-width: none; }
}

/* v2 视觉规范：数字对齐、未读态、表格横向滚动 */
.metric-card strong,
.status-pill,
.table-wrap td,
.list-item strong,
.compact-date,
.money,
.amount { font-variant-numeric: tabular-nums; }

.table-wrap { overflow-x: auto; }
.table-wrap table { min-width: 720px; }
.money,
.amount { text-align: right; }

.list-item.unread { background: var(--blue-soft); box-shadow: inset 3px 0 0 var(--blue); }
.list-item.unread > div > strong { color: var(--ink); }
.list-item.unread + .list-item.unread { margin-top: 8px; }

/* batch20：候选人表格批量操作条、缺口矩阵 */
.candidate-bulk-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 0 2px 10px; padding: 10px 14px; background: var(--blue-soft); border-radius: 10px; }
.candidate-bulk-bar strong { color: var(--blue); font-variant-numeric: tabular-nums; }
.candidate-bulk-bar .action-row { flex-wrap: wrap; gap: 8px; }
.candidate-table input[type="checkbox"] { width: 15px; height: 15px; cursor: pointer; accent-color: var(--blue); }
.candidate-table th:first-child, .candidate-table td:first-child { text-align: center; }
.gap-number { color: var(--orange); font-size: 15px; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .candidate-bulk-bar { flex-direction: column; align-items: flex-start; gap: 10px; }
}
