* {
            box-sizing: border-box;
        }

        body {
            margin: 0;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
            background: #eef2f7;
            color: #1f2937;
        }

        .layout {
            display: grid;
            grid-template-columns: 220px minmax(0, 1fr);
            min-height: 100vh;
        }

        .sidebar {
            padding: 28px 18px;
            background: #17202b;
            border-right: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 10px 0 24px rgba(15, 23, 42, 0.12);
        }

        .nav-btn {
            display: flex;
            align-items: center;
            width: 100%;
            min-height: 46px;
            margin-bottom: 10px;
            border: 1px solid transparent;
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.04);
            color: #cbd5e1;
            font-size: 15px;
            font-weight: 700;
            line-height: 20px;
            text-align: left;
            padding: 0 14px;
            cursor: pointer;
            transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
        }

        .nav-btn.active,
        .nav-btn:hover {
            background: #2563eb;
            border-color: rgba(255, 255, 255, 0.14);
            color: #fff;
        }

        .main {
            min-width: 0;
            padding: 30px;
            background: #eef2f7;
        }

        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 24px;
        }

        .title {
            color: #111827;
            font-size: 28px;
            font-weight: 700;
        }

        .desc {
            margin-top: 6px;
            font-size: 14px;
            color: #6b7280;
        }

        .right {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .last-time,
        .section-note {
            font-size: 13px;
            color: #6b7280;
        }

        .btn,
        .quick-btn {
            border: none;
            border-radius: 8px;
            background: #2563eb;
            color: #fff;
            padding: 10px 18px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 700;
            box-shadow: 0 10px 18px rgba(37, 99, 235, 0.18);
            transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
        }

        .btn:hover,
        .quick-btn:hover {
            background: #1d4ed8;
            box-shadow: 0 12px 22px rgba(37, 99, 235, 0.24);
        }

        .quick-btn {
            background: #f1f5f9;
            color: #374151;
            box-shadow: none;
        }

        .quick-btn.active {
            background: #2563eb;
            color: #fff;
            box-shadow: 0 10px 18px rgba(37, 99, 235, 0.18);
        }

        .panel {
            display: none;
        }

        .panel.active {
            display: block;
        }

        .summary {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 16px;
            margin-bottom: 24px;
        }

        .card,
        .table-wrap,
        .trend-panel {
            background: #fff;
            border: 1px solid #e5e7eb;
            border-radius: 14px;
            box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
        }

        .card {
            padding: 20px;
        }

        .card-name {
            color: #6b7280;
            font-size: 14px;
            margin-bottom: 10px;
        }

        .card-value {
            font-size: 30px;
            font-weight: 700;
            color: #111827;
        }

        .section-head {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin: 8px 0 12px;
        }

        .section-title {
            color: #111827;
            font-size: 20px;
            font-weight: 700;
        }

        .table-wrap {
            overflow: hidden;
            margin-bottom: 24px;
        }

        .trend-panel {
            position: relative;
            padding: 18px;
        }

        .trend-loading-mask {
            position: absolute;
            inset: 0;
            z-index: 20;
            display: none;
            align-items: center;
            justify-content: center;
            border-radius: 14px;
            background: rgba(248, 250, 252, 0.78);
            backdrop-filter: blur(2px);
        }

        .trend-panel.loading .trend-loading-mask {
            display: flex;
        }

        .third-panel {
            position: relative;
            display: grid;
            gap: 18px;
            min-width: 0;
            overflow: hidden;
            padding: 18px;
            border: 1px solid #e5e7eb;
            border-radius: 14px;
            background: #fff;
            box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
        }

        .third-panel.loading .trend-loading-mask {
            display: flex;
        }

        .third-panel > .filter-row {
            display: grid;
            grid-template-columns:
                auto
                minmax(170px, 1fr)
                minmax(170px, 1fr)
                minmax(170px, 1fr)
                minmax(170px, 1fr);
            align-items: end;
            gap: 12px;
            margin-bottom: 0;
        }

        .third-panel > .filter-row .field,
        .third-panel > .filter-row input,
        .third-panel > .filter-row select {
            min-width: 0;
            width: 100%;
        }

        .loading-box {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 16px;
            border: 1px solid #dbeafe;
            border-radius: 12px;
            background: #fff;
            color: #2563eb;
            font-size: 14px;
            font-weight: 800;
            box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
        }

        .loading-spinner {
            width: 16px;
            height: 16px;
            border: 2px solid #bfdbfe;
            border-top-color: #2563eb;
            border-radius: 999px;
            animation: spin 0.8s linear infinite;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        .filter-row {
            display: flex;
            flex-wrap: wrap;
            align-items: end;
            gap: 12px;
            margin-bottom: 20px;
            padding: 14px;
            border-radius: 12px;
            background: #f8fafc;
            border: 1px solid #edf2f7;
        }

        .quick-range {
            display: flex;
            gap: 8px;
            align-items: flex-end;
        }

        .field {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .field label {
            font-size: 14px;
            color: #6b7280;
        }

        .field input,
        .field select {
            min-width: 220px;
            height: 42px;
            box-sizing: border-box;
            border: 1px solid #cbd5e1;
            border-radius: 9px;
            padding: 0 12px;
            background: #fff;
            color: #334155;
            font-size: 14px;
            font-family: inherit;
            font-weight: 600;
            line-height: 40px;
            transition: border-color 0.18s ease, box-shadow 0.18s ease;
        }

        .field select {
            appearance: none;
            -webkit-appearance: none;
            padding-right: 38px;
            background-image:
                linear-gradient(45deg, transparent 50%, #64748b 50%),
                linear-gradient(135deg, #64748b 50%, transparent 50%);
            background-position:
                calc(100% - 17px) 17px,
                calc(100% - 12px) 17px;
            background-size: 5px 5px, 5px 5px;
            background-repeat: no-repeat;
            cursor: pointer;
        }

        .field select.native-select-hidden {
            display: none;
        }

        .custom-select {
            position: relative;
            width: 100%;
            min-width: 0;
        }

        .custom-select-trigger {
            display: flex;
            width: 100%;
            height: 42px;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            box-sizing: border-box;
            padding: 0 13px;
            border: 1px solid #cbd5e1;
            border-radius: 9px;
            background: #fff;
            color: #334155;
            font-family: inherit;
            font-size: 14px;
            font-weight: 600;
            text-align: left;
            cursor: pointer;
            transition: border-color 0.18s ease, box-shadow 0.18s ease;
        }

        .custom-select-trigger:hover {
            border-color: #94a3b8;
        }

        .custom-select.open .custom-select-trigger,
        .custom-select-trigger:focus-visible {
            outline: none;
            border-color: #2563eb;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
        }

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

        .custom-select-arrow {
            width: 8px;
            height: 8px;
            flex: 0 0 auto;
            margin: -4px 2px 0 0;
            border-right: 2px solid #64748b;
            border-bottom: 2px solid #64748b;
            transform: rotate(45deg);
            transition: transform 0.18s ease, margin 0.18s ease;
        }

        .custom-select.open .custom-select-arrow {
            margin-top: 4px;
            transform: rotate(225deg);
        }

        .custom-select-menu {
            position: absolute;
            z-index: 120;
            top: calc(100% + 8px);
            left: 0;
            display: none;
            width: max(100%, 250px);
            max-width: min(420px, 80vw);
            max-height: 320px;
            overflow-y: auto;
            box-sizing: border-box;
            padding: 6px;
            border: 1px solid #dbe3ee;
            border-radius: 12px;
            background: #fff;
            box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
        }

        .custom-select.open .custom-select-menu {
            display: grid;
            gap: 3px;
        }

        .custom-select-option {
            width: 100%;
            min-height: 38px;
            padding: 8px 11px;
            border: 0;
            border-radius: 8px;
            background: transparent;
            color: #334155;
            font-family: inherit;
            font-size: 14px;
            font-weight: 600;
            line-height: 1.35;
            text-align: left;
            cursor: pointer;
        }

        .custom-select-option:hover {
            background: #eff6ff;
            color: #1d4ed8;
        }

        .custom-select-option.selected {
            position: relative;
            padding-right: 34px;
            background: #2563eb;
            color: #fff;
        }

        .custom-select-option.selected::after {
            content: "✓";
            position: absolute;
            top: 50%;
            right: 12px;
            font-size: 15px;
            transform: translateY(-50%);
        }

        .field input[type="date"] {
            color-scheme: light;
            cursor: pointer;
        }

        .field input:hover,
        .field select:hover {
            border-color: #94a3b8;
        }

        .field input:focus,
        .field select:focus {
            outline: none;
            border-color: #2563eb;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
        }

        .filter-row .quick-btn {
            height: 42px;
            box-sizing: border-box;
        }

        .third-metrics {
            display: grid;
            grid-template-columns: repeat(5, minmax(0, 1fr));
            gap: 14px;
        }

        .third-metric-card,
        .third-section-card {
            border: 1px solid #e5e7eb;
            border-radius: 13px;
            background: #fff;
            box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
        }

        .third-metric-card {
            display: flex;
            flex-direction: column;
            gap: 9px;
            min-width: 0;
            padding: 16px;
        }

        .third-metric-card span {
            color: #64748b;
            font-size: 13px;
            font-weight: 700;
        }

        .third-metric-card strong {
            overflow: hidden;
            color: #0f172a;
            font-size: clamp(19px, 1.45vw, 25px);
            font-weight: 800;
            line-height: 1.2;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .third-dashboard-grid {
            display: grid;
            grid-template-columns: minmax(360px, 0.8fr) minmax(0, 1.7fr);
            gap: 18px;
            min-width: 0;
        }

        .third-section-card {
            min-width: 0;
            overflow: hidden;
        }

        .third-card-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 15px 17px;
            border-bottom: 1px solid #edf2f7;
        }

        .third-card-head strong {
            color: #0f172a;
            font-size: 16px;
            font-weight: 800;
        }

        .third-card-head > span {
            color: #64748b;
            font-size: 12px;
            font-weight: 700;
        }

        .third-ranking-list {
            display: grid;
            gap: 9px;
            max-height: 390px;
            overflow-y: auto;
            padding: 14px 16px 17px;
        }

        .third-ranking-row {
            display: grid;
            grid-template-columns: 26px minmax(110px, 1.2fr) minmax(80px, 1fr) 64px;
            align-items: center;
            gap: 9px;
            width: 100%;
            padding: 7px 4px;
            border: none;
            border-radius: 8px;
            background: transparent;
            cursor: pointer;
            text-align: left;
        }

        .third-ranking-row:hover {
            background: #f8fafc;
        }

        .third-ranking-index {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 22px;
            height: 22px;
            border-radius: 7px;
            background: #eff6ff;
            color: #2563eb;
            font-size: 11px;
            font-weight: 800;
        }

        .third-ranking-name {
            overflow: hidden;
            color: #334155;
            font-size: 12px;
            font-weight: 800;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .third-ranking-bar {
            height: 8px;
            overflow: hidden;
            border-radius: 999px;
            background: #edf2f7;
        }

        .third-ranking-bar-inner {
            display: block;
            height: 100%;
            border-radius: inherit;
            background: #2563eb;
        }

        .third-ranking-count {
            color: #0f172a;
            font-size: 12px;
            text-align: right;
        }

        .third-trend-switch {
            display: inline-grid;
            grid-template-columns: 1fr 1fr;
            gap: 2px;
            padding: 3px;
            border: 1px solid #d7dce3;
            border-radius: 9px;
            background: #f1f5f9;
        }

        .third-trend-switch button {
            border: none;
            border-radius: 6px;
            background: transparent;
            color: #64748b;
            padding: 6px 9px;
            cursor: pointer;
            font-size: 12px;
            font-weight: 800;
        }

        .third-trend-switch button.active {
            background: #2563eb;
            color: #fff;
        }

        .third-trend-chart {
            min-height: 390px;
            padding: 12px 14px 8px;
        }

        .third-trend-legend {
            display: flex;
            gap: 12px;
            overflow-x: auto;
            padding: 2px 4px 10px;
            color: #475569;
            font-size: 11px;
            font-weight: 700;
            white-space: nowrap;
        }

        .third-trend-legend span {
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }

        .third-trend-legend i {
            width: 8px;
            height: 8px;
            border-radius: 999px;
        }

        .third-trend-scroll {
            overflow-x: auto;
            overflow-y: hidden;
        }

        .third-trend-scroll svg {
            display: block;
            max-width: none;
        }

        .third-trend-label {
            fill: #64748b;
            font-size: 11px;
            font-weight: 700;
        }

        .third-table-scroll {
            display: block;
            min-width: 0;
            max-width: 100%;
            width: 100%;
            overflow-x: auto;
        }

        .third-matrix-table,
        .third-detail-table {
            min-width: 100%;
            white-space: nowrap;
        }

        .third-matrix-table th,
        .third-matrix-table td {
            min-width: 108px;
            text-align: center;
        }

        .third-matrix-table th:first-child,
        .third-matrix-table td:first-child {
            position: sticky;
            left: 0;
            z-index: 2;
            min-width: 150px;
            background: #fff;
            text-align: left;
            font-weight: 800;
        }

        .third-matrix-total {
            background: #f8fafc;
            font-weight: 800;
        }

        .third-empty {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 160px;
            color: #94a3b8;
            font-size: 13px;
        }

        .trend-chart {
            width: 100%;
            min-height: 300px;
            overflow-x: auto;
            border-radius: 12px;
            background: #f8fafc;
            border: 1px solid #edf2f7;
        }

        .daily-stacked-legend {
            display: flex;
            justify-content: flex-end;
            gap: 18px;
            padding: 14px 16px 4px;
            color: #475569;
            font-size: 13px;
            font-weight: 700;
        }

        .daily-source-filter {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            padding: 7px 10px;
            border: 1px solid transparent;
            border-radius: 8px;
            background: transparent;
            color: #94a3b8;
            cursor: pointer;
            font: inherit;
            opacity: 0.48;
            transition: opacity 0.18s ease, background 0.18s ease, border-color 0.18s ease;
        }

        .daily-source-filter.active {
            border-color: #dbe3ee;
            background: #fff;
            color: #334155;
            opacity: 1;
            box-shadow: 0 5px 14px rgba(15, 23, 42, 0.06);
        }

        .daily-source-filter:hover {
            opacity: 1;
        }

        .daily-stacked-legend i {
            display: inline-block;
            width: 10px;
            height: 10px;
            border-radius: 3px;
        }

        .daily-stacked-grid {
            display: grid;
            grid-auto-flow: column;
            grid-auto-columns: minmax(430px, 1fr);
            gap: 14px;
            overflow-x: auto;
            overflow-y: hidden;
            padding: 10px 14px 14px;
        }

        .daily-stacked-card {
            overflow: hidden;
            border: 1px solid #e2e8f0;
            border-radius: 13px;
            background: #fff;
            box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
        }

        .daily-stacked-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 15px 16px;
            border-bottom: 1px solid #e8edf4;
        }

        .daily-stacked-head strong {
            color: #0f172a;
            font-size: 17px;
            font-weight: 800;
        }

        .daily-stacked-head span {
            color: #64748b;
            font-size: 13px;
            font-weight: 800;
        }

        .daily-stacked-list {
            display: grid;
            gap: 13px;
            padding: 14px 16px 17px;
        }

        .daily-stacked-row {
            display: grid;
            grid-template-columns: minmax(142px, 1.15fr) minmax(130px, 1fr) 54px;
            align-items: center;
            gap: 12px;
            min-height: 38px;
        }

        .daily-stacked-name {
            overflow: hidden;
            color: #334155;
            font-size: 13px;
            font-weight: 800;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .daily-stacked-source-numbers {
            display: flex;
            gap: 9px;
            margin-top: 3px;
            color: #94a3b8;
            font-size: 10px;
            font-weight: 700;
        }

        .daily-stacked-track {
            height: 12px;
            overflow: hidden;
            border-radius: 999px;
            background: #edf2f7;
        }

        .daily-stacked-bar {
            display: flex;
            min-width: 2px;
            height: 100%;
            overflow: hidden;
            border-radius: inherit;
        }

        .daily-stacked-system {
            height: 100%;
            background: #4f6fd7;
        }

        .daily-stacked-third-party {
            height: 100%;
            background: #b4db2e;
        }

        .daily-stacked-value {
            color: #0f172a;
            font-size: 13px;
            font-weight: 800;
            text-align: right;
        }

        .chart-empty {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 220px;
            color: #6b7280;
            font-size: 14px;
        }

        .trend-summary {
            margin-top: 16px;
            padding: 16px;
            border: 1px solid #edf2f7;
            border-radius: 12px;
            background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
        }

        .trend-summary-title {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 12px;
        }

        .trend-summary-title-main {
            color: #111827;
            font-size: 16px;
            font-weight: 800;
        }

        .trend-summary-actions {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .trend-summary-range {
            color: #64748b;
            font-size: 13px;
            font-weight: 700;
        }

        .trend-switch {
            display: inline-grid;
            grid-template-columns: 1fr 1fr;
            gap: 2px;
            padding: 3px;
            border: 1px solid #d7dce3;
            border-radius: 10px;
            background: #f1f5f9;
        }

        .trend-switch-btn {
            border: none;
            border-radius: 7px;
            background: transparent;
            color: #64748b;
            padding: 6px 11px;
            cursor: pointer;
            font-size: 13px;
            font-weight: 800;
        }

        .trend-switch-btn.active {
            background: #2563eb;
            color: #fff;
            box-shadow: 0 8px 16px rgba(37, 99, 235, 0.18);
        }

        .trend-summary svg {
            display: block;
            width: 100%;
            height: 220px;
        }

        .trend-label {
            fill: #64748b;
            font-size: 12px;
            font-weight: 700;
        }

        .trend-total-label {
            fill: #2563eb;
            font-size: 12px;
            font-weight: 800;
        }

        .trend-hover-hit {
            cursor: crosshair;
        }

        .trend-tooltip {
            position: fixed;
            z-index: 30;
            display: none;
            min-width: 260px;
            max-width: 360px;
            max-height: 420px;
            overflow-y: auto;
            padding: 10px 12px;
            border: 1px solid rgba(148, 163, 184, 0.28);
            border-radius: 10px;
            background: rgba(15, 23, 42, 0.94);
            color: #fff;
            box-shadow: 0 16px 34px rgba(15, 23, 42, 0.24);
            pointer-events: none;
        }

        .trend-tooltip-title {
            margin-bottom: 8px;
            font-size: 14px;
            font-weight: 800;
        }

        .trend-tooltip-total {
            display: flex;
            justify-content: space-between;
            margin-bottom: 8px;
            color: #cbd5e1;
            font-size: 12px;
        }

        .trend-tooltip-total strong {
            color: #fff;
            font-size: 13px;
        }

        .trend-tooltip-list {
            display: grid;
            gap: 4px;
            padding-top: 6px;
            border-top: 1px solid rgba(148, 163, 184, 0.22);
        }

        .trend-tooltip-row {
            display: grid;
            grid-template-columns: 10px minmax(0, 1fr) auto;
            align-items: center;
            gap: 8px;
            color: #e5e7eb;
            font-size: 12px;
            line-height: 22px;
        }

        .trend-tooltip-dot {
            width: 9px;
            height: 9px;
            border-radius: 999px;
        }

        .trend-tooltip-name {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .trend-tooltip-count {
            color: #fff;
            font-weight: 800;
        }

        table {
            width: 100%;
            border-collapse: collapse;
        }

        thead {
            background: #f8fafc;
        }

        th, td {
            padding: 15px 18px;
            border-bottom: 1px solid #edf0f5;
            text-align: left;
            font-size: 14px;
        }

        th {
            font-weight: 600;
            color: #64748b;
        }

        tbody tr:hover {
            background: #f8fafc;
        }

        .platform,
        .num {
            font-weight: 700;
        }

        .num-ok {
            color: #16a34a;
        }

        .num-warn {
            color: #f59e0b;
        }

        .num-danger {
            color: #dc2626;
        }

        .status {
            display: inline-block;
            padding: 4px 10px;
            border-radius: 999px;
            font-size: 12px;
            font-weight: 600;
        }

        .status-ok {
            background: #dcfce7;
            color: #166534;
        }

        .status-warn {
            background: #fef3c7;
            color: #92400e;
        }

        .status-danger {
            background: #fee2e2;
            color: #991b1b;
        }

        .error {
            display: none;
            margin-top: 16px;
            padding: 12px 14px;
            border-radius: 8px;
            background: #fee2e2;
            color: #991b1b;
            font-size: 14px;
        }

        @media (max-width: 1500px) {
            .third-metrics {
                grid-template-columns: repeat(3, minmax(0, 1fr));
            }

            .third-panel > .filter-row {
                grid-template-columns: auto repeat(2, minmax(180px, 1fr));
            }

            .third-panel > .filter-row .quick-range {
                grid-row: span 2;
                align-self: stretch;
                align-items: end;
            }
        }

        @media (max-width: 1100px) {
            .third-dashboard-grid {
                grid-template-columns: 1fr;
            }
        }

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

            .sidebar {
                display: flex;
                gap: 10px;
                padding: 14px;
                box-shadow: none;
            }

            .nav-btn {
                justify-content: center;
                margin-bottom: 0;
            }

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

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

            .third-dashboard-grid {
                grid-template-columns: 1fr;
            }

            .third-panel > .filter-row {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            .third-panel > .filter-row .quick-range {
                grid-row: auto;
                grid-column: 1 / -1;
            }

            .header {
                flex-direction: column;
                align-items: flex-start;
                gap: 12px;
            }
        }

        @media (max-width: 600px) {
            .main {
                padding: 14px;
            }

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

            th, td {
                padding: 10px;
                font-size: 13px;
            }

            .field,
            .field input,
            .field select,
            .filter-row .btn,
            .quick-range {
                width: 100%;
            }

            .third-metrics {
                grid-template-columns: 1fr;
            }

            .third-panel > .filter-row {
                grid-template-columns: 1fr;
            }

            .third-panel > .filter-row .quick-range {
                grid-column: auto;
            }

            .quick-btn {
                flex: 1;
            }
        }

        /* AIDSO violet theme */
        :root {
            --aidso-primary: #7138f4;
            --aidso-primary-dark: #5824d6;
            --aidso-primary-soft: #f1eaff;
            --aidso-ink: #242332;
            --aidso-muted: #77778a;
            --aidso-line: #e8e5ef;
            --aidso-surface: rgba(255, 255, 255, 0.98);
            --aidso-shadow: 0 8px 24px rgba(64, 48, 98, 0.055);
            --aidso-shadow-hover: 0 14px 32px rgba(64, 48, 98, 0.09);
        }

        body {
            background:
                radial-gradient(circle at 88% 0%, rgba(113, 56, 244, 0.07), transparent 24%),
                #eef3ff;
            color: #282735;
        }

        .sidebar {
            border-right: 1px solid #e6e5ed;
            background: #fff;
            box-shadow: 8px 0 24px rgba(56, 50, 76, 0.045);
        }

        .brand {
            padding: 10px 6px;
            border-color: transparent;
            background: #fff;
            box-shadow: none;
        }

        .nav-label {
            color: #aaa7b5;
        }

        .nav-btn {
            color: #646377;
        }

        .nav-btn::before {
            border-color: #d7d3df;
            color: #858194;
        }

        .nav-btn:hover {
            border-color: transparent;
            background: #f7f3ff;
            color: var(--aidso-primary);
        }

        .nav-btn.active {
            border-color: #e4d8ff;
            background: linear-gradient(105deg, #eee5ff, #e7dcff);
            color: #6d2df0;
            box-shadow: 0 8px 18px rgba(113, 56, 244, 0.12);
        }

        .nav-btn.active::after {
            background: #7138f4;
        }

        .nav-btn.active::before {
            border-color: #bda4fa;
            background: rgba(113, 56, 244, 0.08);
        }

        .sidebar-foot {
            border-top-color: #eeecf2;
            color: #92909e;
        }

        .health-dot {
            background: #6fdaab;
            box-shadow: 0 0 0 4px rgba(111, 218, 171, 0.14);
        }

        .title,
        .section-title,
        .card-value,
        .third-metric-card strong {
            color: #272533;
        }

        .right {
            border-color: #e4e1ea;
            background: rgba(255, 255, 255, 0.86);
        }

        .btn,
        .quick-btn.active {
            background: linear-gradient(135deg, #8247ff, #6825ed);
            box-shadow: 0 7px 17px rgba(113, 56, 244, 0.22);
        }

        .btn:hover,
        .quick-btn.active:hover {
            background: linear-gradient(135deg, #7138f4, #581bd4);
            box-shadow: 0 10px 22px rgba(113, 56, 244, 0.27);
        }

        .quick-btn:hover {
            border-color: #e2d7fb;
            background: #fff;
            color: #7138f4;
        }

        .card,
        .table-wrap,
        .trend-panel,
        .third-panel {
            border-color: #e4e4eb;
        }

        .card::after,
        .third-metric-card::after {
            background: radial-gradient(circle, rgba(125, 66, 246, 0.12), transparent 68%);
        }

        .filter-row {
            border-color: #e7e4ee;
            background: linear-gradient(180deg, #faf9fc, #f7f6fa);
        }

        .field input,
        .field select,
        .custom-select-trigger {
            border-color: #dcd9e3;
        }

        .field input:focus,
        .field select:focus,
        .custom-select.open .custom-select-trigger,
        .custom-select-trigger:focus-visible {
            border-color: #7138f4;
            box-shadow: 0 0 0 3px rgba(113, 56, 244, 0.13);
        }

        .custom-select-option:hover {
            background: #f3edff;
            color: #6425e4;
        }

        .custom-select-option.selected {
            background: linear-gradient(135deg, #8247ff, #6825ed);
        }

        .trend-chart {
            border-color: #e8e5ef;
            background: linear-gradient(180deg, #fdfcff, #faf9fc);
        }

        .daily-stacked-card,
        .third-metric-card,
        .third-section-card {
            border-color: #e7e3ec;
        }

        .daily-stacked-system,
        .third-ranking-bar-inner {
            background: linear-gradient(90deg, #8b55f7, #7138f4);
        }

        .daily-stacked-third-party {
            background: linear-gradient(90deg, #d3baff, #ae82ff);
        }

        .third-ranking-index {
            background: #f1eaff;
            color: #7138f4;
        }

        .third-trend-switch button.active,
        .trend-switch-btn.active {
            background: linear-gradient(135deg, #8247ff, #6825ed);
            box-shadow: 0 4px 10px rgba(113, 56, 244, 0.2);
        }

        .daily-source-filter.active {
            border-color: #e2d9f5;
            color: #5d2bc6;
        }

        .loading-box {
            border-color: #e5d9ff;
            color: #7138f4;
        }

        .loading-spinner {
            border-color: #e2d4ff;
            border-top-color: #7138f4;
        }

        @media (max-width: 900px) {
            .sidebar {
                border-bottom: 1px solid #e7e4ed;
                background: rgba(255, 255, 255, 0.97);
            }
        }

        .card::after,
        .third-metric-card::after {
            display: none;
        }

        .logout-link {
            display: inline-flex;
            height: 40px;
            align-items: center;
            justify-content: center;
            padding: 0 12px;
            border-radius: 9px;
            color: #77748a;
            font-size: 13px;
            font-weight: 700;
            text-decoration: none;
            transition: background 0.18s ease, color 0.18s ease;
        }

        .logout-link:hover {
            background: #f3edff;
            color: #6825ed;
        }

        .brand {
            min-height: 68px;
            padding: 5px 2px;
        }

        .brand-logo {
            width: 100%;
            max-width: none;
            margin: 0;
            transform: scale(1.28);
            transform-origin: center;
        }

        @media (max-width: 900px) {
            .brand {
                min-height: 42px;
                padding: 4px 2px;
            }

            .brand-logo {
                width: 100%;
                margin: 0;
                transform: scale(1.14);
            }
        }

        /* AIDSO unified visual system */
        :root {
            --aidso-primary: #3157d5;
            --aidso-primary-dark: #2444b8;
            --aidso-primary-soft: #eef3ff;
            --aidso-ink: #14213d;
            --aidso-muted: #70809a;
            --aidso-line: #e2e8f2;
            --aidso-surface: rgba(255, 255, 255, 0.96);
            --aidso-shadow: 0 10px 32px rgba(35, 55, 95, 0.07);
            --aidso-shadow-hover: 0 16px 40px rgba(35, 55, 95, 0.11);
        }

        body {
            min-width: 320px;
            background:
                radial-gradient(circle at 92% 2%, rgba(79, 111, 215, 0.11), transparent 27%),
                radial-gradient(circle at 30% 100%, rgba(83, 184, 171, 0.07), transparent 28%),
                #f4f7fb;
            color: var(--aidso-ink);
            letter-spacing: 0.01em;
        }

        .layout {
            grid-template-columns: 242px minmax(0, 1fr);
        }

        .sidebar {
            position: sticky;
            top: 0;
            z-index: 30;
            display: flex;
            height: 100vh;
            flex-direction: column;
            padding: 24px 16px 18px;
            overflow-y: auto;
            border-right: 1px solid rgba(255, 255, 255, 0.06);
            background:
                radial-gradient(circle at 10% 0%, rgba(81, 113, 224, 0.24), transparent 31%),
                linear-gradient(180deg, #17233a 0%, #111a2c 100%);
            box-shadow: 12px 0 36px rgba(15, 23, 42, 0.1);
        }

        .brand {
            display: flex;
            align-items: center;
            min-height: 58px;
            margin: 0 6px 30px;
            padding: 13px 14px;
            border: 1px solid rgba(255, 255, 255, 0.16);
            border-radius: 14px;
            background: #fff;
            box-shadow: 0 12px 28px rgba(4, 12, 27, 0.2);
        }

        .brand-logo {
            display: block;
            width: 100%;
            height: auto;
            object-fit: contain;
        }

        .brand-mark {
            position: relative;
            display: grid;
            width: 42px;
            height: 42px;
            place-items: center;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.18);
            border-radius: 13px;
            background: linear-gradient(145deg, #5679ee, #3157d5);
            box-shadow: 0 10px 24px rgba(49, 87, 213, 0.35);
        }

        .brand-mark i {
            position: absolute;
            width: 7px;
            border-radius: 999px;
            background: #fff;
            transform: rotate(38deg);
        }

        .brand-mark i:nth-child(1) {
            height: 16px;
            margin: 8px 0 0 -14px;
            opacity: 0.7;
        }

        .brand-mark i:nth-child(2) {
            height: 25px;
        }

        .brand-mark i:nth-child(3) {
            height: 33px;
            margin: -7px -16px 0 0;
        }

        .brand-copy {
            display: flex;
            flex-direction: column;
            gap: 1px;
            color: #fff;
        }

        .brand-copy strong {
            font-size: 18px;
            font-weight: 850;
            letter-spacing: 0.08em;
        }

        .brand-copy small {
            color: #aebbd2;
            font-size: 12px;
            font-weight: 650;
            letter-spacing: 0.12em;
        }

        .nav-label {
            margin: 0 10px 10px;
            color: #71829f;
            font-size: 10px;
            font-weight: 800;
            letter-spacing: 0.14em;
        }

        .nav-list {
            display: grid;
            gap: 7px;
        }

        .nav-btn {
            position: relative;
            min-height: 48px;
            margin: 0;
            padding: 0 14px 0 46px;
            overflow: hidden;
            border-radius: 12px;
            background: transparent;
            color: #aebbd2;
            font-size: 14px;
            font-weight: 700;
        }

        .nav-btn::before {
            position: absolute;
            left: 16px;
            display: grid;
            width: 20px;
            height: 20px;
            place-items: center;
            border: 1px solid rgba(174, 187, 210, 0.34);
            border-radius: 6px;
            color: currentColor;
            font-size: 11px;
            line-height: 1;
        }

        #queueNavBtn::before {
            content: "Q";
        }

        #trendNavBtn::before {
            content: "↗";
            font-size: 13px;
        }

        #thirdNavBtn::before {
            content: "3";
        }

        .nav-btn:hover {
            border-color: transparent;
            background: rgba(255, 255, 255, 0.06);
            color: #f8fafc;
        }

        .nav-btn.active {
            border-color: rgba(128, 155, 255, 0.24);
            background: linear-gradient(105deg, #3157d5, #4268df);
            color: #fff;
            box-shadow: 0 10px 25px rgba(28, 56, 159, 0.32);
        }

        .nav-btn.active::after {
            content: "";
            position: absolute;
            top: 12px;
            bottom: 12px;
            left: 0;
            width: 3px;
            border-radius: 0 4px 4px 0;
            background: #a9c1ff;
        }

        .nav-btn.active::before {
            border-color: rgba(255, 255, 255, 0.45);
            background: rgba(255, 255, 255, 0.1);
        }

        .sidebar-foot {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: auto;
            padding: 14px 12px 4px;
            border-top: 1px solid rgba(255, 255, 255, 0.07);
            color: #8798b3;
            font-size: 11px;
            font-weight: 650;
        }

        .health-dot {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: #37c99a;
            box-shadow: 0 0 0 4px rgba(55, 201, 154, 0.12);
        }

        .main {
            padding: 28px clamp(22px, 2.5vw, 42px) 42px;
            background: transparent;
        }

        .header {
            min-height: 76px;
            margin-bottom: 25px;
        }

        .title {
            color: #111c34;
            font-size: clamp(25px, 2vw, 32px);
            font-weight: 850;
            letter-spacing: -0.025em;
        }

        .desc {
            margin-top: 7px;
            color: var(--aidso-muted);
            font-size: 13px;
        }

        .right {
            padding: 5px 5px 5px 14px;
            border: 1px solid rgba(219, 227, 239, 0.85);
            border-radius: 13px;
            background: rgba(255, 255, 255, 0.72);
            box-shadow: 0 5px 18px rgba(35, 55, 95, 0.04);
            backdrop-filter: blur(10px);
        }

        .last-time,
        .section-note {
            color: #7b8ba4;
            font-weight: 600;
        }

        .btn,
        .quick-btn {
            min-height: 40px;
            border-radius: 9px;
            background: linear-gradient(135deg, #3d64dd, #2850cd);
            box-shadow: 0 7px 16px rgba(49, 87, 213, 0.2);
        }

        .btn:hover,
        .quick-btn:hover {
            background: linear-gradient(135deg, #3157d5, #203fae);
            box-shadow: 0 10px 20px rgba(49, 87, 213, 0.25);
            transform: translateY(-1px);
        }

        .quick-btn {
            border: 1px solid transparent;
            background: transparent;
            color: #63728a;
            box-shadow: none;
        }

        .quick-btn:hover {
            border-color: #d9e3f4;
            background: #fff;
            color: var(--aidso-primary);
            box-shadow: 0 5px 14px rgba(35, 55, 95, 0.06);
        }

        .quick-btn.active {
            border-color: transparent;
            background: linear-gradient(135deg, #4268df, #3157d5);
            box-shadow: 0 8px 18px rgba(49, 87, 213, 0.22);
        }

        .section-head {
            margin: 12px 2px 13px;
        }

        .section-title {
            color: #17233a;
            font-size: 18px;
            font-weight: 820;
            letter-spacing: -0.01em;
        }

        .panel-card-head {
            min-height: 54px;
            margin: -16px -16px 16px;
            padding: 0 18px;
            border-bottom: 1px solid #e9e7ef;
            background: linear-gradient(180deg, #fff, #fcfbfe);
        }

        .table-wrap > .panel-card-head {
            margin: 0;
        }

        .table-wrap > .panel-card-head + table {
            border-top: 0;
        }

        .summary {
            gap: 14px;
            margin-bottom: 26px;
        }

        .card,
        .table-wrap,
        .trend-panel,
        .third-panel {
            border-color: rgba(220, 228, 240, 0.9);
            border-radius: 17px;
            background: var(--aidso-surface);
            box-shadow: var(--aidso-shadow);
        }

        .card {
            position: relative;
            min-height: 126px;
            padding: 22px;
            overflow: hidden;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        .card::after,
        .third-metric-card::after {
            content: "";
            position: absolute;
            top: -28px;
            right: -25px;
            width: 88px;
            height: 88px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(75, 110, 224, 0.13), transparent 68%);
            pointer-events: none;
        }

        .card:hover,
        .third-metric-card:hover {
            transform: translateY(-2px);
            box-shadow: var(--aidso-shadow-hover);
        }

        .card-name {
            margin-bottom: 13px;
            color: #72819a;
            font-size: 13px;
            font-weight: 700;
        }

        .card-value {
            color: #13203a;
            font-size: 32px;
            font-weight: 850;
            letter-spacing: -0.035em;
        }

        .table-wrap {
            overflow: auto;
        }

        table {
            border-collapse: separate;
            border-spacing: 0;
        }

        th {
            border-bottom-color: #e8edf5;
            background: #f7f9fc;
            color: #62728c;
            font-size: 12px;
            font-weight: 800;
            letter-spacing: 0.02em;
        }

        td {
            border-bottom-color: #edf1f6;
            color: #26354e;
            font-size: 13px;
        }

        tbody tr {
            transition: background 0.16s ease;
        }

        tbody tr:hover {
            background: #f7faff;
        }

        tbody tr:last-child td {
            border-bottom: 0;
        }

        .filter-row {
            gap: 11px;
            padding: 12px;
            border-color: #e6ebf3;
            border-radius: 13px;
            background: linear-gradient(180deg, #f9fbfd, #f6f8fc);
        }

        .field {
            gap: 7px;
        }

        .field label {
            color: #75849b;
            font-size: 12px;
            font-weight: 750;
        }

        .field input,
        .field select,
        .custom-select-trigger {
            border-color: #d8e0ec;
            border-radius: 10px;
            color: #2b3a54;
            box-shadow: 0 2px 5px rgba(35, 55, 95, 0.025);
        }

        .custom-select-menu {
            padding: 7px;
            border-color: #dce4f0;
            border-radius: 13px;
            box-shadow: 0 20px 48px rgba(30, 45, 78, 0.17);
        }

        .custom-select-option {
            border-radius: 8px;
            color: #3a4962;
            font-size: 13px;
        }

        .custom-select-option.selected {
            background: linear-gradient(135deg, #4268df, #3157d5);
        }

        .trend-panel,
        .third-panel {
            padding: 16px;
        }

        .trend-chart {
            border-color: #e6ebf3;
            background: linear-gradient(180deg, #fbfcfe, #f7f9fc);
        }

        .daily-stacked-card,
        .third-metric-card,
        .third-section-card {
            border-color: #e1e7f0;
            border-radius: 14px;
            box-shadow: 0 7px 20px rgba(35, 55, 95, 0.045);
        }

        .daily-stacked-card,
        .third-section-card {
            transition: border-color 0.18s ease, box-shadow 0.18s ease;
        }

        .daily-stacked-card:hover,
        .third-section-card:hover {
            border-color: #d3ddec;
            box-shadow: 0 11px 28px rgba(35, 55, 95, 0.07);
        }

        .daily-stacked-head,
        .third-card-head {
            min-height: 55px;
            border-bottom-color: #e9eef5;
            background: linear-gradient(180deg, #fff, #fbfcfe);
        }

        .daily-stacked-head strong,
        .third-card-head strong {
            color: #1b2942;
        }

        .daily-stacked-track,
        .third-ranking-bar {
            background: #edf1f7;
        }

        .daily-stacked-system,
        .third-ranking-bar-inner {
            background: linear-gradient(90deg, #5576df, #3157d5);
        }

        .daily-stacked-third-party {
            background: linear-gradient(90deg, #b7d936, #9fc423);
        }

        .third-metrics {
            gap: 12px;
        }

        .third-metric-card {
            position: relative;
            min-height: 112px;
            padding: 18px;
            overflow: hidden;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        .third-metric-card span {
            color: #72819a;
            font-size: 12px;
        }

        .third-metric-card strong {
            color: #14213d;
            font-weight: 850;
            letter-spacing: -0.025em;
        }

        .third-ranking-row {
            transition: background 0.15s ease, transform 0.15s ease;
        }

        .third-ranking-row:hover {
            background: #f4f7fd;
            transform: translateX(2px);
        }

        .third-ranking-index {
            background: var(--aidso-primary-soft);
            color: var(--aidso-primary);
        }

        .third-trend-switch,
        .trend-switch {
            border-color: #dce3ee;
            background: #f3f6fa;
        }

        .third-trend-switch button.active,
        .trend-switch-btn.active {
            background: linear-gradient(135deg, #4268df, #3157d5);
            box-shadow: 0 4px 10px rgba(49, 87, 213, 0.18);
        }

        .third-table-scroll {
            scrollbar-color: #c5d0e2 transparent;
            scrollbar-width: thin;
        }

        .third-table-scroll::-webkit-scrollbar,
        .third-ranking-list::-webkit-scrollbar,
        .third-trend-scroll::-webkit-scrollbar,
        .daily-stacked-grid::-webkit-scrollbar {
            width: 7px;
            height: 7px;
        }

        .third-table-scroll::-webkit-scrollbar-thumb,
        .third-ranking-list::-webkit-scrollbar-thumb,
        .third-trend-scroll::-webkit-scrollbar-thumb,
        .daily-stacked-grid::-webkit-scrollbar-thumb {
            border-radius: 999px;
            background: #cad4e3;
        }

        .third-matrix-table th:first-child,
        .third-matrix-table td:first-child {
            background: #fff;
            box-shadow: 1px 0 0 #e8edf5;
        }

        .third-matrix-table thead th:first-child {
            background: #f7f9fc;
        }

        .status {
            border-radius: 999px;
            font-size: 11px;
            font-weight: 800;
        }

        .loading-box {
            border-color: #d9e4fb;
            border-radius: 13px;
            color: var(--aidso-primary);
            box-shadow: 0 16px 36px rgba(35, 55, 95, 0.12);
        }

        .trend-loading-mask {
            border-radius: 17px;
            background: rgba(247, 249, 253, 0.78);
            backdrop-filter: blur(5px);
        }

        .error {
            border: 1px solid #fecaca;
            border-radius: 11px;
            box-shadow: 0 8px 20px rgba(153, 27, 27, 0.06);
        }

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

            .sidebar {
                position: static;
                display: grid;
                height: auto;
                grid-template-columns: auto 1fr;
                align-items: center;
                padding: 12px 14px;
            }

            .brand {
                width: 142px;
                min-height: 40px;
                margin: 0 16px 0 0;
                padding: 8px 10px;
                border-radius: 10px;
            }

            .brand-mark {
                width: 36px;
                height: 36px;
                border-radius: 11px;
            }

            .brand-copy small,
            .nav-label,
            .sidebar-foot {
                display: none;
            }

            .nav-list {
                display: flex;
                justify-content: flex-end;
                gap: 7px;
            }

            .nav-btn {
                width: auto;
                min-height: 40px;
                padding: 0 12px;
                white-space: nowrap;
            }

            .nav-btn::before,
            .nav-btn.active::after {
                display: none;
            }

            .main {
                padding-top: 22px;
            }
        }

        @media (max-width: 600px) {
            .sidebar {
                grid-template-columns: 1fr;
                gap: 10px;
            }

            .brand {
                width: 154px;
                justify-content: center;
                margin-right: 0;
                justify-self: center;
            }

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

            .nav-btn {
                justify-content: center;
                padding: 0 8px;
                font-size: 12px;
            }

            .header {
                align-items: stretch;
            }

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

            .last-time {
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
            }
        }

        /* Final AIDSO palette overrides */
        :root {
            --aidso-primary: #7138f4;
            --aidso-primary-dark: #5824d6;
            --aidso-primary-soft: #f1eaff;
            --aidso-ink: #282735;
            --aidso-muted: #77778a;
            --aidso-line: #e8e5ef;
            --aidso-shadow: 0 8px 24px rgba(64, 48, 98, 0.055);
            --aidso-shadow-hover: 0 14px 32px rgba(64, 48, 98, 0.09);
        }

        body {
            background:
                radial-gradient(circle at 88% 0%, rgba(113, 56, 244, 0.07), transparent 24%),
                #eef3ff;
        }

        .sidebar {
            border-right-color: #e6e5ed;
            background: #fff;
            box-shadow: 8px 0 24px rgba(56, 50, 76, 0.045);
        }

        .brand {
            border-color: transparent;
            background: #fff;
            box-shadow: none;
        }

        .nav-label {
            color: #aaa7b5;
        }

        .nav-btn {
            color: #646377;
        }

        .nav-btn::before {
            border-color: #d7d3df;
            color: #858194;
        }

        .nav-btn:hover {
            background: #f7f3ff;
            color: #7138f4;
        }

        .nav-btn.active {
            border-color: #e4d8ff;
            background: linear-gradient(105deg, #eee5ff, #e7dcff);
            color: #6d2df0;
            box-shadow: 0 8px 18px rgba(113, 56, 244, 0.12);
        }

        .nav-btn.active::after {
            background: #7138f4;
        }

        .nav-btn.active::before {
            border-color: #bda4fa;
            background: rgba(113, 56, 244, 0.08);
        }

        .sidebar-foot {
            border-top-color: #eeecf2;
            color: #92909e;
        }

        .btn,
        .quick-btn.active {
            background: linear-gradient(135deg, #8247ff, #6825ed);
            box-shadow: 0 7px 17px rgba(113, 56, 244, 0.22);
        }

        .btn:hover,
        .quick-btn.active:hover {
            background: linear-gradient(135deg, #7138f4, #581bd4);
            box-shadow: 0 10px 22px rgba(113, 56, 244, 0.27);
        }

        .quick-btn:hover {
            border-color: #e2d7fb;
            color: #7138f4;
        }

        .card::after,
        .third-metric-card::after {
            background: radial-gradient(circle, rgba(125, 66, 246, 0.12), transparent 68%);
        }

        .filter-row {
            border-color: #e7e4ee;
            background: linear-gradient(180deg, #faf9fc, #f7f6fa);
        }

        .field input:focus,
        .field select:focus,
        .custom-select.open .custom-select-trigger,
        .custom-select-trigger:focus-visible {
            border-color: #7138f4;
            box-shadow: 0 0 0 3px rgba(113, 56, 244, 0.13);
        }

        .custom-select-option:hover {
            background: #f3edff;
            color: #6425e4;
        }

        .custom-select-option.selected,
        .third-trend-switch button.active,
        .trend-switch-btn.active {
            background: linear-gradient(135deg, #8247ff, #6825ed);
        }

        .daily-stacked-system,
        .third-ranking-bar-inner {
            background: linear-gradient(90deg, #8b55f7, #7138f4);
        }

        .daily-stacked-third-party {
            background: linear-gradient(90deg, #d3baff, #ae82ff);
        }

        .third-ranking-index {
            background: #f1eaff;
            color: #7138f4;
        }

        .loading-box {
            border-color: #e5d9ff;
            color: #7138f4;
        }

        .loading-spinner {
            border-color: #e2d4ff;
            border-top-color: #7138f4;
        }

        @media (max-width: 900px) {
            .sidebar {
                border-bottom: 1px solid #e7e4ed;
                background: rgba(255, 255, 255, 0.97);
            }
        }
