/* Upload pop-up of a task (features/upload-review.js): a big drop zone, files with live progress, review number,
   status pills, a note, Submit. */
.modal.up-modal { width: min(560px, calc(100vw - 32px)); border-radius: 18px; overflow: visible; }
.up { display: flex; flex-direction: column; gap: 16px; padding: 22px 24px 20px; color: var(--text); }
.up-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.up-head h2 { margin: 0; font-size: 20px; font-weight: 650; letter-spacing: -0.015em; }
.up-head p { margin: 3px 0 0; font-size: 13px; color: var(--text-2); }
.up-close { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 50%; background: light-dark(#f2f2f5, #26262c); color: var(--text-2); cursor: pointer; transition: background .15s, color .15s; }
.up-close:hover { background: light-dark(#e7e7ec, #2e2e31); color: var(--text); }
.up-close svg { width: 14px; height: 14px; }

.up-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 168px; padding: 24px; border: 1.5px dashed light-dark(#d2d2d8, #3f3f44); border-radius: 14px;
  background: linear-gradient(180deg, var(--bg-home), light-dark(#f5f5f8, #222229)); color: var(--text); font: inherit; cursor: pointer; transition: border-color .18s, background .18s, transform .18s; }
.up-drop:hover { border-color: light-dark(#a9c8f0, #335074); background: linear-gradient(180deg, light-dark(#f7faff, #1e1f21), var(--blue-soft)); }
.up-drop.over { border-color: var(--blue); background: light-dark(#eaf3ff, #12243d); transform: scale(1.01); }
.up-drop-ic { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--card); color: var(--blue); box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 6px 16px rgba(0,113,227,.12); margin-bottom: 6px; transition: transform .18s; }
.up-drop.over .up-drop-ic { transform: translateY(-3px); }
.up-drop-ic svg { width: 22px; height: 22px; }
.up-drop-t { font-size: 15px; font-weight: 600; }
.up-drop-s { font-size: 12.5px; color: var(--text-2); }
.up-drop-s u { color: var(--blue); text-decoration: none; font-weight: 500; }

.up-list { display: none; flex-direction: column; gap: 6px; margin: -4px 0 0; padding: 0; list-style: none; max-height: 220px; overflow-y: auto; }
.up-list.has { display: flex; }
.up-item { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 8px; border: 1px solid light-dark(#ececf0, #2a2a2d); border-radius: 12px; background: var(--card); animation: up-in .22s ease-out; }
@keyframes up-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.up-thumb { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 8px; background: light-dark(#f2f2f5, #26262c); color: var(--text-2); overflow: hidden; }
.up-thumb img { width: 100%; height: 100%; object-fit: cover; }
.up-thumb svg { width: 18px; height: 18px; }
.up-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.up-name { font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-sub { display: flex; align-items: center; gap: 10px; }
.up-bar { flex: 1; height: 4px; border-radius: 4px; background: light-dark(#ececf0, #2a2a2d); overflow: hidden; }
.up-bar i { display: block; width: 0; height: 100%; border-radius: 4px; background: var(--blue); transition: width .2s; }
.up-item.done .up-bar i { background: #34c759; }
.up-item.done .up-bar { flex: 0 0 0; }
.up-meta { font-size: 12px; color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.up-item.error { border-color: light-dark(#fbd5d5, #4e1d1d); background: light-dark(#fff8f8, #201e1e); }
.up-item.error .up-bar { display: none; }
.up-item.error .up-meta { color: light-dark(#c0392b, #dd7165); white-space: normal; }
.up-x { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--text-3); cursor: pointer; }
.up-x:hover { background: light-dark(#f2f2f5, #26262c); color: var(--text); }
.up-x svg { width: 13px; height: 13px; }

.up-fields { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.up-field { display: flex; flex-direction: column; gap: 8px; }
.up-field.grow { flex: 1; min-width: 200px; }
.up-label { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.up-rev { display: inline-flex; align-items: center; height: 34px; border: 1px solid light-dark(#e3e3e8, #313135); border-radius: 10px; background: var(--card); overflow: hidden; }
.up-rev button { width: 32px; height: 100%; border: 0; background: none; font: inherit; font-size: 16px; color: var(--text-2); cursor: pointer; }
.up-rev button:hover { background: var(--subtle); color: var(--text); }
.up-rev-n { min-width: 44px; text-align: center; font: 600 14px/1 ui-monospace, Menlo, Consolas, monospace; color: var(--text); }
.up-st { display: flex; flex-wrap: wrap; gap: 6px; }
.up-st-pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border: 1px solid light-dark(#e3e3e8, #313135); border-radius: 999px; background: var(--card); font: inherit; font-size: 12.5px; font-weight: 600; color: var(--text); cursor: pointer; transition: background .15s, border-color .15s, transform .08s; }
.up-st-pill:hover { border-color: light-dark(#c9c9d1, #46464c); }
.up-st-pill:active { transform: scale(.97); }
.up-st-pill.on .up-st-dot { background: currentColor !important; opacity: .85; }
.up-st-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }

.up-note { width: 100%; min-height: 76px; resize: vertical; padding: 11px 13px; border: 1px solid light-dark(#e3e3e8, #313135); border-radius: 12px; font: inherit; font-size: 14px; color: var(--text); background: var(--card); box-sizing: border-box; }
.up-note:focus { outline: none; border-color: rgba(0, 113, 227, .5); box-shadow: 0 0 0 3px rgba(0, 113, 227, .12); }
.up-actions { display: flex; justify-content: flex-end; gap: 8px; }
.up-cancel, .up-submit { height: 40px; padding: 0 18px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s, opacity .15s, transform .08s; }
.up-cancel { border: 0; background: light-dark(#f2f2f5, #26262c); color: var(--text); }
.up-cancel:hover { background: light-dark(#e7e7ec, #2e2e31); }
.up-submit { border: 0; background: var(--blue); color: #fff; min-width: 128px; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 6px 16px rgba(0,113,227,.25); }
.up-submit:hover:not(:disabled) { background: var(--blue-hover); }
.up-submit:active:not(:disabled) { transform: translateY(1px); }
.up-submit:disabled { opacity: .45; cursor: default; box-shadow: none; }
/* status: one dropdown */
.up-st { position: relative; display: block; }
.up-st-btn { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px 0 12px; border: 1px solid light-dark(#e3e3e8, #313135); border-radius: 10px; background: var(--card); font: inherit; font-size: 13px; font-weight: 600; color: var(--text); cursor: pointer; }
.up-st-btn:hover, .up-st-btn[aria-expanded="true"] { border-color: light-dark(#c9c9d1, #46464c); }
.up-st-chev { width: 12px; height: 12px; color: var(--text-3); margin-left: 2px; }
.up-st-name { font-weight: 400; color: var(--text-2); }
.up-st-list { position: absolute; z-index: 5; top: 40px; left: 0; width: 260px; max-height: 240px; overflow-y: auto; padding: 6px; border: 1px solid light-dark(#ececf0, #2a2a2d); border-radius: 12px; background: var(--card); box-shadow: 0 12px 32px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.05); display: grid; gap: 1px; animation: up-in .14s ease-out; }
.up-st-list[hidden] { display: none; }
.up-st-opt { display: flex; align-items: center; gap: 9px; height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--text); text-align: left; cursor: pointer; }
.up-st-opt:hover { background: light-dark(#f4f4f7, #23232a); }
.up-st-opt.on { background: var(--blue-soft); color: var(--blue); }
.up-st-opt .up-st-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
