/* Private file toolbox, intentionally scoped away from the public tool cards. */
.toolbox-modal[hidden],.toolbox-modal [hidden]{display:none!important}
.toolbox-modal{position:fixed;inset:0;z-index:140;display:flex;align-items:center;justify-content:center;padding:24px;color:#edf5ff;font-size:14px;line-height:1.5}
.toolbox-backdrop{position:absolute;inset:0;background:rgba(2,9,18,.8);backdrop-filter:blur(9px)}
.toolbox-dialog{position:relative;display:flex;flex-direction:column;width:min(1020px,100%);max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px);overflow:hidden;border:1px solid #2b4965;border-radius:22px;background:linear-gradient(150deg,#0d2136,#091625 80%);box-shadow:0 30px 110px rgba(0,0,0,.5);outline:none}
.toolbox-header{display:flex;gap:14px;align-items:center;flex-shrink:0;padding:22px 26px;border-bottom:1px solid #223c55;background:rgba(10,26,44,.85)}
.toolbox-brand-mark{display:grid;place-items:center;width:46px;height:46px;flex-shrink:0;border:1px solid #316d93;border-radius:14px;background:#14344f;color:#70d6ff;font-size:31px}
.toolbox-header h2{margin:0;color:#f4f9ff;font-size:23px;letter-spacing:.02em;line-height:1.3}.toolbox-header p{margin:3px 0 0;color:#91acc5;font-size:12px}
.toolbox-close{display:grid;place-items:center;width:38px;height:38px;flex-shrink:0;margin-left:auto;padding:0;border:1px solid #2b4965;border-radius:11px;background:#122b44;color:#a9c5de;font-size:27px;line-height:1;cursor:pointer}
.toolbox-close:hover{background:#1b3d5c;color:#fff}.toolbox-content{overflow-y:auto;overscroll-behavior:contain;padding:22px 26px;min-height:180px;scrollbar-color:#3c5975 #0b1a2b;scrollbar-width:thin}
.toolbox-status{margin:0 0 18px;padding:11px 14px;border:1px solid #264968;border-radius:10px;background:#102e47;color:#a9d9ff;font-size:13px;overflow-wrap:anywhere}.toolbox-status:empty{display:none}.toolbox-status[data-kind=error]{border-color:#87384b;background:#381b2c;color:#ffbac7}.toolbox-status[data-kind=success]{border-color:#23635b;background:#102f31;color:#82e2ca}
.toolbox-gate{max-width:590px;margin:10px auto 24px;padding:5px 20px 10px;text-align:center}.toolbox-lock{width:62px;height:62px;display:grid;place-items:center;margin:0 auto 17px;border:1px solid #315475;border-radius:20px;background:linear-gradient(145deg,#173b5c,#10263e);color:#75c4ff;font-size:44px;line-height:1}.toolbox-gate h3{margin:0 0 10px;font-size:20px;color:#f1f7ff}.toolbox-gate p{max-width:530px;margin:0 auto 23px;color:#9bb2c9;font-size:13px;line-height:1.85}.toolbox-gate form{text-align:left}.toolbox-gate label{display:block;margin-bottom:7px;color:#bdcfe0;font-size:13px}.toolbox-password-row{display:flex;gap:10px}.toolbox-gate small{display:block;margin-top:14px;color:#7f9ab4;font-size:12px}
.toolbox-modal input[type=password],.toolbox-modal input[type=search]{height:43px;min-width:0;padding:9px 13px;border:1px solid #345471;border-radius:10px;background:#071827;color:#edf5ff;outline:none;font:inherit}.toolbox-modal input[type=password]{flex:1}.toolbox-modal input::placeholder{color:#7f99b2}.toolbox-modal input:focus{border-color:#55aeed;box-shadow:0 0 0 3px rgba(52,151,226,.16)}
.toolbox-primary,.toolbox-secondary,.toolbox-download-button,.toolbox-choose{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:9px 16px;border:1px solid transparent;border-radius:10px;font:inherit;font-size:13px;font-weight:700;line-height:1.5;cursor:pointer;white-space:nowrap}.toolbox-primary{border-color:#3b8fe4;background:#2274d0;color:#fff}.toolbox-primary:hover:not(:disabled){background:#2c87e7}.toolbox-secondary,.toolbox-choose{border-color:#345571;background:#122d46;color:#c8e2fa}.toolbox-secondary:hover:not(:disabled),.toolbox-choose:hover{border-color:#6bb7e8;background:#193b57}.toolbox-modal button:disabled,.toolbox-modal input:disabled{opacity:.5;cursor:not-allowed}.toolbox-modal button:focus-visible,.toolbox-choose:focus-within{outline:2px solid #74c7ff;outline-offset:3px}
.toolbox-workspace{display:grid;gap:25px}.toolbox-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.toolbox-section-heading h3{margin:0;font-size:16px;color:#e6f2ff}.toolbox-limits{color:#8da9c1;font-size:12px}.toolbox-upload-panel{padding:18px;border:1px solid #29475f;border-radius:15px;background:rgba(19,44,66,.45)}
.toolbox-dropzone{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;border:1px dashed #3e7396;border-radius:12px;background:#0b2134;transition:background .15s,border-color .15s}.toolbox-dropzone.is-dragging{border-color:#71d6ff;background:#153d55}.toolbox-dropzone strong{font-size:13px;color:#bfdcf4}.toolbox-dropzone p{margin:5px 0 0;font-size:12px;color:#7f9fb9}.toolbox-choose{position:relative;overflow:hidden;flex-shrink:0}.toolbox-choose input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.toolbox-choose:has(input:disabled){opacity:.5;cursor:not-allowed}
.toolbox-upload-actions{display:flex;align-items:center;gap:10px;margin-top:13px}.toolbox-selected-file{flex:1;min-width:0;color:#9cbbd5;font-size:12px;overflow-wrap:anywhere}.toolbox-progress-area{display:flex;align-items:center;gap:12px;margin-top:14px}.toolbox-progress-area progress{appearance:none;display:block;flex:1;min-width:0;height:7px;border:0;border-radius:7px;overflow:hidden;background:#17314b}.toolbox-progress-area progress::-webkit-progress-bar{background:#17314b}.toolbox-progress-area progress::-webkit-progress-value{background:linear-gradient(90deg,#2b8ee9,#53dbdb)}.toolbox-progress-area progress::-moz-progress-bar{background:#4dc8e7}.toolbox-progress-area span{color:#8fd9f4;font-size:12px;min-width:3em;text-align:right}
.toolbox-file-toolbar>div:first-child{display:flex;align-items:baseline;gap:12px}.toolbox-search-row{display:flex;gap:9px}.toolbox-modal input[type=search]{width:240px;height:39px;font-size:12px}.toolbox-table-wrap{border:1px solid #29445f;border-radius:13px;overflow:auto;background:#091c2d}.toolbox-table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}.toolbox-table th{padding:12px 15px;background:#10283e;color:#88a8c6;font-size:11px;font-weight:600;white-space:nowrap}.toolbox-table td{padding:13px 15px;border-top:1px solid #20394f;color:#a9c2d8;vertical-align:middle}.toolbox-table th:first-child{width:55%}.toolbox-table td:first-child{color:#e4f1ff;min-width:180px;overflow-wrap:anywhere;word-break:break-word}.toolbox-file-name{display:block;font-weight:650}.toolbox-file-extension{display:inline-block;margin-top:4px;border-radius:4px;padding:1px 5px;background:#18324c;color:#7fb1db;font-size:10px;letter-spacing:.05em}.toolbox-table td:nth-child(2),.toolbox-table td:nth-child(3){white-space:nowrap}.toolbox-download-button{min-height:32px;padding:5px 12px;border-color:#2a5f86;background:#10324f;color:#8fd0ff;font-size:12px}.toolbox-download-button:hover:not(:disabled){background:#1a486c}.toolbox-empty{padding:32px 16px;margin:0;text-align:center;color:#7594b1;font-size:13px}
.toolbox-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-shrink:0;padding:15px 26px;border-top:1px solid #233d55;background:#0a1c2d}.toolbox-footer>span{color:#829eb8;font-size:12px}.toolbox-footer button{min-height:35px;padding:6px 14px}
#toolboxButton{margin-left:10px;padding:0;border:0;background:transparent;color:#79bcff;font:inherit;font-weight:750;cursor:pointer}#toolboxButton:hover{text-decoration:underline}#toolboxButton:focus-visible{outline:2px solid #79bcff;outline-offset:4px;border-radius:3px}
body.toolbox-modal-open{overflow:hidden}
@media(min-height:700px){.toolbox-dialog{min-height:400px}}
@media(max-width:700px){.toolbox-modal{padding:12px}.toolbox-dialog{border-radius:16px;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px)}.toolbox-header{padding:17px;gap:10px}.toolbox-header h2{font-size:19px}.toolbox-brand-mark{width:39px;height:39px;border-radius:12px;font-size:26px}.toolbox-header p{font-size:11px}.toolbox-content{padding:17px}.toolbox-gate{padding:5px 0}.toolbox-gate p{font-size:12px}.toolbox-password-row{flex-direction:column}.toolbox-password-row input{flex:auto}.toolbox-upload-panel{padding:13px}.toolbox-section-heading{align-items:flex-start;flex-direction:column;gap:6px}.toolbox-dropzone{padding:15px;flex-direction:column;align-items:flex-start;gap:12px}.toolbox-dropzone .toolbox-choose{width:100%}.toolbox-upload-actions{flex-wrap:wrap}.toolbox-selected-file{flex:1 1 100%}.toolbox-file-toolbar{gap:12px}.toolbox-search-row{width:100%}.toolbox-modal input[type=search]{width:0;flex:1}.toolbox-file-toolbar>div:first-child{width:100%;justify-content:space-between;align-items:center;gap:8px}.toolbox-table th,.toolbox-table td{padding:11px 12px}.toolbox-table th:nth-child(3),.toolbox-table td:nth-child(3){display:none}.toolbox-table td:first-child{min-width:120px}.toolbox-footer{padding:13px 17px;gap:10px}.toolbox-footer>span{font-size:11px}.toolbox-footer button{font-size:12px;flex-shrink:0}}
.toolbox-file-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-width:116px}
.toolbox-delete-button{min-height:36px;padding:7px 13px;border-color:#884458;background:#341e2e;color:#ffc0cc}
.toolbox-delete-button:hover:not(:disabled){border-color:#e87993;background:#552338;color:#fff}
@media(max-width:700px){.toolbox-file-actions{min-width:58px;flex-direction:column;align-items:stretch}.toolbox-file-actions button{min-height:40px}}
@media(prefers-reduced-motion:reduce){.toolbox-modal *{transition:none!important}}
