/* Admin dashboard */
.small { font-size: 13px; }
@media (max-width: 640px) { .hide-sm { display: none; } }

.login { min-height: calc(100vh - 70px); display: grid; place-items: center; padding: 24px var(--gutter); }
.login-card { width: min(420px, 100%); display: flex; flex-direction: column; gap: 20px; }
.login-card h1 { font-size: 26px; margin-bottom: 6px; }
.form-error { color: var(--danger); font-size: 14px; margin: -6px 0 0; }

.dash { max-width: 1100px; margin: 0 auto; padding: clamp(24px, 5vw, 48px) var(--gutter) 80px; display: flex; flex-direction: column; gap: 20px; }
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.dash-head h1 { margin-top: 8px; }

.create { display: flex; flex-direction: column; gap: 16px; animation: toast-in var(--normal) var(--ease); }
.create-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
@media (max-width: 760px) { .create-grid { grid-template-columns: 1fr; } }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; }

.albums { display: flex; flex-direction: column; gap: 16px; }
.album { display: grid; grid-template-columns: 188px 1fr; gap: clamp(16px, 3vw, 32px); animation: toast-in var(--normal) var(--ease); }
.album.flash { border-color: var(--accent); box-shadow: var(--glow); }
@media (max-width: 760px) { .album { grid-template-columns: 1fr; } }

.qr-col { display: flex; flex-direction: column; gap: 10px; }
.qr { display: block; width: 100%; max-width: 188px; aspect-ratio: 1; border-radius: 12px; background: #fff; padding: 8px; }
.qr img { width: 100%; height: 100%; display: block; }
.qr-col .btn { width: 100%; max-width: 188px; }
@media (max-width: 760px) { .qr-col { flex-direction: row; align-items: center; } .qr { width: 120px; } .qr-actions { flex: 1; } }
.qr-actions { display: flex; flex-direction: column; gap: 8px; }

.album-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.album-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.album-head h2 { font-size: 20px; overflow-wrap: anywhere; }
.album-sub { display: flex; gap: 10px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.link-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.link-row a { font: 13px var(--font-mono); color: var(--muted); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.link-row a:hover { color: var(--text); }

.block-title { font: 500 11px var(--font-body); text-transform: uppercase; letter-spacing: .16em; color: var(--muted); margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.upload-label { position: relative; overflow: hidden; }
.upload-label input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

details.more summary { cursor: pointer; color: var(--muted); font-size: 13px; list-style: none; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: "+ "; font-family: var(--font-mono); }
details.more[open] summary::before { content: "– "; }
details.more .creds { margin-top: 10px; }

.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 10px; }
.mod-item { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--surface-raised); }
.mod-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mod-item button { position: absolute; inset: auto 6px 6px auto; min-height: 28px; padding: 0 10px; font-size: 11px; background: rgba(0, 0, 0, .75); backdrop-filter: blur(6px); }
.mod-item button:hover { border-color: var(--danger); color: var(--danger); }

.empty-dash { text-align: center; padding: 48px 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
