/* ============================================================================
   TIMELINE — design pilot two, scoped to body.timeline-design (resource 09).
   Loads after atelier.css and inherits its whole palette and type system: this
   is the same room, showing a different kind of object. Only the player is new.
   ========================================================================== */

.timeline-design {
  --tl-rail: 300px;
  --tl-side: 330px;
}

/* --- head ----------------------------------------------------------------- */

.tl-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.2rem 2rem;
  padding: .4rem .4rem 1.15rem;
}

.tl-runtime {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .5rem .95rem;
  background: var(--atl-card);
  border: 1px solid var(--atl-line);
  border-radius: 999px;
  box-shadow: var(--atl-shadow);
  font-size: .82rem;
  color: var(--atl-ink-soft);
}

.tl-runtime b {
  font-family: var(--atl-serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--atl-ink);
}

.tl-runtime .tl-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--atl-accent);
}

/* --- three columns -------------------------------------------------------- */

.tl-grid {
  display: grid;
  grid-template-columns: var(--tl-rail) minmax(0, 1fr) var(--tl-side);
  gap: 1.1rem;
  align-items: stretch;
}

/* --- running order rail --------------------------------------------------- */

.tl-order {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.tl-order-list {
  list-style: none;
  margin: 0;
  padding: 0 .55rem .4rem;
  overflow-y: auto;
  flex: 1;
}

.tl-order-list button {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: baseline;
  gap: .1rem .7rem;
  width: 100%;
  padding: .55rem .7rem;
  margin: .1rem 0;
  border: 1px solid transparent;
  border-radius: var(--atl-r-sm);
  background: transparent;
  font: inherit;
  text-align: left;
  color: var(--atl-ink);
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}

.tl-order-list button:hover {
  background: var(--atl-paper);
}

.tl-order-list button[aria-current="true"] {
  background: var(--atl-accent-soft);
  border-color: rgba(194, 90, 50, .32);
}

.tl-time {
  grid-row: span 2;
  font-family: var(--atl-serif);
  font-size: .88rem;
  color: var(--atl-ink-faint);
  font-variant-numeric: tabular-nums;
}

.tl-order-list button[aria-current="true"] .tl-time {
  color: var(--atl-accent-deep);
}

.tl-order-label {
  font-size: .93rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.tl-order-kind {
  font-family: var(--atl-serif);
  font-style: italic;
  font-size: .78rem;
  color: var(--atl-violet);
}

/* the played-so-far marker */
.tl-order-list li {
  position: relative;
}

.tl-order-list li::before {
  content: "";
  position: absolute;
  left: -.05rem;
  top: 12%;
  bottom: 12%;
  width: 2px;
  border-radius: 2px;
  background: var(--atl-line);
}

.tl-order-list li.is-played::before {
  background: var(--atl-accent);
}

/* --- the stage ------------------------------------------------------------ */

.tl-stage {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  background:
    radial-gradient(62% 58% at 50% 40%, #fffefb 0%, var(--atl-card) 48%, var(--atl-paper-deep) 100%);
}

.tl-canvas-wrap {
  position: absolute;
  inset: 0 0 4.6rem;
  cursor: grab;
  touch-action: none;
}

.tl-canvas-wrap.is-dragging { cursor: grabbing; }

.tl-canvas-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.tl-stage-caption {
  position: absolute;
  top: 1.15rem;
  left: 1.2rem;
  /* Clear of the zoom rail, which sits in the top-right corner. */
  right: 3.4rem;
  z-index: 2;
  margin: 0;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--atl-ink-faint);
  text-align: center;
}

.tl-fallback {
  max-width: 34rem;
  margin: 0 auto;
  font-family: var(--atl-serif);
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: center;
  color: var(--atl-ink-soft);
}

.tl-scenes {
  position: absolute;
  inset: 3rem 0 4.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.4rem 2.6rem 1.4rem;
  overflow: hidden;
}

.tl-scene {
  width: 100%;
  max-width: 720px;
}

.tl-scene[hidden] { display: none; }

/* A board scene is the stage, not a card on it. `.tl-scenes` already stops
   above the transport, so the plane runs edge to edge inside it. */
.tl-scene.is-board {
  position: relative;
  height: 100%;
  max-width: none;
  --ccm-plane-bottom: 0px;
}

.tl-scene-caption {
  margin: 0 0 1.2rem;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--atl-ink-faint);
  text-align: center;
}

/* entrance — one shared motion so every scene type arrives the same way */
.tl-anim > * {
  animation: tl-rise .5s cubic-bezier(.22, .8, .3, 1) backwards;
}

.tl-anim > *:nth-child(2) { animation-delay: .06s; }
.tl-anim > *:nth-child(3) { animation-delay: .12s; }
.tl-anim > *:nth-child(4) { animation-delay: .18s; }
.tl-anim > *:nth-child(5) { animation-delay: .24s; }

@keyframes tl-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* --- scene: quote --------------------------------------------------------- */

.tl-quote {
  position: relative;
  padding: 2.2rem 2.4rem 2rem 4rem;
  background: var(--atl-card);
  border: 1px solid var(--atl-line);
  border-radius: var(--atl-r);
  box-shadow: var(--atl-shadow);
}

.tl-quote::before {
  content: "\201C";
  position: absolute;
  top: .5rem;
  left: 1.2rem;
  font-family: var(--atl-serif);
  font-size: 5rem;
  line-height: 1;
  color: var(--atl-accent);
  opacity: .32;
}

.tl-quote p {
  margin: 0;
  font-family: var(--atl-serif);
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  line-height: 1.45;
  color: #2c2823;
}

.tl-quote mark {
  background: linear-gradient(transparent 58%, var(--atl-note) 58%);
  color: inherit;
}

.tl-quote cite {
  display: block;
  margin-top: 1.1rem;
  font-style: normal;
  font-size: .85rem;
  color: var(--atl-ink-soft);
}

.tl-quote cite a { color: var(--atl-accent-deep); }

/* --- scene: cards --------------------------------------------------------- */

.tl-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: .85rem;
}

.tl-card {
  padding: 1.15rem 1.2rem 1.25rem;
  background: var(--atl-card);
  border: 1px solid var(--atl-line);
  border-radius: var(--atl-r-sm);
  box-shadow: var(--atl-shadow);
}

.tl-card b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  margin-bottom: .7rem;
  padding: 0 .4rem;
  border-radius: 8px;
  background: var(--atl-accent-soft);
  color: var(--atl-accent-deep);
  font-family: var(--atl-serif);
  font-size: .88rem;
  font-weight: 400;
}

.tl-card h4 {
  margin: 0 0 .4rem;
  font-family: var(--atl-serif);
  font-size: 1.14rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.01em;
}

.tl-card p {
  margin: 0;
  font-size: .88rem;
  line-height: 1.55;
  color: var(--atl-ink-soft);
}

.tl-card code,
.tl-checks code,
.tl-bin code {
  padding: .05rem .3rem;
  border-radius: 4px;
  background: var(--atl-paper-deep);
  font-size: .88em;
  color: var(--atl-accent-deep);
}

/* --- scene: terminal ------------------------------------------------------ */

.tl-term {
  border-radius: var(--atl-r-sm);
  overflow: hidden;
  box-shadow: var(--atl-shadow-lift);
}

.tl-term-bar {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .6rem .85rem;
  background: #2b2620;
}

.tl-term-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #585046;
}

.tl-term-bar span {
  margin-left: .5rem;
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #9c9186;
}

.tl-term-body {
  padding: 1.1rem 1.2rem 1.3rem;
  background: #211e1a;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .86rem;
  line-height: 1.75;
  color: #e8ddcb;
  min-height: 190px;
}

.tl-term-body div { white-space: pre-wrap; word-break: break-all; }

.tl-term-body .p { color: #6fb28a; margin-right: .5rem; }

.tl-term-body .out { color: #a49a8c; }

.tl-caret {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  vertical-align: -.18em;
  background: #e8ddcb;
  animation: tl-blink 1s steps(2) infinite;
}

@keyframes tl-blink { 50% { opacity: 0; } }

.tl-term-alt {
  margin-top: .8rem;
  padding: .8rem 1rem;
  background: var(--atl-card);
  border: 1px solid var(--atl-line);
  border-radius: var(--atl-r-sm);
  font-size: .84rem;
  color: var(--atl-ink-soft);
}

.tl-term-alt b {
  display: block;
  margin-bottom: .3rem;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--atl-ink-faint);
}

.tl-term-alt code {
  color: var(--atl-ink);
  word-break: break-all;
}

/* --- scene: code ---------------------------------------------------------- */

.tl-code {
  border: 1px solid var(--atl-line);
  border-radius: var(--atl-r-sm);
  overflow: hidden;
  background: var(--atl-card);
  box-shadow: var(--atl-shadow);
}

.tl-code-file {
  padding: .65rem 1rem;
  border-bottom: 1px solid var(--atl-line);
  background: var(--atl-paper);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .78rem;
  color: var(--atl-ink-soft);
}

.tl-code-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 1rem;
  padding: .16rem 1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .82rem;
  line-height: 1.75;
  color: #3b362f;
}

.tl-code-line em {
  font-style: normal;
  font-family: Inter, system-ui, sans-serif;
  font-size: .72rem;
  color: var(--atl-ink-faint);
  white-space: nowrap;
}

.tl-code-line.is-hot {
  background: var(--atl-note);
  box-shadow: inset 3px 0 0 var(--atl-accent);
}

.tl-code-line.is-hot em {
  color: #7a6414;
  font-weight: 600;
}

/* --- scene: big line ------------------------------------------------------ */

/* --- stage zoom -----------------------------------------------------------
   Every flat scene sits on its own viewport so it can be pushed into and moved
   around with the same gesture as the evidence board. The viewport clips; the
   layer is what actually moves. --------------------------------------------- */

.tl-zoom {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: grab;
  outline: none;
  touch-action: none;
}

.tl-zoom:active { cursor: grabbing; }

.tl-zoom:focus-visible {
  box-shadow: inset 0 0 0 2px var(--atl-accent);
  border-radius: var(--atl-r-sm);
}

.tl-zoom-layer {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 900px;
  padding: 1.4rem;
  transform-origin: 50% 50%;
  will-change: transform;
}

.tl-scene.is-zoomable {
  position: absolute;
  inset: 0;
  padding: 0;
}

/* The rail that drives whatever is on the stage. */
.tl-tools {
  position: absolute;
  right: .9rem;
  top: .9rem;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding: .3rem;
  background: var(--atl-card);
  border: 1px solid var(--atl-line);
  border-radius: 999px;
  box-shadow: var(--atl-shadow);
}

.tl-tools button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: .95rem;
  line-height: 1;
  color: var(--atl-ink-soft);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.tl-tools button:hover:not(:disabled) {
  background: var(--atl-paper-deep);
  color: var(--atl-ink);
}

.tl-tools button:disabled {
  opacity: .3;
  cursor: default;
}

@media (max-width: 720px) {
  .tl-tools { right: .5rem; top: .5rem; }
  .tl-tools button { width: 26px; height: 26px; }
}

/* --- bench scene ----------------------------------------------------------
   The specimen bench living inside a chapter: library on the left, viewer on
   the right. Its spec sheet is deliberately absent — the chapter panel is it. */

.tl-bench {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 1rem;
  width: 100%;
  min-height: 460px;
}

.tl-bench-lib {
  overflow-y: auto;
  max-height: 520px;
  background: var(--atl-card);
  border: 1px solid var(--atl-line);
  border-radius: var(--atl-r-sm);
}

.tl-bench-viewer {
  position: relative;
  min-height: 460px;
  border: 1px solid var(--atl-line);
  border-radius: var(--atl-r-sm);
  background: radial-gradient(60% 55% at 50% 42%, #fffefb 0%, var(--atl-card) 46%, var(--atl-paper-deep) 100%);
  overflow: hidden;
}

.tl-bench-modes {
  position: absolute;
  left: 50%;
  bottom: .9rem;
  transform: translateX(-50%);
  display: flex;
  gap: .3rem;
  padding: .3rem;
  background: var(--atl-card);
  border: 1px solid var(--atl-line);
  border-radius: 999px;
  box-shadow: var(--atl-shadow);
}

.tl-bench-modes button {
  padding: .35rem .8rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: .82rem;
  color: var(--atl-ink-soft);
  cursor: pointer;
}

.tl-bench-modes button[aria-pressed="true"] {
  background: var(--atl-paper-deep);
  color: var(--atl-ink);
}

@media (max-width: 900px) {
  .tl-bench { grid-template-columns: minmax(0, 1fr); }
  .tl-bench-lib { max-height: 220px; }
}

/* --- image / posts / video scenes ------------------------------------------
   A slide, chart or screenshot fills the stage without cropping: the frame is
   the stage, the picture fits inside it. --------------------------------- */

.tl-shot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
  margin: 0;
  width: 100%;
}

.tl-shot img {
  max-width: 100%;
  max-height: 62vh;
  object-fit: contain;
  border-radius: var(--atl-r-sm);
  border: 1px solid var(--atl-line);
  background: #fff;
  box-shadow: var(--atl-shadow);
}

.tl-shot figcaption {
  font-size: .9rem;
  color: var(--atl-ink-soft);
  text-align: center;
  max-width: 60ch;
}

/* Posts are links, not embeds — nothing third-party loads on the stage. */
.tl-posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: .8rem;
  width: 100%;
}

.tl-post {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: .9rem 1rem;
  background: var(--atl-card);
  border: 1px solid var(--atl-line);
  border-radius: var(--atl-r-sm);
  box-shadow: var(--atl-shadow);
  text-decoration: none;
  color: inherit;
}

.tl-post:hover { border-color: var(--atl-accent); }

.tl-post-host {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--atl-accent);
}

.tl-post-label { font-size: .95rem; line-height: 1.4; }

.tl-post-open { font-size: .78rem; color: var(--atl-ink-soft); }

.tl-video {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
  width: 100%;
}

.tl-video video {
  max-width: 100%;
  max-height: 62vh;
  border-radius: var(--atl-r-sm);
  border: 1px solid var(--atl-line);
  background: #000;
}

.tl-video-caption {
  font-size: .9rem;
  color: var(--atl-ink-soft);
}

.tl-big {
  text-align: center;
}

.tl-big-line {
  display: inline-block;
  padding: 1rem 1.6rem;
  border-radius: var(--atl-r-sm);
  background: #211e1a;
  color: #f4e7c4;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(1.1rem, 2.6vw, 1.9rem);
  box-shadow: var(--atl-shadow-lift);
}

.tl-big-under {
  max-width: 30rem;
  margin: 1.4rem auto 0;
  font-family: var(--atl-serif);
  font-size: 1.06rem;
  line-height: 1.55;
  color: var(--atl-ink-soft);
}

.tl-big-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .45rem;
  margin-top: 1.3rem;
}

.tl-big-tags span {
  padding: .4rem .85rem;
  border: 1px solid var(--atl-line-strong);
  border-radius: 999px;
  font-size: .82rem;
  color: var(--atl-ink-soft);
  background: var(--atl-card);
}

/* --- scene: checks -------------------------------------------------------- */

.tl-checks {
  display: grid;
  gap: .7rem;
  counter-reset: tlcheck;
}

.tl-check {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: .9rem;
  padding: .95rem 1.1rem;
  background: var(--atl-card);
  border: 1px solid var(--atl-line);
  border-radius: var(--atl-r-sm);
  box-shadow: var(--atl-shadow);
}

.tl-check::before {
  counter-increment: tlcheck;
  content: counter(tlcheck, decimal-leading-zero);
  font-family: var(--atl-serif);
  font-size: .95rem;
  color: var(--atl-accent);
}

.tl-check code.tl-cmd {
  display: inline-block;
  margin-bottom: .35rem;
  padding: .22rem .5rem;
  border-radius: 6px;
  background: #211e1a;
  color: #e8ddcb;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .8rem;
}

.tl-check p {
  margin: 0;
  font-size: .88rem;
  line-height: 1.55;
  color: var(--atl-ink-soft);
}

/* --- scene: bins ---------------------------------------------------------- */

.tl-bins {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: .9rem;
}

.tl-bin {
  padding: 1.3rem 1.3rem 1.5rem;
  border-radius: var(--atl-r-sm);
  border: 1px dashed var(--atl-line-strong);
  background: var(--atl-paper);
}

.tl-bin.is-active {
  border-style: solid;
  border-color: var(--atl-accent);
  background: var(--atl-card);
  box-shadow: var(--atl-shadow);
}

.tl-bin h4 {
  margin: 0 0 .5rem;
  font-family: var(--atl-serif);
  font-size: 1.16rem;
  font-weight: 400;
  letter-spacing: -.01em;
}

.tl-bin p {
  margin: 0;
  font-size: .88rem;
  line-height: 1.55;
  color: var(--atl-ink-soft);
}

.tl-bin-stack {
  display: grid;
  gap: 5px;
  margin-top: 1rem;
}

.tl-bin-stack i {
  height: 9px;
  border-radius: 3px;
  background: var(--atl-line-strong);
}

.tl-bin.is-active .tl-bin-stack i {
  background: rgba(194, 90, 50, .4);
}

.tl-bin-stack i:nth-child(2) { width: 82%; }
.tl-bin-stack i:nth-child(3) { width: 64%; }

/* --- transport ------------------------------------------------------------ */

.tl-transport {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .85rem 1.2rem;
  background: rgba(255, 253, 249, .92);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--atl-line);
}

.tl-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: var(--atl-accent);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}

.tl-play:hover {
  background: var(--atl-accent-deep);
  transform: scale(1.04);
}

.tl-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: none;
  border: 1px solid var(--atl-line);
  border-radius: 50%;
  background: var(--atl-card);
  color: var(--atl-ink-soft);
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease;
}

.tl-step:hover {
  border-color: var(--atl-accent);
  color: var(--atl-accent-deep);
}

.tl-scrub {
  flex: 1;
  min-width: 0;
}

.tl-segments {
  display: flex;
  gap: 3px;
  height: 8px;
}

.tl-segments button {
  flex: 1;
  min-width: 4px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: var(--atl-line);
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: background .2s ease;
}

.tl-segments button:hover { background: var(--atl-line-strong); }

.tl-segments button.is-done { background: rgba(194, 90, 50, .45); }

.tl-segments button.is-now { background: var(--atl-line-strong); }

.tl-segments button.is-now::after {
  content: "";
  position: absolute;
  inset: 0 100% 0 0;
  background: var(--atl-accent);
  animation: tl-fill linear forwards;
  animation-duration: var(--tl-dwell, 9s);
  animation-play-state: var(--tl-run, paused);
}

@keyframes tl-fill { to { inset: 0 0 0 0; } }

.tl-clock {
  display: flex;
  justify-content: space-between;
  margin-top: .45rem;
  font-size: .7rem;
  letter-spacing: .08em;
  color: var(--atl-ink-faint);
  font-variant-numeric: tabular-nums;
}

.tl-clock strong {
  font-weight: 600;
  color: var(--atl-ink-soft);
}

/* --- chapter panel -------------------------------------------------------- */

.tl-panel {
  display: flex;
  flex-direction: column;
  padding: 1.15rem 1.3rem 1.25rem;
  overflow: hidden;
}

.tl-panel-eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 .55rem;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--atl-accent);
}

.tl-panel-eyebrow span:last-child { color: var(--atl-ink-faint); }

.tl-panel h2 {
  margin: 0;
  font-family: var(--atl-serif);
  font-size: 1.7rem;
  line-height: 1.1;
  letter-spacing: -.02em;
  font-weight: 400;
}

.tl-panel-note {
  margin: .8rem 0 0;
  padding-bottom: .95rem;
  border-bottom: 1px solid var(--atl-line);
  font-size: .93rem;
  line-height: 1.62;
  color: var(--atl-ink-soft);
}

.tl-panel-facts {
  display: grid;
  gap: .1rem;
  margin: .9rem 0 0;
}

.tl-panel-facts div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: .3rem 0;
  font-size: .86rem;
  color: var(--atl-ink-soft);
}

.tl-panel-facts b {
  font-family: var(--atl-serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--atl-ink);
}

.tl-panel-links {
  display: grid;
  gap: .4rem;
  margin-top: 1rem;
}

.tl-panel-links a {
  display: block;
  padding: .55rem .75rem;
  background: var(--atl-paper);
  border: 1px solid var(--atl-line);
  border-radius: 10px;
  font-size: .84rem;
  text-decoration: none;
  color: var(--atl-ink);
  transition: border-color .18s ease, transform .18s ease;
}

.tl-panel-links a:hover {
  border-color: var(--atl-accent);
  transform: translateX(2px);
}

.tl-panel-links b {
  display: block;
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--atl-ink-faint);
}

.tl-panel-actions {
  margin-top: auto;
  padding-top: 1.1rem;
  display: grid;
  gap: .5rem;
}

/* --- responsive ----------------------------------------------------------- */

@media (max-width: 1320px) {
  .timeline-design { --tl-rail: 260px; --tl-side: 300px; }
}

@media (max-width: 1080px) {
  .tl-grid { grid-template-columns: minmax(0, 1fr); }
  .tl-order { order: 2; }
  .tl-stage { order: 1; min-height: 540px; }
  .tl-panel { order: 3; }

  .tl-order-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    max-height: none;
  }
}

@media (max-width: 720px) {
  .tl-stage { min-height: 480px; }
  .tl-scenes { padding: 1.4rem 1.1rem 1rem; }
  .tl-transport { gap: .6rem; padding: .7rem .8rem; }
  .tl-play { width: 38px; height: 38px; }
  .tl-step { display: none; }
  .tl-term-body { font-size: .78rem; min-height: 150px; }
  .tl-code-line { grid-template-columns: minmax(0, 1fr); font-size: .76rem; }
  .tl-code-line em { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  .tl-anim > * { animation: none; }
  .tl-caret { animation: none; }
  .tl-segments button.is-now::after { animation: none; inset: 0 0 0 0; }
}
