:root {
  color-scheme: dark;
  --void: #020204;
  --panel: rgba(7, 9, 16, 0.72);
  --panel-strong: rgba(10, 12, 20, 0.92);
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.19);
  --text: #eceaf4;
  --muted: #8f8aa3;
  --brand: #2383e2;
  --brand-bright: #6aaeff;
  --danger: #f87171;
  --accent-ink: #02060b;
  --radius: 12px;
  --max-width: 620px;
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Roboto", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-family: var(--font-body);
  font-synthesis: none;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  overflow-x: clip;
  background: #000;
}

body {
  position: relative;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: clip;
  background: var(--void);
  color: var(--text);
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
}

body::before {
  z-index: 0;
  background:
    radial-gradient(54% 40% at 18% 16%, rgba(35, 131, 226, 0.21), transparent 74%),
    radial-gradient(42% 36% at 82% 80%, rgba(126, 156, 190, 0.1), transparent 76%);
  opacity: 0.52;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 82%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 82%, transparent);
}

body::after {
  z-index: 1;
  background: radial-gradient(ellipse at 50% 35%, transparent 30%, rgba(0, 0, 0, 0.72) 100%);
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brand-bright);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 40;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: 7px;
  background: var(--brand);
  color: white;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max-width));
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding:
    max(38px, env(safe-area-inset-top))
    max(18px, env(safe-area-inset-right))
    calc(128px + env(safe-area-inset-bottom))
    max(18px, env(safe-area-inset-left));
}

.public-header {
  display: grid;
  gap: 36px;
}

.brand-lockup {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: clamp(250px, 57vw, 340px);
  padding: 26px 10px;
  text-align: center;
}

.brand-copy {
  position: relative;
  z-index: 2;
}

.brand-copy::before {
  position: absolute;
  z-index: -1;
  inset: -50% -22%;
  background: radial-gradient(ellipse, rgba(2, 2, 4, 0.98) 0 32%, rgba(2, 2, 4, 0.82) 52%, transparent 76%);
  content: "";
  pointer-events: none;
}

.venue-mark {
  margin: 0 0 15px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.venue-mark span {
  color: var(--muted);
  font-weight: 500;
}

.wordmark,
.host-mark {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.wordmark {
  font-size: clamp(2.65rem, 12vw, 4.7rem);
  font-weight: 700;
  white-space: nowrap;
}

.host-mark {
  margin-top: 5px;
  font-size: clamp(1.55rem, 7vw, 2.15rem);
}

.brand-subline {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.venue-address {
  display: inline-block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.72rem;
  text-decoration: none;
  text-underline-offset: 3px;
}

.venue-address:hover,
.venue-address:focus-visible {
  color: var(--brand-bright);
  text-decoration: underline;
}

.controller-board {
  position: relative;
  position: absolute;
  z-index: 0;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(92px, 0.72fr) minmax(0, 1fr);
  gap: clamp(8px, 2.6vw, 18px);
  padding: clamp(16px, 4vw, 25px);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 26px 80px rgba(0, 0, 0, 0.44);
  opacity: 0.58;
  overflow: hidden;
}

.controller-board::before {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 12px;
  content: "";
}

.controller-deck {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.2);
}

.jog-wheel {
  position: absolute;
  top: 11%;
  left: 50%;
  width: min(70%, 148px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle,
    transparent 0 7px,
    rgba(255, 255, 255, 0.1) 7.5px 8px
  );
  box-shadow: inset 0 0 0 9px rgba(255, 255, 255, 0.018);
}

.jog-wheel::before,
.jog-wheel::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.jog-wheel::before {
  inset: 22%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.jog-wheel::after {
  inset: 45%;
  background: var(--brand);
  box-shadow: 0 0 12px rgba(35, 131, 226, 0.58);
}

.pitch-rail {
  position: absolute;
  top: 17%;
  right: 7%;
  display: block;
  width: 3px;
  height: 45%;
  background: var(--line-strong);
}

.controller-deck--right .pitch-rail {
  right: auto;
  left: 7%;
}

.pitch-rail i {
  position: absolute;
  top: 58%;
  left: 50%;
  width: 10px;
  height: 18px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  background: var(--void);
}

.performance-pads {
  position: absolute;
  right: 12%;
  bottom: 9%;
  left: 12%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(3px, 1vw, 7px);
}

.performance-pads i {
  aspect-ratio: 1.35;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.025);
}

.performance-pads i:nth-child(2) {
  border-color: rgba(35, 131, 226, 0.58);
  background: rgba(35, 131, 226, 0.12);
}

.controller-mixer {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(4px, 1.2vw, 9px);
  padding: 9% 7% 18%;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.28);
}

.channel-strip {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(7px, 2vw, 12px);
  min-width: 0;
}

.channel-strip i {
  width: clamp(6px, 1.8vw, 11px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
}

.channel-strip i:nth-child(2) {
  border-color: rgba(35, 131, 226, 0.5);
}

.channel-strip b {
  position: relative;
  width: 2px;
  flex: 1;
  min-height: 45px;
  background: var(--line-strong);
}

.channel-strip b::after {
  position: absolute;
  top: 62%;
  left: 50%;
  width: clamp(8px, 2vw, 13px);
  height: 5px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.27);
  border-radius: 1px;
  background: var(--void);
  content: "";
}

.crossfader {
  position: absolute;
  right: 10%;
  bottom: 7%;
  left: 10%;
  height: 2px;
  background: var(--line-strong);
}

.crossfader i {
  position: absolute;
  top: 50%;
  left: 58%;
  width: 15px;
  height: 7px;
  transform: translate(-50%, -50%);
  border: 1px solid var(--brand);
  border-radius: 2px;
  background: var(--void);
  box-shadow: 0 0 10px rgba(35, 131, 226, 0.32);
}

.event-heading {
  display: grid;
  gap: 8px;
}

.status-line,
.section-heading,
.host-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.event-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.eyebrow,
.dock-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.salami-entry,
.text-button {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.salami-entry:hover,
.salami-entry:focus-visible,
.text-button:hover {
  color: var(--brand-bright);
}

h1,
h2,
p {
  letter-spacing: 0;
}

h1,
h2 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.08;
}

h2 {
  font-size: 1.35rem;
  font-weight: 500;
}

.status-pill {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 27px;
  padding: 5px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.status-pill[data-status="open"] {
  border-color: color-mix(in srgb, var(--brand) 70%, white);
  color: var(--brand-bright);
  box-shadow: 0 0 20px rgba(35, 131, 226, 0.16);
}

.status-pill[data-status="cancelled"] {
  border-color: var(--danger);
  color: var(--danger);
}

main#schedule {
  margin-top: 13px;
  padding: clamp(18px, 5vw, 28px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(106, 174, 255, 0.12);
  backdrop-filter: blur(22px);
}

.event-note {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.schedule-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
}

.slot-list,
.host-slot-list {
  border-top: 1px solid var(--line-strong);
}

.slot-row {
  display: grid;
  grid-template-columns: minmax(80px, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  min-height: 68px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
}

button.slot-row {
  width: 100%;
  padding: 0 10px;
  border-radius: 5px;
  cursor: pointer;
  text-align: left;
  transition: background 150ms ease, transform 150ms ease;
}

button.slot-row:hover {
  transform: translateX(2px);
  background: color-mix(in srgb, var(--brand) 9%, transparent);
}

.slot-time {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
}

.slot-state {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: right;
}

.slot-state strong {
  overflow: hidden;
  color: var(--text);
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slot-row.is-open .slot-state {
  color: var(--brand-bright);
}

.slot-row.is-mine {
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  box-shadow: inset 2px 0 0 var(--brand);
}

.slot-row.is-held {
  color: var(--muted);
}

.skeleton {
  position: relative;
  overflow: hidden;
}

.skeleton::after {
  position: absolute;
  inset: 20px 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--surface), var(--surface-strong), var(--surface));
  background-size: 200% 100%;
  content: "";
  animation: skeleton-pulse 1.4s ease-in-out infinite;
}

@keyframes skeleton-pulse {
  to { background-position: -200% 0; }
}

.closed-message {
  margin: 20px 0 0;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-left-color: var(--brand);
  border-radius: 7px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.booking-dock {
  position: fixed;
  z-index: 20;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  left: max(12px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 24px), calc(var(--max-width) - 24px));
  min-height: 76px;
  margin: 0 auto;
  padding: 12px 12px 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel-strong);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(22px);
}

.booking-dock strong {
  display: block;
  margin-top: 3px;
  font-family: var(--font-display);
}

.dock-actions {
  display: flex;
  gap: 7px;
}

.primary-button,
.quiet-button,
.danger-button,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 7px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.primary-button {
  border: 1px solid var(--brand);
  background: var(--brand);
  color: white;
}

.primary-button:hover {
  border-color: var(--brand-bright);
  background: color-mix(in srgb, var(--brand) 82%, white);
}

.quiet-button,
.link-button {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
}

.quiet-button:hover,
.link-button:hover {
  border-color: var(--brand);
  color: var(--brand-bright);
}

.danger-button {
  border: 1px solid color-mix(in srgb, var(--danger) 60%, var(--line));
  background: transparent;
  color: var(--danger);
}

.full-width {
  width: 100%;
  min-height: 50px;
}

button:disabled {
  cursor: wait;
  opacity: 0.55;
}

dialog {
  width: min(calc(100% - 28px), 460px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel-strong);
  color: var(--text);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(26px);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(5px);
}

dialog form {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 28px 22px 22px;
}

.salami-dialog {
  width: min(calc(100% - 36px), 370px);
}

.salami-dialog form {
  gap: 12px;
}

.salami-copy {
  margin: 0 34px 8px 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.salami-dialog .form-error {
  margin: 0;
}

.dialog-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.8rem;
  cursor: pointer;
}

dialog label,
.host-section label,
.host-auth-panel label,
.time-grid label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

dialog input,
.host-section textarea,
.host-auth-panel input,
.time-grid input {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--text);
}

dialog input,
.host-auth-panel input,
.time-grid input {
  height: 52px;
  padding: 0 13px;
  font-size: 1rem;
}

.host-section textarea {
  display: block;
  min-height: 100px;
  margin: 8px 0 12px;
  padding: 12px;
  resize: vertical;
}

.field-note,
.confirm-dialog p {
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.toast {
  position: fixed;
  z-index: 40;
  right: 16px;
  bottom: calc(100px + env(safe-area-inset-bottom));
  left: 16px;
  width: min(calc(100% - 32px), 440px);
  margin: 0 auto;
  padding: 13px 15px;
  border: 1px solid var(--brand);
  border-radius: 7px;
  background: var(--panel-strong);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.5);
}

.host-shell {
  padding-bottom: max(48px, env(safe-area-inset-bottom));
}

.host-header {
  padding: 18px 0 24px;
  border-bottom: 1px solid var(--line-strong);
}

.host-auth-panel {
  margin-top: 28px;
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(22px);
}

.host-auth-panel form {
  display: grid;
  gap: 12px;
}

.host-auth-panel h2 {
  margin-bottom: 4px;
}

.auth-copy {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.5;
}

.form-error {
  margin: 18px 0 0;
  color: var(--danger);
  font-size: 0.86rem;
  line-height: 1.45;
}

.account-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

.host-section {
  margin-top: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(22px);
}

.host-section > h2 {
  margin-bottom: 10px;
}

.host-section > p {
  color: var(--muted);
  line-height: 1.5;
}

.time-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}

.time-grid label {
  display: grid;
  gap: 7px;
}

.time-grid + .field-note {
  margin: -4px 0 14px;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 16px;
}

.segmented-control button {
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface);
  color: var(--muted);
}

.segmented-control button.is-selected {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 18%, transparent);
  color: var(--brand-bright);
  font-weight: 700;
}

.host-slot-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 66px;
  border-bottom: 1px solid var(--line);
}

.host-slot-row strong {
  overflow: hidden;
  padding-right: 10px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.host-slot-row button {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
}

@media (min-width: 680px) {
  .page-shell {
    padding-top: 56px;
  }

  .public-header {
    gap: 46px;
  }

  main#schedule {
    padding: 30px;
  }
}

@media (max-width: 430px) {
  .wordmark {
    font-size: clamp(2.35rem, 12vw, 3.2rem);
  }

  .event-actions {
    gap: 7px;
  }

  .salami-entry {
    font-size: 0.67rem;
  }

  .host-section,
  .host-auth-panel {
    padding: 20px;
  }
}

@media (max-width: 360px) {
  .status-line {
    align-items: flex-start;
    flex-direction: column;
  }

  .event-actions {
    width: 100%;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
