/* ECHO_USABILITY_PATCH_V1 */

.echo-investment-snapshot-v1 {
  margin-top: 14px;
  overflow: hidden;
  border-top: 3px solid #e8b923;
}

.echo-investment-header {
  align-items: center;
}

.echo-investment-header p {
  max-width: 760px;
}

.echo-investment-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.echo-investment-card {
  min-width: 0;
  padding: 17px 16px;
  border: 1px solid var(--line, #dce3e8);
  border-radius: 10px;
  background: #f7f9fb;
}

.echo-investment-card span {
  display: block;
  margin-bottom: 9px;
  color: var(--muted, #667585);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .055em;
  line-height: 1.3;
  text-transform: uppercase;
}

.echo-investment-card strong {
  display: block;
  overflow: hidden;
  color: var(--navy-900, #122a42);
  font-size: 1.28rem;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.echo-investment-card small {
  display: block;
  min-height: 2.6em;
  margin-top: 8px;
  overflow: hidden;
  color: var(--muted, #667585);
  font-size: .69rem;
  line-height: 1.3;
}

.echo-metric-browser-v1 {
  position: fixed;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #c8d2da;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(14, 35, 54, .22);
}

.echo-metric-browser-v1[hidden] {
  display: none;
}

.echo-metric-browser-heading {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 15px;
  border-bottom: 1px solid #dce3e8;
  background: #f4f7f9;
}

.echo-metric-browser-heading div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.echo-metric-browser-heading strong {
  color: #122a42;
  font-size: .82rem;
}

.echo-metric-browser-heading span,
.echo-metric-browser-heading small {
  color: #667585;
  font-size: .69rem;
}

.echo-metric-browser-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.echo-metric-browser-row {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid #edf1f4;
  background: #fff;
  color: #122a42;
  text-align: left;
  cursor: pointer;
}

.echo-metric-browser-row:hover,
.echo-metric-browser-row:focus {
  outline: none;
  background: #fff8dc;
}

.echo-metric-browser-row span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.echo-metric-browser-row strong {
  overflow: hidden;
  font-size: .78rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.echo-metric-browser-row small {
  overflow: hidden;
  color: #6b7783;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .67rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.echo-metric-browser-row b {
  flex: 0 0 auto;
  padding: 4px 7px;
  border: 1px solid #d6dee4;
  border-radius: 999px;
  color: #41576a;
  font-size: .61rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.echo-metric-browser-empty {
  padding: 24px;
  color: #667585;
  font-size: .8rem;
  text-align: center;
}

.echo-open-in-screener-v1 {
  display: inline-flex;
  align-items: center;
  margin-top: 7px;
  padding: 3px 7px;
  border: 1px solid #c8d2da;
  border-radius: 999px;
  background: #fff;
  color: #16324f;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .035em;
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
}

.echo-open-in-screener-v1:hover {
  border-color: #d4a817;
  background: #fff8dc;
}

@media (max-width: 1250px) {
  .echo-investment-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .echo-investment-header {
    align-items: flex-start;
  }

  .echo-investment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .echo-metric-browser-v1 {
    right: 10px !important;
    left: 10px !important;
    width: auto !important;
  }
}