:root {
  --ink: #19302d;
  --deep: #123d3b;
  --deep-2: #0d2d2c;
  --muted: #73817f;
  --line: #d9e0dc;
  --canvas: #edf1ef;
  --paper: #fbfcfa;
  --white: #ffffff;
  --coral: #e5795e;
  --coral-soft: #f8e7e0;
  --lime: #91a845;
  --lime-soft: #edf2dc;
  --blue: #4d8195;
  --blue-soft: #e5eff3;
  --green: #3e8d76;
  --green-soft: #e2f0eb;
  --shadow: 0 14px 32px rgba(24, 48, 47, .05);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button { cursor: pointer; }

.topbar { min-height: 74px; padding: 0 34px; background: rgba(251, 252, 250, .96); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 34px; position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 214px; color: var(--ink); text-decoration: none; }.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; background: var(--deep); color: #f7f4e8; font: 700 10px/1 Arial, sans-serif; letter-spacing: .08em; }.brand-copy strong { display: block; font-size: 12px; letter-spacing: .14em; line-height: 1.1; }.brand-copy small { display: block; color: var(--muted); font-size: 10px; margin-top: 4px; letter-spacing: .04em; }
.topbar-meta { display: flex; align-items: center; gap: 9px; flex: 1; color: var(--ink); font-size: 12px; }.live-dot, .status-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--green); }.meta-divider { width: 1px; height: 14px; margin: 0 3px; background: var(--line); }.muted { color: var(--muted); }.topbar-actions { display: flex; gap: 9px; }
.button { min-height: 38px; padding: 0 15px; border: 1px solid transparent; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; font-weight: 700; transition: .18s ease; }.button:hover { transform: translateY(-1px); }.button:disabled { cursor: wait; opacity: .65; transform: none; }.button-dark { background: var(--deep); color: var(--white); border-color: var(--deep); }.button-dark:hover { background: var(--deep-2); }.button-quiet { background: transparent; color: var(--ink); border-color: var(--line); }.button-quiet:hover { background: var(--white); border-color: #b9c7c2; }.button-icon { font-size: 16px; line-height: 0; font-weight: 500; }.refresh-glyph { transition: transform .5s ease; }.is-loading .refresh-glyph { transform: rotate(180deg); }

.app-shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: calc(100vh - 74px); }.sidebar { min-width: 0; padding: 29px 18px 20px; background: #f7f9f7; border-right: 1px solid var(--line); display: flex; flex-direction: column; }.sidebar-intro { padding: 0 4px 18px; border-bottom: 1px solid var(--line); }.eyebrow { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .18em; line-height: 1.3; }.sidebar-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }.sidebar h2, .monitor-panel h2, .methodology-panel h2 { margin: 5px 0 0; font-size: 20px; letter-spacing: -.02em; line-height: 1.15; }.sidebar-intro p { margin: 9px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }.count-badge { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; background: var(--deep); color: var(--white); font-size: 11px; font-weight: 700; }
.brand-list { display: grid; gap: 3px; padding-top: 14px; }.brand-item { position: relative; min-width: 0; width: 100%; padding: 9px 8px; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 9px; border: 1px solid transparent; background: transparent; color: var(--ink); text-align: left; transition: .18s ease; }.brand-item:hover { background: #eef4f1; }.brand-item.active { background: var(--white); border-color: #cbd8d2; box-shadow: 0 4px 12px rgba(20, 50, 45, .04); }.brand-item.active::before { content: ""; position: absolute; left: -1px; top: 7px; bottom: 7px; width: 3px; background: var(--coral); }.brand-avatar { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: var(--deep); background: #e4eeea; font-size: 11px; font-weight: 800; }.brand-all { color: #d7ebe3; background: var(--deep); }.brand-anker { background: #f8e7e0; color: #bd5e47; }.brand-ecoflow { background: #e5eff3; color: #39748b; }.brand-jackery { background: #edf2dc; color: #718e2d; }.brand-marstek { background: #f6ead4; color: #a37825; }.brand-zendure { background: #dcefe8; color: #2d7b65; }.brand-growatt { background: #ece6f0; color: #76517f; }.brand-item-copy { min-width: 0; }.brand-item-copy strong { display: block; font-size: 12px; line-height: 1.2; }.brand-item-copy small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.brand-item-count, .category-count { color: var(--muted); font-size: 10px; }
.sidebar-section { margin-top: 23px; }.sidebar-section-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 8px; }.text-button { padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 10px; }.text-button:hover { color: var(--ink); }.category-list { display: grid; gap: 2px; }.category-item { width: 100%; min-height: 31px; padding: 5px 8px; display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 8px; border: 1px solid transparent; background: transparent; color: var(--ink); text-align: left; font-size: 11px; }.category-item:hover { background: #eef4f1; }.category-item.active { color: var(--deep); background: #e9f1ed; border-color: #cdded5; font-weight: 700; }.category-dot { width: 6px; height: 6px; border-radius: 50%; background: #a7b5af; }.category-item.active .category-dot { background: var(--coral); }.sidebar-note { margin-top: auto; padding: 12px 10px; display: flex; gap: 9px; background: #fff8eb; color: #866f3d; }.sidebar-note .note-icon { width: 16px; height: 16px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid #d5bd81; font: 700 10px/1 serif; }.sidebar-note strong { display: block; color: #765e2b; font-size: 10px; }.sidebar-note p { margin: 4px 0 0; font-size: 9px; line-height: 1.55; }

.main-content { width: 100%; max-width: 1510px; min-width: 0; margin: 0 auto; padding: 38px 44px 28px; }.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }.page-heading h1 { margin: 7px 0 7px; font-size: 31px; letter-spacing: -.04em; line-height: 1; }.page-heading p { margin: 0; color: var(--muted); font-size: 12px; }.sync-status { padding-bottom: 4px; color: var(--muted); font-size: 11px; text-align: right; }.sync-status-line { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }.status-dot-amber { background: #b48a32; }.sync-status strong { display: block; margin-top: 4px; color: var(--ink); font-weight: 700; }
.filter-strip { min-height: 50px; margin-bottom: 13px; padding: 7px 9px; display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); background: var(--paper); }.search-field { height: 34px; min-width: 220px; padding: 0 10px; display: flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--line); color: var(--muted); }.search-field input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 11px; }.search-field input::placeholder { color: #9aa5a2; }.filter-strip-spacer { flex: 1; }.filter-summary { color: var(--muted); font-size: 10px; white-space: nowrap; }.sort-field { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; white-space: nowrap; }.sort-field select { padding: 7px 24px 7px 8px; border: 1px solid var(--line); border-radius: 0; outline: none; background: var(--white); color: var(--ink); font-size: 10px; }.sort-field select:focus { border-color: var(--green); }

.monitor-panel { min-width: 0; background: var(--paper); border: 1px solid var(--line); }.panel-heading { padding: 19px 20px 15px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); }.panel-heading-meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }.status-dot-green { background: var(--green); }.table-wrap { overflow-x: auto; }.product-table { width: 100%; min-width: 1050px; border-collapse: collapse; text-align: left; }.product-table th { padding: 11px 18px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }.product-table td { padding: 12px 18px; border-top: 1px solid #e4e9e5; vertical-align: middle; font-size: 11px; }.product-table tbody tr:hover { background: #f2f7f3; }.product-cell { display: flex; align-items: center; gap: 10px; min-width: 280px; }.product-thumb { position: relative; width: 45px; height: 45px; flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; border: 1px solid #dde6e0; background: var(--white); }.product-thumb img { width: 100%; height: 100%; object-fit: contain; }.thumb-fallback { position: absolute; inset: 0; display: none; place-items: center; color: var(--deep); background: #e8f1ed; font-size: 15px; font-weight: 800; }.image-missing .thumb-fallback { display: grid; }.product-copy { min-width: 0; }.product-copy strong { display: block; max-width: 280px; color: var(--ink); font-size: 11px; line-height: 1.35; }.product-copy small, .pending-sub, .data-date { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }.pending-value { display: block; color: var(--ink); font-size: 11px; font-weight: 700; white-space: nowrap; }.pending-value::before { content: ""; width: 6px; height: 6px; margin-right: 5px; display: inline-block; border-radius: 50%; vertical-align: 1px; background: #b48a32; }.pending-sub { max-width: 142px; line-height: 1.35; }.data-state { display: inline-flex; align-items: center; gap: 5px; color: #9a7a32; font-size: 10px; white-space: nowrap; }.data-state i { width: 5px; height: 5px; border-radius: 50%; background: #b48a32; }.source-link { width: 26px; height: 26px; display: grid; place-items: center; color: var(--deep); border: 1px solid #cbd8d1; text-decoration: none; font-size: 15px; }.source-link:hover { color: var(--coral); border-color: var(--coral); }.empty-state { padding: 44px 20px; display: flex; align-items: center; flex-direction: column; gap: 6px; color: var(--muted); font-size: 11px; text-align: center; }.empty-state-icon { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #cbd9d0; color: var(--green); font-size: 18px; }.empty-state strong { color: var(--ink); font-size: 12px; }
.data-note { margin-top: 13px; padding: 13px 15px; display: flex; gap: 10px; border: 1px solid #ead9af; background: #fff8eb; color: #836c36; }.data-note-mark { width: 20px; height: 20px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: #c49b48; color: var(--white); font-weight: 800; }.data-note strong { display: block; color: var(--ink); font-size: 11px; }.data-note p { margin: 4px 0 0; font-size: 10px; line-height: 1.6; }
.methodology-panel { display: grid; grid-template-columns: minmax(220px, .7fr) 1.3fr; gap: 26px; align-items: center; margin-top: 19px; margin-bottom: 19px; padding: 21px 23px; background: var(--deep); color: var(--white); border: 1px solid var(--deep); }.methodology-panel h2 { font-size: 18px; }.methodology-panel p { margin: 8px 0 0; color: #b8ccca; font-size: 10px; line-height: 1.65; }.methodology-panel .eyebrow { color: #9ab5b0; }.methodology-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }.methodology-grid > div { min-height: 95px; padding: 4px 10px 3px; border-left: 2px solid var(--coral); background: rgba(255,255,255,.04); }.methodology-number { display: block; margin-bottom: 14px; color: #f2ad94; font: 700 10px/1 Arial, sans-serif; }.methodology-grid strong { display: block; font-size: 11px; }.methodology-grid small { display: block; margin-top: 5px; color: #b8ccca; font-size: 9px; line-height: 1.5; }.page-footer { display: flex; justify-content: space-between; padding: 0 2px; color: #95a09c; font: 9px/1.2 Arial, sans-serif; letter-spacing: .1em; }.toast { position: fixed; left: 50%; bottom: 25px; z-index: 40; padding: 10px 15px; transform: translate(-50%, 20px); background: var(--deep); color: var(--white); font-size: 11px; opacity: 0; pointer-events: none; transition: .22s ease; }.toast.visible { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 1120px) { .topbar { padding: 0 22px; }.main-content { padding: 31px 25px 25px; }.product-table { min-width: 1030px; }.methodology-panel { grid-template-columns: 1fr; gap: 17px; } }
@media (max-width: 840px) { .topbar { gap: 16px; }.topbar-meta { display: none; }.app-shell { grid-template-columns: 1fr; }.sidebar { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px 20px 16px; }.brand-list { display: flex; overflow-x: auto; padding: 12px 0 3px; }.brand-item { flex: 0 0 158px; }.sidebar-section { margin-top: 17px; }.category-list { display: flex; overflow-x: auto; padding-bottom: 3px; }.category-item { flex: 0 0 auto; width: auto; min-width: 120px; }.sidebar-note { display: none; } }
@media (max-width: 620px) { .topbar { min-height: 64px; padding: 0 15px; }.brand { min-width: 0; }.brand-copy small { display: none; }.topbar-actions .button-quiet { display: none; }.main-content { padding: 25px 15px 22px; }.page-heading { align-items: flex-start; flex-direction: column; gap: 13px; margin-bottom: 19px; }.page-heading h1 { font-size: 27px; }.sync-status { padding: 0; text-align: left; }.sync-status-line { justify-content: flex-start; }.filter-strip { align-items: stretch; flex-wrap: wrap; }.filter-strip .search-field { width: 100%; }.filter-strip-spacer { display: none; }.filter-summary { flex: 1; align-self: center; }.sort-field { align-self: center; }.panel-heading { align-items: flex-start; flex-direction: column; }.product-table th, .product-table td { padding-left: 14px; padding-right: 14px; }.methodology-panel { padding: 18px; }.methodology-grid { grid-template-columns: repeat(2, 1fr); }.page-footer { flex-direction: column; gap: 12px; } }

/* Keep the SKU-level price fields visually primary while preserving the dense table layout. */
.product-table { min-width: 900px; }
.price-value { display: block; color: var(--ink); font-size: 15px; font-weight: 800; line-height: 1.1; white-space: nowrap; }
.price-value-primary { color: var(--coral); }
.price-sub { display: block; max-width: 145px; margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.methodology-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 1120px) { .product-table { min-width: 900px; } }
@media (max-width: 620px) { .methodology-grid { grid-template-columns: repeat(2, 1fr); } }

.source-links { display: flex; gap: 5px; }
.source-link-muted { color: var(--muted); font-size: 12px; }
.data-state.is-verified { color: var(--green); }
.data-state.is-verified i { background: var(--green); }
.data-state.is-pending { color: #9a7a32; }
.trend-cell { display: grid; gap: 5px; min-width: 205px; }
.trend-chart { display: block; width: 205px; padding: 4px 5px 3px; color: inherit; border: 1px solid #dbe6df; background: #fbfdfb; text-decoration: none; }
.trend-chart:hover { border-color: var(--coral); background: #fffaf7; }
.trend-chart svg { display: block; width: 100%; height: 48px; overflow: visible; }
.trend-area { fill: #dfeee5; opacity: .8; }
.trend-path { fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.trend-marker { stroke: var(--coral); stroke-width: .8; stroke-dasharray: 2 2; opacity: .8; }
.trend-dot { fill: var(--coral); stroke: white; stroke-width: 1; }
.trend-range { display: flex; align-items: center; justify-content: space-between; gap: 5px; color: var(--muted); font-size: 8px; }
.trend-range b { color: var(--ink); font-size: 9px; }
.trend-empty { width: 205px; min-height: 61px; padding: 9px 8px; border: 1px dashed #d4dfd8; background: #fbfdfb; }
.trend-empty small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }
.official-value { color: var(--green); }
.inline-link { display: inline-block; margin-top: 6px; color: var(--green); font-size: 9px; text-decoration: none; }
.inline-link:hover { color: var(--coral); text-decoration: underline; }
.trend-original { display: block; width: 240px; max-width: 100%; height: 165px; object-fit: contain; background: #fff; }
.trend-chart:has(.trend-original) { width: 240px; max-width: 100%; }
.lowest-channel-link { display: block; max-width: 160px; overflow-wrap: anywhere; font-size: 11px; line-height: 1.5; text-decoration: underline; }
button.trend-chart { cursor: zoom-in; text-align: left; font: inherit; }
.trend-dialog { width: min(760px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 18px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: white; }
.trend-dialog::backdrop { background: rgba(15, 30, 28, .55); }
.trend-dialog-header, .trend-dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.trend-dialog-header strong { font-size: 16px; overflow-wrap: anywhere; }
.trend-dialog-header button { flex: 0 0 32px; height: 32px; border: 1px solid var(--line); background: white; color: var(--ink); font-size: 24px; cursor: pointer; }
#trendDialogImage { display: block; width: 100%; max-height: calc(100dvh - 170px); object-fit: contain; margin: 16px 0; }
.trend-dialog-footer { flex-wrap: wrap; font-size: 12px; }

body { font-size: 16px; }
body * { letter-spacing: 0; }
.button, .brand-item-copy strong, .category-item { font-size: 15px; }
.brand-copy strong, .topbar-meta, .sync-status, .filter-summary, .sort-field,
.sort-field select, .search-field input, .panel-heading-meta { font-size: 14px; }
.brand-copy small, .brand-item-copy small, .sidebar-intro p, .brand-item-count,
.category-count, .sidebar-note strong, .sidebar-note p, .text-button,
.eyebrow, .product-table th, .data-note p, .methodology-panel p,
.methodology-grid small, .page-footer { font-size: 12px; }
.page-heading p, .product-table td, .product-copy strong, .pending-value,
.lowest-channel-link, .data-note strong, .methodology-grid strong { font-size: 15px; }
.product-copy small, .pending-sub, .data-date, .price-sub, .data-state,
.inline-link, .trend-empty small, .toast { font-size: 13px; }
.price-value { font-size: 20px; line-height: 1.3; }
.price-sub { max-width: 190px; overflow-wrap: anywhere; }
.product-copy strong { max-width: 300px; overflow-wrap: anywhere; }
.product-table { min-width: 1250px; }
.product-table td { padding-top: 18px; padding-bottom: 18px; }
.page-heading { align-items: flex-start; }
.page-heading > div:first-child { min-width: 0; }
.page-heading .update-schedule { margin-top: 12px; max-width: 640px; font-size: 13px; line-height: 1.6; }
.sync-status { flex: 0 0 auto; }
.trend-dialog-footer small { color: var(--muted); }
.trend-dialog-footer a { color: var(--green); }
