.admin-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; padding: 14px 16px; background: var(--ink); border-bottom: 3px solid var(--accent); }
.admin-nav .brand { font-family: var(--display); color: var(--accent); margin-right: auto; }
.admin-nav a { color: var(--text); text-decoration: none; font-weight: 800; }
.admin-nav a:hover { color: var(--accent); }
.admin-main { max-width: 1200px; margin: 0 auto; padding: 30px 16px 80px; }
.login { margin-top: 40px; max-width: 420px; }
.form input[type=password], .form input[type=datetime-local], .form input[type=date] {
  width: 100%; margin-top: 6px; padding: 13px 14px; font: inherit; font-weight: 600; color: var(--text);
  background: var(--field); border: 2px solid var(--line); border-radius: 12px; color-scheme: dark;
}
.flash { background: color-mix(in srgb, var(--accent) 12%, transparent); border: 2px solid var(--accent); border-radius: 12px; padding: 10px 14px; font-weight: 800; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 20px 0; }
.stat { background: var(--panel); border: 2px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 16px; padding: 16px; text-align: center; }
.stat .n { display: block; font-family: var(--display); font-size: 38px; color: var(--accent); line-height: 1.1; }
.stat .l { color: var(--muted); font-weight: 800; font-size: 14px; }
.wide-panel { max-width: none; margin: 0 0 22px; }
.wide-panel h2 { font-family: var(--display); font-weight: 400; color: var(--accent); margin: 0 0 12px; }
.allergy { border-color: var(--red); }
.row-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.btn.small { font-size: 14px; padding: 9px 16px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; color: var(--accent); font-family: var(--display); font-weight: 400; font-size: 13px; padding: 8px; border-bottom: 2px solid var(--line); white-space: nowrap; }
td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr.no td { opacity: .6; }
.x { background: none; border: 0; color: color-mix(in srgb, var(--red) 75%, var(--text)); cursor: pointer; font-size: 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.vid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.vid-grid figure { margin: 0; background: var(--field); border-radius: 14px; overflow: hidden; border: 2px solid var(--line); }
.vid-grid video, .vid-grid img { width: 100%; aspect-ratio: 9/12; object-fit: cover; background: #000; display: block; }
.vid-grid figcaption { padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; }
.vid-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.vid-actions a { font-weight: 800; text-decoration: none; }
.del { background: color-mix(in srgb, var(--red) 15%, transparent); color: color-mix(in srgb, var(--red) 75%, var(--text)); border: 1px solid color-mix(in srgb, var(--red) 50%, transparent); border-radius: 8px; padding: 6px 10px; font-weight: 800; cursor: pointer; }
.qr-panel { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.qr-panel img { border-radius: 10px; }
.form input[type=number], .form select {
  width: 100%; margin-top: 6px; padding: 13px 14px; font: inherit; font-weight: 600; color: var(--text);
  background: var(--field); border: 2px solid var(--line); border-radius: 12px; color-scheme: dark;
}
.wide-panel h3 { margin: 18px 0 6px; font-size: 17px; }
#extras h2 { margin-top: 10px; }
.text-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.text-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--field); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
form.inline { display: inline; margin-left: 10px; font-weight: 700; }
.admin-invite-video { width: 100%; max-width: 420px; max-height: 360px; border-radius: 12px; background: #000; display: block; margin: 8px 0 12px; }
.inline-upload { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 8px 0; }
.ticket-cell { min-width: 170px; }
.ticket-cell .warn { color: color-mix(in srgb, var(--red) 70%, var(--text)); font-weight: 700; }
.ticket-actions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.mini { background: var(--field); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.vip-mini { color: #d4af37; font-size: 12px; }
/* door scanner */
.checkin { max-width: 560px; margin: 0 auto; }
.scan-box { text-align: center; }
.scan-box video { width: 100%; max-height: 50vh; object-fit: cover; border-radius: 14px; background: #000; }
.guest-card { text-align: center; border: 4px solid var(--line); }
.guest-card.ok { border-color: #22c55e; }
.guest-card.in { border-color: #22c55e; background: color-mix(in srgb, #22c55e 12%, var(--panel)); }
.guest-card.already { border-color: #f59e0b; background: color-mix(in srgb, #f59e0b 12%, var(--panel)); }
.guest-card.bad { border-color: var(--red); background: color-mix(in srgb, var(--red) 12%, var(--panel)); }
.guest-card h2 { font-size: 28px; margin: 6px 0; color: var(--text) !important; }
.guest-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 14px; }
.allergy-note { color: color-mix(in srgb, var(--red) 70%, var(--text)); font-weight: 800; }
/* customize page */
.media-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.media-preview { width: 100%; max-height: 260px; object-fit: contain; background: #000; border-radius: 12px; display: block; margin: 6px 0 10px; }
.customize-form .panel h3 { margin: 18px 0 8px; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 18px; margin-bottom: 10px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 10px; }
label.check, label.choice { display: flex; align-items: center; gap: 10px; font-weight: 700; margin: 4px 0; cursor: pointer; }
label.check input, label.choice input { width: 20px; height: 20px; accent-color: var(--accent); flex-shrink: 0; }
.level-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin: 10px 0; }
.level-box { border: 2px solid var(--line); border-radius: 14px; padding: 12px 16px 14px; margin: 0; }
.level-box.vip { border-color: #d4af37; }
.level-box legend { font-family: var(--display); color: var(--accent); padding: 0 6px; }
.level-box.vip legend { color: #d4af37; }
.customize-form .btn { margin-top: 12px; }
.door-photo { width: 180px; height: 180px; object-fit: cover; border-radius: 50%; border: 4px solid var(--accent); display: block; margin: 6px auto 10px; }
.rsvp-thumb { width: 34px; height: 34px; object-fit: cover; border-radius: 50%; vertical-align: middle; margin-right: 8px; }
/* guest survey */
.survey-q-list { display: grid; gap: 8px; }
.survey-q { display: grid; grid-template-columns: 64px 1fr; gap: 8px; align-items: center; }
.survey-q input[type=text] { margin-top: 0 !important; }
.survey-results .score { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.survey-results .bar { display: inline-block; width: 120px; height: 10px; border-radius: 6px; background: var(--line); overflow: hidden; }
.survey-results .bar span { display: block; height: 100%; background: var(--accent); }
.survey-all { margin-top: 16px; }
.survey-all summary { cursor: pointer; font-weight: 800; }
.survey-results .score strong { display: inline-block; min-width: 36px; text-align: right; }

/* Customize -> Photo Booth backgrounds */
.booth-scene-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin: 10px 0 16px; }
.booth-scene { background: var(--field); border: 2px solid var(--line); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.booth-scene img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; display: block; }
.booth-scene input[type=text] { min-width: 0; flex: 1; }
.id-badge { display: inline-block; color: #fff; background: #1f8a4c; border-radius: 999px; padding: 4px 12px; font-weight: 800; }
.id-badge.id-missing { background: #c0392b; }
