/* RooftopLake: agent factory lifecycle. "Deep Water" tokens. All classes prefixed lc-. */
.lc{--lc-progress:0;--lc-road:0;--lc-spend:0;font-family:var(--font-body);color:var(--ink);max-width:1120px;margin:0 auto;line-height:1.5;-webkit-font-smoothing:antialiased}
.lc *,.lc *::before,.lc *::after{box-sizing:border-box}
.lc :where(button){font:inherit;color:inherit}
.lc [hidden]{display:none!important}
.lc-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* Shared control style (chips, toggles, nav) */
.lc-pill{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 18px;border-radius:999px;border:1px solid rgba(15,43,51,.2);background:rgba(255,255,255,.7);color:var(--ink-2);font-family:var(--font-body);font-weight:500;font-size:15px;line-height:1.2;cursor:pointer;transition:background-color .2s var(--ease),border-color .2s,color .2s}
.lc-pill:not(:disabled):hover{border-color:var(--teal)}
.lc-pill[aria-pressed="true"],.lc-pill.lc-is-on{background:var(--teal);color:var(--on-teal);border-color:var(--teal)}
.lc-pill:disabled{opacity:.35;cursor:default}
.lc-pill:focus-visible,.lc-store:focus-visible,.lc-switch:focus-visible,.lc-more:focus-visible,.lc-linkbtn:focus-visible,.lc-log:focus-visible{outline:2px solid var(--teal-2);outline-offset:3px}

/* Top bar */
.lc-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-bottom:30px}
.lc-agents{display:flex;flex-wrap:wrap;gap:8px}
.lc-chip-ico{width:18px;height:18px;fill:currentColor;stroke:none;flex:none}
.lc-play-ico{width:9px;height:11px;background:currentColor;clip-path:polygon(0 0,100% 50%,0 100%)}
.lc-play.lc-is-on .lc-play-ico{width:10px;height:10px;clip-path:none;border-radius:2px}
.lc-play-len{font-family:var(--font-mono);font-size:12px;opacity:.7}

/* Scene: track, sky and dealerships read as one picture */
.lc-scene{position:relative;isolation:isolate}
.lc-scene::before,.lc-scene::after{content:"";position:absolute;left:0;right:0;bottom:20px;height:560px;z-index:-1;pointer-events:none}
.lc-scene::before{background:radial-gradient(ellipse 48% 34% at 50% 62%,var(--teal-soft),transparent 100%);opacity:.45;transition:opacity 1.2s var(--ease)}
.lc-scene::after{background:radial-gradient(ellipse 48% 34% at 50% 62%,var(--bad-soft),transparent 100%);opacity:0}
.lc-scene[data-mode="live"]::before{opacity:1}
.lc-scene.lc-stopped::after{opacity:1}
.lc-scene.lc-stopped::before{opacity:0;transition:none}

.lc-track{position:relative;display:grid;grid-template-columns:repeat(8,minmax(0,1fr))}
.lc-line{position:absolute;left:6.25%;right:6.25%;top:20px;height:2px;background:var(--line);border-radius:2px;overflow:hidden}
.lc-line-fill{position:absolute;left:0;top:0;bottom:0;width:calc(var(--lc-progress) * 100%);background:var(--teal);transition:width .7s var(--ease)}
.lc-tab{position:relative;display:flex;flex-direction:column;align-items:center;gap:10px;min-height:44px;padding:14px 2px 4px;background:none;border:0;cursor:pointer;color:var(--ink-2);font-size:12.5px;font-weight:500;line-height:1.3;text-align:center}
.lc-tab-dot{width:14px;height:14px;border-radius:50%;background:var(--paper);border:2px solid var(--line);transition:background-color .4s var(--ease),border-color .4s,transform .4s var(--ease),box-shadow .4s}
.lc-tab:hover .lc-tab-dot{border-color:var(--teal)}
.lc-tab.lc-is-done .lc-tab-dot{background:var(--teal);border-color:var(--teal)}
.lc-tab.lc-is-active{color:var(--ink);font-weight:600}
.lc-tab.lc-is-active .lc-tab-dot{background:var(--teal-2);border-color:var(--teal-2);transform:scale(1.3);box-shadow:0 0 0 5px var(--teal-soft),var(--glow)}
.lc-tab:focus-visible{outline:none}
.lc-tab:focus-visible .lc-tab-dot{outline:2px solid var(--ink);outline-offset:5px}
.lc-tab:focus-visible .lc-tab-t{text-decoration:underline;text-underline-offset:3px}

.lc-panel{position:relative}
.lc-sky{position:relative;height:330px;margin-top:22px}
.lc-art,.lc-moment{position:absolute;inset:0;display:flex;align-items:center;justify-content:center}
.lc-art{transition:opacity .45s var(--ease),transform .6s var(--ease),visibility 0s}
.lc-scene[data-mode="live"] .lc-art{opacity:0;transform:translateY(-28px);visibility:hidden;transition:opacity .45s var(--ease),transform .6s var(--ease),visibility 0s .6s}
.lc-moment{flex-direction:column;text-align:center;opacity:0;transform:translateY(22px);transition:opacity .6s var(--ease),transform .8s var(--ease);pointer-events:none}
.lc-scene[data-mode="live"] .lc-moment{opacity:1;transform:none;transition-delay:.2s}
.lc-moment-h{font-family:var(--font-display);font-weight:500;font-size:clamp(30px,4.6vw,54px);line-height:1.05;letter-spacing:-.02em;margin:0;color:var(--ink)}
.lc-moment-s{font-family:var(--font-mono);font-size:13px;letter-spacing:.06em;color:var(--ink-2);margin:14px 0 0}
.lc-stopped .lc-moment-h{color:var(--bad)}

/* Faux documents */
.lc-doc{position:relative;width:min(460px,100%);background:var(--card);border:1px solid var(--line);border-top:2px solid var(--teal);border-radius:var(--r-md);box-shadow:var(--shadow)}
.lc-doc.lc-in{animation:lc-rise .55s var(--ease) both}
@keyframes lc-rise{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
.lc-doc-h{display:flex;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px dashed var(--line);font-family:var(--font-mono);font-size:11px;letter-spacing:.08em;text-transform:uppercase;font-weight:700}
.lc-doc-a{color:var(--ink-2);font-weight:500;white-space:nowrap}
.lc-doc-b{padding:8px 16px 16px}
.lc-rows{margin:0}
.lc-row{display:grid;grid-template-columns:84px minmax(0,1fr);gap:12px;padding:8px 0;border-bottom:1px solid var(--line)}
.lc-row:last-child{border-bottom:0}
.lc-row dt{font-family:var(--font-mono);font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-2);padding-top:3px}
.lc-row dd{margin:0;font-size:14.5px}
.lc-bars{display:grid;gap:8px;flex:1 1 auto;max-width:220px}
.lc-bars i{display:block;height:7px;border-radius:4px;background:var(--line);width:72%}
.lc-bars i+i{width:48%}
.lc-pass{list-style:none;margin:4px 0 0;padding:0}
.lc-pass li{display:flex;align-items:center;gap:10px;padding:5px 0;border-bottom:1px solid var(--line);font-size:14.5px}
.lc-pass li:last-child{border-bottom:0}
.lc-pass-i{display:grid;place-items:center;flex:none;width:22px;height:22px;border-radius:50%;font-size:12px;font-weight:700}
.lc-pass .lc-is-yes .lc-pass-i{background:var(--good-soft);color:var(--good)}
.lc-pass .lc-is-no{color:var(--ink-2)}
.lc-pass .lc-is-no .lc-pass-i{background:var(--bad-soft);color:var(--bad)}
.lc-ver-big{display:flex;align-items:baseline;gap:12px;padding:8px 0 4px}
.lc-ver-big span{font-family:var(--font-display);font-size:44px;line-height:1;color:var(--teal)}
.lc-ver-big small{font-size:13px;color:var(--ink-2)}
.lc-ticks{list-style:none;margin:6px 0 0;padding:0}
.lc-ticks li{position:relative;padding:4px 0 4px 22px;font-size:14.5px}
.lc-ticks li::before{content:"";position:absolute;left:3px;top:10px;width:9px;height:5px;border-left:2px solid var(--teal);border-bottom:2px solid var(--teal);transform:rotate(-45deg)}
.lc-score{display:flex;align-items:center;gap:16px;padding:10px 0 4px;min-height:92px}
.lc-score-n{font-family:var(--font-display);font-size:68px;line-height:1;color:var(--teal);white-space:nowrap;font-variant-numeric:tabular-nums}
.lc-count{display:inline-block;min-width:1.15em;text-align:right}
.lc-score-n small{font-size:24px;color:var(--ink-2)}
.lc-score p{margin:0;font-size:14.5px;color:var(--ink-2);max-width:12em}
.lc-dots{display:grid;grid-template-columns:repeat(25,minmax(0,1fr));gap:4px;margin:14px 0 2px}
.lc-dots span{aspect-ratio:1;border-radius:50%;background:var(--line);transition:background-color .3s var(--ease) var(--d)}
.lc-dots.lc-go .lc-is-hit{background:var(--teal)}
.lc-dots.lc-go .lc-is-miss{background:var(--brass)}
.lc-table{width:100%;border-collapse:collapse;font-size:14px;margin-top:4px}
.lc-table thead th{font-family:var(--font-mono);font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-2);font-weight:500;text-align:left;padding:6px 6px 6px 0}
.lc-table td,.lc-table tbody th{padding:9px 6px 9px 0;border-top:1px solid var(--line);text-align:left;font-weight:500}
.lc-table td:last-child{color:var(--teal);font-weight:650}

/* Gate stamp: its own footer strip on the sheet, so it never covers text */
.lc-doc-f{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:58px;padding:4px 16px 10px;border-top:1px dashed var(--line)}
.lc-stamp{flex:none;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;min-height:42px;padding:4px 14px;border-radius:9px;font-family:var(--font-mono);text-transform:uppercase;white-space:nowrap}
.lc-stamp.lc-is-wait{border:1px dashed var(--line);color:var(--ink-2)}
.lc-stamp.lc-is-passed{border:2px solid var(--brass);outline:1px solid var(--brass);outline-offset:3px;background:var(--brass-soft);color:var(--brass);transform:rotate(-6deg)}
.lc-stamp.lc-press{animation:lc-press .5s var(--ease) both}
.lc-stamp-m{font-size:16px;font-weight:700;letter-spacing:.16em;line-height:1.2}
.lc-is-wait .lc-stamp-m{font-size:11px;font-weight:500;letter-spacing:.1em}
.lc-stamp-s{font-size:10px;letter-spacing:.05em}
@keyframes lc-press{from{opacity:0;transform:translateY(-18px) scale(1.25) rotate(-14deg)}70%{opacity:1}to{opacity:1;transform:rotate(-6deg)}}

/* Dealerships */
.lc-lot{position:relative;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;max-width:1000px;margin:0 auto;padding-bottom:14px}
.lc-road{position:absolute;left:10%;right:10%;bottom:0;height:2px;border-radius:2px;background:var(--line);overflow:hidden}
.lc-road-fill{position:absolute;left:0;top:0;bottom:0;width:calc(var(--lc-road) * 100%);background:var(--teal);transition:width .7s var(--ease)}
.lc-store{position:relative;display:flex;flex-direction:column;align-items:center;min-width:0;min-height:44px;padding:14px 4px 10px;background:none;border:0;border-radius:var(--r-md);cursor:pointer}
.lc-store:hover{background:var(--paper-2)}
.lc-roof-svg{position:relative;width:100%;max-width:190px;height:auto;display:block;overflow:visible}
.lc-roof-svg rect,.lc-roof-svg path,.lc-roof-svg g{transition:fill .9s var(--ease),stroke .9s var(--ease),opacity .9s var(--ease)}
.lc-spill{position:absolute;left:4%;right:4%;top:30%;height:60%;border-radius:50%;background:radial-gradient(closest-side,var(--brass),transparent);opacity:0;transition:opacity 1.2s var(--ease);pointer-events:none}
.lc-r-ground{fill:var(--line)}
.lc-r-halo{fill:var(--brass);opacity:0}
.lc-r-post,.lc-r-sign,.lc-r-roof{fill:var(--line)}
.lc-r-mark{fill:var(--paper)}
.lc-r-line{fill:none !important;stroke:var(--paper);stroke-width:1.6}
.lc-store.lc-is-live .lc-r-line{stroke:var(--on-teal)}
.lc-store.lc-is-paused .lc-r-line{stroke:var(--paper)}
.lc-r-body{fill:var(--paper);stroke:var(--line);stroke-width:1}
.lc-r-glass{fill:var(--teal-soft);opacity:.55}
.lc-r-car{fill:var(--line);opacity:.7}
.lc-r-mull{fill:var(--line)}
.lc-r-bay{fill:var(--paper);stroke:var(--line);stroke-width:.8}
.lc-r-pause{fill:var(--bad);opacity:0}
.lc-store.lc-is-live .lc-spill{opacity:.22}
.lc-store.lc-is-live .lc-r-halo{opacity:.9}
.lc-store.lc-is-live .lc-r-body{fill:var(--teal-soft);stroke:var(--teal)}
.lc-store.lc-is-live .lc-r-roof,.lc-store.lc-is-live .lc-r-post{fill:var(--teal)}
.lc-store.lc-is-live .lc-r-sign{fill:var(--teal-2)}
.lc-store.lc-is-live .lc-r-mark{fill:var(--on-teal)}
.lc-store.lc-is-live .lc-r-glass{fill:var(--brass);opacity:1}
.lc-store.lc-is-live .lc-r-car{fill:var(--brass-soft);opacity:.9}
.lc-store.lc-is-live .lc-r-mull{fill:var(--paper)}
.lc-store.lc-is-live .lc-r-bay{fill:var(--paper-2);stroke:var(--teal)}
/* Stopped: dark red at once, no fade */
.lc-store.lc-is-paused .lc-roof-svg *,.lc-store.lc-is-paused .lc-spill{transition:none}
.lc-store.lc-is-paused .lc-r-body{fill:var(--bad-soft);stroke:var(--bad)}
.lc-store.lc-is-paused .lc-r-roof,.lc-store.lc-is-paused .lc-r-post,.lc-store.lc-is-paused .lc-r-sign{fill:var(--bad)}
.lc-store.lc-is-paused .lc-r-mark{fill:var(--paper)}
.lc-store.lc-is-paused .lc-r-glass{fill:var(--bad-soft);opacity:1}
.lc-store.lc-is-paused .lc-r-mull,.lc-store.lc-is-paused .lc-r-car{fill:var(--bad);opacity:.45}
.lc-store.lc-is-paused .lc-r-bay{fill:var(--bad-soft);stroke:var(--bad)}
.lc-store.lc-is-paused .lc-r-pause{opacity:1}
.lc-store-n{font-size:14px;font-weight:600;margin-top:8px;line-height:1.2;max-width:100%}
.lc-store-s{font-family:var(--font-mono);font-size:11px;color:var(--ink-2);line-height:1.4;min-height:1.4em}
.lc-scene[data-mode="floor"] .lc-store:not(.lc-is-paused) .lc-store-s{visibility:hidden}
.lc-store.lc-is-live .lc-store-s{color:var(--good)}
.lc-store.lc-is-warn .lc-store-s{color:var(--brass)}
.lc-store.lc-is-paused .lc-store-s{color:var(--bad)}

/* Travelling version tag */
.lc-tag{position:absolute;left:0;top:0;z-index:3;pointer-events:none;opacity:0;transition:transform .7s cubic-bezier(.45,0,.25,1),opacity .4s var(--ease)}
.lc-tag.lc-tag-jump{transition:opacity .4s var(--ease)}
.lc-tag.lc-tag-on{opacity:1}
.lc-tag-in{display:block;transform:translate(-50%,-100%);font-family:var(--font-mono);font-size:11px;font-weight:700;line-height:1;padding:5px 9px;border-radius:999px;background:var(--teal);color:var(--on-teal);box-shadow:var(--glow);white-space:nowrap}
.lc-tag-in.lc-hop{animation:lc-hop .7s cubic-bezier(.45,0,.25,1)}
@keyframes lc-hop{0%,100%{transform:translate(-50%,-100%)}50%{transform:translate(-50%,-100%) translateY(-30px)}}
.lc-stopped .lc-tag-in{background:var(--bad);box-shadow:none}

/* Caption under the picture */
.lc-capt{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-top:26px}
.lc-capt-t.lc-in{animation:lc-rise .45s var(--ease) both}
.lc-kicker{font-family:var(--font-mono);font-size:11.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--teal);margin:0}
.lc-stage-title{font-family:var(--font-display);font-weight:500;font-size:30px;line-height:1.15;letter-spacing:-.01em;margin:4px 0 4px}
.lc-line1{font-size:16px;color:var(--ink-2);margin:0}
.lc-nav{display:flex;flex-direction:column;align-items:flex-end;gap:6px;flex:none}
.lc-nav-b{display:flex;gap:8px}
.lc-halt{margin:0;min-height:1.5em;font-size:13px;font-weight:600;color:var(--bad);visibility:hidden}
.lc-halted .lc-halt{visibility:visible}
.lc-round{width:44px;padding:0}
.lc-more{display:inline-flex;align-items:center;gap:8px;min-height:44px;margin-top:6px;padding:0;background:none;border:0;color:var(--teal-2);font-size:14px;font-weight:500;cursor:pointer}
.lc-more-ico{width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);transition:transform .25s var(--ease)}
.lc-more[aria-expanded="true"] .lc-more-ico{transform:rotate(45deg)}
.lc-more-b{max-width:760px;padding:2px 0 6px}
.lc-more-what{font-size:15px;color:var(--ink);margin:0 0 10px}
.lc-more-dl{margin:0}
.lc-more-dl div{display:grid;grid-template-columns:120px minmax(0,1fr);gap:12px;padding:6px 0}
.lc-more-dl dt{font-family:var(--font-mono);font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-2);padding-top:3px}
.lc-more-dl dd{margin:0;font-size:14px;color:var(--ink-2)}
.lc-signed{color:var(--brass);white-space:nowrap}

/* Always-on rail: quiet, no boxes */
.lc-rail{display:grid;grid-template-columns:1.35fr 1fr 1fr 1.25fr;gap:16px 32px;margin-top:40px;padding-top:22px;border-top:1px solid var(--line)}
.lc-rail-h{grid-column:1/-1;margin:0;font-family:var(--font-mono);font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--teal)}
.lc-ctl{min-width:0}
.lc-ctl-h{font-size:14px;font-weight:600;margin:0 0 8px;color:var(--ink)}
.lc-ctl-t{font-size:13.5px;color:var(--ink-2);margin:0}
.lc-spend-t,.lc-approve-t,.lc-kill-t{min-height:3em}
.lc-switch{display:flex;align-items:center;gap:12px;min-height:44px;padding:0;margin:-6px 0 4px;background:none;border:0;cursor:pointer}
.lc-switch-track{position:relative;flex:none;width:62px;height:34px;border-radius:999px;background:rgba(255,255,255,.7);border:1px solid rgba(15,43,51,.2);transition:background-color .12s,border-color .12s}
.lc-switch-knob{position:absolute;left:4px;top:4px;width:24px;height:24px;border-radius:50%;background:var(--ink-2);transition:transform .14s cubic-bezier(.3,1.4,.5,1)}
.lc-switch-l{font-size:15px;font-weight:600}
.lc-switch.lc-is-on .lc-switch-track{background:var(--bad);border-color:var(--bad)}
.lc-switch.lc-is-on .lc-switch-knob{transform:translateX(28px);background:var(--paper)}
.lc-switch.lc-is-on .lc-switch-l{color:var(--bad)}
.lc-meter{position:relative;height:8px;border-radius:999px;background:var(--paper-2);border:1px solid var(--line);overflow:hidden;margin:4px 0 10px}
.lc-meter-fill{position:absolute;left:0;top:0;bottom:0;width:calc(var(--lc-spend) * 100%);background:var(--brass);border-radius:999px;transition:width .7s var(--ease)}
.lc-meter-warn{position:absolute;left:80%;top:0;bottom:0;width:2px;background:var(--ink-2)}
.lc-last{font-family:var(--font-mono);font-size:12px;min-height:3em;overflow-wrap:anywhere}
.lc-linkbtn{min-height:44px;padding:0;background:none;border:0;color:var(--teal-2);font-size:13.5px;font-weight:600;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.lc-log{list-style:none;margin:4px 0 0;padding:10px 12px;max-height:170px;overflow-y:auto;background:var(--term-bg);color:var(--term-ink);border:1px solid var(--line);border-radius:var(--r-sm);font-family:var(--font-mono);font-size:11.5px;line-height:1.6}
.lc-log li{overflow-wrap:anywhere}
.lc-log-t{color:var(--term-dim)}
.lc-log-w{color:var(--term-accent)}
.lc-log-div{color:var(--term-brass);margin-top:6px}
.lc-log-div:first-child{margin-top:0}
.lc-caption{font-family:var(--font-mono);font-size:11.5px;color:var(--ink-2);margin:22px 0 0;letter-spacing:.02em}

@media (max-width:900px){
  .lc-rail{grid-template-columns:1fr 1fr}
}

/* Phone: its own composition */
@media (max-width:640px){
  .lc-top{flex-direction:column;align-items:stretch;margin-bottom:22px;gap:10px}
  .lc-agents{gap:6px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding:2px}
  .lc-agents::-webkit-scrollbar{display:none}
  .lc-chip{padding:0 14px;flex:none}
  .lc-chip-ico{display:none}
  .lc-play{flex:1 1 auto}
  .lc-tab{padding:12px 0 0}
  .lc-line{top:18px}
  .lc-tab-t{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .lc-sky{margin-top:10px}
  .lc-moment{justify-content:flex-end;padding-bottom:34px}
  .lc-moment-h{font-size:32px}
  .lc-moment-s{font-size:12px}
  .lc-doc-h{padding:10px 12px}
  .lc-doc-b{padding:6px 12px 12px}
  .lc-lot{gap:2px;padding-bottom:10px}
  .lc-store{padding:10px 0 6px}
  .lc-store-n{font-size:10.5px;letter-spacing:-.01em}
  .lc-store-s{font-size:9.5px}
  .lc-rows .lc-row{grid-template-columns:70px minmax(0,1fr)}
  .lc-score-n{font-size:54px}
  .lc-sky{height:330px}
  .lc-doc-f{padding:4px 12px 10px;min-height:58px}
  .lc-stamp{padding:4px 10px}
  .lc-dots{gap:3px}
  .lc-capt{flex-direction:column;align-items:stretch;gap:14px;margin-top:18px}
  .lc-capt-t{min-height:6.6em}
  .lc-stage-title{font-size:26px}
  .lc-line1{font-size:15px}
  .lc-nav{align-items:stretch}
  .lc-next{flex:1 1 auto}
  .lc-rail{grid-template-columns:1fr 1fr;gap:18px 20px;margin-top:30px}
  .lc-ctl-kill,.lc-ctl-log{grid-column:1/-1}
  .lc-more-dl div{grid-template-columns:1fr;gap:2px}
}
@media (prefers-reduced-motion:reduce){
  .lc *,.lc *::before,.lc *::after,.lc-scene::before{animation:none!important;transition:none!important}
}
