/* v2 phase 2+: Home, overviews, maps, timeline */
:root { --hl-yellow:#f6d878; --hl-green:#a9dca0; --hl-blue:#a7cdf2; --hl-pink:#f3b2c6; --hl-orange:#f5bf8a; }
.v2-tabs button { min-width: 0; }
.v2-tabs span { font-size: .68rem; }
html.v2-home-on #main, html.v2-home-on .v2-ref { display: none !important; }
.v2-home { max-width: 760px; margin: 0 auto; padding: 14px 18px calc(var(--tabh) + var(--sab) + 28px); font-family: var(--sans); color: var(--ink); animation: v2fade .35s ease; }
@keyframes v2fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.v2-home-head h1 { font-family: var(--serif); font-size: 2rem; font-weight: 600; margin: 2px 0 16px; letter-spacing: -.01em; }
.v2-home .v2-eyebrow, .v2-ov .v2-eyebrow, .v2-obooks .v2-eyebrow { text-transform: uppercase; letter-spacing: .09em; font-size: .7rem; font-weight: 700; color: var(--muted); margin: 0; display: block; }
.v2-continue { display: grid; gap: 6px; width: 100%; text-align: left; border: 0; border-radius: 22px; padding: 20px 20px 18px; cursor: pointer; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, #c27a4c 0%, #8a4b2a 45%, #4a2414 100%); box-shadow: 0 14px 34px rgba(74,36,20,.28); position: relative; overflow: hidden; }
.v2-continue::after { content: ""; position: absolute; right: -40px; top: -40px; width: 170px; height: 170px; border-radius: 50%; border: 22px solid rgba(255,255,255,.08); }
.v2-continue .v2-eyebrow { color: rgba(255,255,255,.75); }
.v2-continue strong { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; }
.v2-continue small { opacity: .88; font-size: .92rem; line-height: 1.35; max-width: 36ch; }
.v2-progress { height: 5px; border-radius: 3px; background: rgba(255,255,255,.22); margin-top: 8px; overflow: hidden; }
.v2-progress i { display: block; height: 100%; background: #fff; border-radius: 3px; }
.v2-continue-go { justify-self: end; font-weight: 700; font-size: .95rem; margin-top: 2px; }
.v2-votd { margin: 16px 0 6px; padding: 20px; border-radius: 22px; background: var(--paper); border: 1px solid var(--line); }
.v2-votd blockquote { font-family: var(--serif); font-size: 1.28rem; line-height: 1.45; margin: 10px 0 12px; }
.v2-votd-ref { border: 0; background: none; color: var(--accent); font-weight: 700; padding: 0; cursor: pointer; font-size: .95rem; }
.v2-home-h { font-family: var(--serif); font-size: 1.3rem; margin: 24px 0 10px; font-weight: 600; }
.v2-hgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 700px) { .v2-hgrid { grid-template-columns: repeat(4, 1fr); } }
.v2-hcard { display: grid; gap: 3px; align-content: start; text-align: left; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 20px; padding: 16px; min-height: 118px; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.v2-hcard:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.07); }
.v2-hcard:active { transform: scale(.98); }
.v2-hcard-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 8px; background: var(--accent-soft); color: var(--accent); }
.v2-hcard-ic svg { width: 24px; height: 24px; }
.v2-hcard strong { font-size: 1.05rem; } .v2-hcard small { color: var(--muted); font-size: .82rem; }
.v2-hcard.wide { grid-column: 1 / -1; min-height: 0; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center;
  background: linear-gradient(120deg, #2f3a5a, #4b5aa0 55%, #7a4a7e); color: #fff; border: 0; }
.v2-hcard.wide .v2-hcard-ic { grid-row: span 2; margin: 0; background: rgba(255,255,255,.16); color: #fff; }
.v2-hcard.wide small { color: rgba(255,255,255,.8); }
@media (min-width: 700px) { .v2-hcard.wide { grid-column: span 2; } }
.v2-home-empty { color: var(--muted); background: var(--paper); border: 1px dashed var(--line); border-radius: 16px; padding: 16px; margin: 0; }
.v2-recent { display: grid; gap: 8px; }
.v2-recent-item { display: grid; grid-template-columns: 12px 1fr; gap: 12px; align-items: start; text-align: left; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; color: var(--ink); cursor: pointer; }
.v2-recent-item small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-family: var(--serif); font-size: .95rem; margin-top: 2px; }
.v2-recent-dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 4px; background: var(--c, var(--accent)); }
/* overviews */
.v2-ov { --g: #8a4b2a; font-family: var(--sans); }
.v2-ov-hero { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; padding: 16px; border-radius: 20px;
  background: color-mix(in srgb, var(--g) 12%, var(--paper)); border: 1px solid color-mix(in srgb, var(--g) 25%, transparent); }
.v2-ov-hero h2 { font-family: var(--serif); font-size: 1.9rem; margin: 2px 0 4px; }
.v2-ov-hero .v2-eyebrow { color: var(--g) !important; }
.v2-ov-line { margin: 0; line-height: 1.4; }
.v2-ov-emblem { width: 96px; height: 96px; }
.v2-ov h3 { font-family: var(--serif); font-size: 1.15rem; margin: 20px 0 4px; }
.v2-ov-fine { color: var(--muted); font-size: .85rem; margin: 0 0 8px; }
.v2-ov-svg { width: 100%; height: auto; display: block; }
.v2-ov-row { cursor: pointer; outline: none; }
.v2-ov-hit { fill: transparent; } .v2-ov-row:hover .v2-ov-hit, .v2-ov-row:focus .v2-ov-hit { fill: var(--paper-2); }
.v2-ov-track { fill: var(--line); }
.v2-ov-t { font: 600 13px var(--sans); fill: var(--ink); } .v2-ov-r { font: 12px var(--sans); fill: var(--muted); }
.v2-ov-axis { stroke: var(--line); }
.v2-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.v2-chip { padding: 7px 12px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); font-size: .88rem; color: var(--ink); }
.v2-chip-btn { cursor: pointer; } .v2-chip-btn:hover { border-color: var(--g, var(--accent)); }
.v2-ov-start { display: block; width: 100%; margin: 24px 0 8px; padding: 15px; border: 0; border-radius: 16px; background: var(--g); color: #fff; font-weight: 700; font-size: 1rem; cursor: pointer; }
.v2-ov-open { display: block; width: 100%; margin: 4px 0 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--accent); background: var(--accent-soft); color: var(--ink); font-weight: 700; cursor: pointer; }
.v2-ov-card { --g: #8a4b2a; display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; width: 100%; text-align: left; margin: 6px 0 14px; padding: 12px 14px; border-radius: 18px; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--g) 30%, transparent); background: color-mix(in srgb, var(--g) 9%, var(--paper)); color: var(--ink); font-family: var(--sans); }
.v2-ov-card svg { width: 56px; height: 56px; } .v2-ov-card strong { display: block; font-size: 1rem; } .v2-ov-card small { color: var(--muted); font-size: .8rem; }
.v2-ov-card .v2-eyebrow { color: var(--g); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; font-size: .66rem; }
.v2-obooks { font-family: var(--sans); } .v2-obooks .v2-eyebrow { margin: 16px 0 8px; }
.v2-obook-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.v2-obook { text-align: left; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); border-left: 4px solid var(--g); background: var(--paper); color: var(--ink); cursor: pointer; display: grid; }
.v2-obook small { color: var(--muted); font-size: .76rem; }
.v2-themes { font-family: var(--sans); } .v2-theme { padding: 12px 0; border-bottom: 1px solid var(--line); } .v2-theme strong { display: block; margin-bottom: 8px; }
.v2-theme-line { display: flex; flex-wrap: wrap; gap: 6px; } .v2-theme-line .v2-chip { border-left: 4px solid var(--g); }
@media (prefers-reduced-motion: reduce) { .v2-home { animation: none; } .v2-hcard { transition: none; } }
@media (max-width: 959px) { .v2-tabs { grid-template-columns: repeat(5, 1fr) !important; } }
/* simplification pass */
.v2-back-btn { display: none; }
html.v2-sub .v2-back-btn { display: grid; } html.v2-sub .v2-brand { display: none; }
.v2-back-btn svg { width: 24px; height: 24px; }
.v2-tabs { border-top: 0; box-shadow: 0 -1px 0 color-mix(in srgb, var(--line) 70%, transparent); }
.v2-tabs button { min-height: 56px; font-size: .72rem; }
.v2-tabs svg { width: 26px; height: 26px; }
.v2-list { display: grid; }
.v2-row { display: grid; grid-template-columns: 44px 1fr 16px; gap: 14px; align-items: center; text-align: left; min-height: 64px; padding: 8px 2px; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); background: none; color: var(--ink); font-family: var(--sans); cursor: pointer; }
.v2-row:last-child { border-bottom: 0; }
.v2-row-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.v2-row-ic svg { width: 24px; height: 24px; }
.v2-row-t strong { display: block; font-size: 1.02rem; } .v2-row-t small { color: var(--muted); font-size: .85rem; }
.v2-row-go { color: var(--muted); font-size: 1.4rem; }
.v2-more-fine { margin-top: 14px; }
/* calmer cards on Home */
.v2-hcard, .v2-votd, .v2-recent-item { border-color: transparent; background: var(--paper); box-shadow: none; }
.v2-hcard:hover { box-shadow: none; background: var(--paper-2); transform: none; }
.v2-hcard.wide { background: var(--accent); }
.v2-continue { box-shadow: none; background: linear-gradient(140deg, #9a5733, #6e3a20); }
.v2-ov-card { border-color: transparent; }
.v2-ov-hero { border: 0; }
/* old app.js views restyled to the light card style */
html.v2 .tx-page { max-width: 720px; margin: 0 auto; padding-bottom: calc(var(--tabh) + 40px); }
html.v2 .tx-page > .chapter-kicker { display: none; }
html.v2 .tx-page .tx-title { font-family: var(--serif); font-size: 2rem; margin: 6px 0 6px; }
html.v2 .tx-page > .blurb { font-size: .92rem; color: var(--muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html.v2 .tx-page > .blurb:focus, html.v2 .tx-page > .blurb:hover { -webkit-line-clamp: unset; }
html.v2 .tx-page input[type=search], html.v2 .tx-page select { border: 0 !important; background: var(--paper-2) !important; border-radius: 12px !important; min-height: 46px; box-shadow: none !important; }
html.v2 .tx-page details, html.v2 .tx-page .tx-note, html.v2 .timeline-card, html.v2 .tx-page article {
  background: transparent !important; border: 0 !important; border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent) !important; border-radius: 0 !important; box-shadow: none !important; margin: 0 !important; }
html.v2 .tx-page details > summary { list-style: none; padding: 16px 4px; min-height: 52px; font-weight: 600; font-size: 1.04rem; display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
html.v2 .tx-page details > summary::-webkit-details-marker { display: none; }
html.v2 .tx-page details > summary::after { content: "›"; color: var(--muted); font-size: 1.3rem; transition: transform .2s; }
html.v2 .tx-page details[open] > summary::after { transform: rotate(90deg); }
html.v2 .tx-page details[open] { padding-bottom: 12px !important; }
html.v2 .tx-page .meta, html.v2 .tx-page .fine { color: var(--muted); }
html.v2 .tx-page button.jump { border-radius: 999px; }
html.v2 .tx-page .plan-card, html.v2 .tx-page [class*="plan"] { box-shadow: none !important; }
@media (min-width: 960px) { html.v2-sub .v2-back-btn { margin-left: -88px; width: 88px; } .v2-home { padding-bottom: 3rem; } }
/* phase 3: maps and timeline */
.v2-map-wrap, .v2-tl-wrap { margin: 14px 0 22px; font-family: var(--sans); }
.v2-map-chips, .v2-tl-eras { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px; scrollbar-width: none; }
.v2-map-chips::-webkit-scrollbar, .v2-tl-eras::-webkit-scrollbar { display: none; }
.v2-map-chips button, .v2-tl-eras button { flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--paper-2); color: var(--ink); font-weight: 600; font-size: .9rem; cursor: pointer; white-space: nowrap; }
.v2-map-chips button[aria-pressed=true] { background: var(--c); color: #fff; }
.v2-tl-eras button { border-left: 4px solid var(--c); border-radius: 12px; }
.v2-map { position: relative; height: min(46vh, 480px); border-radius: 20px; overflow: hidden; background: #dfe9ee; touch-action: none; cursor: grab; outline: none; }
.v2-map:active { cursor: grabbing; }
.v2-map-svg { width: 100%; height: 100%; display: block; }
.v2-sea { fill: #dce8ed; } .v2-land { fill: #f4efe4; stroke: #c9bfa9; stroke-width: .6; vector-effect: non-scaling-stroke; } .v2-lake { fill: #dce8ed; stroke: #c9bfa9; stroke-width: .5; vector-effect: non-scaling-stroke; }
html[data-theme=dark] .v2-map, html[data-theme=dark] .v2-sea, html[data-theme=dark] .v2-lake { background: #1b2a33; fill: #1b2a33; }
html[data-theme=dark] .v2-land { fill: #2a2d31; stroke: #444; }
.v2-route { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 0; opacity: .85; }
.v2-stop { cursor: pointer; } .v2-stop circle { stroke-width: 2; vector-effect: non-scaling-stroke; }
.v2-stop.approx circle { stroke-dasharray: 3 2; }
.v2-stop.on circle { stroke: var(--ink); stroke-width: 3; }
.v2-stop-l { font-family: var(--sans); font-weight: 600; fill: var(--ink); paint-order: stroke; stroke: var(--bg); stroke-linejoin: round; pointer-events: none; }
.v2-map-zoom { position: absolute; right: 10px; top: 10px; display: grid; gap: 6px; }
.v2-map-zoom button { width: 44px; height: 44px; border-radius: 12px; border: 0; background: color-mix(in srgb, var(--paper) 92%, transparent); color: var(--ink); font-size: 1.3rem; box-shadow: 0 2px 8px rgba(0,0,0,.08); cursor: pointer; }
.v2-map-info { display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: center; padding: 14px 4px; min-height: 64px; }
.v2-map-n { width: 32px; height: 32px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.v2-map-info strong, .v2-map-li strong { display: block; font-size: 1.02rem; } .v2-map-info small, .v2-map-li small { color: var(--muted); font-size: .85rem; }
html.v2 .v2-map-read, html.v2 .v2-tl-read { min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; cursor: pointer; }
.v2-map-fine { color: var(--muted); font-size: .8rem; line-height: 1.45; margin: 4px 0 0; }
.v2-map-h { font-family: var(--serif); font-size: 1.2rem; margin: 26px 0 6px; }
.v2-map-stops { list-style: none; counter-reset: s; padding: 0; margin: 0; }
.v2-map-stops li { counter-increment: s; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.v2-map-li { display: grid; grid-template-columns: 28px 1fr; text-align: left; width: 100%; padding: 12px 2px; min-height: 52px; border: 0; background: none; color: var(--ink); cursor: pointer; }
.v2-map-li::before { content: counter(s); grid-row: span 2; color: var(--muted); font-weight: 700; }
.v2-map-stops li.on .v2-map-li strong { color: var(--accent); }
.v2-tl { overflow-x: auto; overflow-y: hidden; border-radius: 20px; background: var(--paper); -webkit-overflow-scrolling: touch; cursor: grab; scrollbar-width: thin; }
.v2-tl-svg { display: block; }
.v2-tl-era { font: 700 11px var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.v2-tl-axis { stroke: var(--line); stroke-width: 2; }
.v2-tl-t { font: 600 11px var(--sans); fill: var(--ink); }
.v2-tl-ev { cursor: pointer; outline: none; } .v2-tl-ev circle { transition: r .15s; } .v2-tl-ev.on circle { r: 10; stroke: var(--ink); stroke-width: 2; }
.v2-tl-card { --c: var(--accent); margin-top: 12px; padding: 16px 18px; border-radius: 18px; background: color-mix(in srgb, var(--c) 8%, var(--paper)); }
.v2-tl-card .v2-eyebrow { color: var(--c); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; font-size: .68rem; display: block; }
.v2-tl-card strong { display: block; font-family: var(--serif); font-size: 1.3rem; margin: 2px 0; } .v2-tl-card p { margin: 4px 0 12px; line-height: 1.45; }
/* plan by days */
.v2-daysplan { margin: 10px 0 26px; padding: 4px 0 8px; font-family: var(--sans); }
.v2-dp-presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 6px; }
.v2-dp-presets button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--paper-2); color: var(--ink); font-weight: 600; cursor: pointer; }
.v2-dp-presets button[aria-pressed=true], .v2-daysplan .v2-map-chips button[aria-pressed=true] { background: var(--accent); color: #fff; }
.v2-dp-year { flex-basis: 100%; }
.v2-dp-dial { display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; margin: 14px 0 4px; }
.v2-dp-big { text-align: center; font-family: var(--serif); font-size: 2.3rem; }
.v2-dp-step { width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--paper-2); color: var(--ink); font-size: 1.6rem; cursor: pointer; }
#v2-dp-range { width: 100%; accent-color: var(--accent); height: 32px; }
.v2-dp-field { display: flex; justify-content: space-between; align-items: center; min-height: 52px; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.v2-dp-field input { border: 0; background: var(--paper-2); border-radius: 10px; padding: 8px 10px; color: var(--ink); font: inherit; }
.v2-dp-check { display: flex; gap: 10px; align-items: center; min-height: 52px; color: var(--muted); font-size: .9rem; }
.v2-dp-check input { width: 22px; height: 22px; accent-color: var(--accent); }
.v2-dp-live { display: grid; gap: 2px; margin: 10px 0 0; padding: 14px 16px; border-radius: 16px; background: var(--paper); }
.v2-dp-live strong { font-size: 1.1rem; } .v2-dp-live span { color: var(--muted); font-size: .88rem; }
html.v2 .v2-dp-go { background: var(--accent); }
/* phase 4: people cards and trees */
html.v2 .tx-page summary.v2-person-sum { display: grid !important; grid-template-columns: 40px 1fr 16px; column-gap: 14px; align-items: center; }
summary.v2-person-sum::after { grid-row: 1 / span 2; grid-column: 3; }
summary.v2-person-sum .v2-pc-av { grid-row: 1 / span 2; }
.v2-person-role { grid-column: 2; color: var(--muted); font-weight: 400; font-size: .86rem; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.v2-pc-av { --c: #8a4b2a; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 16%, var(--paper)); color: var(--c); font: 600 1.7rem var(--serif); }
.v2-pc-av.sm { width: 40px; height: 40px; font-size: 1.1rem; }
.v2-pc-hero { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; padding: 6px 0 4px; }
.v2-pc-hero h2 { font-family: var(--serif); font-size: 1.8rem; margin: 0; }
.v2-pc-role { margin: 4px 0 0; color: var(--muted); line-height: 1.4; }
.v2-pc-story { line-height: 1.55; margin: 4px 0; }
.v2-pc-fam { display: grid; gap: 3px; padding: 12px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.v2-pc-fam small { color: var(--muted); }
.v2-tree-open { justify-self: start; margin: 6px 0 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--accent-soft); color: var(--ink); font-weight: 600; cursor: pointer; }
.v2-tree-stage { height: min(58vh, 560px); background: var(--paper-2); }
.v2-tree-edge { fill: none; stroke: color-mix(in srgb, var(--accent) 55%, var(--line)); stroke-width: 1.6; }
.v2-tree-node rect { fill: var(--paper); stroke: var(--line); stroke-width: 1; }
.v2-tree-node.group rect { fill: var(--accent-soft); stroke: none; }
.v2-tree-node.on rect { stroke: var(--accent); stroke-width: 2.5; }
.v2-tree-node { cursor: pointer; } .v2-tree-n { font: 600 13px var(--sans); fill: var(--ink); pointer-events: none; } .v2-tree-s { font: 10.5px var(--sans); fill: var(--muted); pointer-events: none; }
.v2-tree-info { grid-template-columns: 1fr auto; }
.v2-tree-info strong { display: block; } .v2-tree-info small { color: var(--muted); }
.v2-tree-feat { margin: 4px 0 18px; }
.v2-tree-feat .v2-map-chips { flex-wrap: wrap; overflow: visible; }
/* phase 5: themes */
.v2-theme-row { display: grid; gap: 8px; width: 100%; text-align: left; padding: 14px 2px; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); background: none; color: var(--ink); font: inherit; cursor: pointer; min-height: 64px; }
.v2-theme-row strong { font-size: 1.05rem; }
.v2-thread { width: 100%; height: 120px; display: block; margin: 6px 0 2px; } .v2-thread.sm { height: 30px; }
.v2-thread-axis { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.v2-thread-none { fill: var(--line); } .v2-thread-bar { cursor: pointer; }
.v2-thread-legend { display: flex; justify-content: space-between; color: var(--muted); font-size: .75rem; }
.v2-thread-legend { position: relative; } .v2-thread-legend span:nth-child(2) { position: absolute; left: 59.8%; transform: translateX(-50%); }
.v2-theme-note { margin: 4px 0 6px; padding: 14px 16px; border-radius: 16px; background: var(--paper-2); line-height: 1.5; }
.v2-theme-note .v2-eyebrow { display: block; margin-bottom: 4px; color: var(--accent) !important; }
.v2-theme-book { padding: 14px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); scroll-margin-top: 12px; }
.v2-theme-bh { display: grid; border-left: 4px solid var(--g); padding-left: 10px; margin-bottom: 6px; } .v2-theme-bh small { color: var(--muted); }
.v2-theme-q { font-family: var(--serif); margin: 6px 0 8px; line-height: 1.45; color: var(--ink); }
.v2-tree-note { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; } .v2-tree-note.open { -webkit-line-clamp: unset; }
/* simple Plans */
.v2-plans-head { display: flex; justify-content: space-between; align-items: baseline; }
.v2-link { border: 0; background: none; color: var(--accent); font-weight: 600; font-size: .95rem; padding: 10px 0; cursor: pointer; }
.v2-today { margin: 6px 0 22px; padding: 20px; border-radius: 24px; background: var(--paper); font-family: var(--sans); }
.v2-today-head { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; }
.v2-today-head h2 { margin: 2px 0 0; font-family: var(--serif); font-size: 1.35rem; line-height: 1.2; }
.v2-today-head .v2-eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; font-weight: 700; color: var(--accent); margin: 0; }
.v2-ring { width: 64px; height: 64px; } .v2-ring-bg { fill: none; stroke: var(--paper-2); stroke-width: 6; } .v2-ring-fg { fill: none; stroke: var(--accent); stroke-width: 6; stroke-linecap: round; }
.v2-ring text { font: 700 13px var(--sans); fill: var(--ink); }
.v2-today-rows { margin: 16px 0 6px; }
.v2-today-row { display: grid; grid-template-columns: 44px 1fr; align-items: center; min-height: 56px; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.v2-today-row:last-child { border-bottom: 0; }
.v2-check { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); background: none; cursor: pointer; display: grid; place-items: center; padding: 0; }
.v2-check.on { background: var(--accent); border-color: var(--accent); }
.v2-check.on::after { content: ""; width: 8px; height: 14px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: translateY(-2px) rotate(45deg); }
.v2-today-ref { text-align: left; border: 0; background: none; color: var(--ink); font: 600 1.12rem var(--serif); padding: 14px 0; cursor: pointer; }
.v2-today-row.done .v2-today-ref { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line); }
html.v2 .v2-read-now { margin: 14px 0 6px; background: var(--accent); min-height: 54px; font-size: 1.05rem; }
.v2-today-sub { text-align: center; color: var(--muted); font-size: .85rem; margin: 6px 0 0; }
.v2-plans-lead { color: var(--muted); margin: 0 0 14px; }
.v2-start-grid { display: grid; gap: 10px; margin-bottom: 22px; }
.v2-start-card { display: grid; gap: 3px; text-align: left; padding: 20px; min-height: 84px; border: 0; border-radius: 20px; background: var(--paper); color: var(--ink); cursor: pointer; font-family: var(--sans); }
.v2-start-card strong { font: 600 1.25rem var(--serif); } .v2-start-card small { color: var(--muted); font-size: .9rem; }
.v2-start-card[data-start=year] { background: var(--accent); color: #fff; } .v2-start-card[data-start=year] small { color: rgba(255,255,255,.82); }
html.v2 .tx-page details.v2-plan-more { margin-top: 10px !important; border-top: 1px solid color-mix(in srgb, var(--line) 75%, transparent) !important; }
html.v2 .tx-page details.v2-plan-more > summary { color: var(--muted); font-weight: 600; }
.v2-plan-pick.on .v2-row-ic { background: var(--accent); color: #fff; }
/* step-by-step custom plan */
.v2-dp-dots { display: flex; gap: 6px; justify-content: center; margin: 0 0 14px; }
.v2-dp-dots i { width: 28px; height: 4px; border-radius: 2px; background: var(--line); }
.v2-daysplan[data-step="1"] [data-dot="1"], .v2-daysplan[data-step="2"] [data-dot="1"], .v2-daysplan[data-step="2"] [data-dot="2"], .v2-daysplan[data-step="3"] i { background: var(--accent); }
.v2-dp-stephead { display: flex; gap: 10px; align-items: center; font: 600 1.25rem var(--serif); margin: 4px 0 14px; }
.v2-dp-num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font: 700 .9rem var(--sans); }
.v2-dp-stepbox[data-step="1"] .v2-map-chips { flex-wrap: wrap; overflow: visible; }
.v2-dp-stepbox[data-step="1"] .v2-map-chips button { min-height: 52px; font-size: 1rem; flex: 1 1 45%; }
.v2-dp-nav { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; margin-top: 18px; }
.v2-dp-back { border: 0; background: none; color: var(--muted); font-weight: 600; padding: 14px 10px; cursor: pointer; }
html.v2 .v2-dp-next { margin: 0; background: var(--accent); grid-column: 2; }
.v2-dp-back[hidden] + .v2-dp-next { grid-column: 1 / -1; }
