/* R9 shared upload control (replaces the native file input look site-wide).
   Loaded by both the front and admin layouts, after the theme stylesheet.
   The real <input type="file"> stays in the DOM, visually hidden; the
   button/drop-zone + preview row are the visible control. */
.upick{position:relative;border:2px dashed #c7d7f8;border-radius:12px;padding:14px;background:#f8fbff;transition:border-color .15s,background .15s}
.upick:hover{border-color:var(--blue,#2563eb)}
.upick.drag{border-color:var(--blue,#2563eb);background:#eef4ff}
.upick-input{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;margin:0!important;opacity:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0!important}
.upick-btn{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;width:100%;min-height:64px;padding:8px 10px;background:transparent;border:0;cursor:pointer;color:var(--ink,#111827);font:inherit}
.upick-btn .ic{color:var(--blue,#2563eb)}
.upick-btn-t{font-size:14px;font-weight:600}
.upick-btn-s{font-size:12px;color:var(--gray,#6b7280);text-align:center}
.upick-prev{display:flex;align-items:center;gap:10px;margin-top:10px;background:#fff;border:1px solid var(--line,#e5e7eb);border-radius:10px;padding:8px}
.upick-prev[hidden]{display:none}
.upick-img{width:48px;height:48px;flex:0 0 48px;object-fit:cover;border-radius:8px;border:1px solid var(--line,#e5e7eb);background:#f3f4f6}
.upick-meta{flex:1 1 auto;min-width:0}
.upick-name{font-size:13px;font-weight:600;color:var(--ink,#111827);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.upick-sub{font-size:12px;color:var(--gray,#6b7280);margin-top:1px}
.upick-del{flex:0 0 36px;width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;background:#fff;border:1px solid var(--line,#e5e7eb);border-radius:8px;color:var(--red,#dc2626);cursor:pointer;padding:0}
.upick-del:active{background:#fef2f2}
