.analytics-workspace {
    grid-column: span 2;
    padding: 2.5rem 4rem;
    overflow-y: auto;
    height: 100vh;
    animation: pageSlideIn 0.35s ease-out;
}

.workspace-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    gap: 1.5rem;
}

.greeting-block h1 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.greeting-block p {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 0.2rem;
}

.header-action-nodes {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-shrink: 0;
}

#theme-toggle {
    padding: 0.5rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#theme-toggle:hover {
    transform: scale(1.08);
}

#theme-toggle svg {
    width: 22px;
    height: 22px;
}

.header-action-nodes {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-shrink: 0;
}

.back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0 !important;
    border-radius: 12px;
    background: var(--bg-main);
    box-shadow: var(--nm-flat);
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    color: var(--text-primary);
    text-decoration: none;
}

.back-button:hover {
    box-shadow: var(--nm-pressed);
    transform: scale(1.05);
}

.back-button i,
.back-button svg {
    width: 20px;
    height: 20px;
}

#theme-toggle {
    padding: 0.5rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#theme-toggle:hover {
    transform: scale(1.08);
}

#theme-toggle svg {
    width: 22px;
    height: 22px;
}

.insights-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.data-card-3d {
    position: relative;
    padding: 1.75rem !important;
}

.card-icon-header {
    position: absolute;
    right: 1.75rem;
    top: 1.5rem;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    box-shadow: var(--nm-pressed);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon-header i {
    width: 18px;
    height: 18px;
}

.summary-subtext {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 0.5rem;
    line-height: 1.4;
}

.charts-visualization-matrix {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.chart-container-card {
    padding: 1.7rem !important;
}

.chart-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--bg-main);
    padding-bottom: 0.6rem;
}

.chart-header i {
    color: var(--accent);
    width: 20px;
    height: 20px;
}

.canvas-wrapper {
    position: relative;
    width: 100%;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-history-card {
    padding: 2rem !important;
}

.timeline-logs-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-top: 0.5rem;
}

.timeline-row-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--nm-pressed);
    font-size: 0.9rem;
    font-weight: 600;
}

.log-meta-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.log-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.log-timestamp-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.empty-timeline-notice {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
    font-weight: 500;
}

@media (max-width: 1280px) {
    .analytics-workspace {
        grid-column: auto;
        padding: 2rem 1.5rem;
        height: auto;
        min-height: 100dvh;
        overflow: visible;
    }
}

@media (max-width: 1024px) {
    .workspace-header {
        flex-direction: column;
        align-items: stretch;
    }

    .header-action-nodes {
        justify-content: flex-start;
    }

    .insights-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .charts-visualization-matrix {
        grid-template-columns: 1fr;
    }

    .canvas-wrapper {
        height: 240px;
    }

    .timeline-row-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

@media (max-width: 720px) {
    .analytics-workspace {
        padding: 1.25rem 1rem;
    }

    .greeting-block h1 {
        font-size: 1.8rem;
    }

    .insights-summary-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .chart-container-card,
    .timeline-history-card,
    .data-card-3d {
        padding: 1.25rem !important;
    }

    .canvas-wrapper {
        height: 220px;
    }

    .chart-header {
        font-size: 1rem;
    }
}