    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            font-family: "Alibaba PuHuiTi 3.0", "Alibaba PuHuiTi", "Source Han Sans SC", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", sans-serif;
            background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
            min-height: 100vh;
            padding: 20px;
        }
        .container {
            max-width: 1400px;
            margin: 0 auto;
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(233, 30, 99, 0.15);
        }
        .header {
            background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%);
            color: white;
            padding: 12px 20px 14px;
            text-align: left;
            position: relative;
            overflow: visible;
        }
        .header-logo-watermark {
            display: none;
        }
        .header h1 {
            display: flex;
            align-items: baseline;
            gap: 8px;
            margin: 0;
            font-weight: 700;
            line-height: 1.15;
            position: relative;
            z-index: 2;
        }
        .header-utility {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            position: relative;
            z-index: 3;
        }
        .header-brand {
            display: flex;
            align-items: center;
            gap: 10px;
            min-width: 260px;
            flex: 1 1 auto;
        }
        .platform-mark {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 38px;
            height: 38px;
            border-radius: 8px;
            border: 1px solid rgba(255,255,255,0.36);
            background: rgba(255,255,255,0.15);
            color: #fff;
            font-size: 13px;
            font-weight: 800;
            letter-spacing: 0;
            flex: 0 0 auto;
        }
        .platform-title-block {
            min-width: 0;
        }
        .platform-cn {
            font-size: 22px;
            white-space: nowrap;
        }
        .platform-en {
            color: rgba(255,255,255,0.76);
            font-size: 16px;
            font-weight: 650;
            white-space: nowrap;
        }
        .platform-subtitle,
        .analysis-object-badge {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .platform-subtitle {
            margin-top: 2px;
            color: rgba(255,255,255,0.82);
            font-size: 12px;
            font-weight: 600;
            line-height: 1.35;
        }
        .analysis-object-badge {
            margin-top: 3px;
            max-width: 680px;
            color: rgba(255,255,255,0.92);
            font-size: 12px;
            font-weight: 650;
            line-height: 1.35;
        }
        .header-user-tools {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 8px;
            min-width: 0;
            flex: 0 1 auto;
        }
        .global-sku-switch {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            min-width: 0;
            max-width: 310px;
            padding: 4px 8px;
            border: 1px solid rgba(255,255,255,0.42);
            border-radius: 8px;
            background: rgba(255,255,255,0.16);
            color: #fff;
            font-size: 11px;
            font-weight: 700;
            line-height: 1.3;
            backdrop-filter: blur(8px);
        }
        .global-sku-switch span {
            flex: 0 0 auto;
            color: rgba(255,255,255,0.84);
            white-space: nowrap;
        }
        .global-sku-switch select {
            min-width: 132px;
            max-width: 210px;
            border: 0;
            border-radius: 6px;
            background: rgba(255,255,255,0.92);
            color: #243449;
            font-size: 12px;
            font-weight: 800;
            outline: none;
            padding: 4px 7px;
        }
        .global-sku-switch select:disabled {
            color: #64748b;
            cursor: not-allowed;
            opacity: 0.82;
        }
        .user-context-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            max-width: 260px;
            min-width: 0;
            padding: 4px 9px;
            border: 1px solid rgba(255,255,255,0.42);
            border-radius: 18px;
            background: rgba(255,255,255,0.14);
            color: #fff;
            font-size: 11px;
            font-weight: 600;
            line-height: 1.35;
            backdrop-filter: blur(8px);
            cursor: pointer;
            font-family: inherit;
        }
        .user-context-badge .ucb-label {
            display: none;
        }
        .user-context-badge .ucb-main {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .user-context-badge.is-error {
            border-color: rgba(255,255,255,0.25);
            background: rgba(0,0,0,0.16);
        }
        .header-controls {
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: center;
            gap: 8px 10px;
            margin-top: 10px;
            position: relative;
            z-index: 2;
            flex-wrap: wrap;
        }
        .quick-range-row,
        .period-control-row {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            flex-wrap: wrap;
        }
        .quick-label,
        .period-label,
        .date-separator {
            font-size: 12px;
            opacity: 0.76;
        }
        .month-select-wrap {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            color: rgba(255,255,255,0.8);
            font-size: 12px;
            font-weight: 600;
        }
        .month-select {
            min-width: 74px;
            padding: 4px 9px;
            border-radius: 16px;
            border: 1.5px solid rgba(255,255,255,0.62);
            background: rgba(255,255,255,0.18);
            color: white;
            font-size: 11px;
            font-weight: 700;
            cursor: pointer;
            outline: none;
            color-scheme: dark;
        }
        .month-select:hover,
        .month-select:focus {
            background: rgba(255,255,255,0.3);
            border-color: rgba(255,255,255,0.9);
        }
        .header-date-input {
            padding: 4px 10px;
            border-radius: 16px;
            border: 1.5px solid rgba(255,255,255,0.72);
            background: rgba(255,255,255,0.22);
            color: white;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            outline: none;
            color-scheme: dark;
        }
        .header-action-btn,
        .header-action-secondary {
            border-radius: 18px;
            border: 1.5px solid rgba(255,255,255,0.72);
            color: white;
            font-weight: 700;
            cursor: pointer;
            outline: none;
            transition: background 0.2s, transform 0.2s;
        }
        .header-action-btn {
            padding: 5px 18px;
            background: rgba(255,255,255,0.28);
            font-size: 13px;
        }
        .header-action-secondary {
            padding: 5px 12px;
            background: rgba(255,255,255,0.13);
            font-size: 12px;
        }
        .header-action-btn:hover,
        .header-action-secondary:hover {
            background: rgba(255,255,255,0.38);
        }
        .period-summary {
            max-width: 420px;
            color: rgba(255,255,255,0.86);
            font-size: 12px;
            line-height: 1.45;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            text-align: left;
        }
        .header p {
            font-size: 14px;
            opacity: 0.9;
        }
        .tabs {
            display: flex;
            border-bottom: 2px solid #f0f0f0;
            background: #fafafa;
            flex-wrap: wrap;
        }
        .main-workspace-nav {
            display: flex;
            align-items: stretch;
            justify-content: space-between;
            gap: 12px;
            padding: 0 16px;
            border-bottom: 1px solid #edf0f5;
            background: #fff;
        }
        .nav-section {
            display: flex;
            align-items: stretch;
            min-width: 0;
        }
        .nav-section-tabs {
            flex: 1 1 auto;
            overflow-x: auto;
        }
        .nav-section-links {
            flex: 0 0 auto;
            gap: 8px;
            padding: 9px 0;
        }
        .tab-btn {
            flex: 0 0 auto;
            min-width: 92px;
            padding: 15px 12px 13px;
            border: none;
            background: none;
            cursor: pointer;
            font-size: 13px;
            color: #666;
            transition: all 0.3s;
            border-bottom: 3px solid transparent;
            font-weight: 500;
            white-space: nowrap;
        }
        .tab-btn.active {
            color: #e91e63;
            border-bottom-color: #e91e63;
            background: white;
        }
        .tab-btn:hover {
            color: #e91e63;
        }
        .nav-warroom-tab {
            color: #8a1f47;
            font-weight: 700;
        }
        .nav-warroom-tab.active {
            color: #be185d;
            border-bottom-color: #be185d;
            background: #fff7fb;
        }
        .nav-link-btn {
            min-height: 32px;
            padding: 0 11px;
            border: 1px solid #e6eaf0;
            border-radius: 8px;
            background: #f8fafc;
            color: #475569;
            cursor: pointer;
            font-size: 12px;
            font-weight: 600;
            white-space: nowrap;
            transition: all 0.18s ease;
        }
        .nav-link-btn:hover {
            border-color: #f3a8c3;
            color: #d81b60;
            background: #fff5f8;
        }
        .nav-link-primary {
            border-color: rgba(233,30,99,0.24);
            background: #fff2f7;
            color: #c2185b;
        }
        @media (max-width: 980px) {
            .main-workspace-nav {
                flex-direction: column;
                gap: 0;
                padding: 0 10px 10px;
            }
            .nav-section-tabs,
            .nav-section-links {
                width: 100%;
                overflow-x: auto;
            }
            .nav-section-links {
                padding: 8px 0 0;
            }
        }
        .tab-content {
            display: none;
            padding: 30px;
            animation: fadeIn 0.3s;
        }
        .wr-shell {
            max-width: 1480px;
            margin: 0 auto;
            color: #1f2937;
        }
        .wr-head {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 16px;
            margin-bottom: 14px;
        }
        .wr-eyebrow {
            font-size: 12px;
            color: #be185d;
            font-weight: 800;
            margin-bottom: 4px;
        }
        .wr-head h2 {
            margin: 0;
            font-size: 24px;
            line-height: 1.2;
        }
        .wr-help {
            position: relative;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 16px;
            height: 16px;
            margin-left: 3px;
            border: 1px solid #cbd5e1;
            border-radius: 999px;
            background: #fff;
            color: #64748b;
            font-size: 11px;
            font-weight: 900;
            line-height: 1;
            cursor: help;
            vertical-align: middle;
        }
        .wr-help-tooltip {
            position: fixed;
            z-index: 1600;
            display: none;
            max-width: min(360px, calc(100vw - 32px));
            border: 1px solid #dbe5f0;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.98);
            color: #334155;
            padding: 8px 10px;
            font-size: 12px;
            font-weight: 650;
            line-height: 1.55;
            text-align: left;
            box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
            white-space: normal;
            pointer-events: none;
            opacity: 0;
            transform: translateY(2px);
            transition: opacity .12s ease, transform .12s ease;
        }
        .wr-help-tooltip.open {
            opacity: 1;
            transform: translateY(0);
        }
        /* R4-004 unified business object drill-down */
        .bo-modal {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 1080;
            background: rgba(15, 23, 42, 0.18);
            overflow: auto;
            padding: 28px;
        }
        .bo-modal.open { display: block; }
        .bo-panel {
            width: min(1080px, calc(100vw - 48px));
            margin: 0 auto 32px;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            background: #fff;
            box-shadow: 0 24px 70px rgba(15, 23, 42, 0.2);
            overflow: hidden;
        }
        .bo-head {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 16px;
            padding: 18px 22px 15px;
            border-bottom: 1px solid #e5eaf2;
            background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
        }
        .bo-head-side {
            display: flex;
            align-items: flex-start;
            justify-content: flex-end;
            gap: 10px;
            flex-wrap: wrap;
        }
        .bo-date-tools {
            display: flex;
            align-items: center;
            gap: 7px;
            flex-wrap: wrap;
            justify-content: flex-end;
            padding: 5px 6px;
            border: 1px solid #dbe3ef;
            border-radius: 10px;
            background: #fff;
        }
        .bo-date-tools span,
        .bo-date-tools em {
            color: #64748b;
            font-size: 12px;
            font-style: normal;
            font-weight: 900;
        }
        .bo-date-tools input {
            width: 132px;
            height: 30px;
            border: 1px solid #dbe3ef;
            border-radius: 8px;
            background: #f8fafc;
            color: #334155;
            padding: 0 8px;
            font-size: 12px;
            font-weight: 800;
            outline: none;
        }
        .bo-date-tools input:focus {
            border-color: #10b981;
            box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.12);
        }
        .bo-date-tools button {
            height: 30px;
            border: 1px solid #cde8dd;
            border-radius: 8px;
            background: #ecfdf5;
            color: #047857;
            padding: 0 10px;
            font-size: 12px;
            font-weight: 900;
            cursor: pointer;
            white-space: nowrap;
        }
        .bo-date-tools button[data-bo-apply-date] {
            border-color: #10b981;
            background: #10b981;
            color: #fff;
        }
        .bo-eyebrow {
            color: #be185d;
            font-size: 12px;
            font-weight: 900;
            margin-bottom: 4px;
        }
        .bo-head h2 {
            margin: 0;
            color: #0f172a;
            font-size: 22px;
            line-height: 1.2;
        }
        .bo-sub {
            margin-top: 5px;
            color: #8190a8;
            font-size: 12px;
            font-weight: 700;
        }
        .bo-close {
            border: 1px solid #dbe3ef;
            border-radius: 8px;
            background: #fff;
            color: #334155;
            padding: 8px 13px;
            font-size: 13px;
            font-weight: 900;
            cursor: pointer;
            white-space: nowrap;
        }
        .bo-body {
            padding: 18px 20px 20px;
            background: #f8fafc;
        }
        .bo-loading,
        .bo-empty {
            padding: 26px;
            border-radius: 10px;
            background: #fff;
            color: #8190a8;
            text-align: center;
            font-size: 13px;
            font-weight: 700;
        }
        .bo-kpi-grid {
            display: grid;
            grid-template-columns: repeat(6, minmax(0, 1fr));
            gap: 10px;
            margin-bottom: 12px;
        }
        .bo-kpi {
            min-width: 0;
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            background: #fff;
            padding: 11px 12px 10px;
        }
        .bo-kpi span,
        .bo-kpi em {
            display: block;
            color: #8190a8;
            font-size: 11px;
            font-style: normal;
            font-weight: 800;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .bo-kpi strong {
            display: block;
            margin: 5px 0 3px;
            color: #0f172a;
            font-size: 20px;
            line-height: 1.1;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .bo-kpi .bo-good { color: #16a34a; }
        .bo-kpi .bo-bad { color: #dc2626; }
        .bo-kpi .bo-flat { color: #8190a8; }
        .bo-section {
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            background: #fff;
            margin-top: 12px;
            overflow: hidden;
        }
        .bo-section-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
            margin-top: 12px;
        }
        .bo-section-grid .bo-section {
            margin-top: 0;
        }
        .bo-section-title {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            padding: 12px 14px;
            border-bottom: 1px solid #edf2f7;
            background: #fff;
        }
        .bo-section-title h3 {
            margin: 0;
            color: #1f2937;
            font-size: 15px;
        }
        .bo-section-title span {
            color: #94a3b8;
            font-size: 12px;
            font-weight: 700;
        }
        .bo-trend-chart {
            height: 250px;
            padding: 4px 8px 8px;
        }
        .bo-insights {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 8px;
            margin-top: 12px;
        }
        .bo-insights div {
            border: 1px solid #e2e8f0;
            border-left: 3px solid #be185d;
            border-radius: 8px;
            background: #fff;
            color: #475569;
            padding: 9px 10px;
            font-size: 12px;
            font-weight: 700;
            line-height: 1.55;
        }
        .bo-action-strip {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
            margin: 0 0 12px;
            border: 1px solid #f9a8d4;
            border-radius: 8px;
            background: #fff7fb;
            padding: 9px 10px;
        }
        .bo-action-strip span {
            color: #64748b;
            font-size: 12px;
            font-weight: 800;
        }
        .bo-primary-action {
            border: 1px solid #be185d;
            border-radius: 7px;
            background: #be185d;
            color: #fff;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 6px 10px;
            font-size: 12px;
            font-weight: 900;
            line-height: 1.2;
            text-decoration: none;
            white-space: nowrap;
        }
        .bo-row-actions {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            flex-wrap: nowrap;
        }
        .bo-table-wrap { overflow: auto; }
        .bo-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 12px;
        }
        .bo-table th {
            padding: 9px 10px;
            background: #f8fafc;
            color: #475569;
            text-align: right;
            font-weight: 900;
            white-space: nowrap;
        }
        .bo-table th:first-child,
        .bo-table td:first-child {
            text-align: left;
        }
        .bo-table th.bo-left,
        .bo-table td.bo-left {
            text-align: left;
        }
        .bo-table td.bo-center {
            text-align: center;
        }
        .bo-table td {
            padding: 9px 10px;
            border-top: 1px solid #edf2f7;
            color: #1f2937;
            text-align: right;
            white-space: nowrap;
        }
        .bo-table td:first-child span {
            display: block;
            margin-top: 2px;
            color: #94a3b8;
            font-size: 11px;
            font-weight: 700;
        }
        .bo-object-name {
            display: block;
            max-width: 180px;
            overflow: hidden;
            color: #047857;
            font-size: 13px;
            font-weight: 900;
            line-height: 1.25;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .bo-metric-cell {
            display: inline-grid;
            justify-items: end;
            gap: 2px;
            min-width: 58px;
        }
        .bo-metric-cell strong {
            color: #1f2937;
            font-size: 12px;
            font-weight: 800;
            line-height: 1.2;
        }
        .bo-metric-delta {
            font-size: 10px;
            font-style: normal;
            font-weight: 800;
            line-height: 1.1;
        }
        .bo-object-link {
            border: 0;
            background: transparent;
            color: #be185d;
            cursor: pointer;
            font-size: 13px;
            font-weight: 900;
            padding: 0;
            max-width: 180px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            vertical-align: bottom;
        }
        .bo-tier-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 24px;
            height: 22px;
            padding: 0 8px;
            border-radius: 999px;
            background: #eef2ff;
            color: #475569;
            font-size: 12px;
            font-weight: 900;
        }
        .bo-tier-S { background: #ede9fe; color: #6d28d9; }
        .bo-tier-A { background: #ffedd5; color: #ea580c; }
        .bo-tier-B { background: #dcfce7; color: #16a34a; }
        .bo-tier-C { background: #e0f2fe; color: #0284c7; }
        .bo-tier-D { background: #f1f5f9; color: #64748b; }
        .bo-tier-E { background: #f3f4f6; color: #6b7280; }
        .bo-top-chains {
            display: inline-block;
            max-width: 220px;
            overflow: hidden;
            color: #475569;
            font-size: 12px;
            font-weight: 800;
            text-overflow: ellipsis;
            vertical-align: bottom;
            white-space: nowrap;
        }
        .bo-empty-text {
            color: #94a3b8;
        }
        .bo-row-btn {
            border: 1px solid #bae6fd;
            border-radius: 7px;
            background: #f0f9ff;
            color: #0369a1;
            padding: 4px 8px;
            cursor: pointer;
            font-size: 12px;
            font-weight: 900;
        }
        [data-bo-type][data-bo-name] {
            cursor: pointer;
        }
        /* R4-005 global chain operating view */
        .cg-shell {
            max-width: 1560px;
            margin: 0 auto;
            color: #1f2937;
        }
        .cg-head,
        .cg-section-head {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 12px;
        }
        .cg-head {
            margin-bottom: 12px;
        }
        .cg-eyebrow {
            color: #be185d;
            font-size: 12px;
            font-weight: 900;
            margin-bottom: 4px;
        }
        .cg-head h2,
        .cg-section-head h3 {
            margin: 0;
            color: #0f172a;
            line-height: 1.2;
        }
        .cg-head h2 {
            font-size: 24px;
        }
        .cg-section-head h3 {
            font-size: 17px;
        }
        .cg-head p,
        .cg-section-head span {
            margin: 5px 0 0;
            color: #8190a8;
            font-size: 12px;
            font-weight: 700;
        }
        .cg-head-actions,
        .cg-tools {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 8px;
            flex-wrap: wrap;
        }
        .cg-loading {
            padding: 56px 0;
            color: #8190a8;
            text-align: center;
            font-size: 14px;
            font-weight: 800;
        }
        .cg-error {
            color: #dc2626;
        }
        .cg-kpi-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 10px;
            margin-bottom: 12px;
        }
        .cg-kpi,
        .cg-section,
        .cg-detail,
        .cg-note {
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            background: #fff;
            box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
        }
        .cg-kpi {
            min-width: 0;
            padding: 10px 11px;
        }
        .cg-kpi span,
        .cg-kpi em {
            display: block;
            overflow: hidden;
            color: #8190a8;
            font-size: 11px;
            font-style: normal;
            font-weight: 800;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .cg-kpi strong {
            display: block;
            margin: 4px 0 3px;
            overflow: hidden;
            color: #0f172a;
            font-size: 21px;
            line-height: 1.1;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .cg-note {
            margin-bottom: 12px;
            padding: 9px 12px;
            color: #64748b;
            font-size: 12px;
            font-weight: 700;
            line-height: 1.55;
        }
        .cg-section,
        .cg-detail {
            margin-top: 12px;
            overflow: hidden;
        }
        .cg-section-head {
            padding: 12px 14px;
            border-bottom: 1px solid #edf2f7;
        }
        .chain-share-insights {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 8px;
            margin-bottom: 10px;
        }
        .chain-share-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 14px;
        }
        .chain-share-grid.chain-response-grid {
            grid-template-columns: minmax(0, 1.65fr) minmax(360px, 0.85fr);
        }
        .cg-section > .chain-share-insights {
            padding: 12px 14px 0;
        }
        .cg-section > .chain-share-grid {
            padding: 0 14px;
        }
        .chain-share-chart {
            height: 280px;
        }
        .cg-filter,
        .cg-row-btn {
            border: 1px solid #dbe3ef;
            border-radius: 7px;
            background: #fff;
            color: #334155;
            cursor: pointer;
            font-size: 12px;
            font-weight: 900;
        }
        .cg-filter {
            padding: 7px 11px;
        }
        .cg-filter.active {
            border-color: #f9a8d4;
            background: #fff1f2;
            color: #be185d;
        }
        .cg-search {
            width: 180px;
            border: 1px solid #dbe3ef;
            border-radius: 7px;
            padding: 8px 10px;
            color: #334155;
            font-size: 12px;
            font-weight: 800;
            outline: none;
        }
        .cg-tier-backdrop {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 9000;
            background: rgba(15, 23, 42, 0.35);
        }
        .cg-tier-backdrop.show {
            display: block;
        }
        .cg-tier-modal {
            display: none;
            position: fixed;
            left: 50%;
            top: 50%;
            z-index: 9001;
            width: min(760px, calc(100vw - 28px));
            max-height: calc(100vh - 52px);
            overflow: auto;
            transform: translate(-50%, -50%);
            border: 1px solid #dbe3ef;
            border-radius: 8px;
            background: #fff;
            box-shadow: 0 20px 54px rgba(15, 23, 42, 0.22);
        }
        .cg-tier-modal.show {
            display: block;
        }
        .cg-tier-head,
        .cg-tier-actions {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
            padding: 14px 16px;
        }
        .cg-tier-head {
            border-bottom: 1px solid #edf2f7;
        }
        .cg-tier-head h3 {
            margin: 0;
            color: #0f172a;
            font-size: 18px;
        }
        .cg-tier-head span {
            display: block;
            margin-top: 4px;
            color: #64748b;
            font-size: 12px;
            font-weight: 800;
        }
        .cg-tier-close {
            border: 1px solid #dbe3ef;
            border-radius: 7px;
            background: #fff;
            color: #334155;
            cursor: pointer;
            font-size: 12px;
            font-weight: 900;
            padding: 7px 10px;
        }
        .cg-tier-body {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
            padding: 14px 16px;
        }
        .cg-tier-body label {
            display: flex;
            flex-direction: column;
            gap: 7px;
            color: #334155;
            font-size: 13px;
        }
        .cg-tier-body textarea {
            min-height: 160px;
            resize: vertical;
            border: 1px solid #dbe3ef;
            border-radius: 7px;
            padding: 10px;
            color: #0f172a;
            font-size: 13px;
            font-weight: 700;
            line-height: 1.55;
            outline: none;
        }
        .cg-tier-body p {
            grid-column: 1 / -1;
            margin: 0;
            color: #64748b;
            font-size: 12px;
            font-weight: 800;
            line-height: 1.5;
        }
        .cg-tier-actions {
            justify-content: flex-end;
            border-top: 1px solid #edf2f7;
        }
        .cg-table-meta {
            padding: 8px 14px;
            color: #8190a8;
            font-size: 12px;
            font-weight: 800;
        }
        .cg-field-panel {
            display: flex;
            gap: 9px 14px;
            flex-wrap: wrap;
            padding: 9px 14px;
            border-bottom: 1px solid #edf2f7;
            background: #fbfdff;
        }
        .cg-field-panel label {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            color: #475569;
            font-size: 12px;
            font-weight: 800;
            white-space: nowrap;
        }
        .cg-table-wrap {
            overflow: auto;
        }
        .cg-table {
            min-width: 1540px;
            width: 100%;
            border-collapse: collapse;
            font-size: 12px;
        }
        .cg-table th {
            position: sticky;
            top: 0;
            z-index: 1;
            padding: 8px 8px;
            border-top: 1px solid #edf2f7;
            border-bottom: 1px solid #e2e8f0;
            background: #f8fafc;
            color: #475569;
            text-align: left;
            font-weight: 900;
            white-space: nowrap;
        }
        .cg-table th[onclick] {
            cursor: pointer;
        }
        .cg-table td {
            max-width: 170px;
            padding: 7px 8px;
            border-bottom: 1px solid #edf2f7;
            color: #1f2937;
            white-space: nowrap;
        }
        .cg-table tr.active td,
        .cg-table tr:hover td {
            background: #fff7fb;
        }
        .cg-table .num {
            text-align: left;
            font-variant-numeric: tabular-nums;
        }
        .cg-table .strong {
            color: #0f172a;
            font-weight: 900;
        }
        .cg-chain-link {
            max-width: 150px;
            border: 0;
            background: transparent;
            color: #be185d;
            cursor: pointer;
            font-size: 12px;
            font-weight: 900;
            overflow: hidden;
            padding: 0;
            text-overflow: ellipsis;
            vertical-align: bottom;
            white-space: nowrap;
        }
        .cg-priority {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 30px;
            border-radius: 999px;
            background: #eef2f7;
            color: #334155;
            padding: 3px 7px;
            font-weight: 900;
        }
        .cg-chip {
            display: inline-flex;
            border-radius: 999px;
            padding: 3px 8px;
            font-weight: 900;
        }
        .cg-action-追投 { background: #dcfce7; color: #15803d; }
        .cg-action-控费,
        .cg-action-预警 { background: #fee2e2; color: #dc2626; }
        .cg-action-先查库存\/履约 { background: #ffedd5; color: #c2410c; }
        .cg-action-维持 { background: #e0f2fe; color: #0369a1; }
        .cg-action-数据不足 { background: #f1f5f9; color: #64748b; }
        .cg-level-NKA { background: #fce7f3; color: #be185d; }
        .cg-level-LKA { background: #ecfeff; color: #0e7490; }
        .cg-level-OTHER { background: #f1f5f9; color: #64748b; }
        .cg-good { color: #16a34a !important; }
        .cg-bad { color: #dc2626 !important; }
        .cg-flat { color: #8190a8 !important; }
        .cg-ellipsis {
            display: inline-block;
            max-width: 210px;
            overflow: hidden;
            text-overflow: ellipsis;
            vertical-align: bottom;
            white-space: nowrap;
        }
        .cg-row-btn {
            margin-right: 4px;
            padding: 4px 7px;
        }
        .cg-row-btn-ghost {
            border-color: #bae6fd;
            background: #f0f9ff;
            color: #0369a1;
        }
        .cg-row-btn.wr-focus-active {
            color: #047857;
            border-color: #9fe6bf;
            background: #f0fdf4;
        }
        .cg-trend {
            height: 245px;
            padding: 4px 8px 10px;
        }
        .cg-dist-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
            padding: 0 14px 14px;
        }
        .cg-dist-card {
            overflow: hidden;
            border: 1px solid #edf2f7;
            border-radius: 8px;
        }
        .cg-dist-card h4 {
            margin: 0;
            padding: 9px 10px;
            border-bottom: 1px solid #edf2f7;
            color: #334155;
            font-size: 13px;
        }
        .cg-dist-card table {
            width: 100%;
            border-collapse: collapse;
            font-size: 12px;
        }
        .cg-dist-card th,
        .cg-dist-card td {
            padding: 7px 8px;
            border-bottom: 1px solid #f1f5f9;
            color: #334155;
            text-align: right;
            white-space: nowrap;
        }
        .cg-dist-card th:first-child,
        .cg-dist-card td:first-child {
            text-align: left;
        }
        .cg-dist-card button {
            border: 0;
            background: transparent;
            color: #be185d;
            cursor: pointer;
            font-weight: 900;
            padding: 0;
        }
        @media (max-width: 900px) {
            .bo-insights,
            .cg-kpi-grid,
            .cg-dist-grid,
            .chain-share-insights,
            .chain-share-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
            .chain-share-grid.chain-response-grid {
                grid-template-columns: 1fr;
            }
            .bo-modal { padding: 12px; }
            .bo-panel { width: 100%; }
            .bo-head {
                flex-direction: column;
            }
            .bo-head-side {
                width: 100%;
                justify-content: space-between;
            }
            .bo-date-tools {
                justify-content: flex-start;
            }
        }
        @media (max-width: 760px) {
            .bo-kpi-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
            .bo-section-grid {
                grid-template-columns: 1fr;
            }
        }
        @media (max-width: 640px) {
            .chain-share-insights,
            .chain-share-grid {
                grid-template-columns: 1fr;
            }
            .chain-share-grid.chain-response-grid {
                grid-template-columns: 1fr;
            }
            .chain-share-chart {
                height: 250px;
            }
        }
        .wr-head p {
            margin: 6px 0 0;
            color: #64748b;
            font-size: 13px;
        }
        .wr-head-actions {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            justify-content: flex-end;
        }
        .wr-btn {
            border: 0;
            border-radius: 8px;
            background: #be185d;
            color: #fff;
            font-size: 12px;
            font-weight: 800;
            padding: 9px 13px;
            cursor: pointer;
            white-space: nowrap;
        }
        .wr-btn-ghost {
            background: #f8fafc;
            color: #475569;
            border: 1px solid #e2e8f0;
        }
        .wr-full {
            width: 100%;
            margin: 12px 0 8px;
        }
        .wr-summary {
            display: grid;
            grid-template-columns: repeat(7, minmax(0, 1fr));
            gap: 8px;
            margin-bottom: 8px;
            align-items: stretch;
        }
        .wr-rule-note {
            margin: 0 0 14px;
            padding: 8px 10px;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            background: #f8fafc;
            color: #64748b;
            font-size: 12px;
            line-height: 1.45;
        }
        .wr-load-notice {
            margin: 0 0 10px;
            padding: 9px 11px;
            border: 1px solid #fde68a;
            border-radius: 8px;
            background: #fffbeb;
            color: #92400e;
            font-size: 12px;
            line-height: 1.45;
            font-weight: 700;
        }
        .wr-load-notice-loading {
            border-color: #bfdbfe;
            background: #eff6ff;
            color: #1e3a8a;
        }
        .wr-load-notice-error {
            border-color: #fecaca;
            background: #fef2f2;
            color: #991b1b;
        }
        .wr-loading-line {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .wr-loading-line em {
            margin-left: auto;
            color: #475569;
            font-style: normal;
            font-size: 11px;
        }
        .wr-spinner {
            width: 13px;
            height: 13px;
            border: 2px solid rgba(37, 99, 235, 0.2);
            border-top-color: #2563eb;
            border-radius: 50%;
            animation: wr-spin 0.8s linear infinite;
            flex: 0 0 auto;
        }
        .wr-loading-detail {
            margin-top: 4px;
            color: #475569;
            font-size: 12px;
            font-weight: 650;
        }
        .wr-load-steps {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-top: 8px;
        }
        .wr-load-steps span {
            border: 1px solid #dbeafe;
            border-radius: 999px;
            background: #fff;
            color: #475569;
            padding: 3px 8px;
            font-size: 11px;
            font-weight: 800;
        }
        .wr-load-steps span.done {
            border-color: #bbf7d0;
            background: #f0fdf4;
            color: #047857;
        }
        .wr-load-steps span.error {
            border-color: #fecaca;
            background: #fff1f2;
            color: #be123c;
        }
        @keyframes wr-spin {
            to { transform: rotate(360deg); }
        }
        .wr-metric {
            background: #fff;
            border: 1px solid #edf0f5;
            border-radius: 8px;
            padding: 8px 9px;
            min-width: 0;
            min-height: 88px;
            box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
        }
        .wr-metric-label {
            color: #64748b;
            font-size: 11px;
            font-weight: 700;
        }
        .wr-metric-value {
            margin-top: 5px;
            color: #111827;
            font-size: 19px;
            font-weight: 900;
            line-height: 1.15;
            overflow-wrap: anywhere;
        }
        .wr-metric-delta {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            margin-top: 6px;
            padding: 2px 6px;
            border-radius: 999px;
            background: #f8fafc;
            color: #64748b;
            font-size: 10px;
            font-weight: 800;
            line-height: 1.3;
            white-space: nowrap;
        }
        .wr-metric-delta span {
            color: inherit;
            font-weight: 700;
            opacity: 0.78;
        }
        .wr-metric-delta b {
            font: inherit;
        }
        .wr-metric-delta.up {
            background: #fff1f2;
            color: #e11d48;
        }
        .wr-metric-delta.down {
            background: #ecfdf5;
            color: #059669;
        }
        .wr-metric-delta.flat,
        .wr-metric-delta.neutral {
            background: #f1f5f9;
            color: #64748b;
        }
        .wr-metric-sub {
            margin-top: 4px;
            color: #94a3b8;
            font-size: 11px;
            line-height: 1.35;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: normal;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            min-height: 18px;
        }
        .wr-flow-diagnosis {
            grid-column: 1 / -1;
            border: 1px solid #dfe9e4;
            border-radius: 8px;
            background: #fbfdfb;
            padding: 0;
            overflow: hidden;
        }
        .wr-flow-diagnosis summary {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            padding: 9px 11px;
            cursor: pointer;
            color: #334155;
            font-size: 12px;
            font-weight: 900;
            list-style: none;
        }
        .wr-flow-diagnosis summary::-webkit-details-marker {
            display: none;
        }
        .wr-flow-diagnosis summary strong {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 999px;
            background: #ecfdf3;
            color: #027a48;
            padding: 3px 8px;
            font-size: 11px;
            white-space: nowrap;
        }
        .wr-flow-diagnosis summary strong b {
            display: inline;
            color: inherit;
            font-size: inherit;
            font-weight: 900;
            line-height: inherit;
        }
        .wr-flow-diagnosis .wr-flow-label-close {
            display: none;
        }
        .wr-flow-diagnosis[open] .wr-flow-label-open {
            display: none;
        }
        .wr-flow-diagnosis[open] .wr-flow-label-close {
            display: inline;
        }
        .wr-flow-note {
            border-top: 1px solid #e8f1ed;
            padding: 8px 11px 0;
            color: #64748b;
            font-size: 11px;
            line-height: 1.45;
            font-weight: 650;
        }
        .wr-flow-quality {
            margin: 8px 11px 0;
            padding: 7px 9px;
            border: 1px solid #fed7aa;
            border-radius: 7px;
            background: #fff7ed;
            color: #9a3412;
            font-size: 11px;
            line-height: 1.4;
            font-weight: 800;
        }
        .wr-flow-grid {
            display: grid;
            grid-template-columns: repeat(7, minmax(0, 1fr));
            gap: 8px;
            padding: 9px 11px 11px;
        }
        .wr-flow-grid > div {
            min-width: 0;
            border-radius: 7px;
            background: #fff;
            border: 1px solid #edf0f5;
            padding: 8px;
        }
        .wr-flow-stage {
            display: inline-flex;
            width: fit-content;
            margin-bottom: 5px;
            padding: 2px 6px;
            border-radius: 999px;
            background: #eef7f2;
            color: #047857;
            font-size: 10px;
            line-height: 1.2;
            font-weight: 900;
        }
        .wr-flow-grid span,
        .wr-flow-grid em {
            display: block;
            color: #64748b;
            font-size: 11px;
            line-height: 1.35;
            font-style: normal;
        }
        .wr-flow-grid strong {
            display: block;
            margin: 4px 0;
            color: #0f172a;
            font-size: 17px;
            font-weight: 950;
            overflow-wrap: anywhere;
        }
        .wr-flow-grid .wr-flow-user-structure {
            display: grid;
            grid-template-columns: 1fr;
            gap: 6px;
        }
        .wr-flow-grid .wr-flow-warn {
            border-color: #fed7aa;
            background: #fffbeb;
        }
        .wr-flow-grid .wr-flow-empty {
            background: #f8fafc;
            border-style: dashed;
        }
        .wr-flow-grid .wr-flow-empty strong {
            color: #64748b;
        }
        .wr-user-share-chart {
            position: relative;
            min-width: 0;
            outline: none;
        }
        .wr-user-share-track {
            position: relative;
            min-width: 0;
            height: 34px;
            overflow: hidden;
            border: 1px solid #e5eee8;
            border-radius: 9px;
            background: #f8fbf9;
        }
        .wr-user-share-track::before,
        .wr-user-share-track::after {
            content: "";
            position: absolute;
            top: 0;
            bottom: 0;
        }
        .wr-user-share-track::before {
            left: 0;
            width: var(--new-share, 50%);
            background: linear-gradient(90deg, #dff7ea 0%, #c9f0db 100%);
        }
        .wr-user-share-track::after {
            left: var(--new-share, 50%);
            right: 0;
            background: linear-gradient(90deg, #eef3ff 0%, #dfe8fb 100%);
        }
        .wr-user-share-label {
            position: absolute;
            z-index: 1;
            top: 50%;
            display: inline-flex;
            align-items: baseline;
            gap: 4px;
            transform: translateY(-50%);
            white-space: nowrap;
        }
        .wr-user-share-label.new {
            left: 9px;
            color: #027a48;
        }
        .wr-user-share-label.old {
            right: 9px;
            color: #1d4ed8;
        }
        .wr-user-share-label b,
        .wr-user-share-label i {
            color: currentColor;
            line-height: 1;
            white-space: nowrap;
        }
        .wr-user-share-label b {
            font-size: 11px;
            font-weight: 950;
        }
        .wr-user-share-label i {
            font-size: 12px;
            font-style: normal;
            font-weight: 950;
        }
        .wr-user-share-tooltip {
            position: absolute;
            z-index: 30;
            left: 50%;
            bottom: calc(100% + 8px);
            width: max-content;
            max-width: 260px;
            padding: 7px 9px;
            border: 1px solid rgba(15, 23, 42, 0.1);
            border-radius: 8px;
            background: rgba(15, 23, 42, 0.94);
            box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
            color: #fff;
            font-size: 11px;
            font-weight: 750;
            line-height: 1.45;
            opacity: 0;
            pointer-events: none;
            transform: translate(-50%, 4px);
            transition: opacity 0.16s ease, transform 0.16s ease;
        }
        .wr-user-share-tooltip::after {
            content: "";
            position: absolute;
            left: 50%;
            bottom: -5px;
            width: 10px;
            height: 10px;
            background: rgba(15, 23, 42, 0.94);
            transform: translateX(-50%) rotate(45deg);
        }
        .wr-user-share-tooltip span {
            display: block;
            color: #fff;
            white-space: nowrap;
        }
        .wr-user-share-chart:hover .wr-user-share-tooltip,
        .wr-user-share-chart:focus-visible .wr-user-share-tooltip {
            opacity: 1;
            transform: translate(-50%, 0);
        }
        .wr-user-share-chart:focus-visible .wr-user-share-track {
            box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.18);
        }
        .wr-flow-grid .wr-flow-user-structure-compact em {
            font-size: 10.5px;
            line-height: 1.25;
        }
        .wr-flow-grid .wr-flow-action {
            background: #f0fdf4;
            border-color: #bbf7d0;
        }
        .wr-flow-grid .wr-flow-action strong {
            color: #027a48;
            font-size: 16px;
        }
        .wr-investment-radar {
            width: 100%;
            max-width: 100%;
            margin: 0 0 10px;
            overflow: hidden;
            border: 1px solid #dfe7f1;
            border-radius: 8px;
            background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
            box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
        }
        .wr-invest-head {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: flex-start;
            gap: 14px;
            padding: 13px 14px;
            border-bottom: 1px solid #edf0f5;
        }
        .wr-invest-head h3 {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            margin: 0;
            color: #0f172a;
            font-size: 16px;
            line-height: 1.25;
            white-space: nowrap;
        }
        .wr-invest-head h3 .wr-help {
            flex: 0 0 auto;
            margin-left: 0;
        }
        .wr-invest-head span {
            display: block;
            margin-top: 3px;
            color: #64748b;
            font-size: 11px;
            font-weight: 700;
        }
        .wr-invest-kpis {
            display: grid;
            flex: 1 1 360px;
            grid-template-columns: repeat(3, minmax(82px, 1fr));
            gap: 8px;
            min-width: min(320px, 100%);
            max-width: 460px;
        }
        .wr-invest-kpis div {
            min-width: 0;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            background: #fff;
            padding: 8px 10px;
        }
        .wr-invest-kpis span {
            margin: 0;
            color: #64748b;
            font-size: 10.5px;
            font-weight: 800;
            white-space: nowrap;
        }
        .wr-invest-kpis strong {
            display: block;
            margin-top: 4px;
            overflow: hidden;
            color: #0f172a;
            font-size: 17px;
            font-weight: 900;
            line-height: 1.1;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .wr-invest-layout {
            display: grid;
            width: 100%;
            max-width: 100%;
            grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
            gap: 0;
            align-items: stretch;
            justify-content: start;
        }
        .wr-invest-map {
            position: relative;
            display: flex;
            flex-direction: column;
            justify-content: center;
            min-width: 0;
            max-width: none;
            min-height: 620px;
            overflow: hidden;
            border-right: 1px solid #edf0f5;
            background:
                linear-gradient(90deg, rgba(239, 68, 68, 0.05), rgba(16, 185, 129, 0.07)),
                #fbfdff;
        }
        .wr-invest-map-tools {
            position: absolute;
            top: 12px;
            right: 12px;
            z-index: 2;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 4px;
            border: 1px solid rgba(203, 213, 225, 0.88);
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.88);
            box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
            backdrop-filter: blur(8px);
        }
        .wr-invest-zoom-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 26px;
            height: 26px;
            border: 1px solid #dbe5f0;
            border-radius: 6px;
            background: #fff;
            color: #0f172a;
            font-size: 14px;
            font-weight: 900;
            line-height: 1;
            cursor: pointer;
        }
        .wr-invest-zoom-btn:hover {
            border-color: #9ec5f4;
            background: #f5f9ff;
        }
        .wr-invest-zoom-btn.reset {
            min-width: 44px;
            padding: 0 8px;
            font-size: 11px;
            font-weight: 850;
        }
        .wr-invest-zoom-readout {
            min-width: 40px;
            color: #64748b;
            font-size: 11px;
            font-weight: 850;
            text-align: center;
        }
        .wr-invest-svg {
            display: block;
            width: 100%;
            height: auto;
            max-height: none;
            margin: auto 0;
            aspect-ratio: 16 / 9;
        }
        .wr-invest-china-svg {
            min-height: 0;
            background: transparent;
        }
        .wr-invest-map-placeholder {
            display: grid;
            place-items: center;
            min-height: 360px;
            padding: 32px;
            color: #64748b;
            text-align: center;
        }
        .wr-invest-map-placeholder strong,
        .wr-invest-map-placeholder span {
            display: block;
        }
        .wr-invest-map-placeholder strong {
            color: #0f172a;
            font-size: 15px;
            font-weight: 900;
        }
        .wr-invest-map-placeholder span {
            margin-top: 6px;
            font-size: 12px;
            font-weight: 750;
        }
        .wr-map-province {
            fill: #e8eef5;
            stroke: #ffffff;
            stroke-width: 0.9;
            vector-effect: non-scaling-stroke;
        }
        .wr-map-province.target {
            fill: #b8f2da;
        }
        .wr-map-province.source {
            fill: #ffd2cc;
        }
        .wr-map-province.mixed {
            fill: #c7e9ff;
        }
        .wr-map-province.watch {
            fill: #dbeafe;
        }
        .wr-map-flow-bg {
            fill: none;
            stroke: rgba(148, 163, 184, 0.2);
            stroke-linecap: round;
            stroke-width: 9;
        }
        .wr-map-flow {
            fill: none;
            stroke: url(#wrChinaFlowGrad);
            stroke-dasharray: 8 10;
            stroke-linecap: round;
            stroke-width: 3.2;
            opacity: 0.78;
            animation: wrInvestMapDash 8s linear infinite;
        }
        .wr-map-particle {
            fill: #ffffff;
            stroke: #0ea5e9;
            stroke-width: 2;
            filter: drop-shadow(0 0 8px rgba(14, 165, 233, 0.45));
        }
        .wr-map-city line {
            stroke: rgba(71, 85, 105, 0.35);
            stroke-width: 1;
        }
        .wr-map-city-ring {
            stroke: #ffffff;
            stroke-width: 2;
        }
        .wr-map-city.target .wr-map-city-ring {
            fill: rgba(16, 185, 129, 0.18);
            stroke: #10b981;
            animation: wrMapPulseTarget 2.6s ease-out infinite;
        }
        .wr-map-city.source .wr-map-city-ring {
            fill: rgba(239, 68, 68, 0.16);
            stroke: #ef4444;
            animation: wrMapPulseSource 2.6s ease-out infinite;
        }
        .wr-map-city.target .wr-map-city-core {
            fill: #10b981;
        }
        .wr-map-city.source .wr-map-city-core {
            fill: #ef4444;
        }
        .wr-map-city text {
            fill: #0f172a;
            font-size: 11.4px;
            font-weight: 950;
            paint-order: stroke;
            stroke: rgba(255, 255, 255, 0.92);
            stroke-width: 3.5;
        }
        .wr-map-city .wr-map-city-sub {
            fill: #64748b;
            font-size: 8.8px;
            font-weight: 850;
            stroke-width: 2.6;
        }
        .wr-invest-bg {
            fill: rgba(255, 255, 255, 0.86);
            stroke: #e4edf6;
            stroke-width: 1;
        }
        .wr-invest-stage-title {
            fill: #64748b;
            font-size: 12px;
            font-weight: 900;
            letter-spacing: 0;
        }
        .wr-invest-stage-title.target {
            fill: #047857;
        }
        .wr-invest-stage-title.source {
            fill: #b91c1c;
        }
        .wr-invest-svg marker path {
            fill: #10b981;
        }
        .wr-invest-hub rect {
            fill: rgba(255, 255, 255, 0.92);
            stroke: rgba(16, 185, 129, 0.28);
            stroke-width: 1;
            filter: drop-shadow(0 14px 26px rgba(15, 23, 42, 0.08));
        }
        .wr-invest-hub text {
            fill: #0f172a;
            font-size: 13px;
            font-weight: 950;
            text-anchor: middle;
        }
        .wr-invest-hub text + text {
            fill: #64748b;
            font-size: 10px;
            font-weight: 800;
        }
        .wr-invest-flow-bg {
            fill: none;
            stroke: rgba(148, 163, 184, 0.18);
            stroke-width: 10;
            stroke-linecap: round;
        }
        .wr-invest-flow {
            fill: none;
            stroke: url(#wrInvestFlowGrad);
            stroke-width: 5.5;
            stroke-linecap: round;
            opacity: 0.82;
            filter: drop-shadow(0 8px 14px rgba(14, 165, 233, 0.13));
        }
        .wr-invest-flow-1 {
            stroke-width: 5;
        }
        .wr-invest-flow-2 {
            stroke-width: 4.5;
            opacity: 0.72;
        }
        .wr-invest-amount-pill rect {
            fill: rgba(255, 255, 255, 0.96);
            stroke: rgba(14, 165, 233, 0.18);
            stroke-width: 1;
            filter: drop-shadow(0 8px 18px rgba(15, 23, 42, 0.08));
        }
        .wr-invest-amount-pill text {
            fill: #0369a1;
            font-size: 10px;
            font-weight: 900;
            text-anchor: middle;
        }
        .wr-invest-particle {
            fill: #0ea5e9;
            opacity: 0.92;
            filter: drop-shadow(0 0 8px rgba(14, 165, 233, 0.45));
        }
        .wr-invest-stage-card rect {
            fill: rgba(255, 255, 255, 0.94);
            stroke: #e2e8f0;
            stroke-width: 1;
            filter: drop-shadow(0 10px 20px rgba(15, 23, 42, 0.07));
        }
        .wr-invest-stage-card.source rect {
            stroke: rgba(239, 68, 68, 0.18);
        }
        .wr-invest-stage-card.target rect {
            stroke: rgba(16, 185, 129, 0.22);
        }
        .wr-invest-stage-card circle {
            stroke: #fff;
            stroke-width: 2;
        }
        .wr-invest-stage-card.source circle {
            fill: #ef4444;
        }
        .wr-invest-stage-card.target circle {
            fill: #10b981;
        }
        .wr-invest-stage-city {
            fill: #0f172a;
            font-size: 12px;
            font-weight: 950;
        }
        .wr-invest-stage-chain {
            fill: #64748b;
            font-size: 10px;
            font-weight: 800;
        }
        .wr-invest-stage-amount {
            fill: #64748b;
            font-size: 9.5px;
            font-weight: 900;
            text-anchor: middle;
        }
        .wr-invest-legend {
            position: absolute;
            left: 14px;
            bottom: 12px;
            z-index: 2;
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            margin: 0;
            padding: 7px 10px;
            border: 1px solid rgba(203, 213, 225, 0.88);
            border-radius: 7px;
            background: rgba(255, 255, 255, 0.9);
            box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
            color: #64748b;
            font-size: 11px;
            font-weight: 800;
            pointer-events: none;
            backdrop-filter: blur(8px);
        }
        .wr-invest-legend span {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            white-space: nowrap;
        }
        .wr-invest-legend span::before {
            content: "";
            width: 8px;
            height: 8px;
            border-radius: 999px;
            background: #f59e0b;
        }
        .wr-invest-legend .target::before { background: #10b981; }
        .wr-invest-legend .source::before { background: #ef4444; }
        .wr-invest-legend .flow::before {
            width: 18px;
            height: 2px;
            border-radius: 999px;
            background: #0284c7;
        }
        .wr-invest-side {
            display: grid;
            gap: 10px;
            align-content: start;
            width: 100%;
            max-width: none;
            min-width: 0;
            padding: 12px;
            background: #fff;
        }
        .wr-invest-side section {
            overflow: hidden;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            background: #fff;
        }
        .wr-invest-side-title {
            display: flex;
            justify-content: space-between;
            gap: 6px;
            padding: 9px 10px;
            border-bottom: 1px solid #edf2f7;
            background: #fbfdff;
        }
        .wr-invest-side-title h4 {
            margin: 0;
            color: #0f172a;
            font-size: 13px;
            line-height: 1.25;
        }
        .wr-invest-side-title span {
            color: #94a3b8;
            font-size: 11px;
            font-weight: 800;
            white-space: nowrap;
        }
        .wr-invest-action-row {
            display: grid;
            grid-template-columns: 24px minmax(0, 1fr) auto;
            gap: 8px;
            align-items: center;
            padding: 9px 10px;
            border-top: 1px solid #f1f5f9;
        }
        .wr-invest-action-row:first-of-type {
            border-top: 0;
        }
        .wr-invest-rank {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 24px;
            height: 24px;
            border-radius: 7px;
            background: #f1f5f9;
            color: #334155;
            font-size: 12px;
            font-weight: 900;
        }
        .wr-invest-action-row.target .wr-invest-rank {
            background: #dcfce7;
            color: #047857;
        }
        .wr-invest-action-row.source .wr-invest-rank {
            background: #fee2e2;
            color: #b91c1c;
        }
        .wr-invest-action-main {
            min-width: 0;
        }
        .wr-invest-action-main strong,
        .wr-invest-action-main span {
            display: block;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .wr-invest-action-main strong {
            color: #0f172a;
            font-size: 12px;
            font-weight: 900;
        }
        .wr-invest-action-main span {
            margin-top: 3px;
            color: #64748b;
            font-size: 10.5px;
            font-weight: 700;
        }
        .wr-invest-action-tools {
            grid-column: 3;
            display: inline-flex;
            flex-wrap: nowrap;
            gap: 4px;
            align-items: center;
            justify-self: end;
        }
        .wr-invest-mini {
            border: 1px solid #dbe3ef;
            border-radius: 7px;
            background: #fff;
            color: #334155;
            cursor: pointer;
            font-size: 11px;
            font-weight: 900;
            padding: 5px 7px;
            white-space: nowrap;
        }
        .wr-invest-mini.primary {
            border-color: #10b981;
            background: #ecfdf5;
            color: #047857;
        }
        .wr-invest-mini:disabled {
            cursor: default;
            opacity: 0.55;
        }
        .wr-invest-empty {
            padding: 14px 10px;
            color: #94a3b8;
            font-size: 12px;
            font-weight: 800;
            text-align: center;
        }
        @keyframes wrInvestMapDash {
            to { stroke-dashoffset: -160; }
        }
        @keyframes wrMapPulseTarget {
            0% { r: 8; opacity: 0.95; }
            70% { r: 20; opacity: 0; }
            100% { r: 20; opacity: 0; }
        }
        @keyframes wrMapPulseSource {
            0% { r: 8; opacity: 0.95; }
            70% { r: 18; opacity: 0; }
            100% { r: 18; opacity: 0; }
        }
        @media (prefers-reduced-motion: reduce) {
            .wr-invest-particle,
            .wr-map-particle {
                display: none;
            }
            .wr-map-flow,
            .wr-map-city-ring {
                animation: none;
            }
        }
        @media (max-width: 1180px) {
            .wr-invest-layout {
                width: 100%;
                max-width: 100%;
                grid-template-columns: 1fr;
                align-items: start;
            }
            .wr-invest-map {
                max-width: none;
                min-height: 0;
                border-right: 0;
                border-bottom: 1px solid #edf0f5;
            }
            .wr-invest-side {
                max-width: none;
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }
        @media (max-width: 1120px) {
            .header,
            #tabContentContainer {
                max-width: 100vw;
            }
        }
        @media (max-width: 760px) {
            .wr-invest-head {
                flex-direction: column;
            }
            .wr-invest-kpis {
                width: 100%;
                min-width: 0;
            }
            .wr-invest-map {
                overflow-x: auto;
            }
            .wr-invest-svg {
                min-width: 720px;
                height: auto;
            }
            .wr-invest-side {
                grid-template-columns: 1fr;
            }
            .wr-invest-action-row {
                grid-template-columns: 26px minmax(0, 1fr);
            }
            .wr-invest-action-tools {
                grid-column: 2;
            }
        }
        .wr-body {
            display: block;
        }
        .wr-radar,
        .wr-actions {
            background: #fff;
            border: 1px solid #edf0f5;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
        }
        .wr-section-head {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            padding: 13px 14px;
            border-bottom: 1px solid #edf0f5;
        }
        .wr-section-head h3 {
            margin: 0;
            font-size: 15px;
            color: #1f2937;
        }
        .wr-section-head span {
            display: block;
            margin-top: 3px;
            color: #94a3b8;
            font-size: 11px;
        }
        .wr-filters {
            display: flex;
            gap: 6px;
            align-items: center;
            flex-wrap: wrap;
            justify-content: flex-end;
        }
        .wr-filter,
        .wr-tool-btn,
        .wr-link {
            border: 1px solid #e2e8f0;
            background: #fff;
            color: #475569;
            border-radius: 7px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 6px 9px;
            font-size: 12px;
            font-weight: 700;
            line-height: 1.2;
            text-decoration: none;
            cursor: pointer;
            white-space: nowrap;
        }
        .wr-filter.active,
        .wr-link:hover {
            color: #be185d;
            border-color: #f0a6c8;
            background: #fff7fb;
        }
        .wr-filter-count {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            min-width: 16px;
            height: 16px;
            margin-left: 6px;
            padding: 0 5px;
            border-radius: 999px;
            background: #eef3f8;
            color: #7b8798;
            font-size: 10.5px;
            font-weight: 700;
            line-height: 1;
        }
        .wr-link-muted {
            color: #0369a1;
            border-color: #bae6fd;
            background: #f0f9ff;
        }
        .wr-link.wr-focus-active,
        .wr-mini-btn.wr-focus-active {
            color: #047857;
            border-color: #9fe6bf;
            background: #f0fdf4;
        }
        .wr-op-actions {
            display: inline-flex;
            align-items: center;
            gap: 3px;
            white-space: nowrap;
        }
        .wr-op-actions .wr-link {
            padding: 3px 4px;
            font-size: 10.5px;
            border-radius: 6px;
        }
        .wr-search {
            width: 128px;
            border: 1px solid #e2e8f0;
            border-radius: 7px;
            padding: 7px 9px;
            font-size: 12px;
            outline: none;
        }
        .wr-tier-filter {
            border: 1px solid #e2e8f0;
            border-radius: 7px;
            background: #fff;
            color: #475569;
            padding: 6px 8px;
            font-size: 12px;
            font-weight: 700;
            outline: none;
        }
        .wr-tier-scope-filter {
            display: flex;
            align-items: center;
            gap: 10px;
            margin: 0 0 8px;
            padding: 8px 10px;
            border: 1px solid #dcebe3;
            border-radius: 8px;
            background: #f8fcfa;
        }
        .wr-tier-scope-label {
            display: flex;
            flex: 0 0 auto;
            align-items: baseline;
            gap: 6px;
            white-space: nowrap;
        }
        .wr-tier-scope-label strong {
            color: #172033;
            font-size: 12px;
            font-weight: 900;
        }
        .wr-tier-scope-label span,
        .wr-tier-scope-loading {
            color: #7b8798;
            font-size: 10.5px;
            font-weight: 750;
        }
        .wr-tier-multiselect {
            display: flex;
            flex: 1 1 auto;
            align-items: center;
            gap: 6px;
            min-width: 0;
            padding: 0;
            overflow-x: auto;
            scrollbar-width: thin;
        }
        .wr-tier-toggle {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            flex: 0 0 auto;
            min-height: 30px;
            padding: 5px 8px;
            border: 1px solid #dfe9e4;
            border-radius: 7px;
            background: #fff;
            color: #475467;
            font-size: 11px;
            font-weight: 850;
            cursor: pointer;
        }
        .wr-tier-toggle em {
            min-width: 18px;
            padding: 1px 5px;
            border-radius: 999px;
            background: #f2f4f7;
            color: #667085;
            font-size: 10px;
            font-style: normal;
            text-align: center;
        }
        .wr-tier-toggle.active {
            border-color: rgba(18, 183, 106, 0.38);
            background: #ecfdf3;
            color: #047857;
            box-shadow: inset 0 0 0 1px rgba(18, 183, 106, 0.08);
        }
        .wr-tier-toggle.active em {
            background: #d1fadf;
            color: #027a48;
        }
        .wr-tier-dot {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: #98a2b3;
            flex: 0 0 auto;
        }
        .wr-tier-dot-S { background: #7f1d1d; }
        .wr-tier-dot-A { background: #dc2626; }
        .wr-tier-dot-B { background: #f59e0b; }
        .wr-tier-dot-C { background: #0284c7; }
        .wr-tier-dot-D { background: #0f766e; }
        .wr-tier-dot-E { background: #7c3aed; }
        .wr-tier-dot-all { background: #12b76a; }
        .wr-tier-dot-未分级 { background: #98a2b3; }
        .wr-tier-scope-actions {
            display: inline-flex;
            flex: 0 0 auto;
            align-items: center;
            gap: 8px;
            white-space: nowrap;
        }
        .wr-tier-scope-actions span {
            color: #667085;
            font-size: 10.5px;
            font-weight: 800;
        }
        .wr-tier-apply {
            min-width: 54px;
            min-height: 30px;
            padding: 5px 12px;
            border: 1px solid #12b76a;
            border-radius: 7px;
            background: #12b76a;
            color: #fff;
            font-size: 11px;
            font-weight: 900;
            cursor: pointer;
        }
        .wr-tier-apply:disabled {
            border-color: #d5e4dc;
            background: #e9f2ed;
            color: #8aa096;
            cursor: default;
        }
        .wr-condition {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            border: 1px solid #e2e8f0;
            background: #fff;
            color: #475569;
            border-radius: 7px;
            padding: 4px 7px;
            font-size: 12px;
            font-weight: 700;
            white-space: nowrap;
        }
        .wr-condition select,
        .wr-condition input {
            border: 0;
            outline: none;
            color: #334155;
            font-size: 12px;
            font-weight: 700;
            background: transparent;
        }
        .wr-condition select {
            max-width: 112px;
        }
        .wr-condition input {
            width: 58px;
        }
        .wr-field-panel {
            display: none;
            gap: 10px 14px;
            flex-wrap: wrap;
            padding: 10px 14px;
            border-bottom: 1px solid #edf0f5;
            background: #fbfdff;
        }
        .wr-field-panel.open {
            display: flex;
        }
        .wr-field-panel label {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            color: #475569;
            font-size: 12px;
            font-weight: 700;
            white-space: nowrap;
        }
        .wr-table-wrap {
            overflow: auto;
            max-height: 620px;
        }
        .wr-table {
            width: max-content;
            max-width: none;
            min-width: 0;
            border-collapse: collapse;
            font-size: 11.5px;
            table-layout: fixed;
        }
        .wr-col-priority { width: 46px; }
        .wr-col-province { width: 56px; }
        .wr-col-city { width: 72px; }
        .wr-col-cityTier { width: 66px; }
        .wr-col-actionLabel { width: 62px; }
        .wr-col-totalSales { width: 72px; }
        .wr-col-salesChangePct { width: 78px; }
        .wr-col-adCost { width: 82px; }
        .wr-col-adCostChangePct { width: 78px; }
        .wr-col-comprehensiveCpb { width: 82px; }
        .wr-col-comprehensiveCpbChangePct { width: 78px; }
        .wr-col-roi,
        .wr-col-roiChangePct,
        .wr-col-ctr,
        .wr-col-ctrChangePct,
        .wr-col-cvr,
        .wr-col-cvrChangePct,
        .wr-col-demandIndex,
        .wr-col-demandChangePct,
        .wr-col-penetrationIndex,
        .wr-col-penetrationIndexChangePct,
        .wr-col-oosRate,
        .wr-col-oosRateChangePp { width: 64px; }
        .wr-col-reason { width: 180px; }
        .wr-col-_op { width: 162px; }
        .wr-table th {
            position: sticky;
            top: 0;
            z-index: 1;
            background: #f8fafc;
            color: #475569;
            text-align: left;
            padding: 5px 6px;
            border-bottom: 1px solid #e2e8f0;
            font-weight: 800;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            cursor: pointer;
        }
        .wr-table td {
            padding: 5px 6px;
            border-bottom: 1px solid #f1f5f9;
            vertical-align: top;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .wr-table tr:hover td {
            background: #fff7fb;
        }
        .wr-priority {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 24px;
            height: 20px;
            border-radius: 999px;
            background: #f1f5f9;
            color: #334155;
            font-weight: 900;
        }
        .wr-tier-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 24px;
            height: 20px;
            border-radius: 7px;
            background: #f1f5f9;
            color: #475569;
            font-size: 11px;
            font-weight: 900;
        }
        .wr-tier-S { background: #fce7f3; color: #be185d; }
        .wr-tier-A { background: #ffedd5; color: #c2410c; }
        .wr-tier-B { background: #dcfce7; color: #15803d; }
        .wr-tier-C { background: #e0f2fe; color: #0369a1; }
        .wr-tier-D { background: #ede9fe; color: #6d28d9; }
        .wr-tier-E { background: #f1f5f9; color: #475569; }
        .wr-object {
            border: 0;
            background: transparent;
            color: #be185d;
            font-weight: 900;
            cursor: pointer;
            padding: 0;
        }
        .wr-ellipsis {
            display: inline-block;
            max-width: 5.2em;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            vertical-align: top;
        }
        .wr-type {
            color: #94a3b8;
            font-size: 11px;
            margin-top: 2px;
        }
        .wr-pill {
            display: inline-block;
            border-radius: 999px;
            padding: 2px 8px;
            font-size: 11px;
            font-weight: 900;
        }
        .wr-pill-risk {
            background: #fee2e2;
            color: #b91c1c;
        }
        .wr-pill-warn {
            background: #fef3c7;
            color: #a16207;
        }
        .wr-pill-opportunity {
            background: #dcfce7;
            color: #15803d;
        }
        .wr-pill-watch {
            background: #e0f2fe;
            color: #0369a1;
        }
        .wr-main-metric {
            color: #111827;
            font-weight: 900;
        }
        .wr-up {
            color: #dc2626;
            font-weight: 800;
        }
        .wr-down {
            color: #16a34a;
            font-weight: 800;
        }
        .wr-reason {
            max-width: 180px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            line-height: 1.3;
            color: #64748b;
            font-size: 11px;
        }
        .wr-cell-sub {
            margin-top: 2px;
            color: #8a98ac;
            font-size: 10px;
            line-height: 1.2;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .wr-op-cell {
            width: 196px;
        }
        .wr-actions {
            padding-bottom: 14px;
        }
        .wr-action-count {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 18px;
            height: 18px;
            border-radius: 999px;
            background: #e2e8f0;
            color: #475569;
            font-size: 11px;
            font-weight: 900;
        }
        .wr-action-backdrop {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 980;
            background: rgba(15, 23, 42, 0.08);
        }
        .wr-action-backdrop.open {
            display: block;
        }
        .wr-action-drawer {
            position: fixed;
            top: 86px;
            right: 22px;
            z-index: 990;
            width: min(760px, calc(100vw - 32px));
            max-height: calc(100vh - 112px);
            overflow: auto;
            transform: translateX(calc(100% + 32px));
            opacity: 0;
            pointer-events: none;
            transition: transform 0.22s ease, opacity 0.22s ease;
        }
        .wr-action-drawer.open {
            transform: translateX(0);
            opacity: 1;
            pointer-events: auto;
        }
        .wr-issue-drawer {
            width: min(920px, calc(100vw - 32px));
        }
        .wr-drawer-close {
            border: 1px solid #e2e8f0;
            border-radius: 7px;
            background: #fff;
            color: #64748b;
            padding: 5px 9px;
            font-size: 12px;
            font-weight: 800;
            cursor: pointer;
        }
        .wr-plan-backdrop {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 1000;
            background: rgba(15, 23, 42, 0.08);
        }
        .wr-plan-backdrop.open {
            display: block;
        }
        .wr-action-drawer-body {
            padding: 10px 12px 14px;
        }
        .wr-action-section + .wr-action-section {
            margin-top: 12px;
        }
        .wr-action-section-head {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 8px;
        }
        .wr-action-section-head h4 {
            margin: 0;
            color: #1f2937;
            font-size: 13px;
            font-weight: 900;
        }
        .wr-action-section-head span {
            color: #94a3b8;
            font-size: 11px;
            font-weight: 800;
        }
        .wr-timeline-toolbar {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 8px;
            padding: 8px 0;
            border-top: 1px solid #edf2ef;
            border-bottom: 1px solid #edf2ef;
        }
        .wr-timeline-toolbar label {
            display: flex;
            align-items: center;
            gap: 6px;
            color: #667085;
            font-size: 11px;
            font-weight: 800;
        }
        .wr-timeline-toolbar select {
            min-width: 120px;
            padding: 6px 28px 6px 9px;
            border: 1px solid #d0d5dd;
            border-radius: 6px;
            background: #fff;
            color: #344054;
            font-size: 11px;
            font-weight: 800;
        }
        .wr-action-timeline {
            display: grid;
            min-width: 0;
        }
        .wr-timeline-item {
            position: relative;
            display: grid;
            grid-template-columns: 54px minmax(0, 1fr);
            gap: 16px;
            min-width: 0;
            padding: 12px 0 14px;
        }
        .wr-timeline-item time {
            padding-top: 2px;
            color: #667085;
            font-size: 10px;
            font-weight: 900;
            line-height: 1.35;
            text-align: right;
        }
        .wr-timeline-item time b,
        .wr-timeline-item time span {
            display: block;
        }
        .wr-timeline-item time b {
            color: #98a2b3;
            font-size: 9px;
            font-weight: 800;
        }
        .wr-timeline-item time span {
            margin-top: 2px;
            color: #344054;
            font-size: 11px;
        }
        .wr-timeline-rail {
            position: absolute;
            top: 0;
            bottom: 0;
            left: 62px;
            width: 1px;
            background: #dce7e2;
        }
        .wr-timeline-rail span {
            position: absolute;
            top: 15px;
            left: -4px;
            width: 9px;
            height: 9px;
            border: 2px solid #fff;
            border-radius: 50%;
            background: #94a3b8;
            box-shadow: 0 0 0 1px #cbd5e1;
        }
        .wr-timeline-item.outcome-good .wr-timeline-rail span { background: #12b76a; }
        .wr-timeline-item.outcome-mixed .wr-timeline-rail span { background: #f59e0b; }
        .wr-timeline-item.outcome-risk .wr-timeline-rail span { background: #ef4444; }
        .wr-timeline-item.pending .wr-timeline-rail span { background: #f59e0b; }
        .wr-timeline-item.observing .wr-timeline-rail span,
        .wr-timeline-item.executed .wr-timeline-rail span { background: #0ea5e9; }
        .wr-timeline-item.cancelled { opacity: 0.58; }
        .wr-timeline-item.note .wr-timeline-rail span { background: #64748b; }
        .wr-timeline-content {
            min-width: 0;
            padding-bottom: 14px;
            border-bottom: 1px solid #edf2ef;
        }
        .wr-timeline-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
        }
        .wr-timeline-head button {
            padding: 0;
            border: 0;
            background: transparent;
            color: #172033;
            cursor: pointer;
            font-size: 14px;
            font-weight: 900;
        }
        .wr-timeline-head em {
            flex: 0 0 auto;
            color: #667085;
            font-size: 10px;
            font-style: normal;
            font-weight: 900;
        }
        .wr-timeline-state {
            display: inline-flex;
            align-items: center;
            gap: 7px;
        }
        .wr-timeline-state i {
            padding: 2px 6px;
            border-radius: 4px;
            background: #f2f4f7;
            color: #475467;
            font-size: 10px;
            font-style: normal;
            font-weight: 900;
        }
        .wr-timeline-state i.good { background: #ecfdf3; color: #027a48; }
        .wr-timeline-state i.mixed { background: #fffaeb; color: #b54708; }
        .wr-timeline-state i.risk { background: #fef3f2; color: #b42318; }
        .wr-timeline-periods {
            display: flex;
            flex-wrap: wrap;
            gap: 4px 14px;
            margin-top: 3px;
        }
        .wr-timeline-baseline,
        .wr-timeline-observation,
        .wr-timeline-context {
            display: block;
            color: #98a2b3;
            font-size: 10px;
            font-weight: 750;
            line-height: 1.4;
        }
        .wr-timeline-action,
        .wr-timeline-note {
            margin: 7px 0 0;
            color: #344054;
            font-size: 12px;
            font-weight: 800;
            line-height: 1.5;
        }
        .wr-timeline-metrics {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 6px;
            margin-top: 9px;
        }
        .wr-timeline-metric {
            min-width: 0;
            padding: 7px 8px;
            border-left: 2px solid #cbd5e1;
            background: #f8faf9;
        }
        .wr-timeline-metric.good { border-left-color: #12b76a; }
        .wr-timeline-metric.bad { border-left-color: #ef4444; }
        .wr-timeline-metric em,
        .wr-timeline-metric b,
        .wr-timeline-metric small {
            display: block;
            min-width: 0;
        }
        .wr-timeline-metric em {
            color: #667085;
            font-size: 9px;
            font-style: normal;
            font-weight: 800;
        }
        .wr-timeline-metric b {
            overflow-wrap: anywhere;
            margin-top: 3px;
            color: #172033;
            font-size: 10px;
            font-weight: 900;
            line-height: 1.35;
        }
        .wr-timeline-metric b i {
            margin: 0 3px;
            color: #98a2b3;
            font-style: normal;
        }
        .wr-timeline-metric small {
            margin-top: 2px;
            color: #667085;
            font-size: 9px;
            font-weight: 800;
        }
        .wr-timeline-metric.good small { color: #027a48; }
        .wr-timeline-metric.bad small { color: #b42318; }
        .wr-timeline-result {
            display: grid;
            grid-template-columns: auto minmax(0, 1fr);
            gap: 7px;
            margin-top: 9px;
            padding: 7px 8px;
            border-left: 2px solid #12b76a;
            background: #f0fdf4;
            color: #344054;
            font-size: 10px;
            line-height: 1.45;
        }
        .wr-timeline-result b { color: #027a48; }
        .wr-timeline-result.mixed {
            border-left-color: #f59e0b;
            background: #fffaeb;
        }
        .wr-timeline-result.mixed b { color: #b54708; }
        .wr-timeline-result.risk {
            border-left-color: #ef4444;
            background: #fef3f2;
        }
        .wr-timeline-result.risk b { color: #b42318; }
        .wr-timeline-result.neutral {
            border-left-color: #98a2b3;
            background: #f8fafc;
        }
        .wr-timeline-result.neutral b { color: #475467; }
        .wr-timeline-waiting {
            margin-top: 8px;
            color: #b54708;
            font-size: 10px;
            font-weight: 800;
        }
        .wr-timeline-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 8px;
        }
        .wr-timeline-actions button {
            padding: 0;
            border: 0;
            background: transparent;
            color: #047857;
            cursor: pointer;
            font-size: 10px;
            font-weight: 900;
        }
        .wr-timeline-actions button:last-child { color: #667085; }
        .wr-action-secondary {
            margin-top: 12px;
            border-top: 1px solid #e4ece8;
            padding-top: 9px;
        }
        .wr-action-secondary summary {
            display: flex;
            align-items: center;
            justify-content: space-between;
            cursor: pointer;
            color: #475467;
            font-size: 11px;
            font-weight: 900;
            list-style: none;
        }
        .wr-action-secondary summary::-webkit-details-marker { display: none; }
        .wr-action-secondary[open] summary { margin-bottom: 9px; }
        .wr-action-secondary:not([open]) > :not(summary) { display: none !important; }
        #wrNoteEditorSection[hidden] { display: none !important; }
        #wrCityActionNotes[hidden],
        #wrActionEvents[hidden],
        .wr-timeline-legacy[hidden] { display: none !important; }
        .wr-action-card-list {
            display: grid;
            gap: 9px;
        }
        .wr-action-card {
            border: 1px solid #e7edf5;
            border-left: 4px solid #94a3b8;
            border-radius: 9px;
            background: #fff;
            padding: 10px;
            box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
        }
        .wr-action-card.risk { border-left-color: #ef4444; }
        .wr-action-card.good { border-left-color: #22c55e; }
        .wr-action-card.watch { border-left-color: #38bdf8; }
        .wr-event-list {
            display: grid;
            gap: 9px;
        }
        .wr-event-card {
            border: 1px solid #e7edf5;
            border-left: 4px solid #64748b;
            border-radius: 9px;
            background: #fff;
            padding: 10px;
            box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
        }
        .wr-note-editor {
            border: 1px solid #e7edf5;
            border-radius: 9px;
            background: #fff;
            padding: 10px;
            box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
        }
        .wr-note-editor-head,
        .wr-note-card-head {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 10px;
        }
        .wr-note-editor-head strong,
        .wr-note-card-head strong {
            display: block;
            color: #111827;
            font-size: 14px;
            font-weight: 900;
        }
        .wr-note-editor-head span,
        .wr-note-card-head span,
        .wr-note-context {
            display: block;
            margin-top: 2px;
            color: #94a3b8;
            font-size: 11px;
            font-weight: 800;
            line-height: 1.35;
        }
        .wr-note-input {
            width: 100%;
            min-height: 72px;
            box-sizing: border-box;
            margin-top: 9px;
            border: 1px solid #dbe4ef;
            border-radius: 8px;
            background: #f8fafc;
            color: #111827;
            padding: 8px;
            font-size: 12px;
            font-weight: 700;
            line-height: 1.45;
            resize: vertical;
            outline: none;
        }
        .wr-note-input:focus {
            border-color: #d4145a;
            background: #fff;
            box-shadow: 0 0 0 3px rgba(212, 20, 90, 0.1);
        }
        .wr-note-editor-actions {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            margin-top: 8px;
        }
        .wr-note-editor-actions span {
            min-width: 0;
            color: #64748b;
            font-size: 11px;
            font-weight: 800;
            line-height: 1.4;
        }
        .wr-note-list {
            display: grid;
            gap: 9px;
            margin-top: 9px;
        }
        .wr-note-card {
            border: 1px solid #e7edf5;
            border-left: 4px solid #d4145a;
            border-radius: 9px;
            background: #fff;
            padding: 10px;
            box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
        }
        .wr-note-card p {
            margin: 7px 0 0;
            color: #334155;
            font-size: 12px;
            font-weight: 800;
            line-height: 1.45;
            word-break: break-word;
        }
        .wr-note-fragments {
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
            margin-top: 8px;
        }
        .wr-note-fragment {
            border-radius: 999px;
            background: #fdf2f8;
            color: #be185d;
            padding: 3px 7px;
            font-size: 10px;
            font-weight: 900;
            line-height: 1.35;
        }
        .wr-event-pending { border-left-color: #f59e0b; }
        .wr-event-executed,
        .wr-event-observing { border-left-color: #0ea5e9; }
        .wr-event-reviewed { border-left-color: #22c55e; }
        .wr-event-head {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 10px;
        }
        .wr-event-head strong {
            display: block;
            color: #111827;
            font-size: 14px;
            font-weight: 900;
        }
        .wr-event-head span {
            display: block;
            margin-top: 2px;
            color: #94a3b8;
            font-size: 11px;
            font-weight: 800;
        }
        .wr-event-head em {
            flex: 0 0 auto;
            border-radius: 999px;
            background: #f1f5f9;
            color: #475569;
            padding: 3px 7px;
            font-size: 11px;
            font-style: normal;
            font-weight: 900;
        }
        .wr-event-metrics {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 6px;
            margin-top: 8px;
        }
        .wr-event-metrics span {
            min-width: 0;
            border: 1px solid #edf2f7;
            border-radius: 7px;
            background: #f8fafc;
            padding: 6px 7px;
        }
        .wr-event-metrics em,
        .wr-event-metrics strong {
            display: block;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .wr-event-metrics em {
            color: #94a3b8;
            font-size: 10px;
            font-style: normal;
            font-weight: 800;
        }
        .wr-event-metrics strong {
            margin-top: 2px;
            color: #111827;
            font-size: 12px;
            font-weight: 900;
        }
        .wr-event-card p {
            margin: 7px 0 0;
            color: #475569;
            font-size: 11px;
            line-height: 1.45;
        }
        .wr-event-review {
            margin-top: 8px;
            border-radius: 8px;
            background: #f8fafc;
            padding: 8px;
        }
        .wr-event-review strong {
            display: block;
            color: #1f2937;
            font-size: 11px;
            font-weight: 900;
            line-height: 1.4;
        }
        .wr-event-review div {
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
            margin-top: 6px;
        }
        .wr-event-delta {
            border-radius: 999px;
            padding: 3px 7px;
            background: #f1f5f9;
            color: #64748b;
            font-size: 10px;
            font-weight: 900;
        }
        .wr-event-delta.up { background: #fee2e2; color: #b91c1c; }
        .wr-event-delta.down { background: #dcfce7; color: #15803d; }
        .wr-event-delta.neutral { background: #f1f5f9; color: #64748b; }
        .wr-action-card-head {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 10px;
        }
        .wr-action-card-head strong {
            display: block;
            color: #111827;
            font-size: 14px;
            font-weight: 900;
        }
        .wr-action-card-head span {
            display: block;
            margin-top: 2px;
            color: #94a3b8;
            font-size: 11px;
            font-weight: 800;
        }
        .wr-action-card-head em {
            flex: 0 0 auto;
            border-radius: 999px;
            background: #f1f5f9;
            color: #475569;
            padding: 3px 7px;
            font-size: 11px;
            font-style: normal;
            font-weight: 900;
        }
        .wr-action-summary,
        .wr-action-plan-line,
        .wr-action-keyword-line {
            margin: 7px 0 0;
            color: #475569;
            font-size: 11px;
            line-height: 1.45;
        }
        .wr-action-plan-line {
            color: #0369a1;
            font-weight: 800;
        }
        .wr-action-keyword-line {
            color: #64748b;
        }
        .wr-action-evidence {
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
            margin-top: 8px;
        }
        .wr-action-evidence span,
        .wr-action-evidence-empty {
            border-radius: 999px;
            padding: 3px 7px;
            font-size: 10px;
            font-weight: 900;
        }
        .wr-action-evidence span {
            background: #f1f5f9;
            color: #475569;
        }
        .wr-action-evidence span.risk { background: #fee2e2; color: #b91c1c; }
        .wr-action-evidence span.good { background: #dcfce7; color: #15803d; }
        .wr-action-evidence span.context { background: #e0f2fe; color: #0369a1; }
        .wr-action-evidence-empty {
            display: inline-flex;
            margin-top: 8px;
            background: #f8fafc;
            color: #94a3b8;
        }
        .wr-action-steps {
            margin: 8px 0 0 18px;
            padding: 0;
            color: #64748b;
            font-size: 11px;
            line-height: 1.45;
        }
        .wr-action-card-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-top: 9px;
        }
        .wr-mini-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border: 1px solid #dbe4ef;
            border-radius: 7px;
            background: #fff;
            color: #475569;
            padding: 4px 8px;
            font-size: 11px;
            font-weight: 900;
            line-height: 1.35;
            cursor: pointer;
            text-decoration: none;
        }
        .wr-mini-btn.primary {
            border-color: #d4145a;
            background: #d4145a;
            color: #fff;
        }
        .wr-mini-btn:disabled {
            cursor: default;
            opacity: 0.6;
        }
        .wr-plan-backdrop.oa-plan-backdrop {
            z-index: 1180;
        }
        .wr-plan-modal {
            display: none;
            position: fixed;
            top: 78px;
            right: 18px;
            z-index: 1010;
            width: min(386px, calc(100vw - 28px));
            max-height: min(72vh, calc(100vh - 100px));
            overflow: hidden;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            background: #fff;
            box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
        }
        .wr-plan-modal.oa-plan-modal {
            z-index: 1190;
        }
        .wr-plan-modal.open {
            display: block;
        }
        .wr-plan-modal-head {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 8px;
            padding: 8px 10px;
            border-bottom: 1px solid #edf0f5;
            background: #fbfdff;
        }
        .wr-plan-modal-head h3 {
            margin: 0;
            color: #1f2937;
            font-size: 14px;
            line-height: 1.25;
        }
        .wr-plan-modal-head span {
            display: block;
            margin-top: 3px;
            color: #94a3b8;
            font-size: 11px;
            line-height: 1.3;
        }
        .wr-plan-close {
            border: 1px solid #e2e8f0;
            border-radius: 999px;
            background: #fff;
            color: #475569;
            width: 28px;
            height: 28px;
            padding: 0;
            cursor: pointer;
            font-weight: 800;
            font-size: 17px;
            line-height: 1;
            white-space: nowrap;
        }
        .wr-plan-modal-body {
            max-height: calc(min(72vh, calc(100vh - 100px)) - 46px);
            overflow: auto;
            padding: 8px;
            background: #f8fafc;
        }
        .wr-plan-source-note {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 8px;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            background: #fff;
            padding: 7px 9px;
            color: #64748b;
            font-size: 11px;
            font-weight: 700;
        }
        .wr-plan-card-list {
            display: grid;
            gap: 7px;
        }
        .wr-plan-source-note strong {
            color: #0f172a;
        }
        .wr-plan-metric-tabs {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-bottom: 10px;
        }
        .wr-plan-metric-tab {
            border: 1px solid #dbe4ef;
            border-radius: 999px;
            background: #fff;
            color: #475569;
            padding: 5px 10px;
            font-size: 12px;
            font-weight: 800;
            cursor: pointer;
        }
        .wr-plan-metric-tab.active {
            border-color: #d4145a;
            background: #fdf2f8;
            color: #be185d;
        }
        .wr-plan-card {
            border: 1px solid #e7edf5;
            border-radius: 8px;
            background: #fff;
            box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
            overflow: hidden;
            width: 100%;
        }
        .wr-plan-card + .wr-plan-card {
            margin-top: 0;
        }
        .wr-plan-card-head {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 8px;
            padding: 7px 8px 6px;
            border-bottom: 1px solid #f1f5f9;
        }
        .wr-plan-name {
            min-width: 0;
            color: #111827;
            font-size: 12px;
            font-weight: 850;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .wr-plan-status {
            display: inline-block;
            width: 7px;
            height: 7px;
            margin-right: 6px;
            border-radius: 999px;
            vertical-align: 1px;
            background: #cbd5e1;
        }
        .wr-plan-status.active { background: #10b981; }
        .wr-plan-status.paused { background: #f59e0b; }
        .wr-plan-status.ended { background: #cbd5e1; }
        .wr-plan-status.unknown { background: #94a3b8; }
        .wr-plan-scene {
            flex: 0 0 auto;
            max-width: 86px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            border-radius: 999px;
            background: #f1f5f9;
            color: #64748b;
            padding: 3px 8px;
            font-size: 10px;
            font-weight: 750;
        }
        .wr-plan-card-badges {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            min-width: 0;
            flex: 0 0 auto;
        }
        .wr-plan-type-badge {
            max-width: 82px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            border-radius: 999px;
            background: #eef2ff;
            color: #4338ca;
            padding: 3px 7px;
            font-size: 10px;
            font-weight: 900;
        }
        .wr-plan-type-badge.type-manual {
            background: #fdf2f8;
            color: #be185d;
        }
        .wr-plan-type-badge.type-smart,
        .wr-plan-type-badge.type-national_smart {
            background: #ecfdf5;
            color: #047857;
        }
        .wr-plan-type-badge.type-unknown {
            background: #f1f5f9;
            color: #64748b;
        }
        .wr-plan-card-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 8px;
            padding: 4px 8px 3px;
            color: #94a3b8;
            font-size: 10px;
            font-weight: 700;
        }
        .wr-plan-status-text {
            border-radius: 999px;
            padding: 2px 7px;
            background: #f1f5f9;
            color: #64748b;
        }
        .wr-plan-status-text.active {
            background: #dcfce7;
            color: #047857;
        }
        .wr-plan-status-text.paused {
            background: #fef3c7;
            color: #92400e;
        }
        .wr-plan-advice {
            display: grid;
            gap: 2px;
            margin: 6px 8px 0;
            border-radius: 7px;
            border: 1px solid #e2e8f0;
            background: #f8fafc;
            padding: 6px 7px;
        }
        .wr-plan-advice strong {
            color: #0f172a;
            font-size: 12px;
            line-height: 1.25;
        }
        .wr-plan-advice span {
            color: #64748b;
            font-size: 10.5px;
            line-height: 1.35;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .wr-plan-advice.danger {
            border-color: #fecdd3;
            background: #fff1f2;
        }
        .wr-plan-advice.warn {
            border-color: #fde68a;
            background: #fffbeb;
        }
        .wr-plan-advice.ok {
            border-color: #bbf7d0;
            background: #f0fdf4;
        }
        .wr-plan-metric-table {
            display: grid;
            margin: 5px 8px 0;
            border: 1px solid #edf2f7;
            border-radius: 7px;
            background: #fff;
            overflow: hidden;
        }
        .wr-plan-metric-line {
            display: grid;
            grid-template-columns: 66px minmax(0, 1fr) 58px;
            align-items: center;
            column-gap: 6px;
            min-height: 23px;
            padding: 0 7px;
            border-top: 1px solid #f1f5f9;
            font-size: 11px;
            line-height: 1;
        }
        .wr-plan-metric-line:first-child {
            border-top: 0;
        }
        .wr-plan-metric-line span {
            color: #94a3b8;
            font-weight: 800;
            white-space: nowrap;
        }
        .wr-plan-metric-line strong {
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            color: #111827;
            font-size: 12px;
            font-weight: 850;
        }
        .wr-plan-metric-line em {
            justify-self: end;
            font-style: normal;
            white-space: nowrap;
        }
        .wr-plan-change {
            display: inline-block;
            margin-top: 0;
            font-size: 10px;
            font-weight: 850;
        }
        .wr-plan-change.up { color: #dc2626; }
        .wr-plan-change.down { color: #16a34a; }
        .wr-plan-change.neutral { color: #94a3b8; }
        .wr-plan-chart {
            height: 138px;
            margin: 0;
            border: 1px solid #eef2f7;
            border-radius: 8px;
            background: #fbfdff;
        }
        .wr-plan-chart-wrap {
            display: none;
            padding: 6px 8px 8px;
        }
        .wr-plan-chart-wrap.open {
            display: block;
        }
        .wr-plan-chart-empty,
        .wr-plan-loading {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 92px;
            color: #64748b;
            font-size: 12px;
            font-weight: 750;
        }
        .wr-plan-empty {
            border: 1px dashed #cbd5e1;
            border-radius: 9px;
            background: #fff;
            color: #64748b;
            padding: 28px 16px;
            text-align: center;
            font-size: 13px;
            font-weight: 700;
        }
        .wr-selected-empty,
        .wr-load-error,
        .wr-empty {
            padding: 26px 14px;
            text-align: center;
            color: #94a3b8;
            font-size: 13px;
        }
        .wr-load-error {
            color: #b91c1c;
        }
        .wr-selected-list {
            padding: 10px 12px 0;
        }
        .wr-selected-item {
            display: flex;
            justify-content: space-between;
            gap: 10px;
            padding: 10px 0;
            border-bottom: 1px solid #f1f5f9;
        }
        .wr-selected-item strong {
            display: block;
            font-size: 13px;
            color: #111827;
        }
        .wr-selected-item span {
            display: block;
            margin-top: 2px;
            font-size: 11px;
            color: #be185d;
            font-weight: 800;
        }
        .wr-selected-item p {
            margin: 5px 0 0;
            color: #64748b;
            font-size: 11px;
            line-height: 1.45;
        }
        .wr-selected-item button {
            align-self: flex-start;
            border: 0;
            background: #f8fafc;
            color: #64748b;
            border-radius: 6px;
            padding: 5px 8px;
            font-size: 11px;
            cursor: pointer;
        }
        .wr-draft {
            box-sizing: border-box;
            width: calc(100% - 24px);
            min-height: 190px;
            margin: 0 12px;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            padding: 10px;
            resize: vertical;
            font-size: 12px;
            line-height: 1.55;
            color: #334155;
        }
        @media (max-width: 1120px) {
            .wr-summary {
                grid-template-columns: repeat(3, minmax(0, 1fr));
            }
            .wr-body {
                grid-template-columns: 1fr;
            }
        }
        @media (max-width: 720px) {
            .wr-head,
            .wr-section-head {
                flex-direction: column;
                align-items: flex-start;
            }
            .wr-summary {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
            .wr-plan-modal {
                top: 64px;
                right: 12px;
                left: 12px;
                width: auto;
                max-height: calc(100vh - 88px);
            }
            .wr-plan-modal-body {
                max-height: calc(100vh - 144px);
            }
            .wr-competition-overview {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
            .wr-head-actions,
            .wr-filters {
                justify-content: flex-start;
            }
            .wr-tier-scope-filter {
                align-items: stretch;
                flex-direction: column;
            }
            .wr-tier-scope-actions {
                justify-content: space-between;
            }
            .wr-action-drawer {
                top: 12px;
                right: 8px;
                width: calc(100vw - 16px);
                max-height: calc(100vh - 24px);
            }
            .wr-timeline-toolbar {
                align-items: stretch;
                flex-direction: column;
            }
            .wr-timeline-toolbar label {
                justify-content: space-between;
            }
            .wr-timeline-toolbar select {
                min-width: 0;
                width: 68%;
            }
            .wr-timeline-item {
                grid-template-columns: 44px minmax(0, 1fr);
                gap: 13px;
            }
            .wr-timeline-rail { left: 51px; }
            .wr-timeline-metrics {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }
        .tab-content.active {
            display: block;
        }
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        .kpi-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
            gap: 10px;
            margin-bottom: 18px;
        }
        .kpi-card {
            --kpi-accent: #12b76a;
            background: linear-gradient(180deg, #ffffff 0%, #fbfefc 100%) !important;
            color: #101828;
            padding: 13px 14px;
            border: 1px solid #dcefe5;
            border-left: 4px solid var(--kpi-accent);
            border-radius: 8px;
            text-align: left;
            box-shadow: 0 8px 20px rgba(16, 24, 40, 0.04);
        }
        .kpi-card.down {
            --kpi-accent: #f04438;
        }
        .kpi-card.up {
            --kpi-accent: #12b76a;
        }
        .kpi-card.kpi-daily {
            --kpi-accent: #0f9f73;
        }
        .kpi-card.kpi-spend {
            --kpi-accent: #0b8f76;
        }
        .kpi-card.kpi-cost {
            --kpi-accent: #475467;
        }
        .kpi-value {
            font-size: 22px;
            font-weight: 900;
            margin: 6px 0;
            color: #101828;
            letter-spacing: 0;
        }
        .kpi-label {
            font-size: 11px;
            color: #667085;
            opacity: 1;
            font-weight: 700;
            line-height: 1.45;
        }
        .chart-container {
            width: 100%;
            height: 400px;
            margin: 30px 0;
            border-radius: 8px;
            background: white;
            border: 1px solid #f0f0f0;
        }
        .chart-container.tall {
            height: 500px;
        }
        .table-container {
            overflow-x: auto;
            margin: 20px 0;
        }
        table {
            width: 100%;
            border-collapse: collapse;
            font-size: 13px;
        }
        th {
            background: #f5f5f5;
            padding: 12px;
            text-align: left;
            font-weight: 600;
            color: #333;
            border-bottom: 2px solid rgba(18, 183, 106, 0.32);
        }
        td {
            padding: 12px;
            border-bottom: 1px solid #f0f0f0;
        }
        tr:hover {
            background: #fff3e0;
        }
        .text-danger { color: #e91e63; font-weight: 600; }
        .text-success { color: #e53935; font-weight: 600; }
        .section-title {
            font-size: 16px;
            font-weight: bold;
            margin-top: 30px;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 2px solid rgba(18, 183, 106, 0.32);
            color: #101828;
        }
        .insight-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 16px;
            margin: 20px 0;
        }
        .insight-card {
            background: white;
            border-radius: 8px;
            padding: 18px;
            box-shadow: 0 2px 8px rgba(233, 30, 99, 0.1);
            border-top: 4px solid #e91e63;
        }
        .insight-card.warning {
            border-top-color: #ff9800;
        }
        .insight-card.success {
            border-top-color: #4db8ff;
        }
        .insight-icon {
            font-size: 24px;
            margin-bottom: 8px;
        }
        .insight-title {
            font-size: 14px;
            font-weight: 700;
            margin-bottom: 8px;
            color: #333;
        }
        .insight-body {
            font-size: 12px;
            color: #666;
            line-height: 1.6;
        }
        .insight-body strong {
            color: #e91e63;
        }
        .highlight-pink { background: #fce4ec; }
        .highlight-red { background: #ffebee; }
        .highlight-blue { background: #e3f2fd; }
        th.sortable {
            cursor: pointer;
            user-select: none;
            white-space: nowrap;
            position: relative;
            padding-right: 22px;
        }
        th.sortable:hover {
            background: #ffe0ec;
            color: #e91e63;
        }
        th.sortable::after {
            content: ' ⇅';
            font-size: 11px;
            color: #aaa;
            position: absolute;
            right: 5px;
            top: 50%;
            transform: translateY(-50%);
        }
        th.sortable.asc::after {
            content: ' ▲';
            color: #e91e63;
        }
        th.sortable.desc::after {
            content: ' ▼';
            color: #e91e63;
        }
        .quick-btn {
            padding: 4px 10px;
            border-radius: 16px;
            border: 1.5px solid rgba(255,255,255,0.75);
            background: rgba(255,255,255,0.18);
            color: white;
            font-size: 11px;
            font-weight: 600;
            cursor: pointer;
            outline: none;
            transition: background 0.2s;
        }
        .quick-btn:hover {
            background: rgba(255,255,255,0.38);
        }
        .quick-btn.active-quick {
            background: rgba(255,255,255,0.55);
            border-color: #fff;
            box-shadow: 0 0 0 2px rgba(255,255,255,0.5);
            font-weight: 700;
        }
        .quick-more {
            position: relative;
        }
        .quick-more summary {
            list-style: none;
            padding: 4px 10px;
            border-radius: 16px;
            border: 1.5px solid rgba(255,255,255,0.52);
            background: rgba(255,255,255,0.12);
            color: white;
            font-size: 11px;
            font-weight: 600;
            cursor: pointer;
        }
        .quick-more summary::-webkit-details-marker {
            display: none;
        }
        .quick-more summary::after {
            content: ' ▾';
            opacity: 0.78;
        }
        .quick-more[open] summary {
            background: rgba(255,255,255,0.28);
        }
        .quick-more-menu {
            position: absolute;
            top: calc(100% + 8px);
            right: 0;
            display: grid;
            gap: 6px;
            min-width: 132px;
            padding: 8px;
            border-radius: 10px;
            background: rgba(153, 16, 80, 0.96);
            border: 1px solid rgba(255,255,255,0.24);
            box-shadow: 0 12px 28px rgba(90,0,45,0.24);
            z-index: 30;
        }
        .quick-more-menu .quick-btn {
            width: 100%;
            justify-content: center;
            background: rgba(255,255,255,0.16);
        }

        /* ===== 周维度洞察样式 ===== */
        .week-block {
            margin-bottom: 32px;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 16px rgba(233,30,99,0.10);
        }
        .week-block-header {
            background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%);
            color: white;
            padding: 16px 24px;
            display: flex;
            align-items: center;
            gap: 16px;
        }
        .week-block-header.muted {
            background: linear-gradient(135deg, #78909c 0%, #546e7a 100%);
        }
        .week-badge {
            background: rgba(255,255,255,0.25);
            border-radius: 20px;
            padding: 3px 14px;
            font-size: 13px;
            font-weight: 700;
            white-space: nowrap;
        }
        .week-title {
            font-size: 16px;
            font-weight: 700;
            flex: 1;
        }
        .week-wow {
            font-size: 14px;
            font-weight: 600;
            background: rgba(255,255,255,0.2);
            border-radius: 8px;
            padding: 2px 10px;
            white-space: nowrap;
        }
        .week-wow.up   { color: #fff; }
        .week-wow.down { color: #ffe082; }
        .week-body {
            background: white;
            padding: 20px 24px;
        }
        .week-kpi-row {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 12px;
            margin-bottom: 18px;
        }
        .week-kpi-item {
            background: #fce4ec;
            border-radius: 8px;
            padding: 12px 14px;
            text-align: center;
        }
        .week-kpi-label {
            font-size: 11px;
            color: #888;
            margin-bottom: 4px;
        }
        .week-kpi-value {
            font-size: 18px;
            font-weight: 700;
            color: #e91e63;
        }
        .week-kpi-item.blue { background: #e3f2fd; }
        .week-kpi-item.blue .week-kpi-value { color: #1e88e5; }
        .week-kpi-item.orange { background: #fff3e0; }
        .week-kpi-item.orange .week-kpi-value { color: #f57c00; }
        .week-section-title {
            font-size: 13px;
            font-weight: 700;
            color: #555;
            margin: 14px 0 8px;
            padding-left: 8px;
            border-left: 3px solid #e91e63;
        }
        .week-city-pills {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 10px;
        }
        .city-pill {
            background: #ffebee;
            border-radius: 16px;
            padding: 4px 12px;
            font-size: 12px;
            color: #e53935;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        .city-pill.down {
            background: #e8f5e9;
            color: #43a047;
        }
        .city-pill.first {
            background: linear-gradient(135deg,#e91e63,#c2185b);
            color: white;
        }
        .city-pill .pill-change {
            font-size: 11px;
            opacity: 0.85;
        }
        .week-prov-bar {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            align-items: center;
            margin-bottom: 6px;
        }
        .prov-bar-item {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 12px;
            min-width: 120px;
        }
        .prov-bar-fill {
            height: 8px;
            border-radius: 4px;
            background: #e91e63;
            transition: width 0.5s;
        }
        .week-insight-row {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 12px;
            margin-top: 14px;
        }
        .week-insight-chip {
            background: #f9f9f9;
            border-radius: 8px;
            padding: 12px 14px;
            border-left: 3px solid #e91e63;
            font-size: 12px;
            color: #444;
            line-height: 1.6;
        }
        .week-insight-chip.warn { border-left-color: #ff9800; }
        .week-insight-chip.info { border-left-color: #1e88e5; }
        .week-insight-chip strong { color: #e91e63; }
        .week-insight-chip.warn strong { color: #e65100; }
        .week-insight-chip.info strong { color: #1e88e5; }
        .week-summary-bar {
            background: linear-gradient(135deg, #fce4ec, #fff);
            border-radius: 8px;
            padding: 14px 18px;
            margin-top: 18px;
            border: 1px solid #f8bbd0;
            font-size: 12px;
            color: #444;
            line-height: 1.8;
        }

        /* ===== 城市走势 Modal ===== */
        #cityTrendModal {
            display: none;
            position: fixed;
            z-index: 9999;
            inset: 0;
            background: rgba(0,0,0,0.48);
            align-items: center;
            justify-content: center;
        }
        #cityTrendModal.open {
            display: flex;
        }
        #cityTrendBox {
            background: white;
            border-radius: 14px;
            width: min(900px, 96vw);
            max-height: 92vh;
            overflow-y: auto;
            box-shadow: 0 8px 40px rgba(0,0,0,0.22);
            padding: 24px 24px 18px;
            position: relative;
        }
        #cityTrendBox.province-mode {
            width: min(1160px, 97vw);
        }
        #cityTrendTitle {
            font-size: 18px;
            font-weight: 700;
            color: #c2185b;
            margin-bottom: 4px;
        }
        #cityTrendSubtitle {
            font-size: 12px;
            color: #999;
            margin-bottom: 8px;
        }
        #cityTrendChart {
            width: 100%;
            height: 320px;
        }
        #cityTrendClose {
            position: absolute;
            top: 14px;
            right: 18px;
            font-size: 22px;
            cursor: pointer;
            color: #aaa;
            line-height: 1;
            border: none;
            background: none;
        }
        #cityTrendClose:hover { color: #e91e63; }
        #provinceCityList {
            display: flex;
            flex-direction: column;
            gap: 6px;
            max-height: 560px;
            overflow-y: auto;
            padding-right: 2px;
        }
        .province-city-item {
            border: 1px solid #ede9fe;
            border-radius: 10px;
            background: #fff;
            padding: 8px 10px;
            margin-bottom: 0;
            cursor: pointer;
            transition: all 0.18s ease;
        }
        .province-city-item:hover {
            border-color: #c4b5fd;
            box-shadow: 0 4px 12px rgba(124,58,237,0.07);
            transform: translateY(-1px);
        }
        .province-city-item.active {
            background: linear-gradient(135deg, #f5f3ff, #faf5ff);
            border-color: #8b5cf6;
            box-shadow: 0 6px 14px rgba(124,58,237,0.10);
        }
        .city-link {
            color: #c2185b;
            text-decoration: underline dotted;
            cursor: pointer;
            font-weight: 600;
        }
        .city-link:hover { color: #e91e63; }
        /* 全局指标切换器按钮 */
        .global-metric-btn {
            padding: 6px 12px;
            border-radius: 18px;
            border: 1.5px solid #e0e0e0;
            background: #f9f9f9;
            color: #666;
            font-size: 12px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
        }
        .global-metric-btn:hover {
            border-color: #e91e63;
            color: #e91e63;
            background: #fce4ec;
        }
        .global-metric-btn.active {
            border-color: #e91e63;
            background: #e91e63;
            color: white;
            font-weight: 600;
        }
        /* 星标城市指标切换器按钮（竖排） */
        .star-metric-btn {
            padding: 8px 12px;
            border-radius: 8px;
            border: 1.5px solid #e0e0e0;
            background: #f9f9f9;
            color: #666;
            font-size: 11px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            text-align: left;
        }
        .star-metric-btn:hover {
            border-color: #e91e63;
            color: #e91e63;
            background: #fce4ec;
        }
        .star-metric-btn.active {
            border-color: #e91e63;
            background: #e91e63;
            color: white;
            font-weight: 600;
        }
        /* 指标切换按钮 */
        .metric-btn {
            padding: 4px 12px;
            border-radius: 16px;
            border: 1.5px solid #e0e0e0;
            background: #f5f5f5;
            color: #666;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s;
            font-weight: 500;
        }
        .metric-btn:hover { border-color: var(--tigra-green); color: var(--tigra-green-dark); background: #f0fdf4; }
        .metric-btn.active { border-color: var(--tigra-green); background: var(--tigra-green); color: white; font-weight: 600; }
        .star-metric-btn:hover { border-color: var(--tigra-green) !important; color: var(--tigra-green-dark) !important; background: #f0fdf4 !important; }
        /* 全国趋势指标/粒度按钮 */
        .national-metric-btn {
            padding: 3px 10px; border-radius: 14px; border: 1.5px solid #e0e0e0;
            background: #f9f9f9; color: #666; cursor: pointer; font-size: 12px;
            transition: all 0.2s; font-weight: 500;
        }
        .national-metric-btn:hover  { border-color: var(--tigra-green); color: var(--tigra-green-dark); background: #f0fdf4; }
        .national-metric-btn.active { border-color: var(--tigra-green); background: var(--tigra-green); color: white; font-weight: 600; }
        .national-grain-btn {
            padding: 3px 10px; border-radius: 14px; border: 1.5px solid #e0e0e0;
            background: #f9f9f9; color: #666; cursor: pointer; font-size: 12px; transition: all 0.2s;
        }
        .nat-diagnosis-card {
            overflow: visible;
            border: 1px solid #e3ebe7;
            border-left: 4px solid #10b981;
            border-radius: 8px;
            background: #fff;
        }
        .nat-diagnosis-heading {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 10px;
        }
        .nat-diagnosis-card.warn { border-left-color: #f59e0b; }
        .nat-diagnosis-card.bad { border-left-color: #ef4444; }
        .nat-diagnosis-summary {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 18px;
            padding: 14px 16px;
            border-bottom: 1px solid #e8efeb;
            background: #fbfdfc;
        }
        .nat-diagnosis-verdict {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            min-width: 0;
        }
        .nat-diagnosis-status {
            flex: 0 0 auto;
            padding: 4px 8px;
            border-radius: 5px;
            background: #ecfdf3;
            color: #027a48;
            font-size: 12px;
            font-weight: 900;
        }
        .nat-diagnosis-card.warn .nat-diagnosis-status {
            background: #fffaeb;
            color: #b54708;
        }
        .nat-diagnosis-card.bad .nat-diagnosis-status {
            background: #fef3f2;
            color: #b42318;
        }
        .nat-diagnosis-verdict h3 {
            margin: 0;
            color: #172033;
            font-size: 17px;
            line-height: 1.4;
        }
        .nat-diagnosis-verdict p {
            margin: 4px 0 0;
            color: #667085;
            font-size: 12px;
            line-height: 1.55;
        }
        .nat-diagnosis-quality {
            display: grid;
            grid-template-columns: auto auto auto;
            align-items: baseline;
            gap: 5px;
            flex: 0 0 auto;
            white-space: nowrap;
        }
        .nat-diagnosis-tools {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 10px;
            flex: 0 0 auto;
        }
        .nat-method-notes {
            position: relative;
        }
        .nat-method-notes summary {
            list-style: none;
            border: 1px solid #d8e2dc;
            border-radius: 5px;
            background: #fff;
            color: #475467;
            cursor: pointer;
            padding: 4px 8px;
            font-size: 10px;
            font-weight: 800;
            white-space: nowrap;
        }
        .nat-method-notes summary::-webkit-details-marker { display: none; }
        .nat-method-notes[open] summary {
            border-color: #10b981;
            color: #047857;
        }
        .nat-method-notes-popover {
            position: absolute;
            z-index: 40;
            top: calc(100% + 6px);
            right: 0;
            width: min(520px, calc(100vw - 48px));
            border: 1px solid #dfe8e3;
            border-radius: 6px;
            background: #fff;
            box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
            padding: 10px 12px;
        }
        .nat-method-notes-popover > div {
            display: grid;
            grid-template-columns: 72px minmax(0, 1fr);
            gap: 8px;
            padding: 6px 0;
            border-top: 1px solid #edf2ef;
            color: #667085;
            font-size: 10px;
            line-height: 1.55;
        }
        .nat-method-notes-popover > div:first-child {
            padding-top: 0;
            border-top: 0;
        }
        .nat-method-notes-popover b { color: #344054; }
        .nat-diagnosis-quality span,
        .nat-diagnosis-quality em {
            color: #667085;
            font-size: 11px;
            font-style: normal;
            font-weight: 800;
        }
        .nat-diagnosis-quality b {
            font-size: 16px;
            font-weight: 900;
        }
        .nat-diagnosis-metric-row {
            display: grid;
            grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(230px, 0.8fr));
            gap: 10px;
            padding: 12px 14px;
            border-bottom: 1px solid #edf2ef;
        }
        .nat-diagnosis-kpis,
        #nationalDayTypeStats,
        #nationalMarginalZone {
            min-width: 0;
        }
        .nat-diagnosis-subhead {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 7px;
        }
        .nat-diagnosis-subhead b {
            color: #344054;
            font-size: 12px;
            font-weight: 900;
        }
        .nat-diagnosis-subhead span {
            color: #98a2b3;
            font-size: 10px;
        }
        .nat-trend-kpi-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 8px;
        }
        .nat-trend-kpi {
            min-width: 0;
            border: 1px solid #e5ebe8;
            border-left: 3px solid #98a2b3;
            border-radius: 6px;
            background: #fbfcfc;
            padding: 8px 10px;
        }
        .nat-trend-kpi.good { border-left-color: #10b981; }
        .nat-trend-kpi.bad { border-left-color: #ef4444; }
        .nat-trend-kpi > span,
        .nat-trend-kpi > strong,
        .nat-trend-kpi > em {
            display: block;
            min-width: 0;
        }
        .nat-trend-kpi > span {
            color: #64748b;
            font-size: 11px;
            font-weight: 800;
        }
        .nat-trend-kpi > strong {
            margin: 3px 0 2px;
            color: #172033;
            font-size: 18px;
            font-weight: 900;
            line-height: 1.15;
        }
        .nat-trend-kpi > em {
            overflow: hidden;
            color: #64748b;
            font-size: 10px;
            font-style: normal;
            font-weight: 700;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .nat-trend-kpi.good > em { color: #047857; }
        .nat-trend-kpi.bad > em { color: #b91c1c; }
        .nat-marginal-zone {
            height: 100%;
            margin: 0;
            border: 1px solid #dfe8e3;
            border-radius: 6px;
            background: #f8fbf9;
            padding: 10px 12px;
        }
        .nat-daytype-card {
            height: 100%;
            border: 1px solid #dfe8e3;
            border-radius: 6px;
            background: #f8fbf9;
            padding: 10px 12px;
        }
        .nat-daytype-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 7px;
        }
        .nat-daytype-item {
            min-width: 0;
            padding-right: 7px;
            border-right: 1px solid #e4ebe7;
        }
        .nat-daytype-item:last-child {
            padding-right: 0;
            border-right: 0;
        }
        .nat-daytype-item span,
        .nat-daytype-item b,
        .nat-daytype-item em {
            display: block;
            min-width: 0;
        }
        .nat-daytype-item span {
            color: #667085;
            font-size: 10px;
            font-weight: 800;
        }
        .nat-daytype-item b {
            margin: 3px 0 2px;
            color: #172033;
            font-size: 14px;
            line-height: 1.2;
        }
        .nat-daytype-item em {
            color: #475467;
            font-size: 10px;
            font-style: normal;
            white-space: nowrap;
        }
        .nat-daytype-card p {
            margin: 7px 0 0;
            color: #667085;
            font-size: 9px;
            line-height: 1.45;
        }
        .nat-marginal-zone.neutral {
            border-color: #e2e8f0;
            border-left-color: #94a3b8;
            background: #f8fafc;
        }
        .nat-marginal-title {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 7px;
        }
        .nat-marginal-title span,
        .nat-marginal-title b {
            color: #344054;
            font-size: 12px;
            font-weight: 900;
        }
        .nat-marginal-summary {
            display: flex;
            align-items: baseline;
            flex-wrap: wrap;
            gap: 5px 10px;
            color: #667085;
            font-size: 11px;
        }
        .nat-marginal-summary b {
            color: #027a48;
            font-size: 15px;
        }
        .nat-marginal-zone p {
            margin: 6px 0 0;
            color: #64748b;
            font-size: 10px;
            line-height: 1.5;
        }
        .nat-diagnosis-evidence {
            padding: 11px 14px 8px;
        }
        .nat-diagnosis-evidence-row {
            position: relative;
            display: grid;
            grid-template-columns: 52px minmax(0, 1fr);
            gap: 10px;
            padding: 8px 0 8px 13px;
            border-top: 1px solid #f0f3f2;
            color: #475467;
            font-size: 12px;
            line-height: 1.6;
        }
        .nat-diagnosis-evidence-row::before {
            content: '';
            position: absolute;
            top: 14px;
            left: 0;
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: #98a2b3;
        }
        .nat-diagnosis-evidence-row.good::before { background: #12b76a; }
        .nat-diagnosis-evidence-row.warn::before { background: #f79009; }
        .nat-diagnosis-evidence-row.bad::before { background: #f04438; }
        .nat-diagnosis-evidence-row > b {
            color: #344054;
            font-size: 12px;
        }
        .nat-diagnosis-context {
            display: flex;
            gap: 8px;
            margin-top: 5px;
            padding: 7px 10px;
            border-radius: 5px;
            background: #f8fafc;
            color: #667085;
            font-size: 10px;
            line-height: 1.5;
        }
        .nat-diagnosis-context b { flex: 0 0 auto; color: #475467; }
        .nat-diagnosis-quality-pills {
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
            padding: 0 14px 12px;
        }
        .nat-diagnosis-risk {
            margin: 0 14px 12px;
            border: 1px solid #fde68a;
            border-left: 3px solid #f59e0b;
            border-radius: 6px;
            background: #fffbeb;
            color: #92400e;
            padding: 8px 10px;
            font-size: 11px;
            font-weight: 800;
            line-height: 1.55;
        }
        @media (max-width: 820px) {
            .nat-diagnosis-metric-row { grid-template-columns: 1fr; }
            .nat-trend-kpi-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }
        @media (max-width: 480px) {
            .nat-diagnosis-heading {
                align-items: flex-start;
                flex-direction: column;
                gap: 2px;
            }
            .nat-diagnosis-summary,
            .nat-diagnosis-verdict,
            .nat-diagnosis-subhead {
                align-items: flex-start;
                flex-direction: column;
            }
            .nat-diagnosis-quality { align-self: flex-start; }
            .nat-diagnosis-tools {
                width: 100%;
                justify-content: space-between;
            }
            .nat-method-notes { margin-left: auto; }
            .nat-method-notes-popover {
                width: min(320px, calc(100vw - 56px));
            }
            .nat-trend-kpi-grid {
                grid-template-columns: 1fr;
            }
            .nat-diagnosis-evidence-row {
                grid-template-columns: 42px minmax(0, 1fr);
                gap: 6px;
            }
        }
        /* ── 数据管理按钮 ── */
        .data-mgr-btn {
            background: rgba(255,255,255,0.18);
            color: white;
            border: 1.5px solid rgba(255,255,255,0.55);
            border-radius: 20px;
            padding: 6px 16px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.2s;
            display: flex;
            align-items: center;
            gap: 6px;
            flex-shrink: 0;
        }
        .data-mgr-btn:hover { background: rgba(255,255,255,0.32); }
        /* 设置按钮 */
        .settings-btn {
            background: rgba(255,255,255,0.18);
            color: white;
            border: 1.5px solid rgba(255,255,255,0.55);
            border-radius: 20px;
            padding: 6px 16px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.2s;
            display: flex;
            align-items: center;
            gap: 6px;
            flex-shrink: 0;
        }
        .settings-btn:hover { background: rgba(255,255,255,0.32); }

        /* ── 数据管理弹窗 ── */
        #dataMgrModal {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(15, 23, 42, 0.46);
            z-index: 9999;
            align-items: center;
            justify-content: center;
            padding: 24px;
        }
        #dataMgrModal.open { display: flex; }
        .dmg-panel {
            background: #fff;
            border: 1px solid var(--tigra-line);
            border-radius: 8px;
            width: min(1240px, calc(100vw - 48px));
            max-height: calc(100vh - 48px);
            overflow-x: hidden;
            overflow-y: auto;
            box-shadow: 0 24px 64px rgba(16, 24, 40, 0.18);
        }
        .dmg-header {
            background: #fff;
            color: var(--tigra-ink);
            padding: 14px 20px;
            border-bottom: 1px solid var(--tigra-line);
            border-radius: 8px 8px 0 0;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .dmg-header h2 { margin:0; font-size:16px; font-weight:700; }
        .dmg-close {
            background: #f8fffb;
            border: 1px solid #d9ebe2; color: var(--tigra-green-dark);
            width: 28px; height: 28px;
            border-radius: 8px; cursor: pointer;
            font-size: 16px; line-height: 28px; text-align: center;
        }
        .dmg-close:hover { background: #ecfdf5; border-color: rgba(18,183,106,0.3); }

        /* 两列网格 */
        .dmg-body-grid {
            display: grid;
            grid-template-columns: minmax(620px, 1.45fr) minmax(360px, 0.85fr);
            gap: 0;
            padding: 0;
        }
        .dmg-col {
            min-width: 0;
            padding: 18px 22px;
            display: flex; flex-direction: column; gap: 14px;
        }
        .dmg-col:first-child { border-right: 1px solid #f0f0f0; }
        .dmg-col-title {
            font-size: 13px; font-weight: 700; color: var(--tigra-ink);
            padding-bottom: 6px; border-bottom: 1px solid var(--tigra-line);
        }

        /* 数据项 */
        .dmg-item {
            min-width: 0;
            background: #f8fffb; border: 1px solid var(--tigra-line); border-radius: 8px; padding: 14px 16px;
        }
        .dmg-item-head {
            font-size: 13px; font-weight: 600; color: #333;
            display: flex; align-items: center; gap: 6px; margin-bottom: 8px;
            flex-wrap: wrap;
            line-height: 1.35;
        }
        .dmg-item-head small { font-weight: 400; color: #aaa; font-size: 11px; }
        .dmg-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
        .dmg-item-foot { display: flex; align-items: center; gap: 8px; margin-top: 6px; }

        /* 拖拽区域（新版） */
        .dmg-drop {
            border: 1.5px dashed #d0d0d0;
            border-radius: 8px;
            padding: 14px 8px;
            text-align: center;
            cursor: pointer;
            color: #bbb;
            font-size: 12px;
            transition: all 0.15s;
            position: relative;
            min-height: 36px;
        }
        .dmg-drop:hover, .dmg-drop.drag-over {
            border-color: var(--tigra-green);
            background: #ecfdf5;
            color: var(--tigra-green-dark);
        }
        .dmg-drop input[type=file] {
            position: absolute; inset: 0; opacity: 0;
            width: 100%; height: 100%; cursor: pointer;
        }
        .dmg-drop span { pointer-events: none; }

        /* 上传按钮（紧凑版） */
        .dmg-up-btn {
            background: var(--tigra-green); color: white; border: none;
            border-radius: 14px; padding: 5px 16px;
            font-size: 12px; font-weight: 600; cursor: pointer;
            transition: opacity 0.15s; white-space: nowrap;
        }
        .dmg-up-btn:hover { opacity: 0.85; }
        .dmg-up-btn:disabled { opacity: 0.4; cursor: default; }
        .dmg-preview-btn {
            background: #0f766e; color: white; border: none;
            border-radius: 14px; padding: 5px 16px;
            font-size: 12px; font-weight: 600; cursor: pointer;
            transition: opacity 0.15s; white-space: nowrap;
        }
        .dmg-preview-btn:hover { opacity: 0.85; }
        .dmg-preview-btn:disabled { opacity: 0.4; cursor: default; }

        /* 拉取按钮 */
        .dmg-fetch-btn {
            background: #10b981; color: white; border: none;
            border-radius: 14px; padding: 6px 16px;
            font-size: 12px; font-weight: 600; cursor: pointer;
            transition: opacity 0.15s;
        }
        .dmg-fetch-btn:hover { opacity: 0.85; }
        .dmg-fetch-result {
            margin-top: 6px; min-height: 20px;
            overflow-wrap: anywhere;
        }

        /* 保留旧的 upload-file-list/tag/result 样式 */
        .upload-file-list { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
        .upload-file-tag {
            background: #ecfdf5; color: var(--tigra-green-dark);
            border-radius: 12px; padding: 3px 10px;
            font-size: 12px; display: flex; align-items: center; gap: 4px;
        }
        .upload-file-tag small { color: #64748b; font-size: 11px; }
        .upload-file-tag .rm { cursor: pointer; font-weight: 700; opacity: 0.6; }
        .upload-file-tag .rm:hover { opacity: 1; }
        .upload-file-summary {
            flex: 0 0 100%;
            color: #64748b;
            font-size: 11px;
            line-height: 1.5;
        }
        .upload-file-summary.warn { color: #c2410c; }
        .upload-btn {
            margin-top: 10px;
            background: var(--tigra-green);
            color: white; border: none;
            border-radius: 20px; padding: 8px 24px;
            font-size: 13px; font-weight: 600; cursor: pointer;
            transition: opacity 0.2s;
        }
        .upload-btn:hover { opacity: 0.85; }
        .upload-btn:disabled { opacity: 0.45; cursor: default; }
        .upload-result {
            margin-top: 8px; padding: 10px 14px;
            border-radius: 8px; font-size: 13px;
            display: none;
        }
        .upload-result.ok  { background: #e8f5e9; color: #2e7d32; border-left: 3px solid #4caf50; }
        .upload-result.err { background: #ffebee; color: #c62828; border-left: 3px solid #f44336; }
        .upload-context-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 8px;
            margin-bottom: 10px;
        }
        .upload-context-grid label {
            display: flex;
            flex-direction: column;
            gap: 4px;
            min-width: 0;
            color: #64748b;
            font-size: 11px;
            font-weight: 600;
        }
        .upload-context-grid input,
        .upload-context-grid select {
            border: 1px solid #e2e8f0;
            border-radius: 6px;
            padding: 6px 8px;
            color: #334155;
            font-size: 12px;
            background: white;
            width: 100%;
            max-width: 100%;
            min-width: 0;
        }
        #priceSkuSelect {
            min-width: 0;
            max-width: 100%;
        }
        @media (max-width: 1080px) {
            #dataMgrModal {
                align-items: flex-start;
                padding: 16px;
            }
            .dmg-panel {
                width: calc(100vw - 32px);
                max-height: calc(100vh - 32px);
            }
            .dmg-body-grid {
                grid-template-columns: minmax(0, 1fr);
            }
            .dmg-col:first-child {
                border-right: 0;
                border-bottom: 1px solid #f0f0f0;
            }
        }
        @media (max-width: 640px) {
            #dataMgrModal {
                padding: 10px;
            }
            .dmg-panel {
                width: calc(100vw - 20px);
                max-height: calc(100vh - 20px);
            }
            .dmg-header,
            .dmg-col {
                padding-left: 14px;
                padding-right: 14px;
            }
            .upload-context-grid {
                grid-template-columns: minmax(0, 1fr);
            }
        }
        .upload-preview-result {
            display: none;
            margin-top: 10px;
            border-radius: 8px;
            padding: 10px;
            font-size: 12px;
        }
        .upload-preview-result.ok { background: #ecfdf5; border: 1px solid #bbf7d0; color: #166534; }
        .upload-preview-result.err { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; }
        .upload-preview-summary {
            display: flex;
            flex-direction: column;
            gap: 2px;
            margin-bottom: 8px;
        }
        .upload-preview-summary span,
        .upload-preview-file span {
            color: #64748b;
        }
        .upload-preview-file {
            display: flex;
            flex-direction: column;
            gap: 8px;
            padding: 4px 0;
            border-top: 1px solid rgba(100,116,139,0.16);
        }
        .upload-preview-file > span {
            align-self: flex-start;
        }
        .upload-preview-upc {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }
        .upload-preview-upc span {
            background: rgba(255,255,255,0.76);
            border: 1px solid rgba(100,116,139,0.16);
            border-radius: 6px;
            color: #166534;
            line-height: 1.4;
            padding: 3px 6px;
            word-break: break-all;
        }
        .upload-preview-upc span.warn {
            background: #fff7ed;
            border-color: #fed7aa;
            color: #9a3412;
            font-weight: 700;
        }
        .upload-preview-pass {
            margin-top: 8px;
            color: #15803d;
            font-weight: 700;
        }
        .upload-error-list {
            max-height: 160px;
            overflow: auto;
            margin-top: 8px;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
        .upload-error-row {
            display: grid;
            grid-template-columns: 36px 58px 1fr;
            gap: 6px;
            align-items: start;
            padding: 5px 6px;
            background: rgba(255,255,255,0.72);
            border-radius: 6px;
        }
        .upload-error-row span {
            font-weight: 700;
            color: #be123c;
        }
        .upload-error-row b {
            color: #64748b;
            font-weight: 600;
        }
        .upload-error-row em {
            color: #334155;
            font-style: normal;
        }
        .upload-batch-list {
            display: flex;
            flex-direction: column;
            gap: 6px;
            max-height: 220px;
            overflow: auto;
        }
        .upload-batch-row {
            display: flex;
            justify-content: space-between;
            gap: 10px;
            padding: 8px;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            background: white;
            font-size: 12px;
        }
        .upload-batch-row div {
            display: flex;
            flex-direction: column;
            gap: 2px;
            min-width: 0;
        }
        .upload-batch-row span {
            color: #64748b;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            max-width: 260px;
        }
        .upload-batch-row em {
            color: #94a3b8;
            font-style: normal;
            white-space: nowrap;
        }
        .upload-batch-actions {
            align-items: flex-end;
            flex-shrink: 0;
        }
        .upload-batch-rollback {
            border: 1px solid #fecdd3;
            background: #fff1f2;
            color: #be123c;
            border-radius: 6px;
            padding: 3px 8px;
            font-size: 12px;
            font-weight: 700;
            cursor: pointer;
        }
        .upload-batch-rollback:hover {
            background: #ffe4e6;
            border-color: #fda4af;
        }

        /* 设置模态框 */
        #settingsModal {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(15, 23, 42, 0.46);
            z-index: 9999;
            align-items: center;
            justify-content: center;
        }
        #settingsModal.open {
            display: flex;
        }
        .settings-panel {
            background: #fff;
            border: 1px solid var(--tigra-line);
            border-radius: 8px;
            width: 980px;
            max-width: 96vw;
            max-height: 92vh;
            overflow-y: auto;
            box-shadow: 0 24px 64px rgba(16, 24, 40, 0.18);
        }
        .settings-header {
            background: #fff;
            color: var(--tigra-ink);
            padding: 14px 20px;
            border-bottom: 1px solid var(--tigra-line);
            border-radius: 8px 8px 0 0;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .settings-header h2 {
            margin: 0;
            font-size: 16px;
            font-weight: 700;
        }
        .settings-close {
            background: #f8fffb;
            border: 1px solid #d9ebe2;
            color: var(--tigra-green-dark);
            width: 28px;
            height: 28px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 16px;
            line-height: 28px;
            text-align: center;
        }
        .settings-close:hover {
            background: #ecfdf5;
            border-color: rgba(18,183,106,0.3);
        }
        .settings-body {
            padding: 0;
        }
        .settings-tab {
            display: flex;
            border-bottom: 1px solid var(--tigra-line);
            background: #f8fffb;
            flex-wrap: wrap;
        }
        .settings-tab-btn {
            flex: 1;
            min-width: 100px;
            padding: 14px;
            border: none;
            background: none;
            cursor: pointer;
            font-size: 13px;
            color: var(--tigra-muted);
            transition: all 0.3s;
            border-bottom: 3px solid transparent;
            font-weight: 500;
        }
        .settings-tab-btn.active {
            color: var(--tigra-green-dark);
            border-bottom-color: var(--tigra-green);
            background: white;
        }
        .settings-tab-btn:hover {
            color: var(--tigra-green-dark);
        }
        .settings-content {
            padding: 20px;
        }
        .settings-tab-content {
            display: none;
        }
        .settings-tab-content.active {
            display: block;
        }
        .settings-section {
            margin-bottom: 20px;
        }
        .settings-section h3 {
            font-size: 14px;
            font-weight: 700;
            color: var(--tigra-ink);
            margin-bottom: 12px;
            padding-bottom: 6px;
            border-bottom: 1px solid var(--tigra-line);
        }
        .settings-input-group {
            margin-bottom: 12px;
        }
        .settings-input-group label {
            display: block;
            font-size: 13px;
            font-weight: 600;
            color: var(--tigra-muted);
            margin-bottom: 6px;
        }
        .settings-input-group textarea {
            width: 100%;
            padding: 10px;
            border: 1px solid var(--tigra-line);
            border-radius: 8px;
            font-size: 13px;
            font-family: inherit;
            resize: vertical;
            min-height: 80px;
        }
        .settings-input-group textarea:focus {
            outline: none;
            border-color: var(--tigra-green);
            box-shadow: 0 0 0 3px rgba(18,183,106,0.12);
        }
        .tier-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0 20px;
        }
        .tier-col {
            display: flex;
            flex-direction: column;
            gap: 0;
        }
        .tier-label {
            display: flex;
            align-items: center;
            gap: 6px;
            font-weight: 700 !important;
            font-size: 14px !important;
            padding: 2px 0;
        }
        .tier-label.tier-s { color: #7c3aed !important; }
        .tier-label.tier-a { color: #f59e0b !important; }
        .tier-label.tier-b { color: #10b981 !important; }
        .tier-label.tier-c { color: #3b82f6 !important; }
        .tier-label.tier-d { color: #6b7280 !important; }
        .tier-label.tier-e { color: #9ca3af !important; }
        .tier-label.tier-nka { color: #be185d !important; }
        .tier-label.tier-lka { color: #0e7490 !important; }
        .tier-count {
            font-weight: 400;
            font-size: 11px;
            color: #999;
        }
        .settings-tip {
            margin-top: 2px;
            color: #64748b;
            font-size: 12px;
            line-height: 1.6;
        }
        .settings-save-btn {
            background: var(--tigra-green);
            color: white;
            border: none;
            border-radius: 8px;
            padding: 8px 24px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: opacity 0.15s;
            margin-top: 10px;
        }
        .settings-save-btn:hover {
            opacity: 0.85;
        }

        /* 数据检查区域 */
        .check-section {
            border: 2px solid #f0f0f0;
            border-radius: 12px;
            padding: 20px;
        }
        .check-section-header {
            display: flex; align-items: center; justify-content: space-between;
            margin-bottom: 14px;
        }
        .check-title { font-weight: 700; font-size: 15px; color: #333; display: flex; align-items: center; gap: 8px; }
        .check-btn {
            background: #fff;
            border: 2px solid #e91e63;
            color: #e91e63;
            border-radius: 20px;
            padding: 6px 20px;
            font-size: 13px; font-weight: 600; cursor: pointer;
            transition: all 0.2s;
        }
        .check-btn:hover { background: #e91e63; color: white; }
        .check-result { font-size: 13px; color: #555; }
        .check-row {
            display: flex; align-items: flex-start; gap: 10px;
            padding: 8px 0; border-bottom: 1px solid #f5f5f5;
        }
        .check-row:last-child { border-bottom: none; }
        .check-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 4px; flex-shrink: 0; }
        .check-dot.ok { background: #4caf50; }
        .check-dot.warn { background: #ff9800; }
        .check-dot.err { background: #f44336; }
        .check-missing {
            background: #fff8e1; border: 1px solid #ffe082;
            border-radius: 6px; padding: 6px 10px;
            font-size: 12px; color: #795548;
            margin-top: 4px; line-height: 1.8;
        }
        .check-loading { color: #aaa; font-size: 13px; text-align: center; padding: 20px; }
        /* 获取需求指数按钮 - 绿色系 */
        .fetch-kw-btn {
            background: #fff;
            border: 2px solid #10b981;
            color: #10b981;
            border-radius: 20px;
            padding: 6px 20px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }
        .fetch-kw-btn:hover:not(:disabled) { background: #10b981; color: white; }
        .fetch-kw-btn:disabled { opacity: 0.6; cursor: not-allowed; }
        #starCityList::-webkit-scrollbar { height: 4px; }
        #starCityList::-webkit-scrollbar-thumb { background: #f8bbd0; border-radius: 4px; }
        #starChartsGrid::-webkit-scrollbar { width: 4px; }

        /* ===== 全国趋势：老板视角布局 ===== */
        .overview-stage2 {
            display: grid;
            gap: 12px;
        }
        .overview-brief-panel {
            display: block;
            padding: 10px 14px;
            border: 1px solid #dcebe4;
            border-radius: 8px;
            background: #ffffff;
        }
        .overview-brief-main {
            display: flex;
            align-items: baseline;
            flex-wrap: wrap;
            gap: 8px 12px;
            min-width: 0;
        }
        .overview-label,
        .overview-panel-kicker {
            color: var(--tigra-green-dark);
            font-size: 12px;
            font-weight: 900;
            letter-spacing: 0.02em;
        }
        .overview-brief-main h2 {
            margin: 0;
            color: #172033;
            font-size: 18px;
            line-height: 1.25;
        }
        .overview-brief-main p {
            flex: 1 1 420px;
        }
        .overview-brief-main p,
        .overview-panel-head p {
            margin: 0;
            color: #64748b;
            font-size: 13px;
            line-height: 1.7;
        }
        .overview-role-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 10px;
        }
        .overview-role-item {
            min-width: 0;
            padding: 12px;
            border: 1px solid rgba(18, 183, 106, 0.16);
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.76);
        }
        .overview-role-item b {
            display: block;
            margin-bottom: 5px;
            color: #172033;
            font-size: 13px;
            font-weight: 900;
        }
        .overview-role-item span {
            color: #667085;
            font-size: 12px;
            line-height: 1.55;
        }
        .overview-executive-section {
            min-width: 0;
        }
        .overview-analysis-stack {
            display: grid;
            gap: 14px;
            min-width: 0;
        }
        .overview-panel {
            min-width: 0;
            padding: 14px;
            border: 1px solid #e5eee9;
            border-radius: 8px;
            background: #fff;
            box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
        }
        .overview-panel-primary {
            border-color: rgba(18, 183, 106, 0.24);
        }
        .overview-trend-primary {
            box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
        }
        .overview-panel-head {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 16px;
            margin-bottom: 12px;
            padding-bottom: 12px;
            border-bottom: 1px solid #eef3f0;
        }
        .overview-panel-head h3 {
            margin: 4px 0 5px;
            color: #172033;
            font-size: 17px;
            line-height: 1.35;
        }
        .overview-control-block {
            display: flex;
            flex-direction: column;
            gap: 8px;
            align-items: flex-end;
            max-width: 720px;
        }
        .overview-control-row {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 6px;
            flex-wrap: wrap;
        }
        .overview-control-row > span {
            color: #667085;
            font-size: 12px;
            font-weight: 800;
        }
        .overview-control-row-compact {
            justify-content: flex-end;
        }
        .overview-chart-frame {
            min-width: 0;
            border-radius: 8px;
            background: #fbfdfc;
            border: 1px solid #eef3f0;
            padding: 8px;
        }
        .overview-contribution-section {
            min-width: 0;
            margin-top: 14px;
            padding-top: 14px;
            border-top: 1px solid #e8efeb;
        }
        .overview-contribution-head,
        .overview-contribution-title,
        .overview-contribution-controls {
            display: flex;
            align-items: center;
        }
        .overview-contribution-head {
            justify-content: space-between;
            gap: 16px;
            margin-bottom: 10px;
        }
        .overview-contribution-head h4 {
            margin: 3px 0 4px;
            color: #172033;
            font-size: 15px;
        }
        .overview-contribution-head p {
            margin: 0;
            color: #667085;
            font-size: 12px;
            line-height: 1.55;
        }
        .overview-contribution-controls {
            flex: 0 0 auto;
            gap: 6px;
        }
        .overview-contribution-controls > span {
            color: #667085;
            font-size: 12px;
            font-weight: 800;
        }
        .national-contribution-mode-btn {
            min-width: 48px;
            padding: 5px 11px;
            border: 1px solid #d8e2dc;
            border-radius: 18px;
            background: #fff;
            color: #475467;
            cursor: pointer;
            font-size: 12px;
        }
        .national-contribution-mode-btn:hover {
            border-color: var(--tigra-green);
            color: var(--tigra-green-dark);
        }
        .national-contribution-mode-btn.active {
            border-color: var(--tigra-green);
            background: var(--tigra-green);
            color: #fff;
            font-weight: 700;
        }
        .overview-contribution-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
            min-width: 0;
        }
        .overview-contribution-panel {
            min-width: 0;
            border: 1px solid #eef3f0;
            border-radius: 8px;
            background: #fbfdfc;
            padding: 10px;
        }
        .overview-structure-chart-panel {
            min-width: 0;
        }
        .overview-structure-meta {
            margin: 4px 0 2px;
            color: #667085;
            font-size: 10px;
            font-weight: 700;
        }
        .overview-contribution-title {
            justify-content: space-between;
            gap: 12px;
            min-height: 24px;
            margin-bottom: 2px;
        }
        .overview-contribution-title b {
            color: #253044;
            font-size: 13px;
        }
        .overview-contribution-title span {
            color: #667085;
            font-size: 11px;
        }
        .overview-attribution-summary {
            display: grid;
            grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(110px, 0.7fr));
            gap: 8px;
            margin-bottom: 10px;
            padding: 10px 12px;
            border: 1px solid #dfeae4;
            border-left: 3px solid var(--tigra-green);
            border-radius: 7px;
            background: #f8fcfa;
        }
        .overview-attribution-summary[hidden] {
            display: none;
        }
        .overview-attribution-main,
        .overview-attribution-stat {
            min-width: 0;
        }
        .overview-attribution-main b,
        .overview-attribution-stat b {
            display: block;
            color: #172033;
            font-size: 14px;
            line-height: 1.35;
        }
        .overview-attribution-main span,
        .overview-attribution-stat span {
            display: block;
            margin-top: 3px;
            color: #667085;
            font-size: 11px;
            line-height: 1.45;
        }
        .overview-attribution-stat b.bad {
            color: #d92d20;
        }
        .overview-attribution-stat b.good {
            color: #039855;
        }
        .overview-chart-loading {
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #98a2b3;
            font-size: 12px;
        }
        .overview-chart-loading.error {
            color: #d92d20;
        }
        .overview-split-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
            min-width: 0;
        }
        .overview-subpanel {
            min-width: 0;
            padding: 12px;
            border: 1px solid #edf2f0;
            border-radius: 8px;
            background: #fcfefd;
        }
        .overview-subtitle {
            margin: 0 0 8px;
            color: #334155;
            font-size: 13px;
            font-weight: 900;
            line-height: 1.4;
        }
        .overview-table-wrap {
            margin-top: 12px;
            overflow-x: auto;
            border: 1px solid #edf2f0;
            border-radius: 12px;
            background: #fff;
        }
        .overview-link-btn {
            flex: 0 0 auto;
            padding: 6px 12px;
            border: 1px solid #d7e7df;
            border-radius: 999px;
            background: #fff;
            color: var(--tigra-green-dark);
            font-size: 12px;
            font-weight: 900;
            cursor: pointer;
            transition: all 0.16s ease;
        }
        .overview-link-btn:hover {
            border-color: rgba(18, 183, 106, 0.36);
            background: #ecfdf3;
        }
        .overview-stage2 .chart-container {
            max-width: 100%;
        }
        .overview-stage2 .ad-funnel-header {
            margin: 0 0 10px;
            padding-bottom: 10px;
            border-bottom: 1px solid #edf2f0;
        }
        .overview-stage2 .ad-funnel-header .overview-subtitle {
            margin: 0;
        }
        .overview-battlefield-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 12px;
        }
        .overview-battlefield-card {
            min-width: 0;
            border: 1px solid #edf2f0;
            border-radius: 12px;
            background: #fcfefd;
            overflow: hidden;
        }
        .overview-battlefield-card.good {
            border-color: #bbf7d0;
            background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 72%);
        }
        .overview-battlefield-card.bad {
            border-color: #fecaca;
            background: linear-gradient(180deg, #fff1f2 0%, #ffffff 72%);
        }
        .overview-battlefield-card.warn {
            border-color: #fde68a;
            background: linear-gradient(180deg, #fffbeb 0%, #ffffff 72%);
        }
        .overview-battlefield-card-head {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 10px;
            padding: 12px 12px 8px;
            border-bottom: 1px solid rgba(226, 232, 240, 0.74);
        }
        .overview-battlefield-card-head h4 {
            margin: 0;
            color: #172033;
            font-size: 14px;
            line-height: 1.35;
        }
        .overview-battlefield-card-head span {
            display: block;
            margin-top: 3px;
            color: #667085;
            font-size: 11px;
            line-height: 1.45;
        }
        .overview-battlefield-count {
            flex: 0 0 auto;
            min-width: 28px;
            padding: 3px 7px;
            border-radius: 999px;
            background: #fff;
            color: var(--tigra-green-dark);
            border: 1px solid #d7e7df;
            font-size: 11px;
            font-weight: 900;
            text-align: center;
        }
        .overview-battlefield-list {
            display: grid;
            gap: 8px;
            padding: 10px;
        }
        .overview-battlefield-row {
            display: grid;
            gap: 7px;
            padding: 10px;
            border: 1px solid #eef3f0;
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.88);
        }
        .overview-battlefield-row-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
        }
        .overview-battlefield-city {
            min-width: 0;
            padding: 0;
            border: 0;
            background: transparent;
            color: #172033;
            font-size: 14px;
            font-weight: 900;
            text-align: left;
            cursor: pointer;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .overview-battlefield-city:hover {
            color: var(--tigra-green-dark);
            text-decoration: underline;
        }
        .overview-battlefield-city span {
            color: #94a3b8;
            font-size: 11px;
            font-weight: 700;
        }
        .overview-battlefield-tag {
            flex: 0 0 auto;
            padding: 2px 7px;
            border-radius: 999px;
            background: #f1f5f9;
            color: #475569;
            font-size: 10px;
            font-weight: 900;
            white-space: nowrap;
        }
        .overview-battlefield-metrics {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 6px;
        }
        .overview-battlefield-metric {
            min-width: 0;
            padding: 6px 7px;
            border-radius: 8px;
            background: #f8fafc;
            color: #334155;
            font-size: 11px;
            line-height: 1.3;
        }
        .overview-battlefield-metric b {
            display: block;
            margin-top: 2px;
            color: #172033;
            font-size: 12px;
        }
        .overview-cpb-band {
            display: inline-block;
            margin-left: 3px;
            border-radius: 5px;
            padding: 1px 4px;
            font-size: 9px;
            font-weight: 900;
            vertical-align: 1px;
            white-space: nowrap;
        }
        .overview-cpb-band.low {
            background: #dcfce7;
            color: #047857;
        }
        .overview-cpb-band.mid {
            background: #f1f5f9;
            color: #475569;
        }
        .overview-cpb-band.high {
            background: #fee2e2;
            color: #b91c1c;
        }
        .overview-cpb-band.unknown {
            background: #f8fafc;
            color: #94a3b8;
        }
        .overview-battlefield-reason {
            color: #64748b;
            font-size: 11px;
            line-height: 1.55;
        }
        .overview-penetration-signal {
            border: 1px solid #e2e8f0;
            border-left: 3px solid #94a3b8;
            border-radius: 7px;
            background: #f8fafc;
            padding: 7px 8px;
        }
        .overview-penetration-signal > div {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
        }
        .overview-penetration-signal b,
        .overview-penetration-signal em,
        .overview-penetration-signal span {
            min-width: 0;
            font-size: 10px;
            line-height: 1.4;
        }
        .overview-penetration-signal b {
            color: #334155;
            font-weight: 900;
        }
        .overview-penetration-signal em {
            color: #64748b;
            font-style: normal;
            font-weight: 800;
            white-space: nowrap;
        }
        .overview-penetration-signal span {
            display: block;
            margin-top: 3px;
            color: #64748b;
        }
        .overview-penetration-signal.boundary {
            border-color: #fecaca;
            border-left-color: #ef4444;
            background: #fff7f7;
        }
        .overview-penetration-signal.boundary-watch {
            border-color: #fed7aa;
            border-left-color: #f97316;
            background: #fff7ed;
        }
        .overview-penetration-signal.acceptance,
        .overview-penetration-signal.competition {
            border-color: #fde68a;
            border-left-color: #f59e0b;
            background: #fffbeb;
        }
        .overview-penetration-signal.headroom {
            border-color: #bbf7d0;
            border-left-color: #10b981;
            background: #f0fdf4;
        }
        .overview-penetration-signal.mature {
            border-color: #bfdbfe;
            border-left-color: #3b82f6;
            background: #eff6ff;
        }
        .overview-penetration-signal.missing {
            opacity: 0.78;
        }
        .overview-battlefield-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }
        .overview-battlefield-actions button {
            padding: 4px 8px;
            border: 1px solid #d7e7df;
            border-radius: 999px;
            background: #fff;
            color: var(--tigra-green-dark);
            font-size: 11px;
            font-weight: 800;
            cursor: pointer;
        }
        .overview-battlefield-actions button:hover {
            background: #ecfdf3;
        }
        .overview-empty-state {
            grid-column: 1 / -1;
            padding: 20px;
            border: 1px dashed #d7e7df;
            border-radius: 12px;
            background: #fbfefd;
            color: #667085;
            font-size: 13px;
            text-align: center;
        }
        .overview-battlefield-note {
            grid-column: 1 / -1;
            padding: 8px 10px;
            border: 1px solid #fde68a;
            border-radius: 10px;
            background: #fffbeb;
            color: #92400e;
            font-size: 12px;
            font-weight: 800;
        }
        @media (max-width: 1280px) {
            .overview-brief-panel,
            .overview-panel-head {
                grid-template-columns: 1fr;
            }
            .overview-brief-panel {
                display: block;
            }
            .overview-role-grid {
                margin-top: 12px;
            }
            .overview-panel-head {
                flex-direction: column;
                align-items: stretch;
            }
            .overview-control-block,
            .overview-control-row {
                align-items: flex-start;
                justify-content: flex-start;
                max-width: none;
            }
        }
        @media (max-width: 960px) {
            .overview-role-grid,
            .overview-split-grid,
            .overview-battlefield-grid,
            .overview-contribution-grid {
                grid-template-columns: 1fr;
            }
            .overview-brief-panel,
            .overview-panel {
                padding: 12px;
                border-radius: 8px;
            }
            .overview-funnel-grid .chart-container {
                height: 300px !important;
            }
            .overview-attribution-summary {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }
        @media (max-width: 640px) {
            .overview-brief-main {
                display: block;
            }
            .overview-brief-main h2 {
                font-size: 18px;
                margin: 3px 0 5px;
            }
            .overview-panel-head h3 {
                font-size: 15px;
            }
            .overview-control-row {
                gap: 5px;
            }
            .overview-stage2 .national-metric-btn,
            .overview-stage2 .national-grain-btn,
            .national-contribution-mode-btn {
                font-size: 11px;
                padding: 4px 8px;
            }
            .overview-contribution-head {
                align-items: flex-start;
                flex-direction: column;
            }
            .overview-contribution-panel {
                padding: 8px;
            }
            .overview-attribution-summary {
                grid-template-columns: 1fr;
            }
            #nationalCityContributionChart,
            #nationalChainContributionChart {
                height: 240px !important;
            }
            #nationalTrendChart {
                height: 320px !important;
            }
        }

        /* ===== 全国经营：统一工作台层级 ===== */
        .overview-stage2 {
            --overview-border: #e1ebe6;
            --overview-muted: #667085;
            gap: 14px;
        }
        .overview-stage2 .overview-panel {
            border-color: var(--overview-border);
            box-shadow: none;
        }
        .overview-brief-panel {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 18px;
            min-height: 54px;
        }
        .overview-reading-path {
            display: flex;
            align-items: center;
            gap: 16px;
            flex: 0 0 auto;
            color: #667085;
            font-size: 11px;
            font-weight: 800;
        }
        .overview-reading-path span {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            white-space: nowrap;
        }
        .overview-reading-path b {
            display: inline-grid;
            place-items: center;
            width: 20px;
            height: 20px;
            border: 1px solid #cfe3d9;
            border-radius: 50%;
            background: #f6fbf8;
            color: #047857;
            font-size: 10px;
        }
        .overview-executive-section .overview-panel-head {
            margin-bottom: 10px;
        }
        .nat-diagnosis-content {
            min-width: 0;
        }
        .overview-priority-layout {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(240px, 280px);
            gap: 14px;
            min-width: 0;
        }
        .overview-priority-list {
            display: grid;
            align-content: start;
            min-width: 0;
            border-top: 1px solid #edf2ef;
        }
        .overview-priority-row {
            display: grid;
            grid-template-columns: 30px minmax(320px, 1.25fr) minmax(260px, 0.75fr);
            align-items: center;
            gap: 12px;
            min-width: 0;
            padding: 11px 8px;
            border-bottom: 1px solid #edf2ef;
            border-left: 3px solid #94a3b8;
            background: #fff;
        }
        .overview-priority-row.good { border-left-color: #10b981; }
        .overview-priority-row.warn { border-left-color: #f59e0b; }
        .overview-priority-row.bad { border-left-color: #ef4444; }
        .overview-priority-rank {
            display: grid;
            place-items: center;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: #f1f5f9;
            color: #334155;
            font-size: 11px;
            font-weight: 900;
        }
        .overview-priority-object {
            min-width: 0;
        }
        .overview-priority-object > div {
            display: flex;
            align-items: center;
            gap: 7px;
            min-width: 0;
        }
        .overview-priority-object p {
            margin: 4px 0 0;
            color: #64748b;
            font-size: 11px;
            line-height: 1.45;
            white-space: normal;
        }
        .overview-battlefield-tag.good { background: #ecfdf3; color: #027a48; }
        .overview-battlefield-tag.warn { background: #fffaeb; color: #b54708; }
        .overview-battlefield-tag.bad { background: #fef3f2; color: #b42318; }
        .overview-priority-signal {
            display: block;
            margin-top: 3px;
            color: #b54708;
            font-size: 10px;
            font-weight: 800;
            line-height: 1.45;
            white-space: normal;
        }
        .overview-priority-signal.headroom { color: #027a48; }
        .overview-priority-signal.boundary { color: #b42318; }
        .overview-priority-metrics {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 6px;
            min-width: 0;
        }
        .overview-priority-metrics > span {
            min-width: 0;
            color: #667085;
            font-size: 10px;
            line-height: 1.3;
        }
        .overview-priority-metrics b {
            display: block;
            overflow: hidden;
            margin-top: 2px;
            color: #172033;
            font-size: 12px;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .overview-priority-commands {
            display: flex;
            gap: 12px;
            margin-top: 6px;
        }
        .overview-priority-commands button {
            padding: 0;
            border: 0;
            background: transparent;
            color: #047857;
            cursor: pointer;
            font-size: 10px;
            font-weight: 800;
        }
        .overview-priority-commands button + button {
            color: #667085;
        }
        .overview-priority-commands button.active,
        .overview-priority-commands button:disabled {
            color: #98a2b3;
            cursor: default;
        }
        .overview-battlefield-actions[hidden] {
            display: none !important;
        }
        .overview-action-loop {
            min-width: 0;
            border-left: 1px solid #e4ece8;
            padding-left: 14px;
        }
        .overview-action-loop-head {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 10px;
        }
        .overview-action-loop-head h4 {
            margin: 3px 0 0;
            color: #172033;
            font-size: 15px;
        }
        .overview-action-loop-head button,
        .overview-action-loop-item {
            border: 0;
            background: transparent;
            color: #047857;
            cursor: pointer;
            font-size: 11px;
            font-weight: 800;
        }
        .overview-action-loop-summary {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 5px;
            margin: 10px 0;
        }
        .overview-action-loop-summary span {
            padding: 7px;
            border: 1px solid #e4ece8;
            border-radius: 6px;
            background: #f8fbf9;
            color: #667085;
            font-size: 10px;
        }
        .overview-action-loop-summary b {
            display: block;
            margin-top: 2px;
            color: #172033;
            font-size: 15px;
        }
        .overview-action-loop-content {
            display: grid;
            gap: 6px;
        }
        .overview-action-loop-row {
            position: relative;
            min-width: 0;
        }
        .overview-action-loop-item {
            width: 100%;
            padding: 8px 24px 8px 0;
            border-top: 1px solid #edf2ef;
            color: #344054;
            text-align: left;
        }
        .overview-action-loop-item > span {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
        }
        .overview-action-loop-item em {
            color: #047857;
            font-size: 10px;
            font-style: normal;
        }
        .overview-action-loop-item strong,
        .overview-action-loop-item small {
            display: block;
            margin-top: 3px;
            line-height: 1.4;
        }
        .overview-action-loop-item small { color: #667085; font-weight: 700; }
        .overview-action-cancel {
            position: absolute;
            top: 7px;
            right: 0;
            display: grid;
            place-items: center;
            width: 20px;
            height: 20px;
            padding: 0;
            border: 0;
            background: transparent;
            color: #98a2b3;
            cursor: pointer;
            font-size: 17px;
            line-height: 1;
        }
        .overview-action-cancel:hover,
        .overview-action-cancel:focus-visible {
            color: #b42318;
        }
        .overview-action-loop-empty {
            padding: 14px 0;
            border-top: 1px solid #edf2ef;
        }
        .overview-action-loop-empty b,
        .overview-action-loop-empty span {
            display: block;
        }
        .overview-action-loop-empty b { color: #344054; font-size: 12px; }
        .overview-action-loop-empty span { margin-top: 4px; color: #667085; font-size: 11px; line-height: 1.55; }
        .overview-quick-note-dialog {
            width: min(440px, calc(100vw - 32px));
            padding: 18px;
            border: 1px solid #d8e4de;
            border-radius: 8px;
            background: #fff;
            color: #172033;
            box-shadow: 0 18px 50px rgba(16, 24, 40, 0.18);
        }
        .overview-quick-note-dialog::backdrop { background: rgba(15, 23, 42, 0.3); }
        .overview-quick-note-head {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
        }
        .overview-quick-note-head h4 { margin: 3px 0; font-size: 16px; }
        .overview-quick-note-head span { color: #667085; font-size: 11px; }
        .overview-note-type {
            display: grid;
            grid-template-columns: auto minmax(0, 1fr);
            align-items: center;
            gap: 10px;
            margin-top: 14px;
            color: #475467;
            font-size: 11px;
            font-weight: 800;
        }
        .overview-note-type[hidden] { display: none !important; }
        .overview-note-type select {
            width: 100%;
            padding: 8px 10px;
            border: 1px solid #d0d5dd;
            border-radius: 6px;
            background: #fff;
            color: #172033;
            font: inherit;
        }
        .overview-dialog-close {
            width: 30px;
            height: 30px;
            padding: 0;
            border: 0;
            background: transparent;
            color: #667085;
            cursor: pointer;
            font-size: 24px;
            line-height: 1;
        }
        .overview-quick-note-dialog textarea {
            box-sizing: border-box;
            width: 100%;
            margin-top: 12px;
            padding: 10px;
            resize: vertical;
            border: 1px solid #d0d5dd;
            border-radius: 6px;
            color: #172033;
            font: inherit;
            line-height: 1.5;
        }
        .overview-quick-note-status {
            min-height: 18px;
            margin-top: 5px;
            color: #b42318;
            font-size: 11px;
        }
        .overview-quick-note-actions {
            display: flex;
            justify-content: flex-end;
            gap: 8px;
            margin-top: 8px;
        }
        .overview-quick-note-actions button { padding: 7px 13px; }
        .overview-quick-note-actions button.primary {
            border-color: #12b76a;
            background: #12b76a;
            color: #fff;
        }
        .overview-structure-controls {
            display: inline-flex;
            padding: 3px;
            border: 1px solid #d8e4de;
            border-radius: 7px;
            background: #f8faf9;
        }
        .overview-structure-mode-btn {
            min-width: 56px;
            padding: 6px 12px;
            border: 0;
            border-radius: 5px;
            background: transparent;
            color: #667085;
            cursor: pointer;
            font-size: 12px;
            font-weight: 800;
        }
        .overview-structure-mode-btn.active {
            background: #fff;
            color: #047857;
            box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
        }
        .overview-structure-view[hidden] { display: none; }
        .overview-structure-toolbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 14px;
        }
        .overview-structure-toolbar b,
        .overview-structure-toolbar span {
            display: block;
        }
        .overview-structure-toolbar b { color: #334155; font-size: 13px; }
        .overview-structure-toolbar span { margin-top: 3px; color: #667085; font-size: 11px; }
        .overview-funnel-disclosure > summary {
            margin: 0;
            padding: 0;
            border: 0;
            cursor: pointer;
            list-style: none;
        }
        .overview-funnel-disclosure > summary::-webkit-details-marker { display: none; }
        .overview-disclosure-action {
            flex: 0 0 auto;
            padding: 6px 10px;
            border: 1px solid #d7e7df;
            border-radius: 6px;
            color: #047857;
            font-size: 11px;
        }
        .overview-disclosure-action b { font-weight: 900; }
        .overview-funnel-disclosure .when-open { display: none; }
        .overview-funnel-disclosure[open] .when-open { display: inline; }
        .overview-funnel-disclosure[open] .when-closed { display: none; }
        .overview-funnel-body {
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px solid #edf2ef;
        }
        .overview-funnel-panel { min-width: 0; }
        .wr-entry-context {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 14px;
            margin: 10px 0;
            padding: 9px 12px;
            border: 1px solid #b7e4cf;
            border-left: 3px solid #12b76a;
            border-radius: 7px;
            background: #f3fbf7;
        }
        .wr-entry-context[hidden] { display: none; }
        .wr-entry-context > div {
            display: flex;
            align-items: baseline;
            flex-wrap: wrap;
            gap: 6px 10px;
            min-width: 0;
        }
        .wr-entry-context span { color: #047857; font-size: 11px; font-weight: 900; }
        .wr-entry-context b { color: #172033; font-size: 14px; }
        .wr-entry-context em { color: #667085; font-size: 11px; font-style: normal; }
        .wr-entry-context button {
            flex: 0 0 auto;
            border: 0;
            background: transparent;
            color: #047857;
            cursor: pointer;
            font-size: 11px;
            font-weight: 900;
        }
        .wr-table tr.wr-row-entry td {
            background: #ecfdf3;
            box-shadow: inset 0 1px #a7f3d0, inset 0 -1px #a7f3d0;
        }
        @media (max-width: 1180px) {
            .overview-priority-layout { grid-template-columns: 1fr; }
            .overview-action-loop {
                border-top: 1px solid #e4ece8;
                border-left: 0;
                padding-top: 12px;
                padding-left: 0;
            }
            .overview-priority-row {
                grid-template-columns: 30px minmax(200px, 1fr) minmax(270px, 0.9fr);
            }
        }
        @media (max-width: 760px) {
            .overview-brief-panel,
            .overview-reading-path,
            .overview-structure-toolbar,
            .wr-entry-context {
                align-items: flex-start;
                flex-direction: column;
            }
            .overview-reading-path { gap: 7px; }
            .overview-priority-row {
                grid-template-columns: 28px minmax(0, 1fr);
                align-items: start;
            }
            .overview-priority-metrics { grid-column: 2; }
            .overview-action-loop-item { padding-right: 30px; }
            .overview-action-cancel {
                top: 3px;
                right: -3px;
                width: 28px;
                height: 28px;
            }
            .overview-priority-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
            .overview-priority-object p,
            .overview-priority-signal { white-space: normal; }
            .overview-structure-controls { align-self: flex-start; }
        }

        /* ===== 可拖拽图表卡片 ===== */
        .drag-cards-container {
            /* 父容器，SortableJS 作用于此 */
        }
        .drag-card {
            position: relative;
            border-radius: 8px;
            margin-bottom: 10px;
            background: #fff;
            border: 1px solid #f0f0f0;
            transition: box-shadow 0.2s;
        }
        .drag-card:hover {
            box-shadow: 0 4px 16px rgba(233,30,99,0.10);
        }
        /* 悬浮时显示操作栏 */
        .drag-card-ctrl {
            display: flex;
            align-items: center;
            gap: 4px;
            position: absolute;
            top: 6px;
            right: 8px;
            z-index: 10;
            opacity: 0;
            transition: opacity 0.18s;
        }
        .drag-card:hover .drag-card-ctrl {
            opacity: 1;
        }
        .drag-handle {
            cursor: grab;
            padding: 3px 5px;
            border-radius: 4px;
            font-size: 14px;
            color: #bbb;
            background: rgba(255,255,255,0.88);
            border: 1px solid #eee;
            line-height: 1;
            user-select: none;
        }
        .drag-handle:active { cursor: grabbing; }
        .drag-minimize-btn {
            cursor: pointer;
            padding: 3px 7px;
            border-radius: 4px;
            font-size: 13px;
            color: #bbb;
            background: rgba(255,255,255,0.88);
            border: 1px solid #eee;
            line-height: 1;
            user-select: none;
            transition: color 0.15s, background 0.15s;
        }
        .drag-minimize-btn:hover { color: #e91e63; background: #fce4ec; border-color: #f8bbd0; }
        .drag-reset-btn {
            cursor: pointer;
            padding: 3px 7px;
            border-radius: 4px;
            font-size: 11px;
            color: #bbb;
            background: rgba(255,255,255,0.88);
            border: 1px solid #eee;
            line-height: 1;
            user-select: none;
            transition: color 0.15s;
        }
        .drag-reset-btn:hover { color: #1e88e5; background: #e3f2fd; border-color: #bbdefb; }
        /* 最小化状态 */
        .drag-card.minimized .drag-card-body {
            display: none;
        }
        .drag-card.minimized {
            border: 1px dashed #f8bbd0;
            background: #fff9fb;
        }
        .drag-card-minbar {
            display: none;
            padding: 8px 14px;
            font-size: 13px;
            font-weight: 600;
            color: #e91e63;
            cursor: pointer;
            user-select: none;
        }
        .drag-card.minimized .drag-card-minbar {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        /* SortableJS 拖拽中的占位符 */
        .drag-card.sortable-ghost {
            opacity: 0.35;
            background: #fce4ec;
            border: 2px dashed #e91e63;
        }
        .drag-card.sortable-chosen {
            box-shadow: 0 8px 28px rgba(233,30,99,0.22);
        }
        /* 网格容器内的卡片也要保持原 grid 间距 */
        .drag-card-grid {
            display: grid;
            gap: 16px;
        }
        .drag-card-grid.cols-2 {
            grid-template-columns: 1fr 1fr;
        }
        /* 每个Tab顶部的布局重置按钮 */
        .layout-reset-bar {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 6px 0 10px;
            font-size: 12px;
            color: #bbb;
        }
        .layout-reset-bar button {
            padding: 3px 10px;
            border-radius: 12px;
            border: 1px solid #e0e0e0;
            background: white;
            font-size: 11px;
            color: #999;
            cursor: pointer;
            transition: all 0.15s;
        }
        .layout-reset-bar button:hover { color: #e91e63; border-color: #f8bbd0; background: #fff5f8; }
        /* 卡片内容区内边距 */
        .drag-card-body {
            padding: 10px 14px 12px;
        }
        /* 卡片内 chart-container 清除多余外边距 */
        .drag-card .chart-container {
            margin: 6px 0 0 !important;
        }
        /* 卡片内 section-title 清除上边距 */
        .drag-card .section-title {
            margin-top: 4px;
        }

        .ad-funnel-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin-top: 4px;
            margin-bottom: 12px;
            padding-bottom: 10px;
            border-bottom: 2px solid rgba(18, 183, 106, 0.32);
        }

        .ad-funnel-header .section-title {
            margin: 0;
            padding: 0;
            border-bottom: 0;
        }

        .ad-funnel-sort {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            flex: 0 0 auto;
            color: #667085;
            font-size: 12px;
            font-weight: 700;
            white-space: nowrap;
        }

        .ad-funnel-sort button {
            min-height: 28px;
            padding: 0 10px;
            border: 1px solid #d9f3e7;
            border-radius: 999px;
            background: #fff;
            color: #344054;
            font-size: 12px;
            font-weight: 800;
            cursor: pointer;
        }

        .ad-funnel-sort button:hover,
        .ad-funnel-sort button.active {
            border-color: var(--tigra-green);
            background: var(--tigra-green);
            color: #fff;
        }

        @media (max-width: 760px) {
            .ad-funnel-header {
                align-items: flex-start;
                flex-direction: column;
            }
        }

        /* ═══ 连锁健康度分析 KPI卡片 ═══ */
        .hkpi-card {
            background: white;
            border-radius: 10px;
            padding: 12px 14px;
            border: 1px solid #e9e0ff;
            text-align: center;
            transition: transform 0.2s, box-shadow 0.2s;
        }
        .hkpi-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(139,92,246,0.12);
        }
        .hkpi-label {
            font-size: 11px;
            color: #8b5cf6;
            font-weight: 600;
            margin-bottom: 4px;
        }
        .hkpi-val {
            font-size: 18px;
            font-weight: 700;
            color: #333;
            line-height: 1.3;
        }
        .hkpi-chg {
            font-size: 11px;
            margin-top: 2px;
            min-height: 16px;
        }

        .city-compare-dock {
            position: fixed;
            right: 18px;
            bottom: 18px;
            z-index: 2600;
            width: min(320px, calc(100vw - 32px));
            border: 1px solid #dbeafe;
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.97);
            box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
            padding: 10px;
        }
        .city-compare-dock[hidden] {
            display: none !important;
        }
        .city-compare-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            margin-bottom: 8px;
            color: #334155;
            font-size: 12px;
        }
        .city-compare-head strong {
            font-size: 13px;
        }
        .city-compare-head span {
            color: #64748b;
            font-weight: 800;
        }
        .city-compare-chips {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-bottom: 10px;
        }
        .city-compare-chip {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            border: 1px solid #bfdbfe;
            border-radius: 999px;
            background: #eff6ff;
            color: #1d4ed8;
            cursor: pointer;
            font-size: 12px;
            font-weight: 800;
            line-height: 1.2;
            padding: 4px 8px;
        }
        .city-compare-chip span {
            color: #64748b;
            font-weight: 900;
        }
        .city-compare-actions {
            display: flex;
            gap: 8px;
        }
        .city-compare-primary,
        .city-compare-ghost,
        .city-compare-add-btn {
            border-radius: 7px;
            cursor: pointer;
            font-size: 12px;
            font-weight: 900;
            line-height: 1.2;
            white-space: nowrap;
        }
        .city-compare-primary {
            flex: 1 1 auto;
            border: 1px solid #0ea5e9;
            background: #0ea5e9;
            color: #fff;
            padding: 7px 10px;
        }
        .city-compare-ghost {
            border: 1px solid #cbd5e1;
            background: #fff;
            color: #475569;
            padding: 7px 10px;
        }
        .city-compare-add-btn {
            border: 1px solid #bae6fd;
            background: #f0f9ff;
            color: #0369a1;
            padding: 6px 9px;
        }
        .city-compare-toast {
            position: fixed;
            right: 18px;
            bottom: 112px;
            z-index: 2700;
            max-width: min(320px, calc(100vw - 32px));
            border: 1px solid #bfdbfe;
            border-radius: 8px;
            background: #eff6ff;
            color: #1e40af;
            box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
            font-size: 12px;
            font-weight: 800;
            opacity: 0;
            pointer-events: none;
            transform: translateY(6px);
            transition: opacity 0.16s ease, transform 0.16s ease;
            padding: 8px 10px;
        }
        .city-compare-toast.open {
            opacity: 1;
            transform: translateY(0);
        }

        @media (max-width: 900px) {
            body {
                padding: 12px;
            }
            .header {
                padding: 12px 14px 14px;
            }
            .header-utility {
                align-items: flex-start;
                flex-direction: column;
                gap: 8px;
            }
            .header-brand {
                min-width: 0;
                width: 100%;
            }
            .header-user-tools {
                justify-content: flex-start;
                flex-wrap: wrap;
                width: 100%;
            }
            .global-sku-switch {
                max-width: min(420px, 100%);
            }
            .global-sku-switch select {
                max-width: min(260px, calc(100vw - 150px));
            }
            .user-context-badge {
                max-width: min(420px, 100%);
                flex: 0 1 auto;
                justify-content: flex-start;
            }
            .header h1 {
                flex-wrap: wrap;
                gap: 4px 8px;
            }
            .platform-cn {
                font-size: 20px;
            }
            .platform-en {
                font-size: 14px;
            }
            .analysis-object-badge {
                max-width: 100%;
            }
            .header-controls {
                justify-content: flex-start;
                margin-top: 8px;
            }
            .period-summary {
                max-width: min(100%, 620px);
                font-size: 11px;
            }
        }

        .region-insight {
            display: flex;
            flex-direction: column;
            gap: 14px;
        }

        .region-hero,
        .region-map-card,
        .region-detail-panel,
        .region-table-card {
            background: #fff;
            border: 1px solid #dfe8f3;
            border-radius: 8px;
            box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
        }

        .region-hero {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            padding: 18px 20px;
        }

        .region-eyebrow {
            color: #c91663;
            font-size: 13px;
            font-weight: 800;
            margin-bottom: 4px;
        }

        .region-title-block h2,
        .region-section-head h3,
        .region-map-head h3 {
            margin: 0;
            color: #172033;
            letter-spacing: 0;
        }

        .region-title-block h2 {
            font-size: 26px;
            line-height: 1.15;
        }

        .region-title-block p,
        .region-section-head p,
        .region-map-head p {
            margin: 6px 0 0;
            color: #8293ad;
            font-size: 13px;
            font-weight: 600;
        }

        .region-controls {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            justify-content: flex-end;
        }

        .region-insight[data-region-active-view="city"] .region-controls {
            display: none;
        }

        .region-toolbar {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 10px;
            min-width: 0;
        }

        .region-view-switch {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 3px;
            border: 1px solid #d8e2ef;
            border-radius: 8px;
            background: #f8fafc;
        }

        .region-view-btn {
            min-height: 30px;
            padding: 0 14px;
            border: 0;
            border-radius: 6px;
            background: transparent;
            color: #6b7890;
            font-size: 13px;
            font-weight: 900;
            cursor: pointer;
        }

        .region-view-btn.active {
            background: #fff;
            color: #c91663;
            box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
        }

        .region-metric-btn {
            min-height: 34px;
            padding: 0 14px;
            border: 1px solid #d8e2ef;
            border-radius: 8px;
            background: #fff;
            color: #41506a;
            font-size: 13px;
            font-weight: 800;
            cursor: pointer;
        }

        .region-metric-btn.active {
            color: #c91663;
            background: #fff1f7;
            border-color: #f6a6ce;
        }

        .region-layout {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(280px, 310px);
            gap: 14px;
            align-items: stretch;
        }

        .region-map-card {
            min-width: 0;
            padding: 16px;
        }

        .region-map-head,
        .region-section-head {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 14px;
            margin-bottom: 12px;
        }

        .region-map-head h3,
        .region-section-head h3 {
            font-size: 17px;
        }

        .region-legend {
            display: flex;
            align-items: center;
            gap: 6px;
            color: #6b7890;
            font-size: 12px;
            font-weight: 700;
            white-space: nowrap;
            padding-top: 3px;
        }

        .region-legend-dot {
            width: 10px;
            height: 10px;
            border-radius: 999px;
            display: inline-block;
        }

        .region-legend-bad { background: #fb7185; }
        .region-legend-neutral { background: #d8e2ef; }
        .region-legend-good { background: #34d399; }

        .region-tile-map {
            display: grid;
            grid-template-columns: repeat(8, minmax(68px, 1fr));
            grid-template-rows: repeat(9, 60px);
            gap: 8px;
            min-height: 565px;
            padding: 8px;
            border-radius: 8px;
            background: linear-gradient(180deg, #f8fafc, #ffffff);
            border: 1px solid #e6edf6;
        }

        .region-tile {
            min-width: 0;
            border: 1px solid rgba(100, 116, 139, 0.16);
            border-radius: 8px;
            background: var(--region-fill, #f1f5f9);
            color: #172033;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: flex-start;
            gap: 4px;
            padding: 7px 8px 6px;
            cursor: pointer;
            box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
            transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
        }

        .region-tile:hover,
        .region-tile.selected {
            transform: translateY(-1px);
            border-color: #c91663;
            box-shadow: 0 8px 18px rgba(201, 22, 99, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.62);
        }

        .region-tile-name {
            font-size: 13px;
            font-weight: 900;
            line-height: 1;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 100%;
        }

        .region-tile.high-contrast-name .region-tile-name {
            color: #fff !important;
            text-shadow: 0 1px 2px rgba(15, 23, 42, 0.32);
        }

        .region-tile-line {
            display: flex;
            align-items: baseline;
            gap: 5px;
            max-width: 100%;
            font-size: 12px;
            font-weight: 900;
            line-height: 1;
            color: #1f2937;
            white-space: nowrap;
        }

        .region-tile-value {
            font-size: 12px;
            font-weight: 800;
            line-height: 1;
            color: #475569;
        }

        .region-tile-efficiency {
            display: inline-flex;
            max-width: 100%;
            padding: 1px 5px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.58);
            color: #334155;
            font-size: 10px;
            font-weight: 900;
            line-height: 1.25;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .region-extra-list {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 10px;
        }

        .region-extra-list:empty {
            display: none;
        }

        .region-extra-list button {
            border: 1px solid #d8e2ef;
            background: #fff;
            color: #41506a;
            border-radius: 999px;
            padding: 5px 10px;
            font-size: 12px;
            font-weight: 800;
            cursor: pointer;
        }

        .region-detail-panel {
            padding: 16px;
            min-width: 0;
        }

        .region-empty {
            min-height: 220px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 8px;
            color: #8293ad;
            text-align: center;
        }

        .region-empty strong {
            color: #172033;
            font-size: 18px;
        }

        .region-detail-head {
            display: flex;
            justify-content: space-between;
            gap: 12px;
            align-items: flex-start;
        }

        .region-detail-head span {
            color: #8293ad;
            font-size: 12px;
            font-weight: 800;
            display: block;
        }

        .region-detail-head strong {
            color: #172033;
            font-size: 24px;
            line-height: 1.1;
        }

        .region-detail-head button {
            border: 1px solid #d8e2ef;
            background: #fff;
            color: #41506a;
            border-radius: 8px;
            padding: 7px 10px;
            font-size: 12px;
            font-weight: 900;
            cursor: pointer;
        }

        .region-detail-judgement {
            margin-top: 12px;
            padding: 10px 12px;
            border-radius: 8px;
            background: #fff7ed;
            color: #9a3412;
            font-weight: 900;
            font-size: 13px;
        }

        .region-detail-kpis {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 8px;
            margin-top: 12px;
        }

        .region-kpi {
            border: 1px solid #e8eef6;
            background: #f8fafc;
            border-radius: 8px;
            padding: 9px 10px;
            min-width: 0;
        }

        .region-kpi span,
        .region-kpi em {
            display: block;
            color: #8293ad;
            font-size: 12px;
            font-weight: 800;
            font-style: normal;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .region-kpi strong {
            display: block;
            margin: 3px 0;
            color: #172033;
            font-size: 18px;
            line-height: 1.15;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .region-up { color: #e11d48 !important; }
        .region-down { color: #149646 !important; }
        .region-neutral { color: #8293ad !important; }
        .region-share { color: #075985 !important; }

        .region-detail-subhead {
            color: #41506a;
            font-size: 13px;
            font-weight: 900;
            margin: 14px 0 8px;
        }

        .region-city-list {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .region-city-row {
            display: grid;
            grid-template-columns: 26px minmax(0, 1fr) 34px 76px;
            align-items: center;
            gap: 8px;
            border: 1px solid #e8eef6;
            background: #fff;
            border-radius: 8px;
            padding: 8px 9px;
            color: #41506a;
            cursor: pointer;
            text-align: left;
        }

        .region-city-row:hover {
            border-color: #f6a6ce;
            background: #fff7fb;
        }

        .region-city-rank {
            width: 22px;
            height: 22px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 999px;
            background: #eef2f7;
            color: #41506a;
            font-size: 12px;
            font-weight: 900;
        }

        .region-city-name,
        .region-city-tier,
        .region-city-items {
            min-width: 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            font-weight: 900;
        }

        .region-city-name {
            color: #c91663;
        }

        .region-city-tier {
            text-align: center;
            color: #0f766e;
            background: #dcfce7;
            border-radius: 999px;
            padding: 2px 6px;
            font-size: 12px;
        }

        .region-city-items {
            text-align: right;
            color: #172033;
        }

	        .region-table-card {
	            padding: 16px;
	            overflow: hidden;
	        }

	        [data-region-city-view]:not([hidden]) {
	            display: grid;
	            gap: 14px;
	        }

	        .region-city-primary-card,
	        .region-city-rank-card,
	        .region-city-dashboard .region-chart-panel {
	            border-color: #d9ebe2;
	            background: linear-gradient(180deg, #ffffff 0%, #fbfefc 100%);
	            box-shadow: 0 10px 28px rgba(16, 24, 40, 0.055);
	        }

	        .region-city-primary-card {
	            padding: 18px;
	            border-top: 3px solid var(--tigra-green, #12b76a);
	        }

	        .region-city-primary-card .region-section-head {
	            padding-bottom: 12px;
	            border-bottom: 1px solid #edf2f7;
	        }

	        .region-city-primary-card .region-section-head h3,
	        .region-city-rank-card .region-section-head h3,
	        .region-city-dashboard .region-chart-head h3 {
	            color: #101828;
	        }

	        .region-city-primary-card .region-section-head p,
	        .region-city-rank-card .region-section-head p {
	            max-width: 760px;
	        }

	        .region-city-list-toolbar {
	            display: flex;
	            align-items: center;
	            justify-content: space-between;
	            gap: 12px;
	            margin: 14px 0 12px;
	            padding: 12px;
	            background: #f8fffb;
	            border: 1px solid #d9ebe2;
	            border-radius: 8px;
	            box-shadow: none;
	        }

	        .region-city-list-toolbar p {
	            margin: 0;
	            color: #667085;
	            font-size: 13px;
	            font-weight: 850;
	            line-height: 1.45;
	        }

	        .region-city-list-tools {
	            display: flex;
	            align-items: center;
	            justify-content: flex-end;
	            gap: 12px;
	            flex-wrap: wrap;
	            min-width: 0;
	        }

	        .region-city-tier-filter {
	            display: inline-flex;
	            align-items: center;
	            gap: 8px;
	            color: #667085;
	            font-size: 12px;
	            font-weight: 900;
	            white-space: nowrap;
	        }

	        .region-city-tier-filter select {
	            min-width: 124px;
	            height: 34px;
	            border: 1px solid #cfe7db;
	            border-radius: 8px;
	            background: #fff;
	            color: #344054;
	            font-size: 13px;
	            font-weight: 900;
	            padding: 0 30px 0 10px;
	        }

	        .region-city-summary {
	            display: flex;
	            flex-wrap: wrap;
	            gap: 8px;
	            justify-content: flex-end;
	        }

	        .region-city-tier-summary {
	            margin: 0 0 12px;
	            border: 1px solid #d9ebe2;
	            border-radius: 8px;
	            background: #fff;
	            overflow: hidden;
	        }

	        .region-city-tier-summary-title {
	            display: flex;
	            align-items: baseline;
	            justify-content: space-between;
	            gap: 14px;
	            padding: 10px 12px 8px;
	            border-bottom: 1px solid #edf2ef;
	        }

	        .region-city-tier-summary-title strong {
	            color: #172033;
	            font-size: 13px;
	            font-weight: 950;
	        }

	        .region-city-tier-summary-title span {
	            color: #7b8798;
	            font-size: 11px;
	            font-weight: 750;
	        }

	        .region-city-tier-summary-wrap {
	            overflow-x: auto;
	        }

	        .region-city-tier-summary table {
	            width: 100%;
	            min-width: 1040px;
	            border-collapse: collapse;
	            font-size: 11px;
	        }

	        .region-city-tier-summary th,
	        .region-city-tier-summary td {
	            padding: 7px 9px;
	            border-bottom: 1px solid #f0f3f1;
	            color: #475467;
	            text-align: right;
	            white-space: nowrap;
	        }

	        .region-city-tier-summary thead th {
	            background: #f8fbf9;
	            color: #667085;
	            font-weight: 850;
	        }

	        .region-city-tier-summary th:first-child,
	        .region-city-tier-summary td:first-child {
	            position: sticky;
	            left: 0;
	            z-index: 1;
	            background: #fff;
	            text-align: left;
	        }

	        .region-city-tier-summary thead th:first-child {
	            z-index: 2;
	            background: #f8fbf9;
	        }

	        .region-city-tier-summary tbody tr.is-selected th,
	        .region-city-tier-summary tbody tr.is-selected td {
	            background: #ecfdf3;
	            color: #027a48;
	            font-weight: 850;
	        }

	        .region-city-tier-summary tbody tr.is-selected th:first-child {
	            background: #ecfdf3;
	        }

	        .region-city-tier-summary tbody tr:last-child th,
	        .region-city-tier-summary tbody tr:last-child td {
	            border-bottom: 0;
	        }

	        .region-city-tier-summary button {
	            padding: 0;
	            border: 0;
	            background: transparent;
	            color: inherit;
	            font: inherit;
	            font-weight: 900;
	            cursor: pointer;
	        }

	        .region-city-dashboard {
	            display: grid;
	            grid-template-columns: minmax(0, 1fr);
	            gap: 14px;
	            margin-bottom: 0;
	        }

	        .region-chart-panel {
	            min-width: 0;
	            padding: 16px;
	            border: 1px solid #d9ebe2;
	            border-left: 3px solid var(--tigra-green, #12b76a);
	            border-radius: 8px;
	            background: #fff;
	            box-shadow: 0 10px 28px rgba(16, 24, 40, 0.045);
	        }

	        .region-chart-head {
	            display: flex;
	            justify-content: space-between;
	            align-items: flex-start;
	            gap: 10px;
	            margin-bottom: 8px;
	        }

	        .region-chart-head h3 {
	            margin: 0;
	            color: #172033;
	            font-size: 15px;
	            font-weight: 900;
	            letter-spacing: 0;
	        }

	        .region-chart-head p {
	            margin: 2px 0 0;
	            color: #8293ad;
	            font-size: 11px;
	            font-weight: 800;
	            line-height: 1.35;
	            text-align: right;
	        }

	        .region-city-chart {
	            height: 220px;
	            min-width: 0;
	        }

	        .region-sankey-chart {
	            height: 380px;
	        }

	        #cityHealthScatter {
	            height: 500px !important;
	            margin-top: 8px;
	        }

	        .region-city-filter-bar {
		            display: flex;
		            align-items: center;
		            flex-wrap: wrap;
		            gap: 8px;
	            margin-top: 12px;
	            padding-top: 12px;
	            border-top: 1px solid #edf2f7;
	        }

		        .region-summary-pill {
		            min-width: 94px;
		            border: 1px solid #d9ebe2;
	            border-radius: 8px;
	            background: #fff;
	            padding: 7px 10px;
	        }

        .region-summary-pill em,
        .region-summary-pill strong {
            display: block;
            font-style: normal;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .region-summary-pill em {
            color: #8293ad;
            font-size: 11px;
            font-weight: 900;
        }

        .region-summary-pill strong {
            margin-top: 2px;
            color: #172033;
            font-size: 16px;
            font-weight: 900;
        }

        .region-table-wrap {
            margin-top: 0;
            border-radius: 8px;
            overflow: auto;
            max-height: 560px;
        }

	        #regionProvinceTable,
	        #regionCityTable {
	            width: 100%;
	            border-collapse: collapse;
	            min-width: 1040px;
	        }

	        #regionCityTable {
	            min-width: 1320px;
	        }

        #regionProvinceTable th,
        #regionProvinceTable td,
        #regionCityTable th,
        #regionCityTable td {
            padding: 10px 10px;
            border-bottom: 1px solid #eef2f7;
            color: #2e3b52;
            font-size: 13px;
            font-weight: 700;
            text-align: left;
            white-space: nowrap;
        }

        #regionProvinceTable th,
        #regionCityTable th {
            position: sticky;
            top: 0;
            z-index: 1;
            background: #f8fafc;
            color: #41506a;
            font-weight: 900;
        }

        #regionProvinceTable tbody tr,
        #regionCityTable tbody tr {
            cursor: pointer;
        }

        #regionProvinceTable tbody tr:hover,
        #regionProvinceTable tbody tr.selected,
        #regionCityTable tbody tr:hover {
            background: #fff7fb;
        }

        .region-province-link {
            border: 0;
            background: transparent;
            padding: 0;
            color: #c91663;
            font-size: 14px;
            font-weight: 900;
            cursor: pointer;
        }

        .region-judgement-cell {
            max-width: 170px;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .region-map-metric {
            font-weight: 900 !important;
        }

        .region-row-action {
            min-height: 28px;
            padding: 0 10px;
            border: 1px solid #d8e2ef;
            border-radius: 7px;
            background: #fff;
            color: #41506a;
            font-size: 12px;
            font-weight: 900;
            cursor: pointer;
        }

        .region-row-action:hover {
            border-color: #f6a6ce;
            color: #c91663;
            background: #fff7fb;
        }

	        @media (max-width: 1180px) {
	            .region-layout {
	                grid-template-columns: 1fr;
	            }
	            .region-city-dashboard {
	                grid-template-columns: 1fr;
	            }
	            .region-sankey-chart {
	                height: 360px;
	            }
	            .region-tile-map {
	                grid-template-columns: repeat(8, minmax(54px, 1fr));
	                grid-template-rows: repeat(9, 50px);
	            }
	        }

        @media (max-width: 760px) {
            .region-hero,
            .region-map-head,
            .region-section-head {
                flex-direction: column;
                align-items: stretch;
            }
            .region-controls {
                justify-content: flex-start;
            }
            .region-toolbar {
                align-items: flex-start;
            }
	            .region-city-list-toolbar {
	                flex-direction: column;
	                align-items: stretch;
	            }
	            .region-city-summary {
	                justify-content: flex-start;
	            }
	            .region-city-tier-summary-title {
	                align-items: flex-start;
	                flex-direction: column;
	                gap: 3px;
	            }
		            .region-city-list-tools {
		                justify-content: flex-start;
		            }
	            .region-chart-head {
	                flex-direction: column;
	            }
	            .region-chart-head p {
	                text-align: left;
	            }
	            .region-tile-map {
                display: flex;
                overflow-x: auto;
                min-height: 104px;
                padding-bottom: 10px;
            }
            .region-tile {
                min-width: 86px;
                min-height: 64px;
            }
            .region-legend {
                flex-wrap: wrap;
                white-space: normal;
            }
            .region-detail-kpis {
                grid-template-columns: 1fr;
            }
        }

        /* ===== TIGRA dashboard shell override: adapts the UI demo to the current operating architecture ===== */
        :root {
            --tigra-green: #12b76a;
            --tigra-green-strong: #059669;
            --tigra-green-dark: #047857;
            --tigra-ink: #101828;
            --tigra-muted: #667085;
            --tigra-line: #e7edf2;
            --tigra-bg: #f6fbf8;
            --tigra-card-shadow: 0 12px 32px rgba(16, 24, 40, 0.06);
            --tigra-font: "Alibaba PuHuiTi 3.0", "Alibaba PuHuiTi", "Source Han Sans SC", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", sans-serif;
            --tigra-topbar-height: 138px;
            --tigra-shell-header-height: var(--tigra-topbar-height);
            --tigra-nav-width: 244px;
            --tigra-content-max: 1440px;
        }

        html {
            width: 100%;
            max-width: 100%;
            overflow-x: hidden;
        }

        *,
        *::before,
        *::after {
            box-sizing: border-box;
        }

        body {
            font-family: var(--tigra-font);
            background: radial-gradient(circle at 20% 0%, rgba(18, 183, 106, 0.08), transparent 32%), var(--tigra-bg);
            color: var(--tigra-ink);
            width: 100%;
            max-width: 100%;
            overflow-x: hidden;
            margin: 0;
            padding: 0;
        }

        button,
        input,
        select,
        textarea {
            font-family: var(--tigra-font);
        }

        .container {
            display: grid;
            grid-template-columns: var(--tigra-nav-width) minmax(0, 1fr);
            grid-template-rows: auto minmax(0, 1fr);
            width: 100%;
            max-width: none;
            min-width: 0;
            min-height: 100vh;
            margin: 0;
            overflow: visible;
            border-radius: 0;
            background: var(--tigra-bg);
            box-shadow: none;
        }

        .workspace-nav-toggle {
            position: absolute;
            width: 1px;
            height: 1px;
            opacity: 0;
            pointer-events: none;
        }

        .header {
            grid-column: 2;
            grid-row: 1;
            position: sticky;
            top: 0;
            align-self: start;
            z-index: 60;
            overflow: visible;
            border-bottom: 1px solid var(--tigra-line);
            background: rgba(255, 255, 255, 0.88);
            color: var(--tigra-ink);
            box-sizing: border-box;
            min-height: var(--tigra-topbar-height);
            height: auto;
            padding: 14px 24px 10px;
            backdrop-filter: blur(18px);
        }

        .header h1 {
            color: var(--tigra-ink);
        }

        .header-utility {
            flex-wrap: wrap;
            align-items: flex-start;
            justify-content: flex-start;
            gap: 8px 14px;
        }

        .header-brand {
            flex: 1 1 520px;
            min-width: 0;
        }

        .platform-title-block {
            min-width: 0;
        }

        .analysis-object-badge {
            max-width: none;
            white-space: normal;
        }

        .header-user-tools {
            flex: 1 1 100%;
            flex-wrap: wrap;
            align-items: center;
            justify-content: flex-start;
            gap: 8px;
            min-width: 0;
        }

.platform-title-line {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
    background: transparent;
    color: var(--tigra-ink);
    font-family: "Alibaba PuHuiTi 3.0", "Alibaba PuHuiTi", "Source Han Sans SC", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: clamp(26px, 2.25vw, 32px);
    font-weight: 350;
    line-height: 1.18;
    letter-spacing: 0;
    white-space: nowrap;
}

.header h1.platform-title-line {
    color: var(--tigra-ink);
    font-weight: 350;
}

        .header-context-card {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 4px;
            flex: 1 1 520px;
            max-width: min(100%, 720px);
            min-width: 0;
        }

        .platform-mark {
            width: 48px;
            border-color: rgba(18, 183, 106, 0.18);
            background: #ecfdf3;
            color: var(--tigra-green-dark);
            font-size: 10px;
            letter-spacing: 0.08em;
        }

        .platform-cn {
            color: var(--tigra-ink);
            font-size: 24px;
        }

        .platform-en,
        .platform-subtitle,
        .analysis-object-badge,
        .quick-label,
        .period-label,
        .date-separator,
        .month-select-wrap,
        .period-summary {
            color: var(--tigra-muted);
        }

        .analysis-object-badge {
            color: #344054;
            margin: 0;
            font-family: var(--tigra-font);
            font-size: 18px;
            font-weight: 400;
            line-height: 1.35;
            text-align: left;
            display: flex;
            align-items: baseline;
            flex-wrap: wrap;
            gap: 2px 8px;
        }

        .analysis-object-main {
            font-weight: 520;
        }

        .analysis-object-separator {
            color: #98a2b3;
            font-size: 0.9em;
            font-weight: 450;
        }

        .analysis-object-upc {
            color: #667085;
            font-size: 0.76em;
            font-weight: 450;
        }

        .analysis-object-platform {
            font-weight: 500;
        }

        .global-sku-switch,
        .user-context-badge {
            border-color: #d9ebe2;
            background: #f8fffb;
            color: #344054;
            backdrop-filter: none;
        }

        .global-sku-switch {
            flex: 0 1 320px;
            justify-content: space-between;
            max-width: min(100%, 320px);
            min-height: 38px;
            padding: 5px 10px;
            margin-left: 0;
        }

        .user-context-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            max-width: 100%;
            min-height: 32px;
            padding: 6px 12px;
            border-radius: 999px;
            font-size: 12px;
            font-weight: 800;
            line-height: 1.35;
        }

        .ucb-label {
            display: none;
        }

        .global-sku-switch span {
            color: var(--tigra-muted);
        }

        .global-sku-switch select,
        .month-select,
        .header-date-input {
            border: 1px solid #d9ebe2;
            background: #fff;
            color: #243449;
            color-scheme: light;
        }

        .global-sku-switch select {
            min-height: 28px;
            min-width: 0;
            max-width: 190px;
            padding: 3px 8px;
            font-size: 12px;
        }

        .header-controls {
            justify-content: flex-start;
            align-items: flex-start;
            gap: 6px 10px;
            margin-top: 8px;
        }

        .quick-range-row,
        .period-control-row {
            justify-content: flex-start;
            gap: 6px;
        }

        .quick-btn,
        .header-action-secondary {
            border-color: #d9ebe2;
            background: #fff;
            color: #344054;
        }

        .quick-btn,
        .quick-more summary,
        .month-select,
        .header-date-input {
            min-height: 30px;
            padding: 3px 10px;
            line-height: 1.2;
        }

        .header-action-btn,
        .header-action-secondary {
            min-height: 32px;
            padding: 4px 18px;
            line-height: 1.2;
        }

        .quick-btn:hover,
        .quick-btn.active,
        .quick-btn.active-quick,
        .header-action-secondary:hover {
            border-color: rgba(18, 183, 106, 0.32);
            background: #ecfdf3;
            color: var(--tigra-green-dark);
            box-shadow: none;
        }

        .quick-more summary {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            min-width: 108px;
            min-height: 30px;
            padding: 3px 12px;
            border: 1px solid #d9ebe2;
            border-radius: 16px;
            background: #fff;
            color: #344054;
            font-size: 12px;
            font-weight: 850;
            box-shadow: none;
        }

        .quick-more summary::after {
            content: '▾';
            color: var(--tigra-muted);
            margin-left: 0;
            line-height: 1;
        }

        .quick-more[open] summary {
            border-color: rgba(18, 183, 106, 0.38);
            background: #ecfdf3;
            color: var(--tigra-green-dark);
        }

        .quick-more-menu {
            left: 0;
            right: auto;
            min-width: 176px;
            padding: 10px;
            gap: 8px;
            border: 1px solid #d9ebe2;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.98);
            box-shadow: 0 16px 34px rgba(16, 24, 40, 0.12);
            z-index: 120;
        }

        .quick-more-menu .quick-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            border-color: #d9ebe2;
            background: #fff;
            color: #344054;
            width: 100%;
            height: 38px;
            min-height: 38px;
            padding: 0 14px;
            border-radius: 19px;
            font-size: 14px;
            font-weight: 850;
            line-height: 1;
            white-space: nowrap;
        }

        #weekDesc.period-summary {
            flex: 1 0 100%;
            width: 100%;
            max-width: none;
            min-height: 24px;
            display: inline-flex;
            align-items: center;
            overflow: visible;
            text-overflow: clip;
            white-space: normal;
            color: var(--tigra-muted);
            font-size: 12px;
            font-weight: 750;
            line-height: 1.35;
            user-select: none;
        }

        #weekDesc.period-summary:empty {
            display: none;
        }

        .date-range-picker {
            position: relative;
            display: inline-flex;
            align-items: center;
            min-width: 0;
        }

        .date-range-native-input {
            position: absolute !important;
            width: 1px !important;
            height: 1px !important;
            min-height: 1px !important;
            padding: 0 !important;
            border: 0 !important;
            opacity: 0 !important;
            pointer-events: none !important;
        }

        .header-date-range-trigger {
            display: grid;
            grid-template-columns: minmax(92px, 1fr) 16px minmax(92px, 1fr) 20px;
            align-items: center;
            gap: 6px;
            min-width: 288px;
            min-height: 30px;
            padding: 3px 9px;
            border: 1px solid #d9ebe2;
            border-radius: 8px;
            background: #fff;
            color: #243449;
            font-size: 12px;
            font-weight: 650;
            line-height: 1.2;
            cursor: pointer;
            outline: none;
            transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
        }

        .header-date-range-trigger:hover,
        .header-date-range-trigger:focus-visible,
        .date-range-picker.is-open .header-date-range-trigger {
            border-color: rgba(18, 183, 106, 0.42);
            box-shadow: 0 0 0 3px rgba(18, 183, 106, 0.10);
        }

        .header-date-range-trigger:disabled {
            cursor: not-allowed;
            opacity: 0.58;
            box-shadow: none;
        }

        .date-range-trigger-value {
            min-width: 0;
            overflow: hidden;
            text-align: center;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .date-range-trigger-value.is-empty {
            color: #98a2b3;
            font-weight: 550;
        }

        .date-range-trigger-separator {
            color: #98a2b3;
            text-align: center;
            font-weight: 600;
        }

        .date-range-calendar-icon {
            position: relative;
            display: inline-block;
            width: 16px;
            height: 16px;
            border: 1.5px solid #98a2b3;
            border-radius: 4px;
        }

        .date-range-calendar-icon::before,
        .date-range-calendar-icon::after {
            content: '';
            position: absolute;
            left: 3px;
            right: 3px;
            background: #98a2b3;
        }

        .date-range-calendar-icon::before {
            top: 4px;
            height: 1.5px;
        }

        .date-range-calendar-icon::after {
            top: -3px;
            height: 5px;
            border-left: 2px solid #98a2b3;
            border-right: 2px solid #98a2b3;
            background: transparent;
        }

        .date-range-panel {
            position: absolute;
            top: calc(100% + 8px);
            left: 0;
            z-index: 220;
            width: min(560px, calc(100vw - 24px));
            padding: 10px 12px 8px;
            border: 1px solid #d9ebe2;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.98);
            box-shadow: 0 20px 48px rgba(16, 24, 40, 0.16);
            color: #243449;
        }

        .date-range-panel[hidden] {
            display: none !important;
        }

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

        .date-range-month {
            min-width: 0;
        }

        .date-range-month-header {
            display: grid;
            grid-template-columns: 54px minmax(0, 1fr) 54px;
            align-items: center;
            min-height: 26px;
            margin-bottom: 4px;
        }

        .date-range-month-title {
            text-align: center;
            color: #243449;
            font-size: 13px;
            font-weight: 760;
            letter-spacing: 0;
        }

        .date-range-nav-group {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 2px;
        }

        .date-range-nav-btn {
            width: 22px;
            height: 22px;
            border: 0;
            border-radius: 6px;
            background: transparent;
            color: #344054;
            font-size: 12px;
            font-weight: 760;
            line-height: 1;
            cursor: pointer;
        }

        .date-range-nav-btn:hover,
        .date-range-nav-btn:focus-visible {
            background: #f2f4f7;
            outline: none;
        }

        .date-range-weekdays,
        .date-range-days {
            display: grid;
            grid-template-columns: repeat(7, minmax(0, 1fr));
        }

        .date-range-weekdays {
            margin-bottom: 2px;
            color: #667085;
            font-size: 10px;
            font-weight: 760;
            text-align: center;
        }

        .date-range-weekdays span {
            display: grid;
            min-height: 18px;
            place-items: center;
        }

        .date-range-day {
            display: grid;
            width: 100%;
            height: 26px;
            place-items: center;
            border: 0;
            border-radius: 0;
            background: transparent;
            color: #243449;
            font-size: 11px;
            font-weight: 600;
            line-height: 1;
            cursor: pointer;
        }

        .date-range-day:hover:not(:disabled) {
            background: #f2f4f7;
        }

        .date-range-day.is-muted {
            color: #b8c0cc;
        }

        .date-range-day.is-in-range {
            background: #eef2f1;
        }

        .date-range-day.is-start,
        .date-range-day.is-end {
            background: #222;
            color: #fff;
            font-weight: 800;
        }

        .date-range-day.is-start {
            border-radius: 4px 0 0 4px;
        }

        .date-range-day.is-end {
            border-radius: 0 4px 4px 0;
        }

        .date-range-day.is-start.is-end {
            border-radius: 4px;
        }

        .date-range-day.is-today:not(.is-start):not(.is-end)::after {
            content: '';
            align-self: end;
            width: 4px;
            height: 4px;
            margin-bottom: 3px;
            border-radius: 50%;
            background: #f04438;
        }

        .date-range-day.is-disabled,
        .date-range-day:disabled {
            background: transparent;
            color: #d0d5dd;
            cursor: not-allowed;
        }

        .date-range-panel-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin-top: 8px;
            padding-top: 7px;
            border-top: 1px solid #edf2f7;
            color: #667085;
            font-size: 10px;
            font-weight: 650;
        }

        .date-range-done-btn {
            min-height: 26px;
            padding: 0 11px;
            border: 1px solid var(--tigra-green);
            border-radius: 15px;
            background: var(--tigra-green);
            color: #fff;
            font-size: 10px;
            font-weight: 850;
            cursor: pointer;
        }

        .date-range-done-btn:hover {
            background: var(--tigra-green-strong);
        }

        .bo-date-range-picker {
            position: relative;
            display: inline-flex;
            align-items: center;
            min-width: 0;
        }

        .bo-date-range-trigger.header-date-range-trigger {
            grid-template-columns: minmax(86px, 1fr) 12px minmax(86px, 1fr) 16px;
            min-width: 250px;
            min-height: 30px;
            height: 30px;
            padding: 3px 9px;
            border-color: #dbe3ef;
            background: #f8fafc;
            color: #334155;
            box-shadow: none;
        }

        .bo-date-range-trigger.header-date-range-trigger:hover,
        .bo-date-range-trigger.header-date-range-trigger:focus-visible,
        .bo-date-range-picker.is-open .bo-date-range-trigger.header-date-range-trigger {
            border-color: rgba(18, 183, 106, 0.52);
            background: #fff;
            box-shadow: 0 0 0 3px rgba(18, 183, 106, 0.10);
        }

        .bo-date-range-trigger .date-range-trigger-value,
        .bo-date-range-trigger .date-range-trigger-separator {
            color: #334155;
        }

        .bo-date-range-trigger .date-range-trigger-value.is-empty {
            color: #98a2b3;
        }

        .bo-date-range-panel.date-range-panel {
            position: fixed;
            z-index: 10030;
            color: #243449;
            text-align: left;
        }

        .bo-date-range-panel .date-range-day.is-start,
        .bo-date-range-panel .date-range-day.is-end {
            background: var(--tigra-green);
        }

        .bo-date-range-panel .date-range-day.is-in-range {
            background: #e9f8f0;
        }

        .deep-date-range-picker {
            position: relative;
            display: inline-flex;
            align-items: center;
            min-width: 0;
        }

        .deep-date-range-trigger.header-date-range-trigger {
            grid-template-columns: minmax(84px, 1fr) 12px minmax(84px, 1fr) 16px;
            min-width: 238px;
            min-height: 30px;
            padding: 3px 10px;
            border-color: rgba(255, 255, 255, 0.74);
            border-radius: 16px;
            background: rgba(255, 255, 255, 0.18);
            color: #fff;
            box-shadow: none;
        }

        .deep-date-range-trigger.header-date-range-trigger:hover,
        .deep-date-range-trigger.header-date-range-trigger:focus-visible,
        .deep-date-range-picker.is-open .deep-date-range-trigger.header-date-range-trigger {
            border-color: rgba(255, 255, 255, 0.94);
            background: rgba(255, 255, 255, 0.28);
            box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
        }

        .deep-date-range-trigger .date-range-trigger-value,
        .deep-date-range-trigger .date-range-trigger-separator {
            color: rgba(255, 255, 255, 0.96);
        }

        .deep-date-range-trigger .date-range-trigger-value.is-empty {
            color: rgba(255, 255, 255, 0.66);
        }

        .deep-date-range-trigger .date-range-calendar-icon {
            border-color: rgba(255, 255, 255, 0.82);
        }

        .deep-date-range-trigger .date-range-calendar-icon::before {
            background: rgba(255, 255, 255, 0.82);
        }

        .deep-date-range-trigger .date-range-calendar-icon::after {
            border-left-color: rgba(255, 255, 255, 0.82);
            border-right-color: rgba(255, 255, 255, 0.82);
        }

        .deep-date-range-panel {
            z-index: 10020;
            color: #243449;
            text-align: left;
        }

        .deep-date-range-panel .date-range-day.is-start,
        .deep-date-range-panel .date-range-day.is-end {
            background: #7c3aed;
        }

        .deep-date-range-panel .date-range-day.is-in-range {
            background: #f0eaff;
        }

        .deep-date-range-panel .date-range-done-btn {
            border-color: #7c3aed;
            background: #7c3aed;
        }

        .deep-date-range-panel .date-range-done-btn:hover {
            background: #6d28d9;
        }

        .deep-date-apply-btn {
            min-height: 30px;
            padding: 4px 16px;
            border: 1.5px solid rgba(255, 255, 255, 0.85);
            border-radius: 16px;
            background: rgba(255, 255, 255, 0.25);
            color: #fff;
            font-size: 12px;
            font-weight: 700;
            cursor: pointer;
        }

        .deep-date-apply-btn:hover {
            background: rgba(255, 255, 255, 0.40);
        }

        .header-action-btn,
        .data-mgr-btn,
        .settings-btn {
            border: 1px solid var(--tigra-green);
            background: var(--tigra-green);
            color: #fff;
            box-shadow: 0 8px 18px rgba(18, 183, 106, 0.2);
        }

        .header-action-btn:hover,
        .data-mgr-btn:hover,
        .settings-btn:hover {
            background: var(--tigra-green-strong);
        }

        .main-workspace-nav {
            grid-column: 1;
            grid-row: 1 / span 2;
            position: sticky;
            top: 0;
            align-self: start;
            z-index: 70;
            display: flex;
            flex-direction: column;
            align-items: stretch;
            justify-content: flex-start;
            gap: 18px;
            box-sizing: border-box;
            height: 100dvh;
            max-height: 100dvh;
            min-height: 0;
            overflow: hidden;
            padding: 22px 12px;
            border-right: 1px solid var(--tigra-line);
            border-bottom: 0;
            background: rgba(255, 255, 255, 0.92);
        }

        .container:has(.workspace-nav-toggle:checked) {
            grid-template-columns: minmax(0, 1fr);
        }

        .container:has(.workspace-nav-toggle:checked) .main-workspace-nav {
            display: none;
        }

        .container:has(.workspace-nav-toggle:checked) .header,
        .container:has(.workspace-nav-toggle:checked) #tabContentContainer {
            grid-column: 1;
            max-width: 100vw;
        }

        .nav-collapse-btn,
        .nav-restore-btn {
            flex: 0 0 auto;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 22px;
            height: 52px;
            min-height: 52px;
            border: 1px solid rgba(18, 183, 106, 0.24);
            border-radius: 999px;
            background: #fff;
            color: var(--tigra-green-strong);
            cursor: pointer;
            font-size: 24px;
            font-weight: 700;
            line-height: 1;
            font-family: var(--tigra-font);
            transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
        }

        .nav-collapse-btn {
            position: absolute;
            top: 50%;
            right: -12px;
            z-index: 20;
            transform: translateY(-50%);
            box-shadow: 0 8px 18px rgba(16, 24, 40, 0.08);
        }

        .nav-collapse-btn:hover,
        .nav-restore-btn:hover {
            border-color: rgba(18, 183, 106, 0.34);
            background: #f8fffb;
            color: var(--tigra-green-dark);
            box-shadow: 0 8px 18px rgba(16, 24, 40, 0.08);
        }

        .nav-collapse-btn span,
        .nav-restore-btn span {
            display: block;
            transform: translateY(-1px);
        }

        .nav-restore-btn {
            position: fixed;
            top: 50%;
            left: 8px;
            z-index: 80;
            display: none;
            transform: translateY(-50%);
            box-shadow: 0 12px 28px rgba(16, 24, 40, 0.12);
        }

        .container:has(.workspace-nav-toggle:checked) .nav-restore-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .nav-brand-panel {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 6px;
            padding: 0 0 18px;
            border-bottom: 1px solid var(--tigra-line);
            overflow: visible;
        }

        .nav-brand-logo {
            flex: 0 0 auto;
            width: 184px;
            height: 78px;
            max-width: 100%;
            object-fit: cover;
            object-position: center;
        }

        .nav-brand-slogan {
            color: var(--tigra-green-dark);
            font-family: var(--tigra-font);
            font-size: 13px;
            font-weight: 650;
            line-height: 1.1;
            letter-spacing: 0;
            text-align: center;
            white-space: nowrap;
        }

        .nav-brand-copy strong,
        .nav-side-note strong,
        .nav-health-panel strong {
            display: block;
            color: var(--tigra-ink);
            font-size: 13px;
            font-weight: 900;
            line-height: 1.35;
        }

        .nav-brand-copy span,
        .nav-side-note span,
        .nav-health-panel span {
            display: block;
            margin-top: 4px;
            color: var(--tigra-muted);
            font-size: 11px;
            font-weight: 700;
            line-height: 1.45;
        }

        .nav-section,
        .nav-section-tabs,
        .nav-section-links {
            flex: 0 0 auto;
            width: 100%;
            flex-direction: column;
            align-items: stretch;
            gap: 6px;
            overflow: visible;
            padding: 0;
        }

        .main-workspace-nav .nav-section-tabs {
            flex: 1 1 auto;
            min-height: 96px;
            overflow-x: hidden;
            overflow-y: auto;
            overscroll-behavior: contain;
            padding-right: 2px;
        }

        .main-workspace-nav .nav-section-links {
            flex: 0 0 auto;
        }

        .tab-btn,
        .nav-link-btn {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            width: 100%;
            min-width: 0;
            min-height: 38px;
            border: 1px solid transparent;
            border-radius: 8px;
            background: transparent;
            color: #667085;
            padding: 0 11px;
            text-align: left;
            font-size: 13px;
            font-weight: 800;
            white-space: nowrap;
        }

        .tab-btn:hover,
        .nav-link-btn:hover {
            border-color: #d9f3e7;
            background: #f0fdf4;
            color: var(--tigra-green-dark);
        }

        .tab-btn.active,
        .nav-warroom-tab.active {
            border-color: #d9f3e7;
            border-bottom-color: #d9f3e7;
            background: linear-gradient(135deg, #ecfdf3 0%, #f8fffb 100%);
            color: var(--tigra-green-dark);
            box-shadow: inset 3px 0 0 var(--tigra-green);
        }

        .nav-warroom-tab {
            color: var(--tigra-green-dark);
        }

        .nav-link-primary {
            border-color: rgba(18, 183, 106, 0.16);
            background: #f8fffb;
            color: var(--tigra-green-dark);
        }

        .nav-section-admin {
            display: grid;
            grid-template-columns: 1fr;
            gap: 7px;
            padding-top: 10px;
            border-top: 1px solid var(--tigra-line);
        }

        .nav-admin-btn {
            border-color: rgba(18, 183, 106, 0.2);
            background: #0fbf72;
            color: #fff;
            justify-content: center;
            box-shadow: 0 10px 20px rgba(18, 183, 106, 0.16);
        }

        .nav-admin-btn:hover {
            background: var(--tigra-green-strong);
            color: #fff;
        }

        .nav-tool-row {
            display: grid;
            grid-template-columns: repeat(3, 38px);
            gap: 8px;
            padding-top: 6px;
        }

        .nav-user-footer {
            position: relative;
            flex: 0 0 auto;
            display: flex;
            align-items: flex-end;
            justify-content: center;
            width: 100%;
            margin-top: auto;
            padding-top: 14px;
            padding-bottom: 2px;
            border-top: 1px solid var(--tigra-line);
        }

        .nav-user-footer .user-context-badge {
            width: 100%;
            min-height: 38px;
            background: #f8fffb;
            text-align: center;
        }

        .user-context-badge:hover,
        .user-context-badge[aria-expanded="true"] {
            border-color: rgba(18, 183, 106, 0.34);
            background: #f0fdf4;
            color: var(--tigra-green-dark);
            box-shadow: 0 8px 18px rgba(16, 24, 40, 0.08);
        }

        .user-context-badge:focus-visible {
            outline: 2px solid rgba(18, 183, 106, 0.36);
            outline-offset: 3px;
        }

        .user-context-menu {
            position: absolute;
            left: 50%;
            bottom: calc(100% + 10px);
            z-index: 90;
            width: min(180px, calc(100vw - 28px));
            padding: 6px;
            border: 1px solid #d9ebe2;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.98);
            box-shadow: 0 18px 38px rgba(16, 24, 40, 0.14);
            transform: translateX(-50%);
        }

        .user-context-menu[hidden] {
            display: none;
        }

        .user-context-menu::after {
            content: "";
            position: absolute;
            left: 50%;
            bottom: -6px;
            width: 10px;
            height: 10px;
            border-right: 1px solid #d9ebe2;
            border-bottom: 1px solid #d9ebe2;
            background: rgba(255, 255, 255, 0.98);
            transform: translateX(-50%) rotate(45deg);
        }

        .user-context-menu-item {
            position: relative;
            z-index: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            min-height: 36px;
            border: 0;
            border-radius: 9px;
            background: #fff;
            color: #b42318;
            font-family: var(--tigra-font);
            font-size: 13px;
            font-weight: 650;
            line-height: 1.2;
            cursor: pointer;
        }

        .user-context-menu-item:hover,
        .user-context-menu-item:focus-visible {
            background: #fff4f3;
            outline: none;
        }

        .user-context-menu-item:disabled {
            color: #98a2b3;
            cursor: wait;
        }

        .nav-icon-btn {
            position: relative;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 38px;
            height: 38px;
            border: 1px solid #d9ebe2;
            border-radius: 9px;
            background: #fff;
            color: #667085;
            cursor: pointer;
            transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
        }

        .nav-icon-btn:hover {
            border-color: rgba(18, 183, 106, 0.34);
            background: #f0fdf4;
            color: var(--tigra-green-dark);
            box-shadow: 0 8px 18px rgba(16, 24, 40, 0.08);
        }

        .nav-icon-btn img {
            display: block;
            width: 22px;
            height: 22px;
            object-fit: contain;
            pointer-events: none;
        }

        .nav-side-note,
        .nav-health-panel {
            border: 1px solid var(--tigra-line);
            border-radius: 8px;
            background: #fff;
            padding: 12px;
            box-shadow: 0 8px 18px rgba(16, 24, 40, 0.04);
        }

        .nav-side-note button {
            width: 100%;
            margin-top: 10px;
            border: 0;
            border-radius: 7px;
            background: var(--tigra-green);
            color: #fff;
            min-height: 34px;
            font-size: 12px;
            font-weight: 900;
            cursor: pointer;
        }

        #tabContentContainer {
            grid-column: 2;
            grid-row: 2;
            width: 100%;
            max-width: calc(100vw - var(--tigra-nav-width));
            min-width: 0;
            overflow-x: hidden;
        }

        .header {
            max-width: calc(100vw - var(--tigra-nav-width));
            min-width: 0;
        }

        .master-data-loading,
        .master-data-error {
            display: grid;
            min-height: 320px;
            place-items: center;
            color: var(--tigra-muted);
            font-size: 13px;
        }

        .master-data-error {
            color: #b42318;
        }

        .master-data-workspace [hidden] {
            display: none !important;
        }

        body.settings-workspace-open .header-controls {
            display: none !important;
        }

        body.settings-workspace-open .header {
            min-height: 92px;
        }

        @media (min-width: 1121px) {
            .container {
                grid-template-rows: var(--tigra-shell-header-height) minmax(0, 1fr);
            }

            .header {
                position: fixed;
                top: 0;
                right: 0;
                left: var(--tigra-nav-width);
                width: auto;
                max-width: none;
            }

            .main-workspace-nav {
                position: fixed;
                top: 0;
                left: 0;
                width: var(--tigra-nav-width);
            }

            .container:has(.workspace-nav-toggle:checked) .header {
                left: 0;
            }
        }

        .tab-content {
            width: min(100%, var(--tigra-content-max));
            max-width: 100%;
            min-width: 0;
            margin: 0 auto;
            padding: 24px 28px 34px;
        }

        .wr-shell,
        .cg-shell {
            width: 100%;
            max-width: 100%;
            min-width: 0;
        }

        .region-insight,
        .region-hero,
        .region-layout,
        .region-map-card,
        .region-detail-panel,
        .region-table-card,
        .region-city-dashboard,
        .region-chart-panel,
        .kpi-container,
        .drag-cards-container,
        .wr-summary,
        .wr-investment-radar,
        .wr-radar,
        .cg-kpi-grid,
        .cg-section,
        .chain-share-insights,
        .chain-share-grid {
            max-width: 100%;
            min-width: 0;
        }

        .chart-container,
        .table-container,
        .wr-table-wrap,
        .cg-table-wrap,
        .region-table-wrap {
            max-width: 100%;
        }

        .wr-head,
        .cg-head {
            padding: 0;
        }

        .wr-eyebrow,
        .cg-eyebrow,
        .bo-eyebrow {
            color: var(--tigra-green-dark);
        }

        .wr-btn,
        .wr-mini-btn.primary,
        .bo-primary-action {
            border-color: var(--tigra-green);
            background: var(--tigra-green);
            color: #fff;
        }

        .wr-btn:hover,
        .wr-mini-btn.primary:hover,
        .bo-primary-action:hover {
            background: var(--tigra-green-strong);
        }

        .wr-btn-ghost,
        .wr-filter,
        .wr-tool-btn,
        .wr-link,
        .wr-tier-filter,
        .wr-condition {
            border-color: #dfe9e4;
            background: #fff;
            color: #475467;
        }

        .wr-filter.active,
        .wr-link:hover,
        .wr-plan-metric-tab.active,
        .cg-filter.active {
            border-color: rgba(18, 183, 106, 0.28);
            background: #ecfdf3;
            color: var(--tigra-green-dark);
        }

        .wr-summary {
            grid-template-columns: repeat(7, minmax(0, 1fr));
            gap: 8px;
            margin-bottom: 8px;
        }

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

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

        }

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

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

        }
        @media (max-width: 920px) {
            .wr-summary {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

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

        @media (max-width: 640px) {
            .wr-summary,
            .wr-flow-grid {
                grid-template-columns: 1fr;
            }

        }

        .wr-issue-queue {
            border: 1px solid var(--tigra-line);
            border-radius: 8px;
            background: #fff;
            box-shadow: var(--tigra-card-shadow);
            margin: 0 0 14px;
            padding: 14px;
        }

        .wr-issue-drawer .wr-issue-queue {
            border: 0;
            box-shadow: none;
            margin: 0;
            padding: 10px 12px 14px;
        }

        .wr-issue-policy {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: var(--tigra-muted);
            font-size: 12px;
            font-weight: 850;
        }

        .wr-issue-policy b {
            border: 1px solid rgba(18, 183, 106, 0.24);
            border-radius: 999px;
            background: #ecfdf3;
            color: var(--tigra-green-dark);
            padding: 5px 9px;
        }

        .wr-issue-primary,
        .wr-issue-watch {
            display: grid;
            gap: 10px;
        }

        .wr-issue-primary {
            grid-template-columns: 1fr;
        }

        .wr-issue-watch {
            margin-top: 12px;
            grid-template-columns: 1fr;
        }

        .wr-issue-watch-title {
            grid-column: 1 / -1;
            color: var(--tigra-muted);
            font-size: 12px;
            font-weight: 900;
        }

        .wr-issue-card {
            display: grid;
            grid-template-columns: 54px minmax(0, 1.5fr) minmax(220px, 0.8fr);
            gap: 14px;
            border: 1px solid #e5eee8;
            border-radius: 8px;
            background: #f8fbf9;
            padding: 14px;
            min-width: 0;
        }

        .wr-issue-card.wr-issue-risk {
            border-color: #ffd7d7;
            background: #fff7f7;
        }

        .wr-issue-card.wr-issue-opportunity {
            border-color: #c9f4da;
            background: #f2fff7;
        }

        .wr-issue-rank {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 42px;
            height: 28px;
            border-radius: 8px;
            background: var(--tigra-ink);
            color: #fff;
            font-size: 11px;
            font-weight: 950;
        }

        .wr-issue-main,
        .wr-issue-side {
            min-width: 0;
        }

        .wr-issue-title {
            display: flex;
            align-items: center;
            gap: 7px;
            flex-wrap: wrap;
            min-width: 0;
        }

        .wr-issue-title strong {
            color: var(--tigra-ink);
            font-size: 15px;
            font-weight: 950;
            line-height: 1.2;
        }

        .wr-issue-title em {
            color: var(--tigra-muted);
            font-size: 11px;
            font-style: normal;
            font-weight: 850;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .wr-issue-watch-flag {
            border-radius: 999px;
            background: #fff7ed;
            color: #c2410c;
            padding: 3px 7px;
            font-size: 10px;
            font-weight: 950;
            white-space: nowrap;
        }

        .wr-issue-type {
            margin-top: 6px;
            color: var(--tigra-green-dark);
            font-size: 13px;
            font-weight: 950;
            line-height: 1.25;
        }

        .wr-issue-main p {
            margin: 5px 0 0;
            color: #475467;
            font-size: 12px;
            font-weight: 760;
            line-height: 1.45;
        }

        .wr-issue-evidence {
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
            margin-top: 9px;
        }

        .wr-issue-evidence span {
            border-radius: 999px;
            background: #fff;
            color: #475467;
            padding: 4px 7px;
            font-size: 10px;
            font-weight: 850;
        }

        .wr-issue-side {
            border-left: 1px solid rgba(16, 24, 40, 0.06);
            display: grid;
            grid-template-columns: 1fr;
            gap: 8px;
            align-content: start;
            align-items: start;
            padding-left: 14px;
        }

        .wr-issue-side strong,
        .wr-issue-side span,
        .wr-issue-side em {
            display: block;
            min-width: 0;
        }

        .wr-issue-side strong {
            color: var(--tigra-ink);
            font-size: 15px;
            font-weight: 950;
            white-space: nowrap;
        }

        .wr-issue-side span,
        .wr-issue-side em {
            color: var(--tigra-muted);
            font-size: 11px;
            font-style: normal;
            font-weight: 800;
            overflow-wrap: anywhere;
        }

        .wr-issue-actions {
            display: inline-flex;
            gap: 6px;
            justify-content: flex-start;
            white-space: nowrap;
        }

        .wr-context-strip {
            display: grid;
            grid-template-columns: repeat(2, minmax(220px, 1fr));
            gap: 12px;
            margin: 0 0 14px;
        }

        .wr-context-card {
            min-width: 0;
            border: 1px solid var(--tigra-line);
            border-radius: 8px;
            background: #fff;
            padding: 12px 14px;
            box-shadow: var(--tigra-card-shadow);
        }

        .wr-context-card span,
        .wr-context-card em {
            display: block;
            overflow: hidden;
            color: var(--tigra-muted);
            font-size: 11px;
            font-style: normal;
            font-weight: 800;
            line-height: 1.35;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .wr-context-card strong {
            display: block;
            margin: 7px 0 5px;
            color: var(--tigra-ink);
            font-size: 15px;
            font-weight: 950;
            line-height: 1.28;
            overflow-wrap: anywhere;
        }

        .wr-metric,
        .wr-radar,
        .wr-actions,
        .cg-kpi,
        .cg-section,
        .cg-detail,
        .cg-note,
        .bo-panel,
        .bo-kpi,
        .bo-section {
            border-color: var(--tigra-line);
            border-radius: 8px;
            box-shadow: var(--tigra-card-shadow);
        }

        .wr-metric:first-child {
            background: #ecfdf3;
            color: var(--tigra-ink);
            border-color: #bbf7d0;
            box-shadow: var(--tigra-card-shadow);
        }

        .wr-metric:first-child .wr-metric-label {
            color: #047857;
        }

        .wr-metric:first-child .wr-metric-value {
            color: var(--tigra-ink);
        }

        .wr-metric:first-child .wr-metric-sub {
            color: #64748b;
        }

        .wr-metric:first-child .wr-metric-delta {
            background: rgba(18, 183, 106, 0.12);
            color: #047857;
        }

        .wr-metric:first-child .wr-help {
            border-color: rgba(18, 183, 106, 0.28);
            background: #fff;
            color: #047857;
        }

        .wr-competition-metric .wr-metric-value {
            font-size: 15px;
            line-height: 1.25;
            white-space: normal;
        }

        .wr-competition-label {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 6px;
            min-width: 0;
        }

        .wr-competition-label span {
            min-width: 0;
        }

        .wr-competition-label em {
            flex: 0 1 auto;
            min-width: 0;
            max-width: 76px;
            overflow: hidden;
            color: #94a3b8;
            font-style: normal;
            font-weight: 700;
            text-align: right;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .wr-competition-pair {
            display: grid;
            gap: 3px;
            margin-top: 3px;
            min-width: 0;
        }

        .wr-competition-row {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            align-items: center;
            gap: 8px;
            min-width: 0;
            border-radius: 7px;
            background: #f8fbf9;
            padding: 3px 6px;
        }

        .wr-competition-row.own {
            grid-template-columns: minmax(0, 1fr) auto;
            padding: 3px 6px;
        }

        .wr-competition-row span {
            min-width: 0;
            color: var(--tigra-muted);
            font-size: 10.5px;
            font-weight: 850;
            line-height: 1.25;
            overflow-wrap: anywhere;
        }

        .wr-competition-row strong {
            color: var(--tigra-ink);
            font-size: 13px;
            font-weight: 950;
            line-height: 1.1;
            white-space: nowrap;
        }

        .wr-competition-row.own {
            background: #ecfdf3;
        }

        .wr-competition-row.own span {
            color: #047857;
            font-weight: 950;
        }

        .wr-competition-row.own strong {
            color: #047857;
        }

        .wr-competition-row.rival strong {
            color: #1d4ed8;
        }

        .wr-metric-warn .wr-metric-value {
            color: #b45309;
        }

        .wr-competition-overview {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 10px;
            margin-bottom: 12px;
        }

        .wr-competition-overview div {
            min-width: 0;
            border: 1px solid #e5eee8;
            border-radius: 8px;
            background: #f8fbf9;
            padding: 10px;
        }

        .wr-competition-overview span,
        .wr-competition-overview em {
            display: block;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            color: var(--tigra-muted);
            font-size: 11px;
            font-style: normal;
            font-weight: 850;
        }

        .wr-competition-overview strong {
            display: block;
            margin: 5px 0 3px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            color: var(--tigra-ink);
            font-size: 18px;
            font-weight: 950;
        }

        .wr-competition-brand-list {
            border: 1px solid #e5eee8;
            border-radius: 8px;
            background: #fff;
            overflow: hidden;
        }

        .wr-competition-brand-row {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            gap: 12px;
            align-items: center;
            min-height: 38px;
            padding: 0 12px;
            border-top: 1px solid #f1f5f9;
        }

        .wr-competition-brand-row:first-child {
            border-top: 0;
        }

        .wr-competition-brand-row.own {
            background: #ecfdf3;
        }

        .wr-competition-brand-row span {
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            color: #344054;
            font-size: 12px;
            font-weight: 850;
        }

        .wr-competition-brand-row strong {
            font-size: 13px;
            font-weight: 950;
            white-space: nowrap;
        }

        .wr-competition-note {
            margin-top: 10px;
            border-radius: 8px;
            background: #f8fafc;
            color: #64748b;
            padding: 9px 10px;
            font-size: 12px;
            font-weight: 750;
            line-height: 1.5;
        }

        .wr-object,
        .cg-chain-link,
        .bo-object-link,
        .region-province-link {
            color: var(--tigra-green-dark);
        }

        .wr-table tr:hover td,
        .cg-table tr.active td,
        .cg-table tr:hover td,
        #regionProvinceTable tbody tr:hover,
        #regionProvinceTable tbody tr.selected,
        #regionCityTable tbody tr:hover {
            background: #f0fdf4;
        }

        .wr-note-card,
        .bo-action-strip {
            border-left-color: var(--tigra-green);
        }

        .wr-note-fragment {
            background: #ecfdf3;
            color: var(--tigra-green-dark);
        }

        .wr-note-input:focus {
            border-color: var(--tigra-green);
            box-shadow: 0 0 0 3px rgba(18, 183, 106, 0.12);
        }

        @media (max-width: 1120px) {
            .container {
                grid-template-columns: 1fr;
                grid-template-rows: auto auto minmax(0, 1fr);
            }
            .container:has(.workspace-nav-toggle:checked) {
                grid-template-rows: auto minmax(0, 1fr);
            }
            .main-workspace-nav {
                grid-column: 1;
                grid-row: 1;
                position: static;
                height: auto;
                max-height: none;
                flex-direction: row;
                flex-wrap: wrap;
                overflow: visible;
                padding: 14px;
                border-right: 0;
                border-bottom: 1px solid var(--tigra-line);
            }
            .nav-brand-panel {
                width: 100%;
                flex-direction: column;
                align-items: center;
                gap: 6px;
            }
            .nav-brand-logo {
                flex-basis: auto;
                width: 240px;
                height: 88px;
            }
            .nav-section-tabs,
            .nav-section-links {
                flex: 1 1 320px;
                min-height: 0;
                overflow: visible;
                padding-right: 0;
            }
            .nav-user-footer {
                flex: 1 1 100%;
                justify-content: flex-end;
                margin-top: 0;
            }
            .nav-user-footer .user-context-badge {
                width: auto;
                min-width: 220px;
            }
            .nav-side-note,
            .nav-health-panel {
                flex: 1 1 220px;
            }
            .header,
            #tabContentContainer {
                grid-column: 1;
                width: 100%;
                max-width: 100vw;
            }
            .header {
                grid-row: 2;
                position: static;
                top: auto;
                height: auto;
                min-height: 0;
            }
            .container:has(.workspace-nav-toggle:checked) .header {
                grid-row: 1;
            }
            #tabContentContainer {
                grid-row: 3;
            }
            .container:has(.workspace-nav-toggle:checked) #tabContentContainer {
                grid-row: 2;
            }
        }

        @media (max-width: 760px) {
            .main-workspace-nav {
                gap: 10px;
                padding: 12px;
            }
            .nav-brand-panel {
                padding-bottom: 10px;
            }
            .nav-brand-logo {
                width: 168px;
                height: 64px;
            }
            .nav-section-tabs,
            .nav-section-links {
                display: grid;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 6px;
                flex-basis: 100%;
            }
            .tab-btn,
            .nav-link-btn {
                min-height: 34px;
                padding: 0 9px;
                font-size: 12px;
            }
            .nav-side-note,
            .nav-health-panel {
                display: none;
            }
            .header,
            .tab-content {
                padding-left: 16px;
                padding-right: 16px;
            }
            .header-utility,
            .wr-head,
            .cg-head {
                flex-direction: column;
                align-items: stretch;
            }
            .header-brand,
            .header-user-tools {
                flex: 0 1 auto;
            }
            .header-user-tools {
                flex-wrap: wrap;
            }
            .platform-title-line {
                display: block;
                width: 100%;
                max-width: 100%;
                font-size: 21px;
                white-space: normal;
                overflow-wrap: anywhere;
            }
            .header-context-card {
                align-items: flex-start;
                min-width: 0;
                max-width: 100%;
                width: 100%;
            }
            .analysis-object-badge {
                text-align: left;
                font-size: 16px;
            }
            .user-context-badge {
                max-width: 100%;
            }
            .wr-summary {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
            .wr-issue-primary,
            .wr-issue-watch {
                grid-template-columns: 1fr;
            }
            .wr-issue-card {
                grid-template-columns: 42px minmax(0, 1fr);
            }
            .wr-issue-side {
                grid-column: 1 / -1;
                border-top: 1px solid rgba(16, 24, 40, 0.06);
                border-left: 0;
                grid-template-columns: 1fr;
                padding-left: 0;
                padding-top: 9px;
            }
            .wr-issue-actions {
                justify-content: flex-start;
            }
            .wr-context-strip {
                grid-template-columns: repeat(2, minmax(150px, 1fr));
            }
        }

        @media (max-width: 640px) {
            .header-logo-watermark {
                display: none;
            }
            .header-brand {
                align-items: flex-start;
            }
            .platform-mark {
                width: 34px;
                height: 34px;
                font-size: 12px;
            }
            .platform-cn {
                font-size: 18px;
            }
            .platform-en,
            .platform-subtitle,
            .analysis-object-badge {
                font-size: 14px;
            }
            .nav-brand-slogan {
                font-size: 12px;
            }
            .header-user-tools {
                flex-wrap: wrap;
            }
            .global-sku-switch {
                width: 100%;
            }
            .global-sku-switch select {
                flex: 1 1 auto;
                max-width: none;
            }
            .user-context-badge {
                max-width: 100%;
            }
            .data-mgr-btn,
            .settings-btn,
            .quick-btn,
            .header-action-btn,
            .header-action-secondary {
                padding-left: 10px;
                padding-right: 10px;
            }
            .quick-label {
                display: none;
            }
            .date-range-picker,
            .header-date-range-trigger {
                width: 100%;
            }
            .header-date-range-trigger {
                grid-template-columns: minmax(82px, 1fr) 14px minmax(82px, 1fr) 18px;
                min-width: 0;
                font-size: 11px;
            }
            .date-range-panel {
                position: fixed;
                top: 72px;
                left: 12px !important;
                max-height: min(64vh, 500px);
                width: calc(100vw - 24px);
                overflow-y: auto;
                padding: 9px;
            }
            .date-range-panel-main {
                grid-template-columns: minmax(0, 1fr);
                gap: 10px;
            }
            .date-range-month-header {
                grid-template-columns: 54px minmax(0, 1fr) 54px;
            }
            .date-range-day {
                height: 26px;
            }
            .deep-date-control-row {
                align-items: stretch !important;
            }
            .deep-date-range-picker,
            .deep-date-range-trigger.header-date-range-trigger {
                width: 100%;
            }
            .bo-date-tools {
                width: 100%;
            }
            .bo-date-range-picker,
            .bo-date-range-trigger.header-date-range-trigger {
                width: 100%;
            }
            .bo-date-range-trigger.header-date-range-trigger {
                grid-template-columns: minmax(82px, 1fr) 12px minmax(82px, 1fr) 16px;
                min-width: 0;
            }
            .deep-date-range-trigger.header-date-range-trigger {
                grid-template-columns: minmax(82px, 1fr) 12px minmax(82px, 1fr) 16px;
                min-width: 0;
            }
            .deep-date-apply-btn {
                width: 100%;
            }
            .header-date-input {
                width: 132px;
            }
            .cg-tier-body {
                grid-template-columns: 1fr;
            }
            .cg-tier-head,
            .cg-tier-actions {
                align-items: flex-start;
                flex-direction: column;
            }
            .cg-tier-actions {
                align-items: stretch;
            }
        }
    </style>
