:root {
  color-scheme: light;
  --ink: #1c2430;
  --muted: #617083;
  --line: #d8dee8;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --accent: #0b6e69;
  --accent-strong: #074f4b;
  --rose: #b54757;
  --gold: #a36a17;
  --green-soft: #e6f3ee;
  --rose-soft: #f7e8eb;
  --gold-soft: #f7eddc;
  --shadow: 0 18px 40px rgba(22, 32, 44, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(11, 110, 105, 0.06), transparent 40%),
    linear-gradient(180deg, #fffdf8 0%, #f5f7fb 100%);
  color: var(--ink);
}

a {
  color: inherit;
}

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

button {
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(216, 222, 232, 0.8);
  background: rgba(255, 253, 248, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent-strong);
  text-decoration: none;
}

.topbar nav {
  display: flex;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}

.topbar nav a {
  text-decoration: none;
}

.appShell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: stretch;
  padding: 28px 0;
}

.heroText {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 34px 0;
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

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

h1 {
  margin-bottom: 0;
  max-width: 760px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  font-size: 26px;
  letter-spacing: 0;
}

h3 {
  font-size: 18px;
}

.lede {
  max-width: 650px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.panel,
.centerPanel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.panel {
  padding: 22px;
}

.centerPanel {
  max-width: 560px;
  margin: 64px auto;
  padding: 28px;
}

.heroPanel {
  align-self: center;
}

.landingHero {
  position: relative;
  min-height: min(680px, calc(100vh - 120px));
  display: grid;
  align-items: end;
  overflow: hidden;
  border-radius: 8px;
  background-image: linear-gradient(90deg, rgba(13, 24, 30, 0.78), rgba(13, 24, 30, 0.42) 46%, rgba(13, 24, 30, 0.04)), url("/landing-hero.png");
  background-size: cover;
  background-position: center;
}

.landingOverlay {
  width: min(760px, 100%);
  padding: clamp(28px, 6vw, 64px);
  color: #fff;
}

.landingOverlay .eyebrow,
.landingOverlay .lede {
  color: rgba(255, 255, 255, 0.86);
}

.landingOverlay h1 {
  max-width: 760px;
}

.landingActions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.landingActions a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.landingBand {
  display: grid;
  gap: 22px;
  padding: 54px 0 10px;
}

.landingSplit {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  align-items: start;
  border-top: 1px solid var(--line);
}

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

.featureItem {
  display: grid;
  gap: 8px;
  min-height: 128px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.featureItem strong {
  font-size: 20px;
  color: var(--accent-strong);
}

.featureItem span {
  color: var(--muted);
  line-height: 1.45;
}

.langRow,
.buttonRow,
.filters,
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.langRow button,
.tabButton {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  min-height: 38px;
  padding: 0 14px;
}

.langRow button[aria-pressed="true"],
.tabButton.active {
  border-color: var(--accent);
  background: var(--green-soft);
  color: var(--accent-strong);
}

.formStack {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  min-height: 44px;
  padding: 10px 12px;
}

textarea {
  min-height: 104px;
  resize: vertical;
}

.primaryButton,
.secondaryButton,
.dangerButton,
.iconButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0 15px;
  font-weight: 800;
  text-decoration: none;
}

.primaryButton {
  background: var(--accent);
  color: #fff;
}

.primaryButton:hover {
  background: var(--accent-strong);
}

.jumboButton {
  width: 100%;
  min-height: 64px;
  font-size: 18px;
}

.secondaryButton,
.iconButton {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.dangerButton {
  border-color: #e0b5bd;
  background: var(--rose-soft);
  color: var(--rose);
}

.notice {
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--gold-soft);
  color: #6f4611;
  font-size: 14px;
}

.helperText,
.privacyCopy {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.privacyCopy {
  margin: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf9;
}

.checkLabel {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.checkLabel input {
  width: 20px;
  min-height: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.success {
  background: var(--green-soft);
  color: var(--accent-strong);
}

.error {
  background: var(--rose-soft);
  color: var(--rose);
}

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

.mediaCard {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.selectableCard:has(input[name="mediaId"]:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(11, 110, 105, 0.22), var(--shadow);
}

.mediaThumb {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #edf2f4;
  color: var(--muted);
  font-weight: 800;
}

.mediaThumb img,
.mediaThumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.selectOverlay {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  max-width: calc(100% - 20px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(28, 36, 48, 0.74);
  color: #fff;
  padding: 6px 11px 6px 7px;
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
}

.selectOverlay input {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.16);
  appearance: none;
  margin: 0;
  display: grid;
  place-items: center;
}

.selectOverlay input:checked {
  border-color: #fff;
  background: var(--accent);
}

.selectOverlay input:checked::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}

.selectOverlay:focus-within {
  outline: 3px solid rgba(11, 110, 105, 0.34);
  outline-offset: 2px;
}

.typeBadge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
}

.mediaBody {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.muted {
  color: var(--muted);
}

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

.stat {
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 16px;
}

.stat strong {
  display: block;
  font-size: 28px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 20px;
}

.adminLayout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
}

.eventList {
  display: grid;
  gap: 16px;
}

.eventCard {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 20px;
}

.eventCardHeader {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.eventCard h2 {
  margin-bottom: 0;
}

.eventDate {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8faf9;
  color: var(--muted);
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 800;
}

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

.eventMetrics div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
  padding: 12px;
}

.eventMetrics strong,
.eventMetrics span {
  display: block;
}

.eventMetrics strong {
  font-size: 24px;
}

.eventMetrics span {
  color: var(--muted);
  font-size: 13px;
}

.qrBox {
  display: grid;
  place-items: center;
  min-height: 220px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
}

.toolBlock {
  display: grid;
  gap: 14px;
  margin: 18px 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.codeList {
  display: grid;
  gap: 8px;
}

.codeItem {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.codeItem code {
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f3f7f6;
  color: var(--accent-strong);
  padding: 4px 7px;
  font-size: 14px;
  font-weight: 800;
}

.codeItem em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.codeItem span {
  color: var(--muted);
  font-size: 13px;
}

.comment {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

.hidden {
  display: none !important;
}

@media (max-width: 820px) {
  .topbar {
    padding: 0 16px;
  }

  .topbar nav {
    display: none;
  }

  .hero,
  .split,
  .landingSplit,
  .adminLayout {
    grid-template-columns: 1fr;
  }

  .heroText {
    min-height: 0;
    padding: 20px 0 0;
  }

  h1 {
    font-size: 46px;
  }

  .grid,
  .stats,
  .featureGrid,
  .eventMetrics {
    grid-template-columns: 1fr;
  }

  .eventCardHeader {
    display: grid;
  }

  .landingHero {
    min-height: 620px;
    background-image: linear-gradient(180deg, rgba(13, 24, 30, 0.78), rgba(13, 24, 30, 0.44)), url("/landing-hero.png");
    background-position: 62% center;
  }
}
