/* Live page (web/live.html): what Ken is doing during a conversation — the inputs it's taking in (hearing, browsing,
   typing), what's on the table (widgets Ken chooses), its moments (answers, heads-ups, actions) and a Context feed with
   where each thing came from. Everything is scoped under .lv so it can't leak into the rest of the app. Ported from the
   p17-adaptive prototype (prototypes/ui/p17-adaptive). */
.lv { --col: 820px; --ctx: 348px; }
.lv button { font: inherit; color: inherit; cursor: pointer; }
.lv svg.i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lv .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.lv .layout {
  display: grid; grid-template-columns: minmax(0, 1fr) var(--ctx); column-gap: 24px;
  grid-template-areas: "now ctx" "head ctx" "feed ctx" "dock ctx"; grid-template-rows: auto auto 1fr auto;
  max-width: 1180px; min-height: 100vh; margin: 0 auto; padding: 12px 20px 0 8px;
}

.lv .now { grid-area: now; }

.lv .feed-head { grid-area: head; }

.lv .feed { grid-area: feed; align-self: start; }

/* ---------- Now strip ---------- */

.lv .now { position: sticky; top: 12px; z-index: 22; border-radius: var(--r-lg); padding: 14px 16px 14px 18px; }

.lv .now-row { display: flex; align-items: center; gap: 14px; }

.lv .now-main { flex: 1; min-width: 0; }

.lv .now-kicker { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--faint); font-weight: 500; }

.lv .now-kicker .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); }

.lv .now-kicker .elapsed { font-variant-numeric: tabular-nums; }

.lv .state-pill { display: inline-flex; align-items: center; gap: 6px; color: var(--live); font-weight: 600; letter-spacing: .02em; text-transform: uppercase; font-size: 10.5px; }

.lv .state-pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: lv-pulse 1.6s ease-in-out infinite; }

.lv.paused .state-pill { color: var(--faint); }

.lv.paused .state-pill i { animation: none; }

@keyframes lv-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.lv .roller { position: relative; overflow: hidden; }

.lv .roller > span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.lv .now-topic { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); margin-top: 2px; height: 25px; }

.lv .now-stand { font-size: 13.5px; color: var(--muted); height: 21px; }

.lv .now-stand b, .lv .m b { font-weight: 600; color: var(--ink); }

.lv .now-stand .tag { display: inline-block; font-size: 10.5px; font-weight: 600; color: var(--accent); background: rgba(91, 91, 214, .09); border-radius: 999px; padding: 0 7px; margin-right: 6px; line-height: 17px; vertical-align: 1px; }

.lv .sum-btn {
  flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 12px; border-radius: 999px;
  border: 1px solid var(--hair-strong); background: rgba(255, 255, 255, .7); font-size: 13px; color: var(--text);
  transition: background .15s, box-shadow .15s;
}

.lv .sum-btn:hover { background: #fff; box-shadow: var(--shadow-sm); }

.lv .sum-btn .count { min-width: 18px; height: 18px; border-radius: 999px; background: rgba(17, 24, 39, .06); font-size: 11.5px; display: grid; place-items: center; font-variant-numeric: tabular-nums; padding: 0 5px; }

.lv .sum-btn .count.bump { animation: lv-bump .5s cubic-bezier(.34, 1.56, .64, 1); background: rgba(91, 91, 214, .12); color: var(--accent); }

@keyframes lv-bump { 0% { transform: scale(.6); } 100% { transform: scale(1); } }

.lv .sum-btn svg.i { width: 14px; height: 14px; transition: transform .3s cubic-bezier(.2, .8, .2, 1); color: var(--muted); }

.lv .now.open .sum-btn svg.i { transform: rotate(180deg); }

.lv .now-sum { overflow: hidden; height: 0; }

.lv .now-sum ol { list-style: none; margin: 0; padding: 12px 0 2px; border-top: 1px solid var(--hair); margin-top: 12px; display: grid; gap: 2px; counter-reset: p; }

.lv .now-sum li { counter-increment: p; display: flex; gap: 10px; align-items: baseline; padding: 6px 10px; border-radius: 10px; font-size: 14px; color: var(--text); transition: background .6s; }

.lv .now-sum li::before { content: counter(p); font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; width: 12px; flex: none; }

.lv .now-sum li.changed { background: rgba(91, 91, 214, .07); }

.lv .now-sum li.changed::after { content: "Updated"; margin-left: auto; font-size: 10.5px; font-weight: 600; color: var(--accent); flex: none; padding-left: 8px; }

.lv .now-sum li.changed.new::after { content: "New"; }

.lv .now-sum .empty { color: var(--faint); font-size: 13.5px; padding: 6px 10px; }

/* thin research progress on the strip */

.lv .now::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(91, 91, 214, .55), transparent) 0 0 / 40% 100% no-repeat;
  opacity: 0; transition: opacity .3s;
}

.lv.researching .now::after { opacity: 1; animation: lv-sweep 1.4s linear infinite; }

@keyframes lv-sweep { from { background-position: -40% 0; } to { background-position: 140% 0; } }

/* ---------- feed ---------- */

.lv .feed-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 6px 10px; font-size: 12.5px; color: var(--faint); font-weight: 500; }

.lv .feed-head strong { color: var(--muted); font-weight: 600; }

.lv .feed { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: var(--col); justify-self: center; }

.lv .feed-head, .lv .now { width: 100%; max-width: var(--col); justify-self: center; }

.lv .empty-state {
  border: 1px dashed var(--hair-strong); border-radius: var(--r-lg); padding: 34px 24px; text-align: center; color: var(--muted); font-size: 14px;
}

.lv .empty-state .ghosts { display: flex; justify-content: center; gap: 8px; margin-bottom: 16px; }

.lv .empty-state .ghosts span { width: 34px; height: 34px; border-radius: 11px; background: rgba(255, 255, 255, .7); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--hair); display: grid; place-items: center; color: var(--faint); }

.lv .empty-state p { margin: 4px 0 0; color: var(--faint); font-size: 13px; }

/* moment card */

.lv .m {
  position: relative; border-radius: var(--r-lg); padding: 16px 18px 15px 16px; display: grid; grid-template-columns: 30px 1fr; gap: 0 12px;
  background: var(--glass-hi); border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .6);
  transform-origin: 50% 0;
}

.lv .m-ico { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: #fff; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--hair); color: var(--muted); }

.lv .m-ico svg.i { width: 15px; height: 15px; }

.lv .m-body { min-width: 0; }

.lv .m-head { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--faint); min-height: 30px; flex-wrap: wrap; }

.lv .m-kind { font-weight: 600; color: var(--muted); letter-spacing: .01em; }

.lv .m-head time { margin-left: auto; font-variant-numeric: tabular-nums; }

.lv .m-q { margin: 0 0 8px; font-size: 13.5px; color: var(--muted); line-height: 1.45; }

.lv .m-q::before { content: "“"; }
 
.lv .m-q::after { content: "”"; }

.lv .m-text { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--text); letter-spacing: -0.005em; }

.lv .m-meta { margin-top: 10px; font-size: 12.5px; color: var(--faint); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* question → checking */

.lv .m--question .m-ico { color: var(--accent); }

.lv .m--question .m-q { font-size: 15px; color: var(--text); margin-bottom: 12px; }

.lv .checking { display: flex; align-items: center; gap: 8px; font-size: 13px; }

.lv .checking .shimmer-text {
  background: linear-gradient(90deg, var(--muted) 0%, var(--muted) 35%, #c9ccd3 50%, var(--muted) 65%, var(--muted) 100%) 0 0 / 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: lv-textsweep 1.8s linear infinite;
}

@keyframes lv-textsweep { from { background-position: 100% 0; } to { background-position: -150% 0; } }

.lv .spin { width: 14px; height: 14px; border-radius: 50%; border: 1.6px solid rgba(91, 91, 214, .2); border-top-color: var(--accent); animation: lv-spin .8s linear infinite; flex: none; }

@keyframes lv-spin { to { transform: rotate(360deg); } }

.lv .skel { display: grid; gap: 7px; margin-top: 12px; }

.lv .skel i { display: block; height: 9px; border-radius: 6px; background: linear-gradient(90deg, rgba(17, 24, 39, .05) 0%, rgba(17, 24, 39, .09) 50%, rgba(17, 24, 39, .05) 100%) 0 0 / 200% 100%; animation: lv-skel 1.4s ease-in-out infinite; }

.lv .skel i:nth-child(2) { width: 86%; animation-delay: .1s; }
 
.lv .skel i:nth-child(3) { width: 58%; animation-delay: .2s; }

@keyframes lv-skel { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* answer */

.lv .m--answer .m-ico { color: var(--accent); }

/* heads-up: attention tone using the existing warn token, tinted */

.lv .m--headsup { background: rgba(255, 250, 245, .84); }

.lv .m--headsup::before { content: ""; position: absolute; left: -1px; top: 16px; height: 30px; width: 3px; border-radius: 0 3px 3px 0; background: var(--warn); }

.lv .m--headsup .m-ico { color: var(--warn); background: #fff; box-shadow: var(--shadow-sm), inset 0 0 0 1px rgba(194, 65, 12, .16); }

.lv .m--headsup .m-kind { color: var(--warn); }

/* action */

.lv .m--action .m-ico { color: #fff; background: var(--ok); box-shadow: none; }

.lv .m--action .m-kind { color: var(--ok); }

.lv .m--action.undone .m-ico { background: rgba(17, 24, 39, .12); }

.lv .m--action.undone .m-kind { color: var(--faint); }

.lv .m--action.undone .m-text { color: var(--faint); text-decoration: line-through; text-decoration-color: var(--hair-strong); }

.lv .src-ico { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: rgba(17, 24, 39, .05); color: var(--muted); }

.lv .src-ico svg.i { width: 13px; height: 13px; }

/* source chips */

.lv .srcs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

.lv .src {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 3px 10px 3px 4px; border-radius: 999px;
  border: 1px solid var(--hair-strong); background: rgba(255, 255, 255, .8); font-size: 12.5px; color: var(--text);
  transition: background .15s, box-shadow .15s, border-color .15s;
}

.lv .src .src-ico { width: 20px; height: 20px; border-radius: 50%; }

.lv .src span.t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.lv .src:hover { background: #fff; box-shadow: var(--shadow-sm); }

.lv .src[aria-expanded="true"] { border-color: rgba(91, 91, 214, .45); box-shadow: 0 0 0 3px rgba(91, 91, 214, .1); }

.lv .src-detail { margin-top: 8px; padding: 9px 12px; border-radius: var(--r-sm); background: rgba(17, 24, 39, .035); font-size: 13px; color: var(--muted); }

.lv .src-detail b { color: var(--text); font-weight: 600; }

.lv .m--question .srcs .src { animation: lv-pop .5s cubic-bezier(.34, 1.56, .64, 1) both; }

@keyframes lv-pop { from { opacity: 0; transform: scale(.7); } }

.lv .used { font-size: 11.5px; color: var(--faint); font-weight: 500; margin-right: 2px; }

/* card buttons */

.lv .m-actions { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

.lv .btn {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--hair-strong); background: rgba(255, 255, 255, .8);
  border-radius: 999px; padding: 5px 12px; font-size: 13px; transition: background .15s, box-shadow .15s, transform .05s;
}

.lv .btn:hover { background: #fff; box-shadow: var(--shadow-sm); }

.lv .btn:active { transform: translateY(1px); }

.lv .btn svg.i { width: 14px; height: 14px; }

.lv .btn.ink { background: var(--ink); border-color: var(--ink); color: #fff; }

.lv .btn.ink:hover { background: #262a33; }

.lv .btn.follow { border-color: rgba(194, 65, 12, .25); color: var(--warn); background: #fff; }

.lv .btn.follow.set { color: var(--ok); border-color: rgba(15, 159, 110, .3); }

.lv .covered { font-size: 12px; color: var(--ok); display: inline-flex; align-items: center; gap: 4px; font-weight: 500; }

.lv .covered svg.i { width: 13px; height: 13px; }

.lv .todo { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; }

.lv .todo label { display: flex; align-items: center; gap: 10px; padding: 6px 8px; margin: 0 -8px; border-radius: 10px; cursor: pointer; font-size: 14.5px; }

.lv .todo label:hover { background: rgba(17, 24, 39, .035); }

.lv .todo input { appearance: none; width: 17px; height: 17px; border-radius: 6px; border: 1.5px solid var(--hair-strong); background: #fff; margin: 0; flex: none; display: grid; place-items: center; transition: background .15s, border-color .15s; cursor: pointer; }

.lv .todo input:checked { background: var(--ink); border-color: var(--ink); }

.lv .todo input:checked::after { content: ""; width: 8px; height: 4px; border: 1.8px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }

.lv .todo input:checked + span { color: var(--faint); text-decoration: line-through; }

.lv .done-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--ok); background: rgba(15, 159, 110, .08); padding: 1px 8px; border-radius: 999px; font-weight: 500; }

/* older moments compress */

.lv .m.older { padding-top: 11px; padding-bottom: 11px; }

.lv .m.older .m-text { font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.lv .m.older .m-text b { color: var(--text); }

.lv .m.older .m-q { display: none; }

.lv .m.older .srcs, .lv .m.older .todo, .lv .m.older .src-detail, .lv .m.older .m-meta { display: none; }

.lv .m.older .m-actions { margin-top: 8px; }

.lv .m.older .more-hint { display: inline; }

.lv .more-hint { display: none; }

.lv .m.older { cursor: pointer; }

.lv .m.older:hover { background: rgba(255, 255, 255, .9); }

/* ---------- dock (floating control bar) ---------- */

.lv .dock {
  grid-area: dock; position: sticky; z-index: 25; bottom: 16px; margin-top: 18px; margin-bottom: 16px;
  width: min(100%, var(--col)); justify-self: center;
  border-radius: 24px; padding: 8px; display: grid; gap: 6px;
  background: rgba(255, 255, 255, .66);
  box-shadow: 0 1px 2px rgba(17, 24, 39, .05), 0 24px 60px -18px rgba(17, 24, 39, .28), inset 0 1px 0 rgba(255, 255, 255, .7);
}

.lv .dock-top { display: flex; align-items: center; gap: 10px; padding: 2px 6px 0 2px; min-width: 0; height: 32px; }

.lv .listen {
  flex: none; display: inline-flex; align-items: center; gap: 7px; border: 0; background: rgba(239, 68, 68, .08); color: var(--live);
  padding: 4px 11px 4px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; transition: background .2s, color .2s;
}

.lv .listen .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; position: relative; }

.lv .listen .dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid currentColor; opacity: 0; animation: lv-ring 1.8s ease-out infinite; }

@keyframes lv-ring { from { transform: scale(.5); opacity: .7; } to { transform: scale(1.5); opacity: 0; } }

.lv.paused .listen { background: rgba(17, 24, 39, .06); color: var(--muted); }

.lv.paused .listen .dot::after { animation: none; }

.lv .meter { flex: none; display: flex; align-items: center; gap: 2px; height: 20px; }

.lv .meter i { width: 3px; height: 100%; border-radius: 2px; background: var(--ink); opacity: .7; transform-origin: 50% 50%; transform: scaleY(.12); }

.lv.paused .meter i { opacity: .2; }

.lv .caption { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; color: var(--faint); font-size: 13px; }

.lv .cap-who { flex: none; width: 20px; height: 20px; border-radius: 50%; font-size: 10.5px; font-weight: 600; display: grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 1.5px var(--who, var(--hair-strong)); color: var(--muted); transition: box-shadow .3s; }

.lv .cap-track { flex: 1; min-width: 0; overflow: hidden; display: flex; justify-content: flex-end; -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px); mask-image: linear-gradient(90deg, transparent, #000 36px); }

.lv .cap-text { white-space: nowrap; }

.lv .cap-track.fits { justify-content: flex-start; -webkit-mask-image: none; mask-image: none; }

.lv .tr-btn { flex: none; border: 0; background: none; color: var(--muted); font-size: 12.5px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 999px; }

.lv .tr-btn:hover { background: rgba(17, 24, 39, .05); color: var(--text); }

.lv .tr-btn svg.i { width: 14px; height: 14px; }

.lv kbd { font: 500 10.5px/1 Inter, system-ui; color: var(--faint); border: 1px solid var(--hair-strong); border-radius: 5px; padding: 2px 5px; background: #fff; }

.lv .compose { display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 18px; padding: 5px 5px 5px 16px; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--hair); transition: box-shadow .15s; }

.lv .compose:focus-within { box-shadow: 0 0 0 4px rgba(91, 91, 214, .12), inset 0 0 0 1px rgba(91, 91, 214, .45); }

.lv .compose input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 14.5px; color: var(--text); padding: 7px 0; }

.lv .compose input::placeholder { color: var(--faint); }

.lv .talk {
  flex: none; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px 0 12px; border-radius: 999px;
  border: 1px solid var(--hair-strong); background: rgba(255, 255, 255, .9); font-size: 13.5px; font-weight: 500; transition: background .2s, color .2s, border-color .2s;
}

.lv .talk:hover { background: #f7f7f9; }

.lv .talk .wave { display: none; gap: 2px; align-items: center; height: 14px; }

.lv .talk .wave i { width: 2.5px; height: 100%; border-radius: 2px; background: currentColor; animation: lv-wave .9s ease-in-out infinite; }

.lv .talk .wave i:nth-child(2) { animation-delay: .15s; }
 
.lv .talk .wave i:nth-child(3) { animation-delay: .3s; }
 
.lv .talk .wave i:nth-child(4) { animation-delay: .45s; }

@keyframes lv-wave { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

.lv .talk.on { background: var(--ink); border-color: var(--ink); color: #fff; }

.lv .talk.on .wave { display: inline-flex; }

.lv .talk.on svg.i { display: none; }

.lv .send { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; transition: opacity .15s, transform .15s; }

.lv .send:disabled { opacity: .18; cursor: default; }

.lv .send svg.i { width: 16px; height: 16px; }

/* ---------- transcript sheet ---------- */

.lv .scrim { position: fixed; inset: 0; z-index: 40; background: rgba(17, 24, 39, .14); opacity: 0; pointer-events: none; transition: opacity .3s; }

.lv .scrim.open { opacity: 1; pointer-events: auto; }

.lv .sheet {
  position: fixed; z-index: 41; bottom: 12px; left: var(--sheet-left, 50%);
  width: var(--sheet-w, min(var(--col), calc(100vw - 48px))); height: min(64vh, 620px);
  transform: translate(-50%, calc(100% + 24px)); border-radius: var(--r-lg); display: flex; flex-direction: column;
  background: rgba(255, 255, 255, .86); transition: transform .5s cubic-bezier(.2, .9, .2, 1); visibility: hidden;
}

.lv .sheet.open { transform: translate(-50%, 0); visibility: visible; }

.lv .sheet-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px 20px; border-bottom: 1px solid var(--hair); }

.lv .sheet-head h2 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); flex: 1; }

.lv .sheet-head .muted { font-size: 12.5px; color: var(--faint); font-weight: 400; margin-left: 6px; }

.lv .icon-btn { width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(17, 24, 39, .05); display: grid; place-items: center; color: var(--muted); }

.lv .icon-btn:hover { background: rgba(17, 24, 39, .09); color: var(--text); }

.lv .sheet-body { flex: 1; overflow-y: auto; scrollbar-width: thin; padding: 10px 20px 20px; }

.lv .tl { padding: 8px 0; display: grid; grid-template-columns: 74px 1fr; gap: 12px; font-size: 14px; border-top: 1px solid var(--hair); }

.lv .tl:first-child { border-top: 0; }

.lv .tl .who { font-size: 12.5px; font-weight: 600; color: var(--muted); padding-top: 1px; }

.lv .tl .who small { display: block; font-weight: 400; color: var(--faint); font-size: 11.5px; }

.lv .tl.partial .txt { color: var(--muted); }

.lv .sheet-empty { color: var(--faint); font-size: 13.5px; padding: 24px 0; text-align: center; }

.lv .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- segmented control (shared by filters + mobile view switch) ---------- */

.lv .seg { position: relative; display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(17, 24, 39, .05); box-shadow: inset 0 0 0 1px var(--hair); }

.lv .seg button { position: relative; z-index: 1; border: 0; background: none; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 500; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; transition: color .2s; }

.lv .seg button:hover { color: var(--text); }

.lv .seg button[aria-selected="true"] { color: var(--ink); }

.lv .seg-thumb { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 0; width: 0; border-radius: 999px; background: #fff; box-shadow: 0 1px 2px rgba(17, 24, 39, .08), 0 0 0 1px var(--hair); transition: transform .45s cubic-bezier(.3, 1.3, .5, 1), width .45s cubic-bezier(.3, 1.3, .5, 1); }

.lv .seg .fn, .lv .seg .seg-n { font-size: 11px; font-variant-numeric: tabular-nums; color: var(--faint); font-weight: 500; display: inline-block; }

.lv .seg button[aria-selected="true"] .fn, .lv .seg button[aria-selected="true"] .seg-n { color: var(--muted); }

.lv .seg--view { display: none; }

.lv .badge { min-width: 17px; height: 17px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 600; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }

/* questions show their "Looking at" row only once something lands in it */

.lv .srcs:not(:has(.src)) { display: none; }

.lv .src .src-ico.fav { font-size: 10.5px; font-weight: 700; color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px var(--hair-strong); }

.lv .src .src-ico.key { color: var(--accent); background: rgba(91, 91, 214, .08); }

.lv .src.lit { border-color: rgba(91, 91, 214, .5); background: #fff; box-shadow: 0 0 0 3px rgba(91, 91, 214, .12); }

.lv .m { transition: box-shadow .25s; }

.lv .m.lit { box-shadow: var(--shadow), 0 0 0 1px rgba(91, 91, 214, .2), inset 0 1px 0 rgba(255, 255, 255, .6); }

.lv .src-detail { display: grid; gap: 6px; }

.lv .src-detail .sd-kind { font-size: 10.5px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--accent); }

.lv .src-detail .sd-dom { color: var(--faint); font-size: 12px; }

.lv .link-btn { justify-self: start; display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; padding: 0; color: var(--accent); font-size: 12.5px; font-weight: 500; }

.lv .link-btn svg.i { width: 13px; height: 13px; }

.lv .link-btn:hover span { text-decoration: underline; text-underline-offset: 2px; }

.lv .done-pill.off { color: var(--muted); background: rgba(17, 24, 39, .05); }

/* ---------- Context column ---------- */

.lv .ctx {
  grid-area: ctx; grid-row: 1 / -1; align-self: start; position: sticky; top: 12px; height: calc(100vh - 24px);
  border-radius: var(--r-lg); display: flex; flex-direction: column; overflow: hidden; background: rgba(255, 255, 255, .5);
}

.lv .ctx-head { padding: 16px 16px 12px; border-bottom: 1px solid var(--hair); display: grid; gap: 12px; }

.lv .ctx-title { display: flex; align-items: center; gap: 8px; min-width: 0; }

.lv .ctx-title h2 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }

.lv .ctx-count { font-size: 11.5px; font-weight: 600; color: var(--muted); background: rgba(17, 24, 39, .06); border-radius: 999px; padding: 0 7px; line-height: 18px; font-variant-numeric: tabular-nums; }

.lv .ctx-sub { margin-left: auto; font-size: 12px; color: var(--faint); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }

.lv .live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--live); animation: lv-pulse 1.6s ease-in-out infinite; }

.lv.paused .live-dot { background: var(--faint); animation: none; }

.lv .ctx .seg { display: flex; width: 100%; }

.lv .ctx .seg button { flex: 1; justify-content: center; padding: 5px 6px; }

.lv .cx-working { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.2, .9, .2, 1); }

.lv .cx-working-in { overflow: hidden; min-height: 0; display: flex; align-items: center; gap: 8px; padding: 0 16px; font-size: 12.5px; transition: padding .45s cubic-bezier(.2, .9, .2, 1); }

.lv.researching .cx-working { grid-template-rows: 1fr; }

.lv.researching .cx-working-in { padding: 10px 16px; border-bottom: 1px solid var(--hair); background: rgba(91, 91, 214, .035); }

.lv .cx-working .shimmer-text {
  background: linear-gradient(90deg, var(--muted) 0%, var(--muted) 35%, #c9ccd3 50%, var(--muted) 65%, var(--muted) 100%) 0 0 / 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: lv-textsweep 1.8s linear infinite;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.lv .cx-list { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; padding: 10px 10px 16px; display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain; }

.lv .cx {
  position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 0 10px; padding: 10px 12px 11px 10px; border-radius: 14px;
  background: rgba(255, 255, 255, .78); border: 1px solid var(--glass-edge); box-shadow: var(--shadow-sm), 0 0 0 1px var(--hair);
  transition: box-shadow .2s, background .2s; outline: 0; cursor: default; flex: none;
}

.lv .cx.filtered { display: none; }

.lv .cx:hover { background: #fff; }

.lv .cx.lit, .lv .cx:focus-visible { background: #fff; box-shadow: 0 0 0 1.5px rgba(91, 91, 214, .55), 0 6px 20px -8px rgba(91, 91, 214, .35); }

.lv .cx-ico { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: rgba(17, 24, 39, .045); color: var(--muted); }

.lv .cx-ico svg.i { width: 14px; height: 14px; }

.lv .cx--key .cx-ico { background: rgba(91, 91, 214, .08); color: var(--accent); }

.lv .cx-ico.fav { background: #fff; box-shadow: inset 0 0 0 1px var(--hair-strong); color: var(--ink); font-size: 13px; font-weight: 700; letter-spacing: -0.02em; }

.lv .cx-b { min-width: 0; }

.lv .cx-top { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--faint); min-height: 18px; }

.lv .cx-kind { font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: 10.5px; color: var(--muted); }

.lv .cx--key .cx-kind { color: var(--accent); }

.lv .cx-dom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

.lv .cx-top time { margin-left: auto; font-variant-numeric: tabular-nums; flex: none; }

.lv .cx-tag { font-size: 10px; font-weight: 600; color: var(--accent); background: rgba(91, 91, 214, .09); border-radius: 999px; padding: 0 6px; line-height: 16px; }

.lv .cx-used { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 500; color: var(--ok); }

.lv .cx-used svg.i { width: 11px; height: 11px; }

.lv .cx-label { font-size: 12.5px; color: var(--muted); margin-top: 1px; line-height: 1.35; }

.lv .cx-val { font-size: 15px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); height: 22px; line-height: 22px; }

.lv .cx-note { font-size: 12.5px; color: var(--muted); line-height: 1.4; margin-top: 2px; }

.lv .cx-note b, .lv .cx-snip b { color: var(--text); font-weight: 600; }

.lv .cx-was { font-size: 11.5px; color: var(--faint); margin-top: 3px; }

.lv .cx-was s { text-decoration-color: rgba(17, 24, 39, .3); }

.lv .cx-title { font-size: 13.5px; font-weight: 500; color: var(--text); line-height: 1.35; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.lv .cx-snip { font-size: 12.5px; color: var(--muted); line-height: 1.4; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.lv .cx::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0; background: rgba(91, 91, 214, .1); box-shadow: inset 0 0 0 1.5px rgba(91, 91, 214, .45); }

.lv .cx.flash::after { animation: lv-flash 1.8s cubic-bezier(.2, .8, .2, 1); }

@keyframes lv-flash { 0% { opacity: 1; } 35% { opacity: .9; } 100% { opacity: 0; } }

.lv .cx-empty { text-align: center; color: var(--muted); font-size: 13.5px; padding: 30px 14px; }

.lv .cx-empty p { margin: 4px 0 0; color: var(--faint); font-size: 12.5px; line-height: 1.5; }

.lv .cx-empty .ghosts { display: flex; justify-content: center; gap: 8px; margin-bottom: 14px; }

.lv .cx-empty .ghosts span { width: 32px; height: 32px; border-radius: 10px; background: rgba(255, 255, 255, .7); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--hair); display: grid; place-items: center; color: var(--faint); }

/* ======================================================================
   Views: On the table / Ken (/ Context on narrow)
   ====================================================================== */

.lv .table { grid-area: feed; align-self: start; width: 100%; max-width: var(--col); justify-self: center; container-type: inline-size;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); grid-auto-flow: dense; gap: 12px; align-items: start; }

.lv[data-view="table"] .feed { display: none; }

.lv[data-view="ken"] .table, .lv[data-view="ctx"] .table { display: none; }

.lv .only-narrow { display: none !important; }

.lv .feed-head { align-items: center; }

.lv .head-hint { font-size: 12px; color: var(--faint); font-weight: 500; }

.lv .seg--view { display: inline-flex; }

.lv .seg--view .badge { margin-left: -2px; }

.lv .seg .badge[hidden] { display: none; }

/* ---------- widgets ---------- */

.lv .w {
  position: relative; border-radius: var(--r-lg); padding: 12px 14px 10px; display: flex; flex-direction: column; min-width: 0;
  background: var(--glass-hi); border: 1px solid var(--glass-edge); box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .6);
}

@container (min-width: 480px) {
 
.lv .w.wide { grid-column: span 2; }
 
}

@container (min-width: 720px) {
 
.lv .w--timeline { grid-column: 1 / -1; }
 
}

.lv .w.pinned { box-shadow: var(--shadow), 0 0 0 1.5px rgba(91, 91, 214, .35); }

.lv .w::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0; background: rgba(91, 91, 214, .07); box-shadow: inset 0 0 0 1.5px rgba(91, 91, 214, .4); }

.lv .w.flash::after { animation: lv-flash 1.8s cubic-bezier(.2, .8, .2, 1); }

.lv .w-head { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; min-height: 26px; padding-right: 6px; }

.lv .w-ico { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: #fff; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--hair); color: var(--muted); flex: none; }

.lv .w-ico svg.i { width: 13px; height: 13px; }

.lv .w-title { margin: 0; font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.lv .w-tag { font-size: 10px; font-weight: 600; color: var(--accent); background: rgba(91, 91, 214, .09); border-radius: 999px; padding: 0 7px; line-height: 17px; white-space: nowrap; }

.lv .w-tools { position: absolute; z-index: 2; top: 9px; right: 9px; display: flex; gap: 1px; padding: 2px; border-radius: 10px; background: rgba(255, 255, 255, .94); box-shadow: var(--shadow-sm), 0 0 0 1px var(--hair); opacity: 0; transition: opacity .2s; }

.lv .w:hover .w-tools, .lv .w:focus-within .w-tools, .lv .w.pinned .w-tools, .lv .w.why-open .w-tools { opacity: 1; }

.lv .w-btn { width: 24px; height: 24px; border-radius: 7px; border: 0; background: none; display: grid; place-items: center; color: var(--faint); }

.lv .w-btn:hover { background: rgba(17, 24, 39, .05); color: var(--text); }

.lv .w-btn svg.i { width: 13px; height: 13px; }

.lv .w-btn[aria-pressed="true"], .lv .w-btn[aria-expanded="true"] { color: var(--accent); }

.lv .w-btn[aria-pressed="true"] svg.i { fill: rgba(91, 91, 214, .2); }

.lv .w-why { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s cubic-bezier(.2, .9, .2, 1); }

.lv .w-why > div { overflow: hidden; min-height: 0; }

.lv .w.why-open .w-why { grid-template-rows: 1fr; }

.lv .w-why span { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 600; color: var(--accent); margin-top: 8px; }

.lv .w-why span svg.i { width: 11px; height: 11px; }

.lv .w-why p { margin: 2px 0 2px; font-size: 12.5px; color: var(--muted); line-height: 1.45; }

.lv .w-body { margin-top: 10px; min-width: 0; }

.lv .w-foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--hair); font-size: 11px; color: var(--faint); min-width: 0; }

.lv .w-foot time { margin-left: auto; flex: none; font-variant-numeric: tabular-nums; }

.lv .w-prov { min-width: 0; display: flex; }

.lv .w-note { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.45; }

.lv .w-note b { color: var(--text); font-weight: 600; }

.lv .delta { font-size: 12px; font-weight: 600; display: inline-block; }

.lv .delta.up { color: var(--warn); }
 
.lv .delta.down { color: var(--ok); }

/* compare */

.lv .cmp { display: grid; gap: 0; font-size: 13px; }

.lv .cmp-row { display: grid; grid-template-columns: minmax(64px, .8fr) repeat(var(--n), minmax(0, 1fr)); align-items: center; border-top: 1px solid var(--hair); }

.lv .cmp-row:first-child { border-top: 0; }

.lv .cmp-row > span { padding: 7px 8px; min-width: 0; overflow-wrap: anywhere; display: block; }

.lv .cmp-h > span { font-weight: 600; color: var(--ink); font-size: 12.5px; padding-top: 4px; }

.lv .cmp-l { color: var(--faint); font-size: 11.5px; font-weight: 500; }

.lv .cmp .best { background: rgba(91, 91, 214, .06); color: var(--ink); font-weight: 600; }

.lv .cmp-h .best { border-radius: 10px 10px 0 0; }

.lv .cmp-row:last-child .best { border-radius: 0 0 10px 10px; }

.lv .cmp em { display: flex; align-items: center; gap: 3px; font-style: normal; font-size: 10px; color: var(--accent); font-weight: 600; margin-top: 1px; }

.lv .cmp em svg.i { width: 10px; height: 10px; }

/* gauge */

.lv .gauge { position: relative; display: grid; justify-items: center; }

.lv .gauge svg { width: 100%; max-width: 210px; height: auto; overflow: visible; }

.lv .g-track { fill: none; stroke: rgba(17, 24, 39, .07); stroke-width: 9; stroke-linecap: round; }

.lv .g-fill { fill: none; stroke: var(--ok); stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset 1.1s cubic-bezier(.2, .9, .2, 1); }

.lv .gauge.over .g-fill { stroke: var(--warn); }

.lv .g-target { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }

.lv .g-val { position: absolute; bottom: 0; display: grid; justify-items: center; }

.lv .g-val span { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); line-height: 1.1; display: inline-block; }

.lv .g-val small { font-size: 11px; color: var(--faint); }

.lv .g-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 12px; color: var(--muted); }

.lv .g-foot b { color: var(--ink); }

/* timeline */

.lv .tl2 { --lw: 92px; position: relative; display: grid; gap: 7px; padding-top: 22px; }

.lv .tl2-lane { display: grid; grid-template-columns: var(--lw) 1fr; align-items: center; gap: 0; }

.lv .tl2-l { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 8px; }

.lv .tl2-track { position: relative; height: 12px; border-radius: 6px; background: rgba(17, 24, 39, .04); }

.lv .tl2-bar { position: absolute; top: 0; bottom: 0; border-radius: 6px; background: var(--ink); opacity: .82; transition: left 1s cubic-bezier(.2, .9, .2, 1), width 1s cubic-bezier(.2, .9, .2, 1); }

.lv .tl2-bar.alt { background: var(--accent); opacity: .75; }

.lv .tl2-axis .tl2-track { background: none; height: 14px; }

.lv .tl2-axis .tl2-track span { position: absolute; top: 0; transform: translateX(-50%); font-size: 10.5px; color: var(--faint); white-space: nowrap; font-variant-numeric: tabular-nums; }

.lv .tl2-axis .tl2-track span:first-child { transform: none; }

.lv .tl2-axis .tl2-track span:last-child { transform: translateX(-100%); }

.lv .tl2-marker { position: absolute; top: 0; bottom: 16px; left: calc(var(--lw) + (100% - var(--lw)) * var(--mf, 0)); width: 0; border-left: 1.5px dashed var(--warn); }

.lv .tl2-marker span { position: absolute; top: 0; left: 0; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; font-size: 10.5px; font-weight: 600; color: var(--warn); background: #fff; border-radius: 999px; padding: 1px 7px; box-shadow: 0 0 0 1px rgba(194, 65, 12, .2); }

.lv .tl2-marker span svg.i { width: 10px; height: 10px; }

/* checklist */

.lv .ck-prog { display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--faint); font-variant-numeric: tabular-nums; }

.lv .ck-prog span { display: inline-block; white-space: nowrap; }

.lv .bar { flex: 1; height: 5px; border-radius: 3px; background: rgba(17, 24, 39, .06); overflow: hidden; }

.lv .bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--ok); transition: width .9s cubic-bezier(.2, .9, .2, 1); }

.lv .ck { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 1px; }

.lv .ck label { display: flex; align-items: center; gap: 9px; padding: 5px 6px; margin: 0 -6px; border-radius: 9px; cursor: pointer; font-size: 13.5px; }

.lv .ck label:hover { background: rgba(17, 24, 39, .035); }

.lv .ck label > span { flex: 1; min-width: 0; }

.lv .ck small { font-size: 11px; color: var(--faint); white-space: nowrap; }

.lv .ck input { appearance: none; width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--hair-strong); background: #fff; margin: 0; flex: none; display: grid; place-items: center; cursor: pointer; transition: background .15s, border-color .15s; }

.lv .ck input:checked { background: var(--ok); border-color: var(--ok); }

.lv .ck input:checked::after { content: ""; width: 7px; height: 3.5px; border: 1.8px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }

.lv .ck input:checked + span { color: var(--faint); text-decoration: line-through; text-decoration-color: var(--hair-strong); }

/* stat */

.lv .st { display: grid; gap: 2px; }

.lv .st-v { font-size: 30px; font-weight: 700; letter-spacing: -0.035em; color: var(--ink); line-height: 1.1; display: inline-block; }

.lv .st-l { font-size: 12.5px; color: var(--muted); }

.lv .st-l b { color: var(--text); }

/* people */

.lv .ppl-n { font-size: 11.5px; color: var(--faint); font-weight: 500; display: inline-block; }

.lv .ppl { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 2px; }

.lv .ppl li { display: flex; align-items: center; gap: 9px; font-size: 13.5px; padding: 3px 0; min-width: 0; }

.lv .av { width: 24px; height: 24px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 11px; font-weight: 600; color: var(--text); background: #fff; box-shadow: inset 0 0 0 1.5px var(--c, var(--hair-strong)); }

.lv .ppl .pn { font-weight: 500; white-space: nowrap; }

.lv .ppl small { font-size: 12px; color: var(--faint); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.lv .ppl em { margin-left: auto; font-style: normal; font-size: 10px; font-weight: 600; color: var(--accent); background: rgba(91, 91, 214, .09); border-radius: 999px; padding: 0 7px; line-height: 17px; }

/* place (drawn mini-map, no images) */

.lv .map { border-radius: 12px; overflow: hidden; height: 84px; box-shadow: inset 0 0 0 1px var(--hair); }

.lv .map svg { width: 100%; height: 100%; display: block; }

.lv .m-bg { fill: #eef0f3; }
 
.lv .m-st { stroke: #fff; stroke-width: 5; fill: none; }
 
.lv .m-main { stroke: #fff; stroke-width: 9; fill: none; }

.lv .m-park { fill: rgba(15, 159, 110, .14); }
 
.lv .m-lbl { font: 600 8px Inter, system-ui; fill: var(--faint); }

.lv .m-halo { fill: rgba(91, 91, 214, .16); }
 
.lv .m-pin { fill: var(--accent); stroke: #fff; stroke-width: 2; }

.lv .pl-name { font-size: 15px; font-weight: 600; color: var(--ink); margin-top: 10px; letter-spacing: -0.01em; }

.lv .pl-addr { font-size: 12.5px; color: var(--muted); }

.lv .pl-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: 12.5px; color: var(--text); }

.lv .pl-meta span { display: inline-flex; align-items: center; gap: 4px; }

.lv .pl-meta svg.i { width: 12px; height: 12px; color: var(--faint); }

.lv .pl-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }

.lv .pl-tags span { font-size: 11px; color: var(--muted); background: rgba(17, 24, 39, .045); border-radius: 999px; padding: 1px 8px; }

/* file */

.lv .fl { display: flex; gap: 12px; align-items: center; }

.lv .fl-prev { position: relative; flex: none; width: 54px; height: 68px; border-radius: 8px; background: #fff; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--hair-strong); padding: 9px 8px; display: grid; align-content: start; gap: 4px; }

.lv .fl-prev i { display: block; height: 3px; border-radius: 2px; background: rgba(17, 24, 39, .12); }

.lv .fl-prev i.s { width: 60%; }

.lv .fl-prev .fr { height: 13px; border-radius: 3px; background: rgba(91, 91, 214, .12); }

.lv .fl-prev .fr.b { width: 55%; }

.lv .fl-prev span { position: absolute; bottom: 5px; left: 6px; font-size: 8.5px; font-weight: 700; letter-spacing: .04em; color: var(--warn); }

.lv .fl-figma span { color: var(--accent); }

.lv .fl-b { min-width: 0; display: grid; gap: 2px; justify-items: start; }

.lv .fl-name { font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.3; display: inline-block; }

.lv .fl-meta { font-size: 12px; color: var(--faint); }

.lv .fl .btn { margin-top: 6px; padding: 3px 10px; font-size: 12px; }

/* countdown */

.lv .cd { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }

.lv .cd-u { display: grid; justify-items: center; padding: 8px 0 6px; border-radius: 12px; background: rgba(17, 24, 39, .035); }

.lv .cd-u b { font-size: 24px; font-weight: 700; color: var(--ink); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.15; display: inline-block; }

.lv .cd-u small { font-size: 10.5px; color: var(--faint); }

.lv .cd-at { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12.5px; color: var(--text); font-weight: 500; }

.lv .cd-at svg.i { width: 13px; height: 13px; color: var(--faint); }

/* quote */

.lv .qt { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink); letter-spacing: -0.01em; position: relative; padding-left: 12px; border-left: 2px solid var(--hair-strong); }

.lv .qt-who { display: flex; align-items: center; gap: 7px; margin-top: 8px; font-size: 12px; color: var(--muted); }

.lv .qt-who .av { width: 20px; height: 20px; font-size: 10px; }

.lv .t-empty { grid-column: 1 / -1; border: 1px dashed var(--hair-strong); border-radius: var(--r-lg); padding: 34px 24px; text-align: center; color: var(--muted); font-size: 14px; }

.lv .t-empty p { margin: 4px auto 0; color: var(--faint); font-size: 13px; max-width: 420px; }

.lv .t-empty .ghosts { display: flex; justify-content: center; gap: 8px; margin-bottom: 16px; }

.lv .t-empty .ghosts span { width: 34px; height: 34px; border-radius: 11px; background: rgba(255, 255, 255, .7); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--hair); display: grid; place-items: center; color: var(--faint); }

/* ======================================================================
   Provenance badges
   ====================================================================== */

.lv .prov { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; font-size: 11px; font-weight: 500; color: var(--muted); background: rgba(17, 24, 39, .04); border-radius: 999px; padding: 1px 8px 1px 6px; line-height: 17px; }

.lv .prov > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

.lv .prov svg.i { width: 11px; height: 11px; flex: none; }

.lv .prov--hear svg.i { color: var(--live); }

.lv .prov--browse svg.i { color: var(--accent); }

.lv .prov--type svg.i { color: var(--ok); }

.lv .prov--web svg.i, .lv .prov--data svg.i { color: var(--muted); }

.lv .prov.hl { animation: lv-provhl 2.2s cubic-bezier(.2, .8, .2, 1); }

@keyframes lv-provhl { 0%, 30% { background: rgba(91, 91, 214, .16); color: var(--ink); box-shadow: 0 0 0 3px rgba(91, 91, 214, .1); } 100% { background: rgba(17, 24, 39, .04); } }

.lv .cx-prov { margin-top: 7px; display: flex; min-width: 0; }

.lv .src-detail .prov { margin-top: 6px; }

.lv .cx-ico.typed, .lv .src .src-ico.typed { background: rgba(15, 159, 110, .09); color: var(--ok); }

.lv .cx-lock { display: inline-flex; color: var(--faint); }

.lv .cx-lock svg.i { width: 10px; height: 10px; }

.lv .cx--note .cx-kind { color: var(--muted); }

/* filters: scroll inside the chip row when they don't fit */

.lv .ctx .seg--filter { overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }

.lv .ctx .seg--filter::-webkit-scrollbar { display: none; }

.lv .ctx .seg--filter button { flex: none; padding: 5px 9px; gap: 4px; }

.lv .ctx .seg--filter button svg.i { width: 12px; height: 12px; }

/* ======================================================================
   Inputs strip — Hearing · Browsing · Typing (replaces the single caption line)
   ====================================================================== */

.lv .inputs { display: flex; align-items: stretch; gap: 4px; min-width: 0; padding: 0 2px; }

.lv .inputs .listen { width: 34px; height: auto; min-height: 40px; padding: 0; justify-content: center; border-radius: 14px; flex: none; }

.lv .ch {
  position: relative; flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 8px; text-align: left; border: 0; background: none;
  padding: 5px 8px 5px 6px; border-radius: 14px; color: var(--muted); transition: background .2s, flex-grow .45s cubic-bezier(.2, .9, .2, 1);
}

.lv .ch--hear { flex-grow: .9; }
 
.lv .ch--browse, .lv .ch--type { flex-grow: 1.05; }

.lv .ch:hover { background: rgba(17, 24, 39, .04); }

.lv .ch[aria-expanded="true"] { background: rgba(255, 255, 255, .9); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--hair); }

.lv .ch + .ch::before { content: ""; position: absolute; left: -3px; top: 10px; bottom: 10px; width: 1px; background: var(--hair); }

.lv .ch-ico { flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: rgba(17, 24, 39, .045); color: var(--faint); transition: color .3s, background .3s; }

.lv .ch-ico svg.i { width: 14px; height: 14px; }

.lv .ch-ico.fav { font-size: 12px; font-weight: 700; color: var(--faint); background: #fff; box-shadow: inset 0 0 0 1px var(--hair-strong); }

.lv .ch--hear .ch-ico { background: none; width: 26px; }

.lv .ch-txt { flex: 1; min-width: 0; display: grid; gap: 1px; }

.lv .ch-lbl { display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; letter-spacing: 0; color: var(--faint); white-space: nowrap; min-width: 0; }

.lv .ch-dot { position: relative; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--hair-strong); transition: background .3s; }

.lv .ch-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid currentColor; opacity: 0; }

.lv .ch--hear .ch-dot { color: var(--live); }
 
.lv .ch--browse .ch-dot { color: var(--accent); }
 
.lv .ch--type .ch-dot { color: var(--ok); }

.lv .ch--hear .ch-dot { background: rgba(239, 68, 68, .45); }

.lv .ch.on .ch-dot { background: currentColor; }

.lv .ch.on .ch-lbl { color: var(--muted); }

.lv .ch.on .ch-ico { color: var(--text); }

.lv .ch--browse.on .ch-ico.fav { color: var(--ink); }

.lv .ch--type.on .ch-ico { color: var(--ok); background: rgba(15, 159, 110, .09); }

.lv .ch.pulse .ch-dot { background: currentColor; }

.lv .ch.pulse .ch-dot::after { animation: lv-ring 1.1s ease-out 2; }

.lv .ch.pulse { animation: lv-chpulse 1.4s cubic-bezier(.2, .8, .2, 1); }

@keyframes lv-chpulse { 0%, 25% { background: rgba(91, 91, 214, .08); } 100% { background: transparent; } }

.lv .priv { display: inline-flex; align-items: center; gap: 2px; text-transform: none; letter-spacing: -0.01em; font-weight: 500; font-size: 9.5px; color: var(--faint); min-width: 0; overflow: hidden; }

.lv .priv svg.i { width: 9px; height: 9px; flex: none; }

.lv .ch-lbl .priv { margin-left: 2px; white-space: nowrap; text-overflow: ellipsis; }

.lv .ch-line { font-size: 12.5px; color: var(--faint); height: 18px; line-height: 18px; min-width: 0; }

.lv .ch-line.roller > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.lv .ch-line b { font-weight: 500; color: var(--muted); }

.lv .ch.on .ch-line { color: var(--muted); }

.lv .ch--hear .ch-line { display: flex; align-items: center; gap: 6px; }

.lv .ch--hear .cap-who { width: 16px; height: 16px; font-size: 9px; }

.lv .ch--hear .meter { height: 16px; }

.lv.paused .ch-dot { background: var(--hair-strong) !important; }

.lv.paused .ch-line { color: var(--faint) !important; }

/* drawer (per channel) */

.lv .sheet-head { flex-wrap: wrap; row-gap: 6px; }

.lv .sheet-head .seg button svg.i { width: 13px; height: 13px; }

.lv .sheet-head .muted { flex: 1; font-size: 12.5px; color: var(--faint); }

.lv .sheet-priv { display: flex; gap: 6px; align-items: center; margin: 0; padding: 8px 20px; font-size: 11.5px; border-bottom: 1px solid var(--hair); background: rgba(17, 24, 39, .02); white-space: normal; }

.lv .sheet-priv[hidden] { display: none; }

.lv .sheet-priv svg.i { width: 11px; height: 11px; }

.lv .dn { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--hair); }

.lv .dn:first-child { border-top: 0; }

.lv .dn-t { font-size: 13.5px; font-weight: 500; color: var(--text); }

.lv .dn-m { font-size: 11.5px; color: var(--faint); }

.lv .dn-n { font-size: 13px; color: var(--muted); margin-top: 3px; }

.lv .dn-n b { color: var(--text); font-weight: 600; }

.lv .dn-n.muted { color: var(--faint); font-style: italic; }

/* ---------- narrow: one column, Ken / Context switch ---------- */

@media (max-width: 1240px) {

.lv .layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "now" "head" "feed" "dock"; padding: 12px 20px 0; }

.lv .ctx { grid-area: feed; grid-row: auto; position: static; height: auto; overflow: visible; display: none; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; width: 100%; max-width: var(--col); justify-self: center; }

.lv[data-view="ctx"] .ctx { display: flex; }

.lv[data-view="ctx"] .feed { display: none; }

.lv .ctx-head { padding: 0 0 10px; border: 0; }

.lv .ctx-title { display: none; }

.lv .cx-list { overflow: visible; padding: 0; }

.lv.researching .cx-working-in { border: 0; border-radius: 12px; margin-bottom: 8px; }

.lv[data-view="ctx"] .feed { display: none; }

.lv .only-narrow { display: inline-flex !important; }

.lv .head-hint { display: none; }

.lv .feed-head { padding: 16px 0 12px; }

.lv .ctx .seg--filter { margin: 0 -20px; padding-left: 20px; padding-right: 20px; border-radius: 0; background: none; box-shadow: none; width: auto; }

}

/* ---------- mobile ---------- */

@media (max-width: 860px) {

.lv .layout { padding: 10px 12px 0; min-height: calc(100vh - 44px); }

.lv .now { top: 8px; padding: 12px 12px 12px 14px; }

.lv .now-row { gap: 10px; }

.lv .now-topic { font-size: 15.5px; height: 23px; }

.lv .now-stand { font-size: 13px; height: 40px; }

.lv .now-stand > span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 20px; }

.lv .sum-btn .lbl { display: none; }

.lv .sum-btn { padding: 6px 8px 6px 10px; }

.lv .feed-head { padding: 14px 0 10px; }

.lv .seg--view { width: 100%; }

.lv .seg--view button { flex: 1; justify-content: center; padding: 6px 6px; font-size: 13px; gap: 4px; }

.lv .seg--view .seg-n { display: none; }

.lv .ctx .seg--filter { margin: 0 -12px; padding-left: 12px; padding-right: 12px; }

.lv .table { grid-template-columns: minmax(0, 1fr); }

/* inputs: the channel that's active right now gets the room; the others shrink to icon + dot */

.lv .inputs { gap: 2px; }

.lv .ch { padding: 4px 6px 4px 4px; gap: 6px; flex: 0 0 auto; }

.lv .ch.focus { flex: 1 1 0; }

.lv .ch:not(.focus) .ch-txt { display: none; }

.lv .ch:not(.focus) .ch-ico { position: relative; }

.lv .ch-lbl .priv { display: none; }

.lv .ch:not(.focus)::after { content: ""; position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--hair-strong); }

.lv .ch--browse.on:not(.focus)::after { background: var(--accent); }

.lv .ch--type.on:not(.focus)::after { background: var(--ok); }

.lv .ch--hear:not(.focus)::after { background: var(--live); }

.lv .ch + .ch::before { display: none; }

.lv .sheet-priv { padding: 8px 16px; }

.lv .m { padding: 14px 14px 13px 12px; grid-template-columns: 26px 1fr; gap: 0 10px; }

.lv .m-ico { width: 26px; height: 26px; border-radius: 9px; }

.lv .m-head { min-height: 26px; }

.lv .m-text { font-size: 15px; }

.lv .dock { bottom: 8px; margin-bottom: 8px; border-radius: 22px; width: 100%; }

.lv .listen .lbl, .lv .tr-btn .lbl, .lv .tr-btn kbd, .lv .talk .lbl { display: none; }

.lv .listen { padding: 6px 8px; }

.lv .talk { width: 36px; padding: 0; justify-content: center; }

.lv .sheet { left: 50%; width: calc(100vw - 16px); bottom: 8px; height: 72vh; }

.lv .tl { grid-template-columns: 1fr; gap: 0; }

.lv .tl .who small { display: inline; margin-left: 6px; }

}

@media (prefers-reduced-motion: reduce) {

.lv *, .lv *::before, .lv *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }

}

.lv .ctx .seg--filter { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }

.lv .ctx .seg--filter.at-end { -webkit-mask-image: none; mask-image: none; }


/* ---------- real-app fixes (the app's global form styles; marker labels at the edges) ---------- */
.lv .ck label { flex-direction: row; text-align: left; font-weight: 400; color: var(--text); }
.lv .ck input[type="checkbox"], .lv .ck input[type="checkbox"]:focus { width: 16px; height: 16px; padding: 0; box-shadow: none; accent-color: initial; }
.lv .ck input[type="checkbox"]:checked { background: var(--ok); border-color: var(--ok); }
.lv .compose input, .lv .compose input:focus { border: 0; box-shadow: none; background: none; padding: 7px 0; border-radius: 0; }
.lv .tl2-marker.end span { transform: translateX(-100%); }
.lv .tl2-marker.start span { transform: none; }
.lv .pl-name a, .lv .cx-title a, .lv .dn-t a { color: inherit; text-decoration: none; }
.lv .pl-name a:hover, .lv .cx-title a:hover, .lv .dn-t a:hover { text-decoration: underline; text-underline-offset: 2px; }
.lv a.src, .lv a.btn { text-decoration: none; color: var(--text); }
.lv .layout { padding-top: 0; }
