/* Moved from app/views/training/show.html.erb in B2, scoped to .ctx-public. Rebuilt in its own phase. */
.ctx-public .tl-wrap { max-width: 720px; margin: 0 auto; padding: 0 var(--space-md) var(--space-xxl); }
.ctx-public .tl-style {
    text-align: center; font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--foreground-muted); margin: 8px 0 0;
  }
.ctx-public .tl-back {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--foreground-muted); text-decoration: none;
    font-size: 0.9rem; margin: var(--space-lg) 0 var(--space-md);
    min-height: 44px;
  }
.ctx-public .tl-back:hover { color: var(--foreground); }
.ctx-public .tl-session h1 {
    font-family: var(--font);
    font-size: 1.5rem; margin: 0;
  }
.ctx-public .tl-session .tl-tagline {
    color: var(--foreground-muted); margin: 2px 0 var(--space-md); font-size: 0.9rem;
  }
.ctx-public .tl-hud {
    display: flex; justify-content: space-between;
    margin-bottom: var(--space-md);
  }
.ctx-public .tl-hud span {
    display: block; font-size: 11px; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--foreground-muted); font-weight: 700;
  }
.ctx-public .tl-hud strong {
    font-family: var(--font);
    font-size: 1.75rem; font-variant-numeric: tabular-nums;
  }
.ctx-public .tl-canvas-wrap {
    position: relative;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    touch-action: none;
  }
.ctx-public .tl-canvas-wrap canvas { width: 100%; display: block; cursor: crosshair; }
.ctx-public .tl-fs-btn {
    position: absolute; top: 8px; right: 8px; z-index: 2;
    width: 36px; height: 36px; border-radius: 50%;
    border: none; cursor: pointer; padding: 0;
    background: var(--surface-1); color: var(--ink);
    font-size: 16px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
  }
.ctx-public .tl-fs-btn:hover { background: var(--surface-1); }
.ctx-public .tl-fs-btn[hidden] { display: none; }
.ctx-public .tl-canvas-wrap.tl-fullscreen {
    position: fixed; inset: 0; z-index: 999;
    border-radius: 0; border: none; background: var(--surface-1);
    display: flex; align-items: center; justify-content: center;
  }
.ctx-public .tl-canvas-wrap.tl-fullscreen .tl-fs-btn {
    top: max(10px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    background: var(--line);
  }
.ctx-public .tl-canvas-wrap.tl-fullscreen .tl-fs-btn:hover { background: var(--surface-2); }
.ctx-public .tl-noscroll,
.ctx-public .tl-noscroll body { overflow: hidden; }
.ctx-public .tl-prompt {
    text-align: center;
    color: var(--foreground-muted);
    margin: var(--space-md) 0;
    min-height: 1.4em;
  }
.ctx-public .tl-countdown {
    font-family: var(--font);
    font-size: 5rem; font-weight: 800; color: var(--primary);
    text-align: center; padding: 48px 0;
  }
.ctx-public .tl-go {
    text-align: center;
    font-family: var(--font);
    font-weight: 800; font-size: 0.8rem; letter-spacing: 0.08em;
    padding: 10px 12px; border-radius: 10px; margin-bottom: 12px;
    background: var(--surface-2); color: var(--ink);
  }
.ctx-public .tl-go.is-go {
    background: var(--surface-2); color: var(--win);
  }
.ctx-public .tl-legend {
    display: flex; gap: 16px; justify-content: center;
    font-size: 12px; color: var(--foreground-muted); margin-top: 10px;
  }
.ctx-public .tl-legend i {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    margin-right: 6px;
  }
.ctx-public .tl-result h2 {
    font-family: var(--font);
    font-size: 1.75rem; margin: 0 0 var(--space-md);
  }
.ctx-public .tl-stats {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    margin-bottom: var(--space-lg);
  }
.ctx-public .tl-stat {
    background: var(--secondary); border-radius: 12px; padding: 14px;
  }
.ctx-public .tl-stat span {
    display: block; font-size: 12px; color: var(--foreground-muted);
  }
.ctx-public .tl-stat strong {
    font-family: var(--font); font-size: 1.35rem;
  }
.ctx-public .tl-coach {
    color: var(--foreground-muted); line-height: 1.5; margin-bottom: var(--space-lg);
  }
.ctx-public .tl-btn {
    display: block; text-align: center; text-decoration: none;
    background: var(--primary); color: var(--on-ink); font-weight: 700;
    font-family: var(--font);
    border-radius: 10px; padding: 14px; margin-bottom: 8px;
    border: none; width: 100%; cursor: pointer; min-height: 48px; font-size: 1rem;
  }
.ctx-public .tl-btn--ghost {
    background: transparent; color: var(--foreground);
    border: 1px solid var(--border);
  }
.ctx-public .tl-chiprow {
    display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
    margin-top: 12px;
  }
.ctx-public .tl-chip {
    border: none; cursor: pointer;
    padding: 10px 16px; min-height: 40px; border-radius: 999px;
    background: var(--secondary); color: var(--foreground);
    font-family: var(--font);
    font-weight: 700; font-size: 13px;
  }
.ctx-public .tl-chip.is-active { background: var(--primary); color: var(--on-ink); }
.ctx-public .tl-canvas-wrap.tl-fullscreen .tl-watch-controls {
    position: absolute; left: 12px; right: 12px;
    bottom: max(10px, env(safe-area-inset-bottom));
  }
.ctx-public .tl-canvas-wrap.tl-fullscreen .tl-watch-controls .tl-chip {
    background: var(--surface-2); color: var(--ink);
  }
.ctx-public .tl-canvas-wrap.tl-fullscreen .tl-watch-controls .tl-chip.is-active {
    background: var(--primary);
  }
.ctx-public .tl-watch-controls.is-hidden { display: none; }
