html, body {
      height: 100dvh;
      max-height: 100dvh;
      overflow: hidden !important;
      overscroll-behavior: none;
    }
    .app-shell {
      height: 100dvh;
      max-height: 100dvh;
      display: flex;
      flex-direction: column;
      overflow: hidden !important;
    }
    body.tl-canvas-fullscreen .topbar,
    body.tl-canvas-fullscreen .mobile-nav,
    body.tl-canvas-fullscreen header {
      display: none !important;
    }
    .tl-page-wrap {
      flex: 1 1 auto;
      min-height: 0;
      width: 100%;
      max-width: 100%;
      padding: 10px 16px 12px 16px;
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }
    body.tl-canvas-fullscreen .tl-page-wrap {
      padding: 8px 10px 10px 10px;
    }
    .tl-toolbar {
      flex-shrink: 0;
      display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
      padding: 10px 16px; border-radius: 18px; margin-bottom: 8px;
      background: linear-gradient(155deg, rgba(30, 41, 59, 0.88), rgba(15, 23, 42, 0.94));
      backdrop-filter: blur(24px);
      box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.14);
      position: relative; z-index: 35;
    }
    .tl-title-cluster {
      display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0;
    }
    .tl-heading-title {
      margin: 0; font-size: 1.12rem; font-weight: 900; color: #fff;
      letter-spacing: -0.01em; line-height: 1.2;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 340px;
    }
    .tl-url-chip {
      display: inline-flex; align-items: center; gap: 6px;
      padding: 4px 10px; border-radius: 999px;
      background: rgba(56, 189, 248, 0.14); color: #7dd3fc;
      font-size: 0.76rem; font-weight: 700;
    }
    .tl-popover-wrap {
      position: relative; display: inline-block;
    }
    .tl-popover-menu {
      position: absolute; top: calc(100% + 6px); right: 0; min-width: 245px;
      padding: 6px; border-radius: 16px; z-index: 65;
      background: rgba(15, 23, 42, 0.97); backdrop-filter: blur(24px);
      border: 1px solid rgba(148, 163, 184, 0.2) !important;
      box-shadow: 0 20px 44px rgba(0, 0, 0, 0.72);
      display: flex; flex-direction: column; gap: 3px;
    }
    .tl-menu-item {
      display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; text-decoration: none;
      padding: 8px 11px; border-radius: 10px; background: transparent;
      color: #e2e8f0; font-size: 0.83rem; font-weight: 700; cursor: pointer;
    }
    .tl-menu-item:hover, .tl-menu-item.active {
      background: rgba(56, 189, 248, 0.18); color: #fff;
    }
    .tl-subbar {
      flex-shrink: 0;
      display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
      padding: 7px 14px; border-radius: 14px; margin-bottom: 8px;
      background: rgba(15, 23, 42, 0.74);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }
    .tl-studio-modal-backdrop {
      position: fixed; inset: 0; z-index: 120;
      background: rgba(3, 7, 18, 0.84); backdrop-filter: blur(10px);
      display: flex; align-items: center; justify-content: center; padding: 18px;
    }
    .tl-studio-modal-card {
      width: 100%; max-width: 900px; max-height: 92dvh;
      display: flex; flex-direction: column; gap: 14px; padding: 24px 26px;
      overflow: hidden;
      box-shadow: 0 28px 70px rgba(0, 0, 0, 0.82), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    }
    .tl-mgr-row {
      display: grid;
      align-items: center;
      gap: 8px;
      padding: 8px 10px;
      border-radius: 13px;
      background: rgba(15, 23, 42, 0.74);
    }
    .tl-mgr-row.phase-row {
      grid-template-columns: 38px minmax(140px, 1.3fr) minmax(120px, 1fr) 116px 84px 40px 34px 34px 36px;
    }
    .tl-mgr-row.lane-row {
  grid-template-columns: 36px 1fr 126px 34px 34px 36px;
}
    @media (max-width: 760px) {
      .tl-mgr-row.phase-row, .tl-mgr-row.lane-row {
        display: flex; flex-wrap: wrap;
      }
    }
    .tl-attached-milestones {
      display: flex; flex-direction: column; gap: 5px; margin-top: 7px;
    }
    .tl-milestone-pin {
      display: flex; align-items: center; justify-content: space-between; gap: 6px;
      padding: 4px 8px; border-radius: 9px;
      background: linear-gradient(135deg, rgba(192, 132, 252, 0.24), rgba(99, 102, 241, 0.2));
      border: 1px solid rgba(192, 132, 252, 0.48) !important;
      color: #f3e8ff; font-size: 0.72rem; font-weight: 800; cursor: pointer;
      transition: transform 0.12s ease, box-shadow 0.15s ease;
    }
    .tl-milestone-pin:hover {
      transform: translateY(-1px);
      box-shadow: 0 6px 16px rgba(192, 132, 252, 0.35);
      color: #fff;
    }
    .tl-studio-tabs {
      display: flex; gap: 6px; flex-wrap: wrap;
      padding: 5px; border-radius: 14px; background: rgba(15, 23, 42, 0.78);
    }
    .tl-studio-tab {
      flex: 1; min-width: 125px; padding: 8px 12px; border-radius: 10px;
      background: transparent; color: #cbd5e1; font-size: 0.82rem; font-weight: 800;
      cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
      transition: background 0.14s ease, color 0.14s ease;
    }
    .tl-studio-tab:hover { background: rgba(56, 189, 248, 0.14); color: #fff; }
    .tl-studio-tab.active {
      background: linear-gradient(135deg, #38bdf8, #6366f1); color: #fff;
      box-shadow: 0 6px 16px rgba(56, 189, 248, 0.35);
    }
    .tl-viewport {
      flex: 1 1 auto;
      min-height: 0;
      position: relative; width: 100%; height: 100%;
      border-radius: 20px; overflow: hidden; cursor: grab; user-select: none;
      touch-action: none; overscroll-behavior: none;
      background-color: #050912;
      background-image:
        radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.07), transparent 45%),
        radial-gradient(circle at 80% 75%, rgba(99, 102, 241, 0.07), transparent 45%),
        radial-gradient(circle at 1px 1px, rgba(148, 163, 184, 0.14) 1px, transparent 0);
      background-size: 100% 100%, 100% 100%, 28px 28px;
      box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.8), 0 18px 46px rgba(0, 0, 0, 0.48);
    }
    .tl-viewport.panning { cursor: grabbing; }
    .tl-viewport.selecting { cursor: crosshair; }
    .tl-world {
      position: absolute; top: 0; left: 0; width: 6400px; height: 2600px;
      transform-origin: 0 0;
    }
    .tl-phase-track-bg {
      position: absolute; top: 0; left: 0; right: 0; height: 52px;
      background: rgba(15, 23, 42, 0.26);
      border-bottom: 1px solid rgba(148, 163, 184, 0.22) !important;
      z-index: 0; pointer-events: none;
    }
    .tl-phase-band {
      position: absolute; top: 0; bottom: 0;
      z-index: 2; pointer-events: none;
    }
    .tl-phase-hdr {
      position: absolute; top: 5px; left: 6px; right: 6px; height: 42px;
      display: flex; align-items: center; justify-content: space-between; gap: 10px;
      padding: 0 16px; border-radius: 12px;
      font-size: 0.86rem; font-weight: 900; letter-spacing: 0.06em;
      text-transform: uppercase; color: #ffffff !important;
      text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
      backdrop-filter: blur(12px);
      box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.28);
      pointer-events: auto; z-index: 4;
    }
    .tl-phase-hdr.editable { cursor: ew-resize; }
    .tl-phase-resize {
      position: absolute; top: 0; right: -5px; bottom: 0; width: 10px;
      cursor: col-resize; pointer-events: auto; z-index: 5;
    }
    .tl-phase-resize:hover { background: rgba(56, 189, 248, 0.35); }
    .tl-lane-band {
      position: absolute; left: 0; right: 0; height: 312px;
      border-bottom: 1px dashed rgba(148, 163, 184, 0.16) !important;
      display: flex; flex-direction: column; align-items: flex-start; z-index: 1; pointer-events: none;
    }
    .tl-lane-band:nth-child(even) {
      background: rgba(15, 23, 42, 0.24);
    }
    .tl-lane-hdr-row {
      position: sticky; left: 16px; margin: 14px 0 0 16px;
      display: inline-flex; align-items: center; gap: 10px;
      z-index: 4; pointer-events: none;
    }
    .tl-lane-label {
      padding: 6px 14px; border-radius: 10px;
      background: rgba(15, 23, 42, 0.92); color: #7dd3fc;
      border: 1px solid rgba(56, 189, 248, 0.24) !important;
      font-size: 0.76rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.38);
    }
    .tl-lane-count {
      font-size: 0.72rem; font-weight: 700; color: #94a3b8;
    }
    .tl-slot-ghost {
      position: absolute; width: 240px; height: 152px; border-radius: 16px;
      border: 2px dashed rgba(56, 189, 248, 0.7) !important;
      background: rgba(56, 189, 248, 0.1);
      pointer-events: none; z-index: 2;
      transition: left 0.12s ease, top 0.12s ease;
    }
    .tl-node {
      position: absolute; width: 240px; border-radius: 16px;
      background: linear-gradient(160deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
      box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.16);
      padding: 11px 12px; z-index: 3;
      transition: left 0.18s cubic-bezier(0.22, 1, 0.36, 1), top 0.18s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.15s ease, transform 0.15s ease;
    }
    .tl-node.dragging {
      transition: none !important;
      opacity: 0.92;
      transform: scale(1.03);
      z-index: 12 !important;
    }
    .tl-node.type-movie { border-top: 2.5px solid rgba(251, 191, 36, 0.7) !important; }
    .tl-node.type-series { border-top: 2.5px solid rgba(56, 189, 248, 0.7) !important; }
    .tl-node.type-game { border-top: 2.5px solid rgba(52, 211, 153, 0.7) !important; }
    .tl-node.type-event { border-top: 2.5px solid rgba(192, 132, 252, 0.8) !important; }
    .tl-node.editable { cursor: move; }
    .tl-node.viewable { cursor: pointer; }
    .tl-node.viewable:hover { transform: translateY(-3px); }
    .tl-node.watched {
      box-shadow: 0 14px 30px rgba(16, 185, 129, 0.24), inset 0 0 0 1px rgba(16, 185, 129, 0.5);
    }
    .tl-node:hover {
      box-shadow: 0 20px 40px rgba(56, 189, 248, 0.35), inset 0 1px 0 rgba(56, 189, 248, 0.55);
      z-index: 6;
    }
    .tl-node.selected {
      outline: 2.5px solid #38bdf8 !important;
      box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.24), 0 18px 38px rgba(56, 189, 248, 0.38) !important;
      z-index: 7;
    }
    .tl-node.just-added {
      animation: pulseAdded 1.4s ease;
    }
    @keyframes pulseAdded {
      0% { transform: scale(0.92); box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.75); }
      60% { transform: scale(1.03); box-shadow: 0 0 28px rgba(16, 185, 129, 0.6); }
      100% { transform: scale(1); }
    }
    .tl-time-pill {
      display: inline-block; font-size: 0.7rem; font-weight: 800;
      padding: 2px 8px; border-radius: 999px;
      background: rgba(56, 189, 248, 0.18); color: #7dd3fc; margin-bottom: 6px;
    }
    .tl-year-pill {
      display: inline-block; font-size: 0.69rem; font-weight: 800;
      padding: 2px 7px; border-radius: 999px;
      background: rgba(251, 191, 36, 0.18); color: #fde68a; margin-bottom: 6px;
    }
    .tl-svg-layer {
      position: absolute; inset: 0; width: 6400px; height: 2600px;
      pointer-events: none; z-index: 2;
    }
    .tl-edge-hit {
      pointer-events: stroke; cursor: pointer;
    }
    .tl-edge-hit:hover + .tl-edge-vis,
    .tl-edge-vis.hovered {
      stroke: #fb7185; stroke-width: 4.5;
    }
    .tl-edge-pill {
      position: absolute; transform: translate(-50%, -50%);
      display: inline-flex; align-items: center; gap: 6px;
      padding: 3px 9px; border-radius: 999px;
      background: rgba(15, 23, 42, 0.92); color: #bae6fd;
      border: 1px solid rgba(56, 189, 248, 0.45) !important;
      box-shadow: 0 6px 16px rgba(0, 0, 0, 0.55);
      font-size: 0.72rem; font-weight: 800; white-space: nowrap;
      pointer-events: auto; z-index: 4;
    }
    .tl-edge-pill:hover {
      border-color: rgba(251, 113, 133, 0.75) !important;
      color: #fff;
    }
    .tl-edge-del-btn {
      background: rgba(244, 63, 94, 0.24); color: #fda4af;
      border-radius: 999px; width: 18px; height: 18px;
      display: inline-flex; align-items: center; justify-content: center;
      font-size: 0.68rem; font-weight: 900; cursor: pointer; padding: 0;
    }
    .tl-edge-del-btn:hover {
      background: #e11d48; color: #fff;
    }
    .tl-marquee {
      position: absolute; z-index: 20; pointer-events: none;
      border: 1.5px dashed #38bdf8 !important;
      background: rgba(56, 189, 248, 0.14);
      border-radius: 8px;
    }
    .tl-sel-bar {
      position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
      z-index: 28; display: none; align-items: center; gap: 10px; flex-wrap: wrap;
      padding: 8px 14px; border-radius: 16px;
      background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(22px);
      border: 1px solid rgba(56, 189, 248, 0.42) !important;
      box-shadow: 0 18px 42px rgba(0, 0, 0, 0.68);
    }
    .tl-studio-drawer {
      position: absolute; top: 12px; right: 12px; bottom: 12px;
      width: min(410px, calc(100% - 24px));
      max-height: calc(100% - 24px);
      z-index: 45; border-radius: 20px; display: flex; flex-direction: column; overflow: hidden;
      background: linear-gradient(165deg, rgba(15, 23, 42, 0.98), rgba(9, 14, 28, 0.99));
      backdrop-filter: blur(28px);
      box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.18);
      touch-action: pan-y;
    }
    .tl-node-note-clamp {
      font-size: 0.72rem;
      color: #a5b4fc;
      margin-top: 4px;
      line-height: 1.32;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      word-break: break-word;
    }
    .tl-remote-cursor {
      position: absolute;
      pointer-events: none;
      z-index: 25;
      transform: translate(-5px, -5px);
      transition: left 0.18s linear, top 0.18s linear;
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }
    .tl-remote-cursor-dot {
      width: 11px;
      height: 11px;
      border-radius: 999px;
      border: 2px solid #090d16;
      box-shadow: 0 0 12px currentColor;
      flex-shrink: 0;
    }
    .tl-remote-cursor-tag {
      padding: 2px 8px;
      border-radius: 999px;
      font-size: 0.69rem;
      font-weight: 800;
      color: #050912;
      white-space: nowrap;
      box-shadow: 0 4px 12px rgba(0,0,0,0.45);
    }
    .tl-notes-card-panel {
      position: absolute;
      top: 14px;
      left: 14px;
      width: min(330px, calc(100% - 28px));
      max-height: 360px;
      z-index: 24;
      border-radius: 16px;
      padding: 13px 14px;
      background: linear-gradient(160deg, rgba(15, 23, 42, 0.95), rgba(9, 14, 28, 0.97));
      backdrop-filter: blur(22px);
      border: 1px solid rgba(251, 191, 36, 0.34) !important;
      box-shadow: 0 18px 44px rgba(0, 0, 0, 0.65);
      display: flex;
      flex-direction: column;
      gap: 9px;
    }
    .tl-add-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.35fr) minmax(235px, 0.95fr);
      gap: 14px;
      align-items: start;
    }
    @media (max-width: 720px) {
      .tl-add-grid { grid-template-columns: 1fr; }
    }
    .tl-spoiler-blur {
      filter: blur(4.5px);
      user-select: none;
      transition: filter 0.18s ease;
    }
    .tl-spoiler-blur.revealed {
      filter: none;
      user-select: auto;
    }
    .tl-studio-drawer.drawer-fullscreen {
      position: fixed !important;
      inset: 0 !important;
      width: 100vw !important;
      height: 100dvh !important;
      max-width: 100vw !important;
      max-height: 100dvh !important;
      border-radius: 0 !important;
      z-index: 95 !important;
    }
    @media (max-width: 768px) {
      .tl-studio-drawer {
        position: fixed !important;
        inset: 0 !important;
        width: 100vw !important;
        height: 100dvh !important;
        max-width: 100vw !important;
        max-height: 100dvh !important;
        border-radius: 0 !important;
        z-index: 95 !important;
      }
      .tl-heading-title { max-width: 190px; font-size: 1rem; }
      .tl-minimap { display: none; }
    }
    .tl-drawer-hdr {
      display: flex; align-items: center; justify-content: space-between;
      padding: 13px 16px; border-bottom: 1px solid rgba(148, 163, 184, 0.16) !important;
      flex-shrink: 0;
    }
    .tl-drawer-body {
      padding: 12px 14px 18px 14px;
      flex: 1 1 auto;
      min-height: 0;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      overscroll-behavior: contain;
    }
    .tl-filter-chips {
      display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px;
    }
    .tl-chip {
      padding: 5px 10px; border-radius: 999px; font-size: 0.76rem; font-weight: 700;
      background: rgba(30, 41, 59, 0.85); color: #cbd5e1; cursor: pointer;
      transition: background 0.14s ease, color 0.14s ease;
    }
    .tl-chip.active {
      background: linear-gradient(135deg, #38bdf8, #6366f1); color: #fff;
    }
    .tl-search-card {
      display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px;
      background: rgba(30, 41, 59, 0.72); transition: background 0.14s ease;
    }
    .tl-search-card:hover { background: rgba(30, 41, 59, 0.98); }
    .tl-toast {
      position: absolute; bottom: 14px; left: 14px; z-index: 30;
      padding: 9px 14px; border-radius: 12px; font-size: 0.82rem; font-weight: 700;
      background: rgba(16, 185, 129, 0.94); color: #052e16;
      box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
      pointer-events: none; opacity: 0; transform: translateY(8px);
      transition: opacity 0.2s ease, transform 0.2s ease;
    }
    .tl-toast.show { opacity: 1; transform: translateY(0); }
    .tl-minimap {
      position: absolute; bottom: 14px; right: 14px; width: 170px; height: 84px;
      border-radius: 12px; background: rgba(7, 11, 20, 0.86);
      box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12);
      z-index: 15; overflow: hidden; cursor: pointer;
    }
    .tl-minimap-vp {
      position: absolute; border: 1.5px solid #38bdf8 !important;
      background: rgba(56, 189, 248, 0.14); border-radius: 4px; pointer-events: none;
    }
    @media (max-width: 768px) {
      .tl-page-wrap { padding: 6px 8px 8px 8px !important; }
      .tl-toolbar {
        padding: 7px 9px !important;
        gap: 6px !important;
        border-radius: 14px !important;
        max-height: 30dvh;
        overflow-y: auto;
      }
      .tl-title-cluster {
        width: 100%;
        gap: 6px !important;
      }
      .tl-heading-title {
        font-size: 1.02rem !important;
        max-width: 58vw;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      .tl-subbar {
        padding: 5px 9px !important;
        gap: 6px !important;
        margin-bottom: 6px !important;
        max-height: 42px;
        overflow-x: auto;
        flex-wrap: nowrap !important;
      }
      .tl-minimap { display: none !important; }
      .tl-studio-drawer {
        top: auto !important;
        left: 6px !important;
        right: 6px !important;
        bottom: 6px !important;
        width: calc(100% - 12px) !important;
        max-height: 76dvh !important;
        border-radius: 18px !important;
      }
      .tl-studio-modal-backdrop { padding: 8px !important; }
      .tl-studio-modal-card {
        padding: 14px 14px !important;
        max-height: 94dvh !important;
        border-radius: 18px !important;
      }
      .tl-studio-tab {
        min-width: calc(50% - 6px) !important;
        padding: 7px 8px !important;
        font-size: 0.76rem !important;
      }
    }
