/* Share (upload) page */
.share-top { position: sticky; top: 0; z-index: 10; height: 64px; display: flex; align-items: center; gap: 10px; padding: 0 12px; background: rgba(251,246,236,.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid #EADBC0; }
.share-top .back { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--maroon); }
.share-top .back svg { width: 24px; height: 24px; }
.share-top .names { flex: 1; text-align: center; font-size: 24px; color: var(--maroon); }
.share-top .names em { color: var(--gold-t); font-weight: 500; }
.share-top .badge-mono { width: 46px; height: 46px; }
.share-top .badge-mono svg { width: 30px; height: 30px; }
.share { padding: 4px 16px calc(40px + var(--safe-b)); display: flex; flex-direction: column; gap: 18px; }
.intro { text-align: center; }
.intro h1 { margin: 6px 0 6px; font-size: 40px; line-height: 1.05; color: var(--maroon); }
.intro p:last-child { margin: 0; color: var(--muted); font-size: 18px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field .lbl { font-size: 17px; font-weight: 600; color: var(--ink-2); }
.field .lbl small { font-weight: 400; color: var(--muted-2); font-size: 15px; }
.field input { height: 56px; padding: 0 16px; border-radius: 14px; border: 1.5px solid #D9C6A2; background: var(--paper); font-size: 18px; color: var(--ink); }
.field input:focus { outline: none; border-color: var(--maroon); box-shadow: 0 0 0 3px rgba(201,160,78,.35); }
.field .hint { font-size: 14px; color: var(--muted-2); }

.picker { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 16px; border-radius: 22px; background: var(--maroon-d); color: var(--ivory); text-align: center; cursor: pointer; box-shadow: 0 18px 36px -20px rgba(62,10,20,.8); transition: transform .15s ease; position: relative; overflow: hidden; }
.picker::before { content: ''; position: absolute; inset: 8px; border: 1px dashed rgba(232,201,130,.55); border-radius: 16px; pointer-events: none; }
.picker:active { transform: scale(.98); }
.picker .ic { width: 64px; height: 64px; border-radius: 20px; background: var(--gold-l); color: var(--maroon-ddd); display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.picker .ic svg { width: 32px; height: 32px; }
.picker .t { font-size: 22px; font-weight: 700; }
.picker .s { font-size: 15px; color: rgba(251,246,236,.85); }
#files:focus-visible + .picker, .picker:focus-within { outline: 3px solid var(--gold); outline-offset: 3px; }

.rules { list-style: none; margin: -4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rules li { display: flex; align-items: center; gap: 10px; font-size: 16px; color: var(--muted); }
.rules svg { width: 20px; height: 20px; color: var(--gold-t); flex-shrink: 0; }

.progress-card { padding: 16px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.progress-card .row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.progress-card b { font-size: 19px; color: var(--ink-2); }
.progress-card .num { font-size: 22px; color: var(--maroon); }
.progress-card p { margin: 0; font-size: 15px; color: var(--muted-2); }
.progress-card.done { border-color: var(--gold); background: #FFF9EC; }
.bar { height: 10px; border-radius: 10px; background: var(--sand); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--maroon); border-radius: 10px; transition: width .3s ease; }

.queue { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.q { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); animation: rise .35s ease both; }
.q .th { position: relative; width: 60px; height: 60px; border-radius: 12px; overflow: hidden; background: var(--sand); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--gold-t); }
.q .th img { width: 100%; height: 100%; object-fit: cover; }
.q .th svg { width: 26px; height: 26px; }
.q .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.q .info b { font-size: 16px; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q .info small { font-size: 14px; color: var(--muted-2); }
.q .bar { height: 6px; }
.q .st { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--maroon); }
.q .st svg { width: 24px; height: 24px; }
.q.done .st { color: #2F6B3A; }
.q.done .bar i { background: #2F6B3A; }
.q.error { border-color: #E2B4A8; background: #FFF6F3; }
.q.error .info small { color: #9A2B1B; }
.q.error .st { color: #9A2B1B; }
.q .retry { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid #D9A99B; background: transparent; color: #9A2B1B; display: flex; align-items: center; justify-content: center; }
.q .retry svg { width: 20px; height: 20px; }
.foot { margin: 6px 0 0; font-size: 14px; color: var(--muted-2); text-align: center; }
