/* Upload page restyle (preview, Oct 2026). Layers on /styles.css; brand blue + app font from its variables. */
body:has(.up2) { background: #F2F3F5; }
.up2 { --up2-border: #E3E6EB; --up2-ink: #1B1F24; --up2-muted: #5F6875; --up2-blue: var(--primary-color, #0082ff); --up2-blue-soft: #E8F3FF; --up2-green: #1E8E4E; --up2-red: #C2362B; }
.up2 .up2-page { max-width: 880px; width: 100%; margin: 40px auto 64px; padding: 0 32px; box-sizing: border-box; text-align: left; }
.up2-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.up2-title { font-family: var(--primary-font); font-size: 30px; font-weight: 600; color: var(--up2-ink); margin: 0 0 6px; letter-spacing: -0.01em; }
.up2-sub { font-size: 15px; color: var(--up2-muted); margin: 0; max-width: 520px; line-height: 1.5; }

/* Division pill toggle (only rendered when the user has >1 division) */
.up2 .division-picker { margin: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.up2 .division-picker::before { content: "Division"; font-size: 12px; font-weight: 600; color: var(--up2-muted); text-transform: uppercase; letter-spacing: .06em; }
.up2 .division-picker-buttons { display: inline-flex; gap: 2px; padding: 3px; background: #fff; border: 1px solid var(--up2-border); border-radius: 999px; flex-wrap: wrap; justify-content: flex-end; }
.up2 .division-button { border: 0; background: transparent; color: var(--up2-muted); font-size: 13px; font-weight: 600; padding: 6px 14px 6px 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.up2 .division-button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #C4CAD3; }
.up2 .division-button:hover:not(.selected) { background: #F2F3F5; color: var(--up2-ink); border: 0; }
.up2 .division-button.selected { background: var(--up2-blue-soft); color: var(--up2-blue); border: 0; }
.up2 .division-button.selected::before { background: var(--up2-blue); }

/* Drop zone card */
.up2 .drop-zone.up2-drop { width: auto; height: auto; min-height: 260px; margin: 0; padding: 40px 24px; background: #fff; border: 2px dashed #C9D3DF; border-radius: 16px; box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 4px 16px rgba(16,24,40,.04); color: var(--up2-muted); }
.up2 .drop-zone.up2-drop:hover, .up2 .drop-zone.up2-drop:focus-visible { border-color: var(--up2-blue); outline: none; }
.up2 .drop-zone.up2-drop.dragover { border-color: var(--up2-blue); background: var(--up2-blue-soft); }
.up2 .ready-message { flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.up2-drop-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--up2-blue-soft); color: var(--up2-blue); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.up2-drop-title { font-size: 20px; font-weight: 600; color: var(--up2-ink); }
.up2-drop-hint { font-size: 14px; }
.up2-drop-hint strong { color: var(--up2-ink); font-weight: 600; }
.up2-browse { margin-top: 10px; background: var(--up2-blue); color: #fff; font-weight: 600; font-size: 14px; padding: 9px 18px; border-radius: 8px; }
.up2-drop:hover .up2-browse { background: var(--primary-hover-color, #005bb5); }
.up2-drop-meta { margin-top: 8px; font-size: 12px; color: #8A93A0; }

/* Processing card */
.up2-queue { margin-top: 20px; background: #fff; border: 1px solid var(--up2-border); border-radius: 16px; box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 4px 16px rgba(16,24,40,.04); padding: 20px 24px 8px; }
.up2-queue.hidden { display: none; }
.up2-queue-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.up2-queue-title { font-size: 17px; font-weight: 600; color: var(--up2-ink); margin: 0; }
.up2-chips { display: flex; gap: 6px; }
.up2-chip { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.up2-chip.active { background: var(--up2-blue-soft); color: var(--up2-blue); }
.up2-chip.ready { background: #E7F6EE; color: var(--up2-green); }
.up2-chip.failed { background: #FDECEA; color: var(--up2-red); }
.up2-queue-note { font-size: 13px; color: var(--up2-muted); margin: 6px 0 12px; }
.up2-queue-note a { color: var(--up2-blue); }
.up2 #upload-progress-container { margin: 0; width: auto; }
.up2 .file-progress-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; margin: 0; border: 0; border-top: 1px solid var(--up2-border); border-radius: 0; background: none; box-shadow: none; width: auto; }
.up2-file-icon { flex: none; width: 38px; height: 38px; border-radius: 10px; background: #F2F3F5; color: var(--up2-muted); display: inline-flex; align-items: center; justify-content: center; }
.up2 .file-progress-item.success .up2-file-icon { background: #E7F6EE; color: var(--up2-green); }
.up2 .file-progress-item.error .up2-file-icon { background: #FDECEA; color: var(--up2-red); }
.up2-file-body { flex: 1; min-width: 0; }
.up2 .file-info { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.up2 .file-name { font-size: 14px; font-weight: 600; color: var(--up2-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-file-link { font-size: 13px; font-weight: 600; color: var(--up2-blue); text-decoration: none; white-space: nowrap; }
.up-file-link:hover { text-decoration: underline; }
.up2 .file-status-text { font-size: 13px; color: var(--up2-muted); margin: 2px 0 8px; text-align: left; }
.up2 .file-progress-item.error .file-status-text { color: var(--up2-red); }
.up2 .progress-bar-container { height: 4px; background: #EDF0F3; border-radius: 4px; overflow: hidden; margin: 0; }
.up2 .progress-bar { height: 100%; background: var(--up2-blue); border-radius: 4px; transition: width .3s ease; }
.up2 .file-progress-item.success .progress-bar { background: var(--up2-green); }
.up2 .file-progress-item.error .progress-bar { background: var(--up2-red); }
.up2 .file-progress-item.success .progress-bar-container { display: none; }
.up-stages { list-style: none; display: flex; align-items: center; gap: 6px; padding: 0; margin: 10px 0 0; flex-wrap: wrap; }
.up-stages[hidden] { display: none; }
.up-stage { font-size: 12px; font-weight: 600; color: #8A93A0; background: #F2F3F5; padding: 3px 10px; border-radius: 999px; }
.up-stage.current { color: var(--up2-blue); background: var(--up2-blue-soft); }
.up-stage.done { color: var(--up2-green); background: #E7F6EE; }
.up-stage.done::before { content: "\2713\00a0"; }
.up-stage-sep { width: 14px; height: 1px; background: #C9D3DF; }
.up2 .status-message.error-message { border-radius: 10px; margin-bottom: 16px; }
.up2 .up2-page.page-container { background: transparent; border: 0; box-shadow: none; padding-top: 0; }
.up2 .up2-queue .up2-queue-title { font-family: var(--primary-font); font-size: 17px; font-weight: 600; color: var(--up2-ink); margin: 0; }
.up2 .file-progress-item.error .progress-bar-container { display: none; }

/* v20261022b: division selector on its own full-width row, left-aligned, label to the left */
.up2-head { align-items: flex-start; }
.up2-division { margin: 0 0 16px; }
.up2 .division-picker { flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; flex-wrap: nowrap; }
.up2 .division-picker::before { flex: none; }
.up2 .division-picker-buttons { justify-content: flex-start; flex-wrap: wrap; row-gap: 4px; column-gap: 2px; border-radius: 18px; max-width: 100%; }
.up2 .division-button { white-space: nowrap; }
.up2 .division-picker { width: 100%; max-width: none; }
.up2 .division-picker-buttons { width: auto; max-width: calc(100% - 80px); }
.up2 .division-button { min-width: 0; width: auto; flex: none; }
/* v20261022c: no small-caps label; "Select division for upload" line above the pills (replaces the subtitle) */
.up2 .division-picker::before { content: none; display: none; }
.up2 .up2-division-label { margin: 0 0 8px; }
.up2 .division-picker-buttons { max-width: 100%; }
.up2-head { margin-bottom: 12px; }
.up2 .up2-division:not([hidden]) + #page-error-message + .drop-zone { margin-top: 0; }
