/* Platform presentation for the private attachment module's controls and cards. */
.media-picker-slot{min-width:0;width:100%}
.media-picker-slot:empty,.media-form-status:empty{display:none}
.media-form-status{margin:6px 0 0;color:var(--muted);font-size:.84rem;line-height:1.5;overflow-wrap:anywhere}
.comment-form .media-picker-slot{margin:8px 0}
.attachment-field>small{display:block;margin-top:6px;color:var(--muted);line-height:1.5}
.tv-media-picker{min-width:0;border-color:var(--line);background:var(--panel);color:var(--text)}
.tv-media-picker legend,.tv-media-filename{color:var(--text)}
.tv-media-choose{border-color:color-mix(in srgb,var(--feed-blue) 64%,var(--line));color:var(--text);background:color-mix(in srgb,var(--feed-blue) 7%,var(--panel))}
.tv-media-choose:focus-within,.tv-media-item-actions button:focus-visible,.tv-media-view-retry:focus-visible{outline-color:var(--feed-blue)}
.tv-media-picked-item,.tv-media-attachment{min-width:0;border-color:var(--line);background:var(--panel)}
.tv-media-local-preview,.tv-media-content{background:var(--bg)}
.tv-media-content video{max-height:min(70vh,560px);object-fit:contain}
.tv-media-attachment:has(video){grid-column:1/-1}
.tv-media-content a{color:var(--feed-blue);overflow-wrap:anywhere}
.tv-media-attachment figcaption{gap:10px;color:var(--text)}
.tv-media-attachment figcaption span{color:var(--muted);white-space:nowrap}
.tv-media-error,.tv-media-status[role=alert]{color:#ff8f9d}
@media(max-width:560px){.tv-media-picker{padding:10px}.tv-media-picked-item{grid-template-columns:44px minmax(0,1fr)}.tv-media-local-preview{width:44px;height:42px}.tv-media-attachment:has(video){grid-column:auto}.tv-media-content video{max-height:65vh}}
