/* timeline: the app's canvas Timeline (TimelinePane.tsx/.css) in its window; pen ink is drawn by timeline.js from the laid-out cards */
.tl-win{height:770px}
.tl-body{grid-template-columns:56px minmax(0,1fr) 520px}
.tl-rail{align-items:center;padding:8px 0 10px}
.tl-rail .wk-side-top{flex-direction:column;align-items:center;padding-bottom:10px}
.tl-rail .wk-bot{justify-content:center;padding:6px 0}
.tl-chat .wk-msgs{justify-content:center;gap:26px}
.tl-chat .wk-msg b{font-weight:600}
.tl-pane .wk-tabs{align-items:center;padding:8px 10px}
.tl-pane .wk-tab{height:32px;white-space:nowrap}
.tl-pane .wk-tabs .sp{flex:1}
.tl-search{display:flex;align-items:center;gap:8px;height:32px;margin:8px 8px 0;padding:0 10px;border-radius:8px;background:var(--raised);box-shadow:0 1px 3px rgb(0 0 0 / .25);font-size:13px;color:var(--ink-2)}
.tl-search svg{width:14px;height:14px}
.tl-canvas{position:relative;flex:1;min-height:0;margin-top:8px;overflow:clip;background-image:radial-gradient(circle,color-mix(in srgb,var(--ink-2) 22%,transparent) 1px,transparent 1.3px);background-size:20px 20px}
.tl-sheet{position:relative;width:max-content;max-width:100%;margin:0 auto;padding:26px 24px 28px}
.tl-ink{position:absolute;top:0;left:0;z-index:2;overflow:visible;pointer-events:none}
.tl-ink path{fill:none;stroke-linecap:round;stroke-linejoin:round}
.tl-end{position:absolute;right:12px;z-index:3;font-size:11px;color:var(--ink-3);pointer-events:none}
.tl-end[data-end="oldest"]{top:10px}
.tl-end[data-end="newest"]{bottom:10px}
.tl-day{margin:0 0 12px;font-size:13px;font-weight:600;color:var(--ink-2)}
.tl-day b{color:var(--ink)}
.tl-pick{display:flex;align-items:flex-start;gap:34px;margin-bottom:44px}
.tl-pick:last-child{margin-bottom:0}
.tl-left{display:flex;flex-direction:column;align-items:center}
.tl-label{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:2px;padding:7px 14px;border:1px solid var(--line);border-radius:10px;background:var(--panel);font-size:13px;font-weight:600;white-space:nowrap}
.tl-label time{font-size:11px;font-weight:400;color:var(--ink-2)}
.tl-chips{position:absolute;top:50%;left:calc(100% + 10px);translate:0 -50%;font-weight:400}
.tl-replaced{display:flex;align-items:center;gap:6px;padding:3px 8px;border-radius:999px;background:var(--raised);font-size:11px;color:var(--ink-2);white-space:nowrap}
.tl-replaced svg{width:13px;height:13px}
.tl-replaced .chev{width:14px;height:14px}
.tl-replaced s{text-decoration-color:var(--bad)}
.tl-options{display:flex;align-items:flex-start;gap:30px;margin-top:52px}
.tl-option{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:5px;width:78px}
.tl-option[data-won]{width:104px;gap:20px}
.tl-pic{display:flex;flex-direction:column;justify-content:center;width:100%;min-height:56px;padding:10px 12px;border-radius:6px;background:var(--raised);font-size:12px;font-weight:600;line-height:1.35;text-align:center}
.tl-option[data-out] .tl-pic{font-weight:500;color:var(--ink-2)}
.tl-option s{text-decoration:none}
.tl-cap{font-size:11px;line-height:1.3;color:var(--ink-2);white-space:nowrap}
.tl-option[data-won] .tl-cap{font-size:12px;font-weight:600;color:var(--ink)}
.tl-shot{display:block;height:104px;padding:8px 6px;overflow:hidden;background:#f3f4f6}
.tl-option[data-won] .tl-shot{height:168px;padding:10px 8px}
.tl-option[data-out] .tl-shot{opacity:.42;filter:grayscale(.7)}
.tl-shot i{display:block;height:3px;margin-bottom:6px;border-radius:1px;background:linear-gradient(90deg,#bcc1ca 0 14%,transparent 14% 20%,#d2d6dd 20% 38%,transparent 38% 44%,#d2d6dd 44% 60%,transparent 60% 66%,#d2d6dd 66% 82%,transparent 82% 88%,#d2d6dd 88%)}
.tl-shot i:first-child{width:34%;height:4px;margin-bottom:10px;background:#3a3f4a}
.tl-shot.rows b{display:block;margin-bottom:8px;padding:7px 8px;border-radius:4px;background:#fff;box-shadow:0 0 0 1px #e3e5ea}
.tl-shot.rows u{display:block;width:42%;height:3px;border-radius:1px;background:#3a3f4a}
.tl-shot.rows u + u{width:78%;margin-top:5px;background:#c3c8d0}
.tl-notes{position:relative;z-index:1;width:210px;margin-top:106px}
.tl-note{padding:9px 11px;border-radius:10px;background:var(--panel);box-shadow:0 1px 2px rgb(0 0 0 / .15)}
.tl-said{padding:1px 0 1px 10px;border-left:2px solid var(--line)}
.tl-said q{display:block;font-size:13px;line-height:1.5;color:var(--ink);quotes:"\201C" "\201D"}
.tl-said span{display:block;margin-top:2px;font-size:11px;color:var(--ink-2)}
@media (prefers-reduced-motion:no-preference){
  .js .tl:not(.in) .tl-ink path{opacity:0}
  .js .tl.in:not(.done) .tl-ink path{animation:tl-fade 400ms var(--ease-out) var(--d) backwards}
  .js .tl.in:not(.done) .tl-ink path[pathLength]{stroke-dasharray:1;animation-name:tl-draw;animation-duration:650ms}
}
@keyframes tl-draw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@keyframes tl-fade{from{opacity:0}}
@media (max-width:1199px){
  .tl-rail{display:none}
  .tl-body{grid-template-columns:minmax(0,1fr) 520px}
}
@media (max-width:899px){
  .tl-win{height:auto}
  .tl-chat{display:none}
  .tl-body{grid-template-columns:minmax(0,1fr)}
  .tl-pane{border-left:0}
}
@media (max-width:639px){
  .tl-pane .wk-tabs{padding:8px 6px}
  .tl-pane .wk-tab{padding:0 8px}
  .tl-pane .wk-tabs .wk-ib{display:none}
  .tl-sheet{padding:26px 16px 28px}
  .tl-pick{flex-direction:column;align-items:center;gap:26px}
  .tl-options{gap:18px}
  .tl-option{width:72px}
  .tl-option[data-won]{width:96px}
  .tl-shot{height:96px}
  .tl-option[data-won] .tl-shot{height:156px}
  .tl-chips{position:static;translate:none;margin-top:4px}
  .tl-notes{width:100%;margin-top:0}
}
