:root {
  --dash-red: #d84c45;
  --dash-green: #42936c;
  --dash-blue: #6f94d7;
  --dash-amber: #d5a64e;
  --dash-purple: #8b63d2;
  --dash-stock-up: #d2766e;
  --dash-stock-down: #5d9f7c;
  --dash-stock-target: #c8a55e;
  --dash-stock-info: #8fa1b5;
  --dash-panel: color-mix(in srgb, var(--ui-surface) 82%, var(--ui-bg));
  --dash-panel-raised: color-mix(in srgb, var(--ui-surface-raised) 86%, var(--ui-bg));
  --dash-line: color-mix(in srgb, var(--ui-text-soft) 24%, transparent);
  --dash-line-soft: color-mix(in srgb, var(--ui-text-soft) 12%, transparent);
}

html[data-theme="light"] {
  --dash-stock-up: #aa4b45;
  --dash-stock-down: #347756;
  --dash-stock-target: #916a25;
  --dash-stock-info: #526b86;
}

#page-home:not(.hidden) ~ * {}

#page-home .dash-home {
  width: 100%;
  min-width: 0;
  color: var(--ui-text);
  font-family: inherit;
}

body[data-current-page="home"] #workspaceHeader {
  display: none !important;
}

body[data-current-page="home"] .app-content {
  padding-top: clamp(16px, 1.8vw, 28px) !important;
}

.dash-home *,
.dash-home *::before,
.dash-home *::after {
  box-sizing: border-box;
}

.dash-home button,
.dash-home input {
  font: inherit;
}

.dash-home-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  min-height: 112px;
}

.dash-home-heading {
  display: block;
  min-width: 0;
}

.dash-home-title-row {
  display: flex;
  align-items: baseline;
  gap: 22px;
}

.dash-home-title-row h2 {
  margin: 0;
}

.dash-home-heading span,
.dash-card-head > span,
.dash-card-head > button {
  color: var(--ui-muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.dash-search-wrap {
  position: relative;
  z-index: 12;
  width: min(460px, 42vw);
  flex: 0 1 460px;
  margin: 0;
}

.dash-search-control {
  height: 40px !important;
  border: 1px solid var(--dash-line) !important;
  border-radius: 6px !important;
  background: var(--dash-panel) !important;
  box-shadow: none !important;
}

.dash-search-control:focus-within {
  border-color: color-mix(in srgb, var(--dash-blue) 70%, var(--ui-border)) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--dash-blue) 12%, transparent) !important;
}

.dash-search-control input {
  color: var(--ui-text) !important;
  font-size: 13px !important;
}

.dash-home-columns {
  display: grid;
  grid-template-columns: minmax(0, 2.08fr) minmax(340px, .98fr);
  align-items: start;
  gap: 12px;
}

.dash-home-primary,
.dash-home-aside {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
}

.dash-card,
.dash-index-card,
.dash-instrument-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--dash-line);
  border-radius: 7px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--dash-panel-raised) 94%, transparent), var(--dash-panel));
  box-shadow: inset 0 1px 0 color-mix(in srgb, white 3%, transparent), 0 10px 26px color-mix(in srgb, black 13%, transparent);
}

html[data-theme="light"] .dash-card,
html[data-theme="light"] .dash-index-card,
html[data-theme="light"] .dash-instrument-card {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 8px 22px rgba(58,53,44,.055);
}

.dash-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid var(--dash-line-soft);
}

.dash-card-head h2,
.dash-instrument-card h2 {
  margin: 0;
  color: var(--ui-text-soft);
  font-size: 16px;
  font-weight: 760;
  letter-spacing: .035em;
  line-height: 1;
}

.dash-card-head > button {
  padding: 4px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.dash-card-head > button:hover {
  color: var(--ui-text);
}

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

.dash-index-card {
  height: 112px;
  padding: 17px 18px 15px;
}

.dash-index-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ui-text-soft);
}

.dash-index-head b {
  font-size: 16px;
  font-weight: 720;
}

.dash-index-head span {
  color: var(--ui-muted);
  font-size: 11px;
}

.dash-index-quote {
  display: flex;
  align-items: baseline;
  gap: 13px;
  margin-top: 16px;
  min-width: 0;
}

.dash-index-quote strong {
  color: var(--ui-text);
  font: 760 22px/1 'Inter', system-ui, sans-serif;
  letter-spacing: .045em;
}

.dash-index-quote small {
  font: 700 12px/1 'Inter', system-ui, sans-serif;
}

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

.dash-instrument-card {
  position: relative;
  height: 228px;
}

.dash-instrument-card h2 {
  position: absolute;
  z-index: 2;
  top: 15px;
  left: 17px;
}

.dash-gauge-canvas {
  position: absolute;
  inset: 44px 0 0;
  display: block;
  width: 100%;
  height: calc(100% - 44px);
}

.dash-capital-body {
  position: absolute;
  inset: 54px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 17px;
  border: 1px solid var(--dash-line-soft);
  background:
    radial-gradient(circle at 50% 12%, color-mix(in srgb, var(--dash-blue) 8%, transparent), transparent 50%),
    color-mix(in srgb, var(--ui-text) 2%, transparent);
  text-align: center;
}

.dash-capital-body::before,
.dash-capital-body::after {
  content: "";
  width: 42%;
  height: 1px;
  background: var(--dash-line-soft);
}

.dash-capital-body strong {
  color: var(--ui-text);
  font-family: inherit;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 720;
  letter-spacing: .06em;
}

.dash-capital-body span {
  max-width: 26em;
  color: var(--ui-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
}

.dash-breadth-card {
  height: 390px;
}

.dash-breadth-canvas-wrap {
  height: 302px;
  padding: 0 12px;
}

#dashBreadthGauge,
#dashRadarCanvas,
#dashSectorTreemap {
  display: block;
  width: 100%;
  height: 100%;
}

.dash-breadth-summary {
  height: 45px;
  margin: 0 20px;
  padding: 12px 2px 0;
  overflow: hidden;
  border-top: 1px solid var(--dash-line-soft);
  color: var(--ui-text-soft);
  font-family: inherit;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dash-events-card {
  height: 196px;
}

.dash-events-card .dash-card-head {
  border-bottom: 0;
}

.dash-events-timeline {
  --dash-event-line-y: 34px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: stretch;
  height: calc(100% - 42px);
  padding: 8px 18px 5px;
}

.dash-events-timeline::before {
  content: "";
  position: absolute;
  right: 22px;
  left: 22px;
  top: var(--dash-event-line-y);
  height: 1px;
  background: color-mix(in srgb, var(--ui-text-soft) 62%, transparent);
}

.dash-events-timeline.is-empty::before {
  display: none;
}

.dash-event {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ui-muted);
  cursor: pointer;
}

.dash-event::before {
  content: "";
  position: absolute;
  top: calc(var(--dash-event-line-y) + 22px);
  left: 100%;
  width: 1px;
  height: 64px;
  background: color-mix(in srgb, var(--ui-text-soft) 34%, transparent);
}

.dash-event:last-child::before {
  display: none;
}

.dash-event::after {
  content: "";
  position: absolute;
  top: calc(var(--dash-event-line-y) + 10px);
  left: 50%;
  width: 1px;
  height: 26px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(
    to bottom,
    color-mix(in srgb, var(--ui-text-soft) 62%, transparent) 0 3px,
    transparent 3px 6px
  );
}

.dash-event i {
  position: absolute;
  top: calc(var(--dash-event-line-y) - 8px);
  left: 50%;
  display: grid;
  width: 15px;
  height: 15px;
  place-items: center;
  transform: translateX(-50%);
  border: 2px solid var(--ui-text-soft);
  border-radius: 50%;
  background: var(--dash-panel);
  box-shadow: 0 0 0 4px var(--dash-panel);
}

.dash-event i::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ui-text);
  box-shadow: 0 0 5px color-mix(in srgb, var(--ui-text) 34%, transparent);
}

.dash-event span {
  position: absolute;
  top: calc(var(--dash-event-line-y) + 39px);
  left: 0;
  display: block;
  width: 100%;
  padding: 0 8px;
  overflow: visible;
  color: var(--ui-muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.45;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.dash-event:hover i,
.dash-event:focus-visible i {
  border-color: var(--ui-text);
}

.dash-ai-card {
  height: 330px;
}

.dash-treemap-wrap {
  height: calc(100% - 42px);
  padding: 12px;
}

.dash-treemap-wrap canvas {
  border: 1px solid var(--dash-line-soft);
  background: color-mix(in srgb, var(--ui-text) 1.5%, transparent);
}

.dash-watch-card {
  min-height: 335px;
}

.dash-watch-list {
  min-height: 293px;
  padding: 0 13px 8px;
}

.dash-watch-row,
.dash-active-row {
  position: relative;
  display: grid;
  grid-template-rows: 29px 22px;
  align-items: center;
  min-width: 0;
  height: 56px;
  padding: 2px 8px;
  column-gap: 9px;
  border-top: 1px solid var(--dash-line-soft);
  color: var(--ui-muted);
  font-size: 12px;
  cursor: pointer;
  transition: background-color .18s ease;
}

.dash-watch-row::before,
.dash-active-row::before {
  content: none;
}

.dash-watch-row.is-gain::before,
.dash-active-row.is-gain::before {
  content: none;
}

.dash-watch-row.is-loss::before,
.dash-active-row.is-loss::before {
  content: none;
}

.dash-watch-row {
  grid-template-columns: minmax(0, 1fr) minmax(116px, auto) 96px;
}

.dash-watch-row .dash-stock-decision {
  grid-column: 1 / -1;
}

.dash-stock-decision {
  display: flex;
  grid-column: 2 / -1;
  grid-row: 2;
  min-width: 0;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  color: var(--ui-muted);
  font-size: 10px;
  font-weight: 650;
  line-height: 18px;
  white-space: nowrap;
}

.dash-stock-view,
.dash-stock-target {
  display: inline-flex;
  min-width: 0;
  height: 19px;
  align-items: center;
  padding: 0 7px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--dash-stock-info) 24%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--dash-stock-info) 10%, transparent);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-stock-view {
  color: color-mix(in srgb, var(--dash-stock-info) 88%, var(--ui-text));
}

.dash-stock-target {
  border-color: color-mix(in srgb, var(--dash-stock-target) 30%, transparent);
  background: color-mix(in srgb, var(--dash-stock-target) 10%, transparent);
  color: var(--dash-stock-target);
  font: inherit;
  cursor: pointer;
}

button.dash-stock-target:hover {
  border-color: color-mix(in srgb, var(--dash-stock-target) 52%, transparent);
  background: color-mix(in srgb, var(--dash-stock-target) 16%, transparent);
  color: var(--dash-stock-target);
}

.dash-watch-row:hover,
.dash-active-row:hover {
  background: color-mix(in srgb, var(--dash-stock-info) 6%, transparent);
}

.dash-stock-identity {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 8px;
}

.dash-watch-name,
.dash-active-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: var(--ui-text-soft);
  font-weight: 720;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dash-stock-code {
  flex: 0 0 auto;
  color: var(--ui-muted);
  font: 650 10px/1 'Inter', system-ui, sans-serif;
  letter-spacing: .02em;
}

.dash-stock-quote {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: flex-end;
  gap: 8px;
}

.dash-watch-price,
.dash-watch-change,
.dash-active-price,
.dash-active-change {
  font: 700 12px/1 'Inter', system-ui, sans-serif;
  text-align: right;
}

.dash-home .dash-watch-change.is-up,
.dash-home .dash-active-change.is-up {
  color: var(--dash-stock-up) !important;
}

.dash-home .dash-watch-change.is-down,
.dash-home .dash-active-change.is-down {
  color: var(--dash-stock-down) !important;
}

.dash-spark {
  display: block;
  width: 100%;
  height: 24px;
}

.dash-radar-card {
  height: 326px;
}

.dash-radar-body {
  position: relative;
  display: block;
  height: calc(100% - 42px);
  padding: 2px 12px 10px;
}

#dashRadarCanvas {
  display: block;
  width: 100%;
  height: 100%;
}

.dash-radar-tooltip {
  position: absolute;
  z-index: 5;
  display: grid;
  width: min(265px, calc(100% - 12px));
  gap: 8px;
  padding: 11px 12px;
  border: 1px solid var(--dash-line);
  border-radius: 5px;
  background: color-mix(in srgb, var(--dash-panel) 96%, transparent);
  box-shadow: 0 12px 28px color-mix(in srgb, black 30%, transparent);
  color: var(--ui-text);
  font-size: 11px;
  line-height: 1.45;
  pointer-events: none;
  backdrop-filter: blur(10px);
}

.dash-radar-tooltip[hidden] {
  display: none;
}

.dash-radar-tooltip strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
}

.dash-radar-tooltip strong b {
  font-family: inherit;
}

.dash-radar-tooltip span {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 8px;
  color: var(--ui-text-soft);
}

.dash-radar-tooltip em {
  color: var(--ui-faint);
  font-style: normal;
  font-weight: 700;
}

.dash-radar-list {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.dash-mainline-card {
  min-height: 218px;
}

.dash-mainline-list {
  padding: 6px 15px 9px;
}

.dash-theme-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 48px;
  padding: 6px 0;
  border-bottom: 1px solid var(--dash-line-soft);
}

.dash-theme-row:last-child {
  border-bottom: 0;
}

.dash-theme-copy {
  min-width: 0;
}

.dash-theme-copy strong {
  display: block;
  overflow: hidden;
  color: var(--ui-text-soft);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.25;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dash-theme-copy p {
  overflow: hidden;
  margin: 4px 0 0;
  color: var(--ui-muted);
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dash-theme-tag {
  max-width: 120px;
  overflow: hidden;
  color: var(--dash-red);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dash-active-card {
  min-height: 264px;
}

.dash-active-list {
  padding: 0 15px 10px;
}

.dash-active-row {
  grid-template-columns: 32px minmax(0, 1fr) minmax(116px, auto) 96px;
}

.dash-active-rank {
  display: grid;
  width: 27px;
  height: 21px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--dash-stock-target) 24%, var(--dash-line));
  border-radius: 9px;
  background: color-mix(in srgb, var(--dash-stock-target) 7%, transparent);
  color: var(--dash-stock-target);
  font: 750 10px/1 'Inter', system-ui, sans-serif;
}

.dash-empty {
  grid-column: 1 / -1;
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: center;
  color: var(--ui-muted);
  font-size: 12px;
  text-align: center;
}

.dash-home .is-up,
.dash-home .c-red,
.dash-home .text-red-400 {
  color: var(--dash-red) !important;
}

.dash-home .is-down,
.dash-home .c-green,
.dash-home .text-emerald-400 {
  color: var(--dash-green) !important;
}

.dash-home .is-flat,
.dash-home .text-slate-300 {
  color: var(--ui-text-soft) !important;
}

.dash-home-legacy {
  position: fixed !important;
  z-index: -100 !important;
  top: -10000px !important;
  left: -10000px !important;
  width: 2px !important;
  height: 2px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 1450px) {
  .dash-home-columns {
    grid-template-columns: 1fr;
  }
  .dash-home-aside {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dash-watch-card,
  .dash-radar-card,
  .dash-mainline-card,
  .dash-active-card {
    height: 300px;
    min-height: 0;
  }
  .dash-radar-body {
    display: block;
  }
}

@media (max-width: 1260px) {
  .dash-home-columns {
    grid-template-columns: 1fr;
  }
  .dash-instrument-card {
    height: 214px;
  }
  .dash-radar-body {
    display: block;
  }
  #dashRadarCanvas {
    height: 100%;
  }
  .dash-radar-card {
    height: 326px;
  }
}

@media (max-width: 1080px) {
  .dash-radar-body {
    display: block;
  }
  #dashRadarCanvas {
    height: 100%;
  }
}

@media (max-width: 760px) {
  body[data-current-page="home"] .app-content {
    padding-top: 14px !important;
    overflow-x: clip;
  }
  #page-home .dash-home {
    width: 100%;
    max-width: 100%;
    overflow: clip;
  }
  .dash-home-head {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    padding-bottom: 14px;
  }
  .dash-home-heading {
    width: 100%;
  }
  .dash-home-title-row {
    align-items: baseline;
    flex-flow: row wrap;
    gap: 8px;
  }
  .dash-search-wrap {
    width: 100%;
    flex-basis: auto;
  }
  .dash-index-grid,
  .dash-instrument-triad,
  .dash-home-aside {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .dash-home-columns,
  .dash-home-primary,
  .dash-home-aside {
    gap: 10px;
  }
  .dash-index-card {
    height: 98px;
  }
  .dash-instrument-card {
    height: 222px;
  }
  .dash-gauge-canvas {
    inset: 42px 0 0;
    height: calc(100% - 42px);
  }
  .dash-capital-body {
    inset: 48px 14px 14px;
  }
  .dash-breadth-card {
    height: 300px;
  }
  .dash-breadth-canvas-wrap {
    height: 256px;
    padding: 0 2px 4px;
  }
  .dash-breadth-summary {
    font-size: 12px;
  }
  .dash-events-card {
    height: auto;
  }
  .dash-events-timeline {
    grid-template-columns: 1fr !important;
    height: auto;
    padding: 7px 15px 12px;
  }
  .dash-events-timeline::before {
    display: none;
  }
  .dash-event {
    position: relative;
    display: grid;
    grid-template-columns: 15px minmax(0, 1fr);
    align-items: start;
    justify-items: start;
    gap: 11px;
    width: 100%;
    height: auto;
    min-height: 48px;
    padding: 11px 0;
    border-bottom: 1px solid var(--dash-line-soft);
  }
  .dash-event::before,
  .dash-event::after {
    display: none;
  }
  .dash-event i {
    position: relative;
    top: auto;
    left: auto;
    width: 13px;
    height: 13px;
    margin-top: 3px;
    transform: none;
    box-shadow: none;
  }
  .dash-event span {
    position: static;
    width: auto;
    padding: 0;
    overflow: visible;
    font-size: 12px;
    line-height: 1.55;
    text-align: left;
    overflow-wrap: anywhere;
  }
  .dash-watch-card,
  .dash-radar-card,
  .dash-mainline-card,
  .dash-active-card {
    height: auto;
    min-height: 260px;
  }
  .dash-radar-card {
    height: 380px;
  }
  .dash-radar-body {
    display: block;
  }
  .dash-ai-card {
    height: 360px;
  }
  .dash-treemap-wrap {
    height: calc(100% - 42px);
    padding: 8px;
  }
  .dash-watch-list,
  .dash-active-list {
    padding-inline: 9px;
  }
  .dash-watch-row {
    grid-template-columns: minmax(0, 1fr) auto 76px;
    grid-template-rows: 31px minmax(22px, auto);
    height: auto;
    min-height: 62px;
    padding: 4px 3px;
    column-gap: 6px;
  }
  .dash-active-row {
    grid-template-columns: 27px minmax(0, 1fr) auto 72px;
    grid-template-rows: 31px minmax(22px, auto);
    height: auto;
    min-height: 62px;
    padding: 4px 3px;
    column-gap: 5px;
  }
  .dash-stock-identity {
    gap: 5px;
  }
  .dash-stock-decision {
    gap: 4px;
  }
  .dash-stock-view,
  .dash-stock-target {
    max-width: 48%;
    padding-inline: 6px;
  }
  .dash-spark {
    height: 22px;
  }
}

@media (max-width: 380px) {
  .dash-card-head {
    padding-inline: 12px;
  }
  .dash-index-card {
    padding-inline: 14px;
  }
  .dash-watch-row {
    grid-template-columns: minmax(0, 1fr) auto 66px;
  }
  .dash-active-row {
    grid-template-columns: 25px minmax(0, 1fr) auto 62px;
  }
  .dash-watch-price,
  .dash-watch-change,
  .dash-active-price,
  .dash-active-change {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dash-home * {
    scroll-behavior: auto !important;
  }
}

/*
 * Desktop composition mirrors home-dashboard-preview.html on its 1680 × 1005
 * design stage. Only #page-home is scaled; the application header, navigation
 * directory and every other page retain their existing layout.
 */
@media (min-width: 761px) {
  body[data-current-page="home"] {
    --dash-mainline-height: 196px;
    --dash-stage-height: calc(1174px + var(--dash-mainline-height));
    --dash-stage-scale: calc((100vw - var(--ui-sidebar-width)) / 1530px);
    overflow-x: hidden;
  }

  body[data-current-page="home"] .app-content {
    height: calc(var(--dash-stage-height) * var(--dash-stage-scale));
    padding: 0 !important;
    overflow: hidden;
  }

  body[data-current-page="home"] .app-shell.sidebar-collapsed {
    --dash-stage-scale: calc((100vw - 76px) / 1530px);
  }

  body[data-current-page="home"] #page-home {
    position: relative;
    width: 100%;
    height: calc(var(--dash-stage-height) * var(--dash-stage-scale));
    overflow: hidden;
  }

  body[data-current-page="home"] #registrationPolicyHomePromo {
    display: none !important;
  }

  body[data-current-page="home"] .dash-home {
    position: relative;
    width: 1530px;
    height: var(--dash-stage-height);
    zoom: var(--dash-stage-scale);
    background:
      radial-gradient(circle at 46% -12%, color-mix(in srgb, var(--dash-blue) 7%, transparent), transparent 30%),
      linear-gradient(120deg, color-mix(in srgb, white .8%, transparent), transparent 46%);
    overflow: hidden;
  }

  body[data-current-page="home"] .dash-home-columns,
  body[data-current-page="home"] .dash-home-primary,
  body[data-current-page="home"] .dash-home-aside {
    display: contents;
  }

  body[data-current-page="home"] .dash-home-head {
    position: absolute;
    z-index: 12;
    right: 36px;
    left: 18px;
    top: 18px;
    width: auto;
    height: 118px;
    min-height: 0;
    display: flex;
    margin: 0 !important;
    padding: 0 0 22px !important;
    border-bottom: 1px solid var(--ui-border) !important;
  }

  body[data-current-page="home"] .dash-home-heading {
    position: static;
    display: block;
  }

  body[data-current-page="home"] .dash-home-heading span {
    font-size: 16px;
  }

  body[data-current-page="home"] .dash-search-wrap {
    position: relative;
    z-index: 12;
    left: auto;
    top: auto;
    width: 467px;
    flex: 0 0 467px;
    margin: 0 0 2px;
  }

  body[data-current-page="home"] .dash-search-control {
    height: 44px !important;
    min-height: 44px !important;
  }

  body[data-current-page="home"] .dash-search-control input {
    height: 42px !important;
    min-height: 0 !important;
    font-size: 17px !important;
  }

  body[data-current-page="home"] .dash-card,
  body[data-current-page="home"] .dash-index-card,
  body[data-current-page="home"] .dash-instrument-card {
    border-radius: 6px;
  }

  body[data-current-page="home"] .dash-card-head {
    height: 42px;
    padding: 0 17px;
  }

  body[data-current-page="home"] .dash-card-head h2 {
    font-size: 21px;
    font-weight: 680;
  }

  body[data-current-page="home"] .dash-card-head > span,
  body[data-current-page="home"] .dash-card-head > button {
    font-size: 15px;
  }

  body[data-current-page="home"] .dash-index-grid {
    position: absolute;
    left: 18px;
    top: 150px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 981px;
    height: 116px;
    gap: 10px;
  }

  body[data-current-page="home"] .dash-index-card {
    height: 116px;
    padding: 16px 18px;
    border-radius: 5px;
  }

  body[data-current-page="home"] .dash-index-head b {
    font-size: 20px;
    font-weight: 680;
  }

  body[data-current-page="home"] .dash-index-quote {
    gap: 10px;
    margin-top: 19px;
  }

  body[data-current-page="home"] .dash-index-quote strong {
    font-size: 27px;
    letter-spacing: .12em;
  }

  body[data-current-page="home"] .dash-index-quote small {
    font-size: 15px;
  }

  body[data-current-page="home"] .dash-instrument-triad {
    position: absolute;
    left: 18px;
    top: 280px;
    display: block;
    width: 981px;
    height: 214px;
  }

  body[data-current-page="home"] .dash-instrument-card {
    position: absolute;
    top: 0;
    width: 320px;
    height: 214px;
  }

  body[data-current-page="home"] .dash-instrument-card:nth-child(1) { left: 0; }
  body[data-current-page="home"] .dash-instrument-card:nth-child(2) { left: 330px; width: 321px; }
  body[data-current-page="home"] .dash-instrument-card:nth-child(3) { left: 661px; }

  body[data-current-page="home"] .dash-instrument-card h2 {
    top: 14px;
    left: 16px;
    font-size: 19px;
    font-weight: 680;
  }

  body[data-current-page="home"] .dash-gauge-canvas {
    inset: 42px 0 0;
    width: 100%;
    height: 172px;
  }

  body[data-current-page="home"] .dash-capital-body {
    inset: 46px 18px 16px;
    gap: 10px;
    padding: 16px;
  }

  body[data-current-page="home"] .dash-capital-body::before,
  body[data-current-page="home"] .dash-capital-body::after {
    width: 46%;
  }

  body[data-current-page="home"] .dash-capital-body strong {
    font-size: 30px;
  }

  body[data-current-page="home"] .dash-capital-body span {
    font-size: 16px;
  }

  body[data-current-page="home"] .dash-breadth-card {
    position: absolute;
    left: 18px;
    top: 508px;
    width: 981px;
    height: 292px;
  }

  body[data-current-page="home"] .dash-breadth-card .dash-card-head {
    height: 42px;
    padding: 0 16px;
    border-bottom: 0;
  }

  body[data-current-page="home"] .dash-breadth-card .dash-card-head h2 {
    font-size: 19px;
  }

  body[data-current-page="home"] .dash-breadth-canvas-wrap {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 42px;
    height: 236px;
    padding: 0;
  }

  body[data-current-page="home"] .dash-breadth-summary {
    position: absolute;
    right: 28px;
    bottom: 9px;
    left: 28px;
    height: 25px;
    margin: 0;
    padding: 0;
    border: 0;
    font-family: inherit;
    font-size: 17px;
    font-weight: 620;
    line-height: 25px;
  }

  body[data-current-page="home"] .dash-events-card {
    position: absolute;
    left: 18px;
    top: 816px;
    width: 981px;
    height: 196px;
  }

  body[data-current-page="home"] .dash-events-timeline {
    --dash-event-line-y: 23px;
    height: 154px;
    padding: 0 18px;
  }

  body[data-current-page="home"] .dash-events-timeline::before {
    right: 18px;
    left: 18px;
    top: var(--dash-event-line-y);
  }

  body[data-current-page="home"] .dash-event {
    height: 154px;
  }

  body[data-current-page="home"] .dash-event i {
    width: 15px;
    height: 15px;
    box-shadow: 0 0 0 3px var(--dash-panel);
  }

  body[data-current-page="home"] .dash-event span {
    display: block;
    height: auto;
    padding: 0 9px;
    overflow: visible;
    font-size: 15px;
    line-height: 20px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  body[data-current-page="home"] .dash-ai-card {
    position: absolute;
    left: 18px;
    top: 1028px;
    width: 981px;
    height: calc(134px + var(--dash-mainline-height));
  }

  body[data-current-page="home"] .dash-treemap-wrap {
    position: absolute;
    right: 12px;
    bottom: 12px;
    left: 12px;
    height: calc(80px + var(--dash-mainline-height));
    padding: 0;
  }

  body[data-current-page="home"] .dash-watch-card {
    position: absolute;
    left: 1014px;
    top: 150px;
    width: 480px;
    height: 335px;
    min-height: 0;
  }

  body[data-current-page="home"] .dash-watch-list {
    min-height: 0;
    height: 293px;
    padding: 0 14px 8px;
  }

  body[data-current-page="home"] .dash-watch-row {
    grid-template-columns: minmax(0, 1fr) minmax(128px, auto) 108px;
    grid-template-rows: 29px 22px;
    height: 57px;
    padding: 3px 8px;
    column-gap: 8px;
    font-size: 16px;
  }

  body[data-current-page="home"] .dash-watch-row .dash-stock-decision {
    font-size: 14px;
    line-height: 20px;
  }

  body[data-current-page="home"] .dash-stock-view,
  body[data-current-page="home"] .dash-stock-target {
    height: 21px;
    padding: 0 8px;
  }

  body[data-current-page="home"] .dash-watch-price,
  body[data-current-page="home"] .dash-watch-change,
  body[data-current-page="home"] .dash-active-price,
  body[data-current-page="home"] .dash-active-change {
    font-size: 15.5px;
  }

  body[data-current-page="home"] .dash-watch-name,
  body[data-current-page="home"] .dash-active-name {
    font-size: 17px;
  }

  body[data-current-page="home"] .dash-stock-code {
    font-size: 11.5px;
  }

  body[data-current-page="home"] .dash-radar-card {
    position: absolute;
    left: 1014px;
    top: 501px;
    width: 480px;
    height: 299px;
  }

  body[data-current-page="home"] .dash-radar-body {
    display: block;
    height: 257px;
    padding: 0 12px 10px;
  }

  body[data-current-page="home"] #dashRadarCanvas {
    width: 100%;
    height: 100%;
  }

  body[data-current-page="home"] .dash-mainline-card {
    position: absolute;
    left: 1014px;
    top: 816px;
    width: 480px;
    height: var(--dash-mainline-height);
    min-height: 0;
  }

  body[data-current-page="home"] .dash-mainline-list {
    height: auto;
    padding: 7px 14px 9px;
  }

  body[data-current-page="home"] .dash-theme-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    min-height: 48px;
    padding: 7px 0;
  }

  body[data-current-page="home"] .dash-theme-copy strong {
    font-size: 16px;
  }

  body[data-current-page="home"] .dash-theme-copy p {
    margin-top: 4px;
    font-size: 13.5px;
  }

  body[data-current-page="home"] .dash-theme-tag {
    max-width: 132px;
    font-size: 15px;
  }

  body[data-current-page="home"] .dash-active-card {
    position: absolute;
    left: 1014px;
    top: calc(832px + var(--dash-mainline-height));
    width: 480px;
    height: 330px;
    min-height: 0;
  }

  body[data-current-page="home"] .dash-active-list {
    height: 288px;
    padding: 0 14px 8px;
  }

  body[data-current-page="home"] .dash-active-row {
    grid-template-columns: 32px minmax(0, 1fr) minmax(128px, auto) 104px;
    grid-template-rows: 27px 21px;
    height: 54px;
    padding: 2px 8px;
    column-gap: 8px;
    font-size: 16px;
  }

  body[data-current-page="home"] .dash-active-row .dash-stock-decision {
    font-size: 13.5px;
    line-height: 19px;
  }

  body[data-current-page="home"] .dash-active-rank {
    width: 27px;
    height: 22px;
    border-radius: 10px;
    font-size: 12px;
  }
}
