/* lp-track.css -- #track, the dashboard drawn in HTML, 2026-10-01.
   Kavalsia Inc. / Siavash Sadighi

   WHY IT IS DRAWN AND NOT A CAPTURE. #track used to carry
   assets/shots/dashboard-home.webp. That file was never in the deploy
   manifest, so the live page asked for a 404. The recreation below is the
   same /app home (signed in as a lot owner, sample numbers): sidebar,
   "3 cars up this month", Today 3 of 10, the 14-day chart and the $49 plan.

   SCALE. The whole board is set in em and the em is a fraction of the
   figure's width (.ltd is the size container, .ltd-in reads cqi), so on a
   wide screen it scales like a picture. Under 520px of container it stops
   being a scaled picture: the sidebar and the buttons go, the two cards
   stack, and the em is pinned to a readable size.

   The final state is the CSS state. lp-track.js only animates FROM zero to
   it, so no-JS, no-GSAP and reduced motion all show the finished board. */

.ltd {
  container-type: inline-size;
  display: block;
  inline-size: 100%;
  border-radius: var(--lp-r-scr, 22px);
  overflow: hidden;
  background: #0A0C10;
  color: #E9EBEF;
  font-family: inherit;
  -webkit-user-select: none;
  user-select: none;
}
.ltd-in {
  --ltd-card: #14171E;
  --ltd-well: #0E1116;
  --ltd-raise: #1A1E27;
  --ltd-mute: #8B919C;
  --ltd-soft: #C3C7CF;
  --ltd-amb: var(--lp-accent, #F2A93B);
  font-size: 1.25cqi;           /* 1em = 1/80 of the board's width */
  display: grid;
  grid-template-columns: 22em minmax(0, 1fr);
  aspect-ratio: 16 / 9.5;
  line-height: 1.25;
  letter-spacing: -0.005em;
}

/* ---------------------------------------------------------------- sidebar */
.ltd-side {
  display: flex;
  flex-direction: column;
  gap: 1.6em;
  padding: 2.4em 1.8em;
  background:
    radial-gradient(120% 40% at 0% 0%, color-mix(in oklch, var(--ltd-amb) 22%, transparent) 0%, transparent 70%),
    #0F1218;
  overflow: hidden;
}
.ltd-brand { display: flex; align-items: center; gap: .55em; font-size: 1.45em; font-weight: 650; letter-spacing: -0.02em; }
.ltd-brand svg { inline-size: 1em; block-size: 1em; color: var(--ltd-amb); }
.ltd-user {
  display: grid; grid-template-columns: 3em minmax(0, 1fr); gap: .9em; align-items: center;
  padding: 1em; border-radius: 1.1em; background: var(--ltd-card);
}
.ltd-av {
  display: grid; place-items: center; inline-size: 3em; block-size: 3em; border-radius: 1em;
  background: linear-gradient(160deg, #F7C46B, var(--ltd-amb) 60%, #C9821C);
  color: #1A1206; font-weight: 700; font-size: .95em; letter-spacing: .04em;
}
.ltd-user b { display: block; font-size: 1.1em; font-weight: 600; }
.ltd-user > span > span { display: block; color: var(--ltd-mute); font-size: .9em; margin-block-start: .15em; }
.ltd-user i { display: block; font-style: normal; color: #5FD39A; font-size: .9em; margin-block-start: .2em; }

.ltd-minis { display: grid; grid-template-columns: 1fr 1fr; gap: .6em; }
.ltd-mini { padding: .9em .9em 1em; border-radius: 1em; background: var(--ltd-card); display: grid; gap: .7em; }
.ltd-mini-top { display: flex; justify-content: space-between; align-items: baseline; gap: .4em; }
.ltd-mini-top b { font-size: 1.45em; font-weight: 650; }
.ltd-mini-top b small { display: inline; font-size: .55em; color: var(--ltd-mute); font-weight: 500; }
.ltd-mini-top span { color: var(--ltd-mute); font-size: .8em; }
.ltd-ticks { display: flex; align-items: end; gap: .3em; block-size: 2.4em; }
.ltd-ticks i { flex: 1; block-size: .22em; border-radius: 1em; background: #262B35; transform-origin: 50% 100%; }
.ltd-ticks i.is-on { block-size: 100%; background: var(--ltd-amb); }
.ltd-ticks.is-pills i { block-size: 100%; }
.ltd-ticks i.is-next { background: color-mix(in oklch, var(--ltd-amb) 32%, #14171E); }

.ltd-nav { display: grid; gap: .25em; }
.ltd-nav-h { color: var(--ltd-amb); font-size: .8em; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-block-end: .5em; }
.ltd-nav-i { display: flex; align-items: center; gap: .9em; padding: .7em .9em; border-radius: .9em; color: #D7DAE0; font-size: .95em; }
.ltd-nav-i svg { inline-size: 1.25em; block-size: 1.25em; color: var(--ltd-mute); flex: none; }
.ltd-nav-i.is-on { background: linear-gradient(90deg, color-mix(in oklch, var(--ltd-amb) 22%, #14171E), #14171E); font-weight: 600; color: #fff; }
.ltd-nav-i.is-on svg { color: var(--ltd-amb); }
.ltd-nav-i em { margin-inline-start: auto; font-style: normal; color: var(--ltd-mute); font-size: .85em; }

/* ------------------------------------------------------------------- main */
.ltd-main { display: grid; grid-template-rows: auto auto; align-content: start; gap: 2.4em; padding: 2.2em 2.4em 2.2em 2.6em; min-inline-size: 0; }
.ltd-card { border-radius: 2em; background: var(--ltd-card); min-inline-size: 0; }

.ltd-today { padding: 1.8em 1.9em; border-radius: 1.5em; background: var(--ltd-well); display: grid; gap: 1.2em; }
.ltd-today-top { display: flex; justify-content: space-between; align-items: start; gap: 1em; }
.ltd-today-top > span { color: var(--ltd-mute); font-size: .95em; }
.ltd-count { display: block; margin-block-start: .35em; color: #F2F3F5; }
.ltd-count b { font-size: 2.3em; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ltd-count small { display: inline; font-size: 1em; color: var(--ltd-mute); margin-inline-start: .2em; }
.ltd-chip {
  display: inline-flex; align-items: center; gap: .45em; padding: .45em .85em; border-radius: 1em;
  background: color-mix(in oklch, var(--ltd-amb) 16%, #0E1116); color: var(--ltd-amb); font-size: .85em; font-weight: 650; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.ltd-chip::before { content: ""; inline-size: .4em; block-size: .4em; border-radius: 50%; background: currentColor; }
.ltd-pills { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: .55em; block-size: 3.6em; }
.ltd-pill { border-radius: .8em; background: #1E222B; position: relative; overflow: hidden; }
.ltd-pill i { position: absolute; inset: 0; border-radius: inherit; background: var(--ltd-amb); transform-origin: 50% 100%; }
.ltd-pill.is-next i { background: color-mix(in oklch, var(--ltd-amb) 30%, #14171E); }
.ltd-week { padding: 1em 1.2em; border-radius: 1.1em; background: var(--ltd-card); }
.ltd-week b { display: block; font-size: 1.05em; font-weight: 650; font-variant-numeric: tabular-nums; }
.ltd-week > span { display: block; color: var(--ltd-mute); font-size: .9em; margin-block-start: .2em; }

.ltd-chartcard { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2.2em; padding: 1.9em 2.2em 1.6em 2.1em; }
.ltd-leg { display: flex; align-items: baseline; gap: 1.1em; color: var(--ltd-mute); font-size: .9em; }
.ltd-leg b { color: #E9EBEF; font-weight: 600; margin-inline-start: auto; text-align: end; }
.ltd-leg .ltd-avg { display: inline-flex; align-items: center; gap: .5em; }
.ltd-leg .ltd-avg::before { content: ""; inline-size: 1.6em; block-size: .18em; background: radial-gradient(circle, #9AA0AB 45%, transparent 50%) 0 50% / .4em .18em repeat-x; }
.ltd-plot { margin-block-start: 1em; border-radius: 1em; background: var(--ltd-well); padding: .4em .5em; }
.ltd-plot svg { display: block; inline-size: 100%; block-size: auto; overflow: visible; }
.ltd-x { display: flex; justify-content: space-between; margin-block-start: .9em; color: var(--ltd-mute); font-size: .85em; }
.ltd-side-stats { display: grid; align-content: start; gap: 1.5em; }
.ltd-k { color: var(--ltd-mute); font-size: .9em; }
.ltd-v { display: block; margin-block-start: .3em; color: #F2F3F5; }
.ltd-v b { font-size: 2.2em; font-weight: 700; letter-spacing: -0.03em; }
.ltd-v small { display: inline; font-size: 1.05em; color: var(--ltd-mute); margin-inline-start: .2em; }
.ltd-note { margin: .5em 0 0; color: var(--ltd-soft); font-size: .88em; line-height: 1.4; }

/* -------------------------------------------- narrow: a phone, not a picture */
@container (max-width: 520px) {
  .ltd-in { font-size: max(12px, 3.6cqi); grid-template-columns: minmax(0, 1fr); aspect-ratio: auto; }
  .ltd-side, .ltd-btns { display: none; }
  .ltd-main { padding: 1.2em; gap: 1.2em; }
  .ltd-card { border-radius: 1.4em; }
  .ltd-hero, .ltd-chartcard { grid-template-columns: minmax(0, 1fr); gap: 1.3em; padding: 1.4em; }
  .ltd-side-stats { grid-template-columns: 1fr 1.4fr; gap: 1em; }
  .ltd-today { padding: 1.3em; }
}

/* SVG pieces the play animates. */
.ltd-bar { filter: drop-shadow(0 0 10px color-mix(in oklch, var(--ltd-amb) 55%, transparent)); }
.ltd-plot text { font-variant-numeric: tabular-nums; }

/* ------------------------------------- mid: a tablet or a small laptop row */
/* Between a phone and a full row the board is 520-1100px wide; at 1/80 of
   that its labels would set at 5-9px. The sidebar goes and the em becomes
   1/60 of the width, so the main column keeps its proportions and grows. */
@container (min-width: 521px) and (max-width: 1100px) {
  .ltd-in { font-size: 1.65cqi; grid-template-columns: minmax(0, 1fr); aspect-ratio: auto; }
  .ltd-side { display: none; }
}

/* ---------------------------------------------- the section around the board */
/* Below 1024 the bullets and the board share a row or stack (auto-fit). From
   1024 the bullets become a row of three and the board takes the full width:
   at 1440 that is a ~1180px board, 1em ~14.7px, smallest label ~11.8px. */
.lp-track-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
@media (min-width: 1024px) {
  .lp-track-grid { grid-template-columns: minmax(0, 1fr); perspective: 2800px !important; }
  .lp-track-points { grid-template-columns: repeat(3, minmax(0, 1fr)); max-inline-size: none !important; column-gap: var(--lp-m6); }
  .lp-track-fig { max-inline-size: 1200px; }
}
@container (max-width: 520px) {
  .ltd-leg { flex-wrap: wrap; row-gap: .4em; }
}

/* ===================================================== queue #504, 2026-10-05
   THE BOARD IS THE SECTION. A key-number strip, the cars with where each one
   is live, the day's pace, then the 14-day chart. Chip colours are the
   extension's own tags (sidepanel/tokens.css: success tag #182B29 / #55D398,
   accent 12% / #F5B45A, surface-3 #232830 / ink-2 #B0B8C4). */
.ltd-in { aspect-ratio: auto; }
.ltd-main { grid-template-rows: none; gap: 1.6em; }

.ltd-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2em; }
.ltd-kpi {
  position: relative; display: grid; gap: .25em; padding: 1.3em 1.4em 1.2em; border-radius: 1.4em; overflow: hidden;
  background: linear-gradient(180deg, #ffffff0a, transparent 60%), var(--ltd-card);
  box-shadow: 0 1.2em 2.4em -1.6em #000000b3;
}
.ltd-kpi .ltd-k { font-size: .85em; }
.ltd-kv { font-size: 2.5em; font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; font-variant-numeric: tabular-nums; color: #F4F6F9; }
.ltd-kpi em { font-style: normal; font-size: .82em; color: #55D398; }
.ltd-kpi.is-amb { background: linear-gradient(160deg, color-mix(in oklch, var(--ltd-amb) 20%, transparent), transparent 70%), var(--ltd-card); }
.ltd-kpi.is-amb .ltd-kv { color: #F5B45A; }
.ltd-spark { position: absolute; inset-inline-end: 1.1em; inset-block-start: 1.2em; inline-size: 38%; block-size: auto; overflow: visible; }
.ltd-spark path { fill: none; stroke: color-mix(in oklch, var(--ltd-amb) 55%, transparent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ltd-kpi.is-amb .ltd-spark path { stroke: var(--ltd-amb); filter: drop-shadow(0 0 4px color-mix(in oklch, var(--ltd-amb) 60%, transparent)); }

.ltd-duo { display: grid; grid-template-columns: minmax(0, 1fr) 14em; gap: 1.6em; align-items: stretch; }
.ltd-cars { padding: 1.4em 1.4em .8em; border-radius: 1.6em; }
.ltd-cars-h { display: flex; align-items: baseline; justify-content: space-between; margin-block-end: .8em; }
.ltd-cars-h b { font-size: 1.15em; font-weight: 650; }
.ltd-cars-h span { color: #55D398; font-size: .85em; font-weight: 600; }
.ltd-car {
  display: grid; grid-template-columns: minmax(0, 1fr) 7.4em 5.6em 4.6em; gap: .8em; align-items: center;
  padding: .7em .4em; border-block-start: 0; border-radius: .9em;
}
.ltd-car + .ltd-car:not(.ltd-car-hd) { box-shadow: 0 -1px 0 #ffffff0d; border-radius: 0; }
.ltd-car-hd { padding-block: .2em .5em; color: var(--ltd-mute); font-weight: 600; letter-spacing: .01em; white-space: nowrap; }
/* type size on the cells, not the row, so the row's em columns match the body rows */
.ltd-car-hd span { display: inline-flex; align-items: center; gap: .45em; font-size: .78em; min-inline-size: 0; }
.ltd-car-hd svg { inline-size: 1.25em; block-size: 1.25em; flex: none; }
.ltd-car-hd span:nth-child(2) svg { color: #7FB0FF; }
.ltd-car-hd span:nth-child(3) svg { color: #55D398; inline-size: 2.2em; }
.ltd-car-hd span:nth-child(n+4), .ltd-n { justify-self: end; }
.ltd-car-id { display: grid; grid-template-columns: 3.8em minmax(0, 1fr); gap: .8em; align-items: center; min-inline-size: 0; }
.ltd-car-id img { inline-size: 3.8em; block-size: 2.7em; border-radius: .6em; object-fit: cover; display: block; box-shadow: 0 .3em .8em -.3em #000; }
.ltd-car-id b { display: block; font-size: .95em; font-weight: 600; line-height: 1.25; text-wrap: balance; }
.ltd-car-id small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-block-start: .2em; color: var(--ltd-mute); font-size: .8em; font-variant-numeric: tabular-nums; }
.ltd-st {
  justify-self: start; display: inline-flex; align-items: center; gap: .45em; padding: .3em .75em; border-radius: 99em;
  font-size: .78em; font-weight: 600; white-space: nowrap;
}
.ltd-st::before { content: ""; inline-size: .45em; block-size: .45em; border-radius: 50%; background: currentColor; }
.ltd-st.is-live { background: #182B29; color: #55D398; }
.ltd-st.is-wait { background: color-mix(in oklch, var(--ltd-amb) 14%, #14171E); color: #F5B45A; }
.ltd-st.is-sold { background: #232830; color: #B0B8C4; }
.ltd-n { font-size: 1em; font-weight: 650; font-variant-numeric: tabular-nums; color: #F4F6F9; text-align: end; }
.ltd-n small { display: block; font-size: .72em; font-weight: 500; color: var(--ltd-mute); white-space: nowrap; }
.ltd-pace .ltd-today { padding: 1.3em 1.2em; }
.ltd-pace .ltd-pills { gap: .35em; block-size: 3em; }

.ltd-pace { padding: .6em; border-radius: 1.6em; display: grid; }
.ltd-pace .ltd-today { border-radius: 1.2em; }

/* the lot photo, a print on the board's corner */
.lp-track-fig { position: relative; }
@media (min-width: 768px) {
  .lp-track-fig .lp-life-track {
    display: block; position: absolute; z-index: 2; inset-inline-start: -2.5%; inset-block-end: -7%;
    inline-size: clamp(170px, 21%, 260px); aspect-ratio: 4 / 3; border-radius: 16px;
    transform: translateZ(60px) rotate(-3deg);
    box-shadow: 0 0 0 5px #0A0C10, 0 28px 48px -16px #000000e6;
  }
  /* the figure carries an inline margin:0, so the room for the print goes on the points */
  .lp-track-points { margin-block-start: 52px; }
}
/* from 1024 it sits inside the bezel, over the sidebar's empty foot */
@media (min-width: 1024px) {
  .lp-track-fig .lp-life-track { inset-block-end: 5%; inset-inline-start: -3%; inline-size: clamp(200px, 20%, 250px); }
  .lp-track-points { margin-block-start: 0; }
}

/* the three points read after the board, in one row from 768 */
.lp-track-grid { grid-template-columns: minmax(0, 1fr); }
.lp-track-points { order: 2; }
@media (min-width: 768px) {
  .lp-track-points { grid-template-columns: repeat(3, minmax(0, 1fr)); max-inline-size: 1200px !important; column-gap: var(--lp-m6); }
}

@container (min-width: 521px) and (max-width: 1100px) {
  .ltd-duo { grid-template-columns: minmax(0, 1fr); }
  .ltd-pace { display: none; }
}
@container (max-width: 520px) {
  .ltd-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8em; }
  .ltd-kpi { padding: 1em 1.1em; }
  .ltd-kv { font-size: 2em; }
  .ltd-duo { grid-template-columns: minmax(0, 1fr); }
  .ltd-pace, .ltd-car-hd, .ltd-n { display: none; }
  .ltd-cars { padding: 1.1em 1em .5em; }
  .ltd-car { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; row-gap: .35em; column-gap: .7em; }
  .ltd-car-id { grid-row: span 2; grid-template-columns: 3.6em minmax(0, 1fr); }
  .ltd-car-id img { inline-size: 3.6em; block-size: 2.6em; }
  .ltd-st { justify-self: end; }
  /* phones: the platform mark replaces the word, so the car name keeps its room */
  .ltd-st { padding-inline: .55em .7em; }
  .ltd-st > .ltd-st-ic { display: block; order: -1; }
}
.ltd-st-ic { display: none; flex: none; block-size: 1.05em; inline-size: 1.05em; color: #7FB0FF; }
.ltd-st-ic.is-kj { inline-size: 1.9em; color: #55D398; }
