
.stx .fig, .spx .fig { font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-size: .94em; white-space: nowrap; }
.stx .nb, .spx .nb { white-space: nowrap; }

.ixtip {
  position: absolute; z-index: 5; left: 0; top: 0; width: max-content; max-width: min(300px, calc(100vw - 48px));
  padding: 9px 12px 10px; border-radius: var(--r-sm);
  background: var(--surface); color: var(--fg); border: 1px solid var(--fg-subtle);
  font-size: var(--fs-small); line-height: 1.35; text-wrap: pretty; pointer-events: none;
  opacity: 0; transition: opacity .18s var(--ease);
}
.ixtip[hidden] { display: none; }
.ixtip.is-on { opacity: 1; }
.ixtip > * { margin: 0; }
.ixtip__k { font-family: var(--f-mono); font-size: 12px; color: var(--fg-subtle); margin-bottom: 3px; }
.ixtip__t { color: var(--fg); }
[data-tip] { cursor: default; }
button[data-tip] { cursor: pointer; }
[data-tip]:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: var(--r-sm); }

.stx__diamond, .spx__diamond {
  display: block; flex: 0 0 auto; width: 9px; height: 9px; box-sizing: border-box;
  transform: rotate(45deg); background: var(--canvas); border: 1px solid var(--fg-muted);
}

[data-ix="stages"] .ix__fallback table.tbl th, [data-ix="stages"] .ix__fallback table.tbl td,
[data-ix="sprint"] .ix__fallback table.tbl th, [data-ix="sprint"] .ix__fallback table.tbl td { padding: 10px 14px 10px 0; }
[data-ix="stages"] .ix__fallback ul, [data-ix="sprint"] .ix__fallback ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
[data-ix="stages"] .ix__fallback li, [data-ix="sprint"] .ix__fallback li { margin: 0; }
[data-ix="stages"] .ix__fallback table.tbl, [data-ix="sprint"] .ix__fallback table.tbl { min-width: 640px; }
[data-ix="stages"] .ix__fallback td.mono, [data-ix="sprint"] .ix__fallback td.mono { white-space: nowrap; }
[data-ix="stages"] .ix__fallback [data-at] { margin: 12px 0 0; }
[data-ix="stages"] .ix__fallback [data-at] b, [data-ix="sprint"] .ix__fallback td b { font-weight: 400; color: var(--fg); }
[data-ix="sprint"] .ix__fallback td[data-day] b { display: block; }

.stx { --lab: clamp(150px, 15vw, 200px); display: grid; gap: clamp(14px, 1.8vw, 24px); min-width: 0; }
.stx__time { min-width: 0; padding-top: 26px; }

.stx__lanes { position: relative; display: grid; border-bottom: 1px solid var(--line); }
.stx__tab {
  display: grid; grid-template-columns: var(--lab) minmax(0, 1fr); align-items: stretch;
  min-height: 48px; margin: 0; padding: 0; text-align: left; font: inherit; cursor: pointer;
  background: transparent; color: var(--fg-muted); border: 0; border-top: 1px solid var(--line); border-radius: 0;
  transition: background .2s var(--ease);
}
.stx__tab:hover { background: var(--surface-muted); }
.stx__tab[aria-selected="true"] { background: var(--surface); }
.stx__tab:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.stx__lab { display: grid; gap: 1px; align-content: center; padding: 6px 12px; min-width: 0; }
.stx__name { font-family: var(--f-mono); font-size: var(--fs-small); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-muted); }
.stx__when { font-family: var(--f-mono); font-size: 12px; color: var(--fg-subtle); }
.stx__tab[aria-selected="true"] .stx__name { color: var(--fg); }
.stx__track { position: relative; display: block; min-width: 0; }
.stx__bar {
  position: absolute; z-index: 1; left: var(--from); width: calc(var(--to) - var(--from)); top: 50%; height: 14px; margin-top: -7px;
  box-sizing: border-box; border: 1px solid var(--fg-subtle); border-radius: 2px; background: var(--canvas);
  transform-origin: left center;
  transition: transform .7s var(--ease) var(--d, 0s), background .2s var(--ease), border-color .2s var(--ease);
}
.stx__tab:hover .stx__bar { border-color: var(--fg); }
.stx__tab[aria-selected="true"] .stx__bar { background: var(--brand); border-color: var(--brand); }

.stx__over { position: absolute; left: var(--lab); right: 0; top: 0; bottom: 0; pointer-events: none; }
.stx__guide { position: absolute; top: 0; bottom: 0; width: 1px; margin-left: -.5px; background: var(--line); }
.stx__gate { position: absolute; top: -26px; bottom: 0; width: 1px; margin-left: -.5px; background: var(--fg-muted); transition: opacity .4s var(--ease) .5s; }
.stx__gatelab {
  position: absolute; left: -5px; top: -5px; display: flex; align-items: center; gap: 9px; min-height: 24px; padding-right: 6px;
  white-space: nowrap; pointer-events: auto;
  font-family: var(--f-mono); font-size: 12px; color: var(--fg);
}

.stx__axis { position: relative; height: 22px; margin-left: var(--lab); }
.stx__unit { position: absolute; right: 100%; top: 6px; width: var(--lab); box-sizing: border-box; padding-left: 12px; font-family: var(--f-mono); font-size: 12px; color: var(--fg-subtle); }
.stx__tick { position: absolute; top: 6px; transform: translateX(-50%); font-family: var(--f-mono); font-size: 12px; font-variant-numeric: tabular-nums; color: var(--fg-subtle); }
.stx__tick.is-first { transform: none; }
.stx__tick.is-last { transform: translateX(-100%); }

.stx__panels {
  display: grid; min-width: 0;
  transition: opacity .5s var(--ease) .45s;
}
.stx__panel {
  grid-area: 1 / 1; min-width: 0; display: grid; align-items: start;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.2fr) minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(16px, 2.6vw, 40px); padding: clamp(16px, 1.8vw, 24px) 0 0;
  opacity: 0; visibility: hidden; transition: opacity .2s var(--ease), visibility 0s linear .2s;
}
.stx__panel.is-on { opacity: 1; visibility: visible; transition: opacity .2s var(--ease); }
.stx__panel p, .stx__panel ul { margin: 0; }
.stx__t { font-family: var(--f-display); font-size: var(--fs-h3); line-height: 1.15; text-transform: uppercase; color: var(--fg); }
.stx__w { margin-top: 6px; font-family: var(--f-mono); font-size: var(--fs-small); color: var(--fg-subtle); }
.stx__panel .stx__w { margin-top: 6px; }
.stx__fact { display: grid; gap: 6px; align-content: start; min-width: 0; }
.stx__k { font-family: var(--f-mono); font-size: 12px; color: var(--fg-subtle); }
.stx__v { font-size: var(--fs-body); line-height: 1.4; color: var(--fg-muted); text-wrap: pretty; }
.stx__v--win { color: var(--fg); }
.stx__do { list-style: none; padding: 0; display: grid; gap: 5px; font-size: var(--fs-body); line-height: 1.4; color: var(--fg-muted); }
.stx__do li { position: relative; padding-left: 16px; text-wrap: pretty; }
.stx__do li::before { content: ""; position: absolute; left: 0; top: .68em; width: 7px; height: 1px; background: var(--fg-subtle); }

.stx:not(.is-built) .stx__bar { transform: scaleX(0); }
.stx:not(.is-built) .stx__gate, .stx:not(.is-built) .stx__panels { opacity: 0; }

.spx { display: grid; gap: clamp(10px, 1.4vw, 18px); min-width: 0; --day: 0%; }

.spx__qs { display: flex; flex-wrap: wrap; gap: 4px 26px; }
.spx__q {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 0; margin: 0;
  font: inherit; font-size: var(--fs-small); color: var(--fg-muted); cursor: pointer; text-align: left;
  background: transparent; border: 0; border-bottom: 1px solid transparent; border-radius: 0;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.spx__q i { font-style: normal; font-family: var(--f-mono); font-size: 12px; color: var(--fg-subtle); }
.spx__q:hover { color: var(--fg); border-bottom-color: var(--fg-subtle); }
.spx__q:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.spx__q[aria-pressed="true"] { border-bottom-color: var(--brand); color: var(--fg); }
.spx__q[aria-pressed="true"] i { color: var(--brand-strong); }

.spx__plan { display: grid; grid-template-columns: var(--cols); min-width: 0; }
.spx__head {
  grid-row: 1; min-width: 0; display: grid; gap: 2px; align-content: center; padding: 10px 14px 10px 0; min-height: 44px; box-sizing: border-box;
  color: var(--fg-muted);
  border: 0; border-top: 1px solid var(--line);
  transition: opacity .5s var(--ease) var(--d, 0s), transform .5s var(--ease) var(--d, 0s), border-color .2s var(--ease), color .2s var(--ease);
}
.spx__head b { font-weight: 400; font-size: var(--fs-body); line-height: 1.25; }
.spx__head span { font-family: var(--f-mono); font-size: 12px; color: var(--fg-subtle); }
.spx__head.is-live { border-top-color: var(--brand); color: var(--fg); }

.spx__rail { grid-row: 2; grid-column: 1 / -1; position: relative; height: 46px; margin-top: 14px; }
.spx__line { position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: var(--line); transform-origin: left center; transition: transform .6s var(--ease) .3s; }
.spx__fill { position: absolute; left: 0; top: 6px; height: 1px; width: var(--day); background: var(--brand); }
.spx__range {
  position: absolute; left: -8px; right: -8px; width: calc(100% + 16px); top: -16px; height: 44px; margin: 0; padding: 0;
  -webkit-appearance: none; appearance: none; background: transparent; opacity: 0; cursor: ew-resize; z-index: 2;
}
.spx__range::-webkit-slider-thumb { -webkit-appearance: none; width: 44px; height: 44px; }
.spx__range::-moz-range-thumb { width: 44px; height: 44px; border: 0; }
.spx__run {
  position: absolute; left: var(--day); top: 6px; width: 21px; height: 21px; margin: -10px 0 0 -10.5px; box-sizing: border-box;
  border-radius: 50%; background: var(--canvas); border: 2px solid var(--brand); z-index: 3; pointer-events: none;
}
.spx__range:focus-visible ~ .spx__run { outline: 2px solid var(--brand); outline-offset: 2px; }
.spx__gatelist { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; pointer-events: none; }
.spx__gate { position: absolute; top: 0; width: 0; transition: opacity .4s var(--ease) calc(.5s + var(--d, 0s)); }
.spx__gbtn {
  position: absolute; left: -22px; top: -16px; width: 44px; height: 44px; padding: 0; margin: 0; border: 0; border-radius: 0;
  background: transparent; cursor: pointer; display: grid; place-items: center; pointer-events: auto; z-index: 4;
}
.spx__gbtn:focus-visible { outline: 2px solid var(--brand); outline-offset: -8px; }
.spx__gbtn:hover .spx__diamond { border-color: var(--fg); }
.spx__gate.is-passed .spx__diamond { border-color: var(--brand); }
.spx__gate.is-last.is-passed .spx__diamond { background: var(--brand); }
.spx__txt { position: absolute; top: 20px; left: 0; transform: translateX(-50%); white-space: nowrap; font-family: var(--f-mono); font-size: 12px; color: var(--fg-subtle); }
.spx__gate.is-last .spx__txt { transform: translateX(-100%); }

.spx__items {
  grid-row: 3; list-style: none; margin: 0; padding: 0 14px; min-width: 0; display: grid; align-content: start;
  transition: opacity .5s var(--ease) var(--d, 0s), transform .5s var(--ease) var(--d, 0s);
}
.spx__cell, .spx__gaterow {
  display: grid; grid-template-columns: 2.4em minmax(0, 1fr); gap: 8px; align-items: baseline; margin: 0; padding: 9px 0;
  border-top: 1px solid var(--line); font-size: var(--fs-small); line-height: 1.35; color: var(--fg); text-wrap: pretty;
  transition: opacity .25s var(--ease);
}
.spx__items > :first-child { border-top: 0; }
.spx__cell i { font-style: normal; font-family: var(--f-mono); font-size: 12px; color: var(--fg-subtle); transition: color .2s var(--ease); }
.spx__gaterow { color: var(--fg-muted); border-top-color: var(--fg-subtle); }
.spx__gaterow .spx__diamond { align-self: center; margin-left: 2px; }
.spx__gaterow.is-last .spx__diamond { background: var(--brand); border-color: var(--brand); }
.spx__gaterow b { font-weight: 400; font-family: var(--f-mono); font-size: 12px; color: var(--fg); display: block; }

.spx__cell.is-off { opacity: .3; }
.spx__cell.is-hit i { color: var(--brand-strong); }
.spx[data-scrub="user"] .spx__items:not(.is-live) { opacity: .3; }

.spx__read { display: none; }
.spx__rday { font-weight: 400; font-family: var(--f-mono); font-variant-numeric: tabular-nums; color: var(--brand-strong); min-width: 6ch; }
.spx__rph { color: var(--fg); }

.spx:not(.is-built) .spx__head, .spx:not(.is-built) .spx__items { opacity: 0; transform: translateY(10px); }
.spx:not(.is-built) .spx__line { transform: scaleX(0); }
.spx:not(.is-built) .spx__gate, .spx:not(.is-built) .spx__run, .spx:not(.is-built) .spx__fill, .spx:not(.is-built) .spx__read { opacity: 0; }
.spx__run, .spx__fill { transition: opacity .3s var(--ease) .4s; }
.spx.is-settled .spx__items { transition: opacity .25s var(--ease); }

@media (min-width: 761px) and (max-height: 820px) {
  .stx { gap: 12px; }
  .stx__tab { min-height: 44px; }
  .stx__v, .stx__do { font-size: var(--fs-small); }
  .spx__cell, .spx__gaterow { padding: 7px 0; }
  .spx__rail { margin-top: 12px; height: 42px; }
}
@media (max-width: 1100px) and (min-width: 761px) {
  .stx__panel { gap: 18px; }
}
@media (max-width: 760px) {
  .stx { --lab: 124px; }
  .stx__lab { padding: 6px 8px; }
  .stx__unit { padding-left: 8px; }
  .stx__name { letter-spacing: .04em; }
  .stx__panel { grid-template-columns: 1fr; gap: 14px; }
  .stx__panel:not(.is-on) { display: none; }

  .spx__plan { display: flex; flex-direction: column; }
  .spx__rail { order: 0; margin: 4px 0 14px; }
  .spx__items { padding: 0 14px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .ixtip, .stx__tab, .stx__bar, .stx__gate, .stx__panels, .stx__panel,
  .spx__q, .spx__head, .spx__items, .spx__cell, .spx__gaterow, .spx__line, .spx__gate, .spx__run, .spx__fill, .spx__read { transition: none !important; }
}
