:root {
  --ink: #241633;
  --purple: #5a2f82;
  --purple-dark: #35164f;
  --lavender: #eee5f5;
  --saffron: #f5a623;
  --cream: #fffaf1;
  --paper: #ffffff;
  --muted: #706879;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.adv-public-page,
body.adv-admin-page {
  margin: 0 !important;
  padding: 0 !important;
}

body.adv-public-page #wpadminbar,
body.adv-admin-page #wpadminbar {
  display: none;
}

body.adv-public-page.admin-bar,
body.adv-admin-page.admin-bar {
  margin-top: 0 !important;
}

.adv-site {
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
}

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

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

.site-header {
  align-items: center;
  background: rgba(255, 250, 241, 0.94);
  display: flex;
  height: 88px;
  justify-content: space-between;
  padding: 0 clamp(24px, 5vw, 76px);
  position: relative;
  z-index: 10;
}

.brand,
.footer-brand {
  align-items: center;
  display: flex;
  gap: 16px;
}

.brand img {
  height: 54px;
  object-fit: contain;
  width: auto;
}

.brand span,
.footer-brand span {
  border-left: 1px solid rgba(36, 22, 51, 0.25);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding-left: 16px;
  text-transform: uppercase;
}

nav {
  align-items: center;
  display: flex;
  font-size: 14px;
  font-weight: 650;
  gap: 34px;
}

nav > a:not(.nav-cta) {
  padding: 10px 0;
}

.nav-cta,
.primary-button {
  align-items: center;
  background: var(--saffron);
  border-radius: 999px;
  display: inline-flex;
  font-weight: 750;
  gap: 16px;
  padding: 14px 22px;
  transition: transform 180ms ease, background 180ms ease;
}

.nav-cta:hover,
.primary-button:hover {
  background: #ffb738;
  transform: translateY(-2px);
}

.hero {
  color: white;
  min-height: min(760px, calc(100vh - 88px));
  overflow: hidden;
  position: relative;
}

.hero-image,
.hero-shade {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.hero-image {
  object-position: center 54%;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(39, 14, 61, 0.94) 0%, rgba(56, 23, 76, 0.75) 38%, rgba(45, 23, 55, 0.12) 72%),
    linear-gradient(0deg, rgba(20, 10, 30, 0.4), transparent 44%);
}

.hero-orb {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  position: absolute;
}

.hero-orb-one {
  height: 420px;
  left: -190px;
  top: 40px;
  width: 420px;
}

.hero-orb-two {
  height: 240px;
  left: 35%;
  top: -130px;
  width: 240px;
}

.hero-content {
  max-width: 720px;
  padding: clamp(96px, 13vh, 150px) clamp(24px, 7vw, 110px) 100px;
  position: relative;
  z-index: 2;
}

.kicker {
  color: #ffd889;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  margin: 0 0 24px;
  text-transform: uppercase;
}

.kicker.dark {
  color: var(--purple);
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.035em;
  margin: 0;
}

h1 {
  font-size: clamp(56px, 7vw, 104px);
  line-height: 0.92;
}

.hero-copy {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
  margin: 32px 0;
  max-width: 590px;
}

.primary-button {
  color: var(--ink);
  padding: 17px 26px;
}

.primary-button span {
  font-size: 20px;
}

.hero-note {
  bottom: 38px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0;
  position: absolute;
  right: clamp(24px, 5vw, 76px);
  text-transform: uppercase;
  z-index: 2;
}

.events-section {
  padding: clamp(88px, 11vw, 150px) clamp(24px, 5vw, 76px);
}

.section-heading {
  align-items: end;
  display: flex;
  gap: 60px;
  justify-content: space-between;
  margin: 0 auto 56px;
  max-width: 1380px;
}

.section-heading h2,
.about-copy h2 {
  font-size: clamp(46px, 5.3vw, 76px);
  line-height: 1;
}

.section-heading > p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  margin: 0;
  max-width: 430px;
}

.events-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1380px;
}

.event-card {
  background: var(--paper);
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(53, 22, 79, 0.08);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  transition: box-shadow 220ms ease, transform 220ms ease;
}

.event-card-main {
  color: inherit;
  display: block;
  flex: 1 1 auto;
}

.event-card:hover {
  box-shadow: 0 24px 60px rgba(53, 22, 79, 0.17);
  transform: translateY(-8px);
}

.event-image-wrap {
  aspect-ratio: 1.34 / 1;
  overflow: hidden;
  position: relative;
}

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

.event-card:first-child .event-image-wrap img {
  object-position: 67% center;
}

.event-card:nth-child(2) .event-image-wrap img {
  object-position: 36% center;
}

.event-card:nth-child(3) .event-image-wrap img {
  object-position: 66% center;
}

.event-card:hover .event-image-wrap img {
  transform: scale(1.035);
}

.status {
  background: var(--saffron);
  border-radius: 999px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  left: 18px;
  letter-spacing: 0.05em;
  padding: 9px 12px;
  position: absolute;
  text-transform: uppercase;
  top: 18px;
}

.status-demo {
  background: rgba(255, 255, 255, 0.91);
}

.external-arrow {
  align-items: center;
  backdrop-filter: blur(8px);
  background: rgba(40, 18, 58, 0.76);
  border-radius: 50%;
  color: white;
  display: flex;
  font-size: 19px;
  height: 46px;
  justify-content: center;
  position: absolute;
  right: 18px;
  top: 18px;
  width: 46px;
}

.event-content {
  padding: 27px 28px 30px;
}

.event-eyebrow {
  color: var(--purple);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.event-content h3 {
  font-size: clamp(29px, 2.4vw, 39px);
  line-height: 1.07;
  min-height: 84px;
}

.event-meta {
  border-bottom: 1px solid #e9e3eb;
  border-top: 1px solid #e9e3eb;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(90px, 0.75fr) minmax(0, 1.4fr);
  margin: 24px 0 19px;
  padding: 17px 0;
}

.event-meta > div + div {
  border-left: 1px solid #e9e3eb;
  padding-left: 18px;
}

.meta-label {
  color: var(--muted);
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.event-meta strong {
  font-size: 13px;
  line-height: 1.5;
}

.event-schedule strong,
.admin-card-schedule strong {
  white-space: pre-line;
}

.event-meta-date {
  grid-template-columns: 1fr;
  margin-bottom: 0;
}

.event-schedule {
  border-bottom: 1px solid #e9e3eb;
  margin-bottom: 19px;
  padding: 16px 0;
}

.event-schedule-table {
  display: grid;
}

.event-schedule-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(88px, 1fr) minmax(64px, 0.7fr) minmax(112px, 1.15fr);
  padding: 11px 0;
}

.event-schedule-row + .event-schedule-row {
  border-top: 1px solid #eee8f0;
}

.event-schedule-row strong,
.event-schedule-row span,
.event-schedule-row time {
  font-size: 12px;
  line-height: 1.35;
}

.event-schedule-row time {
  color: #6868e8;
  font-weight: 800;
  text-align: right;
}

.event-schedule-fallback {
  display: block;
  font-size: 13px;
  line-height: 1.55;
}

.event-place {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 24px;
}

.event-instructors {
  align-items: center;
  display: flex;
  gap: 13px;
  margin: 0 0 24px;
  min-width: 0;
}

.instructor-avatars {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  max-width: 228px;
  padding-left: 8px;
}

.instructor-avatars img {
  background: #eee7f1;
  border: 3px solid white;
  border-radius: 50%;
  height: 52px;
  margin-left: -8px;
  object-fit: cover;
  width: 52px;
}

.event-instructors > span {
  min-width: 0;
}

.event-instructors small,
.event-instructors strong {
  display: block;
}

.event-instructors small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.event-instructors strong {
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.card-link,
.about-copy a {
  color: var(--purple);
  font-size: 14px;
  font-weight: 800;
}

.card-link span,
.about-copy a span {
  margin-left: 7px;
}

.event-share {
  align-items: center;
  align-self: stretch;
  background: #edf8f0;
  border: 0;
  border-top: 1px solid #d8ebdd;
  color: #176b36;
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
  justify-content: center;
  padding: 15px 20px;
  transition: background 180ms ease, color 180ms ease;
}

.event-share span {
  background: #25d366;
  border-radius: 999px;
  color: white;
  font-size: 9px;
  letter-spacing: 0.04em;
  padding: 5px 8px;
  text-transform: uppercase;
}

.event-share:hover,
.event-share:focus-visible {
  background: #dff3e5;
  color: #0d5628;
}

.event-share:disabled {
  cursor: wait;
  opacity: 0.65;
}

.demo-note {
  color: var(--muted);
  font-size: 12px;
  margin: 22px auto 0;
  max-width: 1380px;
  text-align: right;
}

.about-section {
  align-items: center;
  background: var(--lavender);
  display: grid;
  gap: clamp(50px, 9vw, 140px);
  grid-template-columns: minmax(260px, 0.8fr) minmax(360px, 1fr);
  overflow: hidden;
  padding: clamp(90px, 11vw, 150px) clamp(24px, 9vw, 150px);
}

.about-symbol {
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0 26px 70px rgba(74, 38, 89, 0.2);
  max-width: 470px;
  overflow: hidden;
  position: relative;
}

.about-symbol::after {
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  content: "";
  inset: 4%;
  position: absolute;
  z-index: 1;
}

.about-symbol img {
  display: block;
  height: 100%;
  object-fit: cover;
  transform: scale(1.025);
  width: 100%;
}

.about-copy {
  max-width: 650px;
}

.about-copy > p:not(.kicker) {
  color: #5f5767;
  font-size: 18px;
  line-height: 1.75;
  margin: 28px 0 30px;
}

footer {
  align-items: center;
  background: var(--purple-dark);
  color: white;
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr auto 1fr;
  padding: 54px clamp(24px, 5vw, 76px);
}

.footer-brand img {
  height: 56px;
  object-fit: contain;
  width: auto;
}

.footer-brand span {
  border-color: rgba(255, 255, 255, 0.25);
}

footer p {
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  margin: 0;
  text-align: center;
}

footer > a,
.footer-links a {
  font-size: 13px;
  font-weight: 750;
}

.footer-links {
  display: flex;
  gap: 22px;
  justify-self: end;
}

.install-app {
  align-items: center;
  background: white;
  border: 1px solid #e2d9e7;
  border-radius: 18px;
  bottom: 18px;
  box-shadow: 0 20px 60px rgba(35, 17, 48, 0.24);
  display: grid;
  gap: 12px;
  grid-template-columns: 50px minmax(0, 1fr) auto 32px;
  left: 18px;
  margin: 0 auto;
  max-width: 580px;
  padding: 12px;
  position: fixed;
  right: 18px;
  z-index: 99999;
}

.install-app[hidden], .offline-notice[hidden] { display: none; }
.install-app > img { border-radius: 12px; height: 50px; width: 50px; }
.install-app strong { display: block; font-size: 14px; }
.install-app p { color: var(--muted); font-size: 11px; line-height: 1.4; margin: 3px 0 0; }
.install-app button { border: 0; cursor: pointer; font: inherit; }
.install-app-primary { background: var(--saffron); border-radius: 999px !important; color: var(--ink); font-size: 11px !important; font-weight: 800; padding: 10px 14px; }
.install-app-close { background: transparent; color: var(--muted); font-size: 22px !important; padding: 4px; }
.offline-notice { background: #fff0bd; bottom: 0; color: #493706; font-size: 12px; left: 0; padding: 10px 18px; position: fixed; right: 0; text-align: center; z-index: 99998; }

/* Área de importação de eventos */

.sr-only {
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.events-empty {
  background: var(--lavender);
  border: 1px solid #ded1e5;
  border-radius: 20px;
  padding: clamp(38px, 6vw, 72px);
  text-align: center;
}

.events-empty h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 48px);
  margin: 10px 0 14px;
}

.events-empty > p:last-child {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 auto;
  max-width: 590px;
}

.admin-page {
  background: #f6f2f8;
  min-height: 100vh;
}

.login-page {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: calc(100vh - 82px);
  padding: 32px 20px;
}

.login-card {
  background: white;
  border: 1px solid #e5dfe7;
  border-radius: 22px;
  box-shadow: 0 24px 80px rgba(53, 22, 79, 0.12);
  max-width: 460px;
  padding: clamp(30px, 5vw, 52px);
  width: 100%;
}

.login-card h1 {
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1.02;
}

.login-card > p:not(.admin-kicker) {
  color: var(--muted);
  line-height: 1.6;
  margin: 18px 0 28px;
}

.login-card label {
  color: #4a4050;
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
}

.login-card input,
.event-search input {
  background: #fbf9fc;
  border: 1px solid #dbd3df;
  border-radius: 10px;
  color: var(--ink);
  font: inherit;
  outline: none;
  padding: 13px 14px;
  width: 100%;
}

.login-card input:focus,
.event-search input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(90, 47, 130, 0.12);
}

.login-card > button,
.primary-admin-button {
  background: var(--purple);
  border: 0;
  border-radius: 10px;
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  margin-top: 14px;
  padding: 14px 20px;
  width: 100%;
}

.login-card > button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.events-manager {
  padding: clamp(42px, 6vw, 74px) clamp(24px, 5vw, 76px) 34px;
}

.manager-heading {
  align-items: end;
  display: flex;
  gap: 32px;
  justify-content: space-between;
  margin: 0 auto 30px;
  max-width: 1420px;
}

.manager-heading h1 {
  font-size: clamp(42px, 5vw, 70px);
  line-height: 1;
}

.manager-heading > div > p:last-child {
  color: var(--muted);
  margin: 17px 0 0;
}

.manager-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.manager-actions .primary-admin-button {
  margin: 0;
  white-space: nowrap;
  width: auto;
}

.quiet-admin-button {
  background: transparent;
  border: 1px solid #d7cedb;
  border-radius: 10px;
  color: #5f5767;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  padding: 13px 17px;
}

.manager-card {
  background: white;
  border: 1px solid #e5dfe7;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(53, 22, 79, 0.05);
  margin: 0 auto;
  max-width: 1420px;
  overflow: hidden;
}

.manager-controls {
  align-items: center;
  border-bottom: 1px solid #ece6ee;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 18px 22px;
}

.manager-tabs {
  display: flex;
  gap: 4px;
}

.manager-tabs button {
  background: transparent;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  padding: 11px 13px;
}

.manager-tabs button.active {
  background: var(--lavender);
  color: var(--purple);
}

.manager-tabs span {
  background: #ece5f0;
  border-radius: 999px;
  font-size: 10px;
  margin-left: 5px;
  padding: 3px 6px;
}

.event-search {
  max-width: 290px;
  width: 100%;
}

.event-search input {
  font-size: 13px;
  padding: 11px 13px;
}

.managed-list {
  min-height: 132px;
}

.managed-event {
  align-items: center;
  display: grid;
  gap: 20px;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  padding: 18px 22px;
}

.managed-event + .managed-event {
  border-top: 1px solid #f0ebf2;
}

.managed-event > img {
  aspect-ratio: 1.25;
  border-radius: 10px;
  height: auto;
  object-fit: cover;
  width: 92px;
}

.managed-event-copy h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  margin: 5px 0 5px;
}

.managed-event-copy p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}

.managed-event-copy > small {
  color: var(--purple);
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-top: 5px;
}

.managed-status {
  color: #2d6d35;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.managed-status.expired { color: #806a2a; }
.managed-status.trashed { color: #8a3027; }

.managed-event-actions {
  display: flex;
  gap: 8px;
}

.managed-event-actions button {
  background: white;
  border: 1px solid #d9cfdf;
  border-radius: 9px;
  color: var(--purple);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  padding: 10px 12px;
}

.managed-event-actions button.danger {
  border-color: #edcfcc;
  color: #9a3e35;
}

.managed-empty {
  color: var(--muted);
  margin: 0;
  padding: 48px 22px;
  text-align: center;
}

.admin-header {
  align-items: center;
  background: white;
  border-bottom: 1px solid #e6dfe9;
  display: flex;
  height: 82px;
  justify-content: space-between;
  padding: 0 clamp(22px, 4vw, 64px);
}

.admin-header .brand img {
  height: 50px;
}

.admin-header-actions {
  align-items: center;
  display: flex;
  gap: 24px;
}

.admin-header-actions > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.admin-header-actions a {
  border: 1px solid #d9cfdf;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
  padding: 11px 16px;
}

.import-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  min-height: calc(100vh - 82px);
}

.import-panel {
  padding: clamp(42px, 6vw, 82px) clamp(24px, 5vw, 76px);
}

.admin-heading {
  max-width: 680px;
}

.admin-kicker {
  color: var(--purple);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.16em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.admin-heading h1 {
  font-size: clamp(42px, 4.7vw, 68px);
  line-height: 1;
}

.admin-heading > p:last-child {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  margin: 20px 0 0;
  max-width: 600px;
}

.url-form {
  background: white;
  border: 1px solid #e5dfe7;
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(53, 22, 79, 0.06);
  margin: 36px 0 28px;
  padding: 22px;
}

.url-form label,
.form-grid label,
.banner-picker legend {
  color: #4a4050;
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 9px;
}

.url-row {
  display: flex;
  gap: 10px;
}

.url-row input,
.form-grid input,
.form-grid select,
.form-grid textarea {
  background: #fbf9fc;
  border: 1px solid #dbd3df;
  border-radius: 10px;
  color: var(--ink);
  font: inherit;
  min-width: 0;
  outline: none;
  padding: 13px 14px;
  transition: border 160ms ease, box-shadow 160ms ease;
  width: 100%;
}

.url-row input:focus,
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(90, 47, 130, 0.12);
}

.url-row input {
  flex: 1;
}

.url-row button,
.save-event {
  background: var(--purple);
  border: 0;
  border-radius: 10px;
  color: white;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  padding: 13px 20px;
  white-space: nowrap;
}

.url-row button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.url-form small {
  color: var(--muted);
  display: block;
  font-size: 11px;
  margin-top: 10px;
}

.import-alert {
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
  margin: 16px 0;
  padding: 13px 15px;
}

.error-alert {
  background: #fff0ef;
  border: 1px solid #f0c5c1;
  color: #8a3027;
}

.success-alert {
  background: #edf8ee;
  border: 1px solid #b9ddbd;
  color: #2d6d35;
}

.event-editor {
  background: white;
  border: 1px solid #e5dfe7;
  border-radius: 18px;
  padding: 24px;
}

.editor-title-row {
  align-items: center;
  border-bottom: 1px solid #ece6ee;
  display: flex;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 18px;
}

.editor-title-row div span,
.editor-title-row div strong {
  display: block;
}

.editor-title-row div span {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 5px;
}

.editor-title-row div strong {
  color: var(--muted);
  font-size: 11px;
}

.found-badge {
  background: #edf8ee;
  border-radius: 999px;
  color: #2d6d35;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  padding: 8px 11px;
  text-transform: uppercase;
}

.form-grid {
  display: grid;
  gap: 17px;
  grid-template-columns: 1fr 1fr;
}

.form-grid label {
  margin: 0;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  display: block;
  margin-top: 8px;
}

.form-grid textarea {
  resize: vertical;
}

.field-wide {
  grid-column: 1 / -1;
}

.instructor-editor {
  border-top: 1px solid #ece6ee;
  margin-top: 26px;
  padding-top: 24px;
}

.instructor-editor-heading {
  align-items: flex-start;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.instructor-editor-heading span,
.selected-instructors > p {
  color: var(--purple);
  display: block;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.11em;
  margin: 0 0 5px;
  text-transform: uppercase;
}

.instructor-editor-heading h2 {
  font-size: 31px;
  margin: 0;
}

.instructor-editor-heading p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  margin: 7px 0 0;
}

.instructor-editor-heading button,
.new-instructor-form > button {
  background: var(--purple);
  border: 0;
  border-radius: 10px;
  color: white;
  cursor: pointer;
  flex: 0 0 auto;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  padding: 11px 13px;
}

.unmatched-instructors,
.instructor-required {
  background: #fff5d9;
  border: 1px solid #f1d99a;
  border-radius: 10px;
  color: #684d0a;
  font-size: 12px;
  line-height: 1.5;
  margin: 17px 0 0;
  padding: 12px 14px;
}

.new-instructor-form {
  align-items: end;
  background: #f7f3f9;
  border-radius: 14px;
  display: grid;
  gap: 14px;
  grid-template-columns: 86px minmax(150px, 1fr) minmax(170px, 1fr) auto;
  margin-top: 17px;
  padding: 16px;
}

.new-instructor-form label {
  margin: 0;
}

.new-instructor-form input {
  display: block;
  margin-top: 7px;
  width: 100%;
}

.new-instructor-form input[type="file"] {
  font-size: 10px;
  padding: 10px;
}

.new-instructor-form small {
  color: var(--muted);
  display: block;
  font-size: 9px;
  margin-top: 5px;
}

.new-instructor-message {
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.5;
  margin: 10px 0 0;
  padding: 11px 13px;
}

.new-instructor-message.error {
  background: #fff0f0;
  border: 1px solid #efc4c4;
  color: #8a2424;
}

.new-instructor-message.success {
  background: #edf8ee;
  border: 1px solid #bfdfc4;
  color: #256331;
}

.new-instructor-preview {
  align-items: center;
  aspect-ratio: 1;
  background: white;
  border: 1px dashed #c9bbd0;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.new-instructor-preview img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.new-instructor-preview span {
  color: var(--muted);
  font-size: 9px;
}

.selected-instructors {
  margin-top: 20px;
}

.selected-instructor {
  align-items: center;
  border-bottom: 1px solid #eee8f0;
  display: grid;
  gap: 12px;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  padding: 9px 0;
}

.selected-instructor > img {
  background: #eee7f1;
  border-radius: 50%;
  height: 48px;
  object-fit: cover;
  width: 48px;
}

.selected-instructor > strong {
  font-size: 13px;
}

.selected-instructor > div {
  display: flex;
  gap: 5px;
}

.selected-instructor button {
  background: white;
  border: 1px solid #d8cedd;
  border-radius: 7px;
  color: var(--purple);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  min-height: 31px;
  padding: 5px 9px;
}

.selected-instructor button:disabled {
  cursor: default;
  opacity: 0.35;
}

.selected-instructor button.remove-instructor {
  color: #9a3e35;
}

.instructor-library {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.instructor-library button {
  align-items: center;
  background: white;
  border: 1px solid #ddd3e1;
  border-radius: 11px;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 9px;
  grid-template-columns: 42px minmax(0, 1fr) 22px;
  padding: 7px;
  text-align: left;
}

.instructor-library button.selected {
  background: #f2e9f6;
  border-color: var(--purple);
}

.instructor-library img {
  background: #eee7f1;
  border-radius: 50%;
  height: 42px;
  object-fit: cover;
  width: 42px;
}

.instructor-library span {
  font-size: 12px;
  font-weight: 750;
}

.instructor-library b {
  align-items: center;
  background: #eee8f1;
  border-radius: 50%;
  display: flex;
  height: 22px;
  justify-content: center;
  width: 22px;
}

.banner-picker {
  border: 0;
  border-top: 1px solid #ece6ee;
  margin: 24px 0 0;
  padding: 22px 0 0;
}

.banner-picker legend {
  padding: 0 8px 0 0;
}

.banner-picker > div {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-height: 390px;
  overflow-y: auto;
  padding-right: 5px;
  scrollbar-color: #b7a9c0 transparent;
  scrollbar-width: thin;
}

.banner-picker button {
  background: white;
  border: 2px solid transparent;
  border-radius: 11px;
  cursor: pointer;
  overflow: hidden;
  padding: 3px;
  position: relative;
}

.banner-picker button.selected {
  border-color: var(--purple);
}

.banner-picker img {
  aspect-ratio: 1.4;
  border-radius: 7px;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.banner-picker button span {
  background: rgba(35, 18, 48, 0.82);
  bottom: 7px;
  color: white;
  font-size: 9px;
  font-weight: 750;
  left: 7px;
  padding: 5px 7px;
  position: absolute;
  right: 7px;
}

.preview-panel {
  background: var(--purple-dark);
  color: white;
  padding: clamp(42px, 6vw, 82px) clamp(26px, 4vw, 62px);
}

.preview-topline {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 32px;
}

.preview-topline span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
}

.preview-topline small {
  color: rgba(255, 255, 255, 0.54);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-event-card {
  background: white;
  border-radius: 19px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
  color: var(--ink);
  margin: 0 auto;
  max-width: 510px;
  overflow: hidden;
}

.admin-card-image {
  aspect-ratio: 1.55;
  position: relative;
}

.admin-card-image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.admin-card-image > span {
  background: var(--saffron);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
  left: 16px;
  letter-spacing: 0.05em;
  padding: 8px 10px;
  position: absolute;
  text-transform: uppercase;
  top: 16px;
}

.admin-card-image b {
  align-items: center;
  background: rgba(40, 18, 58, 0.78);
  border-radius: 50%;
  color: white;
  display: flex;
  height: 42px;
  justify-content: center;
  position: absolute;
  right: 16px;
  top: 16px;
  width: 42px;
}

.admin-card-content {
  padding: 25px 27px 28px;
}

.admin-card-content > p {
  color: var(--purple);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.14em;
  margin: 0 0 9px;
  text-transform: uppercase;
}

.admin-card-content h2 {
  font-size: clamp(32px, 3vw, 45px);
  line-height: 1.05;
}

.admin-card-meta {
  border-bottom: 1px solid #e9e3eb;
  border-top: 1px solid #e9e3eb;
  display: grid;
  grid-template-columns: 1fr;
  margin: 22px 0 17px;
  padding: 15px 0;
}

.admin-card-meta span {
  min-width: 0;
}

.admin-card-meta span + span {
  border-left: 1px solid #e9e3eb;
  padding-left: 18px;
}

.admin-card-meta small,
.admin-card-meta strong {
  display: block;
}

.admin-card-meta small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.12em;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.admin-card-meta strong {
  font-size: 12px;
  line-height: 1.5;
}

.admin-card-schedule {
  border-bottom: 1px solid #e9e3eb;
  margin-bottom: 17px;
  padding-bottom: 15px;
}

.admin-card-schedule > small {
  color: var(--muted);
  display: block;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.12em;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.admin-schedule-table > div {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(90px, 1fr) minmax(64px, 0.7fr) minmax(110px, 1fr);
  padding: 9px 0;
}

.admin-schedule-table > div + div {
  border-top: 1px solid #eee8f0;
}

.admin-schedule-table strong,
.admin-schedule-table span,
.admin-schedule-table time {
  font-size: 11px;
  line-height: 1.35;
}

.admin-schedule-table time {
  color: #6868e8;
  font-weight: 800;
  text-align: right;
}

.admin-card-content address {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.5;
  margin-bottom: 20px;
}

.admin-card-content > b {
  color: var(--purple);
  font-size: 13px;
}

.preview-actions {
  align-items: center;
  display: flex;
  gap: 20px;
  margin: 28px auto 0;
  max-width: 510px;
}

.save-event {
  background: var(--saffron);
  color: var(--ink);
}

.save-event:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.cancel-edit {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  color: white;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  padding: 12px 15px;
}

.preview-panel .success-alert a {
  font-weight: 850;
  text-decoration: underline;
}

.preview-actions a {
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 750;
}

.preview-panel .success-alert {
  margin-left: auto;
  margin-right: auto;
  max-width: 510px;
}

.empty-preview {
  align-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  min-height: 520px;
  justify-content: center;
  padding: 40px;
  text-align: center;
}

.empty-preview h2 {
  font-size: 36px;
  margin: 30px 0 14px;
}

.empty-preview p {
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.65;
  margin: 0;
  max-width: 340px;
}

.empty-symbol {
  height: 100px;
  position: relative;
  width: 100px;
}

.empty-symbol span {
  background: var(--saffron);
  border-radius: 90% 15% 90% 15%;
  height: 45px;
  left: 28px;
  position: absolute;
  top: 7px;
  transform-origin: 50% 95%;
  width: 45px;
}

.empty-symbol span:nth-child(2) { transform: rotate(120deg); }
.empty-symbol span:nth-child(3) { transform: rotate(240deg); }

@media (max-width: 980px) {
  nav > a:not(.nav-cta) {
    display: none;
  }

  .events-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-card:last-child {
    grid-column: 1 / -1;
    max-width: calc(50% - 13px);
  }

  footer {
    grid-template-columns: 1fr auto;
  }

  footer p {
    display: none;
  }

  .import-workspace {
    grid-template-columns: 1fr;
  }

  .preview-panel {
    min-height: auto;
  }

  .managed-event {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .managed-event > img {
    width: 78px;
  }

  .managed-event-actions {
    grid-column: 2;
  }
}

@media (max-width: 680px) {
  .site-header {
    height: 74px;
    padding: 0 18px;
  }

  .site-header nav > a:not(.nav-cta) { display: none; }

  .install-app { grid-template-columns: 44px minmax(0, 1fr) 30px; }
  .install-app > img { height: 44px; width: 44px; }
  .install-app-primary { grid-column: 2; justify-self: start; }
  .install-app-close { grid-column: 3; grid-row: 1; }

  .brand img {
    height: 44px;
  }

  .brand span {
    display: none;
  }

  .nav-cta {
    font-size: 12px;
    padding: 12px 15px;
  }

  .hero {
    min-height: 690px;
  }

  .hero-image {
    object-position: 63% center;
  }

  .hero-shade {
    background: linear-gradient(90deg, rgba(42, 16, 62, 0.94), rgba(50, 22, 69, 0.67));
  }

  .hero-content {
    padding: 110px 22px 90px;
  }

  h1 {
    font-size: clamp(52px, 17vw, 76px);
  }

  .hero-note {
    bottom: 24px;
    left: 22px;
    right: auto;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 22px;
  }

  .events-grid {
    grid-template-columns: 1fr;
  }

  .event-card:last-child {
    grid-column: auto;
    max-width: none;
  }

  .event-content h3 {
    min-height: 0;
  }

  .event-meta {
    grid-template-columns: 1fr;
  }

  .event-meta > div + div {
    border-left: 0;
    border-top: 1px solid #e9e3eb;
    padding-left: 0;
    padding-top: 13px;
  }

  .instructor-avatars img {
    height: 44px;
    width: 44px;
  }

  .instructor-avatars {
    max-width: 188px;
  }

  .demo-note {
    text-align: left;
  }

  .about-section {
    grid-template-columns: 1fr;
  }

  .about-symbol {
    max-width: 300px;
  }

  footer {
    align-items: start;
    grid-template-columns: 1fr;
  }

  footer > a {
    justify-self: start;
  }

  .footer-links {
    align-items: flex-start;
    flex-direction: column;
    justify-self: start;
  }

  .admin-header-actions > span {
    display: none;
  }

  .admin-header .brand span {
    display: none;
  }

  .admin-header-actions a {
    font-size: 11px;
  }

  .manager-heading,
  .manager-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .manager-actions,
  .manager-tabs {
    width: 100%;
  }

  .manager-actions .primary-admin-button,
  .quiet-admin-button {
    flex: 1;
  }

  .manager-tabs {
    overflow-x: auto;
  }

  .manager-tabs button {
    white-space: nowrap;
  }

  .event-search {
    max-width: none;
  }

  .managed-event {
    gap: 14px;
    grid-template-columns: 64px minmax(0, 1fr);
    padding: 16px;
  }

  .managed-event > img {
    width: 64px;
  }

  .managed-event-actions {
    flex-wrap: wrap;
    grid-column: 1 / -1;
  }

  .managed-event-actions button {
    flex: 1;
  }

  .url-row {
    flex-direction: column;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

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

  .instructor-editor-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .new-instructor-form {
    align-items: stretch;
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .new-instructor-form label:nth-of-type(2),
  .new-instructor-form > button {
    grid-column: 1 / -1;
  }

  .instructor-library {
    grid-template-columns: 1fr;
  }

  .selected-instructor {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .selected-instructor > div {
    grid-column: 1 / -1;
  }

  .banner-picker > div {
    grid-template-columns: 1fr;
    max-height: 470px;
  }

  .preview-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
