:root {
    --v5-canvas: #f5f6fb;
    --v5-surface: #ffffff;
    --v5-ink: #14161f;
    --v5-ink-2: #6b7280;
    --v5-ink-3: #9ca3af;
    --v5-line: #edeef3;
    --v5-red-700: #7c0c1e;
    --v5-red-600: #9e0f26;
    --v5-red-500: #be132d;
    --v5-red-400: #ce3f52;
    --v5-red-50: #fcecee;
    --v5-teal: #0e8074;
    --v5-teal-50: #e4f3f0;
    --v5-slate: #46536b;
    --v5-slate-50: #edeff3;
    --v5-warn: #b8720b;
    --v5-warn-50: #fdf3e1;
    --v5-radius: 18px;
    --v5-radius-md: 14px;
    --v5-radius-sm: 8px;
    --v5-shadow: 0 1px 2px rgba(20, 22, 31, .04), 0 10px 24px -16px rgba(20, 22, 31, .12);
}

#appShell {
    min-height: 100vh;
    align-items: flex-start;
    background: var(--v5-canvas);
    background-image: none !important;
    color: var(--v5-ink);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

#appShell::before {
    display: none !important;
}

#appShell * {
    font-family: inherit;
}

#appShell :where(button, a, input, select, [tabindex]):focus-visible {
    outline: 3px solid rgba(190, 19, 45, .22);
    outline-offset: 2px;
}

#appShell .platform-sidebar {
    position: sticky;
    top: 0;
    width: 52px;
    height: 100vh;
    min-height: 100vh;
    flex: 0 0 52px;
    display: flex;
    flex-direction: column;
    padding: 14px 0;
    gap: 4px;
    overflow: visible;
    border: 0;
    border-right: 1px solid var(--v5-line);
    border-radius: 0;
    background: var(--v5-surface);
    background-image: none !important;
    box-shadow: none;
    color: var(--v5-ink);
    transition: width .2s ease, flex-basis .2s ease;
}

#appShell .platform-sidebar.collapsed {
    width: 52px;
    flex-basis: 52px;
}

#appShell .platform-sidebar:not(.collapsed) {
    width: 220px;
    flex-basis: 220px;
    box-shadow: 12px 0 36px rgba(20, 22, 31, .08);
}

#appShell .platform-brand {
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 9px;
    margin: 0 0 10px;
    border: 0;
}

#appShell .platform-logo {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 11px;
    background: var(--v5-surface);
    box-shadow: none;
}

#appShell .platform-logo svg {
    width: 78%;
    height: 78%;
    stroke: var(--v5-red-500);
    stroke-width: 7.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#appShell .platform-logo .accent {
    fill: var(--v5-teal);
    stroke: none;
}

#appShell .platform-brand-text {
    min-width: 0;
    flex: 1;
    display: none;
}

#appShell .platform-sidebar:not(.collapsed) .platform-brand-text {
    display: block;
}

#appShell .platform-name {
    color: var(--v5-ink);
    font-size: 13px;
    font-weight: 700;
}

#appShell .platform-subname {
    color: var(--v5-ink-3);
    font-size: 10px;
}

#appShell .sidebar-toggle {
    position: absolute;
    top: 58px;
    right: -13px;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border: 1px solid var(--v5-line);
    border-radius: 50%;
    background: var(--v5-surface);
    color: var(--v5-ink-2);
    box-shadow: var(--v5-shadow);
    font-size: 14px;
}

#appShell .primary-nav {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 9px;
    margin: 0;
    overflow-y: auto;
}

#appShell .primary-nav-item {
    width: 34px;
    min-height: 34px;
    flex: 0 0 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--v5-ink-3);
    box-shadow: none;
}

#appShell .platform-sidebar:not(.collapsed) .primary-nav-item {
    width: 100%;
    justify-content: flex-start;
    padding: 0 10px;
}

#appShell .primary-nav-item:hover {
    background: var(--v5-canvas);
    color: var(--v5-ink-2);
}

#appShell .primary-nav-item.active {
    background: var(--v5-red-50);
    color: var(--v5-red-600);
}

#appShell .nav-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

#appShell .nav-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

#appShell .nav-text {
    display: none;
    min-width: 0;
    color: currentColor;
    font-size: 12px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#appShell .platform-sidebar:not(.collapsed) .nav-text {
    display: block;
}

#appShell .primary-nav-separator {
    width: 26px;
    height: 1px;
    min-height: 1px;
    margin: 6px 4px;
    background: var(--v5-line);
}

#appShell .sidebar-project-switcher {
    width: 34px;
    margin: 8px 9px;
}

#appShell .platform-sidebar:not(.collapsed) .sidebar-project-switcher {
    width: auto;
}

#appShell .project-switch-button {
    width: 34px;
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--v5-line);
    border-radius: 9px;
    background: var(--v5-surface);
    box-shadow: none;
}

#appShell .platform-sidebar:not(.collapsed) .project-switch-button {
    width: 100%;
    display: grid;
    grid-template-columns: 28px 1fr auto;
    gap: 8px;
    justify-content: stretch;
    padding: 6px 8px;
}

#appShell .project-switch-mark {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border-radius: 7px;
    background: var(--v5-red-50);
    color: var(--v5-red-600);
    font-size: 11px;
    font-weight: 700;
}

#appShell .project-switch-text,
#appShell .project-switch-arrow {
    display: none;
}

#appShell .project-switch-text > span {
    color: var(--v5-ink-3);
}

#appShell .project-switch-text strong {
    color: var(--v5-slate);
}

#appShell .project-switch-arrow {
    color: var(--v5-ink-3);
}

#appShell .platform-sidebar:not(.collapsed) .project-switch-text,
#appShell .platform-sidebar:not(.collapsed) .project-switch-arrow {
    display: grid;
}

#appShell .project-switch-dropdown {
    left: 42px;
    right: auto;
    bottom: 0;
    width: min(280px, calc(100vw - 76px));
    border: 1px solid var(--v5-line);
    border-radius: var(--v5-radius-md);
    background: var(--v5-surface);
    background-image: none !important;
    box-shadow: 0 16px 40px rgba(20, 22, 31, .14);
    backdrop-filter: none;
}

#appShell .platform-sidebar:not(.collapsed) .project-switch-dropdown {
    left: 0;
    bottom: calc(100% + 8px);
}

#appShell .sidebar-account {
    width: 34px;
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 9px;
    padding: 0;
    border: 0;
    border-top: 1px solid var(--v5-line);
    border-radius: 0;
    background: transparent !important;
    color: var(--v5-ink);
}

#appShell .platform-sidebar:not(.collapsed) .sidebar-account {
    width: auto;
    justify-content: flex-start;
    padding: 10px 0 0;
}

#appShell .account-avatar {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 50%;
    background: var(--v5-slate-50);
    color: var(--v5-slate);
    font-size: 11px;
    font-weight: 700;
}

#appShell .sidebar-account .account-name {
    color: var(--v5-ink);
}

#appShell .sidebar-account .account-project {
    color: var(--v5-ink-3);
}

#appShell .sidebar-account-text,
#appShell .sidebar-logout {
    display: none;
}

#appShell .platform-sidebar:not(.collapsed) .sidebar-account-text,
#appShell .platform-sidebar:not(.collapsed) .sidebar-logout {
    display: block;
}

#appShell .platform-main {
    width: min(1480px, calc(100% - 52px));
    max-width: 1480px;
    min-width: 0;
    min-height: 100vh;
    flex: 1;
    padding: 24px 32px 48px;
    margin: 0;
    background: var(--v5-canvas);
    background-image: none !important;
}

#appShell .header {
    position: static;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0;
    margin: 0 0 20px;
    border: 0;
    border-radius: 0;
    background: transparent;
    background-image: none !important;
    box-shadow: none;
    backdrop-filter: none;
    color: var(--v5-ink);
}

#appShell .header h1 {
    margin: 0;
    color: var(--v5-ink);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: 0;
}

#appShell .module-subtitle {
    margin-top: 2px;
    color: var(--v5-ink-3);
    font-size: 12px;
    line-height: 1.5;
    font-weight: 400;
}

#appShell .module-freshness {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border: 0;
    border-radius: 20px;
    background: var(--v5-surface);
    box-shadow: var(--v5-shadow);
    color: var(--v5-ink-2);
}

#appShell .module-freshness > span {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: var(--v5-ink-3);
}

#appShell .module-freshness strong {
    color: inherit;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 500;
}

#appShell .qianchuan-v5-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 6px 12px 6px 20px;
    margin-bottom: 20px;
    border: 0;
    border-radius: 16px;
    background: var(--v5-surface);
    box-shadow: var(--v5-shadow);
}

#appShell #mainTabs {
    min-width: 0;
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    margin: 0;
    overflow-x: auto;
    overflow-y: hidden;
    border: 0;
    border-radius: 16px;
    background: transparent;
    box-shadow: none;
    scrollbar-width: thin;
}

#appShell #mainTabs .tab {
    min-height: 36px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--v5-ink-2);
    font: inherit;
    font-size: 12px;
    line-height: 1.4;
    cursor: pointer;
    white-space: nowrap;
}

#appShell #mainTabs .tab.active {
    background: var(--v5-red-50);
    color: var(--v5-red-600);
    font-weight: 600;
}

#appShell #mainTabs .tab:focus-visible,
#appShell .date-mode-btn:focus-visible,
#appShell .overview-channel-tab:focus-visible,
#appShell .overview-trend-toggle:focus-visible,
#appShell .overview-state button:focus-visible {
    outline: 3px solid rgba(190, 19, 45, .22);
    outline-offset: 2px;
}

#appShell .date-bar {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

#appShell .date-mode-btns {
    display: flex;
    gap: 2px;
    padding: 3px;
    border-radius: 10px;
    border: 0 !important;
    background: var(--v5-canvas) !important;
    box-shadow: none !important;
}

#appShell .date-mode-btn {
    min-height: 32px;
    padding: 6px 11px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--v5-ink-2);
    font-size: 11px;
    line-height: 1.4;
    white-space: nowrap;
}

#appShell .date-mode-btn.active {
    background: var(--v5-surface) !important;
    color: var(--v5-ink) !important;
    box-shadow: 0 1px 2px rgba(20, 22, 31, .08) !important;
    font-weight: 600;
}

#appShell .date-input {
    min-height: 32px;
    border: 1px solid var(--v5-line);
    border-radius: var(--v5-radius-sm);
    background: var(--v5-surface);
    color: var(--v5-ink);
    font: inherit;
    font-size: 11px;
}

#appShell .date-range-hint {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    max-width: 220px;
    padding: 6px 12px;
    border: 1px solid rgba(190, 19, 45, .18);
    border-radius: 999px;
    background: var(--v5-red-50);
    color: var(--v5-red-700);
    font-size: 10.5px;
    line-height: 1.4;
    font-weight: 600;
    white-space: normal;
    box-shadow: none;
}

#appShell .content {
    padding: 0;
    margin: 0;
}

#appShell #tab-overview {
    min-width: 0;
}

#appShell .overview-v5-shell {
    min-width: 0;
    color: var(--v5-ink);
    font-family: inherit;
}

#appShell .overview-state-stack {
    position: relative;
    z-index: 2;
}

#appShell .overview-state {
    display: none;
    min-height: 72px;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    margin-bottom: 16px;
    border: 1px solid var(--v5-line);
    border-radius: var(--v5-radius-md);
    background: var(--v5-surface);
    box-shadow: var(--v5-shadow);
}

#appShell .overview-state.is-active {
    display: flex;
}

#appShell .overview-state strong {
    color: var(--v5-ink);
    font-size: 12.5px;
    font-weight: 700;
}

#appShell .overview-state span {
    flex: 1;
    color: var(--v5-ink-2);
    font-size: 11.5px;
}

#appShell .overview-state button {
    min-height: 34px;
    padding: 7px 14px;
    border: 0;
    border-radius: 9px;
    background: var(--v5-red-600);
    color: #fff;
    font: inherit;
    font-size: 11.5px;
    font-weight: 600;
}

#appShell [data-state="loading"] {
    border-color: var(--v5-line);
}

#appShell [data-state="empty"] {
    border-color: var(--v5-line);
}

#appShell [data-state="partial"] {
    border-color: rgba(184, 114, 11, .24);
    background: var(--v5-warn-50);
}

#appShell [data-state="stale"] {
    border-color: rgba(70, 83, 107, .22);
    background: var(--v5-slate-50);
}

#appShell [data-state="error"] {
    border-color: rgba(190, 19, 45, .2);
    background: var(--v5-red-50);
}

#appShell [data-state="unauthorized"] {
    border-color: rgba(190, 19, 45, .2);
    background: var(--v5-red-50);
}

#appShell .overview-v5-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 20px;
    align-items: start;
}

#appShell .overview-v5-shell.overview-terminal-state .overview-v5-body {
    display: none;
}

#appShell .overview-v5-main {
    min-width: 0;
}

#appShell .overview-v5-side {
    position: sticky;
    top: 24px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#appShell .overview-v5-stat-strip {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
    gap: 16px;
    align-items: stretch;
    margin-bottom: 20px;
}

#appShell .overview-v5-primary-col {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#appShell .overview-v5-primary-col .overview-v5-card {
    margin-bottom: 0;
}

#appShell .overview-trend-card {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#appShell .overview-v5-card.overview-trend-card {
    padding-bottom: 12px;
}

#appShell .overview-v5-hero {
    min-width: 0;
    min-height: 248px;
    display: flex;
    flex-direction: column;
    padding: 20px;
    border: 0;
    border-radius: var(--v5-radius);
    background: linear-gradient(135deg, var(--v5-red-600), var(--v5-red-400));
    background-image: linear-gradient(135deg, var(--v5-red-600), var(--v5-red-400)) !important;
    box-shadow: var(--v5-shadow);
    color: #fff;
    overflow: hidden;
}

#appShell .overview-hero-label {
    display: block;
    color: rgba(255, 255, 255, .9);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
}

#appShell .overview-hero-value {
    display: block;
    margin-top: 4px;
    color: #fff;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

#appShell .overview-hero-delta {
    display: block;
    align-self: flex-start;
    margin-top: 8px;
    padding: 3px 9px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .2);
    color: #fff;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 700;
}

#appShell .overview-hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 12px;
    padding-top: 16px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, .16);
}

#appShell .overview-trend-toggle {
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    text-align: left;
    cursor: pointer;
    border-radius: 10px;
    transition: opacity 160ms ease;
}

#appShell .overview-trend-toggle.off {
    opacity: .72;
}

#appShell .overview-hero-primary {
    align-self: flex-start;
    padding: 7px 9px;
    margin: -7px 0 0 -9px;
}

#appShell .overview-trend-toggle span {
    display: block;
    color: rgba(255, 255, 255, .88);
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
}

#appShell .overview-trend-toggle strong {
    display: block;
    margin-top: 2px;
    color: #fff;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

#appShell .overview-hero-primary .overview-hero-value {
    color: #fff;
    font-size: 36px;
    line-height: 1.12;
    font-weight: 800;
    white-space: nowrap;
    overflow-wrap: normal;
}

#appShell .overview-trend-toggle em {
    display: block;
    margin-top: 2px;
    margin-left: 0;
    color: #fff;
    font-style: normal;
    font-size: 13px;
    font-weight: 700;
}

#appShell .overview-trend-toggle em.down {
    color: #fff;
}

#appShell .overview-v5-hero .overview-delta.up,
#appShell .overview-v5-hero .overview-delta.down {
    color: #fff;
}

#appShell .overview-v5-hero .profit-positive,
#appShell .overview-v5-hero .profit-negative,
#appShell .overview-v5-hero .profit-zero {
    color: #fff !important;
}

#appShell .overview-v5-card {
    min-width: 0;
    padding: 20px;
    margin: 0 0 20px;
    border: 0;
    border-radius: var(--v5-radius);
    background: var(--v5-surface);
    background-image: none !important;
    box-shadow: var(--v5-shadow);
    color: var(--v5-ink);
}

#appShell .overview-v5-card:last-child {
    margin-bottom: 0;
}

#appShell .overview-v5-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

#appShell .overview-v5-card-head h2 {
    margin: 0;
    color: var(--v5-ink);
    font-size: 14.5px;
    line-height: 1.45;
    font-weight: 700;
    letter-spacing: 0;
}

#appShell .overview-v5-card-head p {
    margin: 2px 0 0;
    color: var(--v5-ink-3);
    font-size: 11.5px;
    line-height: 1.5;
}

#appShell .overview-v5-chart {
    width: 100%;
    flex: 1;
    height: auto;
    min-height: 210px;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
}

#appShell .overview-metric-switch {
    display: none;
}

#appShell .overview-channel-distribution {
    margin: 0;
}

#appShell .overview-channel-list {
    display: flex;
    flex-direction: column;
}

#appShell .overview-channel-block {
    padding: 12px 0;
    border-top: 1px solid var(--v5-line);
}

#appShell .overview-channel-block:first-child {
    padding-top: 0;
    border-top: 0;
}

#appShell .overview-channel-head {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
}

#appShell .overview-channel-icon {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: color-mix(in srgb, var(--channel-color) 10%, white);
    color: var(--channel-color);
}

#appShell .overview-channel-icon svg {
    width: 17px;
    height: 17px;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#appShell .overview-channel-head strong {
    flex: 1;
    color: var(--v5-ink);
    font-size: 13px;
    font-weight: 700;
}

#appShell .overview-channel-share {
    color: var(--v5-ink-3);
    font-size: 10.5px;
}

#appShell .overview-channel-gap {
    height: 6px;
    overflow: hidden;
    border-radius: 4px;
    background: var(--v5-canvas);
}

#appShell .overview-channel-gap i {
    display: block;
    height: 100%;
    border-radius: inherit;
}

#appShell .overview-channel-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    margin-top: 12px;
}

#appShell .overview-mini-metric {
    min-width: 0;
}

#appShell .overview-mini-metric > span {
    display: block;
    color: var(--v5-ink-3);
    font-size: 10.5px;
    line-height: 1.4;
}

#appShell .overview-mini-metric > strong {
    display: block;
    margin-top: 2px;
    color: var(--v5-ink);
    font-size: 12.5px;
    line-height: 1.4;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

#appShell .overview-delta {
    display: block;
    margin-top: 2px;
    color: var(--v5-ink-3);
    font-size: 10px;
    line-height: 1.4;
    font-weight: 600;
}

#appShell .overview-delta.up {
    color: var(--v5-red-500);
}

#appShell .overview-delta.down {
    color: var(--v5-teal);
}

#appShell .overview-delta.flat {
    color: var(--v5-ink-3);
}

#appShell .overview-key-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

#appShell .overview-entity-card {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border: 0;
    border-radius: 16px;
    background: var(--v5-canvas);
    background-image: none !important;
    box-shadow: none;
}

#appShell .overview-rank {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    display: grid;
    place-items: center;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 50%;
    background: var(--v5-ink);
    color: #fff;
    box-shadow: 0 0 0 2px #fff;
    font-size: 9px;
    font-weight: 700;
}

#appShell .overview-media {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    position: relative;
}

#appShell .overview-thumb,
#appShell .overview-avatar,
#appShell .overview-placeholder {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--v5-slate), #8d9ab3);
    color: #fff;
    object-fit: cover;
    font-size: 15px;
    font-weight: 700;
}

#appShell .overview-avatar {
    border-radius: 50%;
    background: linear-gradient(135deg, var(--v5-red-600), var(--v5-red-400));
}

#appShell .overview-entity-main {
    min-width: 0;
    flex: 1;
}

#appShell .overview-entity-title {
    color: var(--v5-ink);
    font-size: 13px;
    line-height: 1.45;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#appShell .overview-entity-sub {
    margin-top: 1px;
    color: var(--v5-ink-2);
    font-size: 10.5px;
    line-height: 1.45;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#appShell .overview-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 12px;
    margin-top: 10px;
}

#appShell .overview-channel-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
}

#appShell .overview-channel-tab {
    min-height: 30px;
    padding: 6px 16px;
    border: 0;
    border-radius: 20px;
    background: var(--v5-canvas);
    color: var(--v5-ink-2);
    font: inherit;
    font-size: 11.5px;
    font-weight: 600;
}

#appShell .overview-channel-tab.active {
    background: var(--v5-red-600);
    color: #fff;
}

#appShell .overview-channel-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 12px;
    background: linear-gradient(120deg, var(--v5-red-50), var(--v5-canvas));
    background-image: linear-gradient(120deg, var(--v5-red-50), var(--v5-canvas)) !important;
}

#appShell .overview-channel-rows {
    min-width: 0;
}

#appShell .overview-channel-row {
    min-width: 760px;
    display: grid;
    grid-template-columns: minmax(190px, 1.6fr) repeat(4, minmax(110px, 1fr));
    gap: 16px;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid var(--v5-line);
}

#appShell .overview-channel-row-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    padding-top: 2px;
}

#appShell .overview-channel-row-id {
    min-width: 0;
    position: sticky;
    left: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 12px;
    background: var(--v5-surface);
}

#appShell .overview-channel-row-id .overview-media,
#appShell .overview-channel-row-id .overview-thumb,
#appShell .overview-channel-row-id .overview-avatar,
#appShell .overview-channel-row-id .overview-placeholder {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
}

#appShell .overview-channel-row .overview-mini-metric {
    text-align: right;
}

#appShell .overview-data-status {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    padding: 22px 20px 18px;
    border-radius: var(--v5-radius);
    background: linear-gradient(160deg, var(--v5-red-50), #fff8f4);
    background-image: linear-gradient(160deg, var(--v5-red-50), #fff8f4) !important;
    box-shadow: var(--v5-shadow);
}

#appShell .overview-health-head {
    display: flex;
    align-items: flex-start;
}

#appShell .overview-health-head > span {
    display: block;
    color: var(--v5-ink-2);
    font-size: 13px;
    line-height: 1.45;
    font-weight: 600;
}

#appShell .overview-health-status {
    display: block;
    margin-top: 8px;
    color: var(--v5-slate);
    font-size: 24px;
    line-height: 1.2;
    font-style: normal;
    font-weight: 800;
    white-space: nowrap;
}

#appShell .overview-health-status.status-unhealthy {
    color: var(--v5-red-600);
}

#appShell .overview-health-status.status-warning {
    color: var(--v5-warn);
}

#appShell .overview-health-status.status-normal {
    color: var(--v5-red-500);
}

#appShell .overview-health-status.status-healthy {
    color: var(--v5-teal);
}

#appShell .overview-health-status.status-excellent {
    color: var(--v5-teal);
}

#appShell .overview-health-period {
    margin: 3px 0 0;
    color: var(--v5-ink-3);
    font-size: 11.5px;
    line-height: 1.5;
}

#appShell .overview-health-explanations {
    min-height: 40px;
    display: -webkit-box;
    margin: 9px 0 0;
    overflow: hidden;
    color: var(--v5-ink-2);
    font-size: 12.5px;
    line-height: 1.6;
    font-weight: 500;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

#appShell .overview-health-tags {
    display: flex;
    gap: 4px;
    margin-top: auto;
    padding-top: 14px;
    overflow: hidden;
}

#appShell .overview-health-tags span {
    min-width: 0;
    flex: 1 1 0;
    padding: 5px 1px;
    overflow: hidden;
    border-radius: 6px;
    background: rgba(255, 255, 255, .7);
    color: var(--v5-ink-2);
    font-size: 9.5px;
    line-height: 1.25;
    font-weight: 600;
    letter-spacing: -.04em;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#appShell .overview-health-tags .direction-up {
    color: var(--v5-teal);
}

#appShell .overview-health-tags .direction-down {
    color: var(--v5-red-500);
}

#appShell .overview-side-card {
    padding: 16px 20px;
}

#appShell .overview-side-title {
    margin: 0;
    color: var(--v5-ink);
    font-size: 13px;
    line-height: 1.45;
    font-weight: 700;
}

#appShell .overview-side-subtitle {
    margin: 2px 0 10px;
    color: var(--v5-ink-3);
    font-size: 10.5px;
}

#appShell .overview-alert-item,
#appShell .overview-advice-item {
    display: flex;
    gap: 8px;
    padding: 14px 0;
    border: 0;
    border-top: 1px solid var(--v5-line);
    border-radius: 0;
    background: transparent;
}

#appShell .overview-alert-item:first-of-type,
#appShell .overview-advice-item:first-of-type {
    border-top: 0;
}

#appShell .overview-alert-icon,
#appShell .overview-advice-index {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: var(--v5-red-50);
    color: var(--v5-red-500);
    font-size: 9px;
    font-weight: 700;
}

#appShell .overview-alert-item strong,
#appShell .overview-advice-item strong {
    display: block;
    color: var(--v5-ink);
    font-size: 11.5px;
    line-height: 1.45;
    font-weight: 600;
}

#appShell .overview-alert-item em {
    display: block;
    margin-top: 2px;
    color: var(--v5-ink-3);
    font-size: 10px;
    line-height: 1.4;
    font-style: normal;
}

#appShell .overview-alert-item p,
#appShell .overview-advice-item p {
    margin: 2px 0 0;
    color: var(--v5-ink-3);
    font-size: 10.5px;
    line-height: 1.5;
}

#appShell .overview-empty {
    min-height: 120px;
    display: grid;
    place-items: center;
    padding: 20px;
    color: var(--v5-ink-3);
    font-size: 11.5px;
    text-align: center;
}

#appShell .loading {
    inset: auto 18px 18px auto;
    width: auto;
    min-width: 142px;
    min-height: 42px;
    padding: 12px 44px 12px 16px;
    border: 1px solid var(--v5-line);
    border-radius: 12px;
    background: var(--v5-surface);
    background-image: none !important;
    box-shadow: 0 12px 32px rgba(20, 22, 31, .14);
    color: var(--v5-ink-2);
    backdrop-filter: none;
}

#appShell .error-msg {
    margin-bottom: 16px;
    border: 1px solid rgba(190, 19, 45, .18);
    border-radius: 12px;
    background: var(--v5-red-50);
    color: var(--v5-red-700);
}

#appShell .card-title {
    font-family: inherit;
}

#appShell .card,
#appShell .scroll-x,
#appShell table,
#appShell thead,
#appShell tbody,
#appShell tr,
#appShell th,
#appShell td {
    background-image: none !important;
    font-family: inherit;
}

#appShell .scroll-x {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
}

#appShell table {
    font-size: 13px;
}

#appShell .profit-positive {
    color: var(--v5-red-500);
}

#appShell .profit-negative {
    color: var(--v5-teal);
}

#appShell .profit-zero {
    color: var(--v5-ink);
}

body.app-authenticated {
    overflow-x: hidden;
    background: var(--v5-canvas);
}

@media (max-width: 1100px) {
    #appShell .overview-v5-body {
        grid-template-columns: minmax(0, 1fr);
    }

    #appShell .overview-v5-side {
        position: static;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: start;
    }

    #appShell .overview-v5-stat-strip {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 900px) {
    #appShell .platform-main {
        padding: 20px 20px 40px;
    }

    #appShell .qianchuan-v5-controls {
        align-items: stretch;
        flex-direction: column;
        padding: 8px 12px;
    }

    #appShell .date-bar {
        justify-content: flex-start;
        overflow-x: auto;
    }

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

    #appShell .overview-v5-side {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 820px) {
    #appShell {
        display: block;
    }

    #appShell .platform-sidebar,
    #appShell .platform-sidebar.collapsed,
    #appShell .platform-sidebar:not(.collapsed) {
        position: sticky;
        top: 0;
        z-index: 80;
        width: 100%;
        height: 56px;
        min-height: 56px;
        max-height: none;
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 8px 12px;
        border-right: 0;
        border-bottom: 1px solid var(--v5-line);
        box-shadow: none;
    }

    #appShell .platform-brand {
        width: auto;
        min-height: 38px;
        flex: 1;
        justify-content: flex-start;
        padding: 0;
        margin: 0;
    }

    #appShell .platform-brand-text,
    #appShell .platform-sidebar:not(.collapsed) .platform-brand-text {
        display: block;
    }

    #appShell .sidebar-toggle {
        position: static;
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
        border-radius: 10px;
        box-shadow: none;
    }

    #appShell .primary-nav {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        max-height: calc(100dvh - 56px);
        display: none;
        padding: 12px;
        border-bottom: 1px solid var(--v5-line);
        background: var(--v5-surface);
        box-shadow: 0 16px 30px rgba(20, 22, 31, .12);
        overflow-y: auto;
    }

    #appShell .platform-sidebar:not(.collapsed) .primary-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #appShell .platform-sidebar:not(.collapsed) .primary-nav-item {
        width: 100%;
        min-height: 44px;
        justify-content: flex-start;
        padding: 0 12px;
    }

    #appShell .platform-sidebar:not(.collapsed) .nav-text {
        display: block;
    }

    #appShell .sidebar-project-switcher,
    #appShell .sidebar-account {
        display: none;
    }

    #appShell .platform-main {
        width: 100%;
        max-width: none;
        min-height: calc(100vh - 56px);
    }
}

@media (max-width: 620px) {
    #appShell .platform-main {
        padding: 16px 14px 32px;
    }

    #appShell .header {
        align-items: flex-start;
        margin-bottom: 16px;
    }

    #appShell .module-freshness {
        max-width: 46%;
        box-shadow: none;
    }

    #appShell .module-freshness strong {
        overflow-wrap: anywhere;
    }

    #appShell .qianchuan-v5-controls {
        margin-bottom: 16px;
        border-radius: 14px;
    }

    #appShell #mainTabs {
        width: 100%;
    }

    #appShell .date-mode-btns {
        min-width: max-content;
    }

    #appShell .date-range-hint {
        min-width: 150px;
    }

    #appShell .overview-v5-stat-strip {
        gap: 14px;
        margin-bottom: 16px;
    }

    #appShell .overview-v5-hero {
        min-height: 306px;
        padding: 18px;
    }

    #appShell .overview-hero-value {
        font-size: 25px;
    }

    #appShell .overview-hero-primary .overview-hero-value {
        font-size: 32px;
        line-height: 1.15;
    }

    #appShell .overview-hero-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 10px;
    }

    #appShell .overview-v5-card {
        padding: 16px;
        margin-bottom: 16px;
        border-radius: 16px;
    }

    #appShell .overview-v5-card-head {
        flex-direction: column;
    }

    #appShell .overview-channel-metrics,
    #appShell .overview-mini-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #appShell .overview-key-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    #appShell .overview-channel-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    #appShell .overview-state {
        align-items: flex-start;
        flex-direction: column;
    }

    #appShell .overview-state button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    #appShell *,
    #appShell *::before,
    #appShell *::after {
        animation: none !important;
        transition-duration: .01ms !important;
    }
}
