* { box-sizing: border-box; }
:root { color-scheme: light; font: 100%/1.5 system-ui, sans-serif; color: #20292e; background: #d5dadd; --ink: #20292e; --line: #929da3; --accent: #244a45; }
body { margin: 0; min-height: 100vh; background: repeating-linear-gradient(0deg, #fff2 0 1px, #202a3310 1px 2px, transparent 2px 5px), linear-gradient(110deg,#b9c1c7,#e1e5e7 45%,#c4cbd0); }
[hidden] { display: none !important; }
.top { background: linear-gradient(#3a4147,#21272b); color: #f5f7f8; border-bottom: 4px solid #77858c; box-shadow: 0 2px 6px #19232844; }
.bar, main { max-width: 72rem; margin: auto; padding: 1rem clamp(1rem,4vw,2rem); }
.bar, .collection-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .65rem; color: inherit; text-decoration: none; font-size: 1.2rem; font-weight: 750; }
.brand img { border: 1px solid #8c9b9d; }
main { padding-top: clamp(2rem,6vw,4rem); padding-bottom: 4rem; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2rem,5vw,3.25rem); line-height: 1.08; letter-spacing: -.045em; }
h2 { font-size: 1.5rem; line-height: 1.2; }
.plate { position: relative; padding: clamp(1.25rem,5vw,2rem); border: 1px solid #879399; border-top-color: #f9fbfc; background: linear-gradient(127deg,#f3f5f6,#dfe4e6); box-shadow: 0 4px 0 #85919870, 0 10px 22px #25333a16; }
.plate::before, .plate::after { content: ""; position: absolute; top: .48rem; width: .47rem; aspect-ratio: 1; border-radius: 50%; background: linear-gradient(135deg,transparent 42%,#526067 43% 57%,transparent 58%),linear-gradient(#f6f9fa,#8f9aa0); box-shadow: 0 0 0 1px #849097; pointer-events: none; }
.plate::before { left: .48rem; }
.plate::after { right: .48rem; }
.login { max-width: 29rem; margin: 0 auto; display: grid; gap: 1.5rem; }
form:not([method="dialog"]) { display: grid; gap: .65rem; }
form > button { justify-self: start; margin-top: .4rem; }
label, legend { font-weight: 640; }
input, button { font: inherit; border-radius: 2px; }
input:not([type=file]) { min-height: 2.8rem; width: 100%; padding: .55rem .7rem; border: 1px solid var(--line); background: #fdfdfe; color: var(--ink); box-shadow: inset 0 1px 2px #21313c16; }
button { min-height: 2.7rem; padding: .42rem .85rem; border: 1px solid #76858a; border-top-color: #a2adb1; color: #21292d; background: linear-gradient(#f6f8f9,#c6ced2); box-shadow: inset 0 1px #fff9, 0 2px 0 #6f7b82; cursor: pointer; font-weight: 650; }
button.primary { color: #fff; background: linear-gradient(#3c6a62,var(--accent)); border-color: #284843; border-top-color: #678e86; box-shadow: inset 0 1px #fff3, 0 2px 0 #18342e; }
button:hover { filter: brightness(1.07); }
button:active { transform: translateY(1px); box-shadow: none; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 3px solid #52887c; outline-offset: 3px; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.end { justify-content: flex-end; margin-top: .6rem; }
.notice { padding: .7rem .9rem; margin-bottom: 1rem; background: #eef2f2; border-left: 4px solid #547d74; }
.muted { color: #46565e; }
#count { margin-top: .35rem; }
#search { max-width: 34rem; margin: 1.3rem 0; }
.empty { text-align: center; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill,minmax(15rem,1fr)); list-style: none; margin: 0; padding: 0; }
.card { min-width: 0; border: 1px solid #89979e; background: #f2f4f5; box-shadow: 0 2px 0 #85919870; }
.photo { display: grid; place-items: center; aspect-ratio: 4/3; background: #d0d7da; border-bottom: 1px solid #98a4a9; }
.photo img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.card-text { padding: .75rem .9rem; overflow-wrap: anywhere; }
.card h2 { font-size: 1.1rem; }
.delete-button { margin-top: .55rem; color: #762f28; font-size: .875rem; padding-inline: .6rem; }
button.danger { color: #fff; background: linear-gradient(#9a493e,#73332b); border-color: #6e382e; box-shadow: inset 0 1px #fff3, 0 2px 0 #4c2620; }
#delete-description { overflow-wrap: anywhere; }
@media (max-width: 48rem) {
  .grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; }
  .card-text { padding: .55rem .6rem; }
  .card h2 { font-size: 1rem; }
}
dialog { width: min(calc(100% - 2rem),34rem); padding: 0; border: 0; background: none; color: inherit; max-height: calc(100% - 2rem); }
dialog::backdrop { background: #182326b8; }
dialog h2 { margin-bottom: 1rem; }
dialog p + p { margin-top: .75rem; }
fieldset { margin: 0 0 .3rem; padding: .5rem .7rem; border: 1px solid var(--line); }
fieldset p { margin-top: .45rem; overflow-wrap: anywhere; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
