/* The product canvas follows Lily, never the brand layer.
   Ground #f2f3ee, a lighter shell for topic wrappers, white cards at 18px, wrappers at 26 to 30px, pills at 7px,
   a hairline ring on everything inside, one soft shadow on the outermost wrapper only. Inter, no mono. */

.cv, .lily {
  --c-ground: var(--lily-ground); --c-shell: var(--lily-shell); --c-card: var(--lily-card); --c-inset: var(--lily-inset);
  --c-ink: var(--lily-ink); --c-ink2: var(--lily-ink-2); --c-muted: var(--lily-muted); --c-hair: var(--lily-rule);
  --c-dash: var(--color-lily-line); --c-off: var(--color-lily-off);
  --c-green: var(--lily-green); --c-amber: var(--lily-amber); --c-red: var(--color-lily-danger); --c-blue: var(--color-lily-info); --c-violet: var(--color-lily-idea);
  --ring: 0 0 0 1px var(--lily-hair);
  --lift: 0 0 0 1px var(--lily-hair), 0 1px 2px rgb(25 30 22 / 3%), 0 22px 44px -26px rgb(25 30 22 / 24%);
  --ease: cubic-bezier(.22, .8, .24, 1);
  font-family: var(--lily-font); color: var(--c-ink); font-size: 14px; line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
.cv { position: absolute; inset: 0; background: var(--c-ground); overflow: hidden; contain: strict; }
.cv svg { display: block; }
.cv .ico { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.cv .gone { display: none !important; }
.cv.instant *, .cv.instant *::before, .cv.instant *::after { transition: none !important; animation: none !important; }
.cv-world { width: 0; height: 0; }
.cv-ghost { position: absolute; inset: 0; z-index: 2; pointer-events: none; transition: opacity 1.1s cubic-bezier(.4, 0, .2, 1); }
.cv-ghost, .cv-ghost * { animation: none !important; }
.cv-ghost * { transition: none !important; }
.cv-viewport { z-index: 1; }
.cv-cover { position: absolute; left: 0; top: 0; width: 100px; height: 100px; transform-origin: 0 0; background: var(--c-ground); z-index: 8; pointer-events: none; will-change: transform; }
.cv-edges { position: absolute; left: 0; top: 0; width: 10px; height: 10px; overflow: visible; pointer-events: none; z-index: 5; }
.cv-edges path { fill: none; stroke: var(--c-muted); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cv-edges .edge { stroke-dasharray: 1 1; stroke-dashoffset: 1; }

/* topic frame: the outermost wrapper, the only element with a shadow */
.cv .frame { position: absolute; width: max-content; background: var(--c-shell); border-radius: 30px; padding: 10px; box-shadow: var(--lift); transition: left .6s var(--ease), top .6s var(--ease), opacity .25s ease; }
.cv .frame.noanim { transition: none; }
.cv .frame.pop { animation: pop .7s cubic-bezier(.2, .8, .2, 1) backwards; transform-origin: left 60px; }
@keyframes pop { from { opacity: 0; transform: translateX(-80px) scale(.92); } }
.cv .frame.popdown { animation: popdown .7s cubic-bezier(.2, .8, .2, 1) backwards; transform-origin: 50% 0; }
@keyframes popdown { from { opacity: 0; transform: translateY(-50px) scale(.94); } }
.cv .fhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 12px 12px 14px 14px; min-width: 300px; }
.cv .ftitle { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cv .fhead h1 { font-size: 20px; font-weight: 550; letter-spacing: -.025em; margin: 0; line-height: 1.2; }
.cv .crumb { font-size: 12.5px; color: var(--c-muted); margin-bottom: 4px; display: flex; align-items: center; gap: 5px; }
.cv .crumb .ico { width: 12px; height: 12px; }
.cv .type { font-size: 12px; color: var(--c-ink2); background: var(--c-inset); box-shadow: var(--ring); border-radius: 7px; padding: 2px 8px; }
.cv .fsum { font-size: 13px; color: var(--c-ink2); margin-top: 4px; max-width: 46ch; min-height: 19px; }
.cv .fstate { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500; color: var(--c-green); white-space: nowrap; padding-top: 5px; }
.cv .live, .hud .live { display: flex; align-items: center; gap: 2.5px; height: 14px; }
.cv .live i { width: 2.5px; height: 13px; border-radius: 2px; background: var(--c-green); animation: hear 1.1s ease-in-out infinite; }
.cv .live i:nth-child(1) { animation-delay: -.9s; } .cv .live i:nth-child(2) { animation-delay: -.2s; } .cv .live i:nth-child(3) { animation-delay: -.6s; } .cv .live i:nth-child(4) { animation-delay: -.35s; } .cv .live i:nth-child(5) { animation-delay: -.75s; }
@keyframes hear { 0%, 100% { transform: scaleY(.28); opacity: .55; } 50% { transform: scaleY(1); opacity: 1; } }
.cv .fbody { display: flex; align-items: flex-start; gap: 14px; }
.cv .col { display: flex; flex-direction: column; gap: 16px; flex: none; }
.cv .col.a { width: 300px; } .cv .col.b { width: 380px; } .cv .col.c { width: 780px; }
.cv .places { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-items: start; }
.cv .duo { display: flex; gap: 14px; align-items: flex-start; } .cv .duo .wrap { flex: 1; min-width: 0; }

/* nested wrapper: no surface of its own, just a strip and a body */
.cv .strip { display: flex; align-items: baseline; gap: 9px; padding: 2px 10px 8px 8px; }
.cv .strip b { font-weight: 600; font-size: 12.5px; letter-spacing: -.005em; }
.cv .strip span { color: var(--c-muted); font-size: 12.5px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv .strip em { font-style: normal; font-size: 11.5px; color: var(--c-muted); white-space: nowrap; }
.cv .wbody { display: flex; flex-direction: column; gap: 8px; }
.cv .arrive { animation: arrive .6s cubic-bezier(.2, .8, .2, 1) backwards; }
@keyframes arrive { from { opacity: 0; transform: translateY(12px) scale(.985); } }
.cv .rowin { animation: rowin .5s cubic-bezier(.2, .8, .2, 1) backwards; }
@keyframes rowin { from { opacity: 0; transform: translateY(8px); } }
.cv .intro .card, .cv .intro .strip, .cv .intro .fhead { animation: arrive .8s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--i, 0) * 70ms + 120ms); }

/* cards */
.cv .card { position: relative; background: var(--c-card); border-radius: 18px; padding: 16px 18px; box-shadow: var(--ring); }
.cv h2 { font-size: 15px; font-weight: 550; letter-spacing: -.02em; margin: 0; line-height: 1.3; }
.cv .sub { color: var(--c-muted); font-size: 12.5px; margin-top: 2px; }
.cv .head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cv .pill, .lily .lpill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 7px; font-size: 11.5px; font-weight: 500; white-space: nowrap; color: var(--c); background: color-mix(in srgb, var(--c) 13%, var(--c-card)); transition: color .35s, background-color .35s; }
.cv .pill.green, .lily .lpill.green { --c: var(--c-green); } .cv .pill.amber, .lily .lpill.amber { --c: var(--c-amber); } .cv .pill.red { --c: var(--c-red); } .cv .pill.blue { --c: var(--c-blue); } .cv .pill.gray, .lily .lpill.gray { --c: var(--c-muted); }
.cv .chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 7px; background: var(--c-inset); box-shadow: var(--ring); color: var(--c-ink2); font-size: 11.5px; white-space: nowrap; }
.cv .newdot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-blue) 22%, var(--c-card)); flex: none; }

.cv .rows { list-style: none; margin: 10px 0 0; padding: 0; }
.cv .rows.flush { margin-top: 0; }
.cv .rows li { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-top: 1px solid var(--c-hair); }
.cv .rows li.top { border-top: 0; padding-top: 4px; }
.cv .av { width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center; font-style: normal; font-size: 10.5px; font-weight: 600; letter-spacing: .01em; color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--c-card)); }
.cv .av.blue { --c: var(--c-blue); } .cv .av.violet { --c: var(--c-violet); } .cv .av.amber { --c: var(--c-amber); }
.cv .rows .t { flex: 1; min-width: 0; } .cv .rows .t b { font-weight: 400; font-size: 13.5px; display: block; } .cv .rows .t span { font-size: 12px; color: var(--c-muted); }
.cv .rows .more { color: var(--c-muted); font-size: 12.5px; padding-bottom: 0; }
.cv .check { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--c-dash); flex: none; }
.cv li.done .check { border-color: var(--c-green); background: color-mix(in srgb, var(--c-green) 16%, var(--c-card)); }

.cv .big { display: flex; align-items: baseline; gap: 14px; margin-top: 8px; }
.cv .big div { font-size: 30px; letter-spacing: -.03em; line-height: 1; } .cv .big div small { font-size: 13px; color: var(--c-muted); letter-spacing: 0; margin-left: 4px; }
.cv .segs { display: flex; gap: 2px; margin-top: 12px; }
.cv .segs i { flex: 1; height: 24px; border-radius: 3px; background: var(--c-off); }
.cv .legend { display: flex; gap: 12px; margin-top: 10px; font-size: 12px; color: var(--c-ink2); flex-wrap: wrap; }
.cv .legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }

.cv .kvs { margin: 0; }
.cv .kv { display: grid; grid-template-columns: 34% 1fr; gap: 10px; padding: 9px 0; border-top: 1px dashed var(--c-dash); font-size: 13px; }
.cv .kv.top { margin-top: 12px; } .cv .kv dt { color: var(--c-muted); } .cv .kv dd { margin: 0; } .cv .kv dd small { display: block; color: var(--c-muted); font-size: 12px; }

/* itinerary */
.cv .itin { padding: 12px 18px 10px; }
.cv .day { font-size: 12px; color: var(--c-muted); padding: 12px 0 4px; } .cv .day.top { padding-top: 2px; }
.cv .irow { position: relative; display: grid; grid-template-columns: 62px 20px 1fr auto; align-items: center; min-height: 44px; border-radius: 10px; transition: background-color .4s ease, box-shadow .4s ease; }
.cv .irow .tm { font-size: 12.5px; color: var(--c-ink2); white-space: nowrap; }
.cv .irow .rl { position: relative; align-self: stretch; }
.cv .irow .rl::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1.5px; background: var(--c-dash); transform: translateX(-50%); }
.cv .irow .rl::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--c-card); border: 1.5px solid var(--c-muted); transform: translate(-50%, -50%); transition: background-color .3s, border-color .3s; }
.cv .irow .bd { padding: 6px 10px 6px 8px; min-width: 0; }
.cv .irow .bd b { font-weight: 400; font-size: 13.5px; display: block; } .cv .irow .bd span { font-size: 12px; color: var(--c-muted); }
.cv .irow .st { display: flex; align-items: center; gap: 7px; }
.cv .irow .extra { display: none; align-items: center; gap: 6px; margin-top: 6px; }
.cv .mass { display: inline-flex; gap: 2px; margin-left: 4px; } .cv .mass i { width: 3px; height: 11px; border-radius: 1.5px; background: var(--c-off); transition: background-color .3s; } .cv .mass i.on { background: var(--c-amber); }
.cv .irow.heat { background: color-mix(in srgb, var(--c-amber) 10%, var(--c-card)); box-shadow: -10px 0 0 color-mix(in srgb, var(--c-amber) 10%, var(--c-card)), 10px 0 0 color-mix(in srgb, var(--c-amber) 10%, var(--c-card)); }
.cv .irow.heat .extra { display: flex; } .cv .irow.heat .rl::after { border-color: var(--c-amber); background: var(--c-amber); }
.cv .irow.stub .rl::after { border-color: var(--c-ink); background: var(--c-ink); }
.cv .port { position: absolute; right: -35px; top: 50%; width: 11px; height: 11px; border-radius: 50%; background: var(--c-card); border: 2px solid var(--c-muted); transform: translateY(-50%) scale(0); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); z-index: 6; }
.cv .irow.stub .port { transform: translateY(-50%) scale(1); }

/* map */
.cv .mapcard { padding: 8px; }
.cv .map { position: relative; border-radius: 12px; overflow: hidden; height: 250px; background: #EDEFE8; }
.cv .map svg { width: 100%; height: 100%; }
.cv .map svg { transform-origin: 0 0; transition: transform 1.3s var(--ease); will-change: transform; }
.cv .map .land { fill: #EDEFE8; } .cv .map .water { fill: #D2E1EA; } .cv .map .park { fill: #D8E5D1; }
.cv .map .road { fill: none; stroke: #fff; stroke-linecap: round; stroke-linejoin: round; }
.cv .map .case { fill: none; stroke: #DDE0D7; stroke-linecap: round; stroke-linejoin: round; }
.cv .map .hwy { stroke: #F2E6C4; } .cv .map .hwycase { stroke: #E2D3A6; }
.cv .map text { font-family: var(--lily-font); font-size: 9.5px; fill: #8A9086; transition: opacity .5s; }
.cv .map text.water-t { fill: #6F93AD; font-style: italic; font-size: 10.5px; } .cv .map text.park-t { fill: #6F8C67; }
.cv .map.zoomed text.far { opacity: 0; }
.cv .route, .cv .halo { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.cv .halo { stroke: #fff; stroke-width: 7.5; transition: opacity .4s; }
.cv .route { stroke: var(--c-blue); stroke-width: 3.6; transition: stroke .5s, opacity .4s; }
.cv .route.win { stroke: var(--c-green); } .cv .route.lose, .cv .halo.lose { opacity: 0; }
.cv .rhead { fill: #fff; stroke: var(--c-blue); stroke-width: 2.5; opacity: 0; transition: opacity .25s; }
.cv .rhead.on { opacity: 1; }
.cv .eta { opacity: 0; transition: opacity .4s; } .cv .eta.on { opacity: 1; }
.cv .eta rect { fill: var(--c-blue); transition: fill .4s; } .cv .eta.win rect { fill: var(--c-green); }
.cv .eta text { fill: #fff; font-size: 11px; font-weight: 600; text-anchor: middle; }
.cv .eta.lose { opacity: 0; }
.cv .mpin path { fill: var(--c-ink); stroke: #fff; stroke-width: 1.5; transition: fill .4s; }
.cv .mpin .glyph { fill: #fff; stroke: none; }
.cv .mpin text { fill: #fff; font-size: 10px; font-weight: 600; text-anchor: middle; }
.cv .mpin { transition: opacity .4s; }
.cv .mpin.zero { opacity: 0; }
.cv .mpin.drop { animation: drop .75s cubic-bezier(.2, .8, .3, 1) backwards; }
@keyframes drop { 0% { opacity: 0; transform: translateY(-34px) scale(.62); } 55% { opacity: 1; transform: translateY(2px) scale(1.04, .94); } 75% { transform: translateY(-3px) scale(.99, 1.02); } 100% { transform: none; } }
.cv .mpin.win path { fill: var(--c-green); } .cv .mpin.lose { opacity: .28; }
.cv .mpin.home path { fill: var(--c-blue); } .cv .mpin.home .glyph { fill: #fff; }
.cv .maptag { position: absolute; left: 10px; bottom: 10px; font-size: 11.5px; color: var(--c-ink2); background: rgb(255 255 255 / 92%); border-radius: 7px; padding: 3px 8px; box-shadow: var(--ring); }

/* places */
.cv .place { padding: 14px 16px; transition: transform .75s cubic-bezier(.5, 0, .2, 1), opacity .5s ease .2s, box-shadow .4s; }
.cv .ptop { display: flex; align-items: flex-start; gap: 11px; } .cv .ptop > div { min-width: 0; flex: 1; }
.cv .place .num { flex: none; width: 26px; height: 26px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); background: var(--c-ink); display: grid; place-items: center; margin-top: 2px; transition: background-color .4s; }
.cv .place .num b { transform: rotate(45deg); color: #fff; font-size: 12px; font-weight: 600; }
.cv .place .rate { font-size: 12px; color: var(--c-ink2); margin-top: 5px; display: flex; align-items: center; gap: 6px; }
.cv .stars { color: var(--c-amber); letter-spacing: 1px; font-size: 11.5px; }
.cv .facts { margin-top: 10px; border-top: 1px dashed var(--c-dash); padding-top: 4px; }
.cv .fact { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 4px 0; }
.cv .fact span { font-size: 12px; color: var(--c-muted); }
.cv .fact b { font-weight: 400; font-size: 16px; letter-spacing: -.02em; line-height: 1.25; white-space: nowrap; }
.cv .fact b.empty { color: var(--c-dash); }
.cv .fact b small { font-size: 11.5px; color: var(--c-muted); letter-spacing: 0; margin-left: 3px; }
.cv .fact.land b { animation: land .7s cubic-bezier(.2, .8, .2, 1); }
@keyframes land { from { opacity: 0; transform: translateY(6px); } }
.cv .place .note { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; min-height: 22px; }
.cv .place.wide { grid-column: 1 / -1; } .cv .place.wide .facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 28px; padding-top: 8px; } .cv .place.wide .fact { display: block; } .cv .place.wide .fact b { display: block; font-size: 22px; }
.cv .place.wide .kvs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; } .cv .place.wide .kv:nth-child(2) { margin-top: 12px; }
.cv .place.merging { z-index: 1; opacity: 0; transition: transform .8s cubic-bezier(.5, 0, .2, 1), opacity .35s ease .45s; }
.cv .place.win { box-shadow: 0 0 0 2px var(--c-green); z-index: 2; } .cv .place.win .num { background: var(--c-green); }
.cv .place.hit { animation: hit .8s ease-out; }
@keyframes hit { 0% { box-shadow: 0 0 0 2px var(--c-green), 0 0 0 0 color-mix(in srgb, var(--c-green) 40%, transparent); } 40% { box-shadow: 0 0 0 2px var(--c-green), 0 0 0 12px color-mix(in srgb, var(--c-green) 14%, transparent); } 100% { box-shadow: 0 0 0 2px var(--c-green), 0 0 0 12px transparent; } }
.cv .fold { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s cubic-bezier(.3, .7, .2, 1); }
.cv .fold.open { grid-template-rows: 1fr; } .cv .fold > div { overflow: hidden; }
.cv .kpi { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 6px; }
.cv .kpi .num { font-size: 34px; letter-spacing: -.03em; line-height: 1; } .cv .kpi .num small { font-size: 14px; color: var(--c-muted); letter-spacing: 0; margin-left: 4px; }
.cv .kpi table { border-collapse: collapse; font-size: 12px; } .cv .kpi td { padding: 1px 0 1px 12px; text-align: right; } .cv .kpi td:first-child { color: var(--c-muted); text-align: left; padding-left: 0; }

/* hud: listening pill and transcript dock float above the world */
.cv .hud { position: absolute; left: 0; top: 0; z-index: 10; background: rgb(255 255 255 / 94%); box-shadow: var(--lift); will-change: transform; }
.cv .hud-top { display: flex; align-items: center; gap: 11px; height: 42px; padding: 0 15px; border-radius: 14px; white-space: nowrap; }
.cv .hud-top .live { height: 18px; } .cv .hud-top .live i { width: 3px; height: 17px; }
.cv .hud-top .state { font-size: 13px; color: var(--c-green); font-weight: 500; }
.cv .hud-top .sep { width: 1px; height: 18px; background: var(--c-dash); }
.cv .hud-top .title { font-size: 13.5px; font-weight: 500; } .cv .hud-top .clock { font-size: 13px; color: var(--c-muted); min-width: 36px; }
.cv .hud-dock { width: 760px; border-radius: 22px; padding: 12px 14px 10px 16px; }
.cv .prior { display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; color: var(--c-muted); padding: 0 0 7px 46px; height: 26px; white-space: nowrap; overflow: hidden; }
.cv .prior b { font-weight: 500; color: var(--c-ink2); flex: none; } .cv .prior span { overflow: hidden; text-overflow: ellipsis; }
.cv .said-row { display: flex; align-items: flex-start; gap: 12px; min-height: 50px; }
.cv .face { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 600; color: #fff; margin-top: 2px; background: var(--c-muted); transition: background-color .3s; }
.cv .said { min-width: 0; flex: 1; }
.cv .said .who { font-weight: 500; font-size: 13px; } .cv .said .who span { color: var(--c-muted); font-weight: 400; margin-left: 6px; }
.cv .roll { margin: 1px 0 0; font-size: 16px; line-height: 1.42; color: var(--c-ink); min-height: 46px; }
.cv .roll .w { transition: color .35s; } .cv .roll .w.soft { color: var(--c-muted); }
.cv .roll .caret { display: inline-block; width: 2px; height: 16px; background: var(--c-green); margin-left: 3px; vertical-align: -2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.cv .ctl { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding-top: 9px; border-top: 1px dashed var(--c-dash); }
.cv .op { font-size: 12.5px; color: var(--c-ink2); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv .op b { font-weight: 500; color: var(--c-ink); margin-right: 6px; }
.cv .steps { display: flex; gap: 3px; } .cv .steps button { width: 9px; height: 22px; border-radius: 3px; background: var(--c-off); border: 0; padding: 0; cursor: pointer; transition: background-color .25s; }
.cv .steps button.on { background: var(--c-ink); } .cv .steps button.cur { background: var(--c-green); }
.cv .navb { display: flex; gap: 4px; } .cv .navb button { width: 34px; height: 34px; border-radius: 10px; background: var(--c-inset); box-shadow: var(--ring); border: 0; padding: 0; display: grid; place-items: center; color: var(--c-ink2); cursor: pointer; }
.cv .navb button:hover { background: var(--c-hair); }
.cv .hud-dock.compact { padding: 10px 14px 10px 14px; }
.cv .hud-dock.compact .prior, .cv .hud-dock.compact .ctl { display: none; }
.cv .hud-dock.compact .roll { min-height: 0; font-size: 14.5px; height: 2.84em; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.cv .hud-dock.compact .said .who { font-size: 12.5px; }
.cv .hud-dock.side { border-radius: 18px; }
.cv .hud-dock.side .roll { height: 4.26em; }
.cv .hud-dock.compact .said-row { min-height: 0; }

/* narrow canvas (phones): the world re-composes into one column and the dinner topic sits below the summit */
.cv.narrow .fbody { flex-direction: column; gap: 16px; }
.cv.narrow .col.a, .cv.narrow .col.b, .cv.narrow .col.c { width: 318px; }
.cv.narrow .fhead { min-width: 0; padding: 10px 8px 12px 10px; }
.cv.narrow .fhead h1 { font-size: 19px; }
.cv.narrow .places { grid-template-columns: 1fr; }
.cv.narrow .map { height: 164px; }
.cv.narrow .map text { font-size: 15px; } .cv.narrow .map text.water-t { font-size: 16px; }
.cv.narrow .eta text { font-size: 17px; transform: translateY(2px); } .cv.narrow .eta rect { x: -38px; y: -15px; width: 76px; height: 30px; rx: 10px; }
.cv.narrow .mpin > * { transform: scale(1.3); } .cv.narrow .rhead { r: 6px; }
.cv.narrow .facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 12px; }
.cv.narrow .fact { display: block; } .cv.narrow .fact b { display: block; font-size: 17px; }
.cv.narrow .place.wide .facts { gap: 0 12px; } .cv.narrow .place.wide .fact b { font-size: 19px; }
.cv.narrow .place.wide .kvs { grid-template-columns: 1fr; } .cv.narrow .place.wide .kv:nth-child(2) { margin-top: 0; }
.cv.narrow .duo { flex-direction: column; gap: 16px; } .cv.narrow .duo .wrap { width: 100%; }
.cv.narrow .port { right: -20px; }
.cv.narrow .hud-top { height: 38px; padding: 0 12px; gap: 9px; border-radius: 12px; }
.cv.narrow .hud-top .title { font-size: 13px; }
.cv.narrow .hud-dock { border-radius: 18px; padding: 10px 12px; }
.cv.narrow .prior { display: none; }
.cv.narrow .roll { font-size: 14.5px; min-height: 42px; }
.cv.narrow .face { width: 30px; height: 30px; font-size: 11px; }
.cv.narrow .ctl { margin-top: 6px; padding-top: 7px; }
.cv.narrow .navb, .cv.narrow .steps { display: none; }

@media (prefers-reduced-motion: reduce) {
  .cv { position: relative; inset: auto; height: min(78vh, 860px); margin: 0 var(--gutter); border-radius: 26px; contain: layout paint; }
  .cv .live i, .cv .roll .caret { animation: none; }
}

/* Lily depictions inside the brand sections (cutaway and source) */
.lily { position: relative; }
.lily .lw { position: absolute; background: var(--c-shell); border-radius: 26px; padding: 10px; box-shadow: var(--lift); transition: box-shadow .35s ease, opacity .35s ease; }
.lily .lw-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px 10px; }
.lily .lw-head b { font-size: 15px; font-weight: 550; letter-spacing: -.02em; }
.lily .lw-head .muted { font-size: 12.5px; color: var(--c-muted); }
.lily .lw-topic > div { display: flex; flex-direction: column; gap: 3px; }
.lily .lw-topic b { font-size: 21px; font-weight: 500; letter-spacing: -.025em; }
.lily .lw-topic span { font-size: 13px; color: var(--c-ink2); }
.lily .lcard { position: relative; background: var(--c-card); border-radius: 18px; padding: 14px 16px; box-shadow: var(--ring); transition: box-shadow .35s ease, opacity .35s ease; }
.lily .lcard + .lcard { margin-top: 6px; }
.lily .lcard h4 { font-size: 15px; font-weight: 550; letter-spacing: -.02em; margin: 8px 0 4px; }
.lily .lcard p { font-size: 13px; color: var(--c-ink2); margin: 0 0 4px; }
.lily .lcard small { display: block; font-size: 12px; color: var(--c-muted); }
.lily .lcard.decided { box-shadow: 0 0 0 2px var(--c-green); }
.lily .tx { padding: 12px 16px; }
.lily .txrow { display: grid; grid-template-columns: 50px 1fr; gap: 0; padding: 10px 0; }
.lily .txrow + .txrow { border-top: 1px solid var(--c-hair); }
.lily .txrow time { font-size: 12.5px; color: var(--c-muted); padding-top: 1px; }
.lily .txrow.src time { color: var(--c-green); }
.lily .txrow b { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 5px; }
.lily .txrow p { font-size: 13.5px; line-height: 1.5; color: var(--c-ink); margin: 0; }
.lily .mk { position: absolute; width: 22px; height: 22px; border-radius: 50%; background: var(--c-ink); color: #fff; font-style: normal; font-size: 11px; font-weight: 600; display: grid; place-items: center; box-shadow: 0 0 0 3px var(--c-ground); transition: background-color .3s ease, transform .3s cubic-bezier(.3, 1.6, .5, 1); z-index: 4; }

/* cutaway panel geometry */
.cut-panel { background: var(--c-ground); min-height: 700px; overflow: hidden; }
.cut-panel .lw-transcript { left: 24px; top: 28px; width: min(300px, calc(100% - 60px)); }
.cut-panel .lw-transcript > .mk { right: -8px; top: -8px; }
.cut-panel .lw-venue { left: min(118px, 22%); top: 262px; width: min(300px, calc(100% - 50px)); }
.cut-panel .lw-venue > .mk { right: -8px; top: -8px; }
.cut-panel .lcard > .mk { right: -11px; top: 50%; margin-top: -11px; }
.cut-panel .mk-link { left: 18px; top: 372px; }
.cut-link { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 3; }
.cut-link path { fill: none; stroke: var(--c-green); stroke-width: 1.6; stroke-dasharray: 3 4; stroke-linecap: round; transition: opacity .35s; }
.cut-panel .lw.on { box-shadow: 0 0 0 2px var(--c-green), var(--lift); }
.cut-panel .lcard.on { box-shadow: 0 0 0 2px var(--c-green); }
.cut-panel .lcard.decided.on { box-shadow: 0 0 0 2px var(--c-green), 0 0 0 7px color-mix(in srgb, var(--c-green) 14%, transparent); }
.cut-panel .mk.on { background: var(--c-green); transform: scale(1.18); box-shadow: 0 0 0 3px var(--c-ground); opacity: 1; }
.cut-panel.link-on .cut-link path { stroke-width: 2.2; stroke-dasharray: 4 4; animation: march .9s linear infinite; }
@keyframes march { to { stroke-dashoffset: -16; } }
.cut-link circle { fill: var(--c-green); }
.cut-panel.link-on #cut-src time { background: color-mix(in srgb, var(--c-green) 14%, var(--c-card)); border-radius: 6px; }
.cut-panel #cut-src time { justify-self: start; padding: 1px 5px; margin-left: -5px; transition: background-color .3s; }

/* source panel geometry */
.source-panel { background: var(--c-ground); border-radius: 26px; min-height: 500px; overflow: hidden; }
.source-panel .lw-venue2 { left: 44px; top: 46px; width: 320px; }
.source-panel .lw-tx2 { left: 408px; top: 234px; width: 290px; }
.source-panel .hl { background: color-mix(in srgb, var(--c-green) 0%, var(--c-card)); border-radius: 6px; padding: 5px 7px; margin-left: -7px; transition: background-color .8s ease .6s; }
.source-panel.in .hl { background: color-mix(in srgb, var(--c-green) 12%, var(--c-card)); }
.src-link { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 3; }
.src-link path { fill: none; stroke: var(--c-green); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: .012 .016; }
.src-link circle { fill: var(--c-green); }
.source-panel #src-dec { transition: box-shadow .5s ease; }
.source-panel.in #src-dec { animation: srcpulse 1.2s ease-out .2s; }
@keyframes srcpulse { 0% { box-shadow: 0 0 0 2px var(--c-green), 0 0 0 0 color-mix(in srgb, var(--c-green) 35%, transparent); } 100% { box-shadow: 0 0 0 2px var(--c-green), 0 0 0 14px transparent; } }

@media (max-width: 760px) {
  .cut-panel { min-height: 720px; }
  .cut-panel .lw-transcript { left: 14px; top: 20px; width: calc(100% - 44px); max-width: 300px; }
  .cut-panel .lw-venue { left: 42px; top: 262px; width: calc(100% - 58px); max-width: 312px; }
  .cut-panel .mk-link { left: 10px; top: 330px; }
  .source-panel { min-height: 590px; }
  .source-panel .lw-venue2 { left: 14px; top: 16px; width: calc(100% - 28px); }
  .source-panel .lw-tx2 { left: 38px; top: 356px; width: calc(100% - 52px); }
}

/* tabular figures only where numbers line up */
.cv .tm, .cv .fact b, .cv .big, .cv .kpi, .cv .clock, .lily .txrow time { font-variant-numeric: tabular-nums; }

/* ---------- the 3D stage ----------
   Three.js places the world in perspective (CSS3DRenderer); every wrapper down to the cards preserves 3D so cards sit
   a few pixels above their wrapper and parallax with the camera. Entrances are keyframed with weight: a card drops
   in from above the plane, overshoots a hair below its rest depth, and settles. */
.cv { box-shadow: none; }
.cv-gl, .cv-css { position: absolute; inset: 0; pointer-events: none; }
.cv-gl canvas { display: block; }
.cv-css { z-index: 1; }
.cv .hud { z-index: 10; }
.cv-shadow { position: absolute; left: 0; top: 0; width: 100px; height: 100px; border-radius: 28px; background: var(--lily-ground);
  box-shadow: 0 0 0 1px rgb(25 30 22 / 7%), 0 2px 4px rgb(25 30 22 / 4%), 0 40px 80px -40px rgb(25 30 22 / 32%); pointer-events: none; }
.cv-world, .cv-world .frame, .cv-world .fbody, .cv-world .col, .cv-world .wrap, .cv-world .wbody, .cv-world .places, .cv-world .duo, .cv-world .place { transform-style: preserve-3d; }
.cv-world.ghost, .cv-world.ghost * { animation: none !important; transition: none !important; }
.cv-world .frame { background: none; box-shadow: none; transition: opacity .25s ease, transform .6s var(--ease); transform: translate3d(var(--px, 0px), var(--py, 0px), 18px); }
/* the shell is a backing layer, so a frame that grows eases its shell by scale instead of animating width or height */
.cv-world .frame::before { content: ""; position: absolute; inset: 0; border-radius: 30px; background: var(--c-shell); box-shadow: var(--lift); transform-origin: 0 0; transform: scale(var(--ssx, 1), var(--ssy, 1)); transition: transform .6s var(--ease); pointer-events: none; }
/* FLIP: rows, strips and cards glide from where they were; transitions are off for the one frame that sets the inverse */
.cv-world .card, .cv-world .irow, .cv-world .day, .cv-world .rows li, .cv-world .wrap > .strip { transition: transform .6s var(--ease); }
.cv-world .irow { transition: transform .6s var(--ease), background-color .4s ease, box-shadow .4s ease; }
/* place cards keep their own transition list after the FLIP rule, so the merge fades and flies instead of vanishing */
.cv-world .place { transition: transform .85s cubic-bezier(.55, 0, .2, 1), opacity .45s ease .3s, box-shadow .4s ease; }
.cv-world .place.merging { opacity: 0; transform: translate3d(var(--mx), var(--my), 60px) scale(.94); }
/* only the elements FLIP moves lose their transition for the inverse frame; the map, pins and routes keep easing */
.cv-world.flip-prep .frame, .cv-world.flip-prep .frame::before, .cv-world.flip-prep .card, .cv-world.flip-prep .card::before, .cv-world.flip-prep .irow, .cv-world.flip-prep .day, .cv-world.flip-prep .rows li, .cv-world.flip-prep .wrap > .strip { transition: none !important; }
.cv-world .reflow { animation: reflow .7s cubic-bezier(.2,.8,.2,1); }
@keyframes reflow { 0% { opacity: .55; } 100% { opacity: 1; } }
.cv-world .fold { transition: none; }
.cv-world .card { --z: 7px; transform: translateZ(var(--z)); }
.cv-world .mapcard { --z: 4px; }
.cv-world .place { --z: 12px; transition: transform .8s cubic-bezier(.5, 0, .2, 1), opacity .45s ease .25s, box-shadow .4s; }
.cv-world .place.win { --z: 22px; }
.cv-world .frame.pop { animation: pop3d 1.15s cubic-bezier(.5, .05, .2, 1) backwards; }
@keyframes pop3d {
  0% { opacity: 0; transform: translate3d(-90px, 40px, 180px) rotateX(-10deg) rotateY(6deg) scale(.94); }
  58% { opacity: 1; transform: translate3d(0, 0, 10px) rotateX(1.5deg) rotateY(0) scale(1.004); }
  78% { transform: translate3d(0, 0, 21px) rotateX(-.4deg); }
  100% { transform: translateZ(18px); }
}
.cv-world .land { animation: land3d .9s cubic-bezier(.2, .8, .25, 1) backwards; animation-delay: var(--d, 0ms); }
@keyframes land3d {
  0% { opacity: 0; transform: translate3d(0, -26px, calc(var(--z) + 140px)) rotateX(-18deg) scale(.96); }
  55% { opacity: 1; transform: translate3d(0, 2px, calc(var(--z) - 5px)) rotateX(2deg) scale(1.006); }
  76% { transform: translate3d(0, 0, calc(var(--z) + 2px)) rotateX(-.6deg); }
  100% { transform: translateZ(var(--z)); }
}
.cv .intro .card, .cv .intro .strip, .cv .intro .fhead { animation: land3d 1s cubic-bezier(.2, .8, .25, 1) backwards; animation-delay: calc(var(--d, 0ms) + 80ms); }
.cv .intro .strip, .cv .intro .fhead { --z: 0px; }
.cv-world .place.merging { opacity: 0; transform: translate3d(var(--mx), var(--my), 60px) scale(.94); transition: transform .85s cubic-bezier(.55, 0, .2, 1), opacity .4s ease .45s; }
.cv-world .place.hit { animation: hit3d .9s cubic-bezier(.2, .8, .2, 1); }
@keyframes hit3d { 0% { transform: translateZ(40px) scale(1.015); box-shadow: 0 0 0 2px var(--c-green), 0 0 0 0 color-mix(in srgb, var(--c-green) 40%, transparent); } 45% { box-shadow: 0 0 0 2px var(--c-green), 0 0 0 14px color-mix(in srgb, var(--c-green) 12%, transparent); } 100% { transform: translateZ(var(--z)); box-shadow: 0 0 0 2px var(--c-green), 0 0 0 14px transparent; } }
.cv-world .pill.flip { animation: flip .55s cubic-bezier(.3, 1.4, .5, 1); transform-origin: 50% 60%; }
@keyframes flip { 0% { transform: rotateX(90deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.cv-world .tick { animation: tick .5s cubic-bezier(.2, .8, .2, 1); }
@keyframes tick { 0% { opacity: .35; transform: translateY(3px); } }
.cv-world .fact.land { animation: factland .6s cubic-bezier(.2, .8, .2, 1); }
.cv-world .fact.land b { animation: none; }
@keyframes factland { 0% { opacity: .2; transform: translateY(8px); } 100% { opacity: 1; transform: none; } }
.cv .face.swap { animation: swap .45s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes swap { 0% { transform: scale(.6); opacity: 0; } }
.cv .roll .w.new { display: inline-block; animation: wordin .28s ease-out; }
@keyframes wordin { 0% { opacity: 0; transform: translateY(3px); } }
.cv .hud-dock.compact .roll { min-height: 0; font-size: 14.5px; height: 2.84em; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.cv .hud-dock.side { border-radius: 18px; }
.cv .hud-dock.side .roll { height: 4.26em; }
@media (prefers-reduced-motion: reduce) {
  .cv { height: min(72vh, 780px); margin: 0 auto; border-radius: 26px; overflow: hidden; }
  .cv-shadow { display: none; }
}
/* loop restart: the new summit's shell fades up under the dissolving decided scene while its cards land */
.cv-world.intro .frame::before { animation: shellin 1.1s ease backwards; }
@keyframes shellin { 0% { background-color: rgb(250 250 249 / 0); box-shadow: none; } }

/* inset dock: a one-line caption strip; the newest words stay visible and older ones scroll off to the left */
.cv .hud-dock.strip { padding: 8px 12px 8px 10px; border-radius: 16px; }
.cv .hud-dock.strip .said-row { align-items: center; min-height: 0; gap: 10px; }
.cv .hud-dock.strip .face { width: 28px; height: 28px; margin-top: 0; font-size: 10.5px; }
.cv .hud-dock.strip .said { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cv .hud-dock.strip .who { white-space: nowrap; flex: none; }
.cv .hud-dock.strip .who span { display: none; }
.cv .hud-dock.strip .roll { height: 21px; line-height: 21px; font-size: 14.5px; margin: 0; flex: 1; min-width: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.cv .hud-dock.strip .roll .w.new { display: inline; animation: none; }
.cv-band { position: absolute; left: 0; top: 0; width: 100px; height: 100px; transform-origin: 0 0; background: var(--lily-ground); z-index: 5; pointer-events: none; opacity: 0; }


/* hover-only pause inside the Listening pill */
.cv .cv-pause { width: 0; height: 26px; margin-left: -11px; padding: 0; border: 0; border-radius: 8px; background: var(--c-inset); color: var(--c-ink2); display: grid; place-items: center; overflow: hidden; opacity: 0; cursor: pointer; transition: width .25s ease, margin .25s ease, opacity .2s ease; }
.cv .cv-pause svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stage:hover .cv .cv-pause, .cv .cv-pause:focus-visible { width: 26px; margin-left: 0; opacity: 1; }

/* ---------- transcript panel: the app's Conversation Pane transcript section, in the Lily family ----------
   Structure and sizes from scribbit/Conversation Pane.jsx and Shell.css: a 40px head (label, count, Live, search tile),
   runs of one voice under a 22px face, name and time, 13px lines, and the 36px "Add a thought…" composer. */
.hud-log { position: absolute; left: 0; top: 0; z-index: 12; display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; background: #fafafa; box-shadow: 0 0 0 1px var(--lily-hair), 0 1px 2px rgb(25 30 22 / 4%), 0 24px 48px -28px rgb(25 30 22 / 30%); will-change: transform; --tile: 28px; --pad: 8px; font-size: 13px; }
.hud-log .msym { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hud-log .cp-head { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 var(--pad) 0 14px; flex: none; border-bottom: 1px solid var(--c-hair); }
.hud-log .cp-head b { font-size: 12.5px; font-weight: 600; color: var(--c-ink); letter-spacing: -.1px; }
.hud-log .cp-n { font-size: 11.5px; color: var(--c-muted); opacity: .8; font-variant-numeric: tabular-nums; margin-right: auto; }
.hud-log .cp-state { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--c-muted); }
.hud-log .cp-state i { width: 6px; height: 6px; border-radius: 50%; background: var(--c-dash); }
.hud-log .cp-state.live { color: var(--c-green); } .hud-log .cp-state.live i { background: var(--c-green); }
.hud-log .cp-tile { position: relative; width: var(--tile); height: var(--tile); border: 0; padding: 0; border-radius: 8px; display: grid; place-items: center; color: var(--c-muted); background: none; flex: none; cursor: pointer; }
.hud-log .cp-tile.sm { --tile: 26px; }
.hud-log .cp-tile:hover { background: var(--c-inset); color: var(--c-ink); }
.hud-log .cp-list { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 2px var(--pad) 8px; }
.hud-log .cp-list-in { transition: transform .32s cubic-bezier(.2, .8, .2, 1); }
.hud-log .cp-run { display: flex; gap: 8px; padding: 7px 0 5px 2px; }
.hud-log .cp-run.fresh { animation: runIn .5s cubic-bezier(.2, .8, .2, 1) backwards; }
@keyframes runIn { 0% { opacity: 0; } }
.hud-log .cp-face { width: 22px; height: 22px; margin: 3px; border-radius: 50%; display: grid; place-items: center; font-size: 9.5px; font-weight: 600; letter-spacing: .2px; color: #fff; flex: none; }
.hud-log .cp-runb { flex: 1; min-width: 0; }
.hud-log .cp-who { display: flex; align-items: baseline; gap: 7px; height: 28px; line-height: 28px; }
.hud-log .cp-who span { font-size: 12.5px; font-weight: 600; color: var(--c-ink); }
.hud-log .cp-who time { font-size: 11px; color: var(--c-muted); opacity: .8; font-variant-numeric: tabular-nums; }
.hud-log .cp-who time.now { color: var(--c-green); opacity: 1; }
.hud-log .cp-run p { margin: 0 0 4px; padding: 1px 6px 1px 0; font-size: 13px; line-height: 1.5; color: var(--c-ink2); }
.hud-log .cp-run p.typing { color: var(--c-muted); }
.hud-log .cp-run p .w { transition: color .35s; } .hud-log .cp-run p.typing .w:not(.soft) { color: var(--c-ink2); }
.hud-log .sb-tcaret { display: inline-block; width: 2px; height: 14px; margin-left: 2px; background: var(--c-green); vertical-align: -2px; animation: blink 1s steps(2) infinite; }
.hud-log .sb-thought { display: flex; align-items: center; gap: 6px; height: 36px; margin: 0 var(--pad) var(--pad); padding: 0 5px 0 9px; border-radius: 10px; background: var(--c-inset); color: var(--c-muted); flex: none; }
.hud-log .sb-thought input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: inherit; font-size: 12.5px; color: var(--c-ink); }
.hud-log .sb-thought input::placeholder { color: var(--c-muted); }
.hud-log .sb-thought button { width: 26px; height: 26px; border: 0; padding: 0; border-radius: 8px; background: var(--c-green); color: #fff; display: grid; place-items: center; flex: none; }
.hud-log .sb-thought button:disabled { background: transparent; color: var(--c-muted); }
@media (max-width: 760px) { .hud-log { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .hud-log { display: none !important; } }
.cv:not(.narrow) .hud-dock { display: none; }

/* ---------- QA pass 2 ----------
   Cards draw their surface on a backing plate. When a card changes size the plate eases by scale while the text only
   translates, so type is never scaled, squashed or cut by a moving edge. */
.cv-world .card { background: transparent; box-shadow: none; }
.cv-world .card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--c-card); box-shadow: var(--ring); transform-origin: 0 0; transform: scale(var(--csx, 1), var(--csy, 1)); transition: transform .6s var(--ease); pointer-events: none; }
.cv-world .card > * { position: relative; }
.cv-world .place.win::before { box-shadow: 0 0 0 2px var(--c-green); }
.cv .place.win { box-shadow: none; }
.cv-world .place.hit { animation: none; }

/* the decided card: its plate (with the green outline) grows from Lenoir's box; the old text fades out while the
   final layout, already set at full width, fades in on its own layer */
.cv-world .place.decided::before { box-shadow: 0 0 0 2px var(--c-green); transform: scale(var(--psx, 1), var(--psy, 1)); transition: transform .72s cubic-bezier(.22, .8, .24, 1); }
.cv-world .place.decided.handover::before { animation: platehit 1s ease-out .2s; }
@keyframes platehit { 0% { box-shadow: 0 0 0 2px var(--c-green), 0 0 0 0 color-mix(in srgb, var(--c-green) 38%, transparent); } 55% { box-shadow: 0 0 0 2px var(--c-green), 0 0 0 12px color-mix(in srgb, var(--c-green) 10%, transparent); } 100% { box-shadow: 0 0 0 2px var(--c-green), 0 0 0 14px transparent; } }
.cv-world .place.decided.handover > .dec-in { animation: decIn .42s cubic-bezier(.3, .1, .3, 1) .2s backwards; }
@keyframes decIn { 0% { opacity: 0; } }
.cv-world .place.decided > .dec-old { position: absolute; left: 0; top: 0; padding: 14px 16px; animation: decOut .14s linear forwards; pointer-events: none; }
@keyframes decOut { 100% { opacity: 0; } }
.cv .place.wide .dec-old .facts { display: block; padding-top: 4px; }
.cv .place.wide .dec-old .fact { display: flex; }
.cv .place.wide .dec-old .fact b { display: inline; font-size: 16px; }
.cv .place.decided .kvs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin-top: 12px; }
.cv .place.decided .kv.top { margin-top: 0; }
.cv.narrow .place.decided .kvs { grid-template-columns: 1fr; }

/* stub collapse: the heat chips fold away before the row turns into a stub */
.cv .irow.cooling .extra { overflow: hidden; animation: cool .3s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes cool { 0% { max-height: 60px; opacity: 1; margin-top: 6px; } 100% { max-height: 0; opacity: 0; margin-top: 0; } }

/* the typing caret takes no width, so a line never re-wraps when it disappears */
.hud-log .sb-tcaret, .cv .roll .caret { display: inline-block; position: relative; width: 0; height: 14px; margin: 0; background: none; animation: none; vertical-align: -2px; }
.hud-log .sb-tcaret::after, .cv .roll .caret::after { content: ""; position: absolute; left: 2px; top: 0; width: 2px; height: 100%; background: var(--c-green); animation: blink 1s steps(2) infinite; }
.cv .roll .caret { height: 16px; }

/* transcript: lines fade under the header instead of being sliced */
.hud-log .cp-list { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 28px); mask-image: linear-gradient(to bottom, transparent 0, #000 28px); }

/* loop restart: one fade to the ground colour */
.cv-cut { position: absolute; left: 0; top: 0; width: 100px; height: 100px; background: var(--lily-ground); opacity: 0; z-index: 6; pointer-events: none; }
.cv .hud, .hud-log { transition: opacity .2s linear; }

/* desktop map a little shorter so the map and the three options fit the stage at reading scale */
.cv:not(.narrow) .map { height: 212px; }
/* losing options slide in under Lenoir, not over it */
.cv-world .place.merging { transform: translate3d(var(--mx), var(--my), -14px) scale(.96); }

/* the heat chips unfold instead of appearing, so the row grows smoothly */
.cv .irow.heat:not(.cooling) .extra { overflow: hidden; animation: warm .36s cubic-bezier(.2, .7, .2, 1) backwards; }
@keyframes warm { 0% { max-height: 0; opacity: 0; margin-top: 0; } 100% { max-height: 60px; opacity: 1; margin-top: 6px; } }
/* the frame shell is a positioned plate; the header and body must paint above it (the header was hidden under it) */
.cv-world .frame > * { position: relative; }
.cv.narrow .irow .extra { flex-wrap: wrap; row-gap: 4px; }
/* phones: the "Calling around" chip wraps to a second row, so its space is held from the start and it only fades in */
.cv.narrow #dn-c2.gone { display: inline-flex !important; visibility: hidden; }

/* ---------- use-case stages: the hero's Lily vocabulary at a smaller scale, flat and framed ---------- */
.cv.sc-stage { position: relative; inset: auto; contain: layout paint; height: 620px; border-radius: 26px; background: var(--c-ground); box-shadow: 0 0 0 1px rgb(25 30 22 / 7%), 0 30px 60px -40px rgb(25 30 22 / 30%); background-image: radial-gradient(circle, #cfd3c8 1.1px, transparent 1.3px); background-size: 22px 22px; }
.sc-hud { position: absolute; left: 16px; top: 16px; z-index: 3; display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-radius: 13px; background: rgb(255 255 255 / 94%); box-shadow: var(--lift); white-space: nowrap; }
.sc-hud .live i { width: 3px; height: 15px; }
.sc-hud .state { font-size: 13px; color: var(--c-green); font-weight: 500; }
.sc-hud .sep { width: 1px; height: 16px; background: var(--c-dash); }
.sc-hud .title { font-size: 13.5px; font-weight: 500; }
.sc-ex { font-size: 11.5px; font-weight: 500; color: var(--c-ink2); background: var(--c-inset); box-shadow: var(--ring); border-radius: 7px; padding: 2px 8px; }
.sc-view { position: absolute; left: 24px; right: 24px; top: 72px; bottom: 96px; overflow: hidden; border-radius: 24px; }
.sc-board { transition: transform .8s cubic-bezier(.22, .8, .24, 1); will-change: transform; }
.cv .sc-frame { position: relative; width: auto; left: auto; top: auto; }
.cv .sc-frame .fsum { max-width: none; }
.sc-grid { display: grid; gap: 14px; align-items: start; }
.g-roadmap { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.g-sales { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, .9fr); }
.g-hiring { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.g-trip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.g-design { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-oneone { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .8fr); }
.sc-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.sc-h { visibility: hidden; }
.cv .sc-in { animation: scIn .7s cubic-bezier(.2, .8, .25, 1) backwards; }
@keyframes scIn { 0% { opacity: 0; transform: translateY(14px) scale(.985); } 60% { opacity: 1; transform: translateY(-1px) scale(1.002); } 100% { transform: none; } }
.cv li.sc-in { animation-name: rowin; animation-duration: .5s; }
.sc-decision { box-shadow: 0 0 0 2px var(--c-green) !important; }
.sc-decision h2 { margin-top: 10px; }
.cv .rows li.dim .t b { color: var(--c-muted); }
.cv .check svg { width: 13px; height: 13px; fill: none; stroke: var(--c-green); stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .3s; }
.cv .check { display: grid; place-items: center; transition: background-color .3s, border-color .3s; }
.cv li.done .check svg { opacity: 1; }
.cv li.done .t b { color: var(--c-muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.cv .pill.flip { animation: flip .55s cubic-bezier(.3, 1.4, .5, 1); }
.cv .tick { animation: tick .5s cubic-bezier(.2, .8, .2, 1); }

/* priority matrix: each dot rides a full-size layer translated by percent, so moving it is a transform */
.mx { position: relative; aspect-ratio: 2.3; margin: 4px 0 0 22px; border-left: 1.5px solid var(--c-dash); border-bottom: 1.5px solid var(--c-dash); display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.mx-q { font-style: normal; padding: 6px 10px; border-radius: 10px; margin: 3px; background: var(--c-inset); }
.mx-q.q1 { background: color-mix(in srgb, var(--c-green) 9%, var(--c-card)); }
.mx-q b { font-weight: 500; font-size: 11.5px; color: var(--c-muted); }
.mx-q.q2 { grid-column: 2; grid-row: 1; } .mx-q.q1 { grid-column: 1; grid-row: 1; } .mx-q.q3 { grid-column: 1; grid-row: 2; } .mx-q.q4 { grid-column: 2; grid-row: 2; }
.mx-ax { position: absolute; font-size: 11px; color: var(--c-muted); }
.mx-ax.y { left: -22px; top: 50%; transform: rotate(-90deg) translateX(50%); transform-origin: left top; }
.mx-ax.x { right: 0; bottom: -18px; }
.mx-pos { position: absolute; inset: 0; pointer-events: none; transform: translate(calc(var(--x) * 1%), calc(var(--y) * 1%)); transition: transform 1s cubic-bezier(.3, .7, .2, 1), opacity .5s ease; opacity: 0; }
.mx-pos.on { opacity: 1; }
.mx-dot { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 8px; border-radius: 8px; background: var(--c-card); box-shadow: var(--lift); font-size: 12px; font-weight: 500; white-space: nowrap; }
.mx-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c-muted); }
.mx-pos.set .mx-dot::before { background: var(--c-blue); }
#d-srch.set .mx-dot::before, #d-sso.set .mx-dot::before { background: var(--c-green); }

/* sales: the fork of options */
.sc-fork { display: grid; grid-template-columns: 1fr; gap: 8px; }
.sc-fork .card { padding: 12px 14px; transition: box-shadow .4s ease, opacity .4s ease; }
.sc-fork .card.win { box-shadow: 0 0 0 2px var(--c-green); }
.sc-fork .card.lose { opacity: .55; }
.sc-note { margin-top: 8px; min-height: 22px; }

/* hiring: scorecard */
.sc-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 2px; }
.sc-table th { font-weight: 500; font-size: 12px; color: var(--c-muted); text-align: center; padding: 0 0 8px; }
.sc-table td { padding: 9px 0; border-top: 1px solid var(--c-hair); text-align: center; }
.sc-table td:first-child { text-align: left; color: var(--c-ink2); }
.sc-m { display: inline-block; width: 36px; height: 12px; border-radius: 4px; background: var(--c-blue); }
.sc-m[data-v="strong"] { background: var(--c-green); } .sc-m[data-v="concern"] { background: var(--c-amber); }
.cv .sc-m.sc-in { animation: grow .6s cubic-bezier(.2, .8, .2, 1) backwards; transform-origin: left center; }
@keyframes grow { 0% { transform: scaleX(0); opacity: 0; } }

/* trip: budget bar and map */
.sc-bar { display: flex; gap: 3px; height: 26px; margin-top: 10px; border-radius: 6px; background: var(--c-off); overflow: hidden; }
.sc-seg { flex: 0 0 var(--w); border-radius: 3px; }
.cv .sc-seg.sc-in { animation: grow .8s cubic-bezier(.2, .8, .2, 1) backwards; transform-origin: left center; }
.cv .sc-map { height: 214px; }
.sc-route { fill: none; stroke: var(--c-blue); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s cubic-bezier(.45, .05, .2, 1); }
.sc-route.on { stroke-dashoffset: 0; }
.sc-pin circle { fill: var(--c-ink); stroke: #fff; stroke-width: 2; }
.sc-pin text { fill: #fff; font-size: 10px; font-weight: 600; text-anchor: middle; font-family: var(--lily-font); }
.cv .sc-pin.sc-in { animation: none; }
.cv .sc-pin.sc-in circle, .cv .sc-pin.sc-in text { animation: drop .75s cubic-bezier(.2, .8, .3, 1) backwards; transform-box: fill-box; transform-origin: 50% 100%; }

/* design review: screens, notes and decisions */
.sc-screen { padding: 12px; }
.sc-shot { height: 120px; border-radius: 12px; background: var(--c-inset); box-shadow: var(--ring); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.sc-shot i { display: block; height: 8px; width: 60%; border-radius: 4px; background: var(--c-dash); }
.sc-shot i.w { width: 85%; } .sc-shot i.btn { margin-top: auto; width: 40%; height: 18px; border-radius: 6px; background: var(--c-muted); }
.sc-notes { display: flex; flex-wrap: wrap; gap: 6px; min-height: 30px; margin-top: 10px; }
.sc-dec { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--c-dash); display: flex; align-items: center; gap: 8px; font-size: 13px; }
.sc-dec b { font-weight: 500; }

/* the compact transcript: the hero's phone dock */
.sc-dock { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(640px, calc(100% - 32px)); z-index: 3; display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; border-radius: 18px; background: rgb(255 255 255 / 96%); box-shadow: var(--lift); }
.sc-dock .face { width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 11px; font-weight: 600; color: #fff; }
.sc-dock .said { min-width: 0; flex: 1; }
.sc-dock .who { font-weight: 500; font-size: 13px; } .sc-dock .who span { color: var(--c-muted); font-weight: 400; margin-left: 6px; }
.sc-dock .roll { margin: 2px 0 0; font-size: 15px; line-height: 1.4; height: 2.8em; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }

@media (max-width: 760px) {
  .cv.sc-stage { height: 600px; border-radius: 20px; }
  .sc-hud { left: 10px; top: 10px; height: 36px; padding: 0 11px; gap: 8px; }
  .sc-hud .title { font-size: 12.5px; }
  .sc-view { left: 10px; right: 10px; top: 56px; bottom: 104px; border-radius: 20px; }
  .sc-grid { grid-template-columns: 1fr !important; gap: 12px; }
  .cv .sc-frame { padding: 8px; border-radius: 24px; }
  .cv .sc-frame .fhead { min-width: 0; padding: 8px 8px 10px; }
  .cv .sc-frame .fhead h1 { font-size: 18px; }
  .cv .sc-frame .fsum { display: none; }
  .sc-dock { bottom: 10px; width: calc(100% - 20px); padding: 10px 12px; }
  .sc-dock .roll { font-size: 14.5px; }
  .cv .sc-map { height: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  .cv.sc-stage, .sc-view { position: relative; }
  .cv.sc-stage { position: relative; height: 580px; margin: 0; }
  .car-track, .sc-board, .mx-pos, .sc-route { transition: none !important; }
}
/* the band behind the pill row fades into the canvas instead of forming a strip, so the dotted ground reads under the nav */
.cv-band#cv-band-top { background: linear-gradient(to bottom, var(--lily-ground) 55%, color-mix(in srgb, var(--lily-ground) 0%, transparent)); }
