/* Owner-approved layered timeline, using the supplied Astraliga roles. */
[id^="panel-timeline-"] { scroll-margin-top:96px; }
.tl-workspace {
  /* Owner-approved family-only palette extension: one unique color per family. */
  --astraliga-data-timeline-angles:#7047B5;
  --astraliga-data-timeline-houses:#50687E;
  --astraliga-data-timeline-hours:#AA7800;
  --astraliga-data-timeline-moon:#008A9D;
  --astraliga-data-timeline-planets:#236FC0;
  --astraliga-data-timeline-lots:#CE641D;
  --astraliga-data-timeline-reflections:#B33787;
  --astraliga-data-timeline-nodes:#008267;
  --astraliga-data-timeline-stars:#895426;
  --astraliga-data-timeline-midpoints:#71821B;
  --astraliga-data-timeline-other:#7B667F;
  --astraliga-data-timeline-football:#203B38;
  --tl-label-width:116px;
  --tl-family-label-width:104px;
  color:var(--astraliga-text); background:var(--astraliga-surface);
  font:400 14px/1.4 "Source Sans 3",Arial,sans-serif;
  border:1px solid var(--astraliga-border); border-radius:var(--ag-radius-panel);
  max-width:100%; min-width:0; overflow:hidden; padding:0; margin:0;
  font-variant-numeric:tabular-nums;
}
.tl-workspace * { box-sizing:border-box; }
.tl-workspace [hidden] { display:none!important; }
.tl-workspace button,.tl-workspace input { font:inherit; color:inherit; }
.tl-workspace button { min-height:36px; padding:4px 8px; background:var(--astraliga-surface); border:1px solid var(--astraliga-border); border-radius:var(--ag-radius-control); cursor:pointer; }
.tl-workspace button:hover { background:var(--astraliga-surface-subtle); }
.tl-workspace button[aria-pressed="true"] { background:var(--astraliga-brand-green); color:var(--astraliga-on-action); }
.tl-workspace button:disabled { color:var(--astraliga-text-disabled); cursor:default; background:var(--astraliga-surface-subtle); }
.tl-workspace button:focus-visible,.tl-workspace summary:focus-visible { outline:2px solid var(--astraliga-focus); outline-offset:3px; }
.tl-workspace img,.tl-workspace svg { display:inline-block; width:20px; height:20px; object-fit:contain; flex:none; vertical-align:middle; }
.tl-workspace .tl-header { padding:12px 16px; display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; border-bottom:1px solid var(--astraliga-border); }
.tl-workspace .tl-header h3 { margin:0; font:600 18px/24px Archivo,Arial,sans-serif; }
.tl-header>span,.tl-muted { font-size:12px; color:var(--astraliga-text-secondary); }
.tl-workspace .tl-goalnav { padding:12px 16px 8px; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.tl-workspace .tl-goalbtn { display:inline-flex; align-items:center; gap:6px; }
.tl-workspace .tl-goalbtn[aria-pressed="true"] { background:var(--astraliga-warning-bg); border-color:var(--astraliga-selection-outline); color:var(--astraliga-text); }
.tl-workspace .tl-controls { padding:0 16px 12px; display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap; }
.tl-window-controls { display:flex; flex-wrap:wrap; gap:4px; }
.tl-topbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:4px 12px; padding:4px 16px; }
.tl-topbar .tl-goalnav,.tl-topbar .tl-controls { padding:0; }
.tl-density-controls { display:flex; gap:4px; flex-wrap:wrap; }
.tl-workspace .tl-layer-drawer { padding:12px 16px; border-block:1px solid var(--astraliga-border); background:var(--astraliga-canvas); }
.tl-object-options { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:4px 16px; }
.tl-filter-band { margin-bottom:12px; padding:12px 16px; border-block:1px solid var(--astraliga-border); }
.tl-filter-heading,.tl-filter-heading>div { display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap; }
.tl-filter-heading>strong { font-size:14px; }
.tl-filter-heading .tl-layer-count { color:var(--astraliga-text-secondary); font-weight:400; }
.tl-filter-row { display:flex; align-items:flex-start; gap:12px; margin-top:8px; }
.tl-filter-label { flex:0 0 52px; padding-top:8px; font-size:12px; color:var(--astraliga-text-secondary); }
.tl-layer-options,.tl-aspect-options { display:flex; flex-wrap:wrap; gap:4px 8px; min-width:0; }
.tl-layer-options label { padding:4px; border:0; cursor:pointer; }
.tl-layer-options label:has(input:checked) { background:transparent; }
.tl-aspect-options button { min-width:40px; display:inline-flex; align-items:center; justify-content:center; }
.tl-workspace .tl-aspect-options button[aria-pressed="true"] { background:var(--astraliga-surface-subtle); color:var(--astraliga-text); border-color:var(--astraliga-action); }
.tl-aspect-options button[aria-pressed="true"] img { filter:none; }
.tl-filter-note { display:block; margin-top:8px; color:var(--astraliga-text-secondary); font-size:12px; }
.tl-object-groups { max-height:320px; overflow:auto; margin-top:8px; }
.tl-object-groups fieldset { min-width:0; margin:0 0 8px; padding:8px; border:1px solid var(--astraliga-border); border-radius:var(--ag-radius-control); }
.tl-object-groups legend { font-size:12px; font-weight:600; padding-inline:4px; }
.tl-layer-options label,.tl-object-options label { display:flex; align-items:center; gap:8px; min-height:40px; font-size:14px; overflow-wrap:anywhere; }
.tl-workspace input[type="checkbox"] { appearance:auto; width:16px; height:16px; flex:none; accent-color:var(--astraliga-action); margin:0; }
/* Lighter family selectors; the native input, focus and label hit area remain. */
.tl-workspace .tl-filter-band .tl-layer-options input[type="checkbox"] { appearance:none; display:inline-grid; place-content:center; width:14px; height:14px; border:1px solid var(--astraliga-border); border-radius:2px; background:var(--astraliga-surface); color:var(--astraliga-action); }
.tl-workspace .tl-filter-band .tl-layer-options input[type="checkbox"]:checked { border-color:var(--astraliga-action); }
.tl-workspace .tl-filter-band .tl-layer-options input[type="checkbox"]:checked::before { content:""; width:7px; height:4px; border-left:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:translateY(-1px) rotate(-45deg); }
.tl-workspace .tl-filter-band .tl-layer-options input[type="checkbox"]:focus-visible { outline:2px solid var(--astraliga-action); outline-offset:3px; }
@media(forced-colors:active) {
 .tl-workspace .tl-filter-band .tl-layer-options input[type="checkbox"] { appearance:auto; }
 .tl-workspace .tl-filter-band .tl-layer-options input[type="checkbox"]::before { content:none; }
}
.tl-layer-actions { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:8px; font-size:12px; color:var(--astraliga-text-secondary); }
.tl-layer-actions>div { display:flex; gap:4px; }
.tl-objects { margin-top:8px; border-top:1px solid var(--astraliga-border); }
.tl-objects summary { min-height:40px; padding-top:8px; cursor:pointer; }
.tl-object-options { margin-bottom:8px; }
.tl-workspace .tl-overview { margin:0 16px 12px; }
.tl-overview-label,.tl-overview-times { display:flex; justify-content:space-between; gap:8px; color:var(--astraliga-text-secondary); font-size:12px; }
.tl-overview-label { margin-bottom:4px; }
.tl-overview-times { margin-top:4px; }
.tl-overview-track { position:relative; height:48px; background:var(--astraliga-surface-subtle); border-radius:4px; isolation:isolate; }
.tl-workspace .tl-overview-jump { position:absolute; inset:0; width:100%; height:100%; border:0; padding:0; z-index:2; background:transparent; }
.tl-workspace .tl-overview-jump:hover { background:transparent; outline:1px solid var(--astraliga-border-control); }
.tl-mini-event { position:absolute; top:26px; height:8px; width:1px; background:var(--astraliga-data-body); pointer-events:none; }
.tl-mini-window { position:absolute; inset-block:0; background:var(--astraliga-warning-bg); outline:1px solid var(--astraliga-selection-outline); z-index:1; pointer-events:none; mix-blend-mode:multiply; }
.tl-workspace .tl-mini-goal { position:absolute; top:2px; transform:translateX(-50%); padding:4px; height:44px; min-width:44px; z-index:3; border-radius:var(--ag-radius-badge); display:flex; gap:4px; align-items:center; font-size:12px; }
.tl-workspace .tl-mini-goal span { display:none; }
.tl-rangebar { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:8px 16px; border-block:1px solid var(--astraliga-border); background:var(--astraliga-canvas); flex-wrap:wrap; }
.tl-rangebar>div { min-width:0; }
.tl-anchor-copy { font-size:12px; color:var(--astraliga-text-secondary); }
.tl-pan { display:flex; gap:4px; }
.tl-workspace .tl-chart { position:relative; margin:0 16px; isolation:isolate; }
.tl-axis { height:48px; margin-left:var(--tl-label-width); position:relative; z-index:3; background:var(--astraliga-surface); }
.tl-axis-label { position:absolute; top:16px; transform:translateX(-50%); font-size:12px; white-space:nowrap; color:var(--astraliga-text-secondary); }
.tl-axis-label.edge-start { transform:none; }
.tl-axis-label.edge-end { transform:translateX(-100%); }
.tl-grid-layer,.tl-anchor-layer { position:absolute; inset:48px 0 0 var(--tl-label-width); pointer-events:none; }
.tl-grid-layer { z-index:0; }
.tl-anchor-layer { z-index:2; }
.tl-grid-line { position:absolute; top:0; bottom:0; width:1px; background:var(--astraliga-border); }
.tl-anchor-line { position:absolute; top:0; bottom:0; width:2px; background:var(--astraliga-selection-outline); }
.tl-pointer-line { position:absolute; top:0; bottom:0; border-left:1px dashed var(--astraliga-border-control); }
.tl-workspace .tl-row { display:grid; grid-template-columns:var(--tl-label-width) minmax(0,1fr); border-top:1px solid var(--astraliga-border); position:relative; }
.tl-row.family-start { border-top:2px solid var(--astraliga-border-control); }
.tl-row-label { position:relative; z-index:3; display:flex; align-items:center; gap:8px; padding:8px 8px 8px 0; background:var(--astraliga-surface); font-size:12px; line-height:1.3; min-width:0; }
.tl-row-label>div { min-width:0; overflow-wrap:break-word; }
.tl-row.sport .tl-row-label { background:var(--astraliga-surface-subtle); }
.tl-row-label small { display:block; margin-top:4px; font-size:12px; color:var(--astraliga-text-secondary); }
.tl-row-label .tl-row-count { display:inline-block; margin:0 0 0 4px; padding:0 4px; border-radius:var(--ag-radius-badge); background:var(--astraliga-surface-subtle); }
.tl-family-key { width:3px; height:20px; background:var(--family-color); border-radius:1px; flex:none; }
.tl-track { position:relative; min-width:0; z-index:3; }
.tl-workspace .tl-event { position:absolute; min-height:32px; height:32px; padding:4px 6px; display:flex; align-items:center; justify-content:center; gap:4px; font-size:12px; background:var(--astraliga-surface); border-color:var(--astraliga-border-control); white-space:nowrap; z-index:2; }
.tl-event .timeline-exact { display:inline-flex; align-items:center; gap:4px; }
.tl-event .timeline-object { display:inline-flex; align-items:center; gap:0; min-width:0; }
.tl-workspace .tl-event img,.tl-workspace .tl-event svg { width:18px; height:18px; }
.tl-workspace .tl-event:hover,.tl-workspace .tl-event[aria-pressed="true"] { background:var(--astraliga-warning-bg); color:var(--astraliga-text); border-color:var(--astraliga-selection-outline); }
.tl-event::after { content:''; position:absolute; left:var(--pin); bottom:-5px; height:4px; width:1px; background:var(--family-color); }
.tl-workspace .tl-event.cluster { border-color:var(--family-color); font-size:14px; }
.tl-event.is-cancelled { text-decoration:line-through; border-style:dashed; }
.tl-empty-track { position:absolute; inset:0 8px; display:flex; align-items:center; font-size:12px; color:var(--astraliga-text-secondary); }
.tl-chart-footer { display:flex; justify-content:space-between; gap:8px; flex-wrap:wrap; padding:8px 16px; border-top:1px solid var(--astraliga-border); font-size:12px; color:var(--astraliga-text-secondary); }
.tl-workspace .tl-detail { position:fixed; inset:auto; margin:0; width:min(460px,calc(100vw - 24px)); max-height:calc(100dvh - 24px); overflow:auto; z-index:1000; border:1px solid var(--astraliga-border-control); border-radius:var(--ag-radius-panel); background:var(--astraliga-surface); color:var(--astraliga-text); padding:12px 16px; font:400 14px/1.4 "Source Sans 3",Arial,sans-serif; }
.tl-detail-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-bottom:8px; margin-bottom:8px; border-bottom:1px solid var(--astraliga-border); }
.tl-detail-toolbar>strong { font:600 14px/20px Archivo,Arial,sans-serif; }
.tl-detail::backdrop { background:transparent; }
.tl-detail>.tl-muted { display:block; margin-top:4px; }
.tl-detail-top { display:flex; gap:12px; align-items:center; justify-content:space-between; flex-wrap:wrap; }
.tl-detail time { font-size:12px; color:var(--astraliga-text-secondary); }
.tl-detail-meta { display:flex; gap:8px 16px; align-items:center; flex-wrap:wrap; margin-top:8px; font-size:12px; overflow-wrap:anywhere; }
.tl-cluster-list,.tl-record-list { display:flex; flex-direction:column; margin-top:8px; gap:4px; max-height:320px; overflow:auto; }
.tl-detail .tl-cluster-list { max-height:none; overflow:visible; }
.tl-cluster-list button,.tl-record-list button { display:flex; align-items:center; gap:8px; justify-content:space-between; text-align:left; flex-shrink:0; }
.tl-record-list button,.tl-detail .tl-cluster-list button { display:grid; grid-template-columns:76px minmax(0,1fr); justify-content:start; gap:12px; }
.tl-record-list time,.tl-detail .tl-cluster-list time { font-size:12px; font-variant-numeric:tabular-nums; white-space:normal; }
.tl-record-list button>span,.tl-detail .tl-cluster-list button>span { flex-wrap:wrap; min-width:0; overflow-wrap:anywhere; }
.tl-cluster-list button>span,.tl-record-list button>span { display:flex; align-items:center; gap:4px; }
.tl-workspace .tl-unmapped,.tl-workspace .tl-record { padding:0 16px 12px; border-top:1px solid var(--astraliga-border); font-size:12px; }
.tl-unmapped summary,.tl-record summary { padding-top:12px; min-height:40px; cursor:pointer; }
.tl-workspace .tl-data-state { padding:12px 16px; }
.tl-sr { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.tl-workspace[data-compact="true"] .tl-header { padding-block:4px; }
.tl-workspace[data-compact="true"] .tl-filter-band { display:grid; grid-template-columns:minmax(0,1fr); gap:4px; padding-block:8px; margin-bottom:4px; }
.tl-workspace[data-compact="true"] .tl-filter-heading { grid-column:1; grid-row:1; justify-content:flex-start; border-bottom:0; padding-bottom:0; }
.tl-workspace[data-compact="true"] .tl-filter-heading>strong { display:block; }
.tl-workspace[data-compact="true"] .tl-filter-row { margin:0; align-items:center; }
.tl-workspace[data-compact="true"] .tl-filter-row:has(.tl-layer-options) { grid-column:1; grid-row:2; }
.tl-workspace .tl-filter-band .tl-filter-aspects { flex:0 1 auto; justify-content:flex-start; gap:8px; }
.tl-workspace .tl-filter-band .tl-filter-actions { margin-left:auto; gap:4px; }
.tl-workspace .tl-filter-band button { min-height:40px; padding:4px 8px; font:400 14px/20px var(--ag-font-body); }
.tl-workspace .tl-filter-band [data-tl="filters"] { padding-inline:0; border-color:transparent; background:transparent; font-weight:600; }
.tl-workspace .tl-filter-band[data-filters-collapsed="true"] .tl-filter-heading>:not([data-tl="filters"]),
.tl-workspace .tl-filter-band[data-filters-collapsed="true"] .tl-filter-layers,
.tl-workspace .tl-filter-band[data-filters-collapsed="true"] .tl-layer-drawer,
.tl-workspace .tl-filter-band[data-filters-collapsed="true"] .tl-filter-note { display:none; }
.tl-workspace .tl-filter-band .tl-aspect-options { gap:4px; }
.tl-workspace .tl-filter-band .tl-aspect-options button[data-tl="aspect"] { width:32px; min-width:32px; height:32px; min-height:32px; padding:4px; font-size:11px; }
.tl-workspace .tl-filter-band .tl-aspect-options button[data-tl="aspect"] img,
.tl-workspace .tl-filter-band .tl-filter-aspects .tl-aspect-options button[data-tl="aspect"] svg.astro-symbol { width:12px; min-width:12px; height:12px; }
.tl-workspace .tl-filter-band .tl-layer-options { gap:0 4px; }
.tl-workspace .tl-filter-band .tl-layer-options label { gap:4px; padding:0; min-height:32px; font:400 14px/20px var(--ag-font-body); white-space:nowrap; }
.tl-workspace .tl-filter-band .tl-filter-bulk { display:flex; flex:none; align-items:center; gap:4px; flex-wrap:nowrap; }
.tl-workspace .tl-filter-band .tl-filter-bulk button { border-color:transparent; background:transparent; color:var(--astraliga-action); }
.tl-workspace .tl-filter-band .tl-filter-bulk button:hover { background:var(--astraliga-surface-subtle); }
.tl-workspace .tl-filter-band .tl-filter-layers .tl-layer-options { flex:1; }
.tl-workspace .tl-filter-label { padding-top:0; }
.tl-workspace .tl-layer-options>button,.tl-workspace .tl-aspect-options>button[data-tl^="aspects-"] { border-color:transparent; background:transparent; color:var(--astraliga-action); }
.tl-workspace .tl-layer-options>button:hover,.tl-workspace .tl-aspect-options>button[data-tl^="aspects-"]:hover { background:var(--astraliga-surface-subtle); }
.tl-filter-band .tl-family-key { height:12px; }
@media(pointer:coarse) {
 .tl-workspace .tl-filter-band button,
 .tl-workspace .tl-filter-band .tl-layer-options label { min-height:44px; }
 .tl-workspace .tl-filter-band .tl-aspect-options button[data-tl="aspect"] { width:44px; height:44px; min-height:44px; }
}
.tl-workspace[data-compact="true"] .tl-layer-drawer { grid-column:1/-1; }
.tl-workspace[data-compact="true"] .tl-filter-note { display:none; }
.tl-workspace[data-compact="true"] .tl-overview { margin-bottom:4px; }
.tl-workspace[data-compact="true"] .tl-overview-label { display:none; }
.tl-workspace[data-compact="true"] .tl-overview-times { margin-top:0; }
.tl-workspace[data-compact="true"] .tl-rangebar { padding-block:4px; }
.tl-workspace[data-compact="true"] .tl-axis { height:32px; }
.tl-workspace[data-compact="true"] .tl-axis-label { top:8px; }
.tl-workspace[data-compact="true"] .tl-grid-layer,.tl-workspace[data-compact="true"] .tl-anchor-layer { top:32px; }
.tl-workspace[data-compact="true"] .tl-row-label { padding-block:4px; }
.tl-workspace[data-compact="true"] .tl-chart-footer { padding-block:4px; }
@media(max-width:768px) {
  .tl-object-options { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .tl-workspace[data-compact="true"] .tl-filter-band { display:block; }
  .tl-workspace[data-compact="true"] .tl-filter-row { margin-top:8px; }
  .tl-topbar { padding-inline:12px; }
}
@media(max-width:560px) {
  .tl-workspace { --tl-label-width:88px; }
  .tl-workspace .tl-filter-band .tl-filter-heading { display:grid; grid-template-columns:auto minmax(0,1fr); gap:4px 8px; }
  .tl-workspace .tl-filter-band .tl-filter-heading>[data-tl="filters"] { grid-column:1; grid-row:1; }
  .tl-workspace .tl-filter-band .tl-filter-actions { grid-column:2; grid-row:1; justify-self:end; margin-left:0; }
  .tl-workspace .tl-filter-band .tl-filter-aspects { grid-column:1/-1; grid-row:2; }
  .tl-workspace .tl-filter-band .tl-filter-aspects,
  .tl-workspace .tl-filter-band .tl-filter-layers { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:0 4px; margin-top:0; }
  .tl-workspace .tl-filter-band .tl-filter-bulk { grid-column:2; grid-row:1; }
  .tl-workspace .tl-filter-band .tl-filter-label { grid-column:1; grid-row:1; align-self:center; }
  .tl-workspace .tl-filter-band .tl-aspect-options,
  .tl-workspace .tl-filter-band .tl-layer-options { grid-column:1/-1; grid-row:2; }
  .tl-workspace .tl-filter-band .tl-filter-aspects .tl-aspect-options { grid-column:1; grid-row:1; }
  .tl-workspace .tl-filter-band .tl-filter-layers .tl-filter-bulk { justify-self:end; }
  .tl-workspace .tl-chart,.tl-workspace .tl-overview { margin-inline:12px; }
  .tl-workspace .tl-header,.tl-workspace .tl-goalnav,.tl-workspace .tl-controls,.tl-workspace .tl-layer-drawer,.tl-workspace .tl-rangebar,.tl-workspace .tl-detail,.tl-workspace .tl-chart-footer,.tl-workspace .tl-record,.tl-workspace .tl-unmapped { padding-inline:12px; }
  .tl-workspace .tl-window-controls button { font-size:12px; padding-inline:6px; }
  .tl-layer-actions { flex-wrap:wrap; }
  .tl-filter-band { padding-inline:12px; }
  .tl-filter-row { flex-direction:column; gap:4px; }
  .tl-workspace[data-compact="true"] .tl-filter-row { align-items:stretch; }
  .tl-workspace .tl-layer-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px 8px; }
  .tl-workspace .tl-layer-options label { min-width:0; }
  .tl-filter-label { flex:auto; padding-top:0; }
  .tl-row-label { gap:4px; padding-right:4px; }
  .tl-cluster-list button,.tl-record-list button { flex-wrap:wrap; }
}
@media(pointer:coarse) {
  .tl-workspace button { min-height:44px; }
  .tl-layer-options label,.tl-object-options label { min-height:44px; }
  .tl-workspace .tl-event { height:44px; }
}

/* Full-match minute matrix: shared clock, density, family rows and inspection. */
.tl-workspace { font:400 14px/20px var(--ag-font-body); }
.tl-workspace .tl-header h3 { font-family:var(--ag-font-heading); }
.tl-workspace .tl-topbar { padding-block:8px; }
.tl-workspace[data-compact="true"] .tl-overview { margin:12px 16px 16px; }
.tl-workspace[data-compact="true"] .tl-overview-label { display:flex; margin:0 0 8px; align-items:baseline; flex-wrap:wrap; }
.tl-overview-label strong { color:var(--astraliga-text); font:600 16px/24px var(--ag-font-body); }
.tl-density-frame { border-block:1px solid var(--astraliga-border); padding:8px 0; }
.tl-density-unit { font:400 12px/18px var(--ag-font-body); color:var(--astraliga-text-secondary); }
.tl-workspace .tl-overview-track { height:160px; background:var(--astraliga-surface); border-radius:0; }
.tl-workspace svg.tl-density-svg { display:block; width:100%; height:160px; overflow:visible; }
.tl-density-gridline { stroke:var(--astraliga-border); stroke-width:1; }
.tl-density-area { fill:var(--astraliga-data-body); opacity:.22; }
.tl-density-line { fill:none; stroke:var(--astraliga-data-body); stroke-width:2; stroke-linejoin:round; }
.tl-density-value { fill:var(--astraliga-text-secondary); font:400 12px/18px var(--ag-font-body); }
.tl-inspection-line { stroke:var(--astraliga-selection-outline); stroke-width:1; stroke-dasharray:4 4; }
.tl-density-goal { stroke:var(--astraliga-selection-outline); stroke-width:2; }
.tl-workspace .tl-overview-jump:hover { outline:none; background:transparent; }
.tl-workspace .tl-overview-jump:focus-visible { outline:2px solid var(--astraliga-focus); outline-offset:0; }
.tl-overview-times { padding-inline:24px; }
.tl-peaks { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:12px; }
.tl-peaks>span { color:var(--astraliga-text-secondary); font-size:12px; }
.tl-peaks button { display:flex; align-items:center; gap:8px; min-height:40px; }
.tl-peaks strong { border-left:1px solid var(--astraliga-border); padding-left:8px; font-weight:600; }
.tl-family-summary { display:flex; align-items:center; gap:8px 16px; flex-wrap:wrap; margin-top:12px; font-size:12px; color:var(--astraliga-text-secondary); }
.tl-family-summary>span { display:flex; align-items:center; gap:4px; }
.tl-family-summary b { color:var(--astraliga-text); font-weight:600; }
.tl-family-key { width:4px; border-radius:0; }
.tl-family-summary .tl-family-key { height:12px; }
.tl-minute-section { border-top:1px solid var(--astraliga-border); }
.tl-minute-wrap { width:100%; min-width:0; }
.tl-minute-grid { border-collapse:collapse; table-layout:fixed; width:100%; font:400 14px/20px var(--ag-font-body); }
.tl-minute-grid th,.tl-minute-grid td { padding:4px; border-bottom:1px solid var(--astraliga-border); border-right:1px solid var(--astraliga-border); vertical-align:middle; text-align:center; overflow-wrap:anywhere; }
.tl-minute-grid th:first-child { width:116px; text-align:left; padding:8px; font-size:12px; font-weight:600; }
.tl-minute-grid th:last-child,.tl-minute-grid td:last-child { border-right:0; }
.tl-minute-grid thead { background:var(--astraliga-surface-subtle); }
.tl-minute-grid th button { border:0; padding:4px; background:transparent; font-size:12px; width:100%; }
.tl-table-count td { font:600 14px/20px var(--ag-font-body); padding:4px; }
.tl-minute-grid tbody td { background:color-mix(in srgb,var(--astraliga-data-body) var(--cell-density),var(--astraliga-surface)); }
.tl-table-family { display:flex; gap:8px; align-items:center; }
.tl-cell { display:flex; flex-direction:column; gap:4px; min-height:40px; justify-content:center; }
.tl-workspace .tl-cell-event,.tl-workspace .tl-cell-more { border:0; background:transparent; min-height:32px; padding:4px; width:100%; display:flex; justify-content:center; align-items:center; gap:4px; flex-wrap:wrap; font-size:12px; line-height:18px; }
.tl-cell-event .timeline-exact,.tl-cell-event .timeline-object { display:inline-flex; align-items:center; gap:4px; flex-wrap:wrap; justify-content:center; }
.tl-cell-event img,.tl-cell-event svg { width:16px; height:16px; }
.tl-workspace .tl-cell-event:hover,.tl-workspace .tl-cell-event[aria-pressed="true"] { background:var(--astraliga-warning-bg); color:var(--astraliga-text); }
.tl-workspace .tl-cell-more { color:var(--astraliga-link); text-decoration:underline; font-weight:600; }
.tl-cell-empty { font-size:12px; line-height:18px; color:var(--astraliga-text-secondary); }
.tl-table-footer { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px; padding:8px 12px; font-size:12px; color:var(--astraliga-text-secondary); }
.tl-table-footer label { display:flex; gap:8px; align-items:center; min-height:40px; }
.tl-workspace .tl-detail { font-family:var(--ag-font-body); }
@media(max-width:560px) {
 .tl-workspace[data-compact="true"] .tl-overview { margin-inline:12px; }
 .tl-minute-grid th:first-child { width:84px; padding:4px; }
 .tl-minute-grid th,.tl-minute-grid td { padding:4px 2px; }
 .tl-table-family { gap:4px; }
 .tl-workspace .tl-cell-event { padding-inline:0; }
 .tl-workspace .tl-rangebar { gap:4px; }
 .tl-family-summary { gap:8px 12px; }
 .tl-peaks { gap:4px; }
 .tl-peaks>span { flex-basis:100%; }
}
@media(pointer:coarse) {
 .tl-workspace .tl-cell-event,.tl-workspace .tl-cell-more,.tl-workspace .tl-peaks button { min-height:44px; }
}

.tl-workspace .tl-matrix { display:grid; grid-template-columns:var(--tl-family-label-width) minmax(0,1fr); border:1px solid var(--astraliga-border); border-radius:var(--ag-radius-control); overflow:hidden; }
.tl-matrix-labels { border-right:1px solid var(--astraliga-border); background:var(--astraliga-surface); }
.tl-matrix-labels>div { height:40px; display:flex; align-items:center; gap:var(--ag-space-1); padding:0 var(--ag-space-1); border-bottom:1px solid var(--astraliga-border); font:400 12px/18px var(--ag-font-body); box-sizing:border-box; }
.tl-matrix-labels>div:last-child { border-bottom:0; }
.tl-matrix-labels>div>span { flex:1; min-width:0; overflow-wrap:break-word; }
.tl-matrix-labels>div>.tl-family-label { white-space:nowrap; overflow-wrap:normal; }
.tl-matrix-labels>div>b { flex-shrink:0; font-weight:600; font-variant-numeric:tabular-nums; }
.tl-matrix-labels>div.is-scanning { background:var(--astraliga-warning-bg); }
.tl-workspace .tl-matrix .tl-overview-track { margin:0; min-width:0; background:var(--astraliga-canvas); }
.tl-workspace .tl-matrix .tl-density-svg { width:100%; overflow:hidden; }
.tl-matrix-row { fill:var(--astraliga-surface); stroke:var(--astraliga-border); stroke-width:1; }
.tl-heat-cell { fill:var(--family-color); }
.tl-sport-mark { pointer-events:none; }
.tl-sport-mark rect { fill:var(--astraliga-surface); stroke:var(--astraliga-data-sport); stroke-width:1; }
.tl-sport-mark text { fill:var(--astraliga-text); font:600 12px/18px var(--ag-font-body); }
.tl-workspace .tl-sport-icon--goal { color:var(--astraliga-brand-green-control); }
.tl-workspace .tl-sport-icon--yellow-card { color:var(--astraliga-brand-amber); }
.tl-workspace .tl-sport-icon--red-card { color:var(--astraliga-error-fg); }
/* Owner-approved penalty-only black, not a replacement for the brand ink. */
.tl-workspace .tl-sport-icon--penalty { color:#000000; }
.tl-sport-icon--penalty text { fill:currentColor; font:700 22px var(--ag-font-body); }
.tl-penalty-cancelled { stroke:currentColor; stroke-width:2; fill:none; }
.tl-workspace .tl-sport-icon>circle,.tl-workspace .tl-sport-icon>rect { fill:currentColor; stroke:none; }
/* Goal fill is bound directly to the logo token, never inherited black ink. */
.tl-workspace .tl-sport-icon--goal>path:nth-child(2) { fill:currentColor; }
.tl-inspection-line { stroke:var(--astraliga-text); stroke-width:1; stroke-dasharray:none; pointer-events:none; }
.tl-scan-column { fill:var(--astraliga-selection-outline); opacity:.15; pointer-events:none; }
.tl-workspace .tl-overview-jump { border-radius:0; cursor:crosshair; touch-action:pan-y; }
.tl-workspace .tl-overview-times { padding:0 0 0 var(--tl-family-label-width); font-variant-numeric:tabular-nums; }
.tl-workspace .tl-overview-label { justify-content:flex-start; gap:8px 16px; }
.tl-density-total { font-size:12px; color:var(--astraliga-text-secondary); }
.tl-density-legend { display:inline-flex; align-items:center; gap:4px; margin-left:auto; color:var(--astraliga-text-secondary); font:400 12px/18px var(--ag-font-body); }
.tl-density-legend i { width:12px; height:12px; background:var(--astraliga-data-body); }
.tl-density-legend i:nth-of-type(1) { opacity:.2; }
.tl-density-legend i:nth-of-type(2) { opacity:.4; }
.tl-density-legend i:nth-of-type(3) { opacity:.7; }
.tl-scan-strip { display:flex; align-items:center; gap:12px; padding:8px 12px; min-height:80px; margin-bottom:8px; border:1px solid var(--astraliga-border); border-radius:var(--ag-radius-control); background:var(--astraliga-surface-subtle); }
.tl-scan-copy { flex:1; min-width:0; }
.tl-scan-heading { display:block; font:600 14px/20px var(--ag-font-body); font-variant-numeric:tabular-nums; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.tl-scan-preview { display:flex; align-items:center; gap:12px; min-height:24px; overflow:hidden; white-space:nowrap; font:400 14px/20px var(--ag-font-body); }
.tl-scan-preview>span { display:inline-flex; align-items:center; gap:4px; flex-shrink:0; }
.tl-scan-preview img,.tl-scan-preview svg { width:20px; height:20px; }
.tl-scan-controls { display:flex; gap:4px; flex:none; }
.tl-workspace .tl-scan-controls button { font-size:12px; min-height:44px; }
.tl-workspace .tl-table-footer { padding-inline:0; }
.tl-minute-lane { position:absolute; left:0; right:0; pointer-events:none; }
.tl-workspace .tl-minute-tile { position:absolute; z-index:3; pointer-events:auto; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:0; width:max-content; height:40px; min-height:40px; padding:0 4px; border:0; background:color-mix(in srgb,var(--family-color,var(--astraliga-data-body)) var(--density,8%),var(--astraliga-surface)); white-space:nowrap; }
.tl-workspace .tl-minute-tile:hover,.tl-workspace .tl-minute-tile:focus-visible { background:var(--astraliga-warning-bg); }
.tl-minute-tile time { font:400 13px/18px var(--ag-font-body); color:var(--astraliga-text-secondary); }
.tl-minute-expression { display:inline-flex; align-items:center; gap:2px; min-width:0; }
.tl-minute-expression .timeline-exact { display:inline-flex; align-items:center; gap:2px; }
.tl-minute-expression .timeline-object { display:inline-flex; align-items:center; }
.tl-minute-tile small { font:600 12px/16px var(--ag-font-body); color:var(--family-color); }
.tl-minute-measure { position:absolute; visibility:hidden; pointer-events:none; width:max-content; }
.tl-minute-measure .tl-minute-tile { position:relative; }
.tl-minute-density { position:absolute; inset:0 0 auto; pointer-events:none; }
.tl-minute-density .tl-family-stack { position:absolute; top:0; height:100%; transform:translateX(-50%); width:var(--dot); }
.tl-family-stack>i { position:absolute; left:0; width:var(--dot); height:var(--dot); border-radius:50%; background:var(--family-color); }
.tl-minute-scan { position:absolute; inset-block:0; background:var(--astraliga-selection-outline); opacity:.14; pointer-events:none; z-index:1; }
.tl-workspace .tl-matrix-labels>div { border:0; }
.tl-workspace .tl-matrix { border:0; }
.tl-workspace .tl-scan-preview { flex-wrap:wrap; white-space:normal; overflow:visible; height:auto; }
.tl-workspace .tl-minute-measure .tl-minute-tile { height:24px; min-height:24px; padding:0; }
.tl-workspace .tl-fixed-cell { height:24px; min-height:24px; padding:0; border-radius:0; background:transparent; color:var(--astraliga-text); }
.tl-workspace .tl-fixed-cell::before { content:none; }
.tl-workspace .tl-fixed-cell:hover,.tl-workspace .tl-fixed-cell:focus-visible { background:var(--astraliga-warning-bg); z-index:4; }
.tl-workspace .tl-fixed-cell img,.tl-workspace .tl-fixed-cell svg { width:16px; min-width:16px; height:16px; flex:none; }
.tl-workspace .tl-fixed-cell .tl-sport-icon { width:20px; min-width:20px; height:20px; }
.tl-workspace .tl-fixed-cell .tl-minute-expression { position:relative; font:400 14px/20px var(--ag-font-body); max-width:100%; flex-wrap:wrap; }
.tl-workspace .tl-fixed-cell .timeline-exact { max-width:100%; flex-wrap:wrap; }
.tl-workspace .tl-fixed-cell .timeline-object { flex:none; max-width:100%; white-space:normal; overflow-wrap:anywhere; }
.tl-workspace .tl-sport-cell { height:24px; min-height:24px; overflow:hidden; }
.tl-workspace .tl-sport-cell .tl-minute-expression { font:400 12px/16px var(--ag-font-body); gap:var(--ag-space-1); }
.tl-workspace .tl-sports-capacity { pointer-events:auto; min-height:32px; font:400 12px/16px var(--ag-font-body); }
.tl-compact-name { max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tl-house-transition { display:inline-flex; align-items:center; max-width:100%; overflow:hidden; }
.tl-house-transition .timeline-object { display:inline-flex; align-items:center; min-width:0; overflow:hidden; }
.tl-house-transition .tl-transition-arrow { flex:none; font:400 16px/20px var(--ag-font-body); }
.tl-workspace .tl-minute-lane { border-bottom:1px solid var(--astraliga-border); }
.tl-workspace .tl-matrix-labels>div { border-bottom:1px solid var(--astraliga-border); }
.tl-workspace .tl-matrix .tl-overview-track { background:var(--astraliga-surface); }
.tl-workspace .tl-overview-times { display:block; }
.tl-clock-scale { height:24px; position:relative; font:400 12px/24px var(--ag-font-body); }
.tl-clock-scale>span { position:absolute; top:0; white-space:nowrap; }
.tl-workspace .tl-scan-preview { gap:var(--ag-space-1); }
.tl-workspace .tl-scan-preview img,.tl-workspace .tl-scan-preview svg { width:16px; height:16px; }
.tl-workspace .tl-scan-preview .aspect-object-glyph { font-size:16px; line-height:20px; }
.tl-workspace .tl-scan-preview>.tl-scan-item { display:inline-flex; flex-direction:column; align-items:flex-start; gap:0; max-width:100%; padding:var(--ag-space-1) var(--ag-space-2); border:1px solid var(--astraliga-border); border-inline-start:3px solid var(--family-color); border-radius:var(--ag-radius-control); background:color-mix(in srgb,var(--family-color) 8%,var(--astraliga-surface)); }
.tl-scan-item-family { font:600 12px/16px var(--ag-font-body); color:var(--astraliga-text-secondary); }
.tl-scan-item-expression { display:inline-flex; align-items:center; gap:var(--ag-space-1); flex-wrap:wrap; overflow-wrap:anywhere; color:var(--astraliga-text); font:400 14px/20px var(--ag-font-body); }
.tl-workspace[data-overview="true"]>.tl-header,
.tl-workspace[data-overview="true"]>.tl-topbar,
.tl-workspace[data-overview="true"]>.tl-filter-band,
.tl-workspace[data-overview="true"]>.tl-chart-footer,
.tl-workspace[data-overview="true"]>.tl-record,
.tl-workspace[data-overview="true"] .tl-table-footer { display:none; }
.tl-workspace .tl-open-timeline { font:600 14px/20px var(--ag-font-body); margin-left:auto; }
.tl-grouping { display:inline-flex; align-items:center; gap:var(--ag-space-2); font:400 14px/20px var(--ag-font-body); }
.tl-period-toolbar { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:var(--ag-space-2); padding:0; }
.tl-workspace .tl-period-toolbar [data-tl-playback] { flex:none; padding:0; min-width:0; }
.tl-workspace .tl-period-toolbar .tl-scan-controls { align-items:center; }
.tl-workspace .tl-period-toolbar [data-tl="scan-step"] { width:var(--ag-size-target); min-height:var(--ag-size-target); display:inline-flex; align-items:center; justify-content:center; }
.tl-workspace .tl-period-toolbar [data-tl="playback-toggle"],.tl-workspace .tl-period-toolbar [data-tl="return-live"] { min-height:var(--ag-size-target); }
.tl-workspace .tl-grouping select { width:auto; min-height:var(--ag-size-control); padding:var(--ag-space-1) var(--ag-space-2); border:1px solid var(--astraliga-border); border-radius:var(--ag-radius-control); background:var(--astraliga-surface); color:var(--astraliga-text); font:inherit; }
.tl-workspace .tl-scan-strip { display:grid; grid-template-columns:minmax(0,1fr); align-items:start; align-content:start; gap:var(--ag-space-1); min-height:0; padding:var(--ag-space-2); margin-bottom:0; }
.tl-scan-measure { position:absolute; left:0; top:0; visibility:hidden; pointer-events:none; contain:layout style; }
.tl-scan-header { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:var(--ag-space-1) var(--ag-space-3); }
.tl-workspace .tl-scan-header .tl-overview-label { display:flex; flex:1; align-items:baseline; flex-wrap:wrap; gap:0 var(--ag-space-2); margin:0; }
.tl-scan-header .tl-density-legend { flex-basis:100%; margin:0; }
.tl-scan-header .tl-period-toolbar { margin-left:auto; }
.tl-workspace .tl-scan-copy { display:grid; align-content:start; gap:var(--ag-space-1); }
.tl-workspace .tl-scan-heading { grid-column:1; grid-row:1; align-self:center; height:auto; min-height:20px; white-space:normal; overflow:visible; text-overflow:clip; }
.tl-workspace .tl-scan-preview { grid-column:1/-1; grid-row:2; height:auto; max-height:none; min-height:0; overflow:visible; }

/* A single hierarchy for prepared relationship expressions on every surface.
   Text notations use real type, not tiny letters embedded in a 24px SVG. */
.tl-axis-pair { display:inline-flex; align-items:center; gap:4px; white-space:nowrap; font:400 16px/20px var(--ag-font-body); }
.tl-axis-signs { display:inline-flex; align-items:center; gap:2px; }
.tl-workspace .tl-axis-signs img,.tl-workspace .tl-axis-signs svg { width:16px; min-width:16px; height:16px; }
.tl-axis-arrow { font-size:12px; }
.tl-axis-detail>details { margin-top:8px; }
.tl-axis-detail time { display:block; font:400 12px/18px var(--ag-font-body); }
.tl-workspace .timeline-object,
.tl-workspace .timeline-object > small,
.tl-workspace .timeline-object > .aspect-object-abbreviation,
.tl-workspace .timeline-object > .aspect-object-glyph {
  font:400 16px/20px var(--ag-font-body);
}
.tl-workspace .timeline-object { vertical-align:middle; gap:2px; }
.tl-workspace .timeline-object ~ strong,
.tl-workspace .timeline-object + span:not(.timeline-exact__aspect) {
  font-size:16px; line-height:20px;
}
.tl-workspace .timeline-object + span:not(.timeline-exact__aspect) svg {
  width:16px; min-width:16px; height:16px;
}
.tl-workspace .timeline-object > img,
.tl-workspace .timeline-object > svg,
.tl-workspace .timeline-object > .aspect-object-glyph {
  width:16px; min-width:16px; height:16px; flex:none;
}
.tl-workspace .timeline-exact { display:inline-flex; align-items:center; gap:2px; }
.tl-workspace .timeline-exact__aspect {
  display:inline-flex; align-items:center; justify-content:center;
  font:400 12px/16px var(--ag-font-body); flex:none;
}
.tl-workspace .timeline-exact__aspect img,
.tl-workspace .timeline-exact__aspect svg,
.tl-workspace .tl-aspect-options img,
.tl-workspace .tl-aspect-options svg {
  width:12px; min-width:12px; height:12px; flex:none;
}
@media(max-width:768px) {
 .tl-scan-strip { flex-direction:column; align-items:stretch; gap:4px; }
 .tl-scan-controls { justify-content:flex-end; }
 .tl-scan-preview { height:24px; }
}
@media(max-width:560px) {
 .tl-workspace { --tl-family-label-width:88px; }
 .tl-density-legend { margin-left:0; }
 .tl-scan-strip { padding:8px; }
 .tl-workspace .tl-scan-controls button { padding-inline:8px; }
 .tl-scan-heading { white-space:normal; height:40px; }
 .tl-workspace .tl-scan-strip { grid-template-columns:minmax(0,1fr); }
 .tl-workspace .tl-scan-preview { grid-row:2; }
}
