/* Compact file messages retain the existing safe preview and download actions. */
.chat-page .chat-file-compact-v1 {
  box-sizing: border-box;
  width: min(284px, 100%);
  min-height: 62px;
  max-width: 100%;
  gap: 0;
  padding: 0;
  border-radius: 15px;
  cursor: default;
}
.chat-page .chat-file-compact-v1 .chat-file-open-v1 {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  gap: 9px;
  padding: 8px 0 8px 9px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.chat-page .chat-file-compact-v1 .chat-file-letter-v1 {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--chat-text) 9%, var(--chat-surface));
  color: var(--chat-text);
  font: 700 20px/1 var(--font-b);
}
.chat-page .chat-file-compact-v1 .chat-file-copy-v1 {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
}
.chat-page .chat-file-compact-v1 .chat-file-copy-v1 strong,
.chat-page .chat-file-compact-v1 .chat-file-copy-v1 small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-page .chat-file-compact-v1 .chat-file-copy-v1 strong {
  font: 600 13px/1.35 var(--font-b);
}
.chat-page .chat-file-compact-v1 .chat-file-copy-v1 small {
  margin-top: 3px;
  color: var(--chat-muted);
  font: 11px/1.3 var(--font-b);
}
.chat-page .chat-file-compact-v1 .chat-file-download-v1 {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  margin: 0 7px 0 3px;
  padding: 5px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--chat-accent);
}
.chat-page .chat-file-compact-v1 .chat-file-download-v1 svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chat-page .chat-file-compact-v1 .chat-file-download-v1:hover,
.chat-page .chat-file-compact-v1 .chat-file-open-v1:hover {
  background: color-mix(in srgb, var(--chat-accent) 8%, transparent);
}
.chat-page .chat-file-compact-v1 .chat-file-open-v1:focus-visible,
.chat-page .chat-file-compact-v1 .chat-file-download-v1:focus-visible {
  outline: 2px solid var(--chat-accent);
  outline-offset: -2px;
}
html[data-appearance="dark"] .chat-page .chat-file-compact-v1 .chat-file-letter-v1 {
  color: var(--chat-text);
}
