/* Scoped upload/review presentation. Existing learning areas retain their styles. */
.upload-panel{width:min(580px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;border:1px solid #d7e1f0;border-radius:18px;padding:24px;color:#223044;box-shadow:0 18px 64px #142f5c38}
.upload-panel::backdrop{background:#172c4d70}
.upload-panel .upload-panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}
.upload-panel h2{font-size:22px;margin:0 0 6px;color:#234789}
.upload-panel .upload-panel-heading p{font-size:13px;color:#697586;margin:0}
.upload-panel .upload-panel-limits{background:#f3f7fd;border:1px solid #e1e9f6;border-radius:10px;padding:12px;font-size:13px;line-height:1.7;margin:0 0 18px}
.upload-panel,.upload-panel *{box-sizing:border-box}
.upload-panel{font-family:inherit;background:#fff}
.upload-panel form{display:flex;flex-direction:column;gap:16px}
.upload-panel label{font-size:14px;line-height:1.6}
.upload-panel label:has(input[type=checkbox]){display:flex;align-items:flex-start;gap:8px}
.upload-panel input[type=checkbox]{width:auto;margin:4px 0 0;flex-shrink:0}
.upload-panel button{font:inherit;cursor:pointer;border:1px solid #c9d2df;border-radius:9px;padding:9px 13px;background:#fff;color:#223044}
.upload-panel button[type=submit]{background:#325fdd;color:#fff;border-color:#325fdd}
.upload-panel button:disabled{opacity:.55;cursor:wait}
.upload-panel input[type=file]{box-sizing:border-box;width:100%;border:1px solid #cdd5e0;border-radius:9px;background:#fff;color:#223044}
.upload-panel input[type=file]{font-size:14px;padding:14px 10px;max-width:100%}
.upload-panel input[type=file]::file-selector-button{border:0;border-radius:6px;background:#e5edfd;color:#234789;padding:7px 10px;margin-right:10px;cursor:pointer}
.upload-panel .upload-panel-feedback{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;font-size:14px;margin:16px 0 0}
.upload-panel-feedback[data-tone=error]{color:#a83e32}
.upload-panel .upload-panel-note{font-size:12px;color:#697586;line-height:1.6;margin:14px 0 0}
.upload-entry{display:flex;align-items:flex-start;gap:10px;flex-wrap:wrap}
.upload-entry>div{flex:1;min-width:160px}
.upload-entry>button{white-space:nowrap}
.upload-entry h1{margin-bottom:6px}
@media(max-width:540px){.upload-panel{padding:18px}.upload-panel .upload-panel-heading{gap:8px}.upload-panel h2{font-size:20px}}

.page-processing-list,.page-processing-list *{box-sizing:border-box}
.page-processing-list{border:1px solid #dce5f3;border-radius:12px;background:#f8faff;color:#253850;font-family:inherit;min-width:0;overflow:hidden}
.page-processing-list>summary{cursor:pointer;padding:12px 14px;font-size:13px;font-weight:600;line-height:1.7;overflow-wrap:anywhere}
.page-processing-list .processing-note{margin:0;padding:0 14px 12px;color:#63748a;font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.page-processing-list .processing-rows{max-height:min(360px,44dvh);overflow:auto;overscroll-behavior:contain;border-top:1px solid #e2e9f3;padding:8px;display:flex;flex-direction:column;gap:8px}
.page-processing-list .processing-row{flex-shrink:0;padding:12px;background:#fff;border:1px solid #e2e8f1;border-left:3px solid #bbcae2;border-radius:8px;min-width:0}
.page-processing-list .processing-row[data-tone=error]{border-left-color:#c05c4e}
.page-processing-list .processing-row[data-tone=busy]{border-left-color:#4776d1}
.page-processing-list .processing-row[data-tone=success]{border-left-color:#5b9676}
.page-processing-list .processing-row.is-current{outline:1px solid #7b9de2;background:#f7faff}
.page-processing-list .processing-row>strong{font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.page-processing-list .processing-stages{color:#4f6585;font-size:12px;margin:6px 0;line-height:1.7;overflow-wrap:anywhere}
.page-processing-list .processing-info{font-size:12px;line-height:1.7;margin:5px 0 9px;white-space:pre-wrap;overflow-wrap:anywhere}
.page-processing-list .processing-actions{display:flex;flex-wrap:wrap;gap:7px}
.page-processing-list button{font:inherit;font-size:12px;line-height:1.5;cursor:pointer;border:1px solid #c9d5e6;border-radius:7px;padding:6px 9px;background:#fff;color:#294b82;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.page-processing-list button.processing-primary{background:#ebf1ff;border-color:#b8ccee;color:#244eaa}
.page-processing-list button:disabled{opacity:.55;cursor:wait}
