.sat-page {
  --sat-ink: var(--ink, #17211b);
  --sat-muted: var(--muted, #69736d);
  --sat-line: var(--line, #dce2dd);
  --sat-panel: var(--panel, #fff);
  --sat-green: var(--green, #25523f);
  min-width: 0;
  color: var(--sat-ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums;
}

.sat-page *,
.sat-page *::before,
.sat-page *::after {
  box-sizing: border-box;
}

.sat-view-switch {
  display: flex;
  width: max-content;
  max-width: 100%;
  gap: 2px;
  margin: 0 auto 12px;
  padding: 3px;
  border: 1px solid #e0e5e1;
  border-radius: 999px;
  background: #edf0ed;
}

.sat-view-switch button {
  min-width: 92px;
  border: 0;
  border-radius: 999px;
  padding: 7px 14px;
  background: transparent;
  color: var(--sat-muted);
  font-family: inherit;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.sat-view-switch button.active {
  background: #fff;
  color: var(--sat-green);
  box-shadow: 0 1px 4px #1b2b2325;
}

.sat-view-switch button:focus-visible,
.sat-page button:focus-visible {
  outline: 2px solid #25523f55;
  outline-offset: 2px;
}

.sat-panel {
  min-width: 0;
  padding: 16px 18px 18px;
  border: 1px solid var(--sat-line);
  border-radius: 6px;
  background: var(--sat-panel);
}

.sat-attribution-list {
  display: grid;
}

.sat-attribution-head,
.sat-attribution-row {
  display: grid;
  grid-template-columns: minmax(155px, 0.25fr) minmax(90px, 1fr) 56px 62px 58px;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.sat-attribution-head {
  padding: 0 4px 7px;
  border-bottom: 1px solid var(--sat-line);
  color: var(--sat-muted);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sat-attribution-head span:nth-child(n + 3) {
  text-align: center;
}

.sat-attribution-row {
  padding: 8px 4px;
  border-top: 1px solid #edf0ed;
}

.sat-attribution-row:first-child {
  border-top: 0;
}

.sat-attribution-row:hover {
  background: #f7f9f7;
}

.sat-attribution-row h3 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--sat-ink);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sat-row-fund {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-width: 0;
  border: 0;
  padding: 4px 2px;
  background: transparent;
  color: var(--sat-ink);
  font-family: inherit;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}

.sat-row-fund i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.sat-row-fund span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sat-pair {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.sat-pair-row {
  min-width: 0;
}

.sat-current-track {
  opacity: 0.62;
}

.sat-current-value,
.sat-pro-forma-value,
.sat-change-value {
  min-width: 0;
  text-align: center;
  white-space: nowrap;
}

.sat-current-value {
  color: var(--sat-muted);
  font-size: 8px;
}

.sat-pro-forma-value,
.sat-change-value {
  font-size: 8px;
}

.sat-pro-forma-value {
  font-weight: 700;
}

.sat-change-value {
  overflow: hidden;
  font-style: normal;
  text-overflow: ellipsis;
}

.sat-track {
  position: relative;
  display: flex;
  align-items: stretch;
  min-width: 0;
  height: 6px;
  overflow: hidden;
  border-radius: 2px;
  background: #f0f2f0;
}

.sat-segment {
  flex: 0 0 var(--sat-width);
  width: var(--sat-width);
  min-width: 0;
  height: 100%;
  border: 0;
  border-right: 1px solid #ffffffaa;
  padding: 0;
  background: var(--sat-color);
  cursor: pointer;
  transition: filter 0.12s ease, opacity 0.12s ease;
}

.sat-track:hover .sat-segment {
  opacity: 0.72;
}

.sat-track .sat-segment:hover,
.sat-track .sat-segment:focus-visible {
  z-index: 1;
  opacity: 1;
  filter: brightness(1.12) saturate(1.08);
}

.sat-empty-bar {
  display: block;
  width: 100%;
  background: repeating-linear-gradient(135deg, transparent 0, transparent 4px, #e3e7e4 4px, #e3e7e4 5px);
}

.sat-key {
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid var(--sat-line);
}

.sat-fund-key-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px 12px;
  align-items: start;
}

.sat-key-group {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e4e8e5;
  border-radius: 4px;
}

.sat-key-group h3 {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  margin: 0;
  padding: 7px 8px;
  background: #f5f7f5;
  font-size: 8px;
  letter-spacing: 0.02em;
}

.sat-key-group h3 i,
.sat-key-item > i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.sat-key-group > div {
  display: grid;
}

.sat-key-item {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  min-width: 0;
  border: 0;
  border-top: 1px solid #edf0ed;
  padding: 6px 8px;
  background: #fff;
  color: var(--sat-ink);
  font-family: inherit;
  font-size: 8px;
  font-weight: 500;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}

.sat-key-item:first-child {
  border-top: 0;
}

.sat-key-item:hover,
.sat-key-item:focus-visible {
  background: #f0f7f3;
}

.sat-key-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sat-key-item small {
  color: var(--sat-muted);
  font-size: 7px;
  white-space: nowrap;
}

.sat-sector-key-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px 9px;
}

.sat-sector-key-grid .sat-key-item {
  border: 1px solid #e7ebe8;
  border-radius: 4px;
}

.sat-no-data {
  padding: 80px 20px;
  color: var(--sat-muted);
  font: 500 17px Georgia, serif;
  text-align: center;
}

.sat-tooltip {
  position: fixed;
  z-index: 70;
  width: 224px;
  padding: 11px 12px;
  border: 1px solid #34483e;
  border-radius: 5px;
  background: #18251f;
  box-shadow: 0 8px 24px #17231d35;
  color: #f4f7f5;
  opacity: 0;
  pointer-events: none;
  transform: translateY(3px);
  transition: opacity 0.1s ease, transform 0.1s ease;
}

.sat-tooltip.show {
  opacity: 1;
  transform: translateY(0);
}

.sat-tooltip-kicker {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  margin-bottom: 7px;
  color: #afbeb6;
  font-size: 7px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.sat-tooltip-kicker i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.sat-tooltip-kicker span {
  color: #81948a;
  text-align: right;
}

.sat-tooltip > b {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  line-height: 1.25;
}

.sat-tooltip-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #3b4d44;
}

.sat-tooltip-values-three {
  grid-template-columns: repeat(3, 1fr);
}

.sat-tooltip-values span {
  font: 500 13px Georgia, serif;
}

.sat-tooltip-values small {
  display: block;
  margin-bottom: 3px;
  color: #91a39a;
  font: 7px Inter, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .sat-fund-key-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sat-sector-key-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .sat-panel {
    padding: 10px 10px 13px;
  }

  .sat-attribution-head,
  .sat-attribution-row {
    grid-template-columns: minmax(86px, 0.9fr) minmax(55px, 1fr) 42px 47px 45px;
    gap: 4px;
  }

  .sat-attribution-head {
    padding-right: 2px;
    padding-left: 2px;
    font-size: 6.5px;
  }

  .sat-attribution-row {
    padding: 9px 2px;
  }

  .sat-attribution-row h3,
  .sat-row-fund {
    padding-left: 1px;
  }

  .sat-fund-key-grid,
  .sat-sector-key-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .sat-view-switch {
    width: 100%;
  }

  .sat-view-switch button {
    flex: 1;
    min-width: 0;
  }

  .sat-attribution-head,
  .sat-attribution-row {
    grid-template-columns: minmax(74px, 0.9fr) minmax(45px, 1fr) 36px 41px 39px;
    gap: 3px;
  }

  .sat-current-value,
  .sat-pro-forma-value,
  .sat-change-value {
    font-size: 7px;
  }

  .sat-fund-key-grid,
  .sat-sector-key-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sat-segment,
  .sat-tooltip {
    transition: none;
  }
}
