:root {
  --brand: #d71844;
  --brand-deep: #ae0b34;
  --brand-bright: #f34c72;
  --brand-soft: #fde8ee;
  --brand-wash: #fff4f7;
  --ink: #241b20;
  --ink-soft: #4d3e45;
  --muted: #8a777f;
  --muted-light: #b5a5ab;
  --line: #eee2e6;
  --line-strong: #e4d4da;
  --panel: #fffdfd;
  --mint: #12ad78;
  --mint-soft: #e5f8f0;
  --lilac: #af92f5;
  --lilac-soft: #f0ebff;
  --orange-soft: #fff0e4;
  --sky-soft: #e9f5ff;
  --shadow: 0 24px 70px rgba(91, 52, 66, .08);
  --shadow-soft: 0 8px 32px rgba(91, 52, 66, .06);
  --sidebar-width: 208px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0; min-width: 320px; color: var(--ink);
  background: radial-gradient(circle at 7% 6%, rgba(255,206,219,.44), transparent 24%), radial-gradient(circle at 91% 11%, rgba(237,223,255,.36), transparent 23%), radial-gradient(circle at 65% 76%, rgba(255,232,219,.32), transparent 26%), #f8f1f3;
  font-family: "Aptos", "SF Pro Display", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 14px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
svg { display: block; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#icon-grid path { fill: currentColor; stroke: none; }
.ambient { position: fixed; z-index: -1; border-radius: 999px; pointer-events: none; }
.ambient-one { width: 380px; height: 380px; top: -170px; left: -130px; background: radial-gradient(circle, rgba(242,170,190,.22), transparent 68%); }
.ambient-two { width: 430px; height: 430px; top: 28%; right: -220px; background: radial-gradient(circle, rgba(188,160,250,.17), transparent 68%); }
.ambient-three { width: 440px; height: 440px; bottom: -260px; left: 38%; background: radial-gradient(circle, rgba(242,192,160,.16), transparent 68%); }
.app-shell { width: min(calc(100% - 40px), 1680px); margin: 24px auto 44px; display: grid; grid-template-columns: var(--sidebar-width) minmax(0,1fr); gap: 18px; align-items: start; }
.panel { background: rgba(255,253,254,.94); border: 1px solid rgba(238,226,230,.96); border-radius: 22px; box-shadow: var(--shadow-soft); }
.sidebar {
  position: sticky; top: 24px; height: calc(100vh - 48px); min-height: 610px; display: flex; flex-direction: column; justify-content: space-between; padding: 18px 14px 14px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,250,252,.97)), radial-gradient(circle at 50% 0, rgba(250,216,226,.5), transparent 36%);
  border: 1px solid rgba(237,224,229,.95); border-radius: 24px; box-shadow: var(--shadow);
}
.sidebar-logo { display: flex; align-items: center; gap: 7px; padding: 7px 8px 20px; border-bottom: 1px solid var(--line); }
.sidebar-logo > img { width: 74px; height: auto; filter: contrast(1.12) saturate(1.18); }
.brand-market { margin-left: auto; display: grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.brand-mark { position: relative; display: inline-block; width: 19px; height: 19px; flex: 0 0 auto; }
.brand-mark i { position: absolute; width: 9px; height: 11px; border-radius: 80% 20% 80% 20%; }
.brand-mark i:nth-child(1) { top: 0; left: 2px; transform: rotate(8deg); background: #d71844; }
.brand-mark i:nth-child(2) { top: 0; right: 1px; transform: rotate(82deg); background: #b793ef; }
.brand-mark i:nth-child(3) { bottom: 0; right: 2px; transform: rotate(188deg); background: #f3a970; }
.brand-mark i:nth-child(4) { bottom: 0; left: 1px; transform: rotate(274deg); background: #e98ba2; }
.brand-mark::after { content: ""; position: absolute; inset: 7px; background: #fff9fa; border-radius: 50%; }
.side-nav { display: grid; gap: 4px; padding-top: 18px; }
.nav-item { position: relative; display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 7px 8px; border-radius: 12px; color: #6e5b63; font-size: 13px; font-weight: 600; transition: color .2s, background .2s, transform .2s; }
.nav-item:hover { color: var(--brand); background: rgba(253,232,238,.55); transform: translateX(2px); }
.nav-item.active { color: var(--brand); background: linear-gradient(105deg, #fde9ef, #fff7f9); box-shadow: inset 0 0 0 1px rgba(215,24,68,.08); }
.nav-item.active::after { content: ""; position: absolute; right: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 5px rgba(215,24,68,.08); }
.nav-index { display: grid; place-items: center; width: 27px; height: 27px; flex: 0 0 auto; border: 1px solid var(--line-strong); border-radius: 8px; background: rgba(255,255,255,.74); color: #9b858e; font-size: 9px; font-weight: 800; letter-spacing: .04em; }
.nav-item.active .nav-index { color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-bright)); border-color: transparent; box-shadow: 0 6px 14px rgba(215,24,68,.18); }
.nav-label { white-space: nowrap; }
.sidebar-bottom { display: grid; gap: 12px; }
.readonly-card { padding: 12px; border-radius: 14px; background: linear-gradient(145deg, #effaf5, #fbfffd); border: 1px solid #dff2ea; }
.readonly-head { display: flex; align-items: center; gap: 7px; color: #1d7f5e; font-size: 11px; font-weight: 800; }
.live-dot { display: inline-block; width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #18b87e; box-shadow: 0 0 0 4px rgba(24,184,126,.10); animation: pulse 2.2s infinite; }
.readonly-card p { margin: 7px 0 10px; color: #6d837a; font-size: 10px; }
.version-tag { color: #3b7c66; font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.sidebar-footnote { margin: 0; padding: 0 4px; color: var(--muted-light); font-size: 9px; letter-spacing: .05em; }
.main-content { display: grid; gap: 18px; min-width: 0; }
.hero { position: relative; overflow: hidden; padding: 25px 28px 0; background: linear-gradient(145deg, rgba(255,255,255,.97), rgba(255,250,252,.98)); box-shadow: var(--shadow); }
.hero::before { content: ""; position: absolute; width: 520px; height: 520px; right: -260px; top: -300px; border-radius: 50%; background: radial-gradient(circle, rgba(215,24,68,.10), transparent 68%); }
.hero::after { content: ""; position: absolute; width: 340px; height: 340px; left: 35%; bottom: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(183,147,239,.12), transparent 70%); }
.hero-top { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.brand-lockup { display: flex; align-items: center; gap: 11px; }
.brand-monogram { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(145deg,#fff,#fff1f5); border: 1px solid #f5dde4; box-shadow: 0 7px 18px rgba(141,79,96,.08); }
.brand-lockup strong { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
.brand-lockup span { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; letter-spacing: .06em; }
.hero-actions { display: flex; align-items: center; gap: 10px; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 12px; border-radius: 999px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.status-public { color: #1d8060; background: #e9f9f2; border: 1px solid #d7f1e7; }
.status-neutral { color: #79696f; background: #f8f2f4; border: 1px solid var(--line); }
.ghost-button, .filter-button, .text-button, .dialog-action { border: 0; cursor: pointer; }
.ghost-button { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: rgba(255,255,255,.8); font-size: 11px; font-weight: 700; }
.ghost-button:hover { border-color: #efc3cf; color: var(--brand); background: #fff7f9; }
.ghost-button .icon { width: 14px; height: 14px; }
.hero-main { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 34px; padding: 38px 6px 34px; }
.hero-copy { max-width: 800px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 14px; color: var(--brand); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.eyebrow span { width: 24px; height: 2px; border-radius: 999px; background: var(--brand); }
.hero h1 { margin: 0; font-family: "Arial Black", "Aptos Display", "PingFang SC", "Microsoft YaHei", sans-serif; font-size: clamp(48px,6.2vw,86px); font-weight: 900; line-height: .98; letter-spacing: -.075em; }
.hero h1 em { font-style: normal; color: transparent; background: linear-gradient(110deg,var(--brand-deep),#dc234d 60%,#ee7891); -webkit-background-clip: text; background-clip: text; }
.hero-subtitle { max-width: 660px; margin: 18px 0 0; color: #765f69; font-size: 14px; line-height: 1.75; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.hero-badges span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 8px; background: #fff7f9; color: #75545f; font-size: 10px; font-weight: 700; border: 1px solid #f4e3e8; }
.hero-badges span.muted { color: #85747b; background: #f8f4f5; }
.hero-badges .icon { width: 12px; height: 12px; color: var(--brand); }
.hero-meta { display: grid; gap: 9px; width: 190px; flex: 0 0 auto; }
.meta-card { padding: 12px 13px; border-radius: 13px; border: 1px solid var(--line); background: rgba(255,255,255,.72); box-shadow: 0 8px 22px rgba(105,67,80,.04); }
.meta-label { display: block; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.meta-card strong { display: block; margin: 4px 0 2px; font-family: "Bahnschrift", "DIN Alternate", "Aptos Display", sans-serif; font-size: 18px; letter-spacing: -.03em; }
.meta-card strong.empty-value { color: var(--brand); font-size: 17px; }
.meta-note { color: var(--muted-light); font-size: 9px; }
.hero-ribbon { position: relative; z-index: 2; display: flex; align-items: center; gap: 18px; margin: 0 -28px; padding: 9px 28px; overflow: hidden; background: var(--ink); color: #fff; font-size: 8px; font-weight: 800; letter-spacing: .16em; white-space: nowrap; }
.hero-ribbon span:nth-child(even) { color: #e98aa1; font-size: 7px; }
.filter-panel { padding: 14px 16px 11px; background: rgba(255,253,254,.9); backdrop-filter: blur(18px); }
.filter-row { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.filter-group { display: grid; gap: 5px; }
.filter-label { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.segmented, .mini-tabs { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: #f7f1f3; border: 1px solid #f0e5e8; }
.segment, .mini-tabs button { min-height: 28px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; color: #8b747d; font-size: 10px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.segment.active, .mini-tabs button.active { color: #fff; background: var(--ink); box-shadow: 0 5px 14px rgba(36,27,32,.16); }
.segment:hover:not(.active), .mini-tabs button:hover:not(.active) { color: var(--brand); }
.select-like { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: #78666d; font-size: 10px; }
.select-like .icon { width: 12px; height: 12px; }
.filter-button { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; margin-left: auto; padding: 0 14px; border-radius: 9px; color: #fff; background: linear-gradient(135deg,var(--brand-deep),var(--brand)); box-shadow: 0 8px 18px rgba(215,24,68,.18); font-size: 10px; font-weight: 800; }
.filter-button:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(215,24,68,.22); }
.filter-button .icon { width: 14px; height: 14px; }
.filter-meta { display: flex; justify-content: space-between; gap: 20px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line); color: var(--muted-light); font-size: 9px; }
.filter-summary { display: flex; align-items: center; gap: 7px; color: #7f6c74; }
.filter-summary i { width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
.dashboard-section { display: grid; gap: 12px; scroll-margin-top: 18px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding: 12px 4px 2px; }
.section-index { display: block; margin-bottom: 2px; color: var(--brand); font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.section-heading h2 { margin: 0; font-size: 25px; font-weight: 800; letter-spacing: -.045em; }
.heading-status, .section-hint { color: var(--muted); font-size: 10px; }
.heading-status { display: flex; align-items: center; gap: 8px; padding-bottom: 4px; font-weight: 700; }
.heading-links { display: flex; align-items: center; gap: 12px; }
.external-link { display: inline-flex; align-items: center; gap: 5px; color: var(--brand); font-size: 10px; font-weight: 800; }
.external-link .icon { width: 12px; height: 12px; }
.kpi-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; }
.kpi-card { position: relative; overflow: hidden; min-height: 154px; padding: 16px 16px 14px; transition: transform .2s, box-shadow .2s; }
.kpi-card:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(91,52,66,.09); }
.kpi-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kpi-label { color: #6d5961; font-size: 11px; font-weight: 800; }
.kpi-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; }
.kpi-icon .icon { width: 14px; height: 14px; }
.accent-rose .kpi-icon { color: var(--brand); background: var(--brand-soft); }
.accent-orange .kpi-icon { color: #bf713d; background: var(--orange-soft); }
.accent-mint .kpi-icon { color: #15845f; background: var(--mint-soft); }
.accent-lilac .kpi-icon { color: #7c5bba; background: var(--lilac-soft); }
.accent-sky .kpi-icon { color: #397eb5; background: var(--sky-soft); }
.kpi-value { position: relative; z-index: 2; margin-top: 17px; font-family: "Bahnschrift", "DIN Alternate", "Aptos Display", sans-serif; font-size: 36px; font-weight: 700; line-height: 1; letter-spacing: -.05em; }
.kpi-foot { position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; margin-top: 17px; color: var(--muted); font-size: 9px; }
.empty-chip { display: inline-flex; align-items: center; min-height: 20px; padding: 0 7px; border-radius: 6px; color: #8a7079; background: #f7eff2; font-size: 8px; font-weight: 800; white-space: nowrap; }
.card-orb { position: absolute; right: -20px; bottom: -36px; width: 118px; height: 118px; border-radius: 50%; opacity: .45; }
.orb-rose { background: radial-gradient(circle at 38% 35%,#ffc6d5,#f7dce4 62%,transparent 72%); }
.orb-orange { background: radial-gradient(circle at 38% 35%,#ffd0aa,#f8e2d4 62%,transparent 72%); }
.orb-mint { background: radial-gradient(circle at 38% 35%,#bcebd8,#e4f3ed 62%,transparent 72%); }
.orb-lilac { background: radial-gradient(circle at 38% 35%,#d8c7ff,#ece5fb 62%,transparent 72%); }
.orb-sky { background: radial-gradient(circle at 38% 35%,#bfe2fa,#e3f1fa 62%,transparent 72%); }
.overview-grid { display: grid; grid-template-columns: minmax(0,2fr) minmax(280px,.78fr); gap: 10px; }
.chart-card, .insight-card, .table-card, .target-card, .target-note-card, .platform-card, .contribution-card, .pricegap-summary, .opportunity-card, .ranking-card, .category-card, .source-card, .definition-card { padding: 18px; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.card-head.compact { align-items: center; }
.card-eyebrow { display: block; margin-bottom: 3px; color: var(--brand); font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.card-head h3, .future-card h3, .definition-card h3 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -.025em; }
.card-head p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.card-tools { display: flex; align-items: center; gap: 8px; }
.sample-flag, .soft-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 7px; background: #f8f2f4; border: 1px solid var(--line); color: #8f7981; font-size: 8px; font-weight: 800; white-space: nowrap; }
.sample-flag { color: #9a717c; background: #fff6f8; border-color: #f4e2e7; }
.mini-tabs button { min-height: 24px; padding: 0 8px; font-size: 9px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; color: #796870; font-size: 9px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; }
.legend-dot.tt { background: var(--brand); }
.legend-dot.sp { background: var(--lilac); }
.legend-line { width: 14px; height: 1px; border-top: 2px dashed #c9a6af; }
.trend-chart { display: grid; grid-template-columns: 24px minmax(0,1fr); gap: 6px; height: 305px; margin-top: 6px; }
.chart-axis { display: flex; flex-direction: column; justify-content: space-between; padding: 30px 0 20px; color: #bbaab0; font-size: 8px; }
.chart-canvas { position: relative; min-width: 0; }
.chart-canvas > svg { width: 100%; height: 100%; overflow: visible; }
.grid-lines line { stroke: #f2e8eb; stroke-width: 1; stroke-dasharray: 3 5; }
.placeholder-band { fill: rgba(215,24,68,.018); stroke: #efdfe4; stroke-width: 1.1; stroke-dasharray: 7 8; }
.area-line { stroke: none; }
.tt-area { fill: url(#ttFill); }
.sp-area { fill: url(#spFill); }
.data-line { fill: none; stroke-width: 2.2; stroke-linecap: round; }
.tt-line { stroke: var(--brand); }
.sp-line { stroke: var(--lilac); }
.target-line { fill: none; stroke: #c9a7b0; stroke-width: 1.2; stroke-dasharray: 5 5; }
.tt-point { fill: #fff; stroke: var(--brand); stroke-width: 2.5; }
.sp-point { fill: #fff; stroke: var(--lilac); stroke-width: 2.5; }
.chart-empty-note { position: absolute; left: 50%; top: 54%; transform: translate(-50%,-50%); display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid rgba(237,224,229,.9); border-radius: 12px; background: rgba(255,253,254,.88); box-shadow: 0 12px 30px rgba(77,48,59,.09); backdrop-filter: blur(9px); }
.chart-empty-note .icon { width: 22px; height: 22px; color: var(--brand); }
.chart-empty-note strong, .chart-empty-note span { display: block; white-space: nowrap; }
.chart-empty-note strong { font-size: 10px; }
.chart-empty-note span { margin-top: 1px; color: var(--muted); font-size: 8px; }
.chart-x-axis { display: flex; justify-content: space-between; padding: 2px 5px 0 30px; color: #bbaab0; font-size: 8px; }
.insight-card { display: flex; flex-direction: column; min-height: 100%; background: linear-gradient(180deg,#fffdfd,#fffafb); }
.insight-list { display: grid; gap: 1px; margin-top: 16px; border-top: 1px solid var(--line); }
.insight-item { display: grid; grid-template-columns: 32px minmax(0,1fr); gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.insight-number { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; color: var(--brand); background: var(--brand-soft); font-size: 9px; font-weight: 800; }
.insight-item strong { display: block; font-size: 12px; }
.insight-item p { margin: 4px 0 0; color: var(--muted); font-size: 9px; line-height: 1.6; }
.insight-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 12px; border-radius: 12px; background: linear-gradient(135deg,#fff0f4,#fff8fa); border: 1px solid #f4e0e6; }
.pulse-icon { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 auto; border-radius: 9px; background: #fff; color: var(--brand); box-shadow: 0 5px 14px rgba(215,24,68,.08); }
.pulse-icon .icon { width: 15px; height: 15px; }
.insight-foot strong, .insight-foot span { font-size: 9px; }
.insight-foot div span { display: block; margin-top: 1px; color: var(--muted); }
.split-section { margin-top: 2px; }
.goals-grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(300px,.75fr); gap: 10px; }
.target-card { display: flex; justify-content: space-between; align-items: center; gap: 32px; min-height: 230px; background: linear-gradient(145deg,#fffdfd,#fff9fb); }
.target-copy { max-width: 380px; }
.target-copy h3 { margin: 0; font-size: 22px; letter-spacing: -.04em; }
.target-copy p { color: var(--muted); font-size: 10px; }
.target-progress { display: flex; align-items: center; gap: 22px; }
.progress-ring { position: relative; display: grid; place-items: center; width: 112px; height: 112px; flex: 0 0 auto; border-radius: 50%; background: conic-gradient(var(--brand-soft) 0 64%,#f4ecef 64% 100%); }
.progress-ring::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #fffdfd; }
.progress-ring span, .progress-ring small { position: relative; z-index: 1; }
.progress-ring span { margin-top: 6px; font-family: "Bahnschrift", "DIN Alternate", sans-serif; font-size: 28px; font-weight: 700; }
.progress-ring small { margin-top: -21px; color: var(--muted); font-size: 8px; }
.target-metrics { display: grid; gap: 9px; min-width: 130px; }
.target-metrics div { display: flex; justify-content: space-between; gap: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.target-metrics span { color: var(--muted); font-size: 9px; }
.target-metrics strong { font-size: 11px; }
.check-list { display: grid; gap: 0; margin: 15px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.check-list li { display: flex; align-items: center; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.check-icon { display: grid; place-items: center; width: 25px; height: 25px; flex: 0 0 auto; border-radius: 8px; color: #1b936b; background: var(--mint-soft); }
.check-icon .icon { width: 13px; height: 13px; }
.check-list li div { min-width: 0; }
.check-list li strong, .check-list li span { display: block; }
.check-list li strong { font-size: 10px; }
.check-list li div span { color: var(--muted); font-size: 8px; }
.check-list li em { margin-left: auto; color: var(--muted-light); font-size: 8px; font-style: normal; white-space: nowrap; }
.table-card { overflow: hidden; }
.table-tools { display: flex; align-items: center; gap: 10px; }
.text-button { display: inline-flex; align-items: center; gap: 4px; padding: 0; background: transparent; color: var(--brand); font-size: 9px; font-weight: 800; }
.text-button .icon { width: 12px; height: 12px; }
.data-table-wrap { margin: 15px -18px 0; overflow-x: auto; }
.data-table { width: 100%; min-width: 760px; border-collapse: collapse; text-align: left; }
.data-table th { padding: 9px 18px; background: #faf5f7; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: #8c777f; font-size: 8px; font-weight: 800; letter-spacing: .03em; }
.data-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); color: #b3a4aa; font-size: 10px; }
.table-state { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; margin: 0 -18px -18px; background: #fffbfc; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.table-state .icon { width: 14px; height: 14px; color: var(--brand); }
.channel-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(240px,.78fr); gap: 10px; }
.platform-card { position: relative; overflow: hidden; }
.platform-card::after { content: ""; position: absolute; width: 130px; height: 130px; right: -56px; top: -55px; border-radius: 50%; opacity: .4; }
.tiktok-card { background: linear-gradient(145deg,#fffdfd,#fff8fa); }
.tiktok-card::after { background: radial-gradient(circle,#f7c6d3,transparent 70%); }
.shopee-card { background: linear-gradient(145deg,#fffdfd,#fbf9ff); }
.shopee-card::after { background: radial-gradient(circle,#d9c9ff,transparent 70%); }
.platform-head { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; }
.platform-logo { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 auto; border-radius: 11px; color: #fff; font-size: 10px; font-weight: 900; }
.tt-logo { background: linear-gradient(135deg,#1f1b1d,#d71844); box-shadow: 0 7px 16px rgba(215,24,68,.16); }
.sp-logo { background: linear-gradient(135deg,#8c6bdc,#b99cf6); box-shadow: 0 7px 16px rgba(140,107,220,.16); }
.platform-head strong, .platform-head span { display: block; }
.platform-head strong { font-size: 14px; }
.platform-head div span { color: var(--muted); font-size: 8px; }
.platform-head .soft-badge { margin-left: auto; }
.platform-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 20px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.platform-stats div { display: grid; gap: 5px; }
.platform-stats span { color: var(--muted); font-size: 8px; }
.platform-stats strong { font-family: "Bahnschrift", "DIN Alternate", sans-serif; font-size: 20px; }
.share-bar { height: 6px; margin-top: 14px; overflow: hidden; border-radius: 999px; background: #f4ecef; }
.share-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--brand),var(--brand-bright)); }
.shopee-card .share-bar span { background: linear-gradient(90deg,#8562d8,var(--lilac)); }
.platform-card > p { margin: 12px 0 0; color: var(--muted); font-size: 9px; }
.contribution-card { background: #fffafc; }
.mix-visual { display: flex; gap: 4px; height: 24px; margin-top: 28px; padding: 4px; border-radius: 8px; background: #f5edf0; overflow: hidden; }
.mix-visual span { display: block; border-radius: 5px; }
.mix-tt { width: 52%; background: linear-gradient(90deg,#c4143b,#e44f6c); opacity: .28; }
.mix-sp { width: 48%; background: linear-gradient(90deg,#8765d8,#c3abfa); opacity: .36; }
.mix-legend { display: grid; gap: 8px; margin-top: 14px; }
.mix-legend span { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 9px; }
.mix-legend i { width: 7px; height: 7px; border-radius: 50%; }
.mix-legend i.tt { background: var(--brand); }
.mix-legend i.sp { background: var(--lilac); }
.mix-legend strong { margin-left: auto; color: var(--ink); font-size: 10px; }
.card-note { margin: 16px 0 0; color: var(--muted); font-size: 9px; line-height: 1.65; }
.pricegap-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(290px,.75fr); gap: 10px; }
.pricegap-summary { background: linear-gradient(145deg,#fffdfd,#fff8fa); }
.pricegap-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.pricegap-head h3 { margin: 0; font-size: 18px; letter-spacing: -.03em; }
.pricegap-head p { margin: 5px 0 0; color: var(--muted); font-size: 9px; }
.pricegap-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 9px; margin-top: 18px; }
.pricegap-stats div { padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.65); }
.pricegap-stats span, .pricegap-stats strong { display: block; }
.pricegap-stats span { color: var(--muted); font-size: 8px; }
.pricegap-stats strong { margin-top: 8px; font-family: "Bahnschrift", "DIN Alternate", sans-serif; font-size: 23px; line-height: 1; }
.pricegap-empty { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 16px; border-radius: 13px; background: #fff; border: 1px dashed #ecd7de; }
.empty-illustration { position: relative; display: grid; place-items: center; width: 54px; height: 46px; flex: 0 0 auto; }
.empty-illustration span { position: absolute; width: 30px; height: 30px; border-radius: 9px; background: var(--brand-soft); }
.empty-illustration span:first-child { left: 0; top: 1px; transform: rotate(-9deg); background: #f7d5df; }
.empty-illustration span:nth-child(2) { right: 0; bottom: 1px; transform: rotate(9deg); background: var(--lilac-soft); }
.empty-illustration .icon { position: relative; z-index: 2; width: 19px; height: 19px; color: var(--brand); }
.pricegap-empty strong { display: block; font-size: 11px; }
.pricegap-empty p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.opportunity-list { display: grid; gap: 0; margin-top: 13px; border-top: 1px solid var(--line); }
.opportunity-list > div { display: flex; align-items: center; gap: 9px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.rank-pill { display: grid; place-items: center; width: 25px; height: 25px; flex: 0 0 auto; border-radius: 8px; background: var(--brand-soft); color: var(--brand); font-size: 8px; font-weight: 800; }
.opportunity-list strong, .opportunity-list p { display: block; }
.opportunity-list strong { font-size: 10px; }
.opportunity-list p { margin: 2px 0 0; color: var(--muted); font-size: 8px; }
.opportunity-list em { margin-left: auto; color: var(--muted-light); font-size: 12px; font-style: normal; }
.product-grid { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(280px,.65fr); gap: 10px; }
.ranking-head { display: grid; grid-template-columns: minmax(0,1fr) 58px 70px 58px; gap: 8px; margin-top: 14px; padding: 8px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 8px; }
.ranking-head span:not(:first-child) { text-align: right; }
.ranking-empty { display: grid; grid-template-columns: 30px minmax(0,1fr) 58px 70px 58px; align-items: center; gap: 8px; min-height: 61px; border-bottom: 1px solid var(--line); }
.ghost-rank { color: #c7b6bc; font-size: 10px; font-weight: 800; }
.ghost-lines { display: grid; gap: 6px; }
.ghost-lines i { display: block; width: 60%; height: 7px; border-radius: 999px; background: #f1e8eb; }
.ghost-lines i:last-child { width: 38%; height: 5px; }
.ghost-pill { justify-self: end; width: 46px; height: 17px; border-radius: 6px; background: #f8f2f4; }
.ghost-pill.short { width: 35px; }
.category-visual { display: flex; align-items: center; gap: 20px; margin-top: 22px; }
.category-donut { position: relative; display: grid; place-items: center; width: 118px; height: 118px; flex: 0 0 auto; border-radius: 50%; background: conic-gradient(#efd2da 0 28%,#e3dafa 28% 52%,#f7e2d4 52% 74%,#dcefe8 74% 100%); }
.category-donut::after { content: ""; position: absolute; inset: 17px; border-radius: 50%; background: var(--panel); }
.category-donut span, .category-donut small { position: relative; z-index: 1; }
.category-donut span { margin-top: 6px; font-size: 24px; font-weight: 800; }
.category-donut small { margin-top: -19px; color: var(--muted); font-size: 8px; }
.category-legend { display: grid; gap: 8px; }
.category-legend span { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 9px; }
.category-legend i { width: 8px; height: 8px; border-radius: 3px; background: #efd2da; }
.category-legend span:nth-child(2) i { background: #e3dafa; }
.category-legend span:nth-child(3) i { background: #f7e2d4; }
.category-legend span:nth-child(4) i { background: #dcefe8; }
.future-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.future-card { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 12px; min-height: 142px; padding: 18px; }
.future-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.future-icon .icon { width: 20px; height: 20px; }
.future-card h3 { margin-top: 3px; }
.future-card p { margin: 5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.6; }
.future-status { grid-column: 2; align-self: end; justify-self: start; color: var(--muted-light); font-size: 8px; font-weight: 700; }
.data-note-grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(280px,.8fr); gap: 10px; }
.source-list { display: grid; gap: 0; margin-top: 13px; border-top: 1px solid var(--line); }
.source-list > div { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.source-icon { display: grid; place-items: center; width: 29px; height: 29px; flex: 0 0 auto; border-radius: 9px; background: #f8f1f4; color: var(--brand); font-size: 9px; font-weight: 900; }
.source-list strong, .source-list p { display: block; }
.source-list strong { font-size: 10px; }
.source-list p { margin: 2px 0 0; color: var(--muted); font-size: 8px; }
.source-list em { margin-left: auto; color: var(--muted-light); font-size: 8px; font-style: normal; white-space: nowrap; }
.definition-card dl { display: grid; gap: 0; margin: 14px 0 0; }
.definition-card dl div { display: grid; grid-template-columns: 76px minmax(0,1fr); gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.definition-card dt { font-size: 10px; font-weight: 800; }
.definition-card dd { margin: 0; color: var(--muted); font-size: 9px; }
.definition-note { margin: 12px 0 0; padding: 10px; border-radius: 9px; background: #fff7f9; color: #92747e; font-size: 8px; }
.page-footer { display: flex; justify-content: space-between; align-items: flex-end; gap: 26px; padding: 15px 5px 0; color: var(--muted); font-size: 9px; }
.page-footer strong, .page-footer span { display: block; }
.page-footer strong { margin-bottom: 2px; color: var(--ink); font-size: 12px; }
.page-footer p { max-width: 520px; margin: 0; text-align: right; color: var(--muted-light); }
.mobile-menu-button, .sidebar-backdrop { display: none; }
.data-dialog { width: min(520px,calc(100vw - 28px)); padding: 28px; border: 1px solid #ecdbe1; border-radius: 20px; background: #fffdfd; box-shadow: 0 40px 100px rgba(38,21,29,.24); color: var(--ink); }
.data-dialog::backdrop { background: rgba(38,24,30,.42); backdrop-filter: blur(5px); }
.dialog-close { position: absolute; right: 15px; top: 13px; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--muted); font-size: 19px; cursor: pointer; }
.dialog-kicker { color: var(--brand); font-size: 8px; font-weight: 900; letter-spacing: .14em; }
.data-dialog h2 { margin: 7px 0 8px; font-size: 28px; letter-spacing: -.045em; }
.data-dialog > p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.data-dialog ol { display: grid; gap: 8px; margin: 20px 0; padding: 0; list-style: none; }
.data-dialog li { display: flex; align-items: center; gap: 12px; padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: #fffbfc; }
.data-dialog li > span { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 auto; border-radius: 8px; background: var(--brand-soft); color: var(--brand); font-size: 9px; font-weight: 900; }
.data-dialog strong, .data-dialog em { display: block; }
.data-dialog strong { font-size: 11px; }
.data-dialog em { margin-top: 2px; color: var(--muted); font-size: 8px; font-style: normal; }
.dialog-action { width: 100%; min-height: 42px; border-radius: 11px; color: #fff; background: linear-gradient(135deg,var(--brand-deep),var(--brand)); font-size: 11px; font-weight: 800; box-shadow: 0 9px 20px rgba(215,24,68,.18); }
@keyframes pulse { 0%,100%{box-shadow:0 0 0 4px rgba(24,184,126,.10)} 50%{box-shadow:0 0 0 7px rgba(24,184,126,.02)} }
@media (max-width: 1280px) {
  :root { --sidebar-width: 190px; }
  .app-shell { width: min(calc(100% - 28px),1680px); gap: 14px; }
  .sidebar { padding-inline: 11px; }
  .nav-item { gap: 7px; padding-inline: 7px; font-size: 12px; }
  .kpi-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .channel-grid { grid-template-columns: 1fr 1fr; }
  .contribution-card { grid-column: 1 / -1; }
  .contribution-card .mix-visual { margin-top: 18px; }
}
@media (max-width: 1040px) {
  .overview-grid, .pricegap-grid, .product-grid, .data-note-grid { grid-template-columns: 1fr; }
  .insight-list { grid-template-columns: repeat(3,1fr); gap: 12px; border-top: 0; }
  .insight-item { grid-template-columns: 1fr; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
  .insight-foot { margin-top: 14px; }
  .goals-grid { grid-template-columns: 1fr; }
  .target-card { min-height: 205px; }
  .future-grid { grid-template-columns: 1fr 1fr; }
  .future-card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  html { scroll-padding-top: 72px; }
  .app-shell { display: block; width: min(calc(100% - 20px),800px); margin: 10px auto 30px; }
  .main-content { gap: 14px; }
  .sidebar { position: fixed; z-index: 70; left: 10px; top: 10px; height: calc(100vh - 20px); width: 264px; min-height: 0; transform: translateX(calc(-100% - 24px)); transition: transform .26s; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop { position: fixed; z-index: 65; inset: 0; background: rgba(38,24,30,.36); backdrop-filter: blur(4px); }
  .sidebar-backdrop.open { display: block; }
  .mobile-menu-button { position: fixed; z-index: 60; left: 18px; top: 18px; display: grid; gap: 4px; place-content: center; width: 40px; height: 40px; padding: 0 10px; border: 1px solid rgba(237,224,229,.96); border-radius: 12px; background: rgba(255,253,254,.95); box-shadow: 0 10px 26px rgba(91,52,66,.12); backdrop-filter: blur(12px); cursor: pointer; }
  .mobile-menu-button span { display: block; width: 17px; height: 1.5px; border-radius: 99px; background: var(--ink); }
  .hero { padding-top: 67px; }
  .hero-ribbon { margin-inline: -28px; }
  .hero-main { align-items: flex-start; }
  .hero-meta { width: 170px; }
  .filter-button { margin-left: 0; }
  .kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .kpi-card:last-child { grid-column: 1 / -1; }
  .channel-grid { grid-template-columns: 1fr; }
  .contribution-card { grid-column: auto; }
}
@media (max-width: 680px) {
  body { font-size: 13px; }
  .app-shell { width: 100%; margin: 0; }
  .main-content { gap: 12px; }
  .panel { border-radius: 18px; }
  .hero { margin: 0 7px; padding: 64px 18px 0; }
  .hero-top { align-items: flex-start; }
  .hero-actions { gap: 6px; }
  .hero-actions .ghost-button { width: 36px; height: 36px; justify-content: center; padding: 0; font-size: 0; }
  .hero-actions .ghost-button .icon { width: 14px; height: 14px; }
  .status-pill { padding-inline: 9px; min-height: 32px; }
  .brand-lockup span { display: none; }
  .brand-lockup strong { font-size: 15px; }
  .hero-main { display: block; padding: 30px 1px 24px; }
  .hero h1 { font-size: clamp(45px,14vw,62px); line-height: 1; }
  .hero-subtitle { font-size: 12px; margin-top: 14px; }
  .hero-badges { margin-top: 15px; }
  .hero-badges span { font-size: 9px; }
  .hero-meta { width: 100%; grid-template-columns: 1fr 1fr; margin-top: 22px; }
  .hero-ribbon { margin: 0 -18px; gap: 12px; padding-inline: 18px; }
  .filter-panel { margin: 0 7px; padding: 13px; position: static; }
  .filter-row { gap: 12px; }
  .filter-group { width: calc(50% - 6px); }
  .filter-group:nth-child(3) { width: 100%; }
  .segmented { width: 100%; }
  .segment { flex: 1; padding-inline: 7px; }
  .select-like { width: 100%; justify-content: space-between; }
  .filter-button { width: 100%; justify-content: center; }
  .filter-meta { display: grid; gap: 4px; }
  .section-heading { padding-inline: 3px; }
  .section-heading h2 { font-size: 23px; }
  .dashboard-section { padding-inline: 7px; }
  .heading-links { display: grid; justify-items: end; gap: 4px; }
  .kpi-grid { gap: 8px; }
  .kpi-card { min-height: 143px; padding: 14px; }
  .kpi-value { font-size: 32px; }
  .overview-grid, .goals-grid, .channel-grid, .pricegap-grid, .product-grid, .data-note-grid { gap: 8px; }
  .card-head { gap: 10px; }
  .card-head p { max-width: 230px; }
  .card-tools { display: grid; justify-items: end; gap: 6px; }
  .chart-card, .insight-card, .table-card, .target-card, .target-note-card, .platform-card, .contribution-card, .pricegap-summary, .opportunity-card, .ranking-card, .category-card, .source-card, .definition-card { padding: 15px; }
  .trend-chart { height: 240px; grid-template-columns: 18px minmax(0,1fr); }
  .chart-empty-note { top: 50%; max-width: 210px; }
  .chart-empty-note span { white-space: normal; line-height: 1.4; }
  .chart-x-axis { padding-left: 24px; }
  .insight-list { grid-template-columns: 1fr; gap: 8px; }
  .insight-item { grid-template-columns: 32px minmax(0,1fr); }
  .target-card { display: block; }
  .target-progress { margin-top: 20px; justify-content: space-between; }
  .pricegap-stats { grid-template-columns: 1fr 1fr; }
  .pricegap-head { display: grid; }
  .pricegap-empty { align-items: flex-start; }
  .future-grid { grid-template-columns: 1fr; }
  .future-card:last-child { grid-column: auto; }
  .future-card { min-height: 125px; }
  .data-table th, .data-table td { padding-inline: 13px; }
  .data-table-wrap, .table-state { margin-inline: -15px; }
  .data-table-wrap { margin-top: 13px; }
  .table-state { margin-bottom: -15px; }
  .page-footer { margin: 0 10px; padding-top: 10px; display: grid; gap: 8px; }
  .page-footer p { text-align: left; }
  .data-dialog { padding: 23px 18px 18px; }
  .data-dialog h2 { font-size: 24px; }
}
@media (max-width: 430px) {
  .hero-actions .status-pill { font-size: 0; gap: 0; width: 34px; justify-content: center; }
  .hero-actions .status-pill .live-dot { width: 7px; height: 7px; }
  .hero-meta { gap: 7px; }
  .meta-card strong { font-size: 16px; }
  .kpi-card { min-height: 136px; }
  .kpi-label { font-size: 10px; }
  .target-progress { gap: 12px; }
  .progress-ring { width: 96px; height: 96px; }
  .target-metrics { min-width: 115px; }
  .category-visual { align-items: flex-start; gap: 14px; }
  .category-donut { width: 100px; height: 100px; }
  .ranking-head { grid-template-columns: minmax(0,1fr) 48px 55px; }
  .ranking-head span:nth-child(2) { display: none; }
  .ranking-empty { grid-template-columns: 26px minmax(0,1fr) 48px 55px; }
  .ranking-empty .ghost-pill:nth-of-type(1) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
