.ark-upload-tray,.ark-ortho-dialog,.ark-file-card{font-family:Inter,Arial,sans-serif;color:#292524;box-sizing:border-box}
.ark-upload-tray{position:fixed;bottom:16px;right:16px;width:min(390px,calc(100vw - 24px));z-index:2147483001;background:white;border:1px solid #e7e5e4;border-radius:14px;box-shadow:0 12px 42px #1c19172e;overflow:hidden}
.ark-upload-heading{display:flex;align-items:center;justify-content:space-between;width:100%;border:0;padding:13px 15px;background:#292524;color:white;cursor:pointer;font-size:12px;font-weight:700}.ark-upload-heading span:last-child{font-size:10px;color:#fbbf24}
.ark-upload-list{max-height:min(340px,45vh);overflow:auto;padding:8px}.ark-upload-footer{font-size:10px;padding:10px 14px;color:#78716c;background:#fafaf9;border-top:1px solid #e7e5e4}
.ark-file-card{display:flex;align-items:flex-start;gap:10px;padding:11px;border:1px solid #e7e5e4;border-radius:10px;background:#fafaf9;margin:5px 0;text-align:left;min-width:0}.ark-file-preview{width:58px;height:58px;flex:0 0 58px;display:flex;align-items:center;justify-content:center;background:#fef3c7;border-radius:7px;overflow:hidden;color:#92400e;font-size:11px;font-weight:800}.ark-file-preview img{width:100%;height:100%;object-fit:contain;background:#f5f5f4}.ark-file-info{min-width:0;flex:1;display:flex;flex-direction:column;gap:4px}.ark-file-info strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ark-file-info small{font-size:10px;color:#78716c;line-height:1.4}.ark-file-state{font-size:10px;line-height:1.5;color:#78716c}.ark-file-state.uploading,.ark-file-state.saving{color:#b45309}.ark-file-state.saved,.ark-ortho-status .saved{color:#047857}.ark-file-error{font-size:11px;line-height:1.5;color:#b91c1c;display:block;overflow-wrap:anywhere}.ark-file-info button{align-self:flex-start;border:1px solid #f59e0b;border-radius:6px;padding:5px 9px;color:#92400e;background:#fffbeb;font-size:11px;cursor:pointer}.ark-file-meter-label{display:flex;justify-content:space-between;font-size:10px;margin:3px 0;color:#78716c}.ark-file-meter-label b{color:#b45309}.ark-file-card progress{display:block;width:100%;height:6px;accent-color:#d97706;border-radius:8px;overflow:hidden}.ark-file-card progress::-webkit-progress-bar{background:#e7e5e4}.ark-file-card progress::-webkit-progress-value{background:#d97706;border-radius:8px}.ark-inline-files{margin-top:8px}
.ark-ortho-overlay{position:fixed;inset:0;z-index:100000;background:#1c191799;display:flex;align-items:center;justify-content:center;padding:16px}.ark-ortho-dialog{width:480px;max-width:100%;max-height:92dvh;overflow:auto;background:white;border-radius:16px;box-shadow:0 24px 70px #0004}.ark-ortho-dialog header{display:flex;align-items:flex-start;justify-content:space-between;padding:22px 24px 16px;border-bottom:1px solid #e7e5e4}.ark-ortho-dialog h3{margin:0;font-size:18px;font-weight:800}.ark-ortho-dialog header p{font-size:11px;color:#78716c;margin:6px 0 0}.ark-ortho-dialog header button{border:0;background:none;font-size:23px;line-height:1;cursor:pointer}.ark-ortho-dialog form{padding:20px 24px;display:flex;flex-direction:column;gap:14px}.ark-upload-help{border:1px solid #fde68a;border-radius:9px;background:#fffbeb;padding:10px 12px;font-size:11px;color:#92400e;line-height:1.6}.ark-upload-field{display:flex;flex-direction:column;gap:6px;font-size:11px;font-weight:700}.ark-upload-field input:not([type=range]):not([type=file]){padding:10px;border:1px solid #d6d3d1;border-radius:7px;background:#fff;color:#292524;width:100%;font:400 12px Inter,Arial,sans-serif;box-sizing:border-box}.ark-upload-field input[type=file]{font-size:11px;max-width:100%}.ark-upload-field input[type=file]::file-selector-button{border:1px dashed #d6d3d1;border-radius:7px;background:#fafaf9;color:#57534e;padding:9px 11px;margin-right:8px;cursor:pointer}.ark-upload-field input[type=range]{accent-color:#d97706}.ark-upload-columns{display:grid;grid-template-columns:1fr 1fr;gap:12px}.ark-upload-submit{padding:12px;border:0;border-radius:8px;background:#d97706;color:white;font-size:13px;font-weight:800;cursor:pointer}.ark-ortho-dialog button:disabled{opacity:.5;cursor:wait}.ark-ortho-status{display:flex;flex-wrap:wrap;gap:5px 8px;align-items:center;font-size:9px;margin:8px 0;line-height:1.4}.ark-ortho-status .pending{color:#b45309}.ark-ortho-status a{color:#a16207;text-decoration:underline}.ark-ortho-status small{color:#78716c}
@media(max-width:640px){.ark-upload-tray{bottom:8px;right:8px;width:calc(100vw - 16px)}.ark-upload-list{max-height:26vh}.ark-ortho-dialog form{padding:16px}.ark-ortho-dialog header{padding:18px 16px}.ark-upload-columns{grid-template-columns:1fr 1fr}.ark-file-preview{width:44px;height:44px;flex-basis:44px}}

body:has(.ark-ortho-dialog) .ark-upload-tray{display:none}.ark-upload-footer button{display:block;margin-top:8px;border:0;background:none;color:#a65f00;font-weight:600;cursor:pointer}
.ark-ortho-delete{flex-shrink:0;background:#fff1f2;color:#b91c1c;border:1px solid #fecdd3;border-radius:6px;padding:4px 7px;font-size:11px;cursor:pointer}.ark-ortho-delete:disabled{opacity:.5}.ark-ortho-undo{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);z-index:100001;display:flex;gap:16px;align-items:center;padding:13px 18px;border-radius:10px;background:#292524;color:white;box-shadow:0 4px 20px #0003;font-size:13px;max-width:90vw}.ark-ortho-undo button{border:0;background:none;color:#fbbf24;font-weight:700;white-space:nowrap;cursor:pointer}.ark-ortho-status span{overflow-wrap:anywhere}
.ark-ortho-trash{font-size:11px;color:#78716c;margin-bottom:12px}.ark-ortho-trash summary{cursor:pointer;padding:8px 0}.ark-ortho-trash>div{display:flex;align-items:center;gap:8px;padding:6px 0}.ark-ortho-trash span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ark-ortho-trash button{border:1px solid #d6d3d1;background:white;border-radius:5px;color:#92400e;padding:3px 6px;cursor:pointer;white-space:nowrap}
