:root {
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  color:#202824; background:#fff; font-size:15px;
  --blue:#08785f; --muted:#66716b; --line:#e9edeb;
  --surface:#f5f7f6; --accent-bg:#edf5f1;
}
* { box-sizing:border-box; }
body { margin:0; height:100dvh; display:flex; overflow:hidden; }
button,input,select { font:inherit; color:inherit; }
button,summary,select { cursor:pointer; }
button { border:0; background:none; }
button,a { touch-action:manipulation; }
button:disabled { opacity:.35; cursor:default; }
[hidden] { display:none!important; }
a { color:var(--blue); }
h1,h2,h3,p { overflow-wrap:anywhere; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,[tabindex]:focus-visible {
  outline:2px solid #16886c; outline-offset:3px;
}
svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; flex-shrink:0; }
.site-header { width:82px; padding:20px 8px 12px; flex-shrink:0; display:flex; flex-direction:column; align-items:stretch; background:var(--surface); border-right:1px solid var(--line); }
.brand { display:flex; flex-direction:column; align-items:center; gap:8px; color:#263c31; font-size:14px; font-weight:650; text-decoration:none; margin:0 0 28px; }
.brand small { display:none; }
.brand-icon { display:flex; color:var(--blue); }
.brand-icon svg { width:25px; height:25px; stroke:0; }
.site-header nav { display:flex; flex-direction:column; gap:10px; }
.nav-item { min-height:62px; padding:8px 4px; border-radius:10px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; font-size:14px; color:#6a736e; transition:background 140ms,color 140ms; }
.nav-item:hover { background:#e9efec; }
.nav-item.active { background:#e5eeea; color:#145640; font-weight:600; }
.nav-icon { width:20px; height:20px; }
.nav-count { display:none; }
.site-header #method-button { margin-top:auto; font-size:14px; color:#747f78; }
.shell { position:relative; flex:1; height:100dvh; min-height:0; min-width:0; display:flex; flex-direction:column; }
.topbar { display:none; }
main { flex:1; min-height:0; display:flex; flex-direction:column; overflow-y:auto; padding:28px 32px 0; }
.heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:24px; }
.heading h1 { font-size:28px; letter-spacing:-.6px; margin:0; font-weight:650; }
.heading p { margin:10px 0 0; font-size:15px; line-height:1.7; color:var(--muted); }
.eyebrow { color:var(--muted); font-size:14px; margin-bottom:8px; }
.heading .eyebrow { display:none; }
body[data-view="jobs"] .heading,body[data-view="saved"] .heading { position:absolute; width:1px; height:1px; clip-path:inset(50%); overflow:hidden; }
body[data-view="jobs"] main,body[data-view="saved"] main { padding:0; overflow:hidden; }
footer { padding:28px 12px; color:var(--muted); font-size:14px; line-height:1.7; text-align:center; }
body[data-view="jobs"] footer,body[data-view="saved"] footer { display:none; }
.button { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:40px; padding:9px 15px; border:1px solid transparent; border-radius:8px; background:var(--blue); color:#fff; font-size:14px; line-height:1.4; font-weight:550; white-space:nowrap; text-decoration:none; transition:background 120ms; }
.button:hover { background:#06654f; }
.button.secondary { background:#fff; border-color:#dfe5e1; color:#414c45; }
.button.secondary:hover { background:var(--surface); border-color:#becdc5; }
.button.small { min-height:36px; padding:7px 12px; }
.text-button { font-size:14px; color:var(--blue); padding:8px 4px; line-height:1.4; }
.text-button:hover { color:#064f3e; }
.quiet { color:var(--muted); font-size:14px; line-height:1.7; }
#jobs-view { flex:1; min-height:0; display:flex; flex-direction:column; }
.workspace-toolbar { flex-shrink:0; display:grid; grid-template-columns:minmax(200px,1fr) minmax(360px,.8fr); align-items:center; gap:0 16px; padding:14px 24px; border-bottom:1px solid var(--line); }
.searchbar { height:44px; display:flex; align-items:center; gap:10px; background:var(--surface); border:1px solid #e8ece9; border-radius:9px; padding:0 13px; }
.searchbar svg { width:18px; height:18px; color:#738077; }
.searchbar input { min-width:0; width:100%; height:100%; border:0; background:none; outline:none; font-size:15px; }
.searchbar:focus-within { border-color:#8fb9a8; background:#fff; box-shadow:0 0 0 2px #08785f0a; }
.searchbar kbd { font-size:12px; color:#8a948e; padding:2px 5px; border:1px solid #dce3df; border-radius:4px; white-space:nowrap; }
.filters { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.city-trigger { min-width:70px; max-width:115px; min-height:42px; padding:8px 10px; border:1px solid #e0e6e2; border-radius:8px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:#52695e; font-size:14px; }
.city-trigger.selected { color:var(--blue); background:var(--accent-bg); }
.city-dialog { width:440px; }
.city-search { padding:10px 22px; }
.city-search input { min-height:44px; width:100%; border:1px solid var(--line); padding:10px 12px; border-radius:8px; background:var(--surface); }
.city-choices { max-height:55dvh; overflow:auto; padding:0 22px 20px; display:flex; flex-direction:column; }
.city-choices button { min-height:46px; display:flex; align-items:center; justify-content:space-between; padding:10px; text-align:left; border-bottom:1px solid var(--line); }
.city-choices button[aria-pressed="true"] { background:var(--accent-bg); color:var(--blue); }
.city-choices span { font-size:14px; color:var(--muted); }
.category-tabs { display:flex; gap:3px; }
.category-tabs button { font-size:14px; min-height:40px; padding:8px 13px; border-radius:8px; color:#626d66; transition:color 140ms,background 140ms; }
.category-tabs button.selected { color:#16644e; background:var(--accent-bg); font-weight:600; }
.filter-trigger { display:flex; align-items:center; gap:7px; min-height:40px; padding:8px 12px; border:1px solid #e0e6e2; border-radius:8px; font-size:14px; }
.filter-trigger svg { width:18px; height:18px; }
.filter-trigger:hover { background:var(--surface); }
#filter-count { font-size:13px; color:var(--blue); font-weight:600; }
.quick-search { display:none; }
#active-filters { grid-column:1/-1; }
.active-filters { display:flex; flex-wrap:wrap; align-items:center; gap:7px; margin-top:12px; }
.active-filters button { padding:7px 10px; border-radius:6px; background:#f0f4f2; color:#40594f; font-size:14px; }
.active-filters .text-button { background:none; }
.results-layout { flex:1; min-height:0; display:grid; grid-template-columns:minmax(350px,36%) minmax(0,1fr); }
.results { min-height:0; min-width:0; display:flex; flex-direction:column; border-right:1px solid var(--line); background:#fbfcfb; }
.list-heading { display:flex; justify-content:space-between; align-items:center; gap:6px; min-height:52px; padding:0 18px; }
.list-heading h2 { font-size:14px; color:#6b746f; font-weight:400; margin:0; white-space:nowrap; }
.list-actions { display:flex; align-items:center; gap:4px; }
.list-heading select { font-size:14px; width:108px; border:0; min-height:40px; padding:4px 2px; background:transparent; color:#68726c; }
.icon-button { width:36px; height:40px; display:flex; align-items:center; justify-content:center; border-radius:7px; color:#78827c; }
.icon-button:hover { background:#edf2ef; }
.icon-button svg { width:17px; height:17px; }
#job-list { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; padding:0 12px 10px; }
.job-card { position:relative; border:1px solid transparent; border-radius:10px; padding:12px 17px; margin-bottom:0; cursor:pointer; transition:background 140ms,border-color 140ms; }
.job-card:hover { background:#f0f4f1; }
.job-card.is-selected { background:#edf5f1; border-color:#deebe3; }
.job-heading h3 { margin:0 0 6px; padding-right:24px; font-size:17px; line-height:1.45; letter-spacing:-.2px; font-weight:600; }
.title-button { padding:0; text-align:left; color:inherit; font:inherit; line-height:inherit; }
.job-heading .title-button { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
.job-meta { display:flex; flex-wrap:wrap; align-items:baseline; font-size:14px; line-height:1.6; color:#6b746f; margin-bottom:5px; }
.job-meta i { font-style:normal; color:#a1aba4; margin:0 5px; }
.salary { font-size:16px; font-weight:600; color:#287158; margin-right:10px; white-space:nowrap; }
.salary.undisclosed { font-size:14px; font-weight:400; color:#7b857e; }
.card-topline { display:flex; align-items:center; gap:6px; min-width:0; margin-bottom:5px; }
.card-topline .company-logo { width:19px; height:19px; }
.card-condition { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; width:100%; padding:0; text-align:left; font-size:14px; line-height:1.65; color:#45584e; }
.card-condition>span { color:#7e8982; margin-right:7px; }
.card-condition:hover { color:var(--blue); }
.card-source { font-size:14px; color:#7c867f; line-height:1.5; margin-top:5px; }
.card-notice { display:block; color:#856940; }
.company-logo { display:flex; align-items:center; justify-content:center; width:23px; height:23px; flex-shrink:0; border-radius:5px; background:#e8f0ec; color:var(--logo,#366958); font-size:13px; font-weight:650; }
.company { font-size:14px; font-weight:400; color:#667269; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tags { display:flex; flex-wrap:wrap; gap:6px; }
.tags span { font-size:13px; line-height:1.5; padding:3px 7px; border-radius:5px; background:#f0f3f1; color:#67736a; }
.card-save { position:absolute; top:13px; right:8px; color:#819085; width:36px; height:36px; display:flex; align-items:center; justify-content:center; border-radius:7px; }
.card-save:hover { background:#e2ece6; color:var(--blue); }
.card-save svg { width:18px; height:18px; transition:fill 120ms,stroke 120ms; }
.card-save.saved { color:var(--blue); }
.card-save.saved svg { fill:#cfe8db; }
.duplicate-note { font-size:13px; color:#69736d; padding:8px 0 0; display:block; }
.pagination { flex-shrink:0; display:flex; justify-content:space-between; align-items:center; gap:6px; padding:10px 18px; border-top:1px solid var(--line); background:#fff; }
.pagination .button { font-size:14px; min-height:38px; padding:7px 9px; border-color:transparent; }
.pagination select { font-size:14px; max-width:136px; height:38px; border-color:transparent; background:#fff; padding:4px; }
.empty-state { padding:44px 22px; text-align:center; color:var(--muted); }
.empty-state>span { font-size:28px; }
.empty-state h3 { font-size:19px; color:#313e35; margin:14px 0; }
.empty-state p { font-size:15px; line-height:1.7; }
.empty-state .button { margin-top:10px; }
.job-reader { min-width:0; min-height:0; background:#fff; overflow:hidden; }
.reader-content { height:100%; min-height:0; display:flex; flex-direction:column; }
.reader-empty { display:flex; flex-direction:column; justify-content:center; align-items:center; height:100%; padding:30px; color:#7a857e; text-align:center; }
.reader-empty>span { font-size:32px; color:#698879; }
.reader-empty h2 { font-size:21px; font-weight:550; color:#434e46; }
.reader-empty p { font-size:15px; line-height:1.7; max-width:300px; }
.reader-topbar { flex-shrink:0; display:flex; justify-content:space-between; align-items:center; gap:10px; height:52px; min-height:52px; padding:0 28px; }
.reader-back { display:flex; align-items:center; gap:5px; color:#6b7970; font-size:14px; padding:8px 3px; min-height:40px; }
.reader-back svg { width:18px; height:18px; }
.detail-navigation { display:flex; align-items:center; gap:8px; font-size:14px; color:#7b877e; }
.detail-navigation .text-button { width:40px; height:40px; display:flex; align-items:center; justify-content:center; padding:4px; color:#57665c; border-radius:7px; }
.detail-navigation .text-button:hover { background:var(--surface); }
.reader-content .dialog-content { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:0; scrollbar-width:thin; }
.reader-identity { padding:18px 36px 20px; max-width:792px; margin:0 auto; }
.detail-company { display:flex; align-items:center; gap:8px; color:#68736b; font-size:14px; }
.detail-company strong { font-weight:400; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.reader-identity h2 { font-size:26px; line-height:1.45; letter-spacing:-.5px; margin:14px 0 12px; font-weight:650; }
.reader-identity h2:focus { outline:none; }
.detail-line { display:flex; align-items:baseline; gap:12px; flex-wrap:wrap; font-size:14px; line-height:1.7; color:#6c766f; }
.detail-salary { font-size:21px; font-weight:600; color:#287158; }
.detail-salary.undisclosed { font-size:14px; font-weight:400; color:#7b857e; }
.reader-tabs { position:sticky; top:0; z-index:2; display:flex; gap:26px; padding:0 max(36px,calc((100% - 720px)/2)); min-height:48px; border-bottom:1px solid var(--line); background:#fffffffa; overflow-x:auto; scrollbar-width:none; }
.reader-tabs button { padding:12px 0; min-height:48px; font-size:14px; color:#737c76; border-bottom:2px solid transparent; white-space:nowrap; }
.reader-tabs button.active { color:var(--blue); border-bottom-color:var(--blue); font-weight:600; }
.reader-body { padding:24px 36px 36px; max-width:792px; margin:0 auto; }
.reader-source-line { font-size:14px; line-height:1.6; color:#77827a; margin:8px 0 0; }
.overview-heading { display:flex; align-items:baseline; flex-wrap:wrap; gap:8px 14px; }
.reader-content .overview-heading h3 { margin:0; font-size:18px; }
.overview-heading>span { font-size:14px; color:#7b867f; }
.evidence-list { list-style:none; margin:12px 0 0; padding:0; }
.evidence-list li { border-bottom:1px solid #eef1ef; padding:10px 0; display:grid; grid-template-columns:minmax(0,1fr) 62px; gap:4px 14px; }
.evidence-list p { margin:0; font-size:17px; line-height:1.75; color:#35483d; }
.long-excerpt summary>span { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; font-size:17px; line-height:1.75; color:#35483d; }
.long-excerpt summary>small { color:var(--blue); font-size:14px; display:block; margin-top:5px; }
.long-excerpt[open] summary>span { display:none; }
.long-excerpt[open] summary>small { margin:0 0 8px; }
.evidence-context { grid-column:1; color:#7c704f; font-size:14px !important; }
.evidence-actions { display:contents; }
.evidence-actions span { font-size:14px; color:#7c704f; grid-column:1; }
.evidence-actions .text-button { color:#63736a; padding:4px 0; min-height:32px; grid-column:2; grid-row:1; align-self:start; }
.overview-more { color:#63736a; min-height:40px; padding:8px 0; }
.overview-bonus { margin:10px 0; font-size:14px; color:#69766e; }
.overview-bonus summary { min-height:40px; padding:8px 0; }
.work-heading { margin-top:24px; }
.reader-content .full-heading { border-top:1px solid var(--line); padding-top:28px; margin:28px 0 20px; }
.evidence-focus { background:#fff3c7; outline:2px solid #b99a4b; outline-offset:3px; border-radius:2px; }
.reader-content h3 { font-size:18px; font-weight:600; line-height:1.5; margin:30px 0 14px; color:#27392d; }
.reader-body>h3:first-child { margin-top:0; }
.reader-content .source-kicker { font-size:14px; font-weight:400; color:#7a877e; margin-bottom:18px; }
.reader-content .source-kicker small { color:#8a948d; }
.reader-content h3 small { font-size:13px; font-weight:400; color:#8a948d; margin-left:10px; }
.full-text { font-size:17px; line-height:1.85; color:#354139; white-space:pre-wrap; overflow-wrap:anywhere; margin:0 0 26px; }
.jd-source-heading { font-weight:650; color:#27392d; }
.requirements { font-size:17px; line-height:1.85; color:#354139; padding-left:22px; }
.requirements li { margin-bottom:10px; }
.reader-footer { flex-shrink:0; display:flex; align-items:center; gap:10px; padding:12px 28px; border-top:1px solid var(--line); background:#fff; }
.reader-footer .button { min-height:42px; }
.reader-footer .button:last-child { margin-left:auto; }
.reader-footer svg { width:18px; height:18px; }
.reader-footer [aria-pressed="true"] { color:var(--blue); background:var(--accent-bg); border-color:#d2e6da; }
.reader-footer [data-save][aria-pressed="true"] svg { fill:#cfe8db; }
.source-notice { font-size:14px; color:#7c623c; background:#faf6ef; border-radius:7px; padding:12px 14px; line-height:1.7; margin:0 0 20px; }
.source-box,.skill-evidence { border-top:1px solid var(--line); padding:18px 0; font-size:14px; line-height:1.8; color:#69736b; margin-top:24px; }
.source-box summary,.skill-evidence summary { cursor:pointer; font-size:14px; color:#516258; font-weight:500; }
.source-box p { margin:12px 0; }
.source-box small { font-size:14px; }
.source-box .detail-facts { margin:14px 0; }
.detail-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; font-size:14px; }
.detail-facts span { display:block; color:#859087; margin-bottom:4px; }
.detail-facts strong { font-weight:500; overflow-wrap:anywhere; }
.reader-compare-strip { display:none; }
body.is-reading .results,body.is-reading .workspace-toolbar,body.is-reading .site-header { display:none; }
body.is-reading main { padding:0; }
body.is-reading .results-layout { display:flex; }
body.is-reading .job-reader { display:block; flex:1; }
body.is-reading .reader-compare-strip { display:flex; align-items:center; gap:10px; padding:8px 16px; border-top:1px solid var(--line); background:var(--surface); flex-shrink:0; font-size:14px; color:#52645b; }
.reader-compare-strip span { margin-right:auto; }
.reader-compare-strip .button { min-height:36px; padding:6px 10px; }
body.is-reading .compare-bar { display:none; }
@keyframes enter-workspace { from { opacity:.92; transform:translateY(4px); } to { opacity:1; transform:translateY(0); } }
body.is-ready .shell { animation:enter-workspace 140ms ease-out; }
dialog {
  border:1px solid var(--line);
  border-radius:14px;
  padding:0;
  color:inherit;
  background:#fff;
  max-width:calc(100vw - 28px);
  max-height:90dvh;
  width:760px;
  box-shadow:0 15px 80px #17232e26;
}
dialog::backdrop {
  background:#171e2b50;
  backdrop-filter:blur(2px);
}
.dialog-head {
  position:sticky;
  top:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:17px 22px;
  border-bottom:1px solid var(--line);
  background:#fff;
  z-index:2;
}
.dialog-head h2 {
  font-size:18px;
  line-height:1.4;
  margin:0;
  font-weight:600;
}
.dialog-head h2 small {
  font-size:14px;
  font-weight:400;
  color:var(--muted);
  margin-left:8px;
}
.close-button {
  font-size:25px;
  line-height:1;
  width:32px;
  height:32px;
  border-radius:7px;
  color:#6c757c;
}
.close-button:hover {
  background:var(--surface);
}
.dialog-content {
  padding:24px;
}
.dialog-footer {
  position:sticky;
  bottom:0;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  padding:14px 22px;
  border-top:1px solid var(--line);
  background:#fff;
  z-index:2;
}
.filter-dialog {
  width:480px;
  max-height:90dvh;
}
.filter-dialog .dialog-content {
  padding:20px 24px;
}
.filter-fields,.filter-fields-secondary {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}
.filter-fields-secondary {
  grid-column:1/-1;
}
.filter-fields label {
  display:flex;
  flex-direction:column;
  gap:7px;
  font-size:14px;
  color:#5b646c;
  min-width:0;
}
.filter-fields>label:nth-child(3) {
  grid-column:1/-1;
}
select {
  font:inherit;
  min-width:0;
  border:1px solid #dce0e3;
  border-radius:7px;
  background:#fff;
  padding:9px 10px;
  font-size:14px;
  min-height:38px;
}
.filter-dialog .dialog-footer {
  justify-content:space-between;
}
.filter-dialog .dialog-footer .button {
  font-size:14px;
}
.method-content h3 {
  font-size:16px;
}
.method-content p {
  font-size:14px;
  line-height:1.9;
  color:#59646c;
}
.compare-dialog {
  width:1100px;
}
.close-button.compare-close { min-width:70px; flex-shrink:0; white-space:nowrap; display:flex; align-items:center; justify-content:center; gap:4px; width:auto; font-size:14px; padding:8px; }
.compare-close svg { width:17px; height:17px; }
.compare-note {
  font-size:14px;
  line-height:1.7;
  color:#637079;
  padding:0 22px;
  margin:15px 0;
}
.compare-controls { display:flex; align-items:center; justify-content:space-between; padding:0 22px; gap:10px; }
.compare-view-tabs { display:flex; gap:4px; }
.compare-view-tabs button { min-height:42px; font-size:14px; padding:8px 12px; border-radius:7px; }
.compare-view-tabs button[aria-pressed="true"] { color:var(--blue); background:var(--accent-bg); font-weight:600; }
.compare-controls [aria-pressed="true"][data-action] { background:var(--accent-bg); border-radius:6px; }
.common-condition td { color:#718078; }
.differences-only .common-condition { display:none; }
.comparison-condition { margin-bottom:12px; }
.comparison-condition summary { font-size:14px; color:#44574c; }
.comparison-condition>summary { display:block; list-style:none; }
.comparison-condition>summary::-webkit-details-marker { display:none; }
.comparison-condition .kind-label::before { content:'▸ '; }
.comparison-condition[open] .kind-label::before { content:'▾ '; }
.more-condition>summary { color:var(--blue); font-size:14px; }
.kind-label { display:block; font-size:14px; color:#867957; }
.condition-preview { font-size:17px; line-height:1.7; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; }
.comparison-condition[open] .condition-preview { font-size:17px; line-height:1.7; display:none; }
.comparison-condition blockquote { margin:8px 0; padding:8px 10px; border-left:2px solid #b9d0c4; background:#f8faf8; white-space:pre-wrap; font-size:17px; line-height:1.8; }
.comparison-condition small,.not-explicit { font-size:14px; color:#7b867f; }
.field-condition { font-size:17px; line-height:1.7; }
.comparison-warning { color:#8b6c38; font-size:14px; }
.more-comparison { margin:18px 0; }
.more-comparison>summary { padding:10px 0; font-size:14px; color:var(--blue); }
.table-scroll {
  overflow:auto;
  padding:0 22px 22px;
  max-height:calc(90dvh - 130px);
}
table {
  width:100%;
  min-width:680px;
  border-collapse:collapse;
  font-size:14px;
  line-height:1.8;
}
th,td {
  border:1px solid var(--line);
  vertical-align:top;
  text-align:left;
  padding:12px 14px;
  min-width:180px;
}
th {
  background:#f5f7f6;
  font-weight:550;
}
th small {
  display:block;
  font-size:14px;
  font-weight:400;
  color:#68746e;
}
th:first-child {
  min-width:100px;
  width:110px;
  position:sticky;
  left:0;
  z-index:1;
}
thead th {
  position:sticky;
  top:0;
  z-index:2;
}
thead th:first-child {
  z-index:3;
}
td .full-text {
  font-size:16px;
}
.compare-bar {
  flex-shrink:0; display:flex; align-items:center; justify-content:space-between;
  gap:16px; padding:10px 20px; border-top:1px solid var(--line);
  background:#f7faf8;
}
.compare-chips button { flex-shrink:0; }
.compare-chips { display:flex; gap:6px; max-width:100%; overflow-x:auto; scrollbar-width:thin; }
.compare-bar .text-button { white-space:nowrap; }
.compare-bar>div:last-child {
  display:flex;
  align-items:center;
  gap:10px;
  flex-shrink:0;
}
.compare-selection {
  min-width:0;
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
}
.compare-selection strong {
  font-size:14px;
  white-space:nowrap;
}
.compare-selection small {
  font-weight:400;
  color:#7c8680;
  margin-left:5px;
}
.compare-selection button {
  font-size:14px;
  max-width:110px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  padding:5px 7px;
  background:#f1f5f3;
  border-radius:5px;
}
#toast {
  position:fixed;
  z-index:40;
  left:50%;
  bottom:82px;
  transform:translateX(-50%);
  max-width:calc(100vw - 32px);
  background:#293b32;
  color:#fff;
  padding:11px 16px;
  border-radius:9px;
  box-shadow:0 3px 18px #263b3420;
  font-size:14px;
  line-height:1.6;
  pointer-events:none;
}
.initial-loading {
  position:absolute; top:40%; left:50%; transform:translateX(-50%);
  width:max-content; max-width:calc(100% - 48px); padding:14px 20px;
  background:#f2f5f3; border-radius:8px; font-size:15px; color:#405e4d;
  text-align:center; z-index:10;
}

.stats {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:15px;
  margin-bottom:22px;
  flex-shrink:0;
}
.stats article {
  border:1px solid var(--line);
  border-radius:10px;
  padding:18px;
}
.stats article span {
  font-size:14px;
  color:#66716b;
}
.stats article strong {
  display:block;
  font-size:27px;
  font-weight:600;
  margin:6px 0;
}
.stats article small {
  font-size:14px;
  line-height:1.5;
  color:#808a84;
  display:block;
}
.research-banner {
  padding:16px 18px;
  border:1px solid #dce8e0;
  border-radius:10px;
  background:#f5f9f6;
  display:flex;
  align-items:center;
  gap:16px;
  margin-bottom:22px;
  font-size:14px;
  line-height:1.7;
}
.research-banner strong {
  white-space:nowrap;
  font-weight:550;
}
.research-banner span {
  flex:1;
  color:#66726b;
}
.market-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}
.chart-card {
  border:1px solid var(--line);
  padding:22px;
  border-radius:12px;
  min-width:0;
}
.chart-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:22px;
}
.chart-heading h2 {
  font-size:16px;
  margin:0;
}
.chart-heading>span {
  font-size:14px;
  color:#7b837e;
}
.bar-chart {
  display:flex;
  flex-direction:column;
  gap:15px;
}
.bar-row {
  display:flex;
  align-items:center;
  gap:10px;
  font-size:14px;
}
.bar-row>span {
  width:72px;
  flex-shrink:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.bar-track {
  height:7px;
  flex:1;
  background:#edf1ef;
  border-radius:6px;
  overflow:hidden;
}
.bar-track>div {
  height:100%;
  background:#71a890;
  border-radius:6px;
}
.bar-row>strong {
  font-size:14px;
  font-weight:500;
  width:65px;
  text-align:right;
}
.bar-row small {
  font-size:14px;
  color:#88948b;
}
.chart-footnote {
  font-size:14px;
  line-height:1.7;
  color:#7b8880;
  margin:20px 0 0;
}
.direction-chart {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:25px;
  padding:10px 0;
}
.donut {
  width:156px;
  height:156px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:conic-gradient(#318763 var(--ratio),#b5d1c0 0);
  flex-shrink:0;
}
.donut>div {
  width:118px;
  height:118px;
  border-radius:50%;
  background:#fff;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}
.donut strong {
  font-size:26px;
  font-weight:600;
}
.donut span {
  font-size:14px;
  color:#7a877f;
}
.legend {
  font-size:14px;
  color:#6c7b71;
}
.legend p {
  display:flex;
  align-items:center;
  gap:8px;
}
.legend strong {
  margin-left:12px;
  color:#37483d;
}
.legend i {
  width:8px;
  height:8px;
  border-radius:50%;
  background:#318763;
}
.legend i.navy-dot {
  background:#b5d1c0;
}
.legend small {
  font-size:14px;
  line-height:1.8;
}
.evidence-summary {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  background:#f7f9f8;
  border-radius:12px;
  padding:24px;
  margin-top:20px;
}
.evidence-summary h2 {
  font-size:20px;
  margin:0 0 10px;
}
.evidence-summary p {
  font-size:14px;
  line-height:1.8;
  color:#6b7970;
  max-width:760px;
  margin:0;
}
.company-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
.company-card {
  border:1px solid var(--line);
  border-radius:12px;
  padding:20px;
  min-width:0;
}
.company-card-head {
  display:flex;
  gap:10px;
  align-items:flex-start;
}
.company-card-head .company-logo {
  width:35px;
  height:35px;
  font-size:16px;
}
.company-card h2 {
  font-size:16px;
  line-height:1.5;
  margin:0 0 5px;
}
.company-card-head span {
  font-size:14px;
  line-height:1.6;
  color:#79867d;
}
.company-full {
  font-size:14px;
  line-height:1.7;
  color:#79867d;
  overflow-wrap:anywhere;
}
.company-roles {
  border-top:1px solid var(--line);
  padding-top:8px;
  margin-bottom:15px;
}
.company-roles .title-button {
  display:block;
  font-size:14px;
  line-height:1.6;
  padding:8px 0;
  color:#344d3d;
}
.company-roles small {
  display:block;
  color:#7c8a81;
  font-size:14px;
}
.company-browse {
  margin-top:12px;
  font-size:14px;
}
.company-grid .empty-state {
  grid-column:1/-1;
}
.collection-panel {
  border:1px solid var(--line);
  border-radius:12px;
  padding:22px;
}
.collection-heading {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}
.collection-heading strong {
  font-size:17px;
  font-weight:600;
}
.collection-heading p {
  font-size:14px;
  line-height:1.8;
  color:#728076;
  margin:8px 0;
}
.collection-heading .button {
  font-size:14px;
}
#collection-progress {
  font-size:14px;
  color:#627268;
  line-height:1.8;
  padding:10px 0 16px;
}
#source-details>summary {
  font-size:14px;
  color:#3e6951;
  cursor:pointer;
}
#source-list {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin-top:18px;
}
.source-card {
  border:1px solid var(--line);
  border-radius:9px;
  padding:16px;
  min-width:0;
}
.source-card h3 {
  font-size:14px;
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin:0 0 10px;
}
.source-state {
  font-size:14px;
  font-weight:400;
  border-radius:4px;
  padding:3px 6px;
  background:#f2f4f3;
  color:#728378;
}
.source-state.complete {
  background:#e8f4eb;
  color:#487855;
}
.source-state.failed,.source-state.blocked {
  background:#fff0e7;
  color:#9c6b4b;
}
.source-card p,.source-card li {
  font-size:14px;
  line-height:1.8;
  color:#69796e;
}
.source-card ul {
  padding-left:17px;
}
.source-card .source-error {
  color:#996249;
}
#run-list h3,#change-list h3 {
  font-size:15px;
  margin-top:22px;
}
#run-list p,#change-list p {
  font-size:14px;
  color:#758377;
  line-height:1.8;
}
.filter-fields label,select { font-size:14px; }
.close-button { width:40px; height:40px; }
@media(min-width:1500px) {
  .results-layout { grid-template-columns:440px minmax(0,1fr); }
  .reader-tabs { padding-left:max(36px,calc((100% - 720px)/2)); }
}
@media(min-width:900px) and (max-width:1099px) {
  .workspace-toolbar { padding:12px 16px; gap:12px; grid-template-columns:minmax(200px,1fr) 360px; }
  .results-layout { grid-template-columns:350px minmax(0,1fr); }
  .reader-identity { padding:16px 24px 18px; }
  .reader-body { padding:22px 24px 32px; }
  .reader-tabs { padding:0 24px; gap:22px; }
  .reader-identity h2 { font-size:23px; }
  .reader-footer { padding:10px 16px; gap:7px; }
  .reader-footer .button { padding:9px 10px; }
  .list-heading { padding:0 14px; }
  .list-heading h2 { font-size:14px; min-width:0; overflow:hidden; text-overflow:ellipsis; }
}
@media(max-width:899px) {
  body { flex-direction:column; }
  .site-header { order:2; width:100%; padding:0 8px env(safe-area-inset-bottom); border-right:0; border-top:1px solid var(--line); background:#fff; }
  .brand,.site-header #method-button { display:none; }
  .site-header nav { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:0; }
  .nav-item { min-height:62px; border-radius:0; padding:8px 2px; gap:4px; font-size:14px; }
  .nav-item.active { background:transparent; color:var(--blue); }
  .nav-item.active svg { fill:#e3f0e9; }
  .shell { order:1; min-height:0; height:auto; flex:1; }
  main { padding:22px 20px 0; }
  .heading h1 { font-size:26px; }
  .workspace-toolbar { display:flex; flex-direction:column; align-items:stretch; padding:12px 16px 4px; gap:8px; border-bottom:0; }
  .searchbar { height:46px; }
  .searchbar input { font-size:16px; }
  .searchbar kbd { display:none; }
  .filters { min-height:42px; }
  .category-tabs button { min-height:40px; }
  .filter-trigger { min-height:40px; }
  .active-filters { margin:3px 0 6px; }
  .results-layout { grid-template-columns:1fr; }
  .results { border:0; }
  .list-heading { min-height:44px; padding:0 22px; }
  #job-list { padding:0 12px 8px; }
  .job-card { padding:10px 14px; }
  .filters { gap:5px; }
  .category-tabs { gap:0; }
  .category-tabs button { padding:8px 9px; }
  .city-trigger { min-width:62px; max-width:94px; padding:8px; }
  .filter-trigger { padding:8px 9px; gap:4px; }
  .filter-trigger svg { display:none; }
  .card-source { font-size:14px; }
  .compare-controls { padding:0 16px; }
  .card-save { width:44px; height:44px; top:10px; right:2px; }
  .job-heading h3 { padding-right:32px; }
  .job-reader { display:none; }
  .pagination { padding:6px 16px; }
  .reader-topbar { min-height:52px; height:52px; padding:0 16px; border-bottom:1px solid var(--line); }
  .reader-identity { padding:20px 22px 18px; }
  .reader-identity h2 { font-size:23px; margin:13px 0 12px; }
  .reader-tabs { padding:0 22px; gap:26px; }
  .reader-body { padding:22px 22px 32px; }
  .reader-footer { padding:10px 14px calc(10px + env(safe-area-inset-bottom)); gap:7px; }
  .reader-footer .button { padding:9px 11px; font-size:14px; }
  .reader-footer .button:last-child { margin-left:auto; }
  .reader-footer svg { width:17px; height:17px; }
  .detail-line { gap:10px; }
  .market-grid { grid-template-columns:1fr; }
  .company-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .stats { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .research-banner,.evidence-summary { flex-direction:column; align-items:flex-start; }
  .collection-heading { flex-wrap:wrap; }
  #source-list { grid-template-columns:1fr; }
  .filter-dialog { width:100vw; max-width:100vw; height:100dvh; max-height:100dvh; border:0; border-radius:0; margin:0; display:none; }
  .filter-dialog[open] { display:flex; flex-direction:column; }
  .filter-dialog .dialog-content { flex:1; min-height:0; overflow:auto; padding:24px 22px; }
  .filter-dialog .dialog-head,.filter-dialog .dialog-footer { flex-shrink:0; position:static; }
  .filter-fields { gap:20px 14px; }
  .filter-fields select { min-height:44px; }
  .compare-dialog { width:100vw; max-width:100vw; height:100dvh; max-height:100dvh; border-radius:0; margin:0; border:0; }
  .compare-dialog[open] { display:flex; flex-direction:column; }
  .compare-dialog .dialog-head { position:static; flex-shrink:0; }
  .compare-dialog .dialog-head h2 { font-size:18px; }
  .compare-note { flex-shrink:0; padding:0 18px; margin:12px 0; }
  .compare-dialog .table-scroll { flex:1; min-height:0; max-height:none; padding:0 12px 20px; }
  .compare-dialog table { display:block; min-width:0; width:100%; }
  .compare-dialog thead,.compare-dialog tbody { display:block; }
  .compare-dialog thead { position:sticky; top:0; z-index:2; }
  .compare-dialog tr { display:grid; grid-template-columns:repeat(var(--compare-columns),minmax(0,1fr)); }
  .compare-dialog th,.compare-dialog td { width:auto; min-width:0; position:static; padding:12px 10px; border-color:#edf0ed; }
  .compare-dialog thead th:first-child { display:none; }
  .compare-dialog thead th { font-size:14px; }
  .compare-company { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
  .compare-dialog thead th small { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; margin-top:5px; }
  .compare-dialog tbody th { grid-column:1/-1; font-size:14px; padding:7px 10px; }
  .compare-dialog td .tags { gap:4px; }
  .compare-dialog td .tags span { padding:2px 5px; }
  .compare-dialog td .full-text { font-size:17px; }
  .compare-dialog td h3 { font-size:16px; }
  .compare-dialog td h3 small { display:block; font-size:14px; }
  .compare-dialog td details { margin-top:8px; }
  .compare-dialog td details summary { color:var(--blue); font-size:14px; }
  .table-scroll { max-height:calc(100dvh - 150px); }
  .compare-bar { padding:9px 14px; gap:10px; }
  .compare-selection { flex-direction:column; align-items:flex-start; flex-wrap:nowrap; gap:4px; }
  .compare-selection button { max-width:110px; }
  .compare-bar .button { min-height:40px; padding:8px 10px; }
}
@media(max-width:520px) {
  .company-grid { grid-template-columns:1fr; }
  .company-card,.collection-panel,.chart-card { padding:18px; }
  .chart-heading { flex-wrap:wrap; gap:6px; }
  .stats article { padding:15px; }
  .stats article strong { font-size:24px; }
  .direction-chart { gap:18px; }
  .donut { width:140px; height:140px; }
  .donut>div { width:106px; height:106px; }
  .reader-footer .button { padding:9px 9px; gap:5px; }
  .reader-footer .button:last-child svg { display:none; }
  .compare-selection strong { width:100%; }
  .compare-selection button { max-width:80px; }
  .compare-bar>div:last-child { gap:6px; }
}
@media(max-width:359px) {
  .list-heading { padding:0 16px; }
  .list-heading h2 { font-size:14px; min-width:0; overflow:hidden; text-overflow:ellipsis; }
  .list-heading select { font-size:14px; width:98px; }
  .reader-footer .button { padding:9px 7px; font-size:14px; }
  .reader-footer .button svg { display:none; }
  .reader-compare-strip { flex-wrap:wrap; }
}
@media(prefers-reduced-motion:reduce) {
  * { transition:none!important; animation:none!important; scroll-behavior:auto!important; }
}
