:root {
  color-scheme: light;
  --page: #f4f7f7;
  --panel: #fff;
  --ink: #192d34;
  --muted: #5b7078;
  --line: #d7e2e3;
  --green: #126e5e;
  --green-dark: #0d554b;
  --wash: #e7f2ed;
  --research-dark: #102d32;
  --rise: #147d56;
  --fall: #b44343;
  --radius: 12px;
  --mobile-nav-height: 56px;
  font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 0; line-height: 1.5; }
a { color: var(--green); }
button, select, input, textarea { font: inherit; }
a:focus-visible, button:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
[hidden] { display: none !important; }
.sr-only, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; z-index: 6; top: 8px; left: 8px; padding: 10px 14px; background: var(--panel);
}

.research-masthead { background: var(--panel); border-bottom: 1px solid var(--line); }
.masthead-content, .research-shell { width: min(1280px, calc(100% - 96px)); margin-inline: auto; }
.masthead-content {
  position: relative; width: min(1344px, calc(100% - 96px)); display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center; gap: clamp(12px, 2vw, 32px); min-height: 63px;
}
.research-brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; justify-self: start;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.research-brand-name { font-size: 24px; line-height: 1; font-weight: 750; letter-spacing: -.025em; }
.research-brand small { font-size: 10px; font-weight: 550; letter-spacing: .025em; color: var(--muted); }
.research-brand-mark {
  display: grid; place-items: center; flex: 0 0 22px; height: 22px; border-radius: 4px; background: var(--green);
}
.research-brand-mark::after {
  content: ""; display: block; width: 14px; height: 2px; border-radius: 4px;
  background: white; transform: rotate(-47deg);
}
.masthead-content nav { display: flex; align-items: stretch; gap: clamp(18px, 3.3vw, 54px); }
.masthead-content nav a {
  display: inline-flex; align-items: center; min-height: 63px; padding-inline: 3px;
  color: var(--muted); border-block-end: 3px solid transparent; font-size: 14px;
  font-weight: 550; text-decoration: none; white-space: nowrap;
}
.masthead-content nav a:hover, .masthead-content nav a[aria-current] { color: var(--green); }
.masthead-content nav a[aria-current] { font-weight: 700; border-block-end-color: var(--green); }
.research-nav-short, .research-menu { display: none; }
.research-preferences { display: flex; justify-self: end; align-items: center; gap: 8px; }
.research-preferences select, .research-menu {
  min-height: 44px; max-width: 100%; padding: 4px 8px; color: var(--muted); background: var(--panel);
  border: 1px solid transparent; border-radius: 6px; font-size: 13px;
}
.research-preferences select:is(:hover, :focus) { border-color: var(--line); }

.research-shell { min-height: calc(100vh - 64px); padding-block: 24px 40px; }
.research-shell[data-view="room"] { width: min(1384px, calc(100% - 56px)); }
.research-shell:focus { outline: none; }
.research-page-title { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 20px; }
.research-page-title h1 {
  margin: 0; font-size: clamp(28px, 3.1vw, 34px); font-weight: 750; letter-spacing: -.025em; line-height: 1.2;
}
.research-page-title p { margin: 5px 0 0; color: var(--muted); font-size: 15px; }
.overview-page-title { align-items: start; margin-block: 2px 22px; }
.research-page-title .market-time-note { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12px; }
.market-time-note span { background: #eaf0f0; border-radius: 6px; padding: 5px 9px; }
.market-time-note b { font-weight: 550; }
.research-market-tabs { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 9px; margin-bottom: 20px; }
.research-market-tabs a {
  display: grid; align-content: start; gap: 2px; min-width: 0; min-height: 112px; padding: 9px 12px 10px;
  overflow-wrap: anywhere; text-decoration: none; color: var(--ink); font-size: 13px; font-weight: 700;
  background: var(--panel); border: 1px solid var(--line); border-radius: 9px;
}
.research-market-tabs a b { color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; font-weight: 550; }
.research-market-tabs a:is(:hover, [aria-current]) { background: var(--wash); border-color: var(--green); }
.research-market-tabs a[aria-current] .channel-title { color: var(--green); }
.channel-observation { position: relative; display: grid; min-width: 0; gap: 2px; }
.channel-price { display: block; font-size: clamp(15px, 1.5vw, 23px); line-height: 1.2; font-weight: 750; font-variant-numeric: tabular-nums; }
.channel-status { display: block; color: var(--muted); font-size: 10px; line-height: 1.2; font-weight: 550; }
.channel-delta { font-variant-numeric: tabular-nums; font-size: 11px; line-height: 1.2; }
.channel-trend { width: 37%; max-width: 49px; height: 14px; position: absolute; inset: auto 0 0 auto; }
.overview-board-retry {
  min-height: 40px; margin-block: -10px 12px; padding: 6px 12px; color: var(--green);
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px; cursor: pointer;
}

.research-section-heading {
  display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; justify-content: space-between; margin-bottom: 12px;
}
.research-section-heading h2 { margin: 0; font-size: 22px; line-height: 1.3; letter-spacing: -.02em; }
.research-section-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.room-directory { margin-bottom: 22px; }
.room-directory-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.research-room-card {
  display: flex; flex-direction: column; min-width: 0; min-height: 178px; padding: 17px 19px 5px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
.room-directory-matched { border-color: var(--green); background: var(--wash); }
.room-directory-matched h3 { color: var(--green); }
.research-room-card h3 { margin: 0 0 4px; font-size: clamp(16px, 1.55vw, 21px); overflow-wrap: anywhere; line-height: 1.22; }
.research-room-card p { margin: 0; }
.research-room-card .room-card-subtitle { color: var(--muted); font-size: 10px; letter-spacing: .015em; }
.research-room-card .room-card-coverage { margin-top: 8px; font-size: 13px; }
.research-text-link, .research-room-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none;
  color: var(--green); font-size: 14px; font-weight: 700;
}
.research-room-link { margin-top: auto; justify-content: space-between; border-top: 1px solid var(--line); width: 100%; }
.research-text-link:hover, .research-room-link:hover, .research-back:hover { text-decoration: underline; text-underline-offset: 3px; }

.research-content-grid { display: grid; grid-template-columns: minmax(0, 1.92fr) minmax(290px, 1fr); align-items: start; gap: 23px; }
.overview-market-heading { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.overview-chart-card {
  min-width: 0; border-radius: var(--radius); background: var(--research-dark); color: #f4faf9;
  --ink: #f4faf9; --muted: #a5c6c1; --line: #345256; --green: #9ae0c4;
  --page: #203d40; --wash: #29494b; --panel: #102d32;
}
.overview-chart-card .research-market {
  border: 0; background: none; padding: 16px 21px 0; --market-plot-height: 171px;
}
.overview-chart-card .market-heading {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px 12px; margin: 0; flex-direction: row-reverse; justify-content: start;
}
.overview-chart-card .market-heading h2 { margin: 0; font-size: 19px; }
.overview-chart-card .market-symbol span { display: none; }
.overview-chart-card .market-quote { margin-block: 8px 5px; }
.overview-chart-card .market-quote-value strong { font-size: clamp(25px, 3vw, 31px); }
.overview-chart-card .market-chart { margin-block-start: 8px; padding-block-start: 6px; }
.overview-chart-card .market-chart-controls { margin-block: 5px 7px; gap: 4px 14px; }
.overview-chart-card .market-options a { min-height: 32px; padding-inline: 7px; border-color: var(--line); }
.overview-chart-card .market-badge { color: #d2e8e5; background: #244346; }
.overview-chart-card :is(.market-delayed, .market-sample, .market-stale) { color: #ffe2ad; }
.overview-chart-card .market-failed { color: #ffc5be; }
.overview-chart-card :is(.market-rising, .market-up) { color: #90dabb; }
.overview-chart-card :is(.market-falling, .market-down) { color: #f1a89a; }
.overview-chart-card .market-chart-values summary { min-height: 32px; padding-block: 5px; }
.overview-detail-link { display: flex; justify-content: end; margin-inline: 20px; min-height: 41px; color: var(--ink); }
.overview-content-grid > #selected-market-news { min-width: 0; }
.overview-content-grid .research-news-related { min-height: 100%; }

.product-breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 10px;
  color: var(--muted); font-size: 13px;
}
.product-breadcrumb .research-back { min-height: 36px; margin: 0; color: var(--muted); font-size: inherit; }
.product-breadcrumb .research-back span { display: none; }
.product-layout {
  display: grid; grid-template-columns: minmax(0, 1.92fr) minmax(285px, 1fr); align-items: start; gap: 16px 23px;
  grid-template-areas: "quote cta" "chart metrics" "chart brief" "news news";
  grid-template-rows: auto auto 1fr auto;
}
.product-layout .market-page-title { grid-area: quote; display: block; margin: 0 0 4px; }
.product-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.product-code { color: var(--muted); font-size: 16px; font-weight: 550; font-variant-numeric: tabular-nums; }
.product-layout #selected-market { grid-area: chart; min-width: 0; }
.product-layout #product-metrics { grid-area: metrics; min-width: 0; }
.product-layout #selected-market-brief { grid-area: brief; min-width: 0; }
.product-layout #selected-market-news { grid-area: news; min-width: 0; }
.market-room-panel { grid-area: cta; justify-self: end; width: min(100%, 275px); padding: 5px 0 0; }
.market-room-label, .market-room-panel h3 { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.market-room-panel { display: grid; }
.market-room-panel p { order: 2; margin: 9px 0 0; color: var(--muted); font-size: 13px; }
.research-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  padding: 8px 14px; background: var(--green); border-radius: 7px; color: white;
  text-decoration: none; font-weight: 700; font-size: 14px;
}
.research-button:hover { background: var(--green-dark); }
.research-back {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: -6px 0 4px;
  color: var(--green); font-size: 14px; font-weight: 650; text-decoration: none;
}
.research-footer {
  display: flex; align-items: start; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px;
  padding-top: 9px; border-top: 1px solid var(--line); font-size: 12px; margin-top: 22px; color: var(--muted);
}
.research-footer > :is(span, a), .research-footer summary { min-height: 40px; padding-block: 10px; }
.research-footer summary { color: var(--green); cursor: pointer; }
.research-footer p { max-width: 56ch; margin: 0 0 12px; }

@media (max-width: 1099px) {
  .research-market-tabs { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .research-market-tabs a { text-align: center; justify-items: center; align-content: center; min-height: 49px; }
  .channel-observation, .overview-board-retry { display: none; }
}
@media (max-width: 959px) {
  .masthead-content, .research-shell, .research-shell[data-view="room"] { width: calc(100% - 48px); }
  .masthead-content nav { gap: 16px; }
  .research-content-grid { grid-template-columns: minmax(0,1fr); }
  .room-directory-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 767px) {
  .masthead-content, .research-shell, .research-shell[data-view="room"] { width: calc(100% - 36px); }
  .masthead-content { grid-template-columns: minmax(0,1fr) auto; gap: 8px; min-height: 62px; }
  .research-brand { gap: 8px; min-width: 0; max-width: 100%; }
  .research-brand-name { color: var(--green); font-size: 25px; }
  .research-brand-mark { flex-basis: 22px; }
  .research-brand small { min-width: 0; white-space: normal; line-height: 1.2; }
  .research-menu { display: block; min-width: 44px; cursor: pointer; }
  .research-menu:hover, .research-menu[aria-expanded="true"] { color: var(--green); background: var(--wash); }
  .research-menu[aria-expanded="false"] + .research-preferences { display: none; }
  .research-preferences {
    position: absolute; inset: calc(100% + 4px) 0 auto auto; z-index: 7; padding: 8px;
    justify-content: end; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 8px 26px #102d321a;
  }
  .research-preferences select { border-color: var(--line); color: var(--ink); }
  .masthead-content nav {
    display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); z-index: 5; gap: 0; position: fixed;
    inset: auto 0 0; min-height: var(--mobile-nav-height); padding-block-end: env(safe-area-inset-bottom,0px);
    border-top: 1px solid var(--line); background: var(--panel);
  }
  .masthead-content nav a { min-height: var(--mobile-nav-height); padding: 4px; justify-content: center; border: 0; font-size: 14px; }
  .research-nav-full { display: none; }
  .research-nav-short { display: inline; }
  .research-shell { padding-block: 13px calc(var(--mobile-nav-height) + env(safe-area-inset-bottom,0px) + 28px); }
  .overview-page-title { margin-block: 0 12px; gap: 4px; }
  .overview-page-title h1 { font-size: clamp(25px, 7vw, 29px); line-height: 1.15; }
  .overview-page-title > div > p { display: none; }
  .research-page-title .market-time-note { width: 100%; justify-content: space-between; margin-top: 6px; font-size: 11px; }
  .market-time-note span { background: var(--wash); }
  .research-market-tabs { gap: 5px; margin-bottom: 15px; }
  .research-market-tabs a { padding: 3px; min-height: 46px; font-size: 11px; line-height: 1.2; border-radius: 6px; }
  .research-market-tabs a b { font-size: 9px; }
  .research-market-tabs a[aria-current] { background: var(--green); color: white; }
  .research-market-tabs a[aria-current] :is(.channel-title, b) { color: white; }
  .research-section-heading { margin-bottom: 11px; }
  .research-section-heading h2 { font-size: 20px; }
  .research-section-heading p { flex-basis: 100%; font-size: 12px; }
  .room-directory { margin-bottom: 19px; }
  .room-directory-grid { gap: 9px; }
  .research-room-card { min-height: 122px; padding: 10px 10px 1px; border-radius: 9px; }
  .room-directory-matched { background: var(--panel); }
  .room-directory-matched h3 { color: var(--ink); }
  .research-room-card h3 { font-size: 15px; }
  .research-room-card .room-card-subtitle { font-size: 10px; line-height: 1.25; }
  .research-room-card .room-card-coverage { margin-block: 7px; font-size: 11px; color: var(--muted); }
  .research-room-link { min-height: 38px; font-size: 11px; line-height: 1.25; }
  .market-overview { position: relative; padding-top: 44px; }
  .overview-market-heading { inset: 0 auto auto 0; width: auto; height: auto; clip-path: none; }
  .overview-market-heading h2 { margin: 3px 0 0; line-height: 1.3; font-size: 20px; }
  .overview-chart-card {
    --ink: inherit; --muted: inherit; --line: inherit; --green: inherit;
    --page: inherit; --wash: inherit; --panel: inherit;
    border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  }
  .overview-chart-card .research-market {
    --market-plot-height: 150px; padding: 11px 13px 12px;
  }
  .overview-chart-card .market-heading h2 { font-size: 16px; }
  .overview-chart-card .market-quote-value strong { font-size: 30px; }
  .overview-chart-card .market-badge { color: #465d64; background: #eaf0f0; }
  .overview-chart-card :is(.market-delayed, .market-stale, .market-sample) { color: #725019; background: #f4edde; }
  .overview-chart-card .market-failed { color: #963638; background: #f7e8e7; }
  .overview-chart-card :is(.market-rising, .market-up) { color: var(--rise); }
  .overview-chart-card :is(.market-falling, .market-down) { color: var(--fall); }
  .overview-detail-link { position: absolute; inset: 0 0 auto auto; margin: 0; color: var(--green); font-size: 12px; }
  .overview-content-grid { gap: 18px; }
  .product-layout { grid-template-columns: minmax(0,1fr); grid-template-areas: "quote" "metrics" "chart" "brief" "cta" "news"; gap: 15px; }
  .product-breadcrumb { margin-bottom: 3px; font-size: 11px; }
  .product-breadcrumb .research-back { min-height: 30px; }
  .product-heading { gap: 4px 8px; }
  .product-code { font-size: 15px; }
  .market-room-panel {
    width: 100%; padding: 14px; justify-self: stretch; background: var(--green);
    border-radius: var(--radius); color: white;
  }
  .market-room-panel h3 { position: static; width: auto; height: auto; clip-path: none; white-space: normal; margin: 0; }
  .market-room-panel p { order: 0; color: #e5f4ed; margin-block: 3px 10px; }
  .market-room-panel .research-button { background: white; color: var(--green); width: 100%; }
}
@media (max-width: 359px) {
  .masthead-content, .research-shell, .research-shell[data-view="room"] { width: calc(100% - 24px); }
  .research-room-card { padding-inline: 8px; }
  .research-room-card h3 { font-size: 14px; }
}

[data-site="clean_assistant"] .research-brand-name {
  font-size: 16px;
  line-height: 1.25;
  white-space: normal;
  letter-spacing: normal;
}
@media (max-width: 720px) {
  [data-site="clean_assistant"] .research-brand-name { font-size: 14px; }
}
