.message-body a.chat-file-card {
  display: inline-grid;
  grid-template-columns: 32px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 12px;
  width: 360px;
  max-width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  margin: 6px 0;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  letter-spacing: 0;
}
.message-body a.chat-file-card:hover { border-color: var(--ink-4); }
.message-body a.chat-file-card:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.chat-file-icon, .chat-file-action { display: flex; align-items: center; justify-content: center; }
.chat-file-card svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; }
.chat-file-label { min-width: 0; display: grid; gap: 4px; text-align: left; }
.chat-file-label strong { font-size: 14px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.chat-file-detail { color: var(--ink-4); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.chat-file-card[data-delivery-state="checking"], .chat-file-card[data-delivery-state="invalid"] { cursor: default; }
.chat-file-card:not([data-delivery-state="ready"]) .chat-file-action { visibility: hidden; }
