@media screen and (min-width: 0px) {
    .MainPageBodyContent > .TimelineViewRoot {
        flex: 1 1 auto;
        min-height: 100%;
        height: 100%;
        max-height: 100%;
    }

    .TimelineViewRoot {
        --timeline-surface: rgba(255, 255, 255, 0.78);
        --timeline-surface-strong: rgba(255, 255, 255, 0.92);
        --timeline-border: rgba(15, 23, 42, 0.12);
        --timeline-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
        --timeline-track-line: rgba(148, 163, 184, 0.2);
        --timeline-track-fill: linear-gradient(135deg, rgba(15, 23, 42, 0.06), rgba(15, 23, 42, 0.02));
        --timeline-highlight: #0f766e;
        --timeline-highlight-soft: rgba(15, 118, 110, 0.12);
        --timeline-warn: #d97706;
        --timeline-danger: #dc2626;
        --timeline-muted: rgba(71, 85, 105, 0.76);
        --timeline-col-size: 84px;
        width: 100%;
        height: 100%;
        min-height: 100%;
        max-height: 100%;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        overflow-x: hidden;
        box-sizing: border-box;
        background:
            radial-gradient(circle at top right, rgba(34, 197, 94, 0.12), transparent 26%),
            radial-gradient(circle at left top, rgba(14, 165, 233, 0.14), transparent 22%),
            linear-gradient(180deg, rgba(248, 250, 252, 0.9), rgba(241, 245, 249, 0.96));
        color: var(--text-color);
    }

    html.dark-theme .TimelineViewRoot {
        --timeline-surface: rgba(15, 23, 42, 0.7);
        --timeline-surface-strong: rgba(15, 23, 42, 0.9);
        --timeline-border: rgba(148, 163, 184, 0.16);
        --timeline-shadow: 0 22px 48px rgba(2, 6, 23, 0.34);
        --timeline-track-line: rgba(148, 163, 184, 0.16);
        --timeline-track-fill: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.76));
        --timeline-muted: rgba(203, 213, 225, 0.74);
        background:
            radial-gradient(circle at top right, rgba(16, 185, 129, 0.16), transparent 24%),
            radial-gradient(circle at left top, rgba(14, 165, 233, 0.14), transparent 18%),
            linear-gradient(180deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.98));
    }

    .TimelineViewShell {
        display: flex;
        flex-direction: column;
        flex: 1 0 auto;
        gap: 18px;
        padding: 20px;
        min-height: 100%;
        box-sizing: border-box;
    }

    .TimelineViewHeader,
    .TimelineToolbar,
    .TimelinePanel {
        border: 1px solid var(--timeline-border);
        background: var(--timeline-surface);
        backdrop-filter: blur(14px);
        box-shadow: var(--timeline-shadow);
    }

    .TimelineViewHeader {
        display: grid;
        grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr);
        gap: 18px;
        align-items: start;
        border-radius: 24px;
        padding: 24px;
    }

    .TimelineViewEyebrow {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        text-transform: uppercase;
        letter-spacing: 0.14em;
        font-size: 11px;
        color: var(--timeline-muted);
    }

    .TimelineViewEyebrow::before {
        content: '';
        width: 10px;
        height: 10px;
        border-radius: 999px;
        background: linear-gradient(135deg, #0f766e, #06b6d4);
        box-shadow: 0 0 0 5px rgba(6, 182, 212, 0.12);
    }

    .TimelineViewTitle {
        margin: 10px 0 6px;
        font-size: clamp(28px, 3vw, 42px);
        line-height: 1.05;
    }

    .TimelineViewSubtitle {
        margin: 0;
        color: var(--timeline-muted);
        max-width: 760px;
    }

    .TimelineViewHeaderStats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .TimelineStatCard {
        border-radius: 18px;
        border: 1px solid var(--timeline-border);
        background: var(--timeline-surface-strong);
        padding: 16px;
        min-height: 92px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .TimelineStatLabel {
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--timeline-muted);
    }

    .TimelineStatValue {
        font-size: 18px;
        line-height: 1.3;
    }

    .TimelineToolbar {
        border-radius: 22px;
        padding: 16px;
        display: flex;
        flex-wrap: wrap;
        gap: 14px;
        align-items: end;
    }

    .TimelineToolbarGroup {
        display: grid;
        gap: 6px;
        min-width: 0;
    }

    .TimelineToolbarGroupSearch {
        flex: 1 1 260px;
    }

    .TimelineToolbarGroupPresets {
        flex: 1 1 320px;
    }

    .TimelineToolbarGroupActions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        align-self: end;
        margin-left: auto;
    }

    .TimelineToolbarLabel {
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--timeline-muted);
    }

    .TimelineToolbarControl,
    .TimelineCanvasZoom,
    .TimelineDetailInput,
    .TimelineDetailSelect {
        height: 40px;
        border-radius: 12px;
        border: 1px solid var(--timeline-border);
        background: var(--timeline-surface-strong);
        color: var(--text-color);
        padding: 0 12px;
        outline: none;
        box-sizing: border-box;
    }

    .TimelineToolbarControl:focus,
    .TimelineCanvasZoom:focus,
    .TimelineDetailInput:focus,
    .TimelineDetailSelect:focus {
        border-color: rgba(14, 165, 233, 0.45);
        box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.14);
    }

    .TimelineToolbarSwitch {
        height: 40px;
        border-radius: 12px;
        border: 1px solid var(--timeline-border);
        background: var(--timeline-surface-strong);
        padding: 0 12px;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        white-space: nowrap;
    }

    .TimelineToolbarSwitch input {
        margin: 0;
    }

    .TimelinePresetList,
    .TimelineCanvasActions,
    .TimelineDetailActions,
    .TimelineQuickActions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .TimelinePresetButton,
    .TimelineToolbarButton,
    .TimelineCanvasButton,
    .TimelinePanelHeaderButton,
    .TimelineDetailActionButton,
    .TimelineQuickActionButton {
        height: 40px;
        border-radius: 999px;
        border: 1px solid var(--timeline-border);
        background: var(--timeline-surface-strong);
        color: var(--text-color);
        padding: 0 14px;
        cursor: pointer;
    }

    .TimelineToolbarButtonPrimary,
    .TimelineDetailActionButtonPrimary,
    .TimelineQuickActionButtonPrimary {
        background: linear-gradient(135deg, #0f766e, #0891b2);
        color: #f8fafc;
        border-color: transparent;
    }

    .TimelinePresetButton:hover,
    .TimelineToolbarButton:hover,
    .TimelineCanvasButton:hover,
    .TimelinePanelHeaderButton:hover,
    .TimelineDetailActionButton:hover,
    .TimelineQuickActionButton:hover {
        filter: brightness(1.04);
        transform: translateY(-1px);
    }

    .TimelineCanvasButton:disabled,
    .TimelineNoPressureCardAction:disabled {
        opacity: 0.55;
        cursor: default;
        filter: none;
        transform: none;
    }

    .TimelineBody {
        display: grid;
        grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
        grid-template-areas:
            'sidebar canvas'
            'sidebar detail';
        gap: 18px;
        min-height: 0;
        flex: 1;
        align-items: start;
    }

    .TimelinePanel {
        border-radius: 24px;
        padding: 16px;
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .TimelinePanelHeader {
        display: flex;
        align-items: start;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 12px;
    }

    .TimelinePanelTitle {
        margin: 0;
        font-size: 19px;
    }

    .TimelinePanelSubtitle {
        margin: 4px 0 0;
        color: var(--timeline-muted);
        font-size: 13px;
    }

    .TimelineTree {
        overflow: auto;
        min-height: 0;
        padding-right: 4px;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .TimelineTreeBranch {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .TimelineTreeRow {
        display: grid;
        grid-template-columns: 28px 24px minmax(0, 1fr);
        gap: 8px;
        align-items: center;
        padding-left: calc(var(--tree-depth, 0) * 16px);
    }

    .TimelineTreeExpand {
        width: 28px;
        height: 28px;
        border-radius: 10px;
        border: 1px solid var(--timeline-border);
        background: var(--timeline-surface-strong);
        color: var(--text-color);
        cursor: pointer;
    }

    .TimelineTreeExpand:disabled {
        opacity: 0.45;
        cursor: default;
    }

    .TimelineTreeCheckbox {
        width: 16px;
        height: 16px;
        margin: 0 auto;
    }

    .TimelineTreeSelect {
        border: 1px solid transparent;
        background: transparent;
        color: inherit;
        border-radius: 14px;
        padding: 10px 12px;
        cursor: pointer;
        text-align: left;
        display: flex;
        flex-direction: column;
        gap: 4px;
        min-width: 0;
    }

    .TimelineTreeSelect:hover,
    .TimelineCanvasRowLabel:hover {
        background: rgba(14, 165, 233, 0.08);
        border-color: rgba(14, 165, 233, 0.14);
    }

    .TimelineTreeBranch.is-selected > .TimelineTreeRow .TimelineTreeSelect,
    .TimelineCanvasRowLabel.is-selected,
    .TimelineCanvasTrackCell.is-selected {
        background: rgba(14, 165, 233, 0.12);
        border-color: rgba(14, 165, 233, 0.28);
    }

    .TimelineTreeBranch.is-muted > .TimelineTreeRow .TimelineTreeSelect {
        opacity: 0.55;
    }

    .TimelineTreeMain,
    .TimelineCanvasRowMain {
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
    }

    .TimelineTypeBadge,
    .TimelineStatusBadge,
    .TimelineSourceBadge,
    .TimelineDependencyChip {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 4px 8px;
        border-radius: 999px;
        font-size: 11px;
        letter-spacing: 0.04em;
        white-space: nowrap;
        border: 1px solid var(--timeline-border);
        background: var(--timeline-surface-strong);
    }

    .TimelineTypeBadge--task {
        color: #0f766e;
        border-color: rgba(15, 118, 110, 0.2);
    }

    .TimelineTypeBadge--subtask {
        color: #0369a1;
        border-color: rgba(3, 105, 161, 0.2);
    }

    .TimelineTypeBadge--step {
        color: #7c3aed;
        border-color: rgba(124, 58, 237, 0.2);
    }

    .TimelineTypeBadge--detail {
        color: #b45309;
        border-color: rgba(180, 83, 9, 0.2);
    }

    .TimelineTreeTitle,
    .TimelineCanvasRowTitle {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-weight: 600;
    }

    .TimelineTreeMeta,
    .TimelineCanvasRowMeta,
    .TimelineDetailMutedText,
    .TimelineDependencyListEmpty {
        color: var(--timeline-muted);
        font-size: 12px;
    }

    .TimelineCanvasPanel {
        grid-area: canvas;
        min-width: 0;
    }

    .TimelineSidebarPanel {
        grid-area: sidebar;
        align-self: stretch;
    }

    .TimelineDetailPanel {
        grid-area: detail;
        min-width: 0;
    }

    .TimelineOverflowNotice {
        margin-bottom: 12px;
        border-radius: 14px;
        padding: 12px 14px;
        background: rgba(217, 119, 6, 0.12);
        color: #92400e;
        border: 1px solid rgba(217, 119, 6, 0.22);
    }

    html.dark-theme .TimelineOverflowNotice {
        color: #fcd34d;
    }

    .TimelineCanvas {
        min-height: 0;
        flex: 1;
        overflow: auto;
        border-radius: 18px;
        border: 1px solid var(--timeline-border);
        background: var(--timeline-surface-strong);
    }

    .TimelineNoPressureSection {
        margin-top: 18px;
        padding-top: 18px;
        border-top: 1px solid var(--timeline-border);
        display: grid;
        gap: 14px;
    }

    .TimelineNoPressureHeader {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        flex-wrap: wrap;
    }

    .TimelineSecondaryTitle {
        margin: 0;
        font-size: 17px;
    }

    .TimelineNoPressureActions {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .TimelineNoPressureCanvas {
        min-height: 0;
        overflow: auto;
        border-radius: 18px;
        border: 1px solid var(--timeline-border);
        background:
            linear-gradient(180deg, rgba(15, 118, 110, 0.08), rgba(255, 255, 255, 0)),
            var(--timeline-surface-strong);
    }

    .TimelineNoPressureEmpty {
        min-height: 150px;
        display: grid;
        gap: 10px;
        align-content: center;
        padding: 24px;
    }

    .TimelineNoPressureLane {
        padding: 16px;
        display: grid;
        gap: 14px;
    }

    .TimelineNoPressureScale {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0;
        padding: 0 4px;
        color: var(--timeline-muted);
        font-size: 11px;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .TimelineNoPressureScaleMark {
        text-align: right;
    }

    .TimelineNoPressureScaleMark:first-child {
        text-align: left;
    }

    .TimelineNoPressureCards {
        display: grid;
        gap: 12px;
    }

    .TimelineNoPressureCard {
        display: grid;
        grid-template-columns: minmax(240px, 1.15fr) minmax(260px, 1fr) auto;
        gap: 14px;
        align-items: center;
        border-radius: 18px;
        border: 1px solid var(--timeline-border);
        background:
            radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 38%),
            linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02));
        padding: 14px 16px;
        box-sizing: border-box;
    }

    .TimelineNoPressureCard.is-selected {
        border-color: rgba(14, 165, 233, 0.32);
        box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
    }

    .TimelineNoPressureCard.is-related {
        border-color: rgba(15, 118, 110, 0.28);
    }

    .TimelineNoPressureCard.status-todo {
        background:
            linear-gradient(135deg, rgba(100, 116, 139, 0.12), rgba(71, 85, 105, 0.03)),
            var(--timeline-surface-strong);
    }

    .TimelineNoPressureCard.status-progress {
        background:
            linear-gradient(135deg, rgba(2, 132, 199, 0.14), rgba(14, 165, 233, 0.04)),
            var(--timeline-surface-strong);
    }

    .TimelineNoPressureCard.status-blocked {
        background:
            linear-gradient(135deg, rgba(185, 28, 28, 0.16), rgba(239, 68, 68, 0.04)),
            var(--timeline-surface-strong);
    }

    .TimelineNoPressureCard.status-late {
        background:
            linear-gradient(135deg, rgba(180, 83, 9, 0.16), rgba(245, 158, 11, 0.04)),
            var(--timeline-surface-strong);
    }

    .TimelineNoPressureCard.status-done {
        background:
            linear-gradient(135deg, rgba(15, 118, 110, 0.16), rgba(16, 185, 129, 0.04)),
            var(--timeline-surface-strong);
    }

    .TimelineNoPressureLead,
    .TimelineNoPressureProgressButton {
        border: 0;
        background: transparent;
        color: inherit;
        padding: 0;
        cursor: pointer;
        min-width: 0;
    }

    .TimelineNoPressureLead {
        display: grid;
        gap: 8px;
        text-align: left;
    }

    .TimelineNoPressureLead:hover .TimelineNoPressureTitle,
    .TimelineNoPressureProgressButton:hover .TimelineNoPressureProgressValue {
        text-decoration: underline;
        text-decoration-color: rgba(14, 165, 233, 0.42);
    }

    .TimelineNoPressureLeadMeta {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
        min-width: 0;
    }

    .TimelineNoPressureTitle {
        margin: 0;
        font-size: 15px;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .TimelineNoPressurePath {
        color: var(--timeline-muted);
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .TimelineNoPressureProgressButton {
        width: 100%;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 12px;
        text-align: left;
    }

    .TimelineNoPressureProgressTrack {
        position: relative;
        min-height: 18px;
        border-radius: 999px;
        border: 1px solid var(--timeline-border);
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
            repeating-linear-gradient(
                to right,
                transparent 0,
                transparent calc(25% - 1px),
                var(--timeline-track-line) calc(25% - 1px),
                var(--timeline-track-line) 25%
            ),
            var(--timeline-track-fill);
        box-sizing: border-box;
        overflow: visible;
    }

    .TimelineNoPressureProgressFill {
        position: absolute;
        inset: 0 auto 0 0;
        width: 0;
        border-radius: inherit;
        pointer-events: none;
        opacity: 0.96;
    }

    .TimelineNoPressureProgressFill.status-todo {
        background: linear-gradient(135deg, #64748b, #475569);
    }

    .TimelineNoPressureProgressFill.status-progress {
        background: linear-gradient(135deg, #0284c7, #0ea5e9);
    }

    .TimelineNoPressureProgressFill.status-blocked {
        background: linear-gradient(135deg, #b91c1c, #ef4444);
    }

    .TimelineNoPressureProgressFill.status-late {
        background: linear-gradient(135deg, #b45309, #f59e0b);
    }

    .TimelineNoPressureProgressFill.status-done {
        background: linear-gradient(135deg, #0f766e, #10b981);
    }

    .TimelineNoPressureProgressCursor {
        position: absolute;
        top: 50%;
        width: 14px;
        height: 14px;
        border-radius: 999px;
        background: #f8fafc;
        border: 2px solid rgba(15, 23, 42, 0.24);
        transform: translate(-50%, -50%);
        box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.14);
        pointer-events: none;
        z-index: 1;
    }

    .TimelineNoPressureProgressValue {
        position: relative;
        font-size: 13px;
        min-width: 48px;
        text-align: right;
        font-weight: 600;
    }

    .TimelineNoPressureFooter {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 10px;
        flex-wrap: wrap;
    }

    .TimelineNoPressureCardAction {
        height: 34px;
        border-radius: 999px;
        border: 1px solid var(--timeline-border);
        background: var(--timeline-surface);
        color: var(--text-color);
        padding: 0 12px;
        cursor: pointer;
    }

    @media screen and (max-width: 1240px) {
        .TimelineNoPressureCard {
            grid-template-columns: minmax(0, 1fr);
            align-items: stretch;
        }

        .TimelineNoPressureFooter {
            justify-content: space-between;
        }
    }

    .TimelineCanvasEmpty,
    .TimelineDetailEmpty {
        display: grid;
        gap: 10px;
        align-content: center;
        justify-items: start;
        min-height: 220px;
        padding: 24px;
    }

    .TimelineCanvasTable {
        display: grid;
        grid-template-columns: 270px max-content;
        align-content: start;
        min-width: 100%;
    }

    .TimelineCanvasHeadCell,
    .TimelineCanvasRowLabel,
    .TimelineCanvasTrackCell {
        min-height: 0;
    }

    .TimelineCanvasHeadCell {
        position: sticky;
        top: 0;
        z-index: 7;
        background: var(--timeline-surface-strong);
        border-bottom: 1px solid var(--timeline-border);
    }

    .TimelineCanvasHeadLabel {
        left: 0;
        position: sticky;
        z-index: 9;
        padding: 14px 16px;
        display: flex;
        align-items: center;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--timeline-muted);
        border-right: 1px solid var(--timeline-border);
    }

    .TimelineCanvasHeadTrack {
        display: grid;
        grid-template-columns: repeat(var(--timeline-columns, 1), var(--timeline-col-size, 84px));
    }

    .TimelineCanvasHeadUnit {
        padding: 14px 10px;
        border-right: 1px solid var(--timeline-track-line);
        font-size: 12px;
        line-height: 1.3;
        color: var(--timeline-muted);
        box-sizing: border-box;
        min-height: 62px;
    }

    .TimelineCanvasHeadUnit.is-today {
        color: var(--timeline-highlight);
        font-weight: 700;
        background: rgba(14, 165, 233, 0.08);
    }

    .TimelineCanvasRowLabel {
        position: sticky;
        left: 0;
        z-index: 5;
        border-right: 1px solid var(--timeline-border);
        border-bottom: 1px solid var(--timeline-border);
        background: var(--timeline-surface-strong);
        padding: 6px 12px;
        cursor: pointer;
        display: flex;
        align-items: center;
        text-align: left;
        min-width: 0;
    }

    .TimelineCanvasRowLabel.is-related,
    .TimelineCanvasTrackCell.is-related {
        background: rgba(15, 118, 110, 0.08);
    }

    .TimelineCanvasRowMain {
        padding-left: calc(var(--row-depth, 0) * 14px);
    }

    .TimelineCanvasTrackCell {
        border-bottom: 1px solid var(--timeline-border);
        padding: 4px 8px;
    }

    .TimelineCanvasTrack {
        position: relative;
        min-height: 26px;
        display: grid;
        grid-template-columns: repeat(var(--timeline-columns, 1), var(--timeline-col-size, 84px));
        align-items: center;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
            repeating-linear-gradient(
                to right,
                transparent 0,
                transparent calc(var(--timeline-col-size, 84px) - 1px),
                var(--timeline-track-line) calc(var(--timeline-col-size, 84px) - 1px),
                var(--timeline-track-line) var(--timeline-col-size, 84px)
            );
        border-radius: 14px;
        box-sizing: border-box;
    }

    .TimelineCanvasTrackToday {
        position: absolute;
        top: 0;
        bottom: 0;
        width: 2px;
        transform: translateX(-50%);
        background: linear-gradient(180deg, rgba(14, 165, 233, 0), rgba(14, 165, 233, 0.85), rgba(14, 165, 233, 0));
        border-radius: 999px;
        pointer-events: none;
        z-index: 1;
    }

    .TimelineCanvasBar {
        position: relative;
        height: 18px;
        border-radius: 999px;
        border: 1px solid transparent;
        color: #f8fafc;
        font-size: 11px;
        padding: 0 8px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        cursor: pointer;
        overflow: hidden;
        z-index: 2;
        min-width: 0;
    }

    .TimelineCanvasBar.is-absolute-placement {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        min-width: 8px;
    }

    .TimelineCanvasBarProgress {
        position: absolute;
        inset: 0;
        width: var(--timeline-progress, 0%);
        background: rgba(255, 255, 255, 0.2);
        pointer-events: none;
    }

    .TimelineCanvasBarLabel {
        position: relative;
        z-index: 1;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1;
        text-align: center;
        font-weight: 700;
    }

    .TimelineCanvasRowLabel .TimelineCanvasRowMain {
        gap: 0;
        padding-left: calc(var(--row-depth, 0) * 14px);
    }

    .TimelineCanvasRowLabel .TimelineCanvasRowTitle {
        font-size: 13px;
        line-height: 1.1;
    }

    .TimelineCanvasBar.is-derived {
        background-image:
            repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0, rgba(255, 255, 255, 0.18) 10px, transparent 10px, transparent 20px),
            linear-gradient(135deg, #64748b, #475569);
        border-color: rgba(255, 255, 255, 0.16);
    }

    .TimelineCanvasBar.status-todo {
        background: linear-gradient(135deg, #64748b, #475569);
    }

    .TimelineCanvasBar.status-progress {
        background: linear-gradient(135deg, #0284c7, #0ea5e9);
    }

    .TimelineCanvasBar.status-blocked {
        background: linear-gradient(135deg, #b91c1c, #ef4444);
    }

    .TimelineCanvasBar.status-late {
        background: linear-gradient(135deg, #b45309, #f59e0b);
    }

    .TimelineCanvasBar.status-done {
        background: linear-gradient(135deg, #0f766e, #10b981);
    }

    .TimelineCanvasBar.is-selected {
        box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
    }

    .TimelineCanvasBar.is-related {
        box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.2);
    }

    .TimelineDensityCompact .TimelineCanvasTrack {
        min-height: 22px;
    }

    .TimelineDensityCompact .TimelineCanvasBar {
        height: 16px;
        font-size: 10px;
    }

    .TimelineDensityDetailed .TimelineCanvasTrack {
        min-height: 32px;
    }

    .TimelineDensityDetailed .TimelineCanvasBar {
        height: 22px;
        font-size: 12px;
    }

    .TimelineCanvas.TimelineZoomMonth .TimelineCanvasTable {
        grid-template-columns: 270px minmax(0, 1fr);
    }

    .TimelineCanvas.TimelineZoomMonth .TimelineCanvasHeadTrack,
    .TimelineCanvas.TimelineZoomMonth .TimelineCanvasTrack {
        width: 100%;
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }

    .TimelineCanvas.TimelineZoomMonth .TimelineCanvasTrack {
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
            repeating-linear-gradient(
                to right,
                transparent 0,
                transparent calc((100% / 12) - 1px),
                var(--timeline-track-line) calc((100% / 12) - 1px),
                var(--timeline-track-line) calc(100% / 12)
            );
    }

    .TimelineCanvas.TimelineZoomMonth .TimelineCanvasHeadUnit {
        padding: 8px 4px;
        min-height: 46px;
        font-size: 11px;
        text-align: center;
    }

    .TimelineCanvas.TimelineZoomMonth .TimelineCanvasTrackCell {
        padding: 6px 8px;
    }

    .TimelineCanvas.TimelineZoomMonth .TimelineCanvasBar {
        height: 15px;
        padding: 0 6px;
        font-size: 10px;
    }

    .TimelineCanvas.TimelineZoomMonth .TimelineDependencyChip {
        display: none;
    }

    .TimelineDetail {
        overflow: auto;
        min-height: 0;
        padding-right: 4px;
    }

    .TimelineDetailCard {
        display: grid;
        gap: 14px;
    }

    .TimelineDetailHero {
        border-radius: 20px;
        padding: 16px;
        background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(15, 118, 110, 0.1));
        border: 1px solid rgba(14, 165, 233, 0.12);
        display: grid;
        gap: 10px;
    }

    .TimelineDetailTitle {
        margin: 0;
        font-size: 24px;
        line-height: 1.15;
    }

    .TimelineDetailPath {
        margin: 0;
        color: var(--timeline-muted);
        font-size: 13px;
    }

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

    .TimelineDetailStatCard {
        border-radius: 16px;
        border: 1px solid var(--timeline-border);
        background: var(--timeline-surface-strong);
        padding: 12px;
        display: grid;
        gap: 4px;
    }

    .TimelineDetailStatCard strong {
        font-size: 16px;
    }

    .TimelineDetailFieldGrid {
        display: grid;
        gap: 12px;
    }

    .TimelineDetailFieldLabel {
        display: grid;
        gap: 6px;
        font-size: 13px;
        color: var(--timeline-muted);
    }

    .TimelineDetailFieldCheckbox {
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 40px;
        border-radius: 12px;
        border: 1px solid var(--timeline-border);
        background: var(--timeline-surface-strong);
        padding: 0 12px;
        color: var(--text-color);
    }

    .TimelineDetailFieldCheckbox input {
        margin: 0;
    }

    .TimelineDetailSection {
        display: grid;
        gap: 8px;
    }

    .TimelineDetailSectionTitle {
        margin: 0;
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--timeline-muted);
    }

    .TimelineDetailDescription {
        margin: 0;
        padding: 14px;
        border-radius: 14px;
        background: var(--timeline-surface-strong);
        border: 1px solid var(--timeline-border);
        white-space: pre-wrap;
        line-height: 1.6;
    }

    .TimelineDependencyList {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .TimelineDependencyChip {
        background: rgba(15, 118, 110, 0.08);
        color: #0f766e;
        border-color: rgba(15, 118, 110, 0.18);
    }

    html.dark-theme .TimelineDependencyChip {
        color: #5eead4;
    }

    .TimelineEmptyTitle {
        margin: 0;
        font-size: 22px;
    }

    .TimelineEmptyText {
        margin: 0;
        color: var(--timeline-muted);
        line-height: 1.6;
    }

    @media (max-width: 1240px) {
        .TimelineBody {
            grid-template-columns: minmax(230px, 290px) minmax(0, 1fr);
        }
    }

    @media (max-width: 980px) {
        .TimelineViewHeader {
            grid-template-columns: 1fr;
        }

        .TimelineViewHeaderStats {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }

        .TimelineBody {
            grid-template-columns: 1fr;
            grid-template-areas:
                'sidebar'
                'canvas'
                'detail';
        }

        .TimelineCanvasTable {
            grid-template-columns: 220px max-content;
        }
    }

    @media (max-width: 720px) {
        .TimelineViewShell {
            padding: 12px;
        }

        .TimelineViewHeader,
        .TimelineToolbar,
        .TimelinePanel {
            border-radius: 18px;
        }

        .TimelineViewHeaderStats,
        .TimelineDetailStats {
            grid-template-columns: 1fr;
        }

        .TimelineCanvasTable {
            grid-template-columns: 180px max-content;
        }

        .TimelineToolbarGroupActions {
            margin-left: 0;
        }
    }
}
