.summary-phase #uploads{--view-accent:#235bc0;--view-soft:#eef4ff;--view-strong:#214887}
.summary-phase #uploads .upload-page-heading{padding-bottom:16px;margin-bottom:20px}
.summary-phase #uploads h1{margin:4px 0 0;font-size:28px;line-height:1.2;font-weight:800}
.summary-phase #uploads #uploadForm{display:flex;align-items:center;gap:16px;margin-bottom:24px;padding:16px;border:1px solid #d2deef;border-left:1px solid #d2deef;background:linear-gradient(115deg,#f6faff,#edf5ff);box-shadow:0 3px 10px #2547770b}
.summary-phase #uploads .upload-form-icon,.summary-phase #uploads .upload-file-icon{display:grid;place-items:center;flex:none;border-radius:8px;color:#285cb2;background:#e2edff}
.summary-phase #uploads .upload-form-icon{width:44px;height:44px}
.summary-phase #uploads .upload-form-icon svg{width:24px;height:24px}
.summary-phase #uploads #uploadForm label{max-width:none;flex:1;gap:7px;color:#163353;font-size:14px}
.summary-phase #uploads #uploadForm input[type=file]{min-height:34px;padding:0;border:0;background:transparent;box-shadow:none;font-size:14px}
.summary-phase #uploads input::file-selector-button{margin-right:12px;padding:8px 12px;border:1px solid #bdd0ea;border-radius:6px;background:#fff;color:#25496f;font:inherit;font-weight:700;cursor:pointer}
.summary-phase #uploads #uploadForm small{color:#5c718e;font-size:12px;font-weight:500}
.summary-phase #uploads :is(#uploadForm,#preview) button{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:700}
.summary-phase #uploads :is(#uploadForm,#preview) button svg{width:17px;height:17px;flex:none}
.summary-phase #uploads .upload-library-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:0 0 14px;flex-wrap:wrap}
.summary-phase #uploads .upload-tabs{display:flex;align-items:center;gap:4px;padding:4px;background:#e8eff8;border:1px solid #d2deee;border-radius:8px}
.summary-phase #uploads .upload-tabs button{display:flex;align-items:center;gap:9px;min-height:36px;padding:7px 13px;border:1px solid transparent;background:transparent;color:#526c8c;box-shadow:none;font-size:13px;font-weight:700}
.summary-phase #uploads .upload-tabs button[aria-pressed=true]{background:#fff;border-color:#ccdaed;color:#173f78;box-shadow:0 2px 5px #23436b12}
.summary-phase #uploads .upload-tabs span{padding:2px 6px;min-width:22px;border-radius:5px;background:#dce6f4;color:#426080;font-size:11px;text-align:center}
.summary-phase #uploads .upload-tabs button[aria-pressed=true] span{background:#e6efff;color:#2457a8}
.summary-phase #uploads .upload-search{position:relative;width:280px;flex:none}
.summary-phase #uploads .upload-search svg{position:absolute;left:12px;top:12px;width:17px;height:17px;color:#67809f;pointer-events:none}
.summary-phase #uploads #uploadSearch{padding:9px 12px 9px 37px;min-height:40px;border-color:#c7d7ed;border-radius:8px;font-size:13px;box-shadow:none}
.summary-phase #uploads .upload-library-table{border:1px solid #cddbec;background:#fff;box-shadow:0 4px 16px #24416c0b}
.summary-phase #uploads .upload-library-table table{min-width:920px;table-layout:auto}
.summary-phase #uploads .upload-library-table th{padding:12px 15px;background:#edf3fa;color:#456082;font-size:12px;font-weight:800;border-bottom:1px solid #cfdded}
.summary-phase #uploads .upload-library-table th:first-child{width:31%}
.summary-phase #uploads .upload-library-table th:nth-child(2){width:23%}
.summary-phase #uploads .upload-library-table #history{min-width:0}
.summary-phase #uploads .upload-library-table #history td{padding:16px 15px;vertical-align:middle;background:#fff;border-bottom:1px solid #e3ebf5;font-size:14px;white-space:normal}
.summary-phase #uploads .upload-library-table #history tr:last-child td{border-bottom:0}
.summary-phase #uploads .upload-library-table #history tr:hover td{background:#f7faff}
.summary-phase #uploads .upload-library-table #history td:nth-child(4){min-width:175px}
.summary-phase #uploads .upload-library-table #history td strong{font-size:14px;font-weight:750;color:#274367}
.summary-phase #uploads .upload-library-table #history td small{margin-top:5px;color:#657b96;font-size:12px;font-weight:500;line-height:1.45;white-space:normal}
.summary-phase #uploads .upload-file-cell{display:flex;gap:12px;align-items:center;min-width:0}
.summary-phase #uploads .upload-file-cell>div{min-width:0}
.summary-phase #uploads .upload-file-icon{width:38px;height:42px;background:#edf3ff;color:#4773b7}
.summary-phase #uploads .upload-file-icon svg{width:22px;height:22px}
.summary-phase #uploads .upload-file-name{display:inline-block;color:#173b6a;font-size:15px;font-weight:800;text-decoration:none;overflow-wrap:anywhere}
.summary-phase #uploads .upload-file-name:hover{text-decoration:underline;text-underline-offset:3px}
.summary-phase #uploads .status-pill{gap:6px;padding:4px 9px;font-size:12px;min-height:26px;border-radius:6px}
.summary-phase #uploads .status-committed::before{content:'';width:6px;height:6px;border-radius:50%;background:#149361}
.summary-phase #uploads .status-archived{color:#846328;background:#fff5df;border-color:#ead9af}
.summary-phase #uploads .upload-actions{gap:8px;min-width:182px;flex-wrap:nowrap}
.summary-phase #uploads .upload-actions button{gap:6px;min-height:34px;padding:7px 10px;font-size:12px;border-radius:6px;box-shadow:none}
.summary-phase #uploads .upload-actions button svg{width:15px;height:15px;flex:none}
.summary-phase #uploads .upload-actions .upload-visibility{background:#f2f6ff;color:#285592;border-color:#c1d2eb}
.summary-phase #uploads .upload-actions .upload-danger{background:#fff;color:#a34154;border-color:#e5c8d1}
.summary-phase #uploads .upload-actions .upload-danger:hover{background:#fff0f3;border-color:#d994a5}
.summary-phase #uploads .upload-library-count{margin:10px 0 24px;color:#6a7f98;font-size:12px}
.summary-phase #uploads #uploadLibraryError{padding:12px 15px;margin:0 0 14px;border:1px solid #e2c3cd;border-radius:8px;background:#fff3f6;color:#943b52;font-size:14px;line-height:1.5}
.summary-phase #uploads .upload-library-table #history .upload-empty{padding:36px 15px;text-align:center;color:#6d829c}
.summary-phase #uploads .upload-empty svg{display:block;width:30px;height:30px;margin:0 auto 10px;color:#829ab9}
.summary-phase #uploads .upload-empty strong{display:block}
.summary-phase #uploads .upload-secondary{border-top:1px solid #cad9eb}
.summary-phase #uploads .upload-secondary>details{border-bottom:1px solid #cad9eb;background:transparent}
.summary-phase #uploads .upload-secondary summary{display:flex;align-items:center;gap:10px;padding:17px 0;cursor:pointer;list-style:none;color:#26466d}
.summary-phase #uploads .upload-secondary summary::-webkit-details-marker{display:none}
.summary-phase #uploads .upload-secondary summary strong{font-size:15px;font-weight:800}
.summary-phase #uploads .upload-secondary summary>svg{width:18px;height:18px;color:#6082b3}
.summary-phase #uploads .upload-panel-chevron{margin-left:auto;transition:transform .15s}
.summary-phase #uploads details[open] .upload-panel-chevron{transform:rotate(180deg)}
.summary-phase #uploads .upload-panel-content{padding:0 0 18px;min-width:0}
.summary-phase #uploads .upload-filter-actions{justify-content:flex-start;margin-bottom:12px}
.summary-phase #uploads .upload-audit-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 12px}
.summary-phase #uploads .upload-audit-toolbar #auditStatus{margin:0;background:transparent;border:0;padding:0;font-size:12px}
.summary-phase #uploads #auditExport{gap:7px;box-shadow:none}
.summary-phase #uploads #auditExport svg{width:15px;height:15px}
.summary-phase #uploads .audit-categories{flex-wrap:wrap;margin-bottom:12px;max-width:100%}
.summary-phase #uploads #auditCategories button[aria-pressed=true]{background:#235bc0;border-color:#235bc0;color:#fff;box-shadow:0 2px 5px #23436b20}
.summary-phase #uploads #auditCategories button[aria-pressed=true] span{background:#ffffff26;color:#fff}
@media(max-width:600px){
  .summary-phase #uploads #auditCategories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
  .summary-phase #uploads #auditCategories button{width:100%;min-width:0;min-height:44px;justify-content:space-between;text-align:left}
}
.summary-phase #uploads .audit-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0;color:#355477;font-size:13px;font-weight:600}
.summary-phase #uploads .audit-pagination>div{display:flex;gap:6px;flex:none}
.summary-phase #uploads .audit-pagination button{display:grid;place-items:center;width:36px;height:36px;padding:6px}
.summary-phase #uploads .audit-pagination svg{width:18px;height:18px}
.summary-phase #uploads #auditEvents td{overflow-wrap:anywhere;white-space:normal}
.summary-phase #uploadDeleteDialog{width:430px;border:1px solid #d2ddeb;border-radius:8px;background:#fff;color:#274367;padding:24px;box-shadow:0 22px 70px #0a214745}
.summary-phase #uploadDeleteDialog h2{margin:15px 0 10px;font-size:22px;color:#183c66}
.summary-phase #uploadDeleteDialog .upload-delete-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:8px;color:#b3475e;background:#fff0f4}
.summary-phase #uploadDeleteDialog .upload-delete-icon svg{width:23px;height:23px}
.summary-phase #uploadDeleteDialog .upload-delete-name{font-size:15px;font-weight:800;overflow-wrap:anywhere}
.summary-phase #uploadDeleteDialog .muted{font-size:14px;color:#687c93;line-height:1.6}
.summary-phase #uploadDeleteDialog .actions{justify-content:flex-end;margin:22px 0 0;gap:9px}
.summary-phase #uploadDeleteDialog button{display:flex;align-items:center;gap:7px;font-size:13px;font-weight:700;min-height:39px}
.summary-phase #uploadDeleteDialog button svg{width:16px;height:16px}
.summary-phase #uploadDeleteDialog .upload-delete-confirm{background:#a93b53;border-color:#a93b53;color:#fff}
.summary-phase #uploadDeleteDialog .upload-delete-confirm:hover{background:#8e2d42;color:#fff}
@media(max-width:600px){
  .summary-phase #uploads #uploadForm{gap:12px;padding:13px;flex-wrap:wrap}
  .summary-phase #uploads #uploadForm label{flex:1 1 calc(100% - 60px)}
  .summary-phase #uploads #uploadForm button{width:100%;min-height:40px}
  .summary-phase #uploads .upload-library-toolbar{gap:12px}
  .summary-phase #uploads .upload-tabs{width:100%;gap:2px}
  .summary-phase #uploads .upload-tabs button{justify-content:center;flex:1;padding:7px 8px;gap:6px}
  .summary-phase #uploads .upload-search{width:100%}
  .summary-phase #uploads .upload-library-table table{min-width:0}
  .summary-phase #uploads .upload-library-table #history tr{display:grid;grid-template-columns:1fr 1fr;gap:0;padding:5px 13px;background:#fff;margin-bottom:12px}
  .summary-phase #uploads .upload-library-table #history td{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:9px 0;background:transparent!important;border:0;min-width:0;font-size:14px}
  .summary-phase #uploads .upload-library-table #history td:first-child{grid-column:1/-1;padding-bottom:13px;border-bottom:1px solid #e3ebf5}
  .summary-phase #uploads .upload-library-table #history td:first-child::before{content:none}
  .summary-phase #uploads .upload-library-table #history td:nth-child(2){grid-column:1/-1}
  .summary-phase #uploads .upload-library-table #history td:nth-child(4){min-width:0}
  .summary-phase #uploads .upload-library-table #history td:nth-child(5){grid-column:1/-1;padding-top:12px;border-top:1px solid #e3ebf5}
  .summary-phase #uploads .upload-library-table #history td:nth-child(5)::before{content:none}
  .summary-phase #uploads .upload-library-table #history td[colspan]{grid-column:1/-1;align-items:center;padding:25px 0}
  .summary-phase #uploads .upload-actions{width:100%;min-width:0;justify-content:flex-end}
  .summary-phase #uploads .upload-file-name{font-size:15px}
  .summary-phase #uploads .upload-library-table #history td small{font-size:12px}
  .summary-phase #uploads .upload-audit-toolbar{align-items:flex-start}
}
.summary-phase #uploads .preview-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:12px 0}
.summary-phase #uploads .preview-toolbar .actions{display:flex;gap:6px;margin:0}
.summary-phase #uploads .preview-toolbar button{width:36px;height:36px;padding:6px}
.summary-phase #uploads .preview-warning{padding:12px;border-left:4px solid #b26a00;background:#fff3d8;color:#613b00;font-weight:700}
.summary-phase #uploads .preview-table{overflow:auto;max-height:520px}
.summary-phase #uploads .preview-table table{min-width:1100px}
.summary-phase #uploads .preview-table th{position:sticky;top:0;z-index:1;background:#e8f0f8}
.summary-phase #uploads #previewRows .preview-mismatch td{background:#fff3d8;color:#4b320b;border-bottom:1px solid #e6c689}
.summary-phase #uploads #previewRows .preview-mismatch td:first-child{border-left:4px solid #b26a00;font-weight:800}
.summary-phase #uploads #previewRows small{display:block;white-space:normal;margin-top:4px}
.summary-phase #uploads .preview-accept{margin:14px 0;padding:12px;background:#fff3d8;color:#613b00;font-weight:700;align-items:flex-start}
.summary-phase #uploads #previewRows .preview-blocked td{background:#fff0f1;color:#821d2c;border-bottom:1px solid #e8a9b2}
.summary-phase #uploads #previewRows .preview-blocked td:first-child{border-left:4px solid #b82943;font-weight:800}
.summary-phase #uploads .upload-channel-issues{margin:20px 0;padding:16px 0;border-top:2px solid #b82943;scroll-margin-top:100px}
.summary-phase #uploads .upload-channel-issues h2{font-size:18px;font-weight:800}
.summary-phase #uploads .upload-channel-issues table{min-width:700px;table-layout:fixed}
.summary-phase #uploads .upload-channel-issues th:last-child{width:36%}
.summary-phase #uploads .upload-channel-issues td{vertical-align:top;white-space:normal;overflow-wrap:anywhere;background:#fff6f7;color:#59252d}
.summary-phase #uploads .channel-issue-status{font-weight:700}
.summary-phase #uploads .upload-channel-issues details span{display:block;max-height:160px;overflow:auto;margin-top:8px}
@media(max-width:640px){
  .summary-phase #uploads .upload-channel-issues table{min-width:0;width:100%}
  .summary-phase #uploads .upload-channel-issues thead{display:none}
  .summary-phase #uploads .upload-channel-issues tbody,.summary-phase #uploads .upload-channel-issues tr,.summary-phase #uploads .upload-channel-issues td{display:block;width:auto}
  .summary-phase #uploads .upload-channel-issues tr{border-bottom:2px solid #cddbec;padding:8px 0}
  .summary-phase #uploads .upload-channel-issues td{border:0;padding:6px 12px}
  .summary-phase #uploads .upload-channel-issues td::before{content:attr(data-label);display:block;font-size:12px;font-weight:600;margin-bottom:3px;color:#53667a}
}
.summary-phase #uploads .upload-channel-issues select,.summary-phase #uploads .upload-channel-issues input{width:100%;max-width:100%;min-width:0;margin-bottom:8px}
.summary-phase #uploads .upload-channel-issues small{display:block;font-size:12px;line-height:1.5}
.summary-phase #uploads .upload-channel-issues .actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.summary-phase #uploads .preview-channel-changes{padding:12px;margin-bottom:12px;background:#e9f6f1;color:#175641;border-left:4px solid #18805b;overflow-wrap:anywhere}
.summary-phase #uploads #uploadChannelIssueRows tr[hidden]{display:none!important}
.summary-phase #uploads :is(#channelIssueSearch,#previewSearch){max-width:420px;width:100%;margin:8px 0 14px;min-height:40px}
.summary-phase #uploads [data-channel-target-search]{background:#fff;border-color:#b9cbe3;color:#173f68}
.summary-phase #uploads #uploadChannelIssueCount{font-size:13px;white-space:normal}
.summary-phase #uploads .entry-summary{padding:12px;margin:12px 0;background:#edf6ff;border:1px solid #bed6ef;border-radius:8px;color:#234c75;font-weight:700}
.summary-phase #uploads .source-entries{min-width:230px;max-height:240px;overflow:auto;margin-top:8px;white-space:normal}
.summary-phase #uploads .source-entries>div{padding:8px 0;border-bottom:1px solid #d2deee}
.summary-phase #uploads .source-entries summary{cursor:pointer;font-weight:700}
/* Keep channel identity and actions aligned at every directory width. */
#channelDirectorySearch{width:min(100%,420px);margin:12px 0}
#channelDirectory{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));gap:10px}
#channelDirectory .channel-directory-row{display:flex;align-items:center;gap:12px;min-width:0;padding:12px;border:1px solid #c6d8eb;border-radius:8px;background:linear-gradient(120deg,#f8fcff,#edf3fc);box-shadow:0 3px 9px #16345212}
.directory-logo{display:flex;align-items:center;justify-content:center;flex:0 0 64px;width:64px;height:48px;border:1px solid #d4e0ef;border-radius:6px;background:#fff;color:#123456;font-size:16px;font-weight:800;overflow:hidden}
.directory-logo img{width:100%;height:100%;object-fit:contain}
.directory-channel-name{flex:1;min-width:0;overflow-wrap:anywhere;color:#173353}
.directory-channel-name strong{display:block;font-size:15px;font-weight:750}
.directory-channel-name small{display:block;margin-top:3px;color:#536783;font-size:12px}
.channel-directory-actions{display:flex;flex:0 0 auto;gap:6px}
.channel-directory-actions button{display:grid;place-items:center;width:36px;height:36px;padding:8px}
.channel-directory-actions svg{width:18px;height:18px}
#channelEditDialog{width:min(520px,calc(100vw - 24px));max-height:calc(100dvh - 32px);overflow:auto;box-sizing:border-box}
#channelEditForm{display:grid;gap:16px;min-width:0}
#channelEditForm h2,#channelEditForm label,#channelEditForm .actions{margin:0}
#channelEditForm .form-error:empty{display:none}
#channelEditForm label{min-width:0}
#channelEditForm input{max-width:100%;box-sizing:border-box}
#channelEditForm .channel-logo-editor{display:flex;gap:16px;align-items:center;min-width:0}
#channelLogoPreview{width:88px;height:72px;flex-basis:88px}
#channelEditForm .channel-logo-editor label{flex:1}
#channelEditForm small{font-size:12px;color:#536783}
#channelEditForm .actions{justify-content:flex-end;gap:8px}
#channelEditForm .actions button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;height:40px;white-space:nowrap}
#channelEditForm .actions svg{width:17px;height:17px;flex:none}
@media(max-width:480px){#channelEditForm .channel-logo-editor{flex-direction:column;align-items:flex-start}#channelDirectory .channel-directory-row{gap:8px;padding:10px}.directory-logo{flex-basis:48px;width:48px;height:40px}}
