.timeline-overlay{
  --tl-stage-height: clamp(460px,60vh,820px);
  --tl-bg-top: rgba(7,10,16,.985);
  --tl-bg-bottom: rgba(4,7,12,.99);
  --tl-panel: rgba(12,18,28,.92);
  --tl-panel-soft: rgba(17,24,37,.82);
  --tl-panel-strong: rgba(9,14,22,.96);
  --tl-border: rgba(255,255,255,.1);
  --tl-text: #eef4ff;
  --tl-muted: #91a5c8;
  --tl-subtle: #6f83a7;
  --tl-accent: #d8b56c;
  --tl-accent-strong: #f5ddb0;
  position:absolute;
  inset:0;
  z-index:120;
  display:grid;
  grid-template-rows:auto 1fr;
  background:
    radial-gradient(circle at top left,rgba(216,181,108,.12),transparent 24%),
    radial-gradient(circle at bottom right,rgba(99,144,255,.08),transparent 28%),
    linear-gradient(180deg,var(--tl-bg-top),var(--tl-bg-bottom));
  border:0;
  border-radius:0;
  box-shadow:none;
  overflow:hidden;
}

.timeline-overlay .tl-stage {
  position: relative;
}

.timeline-overlay .tl-data-state {
  position: absolute;
  z-index: 8;
  inset: 18% 12%;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 8px;
  padding: clamp(20px, 4vw, 44px);
  border: 1px solid var(--bk-line, rgba(206, 224, 211, .14));
  border-radius: var(--bk-radius-lg, 18px);
  color: var(--bk-text-soft, #c6cec5);
  background: color-mix(in srgb, var(--bk-surface, #101817) 94%, transparent);
  box-shadow: var(--bk-shadow-panel, 0 24px 80px rgba(0, 0, 0, .28));
}

.timeline-overlay .tl-data-state strong {
  color: var(--bk-text, #f1efe6);
  font-size: var(--bk-text-lg, 1.08rem);
}

.timeline-overlay .tl-data-state p {
  max-width: 42ch;
  margin: 0;
  color: var(--bk-muted, #87968d);
  line-height: 1.5;
}

.timeline-overlay .tl-data-state button {
  min-height: 40px;
  margin-top: 8px;
  padding: 0 16px;
  border: 1px solid var(--bk-line-strong, rgba(210, 177, 104, .42));
  border-radius: var(--bk-radius-md, 12px);
  color: var(--bk-text, #f1efe6);
  background: color-mix(in srgb, var(--bk-accent, #d5b36c) 14%, transparent);
  cursor: pointer;
}

.timeline-overlay .tl-data-state button:focus-visible {
  outline: 2px solid var(--bk-focus, #7bd8c4);
  outline-offset: 3px;
}

.timeline-overlay .tl-data-state i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bk-accent, #d5b36c);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--bk-accent, #d5b36c) 14%, transparent);
  animation: tlDataPulse 1.35s ease-in-out infinite;
}

.timeline-overlay .tl-data-state-error {
  border-color: color-mix(in srgb, var(--bk-danger, #e18d7d) 52%, var(--bk-line, rgba(206, 224, 211, .14)));
}

.timeline-overlay .tl-data-state-error strong {
  color: var(--bk-danger, #e18d7d);
}

@keyframes tlDataPulse {
  0%, 100% { opacity: .45; transform: scale(.82); }
  50% { opacity: 1; transform: scale(1); }
}

@media (max-width: 720px) {
  .timeline-overlay .tl-data-state {
    inset: 12% 6%;
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .timeline-overlay .tl-data-state i {
    animation: none;
  }
}

.timeline-overlay .tl-head{
  position:sticky;
  top:0;
  z-index:10;
  display:grid;
  grid-template-columns:minmax(220px,320px) minmax(0,1fr) auto;
  align-items:start;
  gap:18px;
  padding:20px 24px 18px;
  border-bottom:1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(180deg,rgba(10,15,24,.98),rgba(10,15,24,.9)),
    radial-gradient(circle at top right,rgba(216,181,108,.08),transparent 32%);
  backdrop-filter:blur(18px);
}

.timeline-overlay .tl-title-block{
  display:grid;
  gap:4px;
}

.timeline-overlay .tl-kicker,
.timeline-overlay .tl-filter-kicker,
.timeline-overlay .tli-eyebrow,
.timeline-overlay .tlr-k{
  font-family:'JetBrains Mono',monospace;
  font-size:.55rem;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#8094b8;
}

.timeline-overlay .tl-title-wrap h2{
  margin:0;
  color:#f6e3bb;
  font-family:'Cormorant Garamond',serif;
  font-size:2.15rem;
  line-height:.95;
  letter-spacing:.05em;
}

.timeline-overlay .tl-sub{
  color:var(--tl-muted);
  font-family:'JetBrains Mono',monospace;
  font-size:.68rem;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.timeline-overlay .tl-controls{
  min-width:0;
}

.timeline-overlay .tl-head-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

.timeline-overlay .tl-toolbar{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
  align-items:start;
}

.timeline-overlay .tl-toolbar-main{
  min-width:0;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
}

.timeline-overlay .tl-toolbar-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}

.timeline-overlay .tl-toolbar-meta{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-top:0;
}

.timeline-overlay .tl-quick-presets{
  display:flex;
  align-items:stretch;
  gap:6px;
  margin-left:auto;
  min-width:0;
  overflow-x:auto;
  scrollbar-width:none;
}

.timeline-overlay .tl-quick-presets::-webkit-scrollbar{display:none}

.timeline-overlay .tl-quick-preset{
  display:grid;
  gap:2px;
  min-width:76px;
  min-height:36px;
  padding:6px 9px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:12px;
  background:rgba(255,255,255,.035);
  color:#c8d6ec;
  text-align:left;
  cursor:pointer;
  transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease;
}

.timeline-overlay .tl-quick-preset:hover,
.timeline-overlay .tl-quick-preset.act{
  border-color:rgba(216,181,108,.42);
  background:rgba(216,181,108,.14);
  color:#fff0cb;
  transform:translateY(-1px);
}

.timeline-overlay .tl-quick-preset strong{
  font-size:.64rem;
  line-height:1;
}

.timeline-overlay .tl-quick-preset small{
  color:#8297bb;
  font-size:.5rem;
  line-height:1.1;
  white-space:nowrap;
}

.timeline-overlay .tl-quick-preset.act small{color:#dfd0aa}

.timeline-overlay .tl-mini-note{
  display:inline-flex;
  align-items:center;
  min-height:36px;
  padding:0 14px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:999px;
  background:rgba(255,255,255,.035);
  color:#c4d1e7;
  font-size:.7rem;
  line-height:1.3;
}

.timeline-overlay .tl-mini-note strong{
  color:#fff0cb;
  margin-right:8px;
}

.timeline-overlay .tl-searchbox{
  position:relative;
}

.timeline-overlay .tl-searchbox input{
  width:100%;
  min-height:56px;
  padding:0 18px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  background:rgba(17,23,34,.96);
  color:var(--tl-text);
  font-family:'DM Sans',sans-serif;
  font-size:1rem;
  outline:none;
  transition:border-color .16s ease,background .16s ease,box-shadow .16s ease;
}

.timeline-overlay .tl-searchbox input:focus{
  border-color:rgba(216,181,108,.4);
  background:rgba(20,27,41,.97);
  box-shadow:0 0 0 4px rgba(216,181,108,.08);
}

.timeline-overlay .tl-searchbox input::placeholder{
  color:#8ea2c7;
}

.timeline-overlay .tl-chip-row,
.timeline-overlay .tli-tabs,
.timeline-overlay .tl-action-row{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.timeline-overlay .tl-context-btn,
.timeline-overlay .tli-tabs button,
.timeline-overlay .tli-link,
.timeline-overlay .tl-inline-btn{
  border:1px solid rgba(255,255,255,.13);
  border-radius:18px;
  background:rgba(255,255,255,.05);
  color:#dbe6fb;
  font-family:'JetBrains Mono',monospace;
}

.timeline-overlay .tl-context-btn,
.timeline-overlay .tli-tabs button,
.timeline-overlay .tli-link,
.timeline-overlay .tl-inline-btn{
  cursor:pointer;
  min-height:42px;
  padding:0 14px;
  font-size:.68rem;
  letter-spacing:.05em;
  text-transform:uppercase;
  transition:transform .16s ease,background .16s ease,border-color .16s ease,color .16s ease;
}

.timeline-overlay .tl-context-btn:hover,
.timeline-overlay .tli-tabs button:hover,
.timeline-overlay .tli-link:hover,
.timeline-overlay .tl-inline-btn:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.18);
  color:#f6fbff;
}

.timeline-overlay .tl-context-btn,
.timeline-overlay .tl-inline-btn,
.timeline-overlay .tli-tabs button.act{
  border-color:rgba(216,181,108,.35);
  background:rgba(216,181,108,.14);
  color:#fff0cb;
}

.timeline-overlay .tl-context-btn{
  min-width:188px;
  min-height:56px;
  padding:10px 16px;
  display:grid;
  gap:2px;
  text-align:left;
  text-transform:none;
}

.timeline-overlay .tl-context-btn span,
.timeline-overlay .tl-context-btn small{
  font-family:'JetBrains Mono',monospace;
  line-height:1.2;
}

.timeline-overlay .tl-context-btn span{
  color:#f2cc7b;
  font-size:.54rem;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.timeline-overlay .tl-context-btn strong{
  color:#fff4de;
  font-family:'Cormorant Garamond',serif;
  font-size:1.28rem;
  line-height:.9;
  letter-spacing:.04em;
}

.timeline-overlay .tl-context-btn small{
  color:#d2ddef;
  font-size:.6rem;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.timeline-overlay .tl-close{
  width:46px;
  height:46px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  color:#edf4ff;
  font-size:1.2rem;
  line-height:1;
  cursor:pointer;
}

.timeline-overlay .tl-shell-btn{
  min-height:46px;
  padding:0 16px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.05);
  color:#edf4ff;
  font-family:'JetBrains Mono',monospace;
  font-size:.66rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  cursor:pointer;
  transition:transform .16s ease,background .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease;
}

.timeline-overlay .tl-shell-btn:hover,
.timeline-overlay .tl-close:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.18);
  box-shadow:0 14px 28px rgba(0,0,0,.22);
}

.timeline-overlay .tl-shell-btn[data-active="true"]{
  border-color:rgba(216,181,108,.42);
  background:rgba(216,181,108,.16);
  color:#fff1cb;
}

.timeline-overlay .tl-main{
  min-height:0;
  padding:18px 20px 22px;
  overflow:auto;
}

.timeline-overlay .tl-shell{
  min-height:100%;
  display:grid;
  gap:18px;
  align-content:start;
}

.timeline-overlay .tl-atlas{
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr);
  gap:14px;
}

.timeline-overlay .tl-atlas-hero,
.timeline-overlay .tl-atlas-side{
  border:1px solid var(--tl-border);
  border-radius:24px;
  padding:18px;
  background:
    linear-gradient(180deg,rgba(14,20,31,.92),rgba(9,14,22,.98)),
    radial-gradient(circle at top right,rgba(216,181,108,.08),transparent 34%);
  box-shadow:0 22px 40px rgba(0,0,0,.26);
}

.timeline-overlay .tl-atlas-hero{
  display:grid;
  gap:12px;
}

.timeline-overlay .tl-atlas-hero h3{
  margin:0;
  color:#fff2da;
  font-family:'Cormorant Garamond',serif;
  font-size:2.2rem;
  line-height:.94;
}

.timeline-overlay .tl-atlas-hero p{
  margin:0;
  color:#d2ddf0;
  font-size:.84rem;
  line-height:1.72;
  max-width:70ch;
}

.timeline-overlay .tl-atlas-pills{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.timeline-overlay .tl-atlas-side{
  display:grid;
  gap:14px;
}

.timeline-overlay .tl-atlas-stats{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}

.timeline-overlay .tl-atlas-stat{
  display:grid;
  gap:6px;
  padding:14px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
}

.timeline-overlay .tl-atlas-stat strong{
  color:#f5f9ff;
  font-size:1rem;
  line-height:1.25;
}

.timeline-overlay .tl-atlas-stat span{
  color:#91a6ca;
  font-family:'JetBrains Mono',monospace;
  font-size:.56rem;
  letter-spacing:.1em;
  text-transform:uppercase;
}

.timeline-overlay .tl-atlas-storygrid{
  display:grid;
  gap:9px;
}

.timeline-overlay .tl-atlas-story{
  width:100%;
  display:grid;
  gap:5px;
  padding:12px 14px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.08);
  background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.02));
  text-align:left;
  cursor:pointer;
  transition:transform .16s ease,background .16s ease,border-color .16s ease;
}

.timeline-overlay .tl-atlas-story:hover,
.timeline-overlay .tl-scene-card:hover{
  transform:translateY(-1px);
  border-color:rgba(255,255,255,.18);
  background:rgba(255,255,255,.07);
}

.timeline-overlay .tl-atlas-story span,
.timeline-overlay .tl-atlas-story small{
  color:#9bb0d2;
  font-family:'JetBrains Mono',monospace;
  font-size:.58rem;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.timeline-overlay .tl-atlas-story strong{
  color:#f4f8ff;
  font-size:.92rem;
}

.timeline-overlay .tl-atlas-empty{
  padding:14px;
  border-radius:18px;
  border:1px dashed rgba(255,255,255,.1);
  color:#91a6ca;
  font-size:.76rem;
  line-height:1.55;
}

.timeline-overlay .tl-workbench{
  min-height:0;
  display:grid;
  grid-template-columns:minmax(280px,320px) minmax(0,1fr) minmax(300px,360px);
  gap:16px;
  align-items:start;
}

.timeline-overlay .tl-ribbon,
.timeline-overlay .tl-sidebar-shell,
.timeline-overlay .tl-stage-shell,
.timeline-overlay .tl-inspector .tli-shell{
  border:1px solid var(--tl-border);
  border-radius:24px;
  background:
    linear-gradient(180deg,rgba(14,20,31,.9),rgba(9,14,22,.98)),
    radial-gradient(circle at top right,rgba(216,181,108,.08),transparent 34%);
  box-shadow:0 22px 40px rgba(0,0,0,.3);
}

.timeline-overlay .tl-ribbon{
  padding:14px;
}

.timeline-overlay .tl-dock{
  min-height:0;
  position:sticky;
  top:0;
  align-self:start;
}

.timeline-overlay .tl-sidebar-shell{
  min-height:280px;
  max-height:calc(100vh - 214px);
  display:grid;
  gap:14px;
  padding:18px;
  overflow:auto;
}

.timeline-overlay .tl-panel{
  display:grid;
  gap:12px;
  padding:18px;
  border-radius:20px;
  border:1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.02)),
    radial-gradient(circle at top right,rgba(255,255,255,.04),transparent 34%);
}

.timeline-overlay .tl-panel-hero{
  background:
    linear-gradient(180deg,rgba(216,181,108,.12),rgba(255,255,255,.03)),
    radial-gradient(circle at top right,rgba(255,255,255,.08),transparent 34%);
}

.timeline-overlay .tl-panel-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.timeline-overlay .tl-panel-head h3{
  margin:6px 0 0;
  color:#f5f8ff;
  font-family:'Cormorant Garamond',serif;
  font-size:1.54rem;
  line-height:.95;
}

.timeline-overlay .tl-panel-copy{
  margin:0;
  color:#c7d6ec;
  font-size:.82rem;
  line-height:1.6;
}

.timeline-overlay .tl-panel-note{
  color:#8fa5ca;
  font-family:'JetBrains Mono',monospace;
  font-size:.62rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  text-align:right;
}

.timeline-overlay .tl-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  padding:0 10px;
  border-radius:999px;
  border:1px solid rgba(216,181,108,.26);
  background:rgba(216,181,108,.1);
  color:#fff0cb;
  font-family:'JetBrains Mono',monospace;
  font-size:.6rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  white-space:nowrap;
}

.timeline-overlay .tl-badge.soft{
  border-color:rgba(255,255,255,.12);
  background:rgba(255,255,255,.05);
  color:#dce7fb;
}

.timeline-overlay .tl-hero-meta{
  color:#9db0cf;
  font-family:'JetBrains Mono',monospace;
  font-size:.66rem;
  letter-spacing:.07em;
  text-transform:uppercase;
}

.timeline-overlay .tl-stat-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.timeline-overlay .tl-stat-card{
  display:grid;
  gap:4px;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(8,12,19,.32);
}

.timeline-overlay .tl-stat-card strong{
  color:#f8fbff;
  font-size:1rem;
  line-height:1.2;
}

.timeline-overlay .tl-stat-card span{
  color:#93a7cb;
  font-family:'JetBrains Mono',monospace;
  font-size:.6rem;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.timeline-overlay .tl-panel-inline .tl-mini-note{
  width:100%;
  min-height:auto;
  padding:12px 14px;
  border-radius:16px;
  align-items:flex-start;
}

.timeline-overlay .tl-panel-stack{
  display:grid;
  gap:16px;
}

.timeline-overlay .tl-group-label{
  margin-bottom:8px;
  color:#90a4c7;
  font-family:'JetBrains Mono',monospace;
  font-size:.6rem;
  letter-spacing:.1em;
  text-transform:uppercase;
}

.timeline-overlay .tl-mode-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.timeline-overlay .tl-mode-btn,
.timeline-overlay .tl-tile,
.timeline-overlay .tl-chip{
  border:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.03);
  transition:transform .16s ease,background .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease;
}

.timeline-overlay .tl-mode-btn:hover,
.timeline-overlay .tl-tile:hover,
.timeline-overlay .tl-chip:hover{
  transform:translateY(-1px);
  border-color:rgba(255,255,255,.18);
  background:rgba(255,255,255,.06);
}

.timeline-overlay .tl-mode-btn{
  display:grid;
  gap:4px;
  padding:14px;
  text-align:left;
  border-radius:18px;
  cursor:pointer;
}

.timeline-overlay .tl-mode-btn strong{
  color:#f3f7ff;
  font-size:.9rem;
}

.timeline-overlay .tl-mode-btn small{
  color:#9fb2d1;
  font-size:.72rem;
  line-height:1.45;
}

.timeline-overlay .tl-mode-btn.act{
  border-color:rgba(216,181,108,.34);
  background:rgba(216,181,108,.14);
  box-shadow:0 12px 26px rgba(0,0,0,.18);
}

.timeline-overlay .tl-mode-btn.act strong{
  color:#fff0cb;
}

.timeline-overlay .tl-mode-btn.act small{
  color:#e7d6af;
}

.timeline-overlay .tl-tile-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}

.timeline-overlay .tl-tile-grid-tight{
  grid-template-columns:repeat(2,minmax(0,1fr));
}

.timeline-overlay .tl-tile{
  display:grid;
  gap:4px;
  min-height:72px;
  padding:12px 14px;
  border-radius:18px;
  cursor:pointer;
  text-align:left;
}

.timeline-overlay .tl-tile strong{
  color:#eef4ff;
  font-size:.82rem;
}

.timeline-overlay .tl-tile small{
  color:#92a7cb;
  font-size:.68rem;
  line-height:1.4;
}

.timeline-overlay .tl-tile.act{
  border-color:rgba(216,181,108,.36);
  background:rgba(216,181,108,.14);
}

.timeline-overlay .tl-tile.act strong{
  color:#fff0cb;
}

.timeline-overlay .tl-tile.act small{
  color:#eadcb9;
}

.timeline-overlay .tl-panel-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.timeline-overlay .tl-chip-grid{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.timeline-overlay .tl-chip{
  display:grid;
  gap:4px;
  min-width:110px;
  padding:10px 12px;
  border-radius:16px;
  cursor:pointer;
}

.timeline-overlay .tl-chip span{
  color:#ebf2ff;
  font-size:.76rem;
}

.timeline-overlay .tl-chip small{
  color:#93a8cd;
  font-family:'JetBrains Mono',monospace;
  font-size:.62rem;
}

.timeline-overlay .tl-chip.act{
  border-color:rgba(216,181,108,.36);
  background:rgba(216,181,108,.14);
}

.timeline-overlay .tl-chip.act span{
  color:#fff0cb;
}

.timeline-overlay .tl-chip.act small{
  color:#e7d6ad;
}

.timeline-overlay .tl-chip.suggested{
  box-shadow:inset 0 0 0 1px rgba(110,172,255,.16);
}

.timeline-overlay .tlr-summary-strip{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}

.timeline-overlay .tlr-summary-item{
  display:grid;
  gap:6px;
  min-width:0;
  padding:16px 18px;
  border-radius:20px;
  background:
    linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.025)),
    radial-gradient(circle at top right,rgba(216,181,108,.08),transparent 32%);
  border:1px solid rgba(255,255,255,.06);
}

.timeline-overlay .tlr-summary-item-wide{
  background:
    linear-gradient(180deg,rgba(216,181,108,.12),rgba(255,255,255,.03)),
    radial-gradient(circle at top right,rgba(255,255,255,.08),transparent 32%);
}

.timeline-overlay .tlr-summary-item strong{
  color:#f4f8ff;
  font-size:1.12rem;
  line-height:1.12;
}

.timeline-overlay .tlr-p{
  color:#b9cae4;
  font-size:.76rem;
  line-height:1.5;
}

.timeline-overlay .tl-stage-shell{
  min-height:0;
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;
  overflow:hidden;
}

.timeline-overlay .tl-stage-meta{
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.15fr) auto;
  gap:14px;
  align-items:center;
  padding:16px 18px;
  border-bottom:1px solid rgba(255,255,255,.07);
  background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.015));
}

.timeline-overlay .tl-stage-badges{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.timeline-overlay .tl-stage-pill{
  display:inline-flex;
  align-items:center;
  min-height:32px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.035);
  color:#dce7fb;
  font-family:'JetBrains Mono',monospace;
  font-size:.64rem;
  letter-spacing:.05em;
  text-transform:uppercase;
}

.timeline-overlay .tl-stage-copy{
  min-width:0;
  display:grid;
  gap:3px;
}

.timeline-overlay .tl-stage-copy strong{
  color:#f5f8ff;
  font-size:1rem;
}

.timeline-overlay .tl-stage-copy span{
  color:#aec0df;
  font-size:.76rem;
  line-height:1.45;
}

.timeline-overlay .tl-stage-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}

.timeline-overlay .tl-stage-btn{
  min-height:34px;
  padding:0 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  color:#e6eefc;
  font-family:'JetBrains Mono',monospace;
  font-size:.68rem;
  letter-spacing:.05em;
  cursor:pointer;
  transition:transform .16s ease,background .16s ease,border-color .16s ease,color .16s ease;
}

.timeline-overlay .tl-stage-btn:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.18);
}

.timeline-overlay .tl-stage-btn.wide{
  min-width:78px;
}

.timeline-overlay .tl-stage-btn.cinema{
  border-color:rgba(245,221,176,.34);
  background:linear-gradient(180deg,rgba(216,181,108,.18),rgba(255,255,255,.04));
  color:#fff1cf;
}

.timeline-overlay .tl-stage-btn.cinema.act{
  color:#071017;
  background:linear-gradient(180deg,#f5ddb0,#c89d4c);
  box-shadow:0 0 0 1px rgba(245,221,176,.28),0 16px 34px rgba(216,181,108,.18);
}

.timeline-overlay .tl-context-rail{
  grid-column:1/-1;
  display:grid;
  grid-template-columns:repeat(5,minmax(150px,1fr));
  gap:10px;
  overflow:auto;
  padding-top:2px;
}

.timeline-overlay .tl-context-chip,
.timeline-overlay .tl-context-empty{
  min-height:76px;
  text-align:left;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.09);
  background:
    linear-gradient(145deg,rgba(216,181,108,.08),rgba(255,255,255,.025)),
    radial-gradient(circle at top right,rgba(126,168,255,.08),transparent 48%);
  color:#eaf1ff;
}

.timeline-overlay .tl-context-chip{
  display:grid;
  align-content:start;
  gap:4px;
  padding:11px 12px;
  cursor:pointer;
  transition:transform .16s ease,background .16s ease,border-color .16s ease,box-shadow .16s ease;
}

.timeline-overlay .tl-context-chip:hover{
  transform:translateY(-2px);
  border-color:rgba(216,181,108,.34);
  background:linear-gradient(145deg,rgba(216,181,108,.13),rgba(255,255,255,.04));
  box-shadow:0 18px 38px rgba(0,0,0,.24);
}

.timeline-overlay .tl-context-chip span,
.timeline-overlay .tl-context-chip small{
  font-family:'JetBrains Mono',monospace;
  font-size:.56rem;
  letter-spacing:.07em;
  text-transform:uppercase;
  color:#98abd0;
}

.timeline-overlay .tl-context-chip strong{
  color:#fff4d7;
  font-size:.82rem;
  line-height:1.22;
}

.timeline-overlay .tl-context-empty{
  padding:14px;
  color:#91a6ca;
}

.timeline-overlay .tl-stage{
  position:relative;
  min-height:var(--tl-stage-height);
  height:var(--tl-stage-height);
  overflow:hidden;
  background:
    linear-gradient(180deg,rgba(8,12,19,.46),rgba(7,10,16,.08)),
    radial-gradient(circle at top left,rgba(216,181,108,.07),transparent 28%);
}

.timeline-overlay .tl-canvas-wrap{
  position:absolute;
  inset:0;
}

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

.timeline-overlay .tl-cinema{
  position:absolute;
  left:18px;
  right:18px;
  bottom:18px;
  z-index:7;
  overflow:hidden;
  border-radius:18px;
  border:1px solid rgba(245,221,176,.18);
  background:
    linear-gradient(120deg,rgba(7,10,16,.94),rgba(20,24,30,.78)),
    radial-gradient(circle at top right,rgba(216,181,108,.18),transparent 36%);
  box-shadow:0 24px 70px rgba(0,0,0,.46),inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter:blur(18px);
  animation:tlCinemaRise .38s cubic-bezier(.2,.72,.18,1) both;
}

.timeline-overlay .tl-cinema[hidden]{
  display:none;
}

.timeline-overlay .tl-cinema-progress{
  height:3px;
  background:rgba(255,255,255,.08);
}

.timeline-overlay .tl-cinema-progress span{
  display:block;
  width:var(--cinema-progress,0%);
  height:100%;
  background:linear-gradient(90deg,#f5ddb0,#8db4ff,#67d2ad);
  box-shadow:0 0 22px rgba(245,221,176,.35);
  transition:width .42s ease;
}

.timeline-overlay .tl-cinema-beam{
  position:absolute;
  top:-70%;
  bottom:-70%;
  left:var(--cinema-route-x,0%);
  width:180px;
  transform:translateX(-50%) rotate(9deg);
  background:linear-gradient(90deg,transparent,rgba(246,223,178,.18),rgba(141,180,255,.16),transparent);
  filter:blur(2px);
  opacity:.75;
  pointer-events:none;
  animation:tlCinemaBeam 2.6s ease-in-out infinite;
}

.timeline-overlay .tl-cinema-grid{
  display:grid;
  grid-template-columns:minmax(130px,.24fr) minmax(0,1fr) auto;
  gap:16px;
  align-items:center;
  padding:16px 18px;
}

.timeline-overlay .tl-cinema-year{
  font-family:'Cormorant Garamond',serif;
  font-size:2.15rem;
  line-height:.9;
  color:#ffe6ad;
}

.timeline-overlay .tl-cinema-copy{
  min-width:0;
  display:grid;
  gap:6px;
}

.timeline-overlay .tl-cinema-copy strong{
  color:#f7fbff;
  font-family:'Cormorant Garamond',serif;
  font-size:1.48rem;
  line-height:.96;
}

.timeline-overlay .tl-cinema-copy p{
  margin:0;
  color:#d8e4f6;
  font-size:.82rem;
  line-height:1.45;
  max-width:76ch;
}

.timeline-overlay .tl-cinema-tags,
.timeline-overlay .tl-cinema-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.timeline-overlay .tl-cinema-tags span{
  min-height:25px;
  display:inline-flex;
  align-items:center;
  padding:0 9px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.09);
  background:rgba(255,255,255,.04);
  color:#b9c8e0;
  font-family:'JetBrains Mono',monospace;
  font-size:.55rem;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.timeline-overlay .tl-cinema-actions{
  justify-content:flex-end;
}

.timeline-overlay .tl-cinema-actions button{
  min-height:34px;
  padding:0 11px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.05);
  color:#edf4ff;
  font-family:'JetBrains Mono',monospace;
  font-size:.6rem;
  letter-spacing:.06em;
  text-transform:uppercase;
  cursor:pointer;
}

.timeline-overlay .tl-cinema-route{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:8px;
  padding:0 18px 14px;
}

.timeline-overlay .tl-cinema-route button{
  min-width:0;
  text-align:left;
  border:1px solid rgba(255,255,255,.1);
  border-radius:14px;
  padding:9px 10px;
  background:rgba(255,255,255,.04);
  color:#e6efff;
  cursor:pointer;
  transition:transform .16s ease,border-color .16s ease,background .16s ease,box-shadow .16s ease;
}

.timeline-overlay .tl-cinema-route button:hover,
.timeline-overlay .tl-cinema-route button.act{
  transform:translateY(-2px);
  border-color:rgba(246,223,178,.42);
  background:linear-gradient(180deg,rgba(246,223,178,.16),rgba(141,180,255,.08));
  box-shadow:0 14px 34px rgba(0,0,0,.22);
}

.timeline-overlay .tl-cinema-route span{
  display:block;
  color:#a9bbd7;
  font-family:'JetBrains Mono',monospace;
  font-size:.52rem;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.timeline-overlay .tl-cinema-route strong{
  display:block;
  margin-top:4px;
  color:#fff7df;
  font-size:.72rem;
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.timeline-overlay .tl-cinema-speed{
  position:absolute;
  top:12px;
  right:12px;
  display:flex;
  gap:5px;
  padding:4px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:999px;
  background:rgba(0,0,0,.22);
  backdrop-filter:blur(12px);
}

.timeline-overlay .tl-cinema-speed button{
  min-height:28px;
  padding:0 9px;
  border:0;
  border-radius:999px;
  background:transparent;
  color:#aebeda;
  font-family:'JetBrains Mono',monospace;
  font-size:.52rem;
  letter-spacing:.06em;
  text-transform:uppercase;
  cursor:pointer;
}

.timeline-overlay .tl-cinema-speed button.act{
  color:#10141c;
  background:#f6dfb2;
}

.timeline-overlay.cinema-on .tl-stage{
  background:
    radial-gradient(circle at 48% 10%,rgba(216,181,108,.12),transparent 34%),
    linear-gradient(180deg,rgba(8,12,19,.72),rgba(3,5,9,.2)),
    linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px) 0 0/56px 56px;
}

.timeline-overlay.cinema-on .tl-canvas-wrap::before,
.timeline-overlay.cinema-on .tl-canvas-wrap::after{
  content:'';
  position:absolute;
  inset:0;
  z-index:2;
  pointer-events:none;
}

.timeline-overlay.cinema-on .tl-canvas-wrap::before{
  background:
    radial-gradient(circle at 50% 52%,transparent 0 28%,rgba(0,0,0,.28) 78%),
    linear-gradient(180deg,rgba(246,223,178,.08),transparent 34%,rgba(103,210,173,.08));
  mix-blend-mode:screen;
  animation:tlCinemaPulse 2.8s ease-in-out infinite;
}

.timeline-overlay.cinema-on .tl-canvas-wrap::after{
  background:repeating-linear-gradient(0deg,rgba(255,255,255,.035) 0 1px,transparent 1px 5px);
  opacity:.16;
}

@keyframes tlCinemaRise{
  from{opacity:0;transform:translateY(18px) scale(.985)}
  to{opacity:1;transform:none}
}

@keyframes tlCinemaBeam{
  50%{opacity:1;filter:blur(0)}
}

@keyframes tlCinemaPulse{
  50%{opacity:.62}
}

.timeline-overlay .tl-tip{
  position:absolute;
  max-width:420px;
  padding:14px 16px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:14px;
  background:rgba(9,13,20,.96);
  color:#dce8ff;
  font-size:.82rem;
  line-height:1.45;
  opacity:0;
  transform:translateY(4px);
  transition:opacity .12s ease,transform .12s ease;
  pointer-events:none;
  box-shadow:0 14px 28px rgba(0,0,0,.4);
  z-index:8;
}

.timeline-overlay .tl-tip strong{
  display:block;
  margin-bottom:4px;
  color:#ffe6aa;
}

.timeline-overlay .tl-tip p{
  margin:0 0 4px;
  color:#d7e3f8;
}

.timeline-overlay .tl-tip small{
  color:#93a7cb;
  font-family:'JetBrains Mono',monospace;
  font-size:.68rem;
}

.timeline-overlay .tl-tip.vis{
  opacity:1;
  transform:translateY(0);
}

.timeline-overlay .tl-scene-strip{
  display:grid;
  gap:12px;
  padding:16px 18px 18px;
  border-top:1px solid rgba(255,255,255,.07);
  background:linear-gradient(180deg,rgba(255,255,255,.03),rgba(255,255,255,.015));
}

.timeline-overlay .tl-scene-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
}

.timeline-overlay .tl-scene-head strong{
  display:block;
  margin-top:4px;
  color:#f3f7ff;
  font-size:.96rem;
}

.timeline-overlay .tl-scene-head span{
  color:#93a7cb;
  font-family:'JetBrains Mono',monospace;
  font-size:.6rem;
  letter-spacing:.1em;
  text-transform:uppercase;
}

.timeline-overlay .tl-scene-row{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:minmax(180px,1fr);
  gap:10px;
  overflow:auto;
}

.timeline-overlay .tl-scene-card{
  display:grid;
  gap:6px;
  padding:14px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
  text-align:left;
  cursor:pointer;
  transition:transform .16s ease,background .16s ease,border-color .16s ease;
}

.timeline-overlay .tl-scene-card span,
.timeline-overlay .tl-scene-card small{
  color:#97abcf;
  font-family:'JetBrains Mono',monospace;
  font-size:.58rem;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.timeline-overlay .tl-scene-card strong{
  color:#f4f8ff;
  font-size:.9rem;
  line-height:1.3;
}

.timeline-overlay .tl-scene-empty{
  padding:14px;
  border-radius:18px;
  border:1px dashed rgba(255,255,255,.1);
  color:#91a6ca;
  font-size:.75rem;
}

.timeline-overlay .tl-inline-btn{
  min-height:56px;
  padding:0 16px;
}

.timeline-overlay .tl-inline-btn.ghost{
  border-color:rgba(255,255,255,.12);
  background:rgba(255,255,255,.03);
  color:#dbe6fb;
}

.timeline-overlay .tl-inline-btn.sm{
  min-height:34px;
  padding:0 12px;
  font-size:.62rem;
}

.timeline-overlay .tl-suggest{
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  right:0;
  max-height:320px;
  overflow:auto;
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  background:rgba(10,14,22,.98);
  box-shadow:0 18px 36px rgba(0,0,0,.45);
  z-index:20;
}

.timeline-overlay .tl-suggest[hidden]{
  display:none !important;
}

.timeline-overlay .tl-suggest button{
  width:100%;
  display:grid;
  gap:4px;
  padding:10px 12px;
  text-align:left;
  color:#dce8ff;
  background:transparent;
  border:0;
  border-bottom:1px solid rgba(255,255,255,.06);
  cursor:pointer;
}

.timeline-overlay .tl-suggest button:last-child{
  border-bottom:0;
}

.timeline-overlay .tl-suggest button strong{
  color:#f7f9ff;
  font-size:.86rem;
}

.timeline-overlay .tl-suggest button small{
  color:#8ea2c7;
  font-family:'JetBrains Mono',monospace;
  font-size:.68rem;
}

.timeline-overlay .tl-suggest button:hover,
.timeline-overlay .tl-suggest button.act{
  background:rgba(216,181,108,.12);
}

.timeline-overlay .tl-inspector{
  min-height:0;
  position:static;
}

.timeline-overlay .tli-shell{
  min-height:280px;
  display:grid;
  grid-template-rows:auto auto 1fr;
  overflow:hidden;
}

.timeline-overlay .tli-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:18px;
  border-bottom:1px solid rgba(255,255,255,.07);
}

.timeline-overlay .tli-headcopy{
  display:grid;
  gap:8px;
  min-width:0;
}

.timeline-overlay .tli-head h3{
  margin:0;
  color:#f4f8ff;
  font-size:1.3rem;
  line-height:1.2;
}

.timeline-overlay .tli-headmeta{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.timeline-overlay .tli-meta-pill{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:0 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.04);
  color:#dce7fb;
  font-family:'JetBrains Mono',monospace;
  font-size:.58rem;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.timeline-overlay .tli-close{
  width:40px;
  height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.13);
  background:rgba(255,255,255,.04);
  color:#edf4ff;
  font-size:1rem;
  line-height:1;
  cursor:pointer;
}

.timeline-overlay .tli-tabs{
  padding:14px 18px 0;
}

.timeline-overlay .tli-tabs button{
  min-height:36px;
  padding:0 12px;
  font-size:.66rem;
}

.timeline-overlay .tli-body{
  min-height:0;
  overflow:auto;
  padding:16px 18px 18px;
}

.timeline-overlay .tli-section{
  display:grid;
  gap:12px;
}

.timeline-overlay .tli-card{
  display:grid;
  gap:10px;
  padding:16px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:15px;
  background:rgba(255,255,255,.025);
}

.timeline-overlay .tli-card h4{
  margin:0;
  color:#f2f6ff;
  font-size:.96rem;
}

.timeline-overlay .tli-card p{
  margin:0;
  color:#c5d3ea;
  font-size:.82rem;
  line-height:1.55;
}

.timeline-overlay .tli-grid{
  display:grid;
  gap:8px;
}

.timeline-overlay .tli-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  font-size:.78rem;
}

.timeline-overlay .tli-row span{
  color:#90a4c7;
}

.timeline-overlay .tli-row strong{
  color:#edf3ff;
  font-weight:600;
  text-align:right;
}

.timeline-overlay .tli-list-item{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  align-items:start;
  padding:10px 0;
  border-bottom:1px solid rgba(255,255,255,.06);
}

.timeline-overlay .tli-list-item:last-child{
  border-bottom:0;
}

.timeline-overlay .tli-list-item strong{
  color:#eef4ff;
  font-size:.82rem;
}

.timeline-overlay .tli-list-item p{
  margin:4px 0;
  color:#b9c8e2;
  font-size:.76rem;
}

.timeline-overlay .tli-list-item small,
.timeline-overlay .tli-quick small{
  color:#92a6cb;
  font-family:'JetBrains Mono',monospace;
  font-size:.64rem;
}

.timeline-overlay .tli-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:36px;
  padding:0 12px;
  font-size:.66rem;
  text-decoration:none;
  white-space:nowrap;
}

.timeline-overlay .tli-quick{
  width:100%;
  display:grid;
  gap:4px;
  padding:9px 0;
  text-align:left;
  color:#dce7fb;
  background:transparent;
  border:0;
  border-bottom:1px solid rgba(255,255,255,.06);
  cursor:pointer;
}

.timeline-overlay .tli-quick:last-child{
  border-bottom:0;
}

.timeline-overlay .tli-quick strong{
  color:#eef4ff;
  font-size:.82rem;
}

.timeline-overlay .tli-actions{
  display:flex;
  justify-content:flex-start;
}

.timeline-overlay .tli-bullets{
  margin:0;
  padding-left:18px;
  display:grid;
  gap:6px;
}

.timeline-overlay .tli-bullets li{
  color:#d7e3f7;
  font-size:.78rem;
  line-height:1.5;
}

.timeline-overlay .tli-scroll{
  max-height:340px;
  overflow:auto;
}

.timeline-overlay .tli-empty,
.timeline-overlay .tli-empty-inline{
  color:#93a7cb;
  font-size:.78rem;
  line-height:1.5;
}

@media (max-width:1380px){
  .timeline-overlay .tlr-summary-strip{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .timeline-overlay .tl-atlas{
    grid-template-columns:1fr;
  }

  .timeline-overlay .tl-workbench{
    grid-template-columns:minmax(280px,320px) minmax(0,1fr);
  }

  .timeline-overlay .tl-inspector{
    grid-column:1 / -1;
    position:static;
  }
}

@media (max-width:1180px){
  .timeline-overlay .tl-head{
    grid-template-columns:1fr auto;
  }

  .timeline-overlay .tl-controls{
    grid-column:1 / -1;
  }

  .timeline-overlay .tl-toolbar,
  .timeline-overlay .tl-toolbar-main,
  .timeline-overlay .tl-stage-meta,
  .timeline-overlay .tl-context-rail,
  .timeline-overlay .tl-atlas-stats{
    grid-template-columns:1fr;
  }

  .timeline-overlay .tl-toolbar-actions{
    justify-content:flex-start;
  }

  .timeline-overlay .tl-workbench{
    grid-template-columns:1fr;
  }

  .timeline-overlay .tl-dock{
    position:static;
  }

  .timeline-overlay .tl-sidebar-shell{
    max-height:none;
  }

  .timeline-overlay .tl-mode-grid,
  .timeline-overlay .tl-tile-grid{
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width:860px){
  .timeline-overlay{
    inset:0;
    border-radius:0;
  }

  .timeline-overlay .tl-head,
  .timeline-overlay .tl-main{
    padding:12px;
  }

  .timeline-overlay .tl-stage{
    min-height:420px;
    height:min(62vh,var(--tl-stage-height));
  }

  .timeline-overlay .tlr-summary-strip{
    grid-template-columns:1fr;
  }

  .timeline-overlay .tl-mode-grid,
  .timeline-overlay .tl-tile-grid,
  .timeline-overlay .tl-stat-grid,
  .timeline-overlay .tl-atlas-stats{
    grid-template-columns:1fr;
  }

  .timeline-overlay .tl-panel-head{
    flex-direction:column;
    align-items:flex-start;
  }
}

.timeline-overlay:fullscreen{
  --tl-stage-height: min(72vh, 1080px);
}

.timeline-overlay:fullscreen .tl-head{
  position:absolute;
  top:12px;
  left:12px;
  right:12px;
  grid-template-columns:minmax(0,1fr) auto;
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:18px;
  background:rgba(10,15,24,.88);
  box-shadow:0 18px 36px rgba(0,0,0,.3);
}

.timeline-overlay:fullscreen .tl-controls{
  display:none;
}

.timeline-overlay:fullscreen .tl-main{
  padding:78px 14px 14px;
}

.timeline-overlay:fullscreen .tl-ribbon{
  display:none;
}

/* BAIBEL UI v2 alignment */
.timeline-overlay{
  --tl-stage-height:clamp(420px,58vh,760px);
  background:
    linear-gradient(90deg,rgba(255,255,255,.012) 1px,transparent 1px) 0 0/72px 72px,
    linear-gradient(180deg,rgba(6,9,15,.99),rgba(5,8,13,.995));
}
.timeline-overlay .tl-head{
  grid-template-columns:minmax(180px,260px) minmax(0,1fr) auto;
  gap:14px;
  padding:16px 18px;
}
.timeline-overlay .tl-title-wrap h2{
  font-size:1.84rem;
  letter-spacing:.03em;
}
.timeline-overlay .tl-searchbox input{
  min-height:48px;
  border-radius:12px;
}
.timeline-overlay .tl-context-btn{
  min-height:48px;
  border-radius:12px;
}
.timeline-overlay .tl-shell-btn,
.timeline-overlay .tl-close,
.timeline-overlay .tl-context-btn,
.timeline-overlay .tli-tabs button,
.timeline-overlay .tli-link,
.timeline-overlay .tl-inline-btn{
  border-radius:10px;
}
.timeline-overlay .tl-main{
  padding:14px 16px 18px;
}
.timeline-overlay .tl-shell{
  gap:14px;
}
.timeline-overlay .tl-atlas,
.timeline-overlay .tl-workbench{
  gap:12px;
}
.timeline-overlay .tl-atlas-hero,
.timeline-overlay .tl-atlas-side,
.timeline-overlay .tl-ribbon,
.timeline-overlay .tl-sidebar-shell,
.timeline-overlay .tl-stage-shell,
.timeline-overlay .tl-inspector .tli-shell{
  border-radius:14px;
  box-shadow:0 18px 44px rgba(0,0,0,.34),inset 0 1px 0 rgba(255,255,255,.035);
}
.timeline-overlay .tl-panel,
.timeline-overlay .tl-atlas-stat,
.timeline-overlay .tl-atlas-story,
.timeline-overlay .tl-mode-btn,
.timeline-overlay .tl-tile,
.timeline-overlay .tl-chip,
.timeline-overlay .tlr-summary-item,
.timeline-overlay .tl-scene-card{
  border-radius:10px;
}
.timeline-overlay .tl-workbench{
  grid-template-columns:minmax(240px,300px) minmax(0,1fr) minmax(270px,340px);
}
.timeline-overlay .tl-sidebar-shell{
  max-height:calc(100vh - 188px);
}
.timeline-overlay .tl-stage-meta{
  grid-template-columns:minmax(0,.9fr) minmax(0,1fr) auto;
  padding:13px 14px;
}
.timeline-overlay .tl-stage{
  background:
    linear-gradient(180deg,rgba(8,12,19,.58),rgba(7,10,16,.12)),
    linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px) 0 0/56px 56px;
}
.timeline-overlay .tl-scene-strip{
  padding:13px 14px 14px;
}
@media (max-width:1180px){
  .timeline-overlay .tl-head,
  .timeline-overlay .tl-workbench,
  .timeline-overlay .tl-atlas{
    grid-template-columns:1fr;
  }
  .timeline-overlay .tl-head-actions,
  .timeline-overlay .tl-toolbar-actions{
    justify-content:flex-start;
  }
  .timeline-overlay .tl-dock{
    position:relative;
  }
  .timeline-overlay .tl-sidebar-shell{
    max-height:none;
  }
  .timeline-overlay .tl-cinema-grid{
    grid-template-columns:1fr;
    align-items:start;
  }
  .timeline-overlay .tl-cinema-route{
    grid-template-columns:1fr;
  }
  .timeline-overlay .tl-cinema-speed{
    position:static;
    margin:0 18px 14px;
    width:max-content;
    max-width:calc(100% - 36px);
  }
.timeline-overlay .tl-cinema-actions{
    justify-content:flex-start;
  }
}

/* Ultra-context timeline pass */
.timeline-overlay .tl-plus-btn{
  min-height:48px;
  min-width:112px;
  display:grid;
  grid-template-columns:auto 1fr;
  align-items:center;
  gap:2px 8px;
  padding:7px 12px;
  border:1px solid rgba(117,231,208,.34);
  border-radius:14px;
  background:
    radial-gradient(circle at 0% 0%,rgba(117,231,208,.22),transparent 42%),
    linear-gradient(180deg,rgba(117,231,208,.12),rgba(255,255,255,.04));
  color:#effffb;
  cursor:pointer;
  box-shadow:0 14px 34px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.05);
  transition:transform .16s ease,border-color .16s ease,background .16s ease,box-shadow .16s ease;
}
.timeline-overlay .tl-plus-btn:hover{
  transform:translateY(-1px);
  border-color:rgba(117,231,208,.58);
  background:linear-gradient(180deg,rgba(117,231,208,.2),rgba(255,255,255,.055));
  box-shadow:0 18px 40px rgba(0,0,0,.26),0 0 24px rgba(117,231,208,.12);
}
.timeline-overlay .tl-plus-btn b{
  grid-row:1 / span 2;
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border-radius:10px;
  background:#75e7d0;
  color:#071017;
  font-size:1.1rem;
  line-height:1;
}
.timeline-overlay .tl-plus-btn span,
.timeline-overlay .tl-plus-btn small,
.timeline-overlay .tl-note-card span,
.timeline-overlay .tl-note-card small,
.timeline-overlay .tl-user-context-panel span{
  font-family:'JetBrains Mono',monospace;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.timeline-overlay .tl-plus-btn span{
  color:#f3fffb;
  font-size:.66rem;
}
.timeline-overlay .tl-plus-btn small{
  color:#a8d9d2;
  font-size:.52rem;
}
.timeline-overlay .tl-note-stack{
  display:grid;
  gap:9px;
}
.timeline-overlay .tl-note-card{
  position:relative;
  overflow:hidden;
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(117,231,208,.16);
  background:
    linear-gradient(90deg,rgba(117,231,208,.08),transparent 54%),
    rgba(255,255,255,.035);
}
.timeline-overlay .tl-note-card::after{
  content:'';
  position:absolute;
  inset:auto 12px 10px 12px;
  height:1px;
  background:linear-gradient(90deg,transparent,#75e7d0,transparent);
  opacity:.45;
}
.timeline-overlay .tl-note-card span{
  color:#75e7d0;
  font-size:.52rem;
}
.timeline-overlay .tl-note-card strong{
  display:block;
  margin-top:6px;
  color:#f3fff9;
  font-size:.82rem;
  line-height:1.42;
}
.timeline-overlay .tl-note-card small{
  display:block;
  margin-top:7px;
  color:#8fa7c5;
  font-size:.5rem;
}
.timeline-overlay .tl-user-context-panel{
  grid-column:1 / -1;
  display:grid;
  grid-template-columns:minmax(180px,.35fr) auto minmax(0,1fr);
  gap:10px;
  align-items:center;
  padding:10px 12px;
  border-radius:16px;
  border:1px solid rgba(117,231,208,.15);
  background:
    linear-gradient(90deg,rgba(117,231,208,.08),rgba(216,181,108,.06),rgba(126,168,255,.05)),
    rgba(8,13,22,.52);
}
.timeline-overlay .tl-user-context-panel span{
  color:#75e7d0;
  font-size:.52rem;
}
.timeline-overlay .tl-user-context-panel strong{
  display:block;
  margin-top:3px;
  color:#f6fff9;
  font-size:.86rem;
}
.timeline-overlay .tl-user-context-panel p{
  margin:0;
  color:#cbd8ea;
  font-size:.72rem;
  line-height:1.45;
  overflow:hidden;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
}
.timeline-overlay .tl-head{
  box-shadow:0 18px 60px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.04);
}
.timeline-overlay .tl-stage-meta{
  position:sticky;
  top:0;
  z-index:5;
  backdrop-filter:blur(18px);
}
.timeline-overlay .tl-context-rail{
  scrollbar-width:thin;
}
@media (max-width:1180px){
  .timeline-overlay .tl-user-context-panel{
    grid-template-columns:1fr;
    align-items:start;
  }
}

/* Timeline expert pass */
.timeline-overlay{
  --tl-bg-top:#060b10;
  --tl-bg-bottom:#03070b;
  --tl-panel:rgba(8,15,22,.9);
  --tl-panel-soft:rgba(12,22,31,.78);
  --tl-border:rgba(167,194,225,.13);
  --tl-accent:#e0b86a;
  --tl-accent-strong:#f3dcae;
  --tl-teal:#75e7d0;
  background:
    linear-gradient(90deg,rgba(117,231,208,.035) 1px,transparent 1px) 0 0/82px 82px,
    linear-gradient(180deg,#060b10,#03070b 62%,#020508);
}

.timeline-overlay .tl-head{
  align-items:center;
  border-bottom-color:rgba(167,194,225,.13);
  background:
    linear-gradient(180deg,rgba(7,13,20,.96),rgba(5,10,16,.88)),
    linear-gradient(90deg,rgba(117,231,208,.06),transparent 38%,rgba(224,184,106,.055));
}

.timeline-overlay .tl-title-wrap h2{
  color:#f6e9cf;
}

.timeline-overlay .tl-kicker,
.timeline-overlay .tl-filter-kicker,
.timeline-overlay .tli-eyebrow,
.timeline-overlay .tlr-k{
  color:#75e7d0;
}

.timeline-overlay .tl-searchbox input{
  border-color:rgba(167,194,225,.16);
  background:rgba(5,11,17,.82);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035);
}

.timeline-overlay .tl-searchbox input:focus{
  border-color:rgba(117,231,208,.45);
  box-shadow:0 0 0 4px rgba(117,231,208,.08),inset 0 1px 0 rgba(255,255,255,.045);
}

.timeline-overlay .tl-atlas{
  grid-template-columns:minmax(0,1.08fr) minmax(380px,.92fr);
}

.timeline-overlay .tl-atlas-hero,
.timeline-overlay .tl-atlas-side,
.timeline-overlay .tl-ribbon,
.timeline-overlay .tl-sidebar-shell,
.timeline-overlay .tl-stage-shell,
.timeline-overlay .tl-inspector .tli-shell{
  border-color:rgba(167,194,225,.13);
  background:
    linear-gradient(180deg,rgba(10,19,27,.88),rgba(5,10,16,.98)),
    linear-gradient(135deg,rgba(117,231,208,.06),transparent 44%,rgba(224,184,106,.055));
}

.timeline-overlay .tl-atlas-hero{
  position:relative;
  overflow:hidden;
  min-height:250px;
}

.timeline-overlay .tl-atlas-hero::before{
  content:'';
  position:absolute;
  inset:0;
  background:
    linear-gradient(115deg,transparent 0 54%,rgba(117,231,208,.07) 54% 55%,transparent 55%),
    radial-gradient(circle at 82% 18%,rgba(224,184,106,.16),transparent 30%);
  pointer-events:none;
}

.timeline-overlay .tl-atlas-hero-grid{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(150px,220px);
  gap:18px;
  align-items:start;
}

.timeline-overlay .tl-atlas-compass{
  min-height:142px;
  display:grid;
  align-content:center;
  justify-items:center;
  gap:8px;
  border:1px solid rgba(117,231,208,.14);
  border-radius:12px;
  background:
    radial-gradient(circle,rgba(117,231,208,.14),transparent 58%),
    rgba(255,255,255,.025);
}

.timeline-overlay .tl-atlas-compass span{
  width:78px;
  height:78px;
  border-radius:50%;
  border:1px solid rgba(117,231,208,.34);
  background:
    conic-gradient(from 180deg,rgba(117,231,208,.18),rgba(224,184,106,.2),rgba(110,166,255,.17),rgba(117,231,208,.18));
  box-shadow:0 0 34px rgba(117,231,208,.12);
}

.timeline-overlay .tl-atlas-compass b,
.timeline-overlay .tl-atlas-compass i{
  max-width:160px;
  color:#eaf6ff;
  font-family:'JetBrains Mono',monospace;
  font-size:.58rem;
  letter-spacing:.08em;
  text-align:center;
  text-transform:uppercase;
  font-style:normal;
}

.timeline-overlay .tl-atlas-compass i{
  color:#75e7d0;
}

.timeline-overlay .tl-atlas-era-strip,
.timeline-overlay .tl-epoch-strip{
  position:relative;
  z-index:1;
  display:grid;
  gap:8px;
}

.timeline-overlay .tl-atlas-era{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
  align-items:center;
  padding:10px 12px;
  border:1px solid rgba(167,194,225,.1);
  border-radius:10px;
  background:rgba(255,255,255,.028);
}

.timeline-overlay .tl-atlas-era span,
.timeline-overlay .tl-atlas-era strong{
  color:#eaf2ff;
  font-family:'JetBrains Mono',monospace;
  font-size:.6rem;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.timeline-overlay .tl-atlas-era strong{
  color:#f2d8a2;
}

.timeline-overlay .tl-atlas-era i{
  grid-column:1/-1;
  height:4px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--tl-epoch-color),transparent var(--tl-epoch-width));
  opacity:.9;
}

.timeline-overlay .tl-atlas-layer-strip{
  position:relative;
  z-index:1;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.timeline-overlay .tl-atlas-layer-strip span{
  min-height:28px;
  display:inline-flex;
  align-items:center;
  padding:0 10px;
  border:1px solid rgba(117,231,208,.17);
  border-radius:999px;
  background:rgba(117,231,208,.07);
  color:#dffbf6;
  font-family:'JetBrains Mono',monospace;
  font-size:.56rem;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.timeline-overlay .tl-stage-meta{
  border-bottom-color:rgba(167,194,225,.11);
  background:
    linear-gradient(180deg,rgba(8,17,24,.92),rgba(6,12,18,.72)),
    linear-gradient(90deg,rgba(117,231,208,.04),rgba(224,184,106,.035));
}

.timeline-overlay .tl-stage-pill{
  border-color:rgba(167,194,225,.14);
  background:rgba(255,255,255,.035);
}

.timeline-overlay .tl-epoch-strip{
  grid-column:1/-1;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
}

.timeline-overlay .tl-epoch-bar{
  min-height:34px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
  align-items:center;
  padding:8px 10px;
  border:1px solid rgba(167,194,225,.1);
  border-radius:10px;
  background:rgba(255,255,255,.025);
  overflow:hidden;
}

.timeline-overlay .tl-epoch-bar i{
  grid-column:1/-1;
  height:3px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--tl-epoch-color),transparent var(--tl-epoch-width));
}

.timeline-overlay .tl-epoch-bar b,
.timeline-overlay .tl-epoch-bar em{
  color:#eaf2ff;
  font-family:'JetBrains Mono',monospace;
  font-size:.56rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-style:normal;
}

.timeline-overlay .tl-epoch-bar em{
  color:#f2d8a2;
}

.timeline-overlay .tl-stage{
  background:
    radial-gradient(circle at 28% 18%,rgba(117,231,208,.08),transparent 28%),
    linear-gradient(180deg,rgba(7,13,19,.76),rgba(3,7,11,.18)),
    linear-gradient(90deg,rgba(167,194,225,.035) 1px,transparent 1px) 0 0/64px 64px;
}

.timeline-overlay .tl-panel,
.timeline-overlay .tl-atlas-stat,
.timeline-overlay .tl-atlas-story,
.timeline-overlay .tl-scene-card,
.timeline-overlay .tli-card{
  border-color:rgba(167,194,225,.1);
  background:
    linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.018)),
    rgba(3,8,13,.28);
}

.timeline-overlay .tl-panel-hero{
  background:
    linear-gradient(135deg,rgba(117,231,208,.105),rgba(224,184,106,.09)),
    rgba(255,255,255,.025);
}

.timeline-overlay .tl-mode-btn.act,
.timeline-overlay .tl-tile.act,
.timeline-overlay .tl-chip.act{
  border-color:rgba(117,231,208,.38);
  background:
    linear-gradient(180deg,rgba(117,231,208,.14),rgba(224,184,106,.055)),
    rgba(255,255,255,.03);
}

.timeline-overlay .tl-mode-btn.act strong,
.timeline-overlay .tl-tile.act strong,
.timeline-overlay .tl-chip.act span{
  color:#eafffb;
}

.timeline-overlay .tl-context-meter{
  width:min(280px,100%);
  height:10px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  overflow:hidden;
}

.timeline-overlay .tl-context-meter i{
  display:block;
  width:var(--tl-context-depth,25%);
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,#75e7d0,#e0b86a);
  box-shadow:0 0 20px rgba(117,231,208,.22);
}

@media (max-width:1180px){
  .timeline-overlay .tl-atlas{
    grid-template-columns:1fr;
  }

  .timeline-overlay .tl-atlas-hero-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width:700px){
  body:not(.fullscreen-active) .app[data-active-mode="timeline"] .timeline-overlay .tl-stage-meta{
    grid-template-columns:1fr !important;
    max-height:210px !important;
    align-content:start !important;
  }

  body:not(.fullscreen-active) .app[data-active-mode="timeline"] .timeline-overlay .tl-stage-meta > *{
    grid-column:1 !important;
    width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;
  }

  body:not(.fullscreen-active) .app[data-active-mode="timeline"] .timeline-overlay .tl-stage-copy{
    grid-row:1 !important;
  }

  body:not(.fullscreen-active) .app[data-active-mode="timeline"] .timeline-overlay .tl-stage-actions{
    grid-row:2 !important;
  }

  body:not(.fullscreen-active) .app[data-active-mode="timeline"] .timeline-overlay .tl-user-context-panel{
    grid-row:3 !important;
  }

  body:not(.fullscreen-active) .app[data-active-mode="timeline"] .timeline-overlay .tl-epoch-strip{
    grid-row:4 !important;
  }

  body:not(.fullscreen-active) .app[data-active-mode="timeline"] .timeline-overlay .tl-user-context-panel,
  body:not(.fullscreen-active) .app[data-active-mode="timeline"] .timeline-overlay .tl-epoch-strip{
    width:100% !important;
    min-width:0 !important;
    justify-self:stretch !important;
    grid-column:1 / -1 !important;
  }

  body:not(.fullscreen-active) .app[data-active-mode="timeline"] .timeline-overlay .tl-user-context-panel{
    grid-template-columns:1fr !important;
  }

  body:not(.fullscreen-active) .app[data-active-mode="timeline"] .timeline-overlay .tl-epoch-strip{
    grid-template-columns:1fr !important;
  }
}

/* -------------------------------------------------------------------------
   Timeline Focus v2 — one black / brass composition
   The legacy timeline rules above remain as compatibility history. This
   final, route-scoped layer is the only active visual contract.
   ------------------------------------------------------------------------- */
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY {
  --tl-ink-950: var(--br-ink-950, #070b0a);
  --tl-ink-900: var(--br-ink-900, #0c1210);
  --tl-ink-850: var(--br-ink-850, #101916);
  --tl-ink-800: var(--br-ink-800, #14201c);
  --tl-paper: var(--br-paper-100, #f7f1e4);
  --tl-paper-soft: var(--br-paper-200, #e8dfce);
  --tl-muted: var(--br-paper-500, #afa28f);
  --tl-faint: var(--br-paper-700, #756b5f);
  --tl-brass: var(--br-brass-400, #dfbd7b);
  --tl-brass-strong: var(--br-brass-300, #f0d59c);
  --tl-line: var(--br-line, rgba(212,225,207,.14));
  --tl-line-strong: var(--br-line-strong, rgba(223,189,123,.34));
  --tl-focus: var(--br-focus, #8dd2c0);
  --tl-ui: var(--br-ui, "DM Sans", Inter, sans-serif);
  --tl-reading: var(--br-reading, Georgia, serif);
  --tl-mono: var(--br-mono, "JetBrains Mono", monospace);
  position: absolute !important;
  inset: 0 !important;
  z-index: var(--br-z-modal, 200) !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  color: var(--tl-paper) !important;
  font-family: var(--tl-ui) !important;
  background:
    radial-gradient(circle at 84% -12%, rgba(223,189,123,.08), transparent 32rem),
    radial-gradient(circle at 12% 100%, rgba(141,210,192,.05), transparent 26rem),
    var(--tl-ink-950) !important;
  border: 1px solid rgba(223,189,123,.16) !important;
  border-radius: 16px !important;
  box-shadow: 0 30px 100px rgba(0,0,0,.55), inset 0 1px rgba(255,255,255,.045) !important;
}

body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .18;
  background-image: linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.01) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, black, transparent 90%);
}

body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY > * { position: relative; z-index: 1; }

body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-head {
  display: grid !important;
  grid-template-columns: minmax(170px, 230px) minmax(0, 1fr) auto !important;
  grid-template-areas: "title controls actions" !important;
  align-items: center !important;
  gap: 18px !important;
  min-height: 88px !important;
  padding: 12px 16px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--tl-line) !important;
  background: rgba(7,11,10,.9) !important;
  box-shadow: 0 14px 36px rgba(0,0,0,.2) !important;
  backdrop-filter: blur(16px) !important;
}

body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-title-wrap { grid-area: title !important; min-width: 0 !important; display: grid !important; gap: 3px !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-kicker,
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-drawer-kicker,
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-filter-kicker { color: var(--tl-brass) !important; font: 700 9px/1 var(--tl-mono) !important; letter-spacing: .14em !important; text-transform: uppercase !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-title-wrap h2 { color: var(--tl-paper) !important; font: 600 clamp(1.6rem, 2.1vw, 2.45rem)/.92 var(--br-display, Georgia, serif) !important; letter-spacing: -.025em !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-sub { color: var(--tl-muted) !important; font: 500 10px/1.3 var(--tl-ui) !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-controls { grid-area: controls !important; min-width: 0 !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-head-actions { grid-area: actions !important; display: flex !important; align-items: center !important; gap: 6px !important; }

body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-commandbar { display: grid !important; grid-template-columns: minmax(180px, 1fr) auto !important; gap: 8px !important; align-items: center !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-searchbox-main { min-width: 0 !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-searchbox input,
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-reader-nav,
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-reader-nav select,
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-reader-nav-arrow,
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-layer-btn,
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-shell-btn,
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-close {
  min-height: 38px !important;
  border: 1px solid var(--tl-line) !important;
  border-radius: 9px !important;
  color: var(--tl-paper-soft) !important;
  background: rgba(16,25,22,.78) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.04) !important;
  font-family: var(--tl-ui) !important;
}
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-searchbox input { width: 100% !important; padding: 0 14px !important; font-size: 12px !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-searchbox input:focus { border-color: var(--tl-brass) !important; outline: 0 !important; box-shadow: 0 0 0 3px rgba(223,189,123,.13), inset 0 1px rgba(255,255,255,.05) !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-reader-nav { display: none !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-command-meta { margin-top: 5px !important; color: var(--tl-muted) !important; font: 600 9px var(--tl-mono) !important; letter-spacing: .05em !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-command-meta strong { color: var(--tl-brass-strong) !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-command-icon { display: none !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-layer-btn { padding: 0 12px !important; cursor: pointer !important; font-size: 11px !important; font-weight: 700 !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-layer-btn[aria-expanded="true"] { color: var(--tl-ink-950) !important; background: var(--tl-brass) !important; border-color: var(--tl-brass) !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-shell-btn,
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-close { width: 38px !important; padding: 0 !important; cursor: pointer !important; font-size: 18px !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-close { color: var(--tl-brass) !important; font-size: 23px !important; }

body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-main { min-height: 0 !important; overflow: hidden !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-shell,
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-focus-shell { display: flex !important; flex-direction: column !important; width: 100% !important; height: 100% !important; min-height: 0 !important; padding: 0 !important; gap: 0 !important; background: transparent !important; border: 0 !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-ribbon { flex: 0 0 auto !important; min-height: 58px !important; padding: 7px 16px !important; border: 0 !important; border-bottom: 1px solid var(--tl-line) !important; background: rgba(12,18,16,.72) !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tlr-summary-strip { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px !important; height: 100% !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tlr-summary-item { min-width: 0 !important; padding: 6px 10px !important; border: 1px solid rgba(223,189,123,.13) !important; border-radius: 8px !important; background: rgba(7,11,10,.34) !important; box-shadow: none !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tlr-k { color: var(--tl-faint) !important; font: 700 8px var(--tl-mono) !important; letter-spacing: .12em !important; text-transform: uppercase !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tlr-summary-item strong { display: block !important; overflow: hidden !important; color: var(--tl-paper-soft) !important; font: 600 12px/1.15 var(--tl-ui) !important; text-overflow: ellipsis !important; white-space: nowrap !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tlr-p { color: var(--tl-muted) !important; font: 500 9px/1.2 var(--tl-ui) !important; }

body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-stage-shell { display: grid !important; grid-template-rows: auto minmax(0,1fr) auto !important; min-height: 0 !important; height: 100% !important; overflow: hidden !important; padding: 12px 14px 14px !important; gap: 10px !important; background: transparent !important; border: 0 !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-stage-meta { min-width: 0 !important; padding: 0 !important; position: relative !important; z-index: 3 !important; background: transparent !important; border: 0 !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-console-head { display: flex !important; align-items: center !important; justify-content: space-between !important; min-height: 42px !important; padding: 0 2px !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-stage-copy { display: grid !important; gap: 2px !important; min-width: 0 !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-stage-copy > span { color: var(--tl-brass) !important; font: 700 8px var(--tl-mono) !important; letter-spacing: .13em !important; text-transform: uppercase !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-stage-copy strong { overflow: hidden !important; color: var(--tl-paper) !important; font: 600 1.22rem/1 var(--br-display, Georgia, serif) !important; text-overflow: ellipsis !important; white-space: nowrap !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-stage-copy small { color: var(--tl-muted) !important; font: 500 10px var(--tl-ui) !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-stage-actions { display: flex !important; gap: 5px !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-stage-btn { width: 34px !important; height: 34px !important; padding: 0 !important; border: 1px solid var(--tl-line) !important; border-radius: 8px !important; color: var(--tl-muted) !important; background: rgba(16,25,22,.72) !important; cursor: pointer !important; font: 700 15px var(--tl-ui) !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-stage-btn:hover,
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-stage-btn:focus-visible,
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-stage-btn.act { color: var(--tl-ink-950) !important; border-color: var(--tl-brass) !important; background: var(--tl-brass) !important; outline: none !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-console-window { display: inline-flex !important; align-items: baseline !important; gap: 8px !important; margin-top: 7px !important; padding: 7px 10px !important; border-left: 2px solid var(--tl-brass) !important; color: var(--tl-muted) !important; background: rgba(16,25,22,.38) !important; font-size: 10px !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-console-window strong { color: var(--tl-paper-soft) !important; font: 600 11px var(--tl-mono) !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-console-window small { overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-nearby { margin-top: 8px !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-nearby > header { display: flex !important; justify-content: space-between !important; color: var(--tl-faint) !important; font: 700 8px var(--tl-mono) !important; letter-spacing: .12em !important; text-transform: uppercase !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-context-rail { display: flex !important; gap: 7px !important; overflow: auto hidden !important; padding: 6px 0 2px !important; scrollbar-width: thin !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-context-chip { flex: 0 0 min(220px, 22vw) !important; min-height: 47px !important; padding: 7px 9px !important; border: 1px solid var(--tl-line) !important; border-radius: 8px !important; color: var(--tl-paper-soft) !important; background: rgba(16,25,22,.58) !important; text-align: left !important; cursor: pointer !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-context-chip:hover,
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-context-chip:focus-visible { border-color: var(--tl-brass) !important; outline: 2px solid rgba(223,189,123,.18) !important; outline-offset: 2px !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-context-chip span { color: var(--tl-brass) !important; font: 700 8px var(--tl-mono) !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-context-chip strong { display: block !important; overflow: hidden !important; margin-top: 4px !important; font-size: 11px !important; text-overflow: ellipsis !important; white-space: nowrap !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-context-chip small { display: block !important; overflow: hidden !important; margin-top: 2px !important; color: var(--tl-muted) !important; text-overflow: ellipsis !important; white-space: nowrap !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-depthline { display: none !important; }

body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-stage { min-height: 0 !important; height: 100% !important; overflow: hidden !important; border: 1px solid rgba(223,189,123,.16) !important; border-radius: 13px !important; background: #080d0c !important; box-shadow: inset 0 1px rgba(255,255,255,.035), 0 18px 50px rgba(0,0,0,.2) !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-canvas-wrap { min-height: 0 !important; height: 100% !important; background: linear-gradient(180deg, rgba(16,25,22,.74), rgba(7,11,10,.96)) !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY #tlCanvas { width: 100% !important; height: 100% !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-tip { border: 1px solid var(--tl-line-strong) !important; background: rgba(7,11,10,.96) !important; color: var(--tl-paper) !important; box-shadow: 0 14px 32px rgba(0,0,0,.42) !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-focus-dock,
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-scene-strip { display: none !important; }

body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-scrim { position: absolute !important; inset: 0 !important; z-index: 20 !important; background: rgba(0,0,0,.52) !important; backdrop-filter: blur(2px) !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-drawer,
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-detail-sheet { position: absolute !important; z-index: 30 !important; display: flex !important; flex-direction: column !important; min-width: 0 !important; overflow: hidden !important; border: 1px solid var(--tl-line-strong) !important; color: var(--tl-paper) !important; background: rgba(12,18,16,.98) !important; box-shadow: 0 26px 80px rgba(0,0,0,.6) !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-drawer[hidden],
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-detail-sheet[hidden],
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-scrim[hidden],
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-accessible-list[hidden] { display: none !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-overview-drawer { top: 0 !important; right: 0 !important; bottom: 0 !important; width: min(560px, 92vw) !important; border-width: 0 0 0 1px !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-filter-drawer { top: 0 !important; left: 0 !important; bottom: 0 !important; width: min(500px, 92vw) !important; border-width: 0 1px 0 0 !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-detail-sheet { left: 50% !important; right: auto !important; bottom: 14px !important; width: min(900px, calc(100% - 28px)) !important; max-height: min(64vh, 580px) !important; transform: translateX(-50%) !important; border-radius: 14px !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-drawer-head { display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 12px !important; min-height: 72px !important; padding: 14px 16px !important; border-bottom: 1px solid var(--tl-line) !important; background: rgba(7,11,10,.82) !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-drawer-head h3 { margin-top: 4px !important; color: var(--tl-paper) !important; font: 600 1.65rem/.95 var(--br-display, Georgia, serif) !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-drawer-close { width: 36px !important; height: 36px !important; border: 1px solid var(--tl-line) !important; border-radius: 8px !important; color: var(--tl-brass) !important; background: transparent !important; cursor: pointer !important; font-size: 20px !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-drawer-body { min-height: 0 !important; overflow: auto !important; padding: 14px !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-atlas { display: block !important; min-width: 0 !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-atlas-hero,
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-atlas-side,
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-sidebar-shell,
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tli-shell { border: 1px solid var(--tl-line) !important; border-radius: 12px !important; background: rgba(16,25,22,.64) !important; box-shadow: none !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-atlas-hero { padding: 16px !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-atlas-hero h3,
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tli-shell h3 { color: var(--tl-paper) !important; font-family: var(--br-display, Georgia, serif) !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-atlas-side { margin-top: 10px !important; padding: 12px !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-nav-hero { border-bottom-color: var(--tl-line) !important; background: transparent !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-nav-title-row h3,
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-nav-hero h3 { color: var(--tl-paper) !important; font-family: var(--br-display, Georgia, serif) !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-sidebar { min-height: 0 !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-sidebar-shell { border: 0 !important; background: transparent !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-nav-details { border-top-color: var(--tl-line) !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-nav-details summary,
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-nav-section-head { color: var(--tl-paper-soft) !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-tile,
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-mode-btn,
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-chip { border-color: var(--tl-line) !important; background: rgba(7,11,10,.38) !important; color: var(--tl-paper-soft) !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-tile.act,
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-mode-btn.act,
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-chip.act { border-color: var(--tl-brass) !important; background: rgba(223,189,123,.12) !important; }

body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-accessible-list { min-height: 0 !important; overflow: auto !important; padding: 12px !important; border: 1px solid var(--tl-line) !important; border-radius: 12px !important; background: rgba(16,25,22,.82) !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY.tl-list-open .tl-stage { display: none !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY.tl-list-open .tl-accessible-list { display: block !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-list-head { display: flex !important; justify-content: space-between !important; align-items: end !important; padding-bottom: 10px !important; border-bottom: 1px solid var(--tl-line) !important; color: var(--tl-muted) !important; font-size: 10px !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-list-head h3 { margin-top: 4px !important; color: var(--tl-paper) !important; font: 600 1.5rem/.95 var(--br-display, Georgia, serif) !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-list-items { display: grid !important; gap: 5px !important; padding: 10px 0 0 24px !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-list-items button { display: grid !important; grid-template-columns: 150px minmax(0, 1fr) !important; gap: 8px !important; width: 100% !important; padding: 9px 10px !important; border: 1px solid transparent !important; border-radius: 8px !important; color: var(--tl-paper-soft) !important; background: transparent !important; text-align: left !important; cursor: pointer !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-list-items button:hover,
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-list-items button:focus-visible { border-color: var(--tl-line-strong) !important; background: rgba(223,189,123,.08) !important; outline: none !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-list-year { color: var(--tl-brass) !important; font: 700 9px var(--tl-mono) !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-list-items strong { overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; font-size: 12px !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-list-items small { grid-column: 2 !important; overflow: hidden !important; color: var(--tl-muted) !important; text-overflow: ellipsis !important; white-space: nowrap !important; font-size: 10px !important; }

body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY :focus-visible { outline: 2px solid var(--tl-brass) !important; outline-offset: 2px !important; }
body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-data-state { inset: 20% 20% auto !important; border: 1px solid var(--tl-line-strong) !important; border-radius: 12px !important; color: var(--tl-paper) !important; background: rgba(12,18,16,.96) !important; }

@media (max-width: 880px) {
  body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-head { grid-template-columns: 150px minmax(0, 1fr) auto !important; gap: 10px !important; }
  body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-layer-btn { padding: 0 8px !important; }
  body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-context-chip { flex-basis: 190px !important; }
}

@media (max-width: 640px) {
  body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY { border-radius: 0 !important; }
  body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-head { grid-template-columns: minmax(0, 1fr) auto !important; grid-template-areas: "title actions" "controls controls" !important; min-height: 118px !important; padding: 10px !important; }
  body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-title-wrap h2 { font-size: 1.9rem !important; }
  body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-head-actions { gap: 4px !important; }
  body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-head-actions .tl-layer-btn { min-width: 40px !important; padding: 0 7px !important; font-size: 0 !important; }
  body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-head-actions .tl-layer-btn::before { content: "⌘"; font-size: 14px; }
  body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-head-actions #tlFilterToggle::before { content: "≡"; }
  body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-commandbar { grid-template-columns: 1fr !important; }
  body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-ribbon { min-height: 76px !important; padding: 6px 10px !important; }
  body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tlr-summary-strip { grid-template-columns: repeat(3, minmax(0,1fr)) !important; gap: 4px !important; }
  body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tlr-summary-item { padding: 5px 6px !important; }
  body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tlr-summary-item strong { font-size: 10px !important; }
  body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-stage-shell { padding: 8px !important; gap: 7px !important; }
  body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-console-head { align-items: start !important; }
  body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-stage-copy strong { font-size: 1.08rem !important; }
  body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-stage-btn { width: 32px !important; height: 32px !important; }
  body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-console-window { display: grid !important; gap: 3px !important; }
  body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-context-chip { flex-basis: 170px !important; }
  body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-overview-drawer,
  body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-filter-drawer { top: auto !important; right: 0 !important; left: 0 !important; bottom: 0 !important; width: 100% !important; max-height: 82vh !important; border-width: 1px 0 0 !important; border-radius: 16px 16px 0 0 !important; }
  body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-detail-sheet { left: 0 !important; right: 0 !important; bottom: 0 !important; width: 100% !important; max-height: 82vh !important; transform: none !important; border-width: 1px 0 0 !important; border-radius: 16px 16px 0 0 !important; }
  body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-list-items button { grid-template-columns: 1fr !important; gap: 3px !important; }
  body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-list-items small { grid-column: 1 !important; }
}

@media (prefers-reduced-motion: reduce) {
  body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY *,
  body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY *::before,
  body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Final cascade guard for legacy inline mobile selectors. */
html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-controls { display: block !important; }
html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-focus-dock,
html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-scene-strip { display: none !important; }
html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-nearby > header { font-size: 11px !important; }
html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-stage-shell { grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: auto minmax(0, 1fr) !important; }
html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-stage-meta { grid-column: 1 !important; grid-row: 1 !important; }
html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-stage { grid-column: 1 !important; grid-row: 2 !important; }
@media (max-width: 640px) {
  html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-head { min-height: 104px !important; }
  html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-ribbon { height: 62px !important; min-height: 62px !important; max-height: 62px !important; overflow: hidden !important; }
  html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tlr-summary-strip { height: 50px !important; }
}

/* -------------------------------------------------------------------------
   Timeline Focus v3 — the axis is the product
   This layer removes the card-stack feeling from Focus v2. The status ribbon
   answers “what is active?”, the console answers “what am I looking at?”, and
   the canvas owns the remaining visual weight.
   ------------------------------------------------------------------------- */
html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY {
  --tl-surface-0: #080b0a;
  --tl-surface-1: #0d1210;
  --tl-surface-2: #121916;
  --tl-surface-3: #18211c;
  --tl-brass-soft: rgba(223,189,123,.14);
  --tl-brass-line: rgba(223,189,123,.28);
  background:
    radial-gradient(circle at 78% 18%, rgba(223,189,123,.07), transparent 30rem),
    linear-gradient(180deg, #080b0a 0%, #0a0f0d 100%) !important;
}

html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY::before {
  opacity: .11 !important;
  background-image: linear-gradient(rgba(255,255,255,.014) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.009) 1px, transparent 1px) !important;
  background-size: 48px 48px !important;
  mask-image: linear-gradient(180deg, black 0%, transparent 74%) !important;
}

html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-head {
  min-height: 68px !important;
  padding: 11px 18px !important;
  gap: 22px !important;
  border-bottom-color: rgba(223,189,123,.2) !important;
  background: rgba(7,10,9,.94) !important;
}
html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-title-wrap h2 {
  letter-spacing: -.04em !important;
  font-size: clamp(1.72rem, 2.4vw, 2.65rem) !important;
}
html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-sub { max-width: 28rem !important; }

html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-ribbon {
  min-height: 56px !important;
  padding: 6px 16px !important;
  border-bottom: 1px solid rgba(223,189,123,.19) !important;
  background: #0b100e !important;
}
html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tlr-summary-strip {
  grid-template-columns: minmax(180px, .9fr) minmax(260px, 1.15fr) minmax(270px, 1.35fr) !important;
  gap: 0 !important;
  height: 100% !important;
}
html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tlr-summary-item {
  display: grid !important;
  align-content: center !important;
  gap: 3px !important;
  min-width: 0 !important;
  padding: 5px 18px !important;
  border: 0 !important;
  border-left: 1px solid rgba(223,189,123,.18) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tlr-summary-item:first-child { border-left: 2px solid var(--tl-brass) !important; padding-left: 14px !important; }
html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tlr-k {
  color: var(--tl-faint) !important;
  font-size: 8px !important;
  letter-spacing: .16em !important;
}
html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tlr-summary-item strong {
  color: var(--tl-paper) !important;
  font-size: 13px !important;
  letter-spacing: -.01em !important;
}
html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tlr-p { color: var(--tl-muted) !important; font-size: 10px !important; }

html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-stage-shell {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto minmax(300px, 1fr) !important;
  gap: 10px !important;
  padding: 12px 14px 14px !important;
  background: transparent !important;
}
html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-stage-meta {
  grid-column: 1 !important;
  grid-row: 1 !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  display: block !important;
  overflow: visible !important;
  padding: 0 !important;
}
html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-axis-console {
  display: grid !important;
  gap: 6px !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 8px 12px 6px !important;
  border: 1px solid var(--tl-brass-line) !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, rgba(20,29,24,.96), rgba(11,16,14,.96)) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.045), 0 12px 34px rgba(0,0,0,.16) !important;
}
html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-console-head {
  min-height: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  align-items: center !important;
}
html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-stage-copy {
  display: flex !important;
  align-items: baseline !important;
  gap: 10px !important;
  min-width: 0 !important;
  overflow: hidden !important;
}
html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-stage-copy > span { color: var(--tl-brass) !important; font-size: 8px !important; letter-spacing: .17em !important; }
html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-stage-copy strong {
  color: var(--tl-paper) !important;
  font-size: clamp(1.24rem, 2vw, 1.72rem) !important;
  line-height: 1 !important;
}
html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-stage-copy small { color: var(--tl-muted) !important; font-size: 10px !important; }
html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-stage-copy small { overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; }
html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-stage-actions { gap: 6px !important; }
html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-stage-btn {
  width: 36px !important;
  height: 36px !important;
  border-color: rgba(223,189,123,.22) !important;
  border-radius: 9px !important;
  background: rgba(7,11,10,.64) !important;
  color: var(--tl-muted) !important;
}
html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-stage-btn:hover,
html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-stage-btn:focus-visible,
html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-stage-btn.act {
  color: var(--tl-ink-950) !important;
  border-color: var(--tl-brass-strong) !important;
  background: var(--tl-brass-strong) !important;
}
html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-axis-summary {
  display: grid !important;
  grid-template-columns: minmax(250px, 1.35fr) minmax(250px, 1fr) auto !important;
  grid-template-rows: auto !important;
  grid-auto-flow: column !important;
  gap: 8px !important;
  align-items: center !important;
  min-height: 0 !important;
  padding-top: 5px !important;
  border-top: 1px solid rgba(223,189,123,.13) !important;
}
html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-axis-summary > .tl-console-window { grid-column: 1 !important; grid-row: 1 !important; }
html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-axis-summary > .tl-axis-legend { grid-column: 2 !important; grid-row: 1 !important; }
html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-axis-summary > .tl-reader-bridge { grid-column: 3 !important; grid-row: 1 !important; }
html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-console-window {
  display: grid !important;
  grid-template-columns: max-content minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  min-width: 0 !important;
  gap: 2px 8px !important;
  margin: 0 !important;
  padding: 0 0 0 11px !important;
  border-left: 2px solid var(--tl-brass) !important;
  background: transparent !important;
}
html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-console-window span,
html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-axis-legend span,
html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-reader-bridge span {
  color: var(--tl-faint) !important;
  font: 700 8px/1.2 var(--tl-mono) !important;
  letter-spacing: .13em !important;
  text-transform: uppercase !important;
}
html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-console-window strong {
  overflow: hidden !important;
  color: var(--tl-paper) !important;
  font: 600 13px/1.15 var(--tl-mono) !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-console-window small { grid-column: 1 / -1 !important; overflow: hidden !important; color: var(--tl-muted) !important; font-size: 10px !important; text-overflow: ellipsis !important; white-space: nowrap !important; }
html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-axis-legend {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px 14px !important;
  align-items: center !important;
}
html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-axis-legend span {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: var(--tl-muted) !important;
  font-size: 9px !important;
  letter-spacing: .02em !important;
  text-transform: none !important;
}
html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-axis-legend i { display: block !important; width: 9px !important; height: 9px !important; border-radius: 50% !important; border: 1px solid var(--tl-muted) !important; }
html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-axis-legend .marker-active { background: var(--tl-brass-strong) !important; border-color: var(--tl-brass-strong) !important; box-shadow: 0 0 9px rgba(240,213,156,.5) !important; }
html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-axis-legend .marker-event { background: rgba(232,223,206,.45) !important; }
html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-axis-legend .marker-range { width: 16px !important; height: 5px !important; border-radius: 3px !important; background: rgba(223,189,123,.28) !important; border-color: var(--tl-brass) !important; }
html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-reader-bridge {
  display: grid !important;
  min-width: 116px !important;
  height: auto !important;
  max-height: none !important;
  min-height: 34px !important;
  gap: 3px !important;
  padding: 8px 11px !important;
  border: 1px solid rgba(141,210,192,.28) !important;
  border-radius: 8px !important;
  color: var(--tl-paper) !important;
  background: rgba(141,210,192,.07) !important;
  text-align: left !important;
  cursor: pointer !important;
}
html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-reader-bridge:hover,
html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-reader-bridge:focus-visible { border-color: var(--tl-focus) !important; background: rgba(141,210,192,.14) !important; outline: none !important; }
html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-reader-bridge b { overflow: hidden !important; color: var(--tl-focus) !important; font: 700 10px var(--tl-mono) !important; text-overflow: ellipsis !important; white-space: nowrap !important; }
html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-nearby { display: grid !important; grid-template-rows: 13px 31px !important; height: 44px !important; margin-top: 0 !important; padding-top: 3px !important; border-top: 1px solid rgba(223,189,123,.11) !important; }
html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-nearby > header { height: 13px !important; min-height: 13px !important; margin: 0 !important; padding: 0 !important; color: var(--tl-muted) !important; font-size: 11px !important; line-height: 1 !important; }
html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-nearby > header span { color: var(--tl-paper-soft) !important; letter-spacing: .08em !important; }
html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-context-rail { height: 31px !important; min-height: 31px !important; gap: 8px !important; padding: 1px 0 0 !important; }
html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-context-chip {
  flex: 0 0 min(232px, 24vw) !important;
  min-height: 30px !important;
  height: 30px !important;
  padding: 4px 9px !important;
  border-color: rgba(223,189,123,.17) !important;
  border-radius: 7px !important;
  background: rgba(7,11,10,.48) !important;
}
html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-context-chip:hover,
html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-context-chip:focus-visible { border-color: var(--tl-brass) !important; background: rgba(223,189,123,.1) !important; outline: 2px solid rgba(223,189,123,.12) !important; }
html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-context-chip span { color: var(--tl-brass) !important; font-size: 8px !important; }
html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-context-chip strong { margin-top: 3px !important; color: var(--tl-paper-soft) !important; font-size: 11px !important; }
html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-context-chip small { margin-top: 1px !important; color: var(--tl-muted) !important; font-size: 11px !important; line-height: 1 !important; }
html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-depthline { display: none !important; }

html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-stage {
  grid-column: 1 !important;
  grid-row: 2 !important;
  min-height: 0 !important;
  height: 100% !important;
  border: 1px solid rgba(223,189,123,.26) !important;
  border-radius: 15px !important;
  background: #060908 !important;
  box-shadow: inset 0 1px rgba(255,255,255,.055), 0 18px 50px rgba(0,0,0,.28) !important;
}
html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-stage::before {
  content: "ZEIT · HISTORISCHER KONTEXT";
  position: absolute;
  top: 12px;
  left: 18px;
  z-index: 2;
  color: rgba(223,189,123,.7);
  font: 700 8px/1 var(--tl-mono);
  letter-spacing: .17em;
  pointer-events: none;
}
html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-canvas-wrap { background: linear-gradient(180deg, #0e1512, #070b09) !important; }
html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY #tlCanvas { width: 100% !important; height: 100% !important; }

@media (max-width: 880px) {
  html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-axis-summary { grid-template-columns: minmax(210px, 1fr) minmax(190px, 1fr) !important; }
  html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-reader-bridge { grid-column: 1 / -1 !important; grid-row: 2 !important; justify-self: start !important; }
  html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tlr-summary-item { padding-inline: 11px !important; }
}

@media (max-width: 640px) {
  html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-head { min-height: 106px !important; padding: 10px !important; gap: 8px !important; }
  html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-ribbon { height: 72px !important; min-height: 72px !important; max-height: none !important; padding: 7px 10px !important; overflow: visible !important; }
  html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tlr-summary-strip { height: 100% !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tlr-summary-item { padding: 4px 7px !important; border-left-width: 1px !important; }
  html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tlr-summary-item:first-child { padding-left: 7px !important; }
  html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tlr-summary-item strong { font-size: 10px !important; }
  html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tlr-p { overflow: hidden !important; font-size: 8px !important; text-overflow: ellipsis !important; white-space: nowrap !important; }
  html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-stage-shell { grid-template-rows: auto minmax(270px, 1fr) !important; gap: 9px !important; padding: 9px !important; overflow: auto !important; }
  html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-axis-console { gap: 6px !important; padding: 9px 10px 7px !important; border-radius: 11px !important; }
  html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-console-head { min-height: 36px !important; height: 36px !important; align-items: flex-start !important; }
  html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-stage-copy { display: grid !important; align-items: start !important; gap: 4px !important; }
  html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-stage-copy strong { font-size: 1.12rem !important; }
  html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-stage-actions { gap: 3px !important; }
  html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-stage-btn { width: 31px !important; height: 31px !important; font-size: 13px !important; }
  html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-axis-summary { grid-template-columns: 1fr !important; grid-template-rows: auto auto !important; grid-auto-flow: row !important; gap: 6px !important; padding-top: 6px !important; }
  html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-axis-summary > .tl-console-window,
  html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-axis-summary > .tl-reader-bridge { grid-column: 1 !important; }
  html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-axis-summary > .tl-console-window { grid-row: 1 !important; }
  html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-axis-summary > .tl-reader-bridge { grid-row: 2 !important; width: 100% !important; }
  html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-axis-summary > .tl-axis-legend { display: none !important; }
  html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-axis-summary > .tl-reader-bridge { min-height: 31px !important; padding: 4px 9px !important; }
  html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-nearby { grid-template-rows: 16px 34px !important; height: 50px !important; padding-top: 4px !important; }
  html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-nearby > header { height: 16px !important; min-height: 16px !important; }
  html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-context-rail { height: 34px !important; min-height: 34px !important; padding-top: 1px !important; }
  html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-context-chip { min-height: 32px !important; height: 32px !important; padding: 5px 8px !important; }
  html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-context-chip small { display: none !important; }
  html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-nearby { min-width: 0 !important; }
  html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-context-chip { flex-basis: 172px !important; }
  html body.uw-active .app[data-active-mode="timeline"] #TIMELINE_OVERLAY .tl-stage::before { top: 9px; left: 12px; font-size: 7px; }
}
