/* Compact attachment accessory: inherit the existing composer theme. */
.attachment-preview-ui { color: inherit; font: inherit; min-width: 0; display: grid; gap: .35rem; text-align: left; }
.attachment-preview-ui p { margin: 0; overflow-wrap: anywhere; }
.attachment-preview-ui [hidden], .attachment-preview-ui[hidden], .viper-legacy-attachment-release[hidden] { display: none !important; }
.viper-legacy-attachment-host, .viper-legacy-attachment-status { grid-column: 1 / -1; flex: 1 1 100%; width: 100%; box-sizing: border-box; min-width: 0; }
.viper-legacy-attachment-status { font-size: .78rem; line-height: 1.4; margin: .2rem 0 0; opacity: .85; overflow-wrap: anywhere; }
.attachment-preview-ui__list { list-style: none; padding: 0; margin: 0; max-height: 12rem; overflow-y: auto; overscroll-behavior: contain; }
.attachment-preview-ui__row { display: grid; grid-template-columns: 1.5rem minmax(0,1fr) 2.75rem; gap: .45rem; align-items: center; border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent); padding: .2rem 0; }
.attachment-preview-ui__icon { opacity: .65; font-size: 1.25rem; text-align: center; }
.attachment-preview-ui__body { min-width: 0; display: grid; gap: .12rem; }
.attachment-preview-ui__name { display: block; font-size: .85rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-preview-ui__detail, .attachment-preview-ui__limits, .attachment-preview-ui__summary { font-size: .75rem; line-height: 1.35; opacity: .8; overflow-wrap: anywhere; }
.attachment-preview-ui__summary { font-weight: 600; }
.attachment-preview-ui button { font: inherit; color: inherit; min-height: 2.75rem; min-width: 2.75rem; cursor: pointer; }
.attachment-preview-ui .attachment-preview-ui__remove { width: 2.75rem; height: 2.75rem; padding: 0; border: 0; background: transparent; font-size: 1.4rem; box-shadow: none; border-radius: .35rem; }
.attachment-preview-ui .attachment-preview-ui__add { justify-self: start; width: auto; background: transparent; border: 0; padding: .2rem .4rem; font-size: .8rem; text-decoration: underline; text-underline-offset: .2rem; box-shadow: none; }
.attachment-preview-ui button:focus-visible, .viper-legacy-attachment-release:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.attachment-preview-ui button:disabled { opacity: .4; cursor: default; }
.attachment-preview-ui progress { display: block; width: 100%; height: .25rem; accent-color: currentColor; }
.viper-legacy-attachment-release { grid-column: 1 / -1; justify-self: start; font: inherit; font-size: .75rem; background: transparent; color: inherit; border: 0; text-decoration: underline; padding: .4rem; min-height: 2.75rem; }
.attachment-preview-ui__image { width: 3rem; height: 3rem; object-fit: contain; }
@media (prefers-reduced-motion: reduce) { .attachment-preview-ui * { animation: none !important; transition: none !important; } }
