.overview-section {
    margin: 0;
}

.overview-error-banner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.overview-error-banner-body {
    min-width: 0;
    flex: 1 1 240px;
    overflow-wrap: anywhere;
}

.overview-error-banner-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.overview-error-dismiss {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: inherit;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
}

.overview-error-dismiss:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.06);
}

.overview-welcome {
    display: block;
}

.overview-welcome-shell {
    position: relative;
    z-index: 5;
}

/* Welcome → KPI: ~18px after meta (--space-6 = 40px) */
.overview-welcome-shell + .overview-kpi-grid {
    margin-top: calc(18px - var(--space-6));
}

.overview-welcome-main {
    min-width: 0;
}

.overview-welcome-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
    margin-bottom: 4px;
}

.overview-welcome-title {
    min-width: 0;
    flex: 1 1 auto;
}

.overview-welcome-actions {
    flex: 0 0 auto;
}

.overview-welcome-kicker {
    margin-bottom: 8px;
    color: var(--brand-600);
}

.overview-welcome-meta {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    line-height: 1.45;
}

.overview-welcome-dot { opacity: 0.45; }

.overview-filters-anchor {
    position: relative;
}

.overview-filters-trigger {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    min-height: 42px;
    padding: 0 18px;
    margin: 0;
    border-radius: 16px;
    border: 1px solid #E8E5F8;
    background: #FFFFFF;
    color: #4F46E5;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    outline: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease, color 0.15s ease;
}

.overview-filters-trigger::-moz-focus-inner {
    border: 0;
    padding: 0;
}

.overview-filters-trigger .app-icon {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    color: #4F46E5;
}

.overview-filters-trigger:hover,
.overview-filters-trigger.is-open {
    background: #F7F5FF;
    border-color: #D8D4F0;
    color: #4F46E5;
    box-shadow: var(--shadow-soft);
}

.overview-filters-trigger:active {
    transform: scale(0.98);
    box-shadow: 0 1px 3px rgba(20, 20, 20, 0.06);
}

.overview-filters-trigger:focus-visible {
    border-color: #A5B4FC;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.22);
}

.overview-filters-trigger.has-active {
    border-color: #D8D4F0;
}

.overview-filters-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    margin-left: 2px;
    border-radius: 999px;
    background: #4F46E5;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.overview-filters-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(15, 15, 20, 0.28);
}

.overview-filters-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-height: min(78vh, 560px);
    padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
    border: 1px solid #E4E0F8;
    background: #fff;
    box-shadow: 0 -12px 40px rgba(15, 15, 20, 0.16);
    overflow: visible;
    outline: none;
}

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

.overview-filters-panel-title {
    font-size: 1.0625rem;
    font-weight: 750;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.overview-filters-panel-subtitle {
    margin-top: 4px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.overview-filters-close {
    appearance: none;
    -webkit-appearance: none;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 10px;
    background: #F3F4F6;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    outline: none;
}

.overview-filters-close:hover {
    background: #E5E7EB;
    color: var(--text-main);
}

.overview-filters-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.overview-filters-form-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.overview-filters-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.overview-filters-field-label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.overview-filters-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 4px;
}

.app-menu-select {
    position: relative;
    width: 100%;
}

.app-menu-select-trigger {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    background: #FAFAFF;
    color: var(--text-main);
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.app-menu-select.is-open .app-menu-select-trigger,
.app-menu-select-trigger:hover {
    border-color: #A5B4FC;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.app-menu-select-value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-menu-select-chevron {
    flex: 0 0 auto;
    color: #6366F1;
    transition: transform 0.18s ease;
}

.app-menu-select.is-open .app-menu-select-chevron {
    transform: rotate(180deg);
}

.app-menu-select-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 60;
    max-height: 220px;
    overflow-y: auto;
    padding: 6px;
    border-radius: 14px;
    border: 1px solid #E4E0F8;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 15, 20, 0.12);
}

.app-menu-select-option {
    appearance: none;
    -webkit-appearance: none;
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--text-main);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    outline: none;
}

.app-menu-select-option:hover {
    background: #F5F3FF;
}

.app-menu-select-option.is-selected {
    background: #EEF2FF;
    color: #4338CA;
    font-weight: 700;
}

@media (min-width: 768px) {
    .overview-filters-backdrop {
        background: transparent;
    }

    .overview-filters-panel {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        left: auto;
        bottom: auto;
        width: 400px;
        max-height: none;
        padding: 22px 24px;
        border-radius: 20px;
        box-shadow: 0 18px 44px rgba(15, 15, 20, 0.14);
    }
}

.overview-activity-message {
    margin: 0;
}

.overview-activity-meta {
    margin: 4px 0 0;
}

/* Typography rhythm */
.type-display {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin: 0;
}

.type-display-sm {
    font-size: clamp(2.125rem, 3.2vw, 2.625rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.type-heading {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin: 0;
}

.type-body {
    font-size: 0.9375rem;
    line-height: 1.55;
    margin: 0;
}

.type-body-strong {
    font-size: 0.9375rem;
    font-weight: 650;
    line-height: 1.45;
    margin: 0;
}

.type-caption {
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--text-secondary);
    margin: 0;
}

.type-label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin: 0;
}

/* Surface system */
.surface-panel {
    border-radius: var(--radius-card);
    border: 1px solid var(--border-soft);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.surface-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-4) 0;
}

.surface-panel-body {
    padding: var(--space-3) var(--space-4) var(--space-4);
}

.surface-panel {
    background: var(--bg-surface);
    box-shadow: 0 1px 2px rgba(15, 15, 20, 0.04), 0 10px 30px rgba(15, 15, 20, 0.04);
}

.surface-alert {
    background: linear-gradient(180deg, #FFF9F5 0%, #FFFFFF 72%);
    border-color: #FDEAD7;
}

.surface-panel-accent {
    background: linear-gradient(180deg, var(--brand-50) 0%, #FFFFFF 70%);
    border-color: #DDD6FE;
}

.surface-chart {
    background: linear-gradient(180deg, #FAFAFF 0%, #FFFFFF 65%);
    border-color: #E0E7FF;
}

.surface-quick {
    background: linear-gradient(180deg, #FAFAFF 0%, #FFFFFF 72%);
    border-color: #E0E7FF;
}

.surface-panel .app-empty-state {
    background: transparent;
    border: 0;
    padding: var(--space-5) var(--space-3);
}

.surface-panel .app-empty-icon {
    background: var(--brand-100);
    color: var(--brand-600);
}

.overview-attention-card .app-badge-lime {
    background: var(--brand-100);
    color: #4338CA;
}

.overview-attention-card .app-badge-warning {
    background: #FFF7ED;
    color: #C2410C;
}

.overview-source-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    flex: 0 0 auto;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #4338CA;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(99, 102, 241, 0.12);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.overview-metric-top > .overview-source-badge {
    grid-area: badge;
    max-width: 11rem;
    justify-self: end;
    align-self: center;
}

.overview-source-badge.inline {
    vertical-align: middle;
    max-width: 100%;
}

.overview-page {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    max-width: 1280px;
    min-width: 0;
}

.overview-page-enter {
    animation: overviewFadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes overviewFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.overview-stagger > * {
    animation: overviewFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.overview-stagger > *:nth-child(1) { animation-delay: 0.04s; }
.overview-stagger > *:nth-child(2) { animation-delay: 0.08s; }
.overview-stagger > *:nth-child(3) { animation-delay: 0.12s; }
.overview-stagger > *:nth-child(4) { animation-delay: 0.16s; }

.overview-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: 16px;
    align-items: stretch;
}

.overview-kpi-grid.is-refreshing {
    opacity: 0.72;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.overview-kpi-sales,
.overview-kpi-profit,
.overview-kpi-orders,
.overview-kpi-stock,
.overview-kpi-sku {
    min-width: 0;
}

.overview-metric {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 236px;
    min-width: 0;
    padding: 32px;
    border-radius: 24px;
    text-decoration: none;
    color: var(--text-main);
    border: 1px solid rgba(255,255,255,0.65);
    box-shadow: 0 1px 2px rgba(15, 15, 20, 0.03), 0 14px 36px rgba(15, 15, 20, 0.05);
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease;
    overflow: hidden;
    container-type: inline-size;
    container-name: overview-metric;
}

.overview-metric-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-width: 0;
    height: 100%;
    position: relative;
    z-index: 1;
}

.overview-metric-inner.is-refreshing {
    opacity: 0.65;
}

.overview-metric::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.55), transparent 55%);
    pointer-events: none;
}

.overview-metric:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.12), 0 20px 44px rgba(15, 15, 20, 0.08);
    color: var(--text-main);
    text-decoration: none;
}

.overview-metric-hero {
    min-height: 236px;
    padding: 32px;
}

.overview-metric-top {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
        "icon . badge"
        "label label label";
    column-gap: 12px;
    row-gap: 16px;
    align-items: center;
    min-width: 0;
}

.overview-metric-head {
    display: contents;
}

.overview-metric-icon {
    grid-area: icon;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border-radius: 12px;
    background: rgba(255,255,255,0.82);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.85), 0 1px 2px rgba(15, 15, 20, 0.04);
}

.overview-metric-label {
    grid-area: label;
    min-width: 0;
    width: 100%;
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 650;
    letter-spacing: 0.06em;
    line-height: 1.3;
    color: var(--text-secondary);
}

.overview-metric-value,
.overview-metric-value.type-display-sm {
    margin: 12px 0 0;
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    /* Prefer large type; shrink via clamp before tracking; never wrap */
    font-size: clamp(1.625rem, 11.5cqi, 2.625rem);
    letter-spacing: clamp(-0.05em, calc(-0.07em + 0.12cqi), -0.028em);
}

.overview-metric-unit {
    margin: 12px 0 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.overview-metric-hint,
.overview-metric-spark {
    min-width: 0;
}

.overview-metric-hint {
    margin: 12px 0 0;
    overflow-wrap: anywhere;
    line-height: 1.45;
    color: var(--text-secondary);
}

.overview-kpi-orders .overview-metric-unit {
    margin-top: 10px;
}

.overview-kpi-orders .overview-metric-hint {
    margin-top: 6px;
    white-space: pre-line;
}

.overview-metric-spark {
    margin-top: auto;
    flex: 0 0 auto;
    padding-top: 16px;
    border-top: 1px solid rgba(15, 15, 20, 0.07);
    height: 40px;
    box-sizing: content-box;
}

.overview-metric-hint:last-child {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(15, 15, 20, 0.07);
}

.overview-sparkline {
    width: 100%;
    height: 100%;
    display: block;
}

.overview-metric-indigo { background: linear-gradient(155deg, #EEF2FF 0%, #E0E7FF 48%, #F8FAFF 100%); }
.overview-metric-mint { background: linear-gradient(155deg, #ECFDF5 0%, #D1FAE5 48%, #F6FEF9 100%); }
.overview-metric-violet { background: linear-gradient(155deg, #F5F3FF 0%, #EDE9FE 48%, #FBFAFF 100%); }
.overview-metric-sky { background: linear-gradient(155deg, #EFF6FF 0%, #DBEAFE 48%, #F8FBFF 100%); }

.overview-grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
}

.overview-side-pair {
    align-items: stretch;
}

.overview-side-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    max-height: 320px;
}

.overview-side-panel-header {
    flex: 0 0 auto;
    padding: var(--space-3) var(--space-3) 0;
    align-items: flex-start;
    gap: var(--space-2);
}

.overview-side-panel-header .type-heading {
    font-size: 1.05rem;
}

.overview-side-panel-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: var(--space-2) var(--space-3) var(--space-3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.overview-attention-list,
.overview-reminders-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    overscroll-behavior: contain;
    min-height: 0;
    max-height: 100%;
    padding-right: 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(107, 103, 128, 0.35) transparent;
}

.overview-attention-list::-webkit-scrollbar,
.overview-reminders-list::-webkit-scrollbar {
    width: 6px;
}

.overview-attention-list::-webkit-scrollbar-thumb,
.overview-reminders-list::-webkit-scrollbar-thumb {
    background: rgba(107, 103, 128, 0.28);
    border-radius: 999px;
}

.overview-side-empty {
    padding: var(--space-3) var(--space-2) !important;
}

.overview-side-empty .app-empty-title {
    font-size: 0.95rem;
}

.overview-side-empty .app-empty-description {
    font-size: 0.8125rem;
}

.overview-reminders-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.overview-reminders-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 12px;
    padding: 0 12px;
    min-height: 34px;
    line-height: 1;
    white-space: nowrap;
}

.overview-attention-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    line-height: 1;
    min-height: 34px;
    padding: 0 12px;
}

.overview-attention-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 14px;
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(253, 234, 215, 0.9);
    transition: transform 0.18s ease, background 0.18s ease;
}

.overview-attention-card:hover {
    transform: translateX(2px);
    background: #fff;
}

.overview-attention-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-600);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.12);
}

.overview-attention-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.overview-attention-card-title {
    font-size: 0.875rem;
    line-height: 1.3;
}

.overview-attention-card-desc {
    margin: 2px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.overview-reminder-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 14px;
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(221, 214, 254, 0.8);
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}

.overview-reminder-row:hover {
    background: #fff;
    transform: translateX(2px);
}

.overview-reminder-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-600);
    box-shadow: 0 3px 10px rgba(79, 70, 229, 0.1);
}

.overview-reminder-main {
    min-width: 0;
}

.overview-reminder-top {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.overview-reminder-title {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.overview-reminder-desc {
    margin: 2px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.overview-reminder-meta {
    margin: 2px 0 0;
}

.overview-reminder-priority {
    display: inline-flex;
    flex: 0 0 auto;
}

.overview-reminder-priority-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 999px;
}

.overview-reminder-priority-high { background: #EF4444; }
.overview-reminder-priority-medium { background: #F59E0B; }
.overview-reminder-priority-low { background: #94A3B8; }

.overview-reminder-status {
    flex: 0 0 auto;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 4px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

.overview-reminder-status-new {
    background: var(--brick-lavender-deep, #EDE9FE);
    color: #4338CA;
}

.overview-reminder-status-in_progress {
    background: var(--brick-sky, #DBEAFE);
    color: #1E4A6F;
}

.overview-reminder-status-done {
    background: var(--brick-mint, #D1FAE5);
    color: #166534;
}

.overview-reminder-readonly {
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--bg-soft);
    border: 1px solid var(--border-soft);
}

.overview-today-item {
    display: grid;
    grid-template-columns: 52px auto 1fr;
    gap: 12px;
    align-items: start;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(221, 214, 254, 0.8);
    transition: background 0.18s ease;
}

.overview-today-item:hover { background: #fff; }

.overview-today-time {
    padding-top: 2px;
}

.overview-today-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-600);
}

.overview-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-3);
}

.quick-action-card {
    position: relative;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    justify-items: start;
    gap: 10px;
    min-height: 148px;
    padding: 22px;
    border-radius: 18px;
    text-decoration: none;
    color: var(--text-main);
    background: rgba(255,255,255,0.82);
    border: 1px solid rgba(255,255,255,0.95);
    box-shadow: 0 8px 24px rgba(15, 15, 20, 0.04);
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease;
}

.quick-action-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 14px 34px rgba(79, 70, 229, 0.14);
    color: var(--text-main);
    border-color: #C7D2FE;
}

.quick-action-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: 0 6px 16px rgba(15, 15, 20, 0.06);
}

.quick-action-indigo .quick-action-icon { color: var(--brand-600); }
.quick-action-violet .quick-action-icon { color: #7C3AED; }
.quick-action-sky .quick-action-icon { color: #2563EB; }
.quick-action-mint .quick-action-icon { color: #059669; }

.quick-action-arrow {
    position: absolute;
    right: 18px;
    bottom: 18px;
    color: var(--text-secondary);
    transition: transform 0.18s ease, color 0.18s ease;
}

.quick-action-card:hover .quick-action-arrow {
    transform: translateX(3px);
    color: var(--brand-600);
}

.overview-chart-header {
    width: 100%;
    align-items: center;
}

.overview-chart-wrap {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.overview-chart-animate .overview-chart-line {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: chartDraw 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.overview-chart-animate .overview-chart-area {
    opacity: 0;
    animation: chartAreaIn 0.9s ease forwards 0.15s;
}

@keyframes chartDraw {
    to { stroke-dashoffset: 0; }
}

@keyframes chartAreaIn {
    to { opacity: 1; }
}

.overview-chart-plot {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: var(--space-2);
    align-items: stretch;
}

.overview-chart-y-axis {
    position: relative;
    min-height: 300px;
}

.overview-chart-axis-label {
    position: absolute;
    right: 0;
    left: 0;
    transform: translateY(-50%);
    margin: 0;
    text-align: right;
    line-height: 1.2;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.overview-chart-svg {
    width: 100%;
    height: 300px;
    display: block;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(238, 242, 255, 0.45) 0%, rgba(255,255,255,0) 100%);
    overflow: visible;
}

.overview-chart-gridline {
    stroke: rgba(107, 103, 128, 0.12);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.overview-chart-line {
    fill: none;
    stroke-width: 2.5;
    vector-effect: non-scaling-stroke;
}

.overview-chart-line-revenue { stroke: var(--brand-600); }
.overview-chart-line-profit { stroke: #10B981; }

.overview-chart-dot {
    fill: #fff;
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
    transition: r 0.15s ease;
}

.overview-chart-dot-revenue { stroke: var(--brand-600); }
.overview-chart-dot-profit { stroke: #10B981; }

.overview-chart-dot:hover { r: 6; }

.overview-chart-labels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 8px;
    text-align: center;
    margin-left: calc(76px + var(--space-2));
}

.overview-chart-legend {
    display: flex;
    gap: var(--space-4);
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.overview-chart-legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    margin-right: 6px;
    vertical-align: middle;
}

.overview-chart-legend-dot-revenue { background: var(--brand-600); }
.overview-chart-legend-dot-profit { background: #10B981; }

.overview-top-products { display: flex; flex-direction: column; gap: var(--space-2); }

.overview-product-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--space-3);
    align-items: center;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.75);
    border: 1px solid var(--border-soft);
    text-decoration: none;
    color: var(--text-main);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.overview-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 15, 20, 0.06);
    color: var(--text-main);
}

.overview-product-rank {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: var(--brand-100);
    color: var(--brand-600);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.overview-product-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.overview-product-meta {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.overview-activity-message {
    margin: 0;
}

.overview-product-profit { font-weight: 800; color: #059669; white-space: nowrap; }
.overview-product-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.overview-activity-feed { display: flex; flex-direction: column; gap: var(--space-2); }

.overview-activity-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-3);
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--bg-page);
    border: 1px solid var(--border-soft);
    transition: background 0.18s ease;
}

.overview-activity-item:hover { background: #fff; }

.overview-activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-600);
}

.overview-welcome-skeleton { height: 96px; border-radius: 22px; }
.overview-metric-skeleton { height: 188px; border-radius: 22px; }
.overview-panel-skeleton { height: 300px; border-radius: 24px; }
.overview-chart-skeleton { height: 340px; border-radius: 24px; }
.overview-attention-skeleton,
.overview-reminder-skeleton,
.overview-event-skeleton,
.overview-product-skeleton,
.overview-activity-skeleton,
.overview-quick-skeleton { height: 48px; border-radius: 14px; margin-bottom: 6px; }

@media (max-width: 1199.98px) {
    .overview-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 767.98px) {
    .overview-kpi-grid,
    .overview-grid-two,
    .overview-quick-grid { grid-template-columns: 1fr; }

    .overview-side-panel {
        max-height: 280px;
    }

    .overview-welcome-title-row {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .overview-welcome-actions {
        padding-top: 0;
    }

    .overview-attention-card { grid-template-columns: auto 1fr; }
    .overview-attention-cta { grid-column: 1 / -1; width: 100%; }
    .overview-chart-svg { height: 240px; }
    .overview-chart-y-axis { min-height: 240px; }
    .overview-chart-plot { grid-template-columns: 68px minmax(0, 1fr); }
    .overview-chart-labels { margin-left: calc(68px + var(--space-2)); }
}
