.uq-overlay { z-index: 150; }
.uq-panel { width: min(1040px, 100%); max-height: calc(100dvh - 28px); padding: clamp(18px,3vw,30px); border-radius: 24px; background: #101515; overflow-y: auto; }
.uq-header { display: flex; align-items: flex-start; gap: 20px; justify-content: space-between; }
.uq-header h2 { font-size: clamp(24px,4vw,36px); letter-spacing: -.04em; line-height: 1.15; margin: 5px 0 10px; }
.uq-header .eyebrow { color: #b5f0d4; font-size: 10px; letter-spacing: .16em; margin: 0; }
.uq-header .muted { font-size: 12px; margin: 0; }
.uq-header > .btn { flex: none; }
.uq-counts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin: 22px 0 16px; }
.uq-counts > div { padding: 14px 16px; border: 1px solid #293631; background: #19221e; border-radius: 14px; display: grid; gap: 6px; }
.uq-counts strong { color: #b5f0d4; font-size: 29px; font-weight: 650; letter-spacing: -.03em; line-height: 1; }
.uq-counts span { font-size: 11px; color: #a0b5aa; }
.uq-active { border-left: 3px solid #b5f0d4; padding: 10px 14px; background: #17231e; color: #d0e6d9; font-size: 12px; line-height: 1.6; border-radius: 0 10px 10px 0; overflow-wrap: anywhere; }
.uq-toolbar { display: grid; grid-template-columns: minmax(0,1fr) 210px; gap: 10px; margin: 18px 0 12px; }
.uq-toolbar input,.uq-toolbar select { box-sizing: border-box; width: 100%; min-height: 44px; border-radius: 12px; background: #1b2220; border: 1px solid #38433d; padding: 10px 12px; color: #f3f5f3; font-family: inherit; font-size: 13px; }
.uq-search { min-width: 0; }
.uq-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.uq-actions .btn,.uq-footer .btn { min-height: 40px; font-size: 11px; padding: 8px 12px; border-radius: 10px; white-space: normal; }
.uq-notice { color: #a7b9af; font-size: 11px; line-height: 1.65; margin: 14px 0; }
.uq-list { display: grid; gap: 10px; }
.uq-row { display: grid; grid-template-columns: 64px minmax(0,1fr) 150px; gap: 14px; align-items: start; border: 1px solid #2b3530; background: #171d1a; border-radius: 16px; padding: 14px; }
.uq-thumb { position: relative; display: grid; place-items: center; width: 64px; height: 78px; overflow: hidden; border-radius: 10px; background: #29322e; color: #93aa9c; font-size: 25px; }
.uq-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.uq-body { min-width: 0; }
.uq-row-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; margin-bottom: 8px; }
.uq-name { font-size: 12px; font-weight: 600; color: #eff4f0; line-height: 1.5; overflow-wrap: anywhere; }
.uq-percent { font-variant-numeric: tabular-nums; font-size: 13px; color: #c4d9cb; flex: none; }
.uq-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 14px; font-size: 10px; color: #98afa0; margin-bottom: 9px; line-height: 1.5; }
.uq-status { color: #b8c9bf; }
.uq-bar { width: 100%; height: 6px; border-radius: 99px; background: #354139; overflow: hidden; }
.uq-bar > span { display: block; height: 100%; background: #9ce0be; border-radius: inherit; transition: width .18s linear; }
.uq-bytes { font-size: 10px; line-height: 1.6; color: #8fa798; font-variant-numeric: tabular-nums; margin: 7px 0 0; }
.uq-error { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #302322; color: #e6b3a7; font-size: 11px; line-height: 1.6; }
.uq-error p { margin: 4px 0 8px; color: #c6aaa3; }
.uq-error summary { cursor: pointer; font-size: 10px; }
.uq-error code { display: block; padding-top: 5px; font-size: 9px; overflow-wrap: anywhere; }
.uq-row-action { display: grid; gap: 7px; padding-top: 2px; }
.uq-retry { width: 100%; min-height: 38px; border: 1px solid #4a6f59; background: #263d2f; color: #d4efdd; padding: 8px; font-size: 11px; line-height: 1.4; border-radius: 10px; white-space: normal; }
.uq-remote-help { font-size: 10px; line-height: 1.6; color: #95aa9c; overflow-wrap: anywhere; }
.uq-row[data-status="failed"],.uq-row[data-status="missing"] { border-color: #70433d; }
.uq-row[data-status="stalled"] { border-color: #8f703d; }
.uq-row[data-status="stalled"] .uq-status,.uq-row[data-status="waiting"] .uq-status { color: #ecc889; }
.uq-row[data-status="confirming"] .uq-bar > span { background: #e5c98e; }
.uq-row[data-status="uploaded"] .uq-status { color: #b5f0d4; }
.uq-row[data-status="uploaded"] { background: #14221a; }
.uq-panel button:disabled { opacity: .45; cursor: default; }
.uq-panel [hidden] { display: none !important; }
.uq-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.uq-footer > span { font-size: 11px; color: #b8c9bf; text-align: center; }
.uq-footnote { margin: 16px 0 0; color: #83998b; font-size: 10px; line-height: 1.65; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.apple-pill-bar { flex-wrap: wrap; }
@media(max-width: 600px) {
  .uq-panel { border-radius: 18px; padding: 16px 12px; max-height: calc(100dvh - 16px); }
  .uq-counts { gap: 6px; }
  .uq-counts > div { padding: 12px 8px; border-radius: 10px; }
  .uq-counts strong { font-size: 25px; }
  .uq-counts span { font-size: 9px; line-height: 1.4; }
  .uq-toolbar { grid-template-columns: 1fr; gap: 8px; }
  .uq-row { grid-template-columns: 48px minmax(0,1fr); gap: 10px; padding: 12px 10px; }
  .uq-thumb { width: 48px; height: 64px; }
  .uq-row-action { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .uq-retry { width: auto; max-width: 100%; font-size: 10px; }
  .uq-name { font-size: 11px; }
  .uq-row-head { gap: 6px; }
}
@media(prefers-reduced-motion: reduce) { .uq-bar > span { transition: none; } }
.uq-panel button:focus-visible, .uq-panel input:focus-visible, .uq-panel select:focus-visible { outline: 2px solid #b5f0d4; outline-offset: 4px; }
