:root {
  --night: #121132;
  --midnight: #080816;
  --ink: #080816;
  --cream: #fff6df;
  --paper: #f3ead4;
  --gold: #f6dc35;
  --red: #f33435;
  --orange: #f36a21;
  --pink: #ea62a3;
  --green: #05a85a;
  --leaf: #0c6f3d;
  --cyan: #00a7dc;
  --white: #fffaf0;
  --muted: rgba(255, 250, 240, 0.78);
  --line: rgba(255, 250, 240, 0.22);
  --font-title: "Rye", Georgia, serif;
  --font-lineup: "Bungee Condensed", Impact, "Arial Narrow", sans-serif;
  --font-body: "Montserrat", Arial, Helvetica, sans-serif;
  --font-folk: "Trade Winds", "Rye", Georgia, serif;
  --page-gutter: clamp(24px, 3vw, 40px);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--midnight);
}

body {
  position: relative;
  margin: 0;
  padding-top: var(--page-gutter);
  min-height: 100vh;
  color: var(--white);
  font-family: var(--font-body);
  background:
    linear-gradient(180deg, rgba(8, 8, 22, 0.52), rgba(8, 8, 22, 0.78)),
    var(--site-background-image, url("images/festival-forest-background.png")) center top / cover fixed,
    #05050f;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 0 46%, rgba(0, 0, 0, 0.38) 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.58;
  background:
    repeating-radial-gradient(ellipse at 50% 0%, rgba(255, 250, 240, 0.04) 0 1px, transparent 1px 6px);
  mix-blend-mode: screen;
}

button,
input,
select,
textarea {
  font: inherit;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  width: min(1180px, calc(100% - (var(--page-gutter) * 2)));
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  outline: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-family: var(--font-lineup);
  font-size: 1.65rem;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
}

.link-button {
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--gold);
  background: transparent;
  font-weight: 900;
  text-decoration: underline;
  text-transform: uppercase;
  cursor: pointer;
}

main {
  display: flow-root;
  padding-bottom: 56px;
}

.hero,
.workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: stretch;
  width: min(1180px, calc(100% - (var(--page-gutter) * 2)));
  margin: 22px auto 0;
}

.workbench {
  margin-top: 22px;
}

.poster,
.ticket,
.panel,
.ticket-stub,
.guest-table-wrap {
  position: relative;
  border: 5px solid var(--white);
  background: var(--night);
  color: var(--white);
}

.poster,
.ticket {
  padding: clamp(24px, 4.5vw, 48px);
  outline: 8px solid var(--cyan);
  outline-offset: -8px;
  box-shadow: inset 0 0 0 5px var(--gold), inset 0 0 0 10px var(--midnight);
}

.poster::after,
.ticket::after {
  content: "";
  position: absolute;
  inset: 12px;
  pointer-events: none;
  border: 2px solid var(--cyan);
}

.poster::before,
.ticket::before,
.panel::before,
.ticket-stub::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.2) 0 1px, transparent 1.2px),
    repeating-linear-gradient(0deg, transparent 0 4px, rgba(255, 255, 255, 0.06) 5px 6px);
  mix-blend-mode: screen;
}

.forest-ribbon {
  position: relative;
  height: clamp(92px, 13vw, 150px);
  margin: -6px -4px 18px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 8, 22, 0.04), rgba(8, 8, 22, 0.16)),
    var(--venue-banner-image, url("images/broadfield-court-banner.png")) center center / cover;
}

.forest-ribbon::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 250, 240, 0.22) 0 1px, transparent 1.2px),
    repeating-linear-gradient(0deg, transparent 0 5px, rgba(255, 250, 240, 0.05) 6px 7px);
  mix-blend-mode: screen;
  pointer-events: none;
}

.kicker,
.small-label {
  margin: 0 0 12px;
  color: var(--gold);
  font-family: var(--font-lineup);
  font-size: clamp(1.05rem, 1.55vw, 1.35rem);
  letter-spacing: 0;
  line-height: 0.95;
  text-transform: uppercase;
}

.poster .kicker {
  text-align: center;
}

h1,
h2,
p {
  margin-top: 0;
}

.festival-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  column-gap: 0.14em;
  row-gap: 0.02em;
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(2.4rem, 5.2vw, 5rem);
  font-weight: 400;
  line-height: 0.88;
  text-align: center;
  text-transform: uppercase;
  paint-order: stroke fill;
  -webkit-text-stroke: 1.1px var(--midnight);
  text-shadow: 1.5px 1.5px 0 var(--white), 3px 3px 0 var(--midnight);
}

.compact-title {
  justify-content: flex-start;
  font-size: clamp(2rem, 3.8vw, 3.6rem);
  text-align: left;
}

.festival-title span {
  display: inline-block;
}

.festival-title .title-word {
  white-space: nowrap;
}

.festival-title .title-amp {
  margin-inline: -0.03em;
}

.amp {
  padding-inline: 0.02em;
  font-family: var(--font-folk);
  font-size: 0.58em;
  -webkit-text-stroke: 1px var(--midnight);
}

.tone-cyan { color: var(--cyan); }
.tone-red { color: var(--red); }
.tone-green { color: var(--green); }
.tone-pink { color: var(--pink); }
.tone-yellow { color: var(--gold); }
.tone-orange { color: var(--orange); }
.tone-white { color: var(--white); }

.names {
  margin: 10px 0 4px;
  color: var(--white);
  font-family: var(--font-lineup);
  font-size: clamp(1.45rem, 3.05vw, 2.5rem);
  line-height: 0.88;
  text-align: center;
  text-transform: uppercase;
}

.names,
.date-grid strong,
.existing-id strong,
.panel h1,
.panel h2,
.ticket-stub h1,
.admin-header h1,
.ticket dd {
  -webkit-font-smoothing: antialiased;
  paint-order: stroke fill;
  color: var(--cream);
  -webkit-text-stroke: 0.28px rgba(243, 52, 53, 0.58);
  text-shadow:
    0.55px 0.75px 0 rgba(243, 52, 53, 0.82),
    1.35px 2.45px 0 var(--red),
    2.1px 3.45px 0 rgba(243, 52, 53, 0.72),
    2.8px 4.4px 0.45px rgba(8, 8, 22, 0.5),
    0 0 0.55px rgba(255, 250, 240, 0.55);
}

.date-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 28px;
  border-block: 3px solid var(--white);
}

.date-grid div {
  min-height: 112px;
  padding: 14px 12px;
  border-inline-end: 3px solid var(--white);
  background: var(--midnight);
  text-align: center;
}

.date-grid div:last-child {
  border-inline-end: 0;
}

.date-grid span,
.existing-id span,
dt,
.muted {
  color: var(--gold);
  font-family: var(--font-lineup);
  font-size: 0.95rem;
  line-height: 0.95;
  text-transform: uppercase;
}

.date-grid strong,
.existing-id strong {
  display: block;
  margin-top: 8px;
  color: var(--white);
  font-family: var(--font-lineup);
  font-size: clamp(1.05rem, 1.55vw, 1.35rem);
  font-weight: 400;
  line-height: 0.9;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.panel,
.ticket-stub,
.guest-table-wrap {
  padding: clamp(20px, 3vw, 32px);
  background:
    linear-gradient(180deg, rgba(12, 111, 61, 0.22), transparent 34%),
    var(--night);
  outline: 4px solid var(--gold);
  outline-offset: -4px;
}

.panel h1,
.panel h2,
.ticket-stub h1,
.admin-header h1 {
  margin-bottom: 14px;
  color: var(--white);
  font-family: var(--font-lineup);
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  font-weight: 400;
  line-height: 0.86;
  text-transform: uppercase;
}

label,
legend {
  display: block;
  color: var(--gold);
  font-family: var(--font-lineup);
  font-size: 1rem;
  line-height: 0.95;
  text-transform: uppercase;
}

label {
  margin: 18px 0 8px;
}

fieldset {
  margin: 30px 0 0;
  padding: 22px 0 0;
  border: 0;
  border-top: 3px solid var(--white);
}

legend {
  width: 100%;
  margin-bottom: 8px;
}

input,
select,
textarea {
  width: 100%;
  border: 3px solid var(--white);
  border-radius: 0;
  background: var(--cream);
  color: var(--midnight);
  padding: 13px 14px;
  font-weight: 800;
}

input:focus,
select:focus,
textarea:focus {
  outline: 4px solid var(--cyan);
}

body.modal-open {
  overflow: hidden;
}

button,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 22px;
  padding: 0 22px;
  border: 3px solid var(--white);
  color: var(--midnight);
  background: var(--gold);
  font-family: var(--font-lineup);
  font-size: 1.05rem;
  line-height: 0.9;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

button:hover,
.secondary-action:hover {
  color: var(--white);
  background: var(--red);
}

.decline-action {
  color: var(--white);
  background: var(--red);
}

.decline-action:hover {
  color: var(--midnight);
  background: var(--cream);
}

.save-date-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(8, 8, 22, 0.6), rgba(8, 8, 22, 0.82)),
    rgba(8, 8, 22, 0.68);
}

.save-date-modal[hidden] {
  display: none;
}

.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(8, 8, 22, 0.62), rgba(8, 8, 22, 0.86)),
    rgba(8, 8, 22, 0.72);
}

.confirm-modal[hidden] {
  display: none;
}

.confirm-dialog {
  width: min(520px, 100%);
  padding: clamp(22px, 5vw, 36px);
  border: 5px solid var(--white);
  outline: 4px solid var(--red);
  outline-offset: -12px;
  background:
    linear-gradient(180deg, rgba(0, 167, 220, 0.16), transparent 42%),
    var(--night);
  color: var(--white);
  text-align: center;
}

.confirm-dialog h2 {
  margin: 0 0 14px;
  color: var(--cream);
  font-family: var(--font-lineup);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 400;
  line-height: 0.88;
  text-transform: uppercase;
  paint-order: stroke fill;
  -webkit-text-stroke: 0.28px rgba(243, 52, 53, 0.58);
  text-shadow:
    0.55px 0.75px 0 rgba(243, 52, 53, 0.82),
    1.35px 2.45px 0 var(--red),
    2.1px 3.45px 0 rgba(243, 52, 53, 0.72);
}

.confirm-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.confirm-actions button {
  margin-top: 0;
}

.save-date-dialog {
  width: min(620px, 100%);
  max-height: min(760px, calc(100vh - 44px));
  overflow: auto;
  padding: clamp(24px, 5vw, 42px);
  border: 5px solid var(--white);
  outline: 4px solid var(--red);
  outline-offset: -12px;
  background:
    radial-gradient(circle at 78% 12%, rgba(246, 220, 53, 0.15) 0 14%, transparent 15%),
    linear-gradient(180deg, rgba(0, 167, 220, 0.18), transparent 42%),
    var(--night);
  color: var(--white);
  text-align: center;
}

.save-date-dialog h1 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  column-gap: 0.14em;
  row-gap: 0.02em;
  margin-bottom: 12px;
  font-family: var(--font-title);
  font-size: clamp(2.15rem, 9vw, 4.4rem);
  font-weight: 400;
  line-height: 0.9;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
  paint-order: stroke fill;
  -webkit-text-stroke: 0.4px rgba(243, 52, 53, 0.72);
  text-shadow:
    1.2px 2px 0 var(--red),
    2px 3.5px 0 rgba(243, 52, 53, 0.72),
    2.7px 4.6px 0.4px rgba(8, 8, 22, 0.55);
}

.save-date-dialog h1 span {
  display: inline-block;
}

.save-date-dialog .title-word {
  white-space: nowrap;
}

.modal-intro {
  max-width: 32rem;
  margin: 0 auto 22px;
  color: var(--muted);
  font-weight: 800;
}

.modal-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 24px 0;
  border-block: 3px solid var(--white);
  background: rgba(8, 8, 22, 0.7);
}

.modal-details div {
  min-height: 104px;
  padding: 14px 10px;
  border-inline-end: 3px solid var(--white);
}

.modal-details div:last-child {
  border-inline-end: 0;
}

.modal-details dt {
  color: var(--gold);
}

.modal-details dd {
  margin: 8px 0 0;
  color: var(--cream);
  font-family: var(--font-lineup);
  font-size: clamp(1rem, 3vw, 1.35rem);
  line-height: 0.9;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.info-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: min(1180px, calc(100% - (var(--page-gutter) * 2)));
  margin: 34px auto 56px;
  border: 5px solid var(--white);
  outline: 4px solid var(--green);
  outline-offset: -4px;
  background: var(--midnight);
}

.info-band > div {
  min-height: 184px;
  padding: 22px;
  border-inline-end: 3px solid var(--white);
}

.info-band > div:last-child {
  border-inline-end: 0;
}

.info-band h2 {
  margin-bottom: 8px;
  color: var(--cyan);
  font-family: var(--font-lineup);
  font-size: clamp(1.55rem, 2.55vw, 2.2rem);
  line-height: 0.84;
  text-transform: uppercase;
}

.info-band p,
.helper-text {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.stamp {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border: 3px solid var(--white);
  color: var(--midnight);
  background: var(--green);
  font-family: var(--font-lineup);
  font-size: 1.25rem;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ticket-stub {
  align-self: start;
}

.ticket-stub strong {
  display: block;
  color: var(--white);
  font-family: var(--font-lineup);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 0.9;
  overflow-wrap: anywhere;
}

.stub-divider {
  height: 3px;
  margin: 26px 0;
  background: repeating-linear-gradient(90deg, var(--white) 0 14px, transparent 14px 22px);
}

.upload-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 14px;
  align-items: stretch;
}

.photo-preview {
  display: grid;
  place-items: center;
  width: 112px;
  aspect-ratio: 1;
  border: 3px dashed var(--gold);
  color: var(--gold);
  background: rgba(0, 0, 0, 0.28);
  font-family: var(--font-lineup);
  font-size: 1.25rem;
  overflow: hidden;
}

.photo-preview.has-photo {
  display: block;
  padding: 0;
  border-style: solid;
}

.photo-preview.has-photo img,
.ticket-side img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.existing-id,
.linked-person,
.address-block {
  border: 3px solid var(--white);
  background: rgba(8, 8, 22, 0.62);
}

.existing-id,
.linked-person {
  margin-top: 20px;
  padding: 18px;
}

.status-notice {
  display: grid;
  gap: 6px;
  margin: 0 0 22px;
  padding: 16px;
  border: 3px solid var(--red);
  background: rgba(243, 52, 53, 0.16);
  color: var(--white);
  font-weight: 800;
}

.status-notice span {
  color: var(--muted);
  font-weight: 700;
}

.decline-panel {
  grid-column: 1 / -1;
}

.linked-decline-options {
  margin-top: 18px;
  padding: 16px;
  border: 3px solid var(--cyan);
  background: rgba(8, 8, 22, 0.52);
}

.address-block {
  margin-top: 10px;
  padding: 14px;
  border-color: var(--cyan);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-row input {
  width: auto;
  accent-color: var(--gold);
}

.ticket-page {
  display: grid;
  place-items: center;
  width: min(1120px, calc(100% - (var(--page-gutter) * 2)));
  margin: 28px auto 0;
}

.ticket {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  width: 100%;
  padding: 0;
}

.ticket-main {
  min-width: 0;
  padding: clamp(24px, 4vw, 44px);
}

.ticket dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 28px 0 0;
  border-block: 3px solid var(--white);
}

.ticket dl div {
  padding: 14px 12px;
  border-inline-end: 3px solid var(--white);
}

.ticket dl div:last-child {
  border-inline-end: 0;
}

.ticket dd {
  margin: 5px 0 0;
  color: var(--white);
  font-family: var(--font-lineup);
  font-size: 1rem;
  line-height: 0.92;
  text-transform: uppercase;
}

.ticket-side {
  display: grid;
  place-items: center;
  min-height: 360px;
  border-left: 3px dashed var(--white);
  background:
    linear-gradient(180deg, rgba(5, 168, 90, 0.38), rgba(8, 8, 22, 0.9)),
    var(--night);
  overflow: hidden;
}

.ticket-side span {
  color: var(--gold);
  font-family: var(--font-lineup);
  font-size: 5rem;
}

.party-summary {
  width: 100%;
  margin-top: 26px;
}

.party-summary ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  border-block: 3px solid var(--white);
  list-style: none;
}

.party-summary li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 2px solid var(--line);
  color: var(--white);
  font-family: var(--font-lineup);
  font-size: 1.22rem;
  line-height: 0.92;
  text-transform: uppercase;
}

.party-summary li:last-child {
  border-bottom: 0;
}

.party-summary span {
  color: var(--gold);
}

.admin-shell {
  width: min(1480px, calc(100% - (var(--page-gutter) * 2)));
  margin: 20px auto 0;
}

.admin-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.admin-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 8px;
}

.count {
  padding: 7px 10px;
  border: 3px solid var(--white);
  color: var(--midnight);
  background: var(--gold);
  font-family: var(--font-lineup);
  font-size: 0.98rem;
}

.admin-actions {
  display: grid;
  grid-template-columns: minmax(280px, 1.35fr) repeat(4, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.admin-action {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  padding: 14px;
}

.admin-action h2 {
  margin: 0;
  font-size: 1.35rem;
}

.admin-action label,
.admin-action .helper-text {
  margin: 0;
}

.admin-action .helper-text {
  font-size: 0.78rem;
  line-height: 1.35;
}

.admin-action input,
.admin-action textarea {
  padding: 8px;
}

.admin-action button,
.admin-action .secondary-action {
  min-height: 38px;
  margin-top: 0;
  padding: 9px 12px;
  font-size: 0.9rem;
}

button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.danger-button {
  color: var(--white);
  background: var(--red);
}

.status-pill {
  display: inline-flex;
  margin-bottom: 4px;
  padding: 5px 8px;
  border: 2px solid var(--white);
  color: var(--midnight);
  background: var(--gold);
  font-family: var(--font-lineup);
  font-size: 0.95rem;
  line-height: 0.9;
  text-transform: uppercase;
}

.status-registered {
  background: var(--green);
}

.status-declined {
  color: var(--white);
  background: var(--red);
}

.guest-table small {
  display: block;
  color: var(--muted);
  font-weight: 700;
}

.mini-form {
  display: grid;
  gap: 8px;
}

.mini-form label {
  margin: 0;
  font-size: 0.95rem;
}

.mini-form input,
.mini-form select,
.mini-form textarea {
  padding: 8px;
}

.mini-form button {
  min-height: 38px;
  margin-top: 4px;
  font-size: 0.95rem;
}

.guest-table-wrap {
  padding: 0;
  overflow-x: auto;
  max-height: calc(100vh - 260px);
  overflow-y: auto;
}

.guest-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--night);
}

.guest-table th,
.guest-table td {
  min-width: 116px;
  padding: 9px 10px;
  border: 2px solid var(--white);
  color: var(--white);
  text-align: left;
  vertical-align: middle;
  font-size: 0.9rem;
}

.guest-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: var(--gold);
  background: var(--midnight);
  font-family: var(--font-lineup);
  font-size: 1rem;
  line-height: 0.9;
  text-transform: uppercase;
}

.guest-table .email-cell {
  min-width: 220px;
  overflow-wrap: anywhere;
}

.guest-table .actions-cell {
  min-width: 360px;
  vertical-align: top;
}

.compact-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.compact-stack span {
  display: inline-flex;
  padding: 4px 6px;
  border: 1px solid var(--line);
  color: var(--cream);
  background: rgba(8, 8, 22, 0.48);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.guest-config {
  margin-bottom: 8px;
}

.guest-config summary {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 7px 10px;
  border: 2px solid var(--white);
  color: var(--midnight);
  background: var(--gold);
  font-family: var(--font-lineup);
  font-size: 1rem;
  line-height: 0.9;
  text-transform: uppercase;
  cursor: pointer;
}

.guest-config[open] {
  min-width: min(720px, calc(100vw - 80px));
}

.guest-config[open] summary {
  margin-bottom: 10px;
  color: var(--white);
  background: var(--red);
}

.admin-config-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(100px, 1fr));
  gap: 8px;
}

.admin-config-grid .wide-field {
  grid-column: span 3;
}

.admin-check {
  align-self: end;
  min-height: 38px;
  padding: 8px;
  border: 2px solid var(--line);
}

.invite-link-input {
  width: 100%;
  padding: 7px 8px;
  font-size: 0.72rem;
}

.flash-stack {
  position: fixed;
  top: 90px;
  right: 18px;
  z-index: 3;
  display: grid;
  gap: 8px;
  width: min(390px, calc(100% - 36px));
}

.flash {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  margin: 0;
  padding: 14px;
  border: 3px solid var(--white);
  color: var(--white);
  background: var(--night);
  font-weight: 900;
  transition: opacity 220ms ease, transform 220ms ease;
}

.flash p {
  margin: 0;
}

.flash-close {
  min-height: 30px;
  width: 30px;
  margin: 0;
  padding: 0;
  border-width: 2px;
  color: var(--midnight);
  background: var(--cream);
  font-size: 0.85rem;
}

.flash-hidden {
  opacity: 0;
  transform: translateY(-6px);
}

.flash-error {
  background: #8b151d;
}

.flash-success {
  background: #0c6f3d;
}

@media (max-width: 900px) {
  .hero,
  .workbench,
  .info-band,
  .ticket,
  .ticket dl,
  .modal-details,
  .date-grid {
    grid-template-columns: 1fr;
  }

  .date-grid div,
  .info-band > div,
  .ticket dl div,
  .modal-details div {
    border-inline-end: 0;
    border-bottom: 3px solid var(--white);
  }

  .date-grid div:last-child,
  .info-band > div:last-child,
  .ticket dl div:last-child,
  .modal-details div:last-child {
    border-bottom: 0;
  }

  .ticket-side {
    min-height: 220px;
    border-top: 3px dashed var(--white);
    border-left: 0;
  }

  .admin-header {
    display: grid;
  }

  .admin-metrics {
    justify-content: start;
  }

  .admin-actions {
    grid-template-columns: 1fr;
  }

  .guest-table-wrap {
    max-height: none;
  }

  .guest-config[open] {
    min-width: min(620px, calc(100vw - 80px));
  }

  .admin-config-grid {
    grid-template-columns: 1fr;
  }

  .admin-config-grid .wide-field {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .topbar,
  .hero,
  .workbench,
  .info-band,
  .ticket-page,
  .admin-shell {
    width: min(100% - (var(--page-gutter) * 2), 1180px);
  }

  .poster,
  .ticket {
    outline-width: 4px;
    box-shadow: inset 0 0 0 4px var(--gold), inset 0 0 0 8px var(--midnight);
    padding: 18px;
  }

  .festival-title {
    font-size: clamp(1.75rem, 8.2vw, 2.35rem);
    text-shadow: 1px 1px 0 var(--white), 3px 3px 0 var(--midnight);
  }

  .compact-title {
    font-size: clamp(1.65rem, 7.6vw, 2.2rem);
  }

  .names {
    font-size: clamp(1.25rem, 6.4vw, 1.9rem);
  }

  .field-grid,
  .upload-row {
    grid-template-columns: 1fr;
  }

  .photo-preview {
    aspect-ratio: 1;
  }
}
