/* 스케줄 올리기 창 — style.css의 토큰(라이트/다크)을 그대로 쓴다. 인라인 스타일 없음. */
.up-count { display: inline-block; min-width: 18px; margin-left: 6px; padding: 0 5px; border-radius: 999px; background: #fff; color: #17202a; font-size: 12px; font-weight: 750; text-align: center; line-height: 18px; }
html.up-lock { overflow: hidden; }
.up-root { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 16px; }
.up-scrim { position: absolute; inset: 0; background: rgba(8, 14, 22, .55); }
.up-dlg { position: relative; display: flex; flex-direction: column; width: min(880px, 100%); max-height: min(92vh, 900px); background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; }
.up-dlg:focus { outline: none; }
.up-head { flex: none; }
.up-body { overflow: auto; align-content: start; padding-bottom: 20px; }
.up-note { margin: 0; }

.up-drop { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 26px 16px; border: 2px dashed var(--line); border-radius: 12px; background: var(--surface-2); }
.up-drop .ico.big { color: var(--accent); }
.up-drop-t { font-size: 17px; font-weight: 700; }
.up-drop-h { margin-bottom: 6px; }
.up-over { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--accent-soft) 88%, transparent); border: 3px dashed var(--accent); border-radius: 14px; font-size: 20px; font-weight: 750; color: var(--accent); pointer-events: none; }

.up-errs:empty { display: none; }
.up-errs .notice.warn { justify-content: space-between; align-items: flex-start; }
.up-errl { margin: 4px 0 0; padding-left: 18px; list-style: disc; font-weight: 500; }
.up-errl li, .up-errs .notice > div, .up-note-l, .up-res li { overflow-wrap: anywhere; min-width: 0; }     /* a long file name must wrap inside the box, not spill out of the dialog */
.up-sum { font-weight: 700; }
.up-empty { text-align: center; padding: 8px; }

.up-list { display: grid; gap: 10px; }
.up-row { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); border-left-width: 5px; }
.up-row[data-state="uploading"], .up-row[data-state="processing"] { border-left-color: var(--info); }
.up-row[data-state="done"], .up-row[data-state="duplicate"] { border-left-color: var(--ok); }
.up-row[data-state="failed"] { border-left-color: var(--bad); }
.up-row[data-state="paused"] { border-left-color: var(--warn); }
.up-r1 { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.up-nm { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; min-width: 0; flex: 1 1 240px; }
.up-name { font-weight: 700; overflow-wrap: anywhere; }
.up-fac { min-height: 32px; min-width: 150px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.up-fac:disabled { opacity: .8; }
.up-upd { min-height: 32px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: inherit; font: inherit; }
.up-upd:disabled { opacity: .8; }
.up-fac.need { border-color: var(--bad); box-shadow: 0 0 0 2px var(--bad-soft); }
.up-r2 { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.up-bar { appearance: none; -webkit-appearance: none; flex: 1 1 220px; height: 10px; border: 0; border-radius: 999px; background: var(--surface-2); overflow: hidden; accent-color: var(--accent); }
.up-bar::-webkit-progress-bar { background: var(--surface-2); border-radius: 999px; }
.up-bar::-webkit-progress-value { background: var(--accent); border-radius: 999px; transition: width .2s; }
.up-bar::-moz-progress-bar { background: var(--accent); border-radius: 999px; }
.up-bar.bad::-webkit-progress-value { background: var(--bad); } .up-bar.bad::-moz-progress-bar { background: var(--bad); }
.up-row[data-state="done"] .up-bar::-webkit-progress-value, .up-row[data-state="duplicate"] .up-bar::-webkit-progress-value { background: var(--ok); }
.up-row[data-state="done"] .up-bar::-moz-progress-bar, .up-row[data-state="duplicate"] .up-bar::-moz-progress-bar { background: var(--ok); }
.up-stat { font-size: 12px; white-space: normal; }
.up-note-l { margin: 0; font-size: 13px; }
.up-note-l.err { color: var(--bad); font-weight: 600; } .up-note-l.warn { color: var(--warn); font-weight: 600; } .up-note-l.info { color: var(--muted); }
.up-res { display: grid; gap: 2px; margin: 0; padding: 8px 10px; border-radius: 8px; background: var(--ok-soft); color: var(--text); font-size: 13px; }
.up-res li.warn { color: var(--warn); font-weight: 650; }
.up-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.up-btns:not(:has(> :not([hidden]))) { display: none; }
.up-foot { flex: none; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--surface); }
.up-grow { flex: 1; }

@media (max-width: 760px) {
  .up-root { padding: 0; align-items: stretch; }
  .up-dlg { width: 100%; max-height: none; height: 100%; border-radius: 0; border: 0; }
  .up-drop { padding: 18px 12px; }
  .up-fac, .up-upd { width: 100%; }
  .up-btns .btn { flex: 1 1 auto; justify-content: center; }
  .up-foot .btn { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .up-bar::-webkit-progress-value { transition: none; } }

/* ---- UI 감사 보완 (2026-10-05) ---- */
.up-updw { display: inline-flex; flex-direction: column; gap: 1px; font-size: 11px; line-height: 1.2; }
.up-updw .up-updl { font-weight: 600; }
.up-fac, .up-upd { min-height: 36px; }
@media (max-width: 760px) { .up-updw { width: 100%; } .up-btns .btn, .up-foot .btn { min-height: 40px; } }
.up-we { margin: 6px 0 0; padding: 8px 10px; border-left: 3px solid var(--warn, #b26a00); background: var(--warn-soft); border-radius: 6px; font-size: 13px; }
.up-we p { margin: 0 0 4px; }
