:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --surface-2: #f0eee9;
  --text: #1c1b19;
  --muted: #6b6862;
  --border: #e3e0d9;
  --done: #d9363e;
  --doing: #e08a00;
  --todo: #3567d6;
  --done-soft: #fbe5e5;
  --doing-soft: #fdf0d8;
  --todo-soft: #e3ebfb;
  --now: #1c1b19;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 2px 8px rgba(0,0,0,.04);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141414;
    --surface: #1d1d1c;
    --surface-2: #262624;
    --text: #ecebe8;
    --muted: #9b9890;
    --border: #33322f;
    --done: #f0595f;
    --doing: #f5a83a;
    --todo: #6b97f2;
    --done-soft: #3a1f20;
    --doing-soft: #3a2e17;
    --todo-soft: #1d2a45;
    --now: #ecebe8;
    --shadow: none;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141414;
  --surface: #1d1d1c;
  --surface-2: #262624;
  --text: #ecebe8;
  --muted: #9b9890;
  --border: #33322f;
  --done: #f0595f;
  --doing: #f5a83a;
  --todo: #6b97f2;
  --done-soft: #3a1f20;
  --doing-soft: #3a2e17;
  --todo-soft: #1d2a45;
  --now: #ecebe8;
  --shadow: none;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.25; margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 60px; }
.logo { font-weight: 700; font-size: 17px; white-space: nowrap; }
.logo { display: inline-flex; align-items: center; gap: 6px; }
.logo-mark { flex: none; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 6px 10px; border-radius: 8px; color: var(--muted); white-space: nowrap; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.active { color: var(--text); background: var(--surface-2); font-weight: 600; }
.search { margin-left: auto; flex: 0 1 280px; }
.search input {
  width: 100%; padding: 7px 12px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font: inherit;
}
.search input:focus { outline: 2px solid var(--todo); outline-offset: -1px; }
.theme-btn {
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  width: 34px; height: 34px; border-radius: 8px; cursor: pointer; font-size: 16px;
}

main { padding: 32px 16px 64px; }
.site-footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; padding: 28px 0 40px; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 14px; }
.footer-note { margin: 0 0 18px; }
.company { font-style: normal; display: flex; flex-wrap: wrap; gap: 4px 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.company strong { color: var(--text); }
.copyright { margin: 10px 0 0; }

/* Generic */
.section { margin-top: 48px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.section-head h2 { font-size: 20px; }
.section-head p { margin: 0; color: var(--muted); font-size: 14px; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.muted { color: var(--muted); }
.crumbs { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }

/* Status pills / dots */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap;
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.done { color: var(--done); background: var(--done-soft); }
.pill.doing { color: var(--doing); background: var(--doing-soft); }
.pill.todo { color: var(--todo); background: var(--todo-soft); }

/* Stacked bar */
.stack { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--surface-2); gap: 2px; }
.stack span { display: block; height: 100%; }
.stack .done { background: var(--done); }
.stack .doing { background: var(--doing); }
.stack .todo { background: var(--todo); }
.stack.lg { height: 12px; border-radius: 6px; }

/* Hero */
.hero { padding: 24px 0 8px; }
.hero h1 { font-size: clamp(28px, 5vw, 44px); letter-spacing: -0.5px; }
.hero p { color: var(--muted); max-width: 680px; font-size: 16px; margin: 12px 0 0; }
.now-badge { display: inline-block; font-size: 13px; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 2px 12px; margin-bottom: 14px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.stat { padding: 18px 20px; border-top: 4px solid; cursor: pointer; transition: transform .12s; }
.stat:hover { transform: translateY(-2px); }
.stat.done { border-top-color: var(--done); }
.stat.doing { border-top-color: var(--doing); }
.stat.todo { border-top-color: var(--todo); }
.stat .label { font-size: 14px; font-weight: 600; }
.stat .num { font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums; margin: 4px 0 2px; }
.stat .num small { font-size: 15px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.stat .def { font-size: 13px; color: var(--muted); }
.totals { color: var(--muted); font-size: 14px; margin-top: 12px; }

/* Tabs */
.tabs { display: inline-flex; background: var(--surface-2); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.tabs button {
  border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 13px;
  padding: 5px 12px; border-radius: 8px; cursor: pointer;
}
.tabs button.active { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--shadow); }

/* Ranking table */
.rank { overflow: hidden; }
.rank-row {
  display: grid; grid-template-columns: 28px minmax(140px, 1.3fr) 2fr 92px 124px;
  gap: 16px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--border);
}
.rank-row:first-child { border-top: 0; }
a.rank-row:hover { background: var(--surface-2); }
.rank-row.head { font-size: 12px; color: var(--muted); padding-top: 10px; padding-bottom: 10px; background: var(--surface-2); }
.rank-idx { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }
.rank-name { font-weight: 600; }
.rank-name small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.rank-bar .stack { margin-bottom: 4px; }
.rank-bar .pct { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.year { font-weight: 700; font-variant-numeric: tabular-nums; }
.year small { display: block; font-weight: 400; font-size: 11px; color: var(--muted); }

/* Category grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.cat-card { padding: 18px; display: block; transition: border-color .12s, transform .12s; }
.cat-card:hover { border-color: var(--muted); transform: translateY(-2px); }
.cat-icon { font-size: 26px; }
.cat-card h3 { font-size: 17px; margin: 8px 0 4px; }
.cat-card .meta { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.cat-card .jobs { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* Occupation cards (category page) */
.occ-card { padding: 20px; display: block; transition: border-color .12s; }
.occ-card:hover { border-color: var(--muted); }
.occ-card .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.occ-card h2, .occ-card h3 { font-size: 18px; }
.occ-card p { color: var(--muted); font-size: 14px; margin: 6px 0 14px; }
.occ-card .subs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip { font-size: 12px; padding: 2px 9px; border-radius: 6px; background: var(--surface-2); color: var(--muted); }
.kv { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 8px; }
.kv b { color: var(--text); }

/* Page head */
.page-head { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-end; }
.page-head h1 { font-size: clamp(26px, 4vw, 36px); }
.page-head p { color: var(--muted); margin: 8px 0 0; max-width: 620px; }
.summary { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; margin-top: 24px; }
.summary .card { padding: 20px; }
.big-year { font-size: 44px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.small-label { font-size: 13px; color: var(--muted); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.legend .done i { background: var(--done); }
.legend .doing i { background: var(--doing); }
.legend .todo i { background: var(--todo); }

/* Curve chart */
.curve svg { width: 100%; height: auto; display: block; overflow: visible; }
.curve .axis text { fill: var(--muted); font-size: 11px; }
.curve .grid-line { stroke: var(--border); stroke-width: 1; }
.curve .line { fill: none; stroke: var(--done); stroke-width: 2.5; }
.curve .area { fill: var(--done); opacity: .12; }
.curve .now-line { stroke: var(--now); stroke-dasharray: 3 3; }
.curve .now-label { fill: var(--text); font-size: 11px; font-weight: 600; }
.curve .thr { stroke: var(--muted); stroke-dasharray: 2 4; }

/* Sub-occupation */
.sub { padding: 22px; margin-top: 16px; }
.sub-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.sub-head h2 { font-size: 19px; }
.sub-head .right { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }

/* Gantt */
.gantt { --label: 190px; }
.g-axis, .g-row { display: grid; grid-template-columns: var(--label) 1fr; gap: 12px; align-items: center; }
.g-axis .track { height: 22px; }
.g-axis .tick { position: absolute; top: 0; transform: translateX(-50%); font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.g-row { padding: 6px 0; border-top: 1px dashed var(--border); }
.g-label { font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
.g-label small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track { position: relative; height: 26px; }
.track .gl { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--border); }
.track .nowl { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--now); z-index: 2; border-radius: 1px; }
.bar {
  position: absolute; top: 5px; height: 16px; border-radius: 4px; z-index: 1;
  display: flex; align-items: center; justify-content: flex-end; padding: 0 6px;
  font-size: 11px; color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap;
  min-width: 6px;
}
.bar.done { background: var(--done); }
.bar.doing { background: linear-gradient(90deg, var(--doing) var(--split, 50%), color-mix(in srgb, var(--doing) 45%, transparent) var(--split, 50%)); }
.bar.todo { background: color-mix(in srgb, var(--todo) 55%, transparent); border: 1px dashed var(--todo); }
.bar .tag { position: absolute; left: 100%; margin-left: 6px; color: var(--muted); font-weight: 500; }
.now-cap { position: absolute; top: -2px; transform: translateX(-50%); font-size: 11px; font-weight: 700; color: var(--text); background: var(--surface); padding: 0 4px; z-index: 3; }

/* Buckets */
.buckets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.bucket { border-radius: 10px; padding: 12px 14px; }
.bucket.done { background: var(--done-soft); }
.bucket.doing { background: var(--doing-soft); }
.bucket.todo { background: var(--todo-soft); }
.bucket h3 { margin: 0 0 8px; font-size: 13px; }
.bucket.done h3 { color: var(--done); }
.bucket.doing h3 { color: var(--doing); }
.bucket.todo h3 { color: var(--todo); }
.bucket ul { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.bucket li { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; }
.bucket li span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bucket .empty { color: var(--muted); }

/* Timeline page */
.slider-card { padding: 22px; }
.slider-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.slider-row input[type=range] { flex: 1; min-width: 200px; accent-color: var(--done); }
.slider-year { font-size: 40px; font-weight: 800; font-variant-numeric: tabular-nums; min-width: 110px; }
.slider-year small { font-size: 13px; font-weight: 500; color: var(--muted); display: block; }
.slider-stats { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; margin-top: 10px; }
.slider-stats b { font-variant-numeric: tabular-nums; }
.occ-bars { margin-top: 18px; display: grid; gap: 8px; }
.occ-bar { display: grid; grid-template-columns: 150px 1fr 48px; gap: 12px; align-items: center; font-size: 13px; }
.occ-bar .fill-track { height: 10px; background: var(--surface-2); border-radius: 5px; overflow: hidden; }
.occ-bar .fill { height: 100%; background: var(--done); border-radius: 5px; transition: width .25s; }
.occ-bar .v { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }

.years { position: relative; margin-top: 8px; }
.year-block { display: grid; grid-template-columns: 90px 1fr; gap: 18px; padding: 16px 0; border-top: 1px solid var(--border); }
.year-block .y { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.year-block .y small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.year-block.future .y { color: var(--todo); }
.year-block.current .y { color: var(--doing); }
.ms { display: flex; flex-wrap: wrap; gap: 6px; }
.ms a { font-size: 13px; padding: 4px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); }
.ms a:hover { border-color: var(--muted); }
.ms a small { color: var(--muted); margin-left: 4px; }

/* Search & about */
.result { padding: 14px 18px; display: block; border-top: 1px solid var(--border); }
.result:first-child { border-top: 0; }
.result:hover { background: var(--surface-2); }
.result .path { font-size: 12px; color: var(--muted); }
.prose { max-width: 760px; }
.prose h2 { font-size: 20px; margin: 32px 0 10px; }
.prose p, .prose li { color: var(--text); }
.prose code { background: var(--surface-2); padding: 1px 6px; border-radius: 4px; font-size: 13px; }
.empty-state { padding: 40px; text-align: center; color: var(--muted); }

/* Responsive */
@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; height: auto; padding: 10px 16px; gap: 10px; }
  .search { order: 5; flex: 1 1 100%; }
  .summary { grid-template-columns: 1fr; }
  .rank-row { grid-template-columns: 1fr 84px; gap: 6px 12px; }
  .rank-row .rank-idx, .rank-row.head { display: none; }
  .rank-row .rank-bar { grid-column: 1 / -1; order: 3; }
  .rank-row .rank-status { display: none; }
}
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; }
  .buckets { grid-template-columns: 1fr; }
  .gantt { --label: 1fr; }
  .g-axis, .g-row { grid-template-columns: 1fr; gap: 4px; }
  .g-axis .g-label { display: none; }
  .occ-bar { grid-template-columns: 96px 1fr 40px; }
  .year-block { grid-template-columns: 1fr; gap: 8px; }
  .big-year { font-size: 36px; }
}

/* Layout guards */
.g-row > *, .g-axis > *, .summary > *, .buckets > *, .rank-row > * { min-width: 0; }
.occ-bar .fill-track, .occ-bar .fill { display: block; }
@media (max-width: 640px) {
  .g-axis, .g-row { grid-template-columns: minmax(0, 1fr); }
  .summary { grid-template-columns: minmax(0, 1fr); }
  .logo { font-size: 15px; }
  .nav a { padding: 6px 7px; }
}

/* Language switcher */
.lang-select {
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  height: 34px; border-radius: 8px; padding: 0 8px; font: inherit; font-size: 13px; cursor: pointer;
}

/* SEO content blocks */
.occ-summary { color: var(--muted); max-width: 820px; margin: 14px 0 0; font-size: 14px; }
.faq-item { padding: 18px 20px; margin-top: 10px; }
.faq-item h3 { font-size: 16px; margin-bottom: 6px; }
.faq-item p { margin: 0; color: var(--muted); }
.slider-tag { font-size: 13px; color: var(--muted); margin-top: -6px; }
[hidden] { display: none !important; }

/* Language suggestion banner */
.lang-banner { background: var(--todo-soft); border-bottom: 1px solid var(--border); font-size: 14px; }
.lang-banner .wrap { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; }
.lang-banner a { color: var(--todo); font-weight: 600; }
.lang-banner button { border: 0; background: none; color: var(--muted); font-size: 18px; cursor: pointer; }

/* Latin fonts first on English pages (CJK fonts render “ ” ’ full-width) */
html[lang="en"] body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Liberation Sans", "PingFang SC", "Noto Sans CJK SC", sans-serif;
}

/* Task list pages (/tasks/<status>/) */
.h1-count { color: var(--muted); font-weight: 600; margin-left: 6px; }
.task-tabs a { color: var(--muted); font-size: 13px; padding: 5px 12px; border-radius: 8px; }
.task-tabs a.active { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--shadow); }
.task-groups { columns: 340px; column-gap: 12px; margin-top: 20px; }
.task-group { padding: 16px 18px; break-inside: avoid; margin-bottom: 12px; display: block; }
.task-group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.task-group-head h2 { font-size: 17px; }
.task-group-head h2 a:hover { text-decoration: underline; }
.task-group-head .muted { font-size: 12px; }
.task-group ul { list-style: none; margin: 0; padding: 0; }
.task-group li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px dashed var(--border); font-size: 14px; }
.task-name small { display: block; color: var(--muted); font-size: 12px; }
.task-year { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.slider-stat { border-radius: 999px; }
.slider-stat:hover { text-decoration: underline; }
@media (max-width: 640px) { .task-groups { columns: 1; } }

/* Task detail pages */
a.g-row { color: inherit; border-radius: 6px; }
a.g-row:hover { background: var(--surface-2); }
a.g-row:hover .g-name { text-decoration: underline; }
.bucket li a:hover, .task-name a:hover, .page-head p a:hover { text-decoration: underline; }
.task-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; }
.fact { padding: 16px 18px; }
.fact-v { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.2; margin-top: 4px; }
.fact-t { font-size: 15px; font-weight: 600; margin-top: 8px; }
.fact .fill-track { display: block; height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; margin-top: 8px; }
.fact .fill { display: block; height: 100%; border-radius: 3px; }
.fact .fill.done { background: var(--done); }
.fact .fill.doing { background: var(--doing); }
.fact .fill.todo { background: var(--todo); }
.task-sec { padding: 20px 22px; margin-top: 12px; }
.task-sec h2 { font-size: 17px; margin-bottom: 8px; }
.task-sec p { margin: 0; line-height: 1.75; }
@media (max-width: 860px) { .task-facts { grid-template-columns: repeat(2, 1fr); } }

/* Tree timeline on /tasks/<status>/ — years descend along a center line, tags alternate sides */
.vt { position: relative; margin-top: 28px; }
.vt::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--border); }
.vt-year { position: relative; padding-bottom: 22px; }
.vt-node { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; margin: 0 auto 12px; width: max-content; padding: 6px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.vt-node span { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.2; }
.vt-node small { font-size: 11px; font-weight: 500; color: var(--muted); }
.vt-year.future .vt-node span { color: var(--todo); }
.vt-year.current .vt-node { border-color: var(--doing); }
.vt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.vt-side { display: flex; flex-direction: column; gap: 8px; }
.vt-left { align-items: flex-end; }
.vt-right { align-items: flex-start; }
.vt-tag {
  position: relative; display: inline-flex; flex-direction: column; max-width: 100%;
  padding: 7px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow); font-size: 14px; line-height: 1.35; transition: border-color .12s, transform .12s;
}
.vt-left .vt-tag { text-align: right; border-right: 3px solid var(--c); }
.vt-right .vt-tag { border-left: 3px solid var(--c); }
.vt-tag.done { --c: var(--done); } .vt-tag.doing { --c: var(--doing); } .vt-tag.todo { --c: var(--todo); }
.vt-tag small { color: var(--muted); font-size: 12px; }
.vt-tag:hover, .vt-tag:focus-visible { border-color: var(--c); transform: translateY(-1px); z-index: 5; }
/* connector from tag to center line */
.vt-tag::after { content: ""; position: absolute; top: 50%; width: 28px; height: 1px; background: var(--border); }
.vt-left .vt-tag::after { left: 100%; margin-left: 3px; }
.vt-right .vt-tag::after { right: 100%; margin-right: 3px; }
/* hover card */
.vt-pop {
  display: none; position: absolute; top: calc(100% + 8px); width: 340px; max-width: 80vw; z-index: 20;
  padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 8px 28px rgba(0,0,0,.18); text-align: left; font-size: 13px; line-height: 1.6; color: var(--text);
}
.vt-left .vt-pop { right: 0; }
.vt-right .vt-pop { left: 0; }
.vt-tag:hover .vt-pop, .vt-tag:focus-visible .vt-pop { display: flex; flex-direction: column; gap: 6px; }
.vt-pop-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 15px; }
.vt-pop-meta { color: var(--muted); }
.vt-pop-years { font-variant-numeric: tabular-nums; }
.vt-pop-text { color: var(--text); }
.vt-pop-more { color: var(--todo); font-weight: 600; }
@media (hover: none) { .vt-tag:hover .vt-pop { display: none; } }
@media (max-width: 720px) {
  .vt::before { left: 14px; }
  .vt-node { margin-left: 0; }
  .vt-row { grid-template-columns: 1fr; gap: 8px; padding-left: 34px; }
  .vt-left { align-items: flex-start; }
  .vt-left .vt-tag { text-align: left; border-right: 1px solid var(--border); border-left: 3px solid var(--c); }
  .vt-left .vt-tag::after, .vt-right .vt-tag::after { left: auto; right: 100%; margin: 0 3px 0 0; width: 20px; }
  .vt-left .vt-pop { right: auto; left: 0; }
}
