* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background-color: #111314; background-image: linear-gradient(#292c2e 1px, transparent 1px), linear-gradient(90deg, #292c2e 1px, transparent 1px); background-size: 24px 24px; color: #eeeeee; font-family: Arial, sans-serif; }
main { width: min(1100px, calc(100% - 32px)); margin: 32px auto; }
#auth-section { max-width: 480px; margin: 0 auto; }
.panel { padding: 24px; background: #17191a; border: 2px solid #eeeeee; }
h2 { margin-top: 0; }
label { display: block; margin: 12px 0 6px; }
input, select { width: 100%; padding: 11px; border: 1px solid #c8ccce; background: #1d1f20; color: #eeeeee; font: inherit; }
input[type="checkbox"] { width: auto; }
button { padding: 12px; border: 2px solid #eeeeee; background: #eeeeee; color: #111314; font: inherit; cursor: pointer; }
button.secondary { background: #1d1f20; color: #eeeeee; }
button.small { width: auto; margin: 0; }
#auth-form button, #show-add-button, #add-item-form button { width: 100%; margin-top: 20px; }
#message, #items-message { min-height: 24px; color: #ffb5b5; }
.hidden { display: none !important; }
.user-line { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.user-line p { overflow-wrap: anywhere; }
.filters { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 12px; align-items: end; margin-bottom: 16px; }
#filters button { margin-bottom: 1px; }
.items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.item-card { background: #17191a; border: 2px solid #eeeeee; padding: 12px; }
.item-card img { width: 100%; height: 190px; object-fit: contain; background: #25282a; }
.item-card h3 { margin-bottom: 4px; }
.item-card p { margin-top: 4px; color: #c8ccce; }
.item-card button { width: 100%; margin-top: 12px; }
@media (max-width: 800px) { .items { grid-template-columns: repeat(2, 1fr); } .filters { grid-template-columns: 1fr 1fr; } #filters button { grid-column: 1 / -1; } }
@media (max-width: 480px) { main { width: calc(100% - 20px); margin: 20px auto; } .items, .filters { grid-template-columns: 1fr; } #filters button { grid-column: auto; } .panel { padding: 18px; } }
