.cg-upload{box-sizing:border-box;min-width:0;width:100%;padding:20px;border:1px dashed #8aaeb2;border-radius:18px;background:linear-gradient(135deg,#f3faf6,#f3f7ff);box-shadow:0 8px 24px #16354b0a;color:#17384a;margin:8px 0 14px;text-align:left}.cg-upload-heading{display:flex;gap:12px;align-items:center;margin-bottom:8px}.cg-upload-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#17384a;color:#fff;font-size:26px;box-shadow:0 5px 12px #17384a25;flex-shrink:0}.cg-upload-title{font-size:1rem;font-weight:750;line-height:1.4}.cg-upload .cg-upload-hint,.cg-upload .cg-upload-status{font-size:.8rem;line-height:1.6;color:#476174;overflow-wrap:anywhere;margin:8px 0}.cg-upload input.cg-upload-input{display:block!important;box-sizing:border-box;width:100%;max-width:100%;height:auto;min-height:48px;padding:6px;background:#fff;color:#294657;border:1px solid #bdcfd6;border-radius:11px;font-size:.85rem;cursor:pointer}.cg-upload-input::file-selector-button{margin-right:12px;border:0;border-radius:8px;padding:10px 14px;background:#176b48;color:white;font-weight:700;cursor:pointer}.cg-upload:focus-within{outline:3px solid #85c9b2;outline-offset:3px}.cg-upload-selected{border-style:solid;border-color:#67a88a}.cg-upload-previews{display:grid;gap:10px;margin-top:12px;max-height:340px;overflow:auto}.cg-upload-file{display:flex;align-items:center;gap:12px;padding:10px;background:#fff;border:1px solid #dce6ed;border-radius:12px;min-width:0}.cg-upload-thumbnail{width:76px;height:76px;object-fit:contain;background:#eef3f7;border-radius:8px;flex-shrink:0}.cg-upload-file-icon{display:grid;place-items:center;width:54px;height:60px;border-radius:8px;background:#eaf0f8;color:#314e76;font-size:.65rem;font-weight:800;flex-shrink:0}.cg-upload-details{min-width:0}.cg-upload-name{display:block;font-size:.85rem;overflow-wrap:anywhere;line-height:1.5}.cg-upload-size{display:block;font-size:.75rem;color:#566a7c;overflow-wrap:anywhere;margin-top:4px}.cg-upload .cg-upload-clear{border:1px solid #a9bfcc;border-radius:9px;background:#fff;color:#25465b;padding:8px 12px;font-size:.8rem;font-weight:650;cursor:pointer}.cg-upload [hidden]{display:none!important}.cg-upload input:disabled,.cg-upload button:disabled{opacity:.6;cursor:not-allowed}@media(max-width:480px){.cg-upload{padding:14px;border-radius:14px}.cg-upload-thumbnail{width:60px;height:60px}.cg-upload-input::file-selector-button{padding:9px}.cg-upload-file{gap:8px}}

/* The native field remains focusable and validatable, over the custom picker. */
.cg-upload .cg-upload-picker{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:112px;padding:18px;border:1px dashed #7aa998;border-radius:14px;background:linear-gradient(135deg,#fff,#edf8f1);overflow:hidden;text-align:center}
.cg-upload .cg-upload-picker input.cg-upload-input{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;margin:0!important;padding:0!important;opacity:0!important;cursor:pointer;z-index:1}
.cg-upload-prompt{display:inline-flex;align-items:center;justify-content:center;border-radius:10px;padding:11px 22px;background:linear-gradient(135deg,#176b48,#268b54);color:#fff;font-weight:750;font-size:.9rem;box-shadow:0 5px 14px #176b4826}
.cg-upload-picker-note{font-size:.78rem;color:#4c6871;line-height:1.5}
.cg-upload-picker:hover{border-color:#176b48;background:#eaf7ef}
.cg-upload-picker:focus-within{outline:3px solid #398865;outline-offset:2px}
.cg-upload-disabled .cg-upload-picker{opacity:.55}
@media(forced-colors:active){.cg-upload-picker,.cg-upload-prompt{border:1px solid ButtonText}}

/* CarryGo upload design: green surface, navy document, gold focus accent. */
.cg-upload{background:#edf8e8;border:2px solid #75b56e;border-radius:20px;color:#082b4c;padding:24px;text-align:center}.cg-upload-heading{flex-direction:column;justify-content:center;gap:14px}.cg-upload-icon{background:#fff;color:#082b4c;border:2px solid #082b4c;width:58px;height:68px;font-size:38px;border-radius:12px;position:relative}.cg-upload-icon:after{content:'↑';position:absolute;right:-12px;bottom:-7px;border-radius:50%;background:#39b82a;color:#082b4c;font-size:25px;line-height:34px;width:34px;height:34px}.cg-upload-title{font-weight:800;font-size:1.15rem}.cg-upload .cg-upload-picker{border:0;background:transparent;min-height:90px;padding:12px}.cg-upload-prompt{background:#39b82a;color:#082b4c;border-radius:9px;box-shadow:none;padding:12px 26px;font-weight:800}.cg-upload .cg-upload-hint{color:#36576b}.cg-upload-picker-note{color:#36576b}.cg-upload:focus-within{outline:3px solid #e8b32a}.cg-upload-drag{background:#dcf2d5;border-color:#278d20}.cg-upload-file{text-align:left}.cg-upload-file>.cg-upload-clear{margin-left:auto;flex-shrink:0}.cg-upload-details{flex:1}.cg-upload-picker:hover{background:#e1f3da}.cg-upload-clear:focus-visible{outline:3px solid #e8b32a}@media(max-width:480px){.cg-upload{padding:16px}.cg-upload-file{flex-wrap:wrap}.cg-upload-file>.cg-upload-clear{margin-left:0}}
