/* WatchLink Auction Floors: shared styles for the seller form and the bid page */
:root {
  --sea: #073135; --doc: #164E50; --oy: #21776A; --cer: #47C67B; --mist: #DBF4D7; --soft: #EEF9EC;
  --bg: #F4F8F3; --rose: #F23D6D; --rosed: #8f1338; --roseb: #FFF6F8; --indiglo: #4A52F4;
  --line: rgba(7, 49, 53, .14); --mut: rgba(7, 49, 53, .64);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--sea);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
a { color: var(--oy); font-weight: 700; }
:focus-visible { outline: 3px solid var(--indiglo); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.hidden { display: none !important; }
.eb { font-family: "DM Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--oy); font-weight: 500; }

/* top band */
.top { background: var(--sea); color: var(--mist); padding: 18px 20px 30px; }
.top-in { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 38px; height: 27px; display: block; }
.brand b { font-weight: 800; font-size: 18px; letter-spacing: -.02em; color: var(--mist); white-space: nowrap; }
.brand b span { color: var(--cer); font-weight: 600; }
.brand .chip { margin-left: auto; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--mist); background: rgba(219, 244, 215, .12); border-radius: 999px; padding: 5px 11px; white-space: nowrap; }
.top .eb { color: var(--cer); margin-top: 10px; }
.top h1 { margin: 0; font-size: 34px; line-height: 1.08; font-weight: 900; letter-spacing: -.035em; color: #F2FBF0; }
.top p { margin: 0; font-size: 16px; line-height: 1.55; color: rgba(219, 244, 215, .86); max-width: 640px; }

/* layout */
.wrap { max-width: 760px; margin: 0 auto; padding: 18px 16px 48px; display: flex; flex-direction: column; gap: 16px; }
.card { background: #fff; border-radius: 22px; padding: 20px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 2px 8px rgba(7, 49, 53, .07); }
.card h2 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.card .head { display: flex; flex-direction: column; gap: 4px; }
.help { margin: 0; font-size: 14px; line-height: 1.5; color: var(--mut); }
.grid2 { display: grid; grid-template-columns: 1fr; gap: 14px; }
.foot { text-align: center; font-size: 13px; color: var(--mut); padding: 4px 16px 0; }

/* fields */
.f { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.f > .lbl, .lbl { font-weight: 700; font-size: 14px; color: rgba(7, 49, 53, .82); }
.req { color: #B0164A; }
.opt { font-weight: 500; color: var(--mut); font-size: 13px; }
.in {
  width: 100%; min-height: 50px; font-size: 16px; font-weight: 500; color: var(--sea);
  background: #FDFEFC; border: 1.5px solid rgba(7, 49, 53, .18); border-radius: 14px; padding: 12px 14px;
  -webkit-appearance: none; appearance: none;
}
.in::placeholder { color: rgba(7, 49, 53, .4); }
.in:focus { border-color: var(--oy); outline: none; box-shadow: 0 0 0 3px rgba(33, 119, 106, .18); }
textarea.in { min-height: 120px; resize: vertical; line-height: 1.5; }
.f.bad .in, .f.bad .pills, .f.bad .slots { border-color: var(--rose); }
.err { display: none; font-size: 13px; font-weight: 700; color: var(--rosed); }
.f.bad .err { display: block; }
.money { position: relative; }
.money span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-weight: 800; font-size: 18px; color: var(--mut); pointer-events: none; }
.money .in { padding-left: 30px; font-size: 20px; font-weight: 800; letter-spacing: -.01em; }

/* pill choices (radio + checkbox) */
.pills { display: flex; flex-wrap: wrap; gap: 8px; border: 1.5px solid transparent; border-radius: 16px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid rgba(7, 49, 53, .18); background: #fff; font-weight: 700; font-size: 15px; cursor: pointer; user-select: none;
}
.pill input:checked + span { background: var(--sea); border-color: var(--sea); color: var(--mist); }
.pill input:focus-visible + span { outline: 3px solid var(--indiglo); outline-offset: 2px; }
.pill .tick { width: 18px; height: 18px; border-radius: 5px; border: 2px solid rgba(7, 49, 53, .35); display: inline-flex; align-items: center; justify-content: center; }
.pill input:checked + span .tick { background: var(--cer); border-color: var(--cer); }
.pill input:checked + span .tick::after { content: ""; width: 9px; height: 5px; border: solid var(--sea); border-width: 0 0 2.5px 2.5px; transform: translateY(-1px) rotate(-45deg); }

/* photo slots */
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; border: 1.5px solid transparent; border-radius: 18px; }
.slot { position: relative; aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; background: var(--soft); border: 2px dashed rgba(33, 119, 106, .45); }
.slot.has { border: none; background: #C9D4CD; }
.slot label, .slot .pick { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; text-align: center; padding: 6px; border: none; background: none; width: 100%; }
.slot .plus { width: 30px; height: 30px; border-radius: 50%; background: var(--oy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 600; line-height: 1; }
.slot .name { font-weight: 800; font-size: 13px; }
.slot .need { font-size: 11px; color: var(--mut); font-weight: 600; }
.slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slot .tagname { position: absolute; left: 6px; bottom: 6px; background: rgba(7, 49, 53, .82); color: var(--mist); font-size: 11px; font-weight: 800; border-radius: 999px; padding: 3px 8px; }
.slot .rm { position: absolute; right: 6px; top: 6px; width: 32px; height: 32px; border-radius: 50%; border: none; background: rgba(255, 255, 255, .94); color: var(--sea); font-size: 17px; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.slot.busy::after { content: "Preparing…"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(238, 249, 236, .9); font-size: 12px; font-weight: 800; color: var(--oy); }
.slot input[type=file] { position: absolute; opacity: 0; width: 1px; height: 1px; }

/* consent */
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 14px; line-height: 1.5; padding: 14px; border-radius: 16px; border: 1.5px solid rgba(7, 49, 53, .16); background: #fff; }
.check input { width: 24px; height: 24px; margin: 0; flex-shrink: 0; accent-color: var(--oy); cursor: pointer; }
.f.bad .check { border-color: var(--rose); }

/* buttons */
.primary {
  min-height: 58px; border: none; border-radius: 999px; background: var(--cer); color: var(--sea);
  font-weight: 900; font-size: 17px; letter-spacing: .04em; padding: 0 22px; width: 100%;
}
.primary:hover:not(:disabled) { filter: brightness(1.04); }
.secondary { min-height: 52px; border-radius: 999px; border: 1.5px solid rgba(7, 49, 53, .22); background: #fff; font-weight: 800; font-size: 15px; padding: 0 20px; width: 100%; }
.mini { min-height: 36px; padding: 0 12px; border-radius: 999px; border: none; background: var(--soft); color: var(--oy); font-weight: 800; font-size: 13px; }
.linkbtn { border: none; background: none; padding: 0; color: var(--oy); font-weight: 800; font-size: 14px; min-height: 36px; text-decoration: underline; text-underline-offset: 3px; }
.note { margin: 0; font-size: 14px; line-height: 1.55; color: var(--mut); text-align: center; }
.banner { display: none; background: var(--roseb); border: 1.5px solid rgba(242, 61, 109, .45); color: var(--rosed); border-radius: 14px; padding: 12px 14px; font-weight: 700; font-size: 14px; line-height: 1.45; }
.banner.show { display: block; }
.ts { min-height: 65px; display: flex; justify-content: center; }

/* overlay + done */
.ov { position: fixed; inset: 0; z-index: 40; background: rgba(7, 49, 53, .6); display: none; align-items: center; justify-content: center; padding: 20px; }
.ov.show { display: flex; }
.ovbox { background: #fff; border-radius: 22px; padding: 24px; width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 12px; text-align: center; }
.ovbox strong { font-size: 18px; }
.bar { height: 10px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--cer); transition: width .3s; }
.spin { width: 38px; height: 38px; border-radius: 50%; border: 4px solid var(--soft); border-top-color: var(--oy); margin: 0 auto; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.done { align-items: center; text-align: center; padding: 32px 22px; }
.done .ok { width: 64px; height: 64px; border-radius: 50%; background: var(--cer); display: flex; align-items: center; justify-content: center; }
.done h2 { font-size: 26px; }
.done .num { font-family: "DM Mono", ui-monospace, monospace; font-size: 15px; background: var(--soft); color: var(--doc); padding: 6px 12px; border-radius: 999px; }

/* bid page */
.viewer { display: flex; flex-direction: column; gap: 10px; }
.main { position: relative; aspect-ratio: 1 / 1; border-radius: 20px; overflow: hidden; background: #C9D4CD; border: none; padding: 0; width: 100%; display: block; }
.main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.main .lbl { position: absolute; left: 10px; bottom: 10px; background: rgba(7, 49, 53, .82); color: var(--mist); font-size: 12px; font-weight: 800; border-radius: 999px; padding: 5px 10px; }
.main .zoom { position: absolute; right: 10px; bottom: 10px; background: rgba(255, 255, 255, .94); color: var(--sea); font-size: 12px; font-weight: 800; border-radius: 999px; padding: 5px 10px; }
.main .loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--doc); }
.navbtn { position: absolute; top: 50%; margin-top: -22px; width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(255, 255, 255, .94); color: var(--sea); font-size: 24px; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); z-index: 2; }
.navbtn.l { left: 10px; } .navbtn.r { right: 10px; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.thumbs::-webkit-scrollbar { display: none; }
.thumbs button { flex: 0 0 auto; width: 68px; height: 68px; border-radius: 12px; border: 2px solid transparent; padding: 0; overflow: hidden; background: #C9D4CD; }
.thumbs button.on { border-color: var(--cer); box-shadow: 0 0 0 2px rgba(71, 198, 123, .35); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumbs span { font-size: 10px; font-weight: 800; color: var(--doc); }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; }
.kv div { display: flex; flex-direction: column; gap: 3px; font-size: 16px; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.kv > div > span:first-child { font-size: 12px; font-weight: 600; color: var(--mut); }
.kv .na { color: rgba(7, 49, 53, .42); font-weight: 600; }
.refrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.desc { margin: 0; white-space: pre-wrap; font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.private { display: flex; gap: 10px; align-items: flex-start; background: var(--soft); border-radius: 14px; padding: 12px 14px; font-size: 14px; line-height: 1.45; font-weight: 600; color: var(--doc); }
.private svg { flex-shrink: 0; margin-top: 2px; }
.btnrow { display: flex; flex-direction: column; gap: 10px; }
.state { align-items: center; text-align: center; padding: 34px 22px; }
.state .ic { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--mist); }
.state .ic.bad { background: #FFE0E8; }
.state h2 { font-size: 24px; }
.amount { font-size: 34px; font-weight: 900; letter-spacing: -.03em; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--sea); color: var(--mist); font-weight: 700; font-size: 14px; border-radius: 999px; padding: 12px 18px; z-index: 60; opacity: 0; pointer-events: none; transition: opacity .2s; }
.toast.show { opacity: 1; }

/* photo viewer */
.lb { position: fixed; inset: 0; z-index: 50; background: rgba(3, 22, 24, .96); display: none; flex-direction: column; }
.lb.show { display: flex; }
.lbhead { display: flex; align-items: center; padding: 12px; padding-top: max(12px, env(safe-area-inset-top)); }
.lbhead span { flex: 1; color: var(--mist); font-weight: 800; padding-left: 8px; }
.lbclose { width: 46px; height: 46px; border-radius: 50%; border: none; background: rgba(255, 255, 255, .92); color: var(--sea); font-size: 18px; font-weight: 800; }
.lbimg { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding-bottom: env(safe-area-inset-bottom); touch-action: pan-y pinch-zoom; }
.lbimg img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lbimg .wait { color: var(--mist); font-weight: 700; }

.main-wrap { position: relative; }
.col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.bidgrid { display: flex; flex-direction: column; gap: 16px; }
#form { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 400px) { .brand b { font-size: 15.5px; } .brand img { width: 32px; height: 23px; } .brand .chip { padding: 4px 9px; font-size: 11px; } }
@media (max-width: 639px) {
  .top { padding: 16px 20px 26px; }
  .top-in { gap: 10px; }
  .top .eb { margin-top: 8px; }
  .bidtop h1 { font-size: 28px; line-height: 1.12; }
  .wrap { padding: 16px 14px 40px; }
  .viewer { padding: 12px; gap: 10px; }
  .main { border-radius: 14px; }
  .main .zoom { display: none; }
  .main .lbl { left: 8px; bottom: 8px; font-size: 11px; padding: 4px 9px; }
  .navbtn { width: 36px; height: 36px; margin-top: -18px; font-size: 20px; background: rgba(255, 255, 255, .86); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
  .navbtn.l { left: 8px; } .navbtn.r { right: 8px; }
  .thumbs { gap: 8px; padding: 2px; }
  .thumbs button { width: 56px; height: 56px; border-radius: 10px; }
}

@media (min-width: 640px) {
  #form { gap: 18px; }
  .top { padding: 22px 28px 40px; }
  .top h1 { font-size: 46px; }
  .wrap { padding: 24px 24px 60px; gap: 18px; }
  .card { padding: 26px; }
  .grid2 { grid-template-columns: 1fr 1fr; }
  .slots { grid-template-columns: repeat(5, 1fr); }
  .btnrow { flex-direction: row-reverse; }
  .btnrow > * { flex: 1; }
  .thumbs button { width: 76px; height: 76px; }
}
@media (min-width: 1000px) {
  .bidgrid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 18px; align-items: start; }
  .bidgrid .sticky { position: sticky; top: 16px; }
  .bidwrap { max-width: 1120px; }
  .bidtop { max-width: 1120px; }
}
