/* หน้าส่งรูปเก็บตก (หน้าเดียวใหญ่ๆ ใช้ทั้งระหว่างงานและหลังงาน) */
body.sendpage { padding-bottom: 40px; }
.wrap { max-width: 560px; margin: 0 auto; padding: calc(28px + env(safe-area-inset-top)) 16px 20px; }
.s-head { text-align: center; margin-bottom: 18px; }
.s-title { font: 700 34px/1.3 var(--serif); margin: 4px 0 10px;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.s-lead { margin: 0 auto 8px; max-width: 30em; color: var(--text); font-size: 17px; }
.s-until { margin: 0; color: var(--gold); font-weight: 600; font-size: 15px; }
.f-lbl { display: block; font-weight: 600; margin-bottom: 8px; color: var(--champ); }
.input { width: 100%; min-height: 52px; padding: 12px 14px; font: inherit; color: var(--text); background: var(--bg2); border: 1.5px solid var(--line); border-radius: 14px; }
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217,184,111,.18); }
.input.bad { border-color: var(--danger); }
.hi { text-align: center; color: var(--muted); margin: 0 0 12px; }

.pick { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 30px 16px 26px; border-radius: 22px; cursor: pointer; text-align: center;
  border: 2px dashed var(--gold); background: radial-gradient(ellipse at 50% 0%, rgba(217,184,111,.16), rgba(217,184,111,.04) 70%); }
.pick:active { filter: brightness(1.1); }
.pick-i { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; font-size: 36px; color: #1A120E;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo)); box-shadow: 0 8px 22px -8px rgba(217,184,111,.7); margin-bottom: 6px; }
.pick-t { font-size: 22px; font-weight: 600; color: var(--champ); }
.pick-s { font-size: 14px; color: var(--muted); }
.pick.off { opacity: .45; pointer-events: none; }
.saver { display: flex; gap: 10px; align-items: flex-start; margin: 14px 4px; font-size: 15px; }
.saver input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--gold); flex: none; }

.queue { margin-top: 6px; }
.q-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.q-state { margin: 0; font-weight: 600; font-size: 18px; color: var(--champ); }
.btn.small { min-height: 38px; padding: 6px 14px; font-size: 15px; }
.q-bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; margin: 12px 0 6px; }
.q-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi)); border-radius: 999px; transition: width .3s; }
.q-sub { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.q-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 340px; overflow-y: auto; }
.q-list li { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; font-size: 14px; }
.q-list .th { width: 44px; height: 44px; border-radius: 8px; background: var(--surface2) center/cover no-repeat; display: grid; place-items: center; color: var(--muted); font-size: 18px; }
.q-list .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.q-list .nm small { display: block; }
.q-list .st { font-size: 13px; color: var(--muted); white-space: nowrap; }
.q-list .st.ok { color: #8FD19E; } .q-list .st.dup { color: var(--gold); } .q-list .st.err { color: var(--danger); }
.q-list .st button { border: 1px solid var(--line); background: none; border-radius: 999px; padding: 2px 10px; font-size: 13px; }

.tips { margin-top: 14px; }
.tips summary { cursor: pointer; font-weight: 600; color: var(--champ); }
.tips ul { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 8px; font-size: 15px; }

.mine { margin-top: 22px; }
.mine-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.mine-head span { color: var(--muted); font-size: 14px; }
.mine-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 8px; }
.mine-grid .m { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--surface2) center/cover no-repeat; display: grid; place-items: center; color: var(--muted); font-size: 12px; }
.mine-grid .m .v { position: absolute; left: 6px; bottom: 4px; font-size: 13px; color: #fff; text-shadow: 0 1px 3px #000; }
.mine-grid .m button { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 14px; }
.more { width: 100%; margin-top: 10px; }
.back { text-align: center; margin: 26px 0 0; }
.back a { color: var(--gold); text-decoration: none; font-weight: 600; }
@media (min-width: 480px) { .mine-grid { grid-template-columns: repeat(5, 1fr); } }
