/* Wyeth Auctions brand: logo orange #F7941E + logo black #231F20 on cream #FFF6EA. */
:root {
  --bg: #fff6ea; --card: #ffffff; --ink: #231f20; --muted: #5d5650; --line: #ecdcc4;
  --brand: #f7941e; --brand-dark: #c96f06; --brand-ink: #231f20; --black: #231f20;
  --ok: #1f7a3a; --warn: #a15c00; --err: #b3261e;
  --radius: 12px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.wrap { max-width: 760px; margin: 0 auto; padding: 16px; }
header.top { text-align: center; padding: 20px 16px 6px; }
header.top img { max-width: 260px; width: 70%; height: auto; }
h1 { font-size: 1.9rem; margin: .3em 0 .2em; text-align: center; }
h2 { font-size: 1.25rem; margin: 0 0 .6em; }
.lead { text-align: center; color: var(--muted); margin: 0 0 1.2em; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 0 0 16px; }
.steps { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin: 0 0 16px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.step b { display: block; color: var(--brand-dark); font-size: 1.05rem; }
.big-date { background: var(--black); color: #fff; border-radius: var(--radius); padding: 16px; text-align: center; margin: 0 0 16px; border-bottom: 6px solid var(--brand); }
.big-date strong { display: block; font-size: 1.35rem; color: var(--brand); }
label { display: block; font-weight: 600; margin: 12px 0 4px; }
label small { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=password], textarea {
  width: 100%; padding: 12px; font: inherit; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink);
}
.row { display: grid; gap: 0 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } h1 { font-size: 1.55rem; } }
button, .btn { display: inline-block; border: 0; border-radius: 10px; padding: 14px 22px; font: 600 1rem system-ui, sans-serif; cursor: pointer; text-decoration: none; text-align: center; }
.primary { background: var(--brand); color: var(--brand-ink); font-weight: 800; }
.primary:hover { background: #ffa53a; }
.secondary { background: #f3e6d2; color: var(--ink); }
.dark { background: var(--black); color: #fff; }
button:disabled { opacity: .5; cursor: not-allowed; }
.full { width: 100%; }
.drop { border: 2px dashed var(--line); border-radius: var(--radius); padding: 26px 16px; text-align: center; background: #faf8f3; cursor: pointer; }
.drop.over { border-color: var(--brand); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 12px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #eee; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .st { position: absolute; inset: auto 0 0 0; font-size: 11px; text-align: center; background: rgba(0,0,0,.55); color: #fff; padding: 2px; }
.thumb .st.bad { background: rgba(161,92,0,.9); font-weight: 600; }
.thumb .x { position: absolute; top: 2px; right: 2px; background: rgba(0,0,0,.6); color: #fff; border: 0; border-radius: 50%; width: 22px; height: 22px; padding: 0; font-size: 14px; line-height: 22px; }
.lotlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 10px 0 16px; }
.lotlist div { border: 2px dashed var(--line); border-radius: 8px; padding: 8px; text-align: center; }
.lotlist b { display: block; font-size: 1.6rem; line-height: 1.1; }
.lotlist span { font-size: .85rem; color: var(--muted); }
.dosteps { padding-left: 20px; } .dosteps li { margin: 6px 0; }
.guide { background: #fff7e6; border: 1px solid #f0d9a8; border-radius: var(--radius); padding: 14px 16px; margin: 0 0 12px; font-size: .95rem; }
.guide ol { margin: 8px 0; padding-left: 22px; }
.guide li { margin: 2px 0; }
.guide p { margin: 6px 0 0; }
.item { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 0 0 12px; background: #fcfbf8; }
.item-head { display: flex; justify-content: space-between; align-items: center; }
.item-head b { font-size: 1.05rem; }
.item-head button { padding: 6px 12px; font-size: .9rem; }
.item .drop { padding: 16px; margin-top: 8px; }
.item .count { font-size: .9rem; margin: 6px 0 0; }
.item .count.low { color: var(--warn); }
.item textarea { min-height: 64px; resize: vertical; }
h2 small { font-size: .85rem; font-weight: 400; }
.contract { max-height: 380px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; padding: 14px; background: #fcfbf8; font-size: .92rem; }
.contract h3 { font-size: .98rem; margin: .9em 0 .2em; }
.contract p { margin: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { width: 22px; height: 22px; margin-top: 2px; flex: none; }
.sigbox { border: 1px solid var(--line); border-radius: 8px; background: #fff; position: relative; touch-action: none; }
.sigbox canvas { width: 100%; height: 170px; display: block; }
.sigbox .hint { position: absolute; left: 12px; bottom: 8px; color: #aaa; font-size: .85rem; pointer-events: none; }
.msg { padding: 12px 14px; border-radius: 8px; margin: 12px 0; }
.msg.err { background: #fbe9e7; color: var(--err); }
.msg.ok { background: #e6f4ea; color: var(--ok); }
.msg.warn { background: #fff4e0; color: var(--warn); }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.progress { height: 8px; background: #eee; border-radius: 4px; overflow: hidden; margin-top: 10px; }
.progress div { height: 100%; width: 0; background: var(--brand); transition: width .2s; }
footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 18px 16px 30px; }
footer a { color: inherit; }
