#cabinet-whole .measurement-attachments{margin:20px 0;border-top:1px solid var(--cw-line);padding-top:16px}
#cabinet-whole .attachment-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,230px));gap:12px;margin-top:12px}
#cabinet-whole .attachment-card{min-width:0;border:1px solid var(--cw-line);border-radius:4px;padding:10px;background:#fff;display:grid;gap:8px}
#cabinet-whole .attachment-thumb{display:flex;align-items:center;justify-content:center;padding:0;width:100%;height:128px;overflow:hidden;background:var(--cw-soft)}
#cabinet-whole .attachment-thumb img{width:100%;height:100%;object-fit:contain}
#cabinet-whole .attachment-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#cabinet-whole .attachment-card .local-note{margin:0;font-size:12px}
#cabinet-whole .attachment-card .cw-actions{justify-content:space-between}
#cabinet-whole .attachment-card .cw-actions button{min-height:36px}
#cabinet-whole .attachment-job{display:flex;align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid var(--cw-line)}
#cabinet-whole .attachment-job span{flex:1;min-width:0;overflow-wrap:anywhere}
#cabinet-whole .attachment-status:empty{display:none}
#cabinet-whole dialog.attachment-viewer{width:min(1100px,calc(100vw - 64px));max-height:calc(100vh - 64px);box-sizing:border-box;overflow:auto}
#cabinet-whole .attachment-viewer-head{display:flex;gap:12px;align-items:center;margin-bottom:16px}
#cabinet-whole .attachment-viewer-head h2{flex:1;overflow-wrap:anywhere;margin:0}
#cabinet-whole .attachment-viewer>img{display:block;max-width:100%;max-height:72vh;object-fit:contain;margin:auto}
@media(max-width:480px){#cabinet-whole .attachment-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#cabinet-whole .attachment-job{flex-wrap:wrap}#cabinet-whole .attachment-thumb{height:110px}}
