/* ---- rendered attachment cards (in posts) ---- */
.att { display: block; margin: 8px 0; }
.att-bar, .att-cap, .att-file { font-size: 13px; }
.att-pdf { border: 1px solid rgba(127,127,127,.4); border-radius: 5px; overflow: hidden; background: rgba(127,127,127,.08); }
.att-bar { display: flex; align-items: center; gap: 6px; padding: 6px 9px; background: rgba(127,127,127,.14); }
.att-name { font-weight: bold; text-decoration: none; }
.att-name:hover { text-decoration: underline; }
.att-size { opacity: .65; font-size: 12px; }
.att-toggle { margin-left: auto; font: inherit; font-size: 12px; cursor: pointer; background: rgba(127,127,127,.18); border: 1px solid rgba(127,127,127,.4); border-radius: 3px; padding: 2px 8px; color: inherit; }
.att-frame { display: block; width: 100%; height: 600px; border: 0; background: #525659; }
.att-img { display: inline-block; max-width: 100%; }
.att-img img { display: block; max-width: 100%; height: auto; border: 1px solid rgba(127,127,127,.4); border-radius: 4px; }
.att-cap { margin-top: 3px; }
.att-file { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid rgba(127,127,127,.4); border-radius: 5px; background: rgba(127,127,127,.08); }
.att-missing { opacity: .6; font-style: italic; }

/* ---- compose widget ---- */
.att-compose { margin: 10px 0; padding: 9px 11px; border: 1px dashed rgba(127,127,127,.5); border-radius: 5px; background: rgba(127,127,127,.06); }
.att-addbtn { display: inline-block; cursor: pointer; font-weight: bold; font-size: 13px; background: rgba(127,127,127,.16); border: 1px solid rgba(127,127,127,.4); border-radius: 4px; padding: 4px 10px; }
.att-addbtn:hover { background: rgba(127,127,127,.26); }
.att-hint { font-size: 11px; opacity: .7; margin-left: 8px; }
.att-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.att-chip { font-size: 12px; padding: 2px 8px; border-radius: 10px; background: rgba(127,127,127,.16); border: 1px solid rgba(127,127,127,.35); }
.att-chip.att-err { background: rgba(204,40,40,.18); border-color: rgba(204,40,40,.5); }
