/* Reversible local preview: timeline, restrained HUD lighting, and live handoff progress. */
.rotation-panel {
  --hud-blue: #72c7ff;
  position: relative;
  overflow: hidden;
  margin: 0 0 14px;
  padding: 16px 18px 13px;
  border-color: rgba(78, 112, 141, .58);
  background:
    radial-gradient(ellipse at 8% 0%, rgba(67, 156, 206, .105), transparent 48%),
    linear-gradient(145deg, rgba(18, 28, 39, .99), rgba(12, 18, 26, .99));
  box-shadow: 0 16px 38px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .03);
}

.rotation-heading,
.rotation-heading-copy,
.rotation-controls,
.rotation-zoom,
.timeline-readout,
.timeline-inspector,
.timeline-inspector-actions {
  display: flex;
  align-items: center;
}

.rotation-heading { justify-content: space-between; gap: 20px; }
.rotation-heading-copy { display: block; min-width: 0; }
.rotation-heading-copy .eyebrow { margin-bottom: 3px; color: #79cfff; }
.rotation-heading-copy h2 { margin: 0; font-size: 19px; line-height: 1.25; }
.rotation-help { margin: 5px 0 0; color: #a7b6c4; font-size: 11px; line-height: 1.45; }
.rotation-controls { justify-content: flex-end; flex-wrap: wrap; gap: 7px; }
.rotation-zoom { gap: 3px; padding: 3px; border: 1px solid rgba(130, 158, 184, .18); border-radius: 9px; background: rgba(3, 8, 13, .42); }
.rotation-zoom button,
.timeline-now-button,
.timeline-collapse,
.timeline-action-button,
.timeline-inspector-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #b2c0cd;
  background: transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: color .16s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.rotation-zoom button:hover,
.timeline-collapse:hover,
.timeline-inspector-close:hover { color: #eff7ff; background: rgba(255, 255, 255, .06); }
.rotation-zoom button:active,
.timeline-now-button:active,
.timeline-collapse:active,
.timeline-action-button:active,
.timeline-inspector-close:active { transform: scale(.97); }
.rotation-zoom button:focus-visible,
.timeline-now-button:focus-visible,
.timeline-collapse:focus-visible,
.timeline-action-button:focus-visible,
.timeline-inspector-close:focus-visible { outline: 2px solid rgba(114, 199, 255, .88); outline-offset: 2px; }
.rotation-zoom button[aria-pressed="true"] { border-color: rgba(114, 199, 255, .37); color: #eef8ff; background: rgba(62, 151, 204, .2); box-shadow: inset 0 -1px 0 rgba(114, 199, 255, .52), 0 0 12px rgba(58, 161, 222, .08); }
.timeline-now-button { border-color: rgba(114, 199, 255, .34); color: #ccecff; background: rgba(54, 146, 198, .13); }
.timeline-now-button:hover { border-color: rgba(114, 199, 255, .6); background: rgba(54, 146, 198, .24); }
.timeline-now-button:not([hidden]) { display: inline-flex; }
.timeline-collapse { gap: 8px; border-color: rgba(130, 158, 184, .19); }
.timeline-chevron { width: 7px; height: 7px; flex: 0 0 auto; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s ease; }
.timeline-collapse[aria-expanded="false"] .timeline-chevron,
.timeline-inspector-close[aria-expanded="false"] .timeline-chevron { transform: rotate(225deg) translate(-1px, -1px); }

.timeline-readout { min-height: 30px; gap: 9px; margin: 10px 1px 5px; color: #98a8b7; font-size: 10px; font-variant-numeric: tabular-nums; }
.timeline-cursor-label { display: inline-flex; align-items: center; gap: 7px; color: #d1eafa; font-weight: 800; }
.timeline-cursor-label i { width: 7px; height: 7px; border-radius: 50%; background: var(--hud-blue); box-shadow: 0 0 9px rgba(114, 199, 255, .55); }
.timeline-cursor-label.is-browsing { color: #ffd18a; }
.timeline-cursor-label.is-browsing i { background: #ffc36e; box-shadow: 0 0 8px rgba(255, 185, 92, .45); }
#timeline-cursor-time { color: #f0f7fd; font-size: 13px; font-weight: 800; }
#timeline-cursor-time.is-precision { color: #c4edff; font-size: 15px; text-shadow: 0 0 12px rgba(87, 189, 246, .32); }
.timeline-readout-divider { width: 1px; height: 13px; background: rgba(160, 184, 205, .24); }
#timeline-range-label { margin-left: auto; color: #9cabb9; text-align: right; }

.timeline-tools-row { position: relative; z-index: 8; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 3px 1px 8px; }
.timeline-date-jump { display: grid; grid-template-columns: max-content minmax(180px, 240px); align-items: center; gap: 4px 10px; min-width: 0; }
.timeline-date-jump > label { color: #d9e8f3; font-size: 11px; font-weight: 750; line-height: 1.2; }
.timeline-date-control { display: grid; grid-template-columns: minmax(0, 1fr) max-content; gap: 6px; min-width: 0; }
.timeline-date-control input { box-sizing: border-box; width: 100%; min-width: 0; min-height: 36px; padding: 6px 9px; border: 1px solid rgba(119, 158, 186, .3); border-radius: 7px; color: #e7f2fa; color-scheme: dark; background: rgba(5, 11, 17, .58); font: 650 12px/1.2 ui-monospace, Consolas, monospace; font-variant-numeric: tabular-nums; }
.timeline-date-control input:hover { border-color: rgba(114, 199, 255, .48); }
.timeline-date-control input:focus-visible { outline: 2px solid rgba(114, 199, 255, .8); outline-offset: 2px; }
.timeline-date-submit { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 56px; min-height: 36px; padding: 7px 11px; border: 1px solid rgba(127, 157, 180, .24); border-radius: 7px; color: #c4d4e0; background: rgba(255, 255, 255, .025); font: inherit; font-size: 11px; font-weight: 700; line-height: 1.2; text-align: center; white-space: nowrap; cursor: pointer; transition: color .16s ease, background-color .16s ease, border-color .16s ease; }
.timeline-date-submit:hover:not(:disabled) { border-color: rgba(114, 199, 255, .4); color: #e5f5ff; background: rgba(59, 139, 183, .1); }
.timeline-date-submit:active:not(:disabled) { color: #f2f9ff; background: rgba(59, 139, 183, .17); }
.timeline-date-submit:focus-visible, .timeline-keyboard-help summary:focus-visible { outline: 2px solid rgba(114, 199, 255, .86); outline-offset: 2px; }
.timeline-date-submit:disabled { border-color: rgba(129, 151, 169, .13); color: #697887; background: rgba(255, 255, 255, .018); cursor: not-allowed; }
.timeline-date-help { grid-column: 2; color: #8fa3b4; font-size: 10px; line-height: 1.25; }
.timeline-keyboard-help { position: relative; flex: 0 0 auto; color: #c6d6e2; }
.timeline-keyboard-help summary { display: inline-flex; align-items: center; justify-content: center; gap: 7px; box-sizing: border-box; min-height: 36px; padding: 6px 11px; border: 1px solid rgba(127, 157, 180, .23); border-radius: 7px; color: #c4d4e0; background: rgba(255, 255, 255, .025); font-size: 11px; font-weight: 750; line-height: 1.2; list-style: none; cursor: pointer; transition: color .16s ease, border-color .16s ease, background-color .16s ease; }
.timeline-keyboard-help summary::-webkit-details-marker { display: none; }
.timeline-keyboard-help summary:hover, .timeline-keyboard-help[open] summary { border-color: rgba(114, 199, 255, .42); color: #e5f5ff; background: rgba(59, 139, 183, .12); }
.timeline-keyboard-help summary > span { color: #81cefa; font-size: 14px; }
.timeline-keyboard-shortcuts { position: absolute; z-index: 12; top: calc(100% + 7px); right: 0; display: grid; gap: 3px; box-sizing: border-box; width: min(390px, calc(100vw - 48px)); padding: 10px; border: 1px solid rgba(113, 166, 199, .38); border-radius: 9px; background: rgba(11, 19, 28, .98); box-shadow: 0 12px 30px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .04); }
.timeline-keyboard-shortcuts p { display: grid; grid-template-columns: max-content max-content minmax(0, 1fr); align-items: center; gap: 4px; min-height: 26px; margin: 0; color: #b9c9d6; font-size: 10px; line-height: 1.35; }
.timeline-keyboard-shortcuts p span { margin-left: 6px; }
.timeline-keyboard-shortcuts kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 23px; min-height: 21px; padding: 2px 5px; border: 1px solid rgba(133, 166, 189, .26); border-radius: 4px; color: #e2edf5; background: rgba(255, 255, 255, .055); font: 700 9px/1 ui-monospace, Consolas, monospace; white-space: nowrap; }

.timeline-stage {
  position: relative;
  isolation: isolate;
  height: 136px;
  overflow: hidden;
  border: 1px solid rgba(119, 155, 182, .34);
  border-radius: 10px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(74, 139, 180, .105), transparent 70%),
    linear-gradient(180deg, rgba(7, 13, 19, .62), rgba(8, 13, 19, .9)),
    repeating-linear-gradient(90deg, rgba(113, 149, 176, .028) 0 1px, transparent 1px 40px);
  box-shadow: inset 0 1px 0 rgba(238, 249, 255, .065), inset 0 -9px 20px rgba(0, 0, 0, .13), 0 5px 14px rgba(0, 0, 0, .13);
  cursor: grab;
  touch-action: pan-y pinch-zoom;
  user-select: none;
  -webkit-user-select: none;
}

.timeline-stage::before { position: absolute; z-index: 5; inset: 0; border: 1px solid rgba(220, 241, 255, .025); border-radius: inherit; box-shadow: inset 0 8px 14px rgba(146, 196, 225, .025); content: ""; pointer-events: none; }
.timeline-stage:focus-visible { outline: 2px solid rgba(114, 199, 255, .82); outline-offset: 2px; }
.timeline-stage.is-dragging { cursor: grabbing; border-color: rgba(114, 199, 255, .66); background-color: rgba(38, 87, 118, .09); box-shadow: inset 0 0 0 1px rgba(114, 199, 255, .14), 0 0 18px rgba(72, 171, 224, .11); }
.timeline-stage.is-following .timeline-track { transition: none; }
.timeline-track { position: absolute; z-index: 0; inset: 12px 0 22px; will-change: transform; transition: transform .24s cubic-bezier(.2, .75, .25, 1); }
.timeline-stage.is-dragging .timeline-track { transition: none; }
.timeline-scale { position: absolute; inset: 0 0 auto; height: 37px; border-bottom: 1px solid rgba(123, 156, 183, .24); }
.timeline-scale-mark { position: absolute; top: 0; width: 1px; height: 9px; background: rgba(151, 178, 199, .3); }
.timeline-scale-mark.is-minute { height: 3px; background: rgba(145, 180, 204, .25); }
.timeline-scale-mark.is-five { height: 7px; background: rgba(151, 187, 212, .42); }
.timeline-scale-mark.is-quarter { height: 5px; background: rgba(133, 161, 185, .18); }
.timeline-scale-mark.is-hour { height: 16px; background: rgba(172, 205, 228, .53); box-shadow: 0 2px 4px rgba(114, 199, 255, .08); }
.timeline-scale-mark.is-major { height: 23px; background: rgba(114, 199, 255, .88); box-shadow: 0 0 7px rgba(83, 180, 235, .39); }
.timeline-scale-mark.is-day { width: 2px; background: linear-gradient(180deg, rgba(188, 228, 251, .88), rgba(114, 199, 255, .46)); box-shadow: 0 0 8px rgba(92, 185, 236, .38); }
.timeline-scale-label { position: absolute; top: 20px; box-sizing: border-box; padding: 2px 4px; border: 1px solid rgba(119, 159, 186, .2); border-radius: 4px; color: #c8d9e6; background: rgba(7, 13, 19, .88); font: 10px/1 ui-monospace, SFMono-Regular, Consolas, monospace; text-align: center; transform: translateX(-50%); white-space: nowrap; }
.timeline-scale-date { position: absolute; top: 3px; padding: 2px 4px; border: 1px solid rgba(119, 159, 186, .15); border-radius: 4px; color: #a9c0d0; background: rgba(7, 13, 19, .78); font: 700 9px/1 ui-monospace, Consolas, monospace; transform: translateX(4px); white-space: nowrap; }
.timeline-lane { position: absolute; top: 48px; right: 0; left: 0; height: 44px; }
.timeline-event-placeholder { position: absolute; top: 0; box-sizing: border-box; height: 44px; overflow: hidden; border: 1px solid rgba(130, 151, 169, .13); border-right-color: rgba(130, 151, 169, .09); background: linear-gradient(180deg, rgba(106, 125, 142, .055), rgba(18, 27, 36, .04)); pointer-events: none; }
.timeline-event-placeholder.is-current { border-bottom: 2px solid rgba(114, 199, 255, .52); background: linear-gradient(180deg, rgba(87, 139, 172, .09), rgba(18, 27, 36, .04)); }

.timeline-event {
  --event-color: #929eab;
  --grade-border-fade: 78%;
  --grade-fill-top-fade: 89%;
  --grade-fill-bottom-fade: 96%;
  --grade-inset-fade: 76%;
  --grade-glow: 0px;
  --grade-glow-fade: 100%;
  position: absolute;
  z-index: 2;
  top: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 44px;
  overflow: hidden;
  padding: 2px 3px;
  border: 1px solid color-mix(in srgb, var(--event-color), transparent var(--grade-border-fade));
  border-right-color: color-mix(in srgb, var(--event-color), transparent calc(var(--grade-border-fade) + 8%));
  color: color-mix(in srgb, var(--event-color), white 24%);
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--event-color), transparent var(--grade-fill-top-fade)),
    color-mix(in srgb, var(--event-color), transparent var(--grade-fill-bottom-fade)));
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--event-color), transparent var(--grade-inset-fade)),
    0 0 var(--grade-glow) color-mix(in srgb, var(--event-color), transparent var(--grade-glow-fade));
  font: 800 12px/1.1 "Microsoft YaHei", sans-serif;
  text-align: center;
  text-overflow: clip;
  white-space: nowrap;
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease, filter .16s ease, transform .16s cubic-bezier(.2, 1.25, .35, 1);
}

.timeline-event:first-child { border-radius: 6px 0 0 6px; }
.timeline-event:last-child { border-right-color: color-mix(in srgb, var(--event-color), transparent var(--grade-border-fade)); border-radius: 0 6px 6px 0; }
.timeline-event-label {
  color: #f0f6fb;
  font-weight: 800;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .9);
  -webkit-text-stroke: .12px rgba(3, 8, 13, .68);
}
.timeline-event-glint { position: absolute; z-index: 1; top: -25%; bottom: -25%; left: -42%; width: 35%; opacity: 0; background: linear-gradient(105deg, transparent 0%, rgba(238, 250, 255, .03) 22%, rgba(231, 248, 255, .45) 50%, rgba(238, 250, 255, .03) 78%, transparent 100%); filter: blur(1px); pointer-events: none; }
.timeline-event:hover,
.timeline-event:focus-visible,
.timeline-event.is-previewed {
  z-index: 4;
  border-color: color-mix(in srgb, var(--event-color), white 10%);
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--event-color), transparent calc(var(--grade-fill-top-fade) - 11%)),
    color-mix(in srgb, var(--event-color), transparent calc(var(--grade-fill-bottom-fade) - 7%)));
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--event-color), white 19%),
    0 0 0 1px rgba(216, 239, 255, .12),
    0 0 calc(var(--grade-glow) + 5px) color-mix(in srgb, var(--event-color), transparent 75%);
  filter: brightness(1.08);
  outline: none;
  transform: translateY(-1px);
}
.timeline-event.is-current { box-shadow: inset 0 -2px 0 var(--event-color); }
.timeline-event.is-subscribed::after { position: absolute; z-index: 2; top: 3px; right: 3px; width: 5px; height: 5px; border: 1px solid rgba(4, 24, 18, .82); border-radius: 50%; background: #54efb2; box-shadow: 0 0 7px rgba(64, 237, 173, .8); content: ""; pointer-events: none; }
.timeline-event.is-compact { padding: 0; }
.timeline-event.is-compact .timeline-event-label { display: block; max-width: 100%; font-size: 9px; font-weight: 800; line-height: 1; white-space: nowrap; }
.timeline-event.is-micro .timeline-event-label { width: 8px; max-width: 8px; overflow: hidden; font-size: 8px; font-weight: 780; line-height: .98; white-space: normal; overflow-wrap: anywhere; word-break: break-all; }
/* Stack compact two-character abbreviations instead of clipping them on narrow screens. */
.timeline-event.is-narrow .timeline-event-label { width: auto; max-width: none; overflow: visible; font-size: 9px; font-weight: 800; line-height: 1; white-space: normal; writing-mode: vertical-rl; text-orientation: upright; overflow-wrap: normal; word-break: keep-all; }

/* The five ranked tiers step down in brightness and glow; Special stays plain. */
.timeline-event.grade-s { --event-color: #32eff4; --grade-border-fade: 9%; --grade-fill-top-fade: 54%; --grade-fill-bottom-fade: 79%; --grade-inset-fade: 22%; --grade-glow: 20px; --grade-glow-fade: 43%; color: #c6fdff; }
.timeline-event.grade-a { --event-color: #2cf0a7; --grade-border-fade: 20%; --grade-fill-top-fade: 65%; --grade-fill-bottom-fade: 84%; --grade-inset-fade: 34%; --grade-glow: 14px; --grade-glow-fade: 55%; color: #c0ffe4; }
.timeline-event.grade-b { --event-color: #f4df54; --grade-border-fade: 34%; --grade-fill-top-fade: 76%; --grade-fill-bottom-fade: 90%; --grade-inset-fade: 47%; --grade-glow: 8px; --grade-glow-fade: 67%; color: #fff5b2; }
.timeline-event.grade-c { --event-color: #ff9e3d; --grade-border-fade: 49%; --grade-fill-top-fade: 84%; --grade-fill-bottom-fade: 94%; --grade-inset-fade: 61%; --grade-glow: 4px; --grade-glow-fade: 80%; color: #ffd09c; }
.timeline-event.grade-d { --event-color: #f47736; --grade-border-fade: 63%; --grade-fill-top-fade: 91%; --grade-fill-bottom-fade: 97%; --grade-inset-fade: 73%; --grade-glow: 1px; --grade-glow-fade: 90%; color: #ffc09e; }
.timeline-event.grade-special { --event-color: #bb83ff; --grade-border-fade: 78%; --grade-fill-top-fade: 89%; --grade-fill-bottom-fade: 96%; --grade-inset-fade: 76%; --grade-glow: 0px; --grade-glow-fade: 100%; color: #ddc1ff; }
.timeline-event.grade-unrated { --event-color: #8291a1; --grade-border-fade: 79%; --grade-fill-top-fade: 94%; --grade-fill-bottom-fade: 98%; --grade-inset-fade: 87%; color: #bdc9d4; }

.timeline-inspection-marker,
.timeline-actual-marker,
.timeline-selection-marker { position: absolute; top: 3px; bottom: 18px; width: 1px; pointer-events: none; }
.timeline-inspection-marker { z-index: 3; left: 50%; background: linear-gradient(180deg, rgba(114, 199, 255, .08), rgba(114, 199, 255, .92) 26%, rgba(114, 199, 255, .68) 83%, rgba(114, 199, 255, .04)); box-shadow: 0 0 8px rgba(92, 182, 235, .2); }
.timeline-inspection-marker i { position: absolute; top: 42px; left: -4px; width: 9px; height: 9px; border: 1px solid rgba(190, 231, 252, .95); border-radius: 2px; background: #143650; transform: rotate(45deg); box-shadow: 0 0 10px rgba(76, 171, 224, .48); }
.timeline-marker-label { position: absolute; top: -2px; left: 50%; z-index: 6; padding: 2px 4px; border: 1px solid rgba(114, 199, 255, .34); border-radius: 4px; color: #c9ecff; background: rgba(6, 13, 20, .94); box-shadow: 0 2px 8px rgba(0, 0, 0, .26); font: 750 8px/1 ui-sans-serif, "Microsoft YaHei", sans-serif; letter-spacing: .04em; white-space: nowrap; transform: translateX(-50%); }
.timeline-stage.is-browsing .timeline-inspection-marker .timeline-marker-label { border-color: rgba(255, 196, 108, .4); color: #ffdda9; }
.timeline-actual-marker { z-index: 2; left: 50%; display: none; background: linear-gradient(180deg, rgba(115, 234, 183, .1), rgba(115, 234, 183, .9) 26%, rgba(115, 234, 183, .72) 83%, rgba(115, 234, 183, .04)); box-shadow: 0 0 7px rgba(115, 234, 183, .3); }
.timeline-actual-marker[hidden] { display: none !important; }
.timeline-actual-marker i { position: absolute; top: 42px; left: -3px; width: 7px; height: 7px; border: 1px solid rgba(178, 255, 222, .94); border-radius: 50%; background: #168f69; box-shadow: 0 0 7px rgba(79, 224, 163, .52); }
.timeline-actual-marker .timeline-marker-label { border-color: rgba(115, 234, 183, .38); color: #baf9db; }
.timeline-actual-marker.is-near-start .timeline-marker-label { left: 5px; transform: none; }
.timeline-actual-marker.is-near-end .timeline-marker-label { right: 5px; left: auto; transform: none; }
.timeline-actual-marker.is-near-focus.is-left-of-focus .timeline-marker-label { right: 7px; left: auto; transform: none; }
.timeline-actual-marker.is-near-focus.is-right-of-focus .timeline-marker-label { left: 7px; transform: none; }
.timeline-stage.is-marker-label-collision .timeline-inspection-marker .timeline-marker-label { visibility: hidden; opacity: 0; }
.timeline-selection-marker { z-index: 1; opacity: .52; transform-origin: top center; background: linear-gradient(180deg, color-mix(in srgb, var(--selection-color, #72c7ff), transparent 35%), color-mix(in srgb, var(--selection-color, #72c7ff), transparent 70%)); }
.timeline-selection-marker[hidden] { display: none !important; }
.timeline-selection-marker.is-previewed { opacity: .28; }
.timeline-selection-marker i { position: absolute; top: 40px; left: -4px; width: 8px; height: 8px; box-sizing: border-box; border: 1px solid color-mix(in srgb, var(--selection-color, #72c7ff), white 16%); border-radius: 2px; background: color-mix(in srgb, var(--selection-color, #72c7ff), transparent 58%); box-shadow: 0 0 9px color-mix(in srgb, var(--selection-color, #72c7ff), transparent 42%); transform: rotate(45deg); }
.timeline-stage.is-dragging .timeline-selection-marker { transition: none; }
.timeline-stage.is-browsing .timeline-actual-marker { display: block; }
.timeline-loading { position: absolute; z-index: 6; inset: 0; display: grid; place-items: center; color: #a9bac7; background: rgba(9, 15, 22, .92); font-size: 12px; }
.timeline-loading[hidden] { display: none; }
.timeline-rim { position: relative; height: 5px; overflow: hidden; margin: 6px 8px 0; border-radius: 999px; background: linear-gradient(180deg, rgba(97, 130, 157, .16), rgba(67, 96, 118, .05)); box-shadow: inset 0 1px 1px rgba(255, 255, 255, .075); }
.timeline-rim span { position: absolute; top: 0; bottom: 0; left: 0; width: 28%; border-radius: inherit; background: linear-gradient(90deg, transparent, rgba(104, 198, 248, .5), rgba(206, 241, 255, .8), transparent); filter: blur(.35px); opacity: .46; animation: timeline-rim-drift 17s linear infinite; }
@keyframes timeline-rim-drift { from { transform: translateX(-112%); } to { transform: translateX(470%); } }

.timeline-grade-legend { display: grid; gap: 8px; margin-top: 9px; padding: 9px 10px 10px; border: 1px solid rgba(91, 134, 164, .23); border-radius: 9px; background: linear-gradient(100deg, rgba(17, 27, 37, .69), rgba(12, 18, 26, .62)); }
.timeline-grade-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.timeline-grade-heading-copy { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 9px; min-width: 0; }
.timeline-grade-heading h3 { margin: 0; color: #e1eef7; font-size: 11px; font-weight: 800; line-height: 1.25; }
#timeline-grade-status { color: #93a7b7; font-size: 10px; line-height: 1.25; font-variant-numeric: tabular-nums; }
.timeline-grade-options { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin: 0; padding: 0; list-style: none; }
.timeline-grade-options li { display: flex; min-width: 0; }
.timeline-grade-chip { --chip-color: #94a4b1; appearance: none; -webkit-appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; box-sizing: border-box; min-width: 0; min-height: 38px; padding: 5px 9px; border: 1px solid color-mix(in srgb, var(--chip-color), transparent 66%); border-radius: 7px; color: color-mix(in srgb, var(--chip-color), white 26%); background: color-mix(in srgb, var(--chip-color), transparent 93%); font-family: inherit; font-size: 10px; font-weight: 750; line-height: 1.15; text-align: center; white-space: nowrap; cursor: pointer; transition: color .16s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.timeline-grade-chip i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--chip-color); box-shadow: 0 0 7px color-mix(in srgb, var(--chip-color), transparent 48%); }
.timeline-grade-chip small { min-width: 10px; padding: 2px 4px; border-radius: 4px; color: inherit; background: rgba(4, 8, 12, .25); font: 700 9px/1 ui-monospace, Consolas, monospace; text-align: center; font-variant-numeric: tabular-nums; }
.timeline-grade-chip:hover { border-color: color-mix(in srgb, var(--chip-color), transparent 37%); background: color-mix(in srgb, var(--chip-color), transparent 87%); }
.timeline-grade-chip:active { transform: scale(.97); }
.timeline-grade-chip:focus-visible { outline: 2px solid rgba(214, 237, 251, .82); outline-offset: 2px; }
.timeline-grade-chip[aria-pressed="false"] { border-color: rgba(134, 153, 169, .2); color: #a3b0bb; background: rgba(10, 16, 22, .4); }
.timeline-grade-chip[aria-pressed="false"] i { background: #71808d; box-shadow: none; }
.timeline-grade-chip.is-empty { opacity: .48; }
.timeline-grade-show-all { min-height: 34px; padding: 5px 10px; border: 1px solid rgba(114, 199, 255, .24); border-radius: 7px; color: #bfe7ff; background: rgba(54, 146, 198, .09); font-family: inherit; font-size: 10px; font-weight: 700; line-height: 1.2; white-space: nowrap; cursor: pointer; transition: color .16s ease, background-color .16s ease, border-color .16s ease, transform .16s ease; }
.timeline-grade-show-all:hover:not(:disabled) { border-color: rgba(114, 199, 255, .5); background: rgba(54, 146, 198, .18); }
.timeline-grade-show-all:active:not(:disabled) { transform: scale(.97); }
.timeline-grade-show-all:focus-visible { outline: 2px solid rgba(114, 199, 255, .88); outline-offset: 2px; }
.timeline-grade-show-all:disabled { color: #8292a0; border-color: rgba(134, 153, 169, .18); background: rgba(10, 16, 22, .32); cursor: default; }
.timeline-grade-chip.grade-s { --chip-color: #32eff4; }
.timeline-grade-chip.grade-a { --chip-color: #2cf0a7; }
.timeline-grade-chip.grade-b { --chip-color: #f4df54; }
.timeline-grade-chip.grade-c { --chip-color: #ff9e3d; }
.timeline-grade-chip.grade-d { --chip-color: #f47736; }
.timeline-grade-chip.grade-special { --chip-color: #bb83ff; }
.timeline-grade-chip.grade-unrated { --chip-color: #9ba9b6; }

.timeline-inspector {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 8px 12px;
  min-height: 67px;
  margin-top: 9px;
  padding: 11px 12px 9px;
  border: 1px solid rgba(91, 134, 164, .3);
  border-radius: 9px;
  background: linear-gradient(110deg, rgba(15, 27, 37, .84), rgba(14, 20, 28, .82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.timeline-inspector.is-task-previewed { border-color: color-mix(in srgb, var(--inspection-accent), transparent 66%); }
.timeline-inspector[data-task-tier="S"] { --inspection-accent: #32eff4; }
.timeline-inspector[data-task-tier="A"] { --inspection-accent: #2cf0a7; }
.timeline-inspector[data-task-tier="B"] { --inspection-accent: #f4df54; }
.timeline-inspector[data-task-tier="C"] { --inspection-accent: #ff9e3d; }
.timeline-inspector[data-task-tier="D"] { --inspection-accent: #f47736; }
.timeline-inspector[data-task-tier="Special"] { --inspection-accent: #bb83ff; }
.timeline-inspector[data-task-tier="unrated"] { --inspection-accent: #8291a1; }
.timeline-inspector:focus-within { border-color: rgba(114, 199, 255, .42); box-shadow: 0 0 0 2px rgba(114, 199, 255, .045), inset 0 1px 0 rgba(255, 255, 255, .03); }
.timeline-inspector-content {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  grid-template-columns: minmax(170px, 1.25fr) minmax(150px, .9fr) minmax(150px, .9fr);
  align-items: center;
  gap: 6px 19px;
  min-width: 0;
  max-height: 180px;
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
  transition: max-height .24s cubic-bezier(.2, .75, .25, 1), opacity .17s ease, transform .2s ease, margin .2s ease;
}
.timeline-inspector-hint { grid-column: 1 / -1; color: #a1afbc; font-size: 11px; }
.timeline-detail-block { display: grid; gap: 4px; min-width: 0; align-content: center; }
.timeline-task-block { align-content: start; }
.timeline-detail-label { color: #aebfcd; font-size: 11px; font-weight: 700; line-height: 1.25; letter-spacing: .015em; }
.timeline-task-name { min-width: 0; overflow: hidden; color: #f0f6fb; font-size: 14px; font-weight: 800; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.timeline-task-meta-group { display: grid; gap: 2px; min-width: 0; }
.timeline-task-meta { overflow: hidden; color: #c2cdd6; font-size: 12px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.timeline-task-time { color: #d1e5f2; font: 700 12px/1.4 ui-monospace, Consolas, monospace; font-variant-numeric: tabular-nums; white-space: normal; }
.timeline-grade-line { display: flex; align-items: center; gap: 7px; min-width: 0; color: #e3edf5; font-size: 13px; font-weight: 800; line-height: 1.4; }
.timeline-grade-line.grade-s, .timeline-grade-line.grade-a, .timeline-grade-line.grade-b, .timeline-grade-line.grade-c, .timeline-grade-line.grade-d, .timeline-grade-line.grade-special, .timeline-grade-line.grade-unrated { padding: 0; border: 0; border-radius: 0; background: none; }
.timeline-grade-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--event-color, #8a97a4); box-shadow: 0 0 6px color-mix(in srgb, var(--event-color, #8a97a4), transparent 43%); }
.timeline-grade-line.grade-s { --event-color: #20d9df; }
.timeline-grade-line.grade-a { --event-color: #21e6a0; }
.timeline-grade-line.grade-b { --event-color: #f0d94e; }
.timeline-grade-line.grade-c { --event-color: #ff9b36; }
.timeline-grade-line.grade-d { --event-color: #f06421; }
.timeline-grade-line.grade-special { --event-color: #bb83ff; }
.timeline-grade-line.grade-unrated { --event-color: #8291a1; }
.timeline-efficiency-value { color: #f3f9fd; font: 800 15px/1.3 ui-monospace, Consolas, monospace; font-variant-numeric: tabular-nums; }
.timeline-inspector-actions { grid-column: 1; grid-row: 2; flex-wrap: wrap; justify-content: flex-end; gap: 6px; min-width: 0; padding-top: 8px; border-top: 1px solid rgba(157, 184, 203, .09); }
.timeline-inspector-state { margin-right: auto; padding: 5px 8px; border: 1px solid rgba(114, 199, 255, .2); border-radius: 999px; color: #afdfff; background: rgba(66, 155, 204, .075); font-size: 10px; font-weight: 750; line-height: 1.2; white-space: nowrap; }
.timeline-inspector-state.is-subscribed { border-color: rgba(52, 224, 163, .35); color: #a8f2d4; background: rgba(32, 215, 158, .09); }
.timeline-action-button { min-height: 36px; border-color: rgba(113, 179, 219, .31); color: #cceafb; background: rgba(57, 134, 180, .105); }
.timeline-action-button:hover { border-color: rgba(114, 199, 255, .62); background: rgba(57, 134, 180, .22); box-shadow: 0 0 0 3px rgba(114, 199, 255, .05); }
.timeline-action-button[aria-pressed="true"] { border-color: rgba(32, 215, 158, .48); color: #a9f4d6; background: rgba(32, 215, 158, .13); }
.timeline-task-action-pair { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; }
#timeline-map-slot { display: inline-flex; min-width: 0; }
.timeline-task-action-pair .timeline-action-button,
.timeline-task-action-pair .map-view-button { min-height: 40px; font-size: 12px; }
.timeline-inspector-close { gap: 9px; min-height: 36px; border-color: rgba(132, 153, 172, .2); color: #b8c6d2; background: rgba(255, 255, 255, .025); }
.timeline-inspector-close:hover { border-color: rgba(114, 199, 255, .4); }
.timeline-inspector-close .timeline-chevron { width: 6px; height: 6px; }
.timeline-inspector-summary { grid-column: 1; grid-row: 1; display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content; align-items: center; gap: 6px 12px; min-width: 0; min-height: 34px; }
.timeline-inspector-summary[hidden] { display: none; }
.timeline-summary-state { color: #a8bac8; font-size: 10px; font-weight: 700; white-space: nowrap; }
.timeline-inspector-summary strong { min-width: 0; overflow: hidden; color: #eaf2f8; font-size: 12px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.timeline-inspector-summary small { color: #bbcad6; font: 650 10px/1.35 ui-monospace, Consolas, monospace; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.timeline-inspector.is-details-collapsed .timeline-inspector-content { max-height: 0; margin-block: -4px; opacity: 0; transform: translateY(-5px); pointer-events: none; }
.timeline-source-note { margin: 7px 2px 0; color: #aab9c5; font-size: 11px; line-height: 1.45; }
.timeline-event:active { filter: brightness(1.14); transform: translateY(0) scale(.985); }
.timeline-is-collapsed .rotation-heading { min-height: 39px; }
.timeline-is-collapsed .rotation-content { display: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }

.live-current { background-image: radial-gradient(ellipse at 98% 0%, rgba(63, 176, 220, .1), transparent 48%), linear-gradient(130deg, rgba(22, 31, 43, .99), rgba(13, 18, 26, .99)); }
.live-next { background-image: radial-gradient(ellipse at 100% 0%, rgba(255, 179, 73, .095), transparent 48%), linear-gradient(130deg, rgba(22, 31, 43, .99), rgba(13, 18, 26, .99)); }

@media (max-width: 760px) {
  .rotation-panel { padding: 13px 13px 11px; }
  .rotation-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .rotation-controls { justify-content: space-between; width: 100%; }
  .rotation-heading-copy h2 { font-size: 18px; }
  .rotation-help { max-width: 62ch; }
  .rotation-zoom button, .timeline-now-button, .timeline-collapse { min-height: 40px; }
  .rotation-zoom button { min-width: 53px; padding-inline: 8px; }
  .timeline-readout { gap: 7px; margin-top: 8px; }
  .timeline-tools-row { align-items: center; }
  .timeline-date-jump { grid-template-columns: max-content minmax(170px, 1fr); flex: 1 1 auto; }
  .timeline-date-control input, .timeline-date-submit, .timeline-keyboard-help summary { min-height: 40px; }
  .timeline-date-help { font-size: 10px; }
  .timeline-stage { height: 126px; }
  .timeline-event { padding-inline: 1px; font-size: 10px; }
  .timeline-inspector { gap: 8px; padding: 10px; }
  .timeline-inspector-content { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 9px 13px; }
  .timeline-task-block .timeline-task-name { overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
  .timeline-detail-block:not(.timeline-task-block) .timeline-task-meta { overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
  .timeline-inspector-actions { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, max-content); align-items: center; gap: 6px; }
  .timeline-inspector-state { margin: 0; justify-self: start; }
  .timeline-inspector-actions button { min-height: 40px; }
  .timeline-source-note { font-size: 11px; }
}

@media (max-width: 420px) {
  .rotation-panel { padding: 11px 10px 10px; }
  .rotation-controls { gap: 5px; }
  .rotation-zoom { flex: 1 1 auto; }
  .rotation-zoom button { min-width: 0; flex: 1 1 0; padding-inline: 5px; }
  .timeline-now-button, .timeline-collapse { min-height: 40px; padding-inline: 7px; }
  .timeline-readout { gap: 6px; font-size: 9px; }
  .timeline-tools-row { align-items: stretch; flex-direction: column; gap: 6px; margin-block: 5px 7px; }
  .timeline-date-jump { grid-template-columns: max-content minmax(0, 1fr); gap: 4px 8px; }
  .timeline-date-control input { min-height: 40px; padding-inline: 7px; font-size: 11px; }
  .timeline-date-submit, .timeline-keyboard-help summary { min-height: 40px; }
  .timeline-date-help { grid-column: 1 / -1; }
  .timeline-keyboard-help { align-self: flex-start; }
  .timeline-keyboard-shortcuts { right: auto; left: 0; width: min(380px, calc(100vw - 38px)); }
  .timeline-grade-legend { gap: 7px; margin-top: 7px; padding: 8px; }
  .timeline-grade-heading-copy { display: grid; gap: 2px; }
  .timeline-grade-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
  .timeline-grade-chip { justify-content: flex-start; gap: 4px; min-height: 44px; padding: 5px 6px; font-size: 10px; }
  .timeline-grade-chip small { margin-left: auto; padding-inline: 3px; }
  .timeline-grade-show-all { min-height: 40px; }
  #timeline-cursor-time { font-size: 12px; }
  .timeline-stage { height: 116px; }
  .timeline-track { inset-inline: -1px; }
  .timeline-scale-date { font-size: 7px; }
  .timeline-scale-label { padding-inline: 3px; font-size: 9px; }
  .timeline-lane { top: 46px; height: 40px; }
  .timeline-event { height: 40px; font-size: 10px; }
  .timeline-inspector-content { grid-template-columns: 1fr 1fr; }
  .timeline-task-block { grid-column: 1 / -1; }
  .timeline-inspector-content { max-height: 240px; }
  .timeline-task-block .timeline-task-name { font-size: 13px; }
  .timeline-task-meta { font-size: 11px; }
  .timeline-task-time { font-size: 11px; }
  .timeline-grade-line { font-size: 12px; }
  .timeline-detail-label { font-size: 11px; }
  .timeline-efficiency-value { font-size: 14px; }
  .timeline-inspector-actions { grid-template-columns: 1fr repeat(2, max-content); }
  .timeline-inspector-actions .timeline-inspector-close { grid-column: 1; grid-row: 2; }
  .timeline-inspector-actions #timeline-subscribe { grid-column: 2; grid-row: 2; }
  .timeline-task-action-pair { grid-column: 3; grid-row: 2; }
  .timeline-inspector-actions button,
  .timeline-inspector-actions .map-view-button { min-height: 40px; padding-inline: 8px; }
  .timeline-inspector-summary { grid-template-columns: max-content minmax(0, 1fr); gap: 3px 8px; }
  .timeline-summary-state { grid-row: 1 / span 2; }
  .timeline-inspector-summary small { grid-column: 2; text-align: left; }
}

@media (max-width: 380px) {
  .timeline-grade-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .timeline-grade-chip { min-height: 44px; font-size: 9px; }
  .timeline-task-action-pair .timeline-action-button,
  .timeline-task-action-pair .map-view-button { font-size: 10px; }
}

@media (max-height: 460px) and (min-width: 600px) {
  .rotation-panel { margin-bottom: 8px; padding: 6px 12px; }
  .rotation-heading { gap: 5px 12px; }
  .rotation-heading-copy h2 { font-size: 15px; }
  .rotation-help { display: none; }
  .rotation-controls button { min-height: 34px; padding-block: 4px; }
  .timeline-readout { min-height: 18px; margin-top: 2px; }
  .timeline-tools-row { gap: 7px; margin-block: 2px 4px; }
  .timeline-date-control input, .timeline-date-submit, .timeline-keyboard-help summary { min-height: 30px; }
  .timeline-date-jump > label, .timeline-date-help { font-size: 9px; }
  .timeline-grade-legend { gap: 5px; margin-top: 5px; padding: 6px 8px; }
  .timeline-grade-chip { min-height: 36px; padding-block: 4px; }
  .timeline-grade-show-all { min-height: 34px; }
  .timeline-grade-heading h3, #timeline-grade-status { font-size: 9px; }
  .timeline-stage { height: 76px; }
  .timeline-track { inset-block: 5px 12px; }
  .timeline-scale { height: 24px; }
  .timeline-scale-mark { height: 7px; }
  .timeline-scale-mark.is-quarter { height: 4px; }
  .timeline-scale-mark.is-hour { height: 11px; }
  .timeline-scale-mark.is-major, .timeline-scale-mark.is-day { height: 15px; }
  .timeline-scale-label { top: 15px; font-size: 9px; }
  .timeline-scale-date { top: 2px; font-size: 8px; }
  .timeline-lane { top: 28px; height: 27px; }
  .timeline-event { height: 27px; font-size: 9px; }
  .timeline-inspection-marker, .timeline-actual-marker, .timeline-selection-marker { bottom: 9px; }
  .timeline-inspection-marker i, .timeline-actual-marker i { top: 29px; }
  .timeline-selection-marker i { top: 27px; }
  .timeline-marker-label { font-size: 7px; }
  .timeline-rim { height: 3px; margin-top: 3px; }
  .timeline-inspector { gap: 4px 8px; min-height: 37px; margin-top: 4px; padding: 4px 8px; }
  .timeline-inspector-content { grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr) minmax(0, .9fr); gap: 4px 8px; max-height: 100px; }
  .timeline-detail-label { font-size: 10px; }
  .timeline-task-name { font-size: 12px; }
  .timeline-grade-line { font-size: 12px; }
  .timeline-task-meta, .timeline-task-time { font-size: 10px; }
  .timeline-efficiency-value { font-size: 13px; }
  .timeline-inspector-actions { gap: 4px; padding-top: 4px; }
  .timeline-inspector-actions button,
  .timeline-inspector-actions .map-view-button { min-height: 34px; padding: 3px 7px; font-size: 9px; }
  .timeline-task-action-pair .timeline-action-button,
  .timeline-task-action-pair .map-view-button { font-size: 10px; }
  .timeline-inspector-state { padding: 4px 7px; font-size: 9px; }
  .timeline-inspector-summary { min-height: 25px; }
  .timeline-source-note { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .timeline-rim span { animation: none; left: 36%; width: 28%; opacity: .22; }
  .timeline-chevron,
  .rotation-zoom button,
  .timeline-now-button,
  .timeline-collapse,
  .timeline-action-button,
  .timeline-inspector-close,
  .timeline-stage .timeline-track,
  .timeline-event,
  .timeline-inspector,
  .timeline-inspector-content { transition: none !important; }
  .timeline-event-glint { display: none; }
  .timeline-date-submit, .timeline-grade-chip, .timeline-grade-show-all { transition: none !important; }
  .live-task.handoff-refresh .task-label { animation: none; }
}
