:root {
  --bg: #f4f6f5;
  --surface: #ffffff;
  --surface-alt: #f8faf9;
  --ink: #182321;
  --muted: #687572;
  --line: #dce3e1;
  --line-strong: #c8d2cf;
  --teal: #087f73;
  --teal-dark: #065e56;
  --teal-soft: #dcefeb;
  --mint: #eef7f5;
  --amber: #ad6b00;
  --amber-soft: #fff4dc;
  --red: #b73737;
  --red-soft: #fae7e7;
  --blue: #376a8a;
  --blue-soft: #e8f0f5;
  --shadow: 0 8px 24px rgba(26, 52, 47, .06);
  --sidebar: 236px;
  --topbar: 66px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: 0;
}
button, input, select { font: inherit; letter-spacing: 0; }
button, select, input[type="checkbox"] { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(30px, 4vw, 50px); line-height: 1.08; font-weight: 690; }
h2 { font-size: 24px; line-height: 1.22; font-weight: 680; }
h3 { font-size: 15px; line-height: 1.35; font-weight: 680; }
strong, b { font-weight: 680; }

.loading-screen {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; gap: 14px;
  background: var(--surface); transition: opacity .28s ease, visibility .28s ease;
}
.loading-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loading-screen > div:last-child { display: grid; gap: 2px; }
.loading-screen span { color: var(--muted); font-size: 12px; }
.loading-mark, .brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 6px;
  background: var(--teal); color: #fff; font-size: 13px; font-weight: 800;
}

.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 50; width: var(--sidebar); padding: 22px 16px 18px;
  background: #152522; color: #ecf3f1; display: flex; flex-direction: column;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 0 7px 22px; border-bottom: 1px solid rgba(255,255,255,.12); }
.brand > div:last-child, .sidebar-foot > div { display: grid; }
.brand strong { font-size: 14px; }
.brand span, .sidebar-foot span { font-size: 10px; color: #9db0ab; }
.side-nav { display: grid; gap: 3px; margin-top: 20px; }
.side-nav a {
  display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px;
  border-radius: 5px; color: #afbfbb; transition: .18s ease;
}
.side-nav a span { width: 21px; color: #6d8580; font-size: 10px; font-variant-numeric: tabular-nums; }
.side-nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.side-nav a.active { color: #fff; background: rgba(52, 190, 169, .16); }
.side-nav a.active span { color: #62c7b7; }
.sidebar-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 14px 8px 0; border-top: 1px solid rgba(255,255,255,.12); }
.sidebar-foot strong { font-size: 11px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #45b9a7; box-shadow: 0 0 0 4px rgba(69,185,167,.12); }

.main { margin-left: var(--sidebar); min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 40; min-height: var(--topbar); padding: 10px 28px;
  background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px;
  backdrop-filter: blur(12px);
}
.filter-strip { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; overflow-x: auto; }
.filter-strip label, .table-toolbar label:not(.search-box) {
  display: grid; gap: 2px; color: var(--muted); font-size: 9px; text-transform: uppercase;
}
select {
  height: 31px; max-width: 156px; padding: 0 28px 0 9px; border: 1px solid var(--line);
  border-radius: 5px; background: var(--surface); color: var(--ink); font-size: 12px;
}
.check-control { display: flex !important; flex-direction: row; align-items: center; gap: 7px !important; min-height: 31px; padding-top: 11px; color: var(--ink) !important; font-size: 12px !important; text-transform: none !important; white-space: nowrap; }
input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--teal); }
.top-actions { display: flex; flex: 0 0 auto; white-space: nowrap; align-items: center; gap: 10px; margin-left: auto; }
.sample-counter { white-space: nowrap; color: var(--teal-dark); font-weight: 700; font-variant-numeric: tabular-nums; }
.text-button, .link-button { border: 0; background: none; color: var(--teal); padding: 5px; }
.text-button:hover, .link-button:hover { color: var(--teal-dark); text-decoration: underline; }
.icon-button {
  width: 34px; height: 34px; display: inline-grid; place-items: center; border: 1px solid var(--line);
  border-radius: 5px; background: var(--surface); color: var(--ink);
}
.icon-button:disabled { opacity: .35; cursor: default; }
.menu-button, .mobile-title, .mobile-filter-button { display: none; }

.report-section { max-width: 1500px; margin: 0 auto; padding: 82px 40px 8px; scroll-margin-top: 50px; }
.overview-section { padding-top: 58px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; margin-bottom: 24px; }
.section-heading > div:first-child { max-width: 760px; }
.section-heading > div > p:last-child { margin-top: 7px; color: var(--muted); max-width: 720px; }
.section-index, .eyebrow, .kicker { color: var(--teal); font-weight: 750; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.overview-heading { align-items: flex-end; margin-bottom: 30px; }
.overview-heading .eyebrow { margin-bottom: 9px; }
.lede { max-width: 710px; margin-top: 15px !important; font-size: 16px; line-height: 1.7; }
.scope-legend { display: grid; grid-template-columns: repeat(2, 150px); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.scope-legend > div { position: relative; display: grid; padding: 13px 14px; background: var(--surface); }
.scope-legend strong { font-size: 11px; color: var(--muted); }
.scope-legend b { margin: 3px 0 1px; font-size: 21px; font-variant-numeric: tabular-nums; }
.scope-legend small { color: var(--muted); font-size: 10px; }
.legend-mark { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; }
.legend-mark.market { background: var(--teal); }
.legend-mark.semantic { background: var(--amber); }
.scope-label { padding: 5px 8px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.market-scope { color: var(--teal-dark); border-color: #b9dbd5; background: var(--mint); }
.semantic-scope { color: var(--amber); border-color: #ead4aa; background: var(--amber-soft); }

.notice { display: flex; align-items: flex-start; gap: 16px; padding: 13px 16px; margin-bottom: 18px; border-left: 3px solid; background: var(--surface); }
.notice strong { flex: 0 0 auto; font-size: 12px; }
.notice p { color: var(--muted); font-size: 12px; }
.notice.warning { border-color: var(--amber); background: var(--amber-soft); }
.notice.info { border-color: var(--blue); background: var(--blue-soft); margin-top: 18px; }

.metric-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 18px; }
.metric-card { min-width: 0; padding: 17px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.metric-card .metric-label { color: var(--muted); font-size: 11px; }
.metric-card .metric-value { margin: 5px 0 3px; font-size: 28px; line-height: 1.15; font-weight: 720; font-variant-numeric: tabular-nums; }
.metric-card .metric-note { color: var(--muted); font-size: 10px; }
.metric-card.accent { border-top: 3px solid var(--teal); }
.metric-card.semantic { border-top: 3px solid var(--amber); }

.panel { min-width: 0; padding: 19px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.panel-heading > span { color: var(--muted); font-size: 10px; white-space: nowrap; }
.panel-heading p { margin-top: 3px; color: var(--muted); font-size: 11px; }
.panel-heading .kicker { color: var(--teal); margin: 0 0 4px; }
.panel-heading h2 { font-size: 19px; }
.two-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.three-column { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.insight-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-bottom: 14px; border: 1px solid var(--line); background: var(--line); }
.insight-item { min-width: 0; padding: 12px 14px; background: var(--surface-alt); }
.insight-item span { display: block; margin-bottom: 3px; color: var(--teal); font-size: 9px; font-weight: 750; text-transform: uppercase; }
.insight-item p { color: #3d4b48; font-size: 11px; }
.overview-grid { grid-template-columns: 1.1fr .9fr; }
.finding-list { margin: 0; padding: 0; list-style: none; counter-reset: finding; display: grid; gap: 12px; }
.finding-list li { counter-increment: finding; display: grid; grid-template-columns: 28px 1fr; gap: 10px; color: #34403e; }
.finding-list li::before { content: counter(finding, decimal-leading-zero); color: var(--teal); font-size: 10px; padding-top: 3px; font-weight: 750; }
.coverage-list { display: grid; gap: 11px; }
.coverage-item { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(130px, 1.3fr) 58px; align-items: center; gap: 10px; }
.coverage-item .label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.progress { height: 7px; background: #e8edeb; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--teal); }
.progress.low > i { background: var(--amber); }
.confidence { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 22px; padding: 0 7px; border-radius: 4px; font-size: 10px; font-style: normal; }
.confidence.high { background: var(--teal-soft); color: var(--teal-dark); }
.confidence.medium { background: var(--blue-soft); color: var(--blue); }
.confidence.exploratory { background: var(--amber-soft); color: var(--amber); }
.coverage-comparison { display: grid; gap: 12px; }
.comparison-row { display: grid; grid-template-columns: minmax(170px, 1.2fr) minmax(280px, 4fr) 110px; align-items: center; gap: 14px; }
.comparison-label strong { display: block; font-size: 12px; }
.comparison-label span { color: var(--muted); font-size: 10px; }
.comparison-bars { display: grid; gap: 4px; }
.comparison-track { height: 8px; background: #edf1ef; position: relative; }
.comparison-track i { display: block; height: 100%; }
.comparison-track.market i { background: var(--teal); }
.comparison-track.semantic i { background: var(--amber); }
.comparison-value { text-align: right; font-size: 11px; font-variant-numeric: tabular-nums; }

.chart-panel { margin-bottom: 0; }
.bar-chart { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: minmax(130px, 1.15fr) minmax(180px, 3fr) 86px; align-items: center; gap: 10px; min-height: 24px; }
.bar-row.clickable { cursor: pointer; }
.bar-row.clickable:hover .bar-label { color: var(--teal); }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.bar-track { height: 9px; background: #ecf0ef; position: relative; }
.bar-fill { display: block; height: 100%; min-width: 1px; background: var(--teal); transition: width .35s ease; }
.bar-fill.amber { background: var(--amber); }
.bar-fill.blue { background: var(--blue); }
.bar-value { text-align: right; font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar-value strong { color: var(--ink); font-size: 11px; }
.bar-chart.compact .bar-row { grid-template-columns: minmax(90px, 1fr) minmax(90px, 2fr) 62px; }
.bar-chart.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.bar-chart.two-up .bar-row { grid-template-columns: minmax(120px, 1.2fr) minmax(100px, 2fr) 58px; }

.control-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.segmented { display: flex; flex-wrap: wrap; gap: 4px; }
.segmented button, .role-tabs button {
  min-height: 32px; padding: 0 11px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--muted); font-size: 11px;
}
.segmented button:hover, .role-tabs button:hover { border-color: var(--teal); color: var(--teal); }
.segmented button.active, .role-tabs button.active { border-color: var(--teal); background: var(--teal); color: #fff; }
.micro-note { color: var(--muted); font-size: 10px; }
.skills-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .7fr); gap: 14px; margin-bottom: 14px; }
.skill-bars .bar-row { grid-template-columns: minmax(120px, 1.1fr) minmax(170px, 3fr) 98px; }
.skill-detail { border-top: 3px solid var(--teal); }
.skill-detail-empty { min-height: 340px; display: grid; place-content: center; text-align: center; color: var(--muted); }
.detail-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.detail-title h3 { font-size: 20px; }
.detail-title span { color: var(--muted); font-size: 10px; }
.detail-stat { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 15px 0; background: var(--line); border: 1px solid var(--line); }
.detail-stat div { padding: 11px; background: var(--surface-alt); }
.detail-stat small { display: block; color: var(--muted); }
.detail-stat strong { font-size: 18px; }
.detail-section { margin-top: 16px; }
.detail-section h4 { margin: 0 0 8px; font-size: 11px; color: var(--muted); }
.chip-list { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { padding: 4px 7px; border-radius: 3px; background: var(--mint); color: var(--teal-dark); font-size: 10px; }
.evidence-snippet { margin-top: 8px; padding: 10px; border-left: 2px solid var(--line-strong); background: var(--surface-alt); color: #40504d; font-size: 11px; line-height: 1.65; }
mark { background: #ffedaa; color: inherit; padding: 0 1px; }

.matrix-panel { overflow: hidden; }
.matrix-wrap, .heatmap-wrap { overflow-x: auto; padding-bottom: 4px; }
.matrix-grid { display: grid; min-width: 700px; gap: 2px; align-items: stretch; }
.matrix-label { min-height: 29px; display: flex; align-items: center; justify-content: flex-end; padding: 3px 7px; font-size: 9px; color: var(--muted); text-align: right; }
.matrix-label.top { align-items: flex-end; justify-content: center; writing-mode: vertical-rl; transform: rotate(180deg); height: 80px; text-align: left; }
.matrix-cell { min-height: 29px; display: grid; place-items: center; color: var(--ink); font-size: 8px; cursor: default; }

.salary-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.salary-stat { padding: 15px 16px; border-left: 3px solid var(--teal); background: var(--surface); }
.salary-stat span { display: block; color: var(--muted); font-size: 10px; }
.salary-stat strong { font-size: 24px; font-variant-numeric: tabular-nums; }
.salary-stat small { color: var(--muted); }
.range-chart { display: grid; gap: 12px; }
.range-row { display: grid; grid-template-columns: minmax(120px, 1.2fr) minmax(210px, 3fr) 76px; gap: 10px; align-items: center; }
.range-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.range-axis { position: relative; height: 20px; background-image: linear-gradient(to right, var(--line) 1px, transparent 1px); background-size: 25% 100%; }
.range-line { position: absolute; top: 9px; height: 2px; background: #83b8af; }
.range-line::before, .range-line::after { content: ""; position: absolute; top: -3px; width: 1px; height: 8px; background: var(--teal-dark); }
.range-line::before { left: 0; }
.range-line::after { right: 0; }
.range-median { position: absolute; top: 4px; width: 4px; height: 12px; margin-left: -2px; background: var(--teal); }
.range-value { text-align: right; font-size: 10px; font-variant-numeric: tabular-nums; }
.range-value strong { font-size: 12px; }

.maturity-ladder { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; }
.maturity-step { position: relative; min-height: 90px; padding: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.maturity-step:hover, .maturity-step.active { border-color: var(--teal); }
.maturity-step.active { box-shadow: inset 0 3px var(--teal); }
.maturity-step small { color: var(--teal); font-weight: 750; }
.maturity-step strong { display: block; margin-top: 7px; font-size: 12px; }
.maturity-step span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.maturity-detail h3 { font-size: 20px; }
.maturity-detail .level-badge { color: var(--teal); font-weight: 750; font-size: 11px; }
.maturity-detail p { margin: 8px 0 16px; color: var(--muted); }
.maturity-detail .evidence-list { display: grid; gap: 8px; }
.maturity-detail .evidence-card { padding: 10px 11px; background: var(--surface-alt); border-left: 2px solid var(--teal); }
.maturity-detail .evidence-card strong { display: block; font-size: 11px; }
.maturity-detail .evidence-card span { color: var(--muted); font-size: 10px; }
.heatmap { display: grid; min-width: 720px; gap: 2px; }
.heatmap .head, .heatmap .row-label { display: grid; place-items: center; padding: 5px; color: var(--muted); font-size: 9px; text-align: center; }
.heatmap .row-label { justify-content: end; text-align: right; }
.heatmap .cell { min-height: 39px; display: grid; place-items: center; font-size: 9px; }

.role-tabs { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.role-profile { margin-bottom: 14px; }
.role-profile-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.role-profile-head h3 { font-size: 23px; }
.role-profile-head p { color: var(--muted); margin-top: 5px; }
.role-kpis { display: flex; gap: 20px; text-align: right; }
.role-kpis span { display: block; color: var(--muted); font-size: 9px; }
.role-kpis strong { font-size: 18px; white-space: nowrap; }
.role-profile-body { display: grid; grid-template-columns: 1.35fr repeat(3, 1fr); gap: 18px; padding-top: 17px; }
.profile-block h4 { margin: 0 0 9px; color: var(--muted); font-size: 10px; text-transform: uppercase; }
.profile-skill { display: grid; grid-template-columns: 86px 1fr 42px; align-items: center; gap: 7px; margin-bottom: 7px; font-size: 10px; }
.mini-track { height: 5px; background: #edf1ef; }
.mini-track i { display: block; height: 100%; background: var(--teal); }
.profile-list { display: grid; gap: 6px; }
.profile-list div { display: flex; justify-content: space-between; gap: 8px; font-size: 10px; }
.profile-list span:last-child { color: var(--muted); }

.table-panel { padding-bottom: 10px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 11px; }
th { padding: 9px 10px; border-bottom: 1px solid var(--line-strong); color: var(--muted); text-align: left; font-size: 9px; font-weight: 650; text-transform: uppercase; white-space: nowrap; }
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--surface-alt); }
.secondary-button { min-height: 34px; padding: 0 12px; border: 1px solid var(--teal); border-radius: 4px; color: var(--teal); background: var(--surface); }
.secondary-button:hover { background: var(--mint); }
.table-toolbar { display: flex; align-items: flex-end; gap: 10px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.search-box { flex: 1; min-width: 220px; height: 36px; display: flex; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid var(--line); border-radius: 4px; }
.search-box span { color: var(--muted); font-size: 18px; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.table-toolbar > span { margin-left: auto; padding-bottom: 7px; color: var(--muted); white-space: nowrap; font-size: 10px; }
.jobs-table-wrap { min-height: 670px; }
.jobs-table td:first-child { min-width: 220px; }
.jobs-table td:nth-child(2) { min-width: 150px; }
.job-primary strong { display: block; max-width: 300px; font-size: 12px; }
.job-primary span { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.job-tags { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 4px; }
.job-tag { padding: 2px 4px; border-radius: 2px; background: var(--surface-alt); color: var(--muted); font-size: 8px; }
.jd-state { color: var(--teal); }
.jd-state.missing { color: var(--muted); }
.row-open { border: 0; background: none; color: var(--teal); font-size: 11px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 12px; padding-top: 14px; }
.pagination span { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }

.audit-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; margin-bottom: 14px; }
.audit-item { padding: 13px; border: 1px solid var(--line); background: var(--surface); }
.audit-item span { display: block; color: var(--muted); font-size: 9px; }
.audit-item strong { display: block; margin-top: 3px; font-size: 18px; }
.audit-item small { color: var(--muted); font-size: 9px; }
.definition-list { display: grid; gap: 12px; }
.definition-item { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.definition-item:last-child { padding-bottom: 0; border: 0; }
.definition-item strong { font-size: 11px; }
.definition-item p { color: var(--muted); font-size: 11px; }
.build-note { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; background: #1c2e2a; color: #dce7e4; font-size: 11px; }
.build-note code { padding: 4px 7px; background: rgba(255,255,255,.1); color: #fff; }
.build-note span { margin-left: auto; color: #aabbb7; }

footer { max-width: 1500px; margin: 70px auto 0; padding: 20px 40px 34px; display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; border-top: 1px solid var(--line); }

.drawer-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(16,29,26,.32); opacity: 0; visibility: hidden; transition: .2s ease; }
.job-drawer { position: fixed; z-index: 90; top: 0; right: 0; width: min(620px, 92vw); height: 100vh; background: var(--surface); box-shadow: -12px 0 32px rgba(17,34,30,.15); transform: translateX(102%); transition: transform .24s ease; display: flex; flex-direction: column; }
.drawer-backdrop.open { opacity: 1; visibility: visible; }
.job-drawer.open { transform: translateX(0); }
.drawer-head { height: 58px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.drawer-content { overflow-y: auto; padding: 23px 24px 48px; }
.drawer-content h2 { margin: 5px 0 6px; }
.drawer-company { color: var(--muted); }
.drawer-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; }
.drawer-meta span { padding: 5px 7px; border: 1px solid var(--line); border-radius: 3px; font-size: 10px; }
.drawer-section { margin-top: 22px; }
.drawer-section h3 { margin-bottom: 10px; padding-bottom: 7px; border-bottom: 1px solid var(--line); font-size: 12px; }
.drawer-jd { white-space: pre-wrap; color: #34413f; line-height: 1.85; font-size: 12px; }
.source-link { display: inline-block; margin-top: 16px; color: var(--teal); font-size: 11px; }
.toast { position: fixed; z-index: 120; left: 50%; bottom: 24px; transform: translate(-50%, 20px); padding: 9px 14px; border-radius: 4px; background: #172622; color: #fff; font-size: 11px; opacity: 0; visibility: hidden; transition: .2s ease; }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.empty-state { min-height: 180px; display: grid; place-content: center; text-align: center; color: var(--muted); }

@media (max-width: 1200px) {
  :root { --sidebar: 210px; }
  .topbar { padding-inline: 18px; }
  .filter-strip label:nth-child(3), .filter-strip label:nth-child(6) { display: none; }
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
  .audit-grid { grid-template-columns: repeat(3, 1fr); }
  .role-profile-body { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  :root { --sidebar: 0px; }
  .sidebar { width: 236px; transform: translateX(-102%); transition: transform .22s ease; box-shadow: 12px 0 26px rgba(0,0,0,.14); }
  .sidebar.open { transform: translateX(0); }
  .menu-button { display: inline-grid; flex: 0 0 auto; }
  .filter-strip { overflow-x: auto; padding-bottom: 3px; }
  .filter-strip label:nth-child(3), .filter-strip label:nth-child(6) { display: grid; }
  .topbar { padding-inline: 12px; }
  .top-actions .sample-counter { display: none; }
  .report-section { padding-inline: 24px; }
  .overview-heading { align-items: flex-start; }
  .scope-legend { grid-template-columns: repeat(2, 125px); }
  .three-column { grid-template-columns: 1fr 1fr; }
  .three-column > :last-child { grid-column: 1 / -1; }
  .skills-layout { grid-template-columns: 1fr; }
  .skill-detail { min-height: auto; }
  .maturity-ladder { grid-template-columns: repeat(3, 1fr); }
  .audit-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
  body { font-size: 13px; }
  .topbar { min-height: 55px; }
  .filter-strip { display: none; position: absolute; left: 0; right: 0; top: 55px; padding: 12px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); flex-wrap: wrap; overflow: visible; }
  .filter-strip.open { display: flex; }
  .menu-button::after { content: "章节"; width: auto; margin-left: 5px; font-size: 11px; }
  .menu-button { width: auto; padding: 0 10px; display: flex; }
  .mobile-filter-button { display: inline-block; min-height: 34px; padding-inline: 10px; }
  .top-actions { margin-left: auto; }
  .mobile-title { display: flex; justify-content: space-between; gap: 12px; padding: 13px 16px; background: #152522; color: #fff; }
  .mobile-title span { color: #9db0ab; font-size: 10px; }
  .report-section, .overview-section { padding: 54px 16px 0; }
  .overview-section { padding-top: 34px; }
  h1 { font-size: 33px; }
  h2 { font-size: 21px; }
  .section-heading, .overview-heading { display: grid; gap: 16px; align-items: start; }
  .section-heading > .scope-label { justify-self: start; }
  .scope-legend { width: 100%; grid-template-columns: repeat(2, 1fr); }
  .notice { display: grid; gap: 4px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-card { padding: 13px; }
  .metric-card .metric-value { font-size: 23px; }
  .two-column, .three-column { grid-template-columns: 1fr; }
  .insight-strip { grid-template-columns: 1fr; }
  .three-column > :last-child { grid-column: auto; }
  .panel { padding: 15px; }
  .coverage-item { grid-template-columns: minmax(100px, 1fr) minmax(100px, 1.3fr) 48px; }
  .comparison-row { grid-template-columns: 1fr 2fr; }
  .comparison-value { grid-column: 1 / -1; text-align: left; }
  .bar-row, .bar-chart.compact .bar-row, .bar-chart.two-up .bar-row, .skill-bars .bar-row { grid-template-columns: minmax(96px, 1fr) minmax(110px, 2fr) 65px; }
  .bar-chart.two-up { grid-template-columns: 1fr; }
  .control-row { align-items: flex-start; flex-direction: column; }
  .segmented { flex-wrap: nowrap; width: calc(100vw - 32px); overflow-x: auto; padding-bottom: 4px; }
  .segmented button { white-space: nowrap; }
  .salary-summary { grid-template-columns: repeat(2, 1fr); }
  .range-row { grid-template-columns: 92px minmax(120px, 2fr) 54px; }
  .maturity-ladder { grid-template-columns: repeat(2, 1fr); }
  .role-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; }
  .role-tabs button { white-space: nowrap; }
  .role-profile-head { display: grid; }
  .role-kpis { text-align: left; }
  .role-profile-body { grid-template-columns: 1fr; }
  .table-toolbar { flex-wrap: wrap; align-items: center; }
  .search-box { flex-basis: 100%; }
  .table-toolbar > span { margin-left: 0; }
  .jobs-table-wrap { min-height: 620px; }
  .jobs-table th:nth-child(2), .jobs-table td:nth-child(2), .jobs-table th:nth-child(5), .jobs-table td:nth-child(5) { display: none; }
  .audit-grid { grid-template-columns: repeat(2, 1fr); }
  .definition-item { grid-template-columns: 1fr; gap: 3px; }
  .build-note { align-items: flex-start; flex-direction: column; }
  .build-note span { margin-left: 0; }
  footer { margin-top: 50px; padding-inline: 16px; }
}

@media (max-width: 420px) {
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-card:last-child { grid-column: 1 / -1; }
  .scope-legend b { font-size: 18px; }
  .bar-row, .bar-chart.compact .bar-row, .bar-chart.two-up .bar-row, .skill-bars .bar-row { grid-template-columns: 84px minmax(86px, 1fr) 62px; gap: 6px; }
  .bar-value { font-size: 9px; }
  .salary-summary { grid-template-columns: 1fr 1fr; }
  .audit-grid { grid-template-columns: 1fr 1fr; }
}

@media print {
  .sidebar, .topbar, .drawer-backdrop, .job-drawer, .toast, .mobile-title { display: none !important; }
  .main { margin: 0; }
  .report-section { max-width: none; padding: 24px 20px; break-before: page; }
  .overview-section { break-before: auto; }
  .panel, .metric-card { break-inside: avoid; box-shadow: none; }
  body { background: #fff; }
}
