.attachment-icons{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.attachment-icon{display:inline-flex;align-items:center;justify-content:center;width:48px;min-height:48px;border:1px solid var(--line);border-radius:6px;background:var(--surface);padding:8px;cursor:pointer}.attachment-icon img{width:32px;height:32px;object-fit:contain}.attachment-icon:hover{background:var(--soft);border-color:var(--primary)}.attachment-icon:focus-visible{outline:2px solid var(--primary);outline-offset:3px}
.sender-trust{margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}.sender-trust h2,.sender-attachment-history h2{font-size:18px;margin:0 0 12px}.sender-trust>p{font-size:13px;line-height:1.5;margin-bottom:12px}.attachment-trust-row{display:flex;align-items:center;gap:12px;min-height:52px;margin:8px 0 0;cursor:pointer}.attachment-trust-row>span{display:grid;gap:4px;min-width:0}.attachment-trust-row strong{font-size:14px;font-weight:600}.attachment-trust-row small{font-size:12px;color:var(--muted)}.attachment-trust-row input[type=checkbox]{appearance:none;position:relative;width:42px!important;min-width:42px;height:24px!important;min-height:24px!important;margin:10px 0;padding:0;border:1px solid var(--muted);border-radius:14px;background:var(--soft);cursor:pointer}.attachment-trust-row input[type=checkbox]::before{content:'';position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:var(--muted)}.attachment-trust-row input:checked{background:var(--primary);border-color:var(--primary)}.attachment-trust-row input:checked::before{left:21px;background:#fff}.attachment-trust-row input:focus-visible{outline:2px solid var(--primary);outline-offset:4px}.sender-trusted-filter{grid-column:1 / -1;margin:0!important;min-height:44px}.sender-trusted-filter input{width:18px;min-height:18px;height:18px}.sender-name .sender-trusted-label{font-size:12px;color:var(--primary);text-decoration:none}
.sender-attachment-history{margin:20px 0}.attachment-history-groups>details{border-top:1px solid var(--line)}.attachment-history-groups summary{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:48px;font-size:14px;cursor:pointer}.attachment-history-groups summary span{font-variant-numeric:tabular-nums;font-weight:400;color:var(--muted)}
.attachment-file{display:flex;align-items:center;gap:12px;padding:14px 0;border-top:1px solid var(--line);min-width:0}.attachment-file>img{width:32px;height:32px;object-fit:contain;flex-shrink:0}.attachment-file-name{min-width:0;flex:1;display:grid;gap:5px}.attachment-file-name strong{font-size:13px;font-weight:600;overflow-wrap:anywhere;line-height:1.5}.attachment-file-name>span{font-size:12px;color:var(--muted)}.attachment-file-actions{display:flex;align-items:center;gap:6px}.attachment-file-actions .button{min-height:44px;font-size:12px}.attachment-file-actions .icon-button{min-width:44px;min-height:44px}
.attachment-dialog{width:min(680px,calc(100vw - 24px));max-height:90dvh;padding:0;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);overflow:hidden}.attachment-dialog::backdrop{background:#102d4999}.attachment-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:20px;background:#153353;color:#fff;padding:18px 24px}.attachment-dialog h2{font-size:20px;margin:0;color:#fff}.attachment-dialog header .icon-button{color:#fff}.attachment-dialog header .icon-button:hover{background:#ffffff1a}.attachment-dialog #attachment-body{padding:24px;max-height:calc(90dvh - 86px);overflow:auto}.attachment-dialog p{line-height:1.6;font-size:14px;overflow-wrap:anywhere}.attachment-delete-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:12px;margin-top:24px}.attachment-delete-actions .button{min-height:44px}.attachment-danger{background:#b3261e;color:white;border-color:#b3261e}.attachment-danger:disabled{opacity:.45;cursor:not-allowed}.attachment-dialog input[type=range]{display:block;width:100%;height:44px;min-height:44px;padding:0;margin:12px 0;accent-color:#b3261e}.attachment-dialog label{display:block;font-size:14px;margin-top:20px}
@media(max-width:700px){.attachment-file{flex-wrap:wrap;gap:10px}.attachment-file-name{min-width:calc(100% - 44px)}.attachment-file-actions{margin-left:42px}.attachment-dialog>header{padding:14px 18px}.attachment-dialog #attachment-body{padding:18px}.attachment-delete-actions .button{flex:1}.attachment-icons{gap:8px}}

.sender-trust label.attachment-trust-row{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;column-gap:12px}

/* Individual file icons always stay visible; the ZIP action follows from three files. */
.attachment-icons .attachment-bundle{border-style:dashed;border-color:var(--muted)}
.attachment-icon.attachment-waiting{background:var(--soft);border-color:var(--primary)}
.attachment-icon.attachment-waiting::after{content:'';width:6px;height:6px;position:absolute;right:2px;bottom:2px;border-radius:50%;background:var(--primary)}
.attachment-icon{position:relative}
.conversation-row .message-open-actions>.attachment-icons{min-width:0;max-width:100%;flex-wrap:wrap}
@media(forced-colors:active){.attachment-icon.attachment-waiting{outline:2px solid Highlight;outline-offset:-2px}}

.attachment-file-symbol{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-width:32px;max-width:40px;vertical-align:middle;flex-shrink:0;line-height:1}
.attachment-file-symbol>img{display:block;width:28px;height:28px;object-fit:contain}
.attachment-file-symbol>span:not(.sr-only){font:700 8px/1 'Segoe UI',sans-serif;letter-spacing:.02em;color:var(--ink);max-width:40px;overflow:hidden;white-space:nowrap}
.attachment-file>.attachment-file-symbol{width:38px}

.message-attachment-notice{display:inline-flex;align-items:center;align-self:center;gap:4px;color:var(--muted);font-size:12px;line-height:1.4;white-space:nowrap}
.message-attachment-notice svg{width:14px;height:14px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media(forced-colors:active){.message-attachment-notice{color:CanvasText}}
