.heatmap-root { min-width: 320px; background: #20252d; }
.heatmap-page { width: 100%; max-width: 760px; margin: 0 auto; padding: 2px 0 18px; color: #eef2f4; }
.heatmap-toolbar { height: 34px; display: grid; grid-template-columns: minmax(0, 1fr) 34px 34px; align-items: center; border: 1px solid #4b535e; background: #303640; color: #aeb8c2; }
.heatmap-toolbar p { padding: 0 10px; overflow: hidden; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.heatmap-zoom { width: 100%; height: 100%; padding: 0; display: grid; place-items: center; border: 0; border-left: 1px solid #4b535e; border-radius: 0; background: transparent; color: #d7dde2; font-size: 17px; cursor: pointer; }
.heatmap-zoom:hover, .heatmap-zoom:focus-visible { outline: 0; background: #3d4652; color: #fff; }
.heatmap-zoom:disabled { color: #67717c; cursor: default; }
.heatmap-workspace { min-height: 472px; display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 3px; }
.heatmap-sidebar { min-width: 0; display: flex; flex-direction: column; border: 1px solid #4b535e; background: #29303a; }
.heatmap-sidebar h2 { padding: 8px 9px 5px; color: #8f9aa7; font-size: 7px; letter-spacing: .08em; text-transform: uppercase; }
.heatmap-sidebar nav { padding: 0 9px 6px; display: flex; flex-direction: column; }
.heatmap-sidebar nav a { min-height: 19px; display: flex; align-items: center; border-bottom: 1px solid #3f4853; color: #6eb6ef; font-size: 7px; text-decoration: none; }
.heatmap-sidebar nav .is-current { color: #fff; font-weight: 800; }
.heatmap-period-select { margin: 0 8px 4px; position: relative; }
.heatmap-period-trigger { width: 100%; height: 28px; padding: 0 6px; display: grid; grid-template-columns: minmax(0, 1fr) 12px; align-items: center; border: 1px solid #626c78; border-radius: 0; background: #3c4551; color: #eef2f4; font-size: 7px; text-align: left; cursor: pointer; }
.heatmap-period-trigger span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.heatmap-period-trigger i::after { width: 0; height: 0; display: block; border: 3px solid transparent; border-top-color: #dbe1e6; content: ""; transform: translateY(2px); }
.heatmap-period-menu { width: 220px; max-height: 390px; position: absolute; z-index: 150; top: calc(100% + 3px); left: 5px; overflow-y: auto; border: 1px solid #566170; background: #414857; box-shadow: 0 4px 10px rgb(0 0 0 / 45%); }
.heatmap-period-menu[hidden] { display: none; }
.heatmap-period-menu label { padding: 7px; display: block; }
.heatmap-period-menu input { width: 100%; height: 28px; padding: 0 8px; border: 1px solid #2c75c9; border-radius: 0; outline: 0; background: #171c24; color: #fff; font-size: 11px; }
.heatmap-period-menu > p { padding: 0 14px 4px; color: #697486; font-size: 10px; font-weight: 700; }
.heatmap-period-menu [role="option"] { width: calc(100% - 12px); min-height: 29px; margin: 0 6px; padding: 5px 8px; display: block; border: 0; border-radius: 0; background: transparent; color: #fff; font-size: 11px; font-weight: 650; text-align: left; cursor: pointer; }
.heatmap-period-menu [role="option"]:hover, .heatmap-period-menu [role="option"]:focus-visible { outline: 0; background: #515a6b; }
.heatmap-period-menu [role="option"][aria-selected="true"] { background: #2f86e5; }
.heatmap-period-empty { padding: 12px 14px; display: block; color: #b6bec8; font-size: 10px; }
.heatmap-sidebar ul { margin: 0; padding: 0 8px; list-style: none; }
.heatmap-sidebar li { border-bottom: 1px solid #3f4853; }
.heatmap-sidebar li a { min-height: 18px; display: grid; grid-template-columns: 31px minmax(0, 1fr); align-items: center; gap: 3px; text-decoration: none; }
.heatmap-sidebar li strong { color: #8ec7f3; font-size: 7px; }
.heatmap-sidebar li span { overflow: hidden; color: #9ca7b1; font-size: 6px; text-overflow: ellipsis; white-space: nowrap; }
.heatmap-canvas { min-width: 0; padding-top: 3px; }
.heatmap-map-viewport { height: 390px; overflow: auto; background: #171b20; }
.heatmap-map { width: 100%; height: 100%; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(6, minmax(0, 1fr)); gap: 1px; overflow: hidden; background: #171b20; transform-origin: top left; }
.heatmap-sector { min-width: 0; min-height: 0; display: grid; grid-template-rows: 13px minmax(0, 1fr); overflow: hidden; border: 1px solid #7b828a; background: #11151a; }
.heatmap-sector h2 { padding: 2px 3px; overflow: hidden; background: #313943; color: #e4e8eb; font-size: 6px; line-height: 9px; text-transform: uppercase; text-overflow: ellipsis; white-space: nowrap; }
.heatmap-sector--technology { grid-area: 1 / 1 / 5 / 5; }
.heatmap-sector--communication-services { grid-area: 1 / 5 / 3 / 8; }
.heatmap-sector--consumer-cyclical { grid-area: 3 / 5 / 5 / 8; }
.heatmap-sector--financial { grid-area: 5 / 1 / 7 / 4; }
.heatmap-sector--industrials { grid-area: 5 / 4 / 7 / 8; }
.heatmap-sector--healthcare { grid-area: 1 / 8 / 4 / 11; }
.heatmap-sector--consumer-defensive { grid-area: 4 / 8 / 7 / 10; }
.heatmap-sector--energy { grid-area: 1 / 11 / 3 / 13; }
.heatmap-sector--basic-materials { grid-area: 3 / 11 / 5 / 13; }
.heatmap-sector--real-estate { grid-area: 4 / 10 / 7 / 11; }
.heatmap-sector--utilities { grid-area: 5 / 11 / 7 / 13; }
.heatmap-sector-tiles { min-width: 0; min-height: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(3px, 1fr); gap: 1px; overflow: hidden; }
.heatmap-placeholder { min-width: 0; min-height: 0; border: 1px solid #343b44; background: #050608; }
.heatmap-tile { min-width: 0; min-height: 0; padding: 2px; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; border: 1px solid rgb(255 255 255 / 38%); color: #fff; text-align: center; text-decoration: none; text-shadow: 0 1px #1c2025; }
.heatmap-tile--aapl { grid-column: span 7; grid-row: span 7; }
.heatmap-tile--amd { grid-column: span 5; grid-row: span 4; }
.heatmap-tile--adbe { grid-column: span 5; grid-row: span 3; }
.heatmap-tile--amzn { grid-column: span 8; grid-row: span 6; }
.heatmap-tile--abnb { grid-column: span 4; grid-row: span 3; }
.heatmap-tile--googl { grid-column: span 8; grid-row: span 5; }
.heatmap-tile[href]:hover, .heatmap-tile[href]:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }
.heatmap-tile.is-focused { outline: 3px solid #f4d35e; outline-offset: -4px; }
.heatmap-tile strong { font-size: clamp(8px, 2vw, 20px); line-height: 1; }
.heatmap-tile span { display: none; }
.heatmap-tile b { margin-top: 2px; font-size: clamp(6px, 1.2vw, 12px); }
.heatmap-tile small { display: none; }
.heatmap-map-footer { min-height: 48px; padding-top: 7px; display: flex; align-items: start; justify-content: space-between; gap: 8px; }
.heatmap-map-footer p { max-width: 245px; padding-left: 2px; color: #8f9aa5; font-size: 6px; line-height: 1.35; }
.heatmap-map--empty { display: grid; grid-template-columns: 1fr; grid-template-rows: 1fr; }
.heatmap-universe-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #343b44; background: #050608; color: #84909c; text-align: center; }
.heatmap-universe-placeholder strong { color: #c7cfd6; font-size: 15px; }.heatmap-universe-placeholder span { margin-top: 5px; font-size: 8px; }
.heatmap-legend { display: flex; flex: 0 0 auto; }
.heatmap-legend span { width: 34px; height: 18px; display: grid; place-items: center; color: #fff; font-size: 6px; text-shadow: 0 1px rgb(0 0 0 / 35%); }
.heatmap-legend .loss-3 { background: #f63538; }
.heatmap-legend .loss-2 { background: #bf4045; }
.heatmap-legend .loss-1 { background: #8b444e; }
.heatmap-legend .flat { background: #414554; }
.heatmap-legend .gain-1 { background: #35764e; }
.heatmap-legend .gain-2 { background: #2f9e4f; }
.heatmap-legend .gain-3 { background: #30cc5a; }
.heatmap-bottom-tables { margin-top: 4px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.heatmap-list-panel { min-width: 0; border: 1px solid #606a74; background: #20252d; }
.heatmap-list-panel > header { min-height: 38px; padding: 6px 7px; border-bottom: 1px solid #606a74; background: #303843; }
.heatmap-list-panel h2 { color: #fff; font-size: 10px; }
.heatmap-list-panel header p { margin-top: 3px; color: #9ca7b0; font-size: 6px; }
.heatmap-list-panel table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 7px; }
.heatmap-list-panel th, .heatmap-list-panel td { height: 21px; padding: 3px 4px; overflow: hidden; border-right: 1px solid #46515b; border-bottom: 1px solid #46515b; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.heatmap-list-panel tr > *:last-child { border-right: 0; }
.heatmap-list-panel tbody tr:last-child > * { border-bottom: 0; }
.heatmap-list-panel thead th { color: #cbd2d8; background: #29313a; font-weight: 700; }
.heatmap-list-panel:first-child th:nth-child(4), .heatmap-list-panel:first-child td:nth-child(4) { width: 27%; }
.heatmap-list-panel tbody th { font-weight: 700; }
.heatmap-list-panel tbody a { color: #55adff; text-decoration: none; }
.heatmap-list-panel tbody td { color: #aeb7bf; }
.heatmap-list-panel tbody td:last-child { color: #55adff; }
.heatmap-footer { max-width: 760px; margin: 0 auto; padding: 0 0 18px; color: #aab2b9; font-size: 8px; }

@media (max-width: 680px) {
  .heatmap-page { padding-top: 1px; }
  .heatmap-toolbar { height: 28px; grid-template-columns: minmax(0, 1fr) 26px 26px; }
  .heatmap-toolbar p { font-size: 5px; }
  .heatmap-toolbar p { padding: 0 5px; }
  .heatmap-zoom { font-size: 13px; }
  .heatmap-workspace { min-height: 0; grid-template-columns: 88px minmax(0, 1fr); gap: 2px; }
  .heatmap-sidebar h2 { padding: 5px 4px 3px; font-size: 5px; }
  .heatmap-sidebar nav { padding: 0 4px 3px; }
  .heatmap-sidebar nav a { min-height: 13px; font-size: 5px; }
  .heatmap-period-select { margin: 0 3px 3px; }
  .heatmap-period-trigger { height: 20px; padding: 0 3px; font-size: 5px; }
  .heatmap-period-menu { top: calc(100% + 2px); left: 2px; }
  .heatmap-sidebar ul { padding: 0 4px; }
  .heatmap-sidebar li a { min-height: 13px; grid-template-columns: 22px minmax(0, 1fr); }
  .heatmap-sidebar li strong, .heatmap-sidebar li span { font-size: 5px; }
  .heatmap-canvas { padding-top: 2px; }
  .heatmap-map-viewport { height: clamp(220px, 58vw, 290px); }
  .heatmap-sector { grid-template-rows: 9px minmax(0, 1fr); }
  .heatmap-sector h2 { padding: 0 2px; font-size: 4px; line-height: 8px; }
  .heatmap-sector-tiles { gap: 0; }
  .heatmap-placeholder { border-color: #272d34; }
  .heatmap-tile { padding: 1px; }
  .heatmap-tile strong { font-size: clamp(6px, 2.4vw, 12px); }
  .heatmap-tile b { font-size: clamp(5px, 1.6vw, 8px); }
  .heatmap-map-footer { min-height: 39px; padding-top: 4px; gap: 3px; }
  .heatmap-map-footer p { max-width: 110px; font-size: 4px; }
  .heatmap-legend span { width: min(29px, 5.7vw); height: 14px; font-size: 4px; }
  .heatmap-bottom-tables { margin-top: 2px; gap: 2px; }
  .heatmap-list-panel > header { min-height: 30px; padding: 4px; }
  .heatmap-list-panel h2 { font-size: 7px; }
  .heatmap-list-panel header p { margin-top: 2px; font-size: 4px; }
  .heatmap-list-panel table { font-size: 5px; }
  .heatmap-list-panel th, .heatmap-list-panel td { height: 16px; padding: 2px; }
}
