:root { font-family: system-ui, sans-serif; color: #172433; background: #f3f6fa; }
body { margin: 0; }
main { max-width: 960px; margin: auto; padding: 1.5rem; }
h1 { margin-bottom: .3rem; }
form, #results { background: white; border-radius: .6rem; padding: 1.5rem; margin-top: 1rem; }
label { display: block; margin: 1rem 0; font-weight: 600; }
input[type="file"], input[type="number"] { display: block; margin-top: .4rem; max-width: 100%; }
small { display: block; color: #526170; font-weight: normal; margin-top: .3rem; }
.check { font-weight: normal; }
section { border-top: 1px solid #dce3eb; margin-top: 1.5rem; }
button, #download { display: inline-block; border: 0; border-radius: .3rem; padding: .7rem 1rem; background: #245c98; color: white; cursor: pointer; text-decoration: none; }
button:disabled { opacity: .6; cursor: wait; }
#status { min-height: 1.5em; }
#collage { max-width: 100%; height: auto; }
#matches { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
figure { margin: 0; overflow-wrap: anywhere; }
figure img { width: 100%; height: 150px; object-fit: contain; background: #f3f6fa; }
