/* Firm library: a feature page (Linear's feature template). 1024 column, a live Library list as the hero, two-tone 24px
   sentences, the version threads (one library item and the assessments that pin it) as the signature, the import sheet,
   one report page in two styles, the narrative template and a plan whose date rules become days. Prefix lb-. */

.lb-col { max-width: 1024px; margin: 0 auto; }
.lb-center { text-align: center; }
.lb-dim { color: var(--fg-3); }
.lb-mr { background: #3b4a5c !important; color: #eef3f8 !important; }
.lb-sr { font-family: "Geist Mono", monospace; font-size: 11.5px; color: var(--fg-2); letter-spacing: 0; }

/* ---------- hero ---------- */
.lb-hero { position: relative; padding-top: 168px; overflow: clip; }
.lb-eyebrow { justify-content: center; margin-bottom: 20px; color: var(--fg-2); }
.lb-h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 560; }
.lb-lede { margin: 24px auto 0; max-width: 54ch; font-size: 17px; line-height: 1.6; color: var(--fg-3); }
.lb-pill { margin-top: 32px; }

.lb-panels { position: relative; max-width: 1024px; height: 560px; margin: 80px auto 0;
  -webkit-mask-image: linear-gradient(#000 74%, transparent); mask-image: linear-gradient(#000 74%, transparent); }
.lb-panels::before { content: ""; position: absolute; left: 50%; top: -80px; width: 120%; height: 120%; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(50% 50% at 50% 30%, color-mix(in srgb, var(--fg-2) 9%, transparent), transparent 70%); }
.lb-listwin { left: 0; top: 0; width: 66%; height: 560px; }
.lb-setwin { right: 0; top: 64px; width: 50%; height: 496px; }

.lb-tr { height: 46px; padding: 0 16px; display: grid; grid-template-columns: 56px minmax(0, 1fr) 72px; gap: 12px; align-items: center; border-bottom: 1px solid var(--line-2); font-size: 12.5px; }
.lb-tr > span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-th { height: 36px; color: var(--fg-3); font-size: 12px; background: color-mix(in srgb, var(--bg-2) 70%, transparent); }
.lb-tr.ph-r { display: flex; }
.lb-tr.ph-r .ph { flex: 0 0 200px; }

.lb-tabs { height: 48px; padding: 0 20px; display: flex; align-items: center; gap: 22px; border-bottom: 1px solid var(--line-2); font-size: 13px; color: var(--fg-3); }
.lb-tabs .on { color: var(--fg-1); box-shadow: inset 0 -1.5px 0 var(--fg-1); height: 100%; display: flex; align-items: center; }
.lb-tabs .r { margin-left: auto; }
.lb-grp { padding: 18px 20px 8px; font-size: 13.5px; font-weight: 560; }
.lb-lt { margin: 0 20px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line-3); overflow: hidden; }
.lb-lr { display: grid; grid-template-columns: minmax(0, 1fr) 128px 84px; gap: 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line-2); font-size: 12.5px; color: var(--fg-2); transition: background var(--dur-reveal); }
.lb-lr:last-child { border-bottom: 0; }
.lb-lh { padding: 8px 14px; color: var(--fg-3); font-size: 12px; }
.lb-it { display: grid; gap: 2px; min-width: 0; }
.lb-it b { font-weight: 500; color: var(--fg-1); font-size: 13px; }
.lb-v { display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; }
.lb-v > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.lb-it small { font-size: 11.5px; color: var(--fg-3); }
.lb-def, .lb-draft { height: 18px; padding: 0 6px; border-radius: 5px; display: inline-flex; align-items: center; font-size: 11px; background: var(--bg-3); color: var(--fg-2); flex: none; }
.lb-draft { background: transparent; box-shadow: inset 0 0 0 1px var(--line-3); color: var(--fg-3); transition: opacity var(--dur-enter); }
.lb-draft.gone { opacity: 0; }
.lb-lr.flash { background: color-mix(in srgb, var(--ok-tint) 70%, transparent); }
.lb-dlg { position: absolute; z-index: 6; left: 50%; top: 150px; width: 360px; padding: 18px 18px 14px; border-radius: 12px; display: grid; gap: 6px; font-size: 13px;
  background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-3), 0 24px 60px #0000008c; transform: translate(-50%, 10px) scale(.97); opacity: 0; pointer-events: none;
  transition: opacity var(--dur-enter) var(--ease-spring), transform var(--dur-enter) var(--ease-spring); }
.lb-dlg b { font-weight: 560; font-size: 14px; }
.lb-dlg p { color: var(--fg-2); font-size: 12.5px; line-height: 1.5; }
.lb-dlg p.lb-dim { color: var(--fg-3); }
.lb-dlg.on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.lb-dlg-f { margin-top: 8px; display: flex; justify-content: flex-end; gap: 8px; }
.lb-toast { position: absolute; z-index: 6; left: 20px; bottom: 96px; height: 38px; padding: 0 14px 0 8px; border-radius: 10px; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--fg-2);
  background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--line-3), 0 12px 30px #00000066; opacity: 0; transform: translateY(8px); transition: opacity var(--dur-enter) var(--ease-spring), transform var(--dur-enter) var(--ease-spring); }
.lb-toast.on { opacity: 1; transform: none; }
:root[data-theme="light"] .lb-dlg, :root[data-theme="light"] .lb-toast { background: #fff; box-shadow: inset 0 0 0 1px #0000001a, 0 18px 40px #0000001f; }

/* ---------- sections ---------- */
.lb-sec { padding-top: 176px; }
.lb-sec-sm { padding-top: 128px; }
.lb-tt { max-width: 780px; font-size: 24px; line-height: 1.33; letter-spacing: -0.018em; color: var(--fg-3); font-weight: 450; }
.lb-tt span { color: var(--fg-1); }
.lb-h2 { font-size: clamp(30px, 3.2vw, 40px); line-height: 1.1; letter-spacing: -0.026em; }
.lb-stage { margin-top: 56px; }
.lb-stage .stage2-in { height: 640px; }

/* ---------- 1: intro with the Hairline mould figure ---------- */
.lb-intro { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.lb-fig { display: flex; flex-direction: column; }
.lb-fig .fig-art { min-height: 280px; }
@media (max-width: 860px) { .lb-intro { grid-template-columns: 1fr; gap: 16px; } .lb-fig .fig-art { min-height: 240px; } }

/* ---------- 1: version threads ---------- */
.lb-thr { position: relative; margin-top: 64px; padding: 28px 32px 0; border-radius: 20px;
  background: radial-gradient(70% 90% at 30% 0%, #1d1e21 0%, #121315 42%, var(--bg) 88%); box-shadow: inset 0 1px 0 #ffffff12, inset 0 0 0 1px #ffffff0a; }
:root[data-theme="light"] .lb-thr { background: radial-gradient(70% 90% at 30% 0%, #f1f1f3 0%, #f7f7f8 50%, var(--bg) 100%); box-shadow: inset 0 0 0 1px #0000000d; }
.lb-thr-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lb-step { min-height: 40px; padding: 0 14px 0 8px; border: 0; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: var(--fg-3);
  background: transparent; box-shadow: inset 0 0 0 1px var(--line); transition: color var(--dur-enter), background var(--dur-enter), box-shadow var(--dur-enter); position: relative; overflow: hidden; }
.lb-step i { width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; font-style: normal; font-size: 11px; box-shadow: inset 0 0 0 1px var(--line-3); }
.lb-step:hover { color: var(--fg-1); }
.lb-step[aria-pressed="true"] { color: var(--fg-1); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-3); }
.lb-step[aria-pressed="true"] i { background: var(--fg-1); color: var(--bg); box-shadow: none; }
.lb-step::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: calc(var(--p, 0) * 100%); background: var(--fg-3); }
.lb-play { margin-left: auto; width: 40px; height: 40px; border: 0; border-radius: 999px; display: grid; place-items: center; cursor: pointer; color: var(--fg-2); background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.lb-play svg { width: 14px; height: 14px; }
.lb-play .pl { display: none; }
.lb-play.paused .pl { display: block; }
.lb-play.paused .pa { display: none; }

.lb-thr-body { position: relative; margin-top: 32px; display: grid; grid-template-columns: 330px minmax(0, 1fr); column-gap: 140px; align-items: center; }
.lb-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.lb-wires path { fill: none; stroke-width: 1.2; transition: stroke var(--dur-draw), opacity var(--dur-draw); }
.lb-wires .base { stroke: var(--line-3); }
.lb-wires .flow { stroke: var(--fg-2); stroke-dasharray: 2 14; stroke-linecap: round; animation: lb-flow 1.4s linear infinite; opacity: .7; }
.lb-wires .flow.v4 { stroke: var(--ok); opacity: .9; }
.lb-wires .flow.held { animation-play-state: paused; opacity: .35; }
@keyframes lb-flow { to { stroke-dashoffset: -16; } }

.lb-src { position: relative; z-index: 1; padding: 18px 0 14px; border-radius: 14px; background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--line-3), 0 24px 60px #00000059; }
:root[data-theme="light"] .lb-src, :root[data-theme="light"] .lb-a { background: #fff; box-shadow: inset 0 0 0 1px #0000001a, 0 12px 32px #00000012; }
.lb-src-h { padding: 0 18px 14px; display: grid; gap: 2px; font-size: 12.5px; border-bottom: 1px solid var(--line-2); }
.lb-src-h b { font-weight: 500; font-size: 15px; letter-spacing: -0.01em; }
.lb-vers { list-style: none; margin: 0; padding: 8px 0; position: relative; }
.lb-vers li { position: relative; display: grid; grid-template-columns: 14px 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 18px; font-size: 12.5px; color: var(--fg-3);
  transition: opacity var(--dur-reveal) var(--ease-spring), max-height var(--dur-swap) var(--ease-spring), padding var(--dur-swap) var(--ease-spring), color var(--dur-enter); max-height: 60px; overflow: hidden; }
.lb-vers li i { width: 9px; height: 9px; border-radius: 999px; box-shadow: inset 0 0 0 1.2px var(--fg-4); justify-self: center; transition: background var(--dur-enter), box-shadow var(--dur-enter); }
.lb-vers li b { font-weight: 500; color: var(--fg-2); font-family: "Geist Mono", monospace; font-size: 12px; letter-spacing: 0; }
.lb-vers li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-vers li em { font-style: normal; font-size: 11.5px; color: var(--fg-4); }
.lb-vers li.cur { color: var(--fg-1); }
.lb-vers li.cur i { background: var(--fg-1); box-shadow: 0 0 0 4px color-mix(in srgb, var(--fg-1) 12%, transparent); }
.lb-vers li.cur b { color: var(--fg-1); }
.lb-vers li.pinned i { background: var(--fg-3); box-shadow: none; }
.lb-vers::before { content: ""; position: absolute; left: 24px; top: 22px; bottom: 22px; width: 1px; background: var(--line-3); }
.lb-thr[data-step="0"] #lb-v4 { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; }
.lb-src-f { padding: 10px 18px 0; border-top: 1px solid var(--line-2); font-size: 12px; color: var(--fg-3); }

.lb-asm { position: relative; z-index: 1; display: grid; gap: 12px; }
.lb-a { border-radius: 12px; background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--line-3), 0 16px 40px #0000004d; overflow: hidden; transition: opacity var(--dur-reveal) var(--ease-spring), transform var(--dur-reveal) var(--ease-spring), box-shadow var(--dur-draw); }
.lb-a-h { height: 44px; padding: 0 14px; display: flex; align-items: center; gap: 10px; font-size: 13px; }
.lb-a-h b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-pin { margin-left: auto; height: 22px; padding: 0 8px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 11.5px; white-space: nowrap; color: var(--fg-2); box-shadow: inset 0 0 0 1px var(--line-3); transition: color var(--dur-enter), background var(--dur-enter), box-shadow var(--dur-enter); }
.lb-pin.v4 { color: var(--ok); background: var(--ok-tint); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 30%, transparent); }
.lb-a-rows { padding: 0 14px 10px; display: grid; }
.lb-a-rows > div { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; align-items: center; height: 30px; font-size: 12.5px; color: var(--fg-2); border-top: 1px solid var(--line-2); }
.lb-a-rows > div > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-a-rows .lb-new { height: 0; opacity: 0; border-top-color: transparent; overflow: hidden; transition: height var(--dur-reveal) var(--ease-spring), opacity var(--dur-draw), border-color var(--dur-draw); }
.lb-a-rows .lb-new .ap-key { color: var(--ok); }
.lb-thr[data-step="2"] .lb-new { height: 30px; opacity: 1; border-top-color: var(--line-2); }
.lb-thr[data-step="2"] .lb-new:nth-child(4) { transition-delay: var(--dur-hover); }
.lb-thr[data-step="2"] .lb-new:nth-child(5) { transition-delay: var(--dur-enter); }
.lb-a-one > div { grid-template-columns: 1fr; }
.lb-note, .lb-stamp { margin: 0 14px; max-height: 0; opacity: 0; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; color: var(--fg-2);
  transition: max-height var(--dur-reveal) var(--ease-spring), opacity var(--dur-draw), margin var(--dur-reveal) var(--ease-spring); }
.lb-note > span:first-child { margin-right: auto; color: var(--fg-1); }
.lb-thr[data-step="1"] .lb-note, .lb-thr[data-step="2"] .lb-a:not([data-a="nw"]) .lb-note { max-height: 60px; opacity: 1; margin-bottom: 12px; }
.lb-thr[data-step="2"] .lb-stamp { max-height: 60px; opacity: 1; margin-bottom: 12px; }
.lb-stamp { color: var(--fg-3); flex-wrap: nowrap; }
.lb-a-new { max-height: 90px; opacity: 0; transform: translateX(12px); box-shadow: none; background: transparent; border: 1px dashed var(--line-3);
  transition: opacity var(--dur-reveal) var(--ease-spring) var(--dur-hover), transform var(--dur-reveal) var(--ease-spring) var(--dur-hover), max-height var(--dur-reveal) var(--ease-spring), margin var(--dur-reveal) var(--ease-spring); }
:root[data-theme="light"] .lb-a-new { background: transparent; box-shadow: none; }
.lb-thr[data-step="1"] .lb-a-new, .lb-thr[data-step="2"] .lb-a-new { opacity: 1; transform: none; }
.lb-thr[data-step="0"] .lb-a-new { max-height: 0; margin-top: -12px; border-width: 0; transition: opacity var(--dur-enter), transform var(--dur-enter), max-height var(--dur-reveal) var(--ease-spring) var(--dur-hover), margin var(--dur-reveal) var(--ease-spring) var(--dur-hover); }

.lb-thr-cap { margin: 28px -32px 0; padding: 22px 32px 26px; border-top: 1px solid var(--line-2); min-height: 104px; }
.lb-thr-cap h3 { font-size: 15px; font-weight: 500; }
.lb-thr-cap p { margin-top: 4px; color: var(--fg-3); font-size: 15px; max-width: 64ch; }

/* ---------- 2: import sheet ---------- */
.lb-impwin { left: 12%; right: 12%; top: 56px; height: 548px; }
.lb-stage-i .stage2-in { height: 720px; }
.lb-strip { list-style: none; margin: 0; padding: 14px 20px; display: flex; gap: 6px; border-bottom: 1px solid var(--line-2); font-size: 12px; color: var(--fg-4); overflow: hidden; }
.lb-strip li { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding-right: 10px; transition: color var(--dur-enter); }
.lb-strip li i { width: 18px; height: 18px; border-radius: 999px; display: grid; place-items: center; font-style: normal; font-size: 10px; box-shadow: inset 0 0 0 1px var(--line-3); transition: background var(--dur-enter), color var(--dur-enter), box-shadow var(--dur-enter); }
.lb-strip li.done { color: var(--fg-3); }
.lb-strip li.done i { background: var(--bg-3); color: var(--fg-2); }
.lb-strip li.on { color: var(--fg-1); }
.lb-strip li.on i { background: var(--fg-1); color: var(--bg); box-shadow: none; }
.lb-file { margin: 16px 20px 6px; display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.lb-file svg { width: 15px; height: 15px; color: var(--fg-3); flex: none; }
.lb-file b { font-weight: 500; }
.lb-pane { position: absolute; left: 20px; right: 20px; top: 156px; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity var(--dur-enter) var(--ease-spring), transform var(--dur-draw) var(--ease-spring); }
#lb-imp[data-k="1"] .lb-pane[data-k="1"], #lb-imp[data-k="2"] .lb-pane[data-k="2"], #lb-imp[data-k="3"] .lb-pane[data-k="3"], #lb-imp[data-k="4"] .lb-pane[data-k="4"] { opacity: 1; transform: none; }
.lb-cm { display: grid; grid-template-columns: 140px 170px minmax(0, 1fr); gap: 14px; align-items: center; height: 44px; border-bottom: 1px solid var(--line-2); font-size: 12.5px; }
.lb-cm > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-cm-h { height: 34px; color: var(--fg-3); font-size: 12px; grid-template-columns: 140px minmax(0, 1fr); }
.lb-col-chip { justify-self: start; height: 26px; padding: 0 10px; border-radius: 7px; display: inline-flex; align-items: center; font-size: 12px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-3); white-space: nowrap;
  opacity: 0; transform: translateX(48px); transition: opacity var(--dur-draw) var(--ease-spring), transform var(--dur-swap) var(--ease-spring); transition-delay: calc(var(--i) * var(--dur-hover) + var(--dur-hover)); }
#lb-imp[data-k="1"] .lb-col-chip, #lb-imp.past1 .lb-col-chip { opacity: 1; transform: none; }
.lb-left { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; color: var(--fg-3); }
.lb-out { height: 24px; padding: 0 8px; border-radius: 6px; display: inline-flex; align-items: center; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--fg-4); text-decoration: line-through; text-decoration-color: transparent;
  transition: text-decoration-color var(--dur-enter); transition-delay: calc(var(--i) * var(--dur-hover) + var(--dur-swap)); }
#lb-imp[data-k="1"] .lb-out { text-decoration-color: var(--fg-4); }
.lb-pv-h { font-size: 15px; font-weight: 500; margin: 2px 0 10px; }
.lb-pv-s { margin: -6px 0 12px; font-size: 13px; }
.lb-pv { display: grid; grid-template-columns: 70px 190px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 44px; border-top: 1px solid var(--line-2); font-size: 12.5px;
  opacity: 0; transform: translateY(6px); transition: opacity var(--dur-enter), transform var(--dur-draw) var(--ease-spring); }
.lb-pv > span:first-child { font-family: "Geist Mono", monospace; font-size: 11.5px; color: var(--fg-3); letter-spacing: 0; }
.lb-pv b { font-weight: 500; }
#lb-imp[data-k="2"] .lb-pv { opacity: 1; transform: none; }
#lb-imp[data-k="2"] .lb-pv:nth-child(3) { transition-delay: var(--dur-hover); }
#lb-imp[data-k="2"] .lb-pv:nth-child(4) { transition-delay: var(--dur-enter); }
#lb-imp[data-k="2"] .lb-pv:nth-child(5) { transition-delay: var(--dur-enter); }
.lb-pv-f, .lb-sg-f { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line-2); font-size: 12.5px; }
.lb-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.lb-ai { box-shadow: inset 0 0 0 1px var(--cu-line); }
.lb-ai .ai-mark { --ai-mark-h: 14px; }
.lb-ai.press { background: var(--cu-tint); }
.lb-sugs { margin-top: 14px; opacity: 0; transition: opacity var(--dur-draw); }
.lb-sugs.on { opacity: 1; }
.lb-sg { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-2); font-size: 12.5px; }
.lb-sg b { font-weight: 500; }
.lb-sg p { grid-column: 2 / -1; color: var(--fg-3); font-size: 12px; }
.lb-sg-stamp { margin-top: 12px; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--fg-2); opacity: 0; transform: translateY(6px); transition: opacity var(--dur-draw) var(--ease-spring), transform var(--dur-draw) var(--ease-spring); }
.lb-sg-stamp.on { opacity: 1; transform: none; }
.lb-kv { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 42px; border-top: 1px solid var(--line-2); font-size: 13px; }
.lb-kv span { color: var(--fg-3); }
.lb-kv b { font-weight: 500; }

/* ---------- 3: report style, one page in two styles ---------- */
.lb-rs { margin-top: 64px; display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 48px; align-items: start; }
.lb-rs-side { display: grid; gap: 24px; position: sticky; top: 120px; }
.lb-meas { border-radius: 12px; background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--line-3); overflow: hidden; }
:root[data-theme="light"] .lb-meas { background: #fff; }
.lb-meas-h { padding: 12px 14px; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--fg-2); border-bottom: 1px solid var(--line-2); }
.lb-meas-h svg { width: 15px; height: 15px; color: var(--fg-3); flex: none; }
.lb-meas-h span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-meas-r { padding: 10px 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; row-gap: 2px; font-size: 12.5px; border-bottom: 1px solid var(--line-2);
  opacity: .25; transition: opacity var(--dur-draw); transition-delay: calc(var(--i) * var(--dur-enter)); }
.lb-meas-r:last-child { border-bottom: 0; }
.lb-meas-r span { color: var(--fg-3); }
.lb-meas-r b { font-weight: 500; text-align: right; }
.lb-meas-r em { grid-column: 1 / -1; font-style: normal; font-size: 12px; color: var(--fg-3); }
.lb-meas-r em.ok { color: var(--ok); }
.lb-rs.measured .lb-meas-r { opacity: 1; }
.lb-seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 10px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.lb-seg button { position: relative; z-index: 1; min-height: 40px; border: 0; background: transparent; cursor: pointer; font-size: 13px; color: var(--fg-3); border-radius: 8px; transition: color var(--dur-enter); }
.lb-seg button[aria-checked="true"] { color: var(--fg-1); }
.lb-seg-k { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 8px; background: var(--bg-4); box-shadow: inset 0 0 0 1px var(--line-3); transition: transform var(--dur-enter) var(--ease-spring); }
:root[data-theme="light"] .lb-seg-k { background: #fff; box-shadow: 0 1px 2px #0000001a, inset 0 0 0 1px #00000010; }
.lb-seg.b .lb-seg-k { transform: translateX(100%); }
.lb-rs-cap { font-size: 15px; color: var(--fg-3); }
.lb-rs-cap b { color: var(--fg-1); font-weight: 500; }

/* the final report page, as Enpasse previews it: dark product UI, Geist type; the words a style changes get a grey underline (no AI here) */
.lb-page { position: relative; border-radius: 12px; background: var(--bg-1); color: var(--fg-2); box-shadow: inset 0 0 0 1px var(--line-3), 0 30px 80px #00000059;
  font-size: 13.5px; line-height: 1.6; min-height: 440px; overflow: hidden; }
:root[data-theme="light"] .lb-page { background: #fff; box-shadow: inset 0 0 0 1px #0000001a, 0 18px 40px #00000012; }
.lb-page-bar { height: 44px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line-2); font-size: 12.5px; }
.lb-page-bar b { font-weight: 500; color: var(--fg-1); }
.lb-page-h { display: flex; justify-content: space-between; gap: 16px; margin: 0 22px; padding: 16px 0 12px; border-bottom: 1px solid var(--line-2); font-size: 12px; color: var(--fg-2); }
.lb-pr { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 14px; align-items: start; margin: 0 22px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.lb-pr:last-child { border-bottom: 0; padding-bottom: 20px; }
.lb-pr p { color: var(--fg-1); }
.lb-page .ap-key { margin-top: 1px; }
.lb-pr p, .lb-ph-l { transition: opacity var(--dur-enter) var(--ease-swap), filter var(--dur-enter) var(--ease-swap); }
.lb-pr p.out, .lb-ph-l.out { opacity: 0; filter: blur(3px); }
.lb-pr p mark, .lb-ph-l mark { --u: var(--fg-3); color: inherit; padding-bottom: 2px; background: linear-gradient(var(--u), var(--u)) no-repeat 0 100% / 0% 1px; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size var(--dur-draw) var(--ease-spring); }
.lb-pr p mark.on, .lb-ph-l mark.on { background-size: 100% 1px; }

/* ---------- 4: the narrative template ---------- */
.lb-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 64px; align-items: start; }
.lb-split-t { position: sticky; top: 120px; display: grid; gap: 16px; }
.lb-split-t > p { color: var(--fg-3); font-size: 15px; max-width: 42ch; }
.lb-split-t > p b { color: var(--fg-1); font-weight: 500; }
.lb-seg-sm { max-width: 320px; margin-top: 8px; }
.lb-tpl { border-radius: 14px; background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--line-3), 0 30px 80px #00000059; padding: 0 0 18px; overflow: hidden; }
:root[data-theme="light"] .lb-tpl { background: #fff; box-shadow: inset 0 0 0 1px #0000001a, 0 18px 40px #00000012; }
.lb-tpl-h { height: 48px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.lb-tpl-h b { font-weight: 500; }
.lb-blk { position: relative; margin: 12px 18px 0; padding: 12px 14px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line-3); font-size: 13px; color: var(--fg-2); transition: box-shadow var(--dur-enter), background var(--dur-enter); }
.lb-blk-l { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 12px; color: var(--fg-3); }
.lb-slot { padding: 0 5px; border-radius: 4px; background: var(--bg-3); color: var(--fg-1); font-size: 12px; }
.lb-blk-ai { border: 1px dashed var(--line-3); box-shadow: none; }
.lb-blk-ai .lb-blk-l:first-child { color: var(--cu); }
.lb-blk-ai .ai-mark { --ai-mark-h: 14px; }
.lb-blk-no { display: none !important; }
.lb-tpl.no .lb-blk-ai .lb-blk-l:first-child { display: none; }
.lb-tpl.no .lb-blk-no { display: flex !important; color: var(--fg-1); }
.lb-rules, .lb-words { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.lb-rules span, .lb-words span { height: 24px; padding: 0 8px; border-radius: 6px; display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; background: var(--bg-2); color: var(--fg-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.lb-words b { font-weight: 500; color: var(--fg-1); }
.lb-blk.hot { background: color-mix(in srgb, var(--bg-3) 70%, transparent); box-shadow: inset 0 0 0 1px var(--fg-4); }
.lb-blk-ai.hot { box-shadow: inset 0 0 0 1px var(--cu-line); }
.lb-lead { margin: 16px 18px 0; padding: 14px; border-radius: 10px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 12.5px; }
.lb-lead-h { display: grid; gap: 2px; }
.lb-lead-h b { font-weight: 500; }
.lb-ba { margin-top: 10px; display: grid; gap: 8px; }
.lb-ba > div { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; align-items: start; color: var(--fg-2); }
.lb-sw { white-space: nowrap; }
.lb-sw s, .lb-sw ins { text-decoration: none; }
.lb-sw s { text-decoration: line-through; text-decoration-color: transparent; transition: color var(--dur-enter), text-decoration-color var(--dur-enter); }
.lb-sw ins { display: inline-block; vertical-align: bottom; max-width: 0; margin-left: 0; overflow: hidden; white-space: nowrap; color: var(--ok); opacity: 0;
  transition: max-width var(--dur-reveal) var(--ease-spring) var(--dur-hover), margin var(--dur-reveal) var(--ease-spring) var(--dur-hover), opacity var(--dur-enter) var(--dur-enter); }
.lb-lead.used .lb-sw s { color: var(--fg-4); text-decoration-color: var(--fg-4); }
.lb-lead.used .lb-sw ins { max-width: 80px; margin-left: .3em; opacity: 1; }
.lb-lead-f { margin-top: 12px; display: flex; justify-content: flex-end; gap: 8px; }

/* ---------- 5: plan with date rules ---------- */
.lb-planwin { left: 10%; right: 10%; top: 64px; height: 576px; }
.lb-pl { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 210px; gap: 12px; align-items: center; height: 46px; padding: 0 18px; border-bottom: 1px solid var(--line-2); font-size: 12.5px; color: var(--fg-2); }
.lb-pl b { font-weight: 500; color: var(--fg-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-pl > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-pl-h { height: 36px; color: var(--fg-3); font-size: 12px; background: color-mix(in srgb, var(--bg-2) 70%, transparent); }
.lb-pl-sub { display: flex; justify-content: space-between; height: 38px; color: var(--fg-3); font-size: 12px; background: color-mix(in srgb, var(--bg-2) 70%, transparent); }
.lb-rule { justify-self: start; max-width: 100%; height: 24px; padding: 0 8px; border-radius: 6px; display: inline-flex !important; align-items: center; font-size: 12px; box-shadow: inset 0 0 0 1px var(--line-3); color: var(--fg-2); transition: opacity var(--dur-enter), filter var(--dur-enter), color var(--dur-enter), background var(--dur-enter), box-shadow var(--dur-enter); }
.lb-rule.out { opacity: 0; filter: blur(3px); }
.lb-rule.day { color: var(--fg-1); background: var(--bg-3); box-shadow: none; font-variant-numeric: tabular-nums; }
.lb-pl-f { padding: 14px 18px; font-size: 12.5px; color: var(--fg-3); opacity: 0; transition: opacity var(--dur-draw); }
.lb-pl-f.on { opacity: 1; }

/* ---------- also, related, pre-footer ---------- */
.lb-pre { margin-top: 128px; padding: 96px 0; border-top: 1px solid var(--line); }
.lb-pre-in { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.lb-pre h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.12; letter-spacing: -0.026em; }

/* reduced motion: end states, no flowing wires */
@media (prefers-reduced-motion: reduce) {
  .lb-wires .flow { animation: none; }
}

/* ---------- small screens ---------- */
@media (max-width: 1024px) {
  .lb-thr-body { grid-template-columns: 290px minmax(0, 1fr); column-gap: 80px; }
  .lb-rs { grid-template-columns: 1fr; }
  .lb-rs-side { position: static; grid-template-columns: 1fr 1fr; align-items: start; }
  .lb-rs-cap { grid-column: 1 / -1; order: -1; }
  .lb-split { grid-template-columns: 1fr; gap: 40px; }
  .lb-split-t { position: static; }
}
@media (max-width: 860px) {
  .lb-panels { height: 560px; }
  .lb-setwin { display: none; }
  .lb-listwin { width: 100%; }
  .lb-thr-body { grid-template-columns: 1fr; row-gap: 40px; min-height: 0; }
  .lb-asm { padding-left: 28px; }
  .lb-impwin, .lb-planwin { left: 16px; right: 16px; }
}
@media (max-width: 640px) {
  .lb-hero { padding-top: 132px; }
  .lb-h1 { font-size: 36px; }
  .lb-sec { padding-top: 120px; }
  .lb-tt { font-size: 20px; }
  .lb-panels { height: 520px; margin-top: 56px; }
  .lb-listwin { height: 520px; }
  .lb-tabs .r { display: none; }
  .lb-lr { grid-template-columns: minmax(0, 1fr) auto; }
  .lb-lr > span:last-child { display: none; }
  .lb-lh > span:nth-child(2) { display: none; }
  .lb-lr > span:nth-child(2) { font-size: 12px; color: var(--fg-3); }
  .lb-grp { padding: 16px 14px 8px; }
  .lb-lt { margin: 0 12px; }
  .lb-dlg { width: calc(100% - 24px); top: 120px; }
  .lb-toast { left: 12px; right: 12px; bottom: 80px; height: auto; min-height: 38px; padding: 8px 12px 8px 8px; }

  .lb-thr { margin-top: 40px; padding: 18px 16px 0; }
  .lb-thr-ctl { gap: 6px; }
  .lb-step { font-size: 12.5px; padding-right: 12px; }
  .lb-play { margin-left: 0; }
  .lb-thr-body { margin-top: 22px; }
  .lb-asm { padding-left: 22px; }
  .lb-vers li { grid-template-columns: 14px 24px minmax(0, 1fr) auto; padding: 8px 14px; }
  .lb-vers::before { left: 20px; }
  .lb-src-h, .lb-src-f { padding-left: 14px; padding-right: 14px; }
  .lb-a-h { flex-wrap: wrap; height: auto; min-height: 44px; padding: 10px 12px; row-gap: 6px; }
  .lb-a-rows { padding: 0 12px 8px; }
  .lb-note, .lb-stamp { margin-left: 12px; margin-right: 12px; }
  .lb-stamp { flex-wrap: nowrap; align-items: flex-start; }
  .lb-thr[data-step="2"] .lb-stamp { max-height: 90px; }
  .lb-note > span:first-child { width: 100%; }
  .lb-thr-cap { margin: 24px -16px 0; padding: 18px 16px 22px; }

  .lb-stage .stage2-in { height: 640px; }
  .lb-impwin { left: 12px; right: 12px; top: 32px; height: 600px; }
  .lb-strip li:not(.on) { font-size: 0; gap: 0; padding-right: 0; }
  .lb-strip { gap: 8px; }
  .lb-pane { left: 14px; right: 14px; }
  .lb-file { margin-left: 14px; margin-right: 14px; }
  .lb-file .lb-dim { display: none; }
  .lb-cm { grid-template-columns: 112px minmax(0, 1fr); height: 44px; }
  .lb-cm > span:last-child { display: none; }
  .lb-cm-h > span:last-child { display: inline; }
  .lb-pv { grid-template-columns: 58px minmax(0, 1fr); row-gap: 0; padding: 8px 0; }
  .lb-pv .lb-dim { grid-column: 2; font-size: 12px; }
  .lb-sg { grid-template-columns: 52px minmax(0, 1fr) auto; }
  .lb-sg p { display: none; }
  .lb-sg-f { flex-wrap: wrap; }
  .lb-kv { grid-template-columns: 84px minmax(0, 1fr); }
  .stage2-cap { position: static; max-width: none; padding: 18px 12px 12px; }

  .lb-rs { margin-top: 40px; gap: 28px; }
  .lb-rs-side { grid-template-columns: 1fr; }
  .lb-page { min-height: 0; }
  .lb-page-h, .lb-pr { margin: 0 14px; }
  .lb-page-bar .lb-dim { display: none; }
  .lb-pr { grid-template-columns: 1fr; gap: 6px; }
  .lb-pr .ap-key { justify-self: start; }

  .lb-blk { margin-left: 12px; margin-right: 12px; }
  .lb-lead { margin-left: 12px; margin-right: 12px; }
  .lb-tpl-h { padding: 0 12px; }
  .lb-tpl-h .lb-dim { display: none; }

  .lb-planwin { left: 12px; right: 12px; top: 28px; height: 610px; }
  .lb-stage-t .stage2-in { height: 650px; }
  .lb-pl b { white-space: normal; line-height: 1.35; }
  .lb-h1 { font-size: 34px; }
  .lb-h1 span { display: inline !important; }
  .lb-h1 span + span::before { content: " "; }
  .lb-stage .win-bar > span:not(.r):not(.ap-badge) { display: none; }
  .lb-pl { grid-template-columns: minmax(0, 1fr) auto; height: auto; min-height: 52px; padding: 8px 12px; row-gap: 2px; }
  .lb-pl > span:nth-child(2) { grid-column: 1; grid-row: 2; font-size: 12px; color: var(--fg-3); }
  .lb-pl .lb-rule { grid-column: 2; grid-row: 1 / span 2; justify-self: end; }
  .lb-pl-h > span:nth-child(2) { display: none; }
  .lb-pl-h { min-height: 36px; }
  .lb-pl-h > span:last-child { grid-column: 2; grid-row: 1; }
  .lb-pl-sub { min-height: 38px; }
  .lb-pl-f { padding: 12px; }
  .lb-pre { padding: 72px 0; margin-top: 96px; }
}

/* ---------- round 2 (bold, calm): a version diff in place of the line figure, the report on a white sheet ---------- */
.lb-panels::before, .lb-hero::before { display: none !important; }
/* the report preview is report text (the firm's own wording, no AI): the shared .doc-page normal surface, never white */
.lb-page { padding: 0; line-height: 1.6; background: var(--bg-2); color: var(--fg-2); box-shadow: inset 0 0 0 1px var(--line-3), 0 30px 80px #00000059; }
:root[data-theme="light"] .lb-page { background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-3), 0 20px 50px #0000000f; }

/* ================= NEW (invention round): drag the start, every date follows ================= */
.lb-dg { margin-top: 56px; }
.lb-dg-win { --lc: 470px; border-radius: 14px; background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--line-3), 0 30px 80px #00000059; overflow: hidden; font-size: 13px; }
:root[data-theme="light"] .lb-dg-win { background: #fff; box-shadow: inset 0 0 0 1px var(--line-3), 0 24px 60px #00000014; }
.lb-dg-bar { height: 48px; padding: 0 20px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line-2); color: var(--fg-3); font-size: 12.5px; }
.lb-dg-bar b { color: var(--fg-1); font-weight: 500; font-size: 13.5px; }
.lb-dg-bar .r { margin-left: auto; }
.lb-dg-cal { display: grid; grid-template-columns: var(--lc) minmax(0, 1fr); border-bottom: 1px solid var(--line-2); }
.lb-dg-months { grid-column: 2; position: relative; height: 30px; font-size: 11.5px; color: var(--fg-3); }
.lb-dg-months span { position: absolute; top: 9px; padding-left: 6px; border-left: 1px solid var(--line-3); height: 21px; }
.lb-dg-track { grid-column: 2; position: relative; height: 70px; margin-right: 24px; touch-action: none; }
.lb-dg-span { position: absolute; top: 44px; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--fg-1) 14%, transparent); }
.lb-dg-pin { position: absolute; top: 0; bottom: 0; width: 28px; margin-left: -14px; padding: 0; border: 0; background: none; cursor: ew-resize; touch-action: none; color: var(--fg-1); }
.lb-dg-pin::before { content: ""; position: absolute; left: 13px; top: 30px; bottom: 6px; width: 2px; border-radius: 1px; background: var(--fg-2); }
.lb-dg-pin::after { content: ""; position: absolute; left: 7px; top: 40px; width: 14px; height: 14px; border-radius: 99px; background: var(--fg-1); box-shadow: 0 0 0 3px var(--bg-1); transition: transform var(--dur-hover) var(--ease-spring); }
:root[data-theme="light"] .lb-dg-pin::after { box-shadow: 0 0 0 3px #fff; }
.lb-dg-pin.drag::after, .lb-dg-pin:focus-visible::after { transform: scale(1.25); }
.lb-dg-pin:focus-visible { outline: none; }
.lb-dg-lab { position: absolute; left: 14px; top: 6px; transform: translateX(-50%); display: flex; gap: 6px; white-space: nowrap; font-size: 12px; height: 22px; padding: 0 8px; align-items: center; border-radius: 6px; background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--line-3); }
.lb-dg-lab b { font-weight: 500; }
.lb-dg-lab i { font-style: normal; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.lb-dg-rows { position: relative; }
.lb-dg-sub { height: 32px; padding: 0 20px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--fg-3); background: color-mix(in srgb, var(--fg-1) 3%, transparent); border-bottom: 1px solid var(--line-2); }
.lb-dg-r { height: 44px; display: grid; grid-template-columns: var(--lc) minmax(0, 1fr); border-bottom: 1px solid var(--line-2); align-items: center; }
.lb-dg-l { padding: 0 16px 0 20px; display: grid; grid-template-columns: minmax(0, 1fr) 96px 150px 56px; gap: 10px; align-items: center; }
.lb-dg-l b { font-weight: 500; color: var(--fg-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-dg-l .o { color: var(--fg-3); font-size: 12px; white-space: nowrap; }
.lb-dg-rule { justify-self: start; height: 22px; padding: 0 8px; border-radius: 6px; display: inline-flex; align-items: center; gap: 6px; font-family: "Geist Mono", monospace; font-size: 11px; color: var(--fg-2); box-shadow: inset 0 0 0 1px var(--line-3); white-space: nowrap; }
.lb-dg-rule.hot { color: var(--fg-1); box-shadow: inset 0 0 0 1px var(--fg-4); background: var(--bg-3); }
.lb-dg-d { text-align: right; font-variant-numeric: tabular-nums; color: var(--fg-1); white-space: nowrap; }
.lb-dg-d.tick { animation: lb-dg-tick 500ms var(--ease-swap); }
@keyframes lb-dg-tick { 0% { color: var(--fg-3); } }
.lb-dg-t { position: relative; height: 100%; margin-right: 24px; }
.lb-dg-t::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line-2); }
.lb-dg-dot { position: absolute; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 3px; background: var(--fg-2); transform: rotate(45deg); transition: left 140ms var(--ease-swap); }
.lb-dg-dot.pci { background: transparent; box-shadow: inset 0 0 0 1.5px var(--fg-2); }
.lb-dg-link { position: absolute; top: 50%; height: 1px; border-top: 1px dashed var(--fg-4); transition: left 140ms var(--ease-swap), width 140ms var(--ease-swap); }
.lb-dg-foot { height: 44px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; color: var(--fg-3); font-size: 12.5px; }
.lb-dg-hint { color: var(--fg-4); }
.lb-dg-cap { margin-top: 20px; }
.lb-dg-cap h3 { font-size: 15px; font-weight: 500; }
.lb-dg-cap p { margin-top: 4px; color: var(--fg-3); font-size: 15px; }

/* ================= NEW (invention round): a year of assessments ================= */
.lb-yr { max-width: 1240px; margin: 56px auto 0; padding: 0 var(--outer); }
.lb-yr-win { position: relative; border-radius: 14px; background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--line-3), 0 30px 80px #00000059; overflow: hidden; font-size: 12.5px; }
:root[data-theme="light"] .lb-yr-win { background: #fff; box-shadow: inset 0 0 0 1px var(--line-3), 0 24px 60px #00000014; }
.lb-yr-bar { height: 48px; padding: 0 20px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line-2); color: var(--fg-3); }
.lb-yr-bar b { color: var(--fg-1); font-weight: 500; font-size: 13.5px; }
.lb-yr-tally { margin-left: auto; display: flex; gap: 16px; font-size: 12px; }
.lb-yr-tally span { display: inline-flex; align-items: center; gap: 6px; }
.lb-yr-tally b { color: var(--fg-1); font-weight: 500; font-size: 12px; font-variant-numeric: tabular-nums; }
.lb-yr-pubs { position: relative; height: 44px; margin: 0 20px; border-bottom: 1px solid var(--line-2); }
.lb-yr-pub { position: absolute; top: 10px; display: flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 12px; color: var(--fg-3); opacity: .35; transition: opacity var(--dur-enter); }
.lb-yr-pub::before { content: ""; position: absolute; left: 0; top: 24px; width: 1px; height: 330px; background: var(--line-3); }
.lb-yr-pub .ap-key { position: relative; }
.lb-yr-pub.on { opacity: 1; }
.lb-yr-pub.on .ap-key { color: var(--fg-1); box-shadow: inset 0 0 0 1px var(--fg-4); }
.lb-yr-wall { position: relative; height: 300px; margin: 0 20px; }
.lb-yr-now { position: absolute; top: -44px; bottom: -8px; width: 1px; background: var(--fg-2); z-index: 3; pointer-events: none; }
.lb-yr-t { position: absolute; height: 26px; border-radius: 6px; padding: 0 7px; display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--fg-2); white-space: nowrap; overflow: hidden; cursor: default; z-index: 2;
  opacity: 0; transform: translateY(6px); transition: opacity var(--dur-enter), transform var(--dur-enter) var(--ease-spring), background var(--dur-reveal), color var(--dur-reveal), box-shadow var(--dur-hover); }
.lb-yr-t.in { opacity: 1; transform: none; }
.lb-yr-t span { overflow: hidden; text-overflow: ellipsis; }
.lb-yr-t i { font-style: normal; margin-left: auto; font-family: "Geist Mono", monospace; font-size: 10px; color: var(--fg-3); }
.lb-yr-t[data-v="1"] { box-shadow: inset 0 0 0 1px var(--line-3); }
.lb-yr-t[data-v="2"] { background: color-mix(in srgb, var(--fg-1) 9%, transparent); box-shadow: inset 0 0 0 1px var(--line-2); }
.lb-yr-t[data-v="3"] { background: color-mix(in srgb, var(--fg-1) 20%, transparent); color: var(--fg-1); }
.lb-yr-t[data-v="3"] i { color: var(--fg-2); }
.lb-yr-t.done { opacity: .5; }
.lb-yr-t.live::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 2px; background: var(--fg-1); }
.lb-yr-t:hover, .lb-yr-t:focus-visible { outline: none; box-shadow: inset 0 0 0 1px var(--fg-3); opacity: 1; }
.lb-yr-axis { position: relative; height: 34px; margin: 0 20px; border-top: 1px solid var(--line-2); font-size: 11.5px; color: var(--fg-3); }
.lb-yr-axis span { position: absolute; top: 9px; }
.lb-yr-tip { position: absolute; z-index: 6; max-width: 260px; padding: 8px 10px; border-radius: 8px; background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--line-3), 0 12px 30px #00000059; font-size: 12px; line-height: 1.5; color: var(--fg-2); opacity: 0; pointer-events: none; transition: opacity var(--dur-hover); }
.lb-yr-tip b { color: var(--fg-1); font-weight: 500; display: block; }
.lb-yr-tip.on { opacity: 1; }
.lb-yr-ctl { margin: 20px auto 0; max-width: 720px; display: flex; align-items: center; gap: 14px; }
.lb-yr-play { width: 32px; height: 32px; flex: none; border: 0; border-radius: 99px; display: grid; place-items: center; color: var(--fg-1); background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--line-3); cursor: pointer; }
.lb-yr-play svg { width: 14px; height: 14px; }
.lb-yr-play .pl, .lb-yr-play.paused .pz { display: none; } .lb-yr-play.paused .pl { display: block; }
.lb-yr-range { flex: 1; min-width: 0; accent-color: var(--fg-1); }
.lb-yr-day { width: 92px; text-align: right; font-size: 12.5px; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.lb-yr-key { margin-top: 14px; display: flex; justify-content: center; gap: 18px; font-size: 12.5px; color: var(--fg-3); flex-wrap: wrap; }

@media (max-width: 900px) {
  .lb-dg-win { --lc: 300px; }
  .lb-dg-l { grid-template-columns: minmax(0, 1fr) 0 120px 50px; } .lb-dg-l .o { display: none; }
}
@media (max-width: 700px) {
  .lb-dg-cal { grid-template-columns: 1fr; padding: 0 0 0 20px; }
  .lb-dg-months, .lb-dg-track { grid-column: 1; }
  .lb-dg-r { grid-template-columns: 1fr; }
  .lb-dg-t { display: none; }
  .lb-dg-l { padding: 0 14px; grid-template-columns: minmax(0, 1fr) auto 48px; } .lb-dg-l .o { display: none; }
  .lb-dg-bar, .lb-dg-foot, .lb-dg-sub { padding: 0 14px; }
  .lb-dg-hint { display: none; }
  .lb-yr-wall { height: 300px; margin: 0 10px; }
  .lb-yr-pubs, .lb-yr-axis { margin: 0 10px; }
  .lb-yr-t span { display: none; } .lb-yr-t { padding: 0; justify-content: center; } .lb-yr-t i { margin: 0; font-size: 9px; }
  .lb-yr-tally .lb-hide-s, .lb-yr-bar .lb-dim { display: none; }
  .lb-yr-pub .nm { display: none; }
}
@media (prefers-reduced-motion: reduce) { .lb-yr-t, .lb-yr-pub, .lb-dg-dot, .lb-dg-link, .lb-dg-d { transition: none !important; animation: none !important; } }
@media (max-width: 700px) { .lb-hide-s { display: none !important; } }
.lb-dg-win { --lc: 560px; }
.lb-dg-track { height: 92px; }
.lb-dg-pin[data-a="onsite"] .lb-dg-lab { top: 62px; }
.lb-dg-pin[data-a="onsite"]::before { top: 30px; bottom: 30px; }
.lb-dg-pin::before { top: 30px; bottom: 28px; }
.lb-dg-pin::after { top: 39px; }
.lb-dg-span { top: 44px; }
.lb-yr-wall { height: 186px; }
.lb-yr-pub::before { height: 200px; }
@media (max-width: 1100px) { .lb-dg-win { --lc: 470px; } }
@media (max-width: 900px) { .lb-dg-win { --lc: 300px; } }

/* year: one product list grouped by the version each assessment pinned, and the item's History (replaces the tile wall) */
.lb-yr-b { display: grid; grid-template-columns: minmax(0, 1fr) 300px; height: 452px; }
.lb-yr-list { position: relative; overflow: hidden; border-right: 1px solid var(--line-2); }
.lb-yr-band { height: 36px; padding: 0 20px; display: flex; align-items: center; gap: 10px; background: color-mix(in srgb, var(--fg-1) 3%, transparent); border-bottom: 1px solid var(--line-2); font-size: 12px; color: var(--fg-3); }
.lb-yr-band b { color: var(--fg-1); font-weight: 500; font-variant-numeric: tabular-nums; }
.lb-yr-band .r { margin-left: auto; }
.lb-yr-row { height: 40px; padding: 0 20px; display: grid; grid-template-columns: minmax(0, 1fr) 84px 120px 36px; gap: 12px; align-items: center; border-bottom: 1px solid var(--line-2); font-size: 12.5px; }
.lb-yr-row .nm { color: var(--fg-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-yr-row .d { color: var(--fg-3); font-variant-numeric: tabular-nums; }
.lb-yr-row .s { display: inline-flex; align-items: center; gap: 7px; color: var(--fg-2); }
.lb-yr-row .ap-key { justify-self: end; }
.lb-yr-row.new { animation: lb-yr-new var(--dur-swap) var(--ease-spring) both; }
@keyframes lb-yr-new { from { opacity: 0; transform: translateY(-8px); background: color-mix(in srgb, var(--fg-1) 8%, transparent); } }
.lb-yr-more { height: 34px; padding: 0 20px; display: flex; align-items: center; font-size: 12px; color: var(--fg-4); border-bottom: 1px solid var(--line-2); }
.lb-yr-gl { width: 13px; height: 13px; flex: none; border-radius: 99px; box-shadow: inset 0 0 0 1.3px var(--amber); background: linear-gradient(90deg, transparent 50%, var(--amber) 50%); background-size: 9px 9px; background-position: center; background-repeat: no-repeat; }
.lb-yr-gl.done { box-shadow: none; background: var(--fg-3); position: relative; }
.lb-yr-gl.done::after { content: ""; position: absolute; left: 4.4px; top: 2.6px; width: 3px; height: 5.5px; border: solid var(--bg-1); border-width: 0 1.4px 1.4px 0; transform: rotate(45deg); }
.lb-yr-hist { padding: 16px 18px; background: color-mix(in srgb, var(--fg-1) 2%, transparent); overflow: hidden; }
.lb-yr-hh { font-size: 12px; color: var(--fg-3); margin-bottom: 12px; }
#lb-yr-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
#lb-yr-log li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; font-size: 12.5px; line-height: 1.45; color: var(--fg-3); animation: lb-yr-new var(--dur-enter) var(--ease-spring) both; }
#lb-yr-log li b { color: var(--fg-1); font-weight: 500; }
#lb-yr-log li .t { display: block; color: var(--fg-4); font-size: 11.5px; }
#lb-yr-log li .ap-av { width: 20px; height: 20px; font-size: 8.5px; }
#lb-yr-log li.still { animation: none; }
.lb-al { background: #4a3d52 !important; color: #f3eef6 !important; }
:root[data-theme="light"] .lb-al { background: #ece3f1 !important; color: #3a2d42 !important; }
:root[data-theme="light"] .lb-mr { background: #dfe6ee !important; color: #23303d !important; }
@media (max-width: 860px) { .lb-yr-b { grid-template-columns: 1fr; height: auto; } .lb-yr-list { height: 452px; border-right: 0; border-bottom: 1px solid var(--line-2); } .lb-yr-hist { max-height: 230px; } }
@media (max-width: 640px) { .lb-yr-row { grid-template-columns: minmax(0, 1fr) 20px 36px; padding: 0 14px; } .lb-yr-row .d { display: none; } .lb-yr-row .s span { display: none; } .lb-yr-band { padding: 0 14px; } .lb-yr-band .r { display: none; } }
@media (prefers-reduced-motion: reduce) { .lb-yr-row, #lb-yr-log li { animation: none !important; } }
/* versions as the chooser (replaces the scrubber) */
.lb-yr-vers { display: grid; gap: 6px; }
.lb-yr-vers button { width: 100%; padding: 10px 10px; border: 0; border-radius: 9px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; text-align: left; font: inherit; font-size: 12.5px; color: var(--fg-3); background: transparent; box-shadow: inset 0 0 0 1px transparent; cursor: pointer; transition: background var(--dur-hover), box-shadow var(--dur-hover); }
.lb-yr-vers .tx { display: grid; min-width: 0; } .lb-yr-vers .tx b { color: var(--fg-1); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .lb-yr-vers .tx span { font-size: 11.5px; }
.lb-yr-vers .n { display: inline-flex; align-items: center; gap: 8px; } .lb-yr-vers .n b { color: var(--fg-1); font-weight: 500; font-variant-numeric: tabular-nums; } .lb-yr-vers .n .ap-av { width: 20px; height: 20px; font-size: 8.5px; }
.lb-yr-vers button[aria-pressed="true"] { background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--line-3); }
.lb-yr-vers button:focus-visible { outline: 1.5px solid var(--fg-3); outline-offset: -1px; }
@media (any-hover: hover) { .lb-yr-vers button:hover { background: var(--bg-2); } }
.lb-yr-hist { padding: 16px 12px; }
.lb-yr-hh { padding: 0 8px; }

/* ---------- Linear C4: the method's versions as a fanned stack (beside the threads) ---------- */
.lb-intro:has(.lb-fan) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
@media (max-width: 860px) { .lb-intro:has(.lb-fan) { grid-template-columns: 1fr; } }
.lb-fan { position: relative; height: 300px; margin-top: 24px; -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent); }
.lb-fc { --x: 0px; --y: 0px; position: absolute; left: 0; top: 0; width: calc(100% - 144px); border-radius: 12px; background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--line-3), 0 24px 60px #0006; font-size: 12.5px; overflow: hidden;
  transform: translate(var(--x), var(--y)); transition: transform .7s cubic-bezier(.645,.045,.355,1), opacity .7s cubic-bezier(.645,.045,.355,1), filter .7s cubic-bezier(.645,.045,.355,1); }
:root[data-theme="light"] .lb-fc { background: #fff; box-shadow: inset 0 0 0 1px var(--line-3), 0 20px 50px #00000010; }
.lb-fc[data-pos="0"] { --x: 144px; --y: 0px; z-index: 3; }
.lb-fc[data-pos="1"] { --x: 72px; --y: 24px; z-index: 2; opacity: .7; filter: blur(1px); }
.lb-fc[data-pos="2"] { --x: 0px; --y: 48px; z-index: 1; opacity: .4; filter: blur(1px); }
.lb-fc.sink { z-index: 0; }
.lb-fc-h { height: 44px; padding: 0 16px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.lb-fc-h b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.lb-fc-h .ap-key { margin-left: auto; }
.lb-fc-r { height: 40px; padding: 0 16px; display: grid; grid-template-columns: 12px 54px minmax(0, 1fr) auto; gap: 10px; align-items: center; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.lb-fc-r i { font: 500 13px "Geist Mono", monospace; font-style: normal; color: var(--fg-3); text-align: center; }
.lb-fc-r.add i { color: var(--ok); }
.lb-fc-r.del .nm { color: var(--fg-3); text-decoration: line-through; text-decoration-color: var(--fg-4); }
.lb-fc-r .nm { overflow: hidden; text-overflow: ellipsis; }
.lb-fc .lb-sr { font: 11.5px "Geist Mono", monospace; color: var(--fg-3); }
.lb-fc-f { height: 44px; padding: 0 16px; display: flex; align-items: center; gap: 8px; color: var(--fg-3); white-space: nowrap; }
.lb-fc-pin { margin-left: auto; height: 22px; padding: 0 8px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 11.5px; color: var(--fg-2); box-shadow: inset 0 0 0 1px var(--line-3); }
@media (max-width: 640px) {
  .lb-fan { height: 280px; }
  .lb-fc { width: calc(100% - 48px); }
  .lb-fc[data-pos="0"] { --x: 48px; } .lb-fc[data-pos="1"] { --x: 24px; }
  .lb-fc-r { grid-template-columns: 12px 50px minmax(0, 1fr); }
  .lb-fc-r .lb-sr { display: none; }
}
@media (prefers-reduced-motion: reduce) { .lb-fc { transition: none; } }

/* ---------- bento card fragments (the card itself is the shared .bento) ---------- */
.bfx { width: 100%; border-radius: 10px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-3); font-size: 12px; overflow: hidden; text-align: left; }
.bfx-h { height: 34px; padding: 0 12px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line-2); color: var(--fg-3); white-space: nowrap; }
.bfx-h b { color: var(--fg-1); font-weight: 500; }
.bfx-r { height: 38px; padding: 0 12px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.bfx-r .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--fg-2); }
.bfx-r .d { color: var(--fg-4); }
.bfx-r .d.mono { font-family: "Geist Mono", monospace; font-size: 11px; }
.bfx-r .ap-badge { height: 20px; font-size: 11px; }

/* ---------- the six library items fit the hero list (parked fix 17) ---------- */
.lb-hero .lb-panels { height: 690px; }
.lb-hero .lb-listwin { height: 690px; }
.lb-hero .lb-setwin { height: 560px; }
.lb-hero .lb-toast { bottom: 28px; }
@media (max-width: 640px) {
  .lb-hero .lb-panels, .lb-hero .lb-listwin { height: 700px; }
  .lb-hero .lb-toast { bottom: 20px; }
}
