*{box-sizing:border-box}html{font-family:Tahoma,Arial,sans-serif;background:#f3f7fa;color:#17212b}body{margin:0;line-height:1.8}.wrap{width:min(100% - 28px,560px);margin:28px auto}.wrap.wide{width:min(100% - 28px,900px)}.brand{display:flex;align-items:center;gap:13px;margin:0 0 18px}.brand h1{font-size:1.4rem;margin:0;color:#087fa8}.brand p{margin:0;color:#64748b}.brand-icon{width:54px;height:54px;border-radius:16px;background:#00aeef;color:white;font-weight:bold;font-size:1.3rem;display:grid;place-items:center}.panel{background:#fff;border:1px solid #e1e9ef;border-radius:20px;padding:24px;box-shadow:0 8px 28px #1530440b}.panel h2{margin:0 0 4px;font-size:1.25rem}.panel h1{font-size:1.4rem;margin-top:0}.muted{color:#657587}.small{font-size:.86rem}label{display:block;font-weight:bold;margin:17px 0 6px}input:not([type=hidden]){display:block;width:100%;min-height:46px;border:1px solid #ccd8e1;border-radius:10px;padding:10px 12px;font:inherit;background:white;color:#17212b}input[type=file]{padding:10px;background:#f9fcfe}input:focus{outline:2px solid #8bdcff;border-color:#00aeef}.file-label{margin-top:20px}.notice{background:#eef9ff;border:1px solid #c9edfc;color:#24556b;padding:11px 13px;border-radius:10px;margin:16px 0;font-size:.9rem}button,.button-link{font:inherit;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border:0;border-radius:10px;background:#00aeef;color:#fff;padding:11px 18px;min-height:44px;cursor:pointer;font-weight:bold}form>button{width:100%;margin-top:18px}button:disabled{opacity:.6;cursor:wait}.button-link.secondary{background:#e7f5fb;color:#17617a}.danger{background:#fff0f0;color:#b42318;padding:7px 12px;min-height:38px}.status{margin-bottom:0}.error,.error-box{color:#a61b1b;background:#fff0f0;border-radius:9px;padding:10px}.warning{background:#fff8e8;color:#78540b;padding:12px;border-radius:10px;font-size:.9rem}.result{text-align:center;margin-top:50px}.success-icon{width:58px;height:58px;border-radius:50%;background:#e5f8ee;color:#15803d;display:grid;place-items:center;font-size:2rem;margin:0 auto 12px}.result .button-link{margin-top:12px}footer{text-align:center;color:#748292;font-size:.82rem;padding:20px 8px}.admin-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}.admin-head h1{font-size:1.45rem;margin:0}.admin-head p{margin:0}.file-list{display:grid;gap:12px}.file-card{background:white;border:1px solid #e1e9ef;border-radius:15px;padding:16px;display:flex;align-items:center;justify-content:space-between;gap:15px}.file-name{font-weight:bold;overflow-wrap:anywhere}.actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.actions form{margin:0}.actions .button-link{padding:7px 13px;min-height:38px}.file-main{min-width:0}.file-main .small{overflow-wrap:anywhere}@media(max-width:560px){.wrap{margin:16px auto}.panel{padding:19px}.file-card{align-items:stretch;flex-direction:column}.actions{width:100%}.actions>*{flex:1}.actions .button-link,.actions button{width:100%}.admin-head h1{font-size:1.2rem}}

/* Multi-file upload progress */
.upload-list{display:grid;gap:11px;margin-top:14px}.upload-item{padding:12px;border:1px solid #dce8ef;border-radius:12px;background:#fbfdff;min-width:0}.upload-item-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.upload-file-name{font-weight:bold;overflow-wrap:anywhere;min-width:0}.upload-file-status{font-size:.84rem;color:#536779;flex-shrink:0}.progress-track{height:9px;border-radius:20px;background:#e7edf2;overflow:hidden;margin-top:9px}.progress-bar{height:100%;width:0;background:#00aeef;border-radius:20px;transition:width .12s linear}.progress-success{background:#16a34a}.progress-failed{background:#dc2626}.upload-detail{font-size:.8rem;color:#657587;margin-top:4px}.upload-success{color:#137547}.upload-error{color:#b42318}@media(max-width:420px){.upload-item-top{flex-direction:column;gap:3px}.upload-file-status{flex-shrink:1}}

/* Batch upload and admin grouping */
.overall-progress{margin:16px 0;padding:13px;border:1px solid #c9eaf7;border-radius:12px;background:#f1fbff}.overall-progress[hidden]{display:none}.group-card{background:#fff;border:1px solid #d9e6ed;border-radius:16px;padding:14px;margin:16px 0}.group-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}.group-title{font-weight:bold;font-size:1.05rem}.group-meta{font-size:.86rem;color:#657587}.bulk-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;background:#eef9ff;border:1px solid #c9edfc;padding:12px;border-radius:12px;margin-bottom:14px}.bulk-toolbar label,.file-select-label{display:flex;align-items:center;gap:8px;margin:0;font-weight:normal}.bulk-toolbar input[type=checkbox],.file-select-label input[type=checkbox]{width:19px;height:19px;min-height:19px;display:inline-block;margin:0;accent-color:#00aeef}.admin-file{display:flex;align-items:center;gap:12px;padding:12px 0;border-top:1px solid #edf1f4}.admin-file .file-main{flex:1}.admin-file .actions{display:flex}.admin-file .button-link{min-height:36px;padding:6px 12px}.bulk-delete{background:#b42318;color:#fff;min-height:40px;padding:8px 14px}.bulk-delete:disabled{opacity:.45;cursor:not-allowed}.empty-note{padding:12px;color:#657587}@media(max-width:560px){.group-head{flex-direction:column}.admin-file{align-items:flex-start;flex-wrap:wrap}.admin-file .file-main{width:calc(100% - 34px);flex:auto}.admin-file .actions{width:100%;margin-right:30px}.bulk-toolbar{align-items:stretch;flex-direction:column}.bulk-delete{width:100%}}
