:root{--ink:#17242b;--muted:#667780;--line:#d9e1e5;--surface:#fff;--canvas:#f4f7f8;--navy:#173b4d;--blue:#2779a7;--green:#26846d;--amber:#c4852d;--red:#b94f54;--violet:#7257a5;--shadow:0 1px 3px rgba(23,36,43,.08)}
*{box-sizing:border-box}
html{background:var(--canvas);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}
body{margin:0;font-size:13px;line-height:1.5}
button,input,select{font:inherit;letter-spacing:0}
button{cursor:pointer}
.masthead{background:var(--navy);color:#fff;border-bottom:4px solid var(--green)}
.masthead-inner{max-width:1500px;margin:auto;padding:22px 28px 20px;display:flex;align-items:flex-end;justify-content:space-between;gap:24px}
.eyebrow,.panel-kicker{margin:0 0 3px;color:#7cc0aa;font-size:10px;font-weight:750;text-transform:uppercase}
.masthead h1{margin:0;font-size:25px;line-height:1.2}
.subtitle{margin:6px 0 0;color:#c6d4da}
.status-block{display:flex;align-items:center;gap:8px;color:#dce8ec;font-size:11px;white-space:nowrap}
.status-dot{width:8px;height:8px;background:#74c69d;border-radius:50%;box-shadow:0 0 0 4px rgba(116,198,157,.14)}
.workspace{max-width:1500px;margin:auto;padding:0 28px 48px}
.control-band{min-height:56px;display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid var(--line)}
.country-switch{display:flex;align-items:center;gap:0}
.country-button{height:34px;padding:0 14px;border:1px solid var(--line);border-right:0;background:#fff;color:var(--muted)}
.country-button:first-child{border-radius:4px 0 0 4px}
.country-button:last-child{border-right:1px solid var(--line);border-radius:0 4px 4px 0}
.country-button.active{background:var(--blue);border-color:var(--blue);color:#fff}
.snapshot-meta{display:flex;gap:14px;color:var(--muted);font-size:11px}
.tabs{display:flex;gap:22px;border-bottom:1px solid var(--line);margin-bottom:18px}
.tab{border:0;border-bottom:3px solid transparent;background:transparent;padding:12px 2px 10px;color:var(--muted);font-weight:650}
.tab.active{color:var(--blue);border-bottom-color:var(--blue)}
.view{display:none}
.view.active{display:block}
.kpi-strip{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:1px;background:var(--line);border:1px solid var(--line);margin-bottom:16px}
.kpi{background:var(--surface);padding:13px 15px;min-height:85px}
.kpi-label{color:var(--muted);font-size:10px}
.kpi-value{display:block;margin-top:3px;font-size:21px;font-weight:750;line-height:1.25}
.kpi-foot{display:block;color:var(--muted);font-size:10px;margin-top:3px}
.country-drilldown{margin-bottom:18px;padding:16px 0 2px;border-top:3px solid var(--blue);border-bottom:1px solid var(--line)}
.drilldown-head{padding:0 2px 2px}
.share-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(300px,.8fr);gap:14px;align-items:stretch}
.share-panel{margin:0;padding:14px}
.share-chart{height:250px;position:relative}
.brand-product-card{min-width:0;border:1px solid var(--line);background:var(--surface);box-shadow:var(--shadow);padding:14px;display:grid;grid-template-rows:auto 140px auto 1fr;gap:9px}
.brand-product-card .card-kicker{color:var(--muted);font-size:10px;text-transform:uppercase}
.brand-product-card img{display:block;width:100%;height:140px;object-fit:contain;background:#fafcfc;border:1px solid #edf1f3}
.brand-product-card .card-title{font-size:11px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.brand-product-card .card-brand{display:flex;align-items:center;justify-content:space-between;gap:8px}
.brand-product-card .card-brand strong{font-size:15px}
.brand-product-card .card-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--line);align-self:end}
.brand-product-card .card-metric{background:#f8fafb;padding:7px;min-width:0}
.brand-product-card .card-metric span{display:block;color:var(--muted);font-size:9px;white-space:nowrap}
.brand-product-card .card-metric strong{display:block;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.country-brand-panel,.country-product-panel{margin-top:14px;margin-bottom:14px}
.country-rank-wrap{max-height:360px}
.country-product-toolbar{display:flex;align-items:center;gap:10px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.country-product-toolbar h2{font-size:14px;margin:0}
.country-product-toolbar>div:first-child{margin-right:auto}
.sort-toggle{display:flex;align-items:center}
.sort-toggle button{height:36px;padding:0 13px;border:1px solid var(--line);background:#fff;color:var(--muted)}
.sort-toggle button+button{border-left:0}
.sort-toggle button:first-child{border-radius:3px 0 0 3px}
.sort-toggle button:last-child{border-radius:0 3px 3px 0}
.sort-toggle button.active{background:var(--blue);border-color:var(--blue);color:#fff}
.country-product-table{max-height:560px}
.country-product-table table{min-width:1080px}
.brand-hover-row{cursor:pointer}
.brand-hover-row:hover,.brand-hover-row.active{background:#edf6fa}
.analysis-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(320px,.75fr);gap:14px}
.analysis-grid.equal{grid-template-columns:repeat(2,minmax(0,1fr))}
.panel{background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);padding:16px;margin-bottom:14px}
.panel.flush{padding:0}
.panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:10px}
.panel h2{font-size:14px;margin:0}
.panel-note{color:var(--muted);font-size:10px}
.chart-frame{height:290px;position:relative}
.chart-frame.compact{height:240px}
.leader-list{display:grid;gap:0;border-top:1px solid var(--line)}
.leader-row{display:grid;grid-template-columns:32px minmax(120px,1fr) 90px 90px;gap:8px;align-items:center;padding:10px 2px;border-bottom:1px solid #edf1f3}
.leader-rank{color:var(--muted);font-variant-numeric:tabular-nums}
.leader-name{font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.leader-metric{text-align:right;font-variant-numeric:tabular-nums}
.leader-country{font-size:10px;color:var(--muted);text-align:right}
.table-wrap{overflow:auto}
.table-wrap.tall{max-height:690px}
table{width:100%;border-collapse:collapse;min-width:800px}
th,td{padding:9px 10px;border-bottom:1px solid #e8edef;text-align:left;vertical-align:middle}
th{position:sticky;top:0;z-index:2;background:#f8fafb;color:var(--muted);font-size:10px;font-weight:700;text-transform:uppercase}
td.num,th.num{text-align:right;font-variant-numeric:tabular-nums}
.country-name{font-weight:700}
.tier{display:inline-flex;align-items:center;padding:2px 7px;border-radius:3px;font-size:10px;font-weight:700;white-space:nowrap}
.tier.major{background:#e5eef8;color:#235f87}
.tier.cross{background:#e5f4ee;color:#1f715d}
.tier.growth{background:#fff1db;color:#95631d}
.tier.tail{background:#edf0f2;color:#5f6e75}
.toolbar{display:flex;align-items:center;gap:8px;padding:12px;border-bottom:1px solid var(--line);position:sticky;top:0;background:#fff;z-index:3}
.search-box{height:36px;min-width:260px;flex:1;display:flex;align-items:center;gap:8px;border:1px solid var(--line);padding:0 10px;background:#fff}
.search-box svg{width:15px;color:var(--muted)}
.search-box input{border:0;outline:0;min-width:0;width:100%;color:var(--ink)}
select{height:36px;border:1px solid var(--line);background:#fff;color:var(--ink);padding:0 28px 0 9px}
.icon-button{width:36px;height:36px;display:grid;place-items:center;border:1px solid var(--line);background:#fff;color:var(--blue);border-radius:3px}
.icon-button svg{width:16px}
.action-button{height:36px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 12px;border:1px solid var(--blue);background:var(--blue);color:#fff;border-radius:3px;white-space:nowrap}
.action-button svg{width:15px;height:15px}
.result-count{margin-left:auto;color:var(--muted);font-size:10px;white-space:nowrap}
.brand-link,.asin-link{color:var(--blue);text-decoration:none;font-weight:650}
.brand-link:hover,.asin-link:hover{text-decoration:underline}
.product-cell{display:grid;grid-template-columns:46px minmax(260px,1fr);gap:9px;align-items:center;max-width:560px}
.product-image{width:46px;height:46px;object-fit:contain;background:#fff;border:1px solid var(--line)}
.product-title{font-size:11px;color:var(--ink);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.product-meta{display:flex;gap:8px;margin-top:3px;font-size:10px;color:var(--muted)}
.positive{color:var(--green);font-weight:700}
.negative{color:var(--red);font-weight:700}
.evidence{font-size:10px;color:var(--green)}
.pagination{display:flex;justify-content:space-between;align-items:center;padding:12px;color:var(--muted);font-size:11px}
.page-buttons{display:flex;gap:4px}
.page-button{min-width:31px;height:31px;border:1px solid var(--line);background:#fff;border-radius:3px}
.page-button.active{background:var(--blue);border-color:var(--blue);color:#fff}
.launch-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.launch-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:10px 0 14px;border-top:1px solid var(--line)}
.launch-toolbar select{min-width:170px}
.launch-toolbar .copy-status{color:var(--green);font-size:11px;min-width:140px}
.launch-card{border:1px solid var(--line);background:#fff;min-width:0;display:grid;grid-template-rows:128px minmax(0,1fr)}
.launch-media{height:128px;min-height:128px;display:grid;place-items:center;border-bottom:1px solid var(--line);background:#fafcfc;overflow:hidden}
.launch-media img{display:block;width:auto;height:auto;max-width:100%;max-height:128px;object-fit:contain}
.launch-body{padding:10px}
.launch-brand{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:6px}
.launch-title{height:40px;font-size:11px;overflow:hidden}
.launch-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:var(--line);margin-top:10px}
.launch-metric{background:#f8fafb;padding:7px}
.launch-metric span{display:block;font-size:9px;color:var(--muted)}
.launch-metric strong{display:block;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.method-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.method-grid .panel{margin:0;min-height:220px}
.method-grid dl{display:grid;grid-template-columns:120px 1fr;gap:7px 14px}
.method-grid dt{color:var(--muted)}
.method-grid dd{margin:0;font-weight:650}
.method-list p{display:flex;align-items:center;gap:8px}
.method-list ul{padding-left:18px}
.loader{position:fixed;inset:0;background:rgba(244,247,248,.96);display:grid;place-content:center;gap:12px;text-align:center;color:var(--muted);z-index:20}
.loader-line{height:3px;width:240px;background:linear-gradient(90deg,var(--blue) 0 35%,#dce5e8 35%);animation:load 1.2s infinite linear;background-size:200% 100%}
.error-state{position:fixed;inset:0;background:var(--canvas);z-index:30;place-content:center;text-align:center}
.error-state:not([hidden]){display:grid}
.error-state span{color:var(--muted);margin-top:8px}
@keyframes load{to{background-position:-200% 0}}
@media(max-width:1200px){.share-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.brand-product-card{grid-column:1/-1;grid-template-columns:180px minmax(0,1fr);grid-template-rows:auto auto 1fr}.brand-product-card img{grid-row:1/4;height:170px}.brand-product-card .card-metrics{grid-column:2}}
@media(max-width:1100px){.kpi-strip{grid-template-columns:repeat(3,1fr)}.analysis-grid,.analysis-grid.equal{grid-template-columns:1fr}.launch-grid{grid-template-columns:repeat(3,1fr)}.product-toolbar{flex-wrap:wrap}.search-box{min-width:100%}.result-count{margin-left:0}}
@media(max-width:720px){.masthead-inner{padding:18px 14px;align-items:flex-start;flex-direction:column}.masthead h1{font-size:21px}.workspace{padding:0 12px 36px}.control-band{align-items:stretch;flex-direction:column;padding:10px 0}.country-switch{display:grid;grid-template-columns:repeat(3,1fr)}.country-button{border:1px solid var(--line);margin:-1px 0 0 -1px;border-radius:0!important;padding:0 6px}.tabs{gap:14px;overflow:auto}.tab{white-space:nowrap}.kpi-strip{grid-template-columns:repeat(2,1fr)}.share-grid{grid-template-columns:1fr}.brand-product-card{grid-column:auto;grid-template-columns:110px minmax(0,1fr);grid-template-rows:auto auto 1fr;padding:10px}.brand-product-card img{grid-row:1/4;height:128px}.brand-product-card .card-metrics{grid-column:1/-1}.share-chart{height:220px}.country-product-toolbar{align-items:stretch;flex-wrap:wrap}.country-product-toolbar>div:first-child{width:100%}.country-product-toolbar select{flex:1;min-width:150px}.country-product-toolbar .result-count{align-self:center}.launch-toolbar{align-items:stretch}.launch-toolbar select{flex:1;min-width:145px}.launch-toolbar .action-button{flex:1}.launch-toolbar .copy-status{width:100%;min-width:0}.launch-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.method-grid{grid-template-columns:1fr}.toolbar select{flex:1;min-width:145px}.chart-frame{height:250px}.leader-row{grid-template-columns:28px 1fr 75px}.leader-country{display:none}.snapshot-meta{justify-content:space-between}.product-cell{grid-template-columns:38px minmax(220px,1fr)}.product-image{width:38px;height:38px}}
@media(max-width:430px){.launch-grid{grid-template-columns:1fr}.kpi-value{font-size:18px}.masthead-inner{gap:12px}.status-block{white-space:normal}.analysis-grid{display:block}}
