@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css");

:root {
  color-scheme: light;
  --bg: #f6f6f7;
  --panel: #ffffff;
  --line: #d9d9d9;
  --line-soft: #efefef;
  --text: rgba(17, 17, 17, 0.94);
  --muted: rgba(17, 17, 17, 0.52);
  --accent: #111111;
  --accent-hover: #2a2a2a;
  --accent-active: #000000;
  --accent-soft: #f1f2f4;
  --primary: #111111;
  --danger: #ff5454;
  --kakao-yellow: #ffdd00;
  --positive: #cf1322;
  --negative: #1677ff;
  --warn: #d48806;
  --success: #389e0d;
  --radius: 10px;
  --radius-sm: 8px;
  --shadow-card: 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12);
  --shadow-popover: 0 12px 32px rgba(0, 0, 0, 0.14);
  --sider-bg: #111111;
  --sider-text: rgba(255, 255, 255, 0.72);
  --sider-text-strong: #ffffff;
  --button-contrast: #ffffff;
  --type-display: 32px;
  --type-title: 26px;
  --type-section: 18px;
  --type-body: 15px;
  --type-label: 14px;
  --type-caption: 13px;
  --page-loading-spinner-size: 45px;
  --page-loading-spinner-border: 4px;
}
/* Market impact 5.0: five-element relationship and sector correlation map. */
body:not([data-view="stock"]) #trend-impact-content .market-five-dashboard {
  gap: 0;
  color: var(--app-v3-text);
}

body:not([data-view="stock"]) #trend-impact-content .market-five-summary,
body:not([data-view="stock"]) #trend-impact-content .market-five-map-section,
body:not([data-view="stock"]) #trend-impact-content .market-sector-section,
body:not([data-view="stock"]) #trend-impact-content .market-impact-disclosure {
  min-width: 0;
  padding: 28px 0;
  border: 0;
  border-bottom: 8px solid #f3f4f6;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

body:not([data-view="stock"]) #trend-impact-content .market-five-summary {
  display: grid;
  gap: 14px;
  padding-top: 8px;
}

body:not([data-view="stock"]) #trend-impact-content .market-five-summary-head,
body:not([data-view="stock"]) #trend-impact-content .market-five-summary-head > div,
body:not([data-view="stock"]) #trend-impact-content .market-five-balance,
body:not([data-view="stock"]) #trend-impact-content .market-five-map-head,
body:not([data-view="stock"]) #trend-impact-content .market-five-legend,
body:not([data-view="stock"]) #trend-impact-content .market-sector-head,
body:not([data-view="stock"]) #trend-impact-content .market-sector-row-head,
body:not([data-view="stock"]) #trend-impact-content .market-five-relation-head,
body:not([data-view="stock"]) #trend-impact-content .market-five-relation-head > div {
  display: flex;
  align-items: center;
}

body:not([data-view="stock"]) #trend-impact-content .market-five-summary-head,
body:not([data-view="stock"]) #trend-impact-content .market-five-map-head,
body:not([data-view="stock"]) #trend-impact-content .market-sector-head,
body:not([data-view="stock"]) #trend-impact-content .market-sector-row-head,
body:not([data-view="stock"]) #trend-impact-content .market-five-relation-head {
  justify-content: space-between;
}

body:not([data-view="stock"]) #trend-impact-content .market-five-summary-head {
  gap: 20px;
}

body:not([data-view="stock"]) #trend-impact-content .market-five-summary-head > div {
  gap: 12px;
}

body:not([data-view="stock"]) #trend-impact-content .market-five-summary-head strong {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
}

body:not([data-view="stock"]) #trend-impact-content :is(.market-five-summary-head, .market-five-relation-head) .good {
  color: var(--positive);
}

body:not([data-view="stock"]) #trend-impact-content :is(.market-five-summary-head, .market-five-relation-head) .bad {
  color: var(--negative);
}

body:not([data-view="stock"]) #trend-impact-content .market-five-summary-head time {
  color: var(--app-v3-muted);
  font-size: var(--app-type-caption);
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

body:not([data-view="stock"]) #trend-impact-content .market-five-summary-copy {
  max-width: 760px;
  margin: 0;
  color: #343b46;
  font-size: var(--app-type-body);
  font-weight: 700;
  line-height: 1.6;
  word-break: keep-all;
}

body:not([data-view="stock"]) #trend-impact-content .market-five-summary-note {
  max-width: 760px;
  margin: -2px 0 0;
  color: #6f7682;
  font-size: var(--app-type-caption);
  font-weight: 600;
  line-height: 1.5;
  word-break: keep-all;
}

body:not([data-view="stock"]) #trend-impact-content .market-five-balance {
  gap: 12px;
}

body:not([data-view="stock"]) #trend-impact-content .market-five-balance-track {
  display: flex;
  width: min(100%, 420px);
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf0f4;
}

body:not([data-view="stock"]) #trend-impact-content .market-five-balance-track > span {
  width: var(--balance-width, 0%);
  height: 100%;
}

body:not([data-view="stock"]) #trend-impact-content .market-five-balance-track .good {
  background: var(--positive);
}

body:not([data-view="stock"]) #trend-impact-content .market-five-balance-track .bad {
  background: var(--negative);
}

body:not([data-view="stock"]) #trend-impact-content .market-five-balance p {
  margin: 0;
  color: var(--app-v3-muted);
  font-size: var(--app-type-caption);
  font-weight: 700;
  white-space: nowrap;
}

body:not([data-view="stock"]) #trend-impact-content .market-five-map-section {
  display: grid;
  grid-template-columns: minmax(440px, 1.15fr) minmax(280px, 0.85fr);
  gap: 18px 44px;
  align-items: center;
}

body:not([data-view="stock"]) #trend-impact-content .market-five-map-head {
  grid-column: 1 / -1;
  gap: 20px;
}

body:not([data-view="stock"]) #trend-impact-content :is(.market-five-map-head, .market-sector-head) h2 {
  margin: 4px 0 0;
  color: var(--app-v3-text);
  font-size: var(--app-type-section);
  font-weight: 800;
  line-height: 1.3;
}

body:not([data-view="stock"]) #trend-impact-content .market-five-legend {
  gap: 16px;
}

body:not([data-view="stock"]) #trend-impact-content .market-five-legend span {
  position: relative;
  padding-left: 30px;
  color: #59616d;
  font-size: var(--app-type-caption);
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

body:not([data-view="stock"]) #trend-impact-content .market-five-legend span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 22px;
  border-top: 2px solid #20242a;
  transform: translateY(-50%);
}

body:not([data-view="stock"]) #trend-impact-content .market-five-legend .control::before {
  border-top-color: #aeb4bd;
  border-top-style: dashed;
}

body:not([data-view="stock"]) #trend-impact-content .market-five-canvas {
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 1 / 0.9;
  margin: 0 auto;
  isolation: isolate;
}

body:not([data-view="stock"]) #trend-impact-content .market-five-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

body:not([data-view="stock"]) #trend-impact-content .market-five-generate-line,
body:not([data-view="stock"]) #trend-impact-content .market-five-control-line {
  fill: none;
  vector-effect: non-scaling-stroke;
}

body:not([data-view="stock"]) #trend-impact-content .market-five-generate-line {
  stroke: #242931;
  stroke-width: 2;
}

body:not([data-view="stock"]) #trend-impact-content .market-five-control-line {
  stroke: #b7bdc5;
  stroke-width: 1.5;
  stroke-dasharray: 5 6;
}

body:not([data-view="stock"]) #trend-impact-content .market-five-lines .generate {
  fill: #242931;
}

body:not([data-view="stock"]) #trend-impact-content .market-five-lines .control {
  fill: #aeb4bd;
}

body:not([data-view="stock"]) #trend-impact-content .market-five-node {
  --element-color: #3c4653;
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  align-content: center;
  width: clamp(96px, 23%, 124px);
  aspect-ratio: 1;
  padding: 10px;
  border: 1px solid #e5e8ec;
  border-radius: 50%;
  background: #fff;
  color: var(--app-v3-text);
  box-shadow: 0 8px 24px rgba(23, 30, 40, 0.07);
  cursor: pointer;
  transition: box-shadow 160ms ease, transform 160ms ease, border-color 160ms ease;
}

body:not([data-view="stock"]) #trend-impact-content .market-five-node:hover,
body:not([data-view="stock"]) #trend-impact-content .market-five-node.active {
  border-color: var(--element-color);
  box-shadow: 0 10px 26px color-mix(in srgb, var(--element-color) 20%, transparent);
}

body:not([data-view="stock"]) #trend-impact-content .market-five-node:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--element-color) 26%, transparent);
  outline-offset: 3px;
}

body:not([data-view="stock"]) #trend-impact-content .market-five-node.wood {
  --element-color: #18a66a;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

body:not([data-view="stock"]) #trend-impact-content .market-five-node.wood:hover,
body:not([data-view="stock"]) #trend-impact-content .market-five-node.wood.active {
  transform: translateX(-50%) translateY(-2px);
}

body:not([data-view="stock"]) #trend-impact-content .market-five-node.fire {
  --element-color: #ef4444;
  top: 28%;
  right: 0;
}

body:not([data-view="stock"]) #trend-impact-content .market-five-node.earth {
  --element-color: #d49a00;
  right: 14%;
  bottom: 0;
}

body:not([data-view="stock"]) #trend-impact-content .market-five-node.metal {
  --element-color: #5b6470;
  bottom: 0;
  left: 14%;
}

body:not([data-view="stock"]) #trend-impact-content .market-five-node.water {
  --element-color: #2774d8;
  top: 28%;
  left: 0;
}

body:not([data-view="stock"]) #trend-impact-content .market-five-node-role {
  max-width: 100%;
  overflow: hidden;
  color: #7a818c;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not([data-view="stock"]) #trend-impact-content .market-five-node > strong {
  margin-top: 4px;
  color: var(--app-v3-text);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

body:not([data-view="stock"]) #trend-impact-content .market-five-node-factor {
  margin-top: 3px;
  color: var(--element-color);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

body:not([data-view="stock"]) #trend-impact-content .market-five-node-element,
body:not([data-view="stock"]) #trend-impact-content .market-five-element-mark {
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--element-color);
  font-weight: 800;
}

body:not([data-view="stock"]) #trend-impact-content .market-five-node-element {
  position: absolute;
  right: 50%;
  bottom: -13px;
  width: 32px;
  height: 32px;
  border: 3px solid #fff;
  border-radius: 9px;
  font-size: 16px;
  transform: translateX(50%);
}

body:not([data-view="stock"]) #trend-impact-content .market-five-center {
  position: absolute;
  top: 49%;
  left: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  gap: 2px;
  width: 34%;
  min-height: 92px;
  padding: 12px;
  border: 1px solid #e4e7eb;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  text-align: center;
  transform: translate(-50%, -50%);
}

body:not([data-view="stock"]) #trend-impact-content .market-five-center span,
body:not([data-view="stock"]) #trend-impact-content .market-five-center small {
  color: var(--app-v3-muted);
  font-size: 10px;
  font-weight: 700;
}

body:not([data-view="stock"]) #trend-impact-content .market-five-center strong {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

body:not([data-view="stock"]) #trend-impact-content .market-five-center strong.good {
  color: var(--positive);
}

body:not([data-view="stock"]) #trend-impact-content .market-five-center strong.bad {
  color: var(--negative);
}

body:not([data-view="stock"]) #trend-impact-content .market-five-relation-panel {
  display: grid;
  gap: 18px;
  min-width: 0;
  padding: 4px 0 4px 28px;
  border-left: 1px solid var(--app-v3-line);
}

body:not([data-view="stock"]) #trend-impact-content .market-five-relation-head {
  gap: 14px;
}

body:not([data-view="stock"]) #trend-impact-content .market-five-relation-head > div {
  min-width: 0;
  gap: 10px;
}

body:not([data-view="stock"]) #trend-impact-content .market-five-element-mark {
  --element-color: #3c4653;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  font-size: 15px;
}

body:not([data-view="stock"]) #trend-impact-content .market-five-element-mark.wood { --element-color: #18a66a; }
body:not([data-view="stock"]) #trend-impact-content .market-five-element-mark.fire { --element-color: #ef4444; }
body:not([data-view="stock"]) #trend-impact-content .market-five-element-mark.earth { --element-color: #d49a00; }
body:not([data-view="stock"]) #trend-impact-content .market-five-element-mark.metal { --element-color: #5b6470; }
body:not([data-view="stock"]) #trend-impact-content .market-five-element-mark.water { --element-color: #2774d8; }

body:not([data-view="stock"]) #trend-impact-content .market-five-relation-head strong {
  overflow: hidden;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not([data-view="stock"]) #trend-impact-content .market-five-relation-head em {
  flex: 0 0 auto;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

body:not([data-view="stock"]) #trend-impact-content .market-five-relation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body:not([data-view="stock"]) #trend-impact-content .market-five-relation-item {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px 0 12px 12px;
  border-left: 3px solid #242931;
}

body:not([data-view="stock"]) #trend-impact-content .market-five-relation-item.control {
  border-left-color: #b7bdc5;
}

body:not([data-view="stock"]) #trend-impact-content .market-five-relation-item span,
body:not([data-view="stock"]) #trend-impact-content .market-five-relation-item small {
  color: var(--app-v3-muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
}

body:not([data-view="stock"]) #trend-impact-content .market-five-relation-item strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not([data-view="stock"]) #trend-impact-content .market-five-interpretation,
body:not([data-view="stock"]) #trend-impact-content .market-five-linked-sectors {
  margin: 0;
  color: #343b46;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.65;
  word-break: keep-all;
}

body:not([data-view="stock"]) #trend-impact-content .market-five-linked-sectors {
  color: var(--app-v3-muted);
  font-size: 12px;
}

body:not([data-view="stock"]) #trend-impact-content .market-sector-section {
  display: grid;
  gap: 18px;
}

body:not([data-view="stock"]) #trend-impact-content .market-sector-head {
  gap: 20px;
}

body:not([data-view="stock"]) #trend-impact-content .market-sector-head > p {
  margin: 0;
  color: var(--app-v3-muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

body:not([data-view="stock"]) #trend-impact-content .market-sector-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 26px;
}

body:not([data-view="stock"]) #trend-impact-content .market-sector-row {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--app-v3-line);
  transition: opacity 160ms ease, background 160ms ease;
}

body:not([data-view="stock"]) #trend-impact-content .market-sector-row.is-linked {
  background: #f8fafc;
}

body:not([data-view="stock"]) #trend-impact-content .market-sector-row.is-muted {
  opacity: 0.52;
}

body:not([data-view="stock"]) #trend-impact-content .market-sector-row-head {
  gap: 14px;
}

body:not([data-view="stock"]) #trend-impact-content .market-sector-row-head > div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

body:not([data-view="stock"]) #trend-impact-content .market-sector-row-head strong {
  color: var(--app-v3-text);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}

body:not([data-view="stock"]) #trend-impact-content .market-sector-row-head span {
  overflow: hidden;
  color: var(--app-v3-muted);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not([data-view="stock"]) #trend-impact-content .market-sector-result {
  display: grid;
  justify-items: end;
  gap: 1px;
  flex: 0 0 auto;
}

body:not([data-view="stock"]) #trend-impact-content .market-sector-result strong {
  font-variant-numeric: tabular-nums;
}

body:not([data-view="stock"]) #trend-impact-content .market-sector-row.good .market-sector-result strong {
  color: var(--positive);
}

body:not([data-view="stock"]) #trend-impact-content .market-sector-row.bad .market-sector-result strong {
  color: var(--negative);
}

body:not([data-view="stock"]) #trend-impact-content .market-sector-scale {
  position: relative;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf0f4;
}

body:not([data-view="stock"]) #trend-impact-content .market-sector-axis {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: #c6cbd2;
}

body:not([data-view="stock"]) #trend-impact-content .market-sector-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  width: var(--sector-impact, 0%);
}

body:not([data-view="stock"]) #trend-impact-content .market-sector-row.good .market-sector-bar {
  left: 50%;
  background: var(--positive);
}

body:not([data-view="stock"]) #trend-impact-content .market-sector-row.bad .market-sector-bar {
  right: 50%;
  background: var(--negative);
}

body:not([data-view="stock"]) #trend-impact-content .market-sector-matrix {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
}

body:not([data-view="stock"]) #trend-impact-content .market-sector-matrix > span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 24px;
  border-radius: 4px;
  background: #f3f4f6;
  color: #a1a7b0;
  font-size: 10px;
  font-weight: 800;
}

body:not([data-view="stock"]) #trend-impact-content .market-sector-matrix > span.good {
  background: rgba(207, 19, 34, 0.08);
  color: var(--positive);
}

body:not([data-view="stock"]) #trend-impact-content .market-sector-matrix > span.bad {
  background: rgba(22, 119, 255, 0.08);
  color: var(--negative);
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-disclosure {
  padding-bottom: 0;
  border-bottom: 0;
}

/* Market impact evidence 5.4: compact analyst notes and keyword rails. */
body:not([data-view="stock"]) #trend-impact-content .market-impact-disclosure > .market-impact-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 0;
  border-top: 1px solid var(--app-v3-line, #e4e7eb);
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  padding: 20px 0;
  border: 0;
  border-bottom: 1px solid var(--app-v3-line, #e4e7eb);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-detail:last-child {
  border-bottom: 0;
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-detail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-detail-head strong {
  overflow: visible;
  color: var(--app-v3-text, #17191d);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  text-overflow: clip;
  white-space: normal;
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-detail-head em {
  flex: 0 0 auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-detail.good .market-impact-detail-head em {
  background: transparent;
  color: var(--positive);
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-detail.bad .market-impact-detail-head em {
  background: transparent;
  color: var(--negative);
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-detail > p {
  max-width: 860px;
  margin: 0;
  color: #343b46;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  word-break: keep-all;
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  min-width: 0;
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-source {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-decoration: none;
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-source span,
body:not([data-view="stock"]) #trend-impact-content .market-impact-source small {
  color: var(--app-v3-muted, #7b838e);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
  white-space: nowrap;
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-source strong {
  color: var(--app-v3-text, #17191d);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
  white-space: nowrap;
}

body:not([data-view="stock"]) #trend-impact-content a.market-impact-source:hover span {
  color: var(--app-v3-text, #17191d);
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-keyword-groups {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding-top: 2px;
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-keyword-group {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-keyword-group > span {
  color: var(--app-v3-muted, #7b838e);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-keyword-rail {
  display: flex;
  gap: 7px;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-keyword-rail::-webkit-scrollbar {
  display: none;
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-keyword-rail > :is(span, a) {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 30px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--app-v3-line, #dfe3e8);
  border-radius: 999px;
  background: #fff;
  color: #5f6772;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-keyword-rail > a:hover {
  border-color: #aeb5bf;
  color: var(--app-v3-text, #17191d);
}

/* Event calendar 6.0: compact stock-detail table hierarchy. */
body:not([data-view="stock"]) #trend-events-panel > .trend-events {
  gap: 12px;
  background: #f4f5f7;
}

body:not([data-view="stock"]) #trend-events-panel .trend-event {
  display: grid;
  gap: 0;
  min-width: 0;
  padding: 20px 22px 0;
  border: 0;
  border-radius: 0 !important;
  background: #fff;
  box-shadow: none;
}

body:not([data-view="stock"]) #trend-events-panel .trend-event-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 11px;
}

body:not([data-view="stock"]) #trend-events-panel .event-schedule {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
}

body:not([data-view="stock"]) #trend-events-panel .event-schedule time {
  overflow: hidden;
  color: #606874;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not([data-view="stock"]) #trend-events-panel .event-schedule .event-stage {
  flex: 0 0 auto;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  border-radius: 5px;
  background: #f0f2f5;
  color: #69717d;
  font-size: 10px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}

body:not([data-view="stock"]) #trend-events-panel .event-importance {
  flex: 0 0 auto;
  color: #69717d;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
  white-space: nowrap;
}

body:not([data-view="stock"]) #trend-events-panel .event-importance-critical {
  color: #d9273f;
}

body:not([data-view="stock"]) #trend-events-panel .event-importance-important {
  color: #a55f00;
}

body:not([data-view="stock"]) #trend-events-panel .trend-event-title {
  min-width: 0;
  padding: 0 0 17px;
}

body:not([data-view="stock"]) #trend-events-panel .trend-event-title h3 {
  margin: 0;
  color: var(--app-v3-text, #17191d);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.42;
  letter-spacing: 0;
  word-break: keep-all;
}

body:not([data-view="stock"]) #trend-events-panel .event-facts {
  display: grid;
  margin: 0;
  border-top: 1px solid var(--app-v3-line, #e4e7eb);
}

body:not([data-view="stock"]) #trend-events-panel .event-fact {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-width: 0;
  padding: 13px 0;
  border-bottom: 1px solid var(--app-v3-line, #e4e7eb);
}

body:not([data-view="stock"]) #trend-events-panel .event-fact :is(dt, dd) {
  min-width: 0;
  margin: 0;
}

body:not([data-view="stock"]) #trend-events-panel .event-fact dt {
  color: var(--app-v3-muted, #7b838e);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.55;
}

body:not([data-view="stock"]) #trend-events-panel .event-axis-badges {
  display: flex;
  gap: 5px;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}

body:not([data-view="stock"]) #trend-events-panel .event-axis-badges::-webkit-scrollbar {
  display: none;
}

body:not([data-view="stock"]) #trend-events-panel .event-axis-badge {
  flex: 0 0 auto;
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #2c6ecb;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.55;
}

body:not([data-view="stock"]) #trend-events-panel .event-axis-badge + .event-axis-badge::before {
  margin-right: 5px;
  color: #b2b8c0;
  content: "·";
}

body:not([data-view="stock"]) #trend-events-panel .event-axis-badge:is(.axis-oil, .axis-fx, .axis-rate) {
  background: transparent;
  color: #2c6ecb;
}

body:not([data-view="stock"]) #trend-events-panel .trend-impact {
  display: -webkit-box;
  overflow: hidden;
  color: #2d333c;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  word-break: keep-all;
}

body:not([data-view="stock"]) #trend-events-panel .event-actions {
  margin: 0;
}

body:not([data-view="stock"]) #trend-events-panel .flow-button {
  position: relative;
  width: 100%;
  height: 46px;
  padding: 0 24px 0 0;
  border: 0;
  border-bottom: 1px solid var(--app-v3-line, #e4e7eb);
  border-radius: 0;
  background: transparent;
  color: var(--app-v3-text, #17191d);
  font-size: 13px;
  font-weight: 750;
  text-align: left;
}

body:not([data-view="stock"]) #trend-events-panel .flow-button::after {
  position: absolute;
  top: 50%;
  right: 2px;
  color: #8a919b;
  font-size: 20px;
  font-weight: 400;
  content: ">";
  transform: translateY(-52%);
}

body:not([data-view="stock"]) #trend-events-panel .flow-button:hover {
  background: transparent;
  color: #2c6ecb;
}

body:not([data-view="stock"]) #trend-events-panel .trend-event-disclosure {
  margin: 0;
}

body:not([data-view="stock"]) #trend-events-panel .trend-event-disclosure > summary {
  position: relative;
  min-height: 46px;
  padding: 13px 24px 12px 0;
  color: #646c77;
  font-size: 12px;
  font-weight: 700;
}

body:not([data-view="stock"]) #trend-events-panel .trend-event-disclosure > summary::after {
  right: 2px;
}

body:not([data-view="stock"]) #trend-events-panel .event-detail-tags {
  margin-top: 10px;
}

@media (max-width: 720px) {
  body:not([data-view="stock"]) #trend-events-panel .trend-event {
    padding: 18px 20px 0;
  }

  body:not([data-view="stock"]) #trend-events-panel .trend-event-title h3 {
    font-size: 17px;
  }

  body:not([data-view="stock"]) #trend-events-panel .event-fact {
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 10px;
  }
}

/* Home market signal ticker */
body:not([data-view="stock"]) .home-market-signal-ticker {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 0;
  overflow: hidden;
  border-bottom: 1px solid #e8ebef;
  background: #fff;
}

body:not([data-view="stock"]) .home-market-signal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #727c8a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

body:not([data-view="stock"]) .home-market-signal-kicker::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #20a566;
  content: "";
}

body:not([data-view="stock"]) .home-market-signal-window {
  height: 47px;
  min-width: 0;
  overflow: hidden;
}

body:not([data-view="stock"]) .home-market-signal-window > .muted {
  display: flex;
  align-items: center;
  height: 47px;
  margin: 0;
  color: var(--app-v3-muted);
  font-size: 12px;
}

body:not([data-view="stock"]) .home-market-signal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 47px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  animation: home-market-signal-enter 180ms ease-out both;
}

body:not([data-view="stock"]) .home-market-signal-name {
  overflow: hidden;
  color: var(--app-v3-text);
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not([data-view="stock"]) .home-market-signal-action {
  flex: 0 0 auto;
  min-width: 42px;
  text-align: right;
  font-size: 14px;
  font-weight: 800;
}

body:not([data-view="stock"]) .home-market-signal-row[data-side="buy"] .home-market-signal-action {
  color: var(--app-v3-up);
}

body:not([data-view="stock"]) .home-market-signal-row[data-side="sell"] .home-market-signal-action {
  color: var(--app-v3-down);
}

body:not([data-view="stock"]) .home-market-signal-skeleton {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  height: 47px;
}

body:not([data-view="stock"]) .home-market-signal-skeleton::before,
body:not([data-view="stock"]) .home-market-signal-skeleton::after {
  display: block;
  height: 12px;
  border-radius: 3px;
  background: #edf0f4;
  content: "";
  animation: home-market-signal-pulse 900ms ease-in-out infinite alternate;
}

body:not([data-view="stock"]) .home-market-signal-skeleton::before {
  width: min(48%, 180px);
}

body:not([data-view="stock"]) .home-market-signal-skeleton::after {
  width: 42px;
  margin-left: auto;
}

@keyframes home-market-signal-pulse {
  from { opacity: 0.55; }
  to { opacity: 1; }
}

@keyframes home-market-signal-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 720px) {
  body:not([data-view="stock"]) .home-market-signal-ticker {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    min-height: 46px;
    padding: 0;
  }

  body:not([data-view="stock"]) .home-market-signal-name {
    font-size: 13px;
  }

}

@media (prefers-reduced-motion: reduce) {
  body:not([data-view="stock"]) .home-market-signal-row {
    animation: none;
  }

  body:not([data-view="stock"]) .home-market-signal-skeleton::before,
  body:not([data-view="stock"]) .home-market-signal-skeleton::after {
    animation: none;
  }
}

/* Notification center: full-page activity feed with the stock-detail visual language. */
.notifications-page {
  width: min(100%, 780px);
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  margin: 0 auto;
  padding-bottom: 0;
  overflow: hidden;
  background: #ffffff;
  color: #17191d;
}

.notifications-commandbar {
  min-height: 92px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  border-bottom: 1px solid #e3e6ea;
  background: #ffffff;
}

.notifications-commandbar > div {
  min-width: 0;
}

.notifications-commandbar span {
  display: block;
  margin-bottom: 3px;
  color: #8a929e;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.notifications-commandbar h1 {
  margin: 0;
  color: #17191d;
  font-size: 27px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
}

.notifications-back,
.notifications-settings {
  min-height: 42px;
  border: 0;
  background: transparent;
  color: #17191d;
  cursor: pointer;
}

.notifications-back {
  width: 42px;
  padding: 0;
  font-size: 25px;
  line-height: 1;
}

.notifications-settings {
  padding: 0 8px;
  font-size: 14px;
  font-weight: 750;
}

.notifications-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid #e3e6ea;
  background: #ffffff;
}

.notifications-tabs button {
  position: relative;
  min-width: 0;
  min-height: 58px;
  padding: 0 8px;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: #9299a4;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notifications-tabs button::after {
  position: absolute;
  right: 16%;
  bottom: 0;
  left: 16%;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: transparent;
  content: "";
}

.notifications-tabs button.active {
  color: #17191d;
}

.notifications-tabs button.active::after {
  background: #17191d;
}

.notifications-summary {
  min-height: 42px;
  display: flex;
  align-items: flex-end;
  padding: 16px 24px 9px;
  color: #8a929e;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
}

.notifications-list {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  background: #ffffff;
  -webkit-overflow-scrolling: touch;
}

.notifications-date {
  margin: 0;
  padding: 17px 24px 8px;
  border-top: 8px solid #f4f5f7;
  color: #6f7885;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
}

.notifications-date:first-child {
  border-top: 0;
}

.notifications-page .push-history-item {
  position: relative;
  min-height: 98px;
  grid-template-columns: 4px minmax(0, 1fr);
  gap: 0 16px;
  padding: 17px 24px;
  border-bottom: 1px solid #e7e9ed;
}

.notifications-page .push-history-item::before {
  width: 4px;
  height: 100%;
  grid-row: 1 / span 3;
  border-radius: 2px;
  background: #dfe3e8;
  content: "";
}

.notifications-page .push-history-item.kind-ai_signal::before {
  background: #df2c3b;
}

.notifications-page .push-history-item.kind-major_event::before {
  background: #d89a10;
}

.notifications-page .push-history-item:is(.kind-price_move, .kind-report, .kind-disclosure)::before {
  background: #2776dd;
}

.notifications-page .push-history-item-meta,
.notifications-page .push-history-item-title,
.notifications-page .push-history-item-body {
  grid-column: 2;
}

.notifications-page .push-history-item-meta {
  margin-bottom: 5px;
  color: #87909c;
  font-size: 11px;
  font-weight: 650;
}

.notifications-page .push-history-item-meta > span {
  color: #606a77;
  font-weight: 750;
}

.notifications-page .push-history-item-title {
  color: #17191d;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.4;
}

.notifications-page .push-history-item-body {
  margin-top: 3px;
  color: #626b78;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.notifications-page .push-history-state {
  min-height: 320px;
  border-top: 1px solid #e7e9ed;
  background: #ffffff;
}

.notifications-page :is(.notifications-back, .notifications-settings, .notifications-tabs button, .push-history-item):focus-visible {
  outline: 2px solid #17191d;
  outline-offset: -2px;
}

@media (max-width: 560px) {
  .notifications-page {
    width: 100%;
  }

  .notifications-commandbar {
    min-height: 82px;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 14px 18px;
  }

  .notifications-commandbar h1 {
    font-size: 24px;
  }

  .notifications-back {
    width: 38px;
  }

  .notifications-tabs {
    overflow-x: auto;
    grid-template-columns: 68px 112px 90px 100px;
    scrollbar-width: none;
  }

  .notifications-tabs::-webkit-scrollbar {
    display: none;
  }

  .notifications-tabs button {
    min-height: 54px;
    font-size: 13px;
  }

  .notifications-summary,
  .notifications-date,
  .notifications-page .push-history-item {
    padding-right: 20px;
    padding-left: 20px;
  }
}

/* Market impact flow 5.3: restrained research-table treatment for legacy views. */
body:not([data-view="stock"]) #trend-impact-content .market-impact-flow {
  display: grid;
  gap: 0;
  padding: 24px 0;
  border: 0;
  border-top: 1px solid var(--app-v3-line, #e4e7eb);
  border-bottom: 1px solid var(--app-v3-line, #e4e7eb);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-flow-title {
  display: block;
  padding: 0 0 14px;
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-flow-title strong {
  color: var(--app-v3-text, #17191d);
  font-size: var(--app-type-section, 18px);
  font-weight: 800;
  line-height: 1.35;
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-flow-title span {
  display: none !important;
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-flow-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border-top: 1px solid var(--app-v3-line, #e4e7eb);
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-flow-grid article {
  position: relative;
  display: grid;
  grid-template-columns: minmax(112px, 0.32fr) minmax(0, 1.4fr) minmax(180px, 0.7fr);
  gap: 24px;
  align-items: start;
  min-width: 0;
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid var(--app-v3-line, #e4e7eb);
  border-radius: 0;
  background: transparent;
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-flow-grid article:last-child {
  border-bottom: 0;
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-flow-grid article.good,
body:not([data-view="stock"]) #trend-impact-content .market-impact-flow-grid article.bad {
  border-left: 0;
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-flow-grid span {
  color: var(--app-v3-muted, #7b838e);
  font-size: var(--app-type-caption, 13px);
  font-weight: 750;
  line-height: 1.5;
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-flow-grid article.good > span {
  color: var(--positive);
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-flow-grid article.bad > span {
  color: var(--negative);
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-flow-grid strong {
  color: var(--app-v3-text, #17191d);
  font-size: var(--app-type-body, 15px);
  font-weight: 700;
  line-height: 1.65;
  word-break: keep-all;
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-flow-grid small {
  color: var(--app-v3-muted, #7b838e);
  font-size: var(--app-type-caption, 13px);
  font-weight: 650;
  line-height: 1.55;
  text-align: right;
  word-break: keep-all;
}

@media (max-width: 860px) {
  body:not([data-view="stock"]) #trend-impact-content .market-five-map-section {
    grid-template-columns: minmax(0, 1fr);
  }

  body:not([data-view="stock"]) #trend-impact-content .market-five-relation-panel {
    padding: 22px 0 0;
    border-top: 1px solid var(--app-v3-line);
    border-left: 0;
  }
}

@media (max-width: 720px) {
  body:not([data-view="stock"]) #trend-impact-content .market-five-summary,
  body:not([data-view="stock"]) #trend-impact-content .market-five-map-section,
  body:not([data-view="stock"]) #trend-impact-content .market-sector-section,
  body:not([data-view="stock"]) #trend-impact-content .market-impact-disclosure {
    width: calc(100% + 40px);
    margin-left: -20px;
    padding: 22px 20px;
  }

  body:not([data-view="stock"]) #trend-impact-content .market-five-summary {
    padding-top: 4px;
  }

  body:not([data-view="stock"]) #trend-impact-content .market-five-summary-head strong {
    font-size: 21px;
  }

  body:not([data-view="stock"]) #trend-impact-content .market-five-balance {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  body:not([data-view="stock"]) #trend-impact-content .market-five-balance-track {
    width: 100%;
  }

  body:not([data-view="stock"]) #trend-impact-content .market-five-map-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  body:not([data-view="stock"]) #trend-impact-content .market-five-canvas {
    width: min(100%, 470px);
  }

  body:not([data-view="stock"]) #trend-impact-content .market-sector-list {
    grid-template-columns: minmax(0, 1fr);
  }

  body:not([data-view="stock"]) #trend-impact-content .market-impact-flow {
    width: calc(100% + 40px);
    margin-left: -20px;
    padding: 20px;
  }

  body:not([data-view="stock"]) #trend-impact-content .market-impact-flow-grid article {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 17px 0;
  }

  body:not([data-view="stock"]) #trend-impact-content .market-impact-flow-grid small {
    text-align: left;
  }

  body:not([data-view="stock"]) #trend-impact-content .market-impact-detail {
    padding: 18px 0;
  }

  body:not([data-view="stock"]) #trend-impact-content .market-impact-detail > p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body:not([data-view="stock"]) #trend-impact-content .market-impact-source-list {
    display: grid;
    gap: 6px;
  }

  body:not([data-view="stock"]) #trend-impact-content .market-impact-source {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 10px;
  }

  body:not([data-view="stock"]) #trend-impact-content .market-impact-source small {
    grid-column: 1 / -1;
  }

  body:not([data-view="stock"]) #trend-impact-content .market-impact-keyword-group {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
}

@media (max-width: 430px) {
  body:not([data-view="stock"]) #trend-impact-content .market-five-summary-head {
    align-items: flex-start;
  }

  body:not([data-view="stock"]) #trend-impact-content .market-five-summary-head > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  body:not([data-view="stock"]) #trend-impact-content .market-five-summary-head time {
    padding-top: 2px;
  }

  body:not([data-view="stock"]) #trend-impact-content .market-five-node {
    width: 86px;
    padding: 8px;
  }

  body:not([data-view="stock"]) #trend-impact-content .market-five-node-role {
    display: none;
  }

  body:not([data-view="stock"]) #trend-impact-content .market-five-node > strong {
    font-size: 17px;
  }

  body:not([data-view="stock"]) #trend-impact-content .market-five-node-factor {
    font-size: 10px;
  }

  body:not([data-view="stock"]) #trend-impact-content .market-five-node-element {
    bottom: -11px;
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  body:not([data-view="stock"]) #trend-impact-content .market-five-center {
    width: 36%;
    min-height: 74px;
    padding: 8px;
  }

  body:not([data-view="stock"]) #trend-impact-content .market-five-center strong {
    font-size: 15px;
  }

  body:not([data-view="stock"]) #trend-impact-content .market-five-relation-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body:not([data-view="stock"]) #trend-impact-content .market-sector-head {
    align-items: flex-start;
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family:
    "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR",
    sans-serif;
  font-size: var(--type-body);
  letter-spacing: 0;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

body.mobile-menu-open {
  position: fixed;
  inset-inline: 0;
  width: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

button,
input {
  font: inherit;
}

button,
select,
input {
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

button:focus-visible,
select:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.14);
}

a {
  color: inherit;
  text-decoration: none;
}

.login-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #000000;
  transition: background 320ms ease;
}

.login-gate[hidden] {
  display: none;
}

.login-gate[data-phase="form"] {
  background: #f5f7fb;
}

.login-splash {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 320ms ease,
    visibility 320ms ease;
}

.login-gate[data-phase="form"] .login-splash {
  opacity: 0;
  visibility: hidden;
}

.login-splash-logo {
  width: clamp(92px, 16vw, 132px);
  height: clamp(92px, 16vw, 132px);
  border-radius: 30px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 24px 80px rgba(207, 19, 34, 0.24);
}

.login-card {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  display: grid;
  gap: 22px;
  justify-items: center;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(28px) scale(0.985);
  pointer-events: none;
  transition:
    opacity 320ms ease,
    visibility 320ms ease,
    transform 320ms ease;
}

.login-gate[data-phase="form"] .login-card {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.login-copy {
  width: 100%;
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
}

.login-card h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.16;
}

.login-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.login-search-shell {
  width: min(460px, 100%);
  display: grid;
  gap: 14px;
}

.login-card input {
  width: 100%;
  height: 62px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 999px;
  padding: 0 24px;
  color: var(--text);
  font-size: 19px;
  font-weight: 700;
  text-align: center;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.login-card button {
  min-width: 156px;
  height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--button-contrast);
  cursor: pointer;
  font-size: 16px;
  font-weight: 900;
  box-shadow: none;
}

.login-card button:hover {
  background: var(--accent-hover);
}

.login-card button:disabled {
  cursor: progress;
  opacity: 0.6;
}

.login-status {
  width: 100%;
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.login-status:empty {
  min-height: 0;
}

.login-status.success {
  color: #15803d;
}

.login-status.error {
  color: #dc2626;
}

.app-frame {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
}

.mobile-app-bar,
.mobile-menu-scrim,
.install-sheet,
.home-install-button,
.pull-refresh-indicator {
  display: none;
}

.install-sheet[hidden] {
  display: none;
}

.pull-refresh-indicator[hidden] {
  display: none;
}

.loading-modal[hidden] {
  display: none;
}

.page-loading[hidden] {
  display: none;
}

.page-loading {
  position: fixed;
  z-index: 86;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(247, 248, 250, 0.78);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 140ms ease;
}

.page-loading.visible {
  opacity: 1;
}

.page-loading-indicator {
  display: grid;
  justify-items: center;
  gap: 12px;
  min-width: 168px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.14);
}

.page-loading .loading-spinner {
  width: 34px;
  height: 34px;
  border-width: 3px;
}

.page-loading strong {
  color: #273244;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.35;
  text-align: center;
}

.loading-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
}

.loading-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.36);
  backdrop-filter: blur(2px);
}

.loading-modal-card {
  position: relative;
  z-index: 1;
  width: min(360px, 100%);
  display: grid;
  justify-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 20px;
  background: #fff;
  box-shadow: 0 24px 90px rgba(15, 23, 42, 0.28);
  text-align: center;
}

.loading-spinner {
  width: 42px;
  height: 42px;
  border: 4px solid #e5e7eb;
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: loading-spin 840ms linear infinite;
}

.loading-modal-card h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}

.loading-modal-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.55;
}

@keyframes loading-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-loading {
    transition: none;
  }

  .page-loading .loading-spinner {
    animation-duration: 1.6s;
  }
}

.install-sheet {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: block;
}

.push-notification-sheet {
  position: fixed;
  z-index: 95;
  inset: 0;
  display: block;
}

.install-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
}

.push-notification-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.52);
}

.install-sheet-card {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
}

.push-notification-sheet-card {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.32);
}

.install-sheet-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 12px;
}

.push-notification-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.install-sheet-head img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.install-sheet-head h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.push-notification-sheet-head h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.install-sheet-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.push-notification-sheet-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.install-sheet-head button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.push-notification-sheet-head button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  flex: 0 0 auto;
}

.install-steps {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 22px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

.side-nav {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 22px 16px;
  border-right: 0;
  background: var(--sider-bg);
  color: var(--sider-text);
  overflow: hidden;
}

.side-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 18px;
  font-weight: 900;
  color: var(--sider-text-strong);
  flex: 0 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.side-brand-notification {
  position: relative;
  width: auto !important;
  min-width: 112px !important;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 0 14px 0 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition: transform 140ms ease, background-color 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
  -webkit-tap-highlight-color: transparent;
}

.side-brand-notification:hover,
.side-brand-notification:focus-visible {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.side-brand-notification:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.44);
  outline-offset: 2px;
}

.side-brand-notification[data-active="true"] {
  border-color: rgba(255, 255, 255, 0.34);
  background: #ffffff;
  color: #111111;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.28);
}

.side-brand-notification:disabled {
  cursor: default;
  opacity: 0.5;
  box-shadow: none;
}

.side-brand-notification-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.side-brand-notification-text {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap !important;
}

.side-brand-notification-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.side-brand-notification-dot {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 140ms ease, transform 140ms ease;
}

.side-brand-notification[data-active="true"] .side-brand-notification-dot {
  opacity: 1;
  transform: scale(1);
}

.side-brand-notification:not([data-active="true"]) .side-brand-notification-dot {
  background: rgba(255, 255, 255, 0.34);
  box-shadow: none;
  opacity: 1;
  transform: scale(1);
}

.push-notification-sheet-status {
  margin: 0;
  border-radius: 14px;
  padding: 12px 14px;
  background: #f4f6fb;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.push-notification-sheet-status[data-tone="success"] {
  background: #ecfdf3;
  color: #166534;
}

.push-notification-sheet-status[data-tone="error"] {
  background: #fef2f2;
  color: #b91c1c;
}

.push-notification-condition-list {
  display: grid;
  gap: 10px;
}

.push-notification-condition {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: #ffffff;
}

.push-notification-condition-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.push-notification-condition-copy strong {
  font-size: 15px;
  line-height: 1.25;
}

.push-notification-condition-copy span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.push-notification-condition.is-required {
  background: #f7f9fc;
}

.push-notification-required {
  color: #2879df;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.push-notification-condition-control {
  position: relative;
  width: 54px;
  height: 32px;
  flex: 0 0 auto;
}

.push-notification-condition-control input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.push-notification-condition-switch {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d1d5db;
  transition: background-color 140ms ease;
}

.push-notification-condition-switch::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
  transition: transform 140ms ease;
}

.push-notification-condition-control input:checked + .push-notification-condition-switch {
  background: #111111;
}

.push-notification-condition-control input:checked + .push-notification-condition-switch::after {
  transform: translateX(22px);
}

.push-notification-condition-control input:disabled {
  cursor: default;
}

.push-notification-condition-control input:disabled + .push-notification-condition-switch {
  opacity: 1;
}

.push-notification-sheet-actions {
  display: flex;
  gap: 10px;
}

.push-notification-sheet-test {
  width: 100%;
  min-height: 44px;
  border: 1px solid #111111;
  border-radius: 14px;
  background: #ffffff;
  color: #111111;
  font-size: 14px;
  font-weight: 900;
}

.push-notification-sheet-actions button {
  min-height: 44px;
  border-radius: 14px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.push-notification-sheet-disable {
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111111;
}

.push-notification-sheet-save {
  flex: 1 1 auto;
  border: 1px solid #111111;
  background: #111111;
  color: #ffffff;
}

.push-notification-sheet-save:disabled,
.push-notification-sheet-disable:disabled,
.push-notification-sheet-test:disabled {
  cursor: default;
  opacity: 0.5;
}

.side-menu {
  display: grid;
  gap: 8px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  align-content: start;
  padding-right: 4px;
  margin-right: -4px;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
  -webkit-overflow-scrolling: touch;
}

.side-menu::-webkit-scrollbar {
  width: 6px;
}

.side-menu::-webkit-scrollbar-track {
  background: transparent;
}

.side-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.side-menu-group {
  display: grid;
  gap: 6px;
}

.side-menu-label {
  display: block;
  padding: 4px 4px 2px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.side-menu-item,
.rank-tab,
.watch-button,
.ai-analysis-button,
.remove-watch,
.chart-save-button,
.chart-snapshot-remove,
.primary-action {
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-weight: 800;
}

.side-menu-item {
  height: 42px;
  padding: 0 12px;
  text-align: left;
  color: var(--sider-text);
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
  -webkit-tap-highlight-color: transparent;
}

.side-menu-item.active {
  background: #ffffff;
  color: #111111;
}

.side-menu-item:hover,
.side-menu-item:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.side-menu-item.active:hover,
.side-menu-item.active:focus-visible {
  background: #ffffff;
  color: #111111;
}

.side-menu-sub {
  display: grid;
  gap: 6px;
  margin-left: 12px;
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.side-menu-sub-item {
  height: 34px;
  padding: 0 10px;
  color: var(--sider-text);
  font-size: 13px;
}

.side-menu-group.has-active > .side-menu-label {
  color: #ffffff;
}

.watch-identity {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex: 0 0 auto;
}

.watch-identity label,
.watch-identity-label {
  color: var(--sider-text-strong);
  font-size: 12px;
  font-weight: 900;
}

.watch-identity-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
}

.watch-identity-current {
  min-width: 0;
  height: 34px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--sider-text-strong);
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.watch-identity input {
  min-width: 0;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--sider-text-strong);
  font-size: 13px;
  font-weight: 800;
}

.watch-identity input::placeholder {
  color: rgba(255, 255, 255, 0.36);
}

.side-footer-panel {
  display: grid;
  gap: 10px;
  flex: 0 0 auto;
}

.side-footer-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 4px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: #111111;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.side-footer-link:hover {
  background: rgba(255, 255, 255, 0.92);
}

.watch-identity button {
  height: 34px;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 0 10px;
  background: #ffffff;
  color: #111111;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.watch-identity button:hover {
  background: #ececec;
}

.watch-identity p {
  min-height: 17px;
  margin: 0;
  color: var(--sider-text);
  font-size: 11px;
  line-height: 1.45;
}

.watch-identity p.success {
  color: #9ae6b4;
}

.watch-identity p.error {
  color: #fecaca;
}

.shell {
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 22px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.identity p {
  margin-top: 8px;
  color: rgba(0, 0, 0, 0.45);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--button-contrast);
  font-weight: 800;
}

h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}

h1 {
  font-size: 28px;
  line-height: 1.1;
}

.search {
  display: flex;
  gap: 8px;
}

.search-box {
  position: relative;
}

.search input {
  width: 220px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  background: #fff;
}

.search input:hover,
.market-controls select:hover,
.market-segment-button:hover {
  border-color: var(--accent-hover);
}

.search input:focus,
.market-controls select:focus,
.market-segment-button:focus {
  border-color: var(--accent);
  outline: 0;
}

.suggestions {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  width: 320px;
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-popover);
}

.suggestion-item {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  border-radius: 0;
  background: #fff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.suggestion-item:last-child {
  border-bottom: 0;
}

.suggestion-item:hover,
.suggestion-item.active {
  background: var(--accent-soft);
}

.suggestion-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.suggestion-meta {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.search button {
  height: 40px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 0 16px;
  background: var(--accent);
  color: var(--button-contrast);
  font-weight: 800;
  cursor: pointer;
}

.search button:hover,
.primary-action:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
}

.search button:active,
.primary-action:active {
  border-color: var(--accent-active);
  background: var(--accent-active);
}

.primary-action {
  height: 40px;
  padding: 0 16px;
  border-color: var(--accent);
  background: var(--accent);
  color: var(--button-contrast);
}

.topbar-actions {
  display: flex;
  gap: 8px;
}

.secondary-action {
  height: 40px;
  padding: 0 16px;
  border: 1px solid #111111;
  border-radius: var(--radius-sm);
  background: #fff;
  color: #111111;
  font-weight: 800;
  cursor: pointer;
}

.secondary-action:hover {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}

.primary-action:disabled {
  cursor: progress;
  opacity: 0.68;
}

.search .watch-button {
  border-color: #111111;
  background: #fff;
  color: #111111;
}

.search .watch-button:hover {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}

.search .watch-button.active {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}

.search .ai-analysis-button {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
  box-shadow: none;
}

.search .ai-analysis-button:hover,
.search .ai-analysis-button:active {
  border-color: #111111;
  background: #2a2a2a;
  color: #ffffff;
  box-shadow: none;
}

.search .ai-analysis-button:disabled {
  cursor: progress;
  border-color: #111111;
  background: #111111;
  color: #ffffff;
  opacity: 0.55;
}

.market-controls select,
.rank-category-control select {
  height: 40px;
  min-width: 128px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 10px;
  background: #fff;
  color: var(--text);
}

#market-view .market-controls select {
  height: 46px;
  border-color: #111111;
  border-radius: 12px;
  color: #111111;
  font-size: 15px;
  font-weight: 800;
}

#market-view .rank-tab.active,
#market-view .market-segment-button.active {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}

#market-view .market-controls {
  width: 100%;
}

.market-segment {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  overflow: hidden;
  border: 1px solid #111111;
  border-radius: 12px;
  background: #ffffff;
}

.market-segment-button {
  height: 52px;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  color: #111111;
  font-size: 16px;
  font-weight: 900;
}

.market-segment-button + .market-segment-button {
  border-left: 1px solid #111111;
}

.rank-category-control {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.rank-category-control label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.rank-category-control select {
  width: 100%;
  max-width: 340px;
}

.rank-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.rank-tabs[hidden] {
  display: none !important;
}

.rank-tab {
  height: 38px;
  padding: 0 14px;
  border-color: var(--line);
  background: var(--panel);
  color: var(--muted);
}

.rank-tab:hover,
.trend-tab:hover,
.scenario-tab:hover {
  border-color: var(--accent-hover);
  color: var(--accent);
}

.rank-tab.active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--button-contrast);
}

.ranking-message-cell {
  min-height: 48px;
  padding: 14px 16px;
  text-align: center;
}

.ranking-panel {
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-card);
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.ranking-table th,
.ranking-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  text-align: right;
  font-size: 14px;
  white-space: nowrap;
}

.ranking-table th {
  background: #fafafa;
  color: var(--muted);
  font-size: 12px;
}

.ranking-table tbody tr:hover {
  background: #fafcff;
}

.ranking-table th:nth-child(1),
.ranking-table td:nth-child(1) {
  width: 64px;
  text-align: center;
}

.ranking-table th:nth-child(2),
.ranking-table td:nth-child(2) {
  width: 220px;
  text-align: left;
}

.ranking-table tr:last-child td {
  border-bottom: 0;
}

.market-leaderboard-table thead {
  display: none;
}

.market-leaderboard-table .market-leaderboard-row td {
  padding: 0;
  border-bottom: 0;
  text-align: left;
  white-space: normal;
}

#market-view {
  --report-text: #343d4c;
  --report-muted: #8b949f;
  --report-line: rgba(174, 179, 192, 0.28);
  --report-red: #ff5454;
  --report-blue: #3478f6;
  --market-title-size: clamp(28px, 4vw, 38px);
  --market-name-size: clamp(24px, 3.1vw, 30px);
  --market-price-size: clamp(46px, 7vw, 60px);
  --market-change-size: clamp(26px, 4.8vw, 34px);
  --market-meta-size: 13px;
  --market-label-size: 12px;
  --market-value-size: clamp(17px, 2.1vw, 19px);
}

.market-leaderboard-card,
.market-leaderboard-price,
.market-leaderboard-change,
.market-leaderboard-strip strong {
  font-variant-numeric: tabular-nums;
}

#market-view .topbar {
  width: 100%;
  max-width: 100%;
  margin-bottom: 16px;
}

#market-view .identity h1 {
  color: var(--report-text);
  font-size: var(--market-title-size);
  font-weight: 900;
  line-height: 1.14;
}

#market-view .identity p {
  color: var(--report-muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.market-load-more {
  width: min(420px, calc(100% - 32px));
  min-height: 52px;
  margin: 28px auto 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.market-load-more:hover,
.market-load-more:focus-visible {
  border-color: var(--ink);
  background: #f7f8fa;
}

.market-leaderboard-shell {
  display: grid;
  gap: 12px;
  width: 100%;
  min-width: 0;
  padding: 0;
  background: transparent;
}

.market-leaderboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 14px;
  width: 100%;
  min-width: 0;
}

.market-leaderboard-card {
  display: grid;
  gap: 14px;
  width: 100%;
  min-width: 0;
  padding: 20px 20px 18px;
  border: 1px solid var(--report-line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(52, 61, 76, 0.08);
}

.market-leaderboard-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(138px, 44%);
  align-items: stretch;
  gap: 18px;
}

.market-leaderboard-quote-block {
  min-width: 0;
  display: grid;
  align-content: space-between;
  gap: 20px;
}

.market-leaderboard-summary {
  min-width: 0;
  display: grid;
  justify-items: end;
  align-content: space-between;
  gap: 20px;
}

.market-rank-badge {
  flex: 0 0 auto;
  width: 54px;
  min-width: 54px;
  height: 54px;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  background: var(--kakao-yellow);
  color: #111827;
  font-size: 28px;
  font-weight: 900;
}

.market-leaderboard-card:nth-child(n + 4) .market-rank-badge {
  background: #eef1f4;
  color: var(--report-text);
}

.market-leaderboard-name {
  min-width: 0;
  display: grid;
  gap: 4px;
  align-content: start;
  justify-items: end;
  text-align: right;
  text-decoration: none;
}

.market-leaderboard-name strong {
  overflow: hidden;
  color: var(--report-text);
  font-size: var(--market-name-size);
  font-weight: 900;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-leaderboard-name span {
  color: var(--report-muted);
  font-size: var(--market-meta-size);
  font-weight: 800;
  line-height: 1.35;
}

.market-leaderboard-price {
  color: var(--report-text);
  font-size: var(--market-price-size);
  font-weight: 900;
  line-height: 0.96;
}

.market-leaderboard-change {
  flex: 0 0 auto;
  display: block;
  font-size: var(--market-change-size);
  font-weight: 900;
  line-height: 1.02;
  white-space: nowrap;
  text-align: right;
}

.market-leaderboard-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-color: var(--report-line);
  border-radius: 12px;
  background: var(--report-line);
  box-shadow: none;
}

.market-leaderboard-strip div {
  min-height: 78px;
  padding: 13px 14px;
  background: #f6f8fa;
}

.market-leaderboard-strip span {
  color: var(--report-muted);
  font-size: var(--market-label-size);
  font-weight: 900;
  line-height: 1.35;
}

.market-leaderboard-strip strong {
  color: var(--report-text);
  font-size: var(--market-value-size);
  font-weight: 900;
  line-height: 1.24;
}

.market-leaderboard-strip strong.positive {
  color: var(--positive);
}

.market-leaderboard-strip strong.negative,
.market-leaderboard-change.negative {
  color: var(--negative);
}

.market-leaderboard-change.positive {
  color: var(--positive);
}

.rank-name {
  display: grid;
  gap: 2px;
}

.rank-name strong {
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-name span {
  color: var(--muted);
  font-size: 12px;
}

.recommend-summary {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
}

.recommend-history {
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-card);
}

.history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.history-head span {
  color: var(--muted);
  font-weight: 700;
}

.snapshot-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.snapshot-list .muted {
  font-size: 13px;
}

.snapshot-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--button-contrast);
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
}

.snapshot-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
}

.snapshot-button:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
}

.snapshot-delete:hover {
  border-color: #ff4d4f;
  color: #cf1322;
}

.recommend-archive-item {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.recommend-archive-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.recommend-archive-head strong {
  font-size: 15px;
}

.recommend-archive-head span,
.recommend-archive-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.recommend-archive-meta {
  margin: 0;
  line-height: 1.45;
}

.recommend-archive-names {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.recommend-archive-names span {
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.recommend-archive-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

#recommend-view {
  --recommend-font-title: 30px;
  --recommend-font-section: 19px;
  --recommend-font-body: 14px;
  --recommend-font-meta: 12px;
  --recommend-font-caption: 11px;
  --recommend-font-data: 15px;
  --recommend-font-display: 34px;
}

.recommend-list {
  display: grid;
  gap: 12px;
}

.recommend-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.45fr);
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 16px;
  box-shadow: var(--shadow-card);
}

.recommend-head {
  display: grid;
  gap: 12px;
  align-content: start;
}

.recommend-rank-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.recommend-top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.recommend-rank {
  color: var(--accent);
  font-size: var(--recommend-font-caption);
  font-weight: 900;
}

.recommend-rank.watch {
  color: var(--muted);
}

.recommend-rank.buy {
  color: var(--accent);
}

.recommend-refresh,
.recommend-watch-button,
.recommend-track-button,
.recommend-ai-button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.recommend-refresh:hover,
.recommend-watch-button:hover,
.recommend-track-button:hover,
.recommend-ai-button:hover {
  border-color: var(--accent-hover);
  background: var(--accent-soft);
  color: var(--accent);
}

.recommend-refresh:disabled {
  cursor: progress;
  opacity: 0.65;
}

.recommend-card-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.recommend-watch-button {
  height: 40px;
  border-color: #111111;
  background: #fff;
  color: #111111;
  font-size: 14px;
}

.recommend-watch-button.active {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}

.recommend-watch-button:hover,
.recommend-watch-button.active:hover {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}

.recommend-track-button {
  height: 40px;
  border-color: #111111;
  background: #111111;
  color: #ffffff;
  font-size: 14px;
}

.recommend-track-button.active {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}

.recommend-track-button:hover,
.recommend-track-button.active:hover {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}

.recommend-ai-button {
  height: 40px;
  background: #111111;
  border-color: #111111;
  color: #ffffff;
  font-size: 14px;
}

.recommend-ai-button:hover {
  border-color: #111111;
  background: #2a2a2a;
  color: #ffffff;
}

.recommend-name {
  display: grid;
  gap: 4px;
}

.recommend-name strong {
  color: var(--report-text, var(--text));
  font-size: var(--recommend-font-section);
  line-height: 1.3;
}

.recommend-name span {
  color: var(--muted);
  font-size: var(--recommend-font-meta);
  font-weight: 700;
}

.recommend-score {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.recommend-score strong {
  color: var(--report-text, var(--text));
  font-size: var(--recommend-font-display);
  line-height: 1;
}

.recommend-score span {
  color: var(--muted);
  font-size: var(--recommend-font-body);
  font-weight: 800;
}

.recommend-metrics,
.component-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.recommend-metrics div,
.component-grid div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 44px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  background: #fafafa;
  font-size: var(--recommend-font-caption);
}

.recommend-metrics span,
.component-grid span {
  color: var(--muted);
  font-weight: 800;
}

.recommend-metrics strong,
.component-grid strong {
  color: var(--report-text, var(--text));
  font-size: var(--recommend-font-data);
  line-height: 1.35;
  text-align: right;
  overflow-wrap: anywhere;
}

.recommend-metrics strong.positive {
  color: var(--positive);
}

.recommend-metrics strong.negative {
  color: var(--negative);
}

.recommend-us-sector {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f8fafc;
}

.recommend-us-sector h3 {
  margin: 0;
  color: var(--muted);
  font-size: var(--recommend-font-caption);
  font-weight: 900;
}

.recommend-us-sector .muted {
  margin: 0;
  font-size: var(--recommend-font-caption);
  font-weight: 800;
}

.recommend-us-sector-chips {
  display: grid;
  gap: 6px;
}

.recommend-us-sector-chips span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: var(--recommend-font-body);
  font-weight: 900;
}

.recommend-us-sector-chips em {
  color: var(--muted);
  font-style: normal;
  font-size: var(--recommend-font-caption);
}

.recommend-us-sector-chips .positive {
  color: var(--positive);
}

.recommend-us-sector-chips .negative {
  color: var(--negative);
}

.recommend-body {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 14px;
  align-items: start;
}

.recommend-ai-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf2;
}

.recommend-ai-panel[hidden] {
  display: none;
}

.recommend-ai-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.recommend-ai-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 17px;
}

.recommend-ai-decision {
  min-width: 64px;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--accent-soft);
  color: var(--accent);
  text-align: center;
  font-size: 13px;
  font-weight: 900;
}

.recommend-ai-decision.매수 {
  background: #fff1f0;
  color: var(--positive);
}

.recommend-ai-decision.매도 {
  background: #e6f4ff;
  color: var(--negative);
}

.recommend-ai-decision.보류 {
  background: #fff7e6;
  color: var(--warn);
}

.recommend-ai-summary {
  margin: 0;
  color: var(--text);
  font-size: var(--recommend-font-body);
  font-weight: 800;
  line-height: 1.55;
}

.recommend-ai-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.recommend-ai-grid section {
  min-width: 0;
}

.recommend-ai-grid h4 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.recommend-ai-grid ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: #303948;
  font-size: 13px;
  line-height: 1.5;
}

.recommend-track-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.recommend-track-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.recommend-track-title {
  display: grid;
  gap: 4px;
}

.recommend-track-title strong {
  font-size: 19px;
}

.recommend-track-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.recommend-track-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.recommend-track-metrics,
.recommend-track-signals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.recommend-track-metrics div,
.recommend-track-signals div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
}

.recommend-track-metrics span,
.recommend-track-signals span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.recommend-track-metrics strong,
.recommend-track-signals strong {
  font-size: 18px;
  line-height: 1.35;
}

.recommend-track-detail-toggle {
  width: 100%;
  min-height: 44px;
  border: 1px solid #111111;
  border-radius: var(--radius-sm);
  background: #111111;
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.recommend-track-detail-toggle[aria-expanded="true"] {
  background: #ffffff;
  color: #111111;
}

.recommend-track-detail {
  display: grid;
  gap: 12px;
}

.recommend-track-detail[hidden] {
  display: none;
}

.recommend-track-summary {
  display: grid;
  gap: 8px;
}

.recommend-track-summary h3 {
  margin: 0;
  font-size: 15px;
}

.recommend-track-summary p {
  margin: 0;
  color: #303948;
  line-height: 1.6;
}

.recommend-track-points {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  color: #303948;
}

.recommend-body h3 {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: var(--recommend-font-body);
}

.recommend-chart {
  display: grid;
  gap: 8px;
}

.recommend-chart-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.recommend-chart-summary div {
  display: grid;
  gap: 4px;
  align-content: start;
  min-width: 0;
  min-height: 60px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  font-size: var(--recommend-font-caption);
}

.recommend-chart-summary span {
  color: var(--muted);
  font-weight: 800;
}

.recommend-term-label {
  max-width: 100%;
}

.recommend-metrics .recommend-term-label,
.component-grid .recommend-term-label {
  flex: 1 1 auto;
}

.recommend-chart-summary .recommend-term-label {
  width: fit-content;
}

.recommend-term-label .term-help {
  flex: 0 0 auto;
}

.stock-term-label {
  width: fit-content;
  max-width: 100%;
}

.quote-strip .stock-term-label,
.chart-score-block > .stock-term-label,
.chart-summary-grid .stock-term-label,
.metrics dt.stock-term-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.metrics dt.stock-term-label {
  flex: 0 1 auto;
}

.recommend-chart-summary strong {
  color: var(--report-text, var(--text));
  font-size: var(--recommend-font-data);
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

.recommend-chart ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  color: #303948;
  font-size: var(--recommend-font-body);
  line-height: 1.4;
}

.recommend-reasons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  grid-column: 1 / -1;
}

.recommend-reasons ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: #303948;
  font-size: var(--recommend-font-body);
  line-height: 1.45;
}

#trend-view {
  --report-text: #343d4c;
  --report-muted: #8b949f;
  --report-line: rgba(174, 179, 192, 0.32);
  --trend-title-size: clamp(26px, 4vw, 34px);
  --trend-section-size: 16px;
  --trend-card-title-size: 17px;
  --trend-body-size: 14px;
  --trend-meta-size: 12px;
  --trend-chip-size: 12px;
  --impact-title-size: 20px;
  --impact-card-title-size: 18px;
  --impact-body-size: 14px;
  --impact-meta-size: 12px;
  --impact-number-size: 18px;
}

#trend-view .identity h1 {
  color: var(--report-text, #343d4c);
  font-size: var(--trend-title-size);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.16;
}

#trend-view .identity p {
  color: var(--report-muted, #8b949f);
  font-size: var(--trend-body-size);
  font-weight: 700;
  line-height: 1.55;
}

.trend-summary {
  margin-bottom: 14px;
  padding: 16px 18px;
  border: 1px solid var(--report-line, rgba(174, 179, 192, 0.28));
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(52, 61, 76, 0.08);
  color: var(--report-muted, #8b949f);
  font-size: var(--trend-body-size);
  font-weight: 700;
  line-height: 1.6;
}

.trend-summary p {
  margin: 0;
}

.trend-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--report-line, rgba(174, 179, 192, 0.28));
  border-radius: 8px;
  background: #f3f6f9;
}

.trend-tab {
  height: 42px;
  min-width: 0;
  padding: 0 10px;
  border: 0;
  border-right: 1px solid var(--report-line, rgba(174, 179, 192, 0.28));
  border-bottom: 0;
  border-radius: 0;
  background: transparent;
  color: var(--report-muted, #8b949f);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-tab:last-child {
  border-right: 0;
}

.trend-tab.active {
  background: #111111;
  color: #ffffff;
  box-shadow: none;
}

.trend-panel {
  min-width: 0;
}

#trend-view {
  width: auto;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

#trend-view .trend-panel,
.trend-watchlist-panel,
.trend-watch-news-board,
.trend-watch-news-group,
.trend-watch-news-item {
  width: auto;
  max-width: 100%;
  min-width: 0;
}

.trend-watchlist-panel {
  overflow: hidden;
}

.trend-watchlist-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.trend-watchlist-head .section-title {
  margin-bottom: 0;
}

.trend-watchlist-head > span {
  color: var(--report-muted, #8b949f);
  font-size: var(--trend-meta-size);
  font-weight: 700;
  text-align: right;
}

.trend-watch-stock-rail {
  display: flex;
  gap: 8px;
  width: auto;
  max-width: 100%;
  margin-bottom: 18px;
  padding-bottom: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  contain: inline-size;
}

.trend-watch-stock-rail::-webkit-scrollbar {
  display: none;
}

.trend-watch-stock-chip {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--report-line, rgba(174, 179, 192, 0.38));
  border-radius: 8px;
  background: #ffffff;
  color: var(--report-text, #343d4c);
  font-weight: 800;
  scroll-snap-align: start;
  cursor: pointer;
}

.trend-watch-stock-chip.active {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}

.trend-watchlist-status {
  margin: 0;
  color: var(--report-muted, #8b949f);
  font-size: var(--trend-body-size);
  font-weight: 700;
  line-height: 1.6;
}

.trend-watchlist-status:empty {
  display: none;
}

.trend-watch-news-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.trend-watch-news-group {
  min-width: 0;
  border-top: 2px solid #d9dde4;
}

.trend-watch-news-group.positive {
  border-top-color: var(--positive);
}

.trend-watch-news-group.negative {
  border-top-color: var(--negative);
}

.trend-watch-news-group.neutral {
  grid-column: 1 / -1;
}

.trend-watch-news-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0 4px;
}

.trend-watch-news-group-head h3 {
  margin: 0;
  color: var(--report-text, #343d4c);
  font-size: var(--trend-section-size);
  font-weight: 900;
}

.trend-watch-news-group.positive .trend-watch-news-group-head h3 {
  color: var(--positive);
}

.trend-watch-news-group.negative .trend-watch-news-group-head h3 {
  color: var(--negative);
}

.trend-watch-news-group-head span,
.trend-watch-news-item span,
.trend-watch-news-empty {
  color: var(--report-muted, #8b949f);
  font-size: var(--trend-meta-size);
  font-weight: 700;
}

.trend-watch-news-item {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--report-line, rgba(174, 179, 192, 0.28));
  color: inherit;
  overflow: hidden;
}

.trend-watch-news-item strong {
  display: block;
  max-width: 100%;
  color: var(--report-text, #343d4c);
  font-size: var(--trend-card-title-size);
  font-weight: 800;
  line-height: 1.5;
  overflow-wrap: anywhere !important;
  word-break: break-all;
  white-space: normal !important;
}

.trend-watch-news-item > span {
  display: block;
  max-width: 100%;
  margin-top: 6px;
  overflow-wrap: anywhere;
  white-space: normal;
}

.trend-watch-news-empty {
  margin: 0;
  padding: 18px 0;
}

.trend-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 14px;
  align-items: start;
}

.section-title {
  margin: 0 0 12px;
  color: var(--report-text, #343d4c);
  font-size: var(--trend-section-size);
  font-weight: 800;
  line-height: 1.35;
}

.trend-events,
.trend-thread {
  display: grid;
  gap: 10px;
}

.trend-event,
.thread-item {
  border: 1px solid var(--report-line, rgba(174, 179, 192, 0.28));
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(52, 61, 76, 0.08);
}

.trend-event {
  padding: 18px 20px;
  cursor: pointer;
}

.trend-event:hover {
  border-color: var(--accent-hover);
}

.trend-event-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.trend-event-title {
  display: grid;
  gap: 4px;
}

.event-schedule {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.event-schedule span {
  height: 24px;
  padding: 4px 7px;
  border-radius: var(--radius-sm);
  background: #fee500;
  color: #191919;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.event-schedule strong {
  color: var(--report-text, #343d4c);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.trend-event-title strong {
  color: var(--report-text, #343d4c);
  font-size: var(--trend-card-title-size);
  font-weight: 800;
  line-height: 1.4;
}

.trend-event-title span,
.thread-meta {
  color: var(--report-muted, #8b949f);
  font-size: var(--trend-meta-size);
  font-weight: 700;
  line-height: 1.5;
}

.event-axis-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.event-axis-badge {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 8px;
  background: #f6f8fa;
  color: var(--report-text, #343d4c);
  font-size: var(--trend-chip-size);
  font-weight: 800;
}

.event-axis-badge.axis-oil {
  background: #fff2a8;
  color: #4b3f00;
}

.event-axis-badge.axis-fx {
  background: #e8f3ff;
  color: #1f5ca8;
}

.event-axis-badge.axis-rate {
  background: #eaf8ed;
  color: #176b3a;
}

.event-badge {
  flex: 0 0 auto;
  height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: var(--trend-chip-size);
  font-weight: 800;
}

.event-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.flow-button {
  height: 32px;
  padding: 0 11px;
  border: 1px solid #111111;
  border-radius: 8px;
  background: #fff;
  color: #111111;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.flow-button:hover {
  background: #111111;
  color: #ffffff;
}

.flow-button:disabled {
  cursor: progress;
  opacity: 0.7;
}

.trend-impact {
  margin-bottom: 12px;
  color: var(--report-text, #343d4c);
  font-size: var(--trend-body-size);
  font-weight: 700;
  line-height: 1.65;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.tag {
  padding: 5px 8px;
  border-radius: 8px;
  background: #f6f8fa;
  color: #3b4554;
  font-size: var(--trend-chip-size);
  font-weight: 700;
}

.watch-points {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--report-text, #343d4c);
  font-size: var(--trend-body-size);
  font-weight: 600;
  line-height: 1.65;
}

.event-source {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
  font-size: var(--trend-meta-size);
  font-weight: 700;
}

.thread-item {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
}

.thread-group {
  display: grid;
  gap: 10px;
}

.thread-group-title {
  margin: 0;
  color: var(--report-text, #343d4c);
  font-size: var(--trend-section-size);
  font-weight: 800;
  line-height: 1.35;
}

.thread-item strong {
  color: var(--report-text, #343d4c);
  font-size: var(--trend-card-title-size);
  font-weight: 800;
  line-height: 1.55;
}

.thread-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.thread-leader-stocks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.thread-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 8px;
  padding: 3px 8px;
  background: #f6f8fa;
  color: var(--report-muted, #8b949f);
  font-size: var(--trend-chip-size);
  font-weight: 700;
}

.thread-tag.impact-호재 {
  background: #fff1f0;
  color: var(--positive);
}

.thread-tag.impact-중립 {
  background: #fff7e6;
  color: var(--warn);
}

.thread-tag.impact-악재 {
  background: #e6f4ff;
  color: var(--negative);
}

.leader-stock-tag {
  justify-content: center;
  min-width: 0;
  background: var(--accent-soft);
  color: var(--accent);
  text-align: center;
}

.event-flow {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  cursor: default;
  max-width: 100%;
  overflow: hidden;
}

.event-flow h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.scenario-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.scenario-tab {
  height: 32px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.scenario-tab.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.flow-layers {
  display: grid;
  grid-template-columns: repeat(5, minmax(170px, 190px));
  gap: 10px;
  width: max-content;
  min-width: 100%;
  margin: 12px 0 16px;
}

.flow-scroll {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
  padding-bottom: 6px;
}

.flow-mobile {
  display: none;
}

.scroll-hint {
  display: none;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.flow-layer {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 150px;
}

.flow-layer:not(:last-child)::after {
  content: ">";
  position: absolute;
  top: 48px;
  right: -8px;
  color: var(--muted);
  font-weight: 900;
}

.flow-layer h4 {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.flow-node {
  min-height: 62px;
  display: grid;
  gap: 5px;
  align-content: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fafafa;
}

.flow-node strong {
  font-size: 13px;
  line-height: 1.25;
}

.flow-node span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.flow-node-metrics {
  display: grid;
  gap: 4px;
  margin-top: 2px;
}

.flow-node-metrics span {
  color: #303948;
  font-size: 11px;
  font-weight: 800;
}

.flow-node-metrics .positive {
  color: var(--positive);
}

.flow-node-metrics .negative {
  color: var(--negative);
}

.flow-node-metrics .muted {
  color: var(--muted);
}

.flow-node.event {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.flow-node.stock {
  background: #fff;
}

a.flow-node.stock:hover {
  border-color: var(--accent-hover);
  background: #fafcff;
}

.impact-stocks {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.impact-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.impact-column {
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #fafafa;
}

.impact-column h3 {
  margin-bottom: 10px;
}

.negative-case h3 {
  color: var(--negative);
}

.positive-case h3 {
  color: var(--positive);
}

.impact-stock {
  display: grid;
  gap: 10px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  overflow-wrap: anywhere;
}

.impact-stock-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.impact-stock-identity {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.impact-stock-title {
  min-width: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.3;
}

.impact-stock-score {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.impact-watch-button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
}

.impact-watch-button.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.impact-watch-button:hover {
  border-color: var(--accent-hover);
  background: #f8fafc;
}

.impact-watch-button.active:hover {
  background: var(--accent-hover);
  color: #fff;
}

.impact-stock-summary {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.impact-stock-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.impact-stock-metrics div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 8px;
  border-radius: var(--radius-sm);
  background: #fafafa;
  font-size: 12px;
}

.impact-stock-metrics span {
  color: var(--muted);
  font-weight: 800;
}

.impact-reasons {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 17px;
  color: #303948;
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.market-impact-dashboard {
  display: grid;
  gap: 14px;
  min-width: 0;
  color: var(--report-text, #343d4c);
}

.market-impact-hero,
.market-impact-flow,
.market-impact-detail {
  border: 1px solid var(--report-line, rgba(174, 179, 192, 0.28));
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(52, 61, 76, 0.08);
}

.market-impact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.62fr);
  gap: 18px;
  align-items: center;
  padding: 20px;
}

.market-impact-orbit {
  position: relative;
  min-height: 380px;
  isolation: isolate;
  overflow: hidden;
}

.market-impact-lines {
  display: none;
}

.market-impact-center {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  width: min(42%, 168px);
  min-height: 86px;
  padding: 14px;
  border: 1px solid #e4e8ee;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.06);
  text-align: center;
  transform: translate(-50%, -50%);
}

.market-impact-center-content {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  gap: 3px;
}

.market-impact-center-content span,
.market-impact-center-content small {
  color: var(--report-muted, #8b949f);
  font-size: var(--impact-meta-size, 12px);
  font-weight: 800;
  line-height: 1.35;
}

.market-impact-center-content strong {
  color: var(--text);
  font-size: var(--impact-title-size, 20px);
  font-weight: 800;
  line-height: 1.2;
}

.market-impact-center.good .market-impact-center-content strong {
  color: var(--positive);
}

.market-impact-center.bad .market-impact-center-content strong {
  color: var(--negative);
}

.market-impact-node {
  position: absolute;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  width: clamp(94px, 24%, 118px);
  aspect-ratio: 1;
  border: 1px solid #edf0f4;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.07);
  text-align: center;
  overflow: hidden;
}

.market-impact-node.slot-1 {
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
}

.market-impact-node.slot-2 {
  top: 35%;
  left: 2%;
}

.market-impact-node.slot-3 {
  top: 35%;
  right: 2%;
}

.market-impact-node.slot-4 {
  bottom: 2px;
  left: 17%;
}

.market-impact-node.slot-5 {
  right: 17%;
  bottom: 2px;
}

.market-impact-node.good,
.market-impact-center.good {
  --fill-color: rgba(207, 19, 34, 0.18);
  --fill-wave: rgba(207, 19, 34, 0.24);
}

.market-impact-node.bad,
.market-impact-center.bad {
  --fill-color: rgba(22, 119, 255, 0.16);
  --fill-wave: rgba(22, 119, 255, 0.22);
}

.market-impact-water {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: var(--fill-level, 0%);
  background:
    radial-gradient(circle at 25% -10px, rgba(255, 255, 255, 0.82) 0 18px, transparent 19px),
    radial-gradient(circle at 72% -8px, rgba(255, 255, 255, 0.72) 0 15px, transparent 16px),
    linear-gradient(180deg, var(--fill-wave), var(--fill-color));
  border-radius: 0 0 999px 999px;
  transition: height 240ms ease;
}

.market-impact-water::before {
  content: "";
  position: absolute;
  top: -12px;
  left: -12%;
  width: 124%;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}

.market-impact-node-content {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  gap: 5px;
  padding: 10px;
}

.market-impact-node-label {
  color: var(--report-muted, #8b949f);
  font-size: var(--impact-meta-size, 12px);
  font-weight: 800;
  line-height: 1.35;
}

.market-impact-node strong {
  color: var(--text);
  font-size: var(--impact-number-size, 18px);
  font-weight: 800;
  line-height: 1.1;
}

.market-impact-node em,
.market-impact-detail-head em {
  border-radius: 8px;
  padding: 4px 8px;
  font-size: var(--impact-meta-size, 12px);
  font-style: normal;
  font-weight: 800;
  line-height: 1.25;
}

.market-impact-node em.good,
.market-impact-detail.good em {
  background: rgba(207, 19, 34, 0.08);
  color: var(--positive);
}

.market-impact-node em.bad,
.market-impact-detail.bad em {
  background: rgba(22, 119, 255, 0.08);
  color: var(--negative);
}

.market-impact-copy {
  display: grid;
  gap: 8px;
}

.market-impact-copy h2 {
  margin: 0;
  color: var(--text);
  font-size: var(--impact-title-size, 20px);
  font-weight: 800;
  line-height: 1.4;
}

.market-impact-copy p {
  margin: 0;
  color: var(--report-muted, #8b949f);
  font-size: var(--impact-body-size, 14px);
  font-weight: 800;
  line-height: 1.6;
}

.market-impact-flow {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.market-impact-flow-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.market-impact-flow-title strong {
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
}

.market-impact-flow-title span {
  color: var(--report-muted, #8b949f);
  font-size: var(--impact-meta-size, 12px);
  font-weight: 800;
  line-height: 1.45;
}

.market-impact-flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.market-impact-flow-grid article {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 13px;
  border: 1px solid #eef1f5;
  border-radius: 14px;
  background: #f8fafc;
}

.market-impact-flow-grid article.good {
  border-left: 4px solid var(--positive);
}

.market-impact-flow-grid article.bad {
  border-left: 4px solid var(--negative);
}

.market-impact-flow-grid span {
  color: var(--report-muted, #8b949f);
  font-size: var(--impact-meta-size, 12px);
  font-weight: 800;
  line-height: 1.35;
}

.market-impact-flow-grid strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.55;
}

.market-impact-flow-grid small {
  color: var(--report-muted, #8b949f);
  font-size: var(--impact-meta-size, 12px);
  font-weight: 800;
  line-height: 1.45;
}

.market-impact-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.market-impact-detail {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
}

.market-impact-detail-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.market-impact-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 42px;
  border-radius: 10px;
  background: #111;
  color: #fff;
  font-size: var(--impact-meta-size, 12px);
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.market-impact-icon.rate,
.market-impact-icon.dollar,
.market-impact-icon.bond,
.market-impact-icon.risk {
  background: #111827;
}

.market-impact-icon.commodity {
  background: #f4d800;
  color: #111;
}

.market-impact-detail-head strong {
  min-width: 0;
  color: var(--text);
  font-size: var(--impact-card-title-size, 18px);
  font-weight: 800;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-impact-detail-head em {
  white-space: nowrap;
}

.market-impact-detail p {
  margin: 0;
  color: #303948;
  font-size: var(--impact-body-size, 14px);
  font-weight: 800;
  line-height: 1.65;
}

.market-impact-reasons {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: #3b4554;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

.market-impact-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.market-impact-metric {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 11px;
  border: 1px solid #eef1f5;
  border-radius: 12px;
  background: #f8fafc;
  color: inherit;
  text-decoration: none;
}

.market-impact-metric span,
.market-impact-tag-block > span {
  color: var(--report-muted, #8b949f);
  font-size: var(--impact-meta-size, 12px);
  font-weight: 800;
  line-height: 1.4;
}

.market-impact-metric strong {
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
}

.market-impact-metric small {
  color: #4b5563;
  font-size: var(--impact-meta-size, 12px);
  font-weight: 800;
  line-height: 1.45;
}

.market-impact-tag-block {
  display: grid;
  gap: 7px;
}

.market-impact-stock-tags {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.market-impact-stock-tags a,
.market-impact-stock-tags span {
  min-width: 0;
  padding: 8px;
  border-radius: 10px;
  background: #f6f8fa;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-impact-stock-tags a:hover {
  background: #eef2f7;
}

.watch-table th:nth-child(1),
.watch-table td:nth-child(1) {
  width: 165px;
  text-align: left;
}

.watch-table {
  min-width: 1018px;
}

.watch-table th {
  padding-top: 16px;
  padding-bottom: 16px;
  padding-left: 10px;
  padding-right: 10px;
  vertical-align: middle;
  font-size: 12px;
}

.watch-table td {
  padding: 20px 10px;
  line-height: 1.45;
  vertical-align: middle;
  font-size: 13px;
}

.watch-table th:nth-child(2),
.watch-table td:nth-child(2) {
  width: 94px;
}

.watch-table th:nth-child(3),
.watch-table td:nth-child(3),
.watch-table th:nth-child(10),
.watch-table td:nth-child(10) {
  width: 74px;
}

.watch-table th:nth-child(4),
.watch-table td:nth-child(4),
.watch-table th:nth-child(5),
.watch-table td:nth-child(5),
.watch-table th:nth-child(6),
.watch-table td:nth-child(6) {
  width: 76px;
}

.watch-table th:nth-child(7),
.watch-table td:nth-child(7) {
  width: 94px;
}

.watch-table th:nth-child(8),
.watch-table td:nth-child(8),
.watch-table th:nth-child(9),
.watch-table td:nth-child(9) {
  width: 110px;
  text-align: left;
  white-space: normal;
}

.watch-table th:nth-child(9),
.watch-table td:nth-child(9) {
  width: 118px;
}

.watch-table th:nth-child(11),
.watch-table td:nth-child(11) {
  width: 55px;
  text-align: center;
}

.watch-table td:nth-child(2),
.watch-table td:nth-child(3),
.watch-table td:nth-child(4),
.watch-table td:nth-child(5),
.watch-table td:nth-child(6),
.watch-table td:nth-child(7),
.watch-table td:nth-child(10) {
  white-space: nowrap;
}

.watch-table .rank-name {
  gap: 4px;
}

.watch-table .rank-name strong,
.watch-table .rank-name span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.interpretation {
  font-weight: 800;
  line-height: 1.3;
}

.remove-watch {
  height: 30px;
  padding: 0 10px;
  border-color: var(--line);
  color: var(--muted);
}

#watchlist-view {
  --report-text: #343d4c;
  --report-muted: #8b949f;
  --report-line: rgba(174, 179, 192, 0.28);
  --report-red: #ff5454;
  --report-blue: #3478f6;
  --watch-font-title: clamp(28px, 4.2vw, 40px);
  --watch-font-section: clamp(20px, 2.5vw, 24px);
  --watch-font-body: 15px;
  --watch-font-meta: 13px;
  --watch-font-caption: 12px;
  --watch-font-data: 17px;
  --watch-font-display: clamp(36px, 7vw, 54px);
  --watch-line-heading: 1.2;
  --watch-line-body: 1.6;
}

#watchlist-view.is-loading {
  min-height: 68vh;
}

#watchlist-view .topbar {
  margin-bottom: 16px;
}

#watchlist-view .identity {
  display: grid;
  gap: 4px;
}

#watchlist-view .identity h1 {
  color: var(--report-text);
  font-size: var(--watch-font-title);
  font-weight: 900;
  line-height: var(--watch-line-heading);
  letter-spacing: 0;
}

#watchlist-view .identity p {
  color: var(--report-muted);
  font-size: var(--watch-font-body);
  font-weight: 700;
  line-height: 1.55;
}

.watchlist-panel {
  display: grid;
  gap: 14px;
}

.watchlist-strategy {
  display: grid;
  gap: 16px;
  padding: 2px 0 4px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.watchlist-report-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.watchlist-report-title {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.watchlist-report-title p,
.watchlist-monitoring-head span {
  margin: 0;
  color: var(--report-muted);
  font-size: var(--watch-font-caption);
  font-weight: 800;
  line-height: 1.45;
}

.watchlist-report-title h2 {
  margin: 0;
  color: var(--report-text);
  font-size: clamp(20px, 3.2vw, 25px);
  font-weight: 900;
  line-height: 1.28;
}

.watchlist-report-phase {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  background: #eef2f7;
  color: var(--report-muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 28px;
  white-space: nowrap;
}

.watchlist-report-phase.positive {
  background: #fff1f2;
  color: var(--positive);
}

.watchlist-report-phase.negative {
  background: #eff6ff;
  color: var(--negative);
}

.watchlist-report-action {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  border-left: 3px solid var(--report-text);
  background: #f2f5f8;
}

.watchlist-report-action span {
  color: var(--report-muted);
  font-size: var(--watch-font-caption);
  font-weight: 900;
}

.watchlist-report-action strong {
  color: var(--report-text);
  font-size: var(--watch-font-body);
  font-weight: 900;
  line-height: 1.45;
}

.watchlist-report-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.watchlist-report-signals span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 6px;
  background: #eef2f7;
  color: var(--report-muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
}

.watchlist-report-signals span.positive {
  background: #fff1f2;
  color: var(--positive);
}

.watchlist-report-signals span.negative {
  background: #eff6ff;
  color: var(--negative);
}

.watchlist-report-signals span.event {
  flex-basis: 100%;
  justify-content: flex-start;
  background: #f6f8fa;
  color: var(--report-text);
}

.watchlist-report-news {
  overflow: hidden;
  margin: -5px 0 0;
  color: var(--report-muted);
  font-size: var(--watch-font-caption);
  font-weight: 800;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.watchlist-report-news::before {
  content: "시장 뉴스 · ";
  color: var(--report-text);
}

.watchlist-monitoring {
  display: grid;
  gap: 8px;
}

.watchlist-monitoring-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.watchlist-monitoring-head h3 {
  margin: 0;
  color: var(--report-text);
  font-size: 16px;
  font-weight: 900;
}

.watchlist-monitoring-list {
  border-top: 1px solid var(--report-line);
}

.watchlist-monitor-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border-bottom: 1px solid var(--report-line);
  color: var(--report-text);
  text-decoration: none;
}

.watchlist-monitor-row:hover {
  background: rgba(238, 242, 247, 0.72);
}

.watchlist-monitor-rank {
  color: var(--report-muted);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.watchlist-monitor-row strong {
  overflow: hidden;
  font-size: var(--watch-font-body);
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.watchlist-monitor-row > span:last-child {
  font-size: var(--watch-font-caption);
  font-weight: 900;
  white-space: nowrap;
}

.watchlist-monitor-row > span.negative {
  color: var(--negative);
}

@media (max-width: 640px) {
  .watchlist-report-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .watchlist-report-title h2 {
    font-size: 22px;
  }
}

.watchlist-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 14px;
}

.watchlist-empty-card,
.watch-stock-card {
  border: 1px solid var(--report-line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(52, 61, 76, 0.08);
}

.watchlist-empty-card {
  display: grid;
  gap: 8px;
  padding: 24px 20px;
  color: var(--report-muted);
  font-weight: 900;
  text-align: center;
}

.watchlist-empty-card.is-loading,
.watch-chart-empty-card.is-loading {
  min-height: 132px;
  justify-items: center;
  align-content: center;
  text-align: center;
}

.inline-loading-spinner {
  box-sizing: border-box;
  width: 30px;
  height: 30px;
  display: inline-block;
  border: 3px solid rgba(17, 17, 17, 0.12);
  border-top-color: #111111;
  border-radius: 999px;
  animation: loading-spin 840ms linear infinite;
}

#watch-chart-meta.is-loading {
  display: block;
  min-height: 18px;
  color: transparent;
}

#watch-chart-meta.is-loading .inline-loading-spinner {
  width: 14px;
  height: 14px;
  border-width: 2px;
}

.watch-chart-loader {
  min-height: 148px;
  display: grid;
  place-items: center;
}

.watch-chart-loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  background: rgba(248, 250, 252, 0.78);
  backdrop-filter: blur(3px);
}

.watch-chart-loader-overlay .inline-loading-spinner {
  width: var(--page-loading-spinner-size);
  height: var(--page-loading-spinner-size);
  border-width: var(--page-loading-spinner-border);
}

.watchlist-loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  background: rgba(248, 250, 252, 0.74);
  backdrop-filter: blur(2px);
}

.watchlist-loader-overlay .inline-loading-spinner {
  width: var(--page-loading-spinner-size);
  height: var(--page-loading-spinner-size);
  border-width: var(--page-loading-spinner-border);
}

.watchlist-empty-card.is-loading strong,
.watch-chart-empty-card.is-loading strong {
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
}

.watchlist-empty-card.is-loading p,
.watch-chart-empty-card.is-loading p {
  max-width: 320px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
}

.watch-stock-card {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.watch-stock-head,
.watch-stock-price-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.watch-stock-name {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.watch-stock-name strong {
  color: var(--report-text);
  font-size: var(--watch-font-section);
  font-weight: 900;
  line-height: 1.22;
}

.watch-stock-name span {
  color: var(--report-muted);
  font-size: var(--watch-font-meta);
  font-weight: 800;
  line-height: 1.5;
}

.watch-stock-name .watch-stock-quote {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  color: var(--report-text);
  font-variant-numeric: tabular-nums;
}

.watch-stock-name .watch-stock-inline-price,
.watch-stock-name .watch-stock-inline-change {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
}

.watch-stock-name .watch-stock-inline-change.positive {
  color: var(--positive);
}

.watch-stock-name .watch-stock-inline-change.negative {
  color: var(--negative);
}

.watch-stock-card .remove-watch {
  flex: 0 0 auto;
  height: 40px;
  padding: 0 14px;
  border-color: #cfd6df;
  border-radius: 8px;
  background: #ffffff;
  color: var(--report-text);
  font-size: var(--watch-font-meta);
  font-weight: 900;
}

.watch-stock-card .market-chip {
  margin-bottom: 12px;
}

.watch-stock-price-row {
  align-items: center;
}

.watch-stock-price {
  display: block;
  color: var(--report-text);
  font-size: var(--watch-font-display);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.watch-stock-change {
  flex: 0 0 auto;
  margin-top: 0;
  font-size: clamp(22px, 3.4vw, 28px);
  font-weight: 900;
  line-height: 1.12;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.watch-stock-card .stock-pre-market {
  margin-top: 8px;
  color: var(--report-muted);
  font-size: var(--watch-font-body);
  font-weight: 700;
  line-height: 1.55;
}

.watch-stock-card .stock-pre-market.positive,
.watch-stock-change.positive,
.watch-stock-card .watch-quote-strip strong.positive {
  color: var(--positive);
}

.watch-stock-card .stock-pre-market.negative,
.watch-stock-change.negative,
.watch-stock-card .watch-quote-strip strong.negative {
  color: var(--negative);
}

.watch-preopen-point {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--report-line);
  border-radius: 14px;
  background: #f8fafc;
}

.watch-preopen-point summary {
  display: grid;
  gap: 8px;
  cursor: pointer;
  list-style: none;
}

.watch-preopen-point summary > div {
  display: grid;
  gap: 4px;
}

.watch-preopen-point summary::-webkit-details-marker {
  display: none;
}

.watch-preopen-point summary::after {
  content: "펼치기";
  justify-self: start;
  height: 26px;
  padding: 0 10px;
  border: 1px solid #d1d8e1;
  border-radius: 6px;
  color: var(--report-muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 24px;
}

.watch-preopen-point[open] summary::after {
  content: "접기";
}

.watch-preopen-point:not(.collapsed) summary::after {
  display: none;
}

.watch-preopen-point span,
.watch-us-sector-strip span {
  color: var(--report-muted);
  font-size: var(--watch-font-caption);
  font-weight: 800;
  line-height: 1.45;
}

.watch-preopen-point summary strong {
  color: var(--report-text);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.32;
}

.watch-preopen-point summary em {
  color: var(--report-muted);
  font-size: var(--watch-font-caption);
  font-style: normal;
  font-weight: 700;
  line-height: 1.5;
}

.watch-preopen-point.positive summary strong {
  color: var(--positive);
}

.watch-preopen-point.negative summary strong {
  color: var(--negative);
}

.watch-preopen-point ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--report-text);
  font-size: var(--watch-font-body);
  font-weight: 700;
  line-height: var(--watch-line-body);
}

.watch-us-sector-strip {
  display: grid;
  gap: 8px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--report-line);
}

.watch-us-sector-strip > span {
  font-size: var(--watch-font-caption);
  letter-spacing: 0;
}

.watch-us-sector-strip > strong {
  justify-self: start;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 6px;
  background: #eef2f7;
  color: var(--report-text);
  font-size: var(--watch-font-caption);
  font-weight: 800;
  line-height: 26px;
}

.watch-us-sector-strip div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.watch-us-sector-strip em {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 6px;
  background: #eef2f7;
  color: var(--report-muted);
  font-size: var(--watch-font-caption);
  font-style: normal;
  font-weight: 900;
}

.watch-us-sector-strip em.positive {
  background: #fff1f2;
  color: var(--positive);
}

.watch-us-sector-strip em.negative {
  background: #eff6ff;
  color: var(--negative);
}

.watch-quote-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-color: var(--report-line);
  border-radius: 12px;
  background: var(--report-line);
  box-shadow: none;
}

.watch-quote-strip div {
  min-height: 72px;
  padding: 14px 12px;
  background: #f6f8fa;
}

.watch-quote-strip span,
.watch-insight-card span {
  color: var(--report-muted);
  font-size: var(--watch-font-caption);
  font-weight: 800;
  line-height: 1.45;
}

.watch-quote-strip strong {
  color: var(--report-text);
  font-size: var(--watch-font-data);
  font-weight: 900;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
}

.watch-insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.watch-insight-card {
  display: grid;
  gap: 8px;
  min-height: 78px;
  padding: 14px 12px;
  border: 1px solid var(--report-line);
  border-radius: 8px;
  background: #f6f8fa;
}

.watch-insight-card strong {
  color: var(--report-text);
  font-size: var(--watch-font-data);
  font-weight: 900;
  line-height: 1.3;
}

.watch-insight-card.positive strong {
  color: var(--positive);
}

.watch-insight-card.negative strong {
  color: var(--negative);
}

.stock-mobile-detail {
  display: grid;
  gap: 14px;
}

.stock-detail-topbar {
  align-items: flex-start;
}

#stock-view {
  --report-bg: #f6f8fa;
  --report-text: #343d4c;
  --report-muted: #8b949f;
  --report-line: rgba(174, 179, 192, 0.28);
  --report-red: #ff5454;
  --report-blue: #3478f6;
  --stock-font-title: clamp(28px, 4.2vw, 40px);
  --stock-font-section: clamp(20px, 2.5vw, 24px);
  --stock-font-body: 15px;
  --stock-font-meta: 13px;
  --stock-font-caption: 12px;
  --stock-font-data: 17px;
  --stock-font-display: clamp(36px, 7vw, 54px);
  --stock-line-heading: 1.2;
  --stock-line-body: 1.6;
}

#stock-view .topbar {
  margin-bottom: 10px;
}

#stock-view .identity {
  display: grid;
  gap: 4px;
}

#stock-view .identity h1 {
  color: var(--report-text);
  font-size: var(--stock-font-title);
  font-weight: 900;
  line-height: var(--stock-line-heading);
  letter-spacing: 0;
}

#stock-view .identity p {
  color: var(--report-muted);
  font-size: var(--stock-font-meta);
  font-weight: 800;
  line-height: 1.5;
}

.stock-quote-card {
  display: grid;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--report-line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(52, 61, 76, 0.08);
}

.stock-quote-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.stock-quote-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: var(--stock-font-meta);
  font-weight: 800;
  line-height: 1.55;
}

.market-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  height: 26px;
  padding: 0 9px;
  border-radius: 4px;
  background: #eef1f4;
  color: var(--report-muted);
  font-size: var(--stock-font-caption);
  font-weight: 900;
}

.stock-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.stock-action-row button {
  width: 100%;
  min-height: 42px;
  border-radius: 6px;
  font-size: var(--stock-font-meta);
  font-weight: 900;
}

.stock-action-row .watch-button {
  border: 1px solid rgba(174, 179, 192, 0.8);
  background: #f6f8fa;
  color: var(--report-text);
}

.stock-action-row .ai-analysis-button {
  border: 1px solid #0d0f2e;
  background: #0d0f2e;
  color: #ffffff;
}

.stock-price-main {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 4px;
}

.stock-price-main > strong {
  color: var(--report-text);
  font-size: var(--stock-font-display);
  line-height: 0.95;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.stock-price-main > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 900;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.stock-pre-market {
  margin: -8px 0 0;
  color: var(--report-muted);
  font-size: var(--stock-font-meta);
  font-weight: 800;
  line-height: 1.5;
}

.stock-section-tabs {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding: 2px;
  border: 1px solid var(--report-line);
  border-radius: 999px;
  background: #edf1f5;
  backdrop-filter: blur(10px);
  scrollbar-width: none;
}

.stock-section-tabs::-webkit-scrollbar {
  display: none;
}

.stock-section-tabs button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--report-muted);
  font-size: var(--stock-font-meta);
  font-weight: 900;
  cursor: pointer;
}

.stock-section-tabs button.active {
  border-color: transparent;
  background: #111111;
  color: #ffffff;
  box-shadow: none;
}

.stock-detail-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  padding: 0;
  border-radius: 8px;
  background: #f3f6f9;
}

.stock-detail-tabs button {
  width: 100%;
  border-radius: 0;
  border-right: 1px solid var(--report-line);
  box-shadow: none;
}

.stock-detail-tabs button:last-child {
  border-right: 0;
}

.stock-detail-tabs button.active {
  border-radius: 0;
  background: #111111;
  color: #ffffff;
  box-shadow: none;
}

.stock-tab-panel {
  display: grid;
  gap: 14px;
}

.stock-tab-panel[hidden] {
  display: none;
}

.stock-visual-card,
.stock-strategy-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--report-line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(52, 61, 76, 0.08);
}

.stock-visual-card {
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
  align-items: stretch;
}

.stock-visual-main {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.section-eyebrow {
  display: block;
  margin-bottom: 6px;
  color: var(--report-muted);
  font-size: var(--stock-font-caption);
  font-weight: 900;
  line-height: 1.3;
}

.stock-visual-main h2,
.strategy-head h2 {
  margin: 0;
  color: var(--report-text);
  font-size: var(--stock-font-section);
  line-height: var(--stock-line-heading);
}

.stock-visual-main p,
.strategy-head p {
  margin: 8px 0 0;
  color: var(--report-muted);
  font-size: var(--stock-font-body);
  font-weight: 800;
  line-height: var(--stock-line-body);
}

.score-ring {
  --score: 0;
  flex: 0 0 128px;
  width: 128px;
  height: 128px;
  display: grid;
  align-content: center;
  place-items: center;
  gap: 2px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #ffffff 58%, transparent 59%),
    conic-gradient(var(--report-red) calc(var(--score) * 1%), #e9edf1 0);
}

.score-ring small {
  color: var(--report-muted);
  font-size: var(--stock-font-caption);
  font-weight: 900;
  line-height: 1;
}

.score-ring span {
  color: var(--report-red);
  font-size: 30px;
  font-weight: 1000;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stock-confidence-line {
  margin-top: 4px !important;
  color: var(--report-text) !important;
}

.stock-confidence-line strong {
  color: var(--report-red);
}

.stock-confidence-help {
  margin-top: 3px !important;
  color: var(--report-muted) !important;
  font-size: var(--stock-font-caption) !important;
  font-weight: 800 !important;
  line-height: 1.5 !important;
}

.stock-mini-chart {
  min-height: 170px;
  display: grid;
  align-content: center;
  gap: 8px;
  overflow: hidden;
  border: 1px solid var(--report-line);
  border-radius: 13px;
  background: #ffffff;
}

.stock-mini-chart svg {
  width: 100%;
  height: 150px;
}

.stock-mini-chart p {
  margin: 0;
  padding: 20px;
  color: var(--muted);
  font-size: var(--stock-font-meta);
  font-weight: 800;
  line-height: 1.55;
}

.stock-mini-chart .mini-chart-date-range {
  margin: -8px 0 0;
  padding: 0 16px 14px;
  color: var(--report-muted);
  font-size: var(--stock-font-caption);
  font-weight: 900;
  line-height: 1.3;
  text-align: right;
}

.mini-chart-line {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mini-chart-fill {
  fill: url(#stockMiniGradient);
  stroke: none;
}

.mini-chart-line.up,
.mini-chart-fill.up {
  color: var(--report-red);
  stroke: var(--report-red);
}

.mini-chart-line.down,
.mini-chart-fill.down {
  color: var(--report-blue);
  stroke: var(--report-blue);
}

.stock-mini-chart div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px 14px;
  color: var(--report-muted);
  font-size: var(--stock-font-caption);
  font-weight: 900;
}

.stock-mini-chart strong {
  color: var(--report-text);
  font-variant-numeric: tabular-nums;
}

.stock-summary-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.summary-signal-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--report-line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(52, 61, 76, 0.06);
}

.summary-signal-card span {
  color: var(--report-muted);
  font-size: var(--stock-font-caption);
  font-weight: 900;
}

.summary-signal-card strong {
  min-height: 22px;
  color: var(--report-text);
  font-size: var(--stock-font-data);
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}

.signal-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f7;
}

.signal-meter i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--report-red);
  transition: width 0.35s ease;
}

.strategy-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.status-chip {
  flex: 0 0 auto;
  max-width: 220px;
  padding: 8px 10px;
  border-radius: 4px;
  background: rgba(255, 84, 84, 0.10);
  color: var(--report-red);
  font-size: var(--stock-font-meta);
  font-weight: 900;
  line-height: 1.45;
  text-align: center;
}

.price-ladder {
  display: grid;
  gap: 14px;
  max-width: 100%;
  overflow: hidden;
}

.strategy-range-chart {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--report-line);
  border-radius: 12px;
  background: #ffffff;
}

.strategy-range-scale {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--report-muted);
  font-size: var(--stock-font-caption);
  font-weight: 900;
}

.strategy-range-scale strong {
  color: var(--report-text);
  font-size: var(--stock-font-meta);
  font-variant-numeric: tabular-nums;
}

.strategy-range-track {
  position: relative;
  height: 32px;
  margin: 42px 8px 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #eaf2ff 0%, #f3f5f8 46%, #fff0f0 100%);
  box-shadow: inset 0 0 0 1px rgba(52, 61, 76, 0.08);
}

.strategy-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 999px;
  opacity: 0.92;
}

.strategy-zone.risk {
  background: rgba(52, 120, 246, 0.22);
}

.strategy-zone.buy {
  min-width: 10px;
  border: 1px solid rgba(52, 61, 76, 0.22);
  background: rgba(52, 61, 76, 0.20);
}

.strategy-zone.watch {
  min-width: 10px;
  border: 1px solid rgba(139, 149, 161, 0.28);
  background: rgba(139, 149, 161, 0.18);
}

.strategy-zone.breakout {
  background: rgba(255, 84, 84, 0.18);
}

.strategy-tick {
  position: absolute;
  top: -7px;
  z-index: 2;
  width: 2px;
  height: 46px;
  border-radius: 999px;
  background: currentColor;
  transform: translateX(-50%);
  opacity: 0.86;
}

.strategy-tick.buy {
  color: #343d4c;
}

.strategy-tick.watch {
  color: var(--report-muted);
}

.strategy-tick.current {
  color: #343d4c;
}

.strategy-tick.breakout,
.strategy-tick.sell {
  color: var(--report-red);
}

.strategy-tick.risk {
  color: var(--report-blue);
}

.strategy-current {
  position: absolute;
  top: -42px;
  z-index: 4;
  min-width: 92px;
  display: grid;
  justify-items: center;
  gap: 1px;
  color: var(--report-text);
  text-align: center;
  transform: translateX(-50%);
}

.strategy-current::before {
  position: absolute;
  left: 50%;
  top: 34px;
  width: 2px;
  height: 48px;
  border-radius: 999px;
  background: #343d4c;
  content: "";
  transform: translateX(-50%);
}

.strategy-current i {
  position: absolute;
  left: 50%;
  top: 74px;
  width: 12px;
  height: 12px;
  border: 3px solid #ffffff;
  border-radius: 999px;
  background: #343d4c;
  box-shadow: 0 0 0 1px rgba(52, 61, 76, 0.18);
  transform: translate(-50%, -50%);
}

.strategy-current b,
.strategy-current em {
  display: block;
  width: max-content;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
}

.strategy-current b {
  color: var(--report-text);
  font-size: var(--stock-font-caption);
  font-weight: 1000;
  font-variant-numeric: tabular-nums;
}

.strategy-current em {
  color: var(--report-text);
  font-size: var(--stock-font-meta);
  font-weight: 1000;
  font-variant-numeric: tabular-nums;
}

.strategy-current.near-left {
  transform: translateX(-12px);
}

.strategy-current.near-right {
  transform: translateX(calc(-100% + 12px));
}

.strategy-range-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--report-muted);
  font-size: var(--stock-font-caption);
  font-weight: 900;
}

.strategy-range-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.strategy-range-legend i {
  width: 20px;
  height: 8px;
  border-radius: 999px;
}

.strategy-range-legend i.risk {
  background: rgba(52, 120, 246, 0.30);
}

.strategy-range-legend i.buy {
  background: rgba(52, 61, 76, 0.28);
}

.strategy-range-legend i.watch {
  background: rgba(139, 149, 161, 0.30);
}

.strategy-range-legend i.breakout {
  background: rgba(255, 84, 84, 0.28);
}

.strategy-level-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.strategy-level-card {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--report-line);
  border-radius: 8px;
  background: #f6f8fa;
}

.strategy-level-card::before {
  width: 24px;
  height: 3px;
  border-radius: 999px;
  background: var(--report-muted);
  content: "";
}

.strategy-level-card.current::before,
.strategy-level-card.buy::before {
  background: #343d4c;
}

.strategy-level-card.watch::before {
  background: var(--report-muted);
}

.strategy-level-card.risk::before {
  background: var(--report-blue);
}

.strategy-level-card.breakout::before,
.strategy-level-card.sell::before {
  background: var(--report-red);
}

.strategy-level-card span {
  color: var(--report-muted);
  font-size: var(--stock-font-caption);
  font-weight: 900;
}

.strategy-level-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--stock-font-data);
  color: var(--report-text);
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}

.strategy-level-card em {
  color: var(--report-muted);
  font-size: var(--stock-font-caption);
  font-style: normal;
  font-weight: 800;
  line-height: 1.4;
}

.strategy-level-card.featured {
  grid-column: 1 / -1;
  min-height: 112px;
  gap: 8px;
  padding: 16px;
  border-color: rgba(52, 61, 76, 0.24);
  background: linear-gradient(135deg, #ffffff 0%, #f3f6fa 100%);
}

.strategy-level-card.featured::before {
  width: 42px;
  height: 4px;
}

.strategy-level-card.featured span {
  font-size: var(--stock-font-meta);
}

.strategy-level-card.featured strong {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  font-size: clamp(24px, 4.2vw, 32px);
  line-height: 1.15;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.strategy-level-card.featured em {
  font-size: var(--stock-font-body);
}

#stock-view .panel,
#stock-view .chart-analysis-panel,
#stock-view .ai-analysis-panel {
  border: 1px solid var(--report-line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(52, 61, 76, 0.06);
}

#stock-view .stock-section-card h2,
#stock-view .chart-detail-grid h2,
#stock-view .ai-analysis-head h2 {
  color: var(--report-text);
  font-size: var(--stock-font-section);
  font-weight: 900;
  line-height: var(--stock-line-heading);
}

#stock-view .metrics div,
#stock-view .chart-summary-grid div,
#stock-view .ai-analysis-grid section,
#stock-view .ai-section {
  border: 1px solid var(--report-line);
  border-radius: 8px;
  background: #f6f8fa;
}

#stock-view .metrics dt,
#stock-view .quote-strip span,
#stock-view .chart-summary-grid span,
#stock-view .ai-analysis-grid h3,
#stock-view .ai-section h3 {
  color: var(--report-muted);
  font-size: var(--stock-font-caption);
  font-weight: 900;
  line-height: 1.35;
}

#stock-view .metrics dd,
#stock-view .quote-strip strong,
#stock-view .chart-summary-grid strong {
  color: var(--report-text);
  font-size: var(--stock-font-data);
  font-weight: 900;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}

#stock-view .ai-list,
#stock-view .chart-list,
#stock-view .event-list {
  color: var(--report-text);
  font-size: var(--stock-font-body);
  font-weight: 700;
  line-height: 1.6;
}

#stock-view .ai-summary {
  color: var(--report-text);
  font-size: var(--stock-font-body);
  line-height: 1.6;
}

#stock-view .quote-strip {
  border-color: var(--report-line);
  border-radius: 12px;
  background: var(--report-line);
  box-shadow: none;
}

#stock-view .quote-strip div {
  background: #f6f8fa;
}

#stock-view .ai-analysis-head strong {
  border-radius: 4px;
  background: rgba(255, 84, 84, 0.10);
  color: var(--report-red);
}

#stock-summary-section,
#stock-news-section,
#stock-price-section,
#stock-finance-section,
#stock-research-section,
#stock-ai-section,
#stock-chart-section,
#stock-flow-section,
#stock-consensus-section,
#stock-momentum-section,
#stock-macro-section {
  scroll-margin-top: 118px;
}

.stock-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.stock-evidence-panel {
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) !important;
}

.stock-evidence-panel .stock-ai-evidence,
.stock-evidence-panel .chart-analysis-panel,
.stock-evidence-panel .stock-section-card {
  box-shadow: none;
}

.evidence-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.evidence-head h2 {
  margin: 0;
}

.evidence-head > span {
  max-width: 260px;
  color: var(--report-muted);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.5;
  text-align: right;
}

.stock-evidence-panel .chart-analysis-panel {
  grid-template-columns: 150px minmax(0, 1fr);
  margin-top: 0;
  border-radius: 16px;
}

.stock-evidence-panel .chart-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stock-evidence-panel .chart-detail-grid {
  gap: 12px;
}

.stock-evidence-panel .chart-detail-grid > div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--report-line);
  border-radius: 10px;
  background: #f8fafc;
}

.evidence-core-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.evidence-core-grid .stock-section-card {
  align-content: start;
  padding: 16px;
}

.evidence-core-grid .stock-section-card.wide {
  grid-column: 1 / -1;
}

.evidence-chart-card {
  grid-column: 1 / -1;
}

.evidence-score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--report-line);
  border-radius: 10px;
  background: #f8fafc;
}

.evidence-score-row div {
  display: grid;
  gap: 4px;
}

.evidence-score-row span {
  color: var(--report-muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.evidence-score-row strong {
  color: var(--report-red);
  font-size: 28px;
  line-height: 1;
}

.evidence-score-row em {
  color: var(--report-text);
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.35;
}

.evidence-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.evidence-metric-grid div {
  min-width: 0;
  display: grid !important;
  align-items: start;
  justify-content: stretch;
  gap: 6px;
  padding: 12px;
}

.evidence-metric-grid dd,
.sentiment-line strong,
.sentiment-line span {
  overflow-wrap: anywhere;
}

.evidence-metric-grid dt,
.evidence-metric-grid dd {
  text-align: left !important;
}

.evidence-metric-grid dt {
  font-size: 12px;
}

.evidence-metric-grid dd {
  margin: 0;
  font-size: 16px !important;
  line-height: 1.4;
}

.evidence-mini-lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.evidence-mini-lists > div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--report-line);
  border-radius: 10px;
  background: #f8fafc;
}

.evidence-mini-lists h3 {
  margin: 0 0 8px;
  color: var(--report-muted);
  font-size: 12px;
  font-weight: 900;
}

.stock-section-card {
  display: grid;
  gap: 14px;
}

.stock-section-card h2 {
  margin: 0;
}

.stock-section-card.wide {
  grid-column: 1 / -1;
}

.stock-stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stock-stat-grid div {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}

.stock-stat-grid dt {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-width: 0;
}

.stock-stat-grid dd {
  align-self: end;
  justify-self: end;
  margin: 0;
  max-width: 100%;
  text-align: right;
}

.stock-section-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
}

.quote-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line-soft);
  box-shadow: var(--shadow-card);
}

.quote-strip div {
  min-height: 84px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  background: var(--panel);
}

.quote-strip span,
.metrics dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.quote-strip strong {
  display: block;
  min-width: 0;
  min-height: 1.2em;
  font-size: 24px;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-feature-settings:
    "tnum" 1,
    "lnum" 1;
}

.stock-quote-card .quote-strip {
  box-shadow: none;
}

.stock-quote-card .quote-strip div {
  min-height: 74px;
  padding: 14px;
}

.stock-quote-card .quote-strip strong {
  font-size: 18px;
  line-height: 1.2;
}

#quote-value {
  min-width: 7ch;
}

.quote-strip strong.quote-updated {
  animation: quotePulse 0.55s ease;
}

.quote-strip strong.quote-count-up,
.quote-strip strong.quote-count-down {
  will-change: contents, transform, color;
}

.quote-strip strong.quote-count-up {
  animation: quoteCountUp 0.7s ease;
}

.quote-strip strong.quote-count-down {
  animation: quoteCountDown 0.7s ease;
}

@keyframes quotePulse {
  0% {
    background: rgba(255, 221, 0, 0.32);
  }
  100% {
    background: transparent;
  }
}

@keyframes quoteCountUp {
  0% {
    color: var(--danger);
    transform: translateY(5px);
  }
  45% {
    color: var(--danger);
    transform: translateY(-2px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes quoteCountDown {
  0% {
    color: var(--primary);
    transform: translateY(-5px);
  }
  45% {
    color: var(--primary);
    transform: translateY(2px);
  }
  100% {
    transform: translateY(0);
  }
}

.chart-analysis-panel {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 14px;
  margin-top: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-card);
}

.chart-score-block {
  display: grid;
  align-content: center;
  gap: 6px;
  padding-right: 14px;
  border-right: 1px solid var(--line);
}

.chart-score-block span,
.chart-summary-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.chart-score-block strong {
  font-size: 34px;
  line-height: 1;
}

.chart-score-block em {
  color: var(--text);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.chart-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.chart-summary-grid div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  background: #fafafa;
}

.chart-summary-grid strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.chart-detail-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.chart-detail-grid h2 {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.chart-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: #303948;
  font-size: 13px;
  line-height: 1.45;
}

.ai-analysis-panel {
  display: grid;
  gap: 14px;
  margin-top: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-card);
}

.ai-analysis-panel[hidden] {
  display: none;
}

.ai-analysis-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.ai-analysis-head h2 {
  margin: 0 0 4px;
  font-size: 18px;
}

.ai-analysis-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.ai-analysis-head strong {
  max-width: 220px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  text-align: right;
  font-size: 13px;
}

.ai-summary {
  margin: 0;
  color: #303948;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.ai-analysis-grid,
.ai-section-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

#stock-view .ai-analysis-grid {
  grid-template-columns: 1fr;
}

.ai-analysis-grid section,
.ai-section {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #fafafa;
}

.ai-analysis-grid h3,
.ai-section h3 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.ai-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: #303948;
  font-size: 13px;
  line-height: 1.45;
}

#stock-view .ai-analysis-grid .ai-list {
  gap: 9px;
  font-size: 14px;
  line-height: 1.65;
}

.chart-snapshot-panel,
.watch-chart-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-card);
}

.chart-snapshot-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding: 14px;
}

.chart-snapshot-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.archive-page .chart-snapshot-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.chart-snapshot-item {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: #fafafa;
}

.archive-page .chart-snapshot-item {
  gap: 10px;
  padding: 14px;
  background: #fff;
}

.chart-snapshot-item strong,
.chart-snapshot-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart-snapshot-item strong {
  font-size: 13px;
}

.chart-snapshot-item span {
  color: var(--muted);
  font-size: 12px;
}

.chart-snapshot-preview {
  overflow: hidden;
  max-height: 120px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: #fff;
}

.archive-page .chart-snapshot-preview {
  max-height: 220px;
}

.chart-snapshot-preview .watch-chart-svg {
  min-width: 0;
}

.chart-snapshot-remove,
.chart-refresh-button,
.chart-ai-button,
.chart-save-button {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 16px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.archive-page .chart-snapshot-remove {
  justify-self: end;
  min-width: 72px;
}

.chart-refresh-button {
  border-color: #111111;
  background: #fff;
  color: #111111;
}

.chart-ai-button {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
  box-shadow: none;
}

.chart-ai-button:hover,
.chart-ai-button:active {
  border-color: #111111;
  background: #2a2a2a;
  color: #ffffff;
  box-shadow: none;
}

.chart-refresh-button:hover,
.chart-refresh-button:active,
.chart-save-button:hover,
.chart-snapshot-remove:hover,
.remove-watch:hover {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}

#chart-view {
  --report-text: #343d4c;
  --report-muted: #8b949f;
  --report-line: rgba(174, 179, 192, 0.28);
  --chart-font-title: clamp(28px, 4vw, 34px);
  --chart-font-section: clamp(18px, 2.1vw, 20px);
  --chart-font-body: 15px;
  --chart-font-meta: 13px;
  --chart-font-caption: 12px;
  --chart-font-data: 16px;
  --chart-font-display: clamp(28px, 3.8vw, 32px);
  --chart-font-price: clamp(20px, 3vw, 24px);
  --chart-line-heading: 1.22;
  --chart-line-body: 1.5;
}

#chart-view .topbar {
  margin-bottom: 16px;
}

#chart-view .identity {
  display: grid;
  gap: 6px;
}

#chart-view .identity h1 {
  color: var(--report-text);
  font-size: var(--chart-font-title);
  font-weight: 900;
  line-height: var(--chart-line-heading);
  letter-spacing: 0;
}

#chart-view .identity p {
  color: var(--report-muted);
  font-size: var(--chart-font-meta);
  font-weight: 700;
  line-height: 1.5;
}

.watch-chart-list {
  display: grid;
  gap: 14px;
}

.watch-chart-empty-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--report-line);
  border-radius: 16px;
  padding: 18px 20px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.watch-chart-empty-card strong {
  color: var(--report-text);
  font-size: var(--chart-font-section);
  font-weight: 900;
  line-height: 1.25;
}

.watch-chart-empty-card p {
  margin: 0;
  color: var(--report-muted);
  font-size: var(--chart-font-body);
  font-weight: 700;
  line-height: 1.55;
}

.watch-chart-selector-list {
  display: grid;
  gap: 10px;
}

.watch-chart-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  border: 1px solid var(--report-line);
  border-radius: 16px;
  padding: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  color: var(--report-text);
  cursor: pointer;
  text-align: left;
}

.watch-chart-row:hover {
  border-color: rgba(17, 17, 17, 0.16);
  background: #fcfcfd;
}

.watch-chart-row-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.watch-chart-row-head {
  display: flex;
  align-items: center;
  min-width: 0;
}

.watch-chart-row-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--report-text);
  font-size: var(--chart-font-section);
  font-weight: 900;
  line-height: 1.18;
}

.watch-chart-row-market {
  display: inline-flex;
  align-items: center;
  min-height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--report-muted);
  font-size: var(--chart-font-meta);
  font-weight: 700;
  line-height: 1.5;
}

.watch-chart-row-price {
  color: var(--report-text);
  font-size: var(--chart-font-price);
  line-height: 1.25;
  font-weight: 800;
}

.watch-chart-row-metrics {
  display: grid;
  justify-items: end;
  align-content: center;
  gap: 8px;
  min-width: 112px;
}

.watch-chart-score-badge {
  display: grid;
  justify-items: end;
  gap: 3px;
}

.watch-chart-score-badge span {
  color: var(--report-muted);
  font-size: var(--chart-font-caption);
  font-weight: 700;
  line-height: 1.4;
}

.watch-chart-score-badge strong {
  font-size: var(--chart-font-display);
  line-height: 1;
  font-weight: 900;
}

.watch-chart-stance-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f5f6f8;
  color: var(--report-text);
  font-size: var(--chart-font-caption);
  font-style: normal;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  line-height: 1.1;
}

.watch-chart-stance-badge.positive {
  background: rgba(207, 19, 34, 0.10);
}

.watch-chart-stance-badge.negative {
  background: rgba(22, 119, 255, 0.10);
}

.watch-chart-stance-badge.muted {
  background: #eff1f3;
}

.watch-chart-detail-view {
  display: grid;
  gap: 14px;
}

.watch-chart-detail-toolbar {
  display: flex;
  align-items: flex-start;
}

.chart-detail-back {
  min-width: 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 12px;
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
}

.watch-chart-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--report-line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.watch-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}

.watch-chart-head > div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.watch-chart-name {
  color: var(--report-text);
  font-size: var(--chart-font-section);
  font-weight: 900;
  line-height: 1.18;
}

.watch-chart-head span {
  color: var(--report-muted);
  font-size: var(--chart-font-meta);
  font-weight: 700;
  line-height: 1.5;
}

.watch-chart-score {
  display: grid;
  justify-items: end;
  gap: 2px;
  min-width: 88px;
}

.watch-chart-head-aside {
  display: grid;
  justify-items: end;
  gap: 10px;
  flex: 0 0 auto;
}

.watch-chart-score strong {
  font-size: var(--chart-font-display);
  line-height: 1;
}

.watch-chart-visual {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #fafafa;
}

.watch-chart-svg {
  display: block;
  width: 100%;
  min-width: 680px;
  height: auto;
}

.chart-grid-line {
  stroke: #e5eaf0;
  stroke-width: 1;
}

.candle-up {
  stroke: var(--positive);
}

.candle-down {
  stroke: var(--negative);
}

.candle-up.fill {
  fill: var(--positive);
}

.candle-down.fill {
  fill: var(--negative);
}

.volume-up {
  fill: rgba(185, 28, 28, 0.22);
}

.volume-down {
  fill: rgba(37, 99, 235, 0.22);
}

.ma-line {
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.band-line {
  fill: none;
  stroke: #94a3b8;
  stroke-width: 1.4;
  stroke-dasharray: 3 4;
  opacity: 0.9;
}

.ma5 {
  stroke: #f59e0b;
}

.ma20 {
  stroke: #2563eb;
}

.ma60 {
  stroke: #0f766e;
}

.ma120 {
  stroke: #7c3aed;
}

.support-line {
  stroke: #0891b2;
  stroke-width: 1.8;
  stroke-dasharray: 7 5;
}

.resistance-line {
  stroke: #b91c1c;
  stroke-width: 1.8;
  stroke-dasharray: 7 5;
}

.chart-legend {
  fill: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.chart-line-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.chart-line-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.chart-line-legend i {
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
}

.legend-ma5 {
  color: #f59e0b;
}

.legend-ma20 {
  color: #2563eb;
}

.legend-ma60 {
  color: #0f766e;
}

.legend-ma120 {
  color: #7c3aed;
}

.legend-band {
  color: #94a3b8;
}

.legend-support {
  color: #0891b2;
}

.legend-resistance {
  color: #b91c1c;
}

.watch-chart-metrics,
.chart-indicators,
.chart-checklist {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.watch-chart-metrics div,
.chart-indicators div,
.check-row {
  min-width: 0;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: #fafafa;
}

.watch-chart-metrics div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}

.watch-chart-metrics strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
  text-align: right;
  overflow-wrap: anywhere;
}

.chart-indicators div {
  display: grid;
  gap: 4px;
  font-size: 12px;
}

.watch-chart-metrics span,
.chart-indicators span {
  color: var(--muted);
  font-weight: 800;
}

.chart-term-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: var(--muted);
  font-weight: 800;
}

.chart-term-text {
  color: inherit;
  font-weight: inherit;
}

.term-help {
  position: relative;
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0;
  background: #fff;
  color: var(--muted);
  cursor: help;
  font-size: var(--chart-font-caption);
  font-weight: 900;
  line-height: 1;
}

.term-help::after {
  position: absolute;
  z-index: 20;
  left: calc(100% + 10px);
  top: 50%;
  width: min(260px, calc(100vw - 44px));
  transform: translateY(-50%);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 10px;
  background: #111827;
  color: #fff;
  box-shadow: var(--shadow-popover);
  content: attr(data-tooltip);
  font-size: var(--chart-font-meta);
  font-weight: 700;
  line-height: 1.45;
  text-align: left;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease;
}

.term-help::before {
  position: absolute;
  z-index: 21;
  left: calc(100% + 5px);
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translateY(-50%) rotate(45deg);
  background: #111827;
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease;
}

.term-help:hover,
.term-help:focus-visible,
.term-help.open {
  border-color: var(--accent-hover);
  color: var(--accent);
}

.term-help:hover::after,
.term-help:hover::before,
.term-help:focus-visible::after,
.term-help:focus-visible::before,
.term-help.open::after,
.term-help.open::before {
  opacity: 1;
}

.chart-indicators strong {
  font-size: var(--chart-font-data);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.chart-indicators em {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.check-row {
  display: grid;
  gap: 4px;
}

.check-row strong,
.check-row span,
.check-row em {
  font-size: var(--chart-font-meta);
}

.check-row strong {
  font-weight: 900;
}

.check-row span {
  color: var(--text);
  font-weight: 800;
}

.check-row em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.3;
}

.positive-check {
  background: #f6ffed;
}

.positive-check strong {
  color: var(--positive);
}

.caution-check strong {
  color: #b45309;
}

.chart-note-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: #303948;
  font-size: 13px;
  line-height: 1.45;
}

.chart-ai-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #fafafa;
}

.chart-ai-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.chart-ai-head > div {
  display: grid;
  gap: 4px;
}

.chart-ai-head h3 {
  margin: 0;
  font-size: 15px;
}

.chart-ai-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.chart-ai-decision {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: #f5f5f5;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
}

.chart-ai-decision.buy {
  background: #fff1f0;
  color: var(--positive);
}

.chart-ai-decision.sell {
  background: #eef2ff;
  color: var(--negative);
}

.chart-ai-decision.hold {
  background: #fff7e6;
  color: #b45309;
}

.chart-ai-summary {
  margin: 0;
  color: #303948;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

.chart-ai-price-plan {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.chart-ai-price-plan div {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--line-soft);
}

.chart-ai-price-plan span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.chart-ai-price-plan strong {
  color: #111827;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.chart-ai-explanation {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: #ffffff;
}

.chart-ai-explanation p {
  margin: 0;
  color: #303948;
  font-size: 13px;
  line-height: 1.6;
}

.chart-ai-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.chart-ai-grid section {
  min-width: 0;
  padding: 11px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--line-soft);
}

.chart-ai-grid h4 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.chart-ai-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: #303948;
  font-size: 13px;
  line-height: 1.45;
}

.watch-chart-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.watch-chart-actions .chart-ai-button,
.watch-chart-actions .chart-refresh-button,
.watch-chart-actions .chart-save-button {
  min-width: 112px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 16px;
  box-shadow: var(--shadow-card);
}

.panel.wide {
  grid-column: span 2;
}

.panel h2 {
  margin-bottom: 14px;
  font-size: 17px;
}

.panel h3 {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.metrics {
  display: grid;
  gap: 12px;
}

.metrics.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.metrics div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.metrics dd {
  min-width: 0;
  text-align: right;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.event-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.event-list {
  display: grid;
  gap: 7px;
  min-height: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.event-list li {
  min-width: 0;
  padding-top: 7px;
  border-top: 1px solid var(--line-soft);
  color: #303948;
  font-size: 13px;
  line-height: 1.35;
}

.event-list a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-list time {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.sentiment-line {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}

.sentiment-line strong {
  font-size: 28px;
}

.sentiment-line span {
  color: var(--muted);
  font-size: 13px;
}

.positive {
  color: var(--positive);
}

.negative {
  color: var(--negative);
}

.muted {
  color: var(--muted);
}

@media (max-width: 980px) {
  .app-frame {
    grid-template-columns: 1fr;
    align-content: start;
  }

  .mobile-app-bar {
    position: sticky;
    z-index: 45;
    top: 0;
    height: 56px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  }

  .pull-refresh-indicator {
    position: fixed;
    z-index: 44;
    top: 64px;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 188px;
    padding: 10px 14px;
    border: 1px solid rgba(17, 17, 17, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    color: var(--text);
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -12px);
    transition:
      opacity 160ms ease,
      transform 160ms ease;
    backdrop-filter: blur(14px);
  }

  .pull-refresh-indicator.visible {
    opacity: 1;
    transform: translate(-50%, 0);
  }

  .pull-refresh-indicator strong {
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
  }

  .pull-refresh-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(17, 17, 17, 0.18);
    border-top-color: var(--accent);
    border-radius: 999px;
    transform: rotate(-90deg);
    transition:
      transform 160ms ease,
      border-color 160ms ease;
  }

  .pull-refresh-indicator.ready .pull-refresh-spinner {
    transform: rotate(0deg);
  }

  .pull-refresh-indicator.refreshing .pull-refresh-spinner {
    animation: pull-refresh-spin 720ms linear infinite;
  }

  .mobile-brand {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
  }

  .mobile-brand strong {
    font-size: 18px;
    font-weight: 900;
    white-space: nowrap;
  }

  .mobile-brand span {
    flex: 0 0 auto;
    display: inline-flex;
    min-height: 20px;
    align-items: center;
    place-items: center;
    border: 1px solid rgba(17, 17, 17, 0.12);
    border-radius: 999px;
    padding: 0 7px;
    background: #f3f4f6;
    color: #111111;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0;
  }

  .home-install-button {
    height: 38px;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: var(--radius-sm);
    padding: 0 12px;
    background: #111111;
    color: #ffffff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
  }

  .home-install-button[hidden] {
    display: none;
  }

  .mobile-menu-button {
    width: 42px;
    height: 42px;
    display: grid;
    place-content: center;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    cursor: pointer;
  }

  .mobile-menu-button span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
  }

  .mobile-menu-scrim {
    position: fixed;
    z-index: 55;
    inset: 0;
    display: block;
    background: rgba(15, 23, 42, 0.34);
  }

  .mobile-menu-scrim[hidden] {
    display: none;
  }

  .side-nav {
    position: fixed;
    z-index: 60;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(82vw, 304px);
    height: 100dvh;
    max-height: 100dvh;
    gap: 16px;
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px));
    box-shadow: 18px 0 42px rgba(15, 23, 42, 0.18);
    transform: translateX(-105%);
    transition: transform 180ms ease;
    touch-action: pan-y;
  }

  .side-menu {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-bottom: 6px;
    touch-action: pan-y;
  }

  .mobile-menu-scrim {
    touch-action: none;
  }

  body.mobile-menu-open .side-nav {
    transform: translateX(0);
  }

  .side-brand {
    min-height: 42px;
  }

  .side-brand-notification {
    min-width: 116px !important;
    height: 48px;
  }

  .push-notification-sheet-card {
    right: 16px;
    bottom: 16px;
    left: 16px;
  }

  .side-menu {
    display: grid;
    gap: 8px;
  }

  .side-menu-item {
    height: 48px;
    font-size: 15px;
  }

  .shell {
    width: 100%;
    padding: 18px;
    transition: transform 180ms ease;
    will-change: transform;
  }

  .app-frame.pull-refresh-active .shell {
    transform: translateY(var(--pull-refresh-distance, 0px));
  }

  .stock-section-tabs {
    top: 56px;
  }

  .quote-strip,
  .stock-visual-card,
  .stock-summary-cards,
  .chart-analysis-panel,
  .stock-section-grid,
  .evidence-core-grid,
  .ai-analysis-grid,
  .ai-section-list,
  .strategy-level-grid,
  .chart-snapshot-list,
  .archive-page .chart-snapshot-list,
  .watch-chart-metrics,
  .chart-indicators,
  .chart-checklist,
  .chart-ai-price-plan,
  .chart-ai-grid,
  .grid,
  .recommend-card,
  .recommend-reasons,
  .trend-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chart-score-block {
    border-right: 0;
    padding-right: 0;
  }

  .panel.wide {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  html,
  body,
  .app-frame,
  .shell {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  .shell {
    padding: 14px 12px 22px;
  }

  .login-gate {
    padding: 18px;
  }

  .login-card {
    width: min(100%, 520px);
  }

  .login-card h1 {
    font-size: 31px;
  }

  .login-search-shell {
    gap: 12px;
  }

  .login-card input {
    height: 58px;
    padding: 0 20px;
    font-size: 18px;
  }

  .login-card button {
    height: 52px;
    min-width: 140px;
  }

  .side-nav {
    width: min(86vw, 292px);
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 14px;
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .secondary-action,
  .primary-action {
    width: 100%;
  }

  .market-controls select,
  .rank-category-control select {
    width: 100%;
    height: 44px;
  }

  #market-view .market-controls {
    width: 100%;
  }

  #market-view .market-segment {
    width: 100%;
  }

  #market-view .market-segment-button {
    height: 44px;
  }

  .rank-category-control select {
    max-width: 100%;
  }

  h1 {
    font-size: 24px;
  }

  .search {
    display: grid;
    grid-template-columns: 1fr 72px;
    gap: 8px;
  }

  .search input {
    width: 100%;
  }

  .search-box {
    min-width: 0;
  }

  .search .watch-button,
  .search .ai-analysis-button {
    grid-column: span 1;
    padding: 0 10px;
  }

  .search .ai-analysis-button {
    grid-column: 1 / -1;
  }

  .suggestions {
    width: min(100%, calc(100vw - 24px));
    max-height: 280px;
  }

  .rank-tabs,
  .trend-tabs {
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .rank-tabs::-webkit-scrollbar,
  .trend-tabs::-webkit-scrollbar {
    display: none;
  }

  .rank-tab,
  .trend-tab {
    flex: 0 0 auto;
    height: 40px;
    padding: 0 14px;
    white-space: nowrap;
  }

  #trend-view .trend-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    width: auto;
    max-width: 100%;
    overflow: hidden;
    padding-bottom: 0;
  }

  #trend-view .trend-tab {
    width: 100%;
    min-width: 0;
    height: 42px;
    padding: 0 6px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #market-view .rank-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    overflow: visible;
    padding-bottom: 0;
  }

  #market-view .rank-tab {
    width: 100%;
    min-width: 0;
    padding: 0 8px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .market-leaderboard-shell {
    padding: 0;
    background: transparent;
  }

  .market-leaderboard {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .market-leaderboard-card {
    gap: 14px;
    padding: 18px 16px 16px;
  }

  .market-leaderboard-main {
    grid-template-columns: minmax(0, 1fr) minmax(126px, 42%);
    gap: 12px;
  }

  .market-rank-badge {
    width: 52px;
    min-width: 52px;
    height: 52px;
    font-size: 26px;
  }

  .market-leaderboard-quote-block,
  .market-leaderboard-summary {
    gap: 16px;
  }

  .market-leaderboard-name strong {
    font-size: 22px;
  }

  .market-leaderboard-name span {
    font-size: 12px;
  }

  .market-leaderboard-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quote-strip,
  .chart-analysis-panel,
  .chart-summary-grid,
  .chart-detail-grid,
  .stock-section-grid,
  .evidence-core-grid,
  .evidence-metric-grid,
  .evidence-mini-lists,
  .stock-stat-grid,
  .ai-analysis-grid,
  .ai-section-list,
  .chart-snapshot-list,
  .archive-page .chart-snapshot-list,
  .watch-chart-metrics,
  .chart-indicators,
  .chart-checklist,
  .chart-ai-price-plan,
  .chart-ai-grid,
  .grid,
  .event-columns,
  .metrics.compact,
  .recommend-card,
  .recommend-reasons,
  .recommend-ai-grid,
  .recommend-chart-summary,
  .recommend-metrics,
  .component-grid,
  .trend-layout,
  .impact-columns,
  .impact-stocks,
  .impact-stock-metrics {
    grid-template-columns: 1fr;
  }

  #chart-view .watch-chart-metrics,
  #chart-view .chart-indicators,
  #chart-view .chart-checklist,
  #chart-view .chart-ai-price-plan {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #chart-view .chart-ai-grid {
    grid-template-columns: 1fr;
  }

  #recommend-view .recommend-metrics,
  #recommend-view .component-grid,
  #recommend-view .recommend-chart-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #recommend-view {
    --recommend-font-title: 28px;
    --recommend-font-section: 17px;
    --recommend-font-body: 13px;
    --recommend-font-meta: 11px;
    --recommend-font-caption: 10px;
    --recommend-font-data: 14px;
    --recommend-font-display: clamp(30px, 9vw, 38px);
  }

  #recommend-view .recommend-body {
    grid-template-columns: 1fr;
  }

  #recommend-view .recommend-ai-grid,
  #recommend-view .recommend-reasons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #recommend-view .recommend-card {
    padding: 14px;
    gap: 14px;
  }

  #recommend-view .recommend-head {
    gap: 10px;
  }

  #recommend-view .recommend-card-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #recommend-view .recommend-ai-button {
    grid-column: 1 / -1;
  }

  #market-view .market-leaderboard-price {
    font-size: clamp(36px, 10vw, 48px);
  }

  #market-view .market-leaderboard-change {
    font-size: clamp(24px, 7vw, 30px);
  }

  #market-view .market-leaderboard-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #market-view .market-leaderboard-strip div {
    min-height: 74px;
    padding: 12px 10px;
  }

  #market-view .market-leaderboard-strip span {
    font-size: 12px;
  }

  #market-view .market-leaderboard-strip strong {
    font-size: 16px;
  }

  #recommend-view .recommend-name strong {
    font-size: 17px;
    line-height: 1.28;
  }

  #recommend-view .recommend-score strong {
    font-size: var(--recommend-font-display);
  }

  #recommend-view .recommend-name span,
  #recommend-view .recommend-rank,
  #recommend-view .recommend-section h4,
  #recommend-view .recommend-chart h4,
  #recommend-view .recommend-chart-notes li,
  #recommend-view .recommend-reasons li {
    font-size: var(--recommend-font-meta);
    line-height: 1.55;
  }

  .stock-quote-card {
    gap: 14px;
    padding: 18px;
  }

  #chart-view {
    --chart-font-title: 28px;
    --chart-font-section: 18px;
    --chart-font-body: 13px;
    --chart-font-meta: 11px;
    --chart-font-caption: 10px;
    --chart-font-data: 15px;
    --chart-font-display: 22px;
  }

  #stock-view {
    --stock-font-title: 30px;
    --stock-font-section: 19px;
    --stock-font-body: 14px;
    --stock-font-meta: 12px;
    --stock-font-caption: 11px;
    --stock-font-data: 16px;
    --stock-font-display: clamp(34px, 12vw, 48px);
  }

  .component-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .recommend-track-metrics,
  .recommend-track-signals,
  .recommend-chart-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .component-grid div {
    padding: 8px 9px;
    min-height: 54px;
  }

  .recommend-chart-summary div {
    padding: 8px 9px;
    min-height: 54px;
  }

  .recommend-track-metrics div,
  .recommend-track-signals div {
    padding: 8px 9px;
  }

  .component-grid span {
    font-size: 11px;
  }

  .recommend-chart-summary span {
    font-size: 11px;
  }

  .recommend-track-metrics span,
  .recommend-track-signals span {
    font-size: 11px;
  }

  .component-grid strong {
    font-size: 14px;
  }

  .recommend-chart-summary strong {
    font-size: 14px;
    line-height: 1.35;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
  }

  .recommend-track-metrics strong,
  .recommend-track-signals strong {
    font-size: 15px;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .recommend-rank-line {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .recommend-top-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .recommend-track-head {
    flex-direction: column;
  }

  .recommend-track-actions {
    width: 100%;
    justify-content: stretch;
  }

  .recommend-track-actions .snapshot-button,
  .recommend-track-actions .snapshot-delete {
    flex: 1 1 0;
    text-align: center;
  }

  .stock-quote-head,
  .stock-price-main {
    align-items: stretch;
    flex-direction: column;
  }

  .stock-action-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
    width: 100%;
  }

  .stock-action-row button {
    width: 100%;
  }

  .stock-price-main > div {
    justify-content: flex-start;
  }

  .stock-quote-card .quote-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stock-section-tabs {
    top: 56px;
    margin-inline: -12px;
    padding-inline: 12px;
  }

  .stock-section-tabs button {
    height: 42px;
    padding: 0 16px;
  }

  .stock-detail-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-inline: 0;
    padding: 0;
  }

  .stock-detail-tabs button {
    padding: 0 8px;
  }

  .stock-summary-cards,
  .stock-stat-grid,
  .evidence-metric-grid,
  .evidence-mini-lists,
  .strategy-level-grid,
  .ai-analysis-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .strategy-level-card.featured {
    grid-column: 1 / -1;
  }

  .ai-analysis-grid section:last-child {
    grid-column: 1 / -1;
  }

  .stock-visual-main h2,
  .strategy-head h2,
  #stock-view .stock-section-card h2,
  #stock-view .chart-detail-grid h2,
  #stock-view .ai-analysis-head h2 {
    font-size: var(--stock-font-section);
  }

  .stock-visual-main p,
  .strategy-head p,
  #stock-view .ai-summary,
  .stock-section-note,
  .evidence-head > span {
    font-size: var(--stock-font-body);
    line-height: 1.6;
  }

  .summary-signal-card,
  .strategy-level-card,
  .stock-stat-grid div,
  .evidence-metric-grid div,
  .evidence-mini-lists > div,
  .ai-analysis-grid section {
    padding: 12px;
  }

  .summary-signal-card strong,
  .evidence-metric-grid dd,
  #stock-view .metrics dd {
    font-size: var(--stock-font-data) !important;
    line-height: 1.4;
  }

  .strategy-level-card:not(.featured) strong {
    font-size: var(--stock-font-data) !important;
    line-height: 1.4;
  }

  .evidence-head {
    align-items: stretch;
    flex-direction: column;
  }

  .evidence-head > span {
    max-width: none;
    text-align: left;
  }

  .stock-evidence-panel .chart-analysis-panel {
    grid-template-columns: 1fr;
  }

  .stock-evidence-panel .chart-score-block {
    padding-right: 0;
    border-right: 0;
  }

  .stock-visual-card {
    grid-template-columns: 1fr;
  }

  .stock-visual-card,
  .stock-strategy-card {
    padding: 16px;
  }

  .stock-visual-main {
    align-items: flex-start;
    flex-direction: column;
  }

  .score-ring {
    width: 96px;
    height: 96px;
    flex-basis: 96px;
  }

  .score-ring small {
    font-size: 10px;
  }

  .score-ring span {
    font-size: 23px;
  }

  .stock-mini-chart {
    min-height: 150px;
  }

  .stock-mini-chart svg {
    height: 130px;
  }

  .strategy-head {
    align-items: stretch;
    flex-direction: column;
  }

  .status-chip {
    max-width: none;
  }

  .strategy-range-chart {
    padding: 12px;
  }

  .strategy-range-track {
    height: 28px;
    margin: 42px 4px 8px;
  }

  .strategy-current {
    top: -39px;
    min-width: 78px;
  }

  .strategy-current b {
    font-size: 11px;
  }

  .strategy-current em {
    font-size: 12px;
  }

  .strategy-current::before {
    top: 32px;
    height: 43px;
  }

  .strategy-current i {
    top: 69px;
    width: 11px;
    height: 11px;
  }

  .stock-section-card.wide {
    grid-column: auto;
  }

  .event-flow {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-right: -2px;
    margin-left: -2px;
    padding-right: 2px;
    padding-left: 2px;
    overflow: hidden;
  }

  .scroll-hint {
    display: none;
  }

  .flow-scroll {
    display: none;
  }

  .flow-mobile {
    display: grid;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 8px 0 16px;
  }

  .flow-mobile-group {
    position: relative;
    display: grid;
    gap: 8px;
    width: 100%;
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: #fff;
  }

  .flow-mobile-group:not(:last-child)::after {
    content: "↓";
    justify-self: center;
    width: 28px;
    height: 24px;
    display: grid;
    place-items: center;
    margin-bottom: -18px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 900;
  }

  .flow-mobile-group h4 {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
  }

  .flow-mobile .flow-node {
    width: 100%;
    min-width: 0;
  }

  .trend-event,
  .trend-event-title,
  .trend-impact,
  .watch-points,
  .event-flow,
  .impact-columns,
  .impact-column,
  .impact-stock,
  .impact-reasons {
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: keep-all;
  }

  .trend-event {
    width: 100%;
    padding: 16px;
    overflow: hidden;
  }

  .trend-event-head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .event-actions {
    justify-content: flex-start;
  }

  .event-schedule {
    align-items: center;
    flex-wrap: nowrap;
  }

  .event-schedule span {
    flex: 0 0 auto;
    height: 28px;
    display: inline-flex;
    align-items: center;
  }

  .trend-impact,
  .watch-points {
    font-size: 13px;
    line-height: 1.55;
  }

  #trend-view .identity h1 {
    font-size: 24px;
    line-height: 1.18;
  }

  #trend-view .identity p {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.55;
  }

  #trend-view .section-title {
    margin-bottom: 10px;
    font-size: 15px;
  }

  #trend-view .trend-summary {
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.6;
  }

  #trend-view .trend-event-title strong {
    font-size: 16px;
    line-height: 1.45;
  }

  #trend-view .event-schedule strong {
    font-size: 15px;
  }

  #trend-view .trend-impact {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.62;
  }

  #trend-view .watch-points {
    gap: 6px;
    font-size: 14px;
    line-height: 1.62;
  }

  #trend-view .tag,
  #trend-view .thread-tag {
    font-size: 12px;
  }

  #trend-view .thread-group-title {
    font-size: 15px;
  }

  #trend-view .thread-item strong {
    font-size: 16px;
    line-height: 1.55;
  }

  #trend-view .thread-meta {
    font-size: 12px;
    line-height: 1.5;
  }

  .trend-event .tag-row {
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .trend-event .tag-row::-webkit-scrollbar {
    display: none;
  }

  .trend-event .tag {
    flex: 0 0 auto;
  }

  .impact-column {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 10px;
    overflow: hidden;
  }

  .impact-column h3 {
    font-size: 15px;
  }

  .impact-stocks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .impact-stock {
    max-width: 100%;
    min-width: 0;
    padding: 10px;
    gap: 8px;
  }

  .impact-stock-head {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    align-items: start;
  }

  .impact-stock-title {
    font-size: 13px;
    line-height: 1.28;
  }

  .impact-stock-score {
    font-size: 11px;
  }

  .impact-watch-button {
    width: 28px;
    height: 28px;
    font-size: 18px;
  }

  .impact-stock-summary {
    font-size: 11px;
    line-height: 1.38;
  }

  .watch-chart-head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .watch-chart-head-aside {
    width: 100%;
    justify-items: stretch;
  }

  .watch-chart-card,
  .chart-snapshot-panel,
  .recommend-history,
  .ranking-panel,
  .panel {
    padding: 14px;
  }

  .watch-chart-visual {
    overflow-x: auto;
  }

  .watch-chart-svg {
    min-width: 620px;
  }

  .watch-chart-score {
    justify-items: start;
  }

  .watch-chart-actions {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .watch-chart-actions .chart-refresh-button,
  .watch-chart-actions .chart-ai-button,
  .watch-chart-actions .chart-save-button {
    width: 100%;
    min-width: 0;
  }

  .chart-ai-head {
    align-items: stretch;
    flex-direction: column;
  }

  .chart-ai-decision {
    width: max-content;
  }

  .ai-analysis-head {
    display: grid;
  }

  .ai-analysis-head strong {
    max-width: none;
    text-align: left;
  }

  .panel.wide {
    grid-column: span 1;
  }

  .ranking-panel {
    overflow-x: auto;
  }

  .ranking-table {
    min-width: 760px;
  }

  #market-view .ranking-panel {
    width: 100%;
    max-width: 100%;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  #market-view .ranking-table {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border-collapse: separate;
  }

  #market-view .ranking-table thead {
    display: none;
  }

  #market-view .ranking-table tbody {
    display: grid;
    gap: 12px;
    width: 100%;
    max-width: 100%;
  }

  #market-view .ranking-table tr {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px 12px;
    width: 100%;
    max-width: 100%;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-card);
  }

  #market-view .ranking-table tr.ranking-message-row {
    display: block;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  #market-view .ranking-table td {
    width: auto;
    min-width: 0;
    max-width: 100%;
    display: grid;
    gap: 3px;
    padding: 0;
    border: 0;
    text-align: left;
    white-space: normal;
    font-size: 14px;
    line-height: 1.35;
  }

  #market-view .ranking-table tr.ranking-message-row td {
    position: static;
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    text-align: center;
  }

  #market-view .ranking-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
  }

  #market-view .ranking-table tr.ranking-message-row td::before {
    content: none;
  }

  #market-view .ranking-table td:nth-child(1) {
    position: absolute;
    top: 14px;
    right: 14px;
    width: auto;
    min-width: 34px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 13px;
    font-weight: 900;
  }

  #market-view .ranking-table td:nth-child(1)::before,
  #market-view .ranking-table td:nth-child(2)::before {
    content: none;
  }

  #market-view .ranking-table td:nth-child(2) {
    grid-column: 1 / -1;
    padding-right: 48px;
  }

  #market-view .ranking-table td:nth-child(3),
  #market-view .ranking-table td:nth-child(4) {
    grid-column: 1 / -1;
    padding: 12px;
    border-radius: var(--radius-sm);
    background: #fafafa;
  }

  #market-view .ranking-table td:nth-child(3) {
    color: var(--text);
    font-size: 22px;
    font-weight: 900;
  }

  #market-view .ranking-table td:nth-child(4) {
    color: var(--text);
    font-size: 18px;
    font-weight: 900;
  }

  #market-view .ranking-table td:nth-child(7) {
    grid-column: 1 / -1;
  }

  #market-view .ranking-table .rank-name {
    gap: 3px;
  }

  #market-view .ranking-table .rank-name strong {
    color: var(--text);
    font-size: 18px;
  }

  #market-view .ranking-table .rank-name span {
    color: var(--muted);
    font-size: 12px;
  }

  #market-view .market-leaderboard-table tr.market-leaderboard-row {
    display: block;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  #market-view .market-leaderboard-table tr.market-leaderboard-row td {
    position: static;
    display: block;
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 0;
    padding: 0;
    top: auto;
    right: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    place-items: normal;
    text-align: left;
  }

  #market-view .market-leaderboard-table tr.market-leaderboard-row td::before {
    content: none;
  }

  #watchlist-view .ranking-panel {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  #watchlist-view .watch-table {
    display: block;
    width: 100%;
    min-width: 0;
    border-collapse: separate;
  }

  #watchlist-view .watch-table thead {
    display: none;
  }

  #watchlist-view .watch-table tbody {
    display: grid;
    gap: 12px;
  }

  #watchlist-view .watch-table tr {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-card);
  }

  #watchlist-view .watch-table td {
    width: auto;
    min-width: 0;
    height: auto;
    display: grid;
    gap: 3px;
    padding: 0;
    border: 0;
    text-align: left;
    white-space: normal;
    font-size: 14px;
    line-height: 1.35;
  }

  #watchlist-view .watch-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
  }

  #watchlist-view .watch-table td:nth-child(1) {
    grid-column: 1 / -1;
    padding-right: 58px;
  }

  #watchlist-view .watch-table td:nth-child(1)::before,
  #watchlist-view .watch-table td:nth-child(11)::before {
    content: none;
  }

  #watchlist-view .watch-table td:nth-child(2) {
    grid-column: 1 / -1;
    padding: 12px;
    border-radius: var(--radius-sm);
    background: #fafafa;
  }

  #watchlist-view .watch-table td:nth-child(2) {
    color: var(--text);
    font-size: 24px;
    font-weight: 900;
    text-align: left;
  }

  #watchlist-view .watch-table td:nth-child(8),
  #watchlist-view .watch-table td:nth-child(9) {
    grid-column: 1 / -1;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: #fafafa;
  }

  #watchlist-view .watch-table td:nth-child(10) {
    grid-column: 1 / 2;
  }

  #watchlist-view .watch-table td:nth-child(11) {
    position: absolute;
    top: 14px;
    right: 14px;
    display: block;
    width: auto;
  }

  #watchlist-view .watch-table .rank-name {
    gap: 3px;
  }

  #watchlist-view .watch-table .rank-name strong {
    color: var(--text);
    font-size: 18px;
  }

  #watchlist-view .watch-table .rank-name span {
    color: var(--muted);
    font-size: 12px;
  }

  #watchlist-view .watch-table .remove-watch {
    height: 30px;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    background: #fff;
  }

  .watchlist-card-list {
    grid-template-columns: 1fr;
  }

  .watch-stock-card {
    gap: 14px;
    padding: 18px 16px;
  }

  .watch-stock-head {
    align-items: flex-start;
  }

  .watch-stock-name strong {
    font-size: 18px;
  }

  .watch-stock-card .remove-watch {
    height: 36px;
    padding: 0 11px;
    font-size: 12px;
  }

  .watch-stock-price-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .watch-stock-price {
    font-size: clamp(34px, 9vw, 40px);
  }

  .watch-stock-card .market-chip {
    margin-bottom: 8px;
  }

  .watch-stock-change {
    margin-top: 0;
    font-size: 22px;
  }

  .watch-quote-strip,
  .watch-insight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .watch-preopen-point {
    padding: 16px;
  }

  .watch-preopen-point summary strong {
    font-size: 17px;
  }

  .watch-preopen-point ul {
    font-size: 14px;
    line-height: 1.6;
  }

  .watch-quote-strip div {
    min-height: 62px;
    padding: 11px;
  }

  .watch-quote-strip strong {
    font-size: 18px;
    line-height: 1.2;
  }

  .watch-insight-card strong {
    font-size: 16px;
  }

  .watch-chart-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 15px 16px;
  }

  .watch-chart-row-main {
    gap: 6px;
  }

  .watch-chart-row-main strong {
    font-size: var(--chart-font-section);
  }

  .watch-chart-row-price {
    font-size: clamp(18px, 5vw, 22px);
  }

  .watch-chart-row-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    justify-items: start;
    width: 100%;
    min-width: 0;
    gap: 8px;
  }

  .watch-chart-score-badge {
    justify-items: start;
  }

  .watch-chart-score-badge strong {
    font-size: var(--chart-font-display);
  }

  .watch-chart-stance-badge {
    justify-self: end;
    min-height: 28px;
    padding: 0 11px;
    font-size: var(--chart-font-caption);
  }

  .watch-chart-name {
    font-size: var(--chart-font-section);
  }

  .watch-chart-head span {
    font-size: var(--chart-font-meta);
  }

  .watch-chart-score strong {
    font-size: var(--chart-font-display);
  }

  .chart-detail-back {
    min-width: 42px;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    font-size: 22px;
  }

  .watch-table {
    min-width: 0;
  }
}

@media (max-width: 720px) {
  #trend-view {
    --impact-title-size: 18px;
    --impact-card-title-size: 17px;
    --impact-body-size: 14px;
    --impact-meta-size: 12px;
    --impact-number-size: 16px;
  }

  .market-impact-hero {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .market-impact-orbit {
    min-height: 330px;
  }

  .market-impact-center {
    width: 140px;
    min-height: 78px;
    border-radius: 16px;
  }

  .market-impact-center strong {
    font-size: var(--impact-title-size, 18px);
  }

  .market-impact-node {
    width: 92px;
  }

  .market-impact-node.slot-2 {
    left: 0;
  }

  .market-impact-node.slot-3 {
    right: 0;
  }

  .market-impact-node.slot-4 {
    left: 12%;
  }

  .market-impact-node.slot-5 {
    right: 12%;
  }

  .market-impact-node strong {
    font-size: var(--impact-number-size, 16px);
  }

  .market-impact-node-label,
  .market-impact-node em {
    font-size: 11px;
  }

  .market-impact-copy h2 {
    font-size: var(--impact-title-size, 18px);
  }

  .market-impact-flow-title {
    display: grid;
    justify-content: stretch;
  }

  .market-impact-flow-grid,
  .market-impact-details {
    grid-template-columns: 1fr;
  }

  .market-impact-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-impact-detail-head {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .market-impact-detail-head em {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .market-impact-copy p,
  .market-impact-detail p,
  .market-impact-reasons {
    font-size: 14px;
    line-height: 1.6;
  }

  .market-impact-flow-grid strong,
  .market-impact-detail-head strong {
    font-size: 16px;
  }

  .market-impact-stock-tags a,
  .market-impact-stock-tags span {
    font-size: 12px;
  }
}

/* Pin portfolio 5.0: stock-detail hierarchy for saved recommendation monitoring. */
body:not([data-view="stock"]) #portfolio-tracking-panel > #recommend-history-view {
  width: 100%;
  min-width: 0;
  overflow: clip;
  background: var(--app-v3-bg, #f4f5f7);
}

body:not([data-view="stock"]) #recommend-history-view > .app-section-heading {
  padding: 22px 24px 18px;
  border: 0;
  border-bottom: 1px solid var(--app-v3-line, #e3e6ea);
  border-radius: 0;
  background: #ffffff;
}

body:not([data-view="stock"]) #recommend-history-view > .app-section-heading span,
body:not([data-view="stock"]) #recommend-history-view > .app-section-heading p {
  color: var(--app-v3-muted, #8a929e);
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
}

body:not([data-view="stock"]) #recommend-history-view > .app-section-heading h2 {
  margin: 3px 0 4px;
  color: var(--app-v3-text, #17191d);
  font-size: 24px !important;
  font-weight: 750 !important;
  line-height: 1.3 !important;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-history.archive-page {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body:not([data-view="stock"]) #recommend-history-view #recommend-history-list {
  display: grid;
  gap: 10px;
  padding: 10px 0 24px;
  background: var(--app-v3-bg, #f4f5f7);
}

body:not([data-view="stock"]) #recommend-history-view #recommend-history-list > .muted {
  margin: 0;
  padding: 28px 24px;
  border: 0;
  background: #ffffff;
  color: var(--app-v3-muted, #6f7782);
  font-size: 14px;
  line-height: 1.65;
}

body:not([data-view="stock"]) #recommend-history-view #recommend-history-list > .recommend-track-card {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #ffffff;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-head {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 18px;
  border: 0;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-stock-link {
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-title {
  display: grid;
  gap: 4px;
  min-width: 0;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-title strong {
  overflow: hidden;
  color: var(--app-v3-text, #17191d);
  font-size: 23px !important;
  font-weight: 750 !important;
  line-height: 1.25 !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-title span {
  color: var(--app-v3-muted, #8a929e);
  font-size: 13px !important;
  font-weight: 550 !important;
  line-height: 1.4 !important;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-pin-state {
  flex: 0 0 auto;
  padding-top: 3px;
  color: #e3263f;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0 24px;
  overflow: hidden;
  border: 1px solid var(--app-v3-line, #e3e6ea);
  border-radius: 8px;
  background: #ffffff;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-metrics > div {
  display: grid;
  min-width: 0;
  min-height: 72px;
  align-content: center;
  gap: 5px;
  padding: 13px 16px;
  border: 0;
  border-right: 1px solid var(--app-v3-line, #e3e6ea);
  border-bottom: 1px solid var(--app-v3-line, #e3e6ea);
  border-radius: 0;
  background: #ffffff;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-metrics > div:nth-child(even) {
  border-right: 0;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-metrics > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-metrics dt {
  color: var(--app-v3-muted, #8a929e);
  font-size: 12px !important;
  font-weight: 550 !important;
  line-height: 1.35 !important;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-metrics dd {
  margin: 0;
  overflow: hidden;
  color: var(--app-v3-text, #17191d);
  font-size: 17px !important;
  font-weight: 750 !important;
  line-height: 1.3 !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-metrics dd.positive {
  color: #d9233f;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-metrics dd.negative {
  color: #1769d2;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 24px 0;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-actions :is(a, button) {
  display: inline-flex;
  min-width: 0;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #15171a;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-stock-action {
  background: #15171a;
  color: #ffffff;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-remove {
  position: static;
  width: auto;
  min-width: 0;
  background: #ffffff;
  color: #15171a;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-detail-toggle {
  display: flex;
  width: calc(100% - 48px);
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  margin: 18px 24px 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--app-v3-line, #e3e6ea);
  border-radius: 0;
  background: #ffffff;
  color: var(--app-v3-text, #17191d);
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-detail-toggle-icon {
  color: var(--app-v3-muted, #8a929e);
  font-size: 19px;
  font-weight: 600;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-detail {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 8px solid var(--app-v3-bg, #f4f5f7);
  background: #ffffff;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-detail[hidden] {
  display: none;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-saved-info,
body:not([data-view="stock"]) #recommend-history-view .recommend-track-summary {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 22px 24px;
  border: 0;
  border-bottom: 1px solid var(--app-v3-line, #e3e6ea);
  background: #ffffff;
}

body:not([data-view="stock"]) #recommend-history-view :is(
  .recommend-track-saved-info,
  .recommend-track-summary
) h3 {
  margin: 0;
  color: var(--app-v3-text, #17191d);
  font-size: 17px !important;
  font-weight: 750 !important;
  line-height: 1.4 !important;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-signals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--app-v3-line, #e3e6ea);
  border-radius: 8px;
  background: #ffffff;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-signals > div {
  display: grid;
  min-width: 0;
  min-height: 66px;
  align-content: center;
  gap: 4px;
  padding: 12px 14px;
  border: 0;
  border-right: 1px solid var(--app-v3-line, #e3e6ea);
  border-bottom: 1px solid var(--app-v3-line, #e3e6ea);
  background: #ffffff;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-signals > div:nth-child(even) {
  border-right: 0;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-signals > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-signals dt {
  color: var(--app-v3-muted, #8a929e);
  font-size: 12px !important;
  font-weight: 550 !important;
  line-height: 1.35 !important;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-signals dd {
  margin: 0;
  color: var(--app-v3-text, #17191d);
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-summary p,
body:not([data-view="stock"]) #recommend-history-view .recommend-track-points {
  margin: 0;
  color: #313741;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.65 !important;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-points {
  display: grid;
  gap: 10px;
  padding-left: 20px;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-points li::marker {
  color: #3182f6;
}

@media (max-width: 720px) {
  body:not([data-view="stock"]) #recommend-history-view > .app-section-heading {
    padding: 20px 18px 16px;
  }

  body:not([data-view="stock"]) #recommend-history-view #recommend-history-list {
    gap: 8px;
    padding-top: 8px;
  }

  body:not([data-view="stock"]) #recommend-history-view .recommend-track-head {
    padding: 20px 18px 16px;
  }

  body:not([data-view="stock"]) #recommend-history-view .recommend-track-title strong {
    font-size: 21px !important;
  }

  body:not([data-view="stock"]) #recommend-history-view .recommend-track-metrics {
    margin: 0 18px;
  }

  body:not([data-view="stock"]) #recommend-history-view .recommend-track-metrics > div {
    min-height: 68px;
    padding: 12px;
  }

  body:not([data-view="stock"]) #recommend-history-view .recommend-track-metrics dd {
    font-size: 16px !important;
  }

  body:not([data-view="stock"]) #recommend-history-view .recommend-track-actions {
    margin: 16px 18px 0;
  }

  body:not([data-view="stock"]) #recommend-history-view .recommend-track-detail-toggle {
    width: calc(100% - 36px);
    margin: 16px 18px 0;
  }

  body:not([data-view="stock"]) #recommend-history-view .recommend-track-saved-info,
  body:not([data-view="stock"]) #recommend-history-view .recommend-track-summary {
    padding: 20px 18px;
  }
}

/* Portfolio 4.9: separate AI strategy from stock news without stacking both feeds. */
body:not([data-view="stock"]) #portfolio-watchlist-panel {
  min-width: 0;
  gap: 0;
}

body:not([data-view="stock"]) .watchlist-content-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin: 16px 24px 8px;
  padding: 4px;
  border: 0;
  border-radius: 8px;
  background: #eef1f5;
}

body:not([data-view="stock"]) .watchlist-content-tabs button {
  min-width: 0;
  min-height: 48px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #8b929d;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
}

body:not([data-view="stock"]) .watchlist-content-tabs button.active {
  background: #ffffff;
  color: var(--app-v3-text);
  box-shadow: 0 1px 4px rgba(17, 24, 39, 0.08);
}

body:not([data-view="stock"]) .watchlist-content-tabs button:focus-visible {
  outline: 0;
  box-shadow: 0 1px 4px rgba(17, 24, 39, 0.08), 0 0 0 2px rgba(17, 24, 39, 0.08);
}

body:not([data-view="stock"]) .watchlist-content-panel {
  min-width: 0;
}

body:not([data-view="stock"]) .watchlist-content-panel[hidden] {
  display: none !important;
}

body:not([data-view="stock"]) #watchlist-news-panel .portfolio-news-panel {
  margin: 0;
}

@media (max-width: 720px) {
  body:not([data-view="stock"]) .watchlist-content-tabs {
    margin: 14px 20px 8px;
  }

  body:not([data-view="stock"]) .watchlist-content-tabs button {
    min-height: 48px;
    font-size: 15px;
  }
}

/* Tracked recommendations use the same flat section language as stock detail. */
body:not([data-view="stock"]) #portfolio-tracking-panel > #recommend-history-view {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body:not([data-view="stock"]) #recommend-history-view > .app-section-heading {
  width: 100%;
  padding: 24px 26px 20px;
  border: 1px solid var(--app-v3-line);
  border-bottom: 8px solid var(--app-v3-bg);
  border-radius: 8px 8px 0 0;
  background: #ffffff;
  box-sizing: border-box;
}

body:not([data-view="stock"]) #recommend-history-view > .app-section-heading h2 {
  color: var(--app-v3-text);
  font-size: 22px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-history.archive-page {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body:not([data-view="stock"]) #recommend-history-list {
  width: 100%;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  background: var(--app-v3-bg);
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-card {
  width: 100%;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 22px 24px 0;
  overflow: hidden;
  border: 1px solid var(--app-v3-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--app-v3-text);
  box-shadow: none;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-stock-link {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-title {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-title strong {
  min-width: 0;
  overflow: hidden;
  color: var(--app-v3-text);
  font-size: 20px !important;
  font-weight: 750 !important;
  line-height: 1.3 !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-title span,
body:not([data-view="stock"]) #recommend-history-view .recommend-track-open-label {
  flex: 0 0 auto;
  color: var(--app-v3-muted);
  font-size: 12px !important;
  font-weight: 550 !important;
  line-height: 1.4 !important;
  white-space: nowrap;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-open-label {
  font-weight: 650 !important;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-remove {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--app-v3-red);
  cursor: pointer;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-remove:hover,
body:not([data-view="stock"]) #recommend-history-view .recommend-track-remove:focus-visible {
  background: #fff1f2;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-metrics,
body:not([data-view="stock"]) #recommend-history-view .recommend-track-signals {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-top: 1px solid var(--app-v3-line);
  border-radius: 0;
  background: #ffffff;
}

body:not([data-view="stock"]) #recommend-history-view :is(
  .recommend-track-metrics,
  .recommend-track-signals
) > div {
  min-width: 0;
  min-height: 64px;
  display: grid;
  align-content: center;
  gap: 4px;
  margin: 0;
  padding: 11px 12px 10px 0;
  border: 0;
  border-right: 1px solid var(--app-v3-line);
  border-bottom: 1px solid var(--app-v3-line);
  border-radius: 0;
  background: #ffffff;
}

body:not([data-view="stock"]) #recommend-history-view :is(
  .recommend-track-metrics,
  .recommend-track-signals
) > div:nth-child(even) {
  padding-right: 0;
  padding-left: 14px;
  border-right: 0;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-signals > div:last-child {
  grid-column: 1 / -1;
  padding-right: 0;
  border-right: 0;
}

body:not([data-view="stock"]) #recommend-history-view :is(
  .recommend-track-metrics,
  .recommend-track-signals
) :is(dt, dd) {
  min-width: 0;
  margin: 0;
}

body:not([data-view="stock"]) #recommend-history-view :is(
  .recommend-track-metrics,
  .recommend-track-signals
) dt {
  color: var(--app-v3-muted);
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
}

body:not([data-view="stock"]) #recommend-history-view :is(
  .recommend-track-metrics,
  .recommend-track-signals
) dd {
  overflow-wrap: anywhere;
  color: var(--app-v3-text);
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  text-align: left;
  font-variant-numeric: tabular-nums;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-metrics dd.positive {
  color: var(--app-v3-red) !important;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-metrics dd.negative {
  color: var(--app-v3-blue) !important;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-detail-toggle {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--app-v3-line);
  border-radius: 0;
  background: #ffffff;
  color: #4d5560;
  cursor: pointer;
  text-align: left;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-detail-toggle-label {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-detail-toggle-icon {
  flex: 0 0 auto;
  color: var(--app-v3-muted);
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-detail {
  display: grid;
  gap: 0;
  margin: 0;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-detail[hidden] {
  display: none;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-saved-info,
body:not([data-view="stock"]) #recommend-history-view .recommend-track-summary {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 20px 0;
  border-bottom: 1px solid var(--app-v3-line);
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-saved-info h3,
body:not([data-view="stock"]) #recommend-history-view .recommend-track-summary h3 {
  margin: 0;
  color: var(--app-v3-text);
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-summary p,
body:not([data-view="stock"]) #recommend-history-view .recommend-track-points {
  margin: 0;
  color: #3d444e;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.65 !important;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-points {
  display: grid;
  gap: 8px;
  padding-left: 20px;
}

@media (max-width: 720px) {
  body:not([data-view="stock"]) #recommend-history-view > .app-section-heading {
    padding: 22px 20px 18px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  body:not([data-view="stock"]) #recommend-history-view .recommend-track-card {
    padding: 22px 20px 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0 !important;
  }

  body:not([data-view="stock"]) #recommend-history-view .recommend-track-title {
    display: grid;
    gap: 2px;
  }

  body:not([data-view="stock"]) #recommend-history-view .recommend-track-title strong {
    font-size: 20px !important;
  }

  body:not([data-view="stock"]) #recommend-history-view .recommend-track-open-label {
    display: none;
  }

  body:not([data-view="stock"]) #recommend-history-view :is(
    .recommend-track-metrics,
    .recommend-track-signals
  ) > div {
    min-height: 62px;
  }
}

/* Market impact 4.8: borderless signal distribution. */
body:not([data-view="stock"]) #trend-impact-content .market-impact-hero {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  gap: 30px 48px;
  align-items: start;
  padding: 28px 0 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: #ffffff;
  box-shadow: none !important;
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-overview {
  display: grid;
  gap: 28px;
  min-width: 0;
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-status {
  display: grid;
  gap: 10px;
  min-width: 0;
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-status-top,
body:not([data-view="stock"]) #trend-impact-content .market-impact-balance-labels,
body:not([data-view="stock"]) #trend-impact-content .market-impact-factor-map-head,
body:not([data-view="stock"]) #trend-impact-content .market-impact-factor-head,
body:not([data-view="stock"]) #trend-impact-content .market-impact-factor-name,
body:not([data-view="stock"]) #trend-impact-content .market-impact-factor-value {
  display: flex;
  align-items: center;
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-status-top,
body:not([data-view="stock"]) #trend-impact-content .market-impact-balance-labels,
body:not([data-view="stock"]) #trend-impact-content .market-impact-factor-map-head,
body:not([data-view="stock"]) #trend-impact-content .market-impact-factor-head {
  justify-content: space-between;
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-status-top {
  gap: 16px;
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-status-top time {
  color: var(--app-v3-muted);
  font-size: var(--app-type-caption);
  font-weight: var(--app-weight-caption);
  line-height: 1.55;
  white-space: nowrap;
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-status > strong {
  color: var(--app-v3-text);
  font-size: 36px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-status.good > strong {
  color: var(--positive);
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-status.bad > strong {
  color: var(--negative);
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-balance {
  display: grid;
  gap: 10px;
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-balance-labels {
  gap: 16px;
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-balance-labels span {
  font-size: var(--app-type-label);
  font-weight: 700;
  line-height: 1.4;
}

body:not([data-view="stock"]) #trend-impact-content :is(
  .market-impact-balance-labels .good,
  .market-impact-factor-value .good
) {
  color: var(--positive);
}

body:not([data-view="stock"]) #trend-impact-content :is(
  .market-impact-balance-labels .bad,
  .market-impact-factor-value .bad
) {
  color: var(--negative);
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-balance-track {
  display: flex;
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf0f4;
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-balance-track > span {
  width: var(--balance-width, 0%);
  height: 100%;
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-balance-track > .good {
  background: var(--positive);
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-balance-track > .bad {
  background: var(--negative);
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-factor-map {
  display: grid;
  gap: 20px;
  min-width: 0;
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-factor-map-head {
  gap: 20px;
  min-width: 0;
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-factor-map-head > strong {
  color: var(--app-v3-text);
  font-size: var(--app-type-list);
  font-weight: 700;
  line-height: 1.4;
  text-align: right;
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-factor-list {
  display: grid;
  gap: 16px;
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-factor-row {
  display: grid;
  gap: 8px;
  min-width: 0;
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-factor-head {
  gap: 16px;
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-factor-name {
  min-width: 0;
  gap: 10px;
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-factor-rank {
  width: 20px;
  flex: 0 0 20px;
  color: #b0b6bf;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-factor-name > strong {
  overflow: hidden;
  color: #555d69;
  font-size: var(--app-type-list);
  font-weight: 650;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-factor-row.is-leading .market-impact-factor-name > strong {
  color: var(--app-v3-text);
  font-weight: 800;
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-factor-value {
  flex: 0 0 auto;
  gap: 10px;
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-factor-value > strong {
  min-width: 54px;
  color: var(--app-v3-text);
  font-size: var(--app-type-metric);
  font-weight: 800;
  line-height: 1.2;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-factor-value > span {
  min-width: 26px;
  font-size: var(--app-type-label);
  font-weight: 700;
  line-height: 1.35;
  text-align: right;
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-factor-track {
  height: 6px;
  margin-left: 30px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf0f4;
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-factor-row.is-leading .market-impact-factor-track {
  height: 9px;
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-factor-fill {
  display: block;
  width: var(--factor-width, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--negative);
  transition: width 240ms ease;
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-factor-row.good .market-impact-factor-fill {
  background: var(--positive);
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-copy {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border: 0;
  border-radius: 8px;
  background: #f5f7f9;
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-copy h2 {
  max-width: 760px;
  color: var(--app-v3-text);
  font-size: var(--app-type-section) !important;
  font-weight: 750 !important;
  line-height: 1.5 !important;
  word-break: keep-all;
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-copy p {
  margin: 2px 0 0;
}

@media (max-width: 720px) {
  body:not([data-view="stock"]) #trend-impact-content .market-impact-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    padding: 22px 0 0;
  }

  body:not([data-view="stock"]) #trend-impact-content .market-impact-overview {
    gap: 22px;
  }

  body:not([data-view="stock"]) #trend-impact-content .market-impact-status > strong {
    font-size: 30px;
  }

  body:not([data-view="stock"]) #trend-impact-content .market-impact-factor-map {
    gap: 18px;
  }

  body:not([data-view="stock"]) #trend-impact-content .market-impact-factor-list {
    gap: 15px;
  }

  body:not([data-view="stock"]) #trend-impact-content .market-impact-copy {
    padding: 17px 18px;
  }
}

@media (max-width: 430px) {
  body:not([data-view="stock"]) #trend-impact-content .market-impact-status-top {
    align-items: flex-start;
  }

  body:not([data-view="stock"]) #trend-impact-content .market-impact-factor-map-head {
    align-items: flex-start;
  }

  body:not([data-view="stock"]) #trend-impact-content .market-impact-factor-map-head > strong {
    max-width: 58%;
  }

  body:not([data-view="stock"]) #trend-impact-content .market-impact-factor-name {
    gap: 8px;
  }

  body:not([data-view="stock"]) #trend-impact-content .market-impact-factor-track {
    margin-left: 28px;
  }
}

/* Home market indices 3.7 */
body:not([data-view="stock"]) .home-market-indices {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--app-v3-line);
  border-radius: 8px;
  background: #f3f4f6;
}

body:not([data-view="stock"]) .home-index-card {
  min-width: 0;
  min-height: 178px;
  display: grid;
  grid-template-rows: auto auto minmax(58px, 1fr) auto;
  gap: 5px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid var(--app-v3-line);
  border-radius: 8px;
  background: #ffffff;
  color: #6377a5;
  box-shadow: none;
}

body:not([data-view="stock"]) .home-index-card.positive {
  color: var(--app-v3-red) !important;
}

body:not([data-view="stock"]) .home-index-card.negative {
  color: var(--app-v3-blue) !important;
}

body:not([data-view="stock"]) .home-index-card > header {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

body:not([data-view="stock"]) .home-index-card h2 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--app-v3-text);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not([data-view="stock"]) .home-index-session {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 6px;
  background: #eef0f3;
  color: #747b86;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

body:not([data-view="stock"]) .home-index-session.is-realtime {
  background: #eaf8f0;
  color: #16824b;
}

body:not([data-view="stock"]) .home-index-previous {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--app-v3-muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not([data-view="stock"]) .home-index-previous strong {
  color: #4a5059;
  font-size: inherit;
  font-weight: 650;
}

body:not([data-view="stock"]) .home-index-chart {
  min-width: 0;
  min-height: 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

body:not([data-view="stock"]) .home-index-chart svg {
  width: 100%;
  height: 100%;
  min-height: 58px;
  overflow: visible;
}

body:not([data-view="stock"]) .home-index-line {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

body:not([data-view="stock"]) .home-index-point {
  fill: currentColor;
  stroke: #ffffff;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

body:not([data-view="stock"]) .home-index-chart > span {
  color: var(--app-v3-muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
}

body:not([data-view="stock"]) .home-index-card > footer {
  min-width: 0;
  display: grid;
  gap: 5px;
}

body:not([data-view="stock"]) .home-index-card > footer > div {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

body:not([data-view="stock"]) .home-index-card > footer strong {
  min-width: 0;
  color: var(--app-v3-text);
  font-size: 21px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  letter-spacing: 0;
}

body:not([data-view="stock"]) .home-index-card > footer span {
  flex: 0 1 auto;
  color: currentColor;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
  text-align: right;
}

body:not([data-view="stock"]) .home-index-shared-asof {
  grid-column: 1 / -1;
  margin: -2px 2px 0;
  color: var(--app-v3-muted);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
  text-align: right;
}

body:not([data-view="stock"]) .home-index-card.is-loading .home-index-chart {
  opacity: 0.72;
}

@media (max-width: 720px) {
  body:not([data-view="stock"]) .home-market-indices {
    width: 100%;
    gap: 7px;
    padding: 9px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  body:not([data-view="stock"]) .home-index-card {
    min-height: 154px;
    grid-template-rows: auto auto 48px auto;
    gap: 4px;
    padding: 11px 10px;
  }

  body:not([data-view="stock"]) .home-index-card h2 {
    font-size: 16px;
  }

  body:not([data-view="stock"]) .home-index-session {
    padding: 4px 6px;
    font-size: 9px;
  }

  body:not([data-view="stock"]) .home-index-chart,
  body:not([data-view="stock"]) .home-index-chart svg {
    min-height: 48px;
  }

  body:not([data-view="stock"]) .home-index-card > footer > div {
    display: grid;
    justify-items: start;
    gap: 3px;
  }

  body:not([data-view="stock"]) .home-index-card > footer strong {
    font-size: 18px;
  }

  body:not([data-view="stock"]) .home-index-card > footer span {
    font-size: 10px;
    text-align: left;
  }
}

@media (max-width: 360px) {
  body:not([data-view="stock"]) .home-market-indices {
    gap: 6px;
    padding: 8px;
  }

  body:not([data-view="stock"]) .home-index-card {
    min-height: 146px;
    padding: 10px 8px;
  }

  body:not([data-view="stock"]) .home-index-card h2 {
    font-size: 16px;
  }

  body:not([data-view="stock"]) .home-index-card > footer strong {
    font-size: 17px;
  }
}

@media (max-width: 480px) {
  .login-card h1 {
    font-size: 28px;
  }

  .login-card p {
    font-size: 14px;
  }

  .term-help::after {
    width: min(220px, calc(100vw - 130px));
  }

  #market-view .topbar,
  #market-view .ranking-panel {
    width: 100%;
    max-width: 100%;
  }

  #market-view .rank-tabs {
    width: 100%;
    max-width: 100%;
  }
}

@keyframes pull-refresh-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Shared dashboard typeface. Semantic sizes are assigned by component below. */
body,
body * {
  font-family:
    "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR",
    sans-serif !important;
  letter-spacing: 0 !important;
}

#market-view,
#recommend-view,
#trend-view,
#watchlist-view,
#stock-view,
#chart-view,
#chart-history-view {
  --market-title-size: var(--type-title) !important;
  --market-name-size: var(--type-body) !important;
  --market-price-size: var(--type-title) !important;
  --market-change-size: var(--type-title) !important;
  --market-meta-size: var(--type-caption) !important;
  --market-label-size: var(--type-caption) !important;
  --market-value-size: var(--type-body) !important;
  --recommend-font-title: var(--type-title) !important;
  --trend-title-size: var(--type-title) !important;
  --trend-card-title-size: var(--type-body) !important;
  --trend-section-size: var(--type-body) !important;
  --trend-body-size: var(--type-body) !important;
  --trend-meta-size: var(--type-caption) !important;
  --trend-chip-size: var(--type-caption) !important;
  --impact-title-size: var(--type-title) !important;
  --impact-card-title-size: var(--type-body) !important;
  --impact-number-size: var(--type-title) !important;
  --impact-meta-size: var(--type-caption) !important;
  --watch-font-title: var(--type-title) !important;
  --stock-font-title: var(--type-title) !important;
  --stock-font-section: var(--type-title) !important;
  --stock-font-body: var(--type-body) !important;
  --stock-font-meta: var(--type-caption) !important;
  --stock-font-caption: var(--type-caption) !important;
  --stock-font-data: var(--type-body) !important;
  --stock-font-display: var(--type-title) !important;
  --chart-font-title: var(--type-title) !important;
}

body :is(
  h1,
  h2,
  .login-card h1,
  .identity h1,
  .section-title,
  #stock-name,
  #trend-title,
  #trend-events-title,
  #quote-price,
  .stock-price-main > strong,
  .stock-visual-main h2,
  .stock-section-card h2,
  .chart-detail-grid h2,
  .ai-analysis-head h2,
  .recommend-score strong,
  .market-leaderboard-price,
  .market-leaderboard-change,
  .market-impact-center strong,
  .market-impact-copy h2,
  .chart-score-block strong
) {
  font-size: var(--type-title) !important;
}

body :is(
  small,
  figcaption,
  th,
  dt,
  .section-eyebrow,
  .stock-term-label,
  .recommend-term-label,
  .term-help,
  .login-card p,
  .login-status,
  .mobile-brand span,
  .side-menu-label,
  .watch-identity-label,
  .watch-identity p,
  .side-footer-label,
  .suggestion-meta,
  .market-leaderboard-name span,
  .market-leaderboard-strip span,
  .recommend-rank,
  .recommend-name span,
  .recommend-score span,
  .recommend-metrics span,
  .recommend-us-sector h3,
  .recommend-us-sector .muted,
  .recommend-us-sector-chips em,
  .recommend-chart-summary span,
  .recommend-track-title span,
  .recommend-track-metrics span,
  .recommend-track-signals span,
  .trend-summary,
  .trend-event-title span,
  .thread-meta,
  .tag,
  .thread-tag,
  .leader-stock-tag,
  .impact-stock-head span,
  .market-impact-node-label,
  .market-impact-node em,
  .market-impact-detail-head em,
  .market-impact-stock-tags a,
  .market-impact-stock-tags span,
  .stock-card-name,
  .stock-live-badge,
  .market-chip,
  .stock-pre-market,
  .stock-confidence-help,
  .stock-section-note,
  .quote-strip span,
  .chart-summary-grid span,
  .chart-score-block > span,
  .ai-analysis-grid h3,
  .ai-section h3,
  .summary-signal-card span,
  .strategy-level-card span,
  .strategy-level-card em,
  .watch-chart-metrics span,
  .chart-indicators span,
  .chart-checklist span,
  .status-chip,
  .rank-name span,
  .watch-table .rank-name span
) {
  font-size: var(--type-caption) !important;
}

body .ranking-table td::before,
body .watch-table td::before {
  font-size: var(--type-caption) !important;
}

#stock-view .stock-stat-grid > div {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr);
  align-items: start;
  justify-items: start;
  gap: 8px;
  text-align: left;
}

#stock-view .stock-stat-grid dt {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-width: 0;
}

#stock-view .stock-stat-grid dd {
  align-self: end;
  justify-self: start;
  margin: 0;
  max-width: 100%;
  text-align: left;
}

#stock-view :is(
  .summary-signal-card,
  .evidence-metric-grid > div,
  .chart-summary-grid > div,
  .quote-strip > div,
  .ai-analysis-grid section,
  .ai-section
) {
  align-items: start !important;
  justify-items: start !important;
  text-align: left !important;
}

#stock-view :is(
  .summary-signal-card span,
  .summary-signal-card strong,
  .evidence-metric-grid dt,
  .evidence-metric-grid dd,
  .chart-summary-grid span,
  .chart-summary-grid strong,
  .quote-strip span,
  .quote-strip strong,
  .ai-analysis-grid h3,
  .ai-section h3
) {
  justify-self: start !important;
  text-align: left !important;
}

#stock-view :is(
  .stock-stat-grid dd,
  .evidence-metric-grid dd,
  .chart-summary-grid strong,
  .quote-strip strong,
  .summary-signal-card strong
) {
  overflow-wrap: anywhere;
  white-space: normal;
}

#stock-view .stock-visual-main {
  align-items: flex-start;
  text-align: left;
}

#stock-view .stock-visual-main > div {
  min-width: 0;
  text-align: left;
}

/* Stock detail: mobile brokerage-style composition, without copying external service tabs. */
#stock-view {
  --report-bg: #f4f6f8;
  --report-text: #111318;
  --report-muted: #8b929d;
  --report-line: #edf0f3;
  --report-red: #ef2b3a;
  --report-blue: #477bff;
  background: #ffffff;
  color: var(--report-text);
}

#stock-view .topbar {
  margin: 0;
  padding: 14px 20px 12px;
  border-bottom: 1px solid var(--report-line);
  background: #ffffff;
}

#stock-view .identity h1 {
  color: var(--report-text);
  font-weight: 900;
}

#stock-view .identity p,
#stock-view .search input {
  color: var(--report-muted);
}

#stock-view .stock-mobile-detail {
  gap: 0;
  background: var(--report-bg);
}

#stock-view .stock-quote-card,
#stock-view .stock-visual-card,
#stock-view .stock-strategy-card,
#stock-view .panel,
#stock-view .chart-analysis-panel,
#stock-view .ai-analysis-panel {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

#stock-view .stock-quote-card {
  gap: 12px;
  padding: 18px 20px 16px;
  background: #ffffff;
}

#stock-view .stock-quote-head {
  min-height: 20px;
}

#stock-view .market-chip {
  height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--report-muted);
  font-weight: 800;
}

#stock-view .stock-price-main {
  align-items: flex-start;
  flex-direction: column;
  justify-content: start;
  gap: 5px;
  padding: 0;
}

#stock-view .stock-price-main > strong {
  color: #000000;
  font-weight: 900;
  line-height: 1.05;
}

#stock-view .stock-price-main > div {
  justify-content: flex-start;
  gap: 6px;
  color: var(--report-blue);
  font-weight: 900;
}

#stock-view .stock-pre-market {
  margin: 0;
  color: var(--report-muted);
}

#stock-view .stock-action-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#stock-view .stock-action-row button {
  min-height: 44px;
  border-radius: 8px;
}

#stock-view .stock-action-row .watch-button {
  border-color: #e2e6eb;
  background: #f6f8fa;
}

#stock-view .stock-action-row .ai-analysis-button {
  border-color: #1f2025;
  background: #1f2025;
}

#stock-view .stock-company-profile {
  display: grid;
  gap: 12px;
  padding: 20px;
  border-top: 10px solid var(--report-bg);
  background: #ffffff;
}

#stock-view .stock-company-profile-head {
  display: grid;
  gap: 2px;
}

#stock-view .stock-company-profile h2 {
  margin: 0;
  color: #000000;
  font-size: var(--stock-font-section);
  line-height: 1.35;
}

#stock-view .stock-company-summary {
  margin: 0;
  color: #24272d;
  font-size: var(--stock-font-body);
  font-weight: 700;
  line-height: 1.7;
  white-space: pre-line;
}

#stock-view .stock-company-industry {
  margin: 0;
  color: var(--report-muted);
  font-size: var(--type-caption);
  font-weight: 800;
}

#stock-view .stock-company-details {
  border-top: 1px solid var(--report-line);
  border-bottom: 1px solid var(--report-line);
}

#stock-view .stock-company-details summary {
  position: relative;
  padding: 14px 24px 14px 0;
  color: #343840;
  cursor: pointer;
  font-size: var(--stock-font-body);
  font-weight: 900;
  list-style: none;
}

#stock-view .stock-company-details summary::-webkit-details-marker {
  display: none;
}

#stock-view .stock-company-details summary::after {
  position: absolute;
  top: 50%;
  right: 2px;
  content: "+";
  color: var(--report-muted);
  font-size: 20px;
  transform: translateY(-50%);
}

#stock-view .stock-company-details[open] summary::after {
  content: "−";
}

#stock-view .stock-company-details dl {
  display: grid;
  margin: 0;
  padding: 0 0 10px;
}

#stock-view .stock-company-details dl > div {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--report-line);
}

#stock-view .stock-company-details dt,
#stock-view .stock-company-details dd {
  margin: 0;
  font-size: var(--type-caption);
  line-height: 1.55;
}

#stock-view .stock-company-details dt {
  color: var(--report-muted);
  font-weight: 800;
}

#stock-view .stock-company-details dd {
  color: #24272d;
  font-weight: 700;
  overflow-wrap: anywhere;
}

#stock-view .stock-company-links,
#stock-view .stock-company-source {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
}

#stock-view .stock-company-links {
  padding: 0 0 14px;
}

#stock-view .stock-company-links a,
#stock-view .stock-company-source a {
  color: #111318;
  font-size: var(--type-caption);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#stock-view .stock-company-source {
  margin: 0;
  color: var(--report-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
}

#stock-view .stock-quote-card .quote-strip,
#stock-view .quote-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  overflow: visible;
  border: 0;
  border-top: 1px solid var(--report-line);
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

#stock-view .quote-strip > div,
#stock-view .stock-quote-card .quote-strip > div {
  min-height: 0;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline !important;
  justify-items: stretch !important;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--report-line);
  background: #ffffff;
  text-align: left !important;
}

#stock-view .quote-strip > div:nth-child(odd) {
  padding-right: 14px;
}

#stock-view .quote-strip > div:nth-child(even) {
  padding-left: 14px;
}

#stock-view .quote-strip span,
#stock-view .quote-strip strong {
  line-height: 1.35;
  white-space: normal;
}

#stock-view .quote-strip strong {
  justify-self: end !important;
  color: #000000;
  font-size: var(--type-body) !important;
  text-align: right !important;
  font-weight: 900;
}

#stock-view .stock-section-tabs,
#stock-view .stock-detail-tabs {
  position: sticky;
  top: 56px;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0 20px;
  overflow: visible;
  border: 0;
  border-top: 10px solid var(--report-bg);
  border-radius: 0;
  background: #ffffff;
  backdrop-filter: none;
}

#stock-view .stock-section-tabs button,
#stock-view .stock-detail-tabs button {
  position: relative;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--report-muted);
  font-weight: 900;
  box-shadow: none;
}

#stock-view .stock-section-tabs button.active,
#stock-view .stock-detail-tabs button.active {
  background: transparent;
  color: #000000;
}

#stock-view .stock-section-tabs button.active::after,
#stock-view .stock-detail-tabs button.active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: #000000;
  content: "";
}

#stock-summary-section {
  gap: 0;
  background: #ffffff;
}

#stock-view .stock-visual-card {
  grid-template-columns: minmax(0, 1fr) minmax(120px, 42%);
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--report-line);
  background: #ffffff;
}

#stock-view .stock-visual-main {
  align-items: flex-start;
  flex-direction: row;
  gap: 12px;
}

#stock-view .score-ring {
  flex: 0 0 70px;
  width: 70px;
  height: 70px;
}

#stock-view .score-ring small {
  font-size: var(--type-caption) !important;
}

#stock-view .score-ring span {
  font-size: var(--type-body) !important;
}

#stock-view .section-eyebrow {
  margin-bottom: 4px;
}

#stock-view .stock-visual-main h2 {
  color: #000000;
  line-height: 1.28;
}

#stock-view .stock-visual-main p {
  margin-top: 5px;
  color: var(--report-muted);
  font-weight: 700;
}

#stock-view .stock-confidence-line {
  color: var(--report-text) !important;
}

#stock-view .stock-confidence-line strong {
  color: var(--report-blue);
}

#stock-view .stock-mini-chart {
  min-height: 96px;
  align-content: center;
  border: 0;
  border-radius: 0;
  background: #ffffff;
}

#stock-view .stock-mini-chart svg {
  height: 92px;
}

#stock-view .stock-mini-chart p,
#stock-view .stock-mini-chart .mini-chart-date-range,
#stock-view .stock-mini-chart div {
  padding-inline: 0;
}

#stock-view .stock-summary-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 10px solid var(--report-bg);
  background: #ffffff;
}

#stock-view .summary-signal-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 10px;
  min-height: 0;
  padding: 13px 20px;
  border: 0;
  border-bottom: 1px solid var(--report-line);
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

#stock-view .summary-signal-card:nth-child(odd) {
  border-right: 1px solid var(--report-line);
}

#stock-view .summary-signal-card strong {
  justify-self: end !important;
  color: #000000;
  text-align: right !important;
}

#stock-view .summary-signal-card .signal-meter {
  grid-column: 1 / -1;
  height: 4px;
}

#stock-view .stock-summary-data,
#stock-view .stock-section-grid {
  display: block;
  gap: 0;
  background: #ffffff;
}

#stock-view .stock-section-card {
  gap: 0;
  padding: 0;
  background: #ffffff;
}

#stock-view .stock-section-card h2,
#stock-view .chart-detail-grid h2,
#stock-view .ai-analysis-head h2 {
  padding: 18px 20px 8px;
  border-top: 10px solid var(--report-bg);
  color: #000000;
  line-height: 1.25;
}

#stock-view .stock-stat-grid,
#stock-view .evidence-metric-grid,
#stock-view .chart-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 0 20px 14px;
  background: #ffffff;
}

#stock-view .stock-stat-grid > div,
#stock-view .evidence-metric-grid > div,
#stock-view .chart-summary-grid > div {
  min-height: 0;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto;
  align-items: baseline !important;
  justify-items: stretch !important;
  gap: 10px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--report-line);
  border-radius: 0;
  background: #ffffff;
  text-align: left !important;
}

#stock-view .stock-stat-grid > div:nth-child(odd),
#stock-view .evidence-metric-grid > div:nth-child(odd),
#stock-view .chart-summary-grid > div:nth-child(odd) {
  padding-right: 14px;
}

#stock-view .stock-stat-grid > div:nth-child(even),
#stock-view .evidence-metric-grid > div:nth-child(even),
#stock-view .chart-summary-grid > div:nth-child(even) {
  padding-left: 14px;
}

#stock-view .stock-stat-grid dt,
#stock-view .evidence-metric-grid dt,
#stock-view .chart-summary-grid span {
  justify-self: start !important;
  color: var(--report-muted);
  font-weight: 800;
  line-height: 1.35;
  text-align: left !important;
}

#stock-view .stock-stat-grid dd,
#stock-view .evidence-metric-grid dd,
#stock-view .chart-summary-grid strong {
  align-self: baseline;
  justify-self: end !important;
  margin: 0;
  color: #000000;
  font-weight: 900;
  line-height: 1.35;
  text-align: right !important;
  white-space: normal;
}

#stock-view .stock-strategy-card,
#stock-view .ai-analysis-panel,
#stock-view .stock-evidence-panel .stock-section-card,
#stock-view .stock-evidence-panel .chart-analysis-panel {
  padding: 0;
  background: #ffffff;
}

#stock-summary-section .stock-visual-card {
  display: block;
  padding: 18px 20px 20px;
  border-top: 10px solid var(--report-bg);
  border-bottom: 1px solid var(--report-line);
  background: #ffffff;
}

#stock-summary-section .stock-visual-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

#stock-summary-section .score-ring {
  width: 100%;
  height: auto;
  min-height: 0;
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 8px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--report-line);
  border-radius: 0;
  background: transparent;
}

#stock-summary-section .score-ring small {
  color: var(--report-muted);
  font-size: var(--type-caption) !important;
  font-weight: 800;
  line-height: 1.35;
}

#stock-summary-section .score-ring span {
  color: var(--report-red);
  font-size: var(--type-body) !important;
  font-weight: 900;
  line-height: 1.35;
}

#stock-summary-section .section-eyebrow {
  margin: 0 0 5px;
}

#stock-summary-section .stock-visual-main h2 {
  max-width: 13em;
  color: #000000;
  font-size: var(--type-title) !important;
  font-weight: 900;
  line-height: 1.24;
}

#stock-summary-section .stock-confidence-line {
  margin: 10px 0 0 !important;
  color: #000000 !important;
  font-weight: 800;
}

#stock-summary-section .stock-confidence-line strong {
  color: var(--report-blue);
}

#stock-summary-section .stock-confidence-help {
  display: none !important;
}

#stock-summary-section #stock-summary-line {
  display: none;
  max-width: 100%;
  margin: 10px 0 0;
  overflow: hidden;
  color: var(--report-muted);
  font-size: var(--type-caption) !important;
  font-weight: 700;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#stock-summary-section .stock-mini-chart {
  display: none;
}

#stock-view .strategy-range-chart {
  gap: 8px;
  padding: 12px 16px 14px;
  border: 0;
  border-top: 1px solid var(--report-line);
  border-bottom: 1px solid var(--report-line);
  border-radius: 0;
  background: #ffffff;
}

#stock-view .strategy-range-scale,
#stock-view .strategy-range-scale span,
#stock-view .strategy-range-scale strong,
#stock-view .strategy-current b,
#stock-view .strategy-current em,
#stock-view .strategy-range-legend,
#stock-view .strategy-range-legend span {
  font-size: var(--type-caption) !important;
  line-height: 1.35;
}

#stock-view .strategy-range-scale {
  color: var(--report-muted);
}

#stock-view .strategy-range-scale strong {
  color: var(--report-text);
  font-weight: 800;
}

#stock-view .strategy-range-track {
  height: 18px;
  margin: 28px 8px 8px;
}

#stock-view .strategy-tick {
  top: -4px;
  width: 2px;
  height: 30px;
}

#stock-view .strategy-current {
  top: -29px;
  min-width: 68px;
  gap: 0;
}

#stock-view .strategy-current::before {
  top: 28px;
  height: 31px;
}

#stock-view .strategy-current i {
  top: 57px;
  width: 8px;
  height: 8px;
  border-width: 2px;
}

#stock-view .strategy-range-legend {
  gap: 6px 10px;
}

#stock-view .strategy-range-legend i {
  width: 18px;
  height: 5px;
}

#stock-view .strategy-level-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  background: #ffffff;
}

#stock-view .strategy-level-card,
#stock-view .strategy-level-card.featured {
  min-height: 0;
  gap: 7px;
  padding: 13px 20px;
  border: 0;
  border-bottom: 1px solid var(--report-line);
  border-radius: 0;
  background: #ffffff;
}

#stock-view .strategy-level-card:nth-child(odd):not(.featured) {
  border-right: 1px solid var(--report-line);
}

#stock-view .strategy-level-card::before {
  width: 28px;
  height: 3px;
}

#stock-view .strategy-level-card span,
#stock-view .strategy-level-card em,
#stock-view .strategy-level-card.featured span,
#stock-view .strategy-level-card.featured em {
  font-size: var(--type-caption) !important;
}

#stock-view .strategy-level-card strong,
#stock-view .strategy-level-card.featured strong {
  font-size: var(--type-body) !important;
  line-height: 1.35;
  white-space: normal;
}

#stock-evidence-section {
  gap: 0;
  background: var(--report-bg);
}

#stock-evidence-section .stock-ai-evidence {
  background: #ffffff;
}

#stock-evidence-section .evidence-head {
  display: block;
  padding: 18px 20px 10px;
  border-top: 10px solid var(--report-bg);
  background: #ffffff;
}

#stock-evidence-section .evidence-head h2,
#stock-evidence-section .stock-section-card h2,
#stock-evidence-section .chart-detail-grid h2,
#stock-evidence-section .ai-analysis-head h2 {
  padding: 0;
  border: 0;
  color: #000000;
  font-size: var(--type-body) !important;
  font-weight: 900;
  line-height: 1.35;
}

#stock-evidence-section .ai-section-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0 20px 14px;
  background: #ffffff;
}

#stock-evidence-section .ai-section {
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid var(--report-line);
  border-radius: 0;
  background: #ffffff;
}

#stock-evidence-section .ai-section h3 {
  margin: 0 0 8px;
  color: var(--report-muted);
  font-size: var(--type-caption) !important;
  font-weight: 800;
}

#stock-evidence-section .ai-list {
  gap: 7px;
  padding-left: 18px;
  color: var(--report-text);
}

#stock-evidence-section .ai-list li,
#stock-evidence-section .ai-list li * {
  font-size: var(--type-caption) !important;
  font-weight: 700;
  line-height: 1.55;
}

#stock-evidence-section .evidence-core-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--report-bg);
}

#stock-evidence-section .stock-section-card {
  display: grid;
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #ffffff;
}

#stock-evidence-section .stock-section-card > .section-eyebrow {
  display: block;
  margin: 0;
  padding: 12px 20px 0;
  border-top: 10px solid var(--report-bg);
  color: var(--report-muted);
  font-size: var(--type-caption) !important;
  font-weight: 800;
}

#stock-evidence-section .stock-section-card > h2 {
  padding: 8px 20px 10px;
}

#stock-evidence-section .evidence-metric-grid {
  grid-template-columns: 1fr;
  padding: 0 20px 14px;
}

#stock-evidence-section .evidence-metric-grid > div {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 11px 0;
}

#stock-evidence-section .evidence-metric-grid dt {
  min-width: 0;
  color: var(--report-muted);
  font-size: var(--type-caption) !important;
  font-weight: 800;
}

#stock-evidence-section .evidence-metric-grid dd {
  max-width: 12ch;
  color: #000000;
  font-size: var(--type-body) !important;
  font-weight: 900;
  line-height: 1.35;
  text-align: right !important;
  overflow-wrap: normal;
  word-break: keep-all;
}

#stock-evidence-section .sentiment-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0 20px 12px;
  border-bottom: 1px solid var(--report-line);
}

#stock-evidence-section .sentiment-line strong {
  font-size: var(--type-body) !important;
  line-height: 1.35;
}

#stock-evidence-section .sentiment-line span {
  align-self: center;
  color: var(--report-muted);
  font-size: var(--type-caption) !important;
  line-height: 1.35;
}

#stock-evidence-section .news-evidence-list {
  display: grid;
  gap: 0;
  min-height: 0;
  padding: 0 20px 14px;
  background: #ffffff;
}

#stock-evidence-section .news-evidence-list li {
  padding: 11px 0;
  border-top: 0;
  border-bottom: 1px solid var(--report-line);
}

#stock-evidence-section .news-evidence-list a,
#stock-evidence-section .news-evidence-list span {
  display: -webkit-box;
  overflow: hidden;
  color: #000000;
  font-size: var(--type-caption) !important;
  font-weight: 800;
  line-height: 1.45;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#stock-evidence-section .news-evidence-list time {
  color: var(--report-muted);
  font-size: var(--type-caption) !important;
}

#stock-evidence-section .stock-ai-evidence {
  order: -2;
}

#stock-evidence-section .evidence-summary-table {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
  padding: 0 20px 12px;
  background: #ffffff;
}

#stock-evidence-section .evidence-summary-table > div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--report-line);
}

#stock-evidence-section .evidence-summary-table dt,
#stock-evidence-section .evidence-summary-table dd {
  margin: 0;
  line-height: 1.45;
}

#stock-evidence-section .evidence-summary-table dt {
  color: var(--report-muted);
  font-size: var(--type-caption) !important;
  font-weight: 800;
}

#stock-evidence-section .evidence-summary-table dd {
  color: #000000;
  font-size: var(--type-caption) !important;
  font-weight: 800;
}

#stock-evidence-section .ai-section-list {
  padding-top: 0;
}

#stock-evidence-section .ai-section {
  display: none;
}

#stock-evidence-section #stock-flow-section {
  order: 1;
}

#stock-evidence-section #stock-research-section {
  order: 2;
}

#stock-evidence-section #stock-finance-section {
  order: 3;
}

#stock-evidence-section #stock-news-section {
  order: 4;
}

#stock-evidence-section #stock-macro-section {
  order: 5;
}

#stock-evidence-section .stock-section-card > h2 {
  font-size: var(--type-body) !important;
}

#stock-evidence-section .stock-section-card > .section-eyebrow {
  letter-spacing: 0 !important;
}

#stock-evidence-section .evidence-metric-grid > div,
#stock-evidence-section .sentiment-line,
#stock-evidence-section .news-evidence-list li {
  min-height: 43px;
}

#stock-evidence-section .term-help {
  width: 18px;
  height: 18px;
  font-size: var(--type-caption) !important;
}

#stock-evidence-section #stock-news-section {
  border-bottom: 10px solid var(--report-bg);
}

/* Stock detail evidence tab: Naver-style readable table layout. */
#stock-evidence-section.stock-evidence-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
  background: var(--report-bg);
}

#stock-evidence-section.stock-evidence-panel[hidden] {
  display: none;
}

#stock-evidence-section *,
#stock-evidence-section *::before,
#stock-evidence-section *::after {
  letter-spacing: 0 !important;
}

#stock-evidence-section .stock-ai-evidence,
#stock-evidence-section .evidence-core-grid,
#stock-evidence-section .stock-section-card {
  min-width: 0;
}

#stock-evidence-section .stock-ai-evidence,
#stock-evidence-section .stock-section-card {
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

#stock-evidence-section .stock-ai-evidence,
#stock-evidence-section .stock-section-card {
  background: #ffffff;
}

#stock-evidence-section .stock-ai-evidence {
  order: 0;
  border-top: 10px solid var(--report-bg);
}

#stock-evidence-section .evidence-head {
  padding: 17px 20px 7px;
  border-top: 0;
}

#stock-evidence-section .evidence-head .section-eyebrow,
#stock-evidence-section .stock-section-card > .section-eyebrow {
  display: block;
  margin: 0;
  padding: 0;
  color: #8a929d;
  font-size: var(--type-caption) !important;
  font-weight: 800;
  line-height: 1.35;
}

#stock-evidence-section .evidence-head h2,
#stock-evidence-section .stock-section-card > h2 {
  margin: 0;
  padding: 5px 0 11px;
  border: 0;
  color: #050505;
  font-size: var(--type-body) !important;
  font-weight: 900;
  line-height: 1.35;
}

#stock-evidence-section .evidence-summary-table {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0 20px 13px;
  border: 0;
}

#stock-evidence-section .evidence-summary-table > div,
#stock-evidence-section .evidence-metric-grid > div {
  display: grid;
  grid-template-columns: minmax(82px, 0.58fr) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 45px;
  padding: 10px 0;
  border-bottom: 1px solid #eceff3;
}

#stock-evidence-section .evidence-summary-table > div:first-child,
#stock-evidence-section .evidence-metric-grid > div:first-child {
  border-top: 1px solid #eceff3;
}

#stock-evidence-section .evidence-summary-table dt,
#stock-evidence-section .evidence-metric-grid dt {
  min-width: 0;
  margin: 0;
  color: #8a929d;
  font-size: var(--type-caption) !important;
  font-weight: 800;
  line-height: 1.35;
  word-break: keep-all;
}

#stock-evidence-section .evidence-summary-table dd,
#stock-evidence-section .evidence-metric-grid dd {
  min-width: 0;
  max-width: none;
  margin: 0;
  color: #050505;
  font-size: var(--type-caption) !important;
  font-weight: 800;
  line-height: 1.35;
  text-align: right !important;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

#stock-evidence-section .evidence-summary-table dd {
  font-size: var(--type-caption) !important;
  font-weight: 800;
}

#stock-evidence-section .ai-section-list {
  display: none;
}

#stock-evidence-section .evidence-core-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 0;
  background: var(--report-bg);
}

#stock-evidence-section .stock-section-card {
  display: grid;
  gap: 0;
  align-content: start;
  padding: 17px 20px 13px;
}

#stock-evidence-section .stock-section-card > .section-eyebrow {
  border-top: 0;
}

#stock-evidence-section .stock-section-card > h2 {
  padding-bottom: 12px;
}

#stock-evidence-section .evidence-metric-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
  padding: 0;
}

#stock-evidence-section .stock-section-note {
  margin: 10px 0 0;
  padding: 0;
  color: #8a929d;
  font-size: var(--type-caption) !important;
  font-weight: 750;
  line-height: 1.45;
}

#stock-evidence-section #stock-latest-report-at {
  display: none !important;
}

#stock-evidence-section .sentiment-line {
  display: grid;
  grid-template-columns: minmax(82px, 0.58fr) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 45px;
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid #eceff3;
  border-bottom: 1px solid #eceff3;
}

#stock-evidence-section .sentiment-line strong {
  color: #d92638;
  font-size: var(--type-caption) !important;
  font-weight: 800;
  line-height: 1.35;
}

#stock-evidence-section .sentiment-line span {
  color: #8a929d;
  font-size: var(--type-caption) !important;
  font-weight: 800;
  line-height: 1.35;
  text-align: right;
}

#stock-evidence-section .sentiment-line strong.positive {
  color: #d92638 !important;
}

#stock-evidence-section .sentiment-line strong.muted,
#stock-evidence-section .sentiment-line span.muted {
  color: #8a929d !important;
}

#stock-evidence-section .sentiment-line span.negative {
  color: #3478f6 !important;
}

#stock-evidence-section .news-evidence-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 8px 0 0;
  list-style: none;
}

#stock-evidence-section .news-evidence-list li {
  display: grid;
  gap: 4px;
  min-height: 0;
  padding: 10px 0;
  border-bottom: 1px solid #eceff3;
}

#stock-evidence-section .news-evidence-list a,
#stock-evidence-section .news-evidence-list span {
  display: -webkit-box;
  overflow: hidden;
  color: #050505;
  font-size: var(--type-caption) !important;
  font-weight: 800;
  line-height: 1.45;
  text-decoration: none;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#stock-evidence-section .news-evidence-list time {
  color: #8a929d;
  font-size: var(--type-caption) !important;
  font-weight: 700;
  line-height: 1.35;
}

#stock-evidence-section .term-help {
  width: 16px;
  height: 16px;
  font-size: var(--type-caption) !important;
  line-height: 16px;
}

@media (min-width: 720px) {
  #stock-evidence-section .evidence-summary-table > div,
  #stock-evidence-section .evidence-metric-grid > div,
  #stock-evidence-section .sentiment-line {
    grid-template-columns: minmax(110px, 0.45fr) minmax(0, 1fr);
  }
}

/* Evidence tab final alignment pass: every detail card uses the same inner grid as the summary table. */
#stock-evidence-section .stock-section-card {
  padding: 0 !important;
}

#stock-evidence-section .stock-section-card > .section-eyebrow {
  width: auto !important;
  padding: 17px 20px 0 !important;
}

#stock-evidence-section .stock-section-card > h2 {
  width: auto !important;
  padding: 5px 20px 12px !important;
}

#stock-evidence-section .evidence-metric-grid {
  width: auto !important;
  padding: 0 20px 13px !important;
}

#stock-evidence-section .evidence-summary-table > div,
#stock-evidence-section .evidence-metric-grid > div,
#stock-evidence-section .sentiment-line {
  grid-template-columns: minmax(145px, 0.58fr) minmax(0, 1fr) !important;
}

#stock-evidence-section .evidence-metric-grid > div,
#stock-evidence-section .evidence-metric-grid > div:nth-child(odd),
#stock-evidence-section .evidence-metric-grid > div:nth-child(even) {
  padding: 10px 0 !important;
}

#stock-evidence-section .evidence-metric-grid dt,
#stock-evidence-section .evidence-metric-grid dd,
#stock-evidence-section .sentiment-line strong,
#stock-evidence-section .sentiment-line span {
  align-self: center !important;
}

#stock-evidence-section .evidence-metric-grid dt {
  justify-self: start !important;
}

#stock-evidence-section .evidence-metric-grid dt .chart-term-text,
#stock-evidence-section .evidence-metric-grid dt .stock-term-text {
  color: #8a929d !important;
  font-size: var(--type-caption) !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
}

#stock-evidence-section .evidence-metric-grid dd,
#stock-evidence-section .sentiment-line span {
  justify-self: end !important;
}

#stock-evidence-section .sentiment-line {
  margin: 0 20px !important;
  padding: 10px 0 !important;
}

#stock-evidence-section .news-evidence-list {
  padding: 8px 20px 14px !important;
}

/* Stock detail strategy tab: compact Naver-style AI decision view. */
#stock-strategy-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 0;
  background: var(--report-bg);
}

#stock-strategy-section[hidden] {
  display: none;
}

#stock-strategy-section *,
#stock-strategy-section *::before,
#stock-strategy-section *::after {
  letter-spacing: 0 !important;
}

#stock-strategy-section .stock-strategy-card,
#stock-strategy-section .ai-analysis-panel {
  width: 100%;
  margin: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: #ffffff;
  box-shadow: none !important;
}

#stock-strategy-section .ai-analysis-panel {
  order: 0;
}

#stock-strategy-section .stock-strategy-card {
  order: 1;
}

#stock-strategy-section .strategy-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 0;
  padding: 17px 20px 12px;
  border-top: 10px solid var(--report-bg);
  border-bottom: 1px solid #eceff3;
}

#stock-strategy-section .strategy-head .section-eyebrow,
#stock-strategy-section .ai-analysis-head p,
#stock-strategy-section .ai-analysis-grid h3 {
  color: #8a929d;
  font-size: var(--type-caption) !important;
  font-weight: 800;
  line-height: 1.35;
}

#stock-strategy-section .strategy-head h2,
#stock-strategy-section .ai-analysis-head h2 {
  margin: 0;
  padding: 5px 0 0;
  color: #050505;
  font-size: var(--type-body) !important;
  font-weight: 900;
  line-height: 1.35;
}

#stock-strategy-section .strategy-head p {
  display: none !important;
  margin: 8px 0 0;
  overflow: hidden;
  color: #8a929d;
  font-size: var(--type-caption) !important;
  font-weight: 750;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#stock-strategy-section .status-chip,
#stock-strategy-section #stock-strategy-stance {
  display: none !important;
  align-self: start;
  max-width: 126px;
  padding: 6px 9px;
  border: 0;
  border-radius: 4px;
  background: #fff1f2;
  color: #d92638;
  font-size: var(--type-caption) !important;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
}

#stock-strategy-section .ai-analysis-panel {
  display: grid;
  gap: 0;
  padding: 0;
}

#stock-strategy-section .ai-analysis-panel[hidden] {
  display: none;
}

#stock-strategy-section .ai-analysis-head {
  display: block;
  padding: 17px 20px 7px;
  border-top: 10px solid var(--report-bg);
  background: #ffffff;
}

#stock-strategy-section .ai-analysis-head p {
  margin: 6px 0 0;
}

#stock-strategy-section #ai-analysis-stance {
  display: none;
}

#stock-strategy-section .ai-decision-table {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
  padding: 0 20px 13px;
  background: #ffffff;
}

#stock-strategy-section .ai-decision-table > div {
  display: grid;
  grid-template-columns: minmax(82px, 0.58fr) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 45px;
  padding: 10px 0;
  border-bottom: 1px solid #eceff3;
}

#stock-strategy-section .ai-decision-table > div:first-child {
  border-top: 1px solid #eceff3;
}

#stock-strategy-section .ai-decision-table dt,
#stock-strategy-section .ai-decision-table dd {
  min-width: 0;
  margin: 0;
  line-height: 1.35;
  word-break: keep-all;
}

#stock-strategy-section .ai-decision-table dt {
  color: #8a929d;
  font-size: var(--type-caption) !important;
  font-weight: 800;
}

#stock-strategy-section .ai-decision-table dd {
  color: #050505;
  font-size: var(--type-body) !important;
  font-weight: 900;
  text-align: right;
  overflow-wrap: anywhere;
}

#stock-strategy-section .ai-decision-table dd.positive {
  color: #d92638;
}

#stock-strategy-section .ai-decision-table dd.negative {
  color: #3478f6;
}

#stock-strategy-section .ai-decision-table dd.muted {
  color: #8a929d;
}

#stock-strategy-section .ai-summary {
  display: -webkit-box;
  margin: 0;
  padding: 12px 20px 14px;
  overflow: hidden;
  border-top: 1px solid #eceff3;
  color: #343d4c;
  font-size: var(--type-caption) !important;
  font-weight: 800;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

#stock-strategy-section .ai-analysis-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0;
  padding: 0;
  background: var(--report-bg);
}

#stock-strategy-section .ai-analysis-grid section {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 17px 20px 13px;
  border: 0;
  border-radius: 0;
  background: #ffffff;
}

#stock-strategy-section .ai-analysis-grid h3 {
  margin: 0;
  padding: 0 0 9px;
}

#stock-strategy-section .ai-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  color: #343d4c;
  list-style: none;
}

#stock-strategy-section .ai-list li {
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid #eceff3;
  color: #343d4c;
  font-size: var(--type-caption) !important;
  font-weight: 800;
  line-height: 1.5;
  word-break: keep-all;
}

#stock-strategy-section .ai-list li::marker {
  content: "";
}

@media (min-width: 720px) {
  #stock-strategy-section .ai-decision-table > div {
    grid-template-columns: minmax(110px, 0.45fr) minmax(0, 1fr);
  }
}

/* Stock quote table: keep compact values scannable on narrow mobile widths. */
#stock-view .quote-strip strong,
#stock-view .stock-quote-card .quote-strip strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap !important;
  font-variant-numeric: tabular-nums;
}

#stock-view .term-help {
  font-size: var(--type-caption) !important;
}

/* Summary and strategy tabs: reuse the same hierarchy and row alignment as the evidence tab. */
#stock-summary-section {
  gap: 0 !important;
}

#stock-summary-section .stock-section-card {
  padding: 0 !important;
}

#stock-summary-section .stock-section-card > h2 {
  width: auto !important;
  padding: 17px 20px 12px !important;
  font-size: var(--type-body) !important;
  font-weight: 900 !important;
  line-height: 1.35 !important;
}

#stock-summary-section .summary-signal-card {
  min-height: 0;
  align-items: center !important;
  gap: 8px 12px;
}

#stock-summary-section .summary-signal-card span,
#stock-summary-section .summary-signal-card strong {
  font-size: var(--type-caption) !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
}

#stock-summary-section .stock-stat-grid {
  width: auto !important;
  padding: 0 20px 13px !important;
}

#stock-summary-section .stock-stat-grid > div,
#stock-summary-section .stock-stat-grid > div:nth-child(odd),
#stock-summary-section .stock-stat-grid > div:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  align-items: start !important;
  justify-items: start !important;
  gap: 8px !important;
  padding: 10px 0 !important;
}

#stock-summary-section .stock-stat-grid dt {
  display: flex !important;
  align-items: center !important;
  justify-self: start !important;
  color: #8a929d !important;
  font-size: var(--type-caption) !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
}

#stock-summary-section .stock-stat-grid dt .chart-term-text,
#stock-summary-section .stock-stat-grid dt .stock-term-text {
  color: #8a929d !important;
  font-size: var(--type-caption) !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
}

#stock-summary-section .stock-stat-grid dd {
  align-self: start !important;
  justify-self: start !important;
  color: #050505 !important;
  font-size: var(--type-caption) !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  text-align: left !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

#stock-summary-section .section-eyebrow {
  font-weight: 800 !important;
}

#stock-strategy-section .strategy-level-card span,
#stock-strategy-section .strategy-level-card.featured span,
#stock-strategy-section .strategy-range-scale span,
#stock-strategy-section .strategy-range-scale strong,
#stock-strategy-section .strategy-range-legend span,
#stock-strategy-section .strategy-current b,
#stock-strategy-section .strategy-current em {
  font-size: var(--type-caption) !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
}

#stock-strategy-section .strategy-level-card strong,
#stock-strategy-section .strategy-level-card.featured strong {
  font-size: var(--type-caption) !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
}

#stock-strategy-section .strategy-level-card,
#stock-strategy-section .strategy-level-card.featured {
  gap: 6px !important;
}

#stock-strategy-section .ai-decision-table > div {
  grid-template-columns: minmax(145px, 0.58fr) minmax(0, 1fr) !important;
}

#stock-strategy-section .ai-decision-table dd {
  font-size: var(--type-caption) !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
}

/* Stock detail v2: directional summary and action-first strategy. */
#stock-summary-section .stock-stat-grid dd.positive,
#stock-summary-section .summary-signal-card strong.positive {
  color: #d92638 !important;
}

#stock-summary-section .stock-stat-grid dd.negative,
#stock-summary-section .summary-signal-card strong.negative {
  color: #3478f6 !important;
}

#stock-summary-section .stock-stat-grid dd.muted,
#stock-summary-section .summary-signal-card strong.muted {
  color: #505866 !important;
}

#stock-strategy-section .ai-analysis-panel {
  order: 0;
  padding: 0 !important;
}

#stock-strategy-section .stock-strategy-card {
  order: 1;
}

#stock-strategy-section .ai-analysis-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 14px;
  border-top: 0;
  border-bottom: 1px solid #eceff3;
}

#stock-strategy-section .ai-analysis-head .section-eyebrow {
  color: #8a929d;
  font-size: var(--type-caption) !important;
  font-weight: 800;
}

#stock-strategy-section .ai-analysis-head h2 {
  padding-top: 3px;
  font-size: 21px !important;
}

#stock-strategy-section .ai-analysis-head p {
  display: block !important;
  margin-top: 5px;
  color: #8a929d;
  font-size: 12px !important;
  font-weight: 700;
}

#stock-strategy-section #ai-analysis-stance {
  display: inline-flex;
  flex: 0 0 auto;
  max-width: 112px;
  padding: 7px 9px;
  border-radius: 5px;
  background: #f1f3f5;
  color: #343d4c;
  font-size: 12px !important;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
}

.ollama-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: max-content;
  padding: 4px 7px;
  border: 1px solid #d9dee6;
  border-radius: 999px;
  background: #f3f5f7;
  color: #111827 !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: 0;
  white-space: nowrap;
}

.ollama-ai-badge::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #64748b;
  content: "";
}

.ollama-ai-badge.is-ollama::before {
  background: #16a34a;
}

.ollama-ai-badge.is-loading::before {
  animation: ollama-badge-pulse 1s ease-in-out infinite;
}

@keyframes ollama-badge-pulse {
  50% {
    opacity: 0.35;
    transform: scale(0.72);
  }
}

.ollama-ai-badge[hidden] {
  display: none !important;
}

#stock-summary-section .stock-confidence-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

#stock-strategy-section .ai-analysis-meta-line {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

#stock-strategy-section #ai-analysis-stance.positive {
  background: #fff0f1;
  color: #d92638;
}

#stock-strategy-section #ai-analysis-stance.negative {
  background: #eef5ff;
  color: #3478f6;
}

#stock-strategy-section .strategy-decision-hero {
  margin: 0;
  padding: 22px 20px 20px;
  border-bottom: 1px solid #eceff3;
  background: #ffffff;
}

#stock-strategy-section .strategy-decision-hero > span {
  display: block;
  margin-bottom: 8px;
  color: #8a929d;
  font-size: 12px;
  font-weight: 800;
}

#stock-strategy-section .strategy-decision-hero > strong {
  display: block;
  color: #111318;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.4;
  word-break: keep-all;
}

#stock-strategy-section .strategy-decision-hero > p {
  margin: 10px 0 0;
  color: #5d6674;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
  word-break: keep-all;
}

#stock-strategy-section .strategy-key-levels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  padding: 0 20px;
  background: #ffffff;
}

#stock-strategy-section .strategy-key-levels > div {
  min-width: 0;
  padding: 16px 0;
}

#stock-strategy-section .strategy-key-levels > div + div {
  margin-left: 16px;
  padding-left: 16px;
  border-left: 1px solid #eceff3;
}

#stock-strategy-section .strategy-key-levels dt {
  margin-bottom: 7px;
  color: #8a929d;
  font-size: 12px;
  font-weight: 800;
}

#stock-strategy-section .strategy-key-levels dd {
  margin: 0;
  color: #111318;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.45;
  word-break: keep-all;
}

#stock-strategy-section .strategy-steps {
  margin-top: 10px;
  padding: 20px;
  background: #ffffff;
}

#stock-strategy-section .strategy-steps h3,
#stock-strategy-section .strategy-detail-disclosure h3 {
  margin: 0 0 12px;
  color: #111318;
  font-size: 15px;
  font-weight: 900;
}

#stock-strategy-section .strategy-steps .ai-list {
  counter-reset: strategy-step;
}

#stock-strategy-section .strategy-steps .ai-list li {
  counter-increment: strategy-step;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 13px 0;
  border-top: 1px solid #eceff3;
  font-size: 14px !important;
  line-height: 1.55;
}

#stock-strategy-section .strategy-steps .ai-list li::before {
  content: counter(strategy-step);
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #111318;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

#stock-strategy-section .strategy-detail-disclosure {
  margin-top: 10px;
  padding: 0 20px;
  background: #ffffff;
}

#stock-strategy-section .strategy-detail-disclosure summary {
  cursor: pointer;
  min-height: 54px;
  padding: 17px 26px 17px 0;
  color: #343d4c;
  font-size: 14px;
  font-weight: 900;
  list-style: none;
}

#stock-strategy-section .strategy-detail-disclosure summary::-webkit-details-marker {
  display: none;
}

#stock-strategy-section .strategy-detail-disclosure summary::after {
  content: "+";
  float: right;
  color: #8a929d;
  font-size: 18px;
}

#stock-strategy-section .strategy-detail-disclosure[open] summary::after {
  content: "−";
}

#stock-strategy-section .strategy-detail-disclosure .ai-summary {
  display: block;
  padding: 16px 0;
  border-top: 1px solid #eceff3;
  -webkit-line-clamp: unset;
}

#stock-strategy-section .strategy-detail-disclosure > section {
  padding: 18px 0 12px;
  border-top: 1px solid #eceff3;
}

#stock-research-section .research-report-list {
  margin: 0;
  padding: 4px 20px 14px;
  list-style: none;
}

#stock-research-section .research-report-item,
#stock-research-section .research-report-empty {
  display: grid;
  gap: 5px;
  padding: 13px 0;
  border-top: 1px solid #eceff3;
}

#stock-research-section .research-report-title {
  color: #111318;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.45;
  text-decoration: none;
  word-break: keep-all;
}

#stock-research-section a.research-report-title::after {
  content: " ↗";
  color: #8a929d;
}

#stock-research-section .research-report-meta,
#stock-research-section .research-report-empty {
  color: #8a929d;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 420px) {
  #stock-strategy-section .strategy-key-levels {
    grid-template-columns: 1fr;
  }

  #stock-strategy-section .strategy-key-levels > div + div {
    margin-left: 0;
    padding-left: 0;
    border-top: 1px solid #eceff3;
    border-left: 0;
  }
}

/* Stock detail v2: evidence-led research workspace. Local redesign branch only. */
#stock-view.stock-detail-v2 {
  --v2-bg: #f2f4f5;
  --v2-surface: #ffffff;
  --v2-surface-subtle: #f7f8f8;
  --v2-text: #17201f;
  --v2-muted: #6f7b78;
  --v2-line: #dce2e0;
  --v2-line-strong: #c8d0cd;
  --v2-accent: #0d6b5b;
  --v2-accent-soft: #e9f3f0;
  --v2-positive: #cf2f3b;
  --v2-negative: #2368aa;
  --v2-warning: #9a6900;
  width: 100%;
  max-width: 100%;
  background: transparent;
  color: var(--v2-text);
}

#stock-view.stock-detail-v2 .stock-v2-commandbar {
  min-height: 88px;
  align-items: center;
  margin: 0 0 16px;
  padding: 18px 22px;
  border: 1px solid var(--v2-line);
  border-radius: 8px;
  background: var(--v2-surface);
}

#stock-view.stock-detail-v2 .stock-v2-page-kicker,
#stock-view.stock-detail-v2 .section-eyebrow {
  display: block;
  margin: 0 0 5px;
  color: var(--v2-accent);
  font-size: 10px !important;
  font-weight: 850;
  line-height: 1.3;
  text-transform: uppercase;
}

#stock-view.stock-detail-v2 .stock-v2-commandbar .identity h1 {
  margin: 0;
  color: var(--v2-text);
  font-size: 28px !important;
  font-weight: 900;
  line-height: 1.15;
}

#stock-view.stock-detail-v2 .stock-v2-commandbar .search {
  width: min(460px, 46%);
}

#stock-view.stock-detail-v2 .stock-v2-commandbar .search input,
#stock-view.stock-detail-v2 .stock-v2-commandbar .search button {
  min-height: 46px;
  border-radius: 6px;
}

#stock-view.stock-detail-v2 .stock-v2-commandbar .search input {
  border-color: var(--v2-line-strong);
  background: var(--v2-surface-subtle);
  color: var(--v2-text);
}

#stock-view.stock-detail-v2 .stock-v2-commandbar .search button {
  background: var(--v2-text);
  color: #fff;
}

#stock-view.stock-detail-v2 .stock-mobile-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr);
  align-items: stretch;
  gap: 16px;
  background: transparent;
}

#stock-view.stock-detail-v2 .stock-quote-card,
#stock-view.stock-detail-v2 .stock-company-profile,
#stock-view.stock-detail-v2 .stock-visual-card,
#stock-view.stock-detail-v2 .stock-summary-cards,
#stock-view.stock-detail-v2 .stock-v2-data-panel,
#stock-view.stock-detail-v2 .stock-section-card,
#stock-view.stock-detail-v2 .stock-strategy-card,
#stock-view.stock-detail-v2 .ai-analysis-panel {
  border: 1px solid var(--v2-line);
  border-radius: 8px;
  background: var(--v2-surface);
  box-shadow: none;
}

#stock-view.stock-detail-v2 .stock-quote-card {
  min-height: 294px;
  gap: 14px;
  padding: 22px;
}

#stock-view.stock-detail-v2 .stock-quote-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#stock-view.stock-detail-v2 .stock-quote-head > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

#stock-view.stock-detail-v2 .market-chip {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid #bcd8d1;
  border-radius: 999px;
  background: var(--v2-accent-soft);
  color: var(--v2-accent);
  font-size: 11px !important;
}

#stock-view.stock-detail-v2 .stock-v2-market-code,
#stock-view.stock-detail-v2 .stock-v2-as-of {
  color: var(--v2-muted);
  font-size: 12px;
  font-weight: 750;
}

#stock-view.stock-detail-v2 .stock-v2-as-of {
  text-align: right;
}

#stock-view.stock-detail-v2 .stock-price-main {
  gap: 8px;
  padding: 2px 0 4px;
}

#stock-view.stock-detail-v2 .stock-price-main > strong {
  color: var(--v2-text);
  font-size: clamp(38px, 5vw, 52px) !important;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

#stock-view.stock-detail-v2 .stock-price-main > div,
#stock-view.stock-detail-v2 .stock-price-main > div > span {
  font-size: 18px !important;
  font-variant-numeric: tabular-nums;
}

#stock-view.stock-detail-v2 .quote-strip,
#stock-view.stock-detail-v2 .stock-quote-card .quote-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 0;
  border-top: 1px solid var(--v2-line);
}

#stock-view.stock-detail-v2 .quote-strip > div,
#stock-view.stock-detail-v2 .stock-quote-card .quote-strip > div {
  grid-template-columns: 1fr;
  gap: 5px;
  padding: 13px 14px;
  border: 0;
  border-right: 1px solid var(--v2-line);
}

#stock-view.stock-detail-v2 .quote-strip > div:first-child {
  padding-left: 0;
}

#stock-view.stock-detail-v2 .quote-strip > div:last-child {
  padding-right: 0;
  border-right: 0;
}

#stock-view.stock-detail-v2 .quote-strip span,
#stock-view.stock-detail-v2 .quote-strip strong {
  justify-self: start !important;
  text-align: left !important;
}

#stock-view.stock-detail-v2 .quote-strip span {
  color: var(--v2-muted);
  font-size: 11px !important;
}

#stock-view.stock-detail-v2 .quote-strip strong {
  color: var(--v2-text);
  font-size: 14px !important;
  font-variant-numeric: tabular-nums;
}

#stock-view.stock-detail-v2 .stock-action-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: auto;
}

#stock-view.stock-detail-v2 .stock-action-row button {
  min-height: 46px;
  border-radius: 6px;
}

#stock-view.stock-detail-v2 .stock-action-row .watch-button {
  border-color: var(--v2-line-strong);
  background: var(--v2-surface);
  color: var(--v2-text);
}

#stock-view.stock-detail-v2 .stock-action-row .ai-analysis-button {
  border-color: var(--v2-text);
  background: var(--v2-text);
}

#stock-view.stock-detail-v2 .stock-company-profile {
  min-height: 294px;
  align-content: start;
  gap: 12px;
  padding: 22px;
  border-top: 1px solid var(--v2-line);
}

#stock-view.stock-detail-v2 .stock-company-profile h2 {
  padding: 0;
  color: var(--v2-text);
  font-size: 19px !important;
}

#stock-view.stock-detail-v2 .stock-company-summary {
  color: #37413f;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.7;
}

#stock-view.stock-detail-v2 .stock-company-details {
  border-color: var(--v2-line);
}

#stock-view.stock-detail-v2 .stock-company-details summary {
  min-height: 44px;
  padding-block: 11px;
  color: var(--v2-text);
  font-size: 13px;
}

#stock-view.stock-detail-v2 .stock-company-source {
  margin-top: auto;
}

#stock-view.stock-detail-v2 .stock-detail-tabs,
#stock-view.stock-detail-v2 .stock-section-tabs {
  grid-column: 1 / -1;
  top: 0;
  z-index: 35;
  height: 54px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid var(--v2-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: none;
}

#stock-view.stock-detail-v2 .stock-detail-tabs button,
#stock-view.stock-detail-v2 .stock-section-tabs button {
  height: 52px;
  color: var(--v2-muted);
  font-size: 14px !important;
}

#stock-view.stock-detail-v2 .stock-detail-tabs button.active,
#stock-view.stock-detail-v2 .stock-section-tabs button.active {
  color: var(--v2-text);
}

#stock-view.stock-detail-v2 .stock-detail-tabs button.active::after,
#stock-view.stock-detail-v2 .stock-section-tabs button.active::after {
  right: 20%;
  bottom: -1px;
  left: 20%;
  height: 3px;
  background: var(--v2-accent);
}

#stock-view.stock-detail-v2 .stock-tab-panel {
  grid-column: 1 / -1;
  gap: 16px;
  min-width: 0;
  padding: 0;
  background: transparent;
}

#stock-view.stock-detail-v2 #stock-summary-section {
  display: grid;
  gap: 16px;
  background: transparent;
}

#stock-view.stock-detail-v2 #stock-summary-section[hidden] {
  display: none;
}

#stock-view.stock-detail-v2 #stock-summary-section .stock-visual-card {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr);
  grid-template-areas: "chart decision";
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-top: 1px solid var(--v2-line);
}

#stock-view.stock-detail-v2 .stock-v2-chart-pane {
  grid-area: chart;
  min-width: 0;
  padding: 22px 22px 16px;
  border-right: 1px solid var(--v2-line);
}

#stock-view.stock-detail-v2 .stock-v2-chart-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

#stock-view.stock-detail-v2 .stock-v2-chart-head h2,
#stock-view.stock-detail-v2 .stock-v2-data-panel h2 {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--v2-text);
  font-size: 18px !important;
  font-weight: 900;
  line-height: 1.3;
}

#stock-view.stock-detail-v2 .stock-v2-periods {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--v2-line);
  border-radius: 6px;
  background: var(--v2-surface-subtle);
}

#stock-view.stock-detail-v2 .stock-v2-periods button {
  min-width: 50px;
  min-height: 34px;
  padding: 0 9px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--v2-muted);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

#stock-view.stock-detail-v2 .stock-v2-periods button.active {
  background: var(--v2-text);
  color: #fff;
}

#stock-view.stock-detail-v2 .stock-mini-chart {
  position: relative;
  min-height: 310px;
  display: block !important;
  padding: 0;
  overflow: visible;
  background: transparent;
}

#stock-view.stock-detail-v2 .stock-mini-chart svg {
  width: 100%;
  height: auto;
  min-height: 280px;
  display: block;
  overflow: visible;
}

#stock-view.stock-detail-v2 .stock-v2-chart-summary {
  position: absolute;
  z-index: 2;
  top: 2px;
  left: 58px;
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 5px 8px;
  border-radius: 4px;
  background: rgba(255,255,255,.9);
}

#stock-view.stock-detail-v2 .stock-v2-chart-summary strong {
  font-size: 15px;
  font-weight: 900;
}

#stock-view.stock-detail-v2 .stock-v2-chart-summary span {
  color: var(--v2-muted);
  font-size: 10px;
  font-weight: 750;
}

#stock-view.stock-detail-v2 .stock-v2-chart-summary.up strong {
  color: var(--v2-positive);
}

#stock-view.stock-detail-v2 .stock-v2-chart-summary.down strong {
  color: var(--v2-negative);
}

#stock-view.stock-detail-v2 .stock-v2-chart-grid line {
  stroke: #e8ecea;
  stroke-width: 1;
}

#stock-view.stock-detail-v2 .stock-v2-chart-grid text,
#stock-view.stock-detail-v2 .stock-v2-chart-date {
  fill: #87918e;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

#stock-view.stock-detail-v2 .stock-v2-chart-area {
  fill: rgba(13, 107, 91, .08);
  stroke: none;
}

#stock-view.stock-detail-v2 .stock-v2-price-svg.down .stock-v2-chart-area {
  fill: rgba(35, 104, 170, .08);
}

#stock-view.stock-detail-v2 .stock-v2-chart-line {
  fill: none;
  stroke: var(--v2-positive);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

#stock-view.stock-detail-v2 .stock-v2-price-svg.down .stock-v2-chart-line {
  stroke: var(--v2-negative);
}

#stock-view.stock-detail-v2 .stock-v2-chart-end,
#stock-view.stock-detail-v2 .stock-v2-hover-point {
  fill: #fff;
  stroke: var(--v2-positive);
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
}

#stock-view.stock-detail-v2 .stock-v2-price-svg.down :is(.stock-v2-chart-end, .stock-v2-hover-point) {
  stroke: var(--v2-negative);
}

#stock-view.stock-detail-v2 .stock-v2-volume-bars rect {
  fill: #cdd5d2;
}

#stock-view.stock-detail-v2 .stock-v2-hover-line {
  stroke: #6b7572;
  stroke-width: 1;
  stroke-dasharray: 4 4;
  vector-effect: non-scaling-stroke;
}

#stock-view.stock-detail-v2 .stock-v2-chart-hit {
  fill: transparent;
  cursor: crosshair;
}

#stock-view.stock-detail-v2 .stock-v2-chart-tooltip {
  position: absolute;
  z-index: 5;
  top: 34px;
  min-width: 126px;
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border-radius: 6px;
  background: #17201f;
  color: #fff;
  pointer-events: none;
  transform: translateX(-50%);
}

#stock-view.stock-detail-v2 .stock-v2-chart-tooltip span,
#stock-view.stock-detail-v2 .stock-v2-chart-tooltip em {
  color: #bdc8c5;
  font-size: 10px;
  font-style: normal;
}

#stock-view.stock-detail-v2 .stock-v2-chart-tooltip strong {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

#stock-view.stock-detail-v2 .stock-v2-chart-source {
  margin: 8px 0 0;
  color: var(--v2-muted);
  font-size: 10px;
  line-height: 1.5;
}

#stock-view.stock-detail-v2 #stock-summary-section .stock-visual-main {
  grid-area: decision;
  align-content: start;
  gap: 18px;
  padding: 24px;
  background: var(--v2-surface-subtle);
}

#stock-view.stock-detail-v2 #stock-summary-section .score-ring {
  width: 100%;
  min-height: 82px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 4px 10px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--v2-line);
}

#stock-view.stock-detail-v2 #stock-summary-section .score-ring small {
  grid-column: 1 / -1;
  color: var(--v2-muted);
  font-size: 11px !important;
}

#stock-view.stock-detail-v2 #stock-summary-section .score-ring span {
  color: var(--v2-accent);
  font-size: 34px !important;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

#stock-view.stock-detail-v2 #stock-summary-section .stock-visual-main h2 {
  max-width: none;
  margin: 0;
  color: var(--v2-text);
  font-size: 24px !important;
}

#stock-view.stock-detail-v2 #stock-summary-section #stock-summary-line {
  display: -webkit-box;
  margin-top: 10px;
  color: #495451;
  font-size: 13px !important;
  line-height: 1.65;
}

#stock-view.stock-detail-v2 .stock-summary-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border-top: 1px solid var(--v2-line);
  background: var(--v2-surface);
}

#stock-view.stock-detail-v2 .summary-signal-card {
  min-height: 104px;
  align-content: start;
  padding: 18px;
  border: 0;
  border-right: 1px solid var(--v2-line);
}

#stock-view.stock-detail-v2 .summary-signal-card:last-child {
  border-right: 0;
}

#stock-view.stock-detail-v2 .summary-signal-card span {
  color: var(--v2-muted);
  font-size: 11px !important;
}

#stock-view.stock-detail-v2 .summary-signal-card strong {
  justify-self: end !important;
  color: var(--v2-text);
  font-size: 14px;
  text-align: right !important;
}

#stock-view.stock-detail-v2 .summary-signal-card .signal-meter {
  height: 5px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #e7ebe9;
}

#stock-view.stock-detail-v2 .summary-signal-card .signal-meter i {
  background: var(--v2-accent);
}

#stock-view.stock-detail-v2 .stock-v2-intelligence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

#stock-view.stock-detail-v2 .stock-v2-data-panel {
  min-width: 0;
  min-height: 218px;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 20px;
}

#stock-view.stock-detail-v2 .stock-v2-data-panel > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--v2-line);
}

#stock-view.stock-detail-v2 .stock-v2-data-panel > header > strong {
  color: var(--v2-accent);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

#stock-view.stock-detail-v2 .stock-v2-range-value {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

#stock-view.stock-detail-v2 .stock-v2-range-value strong {
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}

#stock-view.stock-detail-v2 .stock-v2-range-value span,
#stock-view.stock-detail-v2 .stock-v2-range-labels,
#stock-view.stock-detail-v2 .stock-v2-consensus-chart > p {
  color: var(--v2-muted);
  font-size: 11px;
}

#stock-view.stock-detail-v2 .stock-v2-range-track {
  --position: 50%;
  position: relative;
  height: 8px;
  margin: 30px 2px 12px;
  border-radius: 99px;
  background: #dfe5e3;
}

#stock-view.stock-detail-v2 .stock-v2-range-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--position);
  border-radius: inherit;
  background: var(--v2-accent);
}

#stock-view.stock-detail-v2 .stock-v2-range-marker {
  position: absolute;
  top: 50%;
  left: var(--position);
  width: 14px;
  height: 14px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--v2-text);
  box-shadow: 0 0 0 1px var(--v2-text);
  transform: translate(-50%, -50%);
}

#stock-view.stock-detail-v2 .stock-v2-range-marker span {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  padding: 3px 6px;
  border-radius: 4px;
  background: var(--v2-text);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
  transform: translateX(-50%);
}

#stock-view.stock-detail-v2 .stock-v2-range-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

#stock-view.stock-detail-v2 .stock-v2-consensus-chart,
#stock-view.stock-detail-v2 .stock-v2-flow-chart {
  display: grid;
  gap: 13px;
}

#stock-view.stock-detail-v2 .stock-v2-comparison-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 92px;
  align-items: center;
  gap: 10px;
}

#stock-view.stock-detail-v2 .stock-v2-comparison-row > span {
  color: var(--v2-muted);
  font-size: 11px;
  font-weight: 750;
}

#stock-view.stock-detail-v2 .stock-v2-comparison-row > div {
  height: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: #e7ebe9;
}

#stock-view.stock-detail-v2 .stock-v2-comparison-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #85938f;
}

#stock-view.stock-detail-v2 .stock-v2-comparison-row.target i {
  background: var(--v2-accent);
}

#stock-view.stock-detail-v2 .stock-v2-comparison-row strong {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

#stock-view.stock-detail-v2 .stock-v2-flow-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 86px;
  align-items: center;
  gap: 10px;
}

#stock-view.stock-detail-v2 .stock-v2-flow-row > span {
  color: var(--v2-muted);
  font-size: 11px;
  font-weight: 750;
}

#stock-view.stock-detail-v2 .stock-v2-flow-track {
  position: relative;
  height: 11px;
  border-radius: 2px;
  background: #edf0ef;
}

#stock-view.stock-detail-v2 .stock-v2-flow-track::after {
  position: absolute;
  top: -3px;
  bottom: -3px;
  left: 50%;
  width: 1px;
  background: #aeb8b5;
  content: "";
}

#stock-view.stock-detail-v2 .stock-v2-flow-track i {
  position: absolute;
  top: 1px;
  bottom: 1px;
}

#stock-view.stock-detail-v2 .stock-v2-flow-row.positive i {
  left: 50%;
  background: var(--v2-positive);
}

#stock-view.stock-detail-v2 .stock-v2-flow-row.negative i {
  right: 50%;
  background: var(--v2-negative);
}

#stock-view.stock-detail-v2 .stock-v2-flow-row strong {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

#stock-view.stock-detail-v2 .stock-v2-sentiment-chart {
  display: grid;
  grid-template-columns: 106px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
}

#stock-view.stock-detail-v2 .stock-v2-donut {
  width: 102px;
  height: 102px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--v2-positive) 0 var(--positive), #cfd6d3 var(--positive) var(--neutral), var(--v2-negative) var(--neutral) 100%);
}

#stock-view.stock-detail-v2 .stock-v2-donut::before {
  grid-area: 1 / 1;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fff;
  content: "";
}

#stock-view.stock-detail-v2 .stock-v2-donut > div {
  z-index: 1;
  grid-area: 1 / 1;
  display: grid;
  text-align: center;
}

#stock-view.stock-detail-v2 .stock-v2-donut strong {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

#stock-view.stock-detail-v2 .stock-v2-donut span {
  color: var(--v2-muted);
  font-size: 9px;
}

#stock-view.stock-detail-v2 .stock-v2-sentiment-legend {
  display: grid;
  gap: 9px;
  margin: 0;
}

#stock-view.stock-detail-v2 .stock-v2-sentiment-legend > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

#stock-view.stock-detail-v2 .stock-v2-sentiment-legend dt,
#stock-view.stock-detail-v2 .stock-v2-sentiment-legend dd {
  margin: 0;
  font-size: 11px;
}

#stock-view.stock-detail-v2 .stock-v2-sentiment-legend dt {
  font-weight: 850;
}

#stock-view.stock-detail-v2 .stock-v2-sentiment-legend dd {
  color: var(--v2-muted);
  font-variant-numeric: tabular-nums;
}

#stock-view.stock-detail-v2 .stock-v2-sentiment-legend .positive dt {
  color: var(--v2-positive);
}

#stock-view.stock-detail-v2 .stock-v2-sentiment-legend .negative dt {
  color: var(--v2-negative);
}

#stock-view.stock-detail-v2 .stock-v2-empty {
  margin: 0;
  padding: 28px 12px;
  color: var(--v2-muted);
  font-size: 12px;
  text-align: center;
}

#stock-view.stock-detail-v2 .stock-summary-data,
#stock-view.stock-detail-v2 .stock-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  background: transparent;
}

#stock-view.stock-detail-v2 .stock-summary-data .stock-section-card {
  padding: 20px;
}

#stock-view.stock-detail-v2 .stock-summary-data .stock-section-card h2 {
  margin: 0 0 12px;
  padding: 0 0 12px;
  border: 0;
  border-bottom: 1px solid var(--v2-line);
  color: var(--v2-text);
  font-size: 18px !important;
}

#stock-view.stock-detail-v2 .stock-stat-grid,
#stock-view.stock-detail-v2 .evidence-metric-grid {
  padding: 0;
}

#stock-view.stock-detail-v2 .stock-stat-grid > div,
#stock-view.stock-detail-v2 .evidence-metric-grid > div {
  padding: 13px 0;
  border-color: var(--v2-line);
}

#stock-view.stock-detail-v2 .stock-stat-grid > div:nth-child(odd),
#stock-view.stock-detail-v2 .evidence-metric-grid > div:nth-child(odd) {
  padding-right: 16px;
}

#stock-view.stock-detail-v2 .stock-stat-grid > div:nth-child(even),
#stock-view.stock-detail-v2 .evidence-metric-grid > div:nth-child(even) {
  padding-left: 16px;
}

#stock-view.stock-detail-v2 #stock-strategy-section {
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  align-items: start;
  gap: 16px;
  background: transparent;
}

#stock-view.stock-detail-v2 #stock-strategy-section:not([hidden]) {
  display: grid;
}

#stock-view.stock-detail-v2 #stock-strategy-section .ai-analysis-panel,
#stock-view.stock-detail-v2 #stock-strategy-section .stock-strategy-card {
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--v2-line);
}

#stock-view.stock-detail-v2 #stock-strategy-section .ai-analysis-head,
#stock-view.stock-detail-v2 #stock-strategy-section .strategy-head {
  padding: 20px;
  border-bottom: 1px solid var(--v2-line);
}

#stock-view.stock-detail-v2 #stock-strategy-section .ai-analysis-head h2,
#stock-view.stock-detail-v2 #stock-strategy-section .strategy-head h2 {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--v2-text);
  font-size: 20px !important;
}

#stock-view.stock-detail-v2 #stock-strategy-section .strategy-decision-hero,
#stock-view.stock-detail-v2 #stock-strategy-section .strategy-key-levels,
#stock-view.stock-detail-v2 #stock-strategy-section .strategy-steps,
#stock-view.stock-detail-v2 #stock-strategy-section .strategy-detail-disclosure {
  margin: 0;
  padding: 20px;
  border: 0;
  border-bottom: 1px solid var(--v2-line);
  border-radius: 0;
  background: #fff;
}

#stock-view.stock-detail-v2 #stock-strategy-section .strategy-decision-hero {
  background: var(--v2-surface-subtle);
}

#stock-view.stock-detail-v2 #stock-strategy-section .strategy-decision-hero strong {
  color: var(--v2-text);
  font-size: 22px !important;
  line-height: 1.45;
}

#stock-view.stock-detail-v2 #stock-strategy-section .strategy-key-levels {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#stock-view.stock-detail-v2 #stock-strategy-section .strategy-key-levels > div {
  padding: 0 16px;
  border-right: 1px solid var(--v2-line);
}

#stock-view.stock-detail-v2 #stock-strategy-section .strategy-key-levels > div:first-child {
  padding-left: 0;
}

#stock-view.stock-detail-v2 #stock-strategy-section .strategy-key-levels > div:last-child {
  padding-right: 0;
  border-right: 0;
}

#stock-view.stock-detail-v2 #stock-strategy-section .strategy-steps li::marker {
  color: var(--v2-accent);
  font-weight: 900;
}

#stock-view.stock-detail-v2 #stock-strategy-section .strategy-range-chart {
  padding: 22px 20px 18px;
  border-color: var(--v2-line);
}

#stock-view.stock-detail-v2 #stock-strategy-section .strategy-level-card,
#stock-view.stock-detail-v2 #stock-strategy-section .strategy-level-card.featured {
  padding: 16px 20px;
  border-color: var(--v2-line);
}

#stock-view.stock-detail-v2 #stock-evidence-section {
  gap: 16px;
  background: transparent;
}

#stock-view.stock-detail-v2 #stock-evidence-section:not([hidden]) {
  display: grid;
}

#stock-view.stock-detail-v2 #stock-evidence-section .stock-ai-evidence {
  padding: 20px;
}

#stock-view.stock-detail-v2 #stock-evidence-section .evidence-head {
  padding: 0 0 14px;
  border: 0;
  border-bottom: 1px solid var(--v2-line);
}

#stock-view.stock-detail-v2 #stock-evidence-section .evidence-summary-table {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 16px 0;
}

#stock-view.stock-detail-v2 #stock-evidence-section .ai-section-list {
  padding: 0;
}

#stock-view.stock-detail-v2 #stock-evidence-section .evidence-core-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  background: transparent;
}

#stock-view.stock-detail-v2 #stock-evidence-section .stock-section-card,
#stock-view.stock-detail-v2 #stock-evidence-section .stock-section-card.wide {
  grid-column: auto;
  padding: 20px;
}

#stock-view.stock-detail-v2 #stock-evidence-section .stock-section-card > .section-eyebrow {
  padding: 0;
  border: 0;
}

#stock-view.stock-detail-v2 #stock-evidence-section .stock-section-card > h2 {
  margin: 0 0 12px;
  padding: 0 0 12px;
  border: 0;
  border-bottom: 1px solid var(--v2-line);
  color: var(--v2-text);
  font-size: 18px !important;
}

#stock-view.stock-detail-v2 #stock-evidence-section .research-report-list,
#stock-view.stock-detail-v2 #stock-evidence-section .event-list {
  margin-top: 10px;
}

@media (max-width: 1040px) {
  #stock-view.stock-detail-v2 .stock-mobile-detail {
    grid-template-columns: 1fr;
  }

  #stock-view.stock-detail-v2 #stock-summary-section .stock-visual-card {
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, .7fr);
  }

  #stock-view.stock-detail-v2 #stock-strategy-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  #stock-view.stock-detail-v2 .stock-v2-commandbar {
    min-height: 0;
    display: grid;
    gap: 14px;
    margin-bottom: 12px;
    padding: 16px;
  }

  #stock-view.stock-detail-v2 .stock-v2-commandbar .identity h1 {
    font-size: 24px !important;
  }

  #stock-view.stock-detail-v2 .stock-v2-page-kicker {
    display: none;
  }

  #stock-view.stock-detail-v2 .stock-v2-commandbar .search {
    width: 100%;
  }

  #stock-view.stock-detail-v2 .stock-mobile-detail {
    gap: 12px;
  }

  #stock-view.stock-detail-v2 .stock-quote-card,
  #stock-view.stock-detail-v2 .stock-company-profile,
  #stock-view.stock-detail-v2 .stock-tab-panel > * {
    padding-inline: 16px;
  }

  #stock-view.stock-detail-v2 .stock-quote-card,
  #stock-view.stock-detail-v2 .stock-company-profile {
    min-height: 0;
  }

  #stock-view.stock-detail-v2 .stock-v2-as-of {
    max-width: 132px;
  }

  #stock-view.stock-detail-v2 .stock-price-main > strong {
    font-size: 38px !important;
  }

  #stock-view.stock-detail-v2 .quote-strip,
  #stock-view.stock-detail-v2 .stock-quote-card .quote-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #stock-view.stock-detail-v2 .quote-strip > div,
  #stock-view.stock-detail-v2 .stock-quote-card .quote-strip > div {
    padding: 11px 0;
    border-right: 0;
    border-bottom: 1px solid var(--v2-line);
  }

  #stock-view.stock-detail-v2 .quote-strip > div:nth-child(odd) {
    padding-right: 12px;
    border-right: 1px solid var(--v2-line);
  }

  #stock-view.stock-detail-v2 .quote-strip > div:nth-child(even) {
    padding-left: 12px;
  }

  #stock-view.stock-detail-v2 .stock-detail-tabs,
  #stock-view.stock-detail-v2 .stock-section-tabs {
    top: 80px;
    height: 50px;
    padding-inline: 0;
  }

  #stock-view.stock-detail-v2 .stock-detail-tabs button,
  #stock-view.stock-detail-v2 .stock-section-tabs button {
    height: 48px;
  }

  #stock-view.stock-detail-v2 #stock-summary-section .stock-visual-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "chart"
      "decision";
  }

  #stock-view.stock-detail-v2 .stock-v2-chart-pane {
    padding: 18px 14px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--v2-line);
  }

  #stock-view.stock-detail-v2 .stock-v2-chart-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  #stock-view.stock-detail-v2 .stock-v2-periods {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  #stock-view.stock-detail-v2 .stock-v2-periods button {
    min-width: 0;
    padding-inline: 4px;
  }

  #stock-view.stock-detail-v2 .stock-mini-chart {
    min-height: 250px;
  }

  #stock-view.stock-detail-v2 .stock-mini-chart svg {
    min-height: 228px;
  }

  #stock-view.stock-detail-v2 #stock-summary-section .stock-visual-main {
    padding: 18px;
  }

  #stock-view.stock-detail-v2 #stock-summary-section .stock-visual-main h2 {
    font-size: 22px !important;
  }

  #stock-view.stock-detail-v2 .stock-summary-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #stock-view.stock-detail-v2 .summary-signal-card:nth-child(2) {
    border-right: 0;
  }

  #stock-view.stock-detail-v2 .summary-signal-card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--v2-line);
  }

  #stock-view.stock-detail-v2 .stock-v2-intelligence-grid,
  #stock-view.stock-detail-v2 .stock-summary-data,
  #stock-view.stock-detail-v2 .stock-section-grid,
  #stock-view.stock-detail-v2 #stock-evidence-section .evidence-core-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  #stock-view.stock-detail-v2 .stock-v2-data-panel {
    min-height: 0;
    padding: 16px;
  }

  #stock-view.stock-detail-v2 .stock-v2-sentiment-chart {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
  }

  #stock-view.stock-detail-v2 .stock-v2-donut {
    width: 92px;
    height: 92px;
  }

  #stock-view.stock-detail-v2 .stock-v2-donut::before {
    width: 64px;
    height: 64px;
  }

  #stock-view.stock-detail-v2 .stock-summary-data .stock-section-card,
  #stock-view.stock-detail-v2 #stock-evidence-section .stock-ai-evidence,
  #stock-view.stock-detail-v2 #stock-evidence-section .stock-section-card,
  #stock-view.stock-detail-v2 #stock-evidence-section .stock-section-card.wide {
    padding: 16px;
  }

  #stock-view.stock-detail-v2 #stock-strategy-section .strategy-decision-hero strong {
    font-size: 19px !important;
  }

  #stock-view.stock-detail-v2 #stock-evidence-section .evidence-summary-table {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  #stock-view.stock-detail-v2 .stock-v2-commandbar,
  #stock-view.stock-detail-v2 .stock-quote-card,
  #stock-view.stock-detail-v2 .stock-company-profile {
    padding: 14px;
  }

  #stock-view.stock-detail-v2 .stock-price-main > strong {
    font-size: 34px !important;
  }

  #stock-view.stock-detail-v2 .stock-price-main > div,
  #stock-view.stock-detail-v2 .stock-price-main > div > span {
    font-size: 16px !important;
  }

  #stock-view.stock-detail-v2 .stock-v2-chart-summary {
    left: 42px;
  }

  #stock-view.stock-detail-v2 .stock-v2-comparison-row {
    grid-template-columns: 40px minmax(0, 1fr) 78px;
  }

  #stock-view.stock-detail-v2 .stock-v2-flow-row {
    grid-template-columns: 42px minmax(0, 1fr) 74px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #stock-view.stock-detail-v2 *,
  #stock-view.stock-detail-v2 *::before,
  #stock-view.stock-detail-v2 *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* 2026-07-24 UI clarity pass: one hierarchy, one decision per screen. */
body {
  font-size: var(--type-body);
  line-height: 1.55;
}

body :is(button, input, select, textarea) {
  font-size: var(--type-label) !important;
}

body :is(
  .identity h1,
  #stock-name,
  #trend-title,
  #watchlist-view .identity h1,
  #recommend-view .identity h1,
  #chart-view .identity h1,
  #market-view .identity h1
) {
  font-size: var(--type-title) !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
}

body :is(
  .section-title,
  .stock-company-profile h2,
  .stock-visual-main h2,
  .stock-section-card h2,
  .chart-detail-grid h2,
  .ai-analysis-head h2,
  .watchlist-report-title h2,
  .market-impact-copy h2,
  .market-impact-flow-title strong,
  .recommend-body h3,
  .chart-ai-panel h3,
  .chart-ai-panel h4
) {
  font-size: var(--type-section) !important;
  font-weight: 900 !important;
  line-height: 1.4 !important;
}

body :is(
  .stock-company-summary,
  .watch-preopen-point ul,
  .trend-impact,
  .recommend-body,
  .chart-ai-summary,
  .chart-ai-explanation,
  .market-impact-flow-grid strong,
  .market-impact-detail p
) {
  font-size: var(--type-body) !important;
  line-height: 1.6 !important;
}

body :is(
  .section-eyebrow,
  .identity p,
  .stock-company-industry,
  .stock-company-source,
  .recommend-rank,
  .recommend-name span,
  .trend-event-title span,
  .event-schedule strong,
  .market-impact-flow-title span,
  .market-impact-node-label,
  .market-impact-copy p,
  .watch-stock-details > summary,
  .recommend-detail-disclosure > summary,
  .chart-detail-disclosure > summary,
  .chart-ai-detail-disclosure > summary,
  .trend-event-disclosure > summary,
  .market-impact-disclosure > summary
) {
  font-size: var(--type-caption) !important;
}

body :is(#quote-price, .stock-price-main > strong) {
  font-size: var(--type-display) !important;
  font-variant-numeric: tabular-nums;
}

body :is(
  .watch-stock-card,
  .recommend-card,
  .trend-event,
  .thread-item,
  .watch-chart-card,
  .chart-snapshot-panel,
  .market-impact-hero,
  .market-impact-flow,
  .market-impact-detail
) {
  border-radius: 8px !important;
}

#stock-view .stock-company-profile {
  gap: 10px;
  padding: 18px 20px;
}

#stock-view .stock-company-profile-head {
  gap: 1px;
}

#stock-view .stock-company-summary {
  max-width: 760px;
  color: #343840;
  font-weight: 700;
  word-break: keep-all;
}

#stock-view .stock-company-details summary {
  min-height: 44px;
  padding-block: 11px;
  font-size: var(--type-label) !important;
}

.watch-stock-card {
  gap: 12px;
  padding: 16px;
}

.watch-stock-loading {
  min-height: 112px;
  align-content: center;
  box-shadow: none;
}

.watch-stock-loading > strong {
  font-size: var(--type-section) !important;
}

.watch-stock-loading-status {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: var(--type-caption);
  font-weight: 800;
}

.watch-stock-loading-status .inline-loading-spinner {
  width: 18px;
  height: 18px;
  border-width: 2px;
}

.watch-stock-loading.is-error {
  border-style: dashed;
  background: #fafafa;
}

#watch-chart-meta.is-loading {
  display: flex;
  min-height: 20px;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: var(--type-caption) !important;
  font-weight: 800;
}

#watch-chart-meta.is-loading .inline-loading-spinner {
  width: 14px;
  height: 14px;
  border-width: 2px;
}

.watch-chart-empty-card.is-loading {
  min-height: 132px;
  border-radius: 8px;
  box-shadow: none;
}

.watch-stock-name strong {
  font-size: var(--type-section) !important;
}

.watch-stock-name .watch-stock-inline-price,
.watch-stock-name .watch-stock-inline-change {
  font-size: var(--type-section) !important;
}

.watch-preopen-point {
  gap: 8px;
  padding: 14px;
  border-radius: 8px;
}

.watch-preopen-point summary strong {
  font-size: var(--type-section) !important;
}

.watch-stock-details,
.recommend-detail-disclosure,
.chart-detail-disclosure,
.chart-ai-detail-disclosure,
.trend-event-disclosure,
.market-impact-disclosure {
  min-width: 0;
  border-top: 1px solid var(--report-line, var(--line-soft));
}

:is(
  .watch-stock-details,
  .recommend-detail-disclosure,
  .chart-detail-disclosure,
  .chart-ai-detail-disclosure,
  .trend-event-disclosure,
  .market-impact-disclosure
) > summary {
  position: relative;
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 12px 28px 12px 0;
  color: var(--report-muted, var(--muted));
  cursor: pointer;
  font-weight: 900;
  line-height: 1.4;
  list-style: none;
}

:is(
  .watch-stock-details,
  .recommend-detail-disclosure,
  .chart-detail-disclosure,
  .chart-ai-detail-disclosure,
  .trend-event-disclosure,
  .market-impact-disclosure
) > summary::-webkit-details-marker {
  display: none;
}

:is(
  .watch-stock-details,
  .recommend-detail-disclosure,
  .chart-detail-disclosure,
  .chart-ai-detail-disclosure,
  .trend-event-disclosure,
  .market-impact-disclosure
) > summary::after {
  position: absolute;
  top: 50%;
  right: 2px;
  color: var(--report-muted, var(--muted));
  content: "+";
  font-size: 18px;
  transform: translateY(-50%);
}

:is(
  .watch-stock-details,
  .recommend-detail-disclosure,
  .chart-detail-disclosure,
  .chart-ai-detail-disclosure,
  .trend-event-disclosure,
  .market-impact-disclosure
)[open] > summary::after {
  content: "−";
}

.watch-stock-details > .watch-quote-strip {
  margin-top: 2px;
}

.watch-stock-details > .watch-insight-grid {
  margin-top: 10px;
}

.recommend-card {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.recommend-head {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "rank rank"
    "name score"
    "metrics metrics"
    "sector sector"
    "actions actions";
  gap: 12px;
}

.recommend-rank-line {
  grid-area: rank;
}

.recommend-name {
  grid-area: name;
}

.recommend-score {
  grid-area: score;
  align-self: center;
}

.recommend-metrics {
  grid-area: metrics;
}

.recommend-us-sector {
  grid-area: sector;
}

.recommend-card-actions {
  grid-area: actions;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.recommend-detail-disclosure > .recommend-body {
  padding-top: 14px;
}

.watch-chart-card {
  gap: 14px;
}

.chart-detail-disclosure > :not(summary),
.chart-ai-detail-disclosure > :not(summary) {
  margin-top: 12px;
}

.trend-event {
  padding: 16px;
}

.trend-event-head {
  margin-bottom: 8px;
}

.trend-event-title > strong {
  font-size: var(--type-section) !important;
}

.trend-event-disclosure {
  margin-top: 12px;
}

.trend-event-disclosure > :not(summary) {
  margin-top: 10px;
}

.market-impact-dashboard {
  gap: 12px;
}

.market-impact-hero,
.market-impact-flow {
  padding: 16px;
}

.market-impact-center {
  border-radius: 8px;
}

.market-impact-flow-grid article {
  border-radius: 8px;
}

.market-impact-disclosure > .market-impact-details {
  padding-top: 12px;
}

@media (max-width: 720px) {
  .shell {
    padding-inline: 14px;
  }

  #trend-view {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
  }

  #trend-view .trend-tabs,
  #trend-view .trend-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  #stock-view .topbar,
  #stock-view .stock-quote-card,
  #stock-view .stock-company-profile,
  #stock-view .stock-tab-panel > * {
    padding-inline: 16px;
  }

  #stock-view #stock-evidence-section > .evidence-core-grid {
    padding-inline: 0 !important;
  }

  .recommend-head {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .recommend-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-impact-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .market-impact-orbit {
    min-height: 310px;
  }

  .market-impact-flow-grid,
  .market-impact-details {
    grid-template-columns: minmax(0, 1fr);
  }

  .trend-watchlist-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .trend-watchlist-head > span {
    text-align: left;
  }

  .trend-watch-stock-rail {
    width: auto;
    margin-right: 0;
    padding-right: 0;
  }

  .trend-watch-news-board {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .trend-watch-news-group.neutral {
    grid-column: auto;
  }
}

@media (max-width: 420px) {
  :root {
    --type-display: 30px;
    --type-title: 24px;
  }

  .shell {
    padding-inline: 12px;
  }

  #trend-view {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
  }

  .watch-stock-card,
  .recommend-card,
  .trend-event,
  .watch-chart-card {
    padding: 14px;
  }

  .watch-stock-card .remove-watch {
    height: 36px;
    padding-inline: 10px;
  }

  .recommend-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-impact-orbit {
    min-height: 292px;
  }

  .trend-tabs {
    margin-bottom: 18px;
  }

  .trend-tab {
    height: 46px;
    padding-inline: 6px;
    font-size: 13px !important;
  }

  .trend-watch-stock-chip {
    min-height: 42px;
    padding-inline: 14px;
  }
}

/* Stock detail v3: real-data research workspace. */
#stock-view.stock-detail-v3 {
  --stock-v3-bg: #f3f4f6;
  --stock-v3-panel: #ffffff;
  --stock-v3-text: #16181d;
  --stock-v3-muted: #8a919d;
  --stock-v3-line: #e8ebef;
  --stock-v3-line-strong: #d8dde4;
  --stock-v3-red: #e03131;
  --stock-v3-red-soft: #fff0f1;
  --stock-v3-blue: #3478df;
  --stock-v3-blue-soft: #edf4ff;
  --stock-v3-green: #37bd7b;
  --stock-v3-yellow: #efbd36;
  width: min(1180px, 100%);
  max-width: 100%;
  margin: 0 auto;
  background: var(--stock-v3-bg);
  color: var(--stock-v3-text);
  font-family:
    -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR",
    sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  overflow: clip;
}

#stock-view.stock-detail-v3,
#stock-view.stock-detail-v3 * {
  min-width: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR",
    sans-serif !important;
}

#stock-view.stock-detail-v3 .positive {
  color: var(--stock-v3-red) !important;
}

#stock-view.stock-detail-v3 .negative {
  color: var(--stock-v3-blue) !important;
}

#stock-view.stock-detail-v3 .stock-v3-commandbar {
  position: relative;
  z-index: 42;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px minmax(280px, 360px);
  align-items: center;
  gap: 12px;
  min-height: 74px;
  padding: 14px 18px;
  border: 1px solid var(--stock-v3-line);
  border-radius: 8px 8px 0 0;
  background: rgba(255, 255, 255, 0.98);
}

#stock-view.stock-detail-v3 .stock-v3-back,
#stock-view.stock-detail-v3 .stock-v3-star {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--stock-v3-text);
  cursor: pointer;
  font-size: 27px;
  font-weight: 500;
  line-height: 1;
}

#stock-view.stock-detail-v3 .stock-v3-back:hover,
#stock-view.stock-detail-v3 .stock-v3-star:hover {
  background: #f3f4f6;
}

#stock-view.stock-detail-v3 .stock-v3-star.active {
  color: var(--stock-v3-red);
}

#stock-view.stock-detail-v3 .stock-v3-command-title {
  display: flex;
  align-items: baseline;
  gap: 9px;
  overflow: hidden;
}

#stock-view.stock-detail-v3 .stock-v3-command-title h1 {
  order: 1;
  margin: 0;
  color: var(--stock-v3-text);
  font-size: 24px !important;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#stock-view.stock-detail-v3 .stock-v3-command-title > span {
  order: 2;
  color: var(--stock-v3-muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

#stock-view.stock-detail-v3 .stock-v3-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  gap: 8px;
}

#stock-view.stock-detail-v3 .stock-v3-search .search-box {
  position: relative;
}

#stock-view.stock-detail-v3 .stock-v3-search input,
#stock-view.stock-detail-v3 .stock-v3-search > button {
  height: 42px;
  border: 1px solid var(--stock-v3-line-strong);
  border-radius: 6px;
}

#stock-view.stock-detail-v3 .stock-v3-search input {
  width: 100%;
  padding: 0 13px;
  background: #ffffff;
  color: var(--stock-v3-text);
  outline: 0;
}

#stock-view.stock-detail-v3 .stock-v3-search > button {
  background: #17191e;
  color: #ffffff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

#stock-view.stock-detail-v3 .stock-v3-layout {
  display: grid;
  gap: 0;
}

#stock-view.stock-detail-v3 .stock-v3-quote-card {
  display: grid;
  grid-template-columns: minmax(270px, 0.72fr) minmax(480px, 1.28fr);
  grid-template-areas:
    "head chart"
    "price chart"
    "metrics chart";
  gap: 12px 30px;
  padding: 26px 30px 24px;
  border-right: 1px solid var(--stock-v3-line);
  border-left: 1px solid var(--stock-v3-line);
  background: #ffffff;
}

#stock-view.stock-detail-v3 .stock-v3-quote-head {
  grid-area: head;
  display: flex;
  align-items: center;
  gap: 9px;
  align-self: end;
  color: var(--stock-v3-muted);
  font-size: 12px;
  font-weight: 700;
}

#stock-view.stock-detail-v3 .market-chip {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 0;
  border-radius: 999px;
  background: #f1f3f5;
  color: #59616d;
  font-size: 11px !important;
  font-weight: 800;
}

#stock-view.stock-detail-v3 .stock-v3-price-line {
  grid-area: price;
  align-self: start;
}

#stock-view.stock-detail-v3 .stock-v3-price-line > strong {
  display: block;
  color: var(--stock-v3-text);
  font-size: 40px !important;
  font-weight: 900;
  line-height: 1.08;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

#stock-view.stock-detail-v3 .stock-v3-price-line > strong::after {
  margin-left: 3px;
  color: inherit;
  content: "원";
  font-size: 0.52em;
  font-weight: 800;
}

#stock-view.stock-detail-v3 .stock-v3-price-line > div {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  font-size: 17px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

#stock-view.stock-detail-v3 .stock-v3-chart-pane {
  grid-area: chart;
  position: relative;
  align-self: stretch;
  min-height: 360px;
  padding: 2px 0 0;
}

#stock-view.stock-detail-v3 .stock-mini-chart {
  position: relative;
  width: 100%;
  min-height: 292px;
  padding: 0;
  border: 0;
  background: #ffffff;
  overflow: visible;
}

#stock-view.stock-detail-v3 .stock-mini-chart svg,
#stock-view.stock-detail-v3 .stock-v3-main-chart svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

#stock-view.stock-detail-v3 .stock-v3-price-periods {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  margin: 3px 46px 0 8px;
}

#stock-view.stock-detail-v3 .stock-v3-price-periods button {
  height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #989ea8;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

#stock-view.stock-detail-v3 .stock-v3-price-periods button.active {
  background: #f2f3f5;
  color: var(--stock-v3-text);
}

#stock-view.stock-detail-v3 .stock-v3-chart-source {
  margin: 8px 0 0;
  color: var(--stock-v3-muted);
  font-size: 11px;
  line-height: 1.4;
  text-align: right;
}

#stock-view.stock-detail-v3 .stock-v3-quote-metrics {
  grid-area: metrics;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-self: end;
  margin: 4px 0 0;
  border-top: 1px solid var(--stock-v3-line);
}

#stock-view.stock-detail-v3 .stock-v3-quote-metrics > div {
  display: grid;
  gap: 3px;
  padding: 12px 10px 10px 0;
  border-bottom: 1px solid var(--stock-v3-line);
}

#stock-view.stock-detail-v3 .stock-v3-quote-metrics > div:nth-child(odd) {
  border-right: 1px solid var(--stock-v3-line);
}

#stock-view.stock-detail-v3 .stock-v3-quote-metrics > div:nth-child(even) {
  padding-left: 12px;
}

#stock-view.stock-detail-v3 .stock-v3-quote-metrics dt {
  color: var(--stock-v3-muted);
  font-size: 11px !important;
  font-weight: 700;
}

#stock-view.stock-detail-v3 .stock-v3-quote-metrics dd {
  margin: 0;
  color: var(--stock-v3-text);
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

#stock-view.stock-detail-v3 .stock-detail-tabs {
  position: sticky;
  z-index: 36;
  top: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0 30px;
  border: 1px solid var(--stock-v3-line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: none;
  overflow: visible;
}

#stock-view.stock-detail-v3 .stock-detail-tabs button {
  position: relative;
  min-height: 58px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #a0a5ae;
  font-size: 16px;
  font-weight: 800;
}

#stock-view.stock-detail-v3 .stock-detail-tabs button.active {
  background: transparent;
  color: var(--stock-v3-text);
}

#stock-view.stock-detail-v3 .stock-detail-tabs button.active::after {
  position: absolute;
  right: 12%;
  bottom: 0;
  left: 12%;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--stock-v3-text);
  content: "";
}

#stock-view.stock-detail-v3 .stock-tab-panel {
  padding: 18px 0 30px;
  background: var(--stock-v3-bg);
}

#stock-view.stock-detail-v3 .stock-v3-home {
  display: grid;
  gap: 14px;
}

#stock-view.stock-detail-v3 .stock-v3-home[hidden],
#stock-view.stock-detail-v3 .stock-v3-ai[hidden] {
  display: none;
}

#stock-view.stock-detail-v3 .stock-v3-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

#stock-view.stock-detail-v3 .stock-v3-section {
  padding: 24px 26px;
  border: 1px solid var(--stock-v3-line);
  border-radius: 8px;
  background: var(--stock-v3-panel);
  box-shadow: none;
}

#stock-view.stock-detail-v3 .stock-v3-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

#stock-view.stock-detail-v3 .stock-v3-section-head > div {
  display: grid;
  gap: 3px;
}

#stock-view.stock-detail-v3 .stock-v3-today-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
}

#stock-view.stock-detail-v3 .stock-v3-section-head > div > span,
#stock-view.stock-detail-v3 .stock-v3-ai-title > div > span {
  color: #9aa0aa;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

#stock-view.stock-detail-v3 .stock-v3-section-head h2,
#stock-view.stock-detail-v3 .stock-v3-ai-title h2 {
  margin: 0;
  color: var(--stock-v3-text);
  font-size: 20px !important;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0;
}

#stock-view.stock-detail-v3 .stock-v3-section-head time,
#stock-view.stock-detail-v3 .stock-v3-source {
  color: var(--stock-v3-muted);
  font-size: 11px;
  font-weight: 600;
  text-align: right;
}

#stock-view.stock-detail-v3 .stock-v3-summary-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 17px 18px 17px 38px;
  border-radius: 8px;
  background: #f6f7f9;
  color: #282c33;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.55;
}

#stock-view.stock-detail-v3 .stock-company-profile {
  display: block;
  margin: 0;
}

#stock-view.stock-detail-v3 .stock-company-summary {
  display: -webkit-box;
  margin: 0;
  color: #2d323a;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

#stock-view.stock-detail-v3 .stock-company-industry {
  margin: 12px 0 0;
  color: #5d6570;
  font-size: 12px;
  font-weight: 700;
}

#stock-view.stock-detail-v3 .stock-company-details {
  margin-top: 16px;
  border-top: 1px solid var(--stock-v3-line);
}

#stock-view.stock-detail-v3 .stock-company-details summary {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #555d68;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  list-style: none;
}

#stock-view.stock-detail-v3 .stock-company-details summary::after {
  content: "+";
  font-size: 16px;
}

#stock-view.stock-detail-v3 .stock-company-details[open] summary::after {
  content: "−";
}

#stock-view.stock-detail-v3 .stock-company-details dl {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
}

#stock-view.stock-detail-v3 .stock-company-details dl > div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
}

#stock-view.stock-detail-v3 .stock-company-details dt,
#stock-view.stock-detail-v3 .stock-company-details dd {
  margin: 0;
  font-size: 12px !important;
}

#stock-view.stock-detail-v3 .stock-company-details dt {
  color: var(--stock-v3-muted);
}

#stock-view.stock-detail-v3 .stock-company-details dd {
  color: #3b414a;
  font-weight: 650;
}

#stock-view.stock-detail-v3 .stock-company-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#stock-view.stock-detail-v3 .stock-company-links a,
#stock-view.stock-detail-v3 .stock-company-source a {
  color: var(--stock-v3-blue);
  font-size: 11px;
  font-weight: 750;
}

#stock-view.stock-detail-v3 .stock-company-source {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 14px 0 0;
  color: var(--stock-v3-muted);
  font-size: 10px;
}

#stock-view.stock-detail-v3 .stock-v3-update-list {
  display: grid;
  gap: 0;
}

#stock-view.stock-detail-v3 .stock-v3-update-row {
  display: grid;
  grid-template-columns: 28px 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 54px;
  border-bottom: 1px solid var(--stock-v3-line);
}

#stock-view.stock-detail-v3 .stock-v3-update-row:last-child {
  border-bottom: 0;
}

#stock-view.stock-detail-v3 .stock-v3-update-row > i {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #f0f2f5;
  color: #626b78;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

#stock-view.stock-detail-v3 .stock-v3-update-kind {
  color: var(--stock-v3-muted);
  font-size: 11px;
  font-weight: 800;
}

#stock-view.stock-detail-v3 .stock-v3-update-row strong {
  overflow: hidden;
  color: #2e333a;
  font-size: 13px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#stock-view.stock-detail-v3 .stock-v3-update-row time {
  color: var(--stock-v3-muted);
  font-size: 10px;
  white-space: nowrap;
}

#stock-view.stock-detail-v3 .stock-v3-checkpoints {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

#stock-view.stock-detail-v3 .stock-v3-checkpoint {
  display: grid;
  gap: 4px;
  padding: 15px;
  border: 1px solid var(--stock-v3-line);
  border-radius: 8px;
  background: #fafbfc;
}

#stock-view.stock-detail-v3 .stock-v3-checkpoint > span,
#stock-view.stock-detail-v3 .stock-v3-checkpoint small {
  color: var(--stock-v3-muted);
  font-size: 10px;
  font-weight: 700;
}

#stock-view.stock-detail-v3 .stock-v3-checkpoint strong {
  font-size: 15px;
  font-weight: 900;
}

#stock-view.stock-detail-v3 .stock-v3-section-description {
  margin: -10px 0 14px;
  color: var(--stock-v3-muted);
  font-size: 12px;
  line-height: 1.5;
}

#stock-view.stock-detail-v3 .stock-v3-keywords,
#stock-view.stock-detail-v3 .stock-v3-topic-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

#stock-view.stock-detail-v3 .stock-v3-keywords::-webkit-scrollbar,
#stock-view.stock-detail-v3 .stock-v3-topic-tabs::-webkit-scrollbar {
  display: none;
}

#stock-view.stock-detail-v3 .stock-v3-keywords > span,
#stock-view.stock-detail-v3 .stock-v3-topic-tabs button {
  flex: 0 0 auto;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--stock-v3-line-strong);
  border-radius: 999px;
  padding: 0 13px;
  background: #ffffff;
  color: #737a85;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

#stock-view.stock-detail-v3 .stock-v3-topic-tabs button {
  cursor: pointer;
}

#stock-view.stock-detail-v3 .stock-v3-topic-tabs button.active {
  border-color: #8b7cf6;
  color: #6d5ce7;
  box-shadow: inset 0 0 0 1px #8b7cf6;
}

#stock-view.stock-detail-v3 .stock-v3-topic-card {
  min-height: 116px;
  display: grid;
  align-content: center;
  gap: 6px;
  margin-top: 14px;
  padding: 20px;
  border-radius: 8px;
  background: #f6f7f9;
  text-align: center;
}

#stock-view.stock-detail-v3 .stock-v3-topic-card > a,
#stock-view.stock-detail-v3 .stock-v3-topic-card > strong {
  color: #252a31;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.45;
}

#stock-view.stock-detail-v3 .stock-v3-topic-card p,
#stock-view.stock-detail-v3 .stock-v3-topic-card span {
  margin: 0;
  color: var(--stock-v3-muted);
  font-size: 11px;
}

#stock-view.stock-detail-v3 .stock-v3-segment {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 0;
  padding: 5px;
  border-radius: 8px;
  background: #eef1f4;
}

#stock-view.stock-detail-v3 .stock-v3-segment button {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #8b929d;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

#stock-view.stock-detail-v3 .stock-v3-segment button.active {
  background: #ffffff;
  color: #252a31;
  box-shadow: 0 2px 7px rgba(19, 26, 38, 0.08);
}

#stock-view.stock-detail-v3 .stock-v3-segment button:focus-visible {
  outline: 2px solid #252a31;
  outline-offset: 2px;
}

#stock-view.stock-detail-v3 .stock-v3-segment button:disabled {
  cursor: default;
  opacity: 0.55;
}

#stock-view.stock-detail-v3 .stock-v3-text-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 16px 0 4px;
}

#stock-view.stock-detail-v3 .stock-v3-text-tabs button {
  position: relative;
  min-width: 68px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #9ba0a9;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
}

#stock-view.stock-detail-v3 .stock-v3-text-tabs button + button::before {
  position: absolute;
  top: 8px;
  left: 0;
  width: 1px;
  height: 16px;
  background: #d8dce2;
  content: "";
}

#stock-view.stock-detail-v3 .stock-v3-text-tabs button.active {
  color: #20242a;
  font-weight: 900;
}

#stock-view.stock-detail-v3 .stock-v3-main-chart {
  position: relative;
  min-height: 310px;
  margin-top: 8px;
}

#stock-view.stock-detail-v3 #stock-report-history-chart[data-mode="issuance"] {
  min-height: 0;
  margin-top: 2px;
}

#stock-view.stock-detail-v3 #stock-report-history-chart[data-mode="broker"] {
  min-height: 280px;
  margin-top: 4px;
}

#stock-view.stock-detail-v3 .stock-v3-chart-empty,
#stock-view.stock-detail-v3 .stock-v2-empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  margin: 0;
  color: var(--stock-v3-muted);
  font-size: 12px;
  text-align: center;
}

#stock-view.stock-detail-v3 .stock-v3-chart-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 14px;
  padding: 15px 18px;
  border-radius: 8px;
  background: #f6f7f9;
}

#stock-view.stock-detail-v3 .stock-v3-chart-summary > div {
  display: grid;
  gap: 5px;
  padding: 0 14px;
  border-right: 1px solid var(--stock-v3-line-strong);
}

#stock-view.stock-detail-v3 .stock-v3-chart-summary > div:first-child {
  padding-left: 0;
}

#stock-view.stock-detail-v3 .stock-v3-chart-summary > div:last-child {
  padding-right: 0;
  border-right: 0;
}

#stock-view.stock-detail-v3 .stock-v3-chart-summary span {
  color: var(--stock-v3-muted);
  font-size: 10px;
  font-weight: 700;
}

#stock-view.stock-detail-v3 .stock-v3-chart-summary strong {
  color: #24282f;
  font-size: 15px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

#stock-view.stock-detail-v3 .stock-v3-report-issuance rect {
  fill: #2f7df4;
}

#stock-view.stock-detail-v3 .stock-v3-report-baseline {
  stroke: var(--stock-v3-line-strong);
  stroke-width: 1;
}

#stock-view.stock-detail-v3 .stock-v3-report-issuance > text:not(.stock-v3-chart-date) {
  fill: #252a31;
  font-size: 12px;
  font-weight: 850;
}

#stock-view.stock-detail-v3 .stock-v3-report-brokers {
  display: grid;
  align-content: start;
  min-height: 280px;
  padding-top: 10px;
}

#stock-view.stock-detail-v3 .stock-v3-report-broker-row {
  display: grid;
  grid-template-columns: 24px minmax(96px, 0.8fr) minmax(120px, 1.5fr) 42px;
  align-items: center;
  gap: 12px;
  min-height: 45px;
  border-bottom: 1px solid var(--stock-v3-line);
}

#stock-view.stock-detail-v3 .stock-v3-report-broker-row:last-child {
  border-bottom: 0;
}

#stock-view.stock-detail-v3 .stock-v3-report-broker-rank {
  color: var(--stock-v3-muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

#stock-view.stock-detail-v3 .stock-v3-report-broker-row strong,
#stock-view.stock-detail-v3 .stock-v3-report-broker-row b {
  color: #252a31;
  font-size: 12px;
  font-weight: 800;
}

#stock-view.stock-detail-v3 .stock-v3-report-broker-row b {
  text-align: right;
}

#stock-view.stock-detail-v3 .stock-v3-report-broker-meter {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf0f4;
}

#stock-view.stock-detail-v3 .stock-v3-report-broker-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #2f7df4;
}

#stock-view.stock-detail-v3 .stock-v3-flow-total {
  display: flex;
  justify-content: center;
  gap: 20px;
  min-height: 28px;
  margin-top: 10px;
  color: #333840;
  font-size: 13px;
}

#stock-view.stock-detail-v3 .stock-v3-flow-total strong {
  margin-left: 4px;
  font-weight: 900;
}

#stock-view.stock-detail-v3 .stock-v3-data-svg,
#stock-view.stock-detail-v3 .stock-v3-price-svg,
#stock-view.stock-detail-v3 .stock-v2-price-svg {
  overflow: visible;
}

#stock-view.stock-detail-v3 .stock-v3-chart-grid line,
#stock-view.stock-detail-v3 .stock-v2-chart-grid line {
  stroke: #e8ebef;
  stroke-width: 1;
}

#stock-view.stock-detail-v3 .stock-v3-chart-grid text,
#stock-view.stock-detail-v3 .stock-v2-chart-grid text,
#stock-view.stock-detail-v3 .stock-v3-chart-date,
#stock-view.stock-detail-v3 .stock-v2-chart-date {
  fill: #9ba1aa;
  font-size: 10px;
  font-weight: 600;
}

#stock-view.stock-detail-v3 .stock-v3-baseline {
  stroke: #cfd4db;
  stroke-width: 1;
}

#stock-view.stock-detail-v3 .stock-v3-financial-bar.actual rect {
  fill: #ff5a68;
}

#stock-view.stock-detail-v3 .stock-v3-financial-bar.estimated rect {
  fill: #f4a8ae;
  stroke: #db737c;
  stroke-dasharray: 4 3;
}

#stock-view.stock-detail-v3 .stock-v3-financial-bar text {
  fill: #616873;
  font-size: 9px;
  font-weight: 750;
}

#stock-view.stock-detail-v3 .stock-v3-financial-bar text.period {
  fill: #8d949e;
}

#stock-view.stock-detail-v3 .stock-v3-secondary-line,
#stock-view.stock-detail-v3 .stock-v3-report-price,
#stock-view.stock-detail-v3 .stock-v3-news-price {
  fill: none;
  stroke: #3e4657;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

#stock-view.stock-detail-v3 .stock-v3-secondary-dot {
  fill: #3e4657;
}

#stock-view.stock-detail-v3 .stock-v3-flow-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

#stock-view.stock-detail-v3 .stock-v3-flow-line.foreign {
  stroke: var(--stock-v3-yellow);
}

#stock-view.stock-detail-v3 .stock-v3-flow-line.institution {
  stroke: var(--stock-v3-green);
}

#stock-view.stock-detail-v3 .stock-v3-flow-line.price {
  stroke: #353b4b;
  stroke-width: 2;
}

#stock-view.stock-detail-v3 .stock-v3-report-target {
  fill: none;
  stroke: #50c98c;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

#stock-view.stock-detail-v3 .stock-v3-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: -3px;
  color: #757c87;
  font-size: 10px;
  font-weight: 700;
}

#stock-view.stock-detail-v3 .stock-v3-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

#stock-view.stock-detail-v3 .stock-v3-legend span::before {
  width: 14px;
  height: 3px;
  border-radius: 3px;
  background: #3e4657;
  content: "";
}

#stock-view.stock-detail-v3 .stock-v3-legend .bar::before {
  height: 8px;
  background: #ff5a68;
}

#stock-view.stock-detail-v3 .stock-v3-legend .estimate::before {
  height: 8px;
  border: 1px dashed #db737c;
  background: #f4a8ae;
}

#stock-view.stock-detail-v3 .stock-v3-legend .foreign::before {
  background: var(--stock-v3-yellow);
}

#stock-view.stock-detail-v3 .stock-v3-legend .institution::before,
#stock-view.stock-detail-v3 .stock-v3-legend .target::before {
  background: var(--stock-v3-green);
}

#stock-view.stock-detail-v3 .stock-v3-legend .positive::before {
  height: 8px;
  background: var(--stock-v3-red);
}

#stock-view.stock-detail-v3 .stock-v3-legend .negative::before {
  height: 8px;
  background: var(--stock-v3-blue);
}

#stock-view.stock-detail-v3 .stock-v3-price-svg .stock-v3-chart-line,
#stock-view.stock-detail-v3 .stock-v2-price-svg .stock-v2-chart-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

#stock-view.stock-detail-v3 .stock-v3-price-svg.up .stock-v3-chart-line,
#stock-view.stock-detail-v3 .stock-v2-price-svg.up .stock-v2-chart-line {
  stroke: var(--stock-v3-red);
}

#stock-view.stock-detail-v3 .stock-v3-price-svg.down .stock-v3-chart-line,
#stock-view.stock-detail-v3 .stock-v2-price-svg.down .stock-v2-chart-line {
  stroke: var(--stock-v3-blue);
}

#stock-view.stock-detail-v3 .stock-v3-chart-area,
#stock-view.stock-detail-v3 .stock-v2-chart-area {
  opacity: 0.1;
}

#stock-view.stock-detail-v3 .stock-v3-price-svg.up .stock-v3-chart-area,
#stock-view.stock-detail-v3 .stock-v2-price-svg.up .stock-v2-chart-area {
  fill: var(--stock-v3-red);
}

#stock-view.stock-detail-v3 .stock-v3-price-svg.down .stock-v3-chart-area,
#stock-view.stock-detail-v3 .stock-v2-price-svg.down .stock-v2-chart-area {
  fill: var(--stock-v3-blue);
}

#stock-view.stock-detail-v3 .stock-v3-previous-line line {
  stroke: #aab0b9;
  stroke-dasharray: 5 5;
  stroke-width: 1;
}

#stock-view.stock-detail-v3 .stock-v3-previous-line text,
#stock-view.stock-detail-v3 .stock-v3-extrema text {
  fill: #8c939d;
  font-size: 9px;
  font-weight: 700;
}

#stock-view.stock-detail-v3 .stock-v3-extrema circle {
  fill: #ffffff;
  stroke: #717985;
  stroke-width: 1.5;
}

#stock-view.stock-detail-v3 .stock-v3-chart-hit,
#stock-view.stock-detail-v3 .stock-v2-chart-hit {
  fill: transparent;
  cursor: crosshair;
}

#stock-view.stock-detail-v3 .stock-v3-hover-line,
#stock-view.stock-detail-v3 .stock-v2-hover-line {
  stroke: #717985;
  stroke-dasharray: 3 3;
}

#stock-view.stock-detail-v3 .stock-v3-hover-point,
#stock-view.stock-detail-v3 .stock-v2-hover-point {
  fill: #ffffff;
  stroke: #20252d;
  stroke-width: 2;
}

#stock-view.stock-detail-v3 .stock-v3-chart-tooltip,
#stock-view.stock-detail-v3 .stock-v2-chart-tooltip {
  position: absolute;
  z-index: 4;
  top: 34px;
  display: grid;
  gap: 2px;
  padding: 9px 11px;
  border: 1px solid var(--stock-v3-line-strong);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 7px 18px rgba(20, 26, 36, 0.12);
  pointer-events: none;
  transform: translateX(-50%);
}

#stock-view.stock-detail-v3 .stock-v3-chart-tooltip span,
#stock-view.stock-detail-v3 .stock-v3-chart-tooltip em,
#stock-view.stock-detail-v3 .stock-v2-chart-tooltip span,
#stock-view.stock-detail-v3 .stock-v2-chart-tooltip em {
  color: var(--stock-v3-muted);
  font-size: 9px;
  font-style: normal;
}

#stock-view.stock-detail-v3 .stock-v3-chart-tooltip strong,
#stock-view.stock-detail-v3 .stock-v2-chart-tooltip strong {
  color: var(--stock-v3-text);
  font-size: 13px;
  font-weight: 900;
}

#stock-view.stock-detail-v3 .stock-v3-chart-badge,
#stock-view.stock-detail-v3 .stock-v2-chart-summary {
  position: absolute;
  z-index: 3;
  top: 8px;
  left: 14px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 5px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.9);
}

#stock-view.stock-detail-v3 .stock-v3-chart-badge strong,
#stock-view.stock-detail-v3 .stock-v2-chart-summary strong {
  font-size: 12px;
  font-weight: 900;
}

#stock-view.stock-detail-v3 .stock-v3-chart-badge span,
#stock-view.stock-detail-v3 .stock-v2-chart-summary span {
  color: var(--stock-v3-muted);
  font-size: 9px;
}

#stock-view.stock-detail-v3 .stock-v3-chart-badge.up strong,
#stock-view.stock-detail-v3 .stock-v2-chart-summary.up strong {
  color: var(--stock-v3-red);
}

#stock-view.stock-detail-v3 .stock-v3-chart-badge.down strong,
#stock-view.stock-detail-v3 .stock-v2-chart-summary.down strong {
  color: var(--stock-v3-blue);
}

#stock-view.stock-detail-v3 .stock-v2-volume-bars rect {
  fill: #d9dee6;
}

#stock-view.stock-detail-v3 .stock-v3-report-list,
#stock-view.stock-detail-v3 .stock-v3-news-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

#stock-view.stock-detail-v3 .stock-v3-report-list li,
#stock-view.stock-detail-v3 .stock-v3-news-row {
  min-height: 64px;
  border-bottom: 1px solid var(--stock-v3-line);
}

#stock-view.stock-detail-v3 .stock-v3-report-list li {
  display: grid;
  gap: 5px;
  align-content: center;
  padding: 10px 0;
}

#stock-view.stock-detail-v3 .stock-v3-report-list li:last-child,
#stock-view.stock-detail-v3 .stock-v3-news-row:last-child {
  border-bottom: 0;
}

#stock-view.stock-detail-v3 .stock-v3-report-list a,
#stock-view.stock-detail-v3 .stock-v3-news-title {
  color: #2b3037;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

#stock-view.stock-detail-v3 .stock-v3-report-list span,
#stock-view.stock-detail-v3 .stock-v3-news-meta {
  color: var(--stock-v3-muted);
  font-size: 10px;
}

#stock-view.stock-detail-v3 .stock-v3-news-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  align-items: center;
  gap: 14px;
  min-height: 88px;
  padding: 12px 0;
  color: inherit;
  text-decoration: none;
}

#stock-view.stock-detail-v3 .stock-v3-news-link.is-text-only {
  grid-template-columns: minmax(0, 1fr);
  min-height: 72px;
}

#stock-view.stock-detail-v3 .stock-v3-news-copy {
  min-width: 0;
  display: grid;
  gap: 7px;
}

#stock-view.stock-detail-v3 .stock-v3-news-title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#stock-view.stock-detail-v3 .stock-v3-news-meta {
  overflow: hidden;
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#stock-view.stock-detail-v3 .stock-v3-news-thumb {
  width: 72px;
  height: 72px;
  display: block;
  object-fit: cover;
  border-radius: 6px;
  background: #f1f3f5;
}

#stock-view.stock-detail-v3 .stock-v3-news-link:focus-visible {
  outline: 2px solid #1d232d;
  outline-offset: 4px;
}

/* Keep long headlines readable even when legacy link styles force one line. */
#stock-view.stock-detail-v3 .stock-v3-news-link .stock-v3-news-title {
  display: -webkit-box !important;
  white-space: normal !important;
  text-overflow: clip !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#stock-view.stock-detail-v3 .stock-v3-news-empty {
  min-height: 120px;
  display: grid;
  place-items: center;
  color: var(--stock-v3-muted);
  font-size: 12px;
  text-align: center;
}

#stock-view.stock-detail-v3 .stock-v3-sentiment-summary {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(260px, 1.3fr);
  align-items: center;
  gap: 24px;
  margin: 8px 0 12px;
}

#stock-view.stock-detail-v3 .stock-v3-temperature-gauge {
  min-height: 124px;
  display: grid;
  place-content: center;
  text-align: center;
  border-radius: 8px;
  background:
    linear-gradient(90deg, var(--stock-v3-red-soft) 0 var(--positive), #f5f6f8 var(--positive) calc(100% - var(--negative)), var(--stock-v3-blue-soft) calc(100% - var(--negative)) 100%);
}

#stock-view.stock-detail-v3 .stock-v3-temperature-gauge strong {
  color: #252a31;
  font-size: 23px;
  font-weight: 900;
}

#stock-view.stock-detail-v3 .stock-v3-temperature-gauge span {
  color: var(--stock-v3-muted);
  font-size: 11px;
}

#stock-view.stock-detail-v3 .stock-v3-sentiment-summary dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

#stock-view.stock-detail-v3 .stock-v3-sentiment-summary dl > div {
  display: grid;
  gap: 5px;
  padding: 0 15px;
  border-right: 1px solid var(--stock-v3-line);
  text-align: center;
}

#stock-view.stock-detail-v3 .stock-v3-sentiment-summary dl > div:last-child {
  border-right: 0;
}

#stock-view.stock-detail-v3 .stock-v3-sentiment-summary dt {
  color: var(--stock-v3-muted);
  font-size: 10px !important;
}

#stock-view.stock-detail-v3 .stock-v3-sentiment-summary dd {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
}

#stock-view.stock-detail-v3 .stock-v3-news-marker {
  stroke: #ffffff;
  stroke-width: 2;
}

#stock-view.stock-detail-v3 .stock-v3-news-marker.positive {
  fill: var(--stock-v3-red);
}

#stock-view.stock-detail-v3 .stock-v3-news-marker.negative {
  fill: var(--stock-v3-blue);
}

#stock-view.stock-detail-v3 .stock-v3-news-marker.neutral {
  fill: #aab0b9;
}

#stock-view.stock-detail-v3 .stock-v3-ai {
  display: grid;
  gap: 14px;
}

#stock-view.stock-detail-v3 .stock-v3-ai-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border: 1px solid var(--stock-v3-line);
  border-radius: 8px;
  background: #ffffff;
}

#stock-view.stock-detail-v3 .stock-v3-ai-title > div {
  display: grid;
  gap: 3px;
}

#stock-view.stock-detail-v3 .ai-analysis-button {
  min-width: 84px;
  height: 40px;
  border: 0;
  border-radius: 6px;
  background: #17191e;
  color: #ffffff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}

#stock-view.stock-detail-v3 .ai-analysis-panel {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  border: 1px solid var(--stock-v3-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
  overflow: hidden;
}

#stock-view.stock-detail-v3 .ai-analysis-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--stock-v3-line);
}

#stock-view.stock-detail-v3 .ai-analysis-head > strong {
  font-size: 15px;
  font-weight: 900;
}

#stock-view.stock-detail-v3 .ollama-ai-badge {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #d7dce3;
  border-radius: 999px;
  padding: 0 9px;
  color: #353b44;
  font-size: 10px;
  font-weight: 850;
}

#stock-view.stock-detail-v3 .ollama-ai-badge::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #64748b;
  content: "";
}

#stock-view.stock-detail-v3 .ollama-ai-badge.is-ollama::before {
  background: #18a765;
}

#stock-view.stock-detail-v3 .strategy-decision-hero {
  display: grid;
  gap: 9px;
  padding: 26px 24px;
  background: #f6f7f9;
}

#stock-view.stock-detail-v3 .strategy-decision-hero > span {
  color: var(--stock-v3-muted);
  font-size: 11px;
  font-weight: 750;
}

#stock-view.stock-detail-v3 .strategy-decision-hero > strong {
  color: var(--stock-v3-text);
  font-size: 23px;
  font-weight: 900;
  line-height: 1.35;
}

#stock-view.stock-detail-v3 .strategy-decision-hero > p {
  margin: 0;
  color: #5a626e;
  font-size: 13px;
  line-height: 1.55;
}

#stock-view.stock-detail-v3 .strategy-key-levels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-bottom: 1px solid var(--stock-v3-line);
}

#stock-view.stock-detail-v3 .strategy-key-levels > div {
  display: grid;
  gap: 6px;
  padding: 18px 22px;
}

#stock-view.stock-detail-v3 .strategy-key-levels > div:first-child {
  border-right: 1px solid var(--stock-v3-line);
}

#stock-view.stock-detail-v3 .strategy-key-levels dt {
  color: var(--stock-v3-muted);
  font-size: 10px !important;
  font-weight: 750;
}

#stock-view.stock-detail-v3 .strategy-key-levels dd {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
}

#stock-view.stock-detail-v3 .strategy-steps,
#stock-view.stock-detail-v3 .strategy-detail-disclosure {
  padding: 22px 24px;
}

#stock-view.stock-detail-v3 .strategy-steps h3 {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 900;
}

#stock-view.stock-detail-v3 .strategy-steps ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: strategy-step;
}

#stock-view.stock-detail-v3 .strategy-steps li {
  position: relative;
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 12px 0 12px 44px;
  border-bottom: 1px solid var(--stock-v3-line);
  counter-increment: strategy-step;
}

#stock-view.stock-detail-v3 .strategy-steps li::before {
  position: absolute;
  left: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #17191e;
  color: #ffffff;
  content: counter(strategy-step);
  font-size: 11px;
  font-weight: 900;
}

#stock-view.stock-detail-v3 .strategy-detail-disclosure {
  border-top: 1px solid var(--stock-v3-line);
}

#stock-view.stock-detail-v3 .strategy-detail-disclosure summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 14px;
  font-weight: 850;
  list-style: none;
}

#stock-view.stock-detail-v3 .strategy-detail-disclosure summary::after {
  color: var(--stock-v3-muted);
  content: "+";
  font-size: 18px;
}

#stock-view.stock-detail-v3 .strategy-detail-disclosure[open] summary::after {
  content: "−";
}

#stock-view.stock-detail-v3 .strategy-detail-disclosure > p,
#stock-view.stock-detail-v3 .strategy-detail-disclosure > section {
  margin-top: 18px;
}

#stock-view.stock-detail-v3 .stock-strategy-card {
  margin: 0;
}

@media (max-width: 980px) {
  body[data-view="stock"] .mobile-app-bar {
    display: none;
  }

  body[data-view="stock"] .shell {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  #stock-view.stock-detail-v3 {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  #stock-view.stock-detail-v3 .stock-v3-commandbar {
    position: sticky;
    top: 0;
    grid-template-columns: 42px minmax(0, 1fr) 42px 42px;
    min-height: 62px;
    padding: 9px 12px;
    border: 0;
    border-bottom: 1px solid var(--stock-v3-line);
    border-radius: 0;
  }

  #stock-view.stock-detail-v3 .stock-v3-command-title {
    gap: 7px;
  }

  #stock-view.stock-detail-v3 .stock-v3-command-title h1 {
    font-size: 19px !important;
  }

  #stock-view.stock-detail-v3 .stock-v3-command-title > span {
    font-size: 10px;
  }

  #stock-view.stock-detail-v3 .stock-v3-search {
    position: relative;
    width: 42px;
    display: block;
  }

  #stock-view.stock-detail-v3 .stock-v3-search .search-box {
    position: fixed;
    z-index: 60;
    top: 66px;
    right: 12px;
    left: 12px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
  }

  #stock-view.stock-detail-v3 .stock-v3-search.expanded .search-box {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  #stock-view.stock-detail-v3 .stock-v3-search input {
    height: 48px;
    padding-right: 58px;
    border-color: #b9c0ca;
    box-shadow: 0 9px 28px rgba(18, 24, 34, 0.14);
  }

  #stock-view.stock-detail-v3 .stock-v3-search > button {
    position: relative;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: transparent;
    font-size: 0;
  }

  #stock-view.stock-detail-v3 .stock-v3-search > button::before {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 14px;
    height: 14px;
    border: 2px solid #16181d;
    border-radius: 50%;
    content: "";
  }

  #stock-view.stock-detail-v3 .stock-v3-search > button::after {
    position: absolute;
    top: 25px;
    left: 25px;
    width: 9px;
    height: 2px;
    border-radius: 2px;
    background: #16181d;
    content: "";
    transform: rotate(45deg);
    transform-origin: left center;
  }

  #stock-view.stock-detail-v3 .stock-v3-quote-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "head"
      "price"
      "chart"
      "metrics";
    gap: 10px;
    padding: 22px 18px 18px;
    border: 0;
    border-bottom: 8px solid var(--stock-v3-bg);
  }

  #stock-view.stock-detail-v3 .stock-v3-price-line > strong {
    font-size: 38px !important;
  }

  #stock-view.stock-detail-v3 .stock-v3-chart-pane {
    min-height: 330px;
    margin: 4px -4px 0;
  }

  #stock-view.stock-detail-v3 .stock-mini-chart {
    min-height: 255px;
  }

  #stock-view.stock-detail-v3 .stock-v3-price-periods {
    margin: 2px 30px 0 2px;
  }

  #stock-view.stock-detail-v3 .stock-v3-chart-source {
    padding-right: 10px;
    font-size: 9px;
  }

  #stock-view.stock-detail-v3 .stock-detail-tabs {
    top: 62px;
    padding: 0 18px;
    border: 0;
    border-bottom: 1px solid var(--stock-v3-line);
  }

  #stock-view.stock-detail-v3 .stock-detail-tabs button {
    min-height: 56px;
    font-size: 15px;
  }

  #stock-view.stock-detail-v3 .stock-tab-panel {
    padding: 8px 0 24px;
  }

  #stock-view.stock-detail-v3 .stock-v3-home,
  #stock-view.stock-detail-v3 .stock-v3-ai {
    gap: 8px;
  }

  #stock-view.stock-detail-v3 .stock-v3-two-column {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  #stock-view.stock-detail-v3 .stock-v3-section,
  #stock-view.stock-detail-v3 .stock-v3-ai-title,
  #stock-view.stock-detail-v3 .ai-analysis-panel {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  #stock-view.stock-detail-v3 .stock-v3-section {
    padding: 24px 20px;
  }

  #stock-view.stock-detail-v3 .stock-v3-section-head h2,
  #stock-view.stock-detail-v3 .stock-v3-ai-title h2 {
    font-size: 19px !important;
  }

  #stock-view.stock-detail-v3 .stock-v3-main-chart {
    min-height: 250px;
    margin-right: -6px;
    margin-left: -6px;
  }

  #stock-view.stock-detail-v3 #stock-report-history-chart[data-mode="issuance"] {
    min-height: 0;
    margin-top: 0;
  }

  #stock-view.stock-detail-v3 #stock-report-history-chart[data-mode="broker"] {
    min-height: 250px;
  }

  #stock-view.stock-detail-v3 .stock-v3-chart-summary {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  #stock-view.stock-detail-v3 .stock-v3-chart-summary > div,
  #stock-view.stock-detail-v3 .stock-v3-chart-summary > div:first-child,
  #stock-view.stock-detail-v3 .stock-v3-chart-summary > div:last-child {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    padding: 0 0 11px;
    border-right: 0;
    border-bottom: 1px solid var(--stock-v3-line-strong);
  }

  #stock-view.stock-detail-v3 .stock-v3-chart-summary > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  #stock-view.stock-detail-v3 .stock-v3-sentiment-summary {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}

@media (max-width: 480px) {
  #stock-view.stock-detail-v3 .stock-v3-commandbar {
    grid-template-columns: 38px minmax(0, 1fr) 38px 38px;
    gap: 4px;
    padding-inline: 10px;
  }

  #stock-view.stock-detail-v3 .stock-v3-back,
  #stock-view.stock-detail-v3 .stock-v3-star,
  #stock-view.stock-detail-v3 .stock-v3-search,
  #stock-view.stock-detail-v3 .stock-v3-search > button {
    width: 38px;
    height: 38px;
  }

  #stock-view.stock-detail-v3 .stock-v3-command-title {
    display: flex;
    align-items: baseline;
    gap: 6px;
  }

  #stock-view.stock-detail-v3 .stock-v3-command-title h1,
  #stock-view.stock-detail-v3 .stock-v3-command-title > span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #stock-view.stock-detail-v3 .stock-v3-command-title h1 {
    font-size: 18px !important;
  }

  #stock-view.stock-detail-v3 .stock-v3-command-title > span {
    font-size: 9px;
  }

  #stock-view.stock-detail-v3 .stock-v3-price-line > strong {
    font-size: 36px !important;
  }

  #stock-view.stock-detail-v3 .stock-v3-price-line > div {
    font-size: 15px;
  }

  #stock-view.stock-detail-v3 .stock-v3-chart-pane {
    min-height: 292px;
  }

  #stock-view.stock-detail-v3 .stock-mini-chart {
    min-height: 220px;
  }

  #stock-view.stock-detail-v3 .stock-v3-price-periods {
    margin-right: 22px;
  }

  #stock-view.stock-detail-v3 .stock-v3-price-periods button {
    height: 32px;
    padding: 0 2px;
    font-size: 11px;
  }

  #stock-view.stock-detail-v3 .stock-v3-quote-metrics dd {
    font-size: 14px;
  }

  #stock-view.stock-detail-v3 .stock-v3-summary-list {
    padding: 15px 14px 15px 32px;
    font-size: 13px;
  }

  #stock-view.stock-detail-v3 .stock-v3-update-row {
    grid-template-columns: 26px 44px minmax(0, 1fr);
  }

  #stock-view.stock-detail-v3 .stock-v3-update-row time {
    display: none;
  }

  #stock-view.stock-detail-v3 .stock-v3-checkpoints {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #stock-view.stock-detail-v3 .stock-v3-main-chart {
    min-height: 224px;
  }

  #stock-view.stock-detail-v3 .stock-v3-chart-grid text,
  #stock-view.stock-detail-v3 .stock-v2-chart-grid text,
  #stock-view.stock-detail-v3 .stock-v3-chart-date,
  #stock-view.stock-detail-v3 .stock-v2-chart-date,
  #stock-view.stock-detail-v3 .stock-v3-financial-bar text {
    font-size: 9px;
  }

  #stock-view.stock-detail-v3 .stock-v3-flow-total {
    gap: 12px;
    font-size: 11px;
  }

  #stock-view.stock-detail-v3 .strategy-key-levels {
    grid-template-columns: minmax(0, 1fr);
  }

  #stock-view.stock-detail-v3 .strategy-key-levels > div:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--stock-v3-line);
  }

  #stock-view.stock-detail-v3 .strategy-decision-hero > strong {
    font-size: 20px;
  }
}

/* iPhone 16 Pro (402 CSS px): align the hierarchy with native iOS finance screens. */
@media (max-width: 430px) {
  #stock-view.stock-detail-v3 {
    --stock-v3-type-title: 20px;
    --stock-v3-type-display: 38px;
    --stock-v3-type-tab: 16px;
    --stock-v3-type-section: 19px;
    --stock-v3-type-body: 15px;
    --stock-v3-type-label: 12px;
    --stock-v3-type-caption: 11px;
    font-size: 15px;
    line-height: 1.55;
  }

  #stock-view.stock-detail-v3 .stock-v3-command-title h1 {
    font-size: var(--stock-v3-type-title) !important;
    font-weight: 700 !important;
    line-height: 1.25;
  }

  #stock-view.stock-detail-v3 .stock-v3-command-title > span {
    font-size: var(--stock-v3-type-caption);
    font-weight: 500;
  }

  #stock-view.stock-detail-v3 .stock-v3-quote-head {
    font-size: var(--stock-v3-type-label);
    font-weight: 600;
  }

  #stock-view.stock-detail-v3 .market-chip {
    font-size: var(--stock-v3-type-caption) !important;
    font-weight: 600;
  }

  #stock-view.stock-detail-v3 .stock-v3-price-line > strong {
    font-size: var(--stock-v3-type-display) !important;
    font-weight: 700;
    line-height: 1.08;
  }

  #stock-view.stock-detail-v3 .stock-v3-price-line > strong::after {
    font-weight: 600;
  }

  #stock-view.stock-detail-v3 .stock-v3-price-line > div {
    font-size: 16px;
    font-weight: 700;
  }

  #stock-view.stock-detail-v3 .stock-v3-price-periods button {
    font-size: var(--stock-v3-type-label) !important;
    font-weight: 600;
  }

  #stock-view.stock-detail-v3 .stock-v3-chart-source {
    font-size: 10px;
    font-weight: 500;
  }

  #stock-view.stock-detail-v3 .stock-v3-quote-metrics dt {
    font-size: var(--stock-v3-type-label) !important;
    font-weight: 500;
  }

  #stock-view.stock-detail-v3 .stock-v3-quote-metrics dd {
    font-size: 15px;
    font-weight: 700;
  }

  #stock-view.stock-detail-v3 .stock-detail-tabs button {
    font-size: var(--stock-v3-type-tab) !important;
    font-weight: 700;
  }

  #stock-view.stock-detail-v3 .stock-v3-section-head > div > span,
  #stock-view.stock-detail-v3 .stock-v3-ai-title > div > span {
    font-size: var(--stock-v3-type-caption);
    font-weight: 600;
  }

  #stock-view.stock-detail-v3 .stock-v3-section-head h2,
  #stock-view.stock-detail-v3 .stock-v3-ai-title h2 {
    font-size: var(--stock-v3-type-section) !important;
    font-weight: 700;
    line-height: 1.3;
  }

  #stock-view.stock-detail-v3 .stock-v3-section-head time,
  #stock-view.stock-detail-v3 .stock-v3-source {
    font-size: var(--stock-v3-type-label);
    font-weight: 500;
  }

  #stock-view.stock-detail-v3 .stock-v3-summary-list,
  #stock-view.stock-detail-v3 .stock-company-summary {
    font-size: var(--stock-v3-type-body);
    font-weight: 500;
    line-height: 1.65;
  }

  #stock-view.stock-detail-v3 .stock-company-industry,
  #stock-view.stock-detail-v3 .stock-company-details summary,
  #stock-view.stock-detail-v3 .stock-v3-section-description {
    font-size: 13px;
    font-weight: 600;
  }

  #stock-view.stock-detail-v3 .stock-v3-update-kind {
    font-size: var(--stock-v3-type-label);
    font-weight: 650;
  }

  #stock-view.stock-detail-v3 .stock-v3-update-row strong,
  #stock-view.stock-detail-v3 .stock-v3-report-list a,
  #stock-view.stock-detail-v3 .stock-v3-news-row > a,
  #stock-view.stock-detail-v3 .stock-v3-news-row > strong {
    font-size: var(--stock-v3-type-body);
    font-weight: 600;
    line-height: 1.5;
  }

  #stock-view.stock-detail-v3 .stock-v3-update-row time,
  #stock-view.stock-detail-v3 .stock-v3-report-list span,
  #stock-view.stock-detail-v3 .stock-v3-news-row > span,
  #stock-view.stock-detail-v3 .stock-v3-topic-card p,
  #stock-view.stock-detail-v3 .stock-v3-topic-card span {
    font-size: var(--stock-v3-type-label);
    font-weight: 500;
  }

  #stock-view.stock-detail-v3 .stock-v3-checkpoint > span,
  #stock-view.stock-detail-v3 .stock-v3-checkpoint small {
    font-size: 11px;
    font-weight: 550;
  }

  #stock-view.stock-detail-v3 .stock-v3-checkpoint strong,
  #stock-view.stock-detail-v3 .stock-v3-chart-summary strong {
    font-size: 16px;
    font-weight: 700;
  }

  #stock-view.stock-detail-v3 .stock-v3-keywords > span,
  #stock-view.stock-detail-v3 .stock-v3-topic-tabs button {
    font-size: 12px !important;
    font-weight: 600;
  }

  #stock-view.stock-detail-v3 .stock-v3-topic-card > a,
  #stock-view.stock-detail-v3 .stock-v3-topic-card > strong {
    font-size: 15px;
    font-weight: 650;
  }

  #stock-view.stock-detail-v3 .stock-v3-segment button,
  #stock-view.stock-detail-v3 .stock-v3-text-tabs button {
    font-size: 15px !important;
    font-weight: 600;
  }

  #stock-view.stock-detail-v3 .stock-v3-text-tabs button.active {
    font-weight: 700;
  }

  #stock-view.stock-detail-v3 .stock-v3-chart-grid text,
  #stock-view.stock-detail-v3 .stock-v2-chart-grid text,
  #stock-view.stock-detail-v3 .stock-v3-chart-date,
  #stock-view.stock-detail-v3 .stock-v2-chart-date,
  #stock-view.stock-detail-v3 .stock-v3-financial-bar text {
    font-size: 10px;
    font-weight: 550;
  }

  #stock-view.stock-detail-v3 .stock-v3-flow-total {
    font-size: 13px;
  }

  #stock-view.stock-detail-v3 .stock-v3-flow-total strong,
  #stock-view.stock-detail-v3 .stock-v3-temperature-gauge strong,
  #stock-view.stock-detail-v3 .stock-v3-sentiment-summary dd,
  #stock-view.stock-detail-v3 .ai-analysis-head > strong,
  #stock-view.stock-detail-v3 .strategy-key-levels dd,
  #stock-view.stock-detail-v3 .strategy-steps h3 {
    font-weight: 750;
  }

  #stock-view.stock-detail-v3 .strategy-decision-hero > span,
  #stock-view.stock-detail-v3 .strategy-key-levels dt {
    font-size: 12px !important;
    font-weight: 600;
  }

  #stock-view.stock-detail-v3 .strategy-decision-hero > strong {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
  }

  #stock-view.stock-detail-v3 .strategy-decision-hero > p,
  #stock-view.stock-detail-v3 .strategy-steps li,
  #stock-view.stock-detail-v3 .strategy-detail-disclosure summary {
    font-size: var(--stock-v3-type-body);
    font-weight: 550;
    line-height: 1.6;
  }
}

/* Dashboard IA 3.0 */
body:not([data-view="stock"]) {
  --app-v3-bg: #f4f5f7;
  --app-v3-panel: #ffffff;
  --app-v3-text: #17191d;
  --app-v3-muted: #858b95;
  --app-v3-line: #e4e7eb;
  --app-v3-red: #cf1322;
  --app-v3-blue: #1677ff;
  background: var(--app-v3-bg);
  color: var(--app-v3-text);
}

.app-frame {
  min-height: 100vh;
  display: block;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px max(20px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--app-v3-line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
}

.mobile-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.mobile-brand .app-brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #111111;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
}

.mobile-brand strong {
  color: var(--app-v3-text);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.mobile-brand > span:last-child {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid #d5d8dc;
  border-radius: 999px;
  background: #f7f7f8;
  color: #31343a;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.app-topbar-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.app-icon-button,
.app-logout-button,
.app-support-link,
.home-install-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--app-v3-line);
  border-radius: 7px;
  background: #ffffff;
  color: var(--app-v3-text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.app-icon-button {
  width: 40px;
  padding: 0;
}

.app-icon-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-icon-button > span:not(.sr-only) {
  display: none;
}

.app-icon-button[data-active="true"] {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}

.app-logout-button,
.app-support-link,
.home-install-button {
  padding: 0 12px;
}

.app-logout-button {
  gap: 6px;
}

.app-logout-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-account-id {
  max-width: 160px;
  overflow: hidden;
  color: var(--app-v3-muted);
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shell[data-ui-version="3.0"] {
  width: min(1180px, 100%);
  min-height: calc(100vh - 64px);
  margin: 0 auto;
  padding: 30px 24px calc(108px + env(safe-area-inset-bottom));
}

.app-page {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.app-page-intro {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 2px 0 6px;
}

.app-page-intro > span,
.app-section-heading > div > span {
  color: var(--app-v3-muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
}

.app-page-intro h1 {
  margin: 0;
  color: var(--app-v3-text);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
}

.app-page-intro p,
.app-section-heading p {
  margin: 2px 0 0;
  color: var(--app-v3-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
}

.app-section-heading {
  min-width: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.app-section-heading > div {
  min-width: 0;
}

.app-section-heading h2 {
  margin: 3px 0 0;
  color: var(--app-v3-text);
  font-size: 20px;
  font-weight: 750;
  line-height: 1.35;
}

.home-market-snapshot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--app-v3-line);
  border-radius: 8px;
  background: var(--app-v3-panel);
}

.home-market-snapshot > div {
  min-width: 0;
  display: grid;
  gap: 7px;
  padding: 17px 18px;
  border-right: 1px solid var(--app-v3-line);
}

.home-market-snapshot > div:last-child {
  border-right: 0;
}

.home-market-snapshot span {
  color: var(--app-v3-muted);
  font-size: 11px;
  font-weight: 600;
}

.home-market-snapshot strong {
  overflow: hidden;
  color: var(--app-v3-text);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.positive { color: var(--app-v3-red) !important; }
.negative { color: var(--app-v3-blue) !important; }

.home-market-content,
.discovery-module,
.portfolio-news-panel,
.chart-watchlist-pick,
#chart-history-view .chart-snapshot-panel {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--app-v3-line);
  border-radius: 8px;
  background: var(--app-v3-panel);
}

.app-segment-tabs {
  display: grid;
  border-bottom: 1px solid var(--app-v3-line);
  background: #ffffff;
}

.trend-tabs.app-segment-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: -4px 0 22px;
  padding: 0;
  overflow: visible;
}

.portfolio-tabs.app-segment-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.app-segment-tabs button {
  position: relative;
  min-width: 0;
  min-height: 52px;
  padding: 0 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--app-v3-muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.app-segment-tabs button::after {
  position: absolute;
  right: 24%;
  bottom: -1px;
  left: 24%;
  height: 2px;
  background: transparent;
  content: "";
}

.app-segment-tabs button.active {
  background: transparent;
  color: #111111;
}

.app-segment-tabs button.active::after {
  background: #111111;
}

.trend-panel {
  min-width: 0;
  display: grid;
  gap: 17px;
}

.trend-past-inline {
  display: grid;
  gap: 16px;
  margin-top: 8px;
  padding-top: 22px;
  border-top: 1px solid var(--app-v3-line);
}

.text-action {
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid var(--app-v3-line);
  border-radius: 6px;
  background: #ffffff;
  color: #4d535d;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.discovery-search {
  position: relative;
  min-width: 0;
  height: 56px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 7px 8px 7px 16px;
  border: 1px solid #cfd3d8;
  border-radius: 8px;
  background: #ffffff;
}

.discovery-search > svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #6d737d;
  stroke-width: 1.9;
  stroke-linecap: round;
}

.discovery-search > input {
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--app-v3-text);
  font-size: 15px;
  font-weight: 550;
}

.discovery-search > button {
  height: 40px;
  min-width: 66px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: #111111;
  color: #ffffff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.discovery-suggestions {
  position: absolute;
  z-index: 95;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  max-height: min(420px, 60vh);
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--app-v3-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.14);
}

.discovery-suggestion-item {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 10px;
  border: 0;
  border-radius: 5px;
  background: #ffffff;
  color: var(--app-v3-text);
  cursor: pointer;
  text-align: left;
}

.discovery-suggestion-item:hover,
.discovery-suggestion-item:focus-visible {
  background: #f3f4f6;
}

.discovery-suggestion-item strong { font-size: 14px; font-weight: 700; }
.discovery-suggestion-item span { color: var(--app-v3-muted); font-size: 12px; font-weight: 550; }

.discovery-module {
  display: grid;
  gap: 18px;
}

.discovery-module-head {
  align-items: center;
}

.market-segment {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(3, auto);
  overflow: hidden;
  border: 1px solid var(--app-v3-line);
  border-radius: 6px;
}

.market-segment-button {
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-right: 1px solid var(--app-v3-line);
  border-radius: 0;
  background: #ffffff;
  color: var(--app-v3-muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.market-segment-button:last-child { border-right: 0; }
.market-segment-button.active { background: #111111; color: #ffffff; }

.ranking-panel {
  min-width: 0;
  overflow-x: auto;
  border: 0;
  border-top: 1px solid var(--app-v3-line);
  border-radius: 0;
  box-shadow: none;
}

.ranking-table { min-width: 760px; }

#recommend-view .recommend-list,
#recommend-history-view .snapshot-list {
  gap: 12px;
}

#recommend-view .recommend-card,
#recommend-history-view .recommend-track-card {
  border-color: var(--app-v3-line);
  border-radius: 8px;
  box-shadow: none;
}

.primary-action {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: #111111;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.portfolio-tab-panel {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.portfolio-news-panel {
  display: grid;
  gap: 14px;
}

.portfolio-news-panel .trend-watchlist-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 750;
}

.trend-watch-stock-rail,
.chart-watchlist-picker {
  display: flex;
  gap: 8px;
  max-width: 100%;
  overflow-x: auto;
  padding: 2px 0 5px;
  scrollbar-width: none;
}

.trend-watch-stock-rail::-webkit-scrollbar,
.chart-watchlist-picker::-webkit-scrollbar { display: none; }

.trend-watch-stock-chip,
.chart-stock-chip {
  min-height: 38px;
  flex: 0 0 auto;
  padding: 0 14px;
  border: 1px solid var(--app-v3-line);
  border-radius: 6px;
  background: #ffffff;
  color: #454a53;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.trend-watch-stock-chip.active,
.chart-stock-chip.active { border-color: #111111; background: #111111; color: #ffffff; }

#watchlist-view.watchlist-v3 {
  min-width: 0;
  background: transparent;
}

#watchlist-view.watchlist-v3 .watchlist-panel {
  gap: 12px;
}

#watchlist-view.watchlist-v3 .watch-v2-briefing,
#watchlist-view.watchlist-v3 .watch-v3-stock-section,
#watchlist-view.watchlist-v3 .watch-v2-stock-row {
  border-color: var(--app-v3-line);
  border-radius: 8px !important;
  box-shadow: none;
}

#watchlist-view.watchlist-v3 .watch-v2-list-surface {
  gap: 12px;
  padding: 12px;
  background: transparent;
}

.chart-page-intro {
  grid-template-columns: minmax(0, 1fr) auto;
}

.chart-page-intro > span,
.chart-page-intro > h1 { grid-column: 1; }
.chart-page-intro > p { grid-column: 2; grid-row: 1 / span 2; align-self: end; }

.chart-watchlist-pick {
  display: grid;
  gap: 14px;
}

.chart-page-actions { display: flex; gap: 7px; }

.watch-chart-list {
  display: grid;
  gap: 12px;
}

.watch-chart-row,
.watch-chart-card,
.watch-chart-empty-card {
  border-color: var(--app-v3-line);
  border-radius: 8px;
  box-shadow: none;
}

.bottom-nav {
  position: fixed;
  z-index: 90;
  right: 0;
  bottom: 0;
  left: 0;
  height: calc(72px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 5px max(12px, calc((100vw - 720px) / 2)) env(safe-area-inset-bottom);
  border-top: 1px solid #dfe2e6;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
}

.bottom-nav-item {
  min-width: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  padding: 4px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #9a9fa8;
  cursor: pointer;
}

.bottom-nav-item svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bottom-nav-item span {
  overflow: hidden;
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bottom-nav-item.active { color: #111111; }
.bottom-nav-item.active span { font-weight: 800; }

.service-footer {
  width: min(1180px, calc(100% - 48px));
  margin: 40px auto calc(96px + env(safe-area-inset-bottom));
  padding: 22px 0 0;
  border-top: 1px solid var(--app-v3-line, #e4e7eb);
  color: var(--app-v3-muted, #858b95);
}

.service-footer dl {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 0;
}

.service-footer dl > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-footer dt,
.service-footer dd {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

.service-footer dt {
  color: var(--app-v3-muted, #858b95);
  font-weight: 500;
}

.service-footer dd {
  color: var(--app-v3-text, #17191d);
  font-weight: 650;
}

.service-footer a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #c6cbd2;
  text-underline-offset: 3px;
}

.service-footer a:hover,
.service-footer a:focus-visible {
  color: #0a66c2;
  text-decoration-color: currentColor;
}

body[data-view="stock"] .service-footer {
  width: min(1040px, calc(100% - 48px));
  margin-bottom: calc(32px + env(safe-area-inset-bottom));
}

@media (max-width: 720px) {
  .service-footer {
    width: calc(100% - 40px);
    margin-top: 28px;
    padding-top: 18px;
  }

  .service-footer dl {
    display: grid;
    gap: 7px;
  }

  .service-footer dl > div {
    justify-content: space-between;
  }

  body[data-view="stock"] .service-footer {
    width: calc(100% - 40px);
    margin-bottom: calc(24px + env(safe-area-inset-bottom));
  }
}

body[data-view="stock"] .app-topbar,
body[data-view="stock"] .bottom-nav {
  display: none;
}

body[data-view="stock"] .shell[data-ui-version="3.0"] {
  width: min(1320px, 100%);
  min-height: 100vh;
  padding: 22px;
}

@media (max-width: 720px) {
  .app-topbar {
    min-height: 60px;
    gap: 10px;
    padding: 9px 14px;
  }

  .mobile-brand { gap: 7px; }
  .mobile-brand .app-brand-mark { width: 32px; height: 32px; flex-basis: 32px; font-size: 14px; }
  .mobile-brand strong { font-size: 17px; }
  .mobile-brand > span:last-child { min-height: 22px; padding: 0 7px; font-size: 10px; }
  .app-account-id,
  .app-support-link { display: none; }
  .app-topbar-actions > .sr-only { display: none !important; }
  .app-topbar-actions { gap: 5px; }
  .app-icon-button { width: 36px; min-height: 36px; }
  .home-install-button { display: none !important; }
  .app-logout-button { width: 36px; min-height: 36px; padding: 0; }
  .app-logout-button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .shell[data-ui-version="3.0"] {
    min-height: calc(100vh - 60px);
    padding: 22px 16px calc(96px + env(safe-area-inset-bottom));
  }

  .app-page { gap: 14px; }
  .app-page-intro { padding-bottom: 2px; }
  .app-page-intro h1 { font-size: 24px; }
  .app-page-intro p { font-size: 12px; }
  .app-section-heading h2,
  .portfolio-news-panel .trend-watchlist-head h2 { font-size: 18px; }

  .home-market-snapshot > div { gap: 5px; padding: 14px 10px; }
  .home-market-snapshot strong { font-size: 13px; }
  .home-market-snapshot span { font-size: 10px; }

  .home-market-content,
  .discovery-module,
  .portfolio-news-panel,
  .chart-watchlist-pick,
  #chart-history-view .chart-snapshot-panel {
    padding: 18px 16px;
  }

  .app-segment-tabs button { min-height: 50px; font-size: 13px; }
  .trend-tabs.app-segment-tabs { margin-bottom: 18px; }

  .discovery-search { height: 54px; padding-left: 14px; }
  .discovery-search > button { min-width: 58px; padding: 0 13px; }

  .discovery-module-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .market-segment { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .market-segment-button { padding: 0 6px; }
  .ranking-panel { margin-right: -16px; margin-left: -16px; padding-left: 16px; }

  #recommend-view .recommend-card,
  #recommend-history-view .recommend-track-card { border-radius: 7px; }

  .portfolio-news-panel { margin: 0; }

  #watchlist-view.watchlist-v3 .watch-v3-tabs {
    margin: 0;
    padding: 0 4px;
    border: 1px solid var(--app-v3-line);
    border-radius: 7px;
    background: #ffffff;
  }

  #watchlist-view.watchlist-v3 .watch-v3-tabs button { min-height: 46px; font-size: 13px !important; }

  #watchlist-view.watchlist-v3 .watch-v2-briefing,
  #watchlist-view.watchlist-v3 .watch-v3-stock-section {
    border: 1px solid var(--app-v3-line);
    border-radius: 8px !important;
  }

  #watchlist-view.watchlist-v3 .watch-v2-list-surface {
    gap: 12px;
    padding: 12px;
  }

  #watchlist-view.watchlist-v3 .watch-v2-stock-row {
    margin: 0;
    padding: 20px 16px 0;
    border: 1px solid var(--app-v3-line);
    border-radius: 8px !important;
    background: #ffffff;
  }

  .chart-page-intro { display: grid; }
  .chart-page-intro > p { grid-column: 1; grid-row: auto; align-self: auto; }
  .chart-page-actions { width: 100%; justify-content: flex-end; }

  .bottom-nav { height: calc(68px + env(safe-area-inset-bottom)); }
  .bottom-nav-item svg { width: 20px; height: 20px; }
  .bottom-nav-item span { font-size: 10px; }

  body[data-view="stock"] .shell[data-ui-version="3.0"] {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }
}

@media (max-width: 380px) {
  .mobile-brand .app-brand-mark { display: none; }
  .mobile-brand strong { font-size: 16px; }
  .app-logout-button { padding: 0 7px; }
  .home-market-snapshot { grid-template-columns: 1fr; }
  .home-market-snapshot > div { border-right: 0; border-bottom: 1px solid var(--app-v3-line); }
  .home-market-snapshot > div:last-child { border-bottom: 0; }
}

#stock-view.stock-detail-v3 .quant-signal-status {
  min-height: 118px;
  display: grid;
  place-items: center;
  margin: 0;
  border: 1px solid var(--stock-v3-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--stock-v3-muted);
  font-size: 14px;
  font-weight: 650;
}

#stock-view.stock-detail-v3 .quant-signal-stack {
  display: grid;
  gap: 14px;
}

#stock-view.stock-detail-v3 .quant-signal-stack[hidden] {
  display: none;
}

#stock-view.stock-detail-v3 .quant-current-card {
  padding: 0;
  overflow: hidden;
}

#stock-view.stock-detail-v3 .quant-current-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 26px 10px;
}

#stock-view.stock-detail-v3 .quant-current-head > div {
  display: grid;
  gap: 4px;
}

#stock-view.stock-detail-v3 .quant-current-head span {
  color: var(--stock-v3-muted);
  font-size: 11px;
  font-weight: 650;
}

#stock-view.stock-detail-v3 .quant-current-head h2 {
  margin: 0;
  color: var(--stock-v3-text);
  font-size: 28px !important;
  font-weight: 750;
  line-height: 1.25;
}

#stock-view.stock-detail-v3 .quant-action-entry_pending,
#stock-view.stock-detail-v3 .quant-action-entered,
#stock-view.stock-detail-v3 .quant-action-holding {
  color: var(--stock-v3-red) !important;
}

#stock-view.stock-detail-v3 .quant-action-partial_exit_pending,
#stock-view.stock-detail-v3 .quant-action-partially_exited {
  color: #a66800 !important;
}

#stock-view.stock-detail-v3 .quant-action-full_exit_pending,
#stock-view.stock-detail-v3 .quant-action-exited {
  color: var(--stock-v3-blue) !important;
}

#stock-view.stock-detail-v3 .quant-action-waiting,
#stock-view.stock-detail-v3 .quant-action-wait {
  color: #6f7783 !important;
}

#stock-view.stock-detail-v3 .quant-lifecycle {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0 26px 20px;
  list-style: none;
}

#stock-view.stock-detail-v3 .quant-lifecycle li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 0;
  color: #9aa1aa;
  font-size: 10px;
  font-weight: 650;
  text-align: center;
}

#stock-view.stock-detail-v3 .quant-lifecycle li::before {
  position: absolute;
  top: 10px;
  right: 50%;
  left: -50%;
  height: 2px;
  background: #e0e4e9;
  content: "";
}

#stock-view.stock-detail-v3 .quant-lifecycle li:first-child::before {
  display: none;
}

#stock-view.stock-detail-v3 .quant-lifecycle span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 2px solid #d9dde3;
  border-radius: 50%;
  background: #fff;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

#stock-view.stock-detail-v3 .quant-lifecycle strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: inherit;
  line-height: 1.25;
}

#stock-view.stock-detail-v3 .quant-lifecycle li.complete::before,
#stock-view.stock-detail-v3 .quant-lifecycle li.active::before {
  background: #20242a;
}

#stock-view.stock-detail-v3 .quant-lifecycle li.complete span,
#stock-view.stock-detail-v3 .quant-lifecycle li.active span {
  border-color: #20242a;
  background: #20242a;
  color: #fff;
}

#stock-view.stock-detail-v3 .quant-lifecycle li.active {
  color: #20242a;
  font-weight: 750;
}

#stock-view.stock-detail-v3 .quant-current-reasons {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 20px 26px 20px 46px;
  border-top: 1px solid var(--stock-v3-line);
  background: #f7f8fa;
  color: #30353d;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
}

#stock-view.stock-detail-v3 .quant-current-position {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--stock-v3-line);
}

#stock-view.stock-detail-v3 .quant-current-position > div {
  display: grid;
  gap: 5px;
  padding: 17px 20px;
  border-right: 1px solid var(--stock-v3-line);
}

#stock-view.stock-detail-v3 .quant-current-position > div:last-child {
  border-right: 0;
}

#stock-view.stock-detail-v3 .quant-current-position dt {
  color: var(--stock-v3-muted);
  font-size: 11px !important;
  font-weight: 600;
}

#stock-view.stock-detail-v3 .quant-current-position dd {
  margin: 0;
  color: var(--stock-v3-text);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

#stock-view.stock-detail-v3 .quant-next-confirmation {
  margin: 0;
  padding: 14px 26px;
  border-top: 1px solid var(--stock-v3-line);
  color: #5f6772;
  font-size: 12px;
  font-weight: 600;
}

#stock-view.stock-detail-v3 .quant-context-note {
  margin: 0 0 14px;
  color: var(--stock-v3-muted);
  font-size: 12px;
  font-weight: 550;
  line-height: 1.5;
}

#stock-view.stock-detail-v3 .quant-context-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--stock-v3-line);
  list-style: none;
}

#stock-view.stock-detail-v3 .quant-context-list li {
  display: grid;
  grid-template-columns: minmax(130px, 0.7fr) minmax(0, 1.3fr);
  align-items: center;
  gap: 18px;
  min-height: 58px;
  padding: 10px 0;
  border-bottom: 1px solid var(--stock-v3-line);
}

#stock-view.stock-detail-v3 .quant-context-list li:last-child {
  border-bottom: 0;
}

#stock-view.stock-detail-v3 .quant-context-list li > div {
  display: grid;
  gap: 3px;
}

#stock-view.stock-detail-v3 .quant-context-list strong {
  color: var(--stock-v3-text);
  font-size: 13px;
  font-weight: 700;
}

#stock-view.stock-detail-v3 .quant-context-list span {
  color: var(--stock-v3-muted);
  font-size: 9px;
  line-height: 1.35;
}

#stock-view.stock-detail-v3 .quant-context-list p {
  margin: 0;
  color: #3f4650;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  text-align: right;
}

#stock-view.stock-detail-v3 .quant-context-list .quant-context-supportive p {
  color: var(--stock-v3-red);
}

#stock-view.stock-detail-v3 .quant-context-list .quant-context-caution p {
  color: var(--stock-v3-blue);
}

#stock-view.stock-detail-v3 .quant-context-list .quant-context-unavailable {
  opacity: 0.62;
}

#stock-view.stock-detail-v3 .quant-performance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--stock-v3-line);
  border-left: 1px solid var(--stock-v3-line);
}

#stock-view.stock-detail-v3 .quant-performance-grid > div {
  display: grid;
  gap: 5px;
  padding: 16px;
  border-right: 1px solid var(--stock-v3-line);
  border-bottom: 1px solid var(--stock-v3-line);
}

#stock-view.stock-detail-v3 .quant-performance-grid dt {
  color: var(--stock-v3-muted);
  font-size: 11px !important;
  font-weight: 600;
}

#stock-view.stock-detail-v3 .quant-performance-grid dd {
  margin: 0;
  color: var(--stock-v3-text);
  font-size: 18px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

#stock-view.stock-detail-v3 .quant-sample-note {
  margin: 14px 0 0;
  color: #66707c;
  font-size: 12px;
  font-weight: 550;
}

#stock-view.stock-detail-v3 .quant-sample-note.limited {
  color: #a66800;
}

#stock-view.stock-detail-v3 .quant-signal-chart {
  position: relative;
  min-height: 0;
  aspect-ratio: 19 / 8;
}

#stock-view.stock-detail-v3 .quant-signal-chart svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

#stock-view.stock-detail-v3 .quant-chart-marker line {
  stroke-width: 1.5;
}

#stock-view.stock-detail-v3 .quant-chart-marker text {
  display: none;
}

#stock-view.stock-detail-v3 .quant-chart-marker.buy line {
  stroke: var(--stock-v3-red);
}

#stock-view.stock-detail-v3 .quant-chart-marker.buy polygon,
#stock-view.stock-detail-v3 .quant-chart-marker.buy text {
  fill: var(--stock-v3-red);
}

#stock-view.stock-detail-v3 .quant-chart-marker.sell line {
  stroke: var(--stock-v3-blue);
}

#stock-view.stock-detail-v3 .quant-chart-marker.partial line {
  stroke: #a66800;
}

#stock-view.stock-detail-v3 .quant-chart-marker.partial polygon,
#stock-view.stock-detail-v3 .quant-chart-marker.partial text {
  fill: #a66800;
}

#stock-view.stock-detail-v3 .quant-chart-marker.sell polygon,
#stock-view.stock-detail-v3 .quant-chart-marker.sell text {
  fill: var(--stock-v3-blue);
}

#stock-view.stock-detail-v3 .quant-chart-marker.watch circle {
  fill: rgba(255, 255, 255, 0.9);
  stroke: #22262d;
  stroke-width: 2;
  stroke-dasharray: 3 2;
}

#stock-view.stock-detail-v3 .quant-chart-marker.watch text {
  fill: #22262d;
}

#stock-view.stock-detail-v3 .quant-chart-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 5px;
  color: var(--stock-v3-muted);
  font-size: 11px;
  font-weight: 600;
}

#stock-view.stock-detail-v3 .quant-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#stock-view.stock-detail-v3 .quant-chart-legend span::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22262d;
  content: "";
}

#stock-view.stock-detail-v3 .quant-chart-legend .buy::before {
  background: var(--stock-v3-red);
}

#stock-view.stock-detail-v3 .quant-chart-legend .sell::before {
  background: var(--stock-v3-blue);
}

#stock-view.stock-detail-v3 .quant-chart-legend .partial::before {
  background: #a66800;
}

#stock-view.stock-detail-v3 .quant-trade-list {
  border-top: 1px solid var(--stock-v3-line);
}

#stock-view.stock-detail-v3 .quant-trade-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 66px;
  border-bottom: 1px solid var(--stock-v3-line);
}

#stock-view.stock-detail-v3 .quant-trade-row > div {
  display: grid;
  gap: 4px;
}

#stock-view.stock-detail-v3 .quant-trade-row > div:last-child {
  text-align: right;
}

#stock-view.stock-detail-v3 .quant-trade-row strong {
  color: var(--stock-v3-text);
  font-size: 14px;
  font-weight: 700;
}

#stock-view.stock-detail-v3 .quant-trade-row span {
  color: var(--stock-v3-muted);
  font-size: 11px;
}

#stock-view.stock-detail-v3 .quant-methodology {
  margin-top: 18px;
}

#stock-view.stock-detail-v3 .quant-methodology summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  list-style: none;
}

#stock-view.stock-detail-v3 .quant-methodology summary::after {
  color: var(--stock-v3-muted);
  content: "+";
  font-size: 18px;
}

#stock-view.stock-detail-v3 .quant-methodology[open] summary::after {
  content: "−";
}

#stock-view.stock-detail-v3 .quant-methodology ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 20px;
  color: #515965;
  font-size: 12px;
  line-height: 1.55;
}

#stock-view.stock-detail-v3 .quant-methodology p {
  margin: 14px 0 0;
  padding: 12px 14px;
  background: #f6f7f9;
  color: #6b737f;
  font-size: 11px;
  line-height: 1.5;
}

#stock-view.stock-detail-v3 .quant-methodology .quant-methodology-limit {
  color: #6e5a37;
}

@media (max-width: 980px) {
  #stock-view.stock-detail-v3 .quant-signal-status,
  #stock-view.stock-detail-v3 .quant-current-card,
  #stock-view.stock-detail-v3 .quant-signal-stack > .stock-v3-section {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  #stock-view.stock-detail-v3 .quant-signal-stack {
    gap: 8px;
  }
}

@media (max-width: 480px) {
  #stock-view.stock-detail-v3 .quant-current-head {
    padding: 22px 20px 8px;
  }

  #stock-view.stock-detail-v3 .quant-current-head h2 {
    font-size: 25px !important;
  }

  #stock-view.stock-detail-v3 .quant-lifecycle {
    padding: 0 14px 18px;
  }

  #stock-view.stock-detail-v3 .quant-lifecycle li {
    font-size: 9px;
  }

  #stock-view.stock-detail-v3 .quant-current-reasons {
    padding: 18px 20px 18px 40px;
    font-size: 14px;
  }

  #stock-view.stock-detail-v3 .quant-current-position {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #stock-view.stock-detail-v3 .quant-current-position > div:nth-child(2n) {
    border-right: 0;
  }

  #stock-view.stock-detail-v3 .quant-current-position > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--stock-v3-line);
  }

  #stock-view.stock-detail-v3 .quant-next-confirmation {
    padding-inline: 20px;
  }

  #stock-view.stock-detail-v3 .quant-context-list li {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
  }

  #stock-view.stock-detail-v3 .quant-context-list p {
    font-size: 11px;
  }

  #stock-view.stock-detail-v3 .quant-performance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #stock-view.stock-detail-v3 .quant-performance-grid dd {
    font-size: 17px;
  }

  #stock-view.stock-detail-v3 .quant-signal-chart {
    min-height: 0;
    margin-right: -7px;
    margin-left: -7px;
  }

  #stock-view.stock-detail-v3 .stock-mini-chart .quant-chart-marker text,
  #stock-view.stock-detail-v3 .quant-signal-chart .quant-chart-marker text {
    display: none;
  }

  #stock-view.stock-detail-v3 .quant-trade-row strong {
    font-size: 13px;
  }
}

/* AI trading signal: current action first, details on demand. */
#stock-view.stock-detail-v3 .stock-v3-compat[hidden] {
  display: none !important;
}

#stock-view.stock-detail-v3 .quant-signal-stack {
  width: min(100%, 820px);
  margin: 0 auto;
  gap: 10px;
}

#stock-view.stock-detail-v3 .quant-current-card {
  padding: 22px 26px 0;
  background: #ffffff;
}

#stock-view.stock-detail-v3 .quant-current-head {
  align-items: center;
  padding: 0;
}

#stock-view.stock-detail-v3 .quant-signal-refresh {
  flex: 0 0 auto;
  min-width: 72px;
  height: 36px;
  border: 1px solid #cfd5dd;
  border-radius: 6px;
  background: #ffffff;
  color: #333a44;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

#stock-view.stock-detail-v3 .quant-signal-refresh:disabled {
  cursor: wait;
  opacity: 0.55;
}

#stock-view.stock-detail-v3 .quant-current-message,
#stock-view.stock-detail-v3 .quant-current-message[class*="quant-action-"] {
  max-width: 620px;
  margin: 0;
  font-size: 25px !important;
  font-weight: 850;
  line-height: 1.25;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

#stock-view.stock-detail-v3 .quant-current-position {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
  border-top: 1px solid #dfe4ea;
}

#stock-view.stock-detail-v3 .quant-current-position > div {
  min-width: 0;
  padding: 16px 14px 0;
  border-right: 1px solid #dfe4ea;
}

#stock-view.stock-detail-v3 .quant-current-position > div:first-child {
  padding-left: 0;
}

#stock-view.stock-detail-v3 .quant-current-position > div:last-child {
  padding-right: 0;
}

#stock-view.stock-detail-v3 .quant-current-position dd {
  min-width: 0;
  font-size: 15px;
  overflow-wrap: anywhere;
}

#stock-view.stock-detail-v3 .quant-current-position dd.positive {
  color: var(--stock-v3-red);
}

#stock-view.stock-detail-v3 .quant-current-position dd.negative {
  color: var(--stock-v3-blue);
}

#stock-view.stock-detail-v3 .quant-next-confirmation {
  margin: 20px 0 0;
  padding: 14px 0 18px;
  border-top: 1px solid #dfe4ea;
  color: #3e4753;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
}

#stock-view.stock-detail-v3 .quant-chart-card .stock-v3-section-head,
#stock-view.stock-detail-v3 .quant-performance-card .stock-v3-section-head {
  align-items: center;
}

#stock-view.stock-detail-v3 .quant-chart-card .stock-v3-source,
#stock-view.stock-detail-v3 .quant-performance-card .stock-v3-source {
  white-space: nowrap;
}

#stock-view.stock-detail-v3 .quant-signal-chart {
  min-height: 0;
}

#stock-view.stock-detail-v3 .quant-performance-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-left: 0;
}

#stock-view.stock-detail-v3 .quant-performance-grid > div {
  min-width: 0;
  padding: 16px 14px;
}

#stock-view.stock-detail-v3 .quant-performance-grid > div:first-child {
  padding-left: 0;
}

#stock-view.stock-detail-v3 .quant-performance-grid > div:last-child {
  padding-right: 0;
  border-right: 0;
}

#stock-view.stock-detail-v3 .quant-performance-grid dd {
  overflow-wrap: anywhere;
}

#stock-view.stock-detail-v3 .quant-history-card {
  padding: 20px 26px;
}

#stock-view.stock-detail-v3 .quant-trade-disclosure > summary {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cfd5dd;
  border-radius: 6px;
  color: #252b33;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  list-style: none;
}

#stock-view.stock-detail-v3 .quant-trade-disclosure > summary::-webkit-details-marker {
  display: none;
}

#stock-view.stock-detail-v3 .quant-trade-disclosure > summary::after {
  margin-left: 8px;
  color: #7a838e;
  content: "+";
}

#stock-view.stock-detail-v3 .quant-trade-disclosure[open] > summary::after {
  content: "−";
}

#stock-view.stock-detail-v3 .quant-trade-disclosure[open] .quant-trade-list {
  margin-top: 14px;
}

#stock-view.stock-detail-v3 .quant-trade-list {
  border-top: 0;
}

#stock-view.stock-detail-v3 .quant-trade-row {
  min-height: 62px;
  padding: 9px 0;
}

#stock-view.stock-detail-v3 .quant-trade-row > div:last-child:empty {
  display: none;
}

#stock-view.stock-detail-v3 .quant-disclaimer {
  margin: 14px 0 0;
  color: #8a929d;
  font-size: 10px;
  font-weight: 550;
  line-height: 1.45;
  text-align: center;
}

@media (max-width: 980px) {
  #stock-view.stock-detail-v3 .quant-current-card {
    padding: 20px 20px 0;
  }

  #stock-view.stock-detail-v3 .quant-history-card {
    padding: 18px 20px;
  }
}

@media (max-width: 480px) {
  #stock-view.stock-detail-v3 .quant-current-head {
    padding: 0;
  }

  #stock-view.stock-detail-v3 .quant-current-message,
  #stock-view.stock-detail-v3 .quant-current-message[class*="quant-action-"] {
    margin: 0;
    font-size: 23px !important;
    line-height: 1.3;
  }

  #stock-view.stock-detail-v3 .quant-current-position {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #stock-view.stock-detail-v3 .quant-current-position > div,
  #stock-view.stock-detail-v3 .quant-current-position > div:nth-child(-n + 2) {
    padding: 14px 8px 0;
    border-bottom: 0;
  }

  #stock-view.stock-detail-v3 .quant-current-position > div:nth-child(2n) {
    border-right: 1px solid #dfe4ea;
  }

  #stock-view.stock-detail-v3 .quant-current-position > div:first-child {
    padding-left: 0;
  }

  #stock-view.stock-detail-v3 .quant-current-position > div:last-child {
    padding-right: 0;
    border-right: 0;
  }

  #stock-view.stock-detail-v3 .quant-current-position dt {
    font-size: 10px !important;
  }

  #stock-view.stock-detail-v3 .quant-current-position dd {
    font-size: 13px;
  }

  #stock-view.stock-detail-v3 .quant-next-confirmation {
    padding-inline: 0;
  }

  #stock-view.stock-detail-v3 .quant-performance-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #stock-view.stock-detail-v3 .quant-performance-grid > div {
    padding: 14px 8px;
  }

  #stock-view.stock-detail-v3 .quant-performance-grid dt {
    font-size: 10px !important;
  }

  #stock-view.stock-detail-v3 .quant-performance-grid dd {
    font-size: 15px;
  }

  #stock-view.stock-detail-v3 .quant-signal-chart {
    min-height: 0;
    margin-right: -6px;
    margin-left: -6px;
  }
}

#stock-view.stock-detail-v3 .stock-community-status {
  margin: 18px 0 0;
  color: var(--stock-v3-muted);
  font-size: 13px;
  font-weight: 600;
}

#stock-view.stock-detail-v3 .stock-community-providers {
  margin-top: 12px;
}

#stock-view.stock-detail-v3 .stock-community-board {
  overflow: visible;
  border-bottom: 1px solid var(--stock-v3-line);
}

#stock-view.stock-detail-v3 .stock-community-tabs {
  margin: 0;
}

#stock-view.stock-detail-v3 .stock-community-board-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0 8px;
}

#stock-view.stock-detail-v3 .stock-community-board-summary strong {
  color: var(--stock-v3-text);
  font-size: 15px;
  font-weight: 800;
}

#stock-view.stock-detail-v3 .stock-community-board-summary span {
  overflow: hidden;
  color: var(--stock-v3-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#stock-view.stock-detail-v3 .stock-community-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}

#stock-view.stock-detail-v3 .stock-community-item {
  border-top: 1px solid var(--stock-v3-line);
}

#stock-view.stock-detail-v3 .stock-community-entry {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  padding: 17px 0;
  color: inherit;
}

#stock-view.stock-detail-v3 .stock-community-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 15px;
  font-weight: 750;
}

#stock-view.stock-detail-v3 .stock-community-avatar.is-naver_board {
  background: #14b85a;
}

#stock-view.stock-detail-v3 .stock-community-avatar.is-threads {
  background: #111;
}

#stock-view.stock-detail-v3 .stock-community-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#stock-view.stock-detail-v3 .stock-community-body {
  display: grid;
  min-width: 0;
  gap: 6px;
}

#stock-view.stock-detail-v3 .stock-community-line,
#stock-view.stock-detail-v3 .stock-community-identity {
  display: flex;
  align-items: center;
  min-width: 0;
}

#stock-view.stock-detail-v3 .stock-community-line {
  justify-content: space-between;
  gap: 10px;
}

#stock-view.stock-detail-v3 .stock-community-identity {
  gap: 7px;
  overflow: hidden;
}

#stock-view.stock-detail-v3 .stock-community-identity strong,
#stock-view.stock-detail-v3 .stock-community-identity > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#stock-view.stock-detail-v3 .stock-community-identity strong {
  flex: 0 1 auto;
  font-size: 14px;
}

#stock-view.stock-detail-v3 .stock-community-identity > span,
#stock-view.stock-detail-v3 .stock-community-meta {
  color: var(--stock-v3-muted);
  font-size: 12px;
}

#stock-view.stock-detail-v3 .stock-community-impact {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
}

#stock-view.stock-detail-v3 .stock-community-impact.is-positive {
  color: var(--stock-v3-red);
}

#stock-view.stock-detail-v3 .stock-community-impact.is-negative {
  color: var(--stock-v3-blue);
}

#stock-view.stock-detail-v3 .stock-community-impact.is-neutral {
  color: var(--stock-v3-muted);
}

#stock-view.stock-detail-v3 .stock-community-text {
  display: -webkit-box;
  overflow: hidden;
  color: var(--stock-v3-text);
  font-size: 15px;
  font-weight: 550;
  line-height: 1.55;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  margin: 0;
}

#stock-view.stock-detail-v3 .stock-community-text.expanded {
  display: block;
  overflow: visible;
}

#stock-view.stock-detail-v3 .stock-community-footer,
#stock-view.stock-detail-v3 .stock-community-actions {
  display: flex;
  align-items: center;
}

#stock-view.stock-detail-v3 .stock-community-footer {
  justify-content: space-between;
  gap: 12px;
}

#stock-view.stock-detail-v3 .stock-community-actions {
  flex: 0 0 auto;
  gap: 12px;
}

#stock-view.stock-detail-v3 .stock-community-expand,
#stock-view.stock-detail-v3 .stock-community-original {
  border: 0;
  background: transparent;
  color: var(--stock-v3-text);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

#stock-view.stock-detail-v3 .stock-community-empty {
  padding: 22px 0;
  border-top: 1px solid var(--stock-v3-line);
}

#stock-view.stock-detail-v3 .stock-community-empty span {
  color: var(--stock-v3-muted);
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 430px) {
  #stock-view.stock-detail-v3 .stock-community-status,
  #stock-view.stock-detail-v3 .stock-community-board-summary span,
  #stock-view.stock-detail-v3 .stock-community-identity > span,
  #stock-view.stock-detail-v3 .stock-community-meta,
  #stock-view.stock-detail-v3 .stock-community-impact {
    font-size: var(--stock-v3-type-label);
  }

  #stock-view.stock-detail-v3 .stock-community-identity strong {
    font-size: 14px;
    font-weight: 700;
  }

  #stock-view.stock-detail-v3 .stock-community-text {
    font-size: var(--stock-v3-type-body);
    font-weight: 550;
    line-height: 1.55;
  }
}

/* Watchlist 1.5: the same research hierarchy and tokens as stock detail 1.5. */
#watchlist-view.watchlist-v15 {
  --watch-v15-bg: #f3f4f6;
  --watch-v15-panel: #ffffff;
  --watch-v15-text: #16181d;
  --watch-v15-muted: #8a919d;
  --watch-v15-line: #e8ebef;
  --watch-v15-line-strong: #d8dde4;
  --watch-v15-positive: #e03131;
  --watch-v15-positive-soft: #fff0f1;
  --watch-v15-negative: #3478df;
  --watch-v15-negative-soft: #edf4ff;
  width: min(1180px, 100%);
  max-width: 100%;
  margin: 0 auto;
  padding-bottom: 40px;
  background: var(--watch-v15-bg);
  color: var(--watch-v15-text);
  font-family:
    -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR",
    sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  overflow: clip;
}

#watchlist-view.watchlist-v15,
#watchlist-view.watchlist-v15 * {
  min-width: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR",
    sans-serif;
  letter-spacing: 0;
}

#watchlist-view.watchlist-v15 .topbar {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  min-height: 86px;
  margin: 0 0 14px;
  padding: 10px 2px 18px;
  border-bottom: 1px solid var(--watch-v15-line);
}

#watchlist-view.watchlist-v15 .identity {
  width: 100%;
  justify-items: start;
  gap: 5px;
  text-align: left;
}

#watchlist-view.watchlist-v15 .identity > div {
  width: 100%;
}

#watchlist-view.watchlist-v15 .identity h1 {
  margin: 0;
  color: var(--watch-v15-text);
  font-size: 28px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
}

#watchlist-view.watchlist-v15 .identity p {
  margin: 0;
  color: var(--watch-v15-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

#watchlist-view.watchlist-v15 .watchlist-panel {
  gap: 14px;
}

#watchlist-view.watchlist-v15 .watchlist-strategy {
  display: grid;
  gap: 18px;
  padding: 24px 26px;
  border: 1px solid var(--watch-v15-line);
  border-radius: 8px;
  background: var(--watch-v15-panel);
  box-shadow: none;
}

#watchlist-view.watchlist-v15 .watchlist-strategy[hidden] {
  display: none;
}

#watchlist-view.watchlist-v15 .watch-v15-report-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

#watchlist-view.watchlist-v15 .watch-v15-report-title {
  display: grid;
  gap: 4px;
}

#watchlist-view.watchlist-v15 .watch-v15-report-title > span {
  color: var(--watch-v15-muted);
  font-size: 11px;
  font-weight: 650;
}

#watchlist-view.watchlist-v15 .watch-v15-report-title h2 {
  max-width: 760px;
  margin: 0;
  color: var(--watch-v15-text);
  font-size: 23px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  word-break: keep-all;
}

#watchlist-view.watchlist-v15 .watch-v15-phase {
  flex: 0 0 auto;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 6px;
  background: #f0f2f5;
  color: var(--watch-v15-muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

#watchlist-view.watchlist-v15 .watch-v15-phase.positive {
  background: var(--watch-v15-positive-soft);
  color: var(--watch-v15-positive);
}

#watchlist-view.watchlist-v15 .watch-v15-phase.negative {
  background: var(--watch-v15-negative-soft);
  color: var(--watch-v15-negative);
}

#watchlist-view.watchlist-v15 .watch-v15-portfolio-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border: 1px solid var(--watch-v15-line);
  background: var(--watch-v15-line);
  gap: 1px;
}

#watchlist-view.watchlist-v15 .watch-v15-portfolio-stats > div {
  min-height: 66px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 11px 14px;
  background: #f8f9fb;
}

#watchlist-view.watchlist-v15 .watch-v15-portfolio-stats dt,
#watchlist-view.watchlist-v15 .watch-v15-context dt,
#watchlist-view.watchlist-v15 .watch-v15-report-context dt {
  color: var(--watch-v15-muted);
  font-size: 11px;
  font-weight: 600;
}

#watchlist-view.watchlist-v15 .watch-v15-portfolio-stats dd {
  margin: 0;
  color: var(--watch-v15-text);
  font-size: 18px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

#watchlist-view.watchlist-v15 :is(.positive) > dd,
#watchlist-view.watchlist-v15 dd.positive,
#watchlist-view.watchlist-v15 span.positive {
  color: var(--watch-v15-positive);
}

#watchlist-view.watchlist-v15 :is(.negative) > dd,
#watchlist-view.watchlist-v15 dd.negative,
#watchlist-view.watchlist-v15 span.negative {
  color: var(--watch-v15-negative);
}

#watchlist-view.watchlist-v15 .watch-v15-report-body {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 28px;
}

#watchlist-view.watchlist-v15 .watch-v15-report-main {
  display: grid;
  align-content: start;
  gap: 16px;
}

#watchlist-view.watchlist-v15 .watch-v15-report-action {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border-left: 3px solid var(--watch-v15-text);
  background: #f6f7f9;
}

#watchlist-view.watchlist-v15 .watch-v15-report-action span {
  color: var(--watch-v15-muted);
  font-size: 11px;
  font-weight: 650;
}

#watchlist-view.watchlist-v15 .watch-v15-report-action strong {
  color: var(--watch-v15-text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
  word-break: keep-all;
}

#watchlist-view.watchlist-v15 .watch-v15-report-context,
#watchlist-view.watchlist-v15 .watch-v15-context {
  margin: 0;
}

#watchlist-view.watchlist-v15 .watch-v15-report-context > div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: baseline;
  gap: 12px;
  min-height: 42px;
  padding: 10px 0;
  border-bottom: 1px solid var(--watch-v15-line);
}

#watchlist-view.watchlist-v15 .watch-v15-report-context > div:first-child {
  border-top: 1px solid var(--watch-v15-line);
}

#watchlist-view.watchlist-v15 .watch-v15-report-context dd {
  overflow: hidden;
  margin: 0;
  color: var(--watch-v15-text);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#watchlist-view.watchlist-v15 .watch-v15-report-context .positive dd {
  color: var(--watch-v15-positive);
}

#watchlist-view.watchlist-v15 .watch-v15-report-context .negative dd {
  color: var(--watch-v15-negative);
}

#watchlist-view.watchlist-v15 .watch-v15-monitoring {
  align-self: stretch;
  padding-left: 24px;
  border-left: 1px solid var(--watch-v15-line);
}

#watchlist-view.watchlist-v15 .watch-v15-monitoring-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

#watchlist-view.watchlist-v15 .watch-v15-monitoring-head h3 {
  margin: 0;
  color: var(--watch-v15-text);
  font-size: 16px;
  font-weight: 750;
}

#watchlist-view.watchlist-v15 .watch-v15-monitoring-head span {
  color: var(--watch-v15-muted);
  font-size: 11px;
  font-weight: 600;
}

#watchlist-view.watchlist-v15 .watch-v15-monitoring-list {
  border-top: 1px solid var(--watch-v15-line);
}

#watchlist-view.watchlist-v15 .watch-v15-monitor-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--watch-v15-line);
  color: var(--watch-v15-text);
  text-decoration: none;
}

#watchlist-view.watchlist-v15 .watch-v15-monitor-row:hover,
#watchlist-view.watchlist-v15 .watch-v15-monitor-row:focus-visible {
  background: #f8f9fb;
  outline: none;
}

#watchlist-view.watchlist-v15 .watch-v15-monitor-rank {
  color: var(--watch-v15-muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

#watchlist-view.watchlist-v15 .watch-v15-monitor-copy {
  display: grid;
  gap: 3px;
}

#watchlist-view.watchlist-v15 .watch-v15-monitor-copy strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#watchlist-view.watchlist-v15 .watch-v15-monitor-copy small {
  overflow: hidden;
  color: var(--watch-v15-muted);
  font-size: 11px;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#watchlist-view.watchlist-v15 .watch-v15-monitor-row > span:last-child {
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

#watchlist-view.watchlist-v15 .watchlist-card-list {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 390px), 1fr));
  gap: 14px;
}

#watchlist-view.watchlist-v15 .watch-stock-card,
#watchlist-view.watchlist-v15 .watchlist-empty-card {
  border: 1px solid var(--watch-v15-line);
  border-radius: 8px !important;
  background: var(--watch-v15-panel);
  box-shadow: none;
}

#watchlist-view.watchlist-v15 .watch-v15-stock-card {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 22px;
  overflow: hidden;
}

#watchlist-view.watchlist-v15 .watch-v15-stock-head {
  align-items: flex-start;
}

#watchlist-view.watchlist-v15 .watch-stock-name {
  display: grid;
  gap: 6px;
  color: inherit;
  text-decoration: none;
}

#watchlist-view.watchlist-v15 .watch-stock-name > strong {
  color: var(--watch-v15-text);
  font-size: 20px !important;
  font-weight: 800;
  line-height: 1.3;
}

#watchlist-view.watchlist-v15 .watch-stock-quote {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

#watchlist-view.watchlist-v15 .watch-stock-name .watch-stock-inline-price,
#watchlist-view.watchlist-v15 .watch-stock-name .watch-stock-inline-change {
  color: var(--watch-v15-text);
  font-size: 18px !important;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

#watchlist-view.watchlist-v15 .watch-stock-name .watch-stock-inline-change.positive {
  color: var(--watch-v15-positive);
}

#watchlist-view.watchlist-v15 .watch-stock-name .watch-stock-inline-change.negative {
  color: var(--watch-v15-negative);
}

#watchlist-view.watchlist-v15 .watch-stock-card .remove-watch {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--watch-v15-positive);
  cursor: pointer;
  font-size: 22px !important;
  line-height: 1;
}

#watchlist-view.watchlist-v15 .watch-stock-card .remove-watch:hover,
#watchlist-view.watchlist-v15 .watch-stock-card .remove-watch:focus-visible {
  background: var(--watch-v15-positive-soft);
  outline: 2px solid transparent;
}

#watchlist-view.watchlist-v15 .watch-v15-response {
  display: grid;
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: #f6f7f9;
}

#watchlist-view.watchlist-v15 .watch-v15-response summary {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  cursor: pointer;
  list-style: none;
}

#watchlist-view.watchlist-v15 .watch-v15-response summary::-webkit-details-marker {
  display: none;
}

#watchlist-view.watchlist-v15 .watch-v15-response summary > div {
  display: grid;
  gap: 3px;
}

#watchlist-view.watchlist-v15 .watch-v15-response summary span {
  color: var(--watch-v15-muted);
  font-size: 11px;
  font-weight: 600;
}

#watchlist-view.watchlist-v15 .watch-v15-response summary strong {
  color: var(--watch-v15-text);
  font-size: 16px !important;
  font-weight: 750;
  line-height: 1.35;
}

#watchlist-view.watchlist-v15 .watch-v15-response.positive summary strong {
  color: var(--watch-v15-positive);
}

#watchlist-view.watchlist-v15 .watch-v15-response.negative summary strong {
  color: var(--watch-v15-negative);
}

#watchlist-view.watchlist-v15 .watch-v15-response summary::after {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  color: var(--watch-v15-muted);
  content: "+";
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
}

#watchlist-view.watchlist-v15 .watch-v15-response[open] summary::after {
  content: "−";
}

#watchlist-view.watchlist-v15 .watch-v15-response:not(.collapsed) summary::after {
  display: grid;
}

#watchlist-view.watchlist-v15 .watch-v15-response ul {
  display: grid;
  gap: 7px;
  margin: 0 14px;
  padding: 13px 0 13px 18px;
  border-top: 1px solid var(--watch-v15-line-strong);
  color: var(--watch-v15-text);
  font-size: 13px !important;
  font-weight: 550;
  line-height: 1.55 !important;
}

#watchlist-view.watchlist-v15 .watch-us-sector-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 5px 12px;
  margin: 0 14px;
  padding: 12px 0 14px;
  border-top: 1px solid var(--watch-v15-line-strong);
}

#watchlist-view.watchlist-v15 .watch-us-sector-strip > span {
  grid-column: 1 / -1;
  color: var(--watch-v15-muted);
  font-size: 11px;
  font-weight: 600;
}

#watchlist-view.watchlist-v15 .watch-us-sector-strip > strong {
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--watch-v15-text);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

#watchlist-view.watchlist-v15 .watch-us-sector-strip div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
}

#watchlist-view.watchlist-v15 .watch-us-sector-strip em {
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--watch-v15-muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 650;
}

#watchlist-view.watchlist-v15 .watch-us-sector-strip em.positive {
  background: transparent;
  color: var(--watch-v15-positive);
}

#watchlist-view.watchlist-v15 .watch-us-sector-strip em.negative {
  background: transparent;
  color: var(--watch-v15-negative);
}

#watchlist-view.watchlist-v15 .watch-v15-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--watch-v15-line);
  background: var(--watch-v15-line);
  gap: 1px;
}

#watchlist-view.watchlist-v15 .watch-v15-metrics > div {
  min-height: 66px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px 11px;
  background: #ffffff;
}

#watchlist-view.watchlist-v15 .watch-v15-metrics span {
  color: var(--watch-v15-muted);
  font-size: 11px;
  font-weight: 600;
}

#watchlist-view.watchlist-v15 .watch-v15-metrics strong {
  color: var(--watch-v15-text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

#watchlist-view.watchlist-v15 .watch-v15-metrics strong.positive {
  color: var(--watch-v15-positive);
}

#watchlist-view.watchlist-v15 .watch-v15-metrics strong.negative {
  color: var(--watch-v15-negative);
}

#watchlist-view.watchlist-v15 .watch-v15-context {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--watch-v15-line);
  border-left: 1px solid var(--watch-v15-line);
}

#watchlist-view.watchlist-v15 .watch-v15-context > div {
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 10px 12px;
  border-right: 1px solid var(--watch-v15-line);
  border-bottom: 1px solid var(--watch-v15-line);
}

#watchlist-view.watchlist-v15 .watch-v15-context dd {
  margin: 0;
  color: var(--watch-v15-text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

#watchlist-view.watchlist-v15 .watch-v15-context .positive dd {
  color: var(--watch-v15-positive);
}

#watchlist-view.watchlist-v15 .watch-v15-context .negative dd {
  color: var(--watch-v15-negative);
}

#watchlist-view.watchlist-v15 .watch-v15-card-footer {
  margin-top: -2px;
  border-top: 1px solid var(--watch-v15-line);
}

#watchlist-view.watchlist-v15 .watch-v15-card-footer a {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--watch-v15-text);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

#watchlist-view.watchlist-v15 .watch-v15-card-footer a span:last-child {
  color: var(--watch-v15-muted);
  font-size: 22px;
  font-weight: 400;
}

#watchlist-view.watchlist-v15 .watchlist-empty-card {
  min-height: 160px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 9px;
  padding: 28px 20px;
  text-align: center;
  color: var(--watch-v15-muted);
  font-size: 14px;
  font-weight: 650;
}

#watchlist-view.watchlist-v15 .watchlist-empty-card strong {
  color: var(--watch-v15-text);
  font-size: 18px;
  font-weight: 750;
}

#watchlist-view.watchlist-v15 .watchlist-empty-card p {
  max-width: 430px;
  margin: 0;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.55;
  word-break: keep-all;
}

#watchlist-view.watchlist-v15 .watchlist-empty-card button {
  min-height: 42px;
  margin-top: 7px;
  padding: 0 16px;
  border: 1px solid var(--watch-v15-text);
  border-radius: 6px;
  background: var(--watch-v15-text);
  color: #ffffff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

#watchlist-view.watchlist-v15 .watchlist-empty-card button:focus-visible {
  outline: 2px solid var(--watch-v15-negative);
  outline-offset: 2px;
}

#watchlist-view.watchlist-v15 .watch-stock-loading {
  min-height: 154px;
  align-content: center;
  box-shadow: none;
}

#watchlist-view.watchlist-v15 .watch-stock-loading > strong {
  color: var(--watch-v15-text);
  font-size: 18px !important;
  font-weight: 750;
}

@media (max-width: 820px) {
  #watchlist-view.watchlist-v15 .watch-v15-report-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  #watchlist-view.watchlist-v15 .watch-v15-monitoring {
    padding: 0;
    border-top: 1px solid var(--watch-v15-line);
    border-left: 0;
    padding-top: 18px;
  }
}

@media (max-width: 720px) {
  #watchlist-view.watchlist-v15 {
    width: 100%;
    max-width: 100%;
  }

  #watchlist-view.watchlist-v15 .topbar {
    align-items: flex-start;
    flex-direction: row;
    justify-content: flex-start;
    min-height: 78px;
    padding: 8px 0 16px;
  }

  #watchlist-view.watchlist-v15 .identity h1 {
    font-size: 25px !important;
  }

  #watchlist-view.watchlist-v15 .watchlist-strategy,
  #watchlist-view.watchlist-v15 .watch-v15-stock-card {
    padding: 20px 18px;
  }

  #watchlist-view.watchlist-v15 .watch-v15-report-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  #watchlist-view.watchlist-v15 .watch-v15-report-title h2 {
    font-size: 22px !important;
  }

  #watchlist-view.watchlist-v15 .watch-v15-portfolio-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #watchlist-view.watchlist-v15 .watchlist-card-list {
    grid-template-columns: minmax(0, 1fr);
  }

  #watchlist-view.watchlist-v15 .watch-v15-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  #watchlist-view.watchlist-v15 .topbar {
    min-height: 72px;
    margin-bottom: 12px;
  }

  #watchlist-view.watchlist-v15 .identity h1 {
    font-size: 24px !important;
  }

  #watchlist-view.watchlist-v15 .identity p {
    font-size: 12px;
  }

  #watchlist-view.watchlist-v15 .watchlist-strategy,
  #watchlist-view.watchlist-v15 .watch-v15-stock-card {
    padding: 18px 16px;
  }

  #watchlist-view.watchlist-v15 .watch-v15-report-title h2 {
    font-size: 20px !important;
    line-height: 1.4 !important;
  }

  #watchlist-view.watchlist-v15 .watch-v15-report-context > div {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  #watchlist-view.watchlist-v15 .watch-v15-monitor-row {
    grid-template-columns: 22px minmax(0, 1fr) auto;
  }

  #watchlist-view.watchlist-v15 .watch-stock-name > strong {
    font-size: 18px !important;
  }

  #watchlist-view.watchlist-v15 .watch-stock-name .watch-stock-inline-price,
  #watchlist-view.watchlist-v15 .watch-stock-name .watch-stock-inline-change {
    font-size: 17px !important;
  }

  #watchlist-view.watchlist-v15 .watch-v15-response summary {
    min-height: 68px;
  }

  #watchlist-view.watchlist-v15 .watch-v15-context dd {
    font-size: 12px;
  }
}

/* Watchlist 2.0: briefing first, comparison list second. */
#watchlist-view.watchlist-v2 {
  --watch-v2-bg: #f4f5f7;
  --watch-v2-panel: #ffffff;
  --watch-v2-text: #17191e;
  --watch-v2-muted: #7e8794;
  --watch-v2-line: #e4e7eb;
  --watch-v2-positive: #d82c3a;
  --watch-v2-negative: #2675df;
  width: min(100%, 1120px);
  max-width: 1120px;
  padding-bottom: 56px;
  overflow-x: clip;
  background: var(--watch-v2-bg);
  color: var(--watch-v2-text);
}

#watchlist-view.watchlist-v2,
#watchlist-view.watchlist-v2 * {
  letter-spacing: 0;
}

#watchlist-view.watchlist-v2 .topbar {
  min-height: 82px;
  margin: 0;
  padding: 12px 0 18px;
  border: 0;
  background: transparent;
}

#watchlist-view.watchlist-v2 .identity h1 {
  margin: 0;
  color: var(--watch-v2-text);
  font-size: 30px !important;
  font-weight: 800;
  line-height: 1.25 !important;
}

#watchlist-view.watchlist-v2 .identity p {
  margin-top: 5px;
  color: var(--watch-v2-muted);
  font-size: 12px;
  font-weight: 600;
}

#watchlist-view.watchlist-v2 .watchlist-panel {
  display: grid;
  gap: 26px;
}

#watchlist-view.watchlist-v2 .watch-v2-briefing {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 24px 26px;
  border: 1px solid var(--watch-v2-line);
  border-radius: 8px !important;
  background: var(--watch-v2-panel);
  box-shadow: none;
  overflow-anchor: none;
}

#watchlist-view.watchlist-v2 .watch-v2-briefing[hidden] {
  display: none;
}

#watchlist-view.watchlist-v2 .watch-v2-briefing-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
}

#watchlist-view.watchlist-v2 .watch-v2-briefing-title {
  min-width: 0;
  display: grid;
  gap: 5px;
}

#watchlist-view.watchlist-v2 .watch-v2-briefing-title > span,
#watchlist-view.watchlist-v2 .watch-v2-action > span {
  color: var(--watch-v2-muted);
  font-size: 11px;
  font-weight: 700;
}

#watchlist-view.watchlist-v2 .watch-v2-briefing-title h2 {
  max-width: 720px;
  margin: 0;
  color: var(--watch-v2-text);
  font-size: 24px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  word-break: keep-all;
}

#watchlist-view.watchlist-v2 .watch-v2-session {
  flex: 0 0 auto;
  margin: 2px 0 0;
  color: var(--watch-v2-muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

#watchlist-view.watchlist-v2 :is(.watch-v2-session, .watch-v2-status, .watch-v2-portfolio-line li, .watch-v2-evidence > div).positive,
#watchlist-view.watchlist-v2 .watch-v2-monitor-row > span:last-child.positive {
  color: var(--watch-v2-positive);
}

#watchlist-view.watchlist-v2 :is(.watch-v2-session, .watch-v2-status, .watch-v2-portfolio-line li, .watch-v2-evidence > div).negative,
#watchlist-view.watchlist-v2 .watch-v2-monitor-row > span:last-child.negative {
  color: var(--watch-v2-negative);
}

#watchlist-view.watchlist-v2 .watch-v2-briefing-body {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 34px;
}

#watchlist-view.watchlist-v2 .watch-v2-briefing-overview {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 15px;
}

#watchlist-view.watchlist-v2 .watch-v2-action {
  display: grid;
  gap: 5px;
  padding: 1px 0 1px 14px;
  border-left: 3px solid var(--watch-v2-text);
}

#watchlist-view.watchlist-v2 .watch-v2-action strong {
  color: var(--watch-v2-text);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.55;
  word-break: keep-all;
}

#watchlist-view.watchlist-v2 .watch-v2-portfolio-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 11px 0;
  border-top: 1px solid var(--watch-v2-line);
  border-bottom: 1px solid var(--watch-v2-line);
  list-style: none;
}

#watchlist-view.watchlist-v2 .watch-v2-portfolio-line li {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  color: var(--watch-v2-muted);
  font-size: 12px;
  font-weight: 650;
}

#watchlist-view.watchlist-v2 .watch-v2-portfolio-line strong {
  color: currentColor;
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

#watchlist-view.watchlist-v2 .watch-v2-briefing-context {
  margin: 0;
}

#watchlist-view.watchlist-v2 .watch-v2-briefing-context > div {
  min-height: 35px;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: baseline;
  gap: 12px;
  padding: 7px 0;
}

#watchlist-view.watchlist-v2 .watch-v2-briefing-context dt {
  color: var(--watch-v2-muted);
  font-size: 11px;
  font-weight: 650;
}

#watchlist-view.watchlist-v2 .watch-v2-briefing-context dd {
  min-width: 0;
  overflow: hidden;
  margin: 0;
  color: var(--watch-v2-text);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#watchlist-view.watchlist-v2 .watch-v2-briefing-context .positive dd {
  color: var(--watch-v2-positive);
}

#watchlist-view.watchlist-v2 .watch-v2-briefing-context .negative dd {
  color: var(--watch-v2-negative);
}

#watchlist-view.watchlist-v2 .watch-v2-monitoring {
  min-width: 0;
  padding-left: 26px;
  border-left: 1px solid var(--watch-v2-line);
}

#watchlist-view.watchlist-v2 .watch-v2-monitoring-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

#watchlist-view.watchlist-v2 .watch-v2-monitoring-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
}

#watchlist-view.watchlist-v2 .watch-v2-monitoring-head span {
  color: var(--watch-v2-muted);
  font-size: 11px;
  font-weight: 650;
}

#watchlist-view.watchlist-v2 .watch-v2-monitoring-list {
  border-top: 1px solid var(--watch-v2-line);
}

#watchlist-view.watchlist-v2 .watch-v2-monitor-row {
  min-height: 47px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid var(--watch-v2-line);
  color: var(--watch-v2-text);
  text-decoration: none;
}

#watchlist-view.watchlist-v2 .watch-v2-monitor-row:hover,
#watchlist-view.watchlist-v2 .watch-v2-monitor-row:focus-visible {
  background: #f7f8fa;
  outline: none;
}

#watchlist-view.watchlist-v2 .watch-v2-monitor-rank {
  color: var(--watch-v2-muted);
  font-size: 11px;
  font-weight: 750;
  text-align: center;
}

#watchlist-view.watchlist-v2 .watch-v2-monitor-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

#watchlist-view.watchlist-v2 .watch-v2-monitor-copy strong,
#watchlist-view.watchlist-v2 .watch-v2-monitor-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#watchlist-view.watchlist-v2 .watch-v2-monitor-copy strong {
  font-size: 13px;
  font-weight: 750;
}

#watchlist-view.watchlist-v2 .watch-v2-monitor-copy small {
  color: var(--watch-v2-muted);
  font-size: 10px;
  font-weight: 550;
}

#watchlist-view.watchlist-v2 .watch-v2-monitor-row > span:last-child {
  font-size: 12px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

#watchlist-view.watchlist-v2 .watch-v2-list-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-top: 2px;
}

#watchlist-view.watchlist-v2 .watch-v2-list-head h2 {
  margin: 0;
  color: var(--watch-v2-text);
  font-size: 21px;
  font-weight: 800;
}

#watchlist-view.watchlist-v2 .watch-v2-list-head p {
  margin: 5px 0 0;
  color: var(--watch-v2-muted);
  font-size: 12px;
  font-weight: 600;
}

#watchlist-view.watchlist-v2 .watch-v2-filter {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(88px, 1fr));
  overflow: hidden;
  border: 1px solid #cfd5dc;
  border-radius: 6px;
}

#watchlist-view.watchlist-v2 .watch-v2-filter button {
  min-height: 38px;
  padding: 0 13px;
  border: 0;
  border-right: 1px solid #dfe3e8;
  border-radius: 0;
  background: #ffffff;
  color: #68717e;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

#watchlist-view.watchlist-v2 .watch-v2-filter button:last-child {
  border-right: 0;
}

#watchlist-view.watchlist-v2 .watch-v2-filter button.active {
  background: var(--watch-v2-text);
  color: #ffffff;
}

#watchlist-view.watchlist-v2 .watch-v2-filter button:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid var(--watch-v2-negative);
  outline-offset: -2px;
}

#watchlist-view.watchlist-v2 .watch-v2-list-surface {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--watch-v2-line);
  border-radius: 8px !important;
  background: var(--watch-v2-panel);
}

#watchlist-view.watchlist-v2 .watch-v2-list-surface.is-filter-empty::after {
  min-height: 132px;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--watch-v2-muted);
  content: "조건에 맞는 종목이 없습니다.";
  font-size: 13px;
  font-weight: 650;
}

#watchlist-view.watchlist-v2 .watch-v2-stock-row {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 0;
  padding: 18px 22px 0;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid var(--watch-v2-line);
  border-radius: 0 !important;
  background: #ffffff;
  box-shadow: none;
}

#watchlist-view.watchlist-v2 .watch-v2-stock-row:last-child {
  border-bottom: 0;
}

#watchlist-view.watchlist-v2 .watch-v2-stock-row[hidden] {
  display: none !important;
}

#watchlist-view.watchlist-v2 .watch-v2-stock-head {
  min-height: 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  align-items: start;
  gap: 14px;
  padding-bottom: 13px;
}

#watchlist-view.watchlist-v2 .watch-stock-name {
  min-width: 0;
  display: grid;
  gap: 5px;
  color: inherit;
  text-decoration: none;
}

#watchlist-view.watchlist-v2 .watch-v2-stock-name-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

#watchlist-view.watchlist-v2 .watch-v2-stock-name-row > strong {
  overflow: hidden;
  color: var(--watch-v2-text);
  font-size: 18px !important;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#watchlist-view.watchlist-v2 .watch-v2-status {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--watch-v2-muted);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

#watchlist-view.watchlist-v2 .watch-v2-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

#watchlist-view.watchlist-v2 .watch-stock-quote {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

#watchlist-view.watchlist-v2 .watch-stock-inline-price,
#watchlist-view.watchlist-v2 .watch-stock-inline-change {
  color: var(--watch-v2-text);
  font-size: 16px !important;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

#watchlist-view.watchlist-v2 .watch-stock-inline-change.positive {
  color: var(--watch-v2-positive);
}

#watchlist-view.watchlist-v2 .watch-stock-inline-change.negative {
  color: var(--watch-v2-negative);
}

#watchlist-view.watchlist-v2 .watch-stock-card .remove-watch {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--watch-v2-positive);
  cursor: pointer;
  font-size: 20px !important;
  line-height: 1;
}

#watchlist-view.watchlist-v2 .watch-stock-card .remove-watch:hover,
#watchlist-view.watchlist-v2 .watch-stock-card .remove-watch:focus-visible {
  background: #fff1f2;
  outline: none;
}

#watchlist-view.watchlist-v2 .watch-v2-response {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--watch-v2-line);
  border-radius: 0;
  background: transparent;
}

#watchlist-view.watchlist-v2 .watch-v2-response summary {
  min-height: 57px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  cursor: pointer;
  list-style: none;
}

#watchlist-view.watchlist-v2 .watch-v2-response summary::-webkit-details-marker {
  display: none;
}

#watchlist-view.watchlist-v2 .watch-v2-response summary > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

#watchlist-view.watchlist-v2 .watch-v2-response summary span {
  color: var(--watch-v2-muted);
  font-size: 10px;
  font-weight: 650;
}

#watchlist-view.watchlist-v2 .watch-v2-response summary strong {
  overflow: hidden;
  color: var(--watch-v2-text);
  font-size: 14px !important;
  font-weight: 750;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#watchlist-view.watchlist-v2 .watch-v2-response.positive summary strong {
  color: var(--watch-v2-positive);
}

#watchlist-view.watchlist-v2 .watch-v2-response.negative summary strong {
  color: var(--watch-v2-negative);
}

#watchlist-view.watchlist-v2 .watch-v2-response summary::after {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f3f5f7;
  color: #727b87;
  content: "+";
  font-size: 17px;
  font-weight: 500;
}

#watchlist-view.watchlist-v2 .watch-v2-response[open] summary::after {
  content: "−";
}

#watchlist-view.watchlist-v2 .watch-v2-response-body {
  display: grid;
  gap: 0;
  padding-bottom: 12px;
  border-top: 1px solid var(--watch-v2-line);
}

#watchlist-view.watchlist-v2 .watch-v2-response-body > ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 12px 0 12px 18px;
  border: 0;
  color: var(--watch-v2-text);
  font-size: 12px !important;
  font-weight: 550;
  line-height: 1.5 !important;
}

#watchlist-view.watchlist-v2 .watch-v2-evidence {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--watch-v2-line);
  border-bottom: 1px solid var(--watch-v2-line);
}

#watchlist-view.watchlist-v2 .watch-v2-evidence > div {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-right: 1px solid var(--watch-v2-line);
}

#watchlist-view.watchlist-v2 .watch-v2-evidence > div:last-child {
  border-right: 0;
}

#watchlist-view.watchlist-v2 .watch-v2-evidence dt {
  color: var(--watch-v2-muted);
  font-size: 10px;
  font-weight: 650;
}

#watchlist-view.watchlist-v2 .watch-v2-evidence dd {
  overflow: hidden;
  margin: 0;
  color: currentColor;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#watchlist-view.watchlist-v2 .watch-us-sector-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 4px 12px;
  margin: 0;
  padding: 11px 0 0;
  border: 0;
}

#watchlist-view.watchlist-v2 .watch-us-sector-strip > span {
  grid-column: 1 / -1;
  color: var(--watch-v2-muted);
  font-size: 10px;
  font-weight: 650;
}

#watchlist-view.watchlist-v2 .watch-us-sector-strip > strong,
#watchlist-view.watchlist-v2 .watch-us-sector-strip em {
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
}

#watchlist-view.watchlist-v2 .watch-us-sector-strip div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 9px;
}

#watchlist-view.watchlist-v2 .watch-v2-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 0;
  border-top: 1px solid var(--watch-v2-line);
  background: transparent;
}

#watchlist-view.watchlist-v2 .watch-v2-metrics > div {
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 9px 12px;
  border-right: 1px solid var(--watch-v2-line);
  background: transparent;
}

#watchlist-view.watchlist-v2 .watch-v2-metrics > div:first-child {
  padding-left: 0;
}

#watchlist-view.watchlist-v2 .watch-v2-metrics > div:last-child {
  border-right: 0;
}

#watchlist-view.watchlist-v2 .watch-v2-metrics span {
  color: var(--watch-v2-muted);
  font-size: 10px;
  font-weight: 650;
}

#watchlist-view.watchlist-v2 .watch-v2-metrics strong {
  overflow: hidden;
  color: var(--watch-v2-text);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#watchlist-view.watchlist-v2 .watch-v2-metrics strong.positive {
  color: var(--watch-v2-positive);
}

#watchlist-view.watchlist-v2 .watch-v2-metrics strong.negative {
  color: var(--watch-v2-negative);
}

#watchlist-view.watchlist-v2 .watch-v2-row-footer {
  border-top: 1px solid var(--watch-v2-line);
}

#watchlist-view.watchlist-v2 .watch-v2-row-footer a {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--watch-v2-text);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

#watchlist-view.watchlist-v2 .watch-v2-row-footer a span:last-child {
  color: var(--watch-v2-muted);
  font-size: 20px;
  font-weight: 400;
}

#watchlist-view.watchlist-v2 .watch-stock-loading {
  min-height: 118px;
  align-content: center;
  gap: 10px;
  padding-bottom: 18px;
}

#watchlist-view.watchlist-v2 .watch-stock-loading > strong {
  color: var(--watch-v2-text);
  font-size: 16px !important;
  font-weight: 750;
}

#watchlist-view.watchlist-v2 .watchlist-empty-card {
  min-height: 170px;
  border: 0;
  border-radius: 0 !important;
  box-shadow: none;
}

@media (max-width: 820px) {
  #watchlist-view.watchlist-v2 .watch-v2-briefing-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  #watchlist-view.watchlist-v2 .watch-v2-monitoring {
    padding: 15px 0 0;
    border-top: 1px solid var(--watch-v2-line);
    border-left: 0;
  }
}

@media (max-width: 720px) {
  #watchlist-view.watchlist-v2 {
    width: 100%;
    max-width: 100%;
  }

  #watchlist-view.watchlist-v2 .topbar {
    min-height: 72px;
    padding: 7px 0 15px;
  }

  #watchlist-view.watchlist-v2 .identity h1 {
    font-size: 26px !important;
  }

  #watchlist-view.watchlist-v2 .watchlist-panel {
    gap: 22px;
  }

  #watchlist-view.watchlist-v2 .watch-v2-briefing {
    gap: 18px;
    padding: 19px 18px;
  }

  #watchlist-view.watchlist-v2 .watch-v2-briefing-head {
    display: grid;
    gap: 8px;
  }

  #watchlist-view.watchlist-v2 .watch-v2-briefing-title h2 {
    font-size: 21px !important;
    line-height: 1.38 !important;
  }

  #watchlist-view.watchlist-v2 .watch-v2-session {
    margin: 0;
    white-space: normal;
  }

  #watchlist-view.watchlist-v2 .watch-v2-action strong {
    font-size: 14px;
  }

  #watchlist-view.watchlist-v2 .watch-v2-monitor-row {
    min-height: 44px;
  }

  #watchlist-view.watchlist-v2 .watch-v2-list-head {
    align-items: stretch;
    flex-direction: column;
    gap: 13px;
  }

  #watchlist-view.watchlist-v2 .watch-v2-list-head h2 {
    font-size: 20px;
  }

  #watchlist-view.watchlist-v2 .watch-v2-filter {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #watchlist-view.watchlist-v2 .watch-v2-filter button {
    min-width: 0;
    min-height: 42px;
    padding: 0 6px;
  }

  #watchlist-view.watchlist-v2 .watch-v2-stock-row {
    padding: 16px 17px 0;
  }

  #watchlist-view.watchlist-v2 .watch-v2-stock-head {
    min-height: 52px;
    padding-bottom: 11px;
  }

  #watchlist-view.watchlist-v2 .watch-v2-response summary {
    min-height: 54px;
  }

  #watchlist-view.watchlist-v2 .watch-v2-evidence {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #watchlist-view.watchlist-v2 .watch-v2-evidence > div:nth-child(2) {
    border-right: 0;
  }

  #watchlist-view.watchlist-v2 .watch-v2-evidence > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--watch-v2-line);
  }

  #watchlist-view.watchlist-v2 .watch-v2-metrics > div {
    min-height: 56px;
    padding: 8px 9px;
  }
}

@media (max-width: 430px) {
  #watchlist-view.watchlist-v2 .identity h1 {
    font-size: 25px !important;
  }

  #watchlist-view.watchlist-v2 .watch-v2-briefing {
    padding: 18px 16px;
  }

  #watchlist-view.watchlist-v2 .watch-v2-briefing-title h2 {
    font-size: 20px !important;
  }

  #watchlist-view.watchlist-v2 .watch-v2-portfolio-line {
    gap: 7px 14px;
  }

  #watchlist-view.watchlist-v2 .watch-v2-briefing-context > div {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  #watchlist-view.watchlist-v2 .watch-v2-stock-row {
    padding-inline: 15px;
  }

  #watchlist-view.watchlist-v2 .watch-v2-stock-name-row {
    gap: 7px;
  }

  #watchlist-view.watchlist-v2 .watch-v2-stock-name-row > strong {
    font-size: 17px !important;
  }

  #watchlist-view.watchlist-v2 .watch-stock-inline-price,
  #watchlist-view.watchlist-v2 .watch-stock-inline-change {
    font-size: 15px !important;
  }

  #watchlist-view.watchlist-v2 .watch-v2-response summary strong {
    font-size: 13px !important;
  }

  #watchlist-view.watchlist-v2 .watch-v2-metrics strong {
    font-size: 12px;
  }
}

/* Watchlist 3.1: share the stock-detail visual language. */
#watchlist-view.watchlist-v3 {
  --watch-v2-bg: #f3f4f6;
  --watch-v2-panel: #ffffff;
  --watch-v2-text: #16181d;
  --watch-v2-muted: #8a919d;
  --watch-v2-line: #e8ebef;
  --watch-v2-line-strong: #d8dde4;
  --watch-v2-positive: #e03131;
  --watch-v2-negative: #3478df;
  width: min(100%, 1120px);
  max-width: 1120px;
  padding-bottom: 56px;
  overflow-x: clip;
  background: var(--watch-v2-bg);
  color: var(--watch-v2-text);
  font-family:
    -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR",
    sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

#watchlist-view.watchlist-v3 .topbar {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  padding: 10px 2px 14px;
  border: 0;
  background: transparent;
}

#watchlist-view.watchlist-v3 .identity,
#watchlist-view.watchlist-v3 .identity > div {
  width: 100%;
  display: block;
  text-align: left;
}

#watchlist-view.watchlist-v3 .identity h1 {
  margin: 0;
  color: var(--watch-v2-text);
  font-size: 24px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
}

#watchlist-view.watchlist-v3 .identity p {
  margin: 4px 0 0;
  color: var(--watch-v2-muted);
  font-size: 11px !important;
  font-weight: 500;
  line-height: 1.4;
}

#watchlist-view.watchlist-v3 .watch-v3-tabs {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0 24px;
  overflow: visible;
  border: 1px solid var(--watch-v2-line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
}

#watchlist-view.watchlist-v3 .watch-v3-tabs button {
  position: relative;
  min-width: 0;
  min-height: 58px;
  padding: 0 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #a0a5ae;
  cursor: pointer;
  font-size: 16px !important;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

#watchlist-view.watchlist-v3 .watch-v3-tabs button.active {
  background: transparent;
  color: var(--watch-v2-text);
}

#watchlist-view.watchlist-v3 .watch-v3-tabs button.active::after {
  position: absolute;
  right: 12%;
  bottom: 0;
  left: 12%;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--watch-v2-text);
  content: "";
}

#watchlist-view.watchlist-v3 .watch-v3-tabs button:focus-visible {
  z-index: 1;
  outline: 2px solid var(--watch-v2-negative);
  outline-offset: -4px;
}

#watchlist-view.watchlist-v3 .watchlist-panel {
  display: grid;
  gap: 14px;
}

#watchlist-view.watchlist-v3 .watch-v2-briefing,
#watchlist-view.watchlist-v3 .watch-v3-stock-section {
  margin: 0;
  border: 1px solid var(--watch-v2-line);
  border-radius: 8px !important;
  background: var(--watch-v2-panel);
  box-shadow: none;
}

#watchlist-view.watchlist-v3 .watch-v2-briefing {
  display: grid;
  gap: 18px;
  padding: 24px 26px;
  overflow-anchor: none;
}

#watchlist-view.watchlist-v3 .watch-v2-briefing[hidden] {
  display: none;
}

#watchlist-view.watchlist-v3 .watch-v2-briefing-head,
#watchlist-view.watchlist-v3 .watch-v2-list-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

#watchlist-view.watchlist-v3 .watch-v2-briefing-title,
#watchlist-view.watchlist-v3 .watch-v2-list-head > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

#watchlist-view.watchlist-v3 .watch-v2-briefing-title > span,
#watchlist-view.watchlist-v3 .watch-v2-list-head > div > span,
#watchlist-view.watchlist-v3 .watch-v2-action > span {
  color: #9aa0aa;
  font-size: 10px;
  font-weight: 600;
}

#watchlist-view.watchlist-v3 .watch-v2-briefing-title h2,
#watchlist-view.watchlist-v3 .watch-v2-list-head h2 {
  max-width: 720px;
  margin: 0;
  color: var(--watch-v2-text);
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  word-break: keep-all;
}

#watchlist-view.watchlist-v3 .watch-v2-session,
#watchlist-view.watchlist-v3 .watch-v2-list-head p {
  flex: 0 0 auto;
  margin: 0;
  color: var(--watch-v2-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  text-align: right;
}

#watchlist-view.watchlist-v3 .watch-v2-briefing-body {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 32px;
}

#watchlist-view.watchlist-v3 .watch-v2-briefing-overview {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 16px;
}

#watchlist-view.watchlist-v3 .watch-v2-action {
  display: grid;
  gap: 5px;
  padding: 16px 18px;
  border: 0;
  border-radius: 8px;
  background: #f6f7f9;
}

#watchlist-view.watchlist-v3 .watch-v2-action strong {
  color: var(--watch-v2-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.65;
  word-break: keep-all;
}

#watchlist-view.watchlist-v3 .watch-v2-portfolio-line,
#watchlist-view.watchlist-v3 .watch-v2-metrics,
#watchlist-view.watchlist-v3 .watch-v2-evidence {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--watch-v2-line);
  background: transparent;
}

#watchlist-view.watchlist-v3 .watch-v2-portfolio-line > div,
#watchlist-view.watchlist-v3 .watch-v2-metrics > div,
#watchlist-view.watchlist-v3 .watch-v2-evidence > div {
  min-width: 0;
  min-height: 64px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 12px 10px 10px 0;
  border-right: 0;
  border-bottom: 1px solid var(--watch-v2-line);
  background: transparent;
}

#watchlist-view.watchlist-v3 .watch-v2-portfolio-line > div:nth-child(odd),
#watchlist-view.watchlist-v3 .watch-v2-metrics > div:nth-child(odd),
#watchlist-view.watchlist-v3 .watch-v2-evidence > div:nth-child(odd) {
  border-right: 1px solid var(--watch-v2-line);
}

#watchlist-view.watchlist-v3 .watch-v2-portfolio-line > div:nth-child(even),
#watchlist-view.watchlist-v3 .watch-v2-metrics > div:nth-child(even),
#watchlist-view.watchlist-v3 .watch-v2-evidence > div:nth-child(even) {
  padding-right: 0;
  padding-left: 12px;
}

#watchlist-view.watchlist-v3 :is(.watch-v2-portfolio-line, .watch-v2-metrics, .watch-v2-evidence) dt,
#watchlist-view.watchlist-v3 .watch-v2-metrics span {
  color: var(--watch-v2-muted);
  font-size: 12px !important;
  font-weight: 500;
}

#watchlist-view.watchlist-v3 :is(.watch-v2-portfolio-line, .watch-v2-metrics, .watch-v2-evidence) dd,
#watchlist-view.watchlist-v3 .watch-v2-metrics strong {
  min-width: 0;
  overflow: hidden;
  margin: 0;
  color: var(--watch-v2-text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#watchlist-view.watchlist-v3 :is(.watch-v2-portfolio-line, .watch-v2-metrics, .watch-v2-evidence) .positive,
#watchlist-view.watchlist-v3 :is(.watch-v2-portfolio-line, .watch-v2-metrics, .watch-v2-evidence) .positive dd,
#watchlist-view.watchlist-v3 :is(.watch-v2-portfolio-line, .watch-v2-metrics, .watch-v2-evidence) dd.positive,
#watchlist-view.watchlist-v3 .watch-v2-monitor-row > span:last-child.positive {
  color: var(--watch-v2-positive);
}

#watchlist-view.watchlist-v3 :is(.watch-v2-portfolio-line, .watch-v2-metrics, .watch-v2-evidence) .negative,
#watchlist-view.watchlist-v3 :is(.watch-v2-portfolio-line, .watch-v2-metrics, .watch-v2-evidence) .negative dd,
#watchlist-view.watchlist-v3 :is(.watch-v2-portfolio-line, .watch-v2-metrics, .watch-v2-evidence) dd.negative,
#watchlist-view.watchlist-v3 .watch-v2-monitor-row > span:last-child.negative {
  color: var(--watch-v2-negative);
}

#watchlist-view.watchlist-v3 .watch-v2-briefing-context {
  margin: 0;
  border-top: 1px solid var(--watch-v2-line);
}

#watchlist-view.watchlist-v3 .watch-v2-briefing-context > div {
  min-height: 47px;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--watch-v2-line);
}

#watchlist-view.watchlist-v3 .watch-v2-briefing-context dt {
  color: var(--watch-v2-muted);
  font-size: 12px;
  font-weight: 500;
}

#watchlist-view.watchlist-v3 .watch-v2-briefing-context dd {
  min-width: 0;
  overflow: hidden;
  margin: 0;
  color: var(--watch-v2-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#watchlist-view.watchlist-v3 .watch-v2-briefing-context .positive dd {
  color: var(--watch-v2-positive);
}

#watchlist-view.watchlist-v3 .watch-v2-briefing-context .negative dd {
  color: var(--watch-v2-negative);
}

#watchlist-view.watchlist-v3 .watch-v2-monitoring {
  min-width: 0;
  padding-left: 26px;
  border-left: 1px solid var(--watch-v2-line);
}

#watchlist-view.watchlist-v3 .watch-v2-monitoring-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

#watchlist-view.watchlist-v3 .watch-v2-monitoring-head h3 {
  margin: 0;
  color: var(--watch-v2-text);
  font-size: 16px;
  font-weight: 700;
}

#watchlist-view.watchlist-v3 .watch-v2-monitoring-head span {
  color: var(--watch-v2-muted);
  font-size: 11px;
  font-weight: 500;
}

#watchlist-view.watchlist-v3 .watch-v2-monitoring-list {
  border-top: 1px solid var(--watch-v2-line);
}

#watchlist-view.watchlist-v3 .watch-v2-monitor-row {
  min-height: 52px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid var(--watch-v2-line);
  color: var(--watch-v2-text);
  text-decoration: none;
}

#watchlist-view.watchlist-v3 .watch-v2-monitor-row:hover,
#watchlist-view.watchlist-v3 .watch-v2-monitor-row:focus-visible {
  background: #f7f8fa;
  outline: none;
}

#watchlist-view.watchlist-v3 .watch-v2-monitor-rank {
  color: var(--watch-v2-muted);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}

#watchlist-view.watchlist-v3 .watch-v2-monitor-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

#watchlist-view.watchlist-v3 .watch-v2-monitor-copy strong,
#watchlist-view.watchlist-v3 .watch-v2-monitor-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#watchlist-view.watchlist-v3 .watch-v2-monitor-copy strong {
  font-size: 15px;
  font-weight: 600;
}

#watchlist-view.watchlist-v3 .watch-v2-monitor-copy small {
  color: var(--watch-v2-muted);
  font-size: 11px;
  font-weight: 500;
}

#watchlist-view.watchlist-v3 .watch-v2-monitor-row > span:last-child {
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

#watchlist-view.watchlist-v3 .watch-v3-stock-section {
  overflow: hidden;
}

#watchlist-view.watchlist-v3 .watch-v2-list-head {
  margin: 0;
  padding: 24px 26px 18px;
}

#watchlist-view.watchlist-v3 .watch-v2-list-surface {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  overflow: visible;
  border: 0;
  border-top: 0;
  border-radius: 0 !important;
  background: var(--watch-v2-bg);
}

#watchlist-view.watchlist-v3 .watch-v2-list-surface.is-filter-empty::after {
  min-height: 132px;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--watch-v2-muted);
  content: "조건에 맞는 종목이 없습니다.";
  font-size: 13px;
  font-weight: 500;
}

#watchlist-view.watchlist-v3 .watch-v2-stock-row {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 0;
  margin: 0;
  padding: 22px 24px 0;
  overflow: hidden;
  border: 1px solid var(--watch-v2-line);
  border-radius: 8px !important;
  background: var(--watch-v2-panel);
  box-shadow: none;
}

#watchlist-view.watchlist-v3 .watch-v2-stock-row:last-child {
  border-bottom: 1px solid var(--watch-v2-line);
}

#watchlist-view.watchlist-v3 .watch-v2-stock-row[hidden] {
  display: none !important;
}

#watchlist-view.watchlist-v3 .watch-v2-stock-head {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  align-items: start;
  gap: 14px;
  padding-bottom: 14px;
}

#watchlist-view.watchlist-v3 .watch-stock-name {
  min-width: 0;
  display: grid;
  gap: 5px;
  color: inherit;
  text-decoration: none;
}

#watchlist-view.watchlist-v3 .watch-v2-stock-name-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

#watchlist-view.watchlist-v3 .watch-v2-stock-name-row > strong {
  overflow: hidden;
  color: var(--watch-v2-text);
  font-size: 18px !important;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#watchlist-view.watchlist-v3 .watch-v2-status {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--watch-v2-muted);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

#watchlist-view.watchlist-v3 .watch-v2-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

#watchlist-view.watchlist-v3 .watch-stock-quote {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

#watchlist-view.watchlist-v3 .watch-stock-inline-price,
#watchlist-view.watchlist-v3 .watch-stock-inline-change {
  color: var(--watch-v2-text);
  font-size: 15px !important;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

#watchlist-view.watchlist-v3 .watch-stock-inline-change.positive {
  color: var(--watch-v2-positive);
}

#watchlist-view.watchlist-v3 .watch-stock-inline-change.negative {
  color: var(--watch-v2-negative);
}

#watchlist-view.watchlist-v3 .watch-stock-card .remove-watch {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--watch-v2-positive);
  cursor: pointer;
  font-size: 20px !important;
  line-height: 1;
}

#watchlist-view.watchlist-v3 .watch-stock-card .remove-watch:hover,
#watchlist-view.watchlist-v3 .watch-stock-card .remove-watch:focus-visible {
  background: #fff1f2;
  outline: none;
}

#watchlist-view.watchlist-v3 .watch-v2-response {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--watch-v2-line);
  border-radius: 0;
  background: transparent;
}

#watchlist-view.watchlist-v3 .watch-v2-response summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  cursor: pointer;
  list-style: none;
}

#watchlist-view.watchlist-v3 .watch-v2-response summary::-webkit-details-marker {
  display: none;
}

#watchlist-view.watchlist-v3 .watch-v2-response summary > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

#watchlist-view.watchlist-v3 .watch-v2-response summary span {
  color: var(--watch-v2-muted);
  font-size: 12px;
  font-weight: 500;
}

#watchlist-view.watchlist-v3 .watch-v2-response summary strong {
  overflow: hidden;
  color: var(--watch-v2-text);
  font-size: 15px !important;
  font-weight: 600;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#watchlist-view.watchlist-v3 .watch-v2-response.positive summary strong {
  color: var(--watch-v2-positive);
}

#watchlist-view.watchlist-v3 .watch-v2-response.negative summary strong {
  color: var(--watch-v2-negative);
}

#watchlist-view.watchlist-v3 .watch-v2-response summary::after {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border-radius: 0;
  background: transparent;
  color: var(--watch-v2-muted);
  content: "+";
  font-size: 20px;
  font-weight: 500;
}

#watchlist-view.watchlist-v3 .watch-v2-response[open] summary::after {
  content: "−";
}

#watchlist-view.watchlist-v3 .watch-v2-response-body {
  display: grid;
  gap: 0;
  padding-bottom: 14px;
  border-top: 1px solid var(--watch-v2-line);
}

#watchlist-view.watchlist-v3 .watch-v2-response-body > ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 14px 0 14px 20px;
  border: 0;
  color: var(--watch-v2-text);
  font-size: 14px !important;
  font-weight: 500;
  line-height: 1.6 !important;
}

#watchlist-view.watchlist-v3 .watch-us-sector-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 5px 12px;
  margin: 0;
  padding: 13px 0 0;
  border: 0;
}

#watchlist-view.watchlist-v3 .watch-us-sector-strip > span {
  grid-column: 1 / -1;
  color: var(--watch-v2-muted);
  font-size: 11px;
  font-weight: 500;
}

#watchlist-view.watchlist-v3 .watch-us-sector-strip > strong,
#watchlist-view.watchlist-v3 .watch-us-sector-strip em {
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

#watchlist-view.watchlist-v3 .watch-us-sector-strip div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
}

#watchlist-view.watchlist-v3 .watch-v2-row-footer {
  border-top: 1px solid var(--watch-v2-line);
}

#watchlist-view.watchlist-v3 .watch-v2-row-footer a {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--watch-v2-text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

#watchlist-view.watchlist-v3 .watch-v2-row-footer a span:last-child {
  color: var(--watch-v2-muted);
  font-size: 20px;
  font-weight: 400;
}

#watchlist-view.watchlist-v3 .watch-stock-loading {
  min-height: 118px;
  align-content: center;
  gap: 10px;
  padding-bottom: 20px;
}

#watchlist-view.watchlist-v3 .watch-stock-loading > strong {
  color: var(--watch-v2-text);
  font-size: 16px !important;
  font-weight: 700;
}

#watchlist-view.watchlist-v3 .watchlist-empty-card {
  min-height: 170px;
  border: 0;
  border-radius: 0 !important;
  box-shadow: none;
}

@media (max-width: 820px) {
  #watchlist-view.watchlist-v3 .watch-v2-briefing-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  #watchlist-view.watchlist-v3 .watch-v2-monitoring {
    padding: 18px 0 0;
    border-top: 1px solid var(--watch-v2-line);
    border-left: 0;
  }
}

@media (max-width: 720px) {
  #watchlist-view.watchlist-v3 {
    width: 100%;
    max-width: 100%;
  }

  #watchlist-view.watchlist-v3 .topbar {
    min-height: 62px;
    padding: 9px 8px 13px;
  }

  #watchlist-view.watchlist-v3 .identity h1 {
    font-size: 20px !important;
  }

  #watchlist-view.watchlist-v3 .identity p {
    font-size: 11px !important;
  }

  #watchlist-view.watchlist-v3 .watch-v3-tabs {
    margin: 0;
    padding: 0 18px;
    border: 0;
    border-bottom: 1px solid var(--watch-v2-line);
  }

  #watchlist-view.watchlist-v3 .watch-v3-tabs button {
    min-height: 56px;
    padding: 0 4px;
    font-size: 15px !important;
  }

  #watchlist-view.watchlist-v3 .watchlist-panel {
    gap: 8px;
  }

  #watchlist-view.watchlist-v3 .watch-v2-briefing,
  #watchlist-view.watchlist-v3 .watch-v3-stock-section {
    border-right: 0;
    border-left: 0;
    border-radius: 0 !important;
  }

  #watchlist-view.watchlist-v3 .watch-v2-briefing {
    gap: 18px;
    padding: 24px 20px;
  }

  #watchlist-view.watchlist-v3 .watch-v2-briefing-head {
    display: grid;
    gap: 6px;
  }

  #watchlist-view.watchlist-v3 .watch-v2-briefing-title h2,
  #watchlist-view.watchlist-v3 .watch-v2-list-head h2 {
    font-size: 19px !important;
  }

  #watchlist-view.watchlist-v3 .watch-v2-session {
    text-align: left;
    white-space: normal;
  }

  #watchlist-view.watchlist-v3 .watch-v2-action {
    padding: 15px 16px;
  }

  #watchlist-view.watchlist-v3 .watch-v2-action strong {
    font-size: 15px;
  }

  #watchlist-view.watchlist-v3 .watch-v2-briefing-context > div {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  #watchlist-view.watchlist-v3 .watch-v2-list-head {
    align-items: flex-end;
    flex-direction: row;
    padding: 24px 20px 18px;
  }

  #watchlist-view.watchlist-v3 .watch-v2-list-head p {
    max-width: 50%;
    font-size: 11px;
  }

  #watchlist-view.watchlist-v3 .watch-v2-stock-row {
    padding: 22px 20px 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0 !important;
  }

  #watchlist-view.watchlist-v3 .watch-v2-list-surface {
    gap: 10px;
    padding: 10px 0;
    border-top: 0;
  }

  #watchlist-view.watchlist-v3 .watch-v2-stock-name-row > strong {
    font-size: 18px !important;
  }

  #watchlist-view.watchlist-v3 .watch-v2-response summary strong {
    font-size: 15px !important;
  }
}

@media (max-width: 430px) {
  #watchlist-view.watchlist-v3 {
    font-size: 15px;
    line-height: 1.55;
  }

  #watchlist-view.watchlist-v3 .watch-v2-briefing-title > span,
  #watchlist-view.watchlist-v3 .watch-v2-list-head > div > span,
  #watchlist-view.watchlist-v3 .watch-v2-action > span {
    font-size: 11px;
  }

  #watchlist-view.watchlist-v3 .watch-v2-monitor-copy strong {
    font-size: 15px;
  }

  #watchlist-view.watchlist-v3 .watch-v3-tabs button {
    font-size: 16px !important;
  }

  #watchlist-view.watchlist-v3 :is(.watch-v2-portfolio-line, .watch-v2-metrics, .watch-v2-evidence) dt,
  #watchlist-view.watchlist-v3 .watch-v2-metrics span {
    font-size: 12px;
  }

  #watchlist-view.watchlist-v3 :is(.watch-v2-portfolio-line, .watch-v2-metrics, .watch-v2-evidence) dd,
  #watchlist-view.watchlist-v3 .watch-v2-metrics strong {
    font-size: 15px;
  }
}

/* Dashboard detail visual language 3.1 */
body:not([data-view="stock"]) {
  --app-v3-bg: #f3f4f6;
  --app-v3-panel: #ffffff;
  --app-v3-text: #16181d;
  --app-v3-muted: #8a919d;
  --app-v3-line: #e8ebef;
  --app-v3-line-strong: #d8dde4;
  --app-v3-red: #e03131;
  --app-v3-red-soft: #fff0f1;
  --app-v3-blue: #3478df;
  --app-v3-blue-soft: #edf4ff;
  --app-v3-green: #37bd7b;
  --app-v3-yellow: #efbd36;
  background: var(--app-v3-bg);
  color: var(--app-v3-text);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: 0;
}

body:not([data-view="stock"]) .dashboard-detail-system,
body:not([data-view="stock"]) .shell[data-ui-version="3.0"],
body:not([data-view="stock"]) .app-page,
body:not([data-view="stock"]) .app-page > *,
body:not([data-view="stock"]) .portfolio-tab-panel,
body:not([data-view="stock"]) #trend-view {
  min-width: 0;
  max-width: 100%;
}

body:not([data-view="stock"]) .dashboard-detail-system {
  width: 100%;
  overflow-x: clip;
}

body:not([data-view="stock"]) .app-topbar {
  min-height: 68px;
  padding: 10px max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--app-v3-line);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
}

body:not([data-view="stock"]) .mobile-brand {
  gap: 10px;
}

body:not([data-view="stock"]) .mobile-brand .app-brand-mark {
  display: none;
}

body:not([data-view="stock"]) .mobile-brand strong {
  color: var(--app-v3-text);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

body:not([data-view="stock"]) .mobile-brand > span:last-child {
  min-height: 23px;
  padding: 0 8px;
  border-color: var(--app-v3-line-strong);
  border-radius: 999px;
  background: #f7f8fa;
  color: #3d424b;
  font-size: 11px;
  font-weight: 700;
}

body:not([data-view="stock"]) :is(.app-icon-button, .app-logout-button, .app-support-link, .home-install-button) {
  min-height: 40px;
  border-color: var(--app-v3-line-strong);
  border-radius: 6px;
  box-shadow: none;
}

body:not([data-view="stock"]) .shell[data-ui-version="3.0"] {
  width: min(1180px, 100%);
  min-height: calc(100vh - 68px);
  margin: 0 auto;
  padding: 24px 24px calc(104px + env(safe-area-inset-bottom));
}

body:not([data-view="stock"]) .app-page {
  gap: 8px;
}

body:not([data-view="stock"]) .app-page-intro,
body:not([data-view="stock"]) .home-market-snapshot,
body:not([data-view="stock"]) :is(.home-market-content, .discovery-module, .portfolio-news-panel, .chart-watchlist-pick),
body:not([data-view="stock"]) #chart-history-view .chart-snapshot-panel,
body:not([data-view="stock"]) .portfolio-tabs.app-segment-tabs,
body:not([data-view="stock"]) #portfolio-tracking-panel > section {
  border: 1px solid var(--app-v3-line);
  border-radius: 8px;
  background: var(--app-v3-panel);
  box-shadow: none;
}

body:not([data-view="stock"]) .app-page-intro {
  display: grid;
  gap: 5px;
  padding: 24px 28px;
}

body:not([data-view="stock"]) .app-page-intro > span,
body:not([data-view="stock"]) .app-section-heading > div > span,
body:not([data-view="stock"]) .discovery-module-head > div > span {
  color: var(--app-v3-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

body:not([data-view="stock"]) .app-page-intro h1 {
  color: var(--app-v3-text);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.3;
}

body:not([data-view="stock"]) .app-page-intro p,
body:not([data-view="stock"]) .app-section-heading p {
  color: var(--app-v3-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
}

body:not([data-view="stock"]) .app-section-heading h2,
body:not([data-view="stock"]) .portfolio-news-panel .trend-watchlist-head h2 {
  margin: 3px 0 0;
  color: var(--app-v3-text);
  font-size: 20px;
  font-weight: 750;
  line-height: 1.35;
}

body:not([data-view="stock"]) .home-market-snapshot {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body:not([data-view="stock"]) .home-market-snapshot > div {
  gap: 7px;
  padding: 18px 22px;
  border-right-color: var(--app-v3-line);
}

body:not([data-view="stock"]) .home-market-snapshot span {
  color: var(--app-v3-muted);
  font-size: 12px;
  font-weight: 600;
}

body:not([data-view="stock"]) .home-market-snapshot strong {
  color: var(--app-v3-text);
  font-size: 16px;
  font-weight: 750;
}

body:not([data-view="stock"]) :is(.home-market-content, .discovery-module, .portfolio-news-panel, .chart-watchlist-pick),
body:not([data-view="stock"]) #chart-history-view .chart-snapshot-panel {
  padding: 24px 28px;
}

body:not([data-view="stock"]) .home-market-content {
  padding-top: 0;
}

body:not([data-view="stock"]) .app-segment-tabs,
body:not([data-view="stock"]) #watchlist-view.watchlist-v3 .watch-v3-tabs {
  min-width: 0;
  display: grid;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid var(--app-v3-line);
  border-radius: 0;
  background: #ffffff;
}

body:not([data-view="stock"]) .trend-tabs.app-segment-tabs {
  margin: 0 0 24px;
}

body:not([data-view="stock"]) .portfolio-tabs.app-segment-tabs {
  overflow: visible;
  border-bottom-color: var(--app-v3-line);
}

body:not([data-view="stock"]) :is(.app-segment-tabs, #watchlist-view.watchlist-v3 .watch-v3-tabs) button {
  position: relative;
  min-height: 58px;
  padding: 0 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--app-v3-muted);
  font-size: 15px !important;
  font-weight: 700;
}

body:not([data-view="stock"]) :is(.app-segment-tabs, #watchlist-view.watchlist-v3 .watch-v3-tabs) button::after {
  position: absolute;
  right: 19%;
  bottom: -1px;
  left: 19%;
  height: 3px;
  border-radius: 2px 2px 0 0;
  background: transparent;
  content: "";
}

body:not([data-view="stock"]) :is(.app-segment-tabs, #watchlist-view.watchlist-v3 .watch-v3-tabs) button.active {
  background: transparent;
  color: var(--app-v3-text);
}

body:not([data-view="stock"]) :is(.app-segment-tabs, #watchlist-view.watchlist-v3 .watch-v3-tabs) button.active::after {
  background: var(--app-v3-text);
}

body:not([data-view="stock"]) .trend-panel {
  gap: 18px;
}

body:not([data-view="stock"]) :is(.trend-events, .trend-thread) {
  gap: 0;
}

body:not([data-view="stock"]) .thread-group {
  gap: 0;
}

body:not([data-view="stock"]) .thread-group + .thread-group {
  margin-top: 24px;
}

body:not([data-view="stock"]) .thread-group-title {
  padding: 0 0 10px;
  color: var(--app-v3-text);
  font-size: 15px;
  font-weight: 700;
}

body:not([data-view="stock"]) :is(.thread-item, .trend-event) {
  gap: 8px;
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid var(--app-v3-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body:not([data-view="stock"]) :is(.thread-item, .trend-event):last-child {
  border-bottom: 0;
}

body:not([data-view="stock"]) :is(.thread-item strong, .trend-event-title strong) {
  color: var(--app-v3-text);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.55;
}

body:not([data-view="stock"]) :is(.thread-meta, .trend-event-title span, .event-source) {
  color: var(--app-v3-muted);
  font-size: 12px;
  font-weight: 550;
}

body:not([data-view="stock"]) :is(.thread-tag, .event-axis-badge, .tag) {
  min-height: 24px;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 650;
}

body:not([data-view="stock"]) .flow-button,
body:not([data-view="stock"]) .text-action,
body:not([data-view="stock"]) .primary-action {
  border-radius: 6px;
  box-shadow: none;
}

body:not([data-view="stock"]) .discovery-search {
  height: 60px;
  border-color: var(--app-v3-line-strong);
  border-radius: 8px;
  box-shadow: none;
}

body:not([data-view="stock"]) .discovery-search > input {
  color: var(--app-v3-text);
  font-size: 15px;
  font-weight: 500;
}

body:not([data-view="stock"]) .discovery-search > button {
  height: 42px;
  min-width: 70px;
  border-radius: 6px;
  background: var(--app-v3-text);
  font-size: 13px;
  font-weight: 700;
}

body:not([data-view="stock"]) .discovery-module {
  gap: 20px;
}

body:not([data-view="stock"]) .market-segment {
  width: auto;
  min-width: 300px;
  border-color: var(--app-v3-line-strong);
  border-radius: 6px;
}

body:not([data-view="stock"]) .market-segment-button {
  min-height: 38px;
  border-right-color: var(--app-v3-line);
  color: var(--app-v3-muted);
  font-size: 12px;
}

body:not([data-view="stock"]) .market-segment-button.active {
  background: var(--app-v3-text);
  color: #ffffff;
}

body:not([data-view="stock"]) .ranking-panel {
  border-top-color: var(--app-v3-line);
}

body:not([data-view="stock"]) .ranking-table :is(th, td) {
  border-bottom-color: var(--app-v3-line);
}

body:not([data-view="stock"]) .ranking-table th {
  background: #f7f8fa;
  color: var(--app-v3-muted);
  font-size: 12px;
  font-weight: 600;
}

body:not([data-view="stock"]) .market-leaderboard {
  gap: 10px;
}

body:not([data-view="stock"]) .market-leaderboard-card,
body:not([data-view="stock"]) :is(#recommend-view .recommend-card, #recommend-history-view .recommend-track-card) {
  border-color: var(--app-v3-line);
  border-radius: 8px;
  box-shadow: none;
}

body:not([data-view="stock"]) .market-leaderboard-card {
  padding: 20px;
}

body:not([data-view="stock"]) .market-rank-badge {
  width: 38px;
  min-width: 38px;
  height: 38px;
  border-radius: 6px;
  background: #f0f2f5;
  color: var(--app-v3-text);
  font-size: 16px;
}

body:not([data-view="stock"]) .market-leaderboard-card:nth-child(n + 4) .market-rank-badge {
  background: #f0f2f5;
}

body:not([data-view="stock"]) .market-leaderboard-strip {
  overflow: hidden;
  border: 1px solid var(--app-v3-line);
  border-radius: 7px;
  background: var(--app-v3-line);
}

body:not([data-view="stock"]) .market-leaderboard-strip div {
  background: #f7f8fa;
}

body:not([data-view="stock"]) :is(.recommend-card, .recommend-track-card) {
  color: var(--app-v3-text);
}

body:not([data-view="stock"]) .recommend-metrics,
body:not([data-view="stock"]) .recommend-track-metrics,
body:not([data-view="stock"]) .recommend-track-signals {
  overflow: hidden;
  border-color: var(--app-v3-line);
  border-radius: 7px;
  background: var(--app-v3-line);
}

body:not([data-view="stock"]) :is(.recommend-metrics, .recommend-track-metrics, .recommend-track-signals) > div {
  background: #f7f8fa;
}

body:not([data-view="stock"]) .portfolio-tab-panel {
  gap: 8px;
}

body:not([data-view="stock"]) .portfolio-news-panel {
  gap: 16px;
}

body:not([data-view="stock"]) .trend-watch-stock-rail,
body:not([data-view="stock"]) .chart-watchlist-picker {
  gap: 8px;
  margin: 0;
  padding: 2px 0 4px;
}

body:not([data-view="stock"]) :is(.trend-watch-stock-chip, .chart-stock-chip) {
  min-height: 40px;
  padding: 0 14px;
  border-color: var(--app-v3-line-strong);
  border-radius: 6px;
  color: #4a5059;
  font-size: 13px;
  font-weight: 650;
}

body:not([data-view="stock"]) :is(.trend-watch-stock-chip, .chart-stock-chip).active {
  border-color: var(--app-v3-text);
  background: var(--app-v3-text);
  color: #ffffff;
}

body:not([data-view="stock"]) .trend-watch-news-board {
  gap: 22px;
}

body:not([data-view="stock"]) .trend-watch-news-group {
  border-top-width: 2px;
}

body:not([data-view="stock"]) .trend-watch-news-item {
  padding: 15px 0;
  border-bottom-color: var(--app-v3-line);
}

body:not([data-view="stock"]) .trend-watch-news-item strong {
  color: var(--app-v3-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
}

body:not([data-view="stock"]) #watchlist-view.watchlist-v3 .watchlist-panel {
  gap: 8px;
}

body:not([data-view="stock"]) #watchlist-view.watchlist-v3 :is(.watch-v2-briefing, .watch-v3-stock-section, .watch-v2-stock-row) {
  border-color: var(--app-v3-line);
  border-radius: 8px !important;
  box-shadow: none;
}

body:not([data-view="stock"]) #watchlist-view.watchlist-v3 .watch-v2-list-surface {
  gap: 8px;
  padding: 8px;
  background: transparent;
}

body:not([data-view="stock"]) .chart-watchlist-pick {
  gap: 16px;
}

body:not([data-view="stock"]) .watch-chart-list {
  gap: 8px;
}

body:not([data-view="stock"]) :is(.watch-chart-row, .watch-chart-card, .watch-chart-empty-card) {
  border-color: var(--app-v3-line);
  border-radius: 8px;
  box-shadow: none;
}

body:not([data-view="stock"]) .bottom-nav {
  height: calc(70px + env(safe-area-inset-bottom));
  padding-top: 4px;
  border-top-color: var(--app-v3-line-strong);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
}

body:not([data-view="stock"]) .bottom-nav-item {
  position: relative;
  color: #9ba1aa;
}

body:not([data-view="stock"]) .bottom-nav-item::before {
  position: absolute;
  top: -5px;
  left: 50%;
  width: 34px;
  height: 3px;
  border-radius: 0 0 2px 2px;
  background: transparent;
  content: "";
  transform: translateX(-50%);
}

body:not([data-view="stock"]) .bottom-nav-item.active {
  color: var(--app-v3-text);
}

body:not([data-view="stock"]) .bottom-nav-item.active::before {
  background: var(--app-v3-text);
}

body:not([data-view="stock"]) .bottom-nav-item svg {
  width: 21px;
  height: 21px;
  stroke-width: 1.75;
}

body:not([data-view="stock"]) .bottom-nav-item span {
  font-size: 11px;
  font-weight: 600;
}

body:not([data-view="stock"]) .bottom-nav-item.active span {
  font-weight: 700;
}

@media (min-width: 821px) {
  body:not([data-view="stock"]) #trend-live-panel .trend-thread,
  body:not([data-view="stock"]) #trend-events-panel > .trend-events {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    column-gap: 30px;
  }

  body:not([data-view="stock"]) #trend-live-panel .thread-group + .thread-group {
    margin-top: 0;
  }

  body:not([data-view="stock"]) #trend-live-panel .thread-group.neutral {
    grid-column: 1 / -1;
  }

  body:not([data-view="stock"]) #trend-events-panel > .trend-events .trend-event {
    height: 100%;
  }
}

@media (max-width: 720px) {
  body:not([data-view="stock"]) .app-topbar {
    min-height: 62px;
    padding: 9px 14px;
  }

  body:not([data-view="stock"]) .mobile-brand strong {
    font-size: 19px;
  }

  body:not([data-view="stock"]) .app-topbar-actions {
    gap: 4px;
  }

  body:not([data-view="stock"]) .app-icon-button,
  body:not([data-view="stock"]) .app-logout-button {
    width: 38px;
    min-height: 38px;
    padding: 0;
  }

  body:not([data-view="stock"]) .shell[data-ui-version="3.0"] {
    width: 100%;
    min-height: calc(100vh - 62px);
    padding: 0 0 calc(88px + env(safe-area-inset-bottom));
  }

  body:not([data-view="stock"]) .app-page {
    width: 100%;
    gap: 8px;
  }

  body:not([data-view="stock"]) .app-page-intro,
  body:not([data-view="stock"]) .home-market-snapshot,
  body:not([data-view="stock"]) :is(.home-market-content, .discovery-module, .portfolio-news-panel, .chart-watchlist-pick),
  body:not([data-view="stock"]) #chart-history-view .chart-snapshot-panel,
  body:not([data-view="stock"]) .portfolio-tabs.app-segment-tabs,
  body:not([data-view="stock"]) #portfolio-tracking-panel > section {
    width: 100%;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  body:not([data-view="stock"]) .app-page-intro {
    gap: 4px;
    padding: 22px 20px 20px;
  }

  body:not([data-view="stock"]) .app-page-intro > span {
    font-size: 11px;
  }

  body:not([data-view="stock"]) .app-page-intro h1 {
    font-size: 22px;
    line-height: 1.3;
  }

  body:not([data-view="stock"]) .app-page-intro p {
    font-size: 12px;
  }

  body:not([data-view="stock"]) .home-market-snapshot > div {
    gap: 6px;
    padding: 16px 14px;
  }

  body:not([data-view="stock"]) .home-market-snapshot span {
    font-size: 11px;
  }

  body:not([data-view="stock"]) .home-market-snapshot strong {
    font-size: 14px;
  }

  body:not([data-view="stock"]) :is(.home-market-content, .discovery-module, .portfolio-news-panel, .chart-watchlist-pick),
  body:not([data-view="stock"]) #chart-history-view .chart-snapshot-panel {
    padding: 0 20px 24px;
  }

  body:not([data-view="stock"]) .home-market-content,
  body:not([data-view="stock"]) .portfolio-news-panel {
    padding-top: 0;
  }

  body:not([data-view="stock"]) .app-section-heading h2,
  body:not([data-view="stock"]) .portfolio-news-panel .trend-watchlist-head h2 {
    font-size: 19px;
  }

  body:not([data-view="stock"]) .app-section-heading > div > span,
  body:not([data-view="stock"]) .discovery-module-head > div > span {
    font-size: 11px;
  }

  body:not([data-view="stock"]) .trend-tabs.app-segment-tabs {
    margin: 0 -20px 22px;
  }

  body:not([data-view="stock"]) .portfolio-tabs.app-segment-tabs {
    padding: 0 20px;
  }

  body:not([data-view="stock"]) :is(.app-segment-tabs, #watchlist-view.watchlist-v3 .watch-v3-tabs) button {
    min-height: 56px;
    font-size: 16px !important;
  }

  body:not([data-view="stock"]) .discovery-search {
    width: 100%;
    height: 68px;
    padding: 12px 14px 12px 20px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    background: #ffffff;
  }

  body:not([data-view="stock"]) .discovery-search > button {
    height: 44px;
    min-width: 64px;
  }

  body:not([data-view="stock"]) .discovery-module {
    gap: 20px;
    padding-top: 24px;
  }

  body:not([data-view="stock"]) .discovery-module-head {
    gap: 16px;
  }

  body:not([data-view="stock"]) .market-segment {
    width: 100%;
    min-width: 0;
  }

  body:not([data-view="stock"]) .market-segment-button {
    min-height: 42px;
  }

  body:not([data-view="stock"]) .ranking-panel {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--app-v3-line);
  }

  body:not([data-view="stock"]) #market-view .ranking-table tbody {
    gap: 0;
  }

  body:not([data-view="stock"]) #market-view .ranking-table tr:not(.ranking-message-row) {
    padding: 20px 0;
    border: 0;
    border-bottom: 1px solid var(--app-v3-line);
    border-radius: 0;
    box-shadow: none;
  }

  body:not([data-view="stock"]) #market-view .ranking-table tr:last-child {
    border-bottom: 0;
  }

  body:not([data-view="stock"]) #market-view .ranking-table td:nth-child(1) {
    top: 20px;
    right: 0;
    border-radius: 6px;
    background: #f0f2f5;
    color: var(--app-v3-text);
  }

  body:not([data-view="stock"]) #market-view .ranking-table td:nth-child(3),
  body:not([data-view="stock"]) #market-view .ranking-table td:nth-child(4) {
    padding: 12px 14px;
    border-radius: 6px;
    background: #f7f8fa;
  }

  body:not([data-view="stock"]) .market-leaderboard {
    display: block;
  }

  body:not([data-view="stock"]) .market-leaderboard-card {
    padding: 20px 0;
    border: 0;
    border-bottom: 1px solid var(--app-v3-line);
    border-radius: 0;
  }

  body:not([data-view="stock"]) .market-leaderboard-card:last-child {
    border-bottom: 0;
  }

  body:not([data-view="stock"]) #recommend-view .recommend-list,
  body:not([data-view="stock"]) #recommend-history-view .snapshot-list {
    gap: 0;
  }

  body:not([data-view="stock"]) :is(#recommend-view .recommend-card, #recommend-history-view .recommend-track-card) {
    padding: 20px 0;
    border: 0;
    border-bottom: 1px solid var(--app-v3-line);
    border-radius: 0;
  }

  body:not([data-view="stock"]) :is(#recommend-view .recommend-card, #recommend-history-view .recommend-track-card):last-child {
    border-bottom: 0;
  }

  body:not([data-view="stock"]) .portfolio-tab-panel {
    gap: 8px;
  }

  body:not([data-view="stock"]) .portfolio-news-panel {
    padding-bottom: 22px;
  }

  body:not([data-view="stock"]) .trend-watchlist-head {
    padding-top: 24px;
  }

  body:not([data-view="stock"]) .trend-watch-news-board {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  body:not([data-view="stock"]) #watchlist-view.watchlist-v3 .watch-v3-tabs {
    margin: 0;
    padding: 0 20px;
    border-right: 0;
    border-bottom: 1px solid var(--app-v3-line);
    border-left: 0;
    border-radius: 0;
  }

  body:not([data-view="stock"]) #watchlist-view.watchlist-v3 .watch-v2-briefing,
  body:not([data-view="stock"]) #watchlist-view.watchlist-v3 .watch-v3-stock-section {
    border-right: 0;
    border-left: 0;
    border-radius: 0 !important;
  }

  body:not([data-view="stock"]) #watchlist-view.watchlist-v3 .watch-v2-briefing {
    padding: 24px 20px;
  }

  body:not([data-view="stock"]) #watchlist-view.watchlist-v3 .watch-v2-list-head {
    padding: 24px 20px 18px;
  }

  body:not([data-view="stock"]) #watchlist-view.watchlist-v3 .watch-v2-list-surface {
    gap: 8px;
    padding: 8px 0;
  }

  body:not([data-view="stock"]) #watchlist-view.watchlist-v3 .watch-v2-stock-row {
    margin: 0;
    padding: 22px 20px 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0 !important;
  }

  body:not([data-view="stock"]) .chart-watchlist-pick {
    padding-top: 24px;
  }

  body:not([data-view="stock"]) .watch-chart-list {
    gap: 8px;
  }

  body:not([data-view="stock"]) :is(.watch-chart-row, .watch-chart-card, .watch-chart-empty-card) {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  body:not([data-view="stock"]) .bottom-nav {
    height: calc(68px + env(safe-area-inset-bottom));
  }

  body:not([data-view="stock"]) .bottom-nav-item svg {
    width: 20px;
    height: 20px;
  }

  body:not([data-view="stock"]) .bottom-nav-item span {
    font-size: 10px;
  }
}

@media (max-width: 430px) {
  body:not([data-view="stock"]) {
    font-size: 15px;
    line-height: 1.55;
  }

  body:not([data-view="stock"]) .app-page-intro h1 {
    font-size: 22px;
  }

  body:not([data-view="stock"]) .app-section-heading h2,
  body:not([data-view="stock"]) .portfolio-news-panel .trend-watchlist-head h2 {
    font-size: 19px;
  }

  body:not([data-view="stock"]) :is(.thread-item strong, .trend-event-title strong, .trend-watch-news-item strong) {
    font-size: 15px;
  }

  body:not([data-view="stock"]) .chart-watchlist-pick .app-section-heading {
    align-items: center;
    flex-direction: row;
  }

  body:not([data-view="stock"]) .chart-watchlist-pick .app-section-heading > div:first-child {
    flex: 1 1 auto;
  }

  body:not([data-view="stock"]) .chart-page-actions {
    width: auto;
    flex: 0 0 auto;
    justify-content: flex-end;
  }

  body:not([data-view="stock"]) .chart-page-actions .text-action {
    min-height: 38px;
    padding: 0 10px;
  }
}

/* Dashboard typography system 3.2: use the stock-detail hierarchy everywhere. */
body:not([data-view="stock"]) {
  --app-type-page: 24px;
  --app-type-display: 40px;
  --app-type-tab: 14px;
  --app-type-section: 20px;
  --app-type-body: 14px;
  --app-type-list: 13px;
  --app-type-label: 11px;
  --app-type-caption: 11px;
  --app-type-metric: 15px;
  --app-type-button: 14px;
  --app-weight-page: 900;
  --app-weight-section: 900;
  --app-weight-body: 650;
  --app-weight-list: 750;
  --app-weight-label: 700;
  --app-weight-caption: 400;
  --app-weight-metric: 800;
  --app-weight-button: 800;
  font-family:
    -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR",
    sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

body:not([data-view="stock"]) :is(
  .dashboard-detail-system,
  .dashboard-detail-system *,
  .login-gate,
  .login-gate *,
  .loading-modal,
  .loading-modal *,
  .install-sheet,
  .install-sheet *,
  .push-notification-sheet,
  .push-notification-sheet *
) {
  font-family:
    -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR",
    sans-serif !important;
  letter-spacing: 0;
}

body:not([data-view="stock"]) :is(.mobile-brand strong, .app-page-intro h1) {
  font-size: var(--app-type-page) !important;
  font-weight: var(--app-weight-page) !important;
  line-height: 1.25 !important;
}

body:not([data-view="stock"]) :is(
  .app-page-intro > span,
  .app-section-heading > div > span,
  .discovery-module-head > div > span,
  .watch-v2-briefing-title > span,
  .watch-v2-list-head > div > span,
  .watch-v2-action > span,
  .section-eyebrow,
  .chart-page-intro > span
) {
  font-size: var(--app-type-caption) !important;
  font-weight: var(--app-weight-caption) !important;
  line-height: 1.55 !important;
}

body:not([data-view="stock"]) :is(
  .app-page-intro p,
  .app-section-heading p,
  .discovery-module-head p,
  .trend-watchlist-status,
  .ranking-message-cell,
  .snapshot-list .muted
) {
  font-size: var(--app-type-label) !important;
  font-weight: var(--app-weight-label) !important;
  line-height: 1.55 !important;
}

body:not([data-view="stock"]) :is(
  .app-section-heading h2,
  .portfolio-news-panel .trend-watchlist-head h2,
  .watch-v2-briefing-title h2,
  .watch-v2-list-head h2,
  .market-impact-copy h2,
  .watch-chart-head .watch-chart-name,
  .chart-ai-head h3,
  .history-head > strong
) {
  font-size: var(--app-type-section) !important;
  font-weight: var(--app-weight-section) !important;
  line-height: 1.25 !important;
}

body:not([data-view="stock"]) :is(
  .app-segment-tabs button,
  #watchlist-view.watchlist-v3 .watch-v3-tabs button
) {
  font-size: var(--app-type-tab) !important;
  font-weight: 800 !important;
  line-height: 1.55 !important;
}

body:not([data-view="stock"]) :is(
  button,
  .text-action,
  .primary-action,
  .flow-button,
  .snapshot-button,
  .snapshot-delete,
  .market-load-more
) {
  font-size: var(--app-type-button);
  font-weight: var(--app-weight-button);
  line-height: 1.55;
}

body:not([data-view="stock"]) :is(
  .discovery-search > input,
  .watch-v2-action strong,
  .trend-impact,
  .watch-points,
  .market-impact-copy p,
  .market-impact-detail > p,
  .chart-ai-summary,
  .chart-ai-explanation,
  .chart-ai-list,
  .watch-chart-empty-card p
) {
  font-size: var(--app-type-body) !important;
  font-weight: var(--app-weight-body) !important;
  line-height: 1.55 !important;
}

body:not([data-view="stock"]) :is(
  .thread-group-title,
  .thread-item strong,
  .trend-event-title > strong,
  .trend-watch-news-group-head h3,
  .trend-watch-news-item strong,
  .watch-v2-monitoring-head h3,
  .watch-v2-monitor-copy strong,
  .watch-v2-response summary strong,
  .watch-v2-row-footer a,
  .chart-ai-panel h4,
  .chart-checklist strong,
  .chart-note-list li,
  .recommend-body h3,
  .recommend-body li,
  .recommend-detail-disclosure > summary,
  .chart-detail-disclosure > summary
) {
  font-size: var(--app-type-list) !important;
  font-weight: var(--app-weight-list) !important;
  line-height: 1.55 !important;
}

body:not([data-view="stock"]) :is(
  .thread-meta,
  .trend-event-title span,
  .event-source,
  .trend-watch-news-group-head span,
  .trend-watch-news-item span,
  .trend-watchlist-head > span,
  .watch-v2-monitor-copy small,
  .watch-v2-monitoring-head span,
  .watch-v2-status,
  .watch-us-sector-strip > span,
  .history-head span,
  .recommend-name span,
  .recommend-rank,
  .recommend-track-meta,
  .watch-chart-row-market,
  .watch-chart-head span,
  .chart-ai-head span
) {
  font-size: var(--app-type-caption) !important;
  font-weight: var(--app-weight-caption) !important;
  line-height: 1.55 !important;
}

body:not([data-view="stock"]) :is(
  .thread-tag,
  .event-axis-badge,
  .tag,
  .event-badge,
  .market-impact-node-label,
  .market-impact-node-content em,
  .market-impact-detail-head em,
  .market-impact-tag-block > span,
  .watch-chart-score-badge span,
  .watch-chart-stance-badge,
  .recommend-metrics span,
  .component-grid span,
  .recommend-track-metrics span,
  .recommend-track-signals span,
  .market-leaderboard-strip span,
  .watch-v2-metrics span,
  .watch-v2-response summary span,
  .watch-v2-briefing-context dt
) {
  font-size: var(--app-type-label) !important;
  font-weight: var(--app-weight-label) !important;
  line-height: 1.55 !important;
}

body:not([data-view="stock"]) :is(
  .home-market-snapshot strong,
  .recommend-metrics strong,
  .component-grid strong,
  .recommend-track-metrics strong,
  .recommend-track-signals strong,
  .market-leaderboard-strip strong,
  .watch-v2-metrics strong,
  .watch-v2-briefing-context dd,
  .chart-ai-price-plan strong,
  .watch-chart-metrics strong,
  .chart-indicators strong
) {
  font-size: var(--app-type-metric) !important;
  font-weight: var(--app-weight-metric) !important;
  line-height: 1.55 !important;
}

body:not([data-view="stock"]) .home-market-snapshot span {
  font-size: var(--app-type-label) !important;
  font-weight: var(--app-weight-label) !important;
  line-height: 1.55 !important;
}

body:not([data-view="stock"]) :is(.market-segment-button, .trend-watch-stock-chip, .chart-stock-chip) {
  font-size: var(--app-type-button) !important;
  font-weight: var(--app-weight-button) !important;
  line-height: 1.55 !important;
}

body:not([data-view="stock"]) .market-leaderboard-name strong,
body:not([data-view="stock"]) .recommend-name strong,
body:not([data-view="stock"]) #watchlist-view.watchlist-v3 .watch-v2-stock-name-row > strong,
body:not([data-view="stock"]) .watch-chart-row-main strong {
  font-size: var(--app-type-section) !important;
  font-weight: var(--app-weight-section) !important;
  line-height: 1.25 !important;
}

body:not([data-view="stock"]) :is(.market-leaderboard-name span, .watch-chart-row-market) {
  font-size: var(--app-type-label) !important;
  font-weight: var(--app-weight-label) !important;
  line-height: 1.55 !important;
}

body:not([data-view="stock"]) .market-leaderboard-price {
  font-size: 24px !important;
  font-weight: var(--app-weight-page) !important;
  line-height: 1.08 !important;
}

body:not([data-view="stock"]) .market-leaderboard-change {
  font-size: 17px !important;
  font-weight: 800 !important;
  line-height: 1.55 !important;
}

body:not([data-view="stock"]) :is(.recommend-score strong, .watch-chart-score-badge strong, .watch-chart-score > strong) {
  font-size: 24px !important;
  font-weight: var(--app-weight-page) !important;
  line-height: 1 !important;
}

body:not([data-view="stock"]) :is(.recommend-score span, .watch-chart-score > span) {
  font-size: var(--app-type-label) !important;
  font-weight: var(--app-weight-label) !important;
  line-height: 1.55 !important;
}

body:not([data-view="stock"]) :is(.watch-stock-inline-price, .watch-stock-inline-change) {
  font-size: var(--app-type-metric) !important;
  font-weight: var(--app-weight-metric) !important;
  line-height: 1.55 !important;
}

body:not([data-view="stock"]) .watch-chart-row-price {
  font-size: 20px !important;
  font-weight: var(--app-weight-metric) !important;
  line-height: 1.25 !important;
}

body:not([data-view="stock"]) :is(
  .market-impact-center-content > span,
  .market-impact-center-content > small,
  .market-impact-flow-title span,
  .market-impact-flow-grid span,
  .market-impact-flow-grid small,
  .market-impact-metric span,
  .market-impact-metric small,
  .market-impact-tag-block span,
  .chart-ai-price-plan span,
  .watch-chart-metrics span,
  .chart-indicators span,
  .chart-indicators em
) {
  font-size: var(--app-type-label) !important;
  font-weight: var(--app-weight-label) !important;
  line-height: 1.55 !important;
}

body:not([data-view="stock"]) :is(
  .market-impact-center-content > strong,
  .market-impact-node-content > strong
) {
  font-size: var(--app-type-section) !important;
  font-weight: var(--app-weight-section) !important;
  line-height: 1.25 !important;
}

body:not([data-view="stock"]) :is(.market-impact-flow-title strong, .market-impact-flow-grid strong, .market-impact-detail-head strong) {
  font-size: var(--app-type-list) !important;
  font-weight: var(--app-weight-list) !important;
  line-height: 1.55 !important;
}

body:not([data-view="stock"]) :is(.loading-modal-card h2, .install-sheet-head h2, .push-notification-sheet-head h2) {
  font-size: var(--app-type-section) !important;
  font-weight: var(--app-weight-section) !important;
  line-height: 1.25 !important;
}

body:not([data-view="stock"]) :is(
  .loading-modal-card p,
  .install-sheet-head p,
  .install-sheet-card li,
  .push-notification-sheet-head p,
  .push-notification-sheet-status,
  .push-notification-condition-copy p
) {
  font-size: var(--app-type-body) !important;
  font-weight: var(--app-weight-body) !important;
  line-height: 1.55 !important;
}

body:not([data-view="stock"]) :is(.push-notification-condition-copy strong, .push-notification-condition-title) {
  font-size: var(--app-type-list) !important;
  font-weight: var(--app-weight-list) !important;
  line-height: 1.55 !important;
}

body:not([data-view="stock"]) .login-card h1 {
  font-size: var(--app-type-page) !important;
  font-weight: var(--app-weight-page) !important;
  line-height: 1.25 !important;
}

body:not([data-view="stock"]) :is(.login-card p, .login-card input) {
  font-size: var(--app-type-body) !important;
  font-weight: var(--app-weight-body) !important;
  line-height: 1.55 !important;
}

body:not([data-view="stock"]) :is(.discovery-suggestion-item strong, .recommend-archive-head strong) {
  font-size: var(--app-type-list) !important;
  font-weight: var(--app-weight-list) !important;
  line-height: 1.55 !important;
}

body:not([data-view="stock"]) :is(
  .discovery-suggestion-item span,
  .recommend-archive-head span,
  .recommend-archive-meta,
  .chart-snapshot-meta
) {
  font-size: var(--app-type-label) !important;
  font-weight: var(--app-weight-label) !important;
  line-height: 1.55 !important;
}

@media (max-width: 430px) {
  body:not([data-view="stock"]) {
    --app-type-page: 20px;
    --app-type-display: 38px;
    --app-type-tab: 16px;
    --app-type-section: 19px;
    --app-type-body: 15px;
    --app-type-list: 15px;
    --app-type-label: 12px;
    --app-type-caption: 11px;
    --app-type-metric: 15px;
    --app-type-button: 14px;
    --app-weight-page: 700;
    --app-weight-section: 700;
    --app-weight-body: 500;
    --app-weight-list: 600;
    --app-weight-label: 500;
    --app-weight-caption: 500;
    --app-weight-metric: 700;
    --app-weight-button: 800;
  }

  body:not([data-view="stock"]) .mobile-brand strong {
    font-size: var(--app-type-page) !important;
    font-weight: var(--app-weight-page) !important;
  }

  body:not([data-view="stock"]) .mobile-brand > span:last-child {
    font-size: var(--app-type-caption) !important;
    font-weight: 600 !important;
    line-height: 1.55 !important;
  }

  body:not([data-view="stock"]) .app-page-intro h1 {
    font-size: var(--app-type-page) !important;
    font-weight: var(--app-weight-page) !important;
  }

  body:not([data-view="stock"]) :is(
    .app-section-heading h2,
    .portfolio-news-panel .trend-watchlist-head h2,
    .watch-v2-briefing-title h2,
    .watch-v2-list-head h2,
    .market-impact-copy h2,
    .watch-chart-head .watch-chart-name,
    .chart-ai-head h3,
    .history-head > strong,
    .market-leaderboard-name strong,
    .recommend-name strong,
    #watchlist-view.watchlist-v3 .watch-v2-stock-name-row > strong,
    .watch-chart-row-main strong
  ) {
    font-size: var(--app-type-section) !important;
    font-weight: var(--app-weight-section) !important;
  }

  body:not([data-view="stock"]) :is(
    .app-segment-tabs button,
    #watchlist-view.watchlist-v3 .watch-v3-tabs button
  ) {
    font-size: var(--app-type-tab) !important;
    font-weight: 700 !important;
  }

  body:not([data-view="stock"]) .market-leaderboard-price {
    font-size: 24px !important;
    font-weight: 700 !important;
  }

  body:not([data-view="stock"]) .market-leaderboard-change {
    font-size: 16px !important;
    font-weight: 700 !important;
  }

  body:not([data-view="stock"]) :is(.recommend-score strong, .watch-chart-score-badge strong, .watch-chart-score > strong) {
    font-size: 24px !important;
    font-weight: 700 !important;
  }

  body:not([data-view="stock"]) .watch-chart-row-price {
    font-size: 20px !important;
    font-weight: 700 !important;
  }

  body:not([data-view="stock"]) :is(.bottom-nav-item span, .market-rank-badge) {
    font-size: var(--app-type-caption) !important;
    font-weight: 600 !important;
    line-height: 1.55 !important;
  }
}

/* Legacy title rules contain ID selectors inside :is(); page IDs keep this scale authoritative. */
body:not([data-view="stock"]) :is(
  #home-view,
  #search-view,
  #portfolio-view,
  #chart-view,
  #chart-history-view
) .app-page-intro h1 {
  font-size: var(--app-type-page) !important;
  font-weight: var(--app-weight-page) !important;
  line-height: 1.25 !important;
}

body:not([data-view="stock"]) :is(
  #home-view,
  #search-view,
  #portfolio-view,
  #chart-view,
  #chart-history-view
) .app-section-heading h2,
body:not([data-view="stock"]) #portfolio-view .trend-watchlist-head h2,
body:not([data-view="stock"]) #trend-impact-content .market-impact-copy h2 {
  font-size: var(--app-type-section) !important;
  font-weight: var(--app-weight-section) !important;
  line-height: 1.25 !important;
}

body:not([data-view="stock"]) #market-view .market-leaderboard-price {
  font-size: 24px !important;
  font-weight: var(--app-weight-page) !important;
  line-height: 1.08 !important;
}

body:not([data-view="stock"]) #market-view .market-leaderboard-change {
  font-size: 17px !important;
  font-weight: 800 !important;
  line-height: 1.55 !important;
}

body:not([data-view="stock"]) #recommend-view .recommend-score strong,
body:not([data-view="stock"]) #chart-view :is(.watch-chart-score-badge strong, .watch-chart-score > strong) {
  font-size: 24px !important;
  font-weight: var(--app-weight-page) !important;
  line-height: 1 !important;
}

body:not([data-view="stock"]) #login-gate .login-card h1 {
  font-size: var(--app-type-page) !important;
  font-weight: var(--app-weight-page) !important;
  line-height: 1.25 !important;
}

body:not([data-view="stock"]) :is(
  #flow-loading-modal,
  #install-sheet,
  #push-notification-sheet
) h2 {
  font-size: var(--app-type-section) !important;
  font-weight: var(--app-weight-section) !important;
  line-height: 1.25 !important;
}

body:not([data-view="stock"]) #watchlist-view.watchlist-v3 :is(
  .watch-stock-inline-price,
  .watch-stock-inline-change
) {
  font-size: var(--app-type-metric) !important;
  font-weight: var(--app-weight-metric) !important;
  line-height: 1.55 !important;
}

body:not([data-view="stock"]) :is(
  .discovery-search > button,
  .text-action,
  .primary-action,
  .flow-button,
  .app-logout-button,
  .app-support-link,
  .home-install-button,
  .market-load-more,
  .snapshot-button,
  .snapshot-delete,
  .push-notification-sheet-actions button,
  .push-notification-sheet-test
) {
  font-size: var(--app-type-button) !important;
  font-weight: var(--app-weight-button) !important;
  line-height: 1.55 !important;
}

body:not([data-view="stock"]) #trend-impact-content .market-impact-disclosure > summary {
  font-size: var(--app-type-button) !important;
  font-weight: var(--app-weight-button) !important;
  line-height: 1.55 !important;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-title strong {
  font-size: var(--app-type-section) !important;
  font-weight: var(--app-weight-section) !important;
  line-height: 1.25 !important;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-title span,
body:not([data-view="stock"]) #recommend-view #recommend-status,
body:not([data-view="stock"]) #chart-view #watch-chart-meta,
body:not([data-view="stock"]) .push-notification-condition-copy span {
  font-size: var(--app-type-label) !important;
  font-weight: var(--app-weight-label) !important;
  line-height: 1.55 !important;
}

/* Notification inbox: a compact three-day activity sheet before settings. */
.push-history-sheet-card {
  left: 50%;
  right: auto;
  width: min(520px, calc(100vw - 24px));
  max-height: min(76vh, 680px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0;
  padding: 0;
  overflow: hidden;
  transform: translateX(-50%);
}

.push-history-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid #e5e7eb;
}

.push-history-sheet-head > div:first-child {
  min-width: 0;
}

.push-history-sheet-head p {
  margin: 0 0 4px;
  color: #8a94a3;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.push-history-sheet-head h2 {
  margin: 0;
  color: #111318;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0;
}

.push-history-sheet-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.push-history-sheet-tools button {
  min-height: 38px;
  border: 0;
  background: transparent;
  color: #111318;
  cursor: pointer;
  font-weight: 850;
}

.push-history-settings {
  min-width: 52px;
  padding: 0 10px;
  font-size: 14px;
}

.push-history-close {
  width: 38px;
  padding: 0;
  border-radius: 50% !important;
  background: #f3f4f6 !important;
  color: #5f6875 !important;
  font-size: 23px;
  line-height: 1;
}

.push-history-sheet-tools button:focus-visible,
.push-history-item:focus-visible {
  outline: 2px solid #111318;
  outline-offset: 2px;
}

.push-history-list {
  min-height: 180px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #ffffff;
  -webkit-overflow-scrolling: touch;
}

.push-history-item {
  width: 100%;
  display: grid;
  gap: 7px;
  border: 0;
  border-bottom: 1px solid #eceff3;
  padding: 17px 20px;
  background: #ffffff;
  color: #111318;
  text-align: left;
  cursor: pointer;
}

.push-history-item:last-child {
  border-bottom: 0;
}

.push-history-item:active {
  background: #f7f8fa;
}

.push-history-item:disabled {
  cursor: default;
  opacity: 1;
}

.push-history-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #8a94a3;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.4;
}

.push-history-item-meta time {
  white-space: nowrap;
}

.push-history-item-title {
  color: #17191f;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.4;
}

.push-history-item-body {
  display: -webkit-box;
  overflow: hidden;
  color: #606a78;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.push-history-state {
  min-height: 180px;
  display: grid;
  place-content: center;
  gap: 7px;
  padding: 28px;
  color: #7b8491;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.push-history-state strong {
  color: #22252b;
  font-size: 16px;
  font-weight: 850;
}

.push-history-state.is-error {
  color: #b42318;
}

@media (max-width: 560px) {
  .push-history-sheet-card {
    bottom: max(10px, env(safe-area-inset-bottom));
    max-height: min(72vh, 620px);
    border-radius: 22px;
  }

  .push-history-sheet-head {
    padding: 18px 18px 14px;
  }

  .push-history-item {
    padding: 16px 18px;
  }
}

body:not([data-view="stock"]) #watchlist-view.watchlist-v3 .watch-v2-monitor-row > span:last-child {
  font-size: var(--app-type-metric) !important;
  font-weight: var(--app-weight-metric) !important;
  line-height: 1.55 !important;
}

body:not([data-view="stock"]) :is(
  .page-loading-indicator strong,
  #pull-refresh-label,
  #watchlist-view.watchlist-v3 .watch-stock-loading > strong
) {
  font-size: var(--app-type-button) !important;
  font-weight: var(--app-weight-button) !important;
  line-height: 1.55 !important;
}

@media (max-width: 430px) {
  body:not([data-view="stock"]) #market-view .market-leaderboard-change {
    font-size: 16px !important;
    font-weight: 700 !important;
  }

  body:not([data-view="stock"]) #recommend-view .recommend-score strong,
  body:not([data-view="stock"]) #chart-view :is(.watch-chart-score-badge strong, .watch-chart-score > strong) {
    font-weight: 700 !important;
  }
}

/* Dashboard stock-detail fidelity 3.3 */
body:not([data-view="stock"]) :is(
  .trend-summary,
  .market-leaderboard-strip,
  .recommend-metrics,
  .recommend-track-metrics,
  .recommend-track-signals,
  .chart-indicators,
  .market-impact-hero,
  .market-impact-flow,
  .market-impact-detail,
  #watchlist-view.watchlist-v3 .watch-v2-metrics,
  #recommend-history-view .recommend-history.archive-page
) {
  box-shadow: none !important;
}

body:not([data-view="stock"]) #trend-view .trend-summary {
  border: 1px solid var(--app-v3-line);
  border-radius: 8px !important;
  background: #f7f8fa;
  color: var(--app-v3-muted);
  font-size: var(--app-type-body) !important;
  font-weight: var(--app-weight-body) !important;
  line-height: 1.55 !important;
}

body:not([data-view="stock"]) #trend-view {
  width: 100% !important;
  max-width: 100% !important;
}

body:not([data-view="stock"]) .market-impact-center {
  border-radius: 8px;
  box-shadow: none;
}

body:not([data-view="stock"]) .market-impact-node {
  box-shadow: none;
}

body:not([data-view="stock"]) .market-impact-icon {
  border-radius: 8px;
}

body:not([data-view="stock"]) .market-impact-metric {
  border-radius: 8px;
}

body:not([data-view="stock"]) :is(
  .market-impact-stock-tags a,
  .market-impact-stock-tags span
) {
  border-radius: 6px;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-history.archive-page {
  margin: 0;
  padding: 20px;
  border: 1px solid var(--app-v3-line);
  border-radius: 8px;
  background: var(--app-v3-panel);
}

body:not([data-view="stock"]) :is(
  .market-leaderboard-strip,
  .recommend-metrics,
  .recommend-track-metrics,
  .recommend-track-signals,
  .chart-indicators
) {
  border-color: var(--app-v3-line);
  border-radius: 7px;
}

body:not([data-view="stock"]) :is(
  #login-gate .login-card input,
  #login-gate .login-card button,
  .loading-modal-card,
  .install-sheet-card,
  .push-notification-sheet-card
) {
  border-radius: 8px;
}

body:not([data-view="stock"]) #login-gate .login-card input {
  border-color: var(--app-v3-line-strong);
  box-shadow: none;
}

body:not([data-view="stock"]) #login-gate .login-card button {
  border-radius: 6px;
}

/* Stock detail: compact news temperature without inheriting large-chart space. */
#stock-view.stock-detail-v3 .stock-v3-news-temperature-section {
  padding-bottom: 18px;
}

#stock-view.stock-detail-v3 .stock-v3-news-temperature-section .stock-v3-section-head {
  margin-bottom: 10px;
}

#stock-view.stock-detail-v3 .stock-v3-news-temperature-section .stock-v3-sentiment-summary {
  gap: 16px;
  margin: 2px 0 6px;
}

#stock-view.stock-detail-v3 .stock-v3-news-temperature-section .stock-v3-temperature-gauge {
  min-height: 86px;
}

#stock-view.stock-detail-v3 .stock-v3-news-temperature-section .stock-v3-temperature-gauge strong {
  font-size: 20px;
  line-height: 1.2;
}

#stock-view.stock-detail-v3 .stock-v3-news-temperature-section .stock-v3-temperature-gauge span {
  margin-top: 2px;
  line-height: 1.25;
}

#stock-view.stock-detail-v3 .stock-v3-news-temperature-section .stock-v3-sentiment-summary dl > div {
  min-height: 48px;
  align-content: center;
  gap: 2px;
  padding: 0 10px;
}

#stock-view.stock-detail-v3 .stock-v3-news-temperature-section .stock-v3-main-chart {
  min-height: 0;
  margin-top: 0;
}

#stock-view.stock-detail-v3 .stock-v3-news-temperature-section .stock-v3-data-svg {
  width: 100%;
  height: auto;
}

#stock-view.stock-detail-v3 .stock-v3-news-temperature-section .stock-v3-legend {
  margin-top: 0;
}

body:not([data-view="stock"]) :is(
  .push-notification-sheet-status,
  .push-notification-condition
) {
  border-radius: 8px;
}

body:not([data-view="stock"]) :is(
  .push-notification-sheet-save,
  .push-notification-sheet-disable,
  .push-notification-sheet-test
) {
  border-radius: 6px;
}

#recommend-view .recommend-rank-line {
  justify-content: flex-start;
}

#recommend-view .recommend-score {
  display: grid;
  min-width: 126px;
  justify-items: end;
  gap: 3px;
}

#recommend-view .recommend-score-value {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

#recommend-view .recommend-score-value > span {
  color: var(--app-v3-muted, #8a929e);
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
}

#recommend-view .recommend-score-help {
  flex: 0 0 18px;
}

#recommend-view .recommend-score-help::after {
  top: calc(100% + 10px);
  right: -4px;
  left: auto;
  width: min(280px, calc(100vw - 40px));
  transform: none;
}

#recommend-view .recommend-score-help::before {
  top: calc(100% + 5px);
  right: 4px;
  left: auto;
  transform: rotate(45deg);
}

#recommend-view .recommend-score-level {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  white-space: nowrap;
}

#recommend-view .recommend-score-level b,
#recommend-view .recommend-score-level span {
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
}

#recommend-view .recommend-score-level.high :is(b, span) {
  color: #d9233f;
}

#recommend-view .recommend-score-level.watch :is(b, span) {
  color: #1769d2;
}

#recommend-view .recommend-score-level.cautious :is(b, span) {
  color: var(--app-v3-muted, #6b7280);
}

#recommend-view .recommend-card-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

#recommend-view .recommend-card-actions :is(
  .recommend-watch-button,
  .recommend-track-button,
  .recommend-ai-button
) {
  min-width: 0;
  height: 40px;
  padding: 0 6px;
  border-radius: 6px;
  font-size: 13px;
}

#recommend-view .recommend-track-button {
  border-color: var(--app-v3-line, #dfe3e8);
  background: #ffffff;
  color: #111111;
}

#recommend-view .recommend-track-button:hover {
  border-color: #111111;
  background: #ffffff;
  color: #111111;
}

#recommend-view .recommend-ai-button {
  grid-column: auto;
}

/* Recommendation detail 5.2: keep the list concise and move evidence to a dedicated page. */
.recommend-detail-page {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 0 0 96px;
  background: #ffffff;
}

.recommend-detail-topbar {
  position: sticky;
  top: var(--app-header-height, 72px);
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 10px 24px;
  border-bottom: 1px solid var(--app-v3-line, #e5e7eb);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.recommend-detail-back {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #111318;
  font-size: 24px;
}

.recommend-detail-topbar > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.recommend-detail-topbar strong {
  overflow: hidden;
  color: #111318;
  font-size: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recommend-detail-topbar span {
  color: #8b93a1;
  font-size: 13px;
}

.recommend-detail-content {
  display: grid;
}

.recommend-detail-hero,
.recommend-detail-section {
  padding: 28px 24px;
  border-bottom: 8px solid #f4f5f7;
}

.recommend-detail-hero-head,
.recommend-detail-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.recommend-detail-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: #8b93a1;
  font-size: 13px;
}

.recommend-detail-hero h1,
.recommend-detail-section h2,
.recommend-detail-section h3,
.recommend-detail-section p {
  margin: 0;
}

.recommend-detail-hero h1 {
  color: #111318;
  font-size: 30px;
  line-height: 1.2;
}

.recommend-detail-lead {
  max-width: 680px;
  margin: 18px 0 0;
  color: #3d4654;
  font-size: 16px;
  line-height: 1.65;
}

.recommend-detail-score {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  justify-items: end;
  white-space: nowrap;
}

.recommend-detail-score strong {
  color: #111318;
  font-size: 32px;
  line-height: 1;
}

.recommend-detail-score span {
  margin-left: 4px;
  color: #8b93a1;
  font-size: 14px;
}

.recommend-detail-score em {
  grid-column: 1 / -1;
  margin-top: 8px;
  color: #1769d2;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.recommend-detail-score.high em {
  color: #d9233f;
}

.recommend-detail-section h2 {
  color: #111318;
  font-size: 22px;
  line-height: 1.45;
}

.recommend-detail-action > h2 {
  margin-top: 22px;
  max-width: 720px;
}

.recommend-detail-action > p {
  margin-top: 12px;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.65;
}

.recommend-detail-section-head > div {
  color: #8b93a1;
  font-size: 13px;
}

.recommend-detail-ai-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid #dfe3e8;
  border-radius: 999px;
  background: #ffffff;
  color: #5f6875;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.recommend-detail-ai-badge::before {
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #9aa2ad;
  content: "";
}

.recommend-detail-ai-badge.local::before {
  background: #18a66a;
}

.recommend-detail-ai-badge.loading::before {
  background: #18a66a;
  animation: recommend-ai-pulse 1s ease-in-out infinite;
}

@keyframes recommend-ai-pulse {
  50% { opacity: 0.25; }
}

.recommend-detail-section > h2 {
  margin-bottom: 18px;
}

.recommend-detail-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #e4e7eb;
}

.recommend-detail-metric {
  display: grid;
  gap: 6px;
  min-height: 82px;
  align-content: center;
  padding: 14px 18px 14px 0;
  border-right: 1px solid #e4e7eb;
  border-bottom: 1px solid #e4e7eb;
}

.recommend-detail-metric:nth-child(even) {
  padding-right: 0;
  padding-left: 18px;
  border-right: 0;
}

.recommend-detail-metric span {
  color: #8b93a1;
  font-size: 13px;
}

.recommend-detail-metric strong {
  overflow-wrap: anywhere;
  color: #111318;
  font-size: 18px;
}

.recommend-detail-evidence {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.recommend-detail-evidence section {
  min-width: 0;
}

.recommend-detail-evidence h3 {
  margin-bottom: 12px;
  color: #4b5563;
  font-size: 15px;
}

.recommend-detail-evidence ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: #303846;
  font-size: 14px;
  line-height: 1.55;
}

.recommend-detail-source {
  margin: 0;
  padding: 18px 24px;
  color: #8b93a1;
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 640px) {
  .recommend-detail-topbar {
    top: var(--mobile-app-bar-height, 64px);
    min-height: 58px;
    padding: 8px 18px;
  }

  .recommend-detail-hero,
  .recommend-detail-section {
    padding: 24px 20px;
  }

  .recommend-detail-hero h1 {
    font-size: 26px;
  }

  .recommend-detail-score strong {
    font-size: 28px;
  }

  .recommend-detail-evidence {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

/* Recommendation metrics use the same continuous table language as stock detail. */
body:not([data-view="stock"]) #recommend-view .recommend-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  overflow: visible;
  border: 0;
  border-top: 1px solid var(--app-v3-line);
  border-radius: 0;
  background: #ffffff;
}

body:not([data-view="stock"]) #recommend-view .recommend-metrics > div {
  min-width: 0;
  min-height: 58px;
  display: grid;
  align-content: center;
  justify-content: stretch;
  gap: 3px;
  padding: 10px 10px 9px 0;
  border: 0;
  border-right: 1px solid var(--app-v3-line);
  border-bottom: 1px solid var(--app-v3-line);
  border-radius: 0;
  background: #ffffff;
}

body:not([data-view="stock"]) #recommend-view .recommend-metrics > div:nth-child(even) {
  padding-right: 0;
  padding-left: 12px;
  border-right: 0;
}

body:not([data-view="stock"]) #recommend-view .recommend-metrics > div:last-child {
  grid-column: 1 / -1;
  padding-right: 0;
  border-right: 0;
}

body:not([data-view="stock"]) #recommend-view .recommend-metrics span {
  color: var(--app-v3-muted);
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
}

body:not([data-view="stock"]) #recommend-view .recommend-metrics strong {
  color: var(--app-v3-text);
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  text-align: left;
}

body:not([data-view="stock"]) #recommend-history-view > .app-section-heading {
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

/* Tracked recommendation tables match the continuous stock-detail table. */
body:not([data-view="stock"]) #recommend-history-view :is(
  .recommend-track-metrics,
  .recommend-track-signals
) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  overflow: visible;
  border: 0;
  border-top: 1px solid var(--app-v3-line);
  border-radius: 0;
  background: #ffffff;
}

body:not([data-view="stock"]) #recommend-history-view :is(
  .recommend-track-metrics,
  .recommend-track-signals
) > div {
  min-width: 0;
  min-height: 58px;
  display: grid;
  align-content: center;
  justify-content: stretch;
  gap: 3px;
  padding: 10px 10px 9px 0;
  border: 0;
  border-right: 1px solid var(--app-v3-line);
  border-bottom: 1px solid var(--app-v3-line);
  border-radius: 0;
  background: #ffffff;
}

body:not([data-view="stock"]) #recommend-history-view :is(
  .recommend-track-metrics,
  .recommend-track-signals
) > div:nth-child(even) {
  padding-right: 0;
  padding-left: 12px;
  border-right: 0;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-signals > div:last-child {
  grid-column: 1 / -1;
  padding-right: 0;
  border-right: 0;
}

body:not([data-view="stock"]) #recommend-history-view :is(
  .recommend-track-metrics,
  .recommend-track-signals
) span {
  color: var(--app-v3-muted);
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
}

body:not([data-view="stock"]) #recommend-history-view :is(
  .recommend-track-metrics,
  .recommend-track-signals
) strong {
  color: var(--app-v3-text);
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  text-align: left;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-detail {
  gap: 0;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-saved-info,
body:not([data-view="stock"]) #recommend-history-view .recommend-track-summary {
  display: grid;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--app-v3-line);
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-saved-info h3,
body:not([data-view="stock"]) #recommend-history-view .recommend-track-summary h3 {
  margin: 0;
  color: var(--app-v3-text);
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-summary p,
body:not([data-view="stock"]) #recommend-history-view .recommend-track-points {
  color: var(--app-v3-text);
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.65 !important;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-points {
  gap: 8px;
  padding-left: 20px;
}

@media (max-width: 720px) {
  #stock-view.stock-detail-v3 .stock-v3-news-temperature-section {
    padding-top: 20px;
    padding-bottom: 12px;
  }

  #stock-view.stock-detail-v3 .stock-v3-news-temperature-section .stock-v3-section-head {
    margin-bottom: 8px;
  }

  #stock-view.stock-detail-v3 .stock-v3-news-temperature-section .stock-v3-sentiment-summary {
    gap: 8px;
    margin: 0 0 4px;
  }

  #stock-view.stock-detail-v3 .stock-v3-news-temperature-section .stock-v3-temperature-gauge {
    min-height: 74px;
  }

  #stock-view.stock-detail-v3 .stock-v3-news-temperature-section .stock-v3-sentiment-summary dl > div {
    min-height: 44px;
    padding: 0 8px;
  }

  #stock-view.stock-detail-v3 .stock-v3-news-temperature-section .stock-v3-main-chart {
    min-height: 0;
    margin: 0 -2px;
  }

  body:not([data-view="stock"]) #trend-view .trend-tabs {
    width: calc(100% + 40px) !important;
    max-width: none !important;
  }

  body:not([data-view="stock"]) #trend-view .trend-summary {
    padding: 14px 16px;
    border-radius: 8px !important;
  }

  body:not([data-view="stock"]) #recommend-history-view .recommend-history.archive-page {
    padding: 0 20px 24px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  body:not([data-view="stock"]) :is(
    #portfolio-tracking-panel,
    #recommend-history-view
  ) {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: clip;
  }

  body:not([data-view="stock"]) #recommend-history-view > .app-section-heading {
    padding: 16px 20px 14px;
  }

  #recommend-view .recommend-card-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #recommend-view .recommend-ai-button {
    grid-column: auto;
  }

  body:not([data-view="stock"]) :is(
    .thread-item,
    .trend-event,
    #recommend-view .recommend-card,
    #recommend-history-view .recommend-track-card
  ) {
    border-radius: 0 !important;
  }
}

/* Final tracking layout overrides legacy dashboard card rules. */
body:not([data-view="stock"]) #portfolio-tracking-panel > #recommend-history-view {
  border: 0;
  border-radius: 0;
  background: transparent;
}

body:not([data-view="stock"]) #recommend-history-view > .app-section-heading {
  padding: 24px 26px 20px;
  border: 1px solid var(--app-v3-line);
  border-bottom: 8px solid var(--app-v3-bg);
  border-radius: 8px 8px 0 0;
  background: #ffffff;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-history.archive-page {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body:not([data-view="stock"]) #recommend-history-view #recommend-history-list {
  gap: 8px;
  padding: 0;
  background: var(--app-v3-bg);
}

body:not([data-view="stock"]) #recommend-history-view #recommend-history-list > .recommend-track-card {
  padding: 22px 24px 0;
  border: 1px solid var(--app-v3-line);
  border-radius: 8px;
  background: #ffffff;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-metrics,
body:not([data-view="stock"]) #recommend-history-view .recommend-track-signals {
  gap: 0;
  overflow: visible;
  border: 0;
  border-top: 1px solid var(--app-v3-line);
  border-radius: 0;
  background: #ffffff;
}

body:not([data-view="stock"]) #recommend-history-view :is(
  .recommend-track-metrics,
  .recommend-track-signals
) > div {
  border-radius: 0;
  background: #ffffff;
}

@media (max-width: 720px) {
  body:not([data-view="stock"]) #recommend-history-view > .app-section-heading {
    padding: 22px 20px 18px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  body:not([data-view="stock"]) #recommend-history-view .recommend-history.archive-page {
    padding: 0;
  }

  body:not([data-view="stock"]) #recommend-history-view #recommend-history-list > .recommend-track-card {
    padding: 22px 20px 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0 !important;
  }
}

/* Pin portfolio 5.0 final precedence: mirror the stock-detail visual system. */
body:not([data-view="stock"]) #portfolio-tracking-panel > #recommend-history-view {
  width: 100%;
  min-width: 0;
  overflow-x: clip;
  border: 0;
  border-radius: 0;
  background: var(--app-v3-bg, #f4f5f7);
}

/* Home AI signals 5.2: stock-detail aligned watchlist signal board. */
body:not([data-view="stock"]) .home-ai-signals {
  margin: 0;
  padding: 0 28px;
  background: #fff;
  border-top: 8px solid #f3f5f7;
  border-bottom: 8px solid #f3f5f7;
}

body:not([data-view="stock"]) .home-ai-signals-head {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #e4e8ed;
}

body:not([data-view="stock"]) .home-ai-signals-head > div {
  min-width: 0;
}

body:not([data-view="stock"]) .home-ai-signals-head span {
  display: block;
  margin-bottom: 6px;
  color: #8a94a3;
  font-size: 13px;
  font-weight: 600;
}

body:not([data-view="stock"]) .home-ai-signals-head h2 {
  margin: 0;
  color: #151922;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: 0;
}

body:not([data-view="stock"]) .home-ai-signals-head .text-action {
  flex: 0 0 auto;
  min-width: 0;
  padding: 8px 0 8px 16px;
  color: #4c5667;
  background: transparent;
  border: 0;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

body:not([data-view="stock"]) .home-ai-signals-list {
  min-height: 72px;
}

body:not([data-view="stock"]) .home-ai-signals-list > .muted {
  margin: 0;
  padding: 24px 0;
}

body:not([data-view="stock"]) .home-ai-signal-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid #e8ebef;
}

body:not([data-view="stock"]) .home-ai-signal-row:last-child {
  border-bottom: 0;
}

body:not([data-view="stock"]) :is(.home-ai-signal-identity, .home-ai-signal-status) {
  min-width: 0;
  display: flex;
  align-items: center;
}

body:not([data-view="stock"]) .app-ai-signals :is(.home-ai-signal-identity, .home-ai-signal-status) {
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

body:not([data-view="stock"]) .home-ai-signal-row strong {
  overflow: hidden;
  color: #191d26;
  font-size: 16px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not([data-view="stock"]) .home-ai-signal-row small {
  overflow: hidden;
  color: #8a94a3;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not([data-view="stock"]) .home-ai-signal-status {
  justify-content: flex-end;
  padding-left: 16px;
  border-left: 1px solid #e4e8ed;
}

body:not([data-view="stock"]) .app-ai-signals .home-ai-signal-status {
  align-items: flex-end;
}

body:not([data-view="stock"]) .home-ai-signal-row.is-buy .home-ai-signal-status strong {
  color: #dc2638;
}

body:not([data-view="stock"]) .home-ai-signal-row.is-hold .home-ai-signal-status strong {
  color: #dc2638;
}

body:not([data-view="stock"]) .home-ai-signal-row.is-sell .home-ai-signal-status strong {
  color: #2879df;
}

body:not([data-view="stock"]) .home-ai-signal-row.is-neutral .home-ai-signal-status strong {
  color: #737d8c;
}

/* AI signal archive 1.0: three-stage status board. */
body[data-view="ai-signals"] {
  background: #f3f4f6;
}

body[data-view="ai-signals"] .app-content {
  background: #fff;
}

#ai-signals-view.app-ai-signals {
  width: 100%;
  max-width: 920px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 20px 48px;
  color: #16181d;
  background: #fff;
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#ai-signals-view .ai-signals-commandbar,
#ai-signals-view > .secondary-view-meta {
  margin-right: -20px;
  margin-left: -20px;
}

#ai-signals-view .ai-signal-stage-tabs {
  position: sticky;
  top: 72px;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 -20px;
  background: #fff;
  border-bottom: 1px solid #e5e8ec;
}

#ai-signals-view .ai-signal-stage-tabs button {
  min-width: 0;
  min-height: 58px;
  padding: 0 8px;
  color: #8a929e;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  font-size: 15px;
  font-weight: 750;
  cursor: pointer;
}

#ai-signals-view .ai-signal-stage-tabs button.active {
  color: #17191e;
  border-bottom-color: #17191e;
}

#ai-signals-view .ai-signal-stage-tabs span {
  margin-left: 3px;
  color: #9aa2ae;
  font-size: 12px;
}

#ai-signals-view .ai-signals-page-list {
  min-height: 120px;
  border-top: 0;
}

#ai-signals-view .ai-signals-page-list > .muted {
  margin: 0;
  padding: 36px 0;
  text-align: center;
}

#ai-signals-view .home-ai-signal-row {
  min-height: 76px;
}

body:not([data-view="stock"]) .home-surge {
  margin: 8px 0;
  padding: 0 28px;
  background: #fff;
  border-top: 8px solid #f3f5f7;
  border-bottom: 8px solid #f3f5f7;
}

body:not([data-view="stock"]) .home-surge-head {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #e4e8ed;
}

body:not([data-view="stock"]) .home-surge-head > div {
  min-width: 0;
}

body:not([data-view="stock"]) .home-surge-head span,
body:not([data-view="stock"]) .market-ranking-head span {
  display: block;
  margin-bottom: 6px;
  color: #8a94a3;
  font-size: 13px;
  font-weight: 600;
}

body:not([data-view="stock"]) .home-surge-head h2,
body:not([data-view="stock"]) .market-ranking-head h1 {
  margin: 0;
  color: #151922;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: 0;
}

body:not([data-view="stock"]) .home-surge-head .text-action {
  flex: 0 0 auto;
  min-width: 0;
  padding: 8px 0 8px 16px;
  color: #4c5667;
  background: transparent;
  border: 0;
  font-size: 14px;
  font-weight: 700;
}

body:not([data-view="stock"]) .home-surge-list {
  min-height: 72px;
}

body:not([data-view="stock"]) .home-surge-list > .muted {
  margin: 0;
  padding: 24px 0;
}

body:not([data-view="stock"]) .home-surge-row {
  min-height: 72px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid #e8ebef;
}

body:not([data-view="stock"]) .home-surge-row:last-child {
  border-bottom: 0;
}

body:not([data-view="stock"]) .home-surge-rank {
  color: #9aa3af;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

body:not([data-view="stock"]) .home-surge-identity,
body:not([data-view="stock"]) .home-surge-quote {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

body:not([data-view="stock"]) .home-surge-identity strong,
body:not([data-view="stock"]) .home-surge-quote strong {
  overflow: hidden;
  color: #191d26;
  font-size: 16px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not([data-view="stock"]) .home-surge-identity small,
body:not([data-view="stock"]) .home-surge-quote small {
  color: #8a94a3;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

body:not([data-view="stock"]) .home-surge-quote {
  align-items: flex-end;
  text-align: right;
}

body:not([data-view="stock"]) .home-surge-quote.positive small,
body:not([data-view="stock"]) .market-leaderboard-change.positive {
  color: #dc2638;
}

body:not([data-view="stock"]) .home-surge-quote.negative small,
body:not([data-view="stock"]) .market-leaderboard-change.negative {
  color: #2879df;
}

body[data-view="movers"] .app-content {
  background: #fff;
}

body:not([data-view="stock"]) .app-market-rankings {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px;
}

body:not([data-view="stock"]) .market-ranking-head {
  margin-bottom: 24px;
}

body:not([data-view="stock"]) .market-ranking-head p {
  margin: 10px 0 0;
  color: #7e8898;
  font-size: 14px;
  line-height: 1.5;
}

body:not([data-view="stock"]) .app-market-rankings > .market-segment {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 20px;
  padding: 0;
  overflow: hidden;
  background: #f1f3f6;
  border: 0;
  border-radius: 8px;
}

body:not([data-view="stock"]) .app-market-rankings .market-segment-button {
  min-height: 52px;
  margin: 0;
  color: #8a94a3;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 15px;
  font-weight: 700;
}

body:not([data-view="stock"]) .app-market-rankings .market-segment-button.active {
  color: #fff;
  background: #151922;
}

body:not([data-view="stock"]) .market-ranking-list {
  border-top: 1px solid #dfe3e8;
}

body:not([data-view="stock"]) .ranking-message-cell {
  margin: 0;
  padding: 28px 0;
  text-align: center;
}

body:not([data-view="stock"]) .market-leaderboard,
body:not([data-view="stock"]) .market-leaderboard-shell {
  display: block;
  margin: 0;
  padding: 0;
}

body:not([data-view="stock"]) .market-leaderboard-card {
  margin: 0;
  padding: 18px 0;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #e4e8ed;
  border-radius: 0;
  box-shadow: none;
}

body:not([data-view="stock"]) .market-leaderboard-main {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

body:not([data-view="stock"]) .market-rank-badge {
  width: auto;
  height: auto;
  display: block;
  color: #8a94a3;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

body:not([data-view="stock"]) .market-leaderboard-name {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body:not([data-view="stock"]) .market-leaderboard-name strong {
  overflow: hidden;
  color: #171b23;
  font-size: 17px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not([data-view="stock"]) .market-leaderboard-name span {
  color: #8a94a3;
  font-size: 12px;
  font-weight: 600;
}

body:not([data-view="stock"]) .market-leaderboard-quote-block {
  min-width: 82px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

body:not([data-view="stock"]) .market-leaderboard-price,
body:not([data-view="stock"]) .market-leaderboard-change {
  font-size: 15px;
  line-height: 1.3;
}

body:not([data-view="stock"]) .market-leaderboard-strip {
  margin: 14px 0 0 40px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #eef0f3;
}

body:not([data-view="stock"]) .market-leaderboard-strip > div {
  min-width: 0;
  padding: 11px 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

body:not([data-view="stock"]) .market-leaderboard-strip span {
  color: #929ba8;
  font-size: 11px;
}

body:not([data-view="stock"]) .market-leaderboard-strip strong {
  overflow: hidden;
  color: #4b5565;
  font-size: 13px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not([data-view="stock"]) .market-leaderboard-strip strong.positive {
  color: #dc2638;
}

body:not([data-view="stock"]) .market-leaderboard-strip strong.negative {
  color: #2879df;
}

@media (max-width: 640px) {
  body:not([data-view="stock"]) .home-ai-signals,
  body:not([data-view="stock"]) .home-surge {
    padding: 0 20px;
  }

  body:not([data-view="stock"]) .home-ai-signals-head,
  body:not([data-view="stock"]) .home-surge-head {
    min-height: 72px;
  }

  body:not([data-view="stock"]) .home-ai-signals-head h2,
  body:not([data-view="stock"]) .home-surge-head h2,
  body:not([data-view="stock"]) .market-ranking-head h1 {
    font-size: 22px;
  }

  body:not([data-view="stock"]) .home-ai-signal-row {
    min-height: 56px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }

  body:not([data-view="stock"]) .home-ai-signal-status {
    padding-left: 12px;
  }

  body:not([data-view="stock"]) .home-ai-signal-row strong {
    font-size: 14px;
  }

  body:not([data-view="stock"]) .home-ai-signal-row small {
    font-size: 10px;
  }

  body:not([data-view="stock"]) .app-market-rankings {
    padding: 24px 20px 104px;
  }
}

body:not([data-view="stock"]) #recommend-history-view > .app-section-heading {
  padding: 20px 24px 17px;
  border: 0;
  border-bottom: 1px solid var(--app-v3-line, #e3e6ea);
  border-radius: 0;
  background: #ffffff;
}

body:not([data-view="stock"]) #recommend-history-view > .app-section-heading :is(span, p) {
  color: var(--app-v3-muted, #8a929e);
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
}

body:not([data-view="stock"]) #recommend-history-view > .app-section-heading h2 {
  margin: 3px 0 4px;
  color: var(--app-v3-text, #17191d);
  font-size: 24px !important;
  font-weight: 750 !important;
  line-height: 1.3 !important;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-history.archive-page {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body:not([data-view="stock"]) #recommend-history-view #recommend-history-list {
  display: grid;
  gap: 8px;
  padding: 8px 0 24px;
  background: var(--app-v3-bg, #f4f5f7);
}

body:not([data-view="stock"]) #recommend-history-view #recommend-history-list > .recommend-track-card {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #ffffff;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 18px;
  border: 0;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-stock-link {
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-title {
  display: grid;
  gap: 4px;
  min-width: 0;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-title strong {
  overflow: hidden;
  color: var(--app-v3-text, #17191d);
  font-size: 21px !important;
  font-weight: 750 !important;
  line-height: 1.25 !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-title span {
  color: var(--app-v3-muted, #8a929e);
  font-size: 13px !important;
  font-weight: 550 !important;
  line-height: 1.4 !important;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-pin-state {
  flex: 0 0 auto;
  padding-top: 3px;
  color: #e3263f;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

body:not([data-view="stock"]) #recommend-history-view :is(.recommend-track-metrics, .recommend-track-signals) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--app-v3-line, #e3e6ea);
  border-radius: 8px;
  background: #ffffff;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-metrics {
  width: auto !important;
  margin: 0 24px;
}

body:not([data-view="stock"]) #recommend-history-view :is(.recommend-track-metrics, .recommend-track-signals) > div {
  display: grid;
  min-width: 0;
  min-height: 68px;
  align-content: center;
  gap: 5px;
  padding: 12px 15px;
  border: 0;
  border-right: 1px solid var(--app-v3-line, #e3e6ea);
  border-bottom: 1px solid var(--app-v3-line, #e3e6ea);
  border-radius: 0;
  background: #ffffff;
}

body:not([data-view="stock"]) #recommend-history-view :is(.recommend-track-metrics, .recommend-track-signals) > div:nth-child(even) {
  border-right: 0;
}

body:not([data-view="stock"]) #recommend-history-view :is(.recommend-track-metrics, .recommend-track-signals) > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

body:not([data-view="stock"]) #recommend-history-view :is(.recommend-track-metrics, .recommend-track-signals) :is(dt, span) {
  color: var(--app-v3-muted, #8a929e);
  font-size: 12px !important;
  font-weight: 550 !important;
  line-height: 1.35 !important;
}

body:not([data-view="stock"]) #recommend-history-view :is(.recommend-track-metrics, .recommend-track-signals) :is(dd, strong) {
  margin: 0;
  overflow: hidden;
  color: var(--app-v3-text, #17191d);
  font-size: 16px !important;
  font-weight: 750 !important;
  line-height: 1.35 !important;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-metrics :is(dd.positive, strong.positive) {
  color: #d9233f;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-metrics :is(dd.negative, strong.negative) {
  color: #1769d2;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-actions {
  display: grid;
  width: auto !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 24px 0;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-actions :is(a, button) {
  display: inline-flex;
  width: 100%;
  min-width: 0;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #15171a;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-stock-action {
  background: #15171a;
  color: #ffffff;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-remove {
  position: static;
  background: #ffffff;
  color: #15171a;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-detail-toggle {
  display: flex;
  width: calc(100% - 48px);
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  margin: 18px 24px 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--app-v3-line, #e3e6ea);
  border-radius: 0;
  background: #ffffff;
  color: var(--app-v3-text, #17191d);
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-detail-toggle-icon {
  color: var(--app-v3-muted, #8a929e);
  font-size: 19px;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-detail {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 8px solid var(--app-v3-bg, #f4f5f7);
  background: #ffffff;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-detail[hidden] {
  display: none;
}

body:not([data-view="stock"]) #recommend-history-view :is(.recommend-track-saved-info, .recommend-track-summary) {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 22px 24px;
  border: 0;
  border-bottom: 1px solid var(--app-v3-line, #e3e6ea);
  background: #ffffff;
}

body:not([data-view="stock"]) #recommend-history-view :is(.recommend-track-saved-info, .recommend-track-summary) h3 {
  margin: 0;
  color: var(--app-v3-text, #17191d);
  font-size: 17px !important;
  font-weight: 750 !important;
  line-height: 1.4 !important;
}

body:not([data-view="stock"]) #recommend-history-view :is(.recommend-track-summary p, .recommend-track-points) {
  margin: 0;
  color: var(--app-v3-text, #343941);
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.65 !important;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-points {
  display: grid;
  gap: 8px;
  padding-left: 19px;
}

body:not([data-view="stock"]) #recommend-history-view .recommend-track-points li::marker {
  color: #1769d2;
}

@media (max-width: 720px) {
  body:not([data-view="stock"]) #recommend-history-view > .app-section-heading {
    padding: 18px 20px 15px;
  }

  body:not([data-view="stock"]) #recommend-history-view :is(.recommend-track-head, .recommend-track-saved-info, .recommend-track-summary) {
    padding-right: 20px;
    padding-left: 20px;
  }

  body:not([data-view="stock"]) #recommend-history-view .recommend-track-metrics {
    margin-right: 20px;
    margin-left: 20px;
  }

  body:not([data-view="stock"]) #recommend-history-view .recommend-track-actions {
    margin-right: 20px;
    margin-left: 20px;
  }

  body:not([data-view="stock"]) #recommend-history-view .recommend-track-detail-toggle {
    width: calc(100% - 40px);
    margin-right: 20px;
    margin-left: 20px;
  }
}

/* Market movers 4.0: shares the stock-detail visual language. */
body[data-view="movers"] {
  background: #f3f4f6;
}

body[data-view="movers"] .app-topbar,
body[data-view="movers"] .bottom-nav {
  display: none;
}

body[data-view="movers"] .shell[data-ui-version="3.0"] {
  width: min(920px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 22px;
}

#market-view.app-market-rankings {
  --movers-bg: #f3f4f6;
  --movers-surface: #ffffff;
  --movers-text: #16181d;
  --movers-muted: #8a919d;
  --movers-line: #e8ebef;
  --movers-line-strong: #d8dde4;
  --movers-positive: #e03131;
  --movers-negative: #3478df;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 0;
  gap: 0;
  overflow: hidden;
  color: var(--movers-text);
  background: var(--movers-bg);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#market-view.app-market-rankings .market-ranking-commandbar {
  min-height: 74px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  background: var(--movers-surface);
  border-bottom: 1px solid var(--movers-line);
}

#market-view.app-market-rankings .market-ranking-back {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--movers-text);
  background: transparent;
  border: 0;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

#market-view.app-market-rankings .market-ranking-back:hover {
  background: #f3f4f6;
}

#market-view.app-market-rankings .market-ranking-title {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

#market-view.app-market-rankings .market-ranking-title h1 {
  flex: 0 0 auto;
  margin: 0;
  color: var(--movers-text);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
}

#market-view.app-market-rankings .market-ranking-title span {
  min-width: 0;
  overflow: hidden;
  color: var(--movers-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#market-view.app-market-rankings .market-ranking-tabs {
  position: sticky;
  top: 0;
  z-index: 8;
  min-height: 58px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  overflow: visible;
  background: var(--movers-surface);
  border: 0;
  border-bottom: 1px solid var(--movers-line);
  border-radius: 0;
}

#market-view.app-market-rankings .market-ranking-tabs .market-segment-button {
  position: relative;
  min-width: 0;
  min-height: 58px;
  margin: 0;
  padding: 0 16px;
  color: var(--movers-muted);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  cursor: pointer;
}

#market-view.app-market-rankings .market-ranking-tabs .market-segment-button::after {
  position: absolute;
  right: 12%;
  bottom: -1px;
  left: 12%;
  height: 3px;
  content: "";
  background: transparent;
  border-radius: 3px 3px 0 0;
}

#market-view.app-market-rankings .market-ranking-tabs .market-segment-button.active {
  color: var(--movers-text);
  background: transparent;
  font-weight: 800;
}

#market-view.app-market-rankings .market-ranking-tabs .market-segment-button.active::after {
  background: var(--movers-text);
}

#market-view.app-market-rankings .market-ranking-list {
  padding-top: 10px;
  background: var(--movers-bg);
  border: 0;
}

#market-view.app-market-rankings .market-leaderboard,
#market-view.app-market-rankings .market-leaderboard-shell {
  display: block;
  margin: 0;
  padding: 0;
}

#market-view.app-market-rankings .market-leaderboard-card {
  margin: 0 0 8px;
  padding: 20px 26px 0;
  background: var(--movers-surface);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

#market-view.app-market-rankings .market-leaderboard-main {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

#market-view.app-market-rankings .market-rank-badge {
  width: 28px;
  height: auto;
  display: block;
  color: var(--movers-muted);
  background: transparent;
  font-size: 13px;
  font-weight: 650;
  text-align: left;
}

#market-view.app-market-rankings .market-leaderboard-name {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
}

#market-view.app-market-rankings .market-leaderboard-name strong {
  overflow: hidden;
  color: var(--movers-text);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#market-view.app-market-rankings .market-leaderboard-name span {
  color: var(--movers-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}

#market-view.app-market-rankings .market-leaderboard-quote-block {
  min-width: 94px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
}

#market-view.app-market-rankings .market-leaderboard-price {
  color: var(--movers-text);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  transition: none;
  animation: none;
}

#market-view.app-market-rankings .market-leaderboard-change {
  color: var(--movers-muted);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.3;
  transition: none;
  animation: none;
}

#market-view.app-market-rankings .market-leaderboard-change.positive,
#market-view.app-market-rankings .market-leaderboard-strip dd.positive {
  color: var(--movers-positive);
}

#market-view.app-market-rankings .market-leaderboard-change.negative,
#market-view.app-market-rankings .market-leaderboard-strip dd.negative {
  color: var(--movers-negative);
}

#market-view.app-market-rankings .market-leaderboard-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 16px 0 0 40px;
  padding: 0;
  background: transparent;
  border-top: 1px solid var(--movers-line);
  border-right: 0;
  border-bottom: 1px solid var(--movers-line);
  border-left: 0;
  border-radius: 0;
}

#market-view.app-market-rankings .market-leaderboard-strip > div {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 12px 10px;
  background: transparent;
  border-radius: 0;
}

#market-view.app-market-rankings .market-leaderboard-strip > div:not(:last-child) {
  border-right: 1px solid var(--movers-line);
}

#market-view.app-market-rankings .market-leaderboard-strip dt,
#market-view.app-market-rankings .market-leaderboard-strip dd {
  margin: 0;
}

#market-view.app-market-rankings .market-leaderboard-strip dt {
  color: var(--movers-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

#market-view.app-market-rankings .market-leaderboard-strip dd {
  overflow: hidden;
  color: var(--movers-text);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: none;
  animation: none;
}

#market-view.app-market-rankings .ranking-message-cell {
  margin: 0;
  padding: 48px 24px;
  color: var(--movers-muted);
  background: var(--movers-surface);
  border: 0;
  border-radius: 0;
  text-align: center;
}

@media (max-width: 980px) {
  body[data-view="movers"] .shell[data-ui-version="3.0"] {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  #market-view.app-market-rankings .market-ranking-commandbar {
    position: sticky;
    top: 0;
    z-index: 10;
    min-height: 62px;
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 9px 10px;
  }

  #market-view.app-market-rankings .market-ranking-back {
    width: 38px;
    height: 38px;
    font-size: 21px;
  }

  #market-view.app-market-rankings .market-ranking-title {
    gap: 8px;
  }

  #market-view.app-market-rankings .market-ranking-title h1 {
    font-size: 18px !important;
  }

  #market-view.app-market-rankings .market-ranking-title span {
    font-size: 10px;
  }

  #market-view.app-market-rankings .market-ranking-tabs {
    top: 62px;
    min-height: 56px;
  }

  #market-view.app-market-rankings .market-ranking-tabs .market-segment-button {
    min-height: 56px;
    font-size: 15px;
  }

  #market-view.app-market-rankings .market-ranking-list {
    padding-top: 8px;
  }

  #market-view.app-market-rankings .market-leaderboard-card {
    padding: 18px 20px 0;
  }
}

@media (max-width: 480px) {
  #market-view.app-market-rankings .market-leaderboard-main {
    grid-template-columns: 22px minmax(0, 1fr) auto;
    gap: 8px;
  }

  #market-view.app-market-rankings .market-rank-badge {
    width: 22px;
    font-size: 11px;
  }

  #market-view.app-market-rankings .market-leaderboard-name strong {
    font-size: 16px;
  }

  #market-view.app-market-rankings .market-leaderboard-name span {
    font-size: 10px;
  }

  #market-view.app-market-rankings .market-leaderboard-quote-block {
    min-width: 82px;
  }

  #market-view.app-market-rankings .market-leaderboard-price {
    font-size: 16px;
  }

  #market-view.app-market-rankings .market-leaderboard-change {
    font-size: 12px;
  }

  #market-view.app-market-rankings .market-leaderboard-strip {
    margin-left: 30px;
  }

  #market-view.app-market-rankings .market-leaderboard-strip > div {
    padding: 11px 8px;
  }

  #market-view.app-market-rankings .market-leaderboard-strip dt {
    font-size: 10px;
  }

  #market-view.app-market-rankings .market-leaderboard-strip dd {
    font-size: 13px;
  }
}

/* Market movers 5.0: exact stock-detail hierarchy and density. */
body[data-view="movers"] .shell[data-ui-version="3.0"] {
  width: min(1180px, 100%);
  max-width: 1180px;
  margin: 0 auto;
  padding: 0;
}

#market-view.app-market-rankings {
  width: 100%;
  max-width: 1180px;
  min-height: 100vh;
  grid-template-rows: 74px 64px minmax(0, 1fr);
  background: var(--movers-bg);
  overflow: clip;
}

#market-view.app-market-rankings .market-ranking-commandbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 74px;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--movers-line);
  border-bottom-color: var(--movers-line);
}

#market-view.app-market-rankings .market-ranking-back {
  width: 42px;
  height: 42px;
  font-size: 27px;
}

#market-view.app-market-rankings .market-ranking-title {
  align-items: baseline;
  gap: 9px;
}

#market-view.app-market-rankings .market-ranking-title h1 {
  font-size: 24px !important;
  font-weight: 900;
  line-height: 1.2;
}

#market-view.app-market-rankings .market-ranking-title span {
  font-size: 12px;
  font-weight: 700;
}

#market-view.app-market-rankings .market-ranking-tabs {
  top: 74px;
  min-height: 64px;
  border-right: 1px solid var(--movers-line);
  border-left: 1px solid var(--movers-line);
}

#market-view.app-market-rankings .market-ranking-tabs .market-segment-button {
  min-height: 64px;
  padding: 0 20px;
  font-size: 16px;
  font-weight: 700;
}

#market-view.app-market-rankings .market-ranking-tabs .market-segment-button::after {
  right: 18%;
  left: 18%;
  height: 3px;
}

#market-view.app-market-rankings .market-ranking-list {
  padding: 8px 0 0;
  border-right: 1px solid var(--movers-line);
  border-left: 1px solid var(--movers-line);
}

#market-view.app-market-rankings .market-leaderboard-card {
  margin: 0;
  padding: 22px 30px 0;
  border-bottom: 8px solid var(--movers-bg);
}

#market-view.app-market-rankings .market-leaderboard-main {
  grid-template-columns: 30px minmax(0, 1fr) minmax(110px, auto);
  gap: 14px;
  min-height: 52px;
}

#market-view.app-market-rankings .market-rank-badge {
  width: 30px;
  color: var(--movers-muted);
  font-size: 13px;
  font-weight: 700;
}

#market-view.app-market-rankings .market-leaderboard-name {
  gap: 4px;
}

#market-view.app-market-rankings .market-leaderboard-name strong {
  font-size: 18px;
  font-weight: 850;
  line-height: 1.3;
}

#market-view.app-market-rankings .market-leaderboard-name span {
  font-size: 12px;
  font-weight: 650;
}

#market-view.app-market-rankings .market-leaderboard-quote-block {
  min-width: 110px;
  gap: 3px;
}

#market-view.app-market-rankings .market-leaderboard-price {
  font-size: 21px;
  font-weight: 850;
}

#market-view.app-market-rankings .market-leaderboard-change {
  font-size: 15px;
  font-weight: 800;
}

#market-view.app-market-rankings .market-leaderboard-strip {
  margin: 18px 0 0 44px;
  border-color: var(--movers-line);
}

#market-view.app-market-rankings .market-leaderboard-strip > div {
  min-height: 74px;
  align-content: center;
  gap: 7px;
  padding: 13px 16px;
}

#market-view.app-market-rankings .market-leaderboard-strip dt {
  font-size: 12px;
  font-weight: 650;
}

#market-view.app-market-rankings .market-leaderboard-strip dd {
  font-size: 16px;
  font-weight: 800;
}

#market-view.app-market-rankings .ranking-message-cell {
  min-height: 220px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 40px 24px;
  font-size: 15px;
  border-bottom: 8px solid var(--movers-bg);
}

@media (max-width: 980px) {
  #market-view.app-market-rankings {
    grid-template-rows: 72px 62px minmax(0, 1fr);
  }

  #market-view.app-market-rankings .market-ranking-commandbar {
    min-height: 72px;
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 14px 18px;
  }

  #market-view.app-market-rankings .market-ranking-back {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  #market-view.app-market-rankings .market-ranking-title h1 {
    font-size: 20px !important;
  }

  #market-view.app-market-rankings .market-ranking-title span {
    font-size: 11px;
  }

  #market-view.app-market-rankings .market-ranking-tabs {
    top: 72px;
    min-height: 62px;
  }

  #market-view.app-market-rankings .market-ranking-tabs .market-segment-button {
    min-height: 62px;
    font-size: 16px;
  }

  #market-view.app-market-rankings .market-ranking-list {
    border-right: 0;
    border-left: 0;
  }

  #market-view.app-market-rankings .market-leaderboard-card {
    padding: 21px 20px 0;
  }
}

@media (max-width: 480px) {
  #market-view.app-market-rankings .market-leaderboard-main {
    grid-template-columns: 24px minmax(0, 1fr) minmax(90px, auto);
    gap: 9px;
  }

  #market-view.app-market-rankings .market-rank-badge {
    width: 24px;
    font-size: 12px;
  }

  #market-view.app-market-rankings .market-leaderboard-name strong {
    font-size: 17px;
  }

  #market-view.app-market-rankings .market-leaderboard-name span {
    font-size: 11px;
  }

  #market-view.app-market-rankings .market-leaderboard-quote-block {
    min-width: 90px;
  }

  #market-view.app-market-rankings .market-leaderboard-price {
    font-size: 19px;
  }

  #market-view.app-market-rankings .market-leaderboard-change {
    font-size: 14px;
  }

  #market-view.app-market-rankings .market-leaderboard-strip {
    margin-left: 33px;
  }

  #market-view.app-market-rankings .market-leaderboard-strip > div {
    min-height: 70px;
    padding: 12px 10px;
  }

  #market-view.app-market-rankings .market-leaderboard-strip dt {
    font-size: 11px;
  }

  #market-view.app-market-rankings .market-leaderboard-strip dd {
    font-size: 15px;
  }
}

/* Secondary navigation 6.0: stock-detail style for every non-root page. */
body:is(
  [data-view="notifications"],
  [data-view="ai-signals"],
  [data-view="movers"],
  [data-view="recommend-detail"],
  [data-view="chart-history"]
) :is(.app-topbar, .bottom-nav) {
  display: none !important;
}

body:is(
  [data-view="notifications"],
  [data-view="ai-signals"],
  [data-view="movers"],
  [data-view="recommend-detail"],
  [data-view="chart-history"]
) .shell[data-ui-version="3.0"] {
  width: min(920px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 !important;
  background: #ffffff;
}

.secondary-commandbar {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  min-height: 72px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-bottom: 1px solid #e5e8ec;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
}

.secondary-commandbar > h1,
.secondary-commandbar-title h1 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #15171b;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.secondary-commandbar > h1 {
  text-align: left;
}

.secondary-commandbar-title {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  overflow: hidden;
}

.secondary-commandbar-title span {
  flex: 0 1 auto;
  overflow: hidden;
  color: #8a929e;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.secondary-commandbar-back,
.secondary-commandbar-action {
  height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #15171b;
  cursor: pointer;
}

.secondary-commandbar-back {
  width: 42px;
  font-size: 25px;
  line-height: 1;
}

.secondary-commandbar-action {
  width: auto;
  min-width: 42px;
  padding: 0 6px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 750;
}

.secondary-commandbar-back:hover,
.secondary-commandbar-action:hover {
  background: #f3f4f6;
}

.secondary-commandbar-spacer {
  width: 42px;
  height: 42px;
}

.secondary-view-meta {
  margin: 0;
  padding: 11px 20px;
  border-bottom: 1px solid #eef0f3;
  color: #858d99;
  background: #ffffff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.notifications-commandbar,
#ai-signals-view .ai-signals-commandbar,
#market-view.app-market-rankings .market-ranking-commandbar,
.recommend-detail-topbar,
.chart-history-commandbar {
  top: 0 !important;
  min-height: 72px !important;
  grid-template-columns: 42px minmax(0, 1fr) 42px !important;
  padding: 10px 20px !important;
  gap: 10px !important;
}

.notifications-commandbar h1,
#ai-signals-view .ai-signals-commandbar h1,
#market-view.app-market-rankings .market-ranking-commandbar > h1,
.recommend-detail-topbar h1,
.chart-history-commandbar h1 {
  margin: 0;
  font-size: 22px !important;
  font-weight: 800;
  line-height: 1.25;
}

#market-view.app-market-rankings .market-ranking-tabs {
  top: 72px !important;
}

#market-view.app-market-rankings .market-ranking-meta {
  position: relative;
  z-index: 1;
}

#chart-history-view {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 0 40px;
  background: #ffffff;
}

#chart-history-view .chart-snapshot-panel {
  margin: 0;
  padding: 24px 20px 40px;
}

@media (max-width: 720px) {
  .secondary-commandbar,
  .notifications-commandbar,
  #ai-signals-view .ai-signals-commandbar,
  #market-view.app-market-rankings .market-ranking-commandbar,
  .recommend-detail-topbar,
  .chart-history-commandbar {
    min-height: 64px !important;
    grid-template-columns: 38px minmax(0, 1fr) 38px !important;
    gap: 8px !important;
    padding: 8px 14px !important;
  }

  .secondary-commandbar > h1,
  .secondary-commandbar-title h1,
  .notifications-commandbar h1,
  #ai-signals-view .ai-signals-commandbar h1,
  #market-view.app-market-rankings .market-ranking-commandbar > h1,
  .recommend-detail-topbar h1,
  .chart-history-commandbar h1 {
    font-size: 19px !important;
  }

  .secondary-commandbar-back {
    width: 38px;
    height: 38px;
    font-size: 23px;
  }

  .secondary-commandbar-action,
  .secondary-commandbar-spacer {
    min-width: 38px;
    width: 38px;
    height: 38px;
  }

  .secondary-commandbar-title span {
    font-size: 11px;
  }

  .secondary-view-meta {
    padding: 9px 16px;
    font-size: 11px;
  }

  #market-view.app-market-rankings .market-ranking-tabs {
    top: 64px !important;
  }

  #ai-signals-view .ai-signal-stage-tabs {
    top: 64px;
  }
}

/* Application surfaces 6.1: carry the stock-detail rhythm through root pages. */
body:not([data-view="stock"]) {
  --app-v3-bg: #f3f4f6;
  --app-v3-panel: #ffffff;
  --app-v3-text: #16181d;
  --app-v3-muted: #8a919d;
  --app-v3-line: #e8ebef;
  --app-v3-line-strong: #d8dde4;
  --app-v3-red: #e03131;
  --app-v3-blue: #3478df;
  background: var(--app-v3-bg);
  color: var(--app-v3-text);
}

body:not([data-view="stock"]) :is(
  .discovery-search > button,
  .primary-action,
  .text-action,
  .recommend-watch-button,
  .recommend-track-button,
  .recommend-ai-button,
  .chart-refresh-button,
  .chart-ai-button,
  .chart-save-button
) {
  min-height: 44px;
  border-radius: 8px;
  box-shadow: none;
}

body:not([data-view="stock"]) :is(
  .recommend-metrics,
  .recommend-track-metrics,
  .recommend-track-signals,
  .watch-v2-metrics,
  .component-grid,
  .chart-indicators,
  .watch-chart-metrics
) {
  overflow: hidden;
  border: 1px solid var(--app-v3-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
}

body:not([data-view="stock"]) :is(
  .recommend-metrics,
  .recommend-track-metrics,
  .recommend-track-signals,
  .watch-v2-metrics,
  .component-grid,
  .chart-indicators,
  .watch-chart-metrics
) > div {
  min-width: 0;
  border-color: var(--app-v3-line);
  border-radius: 0;
  background: #ffffff;
}

body:not([data-view="stock"]) #chart-view .chart-watchlist-pick {
  gap: 0;
  padding-bottom: 18px;
}

body:not([data-view="stock"]) #chart-view .chart-watchlist-pick .app-section-heading {
  min-height: 64px;
  margin: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--app-v3-line);
}

body:not([data-view="stock"]) #chart-view .chart-watchlist-picker {
  margin: 0;
  padding: 14px 0 16px;
  border-bottom: 1px solid var(--app-v3-line);
}

body:not([data-view="stock"]) #chart-view .watch-chart-list,
body:not([data-view="stock"]) #chart-view .watch-chart-selector-list {
  display: grid;
  gap: 0;
}

body:not([data-view="stock"]) #chart-view .watch-chart-row {
  min-height: 104px;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 16px;
  margin: 0;
  padding: 17px 0;
  border: 0;
  border-bottom: 1px solid var(--app-v3-line);
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

body:not([data-view="stock"]) #chart-view .watch-chart-row:last-child {
  border-bottom: 0;
}

body:not([data-view="stock"]) #chart-view .watch-chart-row:hover,
body:not([data-view="stock"]) #chart-view .watch-chart-row:active {
  border-color: var(--app-v3-line);
  background: #f8f9fa;
}

body:not([data-view="stock"]) #chart-view .watch-chart-row-main {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
}

body:not([data-view="stock"]) #chart-view .watch-chart-row-main strong {
  font-size: 17px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
}

body:not([data-view="stock"]) #chart-view .watch-chart-row-market {
  overflow: hidden;
  color: var(--app-v3-muted);
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not([data-view="stock"]) #chart-view .watch-chart-row-price {
  margin-top: 7px;
  color: var(--app-v3-text);
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
}

body:not([data-view="stock"]) #chart-view .watch-chart-row-metrics {
  min-width: 0;
  display: grid;
  justify-items: end;
  align-content: center;
  gap: 7px;
}

body:not([data-view="stock"]) #chart-view .watch-chart-score-badge {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 5px;
}

body:not([data-view="stock"]) #chart-view .watch-chart-score-badge span {
  font-size: 10px !important;
  font-weight: 650 !important;
  white-space: nowrap;
}

body:not([data-view="stock"]) #chart-view .watch-chart-score-badge strong {
  color: var(--app-v3-text);
  font-size: 22px !important;
  font-weight: 800 !important;
}

body:not([data-view="stock"]) #chart-view .watch-chart-stance-badge {
  min-height: 25px;
  max-width: 96px;
  padding: 0 8px;
  overflow: hidden;
  border-radius: 6px;
  font-size: 10px !important;
  font-weight: 700 !important;
  text-overflow: ellipsis;
}

@media (min-width: 821px) {
  body:not([data-view="stock"]) #chart-view .watch-chart-selector-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
  }

  body:not([data-view="stock"]) #chart-view .watch-chart-row:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

body:not([data-view="stock"]) #search-view .recommend-card-actions {
  gap: 8px;
  padding-top: 2px;
}

body:not([data-view="stock"]) #search-view .recommend-card-actions > button {
  height: 44px;
  min-height: 44px;
  border-radius: 8px;
}

body:not([data-view="stock"]) #portfolio-view :is(.watch-v2-stock-row, .recommend-track-card) {
  box-shadow: none;
}

body:not([data-view="stock"]) #portfolio-view :is(.watch-v2-row-footer, .recommend-track-actions) button,
body:not([data-view="stock"]) #portfolio-view :is(.watch-v2-row-footer, .recommend-track-actions) a {
  min-height: 44px;
  border-radius: 8px;
  box-shadow: none;
}

@media (max-width: 720px) {
  body:not([data-view="stock"]) #chart-view .chart-watchlist-pick {
    padding: 20px 20px 16px;
  }

  body:not([data-view="stock"]) #chart-view .chart-watchlist-pick .app-section-heading {
    min-height: 58px;
  }

  body:not([data-view="stock"]) #chart-view .watch-chart-row {
    grid-template-columns: minmax(0, 1fr) 100px;
    min-height: 100px;
    gap: 12px;
    padding: 16px 0;
  }

  body:not([data-view="stock"]) #chart-view .watch-chart-stance-badge {
    max-width: 100px;
  }
}

/* Header notifications 6.1: quiet icon control with an unread indicator. */
.app-notification-button,
.app-notification-button[data-active="true"],
body:not([data-view="stock"]) .app-notification-button,
body:not([data-view="stock"]) .app-notification-button[data-active="true"] {
  position: relative;
  width: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border-color: transparent;
  background: transparent;
  color: var(--app-v3-text, #17191d);
  box-shadow: none;
}

.app-notification-button svg {
  width: 25px;
  height: 25px;
}

.app-notification-button:hover,
.app-notification-button[data-active="true"]:hover {
  border-color: transparent;
  background: #f3f4f6;
  color: #111111;
}

.app-notification-button:focus-visible,
.app-notification-button[data-active="true"]:focus-visible {
  border-color: transparent;
  background: #f3f4f6;
  color: #111111;
  outline: 2px solid #17191d;
  outline-offset: 2px;
}

.app-notification-unread-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #e32636;
  box-sizing: content-box;
  pointer-events: none;
}

.app-notification-unread-dot[hidden] {
  display: none;
}

body:not([data-view="stock"]) .home-ai-signal-row.is-pending .home-ai-signal-status strong {
  color: #8a94a3;
}

/* Home market briefing 7.0: compact multi-asset carousel and actionable AI summary. */
body:not([data-view="stock"]) .home-market-indices {
  width: 100%;
  min-width: 0;
  display: block;
  padding: 10px 0 6px;
  overflow: hidden;
  border: 0;
  border-bottom: 8px solid #f3f5f7;
  border-radius: 0;
  background: #fff;
}

body:not([data-view="stock"]) .home-market-carousel {
  min-width: 0;
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

body:not([data-view="stock"]) .home-market-carousel::-webkit-scrollbar {
  display: none;
}

body:not([data-view="stock"]) .home-market-carousel > .muted {
  min-height: 124px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0 24px;
}

body:not([data-view="stock"]) .home-index-card {
  flex: 0 0 164px;
  min-width: 164px;
  min-height: 108px;
  display: grid;
  grid-template-rows: auto auto auto 30px auto;
  gap: 2px;
  padding: 2px 14px 4px;
  overflow: hidden;
  scroll-snap-align: start;
  border: 0;
  border-right: 1px solid #e7eaee;
  border-radius: 0;
  background: #fff;
  color: #7f8792;
  box-shadow: none;
}

body:not([data-view="stock"]) .home-index-card:first-child {
  padding-left: 18px;
}

body:not([data-view="stock"]) .home-index-card:last-child {
  border-right: 0;
}

body:not([data-view="stock"]) .home-index-card > header {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

body:not([data-view="stock"]) .home-index-card h2 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #17191e;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not([data-view="stock"]) .home-index-session {
  padding: 0;
  background: transparent;
  color: #929aa5;
  font-size: 10px;
  font-weight: 600;
}

body:not([data-view="stock"]) .home-index-session::before {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 4px;
  border-radius: 50%;
  background: #b5bbc4;
  content: "";
  vertical-align: 1px;
}

body:not([data-view="stock"]) .home-index-session.is-realtime {
  background: transparent;
  color: #16824b;
}

body:not([data-view="stock"]) .home-index-session.is-realtime::before {
  background: #21b66f;
}

body:not([data-view="stock"]) .home-index-current {
  min-width: 0;
  overflow: hidden;
  color: #17191e;
  font-size: 19px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not([data-view="stock"]) .home-index-change {
  overflow: hidden;
  color: currentColor;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not([data-view="stock"]) .home-index-card.positive,
body:not([data-view="stock"]) .home-index-card.positive .home-index-change {
  color: var(--app-v3-red, #e32636) !important;
}

body:not([data-view="stock"]) .home-index-card.negative,
body:not([data-view="stock"]) .home-index-card.negative .home-index-change {
  color: var(--app-v3-blue, #2879df) !important;
}

body:not([data-view="stock"]) .home-index-chart,
body:not([data-view="stock"]) .home-index-chart svg {
  width: 100%;
  min-height: 30px;
  height: 30px;
}

body:not([data-view="stock"]) .home-index-chart > span {
  font-size: 10px;
}

body:not([data-view="stock"]) .home-index-previous {
  margin: 0;
  color: #9aa1ac;
  font-size: 10px;
  line-height: 1.3;
  text-align: left;
}

body:not([data-view="stock"]) .home-index-previous strong {
  color: inherit;
  font-weight: 650;
}

body:not([data-view="stock"]) .home-index-shared-asof {
  margin: 4px 18px 0;
  color: #9aa1ac;
  font-size: 10px;
  line-height: 1.3;
  text-align: right;
}

body:not([data-view="stock"]) .home-index-card.is-loading {
  opacity: 0.62;
}

body:not([data-view="stock"]) .home-ai-signals {
  padding: 0 28px 6px;
}

body:not([data-view="stock"]) .home-market-signal-ticker {
  min-height: 52px;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  margin-top: 10px;
  padding: 0 13px;
  border: 1px solid #dfe4ea;
  border-radius: 8px;
  background: #fff;
}

body:not([data-view="stock"]) .home-market-signal-kicker {
  padding: 5px 8px;
  border-radius: 5px;
  background: #e32636;
  color: #fff;
  font-size: 11px;
  font-weight: 750;
}

body:not([data-view="stock"]) .home-market-signal-kicker::before {
  display: none;
}

body:not([data-view="stock"]) .home-market-signal-window,
body:not([data-view="stock"]) .home-market-signal-row {
  height: 50px;
}

body:not([data-view="stock"]) .home-market-signal-row {
  display: grid;
  grid-template-columns: minmax(74px, auto) minmax(0, 1fr);
  justify-content: normal;
  gap: 10px;
}

body:not([data-view="stock"]) .home-market-signal-name {
  font-size: 13px;
  font-weight: 800;
}

body:not([data-view="stock"]) .home-market-signal-summary {
  overflow: hidden;
  color: #626c79;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not([data-view="stock"]) .home-ai-response {
  display: grid;
  gap: 6px;
  padding: 18px 0;
  border-bottom: 1px solid #e5e8ec;
}

body:not([data-view="stock"]) .home-ai-response > span {
  color: #8a929e;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
}

body:not([data-view="stock"]) .home-ai-response h3,
body:not([data-view="stock"]) .home-ai-response p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

body:not([data-view="stock"]) .home-ai-response h3 {
  color: #17191e;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;
  -webkit-line-clamp: 1;
}

body:not([data-view="stock"]) .home-ai-response p {
  color: #68717e;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.55;
  -webkit-line-clamp: 2;
}

@media (min-width: 1080px) {
  body:not([data-view="stock"]) .home-index-card {
    flex: 1 1 0;
    min-width: 168px;
  }
}

@media (max-width: 720px) {
  body:not([data-view="stock"]) .home-market-indices {
    padding: 9px 0 6px;
  }

  body:not([data-view="stock"]) .home-index-card {
    flex-basis: 150px;
    min-width: 150px;
    min-height: 104px;
    grid-template-rows: auto auto auto 28px auto;
    padding: 2px 12px 4px;
  }

  body:not([data-view="stock"]) .home-index-card:first-child {
    padding-left: 16px;
  }

  body:not([data-view="stock"]) .home-index-card h2 {
    font-size: 13px;
  }

  body:not([data-view="stock"]) .home-index-current {
    font-size: 18px;
  }

  body:not([data-view="stock"]) .home-index-chart,
  body:not([data-view="stock"]) .home-index-chart svg {
    min-height: 28px;
    height: 28px;
  }

  body:not([data-view="stock"]) .home-ai-signals {
    padding: 0 20px 4px;
  }

  body:not([data-view="stock"]) .home-ai-signals-head {
    min-height: 68px;
  }

  body:not([data-view="stock"]) .home-ai-signals-head h2 {
    font-size: 21px;
  }

  body:not([data-view="stock"]) .home-market-signal-ticker {
    min-height: 50px;
    gap: 9px;
    padding: 0 10px;
  }

  body:not([data-view="stock"]) .home-market-signal-window,
  body:not([data-view="stock"]) .home-market-signal-row {
    height: 48px;
  }

  body:not([data-view="stock"]) .home-market-signal-row {
    grid-template-columns: minmax(68px, auto) minmax(0, 1fr);
    gap: 8px;
  }

  body:not([data-view="stock"]) .home-market-signal-name,
  body:not([data-view="stock"]) .home-market-signal-summary {
    font-size: 11px;
  }

  body:not([data-view="stock"]) .home-ai-response {
    padding: 16px 0;
  }

  body:not([data-view="stock"]) .home-ai-response h3 {
    font-size: 16px;
  }
}

/* Home market briefing 7.2: reference-matched market strip and briefing rows. */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body:not([data-view="stock"]) .home-market-indices {
  width: 100%;
  padding: 16px 0 12px;
  overflow: hidden;
  border: 0;
  border-bottom: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

body:not([data-view="stock"]) .home-flat-section-head {
  display: none;
}

body:not([data-view="stock"]) .home-market-carousel {
  display: flex;
  gap: 0;
  padding: 0 0 0 20px;
  overflow-x: auto;
  background: #ffffff;
  scroll-padding-inline: 20px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

body:not([data-view="stock"]) .home-market-carousel::-webkit-scrollbar {
  display: none;
}

body:not([data-view="stock"]) .home-index-card {
  flex: 0 0 132px;
  min-width: 132px;
  min-height: 142px;
  display: grid;
  grid-template-rows: auto auto minmax(32px, auto) 43px auto;
  gap: 2px;
  padding: 0 12px 0 0;
  overflow: hidden;
  scroll-snap-align: start;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  color: #15161a;
  box-shadow: none;
}

body:not([data-view="stock"]) .home-index-card + .home-index-card,
body:not([data-view="stock"]) .home-index-card:first-child {
  padding-left: 0;
}

body:not([data-view="stock"]) .home-index-card > header {
  min-width: 0;
  display: block;
}

body:not([data-view="stock"]) #home-view .home-index-card h2 {
  margin: 0;
  overflow: hidden;
  color: #1f2024;
  font-size: 14px !important;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not([data-view="stock"]) .home-index-current {
  overflow: visible;
  color: #202126;
  font-size: 18px !important;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  line-height: 1.25;
  white-space: nowrap;
}

body:not([data-view="stock"]) .home-index-change {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: visible;
  color: currentColor;
  font-size: 12px !important;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  line-height: 1.35;
  white-space: normal;
}

body:not([data-view="stock"]) .home-index-change-value,
body:not([data-view="stock"]) .home-index-change-rate {
  display: block;
  max-width: 100%;
  overflow: visible;
  white-space: nowrap;
}

body:not([data-view="stock"]) .home-index-change-rate {
  margin-top: 1px;
}

body:not([data-view="stock"]) .home-index-card.positive,
body:not([data-view="stock"]) .home-index-card.positive .home-index-change {
  color: #ef3e43 !important;
}

body:not([data-view="stock"]) .home-index-card.negative,
body:not([data-view="stock"]) .home-index-card.negative .home-index-change {
  color: #2388e8 !important;
}

body:not([data-view="stock"]) .home-index-chart,
body:not([data-view="stock"]) .home-index-chart svg {
  width: 100%;
  min-height: 43px;
  height: 43px;
}

body:not([data-view="stock"]) .home-index-baseline {
  stroke: #c9cdd2;
  stroke-width: 1;
  stroke-dasharray: 3 3;
  vector-effect: non-scaling-stroke;
}

body:not([data-view="stock"]) .home-index-line {
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

body:not([data-view="stock"]) .home-index-line-up {
  stroke: #ef3e43;
}

body:not([data-view="stock"]) .home-index-line-down {
  stroke: #2388e8;
}

body:not([data-view="stock"]) .home-index-basis {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 1px 0 0;
  overflow: hidden;
  color: #a0a3a8;
  font-size: 10px !important;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
}

body:not([data-view="stock"]) .home-index-basis time {
  overflow: hidden;
  text-overflow: ellipsis;
}

body:not([data-view="stock"]) .home-index-session {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #999da3;
  font-size: 10px !important;
  font-weight: 500;
}

body:not([data-view="stock"]) .home-index-session::before {
  width: 6px;
  height: 6px;
  margin: 0;
  border-radius: 50%;
  background: #c9ccd0;
  content: "";
}

body:not([data-view="stock"]) .home-index-session.is-realtime {
  color: #777c82;
}

body:not([data-view="stock"]) .home-index-session.is-realtime::before {
  background: #27d7b9;
  box-shadow: 0 0 0 2px #dffaf4;
}

body:not([data-view="stock"]) .home-ai-signals {
  padding: 0 20px 16px;
  border: 0;
  border-bottom: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

body:not([data-view="stock"]) .home-ai-signals-head,
body:not([data-view="stock"]) .home-ai-signals-list {
  display: none;
}

body:not([data-view="stock"]) .home-market-signal-ticker {
  min-height: 44px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 15px 0 10px;
  padding: 0 14px;
  overflow: hidden;
  border: 1.5px solid #2fc56e;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: none;
}

body:not([data-view="stock"]) .home-market-signal-kicker {
  padding: 5px 8px;
  border: 0;
  border-radius: 999px;
  background: #f13b3f;
  color: #ffffff;
  font-size: 11px !important;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}

body:not([data-view="stock"]) .home-market-signal-kicker::before {
  display: none;
}

body:not([data-view="stock"]) .home-market-signal-window,
body:not([data-view="stock"]) .home-market-signal-row {
  height: 41px;
}

body:not([data-view="stock"]) .home-market-signal-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding-right: 18px;
}

body:not([data-view="stock"]) .home-market-signal-row::after {
  position: absolute;
  top: 50%;
  right: 1px;
  width: 7px;
  height: 7px;
  border-top: 2px solid #2fc56e;
  border-right: 2px solid #2fc56e;
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

body:not([data-view="stock"]) .home-market-signal-name {
  overflow: hidden;
  color: #24262b;
  font-size: 15px !important;
  font-weight: 750;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not([data-view="stock"]) .home-market-signal-summary {
  color: #2388e8;
  font-size: 13px !important;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
  white-space: nowrap;
}

body:not([data-view="stock"]) .home-market-signal-row[data-tone="positive"] .home-market-signal-summary {
  color: #ef3e43;
}

body:not([data-view="stock"]) .home-ai-response {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 12px 16px;
  border: 1.5px solid transparent;
  border-radius: 10px;
  background: linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(118deg, #4219e8 0%, #7c46ec 38%, #1cd8df 100%) border-box;
  box-shadow: none;
}

body:not([data-view="stock"]) .home-ai-response > header {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding-right: 0;
}

body:not([data-view="stock"]) .home-ai-response > header::before {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #c9ffe0 0 16%, #35d878 38%, #0ca854 72%, #08783e 100%);
  box-shadow:
    0 0 0 3px rgba(47, 197, 110, 0.14),
    0 0 12px rgba(32, 205, 105, 0.72);
  content: "";
}

body:not([data-view="stock"]) .home-ai-response > header span {
  color: #25272c;
  font-size: 14px !important;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
}

body:not([data-view="stock"]) .home-ai-response > header time {
  overflow: hidden;
  color: #92969c;
  font-size: 11px !important;
  font-weight: 500;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not([data-view="stock"]) .home-ai-response-line {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

body:not([data-view="stock"]) .home-ai-response-line.is-watch {
  border-radius: 8px;
  cursor: pointer;
  padding-top: 8px;
  border-top: 1px solid #eceef2;
  transition:
    background-color 0.16s ease,
    transform 0.16s ease,
    box-shadow 0.16s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

body:not([data-view="stock"]) .home-ai-response-line.is-watch:hover,
body:not([data-view="stock"]) .home-ai-response-line.is-watch:focus-visible {
  background: rgba(60, 111, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(60, 111, 255, 0.12);
  outline: none;
}

body:not([data-view="stock"]) .home-ai-response-line.is-watch:active {
  transform: scale(0.995);
}

body:not([data-view="stock"]) .home-ai-response-line > span {
  color: #92969c;
  font-size: 12px !important;
  font-weight: 700;
  line-height: 1.45;
  white-space: nowrap;
}

body:not([data-view="stock"]) .home-ai-response p {
  display: -webkit-box;
  margin: 0;
  padding-right: 0;
  overflow: hidden;
  color: #22242a;
  -webkit-box-orient: vertical;
}

body:not([data-view="stock"]) .home-ai-response h3 {
  display: block;
  margin: 0;
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  font-size: 14px !important;
  font-weight: 800;
  line-height: 1.45;
  -webkit-box-orient: initial;
  -webkit-line-clamp: unset;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

body:not([data-view="stock"]) .home-ai-response p {
  color: #4f5661;
  font-size: 13px !important;
  font-weight: 650;
  line-height: 1.45;
  -webkit-line-clamp: 2;
}

@media (min-width: 1080px) {
  body:not([data-view="stock"]) .home-market-carousel {
    padding-left: 28px;
  }

  body:not([data-view="stock"]) .home-index-card {
    flex-basis: 150px;
    min-width: 150px;
  }

  body:not([data-view="stock"]) .home-ai-signals {
    padding-right: 28px;
    padding-left: 28px;
  }
}

@media (max-width: 390px) {
  body:not([data-view="stock"]) .home-market-carousel {
    padding-left: 16px;
    scroll-padding-inline: 16px;
  }

  body:not([data-view="stock"]) .home-index-card {
    flex-basis: 128px;
    min-width: 128px;
    padding-right: 10px;
  }

  body:not([data-view="stock"]) .home-index-card + .home-index-card,
  body:not([data-view="stock"]) .home-index-card:first-child {
    padding-left: 0;
  }

  body:not([data-view="stock"]) .home-market-signal-ticker {
    gap: 9px;
    padding: 0 11px;
  }

  body:not([data-view="stock"]) .home-market-signal-kicker {
    padding: 5px 7px;
    font-size: 10px;
  }

  body:not([data-view="stock"]) .home-market-signal-name {
    font-size: 14px;
  }
}

/* Chart forecast v4: search-first technical scenarios */
body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] {
  --forecast-positive: #e4373d;
  --forecast-negative: #2f78dc;
  --forecast-text: #17191e;
  --forecast-muted: #8b929c;
  --forecast-line: #e6e9ed;
  --forecast-surface: #f5f7f9;
  display: grid;
  gap: 0;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 0 12px;
  background: #ffffff;
  color: var(--forecast-text);
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"][hidden] {
  display: none;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-stock-search {
  position: relative;
  z-index: 4;
  height: 60px;
  margin: 0;
  padding: 0 16px;
  border: 0;
  border-top: 1px solid var(--forecast-line);
  border-bottom: 1px solid var(--forecast-line);
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-stock-search > svg {
  width: 20px;
  height: 20px;
  stroke: #6f7782;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-stock-search > input {
  min-width: 0;
  color: var(--forecast-text);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-stock-search > input::placeholder {
  color: #a0a6ae;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-stock-search > button {
  min-width: 62px;
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: #17191e;
  color: #ffffff;
  font-size: 14px;
  font-weight: 750;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-start-guide {
  display: grid;
  gap: 18px;
  padding: 32px 24px 18px;
  background: #ffffff;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-start-guide[hidden] {
  display: none;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-example-heading > span,
body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-forecast-eyebrow {
  color: var(--forecast-muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-example-heading h1 {
  max-width: 520px;
  margin: 8px 0 0;
  color: var(--forecast-text);
  font-size: 25px;
  font-weight: 850;
  line-height: 1.3;
  letter-spacing: 0;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-example-heading p {
  max-width: 600px;
  margin: 10px 0 0;
  color: #5f6670;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-example-figure {
  margin: 0;
  padding: 18px 18px 16px;
  border: 1px solid var(--forecast-line);
  border-radius: 8px;
  background: #ffffff;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-example-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px 8px;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-example-title strong {
  color: var(--forecast-text);
  font-size: 15px;
  font-weight: 800;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-example-title span {
  color: var(--forecast-muted);
  font-size: 11px;
  font-weight: 650;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-example-svg {
  width: 100%;
  height: auto;
  display: block;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-example-grid line {
  stroke: #eceef1;
  stroke-width: 1;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-example-future-zone {
  fill: #f7faff;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-example-past-area {
  fill: url(#chart-example-past-fill);
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-example-range {
  fill: url(#chart-example-range-fill);
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] :is(.chart-example-past-line, .chart-example-five-line, .chart-example-ten-line) {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-example-past-line {
  stroke: #353c46;
  stroke-width: 4;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-example-five-line {
  stroke: var(--forecast-positive);
  stroke-width: 4;
  stroke-dasharray: 9 7;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-example-ten-line {
  stroke: var(--forecast-negative);
  stroke-width: 3;
  stroke-dasharray: 4 7;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-example-now-line {
  stroke: #737b86;
  stroke-width: 2;
  stroke-dasharray: 4 5;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-example-now-dot {
  fill: #353c46;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-example-five-dot {
  fill: var(--forecast-positive);
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-example-ten-dot {
  fill: var(--forecast-negative);
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-example-labels text {
  fill: #9299a2;
  font-size: 13px;
  font-weight: 650;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-example-labels .current {
  fill: var(--forecast-text);
  font-weight: 800;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-example-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 15px;
  padding-top: 2px;
  color: #747c87;
  font-size: 11px;
  font-weight: 650;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-example-legend span::before {
  width: 11px;
  height: 3px;
  display: inline-block;
  margin-right: 5px;
  border-radius: 2px;
  background: #353c46;
  content: "";
  vertical-align: middle;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-example-legend .five::before {
  background: var(--forecast-positive);
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-example-legend .ten::before {
  background: var(--forecast-negative);
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-example-legend .range::before {
  background: #d9e4f3;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-example-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--forecast-line);
  border-bottom: 1px solid var(--forecast-line);
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-example-comparison section {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 17px 16px;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-example-comparison section + section {
  border-left: 1px solid var(--forecast-line);
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-example-comparison span {
  color: var(--forecast-muted);
  font-size: 11px;
  font-weight: 650;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-example-comparison strong {
  overflow: hidden;
  color: var(--forecast-text);
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-example-comparison em {
  color: var(--forecast-positive);
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-start-guide small {
  margin-top: -2px;
  color: var(--forecast-muted);
  font-size: 11px;
  line-height: 1.55;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-forecast-result {
  display: block;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-forecast-page {
  display: grid;
  gap: 0;
  background: #ffffff;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-forecast-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 24px 20px;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-forecast-heading {
  min-width: 0;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-forecast-heading h1 {
  margin: 5px 0 2px;
  overflow: hidden;
  color: var(--forecast-text);
  font-size: 24px;
  font-weight: 850;
  line-height: 1.28;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-forecast-heading p,
body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-forecast-basis {
  margin: 0;
  color: var(--forecast-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-forecast-basis {
  padding-bottom: 2px;
  white-space: nowrap;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-forecast-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 52px;
  margin: 0 24px;
  border-bottom: 1px solid var(--forecast-line);
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-forecast-controls button {
  position: relative;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #9aa0a9;
  font-size: 15px;
  font-weight: 700;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-forecast-controls button.active {
  color: var(--forecast-text);
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-forecast-controls button.active::after {
  position: absolute;
  right: 18%;
  bottom: -1px;
  left: 18%;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--forecast-text);
  content: "";
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-forecast-visual {
  margin: 0;
  padding: 26px 20px 18px;
  border-bottom: 8px solid var(--forecast-surface);
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-forecast-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-forecast-grid line {
  stroke: #eceef1;
  stroke-width: 1;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-forecast-grid text,
body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-forecast-axis-label {
  fill: #9aa0a8;
  font-size: 11px;
  font-weight: 600;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-forecast-axis-label.current {
  fill: #17191e;
  font-weight: 750;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-forecast-future-zone {
  fill: #f5f9ff;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-forecast-volume rect {
  fill: #e8ebef;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] :is(.chart-forecast-actual, .chart-forecast-center, .chart-forecast-bound) {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-forecast-actual {
  stroke: #333944;
  stroke-width: 3;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-forecast-band {
  fill: rgba(47, 120, 220, 0.1);
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-forecast-bound {
  stroke: #8bb4ef;
  stroke-width: 1.5;
  stroke-dasharray: 5 6;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-forecast-center {
  stroke: #555d68;
  stroke-width: 3;
  stroke-dasharray: 7 6;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-forecast-center.positive,
body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-forecast-end-dot.positive {
  stroke: var(--forecast-positive);
  fill: var(--forecast-positive);
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-forecast-center.negative,
body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-forecast-end-dot.negative {
  stroke: var(--forecast-negative);
  fill: var(--forecast-negative);
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-forecast-now {
  stroke: #6f7781;
  stroke-width: 1.5;
  stroke-dasharray: 3 4;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-forecast-current-dot {
  fill: #313843;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-forecast-legend {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 10px;
  color: #767e88;
  font-size: 11px;
  font-weight: 600;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-forecast-legend span::before {
  width: 12px;
  height: 3px;
  display: inline-block;
  margin-right: 5px;
  border-radius: 3px;
  background: #333944;
  content: "";
  vertical-align: middle;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-forecast-legend .center::before {
  background: var(--forecast-positive);
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-forecast-legend .range::before {
  background: #cfe1fa;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-pattern-shape {
  fill: none;
  stroke: #616a76;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.9;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-pattern-shape.positive {
  stroke: var(--forecast-positive);
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-pattern-shape.negative {
  stroke: var(--forecast-negative);
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-pattern-trigger {
  stroke: #8c939d;
  stroke-width: 1.25;
  stroke-dasharray: 5 5;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-pattern-label {
  fill: #59616c;
  font-size: 11px;
  font-weight: 750;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-pattern-label.positive {
  fill: var(--forecast-positive);
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-pattern-label.negative {
  fill: var(--forecast-negative);
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-pattern-analysis {
  padding: 26px 24px;
  border-bottom: 8px solid var(--forecast-surface);
  background: #ffffff;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-pattern-heading {
  margin-bottom: 18px;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-pattern-heading span {
  display: block;
  margin-bottom: 4px;
  color: var(--forecast-muted);
  font-size: 12px;
  font-weight: 650;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-pattern-heading h2 {
  margin: 0;
  color: var(--forecast-text);
  font-size: 19px;
  font-weight: 850;
  line-height: 1.35;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-pattern-primary {
  border-top: 1px solid var(--forecast-line);
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-pattern-title {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--forecast-line);
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-pattern-title strong {
  color: var(--forecast-text);
  font-size: 16px;
  font-weight: 800;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-pattern-title .status {
  color: #6d7580;
  font-size: 12px;
  font-weight: 750;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-pattern-title .confidence {
  margin-left: auto;
  color: var(--forecast-muted);
  font-size: 12px;
  font-weight: 650;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-pattern-primary > p,
body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-pattern-empty {
  margin: 0;
  padding: 16px 0;
  color: #40464f;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.55;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-pattern-levels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--forecast-line);
  border-bottom: 1px solid var(--forecast-line);
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-pattern-levels > div {
  min-width: 0;
  min-height: 70px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 12px 10px;
  border-right: 1px solid var(--forecast-line);
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-pattern-levels > div:last-child {
  border-right: 0;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-pattern-levels span {
  color: var(--forecast-muted);
  font-size: 11px;
  font-weight: 600;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-pattern-levels strong {
  overflow: hidden;
  color: var(--forecast-text);
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-pattern-more {
  border-bottom: 1px solid var(--forecast-line);
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-pattern-more summary {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #4f5660;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  list-style: none;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-pattern-more summary::-webkit-details-marker {
  display: none;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-pattern-more summary::after {
  content: "+";
  color: #818995;
  font-size: 18px;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-pattern-more[open] summary::after {
  content: "−";
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-pattern-list {
  border-top: 1px solid var(--forecast-line);
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-pattern-row {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--forecast-line);
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-pattern-row:last-child {
  border-bottom: 0;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-pattern-row strong,
body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-pattern-row span {
  font-size: 12px;
  font-weight: 700;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] :is(.chart-forecast-summary, .chart-forecast-reasons) {
  padding: 26px 24px;
  border-bottom: 8px solid var(--forecast-surface);
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-forecast-summary-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-forecast-summary-head span {
  color: var(--forecast-muted);
  font-size: 12px;
  font-weight: 650;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-forecast-summary-head strong {
  color: var(--forecast-text);
  font-size: 18px;
  font-weight: 850;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .positive {
  color: var(--forecast-positive) !important;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .negative {
  color: var(--forecast-negative) !important;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-forecast-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border-top: 1px solid var(--forecast-line);
  border-left: 1px solid var(--forecast-line);
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-forecast-metric {
  min-width: 0;
  min-height: 82px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 14px 16px;
  border-right: 1px solid var(--forecast-line);
  border-bottom: 1px solid var(--forecast-line);
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-forecast-metric span {
  color: var(--forecast-muted);
  font-size: 12px;
  font-weight: 600;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-forecast-metric strong {
  overflow-wrap: anywhere;
  color: var(--forecast-text);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-forecast-reasons h2 {
  margin: 0 0 12px;
  color: var(--forecast-text);
  font-size: 19px;
  font-weight: 850;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-forecast-reason {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 52px;
  border-bottom: 1px solid var(--forecast-line);
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-forecast-reason span {
  color: var(--forecast-muted);
  font-size: 13px;
  font-weight: 600;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-forecast-reason strong {
  color: #343941;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.4;
  text-align: right;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-forecast-note {
  margin: 0;
  padding: 20px 24px 0;
  color: var(--forecast-muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.6;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-forecast-insufficient,
body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .watch-chart-empty-card {
  margin: 28px 24px;
  padding: 22px 0;
  border: 0;
  border-top: 1px solid var(--forecast-line);
  border-bottom: 1px solid var(--forecast-line);
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"].is-loading {
  filter: none;
}

body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] ~ .watch-chart-loader-overlay .inline-loading-spinner,
.watch-chart-loader-overlay .inline-loading-spinner {
  width: 28px;
  height: 28px;
  border-width: 3px;
}

@media (max-width: 480px) {
  body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-start-guide {
    padding: 28px 20px 14px;
  }

  body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-start-guide h1 {
    font-size: 23px;
  }

  body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-forecast-header {
    padding: 24px 20px 18px;
  }

  body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-forecast-controls {
    margin: 0 20px;
  }

  body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-forecast-visual {
    padding: 22px 10px 16px;
  }

  body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] :is(.chart-forecast-summary, .chart-forecast-reasons) {
    padding: 24px 20px;
  }

  body:not([data-view="stock"]) #chart-view[data-ui-version="4.0"] .chart-forecast-note {
    padding-right: 20px;
    padding-left: 20px;
  }
}

/* iOS safe areas: keep every sticky navigation row below the status bar. */
@media (max-width: 980px) {
  #stock-view.stock-detail-v3 .stock-v3-commandbar {
    min-height: calc(62px + env(safe-area-inset-top, 0px));
    padding-top: calc(9px + env(safe-area-inset-top, 0px));
  }
}

@media (max-width: 720px) {
  body:not([data-view="stock"]) .app-topbar {
    min-height: calc(62px + env(safe-area-inset-top, 0px));
    padding-top: calc(9px + env(safe-area-inset-top, 0px));
  }

  .secondary-commandbar,
  .notifications-commandbar,
  #ai-signals-view .ai-signals-commandbar,
  #market-view.app-market-rankings .market-ranking-commandbar,
  .recommend-detail-topbar,
  .chart-history-commandbar {
    min-height: calc(64px + env(safe-area-inset-top, 0px)) !important;
    padding-top: calc(8px + env(safe-area-inset-top, 0px)) !important;
  }

  #market-view.app-market-rankings .market-ranking-tabs,
  #ai-signals-view .ai-signal-stage-tabs {
    top: calc(64px + env(safe-area-inset-top, 0px)) !important;
  }

  /* Keep event rows on the same horizontal grid as the other home panels. */
  body:not([data-view="stock"]) #trend-events-panel .trend-event {
    padding-right: 0;
    padding-left: 0;
  }
}

/* Shared stock identity: surge rankings and recommendation candidates. */
.stock-list-logo {
  width: 34px;
  height: 34px;
  min-width: 34px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #f0f2f5;
}

.stock-list-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.stock-list-logo.is-empty {
  visibility: hidden;
}

.stock-list-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

body:not([data-view="stock"]) .home-surge-identity {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

body:not([data-view="stock"]) .home-surge-identity .stock-list-copy {
  min-width: 0;
}

#market-view.app-market-rankings .market-leaderboard-main {
  grid-template-columns: 30px 34px minmax(0, 1fr) minmax(96px, auto);
  gap: 12px;
}

body:not([data-view="stock"]) .recommend-name {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

body:not([data-view="stock"]) .recommend-name .stock-list-copy {
  min-width: 0;
}

body:not([data-view="stock"]) .recommend-name .stock-list-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not([data-view="stock"]) .recommend-name .stock-list-copy small {
  color: var(--muted);
  font-size: var(--recommend-font-meta);
  font-weight: 700;
}

@media (max-width: 480px) {
  .stock-list-logo {
    width: 32px;
    height: 32px;
    min-width: 32px;
  }

  #market-view.app-market-rankings .market-leaderboard-main {
    grid-template-columns: 24px 32px minmax(0, 1fr) minmax(82px, auto);
    gap: 9px;
  }
}

/* Surge market filters: a stable three-column segmented control. */
#market-view.app-market-rankings .market-ranking-tabs {
  width: auto;
  min-width: 0;
  min-height: 72px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin: 12px 16px 14px;
  padding: 7px;
  overflow: hidden;
  background: #eef1f4;
  border: 0;
  border-radius: 14px;
  box-shadow: none;
}

#market-view.app-market-rankings .market-ranking-tabs .market-segment-button {
  min-width: 0;
  min-height: 58px;
  padding: 0 12px;
  color: #8a94a3;
  background: transparent;
  border: 0;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 750;
}

#market-view.app-market-rankings .market-ranking-tabs .market-segment-button::after {
  display: none;
}

#market-view.app-market-rankings .market-ranking-tabs .market-segment-button.active {
  color: #20242c;
  background: #ffffff;
  font-weight: 850;
  box-shadow: 0 1px 4px rgba(24, 31, 42, 0.08);
}

#market-view.app-market-rankings .market-ranking-tabs .market-segment-button:not(.active):hover {
  color: #596474;
  background: rgba(255, 255, 255, 0.42);
}

#market-view.app-market-rankings .market-ranking-tabs .market-segment-button:focus-visible {
  outline: 2px solid #20242c;
  outline-offset: -3px;
}

@media (max-width: 480px) {
  #market-view.app-market-rankings .market-ranking-tabs {
    min-height: 58px;
    gap: 3px;
    margin: 8px 12px 10px;
    padding: 5px;
    border-radius: 12px;
  }

  #market-view.app-market-rankings .market-ranking-tabs .market-segment-button {
    min-height: 48px;
    padding: 0 6px;
    border-radius: 9px;
    font-size: 14px;
  }
}

/* Market movers 5.1: reserve the tabs' full mobile height before the stock list. */
#market-view.app-market-rankings {
  grid-template-rows: auto auto minmax(0, 1fr);
}

#market-view.app-market-rankings .market-ranking-commandbar,
#market-view.app-market-rankings .market-ranking-tabs {
  box-sizing: border-box;
}

#market-view.app-market-rankings .market-ranking-tabs {
  align-self: start;
}
