:root { color-scheme: light; font-family: system-ui, sans-serif; color: #172f36; background: #f2f5f4; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
header { background: #173c42; color: white; padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
h1 { margin: 0; font-size: 1.5rem; }
main { max-width: 1280px; margin: auto; padding: 1rem; }
section { background: white; border: 1px solid #d5dfdc; border-radius: .5rem; margin-bottom: 1rem; padding: 1.25rem; }
h2 { font-size: 1.25rem; margin-top: 0; }
h3, h4 { margin-bottom: .5rem; }
label { display: block; margin-bottom: .4rem; }
button, input { font: inherit; border-radius: .3rem; padding: .6rem .8rem; }
input { border: 1px solid #809b9c; min-width: 0; max-width: 100%; }
button { background: #17606a; color: white; border: 1px solid #17606a; cursor: pointer; }
button:hover { background: #104750; }
button:disabled { opacity: .5; cursor: default; }
button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #db9f24; outline-offset: 3px; }
#login { max-width: 600px; margin: 2rem auto; }
#login input { width: 100%; margin-bottom: 1rem; }
#notice { min-height: 1.5rem; overflow-wrap: anywhere; font-weight: 600; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.section-heading h2 { margin: 0; }
.search { display: flex; gap: .5rem; }
.search input { flex: 1; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.product { border: 1px solid #d5dfdc; border-radius: .4rem; padding: 1rem; min-width: 0; overflow-wrap: anywhere; }
.product img { object-fit: contain; width: 100%; height: 140px; background: #f5f6f5; }
.product h3 { font-size: 1rem; }
nav { display: flex; gap: .75rem; margin-top: 1rem; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
td, th { text-align: left; vertical-align: top; border-bottom: 1px solid #d5dfdc; padding: .6rem; overflow-wrap: anywhere; }
.error { color: #9c2921; font-weight: 600; }
details { margin-top: 1rem; }
summary { cursor: pointer; overflow-wrap: anywhere; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .8rem; }
p { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  header { padding: 1rem; }
  section { padding: 1rem; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  th, td { padding: .35rem; font-size: .8rem; }
}
