/* Timeline under the shared 3D view: the whole take in one scrolling row. A above, B below, the coordination track between. */
.ft-tag { display: inline-block; padding: 2px 8px; border: 1px solid var(--rule); border-radius: 999px; font-weight: 600; color: var(--muted); }
.ft-card {
  /* Coordination reads apart without color: solid (together), outlined (independently), hatched (waiting), each with an
     edge at least 3:1 against the track, and named inside the bar where it has room (ink on the fills: 8.4:1 or more). */
  --ft-joint: #7FC277; --ft-joint-edge: #3F8A3A; --ft-parallel: #F8FAFC; --ft-parallel-edge: #7C8899;
  --ft-waiting: #E6C24A; --ft-waiting-2: #F6E7A6; --ft-waiting-edge: #9A7B14; --ft-track: #F1F5F9; --ft-grid: #EEF2F6;
  container-type: inline-size;
  position: relative; margin-top: 40px; padding: var(--s5, 24px) 28px 20px; background: #fff;
  border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 14px 36px -16px rgba(15,23,42,0.10);
}

/* The bar: the title, Play/Pause with the clock and the speed, the handover steps, and the editor tools. */
.ft-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3, 12px) var(--s5, 24px); padding-bottom: var(--s4, 16px); }
/* The title has a row of its own at every width: it fills in after load (the full task comes with process.json), and
   nothing beside it may move when it does. */
.ft-title { display: inline-flex; flex-wrap: wrap; flex-basis: 100%; align-items: center; gap: 6px 10px; font-size: 16px; line-height: 1.3; }
.ft-title b { font-weight: 600; }
.ft-clockbox { display: inline-flex; align-items: center; gap: var(--s3, 12px); }
/* Play and Pause are one width, so the clock beside it never moves. */
.ft-toggle { font: inherit; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-width: 92px; min-height: 36px; padding: 0 16px 0 14px; color: #fff; background: var(--accent); border: 0; border-radius: 8px; cursor: pointer; }
.ft-toggle:hover { background: #1D4ED8; }
.ft-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ft-icon { display: block; box-sizing: border-box; width: 10px; height: 12px; border-left: 3.5px solid currentColor; border-right: 3.5px solid currentColor; }
.ft-toggle[data-playing="false"] .ft-icon { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; }
.ft-clock { font-size: 16px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ft-clock b { font-weight: 600; color: var(--ink); }
/* Both times hold the width of "10:17.0" from the first paint, so nothing beside the clock moves as they fill in. */
.ft-clock b, .ft-clock [data-ft-dur] { display: inline-block; min-width: 5.6ch; }
.ft-clock b { text-align: right; }
/* Editor tools: speed, handover steps, Follow (auto-scroll) and zoom. Controls are 36 px (44 on touch), radius 8. */
.ft-tools { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--s2, 8px) var(--s3, 12px); margin-left: auto; }
.ft-zoom { display: inline-flex; align-items: center; gap: var(--s2, 8px); }
.ft-tool { font: inherit; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 36px; min-height: 36px; padding: 0 var(--s3, 12px); color: var(--ink-2); background: #fff; border: 1px solid var(--rule); border-radius: 8px; cursor: pointer; }
.ft-tool:hover:not(:disabled):not([aria-disabled="true"]) { border-color: var(--ink-3); color: var(--ink); }
.ft-tool:disabled, .ft-tool[aria-disabled="true"] { opacity: 0.4; cursor: default; }
.ft-tool:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ft-speed { min-width: 48px; font-variant-numeric: tabular-nums; }
.ft-hos { display: inline-flex; align-items: center; gap: var(--s1, 4px); }
.ft-ho-step { gap: 5px; padding: 0 10px; font-size: 16px; line-height: 1; }
.ft-ho-glyph { width: 8px; height: 8px; border-radius: 1.5px; background: currentColor; transform: rotate(45deg); }
.ft-ho-count { min-width: 120px; text-align: center; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ft-hc-narrow { display: none; }
.ft-follow i { width: 12px; height: 12px; border-radius: 2px; border: 1.5px solid currentColor; position: relative; }
.ft-follow i::after { content: ''; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: currentColor; }
.ft-follow[aria-pressed="true"] { color: var(--accent); background: #EEF4FF; border-color: #C7D7FB; }
/* Suspended: still on, but the visitor scrolled away; it picks the playhead up again at the center. */
.ft-follow.is-suspended { background: #fff; }
.ft-follow.is-suspended::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.ft-zoom-range { width: 112px; accent-color: var(--accent); }

/* Under the lanes: the label disclosure (every width), the legend and the key hints. */
.ft-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s2, 8px) var(--s5, 24px); margin-top: var(--s2, 8px); }
.ft-source { flex-basis: 100%; font-size: 12px; line-height: 1.5; color: var(--muted); }
.ft-legend { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2, 8px) 20px; font-size: 13px; color: var(--ink-3); }
.ft-key { display: inline-flex; align-items: center; gap: var(--s2, 8px); }
.ft-key.is-pending { visibility: hidden; } /* room held until coord.json answers */
.ft-sw { box-sizing: border-box; width: 22px; height: 12px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(15,23,42,0.12); }
.ft-sw.is-joint { background: var(--ft-joint); box-shadow: inset 0 -2px 0 var(--ft-joint-edge); }
.ft-sw.is-parallel { background: var(--ft-parallel); box-shadow: inset 0 0 0 1px var(--ft-parallel-edge); }
.ft-sw.is-waiting { background: repeating-linear-gradient(135deg, var(--ft-waiting) 0 3px, var(--ft-waiting-2) 3px 6px); box-shadow: inset 0 -2px 0 var(--ft-waiting-edge); }
.ft-sw.is-waste { background: #FEFBE8; border: 1px dashed #D0BB55; box-shadow: none; }
.ft-sw-ho { width: 9px; height: 9px; border-radius: 1.5px; transform: rotate(45deg); background: var(--a); }
.ft-sw-ho[data-giver="B"] { width: 10px; height: 10px; border-radius: 50%; transform: none; background: var(--b); margin-left: -2px; }
.ft-hint { font-size: 12px; line-height: 20px; color: var(--muted); }
.ft-hint kbd { display: inline-block; min-width: 18px; padding: 0 4px; margin-right: 2px; font: 600 11px/15px var(--font); text-align: center; color: var(--ink-2); background: #F8FAFC; border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: 4px; }
.ft-hint-touch { display: none; }

/* The strip (the whole take, the part in view, the playhead) over the row; a gutter names the lanes. */
.ft-view { display: grid; grid-template-columns: 104px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: var(--s4, 16px); row-gap: var(--s3, 12px); }
.ft-view.is-narrow { grid-template-columns: 18px minmax(0, 1fr); column-gap: 10px; }
.ft-map-name { align-self: center; font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.ft-view.is-narrow .ft-map-name { visibility: hidden; }
.ft-map { position: relative; height: 28px; cursor: pointer; touch-action: none; outline: none; }
.ft-map:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.ft-map-lane { position: absolute; left: 0; right: 0; height: 8px; border-radius: 2px; overflow: hidden; background: var(--ft-track); }
.ft-map-lane[data-person="A"] { top: 3px; --m: var(--a-mid, #C9A3A3); } .ft-map-lane[data-person="B"] { top: 17px; --m: var(--b-mid, #ABABD6); }
.ft-map-lane i { position: absolute; top: 0; bottom: 0; background: var(--m); box-shadow: inset -1px 0 #fff; }
.ft-map-lane i.is-waste { background: #E9D57A; } .ft-map-lane i.is-background { background: var(--line); }
.ft-map-co { position: absolute; left: 0; right: 0; top: 12px; height: 4px; }
.ft-map-co i { position: absolute; top: 0; bottom: 0; }
.ft-map-co i.is-joint { background: var(--ft-joint); } .ft-map-co i.is-waiting { background: var(--ft-waiting); } .ft-map-co i.is-parallel { background: #B8C2CF; }
.ft-map-co b { position: absolute; top: -3px; width: 2px; height: 10px; margin-left: -1px; border-radius: 1px; background: var(--a); }
.ft-map-co b[data-giver="B"] { top: -1px; height: 6px; background: var(--b); } /* B gives: a shorter tick, as B's marker is a circle */
.ft-map-win { position: absolute; top: -3px; bottom: -3px; box-sizing: border-box; border: 1.5px solid var(--ink-3); border-radius: 4px; background: rgba(37,99,235,0.07); pointer-events: none; }
.ft-map-ph { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--accent); pointer-events: none; }

.ft-gutter { position: relative; height: 130px; }
.ft-who { position: absolute; left: 0; display: flex; align-items: center; gap: 7px; height: 34px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.ft-who[data-person="A"] { top: 28px; color: var(--a); } .ft-who[data-person="B"] { top: 92px; color: var(--b); }
.ft-who i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ft-axis-name { position: absolute; left: 0; top: 64px; height: 24px; display: flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.ft-view.is-narrow .ft-long, .ft-view.is-narrow .ft-axis-name, .ft-view.is-narrow .ft-who i { display: none; }

/* The row: one long chart in a sideways scroller, faded at an edge with more beyond it. Two fingers pinch-zoom it. */
.ft-rows { position: relative; min-width: 0; }
.ft-scroll {
  --fl: 0px; --fr: 0px;
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; padding-bottom: 10px; outline: none; touch-action: pan-x pan-y;
  scrollbar-width: thin; scrollbar-color: var(--rule) transparent;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%);
}
.ft-view.can-left .ft-scroll { --fl: 24px; } .ft-view.can-right .ft-scroll { --fr: 24px; }
.ft-view .ft-scroll:focus-within { --fl: 0px; --fr: 0px; } /* nothing focused sits under a fade */
.ft-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.ft-chart { position: relative; height: 130px; cursor: pointer; }
.ft-card.is-scrubbing, .ft-card.is-scrubbing * { cursor: ew-resize !important; user-select: none; }
/* The time ruler: press or drag anywhere on it to scrub, as in an editor. Labels clear the playhead's head. */
.ft-ruler { position: absolute; left: 0; right: 0; top: 0; height: 22px; background: #F5F7FA; border-bottom: 1px solid var(--line); cursor: ew-resize; touch-action: none; }
.ft-tick { position: absolute; bottom: 0; height: 5px; border-left: 1px solid var(--rule); }
.ft-tick.is-major { top: 0; height: auto; padding: 4px 0 0 10px; border-left-color: #A9B4C2; font-size: 12px; line-height: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ft-tick.is-major.is-cut { color: transparent; }
/* A name its box would push out past the row's left edge, leaving a fragment: hidden until it fits again. */
.ft-block.is-cut b, .ft-co.is-cut span { visibility: hidden; }
.ft-tick.is-major::after { content: ''; position: absolute; left: -1px; top: 22px; height: 108px; border-left: 1px solid var(--ft-grid); }
/* The end of the take: its time sits left of the line, inside the row; it lights up as the loop wraps. */
.ft-tick.is-end { top: 0; height: auto; transform: translateX(-100%); padding: 4px 5px 0 0; border-left: 0; border-right: 1.5px solid var(--ink-3); font-size: 12px; line-height: 12px; color: var(--ink-3); font-weight: 600; white-space: nowrap; transition: color .2s; }
.ft-tick.is-end::after { content: ''; position: absolute; right: -1.5px; top: 22px; height: 108px; border-left: 1.5px dashed var(--rule); }
.ft-tick.is-end.is-wrap { color: var(--accent); border-right-color: var(--accent); }
/* The ruler's hover ghost: where a press would land. */
.ft-ghost { position: absolute; top: 0; bottom: -4px; width: 1px; background: rgba(37,99,235,0.35); pointer-events: none; z-index: 3; }
.ft-ghost b { position: absolute; top: 3px; left: 4px; padding: 0 5px; font: 600 12px/16px var(--font); color: var(--accent); background: #fff; border-radius: 4px; box-shadow: 0 0 0 1px #C7D7FB; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Steps: one block per merged run, its name where it fits; hairlines where a merged block's step changes. */
.ft-lane { position: absolute; left: 0; right: 0; height: 34px; }
.ft-lane[data-person="A"] { top: 28px; --fill: #FBE7E7; --edge: #EDCACA; --tx: #7A3E3E; }
.ft-lane[data-person="B"] { top: 92px; --fill: #E9E9FB; --edge: #CDCDF0; --tx: #46467F; }
.ft-block { position: absolute; top: 0; height: 100%; margin-left: 1px; box-sizing: border-box; display: flex; align-items: center; padding: 0 9px; overflow: hidden; overflow: clip; white-space: nowrap; border: 1px solid var(--edge); border-radius: 6px; background: var(--fill); color: var(--tx); font-size: 13px; font-weight: 500; transition: box-shadow .12s, border-color .12s; }
/* A block too narrow for a name is exactly as wide as its time: no padding widens it past its end. */
.ft-block.is-bare, .ft-block:empty { padding: 0; }
/* A block that starts left of the view keeps its name in sight (sticky, clear of the edge fade) until it ends. */
.ft-block b { position: sticky; left: 26px; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: inherit; }
.ft-seam { position: absolute; top: 7px; bottom: 7px; width: 1px; background: var(--edge); pointer-events: none; }
.ft-block.is-waste { background: #FEFBE8; border: 1px dashed #D0BB55; color: #6B5B12; }
.ft-block.is-background { background: var(--ft-track); border-color: var(--line); color: var(--muted); }
/* What the playhead is on: an edge in the lane's own ink, not the accent (the accent is the playhead's). */
.ft-block.is-now { border-color: var(--tx); box-shadow: inset 0 -3px 0 var(--edge); }
.ft-block.is-hover { z-index: 1; border-color: var(--ink-3); box-shadow: 0 0 0 1px var(--ink-3), 0 2px 8px rgba(15,23,42,0.10); }

/* The coordination track, with the handovers on it. */
.ft-axis { position: absolute; left: 0; right: 0; top: 64px; height: 24px; }
.ft-co-bar { position: absolute; left: 0; right: 0; top: 4px; height: 16px; border-radius: 4px; background: var(--ft-track); }
.ft-co { position: absolute; top: 0; bottom: 0; box-sizing: border-box; overflow: hidden; overflow: clip; }
.ft-co.is-joint { background: var(--ft-joint); box-shadow: inset 0 -2px 0 var(--ft-joint-edge); }
.ft-co.is-parallel { background: var(--ft-parallel); box-shadow: inset 0 0 0 1px var(--ft-parallel-edge); }
.ft-co.is-waiting { background: repeating-linear-gradient(135deg, var(--ft-waiting) 0 4px, var(--ft-waiting-2) 4px 8px); box-shadow: inset 0 -2px 0 var(--ft-waiting-edge); }
.ft-co span { position: sticky; left: 26px; display: block; width: max-content; max-width: 100%; box-sizing: border-box; padding: 0 6px; font: 600 11px/16px var(--font); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ft-co.is-now { filter: saturate(1.4) brightness(0.94); }
.ft-co.is-hover { z-index: 2; outline: 1.5px solid var(--ink-3); outline-offset: 1px; }
/* Each handover: a link from the giver's lane to the receiver's, the arrowhead at the receiver. */
.ft-link { position: absolute; top: 62px; height: 24px; width: 2px; margin-left: -1px; background: var(--a); pointer-events: none; z-index: 2; }
.ft-link[data-giver="B"] { top: 68px; background: var(--b); }
.ft-link::after { content: ''; position: absolute; left: -3px; border-left: 4px solid transparent; border-right: 4px solid transparent; }
.ft-link[data-giver="A"]::after { bottom: -6px; border-top: 6px solid var(--a); }    /* A → B points down */
.ft-link[data-giver="B"]::after { top: -6px; border-bottom: 6px solid var(--b); }    /* B → A points up */
/* The marker, in the giver's color: A a diamond, B a circle, so the giver reads without color. A cluster carries a count. */
.ft-ho { --g: var(--a); position: absolute; top: 12px; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; padding: 0; border: 2px solid #fff; border-radius: 2.5px; background: var(--g); transform: rotate(45deg); cursor: pointer; z-index: 3; box-shadow: 0 1px 3px rgba(15,23,42,0.30); transition: scale .12s; }
.ft-ho[data-giver="B"] { --g: var(--b); width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; transform: none; }
.ft-ho::before { content: ''; position: absolute; inset: -8px; } /* a 25 px target for any pointer (the halo hangs off the padding box) */
.ft-ho:hover, .ft-ho.is-hover, .ft-ho.is-snap { scale: 1.3; }
.ft-ho:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ft-ho.is-cluster { width: 22px; height: 18px; margin: -9px 0 0 -11px; border-radius: 6px; transform: none; font: 700 11px/14px var(--font); color: #fff; text-align: center; }
.ft-ho.is-cluster[data-giver="mix"] { --g: var(--ink-3); background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%); }
/* Crossed while playing: one pulse. */
.ft-ho.is-firing { animation: ft-pop .6s ease-out; }
.ft-ho.is-firing::after { content: ''; position: absolute; inset: -2px; border-radius: inherit; pointer-events: none; animation: ft-ring .6s ease-out forwards; }
@keyframes ft-pop { 30% { scale: 1.6; } }
@keyframes ft-ring { from { box-shadow: 0 0 0 0 var(--g); opacity: 0.55; } to { box-shadow: 0 0 0 10px var(--g); opacity: 0; } }

/* The playhead: a line through the ruler and the lanes, with a head on the ruler to grab (a larger target than its
   shape) and, while dragging, the time beside it. */
.ft-ph { position: absolute; top: 0; bottom: -4px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--accent); pointer-events: none; z-index: 4; }
.ft-ph-head { position: absolute; top: 0; left: -11px; width: 24px; height: 24px; pointer-events: auto; cursor: grab; touch-action: none; }
.ft-ph-head::before { content: ''; position: absolute; top: 0; left: 4px; width: 16px; height: 20px; background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%); }
.ft-card.is-scrubbing .ft-ph-head { cursor: grabbing; }
.ft-ph-flag { position: absolute; top: 2px; left: 12px; display: none; padding: 0 6px; font: 600 12px/17px var(--font); color: #fff; background: var(--accent); border-radius: 4px; white-space: nowrap; pointer-events: none; font-variant-numeric: tabular-nums; }
.ft-card.is-scrubbing .ft-ph-flag { display: block; }
/* Follow suspended and the playhead out of view: a pill on that edge goes back to it. */
.ft-back { position: absolute; top: 46px; right: 8px; z-index: 6; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; font: 600 12px/1 var(--font); border: 0; border-radius: 999px; color: #fff; background: var(--accent); box-shadow: 0 4px 12px rgba(37,99,235,0.30); cursor: pointer; }
.ft-back[data-side="left"] { right: auto; left: 8px; }
.ft-back:hover { background: #1D4ED8; }

/* Detail: person A, the pair, person B, at the playhead or under the pointer. One line per field and room for all five,
   so the row keeps one height (14 + 21 + 18 + 18 + 18 + 4 × 4 = 105 px) as the playhead moves; full text in the title. */
.ft-detail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4, 16px) var(--s6, 32px); margin-top: var(--s4, 16px); padding-top: var(--s4, 16px); border-top: 1px solid var(--line); }
.ft-cell { display: flex; flex-direction: column; gap: var(--s1, 4px); min-width: 0; min-height: 105px; padding-left: 12px; border-left: 2px solid var(--line); transition: border-color .12s; }
.ft-cell > * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ft-cell.is-hover { border-left-color: var(--ink-3); }
.ft-cell .label { line-height: 14px; color: var(--muted); }
.ft-cell .label[data-person="A"] { color: var(--a); } .ft-cell .label[data-person="B"] { color: var(--b); }
.ft-cell b { font-size: 16px; font-weight: 600; line-height: 21px; }
.ft-meta { font-size: 13px; line-height: 18px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ft-sub { font-size: 13px; line-height: 18px; color: var(--ink-3); }

/* Narrower cards: the tools wrap to the left edge under the title; A and B side by side above the pair. */
@container (max-width: 1080px) { .ft-tools { margin-left: 0; } }
@container (max-width: 860px) {
  .ft-detail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft-cell[data-ft-cell="coord"] { grid-column: 1 / -1; order: 3; }
}
@container (max-width: 640px) { .ft-zoom-range { display: none; } }
/* The full task title (it arrives with process.json) takes two lines here: hold them from the start. */
@container (max-width: 420px) { .ft-title { min-height: 2.6em; } }
/* Phones: the title on its own row, then Play (an icon), the clock and the speed, then the handover steps, Follow (an
   icon) and Fit; zoom by pinching (or Fit, twice). The detail row is the three titles, one line each. */
@container (max-width: 560px) {
  .ft-bar, .ft-tools { gap: var(--s2, 8px); }
  .ft-ho-count { min-width: 40px; }
  .ft-hc-wide { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* still read out */
  .ft-hc-narrow { display: inline; }
  .ft-toggle { min-width: 44px; padding: 0; }
  .ft-toggle [data-ft-toggle-text], .ft-follow-text, [data-ft-zoom-in], [data-ft-zoom-out] { display: none; }
  .ft-detail { grid-template-columns: minmax(0, 1fr); gap: var(--s2, 8px); }
  .ft-cell, .ft-cell[data-ft-cell="coord"] { grid-column: auto; order: 0; flex-direction: row; align-items: baseline; gap: var(--s2, 8px); min-height: 0; }
  .ft-cell .label { flex: none; width: 104px; }
  .ft-cell b { font-size: 15px; }
  .ft-meta, .ft-sub { display: none; }
}

@media (max-width: 760px) {
  .ft-card { margin-top: 28px; padding: var(--s4, 16px) var(--s3, 12px) var(--s3, 12px); border-radius: 12px; }
}
/* Phones show the touch hint, not the keys. */
@media (max-width: 600px) { .ft-hint-fine { display: none; } .ft-hint-touch { display: inline; } }
/* Touch: 44 px targets, a larger reach round each handover, the playhead's head and the strip, and the touch hint. */
@media (any-pointer: coarse) {
  .ft-toggle { min-height: 44px; }
  .ft-tool { min-width: 44px; min-height: 44px; }
  .ft-back { min-height: 44px; padding: 0 16px; }
  .ft-ph-head { left: -21px; width: 44px; height: 32px; }
  .ft-ph-head::before { left: 13px; width: 18px; height: 22px; }
  .ft-ho::before { inset: -18px; } /* 45 px */
  .ft-ho:active { z-index: 5; }
  .ft-map { height: 36px; }
  .ft-map-lane[data-person="A"] { top: 7px; } .ft-map-lane[data-person="B"] { top: 21px; } .ft-map-co { top: 16px; }
  .ft-map::before { content: ''; position: absolute; inset: -8px 0; }
  .ft-hint-fine { display: none; } .ft-hint-touch { display: inline; }
}
/* Type floor on phones and touch screens. */
@media (any-pointer: coarse), (max-width: 600px) {
  .ft-co span, .ft-hint kbd, .ft-ho.is-cluster { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .ft-block, .ft-ho, .ft-cell, .ft-tick.is-end { transition: none; }
  .ft-ho.is-firing, .ft-ho.is-firing::after { animation: none; }
}
