.pv-enterprise {
  container-type: inline-size;
  display: block;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  color: #223b35;
  background: #f3f8f5;
  border: 1px solid #d9e5de;
  border-radius: 7px;
  overflow: hidden;
  text-align: start;
}

.pv-enterprise :is(ul, p) { margin: 0; }
.pv-enterprise ul { list-style: none; padding: 0; }
.pv-records-grid, .pv-connections-grid {
  display: grid;
  min-height: 265px;
  font-size: clamp(10px, 2cqi, 13px);
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.pv-records-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.13fr) minmax(0, 1.1fr);
  gap: 5px;
  padding: 5px;
}
.pv-connections-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.24fr) minmax(0, .93fr);
  gap: 1px;
  background-color: #dde8e1;
}
.pv-enterprise .pv-pane {
  min-width: 0;
  background: #fff;
}
.pv-records .pv-pane {
  border: 1px solid #dce7e0;
  border-radius: 5px;
  overflow: hidden;
}
.pv-enterprise .pv-window-title {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  min-height: 35px;
  padding: 8px;
  background: #fbfdfc;
  border-block-end: 1px solid #e6ede8;
  font-size: 1.08em;
}
.pv-enterprise .pv-pane-content { padding: 8px; }
.pv-enterprise .pv-record-settings .pv-pane-content { background: linear-gradient(#f2f8f5, #fff 90%); }
.pv-enterprise .pv-label, .pv-enterprise small, .pv-enterprise .pv-file-date,
.pv-enterprise .pv-directory-path, .pv-enterprise .pv-thread-source {
  display: block;
  color: #5b7067;
  font-size: .9em;
}
.pv-enterprise .pv-pane-subtitle { display: block; margin-block: 8px 5px; }
.pv-enterprise .pv-setting, .pv-enterprise .pv-attachment {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  margin-block-end: 6px;
  padding: 6px;
  border: 1px solid #e3ece6;
  border-radius: 6px;
  background: #fff;
  font-weight: 600;
}
.pv-enterprise .pv-setting > div { min-width: 0; }
.pv-enterprise .pv-path {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-block-start: 4px;
  padding: 3px 4px;
  border-radius: 4px;
  background: #e6f2eb;
  color: #23644c;
  font-size: .82em;
  text-align: start;
}
.pv-enterprise .pv-directory-bar, .pv-enterprise .pv-file-list li {
  display: flex;
  align-items: baseline;
  gap: 5px;
  padding: 5px 4px;
}
.pv-enterprise .pv-directory-path { direction: ltr; unicode-bidi: isolate; }
.pv-enterprise .pv-file-date { margin-inline-start: auto; white-space: nowrap; }
.pv-enterprise .pv-file-selected { border-radius: 4px; background: #e6f3eb; }
.pv-enterprise .pv-file-name { min-width: 0; }
.pv-enterprise .pv-file-suffix { unicode-bidi: isolate; white-space: nowrap; }
.pv-enterprise .pv-chat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  background: #f4f8f6;
}
.pv-enterprise .pv-message {
  max-width: 100%;
  padding: 6px 7px;
  border: 1px solid #e4ece7;
  border-radius: 6px;
  background: #fff;
}
.pv-enterprise .pv-message-out { align-self: flex-end; border-color: #d6eee0; background: #e5f8ed; }
.pv-enterprise .pv-message-role { display: block; color: #5b7067; font-size: .88em; }
.pv-enterprise .pv-message-role:empty { display: none; }
.pv-enterprise .pv-thread-source { margin-block-end: 2px; }
.pv-enterprise .pv-chat .pv-attachment { margin: 0; }
.pv-enterprise .pv-source-list { display: grid; gap: 2px; padding: 7px; }
.pv-enterprise .pv-source-list li { padding: 4px 5px; }
.pv-enterprise .pv-active-source { border-radius: 5px; background: #e7f5ee; }
.pv-enterprise .pv-source-label, .pv-enterprise .pv-source-thread { display: block; }
.pv-enterprise .pv-source-label { display: flex; align-items: center; gap: 5px; color: #2d6555; }
.pv-enterprise .pv-source-thread { margin-block-start: 2px; font-weight: 600; }
.pv-enterprise .pv-context-note {
  margin-block: 4px 7px;
  padding: 5px 6px;
  border-radius: 5px;
  color: #2a6954;
  background: #e9f6ef;
}

.pv-enterprise .pv-enterprise-glyph {
  position: relative;
  display: inline-block;
  flex: none;
  align-self: center;
  inline-size: 11px;
  block-size: 11px;
  color: #2f8d6c;
}
.pv-enterprise :is(.pv-glyph-settings, .pv-glyph-agent, .pv-glyph-connections, .pv-glyph-conversation, .pv-glyph-source) {
  border: 2px solid currentColor;
  border-radius: 3px;
}
.pv-enterprise .pv-glyph-settings { border-radius: 50%; }
.pv-enterprise .pv-glyph-conversation { border-radius: 5px 5px 5px 1px; }
.pv-enterprise .pv-glyph-source { inline-size: 8px; block-size: 8px; border-radius: 3px; }
.pv-enterprise .pv-glyph-folder {
  block-size: 8px;
  border-radius: 2px;
  background: #dfaf4c;
}
.pv-enterprise .pv-glyph-folder::before {
  content: "";
  position: absolute;
  inset-block-start: -2px;
  inset-inline-start: 0;
  inline-size: 6px;
  block-size: 4px;
  border-radius: 2px;
  background: inherit;
}
.pv-enterprise :is(.pv-glyph-pdf, .pv-glyph-file) {
  inline-size: 9px;
  border: 1px solid currentColor;
  border-radius: 2px;
}
.pv-enterprise .pv-glyph-pdf { color: #b34d51; }
.pv-enterprise :is(.pv-glyph-pdf, .pv-glyph-file)::after {
  content: "";
  position: absolute;
  inset-inline: 1px;
  inset-block-start: 3px;
  height: 3px;
  border-block: 1px solid currentColor;
}
.pv-enterprise .pv-connection-sources .pv-source-list li:nth-child(2) .pv-glyph-source { color: #3077ba; }
.pv-enterprise .pv-connection-sources .pv-source-list li:nth-child(3) .pv-glyph-source { color: #329ea9; }
.pv-enterprise .pv-connection-sources .pv-source-list li:nth-child(4) .pv-glyph-source { color: #b55754; }

@media (min-width: 721px) {
  .cap-grid:has(.pv-enterprise) { row-gap: 0; }
  .cap-grid:has(.pv-enterprise) .cap-card {
    display: grid;
    grid-row: span 2;
    grid-template-rows: subgrid;
  }
  .cap-grid:has(.pv-enterprise) .preview-media { min-height: 100%; display: grid; }
  .cap-grid .pv-enterprise { display: grid; }
}

@container (max-width: 650px) {
  .pv-enterprise .pv-file-date { display: none; }
}
@container (max-width: 440px) {
  .pv-records-grid, .pv-connections-grid { grid-template-columns: minmax(0, 1fr); font-size: 12px; }
  .figure-link .pv-enterprise :is(.pv-record-settings, .pv-record-archive, .pv-connection-thread, .pv-connection-files) { display: none; }
  .pv-enterprise .pv-record-directory .pv-file-date { display: block; }
}
@container (max-width: 300px) {
  .pv-enterprise .pv-record-directory .pv-file-date { display: none; }
}
