/* Existing analytical layouts; shared UI tokens and components live in ui-theme.css. */

:root{--bg:#f6f7fb;--card:#fff;--text:#182033;--muted:#7a8498;--line:#e7eaf0;--accent:#315efb;--soft:#eef2ff;--green:#159866;--orange:#d98a18;--red:#d94b58}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",Arial,sans-serif}.app{display:flex;min-height:100vh}.side{width:220px;background:#111827;color:#cbd5e1;padding:20px 14px;flex:none}.logo{font-size:18px;font-weight:800;color:#fff;padding:6px 10px 24px}.sublogo{font-size:12px;color:#8190a8;font-weight:500;margin-top:4px}.nav{display:grid;gap:5px}.nav button{border:0;background:transparent;color:#aeb9cb;text-align:left;padding:11px 12px;border-radius:9px;cursor:pointer;font-size:14px}.nav button.active{background:#202d43;color:#fff}.main{flex:1;padding:24px;min-width:0}.page{display:none}.page.active{display:block}.head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}.title{font-size:24px;font-weight:800}.desc{color:var(--muted);margin-top:4px}.actions{display:flex;gap:8px;flex-wrap:wrap}.btn{border:1px solid var(--line);background:#fff;color:var(--text);padding:8px 12px;border-radius:8px;cursor:pointer}.btn.primary{background:var(--accent);border-color:var(--accent);color:#fff}.btn.ghost{background:transparent}.filters{background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px;display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-bottom:16px}.filters select,.filters input{border:1px solid var(--line);background:#fff;border-radius:8px;padding:8px 10px;color:var(--text);min-width:130px}.filters .label{font-size:12px;color:var(--muted)}.grid6{display:grid;grid-template-columns:repeat(6,minmax(130px,1fr));gap:10px}.kpi{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:15px}.kpi .lab{font-size:12px;color:var(--muted)}.kpi .val{font-size:25px;font-weight:800;margin-top:5px}.kpi .hint{font-size:11px;color:var(--muted);margin-top:3px}.section{margin-top:16px}.sectionTitle{font-size:16px;font-weight:750;margin-bottom:9px}.cards2{display:grid;grid-template-columns:1.1fr .9fr;gap:12px}.card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:15px}.chartbox{min-height:290px}.barrow{display:grid;grid-template-columns:120px 1fr 60px;gap:8px;align-items:center;margin:10px 0}.bartrack{height:10px;background:#edf0f5;border-radius:10px;overflow:hidden}.barfill{height:100%;background:var(--accent);border-radius:10px}.barfill.alt{background:#6c7bd9}.barfill.green{background:#45a77e}.barfill.orange{background:#d99a45}.insight{border-left:3px solid var(--accent);padding:10px 12px;background:#f8f9ff;border-radius:8px;margin:8px 0}.insight b{display:block;margin-bottom:3px}.tag{display:inline-block;padding:3px 7px;border-radius:999px;background:#f1f3f7;color:#566074;font-size:12px;margin:2px}.tag.blue{background:#eef2ff;color:#315efb}.tag.red{background:#fff0f2;color:#c2384a}.tag.green{background:#edf9f4;color:#17845a}.tableWrap{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:auto}.table{border-collapse:collapse;width:max-content;min-width:100%}.table th,.table td{border-bottom:1px solid var(--line);padding:9px 10px;white-space:nowrap;text-align:left;font-size:12px}.table th{background:#fafbfc;color:#667085;position:sticky;top:0;z-index:1}.table td[contenteditable=true]{background:#fffdf5;outline:none}.mini{font-size:12px;color:var(--muted)}.empty{text-align:center;padding:35px;color:var(--muted)}.two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.three{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.rank{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid var(--line)}.rank:last-child{border-bottom:0}.ranknum{width:24px;height:24px;border-radius:50%;background:#f0f2f6;text-align:center;line-height:24px;font-size:12px}.rankmain{flex:1;min-width:0}.rankmain b{display:block;overflow:hidden;text-overflow:ellipsis}.pill{font-size:12px;color:var(--muted)}.notice{background:#fff7e8;border:1px solid #f3dfb4;border-radius:10px;padding:10px 12px;color:#8a641b}.file{border:1px dashed #cbd2df;border-radius:10px;padding:14px;background:#fbfcfe}.modal{position:fixed;inset:0;z-index:1000;background:rgba(17,24,39,.38);display:none;align-items:center;justify-content:center;padding:20px}.modal.open{display:flex}.modalbox{position:relative;z-index:1;background:#fff;border-radius:14px;width:min(900px,96vw);max-height:88vh;overflow:auto;padding:18px;box-shadow:0 24px 70px rgba(15,23,42,.28)}.modalhead{display:flex;justify-content:space-between;align-items:center}.close{border:0;background:transparent;font-size:22px;cursor:pointer}.smallbtn{padding:5px 8px;border:1px solid var(--line);border-radius:6px;background:#fff;cursor:pointer}.footerline{display:flex;justify-content:space-between;align-items:center;margin:10px 0;color:var(--muted);font-size:12px}.trigger-tabs{display:flex;gap:6px;border-bottom:1px solid var(--line);margin-bottom:12px}.trigger-tab{border:0;background:transparent;padding:8px 12px;color:var(--muted);cursor:pointer;border-bottom:2px solid transparent;font-size:13px}.trigger-tab.active{color:var(--accent);border-bottom-color:var(--accent);font-weight:700}.trigger-summary{display:grid;grid-template-columns:repeat(5,minmax(90px,1fr));gap:8px;margin-bottom:12px}.trigger-kpi{border:1px solid var(--line);border-radius:9px;padding:8px 10px;background:#fbfcfe}.trigger-kpi .lab{font-size:11px;color:var(--muted)}.trigger-kpi .val{font-size:18px;font-weight:800;margin-top:2px}.trigger-list{display:grid;gap:6px}.trigger-row{display:grid;grid-template-columns:minmax(260px,1.8fr) 70px 70px 70px 70px 70px;gap:8px;align-items:center;border:1px solid var(--line);border-radius:8px;padding:7px 9px;background:#fff;cursor:pointer}.trigger-row:hover{background:#fafbff;border-color:#d9def0}.trigger-row.head{background:#fafbfc;color:var(--muted);font-size:11px;cursor:default;border-radius:7px}.trigger-row.head:hover{background:#fafbfc;border-color:var(--line)}.trigger-name{min-width:0}.trigger-name .combo{font-weight:700;white-space:normal;line-height:1.35}.trigger-name .sub{font-size:10px;color:var(--muted);margin-top:2px}.trigger-num{text-align:right;font-variant-numeric:tabular-nums}.trigger-num.result{font-weight:800}.trigger-rate{font-weight:750}.trigger-group{border:1px solid var(--line);border-radius:10px;margin-bottom:8px;overflow:hidden}.trigger-group-head{display:flex;justify-content:space-between;align-items:center;padding:8px 10px;background:#fafbfc;border-bottom:1px solid var(--line)}.trigger-group-title{font-weight:800}.trigger-group-meta{font-size:11px;color:var(--muted)}.trigger-group-body{padding:7px}.trigger-note{padding:8px 10px;background:#f8f9ff;border-left:3px solid var(--accent);border-radius:7px;margin-bottom:9px;font-size:12px;color:#4d5870}.trigger-warning{padding:8px 10px;background:#fff8ea;border:1px solid #f0d7a5;border-radius:8px;color:#7a5a1c;margin-bottom:9px;font-size:12px}.trigger-chip{display:inline-block;padding:2px 6px;border-radius:999px;font-size:11px;margin:1px 2px;font-weight:650}.trigger-chip.intent{background:#eef2ff;color:#315efb}.trigger-chip.origin{background:#fff3e4;color:#b56a12}.trigger-chip.supply{background:#edf9f4;color:#17845a}.trigger-chip.user{background:#f4efff;color:#7551b5}.trigger-chip.platform{background:#f1f3f6;color:#687385}.trigger-chip.unknown{background:#fff0f2;color:#c2384a}.trigger-chip.muted{background:#f1f3f7;color:#667085}.trigger-axis{font-size:11px;color:var(--muted);margin:8px 0}.trigger-empty{padding:18px;text-align:center;color:var(--muted);background:#fafbfc;border-radius:8px}.tag.intent{background:#eef2ff;color:#315efb}.tag.origin{background:#fff3e4;color:#b56a12}.tag.supply{background:#edf9f4;color:#17845a}.tag.user{background:#f4efff;color:#7551b5}.tag.platform{background:#f1f3f6;color:#687385}.tag.unknown{background:#fff0f2;color:#c2384a}@media(max-width:1100px){.grid6{grid-template-columns:repeat(3,1fr)}.cards2,.two,.three{grid-template-columns:1fr}}@media(max-width:720px){.side{width:72px}.logo{font-size:0}.logo:after{content:'转化';font-size:16px}.sublogo{display:none}.nav button{font-size:0;text-align:center}.nav button:before{content:'•';font-size:20px}.main{padding:14px}.grid6{grid-template-columns:repeat(2,1fr)}.title{font-size:20px}.head{flex-direction:column}}


:root{--critical:#e5484d;--warning:#e69a1f;--success:#168b65;--info:#356ae6;--purple:#7a5af8;--ink2:#475467}
.kpi{position:relative;overflow:hidden}.kpi:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--info)}.kpi:nth-child(2):before{background:var(--success)}.kpi:nth-child(3):before{background:var(--purple)}.kpi:nth-child(4):before{background:var(--warning)}.kpi:nth-child(5):before{background:var(--info)}.kpi:nth-child(6):before{background:var(--success)}.kpi .val{color:#101828}.kpi.hot .val{color:var(--critical)}
.tableWrap{max-height:68vh}.table th,.table td{vertical-align:middle}.table th{font-weight:750}.table .key-col{background:#f5f8ff}.table .status-good{background:#ecfdf3;color:#067647;font-weight:700}.table .status-warn{background:#fff7e6;color:#b54708;font-weight:700}.table .status-bad{background:#fff1f2;color:#c01048;font-weight:700}.table .metric-cell{font-weight:750}.table .id-cell{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:#344054}.table .title-cell{max-width:320px;white-space:normal;line-height:1.35}.table .reason-cell{max-width:280px;white-space:normal;line-height:1.35}.table .edit-cell{background:#fffdf5;outline:none}.table .rise{display:inline-flex;align-items:center;gap:4px;background:#fff0f0;color:#c01048;border-radius:999px;padding:3px 7px;font-size:11px;font-weight:800;margin-left:5px}.filterChip{display:inline-flex;align-items:center;gap:5px;background:#eef4ff;color:#2457c5;border-radius:999px;padding:5px 9px;font-size:12px}.analysisHero{background:linear-gradient(135deg,#fff,#f7f9ff);border:1px solid var(--line);border-radius:14px;padding:16px}.analysisHero .big{font-size:30px;font-weight:850}.analysisGrid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.metricList{display:grid;gap:7px}.metricRow{display:grid;grid-template-columns:minmax(130px,1fr) 90px 100px;gap:10px;align-items:center;padding:8px 0;border-bottom:1px solid #eef0f4}.metricRow:last-child{border-bottom:0}.metricRow b{text-align:right}.barMini{height:8px;background:#edf0f5;border-radius:8px;overflow:hidden}.barMini i{display:block;height:100%;background:var(--info);border-radius:8px}.tagbox{display:flex;flex-wrap:wrap;gap:6px}.tagbox .tag{cursor:pointer}.conclusion{padding:11px 13px;border-radius:10px;background:#f8fafc;border-left:3px solid var(--info);margin:8px 0}.conclusion strong{display:block;margin-bottom:3px}.category-badge{display:inline-block;background:#f2efff;color:#6941c6;border-radius:999px;padding:3px 8px;font-size:11px;font-weight:700}.loss-alert{border:1px solid #fecdd3;background:#fff1f2;border-radius:10px;padding:12px}.loss-row{display:grid;grid-template-columns:32px 1fr 80px 110px;gap:8px;align-items:center;padding:9px 0;border-bottom:1px solid #f3d5da}.loss-row:last-child{border-bottom:0}.loss-rank{width:24px;height:24px;border-radius:50%;background:#ffe4e6;color:#be123c;text-align:center;line-height:24px;font-weight:800}.muted2{color:#667085;font-size:12px}
@media(max-width:900px){.analysisGrid{grid-template-columns:1fr}.tableWrap{max-height:60vh}}


.kpi-wrap{display:grid;gap:12px}.kpi-group{display:grid;gap:10px}.kpi-group.primary{grid-template-columns:repeat(4,minmax(160px,1fr))}.kpi-group.secondary{grid-template-columns:repeat(3,minmax(150px,1fr))}.kpi-group.tertiary{grid-template-columns:repeat(2,minmax(150px,1fr));max-width:520px}.kpi-section-label{font-size:12px;color:var(--muted);font-weight:750;margin:4px 0 2px}.kpi.primary{padding:20px;border-radius:14px}.kpi.primary .lab{font-size:13px}.kpi.primary .val{font-size:32px}.kpi.secondary{padding:15px}.kpi.secondary .val{font-size:24px}.kpi.tertiary .val{font-size:21px}.kpi.primary:nth-child(1):before{background:#315efb}.kpi.primary:nth-child(2):before{background:#159866}.kpi.primary:nth-child(3):before{background:#7a5af8}.kpi.primary:nth-child(4):before{background:#d98a18}.efficiency{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.eff-card{padding:15px;border:1px solid var(--line);border-radius:12px;background:#fff}.eff-card .val{font-size:26px;font-weight:850}.eff-card .lab{font-size:12px;color:var(--muted)}.eff-card .source{font-size:11px;color:var(--muted);margin-top:4px}.analysisHero .big{line-height:1.15}.trigger-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.trigger-card{border:1px solid var(--line);border-radius:12px;padding:14px;background:#fff}.trigger-card h4{margin:0 0 10px;font-size:14px}.trigger-item{padding:9px 0;border-bottom:1px solid #eef0f4}.trigger-item:last-child{border-bottom:0}.trigger-item b{display:block}.trigger-meta{font-size:11px;color:var(--muted);margin-top:3px}.score{display:inline-flex;align-items:center;border-radius:999px;padding:3px 7px;font-size:11px;font-weight:800;margin-left:5px}.score.high{background:#ecfdf3;color:#067647}.score.mid{background:#fff7e6;color:#b54708}.score.low{background:#f2f4f7;color:#667085}.matrix{overflow:auto}.matrix table{border-collapse:collapse;width:100%;font-size:12px}.matrix th,.matrix td{padding:9px 10px;border-bottom:1px solid var(--line);text-align:left;white-space:nowrap}.matrix th{color:#667085;background:#fafbfc}.matrix td.num{text-align:right;font-weight:750}.country-filter-note{background:#f7f9ff;border:1px solid #dbe4ff;color:#344054;padding:10px 12px;border-radius:10px}.analysisAction{margin-top:8px}.clickable{cursor:pointer}.clickable:hover{background:#f8faff}.insightStrong{border-left:4px solid var(--success);background:#f3fbf7}.growth-badge{display:inline-flex;align-items:center;gap:4px;margin-left:6px;background:#fff0f0;color:#c01048;border-radius:999px;padding:3px 7px;font-size:11px;font-weight:850}.tag.dim{background:#f2f4f7;color:#475467}
@media(max-width:1000px){.kpi-group.primary{grid-template-columns:repeat(2,1fr)}.trigger-grid{grid-template-columns:1fr}.efficiency{grid-template-columns:1fr 1fr}}
@media(max-width:650px){.kpi-group.primary,.kpi-group.secondary,.kpi-group.tertiary,.efficiency{grid-template-columns:1fr}.kpi-group.tertiary{max-width:none}}


.analysis-layout{display:grid;grid-template-columns:minmax(0,3fr) minmax(260px,1fr);gap:14px;align-items:start}
.analysis-main{min-width:0}.analysis-side{position:sticky;top:14px;min-width:0}
.analysis-side .card{box-shadow:0 8px 28px rgba(15,23,42,.08)}
.compact-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.compact-grid.threecol{grid-template-columns:repeat(3,1fr)}
.analysis-card{padding:14px}.analysis-card .sectionTitle{margin-bottom:10px}
.section-kicker{font-size:11px;color:#64748b;letter-spacing:.04em;margin-bottom:4px}.sectionTitle .priority{float:right;font-size:10px;padding:3px 7px;border-radius:999px;background:#eef2ff;color:#4338ca;font-weight:700}
.chart-list{display:flex;flex-direction:column;gap:7px}.chart-row{display:grid;grid-template-columns:86px minmax(0,1fr) 58px;gap:8px;align-items:center;font-size:12px}.chart-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chart-track{height:9px;background:#eef2f7;border-radius:99px;overflow:hidden}.chart-fill{height:100%;background:var(--accent);border-radius:99px}.chart-value{text-align:right;font-weight:800}
.result-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.result-box{border:1px solid #e5e7eb;border-radius:10px;padding:10px;background:#fafafa}.result-box .label{font-size:10px;color:#64748b}.result-box .value{font-size:18px;font-weight:800;margin-top:2px}.result-box.strong{background:#f5f3ff;border-color:#ddd6fe}.result-box.strong .value{color:#4f46e5}
.country-group{border:1px solid #e5e7eb;border-radius:12px;padding:10px;margin-bottom:9px;background:#fff}.country-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.country-name{font-size:15px;font-weight:800}.country-summary{font-size:11px;color:#64748b}.country-trigger-grid{display:grid;grid-template-columns:1.05fr 1.05fr 1.05fr 1.35fr;gap:7px}.trigger-mini{border:1px solid #e5e7eb;border-radius:9px;padding:8px;min-width:0}.trigger-mini .dim{font-size:10px;color:#64748b}.trigger-mini .tags{font-size:11px;font-weight:700;margin-top:4px;line-height:1.45}.trigger-mini .metric{font-size:11px;margin-top:5px;color:#475569}.trigger-result{border-color:#c7d2fe;background:#f8faff}.trigger-result .dim{color:#4f46e5}.trigger-result .tags{font-size:12px}.result-highlight{font-weight:900;color:#4338ca}.combo-chip{display:inline-flex;gap:4px;align-items:center;padding:3px 6px;border-radius:6px;background:#f1f5f9;margin:2px 2px 0 0;font-size:10px}
.dual-chart{display:grid;grid-template-columns:1fr 1fr;gap:12px}.donut-wrap{display:flex;align-items:center;gap:12px}.donut{width:92px;height:92px;border-radius:50%;position:relative;background:conic-gradient(var(--accent) 0deg,var(--accent) 220deg,#e2e8f0 220deg,#e2e8f0 360deg);flex:0 0 auto}.donut:after{content:'';position:absolute;inset:23px;background:#fff;border-radius:50%}.legend{display:flex;flex-direction:column;gap:5px;font-size:11px}.legend i{display:inline-block;width:8px;height:8px;border-radius:2px;background:var(--accent);margin-right:5px}.legend i.muted{background:#e2e8f0}
.lifecycle-bars{display:flex;align-items:flex-end;height:110px;gap:8px}.life-col{flex:1;text-align:center;font-size:10px;color:#64748b}.life-bar{margin:5px auto 4px;width:70%;min-height:5px;background:var(--accent);border-radius:5px 5px 0 0}.user-row{display:grid;grid-template-columns:24px minmax(0,1fr) 95px;gap:8px;align-items:center;padding:8px 0;border-bottom:1px solid #f1f5f9}.user-row:last-child{border-bottom:0}.user-rank{font-weight:900;color:#64748b}.user-main{min-width:0}.user-main b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-sub{font-size:10px;color:#64748b;margin-top:2px}.user-result{text-align:right}.user-result b{font-size:15px;color:#4338ca}.user-result span{display:block;font-size:10px;color:#64748b}
.reason-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.reason-col{min-width:0}.reason-item{display:grid;grid-template-columns:28px minmax(0,1fr) 58px;gap:7px;align-items:center;padding:7px 0;border-bottom:1px solid #f1f5f9}.reason-item:last-child{border-bottom:0}.reason-num{font-size:11px;font-weight:800;color:#64748b}.reason-bar{height:7px;background:#eef2f7;border-radius:99px;overflow:hidden}.reason-bar i{display:block;height:100%;background:var(--accent)}.reason-count{text-align:right;font-size:11px;font-weight:800}.clickable{cursor:pointer}.clickable:hover{background:#f8fafc}
.side-conclusion{padding:10px;border-radius:10px;background:#f8fafc;border-left:3px solid var(--accent);margin-top:8px;font-size:12px;line-height:1.55}.side-conclusion b{display:block;margin-bottom:3px}.side-alert{padding:10px;border-radius:10px;background:#fff7ed;border:1px solid #fed7aa}.side-alert b{color:#c2410c}
@media(max-width:1100px){.analysis-layout{grid-template-columns:1fr}.analysis-side{position:static}.country-trigger-grid{grid-template-columns:1fr 1fr}.compact-grid,.dual-chart{grid-template-columns:1fr}}
@media(max-width:720px){.country-trigger-grid,.result-grid,.reason-grid{grid-template-columns:1fr}.chart-row{grid-template-columns:70px minmax(0,1fr) 48px}}


/* V1.7 analysis layout refinement */
.analysis-upper{display:grid;gap:12px}.analysis-chart-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.analysis-chart-card{padding:13px 14px;min-height:250px}.analysis-chart-card .section-kicker{margin-bottom:2px}.analysis-chart-card .sectionTitle{margin-bottom:7px}.vbar-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(58px,1fr));align-items:end;gap:10px;height:180px;padding:12px 2px 2px;border-top:1px solid #f0f2f5}.vbar-item{height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;min-width:0;cursor:pointer}.vbar-value{font-size:11px;font-weight:800;color:#344054;margin-bottom:5px;min-height:16px}.vbar-track{height:125px;width:100%;max-width:48px;background:#f1f3f7;border-radius:8px 8px 3px 3px;display:flex;align-items:flex-end;overflow:hidden}.vbar-fill{width:100%;min-height:4px;border-radius:8px 8px 2px 2px;background:linear-gradient(180deg,#4d72f5,#315efb)}.vbar-fill.alt{background:linear-gradient(180deg,#8a97e8,#6878d8)}.vbar-fill.green{background:linear-gradient(180deg,#62bc97,#159866)}.vbar-fill.orange{background:linear-gradient(180deg,#efbd72,#d98a18)}.vbar-label{font-size:11px;color:#667085;margin-top:6px;max-width:72px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.vbar-item:hover .vbar-track{background:#e9edf5}.vbar-item:hover .vbar-fill{filter:brightness(.96)}
.dual-vbar{height:180px;display:grid;grid-template-columns:repeat(auto-fit,minmax(72px,1fr));gap:8px;align-items:end;padding:12px 2px 2px;border-top:1px solid #f0f2f5}.dual-vbar-item{height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;cursor:pointer}.dual-values{height:18px;font-size:10px;font-weight:750;color:#475467;margin-bottom:4px;white-space:nowrap}.dual-bars{height:125px;display:flex;align-items:flex-end;gap:4px}.dual-bar-track{width:20px;height:125px;background:#f1f3f7;border-radius:6px 6px 2px 2px;display:flex;align-items:flex-end;overflow:hidden}.dual-bar-track i{display:block;width:100%;min-height:4px;border-radius:6px 6px 2px 2px}.dual-bar-track .orders{background:#8a97e8}.dual-bar-track .paid{background:#315efb}.dual-label{font-size:11px;color:#667085;margin-top:6px;max-width:72px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chart-legend{display:flex;gap:12px;font-size:10px;color:#667085;margin-top:5px}.chart-legend span{display:inline-flex;align-items:center;gap:4px}.legend-dot{width:7px;height:7px;border-radius:2px;display:inline-block}.legend-orders{background:#8a97e8}.legend-paid{background:#315efb}
.excel-card{padding:0;overflow:hidden}.excel-head{padding:11px 14px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.excel-table-wrap{overflow:auto;max-height:300px}.excel-table{border-collapse:collapse;width:100%;font-size:11px}.excel-table th,.excel-table td{border-right:1px solid #e6e8ec;border-bottom:1px solid #e6e8ec;padding:7px 8px;white-space:nowrap}.excel-table th{background:#f3f5f7;color:#475467;font-weight:750;position:sticky;top:0;z-index:2}.excel-table tr:nth-child(even) td{background:#fbfcfd}.excel-table td.num{text-align:right;font-variant-numeric:tabular-nums}.excel-table td.result{font-weight:850;color:#315efb;background:#f3f6ff}.excel-table td.rate{font-weight:750;color:#159866}.excel-table .country-cell2{font-weight:750;color:#344054}.excel-note{padding:7px 14px;color:#98a2b3;font-size:10px;border-top:1px solid var(--line)}
.detail-card{margin-top:12px}.detail-card .detail-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.detail-table{max-height:330px}.detail-table .table th{font-size:11px;padding:7px 9px}.detail-table .table td{font-size:11px;padding:7px 9px}
.analysis-upper .analysis-card{min-width:0}.analysis-side{align-self:start;position:sticky;top:16px}.analysis-layout{align-items:start}
@media(max-width:1050px){.analysis-chart-grid{grid-template-columns:1fr 1fr}.analysis-side{position:static}.analysis-layout{grid-template-columns:1fr}}


.user-table-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 12px;margin-top:10px;background:#fff;border:1px solid #e6e8ec;border-radius:8px;color:#667085;font-size:11px}.user-filter-state{font-weight:700;color:#315efb}.user-table-wrap{margin-top:8px;max-height:calc(100vh - 225px);overflow:auto;border:1px solid #dfe3e8;border-radius:8px;background:#fff}.user-excel-table{border-collapse:separate;border-spacing:0;width:max-content;min-width:100%;font-size:11px;background:#fff}.user-excel-table th,.user-excel-table td{border-right:1px solid #e3e6ea;border-bottom:1px solid #e3e6ea;padding:0 8px;vertical-align:middle;white-space:nowrap}.user-excel-table th{font-weight:700;color:#344054}.user-excel-table .excel-head-row th{position:sticky;top:0;z-index:4;height:36px;background:#f3f5f7}.user-excel-table .excel-filter-row th{position:sticky;top:34px;z-index:3;height:34px;background:#fafbfc;padding:4px}.excel-th-title{display:flex;align-items:center;justify-content:space-between;gap:6px;min-width:0}.excel-th-title span:first-child{overflow:hidden;text-overflow:ellipsis}.filter-btn{flex:none;width:16px;height:16px;border:0;background:transparent;color:#98a2b3;cursor:pointer;padding:0;line-height:16px;font-size:10px;border-radius:3px}.filter-btn:hover,.filter-btn.open{background:#e7ebf2;color:#344054}.filter-btn.active{color:#315efb;background:#e8eeff}.col-filter-pop{position:fixed;z-index:40;width:248px;background:#fff;border:1px solid #d8dee8;border-radius:8px;box-shadow:0 12px 32px rgba(16,24,40,.16);padding:8px;color:#182033}.col-filter-search{box-sizing:border-box;width:100%;height:30px;border:1px solid #d0d5dd;border-radius:6px;padding:4px 8px;font-size:12px;outline:none}.col-filter-search:focus{border-color:#315efb;box-shadow:0 0 0 2px rgba(49,94,251,.1)}.col-filter-actions{display:flex;justify-content:space-between;align-items:center;margin:8px 2px 4px;font-size:12px;color:#667085}.col-filter-actions button{border:0;background:transparent;color:#315efb;cursor:pointer;padding:0;font-size:12px}.col-filter-list{max-height:280px;overflow:auto;border-top:1px solid #eef0f4;margin-top:4px}.col-filter-item{display:flex;align-items:center;gap:8px;padding:6px 4px;font-size:12px;cursor:pointer;border-radius:6px}.col-filter-item:hover{background:#f5f7fb}.col-filter-item input{margin:0;flex:none}.col-filter-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.col-filter-count{flex:none;color:#98a2b3;font-variant-numeric:tabular-nums;min-width:18px;text-align:right}.col-filter-empty{padding:16px 8px;text-align:center;color:#98a2b3;font-size:12px}.col-filter-foot{display:flex;justify-content:flex-end;gap:8px;border-top:1px solid #eef0f4;margin-top:6px;padding-top:8px}.col-filter-foot button{height:28px;padding:0 10px;border-radius:6px;border:1px solid #d0d5dd;background:#fff;cursor:pointer;font-size:12px}.col-filter-foot .primary{background:#315efb;border-color:#315efb;color:#fff}.user-excel-table tbody td{height:34px;background:#fff}.user-excel-table tbody tr:nth-child(even) td{background:#fbfcfd}.user-excel-table tbody tr:hover td{background:#f7f9fc}.user-excel-table td.edit-cell{cursor:text}.user-excel-table td.edit-cell:hover{box-shadow:inset 0 0 0 1px #b7c5ff;background:#f8faff}.user-excel-table td.derived-cell{background:#f5f6f8!important;color:#667085;font-weight:700}.user-excel-table td.date-edit-cell{padding:2px 4px}.cell-editor{width:100%;min-width:80px;box-sizing:border-box;border:1px solid transparent;background:transparent;font:inherit;color:inherit;padding:4px 3px;outline:none}.cell-editor:focus{border-color:#315efb;background:#fff}.date-editor{min-width:145px}.multi-editor{min-width:180px;height:30px;background:#fff;border:1px solid #d0d5dd;border-radius:4px}.multi-editor option{padding:2px}.select-cell{padding:2px 4px!important}.user-excel-table td.key-col{background:#f5f7ff}.user-excel-table td.country-cell{font-weight:700}.user-excel-table td.metric-cell{font-weight:800;text-align:right}.user-excel-table td.title-cell{max-width:300px;overflow:hidden;text-overflow:ellipsis}.user-excel-table td.reason-cell{white-space:normal;min-width:220px;line-height:1.5}.user-excel-table td.status-good{color:#157347;background:#f0fdf4}.user-excel-table td.status-warn{color:#a15c00;background:#fff8e7}.user-excel-table td.status-bad{color:#b42318;background:#fff3f2}.user-excel-table td.id-cell{font-weight:800;color:#315efb}.user-excel-table td.ad-cell,.user-excel-table td.owner-cell{color:#475467}.user-excel-table .rise{display:inline-block;margin-left:4px;color:#b42318;font-size:10px;font-weight:800}.user-table-wrap::-webkit-scrollbar{height:10px;width:10px}.user-table-wrap::-webkit-scrollbar-thumb{background:#cbd2da;border-radius:8px}.user-table-wrap::-webkit-scrollbar-track{background:#f5f6f8}
@media(max-width:720px){.user-table-toolbar{align-items:flex-start;flex-direction:column}.user-table-wrap{max-height:calc(100vh - 260px)}}


.user-excel-table td.tag-cell{padding:3px 6px}.cell-tag{display:inline-flex;align-items:center;max-width:100%;min-height:22px;padding:2px 8px;border:1px solid transparent;border-radius:999px;font-size:11px;font-weight:750;line-height:1.35;white-space:normal}.cell-tag.country{background:#eef4ff;border-color:#d9e4ff;color:#2457c5}.cell-tag.ad{background:#f0f3ff;border-color:#dde2ff;color:#525fc6}.cell-tag.owner{background:#f5f0ff;border-color:#e7dcff;color:#7047b8}.cell-tag.tracking-good,.cell-tag.positive{background:#ecfdf3;border-color:#c9f2dc;color:#067647}.cell-tag.tracking-warn,.cell-tag.warning{background:#fff7e6;border-color:#f5dfb7;color:#a15c00}.cell-tag.tracking-bad,.cell-tag.loss,.cell-tag.negative{background:#fff1f2;border-color:#ffd5da;color:#b42318}.cell-tag.plugin{background:#ecfeff;border-color:#c7f2f4;color:#0e7490}.cell-tag.monitor{background:#fff8ed;border-color:#ffdfb5;color:#b45309}.cell-tag.intent{background:#eef2ff;color:#315efb}.cell-tag.origin{background:#fff3e4;color:#b56a12}.cell-tag.supply{background:#edf9f4;color:#17845a}.cell-tag.user{background:#f4efff;color:#7551b5}.cell-tag.platform,.cell-tag.neutral{background:#f2f4f7;border-color:#e4e7ec;color:#475467}.cell-tag.reason{background:#f6f7f9;border-color:#e4e7ec;color:#344054}.tag-select{min-width:76px;width:100%;height:28px;border-radius:999px!important;padding:3px 24px 3px 9px!important;font-weight:750;cursor:pointer;border:1px solid #d0d5dd!important}.tag-select.country{background:#eef4ff;color:#2457c5;border-color:#d9e4ff!important}.tag-select.ad{background:#f0f3ff;color:#525fc6;border-color:#dde2ff!important}.tag-select.owner{background:#f5f0ff;color:#7047b8;border-color:#e7dcff!important}.tag-select.tracking-good,.tag-select.positive{background:#ecfdf3;color:#067647;border-color:#c9f2dc!important}.tag-select.tracking-warn,.tag-select.warning{background:#fff7e6;color:#a15c00;border-color:#f5dfb7!important}.tag-select.tracking-bad,.tag-select.negative{background:#fff1f2;color:#b42318;border-color:#ffd5da!important}.tag-select.plugin{background:#ecfeff;color:#0e7490;border-color:#c7f2f4!important}.tag-select.monitor{background:#fff8ed;color:#b45309;border-color:#ffdfb5!important}.tag-select.neutral{background:#f2f4f7;color:#475467;border-color:#e4e7ec!important}.tag-list-editor{display:flex;align-items:center;align-content:center;flex-wrap:wrap;gap:4px;width:100%;min-width:180px;min-height:28px;padding:2px;border:0;border-radius:6px;background:transparent;text-align:left;cursor:pointer}.tag-list-editor:hover{background:#f5f7fb;box-shadow:inset 0 0 0 1px #b7c5ff}.tag-placeholder{color:#98a2b3;font-size:11px}.tag-editor-pop{position:fixed;z-index:50;width:320px;max-width:calc(100vw - 16px);padding:10px;background:#fff;border:1px solid #d8dee8;border-radius:10px;box-shadow:0 14px 36px rgba(16,24,40,.18)}.tag-editor-title{font-size:12px;font-weight:800;color:#344054;margin-bottom:7px}.tag-editor-list{display:grid;gap:3px;max-height:240px;overflow:auto;padding:4px 0;border-top:1px solid #eef0f4;border-bottom:1px solid #eef0f4}.tag-editor-option{display:flex;align-items:center;gap:8px;padding:6px;border-radius:6px;cursor:pointer;font-size:12px}.tag-editor-option:hover{background:#f5f7fb}.tag-editor-option input{margin:0}.tag-editor-custom{display:flex;gap:6px;margin-top:8px}.tag-editor-custom input{min-width:0;flex:1;height:30px;border:1px solid #d0d5dd;border-radius:6px;padding:4px 8px;font-size:12px}.tag-editor-custom button,.tag-editor-foot button{height:30px;padding:0 10px;border:1px solid #d0d5dd;border-radius:6px;background:#fff;cursor:pointer}.tag-editor-foot{display:flex;justify-content:flex-end;gap:8px;margin-top:8px}.tag-editor-foot .primary{background:#315efb;border-color:#315efb;color:#fff}


.cell-tag.palette-0{background:#eaf2ff;border-color:#cfe0ff;color:#1d4ed8}.cell-tag.palette-1{background:#f3e8ff;border-color:#e6d3ff;color:#7e22ce}.cell-tag.palette-2{background:#e0f7ff;border-color:#c3ecfb;color:#0369a1}.cell-tag.palette-3{background:#e7f8ef;border-color:#c8eed9;color:#047857}.cell-tag.palette-4{background:#fff1bf;border-color:#f4dfa0;color:#92400e}.cell-tag.palette-5{background:#ffe8ee;border-color:#ffcfdc;color:#be123c}.cell-tag.palette-6{background:#ecebff;border-color:#d9d6ff;color:#4338ca}.cell-tag.palette-7{background:#edf1f5;border-color:#dce2e8;color:#475569}.cell-tag.status-pending{background:#fff0b8;border-color:#f6dc79;color:#7c5200}.cell-tag.status-ordering{background:#fbbf24;border-color:#e9aa0e;color:#503400}.cell-tag.status-lossing{background:#d8f2ff;border-color:#aee4fb;color:#075985}.cell-tag.status-lost{background:#6b7280;border-color:#5b626e;color:#fff}.cell-tag.status-yes{background:#fee2e2;border-color:#fecaca;color:#b91c1c}.cell-tag.status-no{background:#dcfce7;border-color:#bbf7d0;color:#047857}.cell-tag.status-complete{background:#d1fae5;border-color:#a7f3d0;color:#047857}.cell-tag.status-incomplete{background:#f1f5f9;border-color:#dce3ea;color:#64748b}.tag-value-editor{display:flex;align-items:center;align-content:center;justify-content:space-between;gap:7px;width:100%;min-height:28px;padding:2px 5px;border:1px solid transparent;border-radius:5px;background:transparent;text-align:left;cursor:pointer}.tag-value-editor:hover{background:#f8faff;border-color:#d8e1ff}.tag-value-editor:focus{outline:2px solid #315efb;outline-offset:-1px;background:#fff}.tag-value-content{display:flex;align-items:center;align-content:center;flex-wrap:wrap;gap:4px;min-width:0;overflow:hidden}.tag-single-editor .tag-value-content{flex-wrap:nowrap}.tag-single-editor .cell-tag{max-width:calc(100% - 2px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tag-editor-caret{flex:none;color:#7b8798;font-size:10px;opacity:0;transform:translateY(-1px);transition:opacity .12s ease}.tag-value-editor[aria-expanded="true"] .tag-editor-caret{opacity:1}.tag-editor-pop{width:270px;padding:0;overflow:hidden;border:1px solid #d7dce5;border-radius:9px;box-shadow:0 12px 30px rgba(16,24,40,.2)}.tag-editor-search-wrap{padding:9px 10px;border-bottom:1px solid #eceff3}.tag-editor-search{width:100%;height:32px;border:0;border-bottom:1px solid #cfd5df;padding:4px 2px;font-size:13px;color:#1f2937;outline:none}.tag-editor-search::placeholder{color:#98a2b3}.tag-editor-search:focus{border-bottom-color:#315efb}.tag-editor-meta{display:flex;align-items:center;justify-content:space-between;padding:8px 12px 5px;color:#667085;font-size:12px}.tag-editor-clear{border:0;background:transparent;color:#315efb;padding:0;cursor:pointer;font-size:11px}.tag-editor-list{display:grid;gap:1px;max-height:260px;overflow:auto;padding:3px 8px 8px;border:0}.tag-editor-option,.tag-editor-add-row{display:flex;align-items:center;gap:7px;width:100%;min-height:32px;padding:5px 6px;border:0;border-radius:6px;background:#fff;text-align:left;cursor:pointer}.tag-editor-option:hover,.tag-editor-add-row:hover{background:#f5f7fb}.tag-editor-check{width:15px;flex:none;color:#1677ff;font-size:16px;font-weight:900;line-height:1;visibility:hidden}.tag-editor-option.selected .tag-editor-check{visibility:visible}.tag-editor-add-row{margin-top:3px;border-top:1px solid #eef0f4;border-radius:0;color:#315efb}.tag-editor-add-icon{width:15px;text-align:center;font-weight:900}.tag-editor-empty{padding:16px 8px;text-align:center;color:#98a2b3;font-size:12px}.tag-editor-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0;padding:8px 10px;border-top:1px solid #eceff3;background:#fafbfc}.tag-editor-selected-count{font-size:11px;color:#667085}.tag-editor-foot-actions{display:flex;gap:7px}.tag-editor-foot button{height:28px}.tag-editor-hint{padding:0 12px 9px;color:#98a2b3;font-size:10px}




.user-excel-table td.id-cell{font-family:inherit;color:#344054}
.cell-tag.country-pl{background:#dbeafe;border-color:#bfdbfe;color:#1d4ed8}.cell-tag.country-us{background:#f3e8ff;border-color:#e9d5ff;color:#7e22ce}.cell-tag.country-au{background:#fef3c7;border-color:#fde68a;color:#a16207}.cell-tag.country-ca{background:#dcfce7;border-color:#bbf7d0;color:#15803d}.cell-tag.country-uk{background:#ffe4e6;border-color:#fecdd3;color:#be123c}
.cell-tag.country-auto{background:var(--country-bg);border-color:var(--country-border);color:var(--country-text)}








.user-excel-table .excel-head-row th{background:#eaf2f8}.user-excel-table tbody tr:nth-child(odd) td{background:#fff}.user-excel-table tbody tr:nth-child(even) td{background:#edf5fc}.user-excel-table tbody tr:hover td{background:#e2effa}
.user-excel-table td.date-edit-cell:has(.date-editor.is-empty){padding:0 4px}
.date-editor.is-empty:not(:focus){color:transparent;opacity:0}
.date-editor.is-empty:not(:focus)::-webkit-datetime-edit{opacity:0}
.date-editor.is-empty:not(:focus)::-webkit-calendar-picker-indicator{opacity:0}
.date-edit-cell:hover .date-editor.is-empty::-webkit-calendar-picker-indicator,.date-editor.is-empty:focus::-webkit-calendar-picker-indicator{opacity:1}
.date-editor.is-empty:focus{opacity:1}.date-editor.is-empty:focus::-webkit-datetime-edit{opacity:1}
.data-link-cell{padding:0 8px!important}.data-link-wrap{position:relative;min-width:0}.data-link{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#2563eb;text-decoration:underline;text-decoration-color:#93b4f8;text-underline-offset:2px}.data-link:hover{color:#1d4ed8;text-decoration-color:#1d4ed8}.data-link-edit{position:absolute;right:0;top:50%;width:22px;height:22px;transform:translateY(-50%);border:1px solid #d8dee8;border-radius:5px;background:#fff;color:#667085;opacity:0;transition:opacity .12s}.data-link-wrap:hover .data-link-edit,.data-link-edit:focus{opacity:1}
.loss-bell-button{display:inline-flex;align-items:center;gap:7px;height:34px;padding:0 10px;border:1px solid #f1b8be;border-radius:8px;background:#fff7f8;color:#b4233b;font-weight:750;cursor:pointer;transition:background .15s,border-color .15s,box-shadow .15s}.loss-bell-button:hover{background:#ffedef;border-color:#e88490;box-shadow:0 2px 8px rgba(180,35,59,.1)}.loss-bell-button:focus-visible{outline:2px solid rgba(49,94,251,.3);outline-offset:2px}.loss-bell-icon{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.loss-bell-label{white-space:nowrap}.loss-bell-badge{display:inline-flex;align-items:center;justify-content:center;min-width:19px;height:19px;padding:0 5px;border-radius:999px;background:#d92d45;color:#fff;font-size:10px;font-weight:850;font-variant-numeric:tabular-nums}.loss-bell-button.no-alert{border-color:#d8dee8;background:#fff;color:#667085}.loss-bell-button.no-alert .loss-bell-badge{background:#98a2b3}
.user-data-row.user-row-located>td{background:#fff2b8!important;box-shadow:inset 0 2px 0 #f0b429,inset 0 -2px 0 #f0b429;animation:user-row-locate 2.8s ease-out}.user-data-row.user-row-located>td:first-child{box-shadow:inset 3px 0 0 #e59a00,inset 0 2px 0 #f0b429,inset 0 -2px 0 #f0b429}@keyframes user-row-locate{0%,55%{background:#ffe58a}100%{background:#fff2b8}}
.user-year-tabs{display:flex;align-items:center;gap:6px;margin:0 0 10px;padding:0 2px 8px;border-bottom:1px solid #d8e3ef}.user-year-tab{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px;border:1px solid #cdd9e5;border-radius:7px;background:#f7fafc;color:#526174;font-weight:700}.user-year-tab:hover{border-color:#94b4d1;background:#eef6fc}.user-year-tab.active{border-color:#4a8fc4;background:#dceefa;color:#155b8c;box-shadow:inset 0 -2px 0 #2f80b9}.user-year-count{min-width:19px;padding:1px 5px;border-radius:999px;background:rgba(255,255,255,.8);font-size:10px;text-align:center}.user-month-group-row>td{position:static!important;left:auto!important;width:auto!important;min-width:0!important;max-width:none!important;height:34px!important;padding:0!important;background:#dcebf7!important;border-top:1px solid #bfd5e7;border-bottom:1px solid #bfd5e7}.user-month-group-row:hover>td{background:#dcebf7!important}.user-month-group-toggle{position:sticky;left:0;display:inline-flex;align-items:center;gap:9px;min-width:250px;height:33px;padding:0 12px;border:0;background:transparent;color:#29445d;font-weight:700}.user-month-group-toggle:hover{color:#155b8c}.user-month-chevron{width:14px;color:#537895;font-size:11px}.user-month-count{color:#6d8295;font-size:11px;font-weight:500}
@media(max-width:720px){}
