/* Algorithms in history — standalone page styles. */
:root {
  --bg: #f7f5f0; --surface: #ffffff; --surface-2: #f0ede6; --fg: #1d1c1a; --muted: #6b675f;
  --rule: #e2ddd3; --accent: #3b5bdb; --accent-soft: #e7ecff; --shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.04);
  --d-war: #c2410c; --d-state: #7c3aed; --d-trade: #0f766e; --d-telecom: #2563eb; --d-science: #65a30d;
  --d-health: #db2777; --d-computing: #475569; --d-net: #0891b2; --d-curiosity: #ca8a04;
  --heat: 59, 91, 219;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Songti SC", "Noto Serif SC", serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141412; --surface: #1d1c1a; --surface-2: #26241f; --fg: #ece8df; --muted: #a39d91;
    --rule: #36332d; --accent: #8ea4ff; --accent-soft: #252c4a; --shadow: none;
    --d-war: #fb923c; --d-state: #a78bfa; --d-trade: #2dd4bf; --d-telecom: #60a5fa; --d-science: #a3e635;
    --d-health: #f472b6; --d-computing: #94a3b8; --d-net: #22d3ee; --d-curiosity: #facc15;
    --heat: 142, 164, 255; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141412; --surface: #1d1c1a; --surface-2: #26241f; --fg: #ece8df; --muted: #a39d91;
  --rule: #36332d; --accent: #8ea4ff; --accent-soft: #252c4a; --shadow: none;
  --d-war: #fb923c; --d-state: #a78bfa; --d-trade: #2dd4bf; --d-telecom: #60a5fa; --d-science: #a3e635;
  --d-health: #f472b6; --d-computing: #94a3b8; --d-net: #22d3ee; --d-curiosity: #facc15;
  --heat: 142, 164, 255; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.6 var(--sans); }
a { color: var(--accent); }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Language switching: .en / .zh pairs everywhere. In "both" mode, short labels sit
   side by side with a separator; running text stacks with the Chinese underneath. */
html[data-lang="en"] .zh, html[data-lang="zh"] .en { display: none !important; }
html[data-lang="both"] p.zh { color: var(--muted); }
html[data-lang="both"] :is(.ah-top__title, .ah-tab, .ah-sec h4, .ah-drvrow__label, .ah-clear, .ah-legend, .ah-dialog__close, .ah-h3) .zh::before { content: " · "; }
html[data-lang="both"] :is(.ah-card__name, .ah-card__who, .ah-card__sum, .ah-era__name, .ah-ext__t, .ah-tip, .ah-bar__label, .ah-dialog h3, .ah-meta) .zh { display: block; }
html[data-lang="both"] :is(.ah-card__sum, .ah-card__who, .ah-ext__t, .ah-bar__label, .ah-meta) .zh { color: var(--muted); }
html[data-lang="both"] :is(.ah-fchip, .ah-drv) .zh { color: var(--muted); margin-left: .35em; }
html[data-lang="both"] :is(.ah-count, .ah-chip, .ah-rowlabel, .ah-card__year, .ah-rail__n, .ah-heat thead, .ah-heat tbody th, .ah-dialog__year) .zh { display: none; }

.ah-wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }

/* Top bar */
.ah-top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--rule); }
.ah-top__in { display: flex; align-items: center; gap: 12px; height: 56px; }
.ah-home { color: var(--muted); text-decoration: none; font-size: 14px; white-space: nowrap; }
.ah-home:hover { color: var(--fg); }
.ah-top__title { font-weight: 650; font-size: 15px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ah-lang { display: inline-flex; border: 1px solid var(--rule); border-radius: 999px; padding: 2px; background: var(--surface); }
.ah-lang button { border: 0; background: none; padding: 4px 11px; border-radius: 999px; cursor: pointer; font-size: 13px; color: var(--muted); }
.ah-lang button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }

/* Hero */
.ah-hero { padding: 48px 0 20px; }
.ah-hero h1 { font: 600 clamp(32px, 5vw, 52px)/1.1 var(--serif); letter-spacing: -.01em; margin: 0 0 14px; }
html[data-lang="both"] .ah-hero h1 .zh { display: block; font-size: .55em; color: var(--muted); margin-top: 8px; }
html[data-lang="both"] .ah-hero h1 .zh::before { content: ""; }
.ah-lede { max-width: 760px; font-size: 18px; color: var(--muted); margin: 0 0 10px; }
.ah-lede.zh { font-size: 17px; }
.ah-meta { font-size: 14px; color: var(--muted); margin: 14px 0 0; }

/* Tabs + controls */
.ah-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--rule); margin-top: 18px; overflow-x: auto; }
.ah-tab { border: 0; background: none; padding: 10px 14px; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; font-weight: 550; }
.ah-tab.is-active { color: var(--fg); border-bottom-color: var(--fg); }
.ah-controls { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; padding: 16px 0 8px; }
.ah-search { flex: 1 1 260px; min-width: 0; padding: 9px 14px; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); }
.ah-select { padding: 9px 10px; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); max-width: 100%; }
.ah-clear { border: 0; background: none; color: var(--accent); cursor: pointer; padding: 4px 2px; }
.ah-count { font-size: 14px; color: var(--muted); margin-left: auto; }
.ah-drvrow { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 0 14px; align-items: center; }
.ah-drvrow__label { font-size: 13px; color: var(--muted); margin-right: 4px; }
.ah-fchip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--rule); background: var(--surface); border-radius: 999px; padding: 4px 11px; font-size: 13px; cursor: pointer; }
.ah-fchip i, .ah-dot, .ah-drv i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; }
.ah-fchip[aria-pressed="true"] { border-color: var(--fg); background: var(--surface-2); font-weight: 600; }

/* Timeline layout */
.ah-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; padding-bottom: 80px; }
.ah-rail { position: sticky; top: 72px; align-self: start; display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 90px); overflow: auto; }
.ah-rail a { display: grid; grid-template-columns: 1fr auto; column-gap: 8px; text-decoration: none; color: var(--fg); padding: 7px 10px; border-radius: 8px; border-left: 2px solid var(--rule); }
.ah-rail a:hover { background: var(--surface-2); }
.ah-rail a.is-empty { opacity: .4; }
.ah-rail__y { grid-column: 1; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ah-rail__n { grid-column: 1; font-size: 13px; line-height: 1.35; }
.ah-rail__c { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

.ah-era { margin-bottom: 28px; }
.ah-era__head { padding: 22px 0 14px; border-top: 1px solid var(--rule); }
.ah-era__years { margin: 0; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }
.ah-era__name { font: 600 26px/1.25 var(--serif); margin: 4px 0 8px; }
.ah-era__head p.en, .ah-era__head p.zh { max-width: 780px; margin: 0 0 6px; color: var(--muted); }

.ah-card { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; margin: 10px 0; box-shadow: var(--shadow); scroll-margin-top: 76px; }
.ah-card.is-open { border-color: color-mix(in srgb, var(--fg) 30%, var(--rule)); }
.ah-card.is-flash { animation: ah-flash 1.4s ease-out; }
@keyframes ah-flash { 0% { box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow); } 100% { box-shadow: var(--shadow); } }
.ah-card__head { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 14px; width: 100%; text-align: left; background: none; border: 0; padding: 14px 16px; cursor: pointer; border-radius: 12px; }
.ah-card__head:hover { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.ah-card__year { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 14px; color: var(--muted); padding-top: 2px; }
.ah-card__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ah-card__name { font-weight: 650; font-size: 17px; line-height: 1.35; }
.ah-card__who { font-size: 13.5px; color: var(--muted); }
.ah-card__sum { font-size: 15px; margin-top: 4px; }
.ah-card:not(.is-open) .ah-card__sum { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html[data-lang="both"] .ah-card:not(.is-open) .ah-card__sum { -webkit-line-clamp: 4; }
.ah-card.is-open .ah-card__sum { display: none; }
.ah-card__dots { display: flex; gap: 4px; padding-top: 7px; }
.ah-card__body { padding: 0 16px 16px 140px; }
.ah-empty { padding: 40px 0; color: var(--muted); }

.ah-sec { margin-top: 14px; }
.ah-sec h4 { margin: 0 0 4px; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 650; }
.ah-sec p { margin: 0 0 6px; max-width: 72ch; }
.ah-sec--driver { background: var(--surface-2); border-radius: 10px; padding: 12px 14px; }
.ah-drvline { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px !important; font-size: 13px; }
.ah-drv { display: inline-flex; align-items: center; gap: 6px; }
.ah-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ah-chip { display: inline-block; font-size: 12px; padding: 1px 9px; border-radius: 999px; white-space: nowrap; }
.ah-chip--orig { background: var(--fg); color: var(--bg); }
.ah-chip--ext { border: 1px solid var(--rule); color: var(--muted); background: var(--surface); }
.ah-ext { list-style: none; margin: 0; padding: 0; }
.ah-ext li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 10px; padding: 7px 0; border-top: 1px dashed var(--rule); }
.ah-ext li:first-child { border-top: 0; }
.ah-ext .ah-chip { justify-self: start; align-self: start; margin-top: 2px; }
.ah-rel { display: flex; flex-wrap: wrap; gap: 6px; }
.ah-rel__b { border: 1px solid var(--rule); background: var(--surface); border-radius: 8px; padding: 3px 10px; cursor: pointer; font-size: 13.5px; }
.ah-rel__b:hover { border-color: var(--accent); color: var(--accent); }
.ah-rel__y { color: var(--muted); font-size: 12px; }
.ah-sec--src ul { margin: 0; padding-left: 18px; font-size: 14px; }

/* Spread map */
.ah-help { color: var(--muted); font-size: 14.5px; max-width: 820px; margin: 4px 0 12px; }
html[data-lang="both"] p.ah-help.zh { margin-top: -6px; }
.ah-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; margin: 0 0 12px; }
.ah-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ah-legend .ah-lg-ring { width: 9px; height: 9px; border: 2px solid var(--muted); border-radius: 50%; display: inline-block; }
.ah-legend .ah-lg-dot { width: 10px; height: 10px; background: var(--muted); border-radius: 50%; display: inline-block; }
.ah-map { position: relative; overflow-x: auto; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); padding: 8px 0; margin-bottom: 80px; }
.ah-svg { display: block; width: 100%; min-width: 1000px; height: auto; font-family: var(--sans); }
.ah-band { fill: var(--surface-2); opacity: .6; }
.ah-rowlabel { font-size: 12.5px; fill: var(--fg); }
.ah-tick { font-size: 11px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.ah-grid { stroke: var(--rule); stroke-width: 1; }
.ah-break { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 3; opacity: .6; }
.ah-stem { cursor: pointer; }
.ah-stem__line { stroke-width: 1.5; opacity: .45; }
.ah-orig { stroke: var(--surface); stroke-width: 1; }
.ah-ring { fill: var(--surface); stroke-width: 1.8; }
.ah-hit { fill: transparent; }
.ah-stem:hover .ah-stem__line, .ah-stem:focus .ah-stem__line { opacity: 1; stroke-width: 3; }
.ah-stem:hover .ah-orig, .ah-stem:focus .ah-orig { r: 7; }
.ah-stem:focus { outline: none; }
.ah-stem.is-dim { opacity: .09; cursor: default; }
.ah-tip { position: absolute; left: 0; top: 0; pointer-events: none; background: var(--fg); color: var(--bg); border-radius: 8px; padding: 6px 10px; font-size: 13px; max-width: 260px; z-index: 5; }
.ah-tip b { display: block; font-weight: 600; }
.ah-tip span { opacity: .75; font-size: 12px; }

/* Drivers view */
.ah-h3 { font: 600 22px/1.3 var(--serif); margin: 26px 0 4px; }
.ah-bars { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.ah-bar { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 14px; align-items: center; }
.ah-bar__label { font-size: 14px; }
.ah-bars-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; margin: 0 0 12px; }
.ah-bars-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ah-note { max-width: 820px; font-size: 15px; margin: 0 0 6px; }
.ah-bar__n { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.ah-bar__track { display: flex; height: 22px; border-radius: 6px; overflow: hidden; background: var(--surface-2); }
.ah-bar__seg { display: block; height: 100%; }
.ah-bar__seg + .ah-bar__seg { border-left: 1px solid var(--bg); }
.ah-heat-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); margin-bottom: 80px; }
.ah-heat { border-collapse: collapse; font-size: 13px; min-width: 900px; width: 100%; }
.ah-heat th, .ah-heat td { padding: 6px; text-align: center; }
.ah-heat thead th { vertical-align: bottom; height: 150px; font-weight: 500; }
.ah-heat thead th span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; display: inline-block; }
.ah-heat tbody th { text-align: left; white-space: nowrap; font-weight: 500; }
.ah-heat tbody th .ah-dot { margin-right: 7px; }
.ah-heat td { background: rgba(var(--heat), var(--o)); min-width: 38px; border: 1px solid var(--surface); font-variant-numeric: tabular-nums; }
.ah-heat td[tabindex] { cursor: pointer; }
.ah-heat td[tabindex]:hover { outline: 2px solid var(--fg); outline-offset: -2px; }

/* Dialog */
.ah-dialog { border: 0; border-radius: 16px; padding: 0; width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 48px); background: var(--surface); color: var(--fg); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.ah-dialog::backdrop { background: rgba(0,0,0,.45); }
.ah-dialog__in { padding: 22px 24px 24px; }
.ah-dialog__close { position: sticky; top: 0; float: right; border: 1px solid var(--rule); background: var(--surface); border-radius: 999px; padding: 4px 12px; cursor: pointer; font-size: 13px; }
.ah-dialog h3 { font: 600 24px/1.25 var(--serif); margin: 2px 0 4px; }
.ah-dialog__year { margin: 0; color: var(--muted); font-size: 14px; font-weight: 600; }

.ah-foot { border-top: 1px solid var(--rule); padding: 22px 0 40px; color: var(--muted); font-size: 14px; }
.ah-foot p { max-width: 820px; margin: 0 0 8px; }

@media (max-width: 900px) {
  .ah-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ah-rail { position: static; flex-direction: row; overflow-x: auto; max-height: none; gap: 6px; padding-bottom: 6px; }
  .ah-rail a { flex: none; border-left: 0; border: 1px solid var(--rule); border-radius: 999px; padding: 4px 12px; display: flex; gap: 6px; }
  .ah-rail__n { display: none; }
  .ah-bar { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
@media (max-width: 640px) {
  .ah-drvrow { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 14px; scrollbar-width: none; }
  .ah-drvrow::-webkit-scrollbar { display: none; }
  .ah-fchip { flex: none; }
}
@media (max-width: 640px) {
  .ah-hero { padding-top: 28px; }
  .ah-lede { font-size: 16px; }
  .ah-card__head { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 12px 14px; }
  .ah-card__year { grid-column: 1 / -1; padding: 0; }
  .ah-card__main { grid-column: 1; }
  .ah-card__dots { grid-column: 2; grid-row: 2; }
  .ah-card__body { padding: 0 14px 14px; }
  .ah-ext li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .ah-count { margin-left: 0; width: 100%; }
  .ah-top__title { font-size: 14px; }
  .ah-dialog__in { padding: 18px 16px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .ah-card.is-flash { animation: none; }
}

/* Lineage graph */
.ah-ljump { display: flex; gap: 6px; overflow-x: auto; padding: 0 0 10px; scrollbar-width: thin; }
.ah-ljump button { flex: none; border: 1px solid var(--rule); background: var(--surface); border-radius: 999px; padding: 3px 11px; font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.ah-ljump button:hover { border-color: var(--fg); }
html[data-lang="both"] .ah-ljump .zh { display: none; }
.ah-lineage { overflow: auto; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); max-height: 78vh; -webkit-overflow-scrolling: touch; }
.ah-lsvg { display: block; font-family: var(--sans); }
.ah-lera { fill: transparent; }
.ah-lera.is-odd { fill: var(--surface-2); opacity: .55; }
.ah-lera__t { font-size: 11.5px; font-weight: 600; fill: var(--muted); letter-spacing: .02em; }
html[data-lang="both"] .ah-lera__t .zh { display: none; }
.ah-ltick { font-size: 10.5px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.ah-lgrid { stroke: var(--rule); stroke-width: 1; opacity: .7; }
.ah-ledge { fill: none; stroke: var(--muted); stroke-width: 1.1; opacity: .38; transition: opacity .15s; }
.ah-ledge.is-hot { stroke: var(--fg); opacity: .9; stroke-width: 1.8; }
.ah-lnode { cursor: pointer; }
.ah-lnode circle { stroke: var(--surface); stroke-width: 1.5; }
.ah-lnode text { font-size: 12px; fill: var(--fg); paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; }
.ah-lnode:hover circle, .ah-lnode:focus-visible circle { r: 7.5; }
.ah-lnode:hover text { font-weight: 650; }
.ah-lnode:focus { outline: none; }
.ah-lnode.is-dim { opacity: .22; }
.ah-lsvg.is-focus .ah-lnode { opacity: .16; }
.ah-lsvg.is-focus .ah-lnode.is-on { opacity: 1; }
.ah-lsvg.is-focus .ah-lnode.is-self circle { r: 9; stroke: var(--fg); stroke-width: 2.5; }
.ah-lsvg.is-focus .ah-lnode.is-self text { font-weight: 700; font-size: 13.5px; }
.ah-lsvg.is-focus .ah-ledge { opacity: .07; }
.ah-lsvg.is-focus .ah-ledge.is-on { opacity: .75; stroke: var(--accent); stroke-width: 1.6; }
.ah-lsvg.is-focus .ah-ledge.is-direct { opacity: 1; stroke: var(--accent); stroke-width: 2.6; }

.ah-lpanel { margin: 14px 0 80px; padding: 16px 18px; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.ah-lpanel__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.ah-lpanel__head h3 { font: 600 21px/1.3 var(--serif); margin: 0; }
html[data-lang="both"] .ah-lpanel__head h3 .zh { display: block; font-size: .8em; color: var(--muted); }
.ah-lpanel__year { margin: 0; font-size: 13px; color: var(--muted); font-weight: 600; }
html[data-lang="both"] .ah-lpanel__year .zh { display: none; }
.ah-lpanel__btns { display: flex; gap: 8px; }
.ah-btn { border: 1px solid var(--fg); background: var(--fg); color: var(--bg); border-radius: 8px; padding: 5px 14px; cursor: pointer; font-size: 14px; }
.ah-btn--ghost { background: none; color: var(--fg); border-color: var(--rule); }
html[data-lang="both"] .ah-btn .zh::before { content: " · "; }
.ah-lpanel__row { margin-top: 14px; }
.ah-lpanel__row h4 { margin: 0 0 6px; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 650; }
html[data-lang="both"] .ah-lpanel__row h4 .zh::before, html[data-lang="both"] .ah-lpanel__hint .zh::before { content: " · "; }
.ah-lpanel__n { font-variant-numeric: tabular-nums; background: var(--surface-2); border-radius: 999px; padding: 0 7px; letter-spacing: 0; }
.ah-lchain { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; }
.ah-lchip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--rule); background: var(--surface); border-radius: 8px; padding: 3px 9px; font-size: 13px; cursor: pointer; }
.ah-lchip:hover { border-color: var(--accent); }
.ah-lchip i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.ah-lchip.is-direct { font-weight: 650; border-color: color-mix(in srgb, var(--accent) 55%, var(--rule)); }
.ah-lchip__y { color: var(--muted); font-size: 12px; font-weight: 400; font-variant-numeric: tabular-nums; }
html[data-lang="both"] .ah-lchip .zh::before { content: " "; }
html[data-lang="both"] .ah-lchip .zh { color: var(--muted); }
.ah-lchip__arrow { color: var(--muted); font-size: 12px; }
.ah-lpanel__none { color: var(--muted); }
.ah-lpanel__hint { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.ah-ledge.is-long { opacity: .14; }
