/* Admin + door scanner extras (loaded after app.css) */
body.admin { background: #FBFAF6; }
.admin-top { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.admin-top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.admin-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 10px 20px; border-bottom: 1px solid var(--line); background: #fff; scrollbar-width: none; }
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tabs button { flex-shrink: 0; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid transparent; background: transparent; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.admin-tabs button.on { background: var(--ink); color: #fff; }
.admin-tabs .count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: var(--gold); color: var(--ink); font-size: 12px; }
.pane { padding: 24px 0 80px; }
.pane h1 { font-size: 30px; margin-bottom: 4px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 16px 0; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 16px 0 24px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.stat b { display: block; font-family: var(--display); font-size: 28px; }
.stat span { font-size: 13px; color: var(--muted); }
.list { display: grid; gap: 12px; }
.item { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 8px; }
.item-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.item h3 { font-size: 18px; }
.meta-line { font-size: 14px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th, table.t td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t th { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); background: var(--card); }
table.t tr.flag td { background: var(--bad-soft); }
.editor { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: grid; gap: 16px; }
.row-3 { display: grid; gap: 12px; }
.checks { display: flex; flex-wrap: wrap; gap: 16px; }
.checks label { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: 14px; }
.checks input { width: 20px; height: 20px; accent-color: var(--ink); }
.tt-edit { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.chart-edit { display: grid; grid-template-columns: 34px 1fr 1fr auto; gap: 8px; align-items: center; }
.chart-edit .n { font-family: var(--display); font-weight: 700; text-align: center; }
.mini { min-height: 40px; padding: 8px 10px; font-size: 14px; }
.thumb { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--ink); flex-shrink: 0; }
.login { min-height: 100dvh; display: grid; place-items: center; padding: 20px; }
.login .card { width: 100%; max-width: 400px; padding: 28px; background: #fff; }
@media (min-width: 700px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .row-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Door scanner */
body.door { background: var(--ink); color: #fff; min-height: 100dvh; }
.door-wrap { max-width: 520px; margin: 0 auto; padding: 16px; display: grid; gap: 14px; }
#reader { width: 100%; border-radius: 18px; overflow: hidden; background: #1B1A17; min-height: 260px; }
#reader video { border-radius: 18px; }
.result { border-radius: 20px; padding: 22px; text-align: center; display: grid; gap: 6px; }
.result h2 { font-size: 34px; }
.result.ok { background: #1E7B3A; }
.result.warn { background: #B7791F; }
.result.bad { background: #A3261E; }
.result.idle { background: #1B1A17; color: #D9D4C7; }
.door .input { background: #1B1A17; border-color: #3A372F; color: #fff; }
.door .btn-soft { background: #2A2823; color: #fff; }
.thumb-row, .img-row { display: flex; gap: 8px; flex-wrap: wrap; }
.thumb-row img { width: 84px; height: 105px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.img-row { margin-top: 8px; }
.img-chip { position: relative; }
.img-chip img { width: 76px; height: 95px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: block; }
.img-chip button { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-size: 12px; cursor: pointer; }
.size-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px auto; gap: 8px; margin-bottom: 6px; align-items: center; }

/* Top bar on phones: let it grow to two lines instead of spilling off the screen */
@media (max-width: 640px) {
  .admin-top .wrap { height: auto; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; gap: 8px; }
  .admin-acts { flex-wrap: wrap; }
  .admin-acts #who { display: none; }
}
/* Artwork sent with a song submission (v94) */
.sub-cover { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.sub-cover img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--card); }
