.cv-root {
  background: #fff;
  color: #20242a;
  min-width: 0;
}
.cv-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid #d6dadd;
}
.cv-filters label {
  display: grid;
  gap: 5px;
  font-size: 12px;
  min-width: 0;
}
.cv-filters input,
.cv-filters select {
  height: 36px;
  padding: 6px 9px;
  border: 1px solid #bdc3c9;
  border-radius: 4px;
  min-width: 0;
  max-width: 100%;
}
.cv-notice {
  color: #a12c22;
  padding: 0 16px;
  overflow-wrap: anywhere;
}
.cv-notice:not(:empty) {
  padding: 12px 16px;
  background: #fff0ef;
}
.cv-layout {
  display: grid;
  grid-template-columns: minmax(160px, 0.75fr) minmax(160px, 0.8fr) minmax(
      280px,
      2fr
    );
  min-height: 60vh;
}
.cv-layout > section {
  min-width: 0;
  padding: 12px;
  border-right: 1px solid #e1e4e7;
}
.cv-layout h2,
.cv-trace h2 {
  margin: 0 0 12px;
  font-size: 16px;
  letter-spacing: 0;
}
.cv-list-item {
  display: grid;
  gap: 5px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #e1e4e7;
  padding: 12px 6px;
  text-align: left;
  background: #fff;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.cv-list-item:hover,
.cv-list-item:focus-visible {
  background: #eaf5f3;
}
.cv-list-item small {
  color: #626b73;
}
.cv-empty {
  color: #626b73;
  padding: 18px 0;
}
.cv-root button {
  cursor: pointer;
}
.cv-root button:disabled {
  cursor: wait;
  opacity: 0.6;
}
.cv-root [data-more] {
  margin: 12px 0;
  padding: 8px 12px;
  border: 1px solid #bdc3c9;
  background: white;
  border-radius: 4px;
}
.cv-message {
  padding: 14px 0;
  border-bottom: 1px solid #e1e4e7;
  overflow-wrap: anywhere;
}
.cv-message > header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: #626b73;
  margin-bottom: 8px;
}
.cv-message > header b {
  color: #253038;
}
.cv-ai > header b {
  color: #087563;
}
.cv-human > header b {
  color: #9a4d1c;
}
.cv-message-content {
  font-size: 14px;
  line-height: 1.6;
}
.cv-text {
  white-space: pre-wrap;
}
.cv-message footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  font-size: 11px;
  color: #697078;
}
.cv-message footer button {
  border: 0;
  padding: 4px 0;
  color: #087563;
  background: none;
}
.cv-root pre,
.cv-trace pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 320px;
  overflow: auto;
  font-size: 12px;
  background: #f5f6f7;
  padding: 10px;
}
.cv-root summary,
.cv-trace summary {
  cursor: pointer;
  font-size: 12px;
  padding: 7px 0;
  color: #59626a;
}
.cv-product {
  display: flex;
  gap: 10px;
  padding: 10px;
  border: 1px solid #d6dadd;
  border-radius: 6px;
  margin: 8px 0;
  min-width: 0;
}
.cv-product img {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  object-fit: contain;
}
.cv-product > div {
  min-width: 0;
}
.cv-product p {
  margin: 4px 0;
  color: #626b73;
}
.cv-root dl {
  display: grid;
  grid-template-columns: minmax(64px, 0.4fr) minmax(0, 1fr);
  border-top: 1px solid #c6ccd2;
}
.cv-root dt,
.cv-root dd {
  padding: 8px;
  margin: 0;
  border-bottom: 1px solid #c6ccd2;
}
.cv-root table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  table-layout: fixed;
}
.cv-root td,
.cv-root th {
  border: 1px solid #939da6;
  padding: 7px;
  color: #20242a;
  background: #fff;
  white-space: normal;
  overflow-wrap: anywhere;
}
.cv-trace {
  width: min(840px, 94vw);
  max-height: 88vh;
  border: 1px solid #c6ccd2;
  border-radius: 6px;
  padding: 20px;
}
.cv-trace::backdrop {
  background: rgba(0, 0, 0, 0.3);
}
.cv-trace > header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.cv-trace [data-close] {
  width: 32px;
  height: 32px;
  font-size: 24px;
  border: 0;
  background: #f1f3f4;
}
.cv-trace [data-events] {
  margin: 12px 0;
  padding: 8px 12px;
}
.cv-back {
  display: none;
}
.cv-request-search {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.cv-request-search input {
  min-width: 0;
  flex: 1;
  border: 1px solid #bdc3c9;
  padding: 6px;
}
.cv-request-search button {
  background: #fff;
  border: 1px solid #bdc3c9;
  padding: 6px 10px;
  flex-shrink: 0;
}
@media (max-width: 1000px) {
  .cv-layout {
    grid-template-columns: minmax(135px, 0.7fr) minmax(135px, 0.8fr) minmax(
        220px,
        1.8fr
      );
  }
}
.cv-attachment-image {
  display: block;
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
}
@media (max-width: 720px) {
  .cv-layout {
    display: block;
  }
  .cv-layout > section {
    display: none;
  }
  .cv-layout[data-pane="stores"] > .cv-stores,
  .cv-layout[data-pane="threads"] > .cv-threads,
  .cv-layout[data-pane="messages"] > .cv-transcript {
    display: block;
  }
  .cv-back {
    display: inline-block;
    border: 0;
    background: none;
    padding: 8px 0;
    color: #087563;
    margin-bottom: 12px;
  }
  .cv-filters label {
    flex: 1 1 130px;
  }
  .cv-filters input,
  .cv-filters select {
    width: 100%;
  }
  .cv-trace {
    padding: 12px;
  }
}
