@font-face {
  font-family: 'Benzin';
  src: url("../fonts/Benzin Bold.1cd4affb28aa.ttf") format('truetype');
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'Space Mono';
  src: url("../fonts/SpaceMono-Regular.59c83e1fe244.ttf") format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Mono';
  src: url("../fonts/SpaceMono-Bold.87357b7223ab.ttf") format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Mono';
  src: url("../fonts/SpaceMono-Italic.c3032fccd961.ttf") format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Space Mono';
  src: url("../fonts/SpaceMono-BoldItalic.8a6e1f92b87c.ttf") format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg:         #0a0a0a;
  --surface:    #111111;
  --surface-2:  #1c1c1c;
  --surface-3:  #272727;
  --border:     #2a2a2a;
  --border-2:   #3c3c3c;
  --text:       #f0f0f0;
  --text-2:     #999999;
  --text-3:     #555555;
  --success:    #4ade80;
  --danger:     #f87171;
  --warning:    #fbbf24;
  --r-sm:       4px;
  --r:          8px;
  --r-lg:       12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Disable double-tap-to-zoom (and the 300ms tap delay) site-wide; pinch-zoom
   and browser zoom still work. */
* { touch-action: manipulation; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ── Header ── */
.site-header {
  background: #000;
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 64px;
}
.site-header .logo {
  display: flex;
  align-items: center;
}
.site-header .logo-img {
  height: 36px;
  width: auto;
  display: block;
}

/* ── Containers ── */
.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* ── Header hamburger menu (box office + scanner) ── */
.app-menu-wrap { position: relative; margin-left: auto; display: flex; align-items: center; }
.app-menu-btn { background: none; border: 0; color: var(--text-2); cursor: pointer; padding: .3rem;
                display: inline-flex; align-items: center; line-height: 0; border-radius: 8px; }
.app-menu-btn:hover { color: var(--text); background: #161616; }
.app-menu { position: absolute; top: calc(100% + .55rem); right: 0; min-width: 190px; padding: .35rem;
            background: var(--surface); border: 1px solid var(--border-2); border-radius: 10px;
            z-index: 300; box-shadow: 0 10px 30px rgba(0,0,0,.55); }
.app-menu[hidden] { display: none; }
.app-menu-user { padding: .55rem .65rem .5rem; font-size: .78rem; color: var(--text-2);
                 border-bottom: 1px solid var(--border); margin-bottom: .3rem;
                 white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-menu a, .app-menu button { display: block; width: 100%; box-sizing: border-box; text-align: left;
                 background: none; border: 0; color: var(--text); font-weight: 500; font-size: .85rem;
                 padding: .55rem .65rem; border-radius: 6px; cursor: pointer; text-decoration: none;
                 font-family: inherit; }
.app-menu a:hover, .app-menu button:hover { background: var(--surface-2); }
.app-menu form { margin: 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .65rem 1.5rem;
  border-radius: var(--r);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity .15s, transform .1s;
  letter-spacing: .015em;
}
.btn-primary { background: #fff; color: #000; }
.btn-primary:hover { opacity: .88; color: #000; }
.btn-primary:active { transform: scale(.98); }
.btn-accent { background: #d7ff3f; color: #000; }
.btn-accent:hover { opacity: .88; color: #000; }
.btn-accent:active { transform: scale(.98); }

.cart-footer-btn { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 480px) {
  .cart-footer-btn { font-size: .78rem; padding: .55rem 1rem; }
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-2);
}
.btn-secondary:hover { border-color: var(--text-2); }
.btn-lg { padding: .9rem 2rem; font-size: .93rem; }
.btn-full { width: 100%; }
.btn:disabled { opacity: .3; cursor: not-allowed; transform: none !important; }

/* ── Forms ── */
.form-group { margin-bottom: .9rem; }
.form-group label {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: .3rem;
}
.form-group input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  padding: .6rem .85rem;
  font-size: .9rem;
  transition: border-color .15s;
  -webkit-appearance: none;
}
.form-group input:focus { outline: none; border-color: var(--border-2); }
.form-group input::placeholder { color: var(--text-3); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .85rem; }
@media (max-width: 580px) { .form-grid { grid-template-columns: 1fr; } }

/* ── Section label ── */
.section-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: .85rem;
}

/* ── Event list ── */
.events-page-title { font-family: 'Benzin', sans-serif; font-size: 1.2rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; margin-bottom: .8rem; }
.events-divider { border: none; border-top: 1px solid var(--border); margin: 0 0 .8rem; }
.events-page-sub { color: var(--text-2); font-size: .85rem; margin: 0 0 1.5rem; white-space: nowrap; overflow: hidden; }
.event-list { display: flex; flex-direction: column; gap: .6rem; }

.event-card-link { display: block; }
.event-card {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color .15s, background .15s;
}
.event-card:hover { border-color: var(--border-2); background: #161616; }

.event-card .ec-thumb {
  width: 130px;
  aspect-ratio: 3 / 4;
  align-self: stretch;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}
.event-card .ec-thumb-empty {
  width: 130px;
  aspect-ratio: 3 / 4;
  align-self: stretch;
  background: var(--surface-2);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ec-thumb-empty svg { opacity: .2; }

.event-card .ec-body {
  padding: .5rem .8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .08rem;
  flex: 1;
  min-width: 0;
}
.ec-body .ec-title { font-family: 'Benzin', sans-serif; font-size: 1.05rem; font-weight: 700; letter-spacing: .01em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: .1rem; }
.ec-body .ec-meta { font-size: .75rem; color: var(--text-2); }
.ec-body .ec-desc { font-size: .75rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ec-body .ec-price { font-size: .78rem; font-weight: 700; color: var(--text); margin-top: .18rem; }

@media (max-width: 480px) {
  .event-card .ec-thumb,
  .event-card .ec-thumb-empty { width: 108px; }
}

/* ── Event detail ── */
.ev-body-wrap { margin-bottom: 1.5rem; }
.ev-hook {
  font-size: .82rem;
  color: var(--text-2);
  margin-bottom: .9rem;
  line-height: 1.65;
}
.ev-flyer-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: .9rem;
}
.ev-flyer-wrap img {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--r-lg);
  display: block;
}
.ev-description {
  font-size: .82rem;
  color: var(--text-2);
  line-height: 1.65;
}
/* Rich text (the events.richtext subset) inside the hook and description.
   Bold lifts to the brighter --text so it reads against the grey body copy;
   links need both properties set because the base `a` rule resets them. */
.ev-hook b, .ev-hook strong,
.ev-description b, .ev-description strong {
  color: var(--text);
}
.ev-hook a, .ev-description a {
  color: #3b82f6;
  text-decoration: underline;
}
.ev-hook a:hover, .ev-description a:hover {
  opacity: .85;
}
@media (min-width: 640px) {
  .ev-body-wrap.has-flyer {
    display: grid;
    grid-template-columns: 1fr 240px;
    grid-template-rows: auto 1fr;
    gap: 0 1.75rem;
    align-items: start;
  }
  .ev-body-wrap.has-flyer .ev-hook        { grid-column: 1; grid-row: 1; }
  .ev-body-wrap.has-flyer .ev-flyer-wrap  { grid-column: 2; grid-row: 1 / 3; margin-bottom: 0; justify-content: flex-start; }
  .ev-body-wrap.has-flyer .ev-flyer-wrap img { max-width: 100%; }
  .ev-body-wrap.has-flyer .ev-description { grid-column: 1; grid-row: 2; }
}

.event-header { padding: .75rem 0 .65rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem; }
.event-header .ev-title { font-family: 'Benzin', sans-serif; font-size: 1.9rem; font-weight: 700; letter-spacing: .01em; line-height: 1.15; margin-bottom: .35rem; }
/* Applied by the fit-to-width script in detail.html, never by hand: the title
   only stops wrapping once JS is there to shrink it to fit, so with JS off it
   wraps as before instead of running off the page. The ellipsis is a backstop
   for a title so long it hits the script's minimum size and still overflows. */
.event-header .ev-title.is-fitted {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* Benzin's accents overshoot the 1.15 line box — Å by .25em, Ö by .13em — and
     overflow:hidden would slice them off ("BJÖRK" losing its umlaut). Clipping
     happens at the padding edge, so this buys headroom above; the negative
     margin cancels it so surrounding layout is untouched. In em so it tracks the
     font-size the script sets. Kept off the horizontal axis: the script measures
     clientWidth, which would count side padding as room for text. Descenders
     already clear the box, so no padding-bottom. */
  padding-top: .3em;
  margin-top: -.3em;
}
.event-header .ev-presenter { font-size: .8rem; color: var(--text-2); margin-bottom: .55rem; }
.event-header .ev-presenter a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.event-header .ev-presenter a:hover { color: var(--text); }
.event-header .ev-meta { display: flex; flex-wrap: wrap; gap: .3rem 1.25rem; font-size: .72rem; color: var(--text-2); }
.event-header .ev-meta-item { display: flex; align-items: center; gap: .3rem; }
.ev-meta-icon { flex-shrink: 0; opacity: .6; }

/* ── Map section ── */
.map-section { margin-bottom: 2rem; }
.map-embed-wrap {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: .6rem;
}
@keyframes map-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(250,204,21,.7); border-color: rgba(250,204,21,.8); }
  60%  { box-shadow: 0 0 0 6px rgba(250,204,21,.15); border-color: rgba(250,204,21,.5); }
  100% { box-shadow: 0 0 0 0 rgba(250,204,21,0); border-color: var(--border); }
}
.map-embed-wrap.highlight { animation: map-pulse .6s ease-out forwards; }
.map-address { font-size: .78rem; color: var(--text-2); line-height: 1.55; }
.ev-venue-link { color: inherit; text-decoration: none; transition: color .15s; }
.ev-venue-link:hover { color: var(--text); }

/* ── Ticket list container ── */
.ticket-list {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: var(--surface);
}
@keyframes ticket-list-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(215,255,63,.7); border-color: rgba(215,255,63,.8); }
  60%  { box-shadow: 0 0 0 6px rgba(215,255,63,.15); border-color: rgba(215,255,63,.5); }
  100% { box-shadow: 0 0 0 0 rgba(215,255,63,0); border-color: var(--border); }
}
.ticket-list.highlight {
  animation: ticket-list-pulse .6s ease-out forwards;
}

.ticket-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .95rem 1.1rem;
  border-bottom: 1px solid var(--border);
}
.ticket-row:last-child { border-bottom: none; }
.ticket-row.unavailable { pointer-events: none; }
.ticket-row.unavailable .ticket-name,
.ticket-row.unavailable .ticket-desc,
.ticket-row.unavailable .ticket-price-col { opacity: .45; }

.ticket-info { flex: 1; min-width: 0; }
.ticket-name { font-size: .9rem; font-weight: 600; margin-bottom: .1rem; }
.ticket-desc { font-size: .78rem; color: var(--text-2); }

.ticket-price-col {
  font-size: .9rem;
  font-weight: 700;
  white-space: nowrap;
  min-width: 56px;
  text-align: right;
}

/* ── Quantity stepper ── */
.qty-stepper { display: flex; align-items: center; gap: .45rem; flex-shrink: 0; }
.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border-2);
  background: transparent;
  color: var(--text);
  font-size: .95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .12s, background .12s;
  line-height: 1;
  padding: 0;
  user-select: none;
  flex-shrink: 0;
}
.qty-btn:hover:not(:disabled) { border-color: var(--text-2); background: var(--surface-2); }
.qty-btn:active:not(:disabled) { background: var(--surface-3); }
.qty-btn:disabled { opacity: .2; cursor: default; }
.qty-count { font-size: .88rem; font-weight: 700; min-width: 20px; text-align: center; }

/* ── Tags ── */
.tag {
  display: inline-block;
  font-size: .67rem;
  font-weight: 700;
  padding: .15rem .45rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-top: .25rem;
}
.tag-sold-out  { background: #e03030; border: 1px solid #c82020; color: #fff; }
.tag-coming-soon { background: rgba(251,191,36,.1); border: 1px solid rgba(251,191,36,.25);  color: #fbbf24; }
.tag-free      { background: rgba(74,222,128,.1);   border: 1px solid rgba(74,222,128,.25);  color: #4ade80; }

/* ── Checkout footer (replaces two-column layout) ── */
.checkout-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 28px rgba(0,0,0,.35);
  padding: .6rem 1.5rem .7rem;
}
.checkout-footer-inner {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.select-footer-inner {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.select-footer-price {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  min-width: 0;
}
.select-footer-amount {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.select-footer-note {
  font-size: .72rem;
  color: var(--text-2);
}
.select-footer-btn {
  flex-shrink: 0;
  padding: .6rem 1.25rem;
  font-size: .88rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ── Promo code ── */
.promo-add-link {
  font-size: .8rem;
  color: #3b82f6;
  text-decoration: underline;
  cursor: pointer;
  display: block;
  text-align: right;
}
.promo-add-link:hover { color: #60a5fa; }

#promo-badge-row { text-align: right; }
.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: rgba(74,222,128,.12);
  border: 1px solid rgba(74,222,128,.3);
  color: #4ade80;
  font-size: .78rem;
  font-weight: 600;
  padding: .1rem .45rem;
  border-radius: 99px;
}
.promo-badge-remove {
  background: none;
  border: none;
  color: #4ade80;
  font-size: .95rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  opacity: .7;
}
.promo-badge-remove:hover { opacity: 1; }

.promo-modal {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 900;
  align-items: center;
  justify-content: center;
}
.promo-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}
.promo-modal-box {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.4rem 1.5rem 1.2rem;
  width: min(360px, 90vw);
  box-shadow: 0 8px 32px rgba(0,0,0,.45);
}
.promo-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.promo-modal-title { font-size: .95rem; font-weight: 700; }
.promo-modal-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--text-3);
  cursor: pointer;
  padding: 0;
}
.promo-modal-close:hover { color: var(--text); }
.promo-modal-body {
  display: flex;
  gap: .5rem;
}
.promo-modal-body input[type="text"] {
  flex: 1;
  padding: .5rem .75rem;
  font-size: .88rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--text);
  letter-spacing: .06em;
}
.promo-modal-body input[type="text"]:focus { outline: none; border-color: #3b82f6; }
/* iOS Safari zooms the page on focus for any input under 16px, and .88rem is 14px.
   Phones only — desktop keeps the tighter size. */
@media (max-width: 767px) {
  .promo-modal-body input[type="text"] { font-size: 16px; }
}
.promo-modal-body button {
  padding: .5rem 1rem;
  font-size: .85rem;
  font-weight: 600;
  border: none;
  border-radius: var(--r-sm);
  background: #3b82f6;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}
.promo-modal-body button:hover { background: #2563eb; }
#promo-msg { font-size: .8rem; display: block; margin-top: .5rem; min-height: 1em; }

/* ── Refund protection modal ── */
.rp-box { text-align: center; padding: 1.6rem 1.6rem 1.5rem; }
.rp-icon { line-height: 1; margin-bottom: .6rem; }
.rp-icon svg { width: 46px; height: 46px; display: inline-block; }
.rp-shield { width: 1em; height: 1em; vertical-align: -0.15em; margin-right: .4em; }
.rp-title { font-size: 1.15rem; font-weight: 700; margin: 0 0 .5rem; }
.rp-copy { font-size: .7rem; color: var(--text-2); line-height: 1.5; margin: 0 0 1.3rem; }
.rp-actions { display: flex; flex-direction: column; gap: .6rem; }
.rp-btn-no { background: #3a3a3a; color: var(--text); }
.rp-btn-no:hover { background: #4a4a4a; }

/* ── Order summary (inside fixed footer) ── */
.order-summary {
  flex: 1;
  min-width: 0;
}
.order-summary .sum-title {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: .35rem;
}
.summary-row { display: flex; justify-content: space-between; font-size: .82rem; padding: .15rem 0; color: var(--text-2); }
.summary-row.total { font-weight: 700; font-size: .88rem; color: var(--text); border-top: 1px solid var(--border); margin-top: .25rem; padding-top: .35rem; }
.summary-fee-note { font-size: .73rem; color: var(--text-3); margin-top: .5rem; line-height: 1.5; }

/* ── Alerts ── */
.alert { padding: .75rem 1rem; border-radius: var(--r-sm); margin-bottom: .85rem; font-size: .85rem; }
.alert-error   { background: rgba(248,113,113,.07); border: 1px solid rgba(248,113,113,.2); color: #f87171; }
.alert-success { background: rgba(74,222,128,.07);  border: 1px solid rgba(74,222,128,.2);  color: #4ade80; }

/* ── Status pages (success, cancel, error) ── */
.status-wrap { max-width: 520px; margin: 4rem auto; padding: 0 1.5rem; text-align: center; }
.status-icon { width: 56px; height: 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; }
.status-icon-success { background: rgba(74,222,128,.1); border: 1px solid rgba(74,222,128,.25); }
.status-icon-cancel  { background: var(--surface-2); border: 1px solid var(--border-2); }
.status-icon-error   { background: rgba(248,113,113,.1); border: 1px solid rgba(248,113,113,.25); }
.status-title { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: .4rem; }
.status-sub   { font-size: .88rem; color: var(--text-2); margin-bottom: 1.5rem; }

.order-ref-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1rem 1.25rem;
  text-align: left;
  margin-bottom: 1rem;
}
.order-ref-label { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: .3rem; }
.order-ref-value { font-family: "SF Mono", "Fira Code", "Consolas", monospace; font-size: .9rem; letter-spacing: .06em; }

.confirm-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.25rem;
  text-align: left;
  margin-bottom: 1rem;
}
.confirm-item { padding: .5rem 0; border-bottom: 1px solid var(--border); }
.confirm-item:last-child { border-bottom: none; padding-bottom: 0; }
.confirm-item-name { font-size: .9rem; font-weight: 600; }
.confirm-item-meta { font-size: .8rem; color: var(--text-2); margin-top: .1rem; }
.confirm-addon { display: flex; justify-content: space-between; font-size: .85rem; color: var(--text-2); padding-top: .6rem; }
.confirm-total { display: flex; justify-content: space-between; font-size: .9rem; font-weight: 700; padding-top: .75rem; margin-top: .4rem; border-top: 1px solid var(--border); }

.email-notice { background: var(--surface-2); border-radius: var(--r); padding: .75rem 1rem; font-size: .83rem; color: var(--text-2); text-align: left; margin-bottom: 1.25rem; }

/* ── Merch ── */
.cart-link {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-left: auto;
  color: var(--text);
  font-size: .85rem;
  font-weight: 600;
}
.cart-badge {
  background: #fff;
  color: #000;
  font-size: .7rem;
  font-weight: 700;
  border-radius: 99px;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 .35rem;
}

.merch-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-bottom: 2rem; }
.merch-card {
  display: block;
  flex: 1 1 calc(50% - .5rem);
  max-width: calc(50% - .5rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color .15s, background .15s;
}
@media (min-width: 640px) {
  .merch-card { flex-basis: calc(33.333% - .667rem); max-width: calc(33.333% - .667rem); }
}
@media (min-width: 900px) {
  .merch-card { flex-basis: calc(25% - .75rem); max-width: calc(25% - .75rem); }
}
.merch-card:hover { border-color: var(--border-2); background: #161616; }
.merch-card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--surface-2); display: block; }
.merch-card-body { padding: .75rem .9rem; }
.merch-card-name { font-size: .88rem; font-weight: 600; margin-bottom: .2rem; }
.merch-card-price { font-size: .85rem; font-weight: 400; }

.merch-header { padding: .75rem 0 .65rem; border-bottom: 1px solid #d7ff3f; margin-bottom: 1rem; }
.merch-title { font-family: 'Benzin', sans-serif; font-size: 1.55rem; font-weight: 700; letter-spacing: .01em; line-height: 1.15; }
.merch-product-title { font-family: 'Space Mono', monospace; font-size: 1.55rem; font-weight: 700; color: #fff; letter-spacing: .01em; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.merch-subtitle { font-family: 'Space Mono', monospace; font-size: .7rem; color: #d7ff3f; margin-top: .5rem; line-height: 1.5; }

.merch-detail-wrap { margin-bottom: 1.5rem; }
.merch-desc { font-size: .82rem; color: var(--text-2); line-height: 1.65; margin-bottom: .9rem; }
.merch-image-wrap { display: flex; justify-content: center; margin-bottom: .9rem; }
.merch-image-wrap img { width: 100%; max-width: 300px; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-lg); display: block; }
@media (min-width: 640px) {
  .merch-detail-wrap.has-image {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 0 1.75rem;
    align-items: start;
  }
  .merch-detail-wrap.has-image .merch-desc { grid-column: 1; margin-bottom: 0; }
  .merch-detail-wrap.has-image .merch-image-wrap { grid-column: 2; margin-bottom: 0; }
}

/* Sitewide mini-cart bar — shown whenever the cart has items */
.mini-cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 190;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 28px rgba(0,0,0,.35);
  padding: .7rem 1.5rem;
}
.mini-cart-inner {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.mini-cart-note { font-size: .8rem; color: var(--text-2); }
.mini-cart-amount { font-size: 1rem; font-weight: 700; }
body.has-mini-cart { padding-bottom: 5rem; }

/* ── Misc ── */
.text-muted  { color: var(--text-2); }
.text-subtle { color: var(--text-3); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.text-center { text-align: center; }
hr { border: none; border-top: 1px solid var(--border); margin: 1.25rem 0; }

/* ── Site footer ── */
.site-footer { border-top: 1px solid var(--border); margin-top: 2.5rem; padding: 1.15rem 1.25rem 1.6rem; }
.footer-inner { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column;
                align-items: center; gap: .8rem; text-align: center; }
.footer-logo { display: inline-flex; line-height: 0; }
.footer-logo img { height: 54px; width: auto; opacity: .9; }
.footer-socials { display: flex; align-items: center; gap: 1.3rem; }
.footer-socials a { display: inline-flex; line-height: 0; color: #c8c8c8; transition: color .15s, transform .15s; }
.footer-socials a:hover { color: #fff; transform: translateY(-1px); }
.footer-socials svg { display: block; }
.footer-copy { font-size: .72rem; color: var(--text-3); letter-spacing: .02em; }

/* ── Aggregator header: search and menu ── */
.agg-actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.agg-pop { position: relative; }
.agg-pop summary {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  list-style: none; cursor: pointer;
  color: var(--text);
  transition: color .15s;
}
.agg-pop summary::-webkit-details-marker { display: none; }
.agg-pop summary:hover, .agg-pop[open] summary { color: #d7ff3f; }
.hamburger { display: flex; width: 18px; height: 12px; flex-direction: column; justify-content: space-between; }
.hamburger span { display: block; height: 2px; width: 100%; background: currentColor; transition: transform .18s, opacity .18s; }
.agg-menu[open] .hamburger span:first-child { transform: translateY(5px) rotate(45deg); }
.agg-menu[open] .hamburger span:nth-child(2) { opacity: 0; }
.agg-menu[open] .hamburger span:last-child { transform: translateY(-5px) rotate(-45deg); }

/* Flat and square, like the event rows: black, hairlines, caps. */
.agg-panel {
  position: absolute; right: 0; top: calc(100% + 13px); z-index: 300;
  background: #000;
  /* The outline is drawn inside the box, so a full-width panel keeps all four
     sides on screen. */
  box-shadow: inset 0 0 0 1px var(--border-2);
}
.agg-menu-panel { display: flex; flex-direction: column; min-width: 240px; }
.agg-menu-panel > a:not(.btn) {
  display: flex; align-items: center; justify-content: space-between;
  padding: .95rem 1.1rem;
  border-bottom: 1px solid var(--border);
  font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  transition: color .15s;
}
.agg-menu-panel > a:not(.btn)::after { content: "→"; color: var(--text-3); transition: color .15s, transform .15s; }
.agg-menu-panel > a:not(.btn):hover { color: #d7ff3f; }
.agg-menu-panel > a:not(.btn):hover::after { color: #d7ff3f; transform: translateX(2px); }
.agg-menu-panel .btn {
  justify-content: space-between; margin: 0;
  padding: 1rem 1.1rem; border-radius: 0;
  font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.agg-menu-panel .btn:hover { opacity: 1; background: #e6ff7a; }
/* The signed-in account, last in the menu. */
.agg-menu-panel .account-menu { border-top: 1px solid var(--border); }
.agg-menu-panel .account-menu summary {
  display: flex; align-items: center; gap: .7rem;
  width: auto; height: auto; padding: .85rem 1.1rem;
}
.agg-menu-panel .account-menu summary:hover, .agg-menu-panel .account-menu[open] summary { color: var(--text); background: #111; }
.account-avatar {
  display: grid; place-items: center; flex: none;
  width: 28px; height: 28px; border-radius: 50%;
  background: #d7ff3f; color: #000;
  font-size: .62rem; font-weight: 800;
}
.account-who { display: flex; flex-direction: column; min-width: 0; }
.account-who b, .account-who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-who b { font-size: .78rem; }
.account-who small { font-size: .68rem; color: var(--text-3); }
.agg-menu-panel .account-actions a, .agg-menu-panel .account-actions button {
  display: block; width: 100%; padding: .8rem 1.1rem .8rem 3.25rem;
  background: none; border: 0; border-top: 1px solid var(--border);
  color: var(--text); text-align: left; cursor: pointer;
  font: inherit; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  transition: color .15s;
}
.agg-menu-panel .account-actions a:hover, .agg-menu-panel .account-actions button:hover { color: #d7ff3f; }
.agg-menu-panel .account-actions form { margin: 0; }
.agg-search-panel { display: flex; width: min(440px, calc(100vw - 2rem)); }
.agg-search-panel input {
  flex: 1; min-width: 0;
  padding: .9rem 1.1rem;
  background: transparent;
  border: 0; border-radius: 0;
  color: var(--text);
  font-size: 16px; font-weight: 600;
  -webkit-appearance: none;
}
.agg-search-panel input:focus { outline: none; }
.agg-search-panel:focus-within { box-shadow: inset 0 0 0 1px #d7ff3f; }
.agg-search-panel input::placeholder { color: var(--text-3); font-weight: 500; }
.agg-search-panel input::-webkit-search-cancel-button { filter: invert(1) opacity(.5); }
.agg-search-panel .btn {
  padding: 0 1.1rem; border-radius: 0;
  font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.agg-search-panel .btn:hover { opacity: 1; background: #e6ff7a; }
@media (max-width: 600px) {
  .agg-panel { position: fixed; left: 0; right: 0; top: 64px; }
  .agg-search-panel { width: auto; }
  .agg-menu-panel { min-width: 0; }
}

/* ── Aggregator search results ── */
.events-page-sub a { text-decoration: underline; text-underline-offset: 2px; }
.events-page-sub a:hover { color: var(--text); }
.org-results { margin-bottom: 1.75rem; border-top: 1px solid var(--border); }
.org-result { align-items: center; }
.org-result-mark {
  width: 56px; height: 56px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); border-radius: 50%;
}
.org-result-mark img { width: 60%; height: 60%; object-fit: contain; }

/* ── Event listing: day-grouped rows ── */
.ev-day { margin-bottom: 1.6rem; }
.ev-day-head {
  position: sticky; top: 65px; z-index: 5;
  display: flex; align-items: center; gap: .55rem;
  padding: .75rem 0 .6rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border-2);
  font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
}
.ev-day-dot { width: 7px; height: 7px; border-radius: 50%; background: #d7ff3f; flex-shrink: 0; }

.ev-row {
  display: flex; align-items: stretch; gap: 1.1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.ev-row-thumb {
  width: 104px; aspect-ratio: 3 / 4; flex-shrink: 0;
  object-fit: cover; display: block;
  border-radius: 3px;
  background: var(--surface-2);
  transition: opacity .15s;
}
.ev-row-thumb-empty { display: flex; align-items: center; justify-content: center; color: var(--text-3); }
.ev-row:hover .ev-row-thumb { opacity: .85; }

.ev-row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: .3rem; }
.ev-row-date { font-size: .7rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--text-2); }
.ev-row-title { font-size: 1.2rem; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; overflow-wrap: anywhere; transition: color .15s; }
.ev-row:hover .ev-row-title { color: #d7ff3f; }
.ev-row-venue { display: flex; align-items: center; flex-wrap: wrap; gap: .1rem .45rem; font-size: .85rem; font-weight: 600; color: #d7ff3f; }
.ev-row-venue svg { flex-shrink: 0; }
.ev-row-city { font-size: .8rem; color: var(--text-2); margin-top: -.15rem; }
.org-result .ev-row-city { font-size: .85rem; font-weight: 400; margin-top: 0; }
.org-result .ev-row-city::before { content: "·"; margin-right: .45rem; color: var(--text-3); }

.ev-row-side { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: .55rem; text-align: right; }
.ev-row-price { font-size: .9rem; white-space: nowrap; }
.ev-row-price span { color: var(--text-2); }
.ev-row-price small { display: block; font-size: .65rem; color: var(--text-2); margin-top: .05rem; }
.ev-row-cta {
  display: inline-block; white-space: nowrap;
  padding: .35rem .7rem;
  border: 1px solid #d7ff3f; border-radius: 3px;
  color: #d7ff3f; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  transition: background .15s, color .15s;
}
.ev-row:hover .ev-row-cta { background: #d7ff3f; color: #000; }

@media (max-width: 600px) {
  /* Flyer on the left spanning both rows: details level with its top, price
     and button level with its bottom. */
  .ev-row:not(.org-result) {
    display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: auto 1fr;
    column-gap: .9rem; row-gap: .6rem;
  }
  .ev-row:not(.org-result) .ev-row-thumb { grid-row: 1 / 3; width: 96px; align-self: start; }
  .ev-row:not(.org-result) .ev-row-body { justify-content: flex-start; gap: .2rem; }
  .ev-row:not(.org-result) .ev-row-side { flex-direction: row; align-items: flex-end; justify-content: space-between; align-self: end; text-align: left; gap: .6rem; }
  .ev-row-date { font-size: .65rem; }
  .ev-row-title { font-size: 1.05rem; }
  .ev-row-venue { font-size: .8rem; }
  .ev-row-city { font-size: .75rem; }
  .ev-row-cta { padding: .3rem .6rem; font-size: .68rem; }
  .org-result .ev-row-side { display: none; }
}

/* ── Location filter ── */
.events-page-title.has-loc { margin-bottom: .3rem; }
.loc-filter { display: block; margin: 0 0 .8rem; }
.loc-filter summary {
  display: inline-flex; align-items: center; gap: .4rem;
  width: auto; height: auto; padding: .15rem 0;
  border-radius: 0;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.loc-filter summary:hover, .loc-filter[open] summary { background: none; }
.loc-in { color: var(--text-3); }
.loc-chevron { color: #d7ff3f; transition: transform .18s; }
.loc-filter[open] .loc-chevron { transform: rotate(180deg); }
.loc-current { color: var(--text); transition: color .15s; }
.loc-filter summary:hover .loc-current, .loc-filter[open] .loc-current { color: #d7ff3f; }
.loc-panel {
  position: absolute; left: 0; top: calc(100% + .5rem); z-index: 50;
  min-width: 260px; max-height: 360px; overflow-y: auto;
  background: #000;
  border: 1px solid var(--border-2);
}
.loc-option {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  transition: color .15s;
}
.loc-option:last-child { border-bottom: 0; }
.loc-option:hover { color: #d7ff3f; }
.loc-option.is-active { color: #d7ff3f; }
.loc-province { color: var(--text-3); }
.loc-count { color: var(--text-3); font-size: .7rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.loc-option.is-active .loc-count, .loc-option:hover .loc-count { color: #d7ff3f; }

/* The aggregator's heading. Inter Tight comes from Google Fonts, linked by
   events/list.html; the @ pages keep Benzin. */
.events-page-title.agg-title {
  font-family: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.7rem; font-weight: 900; letter-spacing: -.03em; line-height: 1.05;
}

/* ── Display title: event page and ticket page ── */
.ev-display,
.event-header .ev-title.ev-display {
  font-family: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 900; letter-spacing: -.03em; text-transform: uppercase;
}

/* ── Square UI: event page and ticket page ──
   Same flat, square language as the listing. Scoped to .sq-ui so the widget,
   which shares the picker's classes, keeps its own look. */
.sq-ui .btn { border-radius: 0; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.sq-ui .btn-lg { font-size: .82rem; }
.sq-ui .btn-accent:hover { opacity: 1; background: #e6ff7a; }
.sq-ui .btn-secondary { border-color: var(--border-2); }
.sq-ui .btn-secondary:hover { border-color: #d7ff3f; color: #d7ff3f; }
.sq-ui .alert, .sq-ui .tag { border-radius: 0; }

.sq-ui .ev-flyer-wrap img { border-radius: 3px; }
.sq-ui .map-embed-wrap { border-radius: 0; }

.sq-ui .ticket-list { border-radius: 0; background: transparent; border-left: 0; border-right: 0; border-color: var(--border-2); }
.sq-ui .ticket-row { padding: 1rem .15rem; }
.sq-ui .ticket-name { font-size: .95rem; font-weight: 700; }
.sq-ui .qty-btn { border-radius: 0; border-width: 1px; }
.sq-ui .qty-btn:hover:not(:disabled) { border-color: #d7ff3f; color: #d7ff3f; background: transparent; }

.sq-ui .checkout-footer { background: #000; border-top-color: var(--border-2); box-shadow: none; }
.sq-ui .promo-add-link { color: #d7ff3f; text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; font-weight: 700; text-decoration: none; }
.sq-ui .promo-add-link:hover { color: #e6ff7a; }
.sq-ui .promo-badge { border-radius: 0; }

.sq-ui .promo-modal-box { border-radius: 0; background: #000; border-color: var(--border-2); box-shadow: none; }
.sq-ui .promo-modal-title, .sq-ui .rp-title { text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; font-weight: 800; }
.sq-ui .rp-title { font-size: 1rem; }
.sq-ui .promo-modal-body input[type="text"] { border-radius: 0; background: transparent; border-color: var(--border-2); }
.sq-ui .promo-modal-body input[type="text"]:focus { border-color: #d7ff3f; }
.sq-ui .promo-modal-body button { border-radius: 0; background: #d7ff3f; color: #000; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.sq-ui .promo-modal-body button:hover { background: #e6ff7a; }
.sq-ui .rp-btn-no { background: transparent; border: 1px solid var(--border-2); }
.sq-ui .rp-btn-no:hover { background: transparent; border-color: var(--text-2); opacity: 1; }

/* ── Aggregator footer ── */
.agg-footer { margin-top: 3rem; border-top: 1px solid var(--border); background: #000; }
.agg-footer-inner {
  max-width: 1040px; margin: 0 auto; padding: 3rem 1.5rem 2.5rem;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2.5rem 4rem; align-items: start;
}
.agg-footer-brand a { display: inline-block; }
.agg-footer-brand img { display: block; width: 104px; height: auto; opacity: .38; transition: opacity .15s; }
.agg-footer-brand a:hover img { opacity: .6; }
.agg-footer-cols { display: grid; grid-template-columns: repeat(3, minmax(130px, auto)); gap: 2rem 3.5rem; }
.agg-footer-cols div { display: flex; flex-direction: column; gap: .55rem; }
.agg-footer-cols h2 {
  margin-bottom: .35rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-3);
}
.agg-footer-cols a { font-size: .85rem; color: var(--text-2); transition: color .15s; }
.agg-footer-cols a:hover { color: #d7ff3f; }
.agg-footer-base {
  max-width: 1040px; margin: 0 auto; padding: 1.25rem 1.5rem 1.6rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem;
  border-top: 1px solid var(--border);
  font-size: .72rem; color: var(--text-3);
}
.agg-footer-base small { font-size: inherit; }
.agg-footer-base nav { display: flex; gap: 1.5rem; }
.agg-footer-base a { color: var(--text-3); transition: color .15s; }
.agg-footer-base a:hover { color: var(--text); }
@media (max-width: 760px) {
  .agg-footer-inner { grid-template-columns: 1fr; gap: 1.75rem; padding-top: 2rem; padding-bottom: 2rem; }
  /* Discover and Company share the left column, so Company rises to sit
     under however many cities Discover lists; For Organizers holds the right. */
  .agg-footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto 1fr; gap: 1.75rem 1.5rem; }
  .agg-footer-cols > div:nth-child(2) { grid-column: 2; grid-row: 1 / span 2; }
  .agg-footer-cols > div:nth-child(3) { grid-column: 1; grid-row: 2; }
  .agg-footer-base { flex-direction: column-reverse; align-items: flex-start; }
}

/* ── Organizer @ page ── */
.organizer-head { margin-bottom: .8rem; }
.organizer-head .events-page-title { margin-bottom: .55rem; }
/* The organizer's name as they typed it, not in caps. */
.profile-head .events-page-title { text-transform: none; }
.organizer-meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 26px; }
.organizer-handle {
  display: inline-block;
  padding: .22rem .7rem;
  border-radius: 999px;
  background: var(--text-2); color: #0a0a0a;
  font-size: .75rem; font-weight: 700; letter-spacing: .02em; line-height: 1.3;
}
button.organizer-handle { border: 0; font-family: inherit; cursor: pointer; transition: background .15s; }
@media (hover: hover) { button.organizer-handle:hover { background: #d7ff3f; } }
button.organizer-handle.is-copied { background: #d7ff3f; }
/* Both labels share one cell, so the pill keeps its width when it says Copied. */
button.organizer-handle { display: inline-grid; }
button.organizer-handle > span { grid-area: 1 / 1; text-align: center; }
button.organizer-handle > span + span, button.organizer-handle.is-copied > span:first-child { visibility: hidden; }
button.organizer-handle.is-copied > span + span { visibility: visible; }
.organizer-socials { display: flex; align-items: center; gap: 1rem; }
.organizer-socials a { display: inline-flex; line-height: 0; color: var(--text-2); transition: color .15s; }
.organizer-socials a:hover { color: #d7ff3f; }
.organizer-socials svg { width: 18px; height: 18px; }
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-head .events-page-title { margin-bottom: 0; min-width: 0; }

/* ── @ profile: picture and bio ── */
.profile-head { display: flex; align-items: center; gap: 1.1rem; }
.profile-avatar {
  width: 84px; height: 84px; flex-shrink: 0;
  border-radius: 50%; overflow: hidden;
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-avatar span { font-family: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 2rem; font-weight: 900; color: var(--text-2); }
.profile-id { flex: 1; min-width: 0; }
.profile-bio { max-width: 60ch; margin: .2rem 0 1rem; font-size: .88rem; line-height: 1.6; color: var(--text-2); overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .profile-head { gap: .85rem; }
  .profile-avatar { width: 64px; height: 64px; }
  .profile-avatar span { font-size: 1.5rem; }
}

/* ── @ profile: edit sheet ── */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.organizer-meta { flex-wrap: wrap; }
.profile-edit-btn {
  margin-right: auto;
  padding: .22rem .75rem;
  background: transparent; color: var(--text);
  border: 1px solid var(--border-2); border-radius: 999px;
  font: inherit; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer; transition: border-color .15s, color .15s;
}
.profile-edit-btn:hover { border-color: #d7ff3f; color: #d7ff3f; }
.organizer-meta .organizer-handle + .profile-edit-btn { margin-left: .1rem; }

.profile-toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 400; transform: translateX(-50%);
  padding: .6rem 1rem; background: #d7ff3f; color: #000;
  font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  animation: profile-toast 3s ease forwards;
}
@keyframes profile-toast { 0%, 80% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }

.profile-sheet {
  width: min(460px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem);
  padding: 0; margin: auto;
  background: #000; color: var(--text);
  border: 1px solid var(--border-2);
}
.profile-sheet::backdrop { background: rgba(0,0,0,.7); }
.profile-sheet-form { display: flex; flex-direction: column; gap: 1rem; padding: 1.25rem; }
.profile-sheet-head { display: flex; align-items: center; justify-content: space-between; }
.profile-sheet-head h2 { font-size: .85rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.profile-sheet-close { background: none; border: 0; color: var(--text-2); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.profile-sheet-close:hover { color: var(--text); }
.profile-sheet-picture { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.profile-avatar-edit { position: relative; cursor: pointer; }
.profile-avatar-change {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.55); color: #fff;
  font-size: .65rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  opacity: 0; transition: opacity .15s;
}
.profile-avatar-edit:hover .profile-avatar-change,
.profile-avatar-edit:focus-within .profile-avatar-change { opacity: 1; }
.profile-sheet-picture input[type="file"]:focus-visible + label,
.profile-avatar-edit:focus-visible { outline: 1px solid #d7ff3f; }
.profile-sheet-check { display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; color: var(--text-2); cursor: pointer; }
.profile-sheet-field { display: flex; flex-direction: column; gap: .35rem; }
.profile-sheet-label {
  display: flex; justify-content: space-between;
  font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3);
}
.profile-sheet-count { font-weight: 600; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.profile-sheet textarea, .profile-sheet input[type="url"] {
  width: 100%; padding: .65rem .75rem;
  background: transparent; color: var(--text);
  border: 1px solid var(--border-2); border-radius: 0;
  font: inherit; font-size: 16px; line-height: 1.5; resize: vertical;
  -webkit-appearance: none;
}
.profile-sheet textarea:focus, .profile-sheet input[type="url"]:focus { outline: none; border-color: #d7ff3f; }
.profile-sheet input::placeholder { color: var(--text-3); }
.profile-sheet-error { font-size: .75rem; color: var(--danger); }
.profile-sheet-actions { display: flex; justify-content: flex-end; gap: .5rem; padding-top: .25rem; }
.profile-sheet-actions .btn { border-radius: 0; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.profile-sheet-cancel { background: transparent; color: var(--text); border: 1px solid var(--border-2); }
.profile-sheet-cancel:hover { opacity: 1; border-color: var(--text-2); }
.profile-sheet-actions .btn-accent:hover { opacity: 1; background: #e6ff7a; }
