.attachment-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;padding:18px;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);margin-bottom:18px;align-items:end}
.attachment-filters label{display:grid;gap:7px;font-size:calc(12px * var(--font-scale,1));font-weight:600;min-width:0}
.attachment-filters input,.attachment-filters select{width:100%;min-width:0;min-height:44px;border:1px solid var(--line);border-radius:10px;background:var(--card);padding:10px;color:var(--ink);font:inherit}
.attachment-filters .attachment-voided{display:flex;align-items:center;gap:8px;align-self:center;font-weight:400;line-height:1.6}
.attachment-voided input[type=checkbox]{width:18px;min-height:18px;margin:0;flex-shrink:0;accent-color:var(--brand)}
.attachment-results-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;color:var(--ink)}
.attachment-results-heading span,.attachment-meta,.attachment-count{font-size:calc(11px * var(--font-scale,1));color:var(--muted)}
.attachment-group{margin-bottom:22px}.attachment-group-title{font-size:calc(15px * var(--font-scale,1));overflow-wrap:anywhere;margin:0 0 12px}
.attachment-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.attachment-card{min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:16px;background:var(--card)}
.attachment-preview{height:210px;display:flex;align-items:center;justify-content:center;background:var(--soft);border-bottom:1px solid var(--line);text-decoration:none;color:var(--brand);overflow:hidden}
.attachment-preview img{width:100%;height:100%;object-fit:contain}.attachment-preview img[hidden],.attachment-preview-missing[hidden]{display:none}
.attachment-preview-missing{text-align:center;padding:18px;font-size:calc(12px * var(--font-scale,1));line-height:1.7;color:var(--muted)}
.attachment-document{display:grid;justify-items:center;gap:10px}.attachment-document svg{width:52px;height:52px}.attachment-document strong{font-size:calc(20px * var(--font-scale,1))}.attachment-document small{color:var(--muted);font-size:calc(11px * var(--font-scale,1))}
.attachment-info{padding:14px}.attachment-meta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}.attachment-meta time{font-variant-numeric:tabular-nums}
.attachment-info h3{font-size:calc(14px * var(--font-scale,1));line-height:1.6;margin:10px 0;overflow-wrap:anywhere;color:var(--ink)}
.attachment-info p{font-size:calc(12px * var(--font-scale,1));line-height:1.7;margin:5px 0;overflow-wrap:anywhere;color:var(--ink-2)}
.attachment-count{display:block;margin-top:10px}.attachment-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.attachment-actions .btn{min-height:40px;text-decoration:none;white-space:normal}
.attachment-pagination{display:flex;justify-content:center;align-items:center;gap:16px;margin:24px 0;font-size:calc(12px * var(--font-scale,1))}
.attachment-linked-list{display:grid;gap:12px;margin-top:18px}.attachment-linked-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:14px;border:1px solid var(--line);border-radius:12px}
.attachment-linked-row h3,.attachment-linked-row p{width:100%;margin:0;overflow-wrap:anywhere}.attachment-linked-row h3{font-size:calc(14px * var(--font-scale,1));line-height:1.7}.attachment-linked-row p{font-size:calc(12px * var(--font-scale,1));line-height:1.7;color:var(--muted)}.attachment-linked-row>.btn{margin-inline-start:auto}
@media(max-width:1100px){.attachment-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.attachment-filters{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){body.mobile-shell .attachments-page{padding:18px 14px 32px}.attachments-page .page-head{align-items:flex-start;gap:12px;flex-wrap:wrap}.attachments-page .page-head .button-cluster{flex-shrink:0}.attachment-filters{grid-template-columns:repeat(2,minmax(0,1fr));padding:14px;gap:12px}.attachment-filters input,.attachment-filters select{font-size:16px}.attachment-voided{grid-column:1/-1}.attachment-results-heading{align-items:flex-start;flex-wrap:wrap}.attachment-grid{gap:12px}.attachment-actions .btn{min-height:44px}.attachment-pagination{gap:10px}}
@media(max-width:520px){.attachment-grid{grid-template-columns:minmax(0,1fr)}.attachment-preview{height:240px}}
