:root { --bg:#f6f5f2; --card:#fff; --ink:#1d1d1b; --muted:#6b6b66; --line:#e3e1db; --accent:#b4471f; --gold:#c8961e; --green:#2f7a4a; --red:#b3261e; }
* { box-sizing:border-box; }
body { margin:0; font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background:var(--bg); color:var(--ink); font-size:15px; }
a { color:var(--accent); text-decoration:none; } a:hover { text-decoration:underline; }
header { background:#1d1d1b; color:#f6f5f2; padding:0 24px; display:flex; align-items:center; gap:28px; height:52px; }
header .brand { font-weight:700; letter-spacing:.3px; color:#fff; font-size:17px; }
header nav a { color:#d8d6cf; margin-right:18px; } header nav a:hover { color:#fff; }
main { max-width:1280px; margin:0 auto; padding:22px 24px 60px; }
h1 { font-size:24px; margin:0 0 6px; } h2 { font-size:18px; margin:26px 0 10px; }
.muted { color:var(--muted); } .small { font-size:12.5px; }
.stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:12px; margin:14px 0 6px; }
.stat { background:var(--card); border:1px solid var(--line); border-radius:8px; padding:12px 14px; }
.stat b { display:block; font-size:22px; } .stat span { color:var(--muted); font-size:12.5px; }
table { width:100%; border-collapse:collapse; background:var(--card); border:1px solid var(--line); border-radius:8px; overflow:hidden; }
th, td { text-align:left; padding:9px 10px; border-bottom:1px solid var(--line); vertical-align:top; }
th { background:#faf9f6; font-size:12.5px; color:var(--muted); text-transform:uppercase; letter-spacing:.4px; }
tr:last-child td { border-bottom:0; }
.grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:14px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:10px; overflow:hidden; display:flex; flex-direction:column; }
.card .img { aspect-ratio:4/3; background:#eceae4; display:block; overflow:hidden; }
.card .img img { width:100%; height:100%; object-fit:cover; display:block; }
.card .body { padding:10px 12px 12px; display:flex; flex-direction:column; gap:4px; flex:1; }
.card .title { font-weight:600; line-height:1.25; }
.card .ident { font-size:13px; color:#333; line-height:1.3; }
.badges { display:flex; flex-wrap:wrap; gap:6px; margin-top:auto; padding-top:6px; }
.badge { font-size:11.5px; padding:2px 7px; border-radius:99px; background:#eee; color:#333; white-space:nowrap; }
.badge.score { font-weight:700; color:#fff; }
.s-hi { background:var(--red); } .s-mid { background:var(--gold); } .s-lo { background:#8a8a84; } .s-none { background:#c9c7c0; }
.badge.v-strong_bid { background:var(--green); color:#fff; } .badge.v-bid { background:#5a9a6e; color:#fff; }
.badge.v-watch { background:#e7e0c5; } .badge.v-skip { background:#eee; color:#777; }
.filters { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:12px 0 16px; }
.filters input, .filters select { padding:6px 8px; border:1px solid var(--line); border-radius:6px; font-size:14px; background:#fff; }
.filters button, button.btn { padding:6px 12px; border-radius:6px; border:1px solid var(--accent); background:var(--accent); color:#fff; cursor:pointer; font-size:14px; }
button.ghost { background:#fff; color:var(--accent); }
.lot-layout { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); gap:24px; }
@media (max-width:900px){ .lot-layout { grid-template-columns:1fr; } }
.gallery { display:grid; grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); gap:8px; }
.gallery img { width:100%; border-radius:6px; border:1px solid var(--line); background:#eee; }
.gallery img.main { grid-column:1/-1; max-height:640px; object-fit:contain; background:#f0efeb; }
.panel { background:var(--card); border:1px solid var(--line); border-radius:10px; padding:16px 18px; margin-bottom:16px; }
.panel h3 { margin:0 0 10px; font-size:15px; text-transform:uppercase; letter-spacing:.4px; color:var(--muted); }
dl { display:grid; grid-template-columns:150px 1fr; gap:6px 12px; margin:0; } dt { color:var(--muted); } dd { margin:0; }
.big { font-size:26px; font-weight:700; }
ul.tight { margin:4px 0 0 18px; padding:0; } ul.tight li { margin:3px 0; }
.events li { margin:4px 0; } .events .k { font-size:11px; padding:1px 6px; border-radius:4px; background:#eee; margin-right:6px; }
.events .k.sleeper { background:var(--red); color:#fff; } .events .k.new_auction { background:var(--green); color:#fff; }
.upside { font-variant-numeric:tabular-nums; }

.small-btn { padding:3px 9px !important; font-size:12.5px !important; margin:2px 0; }
td.actions { white-space:nowrap; }
.hform { display:flex; flex-wrap:wrap; gap:10px 16px; align-items:center; }
.hform label { display:flex; gap:6px; align-items:center; font-size:14px; }
.hform input[type=text], .hform input:not([type]), .hform select { padding:5px 8px; border:1px solid var(--line); border-radius:6px; font-size:14px; }
details.panel summary { cursor:pointer; }
.events .k.running, .events .k.queued { background:#e7e0c5; } .events .k.done { background:var(--green); color:#fff; } .events .k.failed { background:var(--red); color:#fff; }

tr:target { background:#fdf6dd; }
tr:target td { border-bottom-color: var(--gold); }

header .logout { margin-left:auto; }
header .logout button { background:none; border:1px solid #4a4a46; color:#d8d6cf; padding:4px 12px; border-radius:6px; cursor:pointer; font-size:13px; }
header .logout button:hover { color:#fff; border-color:#8a8a84; }

.tabs { display:flex; gap:6px; margin:14px 0 4px; }
.tabs .tab { padding:6px 14px; border:1px solid var(--line); border-bottom:none; border-radius:8px 8px 0 0; background:#eceae4; color:var(--muted); font-size:14px; }
.tabs .tab:hover { text-decoration:none; color:var(--ink); }
.tabs .tab.active { background:var(--card); color:var(--ink); font-weight:600; }

.segmented { display:flex; align-items:center; gap:4px; }
.segmented button[disabled] { opacity:1; cursor:default; }

#lightbox { position:fixed; inset:0; z-index:100; background:rgba(15,15,13,.92); display:flex; align-items:center; justify-content:center; }
#lightbox[hidden] { display:none; }
#lightbox img { max-width:94vw; max-height:94vh; object-fit:contain; border-radius:4px; box-shadow:0 8px 40px rgba(0,0,0,.6); }
#lightbox button { position:absolute; background:rgba(255,255,255,.08); color:#eee; border:none; cursor:pointer; border-radius:8px; font-size:30px; line-height:1; padding:8px 14px; }
#lightbox button:hover { background:rgba(255,255,255,.2); }
#lightbox .lb-x { top:14px; right:16px; }
#lightbox .lb-prev { left:14px; top:50%; transform:translateY(-50%); }
#lightbox .lb-next { right:14px; top:50%; transform:translateY(-50%); }
#lightbox .lb-count { position:absolute; bottom:14px; left:50%; transform:translateX(-50%); color:#ccc; font-size:13px; }
