* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: #f6f6f6; color: #282323; font: 16px/1.45 Arial, sans-serif; }
header { background: #fff; border-bottom: 3px solid #d92419; padding: 10px max(18px, calc((100% - 1100px) / 2)); }
header img { display: block; max-width: 100%; }
main { width: min(1100px, calc(100% - 32px)); margin: 24px auto 40px; }
h1 { margin: 0 0 18px; font-size: clamp(24px, 5vw, 32px); }
details, article { background: #fff; border: 1px solid #dedada; border-radius: 6px; }
details { max-width: 640px; }
summary { cursor: pointer; font-weight: 700; padding: 14px 16px; color: #ab211a; }
form { display: grid; gap: 14px; padding: 0 16px 16px; }
label { display: grid; gap: 4px; font-weight: 700; }
small { color: #555; font-weight: 400; }
input { width: 100%; border: 1px solid #999; border-radius: 4px; padding: 9px; font: inherit; }
#preview { max-width: 180px; max-height: 140px; object-fit: contain; }
button, #sign-in { width: fit-content; border: 0; border-radius: 4px; padding: 9px 14px; background: #b9221a; color: #fff; cursor: pointer; font: inherit; }
button:disabled { cursor: default; opacity: .55; }
#listings { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 14px; }
article { padding: 12px; overflow-wrap: anywhere; }
article img { display: block; width: 100%; height: 170px; object-fit: contain; }
article h2 { font-size: 16px; margin: 10px 0 4px; }
article strong { color: #ab211a; display: block; }
article a, article button { display: inline-block; margin: 8px 8px 0 0; }
article a { color: #7c201b; }
article button { background: #eee; color: #332a2a; font-size: 14px; }
nav { display: flex; gap: 8px; margin: 14px 0; }
