/* Shared, namespaced upload controls. Native multipart inputs remain functional. */
.hk-upload{position:relative;display:block;box-sizing:border-box;width:100%;min-width:0;margin:7px 0 10px;color:#244e40;text-align:left;font:13px/1.5 system-ui,-apple-system,sans-serif}.hk-upload *{box-sizing:border-box}.hk-upload .hk-upload-native{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:0!important;opacity:0;overflow:hidden;clip-path:inset(50%);border:0!important}.hk-upload-zone{display:flex;align-items:center;gap:12px;min-height:90px;padding:15px;border:1.5px dashed #9dbcae;border-radius:9px;background:linear-gradient(115deg,#f1f7f3,#fcfbf6);cursor:pointer;transition:border-color .15s,background .15s;outline-offset:3px}.hk-upload-zone:hover,.hk-upload.is-dragging .hk-upload-zone{border-color:#21705a;background:#e7f2eb}.hk-upload-zone:focus-visible,.hk-upload.has-focus .hk-upload-zone{outline:2px solid #9c7a37}.hk-upload-icon{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border:1px solid #d4e2d8;border-radius:9px;background:#fff;color:#286650}.hk-upload-icon svg{display:block;width:24px!important;height:24px!important;max-width:24px;max-height:24px}.hk-upload-copy{display:grid;gap:3px;flex:1;min-width:0}.hk-upload-copy strong{font-size:14px;font-weight:650;color:#244e40}.hk-upload-copy small{font-size:11px;color:#64766a}.hk-upload-pick{flex-shrink:0;padding:7px 11px;border:1px solid #b8cdc1;border-radius:5px;background:#fff;color:#245841;font-size:12px;font-weight:650}.hk-upload-help{margin:5px 0 0!important;font-size:11px!important;line-height:1.5!important;color:#65776d!important;overflow-wrap:anywhere}.hk-upload-status{margin:5px 0 0!important;min-height:17px;color:#47715b!important;font-size:11px!important}.hk-upload-status.is-error{color:#9c2f33!important;font-weight:650}.hk-upload-list{list-style:none!important;display:grid;gap:6px;margin:8px 0 0!important;padding:0!important}.hk-upload-list[hidden]{display:none!important}.hk-upload-file{display:flex!important;align-items:center;gap:9px;min-width:0;padding:7px 8px!important;border:1px solid #dbe5df;border-radius:6px;background:#fff}.hk-upload-preview{display:block!important;flex:0 0 44px;width:44px!important;height:44px!important;max-width:44px!important;max-height:44px!important;object-fit:cover;border-radius:4px;background:#eef3ef}.hk-upload-file-icon{flex:0 0 44px;display:grid;place-items:center;width:44px;height:40px;border-radius:4px;background:#edf2ee;color:#617469;font-size:10px;font-weight:700}.hk-upload-file-info{display:grid;gap:2px;min-width:0;flex:1}.hk-upload-file-info strong{font-size:12px!important;font-weight:600!important;color:#274d3e!important;overflow-wrap:anywhere}.hk-upload-file-info small{font-size:11px!important;color:#718075!important}.hk-upload .hk-upload-remove{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;min-height:32px;margin:0;padding:0;border:1px solid #dfded4;border-radius:5px;background:#fff;color:#9c4b41;font:20px/1 system-ui;cursor:pointer}.hk-upload-remove:focus-visible{outline:2px solid #9c7a37;outline-offset:2px}.hk-upload.is-disabled{opacity:.6}.hk-upload.is-disabled .hk-upload-zone{cursor:not-allowed}
@media(max-width:600px){.hk-upload-zone{min-height:90px;padding:12px;gap:9px;flex-wrap:wrap}.hk-upload-copy strong{font-size:14px}.hk-upload-pick{margin-left:47px}.hk-upload .hk-upload-remove{width:40px;height:40px;flex-basis:40px}.hk-upload-file-info strong{font-size:13px!important}}@media(prefers-reduced-motion:reduce){.hk-upload-zone{transition:none}}

/* Keep the chat attachment panel compact without crowding the send toolbar. */
.wa-upload-picker .hk-upload{margin:3px 0}.wa-upload-picker .hk-upload-zone{min-height:44px;padding:6px 9px;gap:8px}.wa-upload-picker .hk-upload-icon{width:28px;height:28px;flex-basis:28px}.wa-upload-picker .hk-upload-copy small,.wa-upload-picker .hk-upload-help{display:none}.wa-upload-picker .hk-upload-status{min-height:0;margin:1px 0!important}.wa-upload-picker .hk-upload-file{padding:4px 7px!important}.wa-upload-picker .hk-upload-preview{width:32px!important;height:32px!important;flex-basis:32px}.wa-upload-picker .hk-upload-pick{margin:0}.hk-upload form{margin:0}form:has(.hk-upload) [data-mail-pending-files]{display:none}

.hk-upload .hk-upload-pick{width:auto;min-height:36px;font-family:inherit;line-height:1.5;text-transform:none;box-shadow:none;cursor:pointer}.hk-upload-zone:focus{outline:2px solid #9c7a37;outline-offset:2px}.hk-upload .hk-upload-pick:focus-visible{outline:2px solid #286650;outline-offset:2px}

.hk-upload-paste{display:block;min-height:22px;min-width:0;outline:none;cursor:text;font-size:11px;font-weight:400;line-height:1.6;color:#526d5f;overflow-wrap:anywhere}.hk-upload-paste:empty::before{content:attr(data-placeholder);pointer-events:none}.hk-upload-zone:focus-within{outline:2px solid #9c7a37;outline-offset:2px;border-color:#648e77;background:#edf5ef}.hk-upload-paste[contenteditable=false]{cursor:not-allowed}
