:root{--be-ink:#0e1b2c;--be-paper:#fff;--be-line:#d9dee7;--be-accent:#ffc800;--be-ok:#12805c;--be-bad:#c0362c;--be-mute:#5b6677}
.be-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:20px}
.be-card{display:flex;flex-direction:column;background:var(--be-paper);border:1px solid var(--be-line);color:var(--be-ink);text-decoration:none;border-radius:6px;overflow:hidden}
.be-card:hover{border-color:var(--be-ink)}
.be-card-img{position:relative;display:block;aspect-ratio:4/3;background:#e6e9ef}
.be-card-img img{width:100%;height:100%;object-fit:cover;display:block}
.be-lot{position:absolute;left:0;top:12px;background:var(--be-accent);color:var(--be-ink);font:600 13px/1 inherit;padding:6px 10px 6px 12px;border-radius:0 3px 3px 0}
.be-card-body{display:flex;flex-direction:column;gap:12px;padding:14px 16px 16px}
.be-card-title{font-weight:600;font-size:1.05rem;line-height:1.3}
.be-card-row{display:flex;justify-content:space-between;gap:12px}
.be-card small,.be-stats small{display:block;color:var(--be-mute);font-size:.78rem;margin-bottom:2px}
.be-card b{font-size:1.1rem;font-variant-numeric:tabular-nums}
.be-card-time{text-align:right}.be-card-foot{color:var(--be-mute);font-size:.85rem}
.be-card.is-ended{opacity:.65}
.be-countdown.urgent{color:var(--be-bad)}
.be-box{background:var(--be-paper);border:1px solid var(--be-line);border-radius:8px;padding:22px}
.be-stats{display:flex;justify-content:space-between;gap:16px;border-bottom:1px solid var(--be-line);padding-bottom:16px}
.be-stats strong{font-size:1.9rem;line-height:1.1;font-variant-numeric:tabular-nums;display:block}
.be-stats div:last-child{text-align:right}.be-stats div:last-child strong{font-size:1.35rem;padding-top:.35rem}
.be-meta{color:var(--be-mute);font-size:.9rem;margin:12px 0}
.be-badge{background:#e3f4ed;color:var(--be-ok);font-weight:600;padding:8px 12px;border-radius:4px;margin:0 0 14px}
.be-box.is-ended .be-badge{background:#eceff4;color:var(--be-ink)}
.be-form label{display:block;font-weight:600;margin-bottom:6px}
.be-input{display:flex;border:2px solid var(--be-ink);border-radius:6px;overflow:hidden;margin-bottom:10px}
.be-input span{padding:0 14px;display:flex;align-items:center;background:#eef1f5;font-weight:600}
.be-input input{flex:1;min-width:0;border:0;padding:14px;font-size:1.2rem;font-variant-numeric:tabular-nums;outline:0}
.be-input:focus-within{box-shadow:0 0 0 3px var(--be-accent)}
.be-form button,.be-btn,.be-auth button,.be-auth input[type=submit]{display:inline-block;width:100%;background:var(--be-accent);color:var(--be-ink);border:2px solid var(--be-ink);border-radius:6px;padding:14px 18px;font-size:1.05rem;font-weight:700;text-align:center;text-decoration:none;cursor:pointer}
.be-btn{width:auto}.be-btn.ghost{background:transparent}
.be-form button:hover,.be-btn:hover{background:var(--be-ink);color:#fff}
.be-form button:disabled{opacity:.6}
.be-hint{color:var(--be-mute);font-size:.85rem;margin:8px 0 0}
.be-msg{min-height:1.4em;margin:10px 0 0;font-weight:600}.be-msg.ok{color:var(--be-ok)}.be-msg.err,.be-error{color:var(--be-bad)}
.be-h{font-size:1rem;margin:18px 0 8px}
.be-history{list-style:none;margin:0;padding:0}
.be-history li{display:grid;grid-template-columns:1fr auto auto;gap:14px;padding:9px 0;border-top:1px solid var(--be-line);font-size:.92rem}
.be-history time{color:var(--be-mute);min-width:70px;text-align:right}
.be-table{width:100%;border-collapse:collapse}.be-table th,.be-table td{text-align:left;padding:12px 10px;border-bottom:1px solid var(--be-line)}
.be-pill{display:inline-block;padding:3px 10px;border-radius:99px;background:#eceff4;font-size:.85rem;font-weight:600}.be-pill.ok{background:#e3f4ed;color:var(--be-ok)}.be-pill.bad{background:#fbe6e3;color:var(--be-bad)}
.be-auth{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:32px}
.be-auth input:not([type=checkbox]):not([type=submit]){width:100%;padding:12px;border:1px solid var(--be-line);border-radius:6px;font-size:1rem;margin-top:4px;box-sizing:border-box}
.be-auth label{font-weight:600}
@media (prefers-reduced-motion:no-preference){.be-card{transition:border-color .15s}}

/* stats: never squash the countdown */
.be-stats{flex-wrap:wrap;align-items:flex-start}
.be-stats>div{min-width:0}
.be-stats div:last-child{margin-left:auto}
.be-stats .be-countdown,.be-stats strong{white-space:nowrap}
.be-stats div:last-child strong{font-size:1.15rem}
.be-box{min-width:0;box-sizing:border-box}
