:root {
  --canvas: #f6f8fa;
  --surface: #ffffff;
  --surface-soft: #f6f8fa;
  --ink: #1f2328;
  --ink-soft: #424a53;
  --muted: #656d76;
  --line: #d8dee4;
  --line-strong: #c7cdd4;
  --green: #1a7f37;
  --link: #0969da;
  --green-soft: #dafbe1;
  --blue: #0969da;
  --blue-soft: #ddf4ff;
  --amber: #9a6700;
  --amber-soft: #fff8c5;
  --shadow: 0 1px 2px rgba(31, 35, 40, .04), 0 10px 28px rgba(31, 35, 40, .055);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font: 15px/1.6 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  height: 68px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(16px);
  position: relative;
  z-index: 10;
}
.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-weight: 720;
  letter-spacing: -.02em;
  text-decoration: none;
}
.site-nav { display: flex; align-items: center; }
.site-nav { gap: 5px; }
.site-nav a { padding: 6px 10px; border-radius: 7px; color: var(--muted); font-size: 12px; font-weight: 650; text-decoration: none; }
.site-nav a:hover { color: var(--ink); background: var(--surface-soft); }
.site-nav a.is-current { color: var(--ink); background: #edf0ed; }
.page-shell, .detail-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}
.hero {
  min-height: 230px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  padding: 56px 0 42px;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.hero h1, .detail-hero h1 {
  margin: 0;
  max-width: 840px;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -.055em;
}
.hero h1, .detail-hero h1, .help-hero h1, .catalog-heading h2,
.advisory-card h3, .help-content h2 {
  font-family: Georgia, Cambria, "Times New Roman", Times, serif;
  font-weight: 600;
}
.hero-copy {
  max-width: 650px;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
}
.hero-action-wrap { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.refresh-button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(15, 28, 21, .06);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.refresh-button:hover { border-color: #aeb9b1; background: var(--surface-soft); }
.refresh-button:focus-visible { outline: 3px solid rgba(49, 94, 155, .25); outline-offset: 2px; }
.refresh-feedback { color: var(--muted); font-size: 11px; }
.hero-total {
  flex: 0 0 auto;
  min-width: 170px;
  padding-left: 26px;
  border-left: 1px solid var(--line-strong);
}
.hero-total strong { display: block; font-size: 42px; line-height: 1; letter-spacing: -.04em; }
.hero-total span { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; }

.clear-button:focus-visible, .empty-state button:focus-visible { outline: 3px solid rgba(49, 94, 155, .25); outline-offset: -3px; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }
.dot-published { background: #1a7f37; }
.dot-submitted { background: #0969da; }
.dot-draft { background: #656d76; }
.dot-closed, .dot-closed-draft { background: #8c959f; }
.dot-closed-ghsa { background: #8250df; }

.catalog { padding: 30px 0 100px; }
.catalog-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 25px; }
.catalog-heading .eyebrow { margin-bottom: 5px; }
.catalog-heading h2 { margin: 0; font-size: 28px; letter-spacing: -.035em; }
.result-count { margin: 0; color: var(--muted); font-size: 13px; }
.result-count strong { color: var(--ink); font-variant-numeric: tabular-nums; }

.status-switch {
  --slider-x: 4px;
  --slider-width: 0px;
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 14px;
  padding: 4px;
  display: flex;
  overflow-x: auto;
  border: 0;
  border-radius: 8px;
  background: #f2f2f4;
  scrollbar-width: none;
}
.status-switch::-webkit-scrollbar { display: none; }
.status-slider {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: var(--slider-width);
  transform: translateX(var(--slider-x));
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(12, 12, 12, .14);
  transition: transform .2s ease-out, width .2s ease-out;
}
.status-switch button {
  position: relative;
  z-index: 1;
  height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 0;
  border-radius: 4px;
  color: #5a5b64;
  background: transparent;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.status-switch .dot { display: none; }
.status-switch button > span:last-child { min-width: 22px; padding: 1px 6px; border-radius: 999px; color: #5a5b64; background: #e4e4e7; font-size: 10px; line-height: 20px; font-variant-numeric: tabular-nums; }
.status-switch button.is-active { color: #0c0c0c; }
.status-switch button.is-active > span:last-child { color: #0969da; background: #ddf4ff; }
.status-switch button:focus-visible { outline: 2px solid rgba(49, 94, 155, .35); outline-offset: -2px; }

.filters { display: grid; grid-template-columns: minmax(250px, 1fr) 220px 145px auto; gap: 10px; margin-bottom: 16px; }
.search-field, .custom-select-trigger {
  height: 48px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--surface);
  transition: border-color .16s, box-shadow .16s;
}
.search-field:focus-within, .custom-select.is-open .custom-select-trigger { border-color: #6f8f7c; box-shadow: 0 0 0 3px rgba(22, 106, 69, .09); }
.search-field { position: relative; padding: 0 12px 0 16px; }
.search-icon { width: 14px; height: 14px; margin-right: 11px; border: 1.8px solid var(--muted); border-radius: 50%; position: relative; }
.search-icon::after { content: ""; position: absolute; width: 6px; height: 1.8px; right: -5px; bottom: -2px; background: var(--muted); transform: rotate(45deg); border-radius: 2px; }
.search-field input { width: 100%; height: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; }
.search-field input::placeholder { color: #929a95; }
kbd { padding: 2px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; color: var(--muted); background: var(--surface-soft); font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; }
.custom-select { position: relative; min-width: 0; }
.custom-select-trigger { width: 100%; padding: 0 14px; justify-content: space-between; color: var(--ink-soft); text-align: left; }
.custom-select-trigger > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select-chevron { width: 7px; height: 7px; flex: 0 0 auto; margin: 0 2px 4px 12px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); transition: transform .15s ease; }
.custom-select.is-open .select-chevron { margin-top: 5px; transform: rotate(225deg); }
.custom-select-menu { position: absolute; z-index: 30; top: calc(100% + 6px); right: 0; width: max(100%, 250px); max-height: 280px; padding: 6px; overflow-y: auto; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); box-shadow: 0 8px 24px rgba(31, 35, 40, .14); }
#severity-filter .custom-select-menu { width: 165px; }
.custom-select-menu button { width: 100%; min-height: 34px; display: flex; align-items: center; padding: 6px 10px 6px 30px; position: relative; border: 0; border-radius: 6px; color: var(--ink-soft); background: transparent; font-size: 12px; text-align: left; overflow-wrap: anywhere; }
.custom-select-menu button[hidden] { display: none; }
.custom-select-menu button:hover, .custom-select-menu button:focus-visible { outline: 0; color: var(--ink); background: var(--surface-soft); }
.custom-select-menu button[aria-selected="true"] { color: var(--ink); font-weight: 650; }
.custom-select-menu button[aria-selected="true"]::before { content: "✓"; position: absolute; left: 10px; color: var(--green); font-weight: 750; }
#severity-filter .custom-select-menu .severity { font-size: 10px; }
.clear-button { padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 11px; color: var(--ink-soft); background: transparent; font-size: 13px; font-weight: 650; }

.advisory-list { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.advisory-card {
  position: relative;
  min-height: 68px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 20px;
  align-items: center;
  gap: 14px;
  padding: 9px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  box-shadow: 0 1px 1px rgba(15, 28, 21, .02);
  transition: background .16s ease;
}
.advisory-card:last-child { border-bottom: 0; }
.advisory-card:hover { background: var(--surface-soft); }
.advisory-card:focus-within { outline: 3px solid rgba(49, 94, 155, .18); }
.card-link { position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.status-pill { width: fit-content; display: inline-flex; align-items: center; gap: 7px; padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 720; letter-spacing: .015em; }
.patch-presence { width: fit-content; display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border: 1px solid transparent; border-radius: 999px; font-size: 10px; font-weight: 720; letter-spacing: .015em; white-space: nowrap; }
.patch-presence-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 2px rgba(255, 255, 255, .72); }
.patch-presence-patched { color: #116329; background: #dafbe1; }
.patch-presence-unpatched { color: #656d76; border-color: #d8dee4; background: #f6f8fa; }
.severity { display: inline-flex; align-items: center; width: fit-content; padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); background: var(--surface-soft); font-size: 10px; font-weight: 750; letter-spacing: .025em; white-space: nowrap; }
.severity-critical { color: #c0122b; border-color: transparent; background: #fbecee; }
.severity-high { color: #bc3f00; border-color: transparent; background: #fbeee5; }
.severity-medium { color: #8a6500; border-color: transparent; background: #fff8c5; }
.severity-low { color: #5a5b64; border-color: transparent; background: #f2f2f4; }
.severity-none, .severity-unscored { color: var(--muted); }
.status-published { color: #116329; background: #dafbe1; }
.status-submitted { color: var(--blue); background: var(--blue-soft); }
.status-draft { color: #424a53; background: #eaeef2; }
.status-closed, .status-closed-draft { color: #656d76; background: #f0f2f4; }
.status-closed-ghsa { color: #6639ba; background: #f2eafe; box-shadow: inset 0 0 0 1px #d8c7f7; }
.ghsa-id { color: var(--muted); font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; }
.advisory-card h3 { margin: 0; max-width: 850px; font-family: inherit; font-size: 14px; font-weight: 650; line-height: 1.25; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.advisory-card h3 code, .detail-hero h1 code { padding: .06em .22em; border-radius: 4px; color: #8d3328; background: #f0e8e5; font: .8em ui-monospace, SFMono-Regular, Menlo, monospace; }
.advisory-card h3 a, .detail-hero h1 a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 5px 17px; margin-top: 4px; color: var(--muted); font-size: 10px; }
.card-meta > * { position: relative; }
.card-meta > * + *::before { content: ""; position: absolute; width: 3px; height: 3px; left: -10px; top: .7em; border-radius: 50%; background: #b8c0bb; }
.repo-name { color: var(--ink-soft); font-weight: 650; }
.inline-link { position: relative; z-index: 2; text-decoration: none; }
.inline-link:hover { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.tag { display: inline-flex; align-items: center; min-height: 25px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink-soft); background: var(--surface-soft); font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; }
.tag, .facts dd .tag { text-decoration: none; }
.card-arrow { color: #8c9690; font-size: 20px; transition: transform .18s ease; }
.card-severity { justify-self: end; min-width: 64px; justify-content: center; }
.card-badges { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.advisory-card:hover .card-arrow { transform: translateX(3px); color: var(--green); }
.empty-state { padding: 70px 24px; border: 1px dashed var(--line-strong); border-radius: var(--radius); text-align: center; background: rgba(255,255,255,.5); }
.empty-state h3 { margin: 12px 0 4px; font-size: 18px; }
.empty-state p { margin: 0; color: var(--muted); }
.empty-state button { margin-top: 18px; padding: 9px 14px; border: 0; border-radius: 8px; color: white; background: var(--ink); font-weight: 650; }
.empty-mark { width: 42px; height: 42px; display: grid; place-items: center; margin: 0 auto; border-radius: 50%; color: var(--muted); background: #e9ece9; font-weight: 750; }

.detail-shell { padding: 42px 0 110px; }
.back-link { display: inline-flex; align-items: center; gap: 9px; color: var(--ink-soft); text-decoration: none; font-size: 13px; font-weight: 650; }
.back-link:hover { color: var(--green); }
.detail-hero { padding: 48px 0 30px; }
.detail-status { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; }
.detail-title-row { display: flex; align-items: flex-start; gap: 18px; }
.detail-hero h1 { flex: 1; max-width: 980px; font-family: inherit; font-size: clamp(28px, 3.5vw, 40px); font-weight: 500; line-height: 1.14; letter-spacing: -.03em; overflow-wrap: break-word; }
.detail-repo { margin: 13px 0 0; color: var(--muted); font-size: 13px; }
.detail-repo a { color: var(--link); font-weight: 650; text-decoration: none; }
.detail-repo a:hover { text-decoration: underline; text-underline-offset: 3px; }
.original-link { color: var(--link); text-decoration: none; }
.original-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 24px; align-items: start; }
.advisory-main { min-width: 0; }
.report-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.report-panel > h2 { margin: 0; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.report { min-width: 0; padding: 26px 30px 30px; }
.facts { position: sticky; top: 28px; }
.codex-discuss-button, .codex-submit-button, .codex-fix-button { display: flex; align-items: center; justify-content: center; gap: 12px; min-width: 160px; padding: 9px 13px; border: 1px solid #2f81f7; border-radius: 6px; color: #fff; background: #0969da; font: inherit; font-size: 12px; font-weight: 700; text-align: left; text-decoration: none; }
.codex-submit-button:hover, .codex-fix-button:hover { background: #0860ca; }
.codex-discuss-button:focus-visible, .codex-submit-button:focus-visible, .codex-fix-button:focus-visible { outline: 3px solid rgba(49, 94, 155, .25); outline-offset: 2px; }
.codex-discuss-button { min-width: 120px; border-color: var(--line-strong); color: var(--ink-soft); background: var(--surface); }
.codex-discuss-button:hover { border-color: #8c959f; color: var(--ink); background: var(--surface-soft); }
.codex-fix-button { min-width: 0; min-height: 36px; gap: 8px; padding: 7px 12px 7px 14px; border-color: rgba(27, 31, 36, .15); border-radius: 7px; background: linear-gradient(#2da44e, #2c974b); box-shadow: 0 1px 0 rgba(27, 31, 36, .1), inset 0 1px 0 rgba(255, 255, 255, .16); font-size: 12px; letter-spacing: .005em; transition: background-color 120ms ease, box-shadow 120ms ease, transform 120ms ease; }
.codex-fix-button:hover { background: #2c974b; box-shadow: 0 1px 0 rgba(27, 31, 36, .12), 0 3px 8px rgba(27, 31, 36, .12); }
.codex-fix-button:active { background: #298e46; box-shadow: inset 0 1px 0 rgba(27, 31, 36, .12); transform: translateY(1px); }
.codex-fix-button:focus-visible { outline-color: rgba(46, 164, 79, .32); }
.codex-fix-button .button-arrow { color: rgba(255, 255, 255, .76); font-size: 11px; font-weight: 600; transition: transform 120ms ease; }
.codex-fix-button:hover .button-arrow { transform: translate(1px, -1px); }
.patch-pr-link { min-height: 37px; display: inline-flex; align-items: center; gap: 9px; padding: 7px 11px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--ink); background: var(--surface); font-size: 12px; font-weight: 700; text-decoration: none; }
.patch-pr-link:hover { border-color: #8c959f; background: var(--surface-soft); }
.patch-state { padding: 2px 7px; border-radius: 999px; font-size: 9px; letter-spacing: .02em; }
.patch-state-open, .patch-state-merged { color: #116329; background: #dafbe1; }
.patch-state-draft { color: #0969da; background: #ddf4ff; }
.patch-state-closed { color: #656d76; background: #eaeef2; }
.close-draft-button { min-width: 120px; padding: 9px 13px; border: 1px solid #cf222e; border-radius: 6px; color: #cf222e; background: var(--surface); font-size: 12px; font-weight: 700; }
.close-draft-button:hover { color: #fff; background: #cf222e; }
.close-draft-button:disabled { cursor: wait; opacity: .72; }
.facts dl { margin: 0; }
.facts dl > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dl > div:first-child { padding-top: 0; }
.facts dt { margin-bottom: 4px; color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
.facts dd { display: grid; gap: 8px; margin: 0; color: var(--ink-soft); font-size: 12px; overflow-wrap: break-word; }
.facts dd a { color: var(--link); text-underline-offset: 3px; }
.facts dd.fact-tags { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 5px; }
.severity-summary { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.severity-name { font-size: 16px; }
.severity-name-critical { color: #cf222e; }
.severity-name-high { color: #bc4c00; }
.severity-name-medium { color: #9a6700; }
.severity-name-low, .severity-name-none, .severity-name-unscored { color: #57606a; }
.severity-score { display: inline-flex; align-items: baseline; gap: 3px; color: var(--muted); white-space: nowrap; }
.severity-score strong { color: var(--ink); font-size: 22px; line-height: 1; }
.severity-score span { font-size: 10px; }
.cvss-metrics { display: grid; gap: 5px; padding-top: 10px; border-top: 1px solid var(--line); }
.cvss-metrics strong { color: var(--ink-soft); font-size: 11px; }
.cvss-metrics code { color: var(--muted); font: 9px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.status-text { font-weight: 700; }
.status-text-published { color: var(--green); }
.status-text-submitted { color: var(--blue); }
.status-text-draft { color: var(--amber); }
.status-text-closed { color: var(--muted); }
.affected-panel { margin-bottom: 16px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface); }
.affected-head, .affected-row { display: grid; grid-template-columns: minmax(180px, 1.6fr) minmax(130px, .8fr) minmax(130px, .8fr); gap: 18px; }
.affected-head { padding: 12px 16px 5px; color: var(--muted); font-size: 10px; font-weight: 650; }
.affected-row { align-items: center; padding: 6px 16px 14px; }
.affected-row + .affected-row { border-top: 1px solid var(--line); }
.package-identity { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px; }
.package-identity strong { font: 600 14px ui-monospace, SFMono-Regular, Menlo, monospace; }
.ecosystem { padding: 2px 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface-soft); font-size: 10px; font-weight: 750; text-transform: uppercase; }
.version-value { color: var(--ink); font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: break-word; }
.mobile-label { display: none; }
.draft-action-controls { display: flex; align-items: flex-start; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.action-with-feedback { display: grid; gap: 5px; }
.action-feedback { max-width: 190px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.action-feedback:empty { display: none; }
.action-feedback a { color: var(--link); }

.markdown-body { color: #2b3530; font-size: 16px; line-height: 1.78; }
.markdown-body > :first-child { margin-top: 0; }
.markdown-body > h1:first-child { display: none; }
.markdown-body h2, .markdown-body h3, .markdown-body h4 { color: var(--ink); line-height: 1.3; letter-spacing: -.025em; scroll-margin-top: 24px; }
.markdown-body h2 { margin: 46px 0 15px; padding-top: 6px; font-size: 26px; }
.markdown-body h3 { margin: 34px 0 12px; font-size: 20px; }
.markdown-body h4 { margin: 28px 0 10px; font-size: 17px; }
.markdown-body p { margin: 0 0 18px; }
.markdown-body a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.markdown-body strong { color: var(--ink); }
.markdown-body ul, .markdown-body ol { margin: 0 0 20px; padding-left: 26px; }
.markdown-body li + li { margin-top: 7px; }
.markdown-body blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 3px solid #7aa78c; color: var(--ink-soft); }
.markdown-body code { padding: .2em .4em; border: 0; border-radius: 6px; color: inherit; background: rgba(175, 184, 193, .2); font: .85em ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: break-word; }
.markdown-body pre { margin: 24px 0; padding: 16px; overflow-x: auto; border: 1px solid #d0d7de; border-radius: 6px; color: #1f2328; background: #f6f8fa; box-shadow: none; }
.markdown-body pre code { padding: 0; border: 0; color: inherit; background: transparent; font-size: 13px; line-height: 1.55; }
.markdown-body .highlight .c, .markdown-body .highlight .ch, .markdown-body .highlight .cm, .markdown-body .highlight .cp, .markdown-body .highlight .cpf, .markdown-body .highlight .c1, .markdown-body .highlight .cs { color: #6e7781; font-style: italic; }
.markdown-body .highlight .k, .markdown-body .highlight .kc, .markdown-body .highlight .kd, .markdown-body .highlight .kn, .markdown-body .highlight .kp, .markdown-body .highlight .kr, .markdown-body .highlight .kt { color: #cf222e; }
.markdown-body .highlight .s, .markdown-body .highlight .sa, .markdown-body .highlight .sb, .markdown-body .highlight .sc, .markdown-body .highlight .dl, .markdown-body .highlight .sd, .markdown-body .highlight .s1, .markdown-body .highlight .s2, .markdown-body .highlight .se, .markdown-body .highlight .sh, .markdown-body .highlight .si, .markdown-body .highlight .sx, .markdown-body .highlight .sr, .markdown-body .highlight .ss { color: #0a3069; }
.markdown-body .highlight .m, .markdown-body .highlight .mb, .markdown-body .highlight .mf, .markdown-body .highlight .mh, .markdown-body .highlight .mi, .markdown-body .highlight .mo, .markdown-body .highlight .il { color: #0550ae; }
.markdown-body .highlight .nf, .markdown-body .highlight .fm, .markdown-body .highlight .nc, .markdown-body .highlight .ne, .markdown-body .highlight .nn { color: #8250df; }
.markdown-body .highlight .nb, .markdown-body .highlight .bp, .markdown-body .highlight .no { color: #953800; }
.markdown-body .highlight .nt { color: #116329; }
.markdown-body .highlight .na, .markdown-body .highlight .nv, .markdown-body .highlight .vc, .markdown-body .highlight .vg, .markdown-body .highlight .vi, .markdown-body .highlight .vm { color: #0550ae; }
.markdown-body .highlight .o, .markdown-body .highlight .ow { color: #0550ae; }
.markdown-body .highlight .gd { color: #82071e; background: #ffebe9; }
.markdown-body .highlight .gi { color: #116329; background: #dafbe1; }
.markdown-body table { width: 100%; margin: 24px 0; border-collapse: collapse; font-size: 14px; }
.markdown-body th, .markdown-body td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.markdown-body th { color: var(--ink); background: var(--surface-soft); }
.markdown-body hr { margin: 36px 0; border: 0; border-top: 1px solid var(--line); }

.site-footer {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 25px 0 38px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.help-shell { width: min(1080px, calc(100% - 48px)); margin: 0 auto; padding-bottom: 110px; }
.help-hero { padding: 86px 0 70px; border-bottom: 1px solid var(--line-strong); }
.help-hero h1 { margin: 0; font-size: clamp(42px, 6vw, 68px); line-height: 1.02; letter-spacing: -.055em; }
.help-hero > p:last-child { max-width: 680px; margin: 22px 0 0; color: var(--ink-soft); font-size: 17px; }
.help-layout { display: grid; grid-template-columns: 180px minmax(0, 720px); gap: 90px; align-items: start; padding-top: 64px; }
.help-toc { position: sticky; top: 30px; display: grid; gap: 5px; }
.help-toc span { margin-bottom: 8px; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.help-toc a { padding: 5px 0; color: var(--ink-soft); font-size: 12px; font-weight: 600; text-decoration: none; }
.help-toc a:hover { color: var(--green); }
.help-content section { scroll-margin-top: 30px; padding: 0 0 60px; }
.help-content section + section { padding-top: 54px; border-top: 1px solid var(--line); }
.help-content h2 { margin: 0 0 14px; font-size: 28px; letter-spacing: -.035em; }
.help-content p { margin: 0 0 18px; color: var(--ink-soft); font-size: 15px; }
.help-content code { padding: 2px 5px; border-radius: 4px; color: #8f3c2e; background: #e9ece9; font: .88em ui-monospace, SFMono-Regular, Menlo, monospace; }
.help-content pre { margin: 22px 0; padding: 16px; overflow-x: auto; border: 1px solid #d0d7de; border-radius: 6px; color: #1f2328; background: #f6f8fa; }
.help-content pre code { padding: 0; color: inherit; background: transparent; font-size: 13px; line-height: 1.7; }
.step-number { margin-bottom: 8px !important; color: var(--green) !important; font: 11px ui-monospace, SFMono-Regular, Menlo, monospace !important; }
.glossary { display: grid; gap: 10px; }
.glossary > div { display: grid; grid-template-columns: 110px 1fr; gap: 18px; align-items: start; padding: 17px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.glossary p { margin: 1px 0 0; font-size: 13px; }
.state-table { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.state-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1fr); }
.state-row + .state-row { border-top: 1px solid var(--line); }
.state-row > span { padding: 14px 16px; color: var(--ink-soft); font-size: 13px; }
.state-row > span + span { border-left: 1px solid var(--line); }
.state-head { background: var(--surface-soft); }
.state-head > span { color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }

@media (max-width: 860px) {
  .hero { align-items: flex-start; flex-direction: column; gap: 30px; }
  .hero-total { padding-left: 0; border-left: 0; }
  .filters { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
  .detail-grid { grid-template-columns: 1fr; gap: 45px; }
  .facts { position: static; grid-row: 1; }
  .help-layout { grid-template-columns: 1fr; gap: 40px; }
  .help-toc { position: static; display: flex; flex-wrap: wrap; gap: 5px 14px; }
  .help-toc span { width: 100%; }
}

@media (max-width: 620px) {
  .site-header { height: 60px; padding: 0 18px; }
  .brand { font-size: 13px; }
  .page-shell, .detail-shell, .site-footer { width: min(100% - 32px, 1180px); }
  .hero { min-height: 0; padding: 52px 0 38px; }
  .hero h1 { font-size: 44px; }
  .hero-copy { font-size: 15px; }
  .hero-action-wrap { align-items: flex-start; flex-direction: column; gap: 7px; }
  .catalog { padding: 56px 0 76px; }
  .catalog-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .filters { grid-template-columns: 1fr; }
  .search-field { grid-column: auto; }
  kbd { display: none; }
  .status-switch { width: 100%; }
  .advisory-card { min-height: 0; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 12px; }
  .card-badges { grid-column: 2; grid-row: 1; align-items: flex-end; flex-direction: column; }
  .card-arrow { display: none; }
  .advisory-card h3 { font-size: 15px; }
  .detail-shell { padding-top: 30px; }
  .detail-hero { padding: 48px 0 38px; }
  .detail-hero h1 { font-size: 36px; }
  .detail-grid { padding-top: 0; }
  .affected-head { display: none; }
  .affected-row { grid-template-columns: 1fr; gap: 10px; padding: 14px; }
  .mobile-label { display: block; margin-bottom: 2px; color: var(--muted); font: 10px/1.4 Inter, ui-sans-serif, sans-serif; font-weight: 650; }
  .report { padding: 20px 18px; }
  .draft-action-controls { justify-content: flex-start; }
  .markdown-body { font-size: 15px; }
  .markdown-body h2 { font-size: 23px; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 4px; }
  .help-shell { width: min(100% - 32px, 1080px); }
  .help-hero { padding: 56px 0 46px; }
  .help-hero h1 { font-size: 42px; }
  .help-layout { padding-top: 42px; }
  .glossary > div { grid-template-columns: 1fr; gap: 10px; }
  .state-row { grid-template-columns: 1fr; padding: 14px 16px; }
  .state-row > span { padding: 4px 0; }
  .state-row > span + span { border-left: 0; }
  .state-head { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
