* { box-sizing: border-box; }
body { margin: 0; background: var(--photo-paper); color: var(--photo-ink); font: 16px/1.7 var(--font-body); }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { min-height: 44px; padding: .55rem 1rem; border: 1px solid var(--photo-rule); border-radius: 8px; background: var(--photo-surface-deep); color: var(--photo-ink); cursor: pointer; }
button:hover { border-color: var(--photo-accent); }
button:disabled { opacity: .55; cursor: wait; }
:focus-visible { outline: 2px solid var(--photo-accent); outline-offset: 4px; }
.admin-header, main { width: min(1200px, calc(100% - 3rem)); margin-inline: auto; }
.admin-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.5rem; border-bottom: 1px solid var(--photo-rule); }
.admin-header a { display: flex; flex-wrap: wrap; gap: 1rem; }
.admin-header span, .admin-intro > p, section > p, .upload-section p, .trash > p { color: var(--photo-muted); }
.admin-intro { padding-top: 3rem; }
.eyebrow { font-size: .75rem; letter-spacing: .1em; }
h1 { margin: .5rem 0; font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 500; }
h2 { font-size: 1.25rem; font-weight: 500; }
#admin-status { padding: .75rem 0; color: var(--photo-accent); min-height: 3rem; overflow-wrap: anywhere; }
#login-panel { max-width: 420px; padding-bottom: 4rem; }
form { display: grid; gap: .75rem; }
label { font-size: .875rem; }
input, textarea, select { min-width: 0; width: 100%; padding: .65rem .75rem; border: 1px solid var(--photo-rule); border-radius: 6px; background: var(--photo-surface); color: var(--photo-ink); }
input[type=file] { white-space: normal; }
.upload-section { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.4fr); gap: 4rem; padding-bottom: 3rem; border-bottom: 1px solid var(--photo-rule); }
#upload-preview { display: block; max-width: 100%; max-height: 280px; object-fit: contain; justify-self: start; }
.list-heading { display: flex; align-items: center; justify-content: space-between; padding-top: 2rem; }
.admin-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 2rem 1.5rem; }
.admin-photo { min-width: 0; padding-bottom: 1.5rem; border-bottom: 1px solid var(--photo-rule); }
.admin-photo img { display: block; width: 100%; height: 220px; object-fit: contain; background: var(--photo-surface); }
.admin-photo form { margin-top: 1rem; }
.admin-photo-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.admin-photo-actions button { font-size: .8125rem; }
.trash { margin-block: 3rem 5rem; border-top: 1px solid var(--photo-rule); padding-top: 1.5rem; }
.trash summary { cursor: pointer; font-size: 1.125rem; }
@media(max-width:760px) { .admin-header, main { width: calc(100% - 2rem); } .upload-section { grid-template-columns: 1fr; gap: 1rem; } .admin-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem 1rem; } .admin-photo img { height: 180px; } }
@media(max-width:480px) { .admin-grid { grid-template-columns: 1fr; } }
