.wv-insights-toggle {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  font: inherit;
  cursor: pointer;
}

.wv-insights-toggle.is-open {
  color: #ffffff;
  filter: drop-shadow(0 0 6px rgba(121, 251, 255, 0.8));
}

.wv-table tbody tr.wv-track-insights-row {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  position: static;
}

.wv-table tbody tr.wv-track-insights-row > td {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 0 10px 10px;
  border-bottom: 1px solid rgba(91, 232, 225, 0.16);
  vertical-align: top;
  overflow: visible;
}

.wv-track-insights-row[hidden] {
  display: none;
}

.wv-track-insights {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 1fr);
  gap: 18px;
  padding: 14px;
  min-height: max-content;
  border: 1px solid rgba(91, 232, 225, 0.18);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(10, 31, 35, 0.96), rgba(20, 20, 37, 0.96));
}

.wv-track-insights h3 {
  margin: 0 0 10px;
  color: #7ef0df;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.wv-track-insights dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.wv-track-insights dl div {
  min-width: 0;
}

.wv-track-insights dt {
  color: #7f9fa4;
  font-size: 0.68rem;
  text-transform: uppercase;
}

.wv-track-insights dd {
  margin: 2px 0 0;
  color: #e5f5f3;
  overflow-wrap: anywhere;
}

.wv-track-insights__metadata,
.wv-track-insights__tags {
  min-width: 0;
}

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

.wv-tag-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(67, 218, 163, 0.32);
  border-radius: 999px;
  background: rgba(22, 91, 68, 0.42);
  overflow: hidden;
}

.wv-tag-chip a {
  padding: 4px 8px;
  color: #8cf2c8;
  text-decoration: none;
}

.wv-tag-remove {
  align-self: stretch;
  border: 0;
  border-left: 1px solid rgba(67, 218, 163, 0.25);
  padding: 0 7px;
  color: #ffd0d7;
  background: transparent;
  cursor: pointer;
}

.wv-track-tags__empty,
.wv-tag-editor__status {
  color: #809aa0;
}

.wv-tag-editor {
  margin-top: 12px;
}

.wv-tag-editor__controls {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.wv-tag-editor input {
  min-width: 0;
  flex: 1;
}

.wv-tag-editor__status {
  min-height: 1.2em;
  margin: 5px 0 0;
}

.wv-tag-editor__status.is-error {
  color: #ff9baa;
}

.wv-search-control {
  position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
}

.wv-search-control input {
  width: 100%;
  padding-right: 34px;
}

#wvSearchClear {
  position: absolute;
  top: 50%;
  right: 7px;
  border: 0;
  color: #a9c6ca;
  background: transparent;
  transform: translateY(-50%);
  cursor: pointer;
}

@media (max-width: 900px) {
  .wv-track-insights {
    grid-template-columns: 1fr;
  }

  .wv-track-insights dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .wv-search-control {
    grid-column: 1 / -1 !important;
  }

  .wv-table tbody tr.wv-track-insights-row {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 0 12px !important;
  }

  .wv-table tbody tr.wv-track-insights-row[hidden] {
    display: none !important;
  }

  .wv-table tbody tr.wv-track-insights-row > td {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 10px 8px 14px !important;
    box-sizing: border-box !important;
  }

  .wv-track-insights {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 14px !important;
    box-sizing: border-box !important;
  }

  .wv-track-insights dl {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 9px !important;
  }

  .wv-track-insights h3,
  .wv-track-insights dt,
  .wv-track-insights dd {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .wv-tag-editor__controls {
    align-items: stretch;
    flex-direction: column;
  }
}
