/* Session Chronicle viewer and "Previously on…" card (style A, PLAN §30.2–30.4).
   Shared by the Foundry window and the website (tools/chronicle-site/). Everything is scoped
   under .lcv / .lcv-intro / .lcv-overlay. */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=Signika:wght@400;500;600&family=Spectral:ital,wght@0,400;0,600;1,400&display=swap");

.lcv, .lcv-intro {
  --acc: #e2b266;
  --ink: #ece7dd;
  --mute: #a39d92;
  --line: rgba(255, 255, 255, .09);
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --display: "Cormorant Garamond", Georgia, serif;
  --sans: "Signika", "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--ink);
  font-family: var(--serif);
  box-sizing: border-box;
}
.lcv *, .lcv-intro * { box-sizing: border-box; }
.lcv p, .lcv ul, .lcv ol, .lcv h2, .lcv h3, .lcv h4, .lcv-intro p, .lcv-intro h1 { margin: 0; }
.lcv ul, .lcv ol { padding: 0; list-style: none; }
.lcv button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; text-align: inherit; margin: 0; line-height: inherit; width: auto; height: auto; }
.lcv button:focus-visible, .lcv-intro button:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.lcv-eyebrow { font: 600 12px var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--acc); }
.lcv-sp { flex: 1; }
.lcv kbd, .lcv-intro kbd { font: 600 11px var(--sans); padding: 1px 6px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .25); color: var(--mute); background: none; box-shadow: none; }

/* ---------- the window ---------- */
.lcv { display: flex; flex-direction: column; width: 100%; height: 100%; background: linear-gradient(180deg, rgba(26, 28, 36, .97), rgba(13, 14, 19, .985)); border: 1px solid rgba(255, 255, 255, .13); border-radius: 10px; box-shadow: 0 30px 90px #000, inset 0 1px 0 rgba(255, 255, 255, .08); overflow: hidden; }
.lcv-hb { font: 500 14px var(--sans) !important; height: 36px !important; padding: 0 14px !important; border-radius: 18px !important; background: rgba(255, 255, 255, .06) !important; border: 1px solid rgba(255, 255, 255, .16) !important; color: #ddd6ca !important; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.lcv-hb.on { border-color: rgba(226, 178, 102, .6) !important; color: var(--acc) !important; background: rgba(226, 178, 102, .12) !important; }
.lcv-hb.x, .lcv-hb.nav { width: 36px !important; padding: 0 !important; justify-content: center; font-size: 18px !important; }
.lcv-hb[disabled] { opacity: .35; cursor: default; }
.lcv-hb:not([disabled]):hover { border-color: rgba(226, 178, 102, .6) !important; }
.lcv a.lcv-npc, .lcv .lcv-link { color: var(--acc); text-decoration: none; border-bottom: 1px solid rgba(226, 178, 102, .4); cursor: pointer; }
.lcv a.lcv-npc:hover, .lcv .lcv-link:hover { border-bottom-color: var(--acc); }
.lcv h4 { margin: 0 0 12px; font: 600 12px var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--acc); display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.lcv h4::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, .12); }
.lcv h4 em { font-style: normal; letter-spacing: .06em; color: var(--mute); font-weight: 500; }
.lcv-av { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); background: #1f222c; }
.lcv-av img { width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.lcv-av.mono { color: var(--acc); font: 600 17px var(--display); letter-spacing: .04em; box-shadow: 0 0 0 1px rgba(226, 178, 102, .6); }
.lcv-av.small { width: 38px; height: 38px; font-size: 15px; }
.lcv-av.big { width: 108px; height: 108px; font-size: 38px; box-shadow: 0 0 0 1px rgba(226, 178, 102, .6), 0 0 0 5px rgba(226, 178, 102, .08), 0 10px 30px rgba(0, 0, 0, .6); }
.lcv-empty { padding: 40px; text-align: center; color: var(--mute); font: 15px var(--sans); }

.lcv-top { flex: none; display: flex; align-items: center; gap: 16px; min-height: 66px; padding: 8px 20px 8px 24px; border-bottom: 1px solid var(--line); background: rgba(0, 0, 0, .18); }
.lcv-brand { min-width: 0; flex: 0 1 380px; }
.lcv-brand .lcv-eyebrow { font-size: 10.5px; }
.lcv-brand h2 { margin: 1px 0 0; font: 600 27px/1.05 var(--display); letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); border: 0; }
.lcv-search { flex: 0 1 420px; height: 38px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 19px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .16); font: 15px var(--sans); color: var(--mute); }
.lcv-search:focus-within { border-color: rgba(226, 178, 102, .7); box-shadow: 0 0 0 3px rgba(226, 178, 102, .12); }
.lcv-search svg { width: 16px; height: 16px; flex: none; stroke: var(--mute); fill: none; }
.lcv-search input { flex: 1; min-width: 0; height: 100%; background: none !important; border: 0 !important; box-shadow: none !important; outline: none; color: #fff; font: 15px var(--sans); padding: 0; }
.lcv-search input::placeholder { color: var(--mute); }
.lcv-main { flex: 1; min-height: 0; display: flex; }

.lcv-rail { flex: none; width: 228px; padding: 16px 12px 0; border-right: 1px solid var(--line); background: rgba(0, 0, 0, .2); font-family: var(--sans); display: flex; flex-direction: column; min-height: 0; }
.lcv .lcv-nav button { display: flex; align-items: center; gap: 11px; width: 100%; height: 38px; padding: 0 12px; margin-bottom: 2px; border-radius: 8px; font-size: 15px; font-weight: 500; color: #cfc8bc; border: 1px solid transparent; }
.lcv-nav button:hover { background: rgba(255, 255, 255, .04); }
.lcv-nav svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.lcv-nav span { flex: 1; }
.lcv-nav em { font-style: normal; font-size: 12.5px; color: var(--mute); min-width: 24px; text-align: center; padding: 1px 6px; border-radius: 9px; background: rgba(255, 255, 255, .06); }
.lcv-nav button.on { background: rgba(226, 178, 102, .12); border-color: rgba(226, 178, 102, .45); color: var(--acc); }
.lcv-nav button.on em { color: var(--acc); background: rgba(226, 178, 102, .14); }
.lcv-tl-h { margin: 16px 12px 8px; font: 600 10.5px var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--mute); display: flex; justify-content: space-between; }
.lcv-tl-h i { font-style: normal; letter-spacing: .04em; text-transform: none; font-weight: 400; }
.lcv-tl { flex: 1; min-height: 0; overflow-y: auto; padding-bottom: 12px; }
.lcv-tl li { position: relative; }
.lcv-tl li + li::before { content: ""; position: absolute; left: 24px; top: -14px; height: 23px; width: 1px; background: rgba(226, 178, 102, .3); }
.lcv .lcv-tl button { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; padding: 0 8px 0 11px; border-radius: 8px; border: 1px solid transparent; }
.lcv-tl button:hover { background: rgba(255, 255, 255, .04); }
.lcv-tl b { flex: none; width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; background: #171920; border: 1px solid rgba(226, 178, 102, .7); color: var(--acc); font: 600 13px var(--sans); position: relative; z-index: 1; }
.lcv-tl .t { min-width: 0; font-size: 14px; line-height: 1.2; color: #ddd6ca; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lcv-tl small { display: block; font-size: 11.5px; color: var(--mute); margin-top: 1px; }
.lcv-tl button.on { background: rgba(226, 178, 102, .12); border-color: rgba(226, 178, 102, .45); }
.lcv-tl button.on b { background: var(--acc); color: #17130b; border-color: var(--acc); box-shadow: 0 0 14px rgba(226, 178, 102, .45); }
.lcv-tl button.on .t { color: #fff; font-weight: 600; }
.lcv-tl .new { color: var(--acc); }

.lcv-view { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lcv-vhead { flex: none; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 18px 28px 15px; border-bottom: 1px solid var(--line); font-family: var(--sans); }
.lcv-vhead h3 { margin: 4px 0 0; font: 600 34px/1.1 var(--display); color: var(--ink); border: 0; }
.lcv-pos { font-size: 13px; color: var(--mute); margin: 0 2px; }
.lcv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lcv-chips .lcv-hb { height: 32px !important; font-size: 13.5px !important; }
.lcv-vbody { flex: 1; min-height: 0; padding: 22px 28px 24px; position: relative; }
.lcv-vbody.scroll { overflow-y: auto; }

/* session report */
.lcv-report { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 286px) minmax(0, 1fr); gap: 0 28px; height: 100%; }
.lcv-recap { min-height: 0; overflow-y: auto; padding-right: 22px; font-size: 17px; line-height: 1.62; color: #ddd7cc; }
.lcv-recap p + p, .lcv-recap p + ul, .lcv-recap ul + p { margin-top: .85em; }
.lcv-recap > p:first-of-type::first-line { font-variant: small-caps; letter-spacing: .04em; color: #fff; }
.lcv-recap .lcv-subtitle { font-style: italic; color: var(--mute); margin-bottom: .6em; }
.lcv-recap .lcv-subtitle::first-line { font-variant: normal !important; letter-spacing: 0 !important; color: var(--mute) !important; }
.lcv-recap h3 { font: 600 22px var(--display); margin: 1em 0 .3em; }
.lcv-col { min-height: 0; overflow-y: auto; padding-right: 4px; }
.lcv-col h4:not(:first-child) { margin-top: 18px; }
.lcv .lcv-person { display: flex; gap: 12px; align-items: center; width: 100%; padding: 5px 0; font-family: var(--sans); border-radius: 8px; }
.lcv-person:hover .nm { color: var(--acc); }
.lcv-person .nm { display: block; font-weight: 600; font-size: 15px; color: #f1ece2; }
.lcv-person .ln { display: block; font-size: 13px; line-height: 1.3; color: var(--mute); margin-top: 1px; }
.lcv-q { position: relative; margin: 0 14px 10px 0; background: rgba(226, 178, 102, .1); border: 1px solid rgba(226, 178, 102, .45); border-radius: 14px 14px 14px 3px; padding: 9px 13px; font: italic 15px/1.35 var(--serif); color: #f0e7d6; transform: rotate(-1.2deg); }
.lcv-talk .lcv-q:nth-child(2) { transform: rotate(1deg); margin: 0 0 10px 22px; border-radius: 14px 14px 3px 14px; }
.lcv-q.small { transform: none; margin: 8px 0 0; font-size: 14px; }
.lcv-fold summary { font: 13px var(--sans); color: var(--mute); padding: 6px 0 0; cursor: pointer; }
.lcv-learned li, .lcv-leads li { position: relative; padding: 0 0 0 20px; margin-bottom: 9px; font: 14.5px/1.38 var(--sans); color: #d9d3c8; }
.lcv-learned li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 6px; height: 6px; background: var(--acc); transform: rotate(45deg); }
.lcv-leads li { font: italic 15.5px/1.4 var(--serif); color: #efe8da; }
.lcv-leads li::before { content: "?"; position: absolute; left: 0; top: -3px; font: 600 20px var(--display); color: var(--acc); font-style: normal; }
.lcv-leads li.done { color: #8f897f; text-decoration: line-through; }
.lcv-leads li.done::before { color: var(--mute); }

/* people */
.lcv-pbody { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 428px); gap: 0 28px; height: 100%; }
.lcv-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 8px 12px; align-content: start; min-height: 0; overflow-y: auto; padding-right: 4px; }
.lcv .lcv-pc { display: flex; gap: 13px; align-items: center; padding: 8px 14px !important; border-radius: 10px !important; background: rgba(255, 255, 255, .035) !important; border: 1px solid rgba(255, 255, 255, .09) !important; font-family: var(--sans); min-width: 0; }
.lcv-pc .lcv-av { width: 52px; height: 52px; font-size: 19px; }
.lcv-pc .bd { min-width: 0; flex: 1; }
.lcv-pc .nm { display: block; font-size: 15.5px; font-weight: 600; color: #f1ece2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lcv-pc .ln { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 34px; font-size: 13px; line-height: 17px; color: #c3bcb0; margin-top: 2px; }
.lcv-pc .mt { display: block; font-size: 12px; color: var(--mute); margin-top: 3px; }
.lcv-pc .mt i { font-style: normal; color: var(--acc); }
.lcv-pc:hover { border-color: rgba(226, 178, 102, .35) !important; }
.lcv-pc.on { background: rgba(226, 178, 102, .1) !important; border-color: rgba(226, 178, 102, .55) !important; box-shadow: 0 0 22px rgba(226, 178, 102, .1); }
.lcv-pdet { border-left: 1px solid var(--line); padding-left: 28px; font-family: var(--sans); min-height: 0; overflow-y: auto; }
.lcv-hero { display: flex; gap: 20px; align-items: center; }
.lcv-hero-av { border-radius: 50%; }
.lcv-hero h3 { margin: 0; font: 600 32px/1.08 var(--display); color: var(--ink); border: 0; }
.lcv-aka { margin-top: 6px; font: italic 15px var(--serif); color: #cfc8bc; }
.lcv-seen { margin-top: 8px; font-size: 13px; color: var(--mute); }
.lcv-seen b { color: var(--acc); font-weight: 600; }
.lcv-pdet h4 { margin-top: 24px; margin-bottom: 14px; }
.lcv-ptl { position: relative; }
.lcv-ptl::before { content: ""; position: absolute; left: 13px; top: 14px; bottom: 30px; width: 1px; background: rgba(226, 178, 102, .28); }
.lcv-ptl li { position: relative; padding: 0 0 18px 42px; }
.lcv-ptl li > b { position: absolute; left: 0; top: 0; width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; background: #171920; border: 1px solid rgba(226, 178, 102, .7); color: var(--acc); font: 600 13px var(--sans); }
.lcv-ptl li.last > b { background: var(--acc); color: #17130b; }
.lcv-ptl .sh { display: flex; align-items: baseline; gap: 8px; font-size: 13px; color: var(--mute); padding-top: 4px; }
.lcv-ptl .sh .lcv-link { font-weight: 600; font-size: 14px; }
.lcv-ptl .nt { margin-top: 5px; font: 15.5px/1.45 var(--serif); color: #e4ddd0; }

/* leads */
.lcv-lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px 14px; }
.lcv-lc { position: relative; display: flex; flex-direction: column; padding: 14px 16px 12px 44px; border-radius: 10px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .1); min-height: 112px; }
.lcv-lc::before { content: "?"; position: absolute; left: 16px; top: 7px; font: 600 32px var(--display); color: var(--acc); }
.lcv-lc .qq { flex: 1; font: italic 16px/1.4 var(--serif); color: #efe8da; }
.lcv-lc .ft { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; font: 12.5px var(--sans); color: var(--mute); }
.lcv-tag { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px 0 3px !important; border-radius: 11px !important; background: rgba(226, 178, 102, .1) !important; border: 1px solid rgba(226, 178, 102, .35) !important; color: var(--acc) !important; font: 500 12.5px var(--sans) !important; white-space: nowrap; }
.lcv-tag b { min-width: 17px; height: 17px; padding: 0 3px; border-radius: 9px; display: grid; place-items: center; background: var(--acc); color: #17130b; font-size: 10.5px; font-weight: 600; }
.lcv-gm { display: inline-flex; align-items: center; gap: 7px; color: #cfc8bc; white-space: nowrap; cursor: pointer; }
.lcv-gm input { margin: 0; accent-color: var(--acc); }
.lcv-gmb { font: 600 9.5px var(--sans); letter-spacing: .1em; padding: 1px 5px; border-radius: 3px; border: 1px solid rgba(255, 255, 255, .3); color: var(--mute); }
.lcv-lc.done { background: transparent; border-style: dashed; min-height: 0; }
.lcv-lc.done::before { color: var(--mute); opacity: .6; }
.lcv-lc.done .qq { color: #a39d92; text-decoration: line-through; text-decoration-color: rgba(163, 157, 146, .7); font-size: 15px; }
.lcv-lc.done .lcv-tag { background: none !important; border-color: rgba(255, 255, 255, .16) !important; color: var(--mute) !important; }
.lcv-lc.done .lcv-tag b { background: #6f6a62; }
.lcv-lc .res { color: #b9c9a4; }
.lcv-lsec + .lcv-lsec { margin-top: 22px; }

/* learned */
.lcv-kg { display: grid; grid-template-columns: 218px 1fr; gap: 0 26px; padding: 0 0 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); font-family: var(--sans); }
.lcv-kg .sh { display: flex; gap: 11px; align-items: flex-start; }
.lcv-kg .sh > b { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #171920; border: 1px solid rgba(226, 178, 102, .7); color: var(--acc); font: 600 14px var(--sans); }
.lcv-kg.first .sh > b { background: var(--acc); color: #17130b; }
.lcv-kg .lcv-link.big { display: block; font: 600 21px/1.1 var(--display); color: #f1ece2; border: 0; padding-top: 3px; }
.lcv-kg .sh small { display: block; font-size: 12px; color: var(--mute); margin-top: 3px; }
.lcv-kg .lcv-learned { columns: 2; column-gap: 30px; }
.lcv-kg .lcv-learned li { break-inside: avoid; margin-bottom: 7px; }

/* search */
.lcv mark { background: rgba(226, 178, 102, .3); color: #ffe2a8; border-radius: 3px; padding: 0 1px; }
.lcv-sbody { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 0 34px; align-items: start; }
.lcv-sgrp { margin-bottom: 22px; }
.lcv .lcv-hit { display: flex; gap: 13px; align-items: flex-start; width: calc(100% + 24px); padding: 9px 12px !important; margin: 0 -12px 2px !important; border-radius: 9px !important; font-family: var(--sans); border: 1px solid transparent !important; }
.lcv-hit:hover { background: rgba(226, 178, 102, .08) !important; border-color: rgba(226, 178, 102, .4) !important; }
.lcv-hit .num { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #171920; border: 1px solid rgba(226, 178, 102, .7); color: var(--acc); font-weight: 600; font-size: 14px; margin-top: 1px; }
.lcv-hit .gl { flex: none; width: 30px; text-align: center; font: 600 26px/1 var(--display); color: var(--acc); }
.lcv-hit .dm { flex: none; width: 30px; height: 20px; position: relative; }
.lcv-hit .dm::before { content: ""; position: absolute; left: 12px; top: 8px; width: 6px; height: 6px; background: var(--acc); transform: rotate(45deg); }
.lcv-hit .bd { flex: 1; min-width: 0; }
.lcv-hit .tt { display: block; font-size: 15.5px; font-weight: 600; color: #f1ece2; }
.lcv-hit .tt small { font-weight: 400; font-size: 12.5px; color: var(--mute); margin-left: 8px; }
.lcv-hit .sn { display: block; margin-top: 3px; font: 15px/1.45 var(--serif); color: #cfc8bc; }
.lcv-hit .one { display: block; font: 14.5px/1.4 var(--sans); color: #d9d3c8; }
.lcv-hit .one.it { font: italic 15.5px/1.4 var(--serif); color: #efe8da; }
.lcv-hit .one.st { text-decoration: line-through; color: #8f897f; }
.lcv-hit .mt { display: block; margin-top: 4px; font-size: 12.5px; color: var(--mute); }

/* ---------- the "Previously on…" card ---------- */
.lcv-intro { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 45%, rgba(8, 9, 14, .82) 0 40%, rgba(2, 2, 4, .95) 100%); animation: lcv-fade .5s ease both; }
.lcv-intro.closing { animation: lcv-out .25s ease both; }
.lcv-intro-bars::before, .lcv-intro-bars::after { content: ""; position: absolute; left: 0; right: 0; height: 7vh; background: #000; animation: lcv-bars .7s ease both; }
.lcv-intro-bars::before { top: 0; } .lcv-intro-bars::after { bottom: 0; }
.lcv-intro-body { position: relative; width: min(760px, 90vw); text-align: center; }
.lcv-intro .lcv-eyebrow { letter-spacing: .45em; font-size: 13px; }
.lcv-intro h1 { margin: 18px 0 10px; font: 600 clamp(40px, 6vw, 72px)/1.02 var(--display); letter-spacing: .01em; color: #f3ede2; border: 0; text-shadow: 0 4px 30px rgba(0, 0, 0, .8); }
.lcv-intro-sub { display: flex; align-items: center; justify-content: center; gap: 18px; font: italic 22px var(--display); color: #d6cfc2; }
.lcv-intro-sub span { width: 70px; height: 1px; background: rgba(226, 178, 102, .6); }
.lcv-intro-brief { margin: 34px auto 0; max-width: 660px; }
.lcv-intro-brief p { font: 21px/1.55 var(--serif); color: #ece6db; margin-bottom: 14px; opacity: 0; animation: lcv-line 1s ease both; }
.lcv-intro.shown .lcv-intro-brief p { animation: none; opacity: 1; }
.lcv-intro-btns { display: flex; justify-content: center; gap: 14px; margin-top: 34px; }
.lcv-btn { font: 600 15px var(--sans); letter-spacing: .12em; text-transform: uppercase; height: 46px; padding: 0 30px; border-radius: 3px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(0, 0, 0, .3); color: #ece6db; cursor: pointer; width: auto; line-height: 1; }
.lcv-btn.primary { background: var(--acc); border-color: var(--acc); color: #17130b; box-shadow: 0 0 24px rgba(226, 178, 102, .35); }
.lcv-btn:hover { filter: brightness(1.08); }
.lcv-keys { margin-top: 16px; font: 13px var(--sans); color: var(--mute); display: flex; gap: 8px; justify-content: center; align-items: center; }
.lcv-keys kbd { margin-left: 10px; }
@keyframes lcv-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lcv-out { to { opacity: 0; } }
@keyframes lcv-line { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes lcv-bars { from { height: 0; } }
@media (prefers-reduced-motion: reduce) {
  .lcv-intro, .lcv-intro-brief p, .lcv-intro-bars::before, .lcv-intro-bars::after { animation: none !important; opacity: 1; }
}

/* ---------- Foundry: the window as an overlay ---------- */
.lcv-overlay { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 45%, rgba(6, 7, 11, .3) 0 40%, rgba(2, 2, 4, .55) 100%); animation: lcv-fade .2s ease both; }
.lcv-overlay > .lcv { width: min(1380px, 96vw); height: min(820px, 92vh); }

/* ---------- narrow screens (the website on a phone) ---------- */
@media (max-width: 1100px) {
  .lcv-report { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); grid-template-rows: auto; overflow-y: auto; }
  .lcv-report .lcv-recap { grid-row: span 2; }
  .lcv-pbody { grid-template-columns: minmax(0, 1fr) minmax(0, 360px); }
}
@media (max-width: 760px) {
  .lcv { border-radius: 0; border: 0; }
  .lcv-top { flex-wrap: wrap; padding: 10px 14px; gap: 10px; }
  .lcv-brand { flex: 1 1 auto; }
  .lcv-brand h2 { font-size: 23px; }
  .lcv-search { order: 3; flex: 1 1 100%; }
  .lcv-main { flex-direction: column; }
  .lcv-rail { width: auto; flex: none; padding: 8px 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .lcv-nav { display: flex; gap: 4px; overflow-x: auto; }
  .lcv-nav li { flex: 1 0 auto; }
  .lcv .lcv-nav button { height: 36px; padding: 0 10px; justify-content: center; }
  .lcv-nav button span { flex: none; }
  .lcv-tl-h { display: none; }
  .lcv-tl { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0 2px; flex: none; }
  .lcv-tl li + li::before { display: none; }
  .lcv .lcv-tl button { min-height: 36px; padding: 0 10px 0 4px; border-color: rgba(255, 255, 255, .1); }
  .lcv-tl .t { max-width: 160px; }
  .lcv-tl small { display: none; }
  .lcv-view { overflow-y: auto; }
  .lcv-vhead { padding: 14px 16px 12px; }
  .lcv-vhead > div:first-child { flex: 1 1 100%; }
  .lcv-vhead > .lcv-sp { display: none; }
  .lcv-vhead h3 { font-size: 28px; }
  .lcv-vbody { padding: 16px; flex: none; min-height: auto; }
  .lcv-report, .lcv-pbody { display: block; height: auto; }
  .lcv-recap, .lcv-col, .lcv-pgrid, .lcv-pdet { overflow: visible; padding-right: 0; }
  .lcv-col { margin-top: 22px; }
  .lcv-recap { font-size: 16.5px; }
  .lcv-pdet { border-left: 0; padding-left: 0; margin-top: 22px; border-top: 1px solid var(--line); padding-top: 20px; }
  .lcv-kg { grid-template-columns: 1fr; gap: 10px; }
  .lcv-kg .lcv-learned { columns: 1; }
  .lcv-intro-brief p { font-size: 18px; }
  .lcv-intro-sub { font-size: 18px; gap: 10px; }
  .lcv-intro-sub span { width: 30px; }
}
