/* Auction: phone-first bidder pages, TV report, admin, printable signs. */
:root {
    --green: #013a00;
    --green-soft: #e3f1e0;
    --amber-soft: #fdf0cf;
    --amber-text: #6b4a00;
    --ink: #1c1c1c;
    --muted: #5f6b5f;
    --line: #d9dfd6;
    --bg: #f6f7f4;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: var(--bg); font-size: 17px; line-height: 1.4; }
a { color: var(--green); }
.au-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--green); color: #fff; }
.au-bar a { color: #fff; text-decoration: none; font-weight: 600; }
.au-bar .au-bar-title { flex: 1; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.au-wrap { max-width: 640px; margin: 0 auto; padding: 12px 14px 32px; }
.au-wide { max-width: 1200px; }
.au-muted { color: var(--muted); font-size: 15px; }
.au-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 12px; }

/* Buttons and fields */
.au-btn { display: inline-block; border: 0; border-radius: 10px; padding: 13px 18px; font-size: 18px; font-weight: 700; background: var(--green); color: #fff; cursor: pointer; text-decoration: none; text-align: center; }
.au-btn[disabled] { opacity: .5; cursor: default; }
.au-btn-block { display: block; width: 100%; }
.au-btn-quiet { background: #fff; color: var(--green); border: 2px solid var(--green); padding: 9px 12px; font-size: 16px; }
.au-btn-small { padding: 7px 12px; font-size: 15px; }
.au-field { display: block; margin-bottom: 12px; }
.au-field span { display: block; font-weight: 600; margin-bottom: 4px; }
.au-field input[type=text], .au-field input[type=tel], .au-field input[type=email], .au-field input[type=password], .au-field input[type=number],
.au-field input[type=datetime-local], .au-field input[type=file], .au-field textarea, .au-field select { width: 100%; padding: 11px 12px; font-size: 17px; border: 1px solid #b9c2b6; border-radius: 8px; background: #fff; font-family: inherit; }
.au-check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: 15px; }
.au-check input { width: 22px; height: 22px; margin-top: 1px; flex: none; }
.au-msg { border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; background: var(--green-soft); }
.au-msg-warn { background: var(--amber-soft); color: var(--amber-text); }
.au-msg:empty { display: none; }

/* Status pills */
.au-pill { display: inline-block; border-radius: 999px; padding: 4px 12px; font-size: 14px; font-weight: 700; background: #e9ece7; color: var(--muted); }
.au-pill-winning { background: var(--green-soft); color: var(--green); }
.au-pill-outbid { background: var(--amber-soft); color: var(--amber-text); }
.au-pill[hidden] { display: none; }

/* Item page: photo and bid control fit one phone screen */
.au-photo { display: block; width: 100%; max-height: 34vh; object-fit: contain; background: #fff; border-radius: 12px; border: 1px solid var(--line); }
.au-item-title { font-size: 21px; font-weight: 700; margin: 10px 0 2px; }
.au-price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 6px 0; }
.au-price { font-size: 38px; font-weight: 800; color: var(--green); line-height: 1; }
.au-bid-row { display: flex; gap: 8px; align-items: stretch; margin: 8px 0; }
.au-dollar { display: flex; align-items: center; flex: 1; border: 2px solid var(--green); border-radius: 10px; background: #fff; padding-left: 12px; font-size: 24px; font-weight: 700; }
.au-dollar input { border: 0; outline: 0; width: 100%; font-size: 24px; font-weight: 700; padding: 10px 8px; background: transparent; font-family: inherit; }
.au-quick { display: flex; gap: 8px; margin-bottom: 8px; }
.au-quick button { flex: 1; }
#au-cap, #au-buy { margin-bottom: 8px; }
.au-donor { margin-top: 8px; }
.au-info { margin-top: 12px; font-size: 15px; }
.au-info p { margin: 0 0 10px; }
.au-info p:last-child { margin-bottom: 0; }
.au-donor a { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; }
.au-donor img { max-width: 96px; max-height: 48px; object-fit: contain; }

/* Catalog */
.au-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.au-tile { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--ink); }
.au-tile img, .au-tile .au-noimg { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #e9ece7; }
.au-tile-body { padding: 8px 10px 10px; }
.au-tile-title { font-weight: 700; font-size: 15px; }
.au-tile-price { font-weight: 800; color: var(--green); font-size: 19px; }
.au-section { font-size: 19px; margin: 22px 0 10px; }
.au-sponsors { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.au-sponsor { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.au-sponsor img { width: 84px; height: 56px; object-fit: contain; flex: none; }
.au-sponsor-name { font-weight: 700; }

/* My bids: one row per item the bidder has bid on */
.au-mybid { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 10px; text-decoration: none; color: var(--ink); }
.au-mybid img, .au-mybid-noimg { flex: none; width: 92px; height: 92px; object-fit: cover; border-radius: 8px; background: #e9ece7; }
.au-mybid-body { min-width: 0; }

/* Stripe card field */
#au-card { padding: 13px 12px; border: 1px solid #b9c2b6; border-radius: 8px; background: #fff; }

/* Admin */
.au-admin table { width: 100%; border-collapse: collapse; background: #fff; font-size: 15px; }
.au-admin th, .au-admin td { text-align: left; padding: 7px 9px; border-bottom: 1px solid var(--line); vertical-align: top; }
.au-admin th { background: #eef1ec; position: sticky; top: 0; }
.au-admin td.au-num, .au-admin th.au-num { text-align: right; white-space: nowrap; }
.au-admin h2 { font-size: 20px; margin: 22px 0 8px; }
.au-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.au-row .au-field { flex: 1; min-width: 170px; }
.au-pickup { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.au-pickup input { width: 22px; height: 22px; }
.au-thumb { width: 56px; height: 42px; object-fit: cover; border-radius: 6px; background: #e9ece7; display: block; }
.au-filter { width: 100%; max-width: 360px; padding: 9px 12px; font-size: 16px; border: 1px solid #b9c2b6; border-radius: 8px; margin-bottom: 8px; }

/* TV report */
body.au-tv { background: var(--green); color: #fff; font-size: 22px; overflow: hidden; }
body.au-tv [hidden] { display: none !important; }
.au-tv-top { display: flex; align-items: center; gap: 40px; padding: 2.2vh 3vw; }
.au-tv-total { font-size: 11vh; font-weight: 800; line-height: 1; }
.au-tv-label { font-size: 2.6vh; opacity: .85; text-transform: uppercase; letter-spacing: .08em; }
.au-tv-clock { font-size: 6vh; font-weight: 700; }
.au-tv-goal { font-size: 3vh; font-weight: 700; }
.au-tv-dial { position: relative; flex: none; width: 22vh; height: 22vh; background: #fff; border-radius: 16px; }
.au-tv-dial[hidden], .au-tv-sponsor[hidden] { display: none; }
.au-tv-dial img { position: absolute; inset: 1.5vh; width: calc(100% - 3vh); height: calc(100% - 3vh); object-fit: contain; }
.au-tv-dial-gray { filter: grayscale(1); opacity: .28; }
.au-tv-dial-ring { position: absolute; inset: 2vh; border-radius: 50%; -webkit-mask: radial-gradient(circle, transparent 56%, #000 57%); mask: radial-gradient(circle, transparent 56%, #000 57%); }
.au-tv-sponsor { margin-left: auto; display: flex; align-items: center; gap: 1.2vw; background: #fff; color: var(--ink); border-radius: 14px; padding: 1.2vh 1.2vw; height: 22vh; max-width: 40vw; }
.au-tv-sponsor-logo { display: flex; align-items: center; justify-content: center; width: 16vw; height: 100%; }
.au-tv-sponsor-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.au-tv-sponsor-text { font-size: 1.8vh; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.au-tv-sponsor-name { font-size: 2.6vh; font-weight: 800; color: var(--ink); text-transform: none; letter-spacing: 0; }
.au-tv-sponsor-qr { text-align: center; font-size: 1.8vh; font-weight: 800; }
.au-tv-sponsor-qr svg { display: block; width: 15vh; height: 15vh; }
.au-tv-main { display: grid; grid-template-columns: 1fr 34vw; gap: 2vw; padding: 0 3vw; height: 66vh; }
.au-tv-items { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(3, 1fr); gap: 1.2vh 1vw; overflow: hidden; }
.au-tv-item { display: flex; align-items: center; gap: .7vw; min-width: 0; background: rgba(255,255,255,.1); border-radius: 12px; padding: 1vh .7vw; overflow: hidden; }
.au-tv-item img { flex: none; width: 42%; height: 100%; object-fit: cover; border-radius: 8px; background: #fff; }
.au-tv-item-text { min-width: 0; }
.au-tv-item-title { font-size: 1.9vh; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.au-tv-item-price { font-size: 3.6vh; font-weight: 800; }
.au-tv-item-meta { font-size: 1.8vh; opacity: .8; }
.au-tv-slide { display: flex; flex-direction: column; background: #fff; color: var(--ink); border-radius: 14px; padding: 1.6vh 1.4vw; overflow: hidden; height: 66vh; }
.au-tv-slide[hidden] { display: none; }
.au-tv-slide-photo { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.au-tv-slide-photo img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; }
.au-tv-slide-lot { font-size: 2.2vh; font-weight: 700; color: var(--green); margin-top: 1vh; }
.au-tv-slide-title { font-size: 3.4vh; font-weight: 800; line-height: 1.15; }
.au-tv-slide-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1vw; margin-top: 1vh; }
.au-tv-slide-price { font-size: 7vh; font-weight: 800; color: var(--green); line-height: 1; }
.au-tv-slide-meta { font-size: 2.2vh; color: var(--muted); }
.au-tv-slide-qr { text-align: center; font-size: 2.2vh; font-weight: 800; }
.au-tv-slide-qr svg { display: block; width: 19vh; height: 19vh; }

/* Printable signs: one per page */
.au-sign { width: 100%; text-align: center; padding: 30px 20px; page-break-after: always; break-after: page; }
.au-sign-lot { font-size: 30px; font-weight: 700; color: var(--green); }
.au-sign-title { font-size: 46px; font-weight: 800; margin: 8px 0 14px; }
.au-sign-qr svg { width: 4.2in; height: 4.2in; }
.au-sign-scan { font-size: 34px; font-weight: 800; margin-top: 10px; }
.au-sign-meta { font-size: 22px; margin-top: 8px; }
@media print {
    body { background: #fff; }
    .au-noprint { display: none !important; }
}
