.bench-body, .bench-embedded {
  color-scheme: light;
  --paper: #f6f5ef;
  --surface: #fffefa;
  --ink: #182b25;
  --muted: #4d6258;
  --line: #cdd8cc;
  --accent: #164a3b;
  --soft: #e3eee4;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
}
.bench-body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 Inter, system-ui, "Noto Sans CJK SC", sans-serif; overflow-wrap: anywhere; }
@scope (.bench-body, .bench-embedded) {
  *, *::before, *::after { box-sizing: border-box; }
  [hidden] { display: none !important; }
  h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
  a { color: var(--accent); text-underline-offset: .2em; }
  a:hover { text-decoration-thickness: 2px; }
  :focus-visible { outline: 2px solid #396c47; outline-offset: 4px; }
  .skip { position: absolute; z-index: 2; top: .5rem; left: .5rem; padding: .45rem; background: var(--surface); transform: translateY(-150%); }
  .skip:focus { transform: none; }
  .bench-wrap { width: min(calc(100% - 80px), 1280px); margin: auto; min-width: 0; }
  .masthead { background: var(--surface); border-bottom: 1px solid var(--line); }
  .masthead-inner { display: flex; align-items: center; gap: 25px; min-height: 68px; }
  .wordmark { text-decoration: none; color: var(--ink); font-size: 1.35rem; font-weight: 800; letter-spacing: -.045em; display: inline-flex; align-items: center; gap: 10px; }
  .wordmark span { width: 20px; height: 20px; display: inline-block; background: var(--accent); border-radius: 3px 9px 3px 9px; transform: rotate(-12deg); }
  .masthead nav { display: flex; flex: 1; justify-content: center; align-items: stretch; gap: 30px; }
  .masthead nav a { display: flex; align-items: center; padding: 22px 0 20px; border-bottom: 2px solid transparent; text-decoration: none; font-size: .88rem; color: var(--muted); line-height: 1.3; text-align: center; }
  .masthead nav a[aria-current] { border-color: var(--accent); color: var(--ink); font-weight: 700; }
  .language { font-size: .82rem; font-weight: 700; border: 1px solid var(--line); padding: 4px 10px; border-radius: 5px; text-decoration: none; white-space: nowrap; }
  main.bench-wrap { padding: 48px 0 72px; min-height: 72vh; }
  .hero { display: grid; gap: 12px; margin-bottom: 28px; align-items: start; }
  .eyebrow { font: 650 .78rem/1.4 var(--mono); color: var(--accent); }
  h1, .hero h1 { font-size: clamp(2rem, 5.5vw, 4.05rem); line-height: 1.12; font-weight: 800; letter-spacing: -.055em; }
  .lede { max-width: 70ch; color: var(--muted); font-size: 1.02rem; }
  .metadata, .note, .muted { color: var(--muted); font-size: .82rem; }
  .metadata a { font-weight: 600; }
  .chips { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
  .chip, .badge { display: inline-block; width: fit-content; max-width: 100%; background: var(--soft); color: var(--accent); font-size: .75rem; font-weight: 650; line-height: 1.45; padding: .2rem .5rem; border-radius: 4px; }
  .badge[data-tone="caution"], .badge.has_moat { background: #f5ead6; color: #624715; }
  .badge[data-tone="avoid"], .badge.avoid { background: #f4e3dc; color: #843a2c; }
  .filters { display: flex; flex-wrap: wrap; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
  .filters label { display: grid; align-content: center; gap: 4px; min-width: 0; max-width: 100%; color: var(--muted); font-size: .82rem; font-weight: 650; }
  .filters label:has(input[type="checkbox"]) { display: flex; align-items: center; align-self: end; min-height: 39px; padding-inline: 4px; gap: 7px; }
  .filters label:has(input[type="search"]) { flex: 1 1 190px; }
  input, button, select { font: inherit; }
  .filters input:not([type="checkbox"]), .filters select { max-width: 100%; min-width: 0; border: 1px solid var(--line); background: var(--paper); border-radius: 6px; padding: 6px 9px; min-height: 39px; color: var(--ink); font-size: .9rem; }
  .filters input[type="checkbox"] { accent-color: var(--accent); }
  .toolbar, .section-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 10px; margin: 15px 0 12px; }
  .section-head h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); line-height: 1.35; }
  .grid, .cards, [data-results] { display: grid; gap: 12px; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .card { min-width: 0; display: grid; align-content: start; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 17px; background: var(--surface); }
  .card h2, .card h3 { font-size: 1.11rem; line-height: 1.35; font-weight: 760; }
  .card h2 a, .card h3 a { text-decoration: none; }
  .card h2 a:hover, .card h3 a:hover { text-decoration: underline; }
  .card p { font-size: .88rem; }
  .card-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 6px 10px; }
  .stat-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit,minmax(min(110px,100%),1fr)); }
  .stat { display: grid; min-width: 0; gap: 2px; border-radius: 5px; background: var(--paper); padding: .45rem .55rem; }
  .stat small, .stat span, .stat dt { color: var(--muted); font-size: .73rem; }
  .stat b, .stat strong, .stat dd { margin: 0; font-size: .95rem; font-variant-numeric: tabular-nums; font-weight: 750; }
  .split { display: grid; gap: 18px; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
  .panel { min-width: 0; margin: 0 0 14px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
  .panel > * + * { margin-top: 10px; }
  button, .button { border: 1px solid var(--accent); background: var(--accent); color: white; border-radius: 6px; padding: .45rem .8rem; font-size: .88rem; font-weight: 650; cursor: pointer; text-decoration: none; display: inline-block; }
  .button.secondary { color: var(--accent); background: var(--surface); }
  .table-wrap { width: 100%; }
  .data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: .87rem; }
  .data-table :is(td,th) { text-align: start; padding: .55rem .4rem; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
  .data-table th { color: var(--muted); font-size: .77rem; }
  pre { max-width: 100%; padding: .8rem; background: var(--paper); border-radius: 6px; white-space: pre-wrap; overflow-wrap: anywhere; font: .83rem/1.6 var(--mono); }
  img { max-width: 100%; height: auto; }
  .empty { color: var(--muted); padding: 26px 0; }
  .site-footer { border-top: 1px solid var(--line); padding: 20px 0; color: var(--muted); }
  .site-footer .bench-wrap { display: flex; gap: 16px; font-size: .82rem; flex-wrap: wrap; }
  @media (max-width: 900px) {
    .grid,.cards,[data-results] { grid-template-columns: repeat(2,minmax(0,1fr)); }
  }
  @media (max-width: 600px) {
    .bench-wrap { width: calc(100% - 32px); }
    main.bench-wrap { padding: 27px 0 44px; }
    .masthead-inner { display: grid; grid-template: auto auto / 1fr auto; gap: 0 10px; padding-top: 10px; }
    .masthead nav { grid-row: 2; grid-column: 1/-1; justify-content: space-between; gap: 8px; }
    .masthead nav a { font-size: .74rem; padding: 10px 0 8px; }
    .language { grid-row: 1; grid-column: 2; }
    .hero { margin-bottom: 19px; gap: 10px; }
    .grid,.cards,[data-results],.split { grid-template-columns: minmax(0,1fr); }
    .filters { gap: 7px 10px; padding: 10px; }
    .filters label:not(:has([type="checkbox"])) { flex: 1 1 110px; }
    .filters label:has([type="search"]) { flex-basis: 100%; }
    .card { padding: 14px; }
  }
  .ext-explanation { margin: 0 0 13px; }
  .ext-charts { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(220px,100%),1fr)); gap: 12px; }
  .ext-chart { padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
  .ext-chart figcaption { font-size: .82rem; font-weight: 650; }
  .ext-plot-box { width: min(100%,160px); container-type: inline-size; }
  .ext-plot { position: relative; aspect-ratio: 1; margin-block: 5px; background: var(--paper); }
  .ext-plot i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); transform: translate(-50%,-50%); }
  .ext-plot .ext-segment { height: 2px; border-radius: 0; opacity: .65; transform-origin: left center; }
  .flow-gallery { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(145px,100%),1fr)); gap: 12px; }
  .flow-gallery img { display: block; width: 100%; height: auto; border-radius: 6px; }
  .flow-copy pre { max-height: 26rem; overflow: auto; }
  .bench-embedded > section + section { margin-top: 26px; }
}
.bench-embedded > section + section { margin-top: 26px; }
