.ia-compose {
  display: grid;
  min-width: 0;
  justify-items: start;
  gap: 7px;
}
.ia-compose .button { min-height: 36px; padding: 5px 9px; font-size: 13px; }
.ia-options { display: flex; flex-wrap: wrap; gap: 6px; }
.ia-options .button { white-space: normal; text-align: start; }
.ia-feedback { max-width: 100%; margin: 0; overflow-wrap: anywhere; }

.ia-list {
  display: flex;
  align-items: start;
  flex-wrap: wrap;
  gap: 5px;
  max-width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ia-attachment {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  min-height: 34px;
  padding-inline: 7px;
  border: 1px solid var(--line);
  background: #f4f8fc;
  color: var(--ink);
  font-size: 13px;
}
.ia-name, .ia-entry-name { min-width: 0; overflow-wrap: anywhere; }
.ia-size { color: var(--muted); font-size: 12px; white-space: nowrap; }
.ia-download, .ia-remove, .ia-crumb {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--steel);
  font: inherit;
}
.ia-download { min-height: 32px; font-weight: 700; text-align: start; }
.ia-download:hover, .ia-crumb:hover { text-decoration: underline; }
.ia-remove {
  align-self: stretch;
  flex: 0 0 32px;
  margin-inline-end: -7px;
  border-inline-start: 1px solid var(--line);
  color: var(--muted);
  font-size: 18px;
}
.ia-remove:hover { background: #e8eff7; color: var(--ink); }

.ia-preview {
  width: min(920px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  max-height: calc(100dvh - 24px);
  overflow: hidden;
}
.ia-preview[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.ia-preview-title { min-width: 0; overflow-wrap: anywhere; }
.ia-preview-body { min-width: 0; min-height: 144px; overflow: auto; align-content: center; background: #f4f7fb; }
.ia-preview-status { margin: 0; text-align: center; }
.ia-preview-content { min-width: 0; }
.ia-preview-image {
  display: block;
  max-width: 100%;
  max-height: min(67dvh, 660px);
  margin-inline: auto;
  object-fit: contain;
}
.ia-preview-pdf { display: block; width: 100%; height: min(67dvh, 660px); border: 0; background: var(--paper); }
.ia-preview-text {
  max-width: 100%;
  margin: 0;
  padding: 12px;
  background: var(--paper);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ia-preview-footer { align-items: center; }
.ia-preview-footer .ia-size { margin-inline-end: auto; }

.ia-picker { width: min(640px, calc(100% - 24px)); overflow: auto; }
.ia-picker::backdrop { background: #09182970; }
.ia-heading { position: sticky; z-index: 1; inset-block-start: 0; background: var(--paper); }
.ia-heading .icon-button { flex: 0 0 auto; font-size: 23px; line-height: 1; }
.ia-body { min-height: 240px; min-width: 0; align-content: start; gap: 9px; }
.ia-path {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
}
.ia-path li { display: flex; align-items: center; min-width: 0; gap: 6px; }
.ia-path li + li::before { content: "›"; color: #60748a; }
.ia-path span, .ia-crumb { min-width: 0; overflow-wrap: anywhere; text-align: start; }
.ia-crumb { min-height: 30px; }
.ia-location { margin: 0; color: var(--navy); font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.ia-location:focus { outline: 0; }
.ia-retry { justify-self: start; }
.ia-entries { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.ia-entry-button, .ia-file-choice {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 43px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: #f7faff;
  color: var(--ink);
  text-align: start;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.ia-entry-button {
  justify-content: space-between;
  color: var(--navy);
  font-weight: 700;
}
.ia-entry-button::after { flex: 0 0 auto; content: "›"; color: var(--steel); font-size: 18px; }
.ia-entry-button:hover, .ia-file-choice:hover { background: #eff5fb; }
.ia-file-choice { cursor: pointer; }
.ia-file-choice input { width: 16px; height: 16px; flex: 0 0 auto; margin: 0; accent-color: var(--steel); }
.ia-file-choice .ia-entry-name { flex: 1 1 auto; }
.ia-file-choice:has(input:disabled) { color: var(--muted); cursor: default; }
.ia-footer { position: sticky; inset-block-end: 0; align-items: center; }
.ia-footer p { flex: 1 0 auto; }
@media (max-width: 420px) {
  .ia-picker .dialog-head, .ia-picker .dialog-body, .ia-picker .dialog-footer { padding-inline: 11px; }
  .ia-preview .dialog-head, .ia-preview .dialog-body, .ia-preview .dialog-footer { padding-inline: 11px; }
  .ia-heading h2 { font-size: 20px; }
  .ia-file-choice { align-items: start; gap: 6px; }
  .ia-file-choice input { margin-top: 2px; }
  .ia-footer { gap: 5px; }
  .ia-footer .button { padding-inline: 8px; }
}
