:root {
  --ink: #252a34;
  --muted: #777b82;
  --paper: #f3f0e9;
  --card: #fffefa;
  --line: #ded9cf;
  --gold: #bb9457;
  --gold-soft: #ece0c9;
  --red: #c43e35;
  --green: #167a58;
  --blue: #49798d;
  --shadow: 0 18px 48px rgba(51, 45, 35, 0.08);
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--paper); }
body { min-width: 320px; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  grid-template-rows: 72px minmax(0, 1fr);
}

.topbar {
  grid-column: 1 / -1;
  position: sticky; top: 0; z-index: 20;
  height: 72px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 30px; background: rgba(255, 254, 250, .94); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.brand { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 12px; }
.brand > span:last-child { display: flex; flex-direction: column; gap: 1px; }
.brand strong { font-family: SimSun, "Songti SC", serif; font-size: 20px; letter-spacing: .08em; }
.brand small { color: var(--gold); font-size: 8px; font-weight: 800; letter-spacing: .18em; }
.brand-mark { width: 34px; height: 34px; border: 1px solid var(--ink); display: flex; align-items: flex-end; gap: 3px; padding: 7px; transform: rotate(45deg); }
.brand-mark i { display: block; width: 4px; background: var(--ink); transform: rotate(-45deg); transform-origin: bottom center; }
.brand-mark i:nth-child(1) { height: 8px; }.brand-mark i:nth-child(2) { height: 14px; background: var(--gold); }.brand-mark i:nth-child(3) { height: 19px; }
.topbar-meta { display: flex; align-items: center; gap: 16px; }
.local-badge { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.local-badge i { width: 7px; height: 7px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 4px rgba(22,122,88,.12); }
.icon-button, .close-button { border: 0; background: transparent; cursor: pointer; }
.icon-button { border-left: 1px solid var(--line); padding-left: 18px; font-weight: 700; }

.sidebar {
  grid-row: 2; position: sticky; top: 72px; height: calc(100vh - 72px);
  border-right: 1px solid var(--line); background: #eae5dc; padding: 26px 18px 18px;
  display: flex; flex-direction: column; min-height: 0;
}
.sidebar-heading { display: flex; justify-content: space-between; align-items: center; padding: 0 7px 15px; font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.count-badge { min-width: 23px; height: 23px; border: 1px solid #c9c1b5; border-radius: 99px; display: grid; place-items: center; font-size: 11px; }
.search-box { height: 42px; display: flex; align-items: center; gap: 8px; border: 1px solid #d3ccc0; background: rgba(255,255,255,.55); padding: 0 12px; margin-bottom: 14px; }
.search-box span { font-size: 22px; color: var(--muted); transform: rotate(-15deg); }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 13px; }
.product-list { overflow-y: auto; display: flex; flex-direction: column; gap: 7px; padding-right: 3px; }
.product-group-label { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; padding: 9px 7px 5px; color: #6f6a62; background: #eae5dc; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.product-group-label:not(:first-child) { margin-top: 5px; border-top: 1px solid #d4cdc1; padding-top: 12px; }
.product-group-label b { color: var(--gold); font: 700 10px ui-monospace, Consolas, monospace; }
.product-item { width: 100%; border: 1px solid transparent; background: transparent; text-align: left; padding: 13px 12px; cursor: pointer; transition: .2s ease; }
.product-item:hover { background: rgba(255,255,255,.6); }
.product-item.active { background: var(--card); border-color: #d7c8ad; box-shadow: 0 8px 22px rgba(57,49,37,.07); }
.product-item strong { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-item-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 7px; color: var(--muted); font: 10px/1.2 ui-monospace, Consolas, monospace; }
.product-item-meta i { flex: 0 0 auto; font-style: normal; }
.product-latest { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.product-item-change { min-width: 53px; padding: 3px 5px; border-radius: 4px; text-align: center; font-size: 11px; font-weight: 900; letter-spacing: -.02em; }
.product-item-change.positive { background: rgba(196,62,53,.1); }
.product-item-change.negative { background: rgba(22,122,88,.1); }
.product-item-change.flat { color: var(--muted); background: rgba(119,123,130,.1); }
.sidebar-footer { margin-top: auto; border-top: 1px solid #d4cdc1; padding-top: 16px; }
.sidebar-footer p { margin: 9px 0 0; text-align: center; color: var(--muted); font-size: 10px; }

.primary-button, .secondary-button {
  min-height: 42px; border: 1px solid var(--ink); padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 800; font-size: 13px; text-decoration: none; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.primary-button { background: var(--ink); color: white; }
.secondary-button { background: transparent; color: var(--ink); }
.primary-button:hover, .secondary-button:hover { transform: translateY(-1px); box-shadow: 0 7px 18px rgba(37,42,52,.13); }
.primary-button:disabled { opacity: .58; cursor: wait; transform: none; }
.wide { width: 100%; }
.sync-icon { font-size: 17px; }
.syncing .sync-icon { animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.main { grid-column: 2; grid-row: 2; min-width: 0; padding: 37px clamp(24px, 4vw, 58px) 70px; }
.dashboard { max-width: 1280px; margin: 0 auto; }
.hidden { display: none !important; }
.product-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 25px; }
.eyebrow { margin: 0 0 7px; color: var(--gold); font: 800 10px/1.2 ui-monospace, Consolas, monospace; letter-spacing: .16em; text-transform: uppercase; }
.product-hero h1, .empty-state h1 { font-family: SimSun, "Songti SC", serif; margin: 0; font-size: clamp(27px, 3vw, 40px); letter-spacing: .03em; }
.muted { color: var(--muted); font-size: 12px; margin: 9px 0 0; }
.hero-actions { display: flex; align-items: flex-end; gap: 12px; }
.mobile-product-select { display: none; }
.benchmark-select, .category-select { display: grid; gap: 5px; color: var(--muted); font-size: 10px; }
.benchmark-select select, .category-select select { min-width: 150px; height: 42px; border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: 0 30px 0 10px; outline: 0; }
.benchmark-select select { min-width: 188px; }
.benchmark-select select:focus, .category-select select:focus { border-color: var(--gold); }

.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 24px; }
.summary-card { min-height: 130px; background: var(--card); border: 1px solid var(--line); padding: 21px 22px; position: relative; overflow: hidden; }
.summary-card span { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .05em; }
.summary-card strong { display: block; margin: 10px 0 7px; font: 600 27px/1 ui-monospace, Consolas, monospace; }
.summary-card small { color: #99958d; font-size: 10px; }
.summary-card.lead-card { background: var(--ink); color: white; border-color: var(--ink); }
.summary-card.lead-card span, .summary-card.lead-card small { color: #c8c9ca; }
.summary-card.lead-card small { display: flex; align-items: center; gap: 8px; }
.summary-card.lead-card small b { font-size: 11px; font-weight: 700; }
.summary-card.lead-card small b.positive { color: #ff8179 !important; }
.summary-card.lead-card small b.negative { color: #62cba7 !important; }
.card-rule { position: absolute; height: 1px; width: 70%; background: linear-gradient(90deg, var(--gold), transparent); left: 22px; bottom: 17px; }
.card-rule::after { content: ""; position: absolute; right: 13%; top: -4px; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }

.section-tabs { display: flex; align-items: center; gap: 27px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.section-tabs button { white-space: nowrap; border: 0; background: transparent; padding: 13px 1px; cursor: pointer; color: var(--muted); font-weight: 700; font-size: 13px; border-bottom: 2px solid transparent; }
.section-tabs button.active { color: var(--ink); border-color: var(--red); }
.panel { display: none; }.panel.active { display: block; }
.content-card { background: var(--card); border: 1px solid var(--line); padding: clamp(19px, 2.5vw, 30px); box-shadow: var(--shadow); }
.section-gap { margin-top: 15px; }
.card-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 19px; }
.card-heading h2 { margin: 0; font-family: SimSun, "Songti SC", serif; font-size: 21px; }
.card-heading small { color: var(--muted); font-size: 10px; }
.period-switch, .interval-switch { display: flex; border: 1px solid var(--line); padding: 3px; background: #f7f4ee; }
.period-switch button, .interval-switch button { border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 7px 12px; font-size: 11px; }
.period-switch button.active, .interval-switch button.active { background: var(--ink); color: white; }
.custom-range-panel { margin: -2px 0 17px; padding: 15px; border: 1px solid #d8cbb4; background: linear-gradient(135deg, #fffdf8, #f6f1e8); }
.custom-range-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.custom-range-metrics article { min-width: 0; padding: 11px 12px; border-left: 2px solid var(--gold); background: rgba(255,255,255,.72); }
.custom-range-metrics span { display: block; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.custom-range-metrics strong { display: block; margin-top: 7px; font: 700 18px/1 ui-monospace, Consolas, monospace; }
.custom-range-controls { display: flex; align-items: end; gap: 9px; margin-top: 12px; flex-wrap: wrap; }
.custom-range-controls label { display: grid; gap: 5px; color: var(--muted); font-size: 10px; }
.custom-range-controls input { width: 150px; height: 42px; border: 1px solid var(--line); background: #fff; padding: 0 9px; outline: 0; }
.custom-range-controls input:focus { border-color: var(--gold); }
.custom-boundary-note { margin: 10px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.chart-legend { display: flex; gap: 18px; margin-bottom: 10px; font-size: 10px; color: var(--muted); }
.chart-legend span::before { content: ""; display: inline-block; width: 18px; height: 2px; margin: 0 7px 3px 0; background: var(--red); }
.chart-legend .benchmark-dot::before { background: var(--blue); }
.chart-legend .drawdown-fund-dot::before { background: var(--gold); }
.canvas-wrap { position: relative; height: 335px; min-width: 0; }
.canvas-wrap.compact { height: 240px; }
.canvas-wrap canvas { width: 100%; height: 100%; display: block; }
.canvas-wrap canvas.custom-range-active { cursor: ew-resize; touch-action: none; }
.chart-placeholder { display: none; position: absolute; inset: 0; place-items: center; color: var(--muted); font-size: 12px; background: repeating-linear-gradient(135deg, transparent, transparent 10px, rgba(0,0,0,.012) 10px, rgba(0,0,0,.012) 20px); }
.canvas-wrap.empty .chart-placeholder { display: grid; }.canvas-wrap.empty canvas { display: none; }
.comparison-controls { display: flex; align-items: end; gap: 16px; flex-wrap: wrap; padding-top: 5px; }
.comparison-mode { display: flex; gap: 6px; flex-wrap: wrap; }
.comparison-mode label { display: flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 13px; border: 1px solid var(--line); background: #faf8f3; font-size: 12px; cursor: pointer; }
.comparison-mode label:has(input:checked) { border-color: var(--gold); background: #fffdf8; color: var(--ink); font-weight: 700; }
.comparison-dates { display: flex; gap: 9px; }.comparison-dates.hidden { display: none; }
.comparison-dates label, .comparison-search { display: grid; gap: 5px; color: var(--muted); font-size: 10px; }
.comparison-dates input, .comparison-search input { height: 42px; border: 1px solid var(--line); background: #faf8f3; padding: 0 10px; outline: 0; }
.comparison-dates input:focus, .comparison-search input:focus { border-color: var(--gold); }
.comparison-picker-wrap { margin-top: 20px; }.comparison-search { max-width: 420px; }
.comparison-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 7px; max-height: 245px; overflow: auto; margin-top: 10px; padding-right: 3px; }
.comparison-option { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; padding: 10px 11px; border: 1px solid var(--line); background: #faf8f3; cursor: pointer; min-width: 0; }
.comparison-option:has(input:checked) { border-color: var(--gold); background: #fffdf8; }
.comparison-option span { min-width: 0; }.comparison-option strong, .comparison-option small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comparison-option strong { font-size: 12px; }.comparison-option small { margin-top: 3px; color: var(--muted); font: 10px ui-monospace, Consolas, monospace; }
.comparison-option input:disabled + span { opacity: .45; }
.comparison-legend { flex-wrap: wrap; }.comparison-legend span::before { background: var(--legend-color, var(--red)); }
.comparison-table th:first-child, .comparison-table td:first-child { min-width: 220px; }.comparison-table td small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.two-column { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr); gap: 15px; margin-top: 15px; }
.risk-snapshot { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.risk-item { border-top: 1px solid var(--line); padding-top: 11px; }
.risk-item span { display: block; color: var(--muted); font-size: 10px; }
.risk-item strong { display: block; margin-top: 7px; font: 600 17px/1 ui-monospace, Consolas, monospace; }

.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.data-table th { text-align: left; color: var(--muted); font-size: 10px; letter-spacing: .04em; padding: 10px 13px; background: #f3efe7; white-space: nowrap; }
.data-table td { padding: 13px; border-bottom: 1px solid #ebe7de; white-space: nowrap; }
.data-table th:not(:first-child), .data-table td:not(:first-child) { text-align: right; }
.data-table tbody tr:hover { background: #fbf8f2; }
.positive { color: var(--red) !important; }.negative { color: var(--green) !important; }
.interval-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 9px; }
.interval-cell { border: 1px solid var(--line); min-height: 96px; padding: 14px; background: #fbf9f4; }
.interval-cell span { color: var(--muted); font-size: 10px; }.interval-cell strong { display: block; margin-top: 14px; font: 600 20px/1 ui-monospace, Consolas, monospace; }.interval-cell small { display: block; color: var(--muted); margin-top: 8px; font-size: 9px; }

.empty-state { min-height: calc(100vh - 180px); display: grid; place-items: center; align-content: center; text-align: center; padding: 40px; }
.empty-state > p:not(.eyebrow) { color: var(--muted); max-width: 540px; line-height: 1.8; font-size: 13px; }
.empty-visual { width: 120px; height: 78px; display: flex; align-items: flex-end; justify-content: center; gap: 9px; border-bottom: 1px solid var(--ink); margin-bottom: 25px; }
.empty-visual span { width: 14px; background: var(--ink); }.empty-visual span:nth-child(1){height:18px}.empty-visual span:nth-child(2){height:36px;background:var(--gold)}.empty-visual span:nth-child(3){height:29px}.empty-visual span:nth-child(4){height:61px;background:var(--red)}
.empty-steps { display: flex; gap: 30px; border-top: 1px solid var(--line); margin-top: 34px; padding-top: 20px; font-size: 10px; color: var(--muted); }.empty-steps b { color: var(--gold); margin-right: 6px; }

.settings-dialog { width: min(720px, calc(100% - 24px)); max-height: min(780px, calc(100vh - 30px)); border: 1px solid var(--line); padding: 0; background: var(--card); color: var(--ink); box-shadow: 0 28px 90px rgba(28,25,21,.27); }
.settings-dialog::backdrop { background: rgba(27,29,34,.54); backdrop-filter: blur(3px); }
.dialog-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; padding: 24px 27px 18px; border-bottom: 1px solid var(--line); background: var(--card); }.dialog-head h2 { margin: 0; font-family: SimSun, serif; }.close-button { font-size: 30px; line-height: 1; color: var(--muted); }
.dialog-body { overflow-y: auto; padding: 24px 27px 30px; }.dialog-body section + section { border-top: 1px solid var(--line); margin-top: 27px; padding-top: 25px; }.dialog-body h3 { font-size: 14px; margin: 0 0 8px; }.help-text { font-size: 11px; color: var(--muted); line-height: 1.7; }
.valuation-dialog { width: min(960px, calc(100% - 24px)); max-height: min(820px, calc(100vh - 30px)); border: 1px solid var(--line); padding: 0; background: var(--card); color: var(--ink); box-shadow: 0 28px 90px rgba(28,25,21,.27); }
.valuation-dialog::backdrop { background: rgba(27,29,34,.54); backdrop-filter: blur(3px); }
.valuation-dialog #valuationSubtitle { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.valuation-table { font-size: 12px; white-space: nowrap; }
.valuation-table td { padding: 5px 12px; }
.valuation-table tr:nth-child(even) td { background: rgba(0,0,0,.025); }
/* ---- 四级估值表弹窗增强：全屏 / 缩放 / 历史日期 ---- */
.valuation-dialog { display: flex; flex-direction: column; }
.valuation-head { align-items: center; gap: 16px; }
.valuation-title-group { min-width: 0; }
.valuation-tools { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.valuation-date-label { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.valuation-date-select { height: 28px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 12px; padding: 0 7px; border-radius: 5px; outline: 0; max-width: 150px; }
.zoom-group { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 6px; padding: 2px; }
.vbtn { min-width: 30px; height: 26px; border: 0; background: transparent; color: var(--ink); font-size: 14px; line-height: 1; cursor: pointer; border-radius: 4px; padding: 0 8px; }
.vbtn:hover { background: rgba(0,0,0,.07); }
.vbtn.zoom-reset { font-size: 11px; }
.zoom-level { min-width: 46px; text-align: center; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.valuation-body { overflow: hidden; display: flex; flex-direction: column; padding: 0; }
.valuation-table-scroll { overflow: auto; flex: 1; max-height: min(560px, calc(100vh - 150px)); }
.valuation-zoom { transform-origin: top left; width: max-content; min-width: 100%; }
.valuation-tip { padding: 10px 27px 14px; font-size: 10px; color: var(--muted); }
.valuation-dialog.fullscreen { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; border: 0; border-radius: 0; }
.valuation-dialog.fullscreen .valuation-table-scroll { max-height: calc(100vh - 132px); }
/* ---- 产品要素卡片 + 开放日提示 ---- */
.open-day-banner { display: inline-block; margin-top: 12px; padding: 5px 13px; background: var(--gold); color: #fff; font-size: 12px; border-radius: 4px; letter-spacing: .02em; }
.fund-facts-card { background: var(--card); border: 1px solid var(--line); padding: clamp(19px, 2.5vw, 28px); box-shadow: var(--shadow); margin-bottom: 22px; }
.fund-facts-card .card-heading { margin-bottom: 16px; }
.fund-facts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fact-item { display: grid; gap: 6px; padding: 13px 15px; background: var(--paper); border-radius: 6px; }
.fact-item span { font-size: 10px; letter-spacing: .04em; color: var(--muted); }
.fact-item strong { font-size: 13px; color: var(--ink); line-height: 1.5; }
.fact-records { border-top: 1px dashed var(--line); margin-top: 16px; padding-top: 14px; }
.fact-records span { font-size: 10px; letter-spacing: .04em; color: var(--muted); display: block; margin-bottom: 7px; }
.fact-records p { margin: 0; font-size: 12px; line-height: 1.75; color: var(--ink); white-space: normal; }
@media (max-width: 760px) { .fund-facts-grid { grid-template-columns: 1fr; } }
.account-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; margin: 17px 0; }.account-form label { display: grid; gap: 6px; }.account-form label span { font-size: 10px; color: var(--muted); }.account-form input, .number-input { height: 42px; border: 1px solid var(--line); background: #faf8f3; padding: 0 11px; outline: 0; }.account-form input:focus, .number-input:focus { border-color: var(--gold); }
.text-input { height: 42px; border: 1px solid var(--line); background: #faf8f3; padding: 0 11px; outline: 0; font-size: 12px; }.text-input:focus { border-color: var(--gold); }
.account-list { display: grid; gap: 8px; }.account-row { border: 1px solid var(--line); padding: 12px 13px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; }.account-row small { color: var(--green); margin-left: 9px; }.text-button { border: 0; background: transparent; color: var(--red); cursor: pointer; font-size: 11px; }
.option-section { display: grid; gap: 11px; }.option-row { border: 1px solid var(--line); padding: 13px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }.option-row span { display: grid; gap: 5px; }.option-row b { font-size: 12px; }.option-row small { color: var(--muted); font-size: 10px; }.number-input { width: 85px; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 100; max-width: min(420px, calc(100% - 48px)); background: var(--ink); color: white; padding: 14px 17px; font-size: 12px; box-shadow: 0 14px 40px rgba(0,0,0,.2); transform: translateY(30px); opacity: 0; pointer-events: none; transition: .25s ease; }.toast.show { transform: translateY(0); opacity: 1; }.toast.error { background: #842f2a; }

@media (max-width: 1020px) {
  .app-shell { grid-template-columns: 220px minmax(0,1fr); }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .two-column { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .app-shell { display: block; }.topbar { padding: 0 17px; }.local-badge { display: none; }.sidebar { display: none; }.main { padding: 24px 15px 55px; }
  .product-hero { align-items: flex-start; flex-direction: column; }.hero-actions { width: 100%; flex-wrap: wrap; }.mobile-product-select { display: grid; gap: 5px; flex: 1 1 100%; color: var(--muted); font-size: 10px; }.mobile-product-select select { width: 100%; height: 42px; border: 1px solid var(--line); background: var(--card); padding: 0 9px; }.benchmark-select, .category-select { flex: 1; }.benchmark-select select, .category-select select { width: 100%; min-width: 140px; }.summary-grid { grid-template-columns: 1fr 1fr; gap: 8px; }.summary-card { min-height: 114px; padding: 17px; }.summary-card strong { font-size: 22px; }.content-card { box-shadow: none; }.card-heading { flex-direction: column; }.period-switch, .interval-switch { width: 100%; overflow-x: auto; }.period-switch button, .interval-switch button { flex: 1; white-space: nowrap; }.canvas-wrap { height: 270px; }.empty-state { padding: 20px 6px; }.empty-steps { gap: 12px; flex-direction: column; text-align: left; }.account-form { grid-template-columns: 1fr; }.dialog-body, .dialog-head { padding-left: 18px; padding-right: 18px; }
  .comparison-controls, .comparison-dates { align-items: stretch; flex-direction: column; }.comparison-controls > *, .comparison-dates label, .comparison-search { width: 100%; max-width: none; }.comparison-mode { flex-direction: row; }.comparison-mode label { flex: 1; }.comparison-picker { grid-template-columns: 1fr; max-height: 210px; }
  .custom-range-metrics { grid-template-columns: 1fr 1fr; }.custom-range-controls { align-items: stretch; }.custom-range-controls label { flex: 1 1 calc(50% - 5px); }.custom-range-controls input { width: 100%; }.custom-range-controls button { flex: 1; }
}
@media (max-width: 440px) { .summary-grid { grid-template-columns: 1fr; }.topbar-meta { gap: 5px; }.brand small { display: none; }.brand strong { font-size: 18px; }.risk-snapshot { grid-template-columns: 1fr 1fr; } }
