:root {
  color: #17201d;
  background: #f3efe5;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #17201d;
  --forest: #17352e;
  --forest-soft: #31554c;
  --paper: #f3efe5;
  --paper-deep: #e8e0d2;
  --white: #fffdf8;
  --gold: #d1a84a;
  --oxblood: #8a3f35;
  --sky: #b8cfda;
  --line: #cfc6b7;
  --muted: #67706b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--paper);
}

.app-loading {
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  color: var(--forest);
}

.app-loading p {
  margin: 0;
  color: var(--muted);
}

.loader {
  width: 32px;
  height: 32px;
  border: 3px solid var(--paper-deep);
  border-top-color: var(--forest);
  border-radius: 50%;
  animation: agora-spin 0.8s linear infinite;
}

@keyframes agora-spin {
  to { transform: rotate(360deg); }
}

button,
input,
select {
  font: inherit;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

img {
  display: block;
  max-width: 100%;
}

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

h1,
h2,
.event-card h3,
.featured-copy strong,
.table-copy > strong,
.ticket h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}

.overline,
.event-label {
  margin-bottom: 10px;
  color: var(--oxblood);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.overline.light {
  color: #f1dca4;
}

.button {
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 20px;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--gold);
  color: var(--ink);
}

.button.primary:hover {
  background: #ddb75c;
}

.button.secondary {
  border-color: var(--forest);
  background: transparent;
  color: var(--forest);
}

.button.full {
  width: 100%;
}

.button:disabled {
  background: #d6d1c6;
  color: #777b77;
  transform: none;
}

.text-link,
.back-link {
  border: 0;
  background: transparent;
  color: var(--forest);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  font-weight: 750;
}

.text-link:hover,
.back-link:hover {
  color: var(--oxblood);
}

.field {
  display: grid;
  gap: 7px;
}

.field > span {
  color: #4f5955;
  font-size: 0.78rem;
  font-weight: 750;
}

.field input,
.field select,
.search-field {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
}

.field input,
.field select {
  width: 100%;
  padding: 0 13px;
  outline: 0;
}

.password-input-wrap {
  position: relative;
  display: block;
  color: var(--forest);
  font-size: inherit;
  font-weight: inherit;
}

.password-input-wrap input {
  padding-right: 52px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  width: 38px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #59645f;
  background: transparent;
  border: 0;
  border-radius: 4px;
  transform: translateY(-50%);
  cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible,
.password-toggle[aria-pressed="true"] {
  color: var(--forest);
  background: rgba(49, 85, 76, 0.1);
  outline: none;
}

.password-eye {
  position: relative;
  width: 18px;
  height: 12px;
  display: block;
  border: 2px solid currentColor;
  border-radius: 75% 15%;
  transform: rotate(45deg);
}

.password-eye::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.field input:focus,
.field select:focus,
.search-field:focus-within {
  border-color: var(--forest-soft);
  box-shadow: 0 0 0 3px rgba(49, 85, 76, 0.13);
}

/* Authentication */

.auth-screen {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 500px);
  align-items: end;
  gap: 56px;
  padding: 40px 5vw 52px;
  background: var(--forest);
}

.auth-image,
.auth-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.auth-image {
  object-fit: cover;
  object-position: 67% center;
}

.auth-shade {
  background: rgba(9, 24, 19, 0.58);
}

.auth-error {
  margin: 0;
  padding: 11px 13px;
  color: #7d221d;
  background: #f8e3df;
  border-left: 3px solid #b9574d;
  border-radius: 3px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.auth-brand {
  position: absolute;
  z-index: 2;
  top: 32px;
  left: 5vw;
  color: #fffdf8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
}

.auth-brand span {
  margin-left: 8px;
  color: #f1dca4;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.66rem;
  font-weight: 800;
}

.auth-intro {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding-bottom: 8px;
  color: #fffdf8;
}

.auth-intro h1 {
  margin-bottom: 18px;
  font-size: 6.3rem;
  line-height: 0.9;
}

.auth-intro > p:last-child {
  max-width: 500px;
  margin-bottom: 0;
  color: #f2ede4;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  line-height: 1.45;
}

.auth-panel {
  position: relative;
  z-index: 2;
  width: 100%;
  max-height: calc(100vh - 82px);
  overflow-y: auto;
  border-radius: 6px;
  background: rgba(255, 253, 248, 0.97);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.23);
  padding: 12px 32px 32px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 0 -20px 28px;
  padding: 4px;
  border-radius: 4px;
  background: #e8e3d9;
}

.auth-tabs button {
  min-height: 42px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #59615d;
  font-size: 0.86rem;
  font-weight: 750;
}

.auth-tabs button.active {
  background: var(--white);
  color: var(--forest);
  box-shadow: 0 1px 4px rgba(24, 32, 29, 0.12);
}

.auth-heading h2 {
  max-width: 360px;
  margin-bottom: 24px;
  font-size: 2.4rem;
  line-height: 1.02;
}

.auth-form {
  display: grid;
  gap: 15px;
}

.avatar-upload {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 2px;
}

.avatar {
  border-radius: 50%;
  background: var(--sky);
  color: var(--forest);
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-large {
  width: 62px;
  height: 62px;
  border: 1px dashed #89958f;
  background: #ece8df;
  font-size: 1.4rem;
}

.avatar-small {
  width: 38px;
  height: 38px;
  font-size: 0.78rem;
}

.upload-button {
  color: var(--forest);
  font-size: 0.82rem;
  font-weight: 750;
  cursor: pointer;
}

.upload-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* Shared app chrome */

.app-shell {
  min-height: 100vh;
}

.app-header {
  position: sticky;
  z-index: 20;
  top: 0;
  min-height: 72px;
  border-bottom: 1px solid rgba(207, 198, 183, 0.8);
  background: rgba(243, 239, 229, 0.96);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 max(24px, calc((100vw - 1240px) / 2));
}

.wordmark {
  justify-self: start;
  border: 0;
  background: transparent;
  color: var(--forest);
  padding: 8px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.34rem;
}

.wordmark span {
  color: var(--oxblood);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.62rem;
  font-weight: 850;
}

.main-nav {
  height: 72px;
  display: flex;
  align-items: stretch;
  gap: 30px;
}

.main-nav button {
  position: relative;
  border: 0;
  background: transparent;
  color: #67706b;
  padding: 0 4px;
  font-size: 0.84rem;
  font-weight: 750;
}

.main-nav button.active,
.main-nav button:hover {
  color: var(--forest);
}

.main-nav button.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--oxblood);
}

.profile-chip {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-logo {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border: 1px solid #c4bbac;
  border-radius: 4px;
  object-fit: cover;
}

.profile-chip div {
  min-width: 0;
}

.profile-chip strong,
.profile-chip span {
  display: block;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-chip strong {
  font-size: 0.78rem;
}

.profile-chip div span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.68rem;
}

.icon-control {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--forest);
  font-size: 1rem;
  transform: rotate(180deg);
}

.icon-control:hover {
  background: var(--paper-deep);
}

.page {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 52px 0 80px;
}

.toast {
  position: fixed;
  z-index: 60;
  right: 24px;
  bottom: 24px;
  border-left: 4px solid var(--gold);
  border-radius: 4px;
  background: var(--forest);
  color: #fffdf8;
  padding: 14px 18px;
  box-shadow: 0 12px 35px rgba(23, 32, 29, 0.24);
}

/* Event directory */

.events-page {
  padding-top: 72px;
}

.welcome-band {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: end;
  gap: 72px;
  margin-bottom: 54px;
}

.welcome-band h1 {
  margin-bottom: 0;
  font-size: 5rem;
  line-height: 0.95;
}

.welcome-copy {
  margin-bottom: 5px;
  color: #4e5853;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.16rem;
  line-height: 1.55;
}

.featured-event {
  position: relative;
  width: 100%;
  height: 460px;
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  background: var(--forest);
  display: block;
  padding: 0;
  color: #fffdf8;
  text-align: left;
}

.featured-event > img,
.featured-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.featured-event > img {
  object-fit: cover;
  transition: transform 500ms ease;
}

.featured-event:hover > img {
  transform: scale(1.018);
}

.featured-shade {
  background: rgba(9, 24, 19, 0.42);
}

.featured-date,
.date-tile {
  background: var(--gold);
  color: var(--ink);
  display: grid;
  place-items: center;
  text-transform: uppercase;
}

.featured-date {
  position: absolute;
  top: 28px;
  left: 28px;
  width: 76px;
  height: 82px;
}

.featured-date strong,
.date-tile strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
}

.featured-date,
.date-tile {
  font-size: 0.62rem;
  font-weight: 850;
}

.featured-copy {
  position: absolute;
  right: 104px;
  bottom: 42px;
  left: 38px;
  display: grid;
  gap: 8px;
}

.featured-copy .event-label {
  color: #f1dca4;
}

.featured-copy strong {
  max-width: 760px;
  font-size: 3.2rem;
  line-height: 1.02;
}

.featured-copy > span:last-child {
  font-size: 0.86rem;
}

.round-arrow {
  position: absolute;
  right: 32px;
  bottom: 34px;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
}

.events-directory {
  margin-top: 76px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: 2.6rem;
}

.section-heading.compact {
  margin-bottom: 20px;
}

.search-field {
  width: min(360px, 100%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
}

.search-field > span {
  width: 22px;
  height: 22px;
  border: 1px solid #83908a;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--forest);
  font-size: 0.65rem;
  font-weight: 850;
}

.search-field input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.event-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.event-image-button {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 0;
  background: var(--forest);
  padding: 0;
}

.event-image-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.event-image-button:hover img {
  transform: scale(1.025);
}

.date-tile {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 56px;
  height: 61px;
}

.date-tile strong {
  font-size: 1.45rem;
}

.event-card-body {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
}

.event-card-body > p {
  margin-bottom: 12px;
  color: var(--oxblood);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.event-card h3 {
  margin-bottom: 10px;
  font-size: 1.65rem;
  line-height: 1.08;
}

.event-card-body > span {
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.45;
}

.event-card .text-link {
  margin-top: auto;
  padding-top: 22px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 44px 0;
  color: var(--muted);
}

/* Detail */

.progress {
  max-width: 620px;
  margin: 0 auto 48px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
}

.progress li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 7px;
  color: #8a8e89;
  font-size: 0.67rem;
  font-weight: 750;
}

.progress li::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 14px;
  right: 50%;
  width: 100%;
  height: 1px;
  background: var(--line);
}

.progress li:first-child::before {
  content: none;
}

.progress li span {
  width: 29px;
  height: 29px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  display: grid;
  place-items: center;
}

.progress li.active {
  color: var(--forest);
}

.progress li.active::before {
  background: var(--forest-soft);
}

.progress li.active span {
  border-color: var(--forest);
  background: var(--forest);
  color: #fffdf8;
}

.progress li.current span {
  outline: 4px solid rgba(209, 168, 74, 0.28);
}

.detail-page .back-link,
.booking-page .back-link {
  margin-bottom: 22px;
}

.detail-hero {
  position: relative;
  min-height: 530px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--forest);
  color: #fffdf8;
}

.detail-hero > img,
.detail-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.detail-hero > img {
  object-fit: cover;
}

.detail-shade {
  background: rgba(9, 24, 19, 0.5);
}

.detail-hero-copy {
  position: absolute;
  right: 40px;
  bottom: 42px;
  left: 40px;
}

.detail-hero-copy p {
  margin-bottom: 14px;
  color: #f1dca4;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-hero-copy h1 {
  max-width: 900px;
  margin-bottom: 14px;
  font-size: 4.6rem;
  line-height: 0.94;
}

.detail-hero-copy > span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 80px;
  align-items: start;
  padding-top: 64px;
}

.detail-main > h2 {
  margin-bottom: 24px;
  font-size: 3.25rem;
  line-height: 1;
}

.large-copy {
  max-width: 720px;
  color: #45504b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.26rem;
  line-height: 1.7;
}

.speaker-section {
  margin-top: 60px;
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

.speaker-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.speaker {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.speaker-portrait,
.leader-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sky);
  color: var(--forest);
  display: grid;
  flex: 0 0 48px;
  place-items: center;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  overflow: hidden;
}

.speaker-portrait img,
.leader-avatar img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.speaker:nth-child(2) .speaker-portrait {
  background: #dfc3ba;
  color: #632f28;
}

.speaker:nth-child(3) .speaker-portrait {
  background: #d9cfa5;
  color: #483c18;
}

.speaker strong,
.speaker span,
.leader-line b,
.leader-line small {
  display: block;
}

.speaker strong {
  margin-bottom: 4px;
  font-size: 0.84rem;
}

.speaker div span {
  color: var(--muted);
  font-size: 0.72rem;
}

.speaker-talk {
  margin: 10px 0 0;
  color: #4f5955;
  font-size: 0.75rem;
  line-height: 1.55;
}

.booking-panel,
.seat-summary,
.order-summary {
  border-top: 5px solid var(--oxblood);
  border-radius: 4px;
  background: var(--forest);
  color: #fffdf8;
  padding: 30px;
}

.booking-panel dl,
.seat-summary dl,
.order-summary dl {
  margin: 0 0 28px;
}

.booking-panel dl > div,
.seat-summary dl > div,
.order-summary dl > div {
  padding: 17px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.booking-panel dt,
.seat-summary dt,
.order-summary dt {
  margin-bottom: 6px;
  color: #b9c9c4;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
}

.booking-panel dd,
.seat-summary dd,
.order-summary dd {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.03rem;
  line-height: 1.35;
}

.booking-panel dd span,
.order-summary dd span {
  display: block;
  margin-top: 4px;
  color: #b9c9c4;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.72rem;
}

.fine-print {
  margin: 14px 0 0;
  color: #b9c9c4;
  font-size: 0.7rem;
  text-align: center;
}

/* Table selection */

.booking-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.55fr);
  align-items: end;
  gap: 80px;
  margin: 26px 0 44px;
}

.booking-heading h1,
.seat-heading h1,
.checkout-heading h1 {
  margin-bottom: 0;
  font-size: 4.4rem;
  line-height: 0.95;
}

.booking-heading > p,
.checkout-heading > p {
  margin-bottom: 4px;
  color: #4f5955;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.55;
}

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

.table-option {
  position: relative;
  min-height: 250px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  display: grid;
  grid-template-columns: 74px 1fr 26px;
  gap: 18px;
  padding: 26px;
  text-align: left;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.table-option:hover {
  border-color: #8e9a94;
  transform: translateY(-2px);
}

.table-option.selected {
  border-color: var(--forest);
  box-shadow: inset 0 0 0 2px var(--forest);
}

.table-number {
  color: var(--oxblood);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.9rem;
  line-height: 0.9;
}

.table-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.availability {
  margin-bottom: 12px;
  color: var(--forest-soft);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.table-copy > strong {
  max-width: 440px;
  font-size: 1.7rem;
  line-height: 1.13;
}

.table-description {
  display: block;
  margin-top: 12px;
  color: #58625d;
  font-size: 0.78rem;
  line-height: 1.55;
}

.leader-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 22px;
  color: var(--muted);
  font-size: 0.72rem;
}

.leader-avatar {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  font-size: 0.7rem;
}

.leader-line b {
  margin: 2px 0;
  color: var(--ink);
}

.leader-line small {
  color: var(--muted);
}

.radio-mark {
  width: 22px;
  height: 22px;
  border: 1px solid #929b96;
  border-radius: 50%;
}

.table-option.selected .radio-mark {
  border: 6px solid var(--forest);
}

.sticky-action {
  position: sticky;
  z-index: 10;
  bottom: 18px;
  width: min(760px, calc(100% - 24px));
  min-height: 76px;
  margin: 28px auto 0;
  border: 1px solid #9dac9f;
  border-radius: 6px;
  background: rgba(255, 253, 248, 0.97);
  box-shadow: 0 12px 32px rgba(23, 32, 29, 0.17);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px;
  padding-left: 22px;
}

.sticky-action div {
  min-width: 0;
}

.sticky-action span,
.sticky-action strong {
  display: block;
}

.sticky-action span {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.64rem;
  text-transform: uppercase;
}

.sticky-action strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8rem;
}

/* Seat map */

.seat-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin: 26px 0 36px;
}

.seat-heading h1 {
  font-size: 4.8rem;
}

.seat-legend {
  display: flex;
  gap: 18px;
  padding-bottom: 8px;
  color: var(--muted);
  font-size: 0.7rem;
}

.seat-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border: 1px solid var(--forest);
  border-radius: 50%;
}

.legend-dot.selected {
  background: var(--gold);
}

.legend-dot.taken {
  border-color: #a6aaa6;
  background: #d4d2cd;
}

.seat-layout {
  display: grid;
  grid-template-columns: minmax(560px, 1fr) 330px;
  gap: 28px;
  align-items: stretch;
}

.seat-map-panel {
  min-height: 610px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 24px;
}

.seat-map {
  position: relative;
  width: min(540px, 100%);
  aspect-ratio: 1;
  animation: map-in 500ms ease both;
}

.round-table {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 265px;
  height: 265px;
  border: 10px solid #b58650;
  border-radius: 50%;
  background: #9a6738;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.18), 0 20px 28px rgba(77, 49, 28, 0.2);
  color: #fffdf8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
}

.round-table .leader-avatar.large {
  width: 58px;
  height: 58px;
  margin-bottom: 10px;
  background: #f0e7d7;
  color: var(--forest);
}

.round-table strong {
  font-size: 0.8rem;
}

.round-table small {
  margin-top: 3px;
  color: #efe2cf;
  font-size: 0.64rem;
}

.seat {
  --seat-angle: 0deg;
  --seat-delay: 0ms;
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  border: 2px solid var(--forest);
  border-radius: 50%;
  background: var(--white);
  color: var(--forest);
  display: grid;
  place-items: center;
  font-weight: 850;
  transform: translate(-50%, -50%) rotate(var(--seat-angle)) translateY(-217px);
  animation: seat-in 380ms ease both;
  animation-delay: var(--seat-delay);
  transition: background 140ms ease, box-shadow 140ms ease;
}

.seat span {
  transform: rotate(calc(0deg - var(--seat-angle)));
}

.seat:not(:disabled):hover {
  background: #ecdfbd;
  box-shadow: 0 0 0 5px rgba(209, 168, 74, 0.2);
}

.seat.selected {
  border-color: #745719;
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 0 0 7px rgba(209, 168, 74, 0.22);
}

.seat.taken {
  border-color: #b1b2ae;
  background: #d5d3ce;
  color: #8c8f8b;
}

.seat.taken::after {
  content: "";
  position: absolute;
  width: 70px;
  height: 2px;
  background: #8c8f8b;
  transform: rotate(45deg);
}

.seat-summary {
  display: flex;
  flex-direction: column;
}

.seat-summary .overline,
.order-summary .overline {
  color: #f1dca4;
}

.seat-summary h2,
.order-summary h2 {
  margin-bottom: 22px;
  font-size: 2rem;
  line-height: 1.06;
}

.leader-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.leader-summary span,
.leader-summary strong {
  display: block;
}

.leader-summary div span {
  margin-bottom: 3px;
  color: #b9c9c4;
  font-size: 0.65rem;
}

.leader-summary strong {
  font-size: 0.78rem;
}

.seat-summary .button {
  margin-top: auto;
}

@keyframes map-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes seat-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Checkout */

.checkout-heading {
  max-width: 760px;
  margin: 24px auto 48px;
  text-align: center;
}

.checkout-heading h1 {
  margin-bottom: 18px;
  font-size: 4.8rem;
}

.checkout-heading > p {
  max-width: 620px;
  margin-right: auto;
  margin-left: auto;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 30px;
  align-items: start;
}

.checkout-main {
  min-width: 0;
}

.seat-type-fieldset {
  margin: 0;
  border: 0;
  padding: 0;
}

.seat-type-fieldset legend {
  width: 100%;
  margin-bottom: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
}

.seat-type {
  position: relative;
  min-height: 106px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  display: grid;
  grid-template-columns: 52px 1fr 22px;
  align-items: center;
  gap: 16px;
  padding: 20px;
  cursor: pointer;
}

.seat-type.selected {
  border-color: var(--forest);
  box-shadow: inset 0 0 0 2px var(--forest);
}

.seat-type input,
.calendar-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.seat-type-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #e2c98f;
  display: grid;
  place-items: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
}

.seat-type-icon.sponsored {
  background: var(--sky);
}

.seat-type strong,
.seat-type small {
  display: block;
}

.seat-type strong {
  margin-bottom: 5px;
}

.seat-type small {
  color: var(--muted);
  line-height: 1.4;
}

.seat-type > i {
  width: 22px;
  height: 22px;
  border: 1px solid #929b96;
  border-radius: 50%;
}

.seat-type.selected > i {
  border: 6px solid var(--forest);
}

.donation-control,
.sponsor-note,
.confirmation-fields {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}

.donation-control > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  font-weight: 750;
}

.donation-control output {
  color: var(--oxblood);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.4rem;
}

.donation-control input[type="range"] {
  width: 100%;
  height: 7px;
  border-radius: 4px;
  accent-color: var(--forest);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.7rem;
}

.sponsor-note {
  display: grid;
  gap: 5px;
  color: var(--forest);
}

.sponsor-note span {
  color: var(--muted);
  font-size: 0.84rem;
}

.confirmation-fields {
  display: grid;
  gap: 18px;
}

.toggle-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.toggle-row input {
  position: absolute;
  opacity: 0;
}

.toggle {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 20px;
  background: #b8bbb7;
  transition: background 140ms ease;
}

.toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 140ms ease;
}

.toggle-row input:checked + .toggle {
  background: var(--forest);
}

.toggle-row input:checked + .toggle::after {
  transform: translateX(20px);
}

.toggle-row strong,
.toggle-row small {
  display: block;
}

.toggle-row strong {
  margin-bottom: 3px;
  font-size: 0.8rem;
}

.toggle-row small {
  color: var(--muted);
}

.calendar-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.calendar-option {
  position: relative;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px;
  color: var(--muted);
  cursor: pointer;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 750;
}

.calendar-option.selected {
  border-color: var(--forest);
  color: var(--forest);
}

.calendar-option b {
  position: absolute;
  top: -8px;
  right: 8px;
  border-radius: 3px;
  background: var(--gold);
  color: var(--ink);
  padding: 2px 5px;
  font-size: 0.54rem;
  text-transform: uppercase;
}

.order-summary {
  position: sticky;
  top: 96px;
}

.order-total {
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.order-total span {
  color: #b9c9c4;
  font-size: 0.78rem;
}

.order-total strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.1rem;
}

.payment-error {
  margin: -8px 0 18px;
  border-left: 3px solid #e7a89f;
  background: rgba(138, 63, 53, 0.28);
  color: #ffe9e5;
  padding: 11px 12px;
  font-size: 0.75rem;
  line-height: 1.45;
}

.payment-return-page {
  min-height: calc(100vh - 72px);
  background: var(--forest);
  color: #fffdf8;
  display: grid;
  place-items: center;
  padding: 48px 24px;
}

.payment-return-panel {
  width: min(720px, 100%);
  text-align: center;
}

.payment-return-panel h1 {
  margin-bottom: 20px;
  font-size: 4.4rem;
  line-height: 0.96;
}

.payment-return-panel > p:not(.overline) {
  max-width: 520px;
  margin-right: auto;
  margin-bottom: 28px;
  margin-left: auto;
  color: #c9d6d2;
  line-height: 1.55;
}

.paypal-button-container {
  width: min(420px, 100%);
  min-height: 150px;
  margin: 0 auto 22px;
}

.paypal-button-container iframe {
  border-radius: 4px;
}

.payment-spinner,
.payment-return-mark {
  width: 60px;
  height: 60px;
  margin: 0 auto 24px;
  border-radius: 50%;
}

.payment-spinner {
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--gold);
  animation: payment-spin 850ms linear infinite;
}

.payment-return-mark {
  background: #b65d50;
  display: grid;
  place-items: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
}

@keyframes payment-spin {
  to { transform: rotate(360deg); }
}

/* Confirmation */

.confirmation-page {
  min-height: calc(100vh - 72px);
  padding-bottom: 80px;
}

.confirmation-hero {
  min-height: 430px;
  background: var(--forest);
  color: #fffdf8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 24px 100px;
  text-align: center;
}

.confirmation-mark {
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 1.55rem;
  animation: confirm-in 460ms ease both;
}

.confirmation-hero h1 {
  margin-bottom: 18px;
  font-size: 4.7rem;
  line-height: 0.94;
}

.confirmation-hero > p:last-child {
  margin-bottom: 0;
  color: #c9d6d2;
}

.ticket {
  width: min(980px, calc(100% - 48px));
  min-height: 350px;
  margin: -58px auto 48px;
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 18px 60px rgba(23, 32, 29, 0.2);
  display: grid;
  grid-template-columns: 1fr 165px;
  overflow: hidden;
}

.ticket-main {
  padding: 32px 36px;
}

.ticket-main header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  color: var(--forest);
  font-size: 0.66rem;
  font-weight: 850;
}

.ticket-title {
  padding: 25px 0;
}

.ticket-title p {
  margin-bottom: 7px;
  color: var(--oxblood);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ticket-title h2 {
  margin-bottom: 0;
  font-size: 2.4rem;
}

.ticket-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.ticket-grid span,
.ticket-topic span,
.ticket-grid strong,
.ticket-topic strong {
  display: block;
}

.ticket-grid span,
.ticket-topic span {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ticket-grid strong {
  font-size: 0.78rem;
  line-height: 1.4;
}

.ticket-topic {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.ticket-topic strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
}

.ticket-stub {
  position: relative;
  border-left: 1px dashed #a99f90;
  background: #e5c66e;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

.ticket-stub::before,
.ticket-stub::after {
  content: "";
  position: absolute;
  left: -15px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--paper);
}

.ticket-stub::before { top: -15px; }
.ticket-stub::after { bottom: -15px; }

.ticket-stub span {
  margin-top: 18px;
  font-size: 0.62rem;
  font-weight: 850;
}

.ticket-stub strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  font-weight: 500;
}

.calendar-actions {
  width: min(980px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.calendar-actions h2 {
  margin-bottom: 0;
  font-size: 2rem;
}

.calendar-actions > div:last-child {
  display: flex;
  gap: 10px;
}

.confirmation-home {
  margin: 48px auto 0;
  display: flex;
}

.empty-rsvp-page {
  min-height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.empty-rsvp-page h1 {
  max-width: 720px;
  margin-bottom: 28px;
  font-size: 4rem;
  line-height: 1;
}

@keyframes confirm-in {
  from { opacity: 0; transform: scale(0.6) rotate(-14deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

@media (max-width: 1050px) {
  .auth-intro h1 { font-size: 5rem; }
  .welcome-band h1 { font-size: 4.2rem; }
  .detail-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 42px; }
  .speaker-list { grid-template-columns: 1fr; }
  .seat-layout { grid-template-columns: minmax(500px, 1fr) 300px; }
  .checkout-layout { grid-template-columns: minmax(0, 1fr) 340px; }
}

@media (max-width: 860px) {
  .auth-screen {
    grid-template-columns: 1fr;
    align-items: center;
    padding: 96px 24px 32px;
  }

  .auth-intro { display: none; }
  .auth-panel { justify-self: end; max-width: 500px; }

  .app-header {
    grid-template-columns: 1fr auto;
    padding: 0 18px;
  }

  .main-nav { display: none; }
  .profile-chip div { display: none; }

  .page { width: min(100% - 32px, 720px); padding-top: 38px; }
  .events-page { padding-top: 50px; }

  .welcome-band,
  .booking-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .welcome-band h1,
  .booking-heading h1,
  .seat-heading h1,
  .checkout-heading h1 { font-size: 3.7rem; }

  .featured-event { height: 400px; }
  .event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .detail-hero { min-height: 470px; }
  .detail-hero-copy h1 { font-size: 3.7rem; }
  .detail-layout { grid-template-columns: 1fr; }
  .booking-panel { position: static; }

  .table-grid { grid-template-columns: 1fr; }
  .table-option { min-height: 230px; }

  .seat-heading { align-items: flex-start; flex-direction: column; }
  .seat-layout { grid-template-columns: 1fr; }
  .seat-map-panel { min-height: 590px; }
  .seat-summary { min-height: 390px; }

  .checkout-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; }

  .ticket { grid-template-columns: 1fr 130px; }
  .ticket-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .auth-screen { padding: 82px 12px 12px; }
  .auth-brand { top: 24px; left: 20px; }
  .auth-panel { max-height: calc(100vh - 94px); padding: 10px 20px 24px; }
  .auth-tabs { margin-right: -10px; margin-left: -10px; }
  .auth-heading h2 { font-size: 2rem; }

  .app-header { min-height: 64px; }
  .header-logo { width: 46px; height: 46px; flex-basis: 46px; }
  .wordmark { font-size: 1.2rem; }

  .page { width: min(100% - 24px, 560px); padding-bottom: 56px; }
  .progress { margin-bottom: 34px; }
  .progress li { font-size: 0.58rem; }

  .welcome-band { margin-bottom: 34px; }
  .welcome-band h1,
  .booking-heading h1,
  .seat-heading h1,
  .checkout-heading h1 { font-size: 3rem; }
  .welcome-copy { font-size: 1rem; }

  .featured-event { height: 390px; }
  .featured-date { top: 18px; left: 18px; }
  .featured-copy { right: 24px; bottom: 74px; left: 22px; }
  .featured-copy strong { font-size: 2.4rem; }
  .round-arrow { right: 20px; bottom: 18px; width: 48px; height: 48px; }

  .events-directory { margin-top: 56px; }
  .section-heading { align-items: stretch; flex-direction: column; gap: 18px; }
  .section-heading h2 { font-size: 2.15rem; }
  .search-field { width: 100%; }
  .event-grid { grid-template-columns: 1fr; }
  .event-card-body { min-height: 210px; }

  .detail-hero { min-height: 480px; }
  .detail-hero-copy { right: 22px; bottom: 28px; left: 22px; }
  .detail-hero-copy h1 { font-size: 3rem; }
  .detail-main > h2 { font-size: 2.65rem; }
  .large-copy { font-size: 1.08rem; }
  .booking-panel, .seat-summary, .order-summary { padding: 24px; }

  .booking-heading { margin-bottom: 30px; }
  .table-option { grid-template-columns: 50px 1fr 22px; min-height: 245px; padding: 20px; }
  .table-number { font-size: 2.25rem; }
  .table-copy > strong { font-size: 1.45rem; }
  .sticky-action { width: 100%; flex-direction: column; align-items: stretch; padding: 12px; }
  .sticky-action div { padding: 2px 4px; }

  .seat-legend { width: 100%; flex-wrap: wrap; gap: 10px 16px; }
  .seat-map-panel { min-height: 390px; padding: 8px; }
  .seat-map { width: min(360px, 100%); }
  .round-table { width: 176px; height: 176px; border-width: 7px; }
  .round-table .leader-avatar.large { width: 44px; height: 44px; }
  .round-table strong { font-size: 0.68rem; }
  .seat { width: 42px; height: 42px; transform: translate(-50%, -50%) rotate(var(--seat-angle)) translateY(-145px); font-size: 0.72rem; }
  .seat.taken::after { width: 52px; }

  .seat-type { grid-template-columns: 44px 1fr 20px; padding: 16px; }
  .seat-type-icon { width: 44px; height: 44px; }
  .calendar-choice { grid-template-columns: 1fr; }

  .confirmation-hero { min-height: 400px; padding-bottom: 88px; }
  .confirmation-hero h1 { font-size: 3.5rem; }
  .payment-return-panel h1 { font-size: 3.3rem; }
  .ticket { width: calc(100% - 24px); grid-template-columns: 1fr; }
  .ticket-main { padding: 24px 20px; }
  .ticket-main header { flex-direction: column; gap: 6px; }
  .ticket-title h2 { font-size: 2rem; }
  .ticket-grid { grid-template-columns: 1fr 1fr; }
  .ticket-stub { min-height: 130px; border-top: 1px dashed #a99f90; border-left: 0; flex-direction: row; gap: 12px; }
  .ticket-stub::before, .ticket-stub::after { top: -15px; }
  .ticket-stub::before { left: -15px; }
  .ticket-stub::after { right: -15px; bottom: auto; left: auto; }
  .ticket-stub span { margin-top: 0; }
  .ticket-stub strong { font-size: 2.5rem; }
  .calendar-actions { width: calc(100% - 24px); align-items: stretch; flex-direction: column; }
  .calendar-actions > div:last-child { flex-direction: column; }
  .empty-rsvp-page h1 { font-size: 3rem; }
}

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