:root {
  --mint-1: #b5ded7;
  --mint-2: #dff0ed;
  --mint-3: #eef8f6;
  --blue-1: #2f646b;
  --blue-2: #275157;
  --green: #2f966f;
  --ink: #1d1d1d;
  --ink-blue: #082636;
  --paper: #f8f7f5;
  --white: #ffffff;
  --orange: #fa663e;
  --coral: #fa663e;
  --line: rgba(47, 100, 107, 0.22);
  --shadow: 0 18px 50px rgba(8, 38, 54, 0.08);
  --radius: 8px;
  color: var(--ink-blue);
  font-family: "Open Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  overflow-x: hidden;
  min-height: 100%;
  margin: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)),
    var(--paper);
}

button,
input,
textarea {
  font: inherit;
}

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

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

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

[hidden] {
  display: none !important;
}

.app-shell {
  min-height: 100vh;
  padding: clamp(18px, 2.2vw, 40px);
}

.app-shell main {
  width: min(100%, 1760px);
  margin: 0 auto;
}

.brand-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(clamp(130px, 15vw, 230px), 0.46fr) minmax(0, 2fr) minmax(clamp(130px, 15vw, 230px), 0.46fr);
  gap: clamp(18px, 2.1vw, 34px);
  align-items: center;
  width: min(100%, 1760px);
  min-height: 152px;
  margin: 0 auto clamp(16px, 1.7vw, 28px);
  padding: 20px 24px 22px;
  overflow: hidden;
  border: 1px solid rgba(8, 38, 54, 0.08);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 30px rgba(8, 38, 54, 0.04);
}

.brand-hero::after {
  content: none;
}

.brand-logo,
.event-lockup,
.partner-logo {
  position: relative;
  z-index: 1;
}

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-width: 0;
  padding-right: clamp(18px, 2.1vw, 34px);
  border-right: 1px solid rgba(8, 38, 54, 0.13);
}

.brand-logo img {
  width: clamp(92px, 8.4vw, 132px);
  max-height: 96px;
  object-fit: contain;
}

.event-lockup {
  display: grid;
  gap: 8px;
  justify-items: center;
  min-width: 0;
  text-align: center;
}

.event-lockup p {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  margin: 0;
  padding: 0 28px;
  color: var(--orange);
  font-family: "Anybody", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.08rem, 1.12vw, 1.32rem);
  font-weight: 900;
  white-space: nowrap;
}

.event-lockup p::before,
.event-lockup p::after {
  content: "";
  position: absolute;
  top: 50%;
  width: min(18vw, 300px);
  border-top: 2px solid var(--orange);
  transform: translateY(-50%);
}

.event-lockup p::before {
  right: 100%;
}

.event-lockup p::after {
  left: 100%;
}

.event-lockup h1 {
  max-width: 100%;
  margin: 0;
  color: var(--ink-blue);
  font-family: "Anybody", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(2.1rem, 3.02vw, 4.05rem);
  line-height: 0.98;
  text-wrap: balance;
  white-space: normal;
  overflow-wrap: normal;
}

.partner-logo {
  display: grid;
  gap: 4px;
  justify-items: center;
  justify-self: end;
  height: 100%;
  min-width: clamp(118px, 13vw, 168px);
  padding: 0 0 0 clamp(18px, 2.1vw, 34px);
  border-left: 1px solid rgba(8, 38, 54, 0.13);
  background: transparent;
}

.partner-logo span,
.admin-partner span {
  color: #5c737b;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.partner-logo img {
  width: clamp(90px, 8.4vw, 132px);
  max-height: 90px;
  object-fit: contain;
}

.dashboard-menu-wrap {
  position: fixed;
  left: clamp(14px, 1.6vw, 28px);
  bottom: clamp(14px, 1.6vw, 28px);
  z-index: 45;
  width: auto;
  margin: 0;
}

.dashboard-menu {
  position: relative;
}

.menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid rgba(8, 38, 54, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: var(--blue-2);
  cursor: pointer;
  font-weight: 900;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(8, 38, 54, 0.12);
}

.menu-button:hover,
.menu-button:focus-visible {
  border-color: rgba(47, 100, 107, 0.28);
  outline: none;
}

.menu-icon {
  display: grid;
  gap: 3px;
  width: 15px;
}

.menu-icon span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.menu-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.menu-panel {
  position: absolute;
  top: auto;
  bottom: calc(100% + 10px);
  left: 0;
  display: grid;
  gap: 8px;
  width: min(320px, calc(100vw - 28px));
  padding: 10px;
  border: 1px solid rgba(8, 38, 54, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 50px rgba(8, 38, 54, 0.14);
}

.menu-link,
.menu-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--ink-blue);
}

.menu-link:hover,
.menu-toggle:hover {
  border-color: var(--line);
  background: var(--mint-3);
}

.menu-link::before {
  content: "";
  flex: 0 0 auto;
  width: 34px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    linear-gradient(var(--blue-2), var(--blue-2)) center 18px / 14px 9px no-repeat,
    radial-gradient(circle at 50% 39%, transparent 6px, var(--blue-2) 7px, var(--blue-2) 9px, transparent 10px),
    var(--mint-2);
}

.privacy-menu-link::before {
  border-radius: var(--radius);
  background:
    linear-gradient(var(--blue-2), var(--blue-2)) 50% 11px / 16px 2px no-repeat,
    linear-gradient(var(--blue-2), var(--blue-2)) 50% 17px / 16px 2px no-repeat,
    linear-gradient(var(--blue-2), var(--blue-2)) 50% 23px / 10px 2px no-repeat,
    var(--mint-2);
}

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

.menu-link strong,
.menu-toggle strong {
  font-size: 0.94rem;
  font-weight: 900;
}

.menu-link small,
.menu-toggle small {
  margin-top: 2px;
  color: #5c737b;
  font-size: 0.8rem;
  font-weight: 800;
}

.menu-toggle {
  cursor: pointer;
}

.menu-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-visual {
  position: relative;
  flex: 0 0 auto;
  width: 48px;
  height: 28px;
  border: 1px solid rgba(47, 100, 107, 0.24);
  border-radius: 999px;
  background: #ecf4f2;
  box-shadow: inset 0 1px 3px rgba(8, 38, 54, 0.08);
  transition: background 160ms ease, border-color 160ms ease;
}

.toggle-visual span {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 18px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 4px 10px rgba(8, 38, 54, 0.18);
  transition: transform 160ms ease;
}

.menu-toggle input:checked + .toggle-visual {
  border-color: var(--blue-1);
  background: var(--blue-1);
}

.menu-toggle input:checked + .toggle-visual span {
  transform: translateX(20px);
}

.menu-toggle input:focus-visible + .toggle-visual {
  box-shadow: 0 0 0 4px rgba(181, 222, 215, 0.55);
}

.tv-menu-wrap {
  top: auto;
  right: auto;
  bottom: 10px;
  left: 10px;
  z-index: 60;
}

.tv-menu-wrap .menu-button {
  width: 38px;
  min-height: 38px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 24px rgba(8, 38, 54, 0.1);
}

.tv-menu-wrap .menu-button:hover,
.tv-menu-wrap .menu-button:focus-visible,
.tv-menu-wrap .menu-button[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.96);
}

.tv-menu-wrap .menu-panel {
  top: auto;
  right: auto;
  bottom: calc(100% + 10px);
  left: 0;
}

.metrics-panel {
  display: grid;
  grid-template-columns: minmax(300px, 1.03fr) minmax(340px, 1.18fr) minmax(260px, 0.78fr);
  gap: clamp(22px, 2.7vw, 52px);
  align-items: center;
  min-height: clamp(128px, 12vw, 184px);
  margin-bottom: clamp(18px, 2vw, 28px);
  padding: clamp(22px, 2.3vw, 34px) clamp(28px, 3.2vw, 54px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0)),
    rgba(238, 248, 246, 0.85);
  box-shadow: var(--shadow);
}

.metric-main,
.metric-participants {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 30px);
  min-width: 0;
}

.metric-main > div:last-child,
.metric-participants > div:last-child {
  display: grid;
  align-content: center;
  min-width: 0;
}

.metric-main {
  padding-right: clamp(18px, 3vw, 60px);
  border-right: 1px solid var(--line);
}

.metric-participants {
  justify-self: end;
  width: 100%;
  padding-left: clamp(18px, 3vw, 60px);
  border-left: 1px solid var(--line);
}

.metric-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: clamp(72px, 5.8vw, 104px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 25%, rgba(255, 255, 255, 0.5), transparent 46%),
    rgba(181, 222, 215, 0.62);
  color: var(--blue-2);
}

.metric-icon svg {
  width: 55%;
  height: 55%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.distance-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-2);
  font-family: "Anybody", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.05rem, 1.52vw, 1.55rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.metric-main strong,
.metric-participants strong {
  display: block;
  color: var(--ink-blue);
  font-family: "Anybody", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(4.35rem, 5vw, 6.05rem);
  font-variant-numeric: tabular-nums;
  line-height: 0.86;
  white-space: nowrap;
}

.animated-counter {
  transition: color 220ms ease, transform 220ms ease, text-shadow 220ms ease;
}

.animated-counter.is-counting {
  color: var(--blue-2);
  text-shadow: 0 8px 22px rgba(47, 100, 107, 0.16);
  transform: translateY(-1px);
}

.metric-main span,
.metric-participants span {
  display: block;
  margin-top: 12px;
  font-size: clamp(1.2rem, 1.45vw, 1.55rem);
  font-weight: 600;
  line-height: 1.1;
}

.metric-warning {
  display: inline-flex;
  width: fit-content;
  min-height: 26px;
  align-items: center;
  margin-top: 10px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(250, 102, 62, 0.12);
  color: #99351e;
  font-size: 0.8rem;
  font-weight: 900;
}

.metric-breakdown {
  align-self: center;
  min-width: 0;
}

.breakdown-title {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
  color: var(--blue-2);
  font-weight: 700;
  text-align: center;
}

.breakdown-title::before,
.breakdown-title::after {
  content: "";
  border-top: 1px solid var(--line);
}

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

.mini-metric {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 2px 16px;
  align-items: center;
  min-height: 92px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.58);
}

.mini-icon {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 46px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(181, 222, 215, 0.72);
}

.mini-icon svg {
  width: 56%;
  height: 56%;
  fill: none;
  stroke: var(--blue-2);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.mini-metric span:not(.mini-icon) {
  font-weight: 700;
}

.mini-metric strong {
  color: var(--ink-blue);
  font-family: "Anybody", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.65rem, 1.85vw, 2.08rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.share-panel {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 72px;
  margin-bottom: 24px;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(238, 248, 246, 0.72);
}

.share-panel p {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
}

.privacy-page {
  display: grid;
  gap: clamp(18px, 2vw, 28px);
  width: min(100%, 1180px);
  min-width: 0;
  margin: 0 auto 44px;
}

.privacy-header {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding-bottom: clamp(16px, 2vw, 24px);
  border-bottom: 1px solid var(--line);
}

.privacy-header p,
.privacy-header span {
  margin: 0;
  color: var(--orange);
  font-family: "Anybody", "Helvetica Neue", Arial, sans-serif;
  font-weight: 900;
}

.privacy-header h1 {
  max-width: 100%;
  margin: 0;
  color: var(--ink-blue);
  font-family: "Anybody", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 0.95;
  overflow-wrap: anywhere;
}

.privacy-header span {
  color: var(--blue-2);
  font-size: 1.05rem;
}

.privacy-content {
  display: grid;
  gap: 18px;
  min-width: 0;
  color: #14384a;
  font-size: 1.02rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.privacy-lead {
  margin: 0;
  padding: clamp(18px, 2.4vw, 28px);
  border-left: 4px solid var(--orange);
  background: rgba(238, 248, 246, 0.76);
  color: var(--ink-blue);
  font-size: 1.12rem;
  font-weight: 700;
}

.privacy-section {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(47, 100, 107, 0.14);
}

.privacy-section h2,
.privacy-section h3,
.privacy-content > h3 {
  margin: 0;
  color: var(--ink-blue);
  font-family: "Anybody", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.08;
}

.privacy-section p,
.privacy-updated {
  margin: 0;
}

.privacy-content a,
.text-link {
  color: var(--blue-2);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: rgba(47, 100, 107, 0.34);
  text-underline-offset: 3px;
}

.privacy-updated {
  color: #5d7780;
  font-weight: 800;
}

.primary-button,
.ghost-button,
.danger-button,
.tab-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
}

.primary-button {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 10px 22px rgba(250, 102, 62, 0.22);
}

.ghost-button,
.tab-button {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--blue-2);
}

.danger-button {
  background: #fde9e3;
  color: #99351e;
}

.ghost-button:disabled,
.danger-button:disabled,
.primary-button:disabled {
  cursor: default;
  opacity: 0.58;
  box-shadow: none;
}

.community-section {
  margin-bottom: 42px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}

.section-heading h2 {
  margin: 0;
  font-family: "Anybody", "Helvetica Neue", Arial, sans-serif;
  font-size: 2.25rem;
  line-height: 1;
}

.approved-badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--radius);
  background: var(--mint-2);
  color: var(--blue-2);
  font-weight: 700;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: clamp(14px, 1.4vw, 22px);
  align-items: start;
}

.post-card,
.qr-card,
.compose-card,
.login-card,
.admin-detail,
.admin-list {
  border: 1px solid rgba(8, 38, 54, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 30px rgba(8, 38, 54, 0.07);
}

.post-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
}

.post-card-clickable {
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.post-card-clickable:hover,
.post-card-clickable:focus-visible {
  border-color: rgba(47, 100, 107, 0.3);
  box-shadow: 0 16px 34px rgba(8, 38, 54, 0.12);
  outline: none;
  transform: translateY(-2px);
}

.post-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.post-image.announcement-image {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #f8fbfa;
}

.post-body {
  padding: 16px 18px 20px;
}

.post-card h3 {
  margin: 0 0 8px;
  color: var(--ink-blue);
  font-family: "Anybody", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.18rem;
  line-height: 1.12;
}

.post-time {
  display: block;
  margin: -2px 0 10px;
  color: #5f767e;
  font-size: 0.82rem;
  font-weight: 800;
}

.post-km-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  margin: 0 0 10px;
  padding: 0 10px;
  border: 1px solid rgba(47, 100, 107, 0.14);
  border-radius: var(--radius);
  background: var(--mint-3);
  color: var(--blue-2);
  font-size: 0.86rem;
  font-weight: 900;
}

.post-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  margin: 0;
  color: #14384a;
  line-height: 1.45;
}

.post-card:not(.text-only) p {
  -webkit-line-clamp: 3;
}

.post-card.text-only p {
  -webkit-line-clamp: 8;
}

.post-card.text-only {
  min-height: 230px;
}

.quote-mark {
  margin-bottom: 12px;
  color: #71b9b0;
  font-family: Georgia, serif;
  font-size: 4rem;
  line-height: 0.65;
}

.source-tag {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(47, 100, 107, 0.12);
  border-radius: var(--radius);
  color: var(--blue-2);
  font-size: 0.9rem;
  font-weight: 800;
}

.post-card.text-only .source-tag {
  left: auto;
  right: 14px;
}

.tag-onsite {
  background: #d9efeb;
}

.tag-online {
  background: #dcecfb;
}

.post-modal-backdrop {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 42px);
  background: rgba(8, 38, 54, 0.42);
  backdrop-filter: blur(8px);
}

.post-modal {
  position: relative;
  display: grid;
  grid-template-columns: minmax(340px, 1.08fr) minmax(320px, 0.92fr);
  width: min(1120px, 100%);
  max-height: min(780px, 92vh);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 30px 80px rgba(8, 38, 54, 0.28);
}

.modal-close {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-blue);
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(8, 38, 54, 0.12);
}

.modal-media {
  min-height: 420px;
  background: var(--mint-3);
}

.modal-image {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: contain;
  background: #f8fbfa;
}

.modal-text-art {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 420px;
  color: #71b9b0;
  font-family: Georgia, serif;
  font-size: 9rem;
}

.modal-content {
  display: grid;
  align-content: center;
  gap: 18px;
  min-width: 0;
  padding: clamp(28px, 4vw, 54px);
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.modal-tags .source-tag,
.modal-tags .post-km-pill,
.modal-tags .post-time {
  position: static;
  margin: 0;
}

.modal-tags .post-time {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(47, 100, 107, 0.12);
  border-radius: var(--radius);
  background: rgba(238, 248, 246, 0.72);
  color: var(--blue-2);
}

.modal-content h2 {
  margin: 0;
  color: var(--ink-blue);
  font-family: "Anybody", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  line-height: 1;
}

.modal-content p {
  margin: 0;
  color: #14384a;
  font-size: clamp(1.08rem, 1.5vw, 1.35rem);
  line-height: 1.45;
}

.confirm-modal {
  position: relative;
  display: grid;
  gap: 16px;
  width: min(460px, 100%);
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 30px 80px rgba(8, 38, 54, 0.28);
}

.confirm-modal p,
.confirm-modal span {
  margin: 0;
  color: var(--blue-2);
}

.confirm-modal p {
  color: var(--orange);
  font-size: 0.85rem;
  font-weight: 900;
  text-transform: uppercase;
}

.confirm-modal h2 {
  margin: 0;
  color: var(--ink-blue);
  font-family: "Anybody", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1;
}

.confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 8px;
}

.modal-open {
  overflow: hidden;
}

.compose-modal {
  position: relative;
  width: min(1040px, 100%);
  max-height: min(820px, 92vh);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 30px 80px rgba(8, 38, 54, 0.28);
}

.compose-modal-header {
  display: grid;
  gap: 8px;
  padding: clamp(22px, 2.4vw, 34px) clamp(22px, 2.6vw, 36px) 0;
}

.compose-modal-header p,
.admin-topbar span {
  margin: 0;
  color: var(--orange);
  font-family: "Anybody", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.02rem;
  font-weight: 900;
}

.compose-modal-header h2 {
  margin: 0;
  color: var(--ink-blue);
  font-family: "Anybody", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(2rem, 3.1vw, 3.25rem);
  line-height: 0.95;
}

.compose-modal-header span {
  max-width: 720px;
  color: #244b55;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}

.compose-modal .compose-card {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.qr-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  align-items: center;
  min-height: 170px;
  padding: 18px;
  background: var(--mint-3);
}

.donation-qr-card {
  grid-template-columns: 1fr;
  justify-items: center;
  align-content: center;
  gap: 14px;
  min-height: 320px;
  padding: 22px;
  border-color: rgba(255, 95, 61, 0.28);
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.32) 46%, transparent 64%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(238, 248, 246, 0.98)),
    var(--mint-3);
  text-align: center;
}

.qr-code {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  padding: 4px;
  border-radius: 4px;
  background: var(--white);
}

.qr-code canvas,
.qr-code img {
  width: 100% !important;
  height: 100% !important;
  image-rendering: pixelated;
}

.donation-qr-code {
  width: clamp(132px, 10vw, 158px);
  height: clamp(132px, 10vw, 158px);
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(8, 38, 54, 0.12);
}

.qr-card strong,
.qr-card span {
  display: block;
}

.qr-card strong {
  font-family: "Anybody", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.1rem;
}

.qr-card span {
  margin-top: 8px;
}

.qr-copy {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.qr-pill {
  display: inline-flex !important;
  align-items: center;
  min-height: 30px;
  margin-top: 0 !important;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 900;
}

.donation-qr-card strong {
  max-width: 12ch;
  color: var(--ink-blue);
  font-size: clamp(1.18rem, 1.45vw, 1.55rem);
  line-height: 1.04;
}

.donation-qr-card p {
  order: 3;
  max-width: 20ch;
  margin: 0;
  color: #365e67;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.25;
}

.qr-heart {
  grid-column: 2;
  color: var(--orange);
  font-size: 2rem;
}

.tv-shell {
  display: grid;
  grid-template-rows: clamp(102px, 11vh, 128px) minmax(0, 1fr);
  gap: clamp(8px, 1vh, 12px);
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  padding: clamp(10px, 1.1vw, 22px);
}

.tv-shell .brand-hero,
.tv-shell main {
  width: 100%;
  max-width: none;
}

.tv-shell .brand-hero {
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: clamp(10px, 1.1vw, 18px);
}

.tv-shell .brand-logo img {
  width: clamp(86px, 5.8vw, 112px);
  max-height: min(82px, 100%);
}

.tv-shell .event-lockup p {
  min-height: 24px;
  font-size: clamp(0.9rem, 1.08vw, 1.16rem);
}

.tv-shell .event-lockup h1 {
  font-size: clamp(1.72rem, 2.35vw, 2.9rem);
  line-height: 1;
  white-space: normal;
  text-wrap: balance;
}

.tv-shell .partner-logo {
  min-width: clamp(124px, 8.6vw, 164px);
  padding-left: clamp(18px, 1.6vw, 30px);
}

.tv-shell .partner-logo img {
  width: clamp(88px, 5.8vw, 112px);
  max-height: min(78px, 100%);
}

.tv-shell main {
  display: grid;
  grid-template-rows: clamp(104px, 13vh, 142px) minmax(0, 1fr);
  gap: clamp(8px, 1vh, 12px);
  height: 100%;
  min-height: 0;
}

.tv-shell #postModalRoot {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
}

.tv-shell #postModalRoot > * {
  pointer-events: auto;
}

.tv-shell .metrics-panel {
  min-height: 0;
  height: 100%;
  margin: 0;
  padding: clamp(12px, 1.35vw, 22px) clamp(18px, 2vw, 34px);
}

.tv-shell .metric-icon {
  width: clamp(48px, 4vw, 68px);
}

.tv-shell .metric-main strong,
.tv-shell .metric-participants strong {
  font-size: clamp(2.75rem, 3.45vw, 3.85rem);
}

.tv-shell .metric-main span,
.tv-shell .metric-participants span {
  margin-top: 4px;
  font-size: clamp(0.92rem, 1.05vw, 1.14rem);
}

.tv-shell .mini-metric {
  min-height: 0;
  padding: clamp(8px, 0.9vw, 14px);
}

.tv-shell .mini-icon {
  width: clamp(34px, 2.3vw, 42px);
}

.tv-shell .mini-metric strong {
  font-size: clamp(1.2rem, 1.45vw, 1.7rem);
}

.tv-shell .community-section {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  margin-bottom: 0;
  min-height: 0;
}

.tv-shell .section-heading {
  margin-bottom: clamp(6px, 0.7vh, 10px);
}

.tv-shell .section-heading h2 {
  font-size: clamp(1.25rem, 1.45vw, 1.72rem);
}

.tv-shell .post-grid {
  grid-template-columns: repeat(var(--tv-cols, 5), minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  align-items: stretch;
  height: 100%;
  min-height: 0;
  gap: clamp(12px, 1.05vw, 18px);
}

.tv-shell .post-grid.tv-feature-grid {
  grid-template-columns: minmax(320px, 0.82fr) minmax(360px, 1.18fr);
  align-items: stretch;
}

.tv-shell .post-card {
  display: grid;
  grid-template-rows: minmax(0, 58%) minmax(104px, 42%);
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.tv-shell .tv-feature-grid .post-card {
  grid-template-rows: minmax(0, 1fr) auto;
  align-self: stretch;
  height: 100%;
  max-height: 100%;
}

.tv-shell .post-image {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

.tv-shell .post-image.announcement-image {
  aspect-ratio: 4 / 3;
}

.tv-shell .tv-feature-grid .post-image.announcement-image {
  width: 100%;
  height: 100%;
  max-height: none;
  margin: 0 auto;
  padding: clamp(10px, 1.2vw, 18px);
  aspect-ratio: auto;
}

.tv-shell .post-body {
  min-height: 0;
  overflow: hidden;
  padding: clamp(12px, 0.95vw, 16px);
}

.tv-shell .tv-feature-grid .post-body {
  display: grid;
  align-content: start;
  padding: clamp(16px, 1.35vw, 24px);
}

.tv-shell .post-card h3 {
  margin-bottom: 4px;
  font-size: clamp(1.02rem, 1.08vw, 1.28rem);
  line-height: 1.03;
}

.tv-shell .tv-feature-grid .post-card h3 {
  font-size: clamp(1.25rem, 1.55vw, 1.7rem);
}

.tv-shell .post-time {
  margin-bottom: 5px;
  font-size: clamp(0.72rem, 0.78vw, 0.86rem);
}

.tv-shell .post-km-pill {
  min-height: 22px;
  margin-bottom: 6px;
  padding: 0 8px;
  font-size: clamp(0.7rem, 0.76vw, 0.82rem);
}

.tv-shell .post-card p {
  -webkit-line-clamp: 2;
  line-height: 1.35;
  font-size: clamp(0.9rem, 0.95vw, 1.08rem);
}

.tv-shell .post-card.text-only p {
  -webkit-line-clamp: 5;
}

.tv-shell .tv-feature-grid .post-card p {
  -webkit-line-clamp: 4;
  font-size: clamp(1rem, 1.25vw, 1.25rem);
}

.tv-shell .tv-feature-grid .post-card.text-only p {
  -webkit-line-clamp: 8;
}

.tv-shell .post-card.text-only .post-body {
  display: grid;
  align-content: start;
  padding-top: clamp(14px, 1.1vw, 20px);
}

.tv-shell .quote-mark {
  margin-bottom: 8px;
  font-size: 3rem;
}

.tv-shell .source-tag {
  top: 10px;
  left: 10px;
}

.tv-shell .post-card.text-only .source-tag {
  right: 10px;
}

.tv-shell .qr-card {
  grid-template-columns: clamp(96px, 7vw, 122px) minmax(140px, 1fr);
  height: 100%;
  min-height: 0;
  gap: clamp(14px, 1.2vw, 22px);
  align-content: center;
  padding: clamp(18px, 1.8vw, 30px);
  border-color: rgba(47, 100, 107, 0.3);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(238, 248, 246, 0.94)),
    var(--mint-3);
}

.tv-shell .tv-feature-grid .qr-card {
  grid-template-columns: clamp(116px, 10vw, 164px) minmax(180px, 360px) auto;
  align-content: center;
  justify-content: center;
  gap: clamp(18px, 2vw, 32px);
  padding: clamp(24px, 3vw, 44px);
}

.tv-shell .qr-span-2 {
  grid-column: span 2;
}

.tv-shell .qr-span-3 {
  grid-column: span 3;
}

.tv-shell .qr-span-4 {
  grid-column: span 4;
}

.tv-shell .qr-span-5 {
  grid-column: span 5;
}

.tv-shell .qr-code {
  width: clamp(92px, 6.5vw, 116px);
  height: clamp(92px, 6.5vw, 116px);
}

.tv-shell .qr-card strong {
  font-size: clamp(1.2rem, 1.3vw, 1.55rem);
}

.tv-shell .qr-card span {
  font-size: clamp(0.95rem, 1vw, 1.1rem);
}

.tv-shell .tv-feature-grid .qr-code {
  width: clamp(112px, 10vw, 156px);
  height: clamp(112px, 10vw, 156px);
}

.tv-shell .tv-feature-grid .qr-card strong {
  font-size: clamp(1.25rem, 1.55vw, 1.75rem);
}

.tv-shell .tv-feature-grid .qr-card span {
  font-size: clamp(1rem, 1.2vw, 1.25rem);
}

.tv-shell .qr-heart {
  grid-column: 2;
  align-self: end;
  justify-self: start;
  padding-top: clamp(8px, 1vw, 16px);
  padding-right: 0;
}

.tv-shell {
  grid-template-rows: clamp(116px, 13vh, 154px) minmax(0, 1fr);
  gap: 0;
  padding: clamp(8px, 0.9vw, 16px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 247, 245, 0.96)),
    var(--paper);
}

.tv-shell .brand-hero {
  border-bottom: 0;
  box-shadow: 0 10px 30px rgba(8, 38, 54, 0.04);
}

.tv-shell main {
  grid-template-rows: clamp(128px, 18vh, 188px) minmax(0, 1fr);
  gap: 0;
  padding: 0 clamp(6px, 0.5vw, 10px) clamp(6px, 0.5vw, 10px);
  border: 1px solid rgba(8, 38, 54, 0.08);
  border-top: 0;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 60px rgba(8, 38, 54, 0.05);
}

.tv-shell #metricsMount {
  min-height: 0;
}

.tv-shell .metrics-panel {
  grid-template-columns: minmax(300px, 0.9fr) minmax(520px, 1.34fr) minmax(250px, 0.72fr);
  gap: clamp(18px, 2vw, 42px);
  border-width: 0 0 1px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: none;
}

.tv-shell .metric-main,
.tv-shell .metric-participants {
  gap: clamp(16px, 1.45vw, 28px);
}

.tv-shell .metric-main {
  justify-content: start;
  padding-right: clamp(16px, 2vw, 42px);
}

.tv-shell .metric-breakdown {
  align-self: center;
}

.tv-shell .breakdown-title {
  top: -7px;
  background: rgba(255, 255, 255, 0.8);
}

.tv-shell .breakdown-grid {
  grid-template-columns: repeat(2, minmax(210px, 1fr));
}

.tv-shell .mini-metric {
  grid-template-columns: auto minmax(0, 1fr);
  min-height: clamp(72px, 8vh, 96px);
  background: rgba(255, 255, 255, 0.76);
}

.tv-shell .mini-metric span:not(.mini-icon) {
  align-self: end;
}

.tv-shell .mini-metric strong {
  align-self: start;
}

.tv-shell .tv-community-section {
  padding-top: clamp(10px, 1vh, 16px);
  height: 100%;
  overflow: hidden;
}

.tv-shell .section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: clamp(34px, 4vh, 44px);
  margin: 0;
  padding: 0 0 clamp(8px, 0.8vh, 12px);
}

.tv-shell .section-heading h2 {
  font-size: clamp(1.2rem, 1.55vw, 1.85rem);
}

.tv-scroll-cues {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.tv-community-section.is-scrollable .tv-scroll-cues {
  opacity: 1;
  pointer-events: auto;
}

.tv-scroll-button {
  display: grid;
  place-items: center;
  width: clamp(32px, 2.5vw, 42px);
  aspect-ratio: 1;
  border: 1px solid rgba(47, 100, 107, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  color: var(--blue-2);
  cursor: pointer;
  font-family: "Anybody", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.4rem, 1.8vw, 2rem);
  line-height: 1;
  box-shadow: 0 8px 20px rgba(8, 38, 54, 0.06);
}

.tv-scroll-button:disabled {
  cursor: default;
}

.tv-post-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(220px, 15vw, 300px);
  gap: clamp(14px, 1.2vw, 22px);
  min-height: 0;
  height: 100%;
  padding-top: clamp(12px, 1.1vh, 18px);
  overflow: hidden;
}

.tv-post-viewport {
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 38px), transparent 100%);
}

.tv-post-viewport::-webkit-scrollbar {
  display: none;
}

.tv-shell .tv-carousel-track {
  --tv-card-gap: clamp(14px, 1.15vw, 22px);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--tv-card-gap) + var(--tv-card-gap) + var(--tv-card-gap) + var(--tv-card-gap))) / 5);
  grid-template-columns: none;
  grid-auto-rows: 1fr;
  align-items: stretch;
  height: 100%;
  min-height: 0;
  gap: var(--tv-card-gap);
  padding: 0 12px 0 2px;
}

.tv-shell .post-card {
  grid-template-rows: minmax(0, 44%) minmax(150px, 56%);
  border-color: rgba(8, 38, 54, 0.12);
  box-shadow: 0 10px 28px rgba(8, 38, 54, 0.06);
  min-height: 0;
}

.tv-shell .post-card.text-only {
  grid-template-rows: 1fr;
}

.tv-shell .post-card.announcement-card {
  grid-template-rows: minmax(0, 48%) minmax(140px, 52%);
}

.tv-shell .post-body {
  padding: clamp(10px, 0.85vw, 14px);
}

.tv-shell .post-card h3 {
  font-size: clamp(1.05rem, 1.12vw, 1.3rem);
}

.tv-shell .post-card p {
  -webkit-line-clamp: 3;
}

.tv-shell .post-card.text-only p {
  -webkit-line-clamp: 7;
}

.tv-shell .qr-card {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-content: center;
  text-align: center;
  gap: clamp(10px, 1.3vh, 16px);
  padding: clamp(18px, 1.6vw, 26px);
  border: 2px solid rgba(47, 100, 107, 0.35);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(238, 248, 246, 0.95)),
    var(--mint-3);
}

.tv-shell .qr-code {
  order: 2;
  width: clamp(112px, 8.4vw, 154px);
  height: clamp(112px, 8.4vw, 154px);
}

.tv-shell .qr-card > div:not(.qr-code) {
  order: 1;
}

.tv-shell .qr-card strong {
  font-size: clamp(1.25rem, 1.35vw, 1.65rem);
}

.tv-shell .qr-card span {
  font-size: clamp(0.95rem, 1.05vw, 1.18rem);
}

.tv-shell .qr-heart {
  order: 3;
  grid-column: auto;
  justify-self: center;
  align-self: center;
  padding: clamp(8px, 1vh, 14px) 0 0;
  font-size: clamp(2.3rem, 3.2vw, 3.8rem);
}

.tv-shell {
  grid-template-rows: clamp(104px, 11vh, 132px) minmax(0, 1fr);
  background:
    linear-gradient(180deg, rgba(238, 248, 246, 0.68), rgba(248, 247, 245, 0.96)),
    var(--paper);
}

.tv-shell .brand-hero {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.58), rgba(238, 248, 246, 0.9), rgba(255, 255, 255, 0.58)),
    rgba(238, 248, 246, 0.82);
}

.tv-shell main {
  grid-template-rows: clamp(118px, 15vh, 158px) minmax(0, 1fr);
  background:
    linear-gradient(180deg, rgba(238, 248, 246, 0.64), rgba(255, 255, 255, 0.76)),
    rgba(238, 248, 246, 0.36);
}

.tv-shell .metrics-panel {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.42), rgba(238, 248, 246, 0.6)),
    rgba(238, 248, 246, 0.72);
}

.tv-post-stage {
  grid-template-columns: minmax(0, 1fr) clamp(230px, 14vw, 290px);
  padding-top: clamp(10px, 1vh, 16px);
  padding-bottom: clamp(6px, 0.6vh, 10px);
}

.tv-post-viewport {
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 46px), transparent 100%);
}

.tv-shell .tv-carousel-track {
  grid-template-rows: repeat(2, minmax(0, 1fr));
  grid-auto-columns: clamp(260px, 15.4vw, 318px);
  grid-auto-flow: column;
  gap: clamp(12px, 1vh, 18px) clamp(14px, 1.05vw, 20px);
  align-items: start;
  padding: 0 18px 0 2px;
}

.tv-shell .post-card {
  display: grid;
  grid-template-rows: minmax(0, 58%) minmax(0, 42%);
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  align-self: start;
}

.tv-shell .post-card.text-only {
  grid-template-rows: 1fr;
  aspect-ratio: auto;
}

.tv-shell .post-card.announcement-card {
  grid-template-rows: minmax(0, 58%) minmax(0, 42%);
}

.tv-shell .post-image {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

.tv-shell .post-image.announcement-image {
  aspect-ratio: auto;
  padding: clamp(8px, 0.7vw, 12px);
}

.tv-shell .post-body {
  padding: clamp(8px, 0.72vw, 12px);
}

.tv-shell .post-card h3 {
  margin-bottom: 2px;
  font-size: clamp(0.94rem, 0.95vw, 1.1rem);
}

.tv-shell .post-time {
  margin-bottom: 4px;
  font-size: clamp(0.66rem, 0.68vw, 0.76rem);
}

.tv-shell .post-km-pill {
  min-height: 20px;
  margin-bottom: 4px;
  padding: 0 7px;
  font-size: clamp(0.64rem, 0.66vw, 0.74rem);
}

.tv-shell .post-card p {
  -webkit-line-clamp: 2;
  font-size: clamp(0.78rem, 0.82vw, 0.93rem);
  line-height: 1.3;
}

.tv-shell .post-card.text-only p {
  -webkit-line-clamp: 4;
}

.tv-shell .post-card.announcement-card p {
  -webkit-line-clamp: 2;
}

.tv-shell .source-tag {
  min-height: 26px;
  padding: 0 9px;
  font-size: clamp(0.7rem, 0.72vw, 0.8rem);
}

.tv-shell .qr-card {
  height: 100%;
  aspect-ratio: auto;
  align-self: stretch;
  padding: clamp(16px, 1.35vw, 24px);
}

.tv-shell .qr-code {
  width: clamp(102px, 7.2vw, 140px);
  height: clamp(102px, 7.2vw, 140px);
}

.tv-shell .qr-card strong {
  font-size: clamp(1.12rem, 1.15vw, 1.38rem);
}

.tv-shell .qr-heart {
  font-size: clamp(2rem, 2.5vw, 3rem);
}

.tv-shell {
  grid-template-rows: clamp(138px, 15vh, 172px) minmax(0, 1fr);
  gap: clamp(10px, 1vh, 14px);
  padding: clamp(14px, 1.3vw, 24px);
  background:
    linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)),
    var(--paper);
}

.tv-shell .brand-hero {
  grid-template-columns: minmax(clamp(130px, 15vw, 230px), 0.46fr) minmax(0, 2fr) minmax(clamp(130px, 15vw, 230px), 0.46fr);
  gap: clamp(18px, 2.1vw, 34px);
  min-height: 0;
  height: 100%;
  margin: 0;
  padding: 20px 24px 22px;
  border: 1px solid rgba(8, 38, 54, 0.08);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 30px rgba(8, 38, 54, 0.04);
}

.tv-shell .brand-logo {
  padding-right: clamp(18px, 2.1vw, 34px);
  border-right: 1px solid rgba(8, 38, 54, 0.13);
}

.tv-shell .brand-logo img {
  width: clamp(92px, 8.4vw, 132px);
  max-height: 96px;
}

.tv-shell .partner-logo {
  min-width: clamp(118px, 13vw, 168px);
  padding: 0 0 0 clamp(18px, 2.1vw, 34px);
  border-left: 1px solid rgba(8, 38, 54, 0.13);
}

.tv-shell .partner-logo img {
  width: clamp(90px, 8.4vw, 132px);
  max-height: 90px;
}

.tv-shell .event-lockup p {
  font-size: clamp(1.08rem, 1.12vw, 1.32rem);
}

.tv-shell .event-lockup p::before,
.tv-shell .event-lockup p::after {
  width: min(18vw, 300px);
}

.tv-shell .event-lockup h1 {
  font-size: clamp(2.1rem, 3.02vw, 4.05rem);
  line-height: 0.98;
  white-space: nowrap;
}

.tv-shell main {
  display: grid;
  grid-template-rows: clamp(128px, 13.6vh, 184px) minmax(0, 1fr);
  gap: clamp(14px, 1.3vh, 22px);
  height: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.tv-shell .metrics-panel {
  grid-template-columns: minmax(300px, 1.03fr) minmax(340px, 1.18fr) minmax(260px, 0.78fr);
  gap: clamp(22px, 2.7vw, 52px);
  height: 100%;
  margin: 0;
  padding: clamp(18px, 1.9vw, 30px) clamp(28px, 3.2vw, 54px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0)),
    rgba(238, 248, 246, 0.85);
  box-shadow: var(--shadow);
}

.tv-shell .metric-main {
  justify-content: flex-start;
  padding-right: clamp(18px, 3vw, 60px);
  border-right: 1px solid var(--line);
}

.tv-shell .metric-participants {
  justify-self: end;
  width: 100%;
  padding-left: clamp(18px, 3vw, 60px);
  border-left: 1px solid var(--line);
}

.tv-shell .breakdown-title {
  top: auto;
  background: transparent;
}

.tv-shell .mini-metric {
  grid-template-columns: auto 1fr;
  min-height: 0;
  background: rgba(255, 255, 255, 0.82);
}

.tv-shell .tv-community-section {
  position: relative;
}

.tv-post-stage {
  --tv-card-gap: clamp(14px, 1.15vw, 22px);
  position: relative;
  display: block;
  height: 100%;
  padding: 0;
}

.tv-post-viewport {
  width: 100%;
  height: 100%;
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 18px), transparent 100%);
}

.tv-shell .tv-carousel-track {
  grid-template-rows: repeat(2, minmax(0, 1fr));
  grid-auto-columns: calc((100% - (var(--tv-card-gap) + var(--tv-card-gap) + var(--tv-card-gap) + var(--tv-card-gap))) / 5);
  height: 100%;
  padding: 0 8px 0 2px;
}

.tv-shell .qr-card {
  position: relative;
  right: auto;
  bottom: auto;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(10px, 1.2vh, 16px);
  align-items: center;
  justify-items: center;
  align-content: center;
  padding: clamp(16px, 1.35vw, 24px);
  border: 2px solid rgba(47, 100, 107, 0.34);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.34) 44%, transparent 64%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(238, 248, 246, 0.98)),
    var(--mint-3);
  box-shadow: 0 18px 42px rgba(8, 38, 54, 0.14), inset 0 0 0 5px rgba(255, 255, 255, 0.42);
  text-align: center;
}

.tv-shell .qr-code {
  order: 2;
  display: grid;
  place-items: center;
  width: clamp(128px, 9vw, 168px);
  height: clamp(128px, 9vw, 168px);
  padding: clamp(8px, 0.7vw, 12px);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(8, 38, 54, 0.12);
}

.tv-shell .qr-code canvas,
.tv-shell .qr-code img {
  width: 100% !important;
  height: 100% !important;
  image-rendering: pixelated;
}

.tv-shell .qr-copy {
  order: 1;
  display: inline-grid;
  justify-items: center;
  gap: 8px;
}

.tv-shell .qr-card strong {
  color: var(--ink-blue);
  font-size: clamp(1.16rem, 1.28vw, 1.54rem);
  line-height: 1.02;
}

.tv-shell .qr-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-top: 2px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-size: clamp(0.78rem, 0.84vw, 0.96rem);
  font-weight: 800;
}

.tv-shell .qr-heart {
  position: absolute;
  right: 12px;
  bottom: 8px;
  padding: 0;
  color: var(--coral);
  font-size: clamp(1.4rem, 1.9vw, 2.3rem);
}

.tv-shell .donation-qr-card p {
  display: none;
}

.tv-shell .donation-qr-card strong {
  max-width: 11ch;
}

.tv-shell .donation-qr-code {
  width: clamp(116px, 8vw, 148px);
  height: clamp(116px, 8vw, 148px);
}

@media (max-aspect-ratio: 6 / 5) {
  .tv-shell {
    grid-template-rows: clamp(102px, 11vh, 128px) minmax(0, 1fr);
    padding: clamp(10px, 1.8vw, 18px);
  }

  .tv-shell .brand-hero {
    grid-template-columns: minmax(118px, 0.42fr) minmax(0, 1fr) minmax(118px, 0.42fr);
    gap: clamp(12px, 2vw, 22px);
  }

  .tv-shell .brand-logo {
    padding-right: clamp(14px, 2vw, 24px);
  }

  .tv-shell .event-lockup p {
    font-size: clamp(0.72rem, 1.6vw, 0.95rem);
  }

  .tv-shell .event-lockup p::before,
  .tv-shell .event-lockup p::after {
    width: min(12vw, 110px);
  }

  .tv-shell .event-lockup h1 {
    font-size: clamp(1.72rem, 3.8vw, 2.45rem);
  }

  .tv-shell .brand-logo img,
  .tv-shell .partner-logo img {
    width: clamp(78px, 11vw, 102px);
  }

  .tv-shell main {
    grid-template-rows: clamp(116px, 13.5vh, 150px) minmax(0, 1fr);
  }

  .tv-shell .metrics-panel {
    grid-template-columns: minmax(210px, 0.95fr) minmax(310px, 1.35fr) minmax(180px, 0.72fr);
    gap: clamp(14px, 2vw, 28px);
    padding: clamp(12px, 1.6vw, 18px);
  }

  .tv-shell .metric-main,
  .tv-shell .metric-participants {
    min-width: 0;
  }

  .tv-shell .metric-main {
    padding-right: clamp(14px, 2vw, 28px);
    border-right: 1px solid var(--line);
  }

  .tv-shell .metric-participants {
    justify-self: end;
    padding-left: clamp(14px, 2vw, 28px);
    border-left: 1px solid var(--line);
  }

  .tv-shell .breakdown-title {
    margin-bottom: 6px;
  }

  .tv-shell .breakdown-grid {
    gap: clamp(8px, 1.2vw, 14px);
  }

  .tv-shell .post-image {
    aspect-ratio: auto;
  }

  .tv-shell .post-card p {
    -webkit-line-clamp: 3;
  }
}

@media (min-height: 621px) and (max-height: 760px) and (max-aspect-ratio: 32 / 9) {
  .tv-shell {
    grid-template-rows: clamp(108px, 16vh, 124px) minmax(0, 1fr);
    gap: clamp(8px, 1.2vh, 12px);
    padding: clamp(10px, 1vw, 16px);
  }

  .tv-shell .brand-hero {
    padding: clamp(10px, 1.4vh, 14px) clamp(18px, 1.8vw, 26px);
  }

  .tv-shell .brand-logo img,
  .tv-shell .partner-logo img {
    width: clamp(74px, 7vw, 96px);
    max-height: 76px;
  }

  .tv-shell .event-lockup p {
    font-size: clamp(0.78rem, 1.15vw, 0.98rem);
  }

  .tv-shell .event-lockup p::before,
  .tv-shell .event-lockup p::after {
    width: min(13vw, 160px);
  }

  .tv-shell .event-lockup h1 {
    font-size: clamp(1.85rem, 3.2vw, 2.55rem);
    line-height: 1;
  }

  .tv-shell main {
    grid-template-rows: clamp(116px, 18vh, 136px) minmax(0, 1fr);
    gap: clamp(8px, 1.2vh, 12px);
  }

  .tv-shell .metrics-panel {
    grid-template-columns: minmax(240px, 0.95fr) minmax(390px, 1.2fr) minmax(190px, 0.72fr);
    gap: clamp(16px, 2vw, 30px);
    padding: clamp(10px, 1.4vh, 16px) clamp(18px, 2.2vw, 32px);
  }

  .tv-shell .metric-icon {
    width: clamp(42px, 4.4vw, 56px);
  }

  .tv-shell .metric-main strong,
  .tv-shell .metric-participants strong {
    font-size: clamp(2.25rem, 4vw, 3rem);
    line-height: 0.92;
  }

  .tv-shell .metric-main span,
  .tv-shell .metric-participants span {
    font-size: clamp(0.78rem, 1.18vw, 0.98rem);
  }

  .tv-shell .breakdown-title {
    margin-bottom: 4px;
    font-size: clamp(0.78rem, 1vw, 0.92rem);
  }

  .tv-shell .mini-metric {
    min-height: clamp(48px, 9vh, 62px);
    gap: 8px;
    padding: 8px 10px;
  }

  .tv-shell .mini-icon {
    width: clamp(30px, 3vw, 38px);
  }

  .tv-shell .mini-metric span:not(.mini-icon) {
    font-size: clamp(0.72rem, 1vw, 0.9rem);
  }

  .tv-shell .mini-metric strong {
    font-size: clamp(1.2rem, 2vw, 1.55rem);
  }

  .tv-shell .section-heading {
    min-height: clamp(28px, 4vh, 34px);
    padding-bottom: clamp(5px, 0.8vh, 8px);
  }

  .tv-shell .section-heading h2 {
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  }

  .tv-shell .tv-carousel-track {
    grid-template-rows: minmax(0, 1fr);
    grid-auto-columns: calc((100% - (var(--tv-card-gap) + var(--tv-card-gap) + var(--tv-card-gap) + var(--tv-card-gap))) / 5);
  }

  .tv-shell .post-card {
    grid-template-rows: minmax(0, 48%) minmax(0, 52%);
  }

  .tv-shell .post-card.text-only {
    grid-template-rows: 1fr;
  }

  .tv-shell .post-body {
    padding: clamp(8px, 1vw, 12px);
  }

  .tv-shell .post-card h3 {
    font-size: clamp(0.92rem, 1.35vw, 1.08rem);
  }

  .tv-shell .post-card p {
    -webkit-line-clamp: 2;
    font-size: clamp(0.74rem, 1.05vw, 0.88rem);
  }

  .tv-shell .post-card.text-only p {
    -webkit-line-clamp: 5;
  }

  .tv-shell .qr-code {
    width: clamp(98px, 9vw, 124px);
    height: clamp(98px, 9vw, 124px);
  }

  .tv-shell .qr-card strong {
    font-size: clamp(1rem, 1.35vw, 1.2rem);
  }
}

@media (max-height: 620px) and (max-aspect-ratio: 32 / 9) {
  .tv-shell {
    grid-template-rows: clamp(64px, 22vh, 88px) minmax(0, 1fr);
    gap: clamp(4px, 1vh, 8px);
    padding: clamp(6px, 0.8vw, 12px);
  }

  .tv-shell .brand-hero {
    gap: clamp(14px, 1.8vw, 28px);
    padding: clamp(5px, 0.9vh, 10px) clamp(16px, 1.6vw, 28px);
  }

  .tv-shell .brand-logo img {
    width: clamp(54px, 4.8vw, 76px);
    max-height: clamp(46px, 12vh, 62px);
  }

  .tv-shell .partner-logo img {
    width: clamp(62px, 5vw, 82px);
    max-height: clamp(46px, 12vh, 60px);
  }

  .tv-shell .event-lockup p {
    font-size: clamp(0.78rem, 1.02vw, 1rem);
  }

  .tv-shell .event-lockup p::before,
  .tv-shell .event-lockup p::after {
    width: min(15vw, 240px);
  }

  .tv-shell .event-lockup h1 {
    font-size: clamp(1.8rem, 3vw, 3.45rem);
    line-height: 1;
  }

  .tv-shell main {
    grid-template-rows: clamp(70px, 23vh, 92px) minmax(0, 1fr);
    gap: clamp(4px, 1vh, 8px);
  }

  .tv-shell .metrics-panel {
    grid-template-columns: minmax(250px, 0.95fr) minmax(430px, 1.2fr) minmax(210px, 0.72fr);
    gap: clamp(16px, 2vw, 34px);
    padding: clamp(6px, 1vh, 12px) clamp(18px, 2.4vw, 40px);
  }

  .tv-shell .metric-main,
  .tv-shell .metric-participants {
    gap: clamp(12px, 1.6vw, 22px);
  }

  .tv-shell .metric-icon {
    width: clamp(38px, 3.6vw, 54px);
  }

  .tv-shell .metric-main strong,
  .tv-shell .metric-participants strong {
    font-size: clamp(2.25rem, 3.5vw, 3.35rem);
    line-height: 0.9;
  }

  .tv-shell .metric-main span,
  .tv-shell .metric-participants span {
    font-size: clamp(0.78rem, 1.08vw, 1rem);
  }

  .tv-shell .breakdown-title {
    margin-bottom: 4px;
    font-size: clamp(0.76rem, 0.95vw, 0.92rem);
  }

  .tv-shell .mini-metric {
    min-height: clamp(38px, 10vh, 50px);
    gap: 8px;
    padding: 6px 10px;
  }

  .tv-shell .mini-icon {
    width: clamp(28px, 2.7vw, 38px);
  }

  .tv-shell .mini-metric span:not(.mini-icon) {
    font-size: clamp(0.78rem, 0.95vw, 0.95rem);
  }

  .tv-shell .mini-metric strong {
    font-size: clamp(1.35rem, 2vw, 1.9rem);
  }

  .tv-shell .tv-community-section {
    padding-top: 0;
  }

  .tv-shell .section-heading {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 3;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .tv-shell .section-heading h2 {
    display: none;
  }

  .tv-shell .tv-scroll-cues {
    opacity: 1;
    pointer-events: auto;
  }

  .tv-shell .tv-scroll-button {
    width: clamp(30px, 2.2vw, 38px);
    font-size: clamp(1.1rem, 1.4vw, 1.45rem);
  }

  .tv-post-stage {
    padding: 0;
  }

  .tv-shell .tv-carousel-track {
    grid-template-rows: minmax(0, 1fr);
    grid-auto-columns: calc((100% - (var(--tv-card-gap) + var(--tv-card-gap) + var(--tv-card-gap) + var(--tv-card-gap))) / 5);
  }

  .tv-shell .post-card {
    min-height: 0;
    grid-template-rows: minmax(0, 50%) minmax(78px, 50%);
  }

  .tv-shell .post-card.announcement-card {
    min-height: 0;
    grid-template-rows: minmax(0, 50%) minmax(78px, 50%);
  }

  .tv-shell .post-body {
    padding: clamp(8px, 1vw, 12px);
  }

  .tv-shell .post-card h3 {
    font-size: clamp(0.98rem, 1.22vw, 1.18rem);
  }

  .tv-shell .post-time {
    font-size: clamp(0.68rem, 0.82vw, 0.82rem);
  }

  .tv-shell .post-km-pill {
    margin: 4px 0 6px;
    padding: 2px 7px;
    font-size: clamp(0.66rem, 0.78vw, 0.78rem);
  }

  .tv-shell .post-card p {
    font-size: clamp(0.76rem, 0.95vw, 0.95rem);
    -webkit-line-clamp: 2;
  }

  .tv-shell .post-card:not(.text-only):not(.announcement-card) p {
    display: none;
  }

  .tv-shell .post-card.announcement-card p {
    -webkit-line-clamp: 2;
  }

  .tv-shell .post-card.text-only p {
    -webkit-line-clamp: 4;
  }

  .tv-shell .source-tag {
    top: 8px;
    left: 8px;
    padding: 4px 9px;
    font-size: clamp(0.66rem, 0.78vw, 0.78rem);
  }

  .tv-shell .qr-card {
    gap: clamp(4px, 0.8vh, 7px);
    padding: clamp(8px, 0.9vw, 14px);
  }

  .tv-shell .qr-code {
    width: clamp(88px, 7.4vw, 122px);
    height: clamp(88px, 7.4vw, 122px);
    padding: clamp(5px, 0.5vw, 8px);
  }

  .tv-shell .qr-card strong {
    font-size: clamp(0.88rem, 1.04vw, 1.08rem);
  }

  .tv-shell .qr-pill {
    min-height: 22px;
    padding: 0 8px;
    font-size: clamp(0.68rem, 0.78vw, 0.82rem);
  }

  .tv-shell .qr-heart {
    display: none;
  }
}

@media (min-aspect-ratio: 32 / 9) {
  body:has(.tv-shell) {
    min-height: 100vh;
    overflow: hidden;
    background: var(--white);
  }

  .app-shell.tv-shell {
    position: fixed;
    top: 0;
    left: 50%;
    width: 1920px;
    height: 1080px;
    min-height: 0;
    margin: 0;
    padding: 24px;
    transform: translateX(-50%) scale(calc(100vh / 1080px));
    transform-origin: top center;
  }
}

@media (max-aspect-ratio: 3 / 4) {
  .tv-shell main {
    grid-template-rows: clamp(270px, 36vh, 340px) minmax(0, 1fr);
  }

  .tv-shell .metrics-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(10px, 1.4vh, 14px);
  }

  .tv-shell .post-grid.tv-feature-grid {
    grid-template-columns: 1fr;
  }

  .tv-shell .tv-feature-grid .post-card {
    align-self: start;
  }

  .tv-shell .metric-main,
  .tv-shell .metric-participants {
    justify-self: stretch;
    padding: 0;
    border: 0;
  }

  .tv-shell .metric-breakdown {
    order: 3;
  }

  .tv-shell .qr-card {
    grid-template-columns: clamp(68px, 11vw, 84px) minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .tv-shell .qr-code {
    width: clamp(64px, 10vw, 78px);
    height: clamp(64px, 10vw, 78px);
  }

  .tv-shell .qr-card strong {
    font-size: 1rem;
  }

  .tv-shell .qr-card span {
    margin-top: 4px;
  }

  .tv-shell .qr-heart {
    grid-column: 2;
  }
}

.form-layout {
  display: grid;
  gap: 24px;
}

.form-intro {
  display: grid;
  gap: 8px;
}

.back-link {
  color: var(--blue-2);
  font-weight: 800;
}

.form-intro h2,
.login-card h2 {
  margin: 0;
  font-family: "Anybody", "Helvetica Neue", Arial, sans-serif;
  font-size: 3.5rem;
}

.form-intro p,
.login-card p {
  margin: 0;
  color: #244b55;
  font-size: 1.15rem;
  font-weight: 600;
}

.compose-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: clamp(20px, 2.2vw, 30px);
  align-items: start;
  padding: clamp(18px, 2.2vw, 32px) clamp(22px, 2.6vw, 36px) clamp(22px, 2.6vw, 36px);
}

.compose-card.preview-empty {
  grid-template-columns: minmax(0, 1fr);
}

.post-form,
.login-card,
.admin-edit-form {
  display: grid;
  gap: 16px;
}

.compose-section {
  display: grid;
  gap: 12px;
}

.compose-section + .compose-section {
  padding-top: 4px;
  border-top: 1px solid rgba(47, 100, 107, 0.12);
}

.compose-section h3 {
  margin: 0;
  color: var(--blue-2);
  font-family: "Anybody", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.08rem;
  line-height: 1;
}

.compose-step {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(47, 100, 107, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(238, 248, 246, 0.55));
}

.compose-step-header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.compose-step-header > span {
  display: grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-family: "Anybody", "Helvetica Neue", Arial, sans-serif;
  font-weight: 900;
}

.compose-step-header p,
.preview-panel p,
.compose-success-card p {
  margin: 0;
  color: var(--ink-blue);
  font-family: "Anybody", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.05;
}

.compose-step-header small,
.privacy-reassurance,
.compose-success-card span {
  color: #47676f;
  font-weight: 700;
  line-height: 1.35;
}

.compose-field-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.9fr);
  gap: 12px;
  align-items: start;
}

.post-form label,
.login-card label,
.admin-edit-form label {
  display: grid;
  gap: 8px;
  color: var(--blue-2);
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink-blue);
  outline: none;
}

input {
  min-height: 50px;
  padding: 0 14px;
}

textarea {
  min-height: 130px;
  padding: 14px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--blue-1);
  box-shadow: 0 0 0 4px rgba(181, 222, 215, 0.55);
}

fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  width: 100%;
  margin-bottom: 8px;
  color: var(--blue-2);
  font-weight: 800;
}

.segmented-option {
  position: relative;
  display: inline-flex !important;
}

.segmented-option input {
  position: absolute;
  opacity: 0;
  inset: 0;
}

.segmented-option span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--blue-2);
  cursor: pointer;
}

.segmented-option input:checked + span {
  border-color: var(--blue-1);
  background: var(--mint-2);
}

.upload-tile {
  justify-items: center;
  min-height: 126px;
  padding: 18px;
  border: 1px dashed rgba(47, 100, 107, 0.45);
  border-radius: var(--radius);
  background: var(--mint-3);
  text-align: center;
  cursor: pointer;
}

.upload-tile.is-dragover {
  border-color: var(--orange);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(181, 222, 215, 0.35)),
    var(--mint-3);
  box-shadow: 0 0 0 4px rgba(250, 102, 62, 0.16);
}

.upload-tile input {
  display: none;
}

.upload-icon {
  display: grid;
  place-items: center;
  width: 48px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--mint-1);
  color: var(--blue-2);
  font-size: 1.25rem;
}

.upload-tile small,
.form-note,
.form-hint {
  color: #47676f;
}

.desktop-drop-hint {
  display: inline;
}

.upload-feedback {
  min-height: 20px;
  margin: -6px 0 0;
  color: #47676f;
  font-weight: 800;
}

.upload-feedback.success {
  color: var(--blue-2);
}

.upload-feedback.error {
  color: #aa3d24;
}

.crop-dialog {
  position: fixed;
  z-index: 70;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 42px);
  background: rgba(8, 38, 54, 0.48);
  backdrop-filter: blur(10px);
}

.crop-dialog[hidden] {
  display: none;
}

.crop-panel {
  position: relative;
  display: grid;
  gap: 12px;
  width: min(760px, 100%);
  max-height: min(760px, 92vh);
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(248, 251, 250, 0.98);
  box-shadow: 0 30px 80px rgba(8, 38, 54, 0.28);
}

.crop-panel[hidden] {
  display: none;
}

.crop-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-right: 52px;
  color: var(--blue-2);
  font-weight: 900;
}

.crop-close {
  top: 10px;
  right: 10px;
}

.crop-heading span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: var(--radius);
  background: var(--white);
  color: #47676f;
  font-size: 0.84rem;
}

.crop-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid rgba(47, 100, 107, 0.22);
  border-radius: var(--radius);
  background: #dfeceb;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.crop-frame:active {
  cursor: grabbing;
}

.crop-frame::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: calc(var(--radius) - 2px);
  pointer-events: none;
  box-shadow: 0 0 0 999px rgba(8, 38, 54, 0.08);
}

.crop-frame img {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: none;
  max-height: none;
  pointer-events: none;
  will-change: transform, width, height;
}

.crop-zoom {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.crop-zoom input {
  min-height: 24px;
  padding: 0;
  accent-color: var(--blue-1);
}

.crop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.form-hint,
.form-note {
  margin: 0;
}

.privacy-reassurance {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(47, 100, 107, 0.14);
  border-radius: var(--radius);
  background: rgba(238, 248, 246, 0.78);
}

.privacy-row {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
}

.privacy-row input {
  width: 20px;
  min-height: 20px;
  margin-top: 2px;
  accent-color: var(--blue-1);
}

.text-link {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.compose-privacy-panel {
  max-height: 300px;
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(238, 248, 246, 0.62);
}

.compose-privacy-panel .privacy-content {
  gap: 14px;
  font-size: 0.92rem;
  line-height: 1.55;
}

.compose-privacy-panel .privacy-lead {
  padding: 14px;
  font-size: 0.96rem;
}

.compose-privacy-panel .privacy-section {
  gap: 8px;
  padding-bottom: 14px;
}

.compose-privacy-panel .privacy-section h3,
.compose-privacy-panel .privacy-content > h3 {
  font-size: 1.14rem;
}

.form-result {
  min-height: 24px;
  font-weight: 800;
}

.form-result.success {
  color: var(--blue-1);
}

.form-result.error {
  color: #aa3d24;
}

.preview-panel {
  position: sticky;
  top: 18px;
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
}

.preview-panel[hidden] {
  display: none;
}

.preview-panel p {
  margin: 0;
}

.preview-panel .post-card {
  min-height: 0;
  box-shadow: 0 14px 34px rgba(8, 38, 54, 0.08);
}

.compose-action-bar {
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
  padding: 14px;
  border: 1px solid rgba(47, 100, 107, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 -10px 28px rgba(8, 38, 54, 0.08);
}

.compose-action-bar span {
  color: #47676f;
  font-weight: 800;
}

.submit-button {
  min-width: 250px;
}

.compose-success-card {
  display: grid;
  gap: 14px;
  margin-top: 2px;
  padding: 16px;
  border: 1px solid rgba(47, 100, 107, 0.18);
  border-radius: var(--radius);
  background: var(--mint-3);
}

.confirmation-preview {
  max-width: 360px;
  min-height: 0;
  pointer-events: none;
}

.confirmation-preview .post-image {
  max-height: 150px;
}

.thank-you-backdrop {
  background:
    radial-gradient(circle at 50% 45%, rgba(181, 222, 215, 0.24), transparent 42%),
    rgba(8, 38, 54, 0.46);
}

.thank-you-modal {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(620px, 100%);
  overflow: hidden;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 248, 246, 0.95));
  box-shadow: 0 30px 90px rgba(8, 38, 54, 0.3);
  text-align: center;
}

.thank-you-heart {
  display: grid;
  place-items: center;
  width: 76px;
  aspect-ratio: 1;
  border: 1px solid rgba(250, 102, 62, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.76);
  color: var(--orange);
  font-size: 3.2rem;
  line-height: 1;
  animation: heart-pop 0.75s ease-out both;
}

.thank-you-modal > p {
  margin: 0;
  color: var(--orange);
  font-family: "Anybody", "Helvetica Neue", Arial, sans-serif;
  font-weight: 900;
}

.thank-you-modal h2 {
  max-width: 520px;
  margin: 0;
  color: var(--ink-blue);
  font-family: "Anybody", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(2rem, 3vw, 3.05rem);
  line-height: 1;
}

.thank-you-modal > span {
  max-width: 460px;
  color: #244b55;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.35;
}

.thank-you-preview {
  width: min(360px, 100%);
  margin-top: 8px;
  text-align: left;
  transform: rotate(-1deg);
}

.confetti-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.confetti-piece {
  position: absolute;
  top: -18px;
  left: calc(var(--x) * 1%);
  width: 8px;
  height: 16px;
  border-radius: 2px;
  background: hsl(calc((var(--i) * 53) + 12), 78%, 58%);
  opacity: 0;
  transform: translate3d(0, -20px, 0) rotate(0deg);
  animation: confetti-fall var(--d) ease-in var(--delay) both;
}

.confetti-piece:nth-child(3n) {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mint-1);
}

.confetti-piece:nth-child(4n) {
  background: var(--orange);
}

.confetti-piece:nth-child(5n) {
  background: var(--green);
}

@keyframes confetti-fall {
  0% {
    opacity: 0;
    transform: translate3d(0, -20px, 0) rotate(0deg);
  }
  12% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(calc((50 - var(--x)) * 0.7px), 620px, 0) rotate(560deg);
  }
}

@keyframes heart-pop {
  0% {
    opacity: 0;
    transform: scale(0.72);
  }
  70% {
    transform: scale(1.08);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.login-layout {
  display: grid;
  place-items: center;
  min-height: 54vh;
}

.login-card {
  width: min(100%, 460px);
  padding: 34px;
}

.loading-state {
  display: grid;
  place-items: center;
  min-height: 70vh;
  color: var(--blue-2);
  font-weight: 800;
}

.spinner {
  width: 46px;
  aspect-ratio: 1;
  border: 4px solid var(--mint-1);
  border-top-color: var(--blue-2);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

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

.admin-shell {
  padding: 0;
  background: #f4f7f6;
}

.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 28px;
  border-right: 1px solid var(--line);
  background: var(--white);
}

.admin-sidebar img {
  width: 92px;
  max-height: 92px;
  object-fit: contain;
  align-self: center;
}

.admin-sidebar nav {
  display: grid;
  gap: 8px;
}

.admin-sidebar button {
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--blue-2);
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.admin-sidebar button small {
  display: block;
  margin-top: 3px;
  color: #607a82;
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-sidebar button.active,
.admin-sidebar button:hover {
  background: var(--mint-2);
}

.admin-sidebar .ghost-button {
  margin-top: auto;
}

.admin-main {
  width: 100%;
  max-width: none;
  padding: 28px;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.admin-topbar > div > span {
  color: var(--blue-2);
  font-weight: 900;
}

.admin-topbar h1 {
  margin: 4px 0 0;
  font-family: "Anybody", "Helvetica Neue", Arial, sans-serif;
  font-size: 2.7rem;
}

.admin-partner {
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 8px 10px 10px;
  border: 1px solid rgba(47, 100, 107, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.admin-partner img {
  width: 118px;
  max-height: 76px;
  object-fit: contain;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.admin-stat-grid div,
.admin-metrics,
.admin-email-tools {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 26px rgba(8, 38, 54, 0.05);
}

.admin-stat-grid div {
  padding: 18px;
}

.admin-stat-grid strong {
  display: block;
  font-family: "Anybody", "Helvetica Neue", Arial, sans-serif;
  font-size: 2.2rem;
}

.admin-stat-grid span {
  color: #42666f;
  font-weight: 800;
}

.admin-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
  padding: 16px 18px;
  color: var(--blue-2);
}

.admin-metrics strong {
  color: var(--ink-blue);
}

.admin-flow-note {
  display: grid;
  gap: 4px;
  margin-bottom: 20px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(238, 248, 246, 0.72);
  color: var(--blue-2);
}

.admin-flow-note strong {
  color: var(--ink-blue);
  font-family: "Anybody", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.18rem;
  line-height: 1.08;
}

.admin-flow-note span {
  font-weight: 700;
  line-height: 1.35;
}

.admin-email-tools {
  display: grid;
  grid-template-columns: minmax(190px, 0.36fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 20px;
  padding: 16px 18px;
}

.admin-email-tools span {
  display: block;
  color: var(--orange);
  font-family: "Anybody", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 900;
}

.admin-email-tools strong {
  display: block;
  margin-top: 2px;
  color: var(--ink-blue);
  font-family: "Anybody", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.3rem;
  line-height: 1.05;
}

.admin-export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-settings-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 18px;
  align-items: stretch;
}

.admin-settings-form,
.admin-settings-preview {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 26px rgba(8, 38, 54, 0.05);
}

.admin-settings-form {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 20px;
}

.admin-settings-form label {
  display: grid;
  gap: 8px;
  color: var(--blue-2);
  font-weight: 900;
}

.admin-settings-form input {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid rgba(8, 38, 54, 0.18);
  border-radius: var(--radius);
  color: var(--ink-blue);
  font: inherit;
  font-weight: 800;
}

.admin-settings-form p {
  max-width: 720px;
  margin: 0;
  color: #42666f;
  font-weight: 700;
  line-height: 1.4;
}

.admin-settings-preview {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.admin-settings-preview > span {
  color: var(--orange);
  font-family: "Anybody", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 900;
}

.admin-settings-preview .donation-qr-card {
  min-height: 0;
  box-shadow: none;
}

.admin-live-status {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr) minmax(240px, 0.42fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 18px;
}

.admin-live-status > div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 26px rgba(8, 38, 54, 0.05);
}

.admin-live-status > div:first-child,
.admin-device-list {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 18px;
}

.admin-live-status > div:first-child span {
  color: var(--orange);
  font-family: "Anybody", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 900;
}

.admin-live-status > div:first-child strong,
.admin-device-list strong {
  color: var(--ink-blue);
  font-family: "Anybody", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.35rem;
  line-height: 1.05;
}

.admin-live-status small,
.admin-device-list p {
  margin: 0;
  color: #42666f;
  font-weight: 800;
  line-height: 1.35;
}

.admin-live-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--line);
}

.admin-live-grid div {
  display: grid;
  gap: 4px;
  align-content: center;
  min-height: 86px;
  padding: 14px;
  background: var(--white);
}

.admin-live-grid strong {
  color: var(--ink-blue);
  font-family: "Anybody", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.55rem;
  line-height: 1;
}

.admin-live-grid span {
  color: #42666f;
  font-weight: 900;
}

.admin-device-list > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-device-list > div span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(47, 100, 107, 0.2);
  border-radius: 999px;
  background: var(--mint-3);
  color: var(--blue-2);
  font-weight: 900;
}

.admin-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 18px;
  align-items: start;
}

.admin-workspace-single {
  grid-template-columns: minmax(0, 1fr);
}

.admin-list {
  overflow: hidden;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.tab-button.active {
  background: var(--blue-2);
  color: var(--white);
}

.post-table {
  display: grid;
  max-height: calc(100vh - 430px);
  overflow: auto;
}

.admin-row {
  display: grid;
  grid-template-columns: 54px minmax(220px, 1fr) auto auto minmax(310px, auto);
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid rgba(47, 100, 107, 0.12);
  background: var(--white);
  color: var(--ink-blue);
  text-align: left;
  cursor: pointer;
}

.admin-row.selected,
.admin-row:hover {
  background: var(--mint-3);
}

.admin-row .thumb {
  display: grid;
  place-items: center;
  width: 54px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--mint-2);
  color: #71b9b0;
  font-family: Georgia, serif;
  font-size: 2rem;
}

.admin-row .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.admin-row-copy {
  min-width: 0;
}

.admin-row small {
  margin-top: 4px;
  color: #5d7780;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-row .source-tag {
  position: static;
}

.admin-row-actions,
.email-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.compact-button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.84rem;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 900;
}

.status-pending {
  background: #fff3dd;
  color: #8a5314;
}

.status-approved {
  background: #dff0ed;
  color: var(--blue-2);
}

.status-rejected {
  background: #fde9e3;
  color: #99351e;
}

.admin-detail {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 16px;
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 20px;
}

.admin-detail h2 {
  margin: 0;
  font-family: "Anybody", "Helvetica Neue", Arial, sans-serif;
}

.detail-image,
.detail-placeholder {
  width: 100%;
  aspect-ratio: 2.55;
  border-radius: var(--radius);
}

.detail-image {
  object-fit: cover;
}

.detail-placeholder {
  display: grid;
  place-items: center;
  background: var(--mint-3);
  color: var(--blue-2);
  font-weight: 900;
}

.admin-preview-modal {
  position: relative;
  display: grid;
  grid-template-columns: minmax(380px, 1.05fr) minmax(360px, 0.95fr);
  width: min(1220px, 100%);
  height: min(860px, calc(100vh - 84px));
  max-height: calc(100vh - 84px);
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 30px 80px rgba(8, 38, 54, 0.28);
}

.admin-preview-media {
  display: grid;
  place-items: center;
  min-height: 0;
  height: 100%;
  background: var(--mint-3);
}

.admin-preview-media img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.admin-preview-content {
  display: grid;
  align-content: start;
  gap: 18px;
  max-height: 100%;
  min-height: 0;
  min-width: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(26px, 3.3vw, 46px);
}

.admin-preview-content h2 {
  margin: 0;
  color: var(--ink-blue);
  font-family: "Anybody", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
}

.admin-preview-content p {
  margin: 0;
  color: #14384a;
  font-size: 1.08rem;
  line-height: 1.45;
}

.admin-edit-details {
  border-top: 1px solid rgba(47, 100, 107, 0.16);
  padding-top: 14px;
}

.admin-edit-details summary {
  cursor: pointer;
  color: var(--blue-2);
  font-weight: 900;
}

.admin-edit-details[open] summary {
  margin-bottom: 14px;
}

.admin-edit-form {
  gap: 12px;
}

.admin-edit-form textarea {
  min-height: 96px;
}

.admin-meta {
  display: grid;
  gap: 10px;
  margin: 0;
}

.admin-meta div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
}

.admin-meta dt {
  color: #5d7780;
  font-weight: 800;
}

.admin-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 2px;
}

.admin-email-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 10px 26px rgba(8, 38, 54, 0.05);
}

.email-table {
  display: grid;
}

.email-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(360px, auto);
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(47, 100, 107, 0.12);
}

.email-row:last-child {
  border-bottom: 0;
}

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

.email-row strong {
  overflow-wrap: anywhere;
}

.email-row small {
  margin-top: 4px;
  color: #5d7780;
  font-weight: 800;
}

.empty-state {
  margin: 0;
  padding: 28px;
  color: #5d7780;
  font-weight: 800;
}

@media (min-width: 1281px) {
  .event-lockup h1 {
    white-space: nowrap;
  }
}

@media (max-width: 1280px) {
  .brand-hero {
    grid-template-columns: minmax(118px, 0.42fr) minmax(0, 1.8fr) minmax(118px, 0.42fr);
    gap: clamp(14px, 1.7vw, 24px);
  }

  .event-lockup h1 {
    font-size: clamp(2.05rem, 3.7vw, 3.2rem);
    line-height: 1.02;
  }

  .event-lockup p {
    font-size: clamp(0.9rem, 1.25vw, 1.08rem);
  }

  .event-lockup p::before,
  .event-lockup p::after {
    width: min(13vw, 170px);
  }
}

@media (max-width: 1100px) {
  .event-lockup h1 {
    font-size: clamp(2.1rem, 5vw, 3.2rem);
    white-space: normal;
  }

  .metric-main strong,
  .metric-participants strong {
    font-size: 4.4rem;
  }

  .brand-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: clamp(18px, 2.4vw, 28px) clamp(18px, 3vw, 36px);
    align-items: center;
    min-height: 0;
    padding: clamp(18px, 2.6vw, 28px);
  }

  .brand-logo {
    grid-column: 1;
    grid-row: 1;
    justify-content: flex-start;
    height: auto;
    padding-right: 0;
    border-right: 0;
  }

  .brand-logo img {
    width: clamp(86px, 13vw, 132px);
    max-height: clamp(76px, 12vw, 112px);
  }

  .event-lockup {
    grid-column: 1 / -1;
    grid-row: 2;
    order: initial;
    width: min(100%, 780px);
    justify-self: center;
  }

  .partner-logo {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-content: center;
    width: auto;
    min-width: 0;
    height: auto;
    padding-left: 0;
    border-left: 0;
  }

  .partner-logo img {
    width: clamp(92px, 16vw, 138px);
    max-height: clamp(68px, 11vw, 96px);
  }

  .metrics-panel {
    grid-template-columns: 1fr;
  }

  .metric-main,
  .metric-participants {
    justify-self: stretch;
    padding: 0;
    border: 0;
  }

  .post-grid {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }

  .privacy-page {
    width: 100%;
  }

  .compose-card,
  .admin-workspace,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
  }

  .admin-detail {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .admin-preview-modal {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .admin-preview-media,
  .admin-preview-media img {
    min-height: 280px;
  }

  .admin-row {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .email-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-row-actions,
  .admin-row .source-tag,
  .admin-row .status-dot {
    grid-column: 2;
    justify-content: flex-start;
    justify-self: start;
  }

  .email-row-actions,
  .email-row .status-dot {
    grid-column: 1;
    justify-content: flex-start;
    justify-self: start;
  }
}

@media (max-width: 720px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .app-shell {
    padding: 10px;
    overflow-x: hidden;
  }

  .app-shell main,
  .brand-hero {
    width: 100%;
    max-width: 100%;
  }

  .admin-shell.app-shell {
    padding: 0;
  }

  .brand-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 16px 14px 20px;
    overflow: hidden;
  }

  .dashboard-menu-wrap {
    left: 12px;
    bottom: 12px;
  }

  .menu-button {
    width: 40px;
    min-height: 40px;
  }

  .menu-panel {
    width: min(310px, calc(100vw - 24px));
  }

  .brand-logo {
    position: relative;
    top: auto;
    left: auto;
    order: 1;
    flex: 0 1 42%;
    min-height: 0;
    min-width: 0;
    padding: 0;
    border: 0;
  }

  .brand-logo img {
    width: clamp(70px, 22vw, 96px);
    max-height: clamp(70px, 22vw, 96px);
  }

  .partner-logo {
    display: none;
  }

  .partner-logo span {
    display: none;
  }

  .partner-logo img {
    display: block;
    width: clamp(68px, 22vw, 96px);
    max-height: clamp(50px, 16vw, 70px);
  }

  .event-lockup h1 {
    max-width: 100%;
    font-size: clamp(1.28rem, 4.85vw, 1.58rem);
    line-height: 1.02;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .event-lockup h1 span {
    display: block;
  }

  .event-lockup p {
    min-height: 20px;
    padding: 0;
    font-size: clamp(0.7rem, 2.7vw, 0.88rem);
  }

  .event-lockup p::before,
  .event-lockup p::after {
    content: none;
  }

  .event-lockup {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .event-lockup h1,
  .event-lockup p {
    min-width: 0;
    max-width: 100%;
  }

  .metrics-panel {
    gap: 10px;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    margin-bottom: 12px;
    padding: 12px;
  }

  .metric-main strong,
  .metric-participants strong {
    font-size: 2.45rem;
  }

  .metric-main span,
  .metric-participants span {
    margin-top: 4px;
    font-size: 1rem;
  }

  .metric-icon {
    width: 48px;
  }

  .breakdown-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .breakdown-title {
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.92rem;
  }

  .mini-metric {
    min-height: 58px;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 10px;
  }

  .mini-metric strong {
    font-size: 1.55rem;
  }

  .metric-main,
  .metric-participants {
    gap: 12px;
  }

  .mini-icon {
    display: none;
  }

  .share-panel {
    display: grid;
    gap: 10px;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    margin-bottom: 18px;
    padding: 12px;
  }

  .primary-button {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 42px;
  }

  .share-panel p {
    font-size: 1rem;
    line-height: 1.35;
  }

  .privacy-page {
    gap: 16px;
    margin-bottom: 28px;
  }

  .privacy-header h1 {
    font-size: 2.05rem;
  }

  .privacy-lead {
    padding: 16px;
    font-size: 1rem;
    line-height: 1.5;
  }

  .privacy-content {
    font-size: 0.96rem;
    line-height: 1.55;
  }

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

  .section-heading h2 {
    font-size: 1.72rem;
    line-height: 1.05;
  }

  .approved-badge {
    min-height: 32px;
    padding: 0 12px;
    font-size: 0.9rem;
  }

  .post-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .post-card {
    min-height: 0;
  }

  .post-card.text-only {
    min-height: 0;
  }

  .post-body {
    padding: 16px;
  }

  .quote-mark {
    margin-bottom: 10px;
    font-size: 3rem;
  }

  .post-card h3 {
    font-size: 1.12rem;
  }

  .post-km-pill {
    min-height: 26px;
    font-size: 0.82rem;
  }

  .post-time {
    font-size: 0.78rem;
  }

  .post-card p {
    font-size: 0.98rem;
  }

  .post-card:not(.text-only) p {
    -webkit-line-clamp: 4;
  }

  .post-card.text-only p {
    -webkit-line-clamp: 10;
  }

  .post-modal-backdrop {
    place-items: end start;
    padding: 10px;
  }

  .post-modal {
    grid-template-columns: 1fr;
    width: 100%;
    max-height: 92vh;
    overflow: auto;
  }

  .compose-modal {
    width: min(calc(100vw - 20px), 370px);
    max-width: min(calc(100vw - 20px), 370px);
    max-height: 92vh;
  }

  .compose-modal-header {
    padding: 22px 18px 0;
  }

  .compose-modal-header h2 {
    font-size: 2.3rem;
  }

  .compose-modal-header span {
    font-size: 0.98rem;
  }

  .modal-media,
  .modal-image,
  .modal-text-art {
    min-height: 240px;
  }

  .modal-content {
    gap: 14px;
    padding: 22px;
  }

  .modal-content h2 {
    font-size: 1.85rem;
  }

  .modal-content p {
    font-size: 1rem;
  }

  .compose-card {
    grid-template-columns: 1fr;
    min-width: 0;
    gap: 18px;
    padding: 18px;
  }

  .compose-step {
    min-width: 0;
    overflow: hidden;
    padding: 14px;
  }

  .compose-step-header {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
  }

  .compose-step-header > span {
    width: 36px;
  }

  .compose-step-header p,
  .preview-panel p,
  .compose-success-card p {
    font-size: 1.08rem;
  }

  .compose-step-header small {
    overflow-wrap: anywhere;
  }

  .desktop-drop-hint {
    display: none;
  }

  .compose-field-grid {
    grid-template-columns: 1fr;
  }

  .form-layout {
    gap: 14px;
  }

  .form-intro {
    gap: 6px;
  }

  .form-intro h2,
  .login-card h2 {
    font-size: 2.35rem;
    line-height: 0.98;
  }

  .form-intro p,
  .login-card p {
    font-size: 1rem;
    line-height: 1.35;
  }

  .post-form,
  .login-card,
  .admin-edit-form {
    gap: 14px;
  }

  input {
    min-height: 46px;
  }

  textarea {
    min-height: 118px;
  }

  .crop-panel {
    padding: 12px;
  }

  .crop-actions > * {
    flex: 1 1 100%;
  }

  .preview-panel {
    position: static;
    gap: 12px;
  }

  .preview-panel[hidden] {
    display: none;
  }

  .submit-button {
    width: 100%;
  }

  .compose-action-bar {
    position: sticky;
    bottom: -1px;
    margin: 0 -18px -18px;
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
  }

  .compose-action-bar span {
    width: 100%;
    text-align: center;
  }

  .confirmation-preview {
    max-width: 100%;
  }

  .admin-layout,
  .admin-main,
  .admin-sidebar,
  .admin-workspace,
  .admin-list,
  .admin-detail {
    min-width: 0;
  }

  .admin-layout {
    width: 100%;
  }

  .admin-sidebar {
    gap: 16px;
    padding: 18px;
  }

  .admin-sidebar img {
    width: 74px;
    max-height: 74px;
  }

  .admin-sidebar nav {
    grid-template-columns: 1fr 1fr;
  }

  .admin-sidebar button {
    padding: 10px;
    text-align: center;
  }

  .admin-main {
    padding: 16px;
  }

  .admin-topbar {
    display: grid;
    gap: 12px;
  }

  .admin-topbar h1 {
    font-size: 2.1rem;
    line-height: 1;
  }

  .admin-partner {
    justify-self: start;
  }

  .admin-partner img {
    width: 92px;
    max-height: 60px;
  }

  .admin-stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-email-tools {
    grid-template-columns: 1fr;
  }

  .admin-export-actions {
    justify-content: stretch;
  }

  .admin-export-actions > * {
    width: 100%;
  }

  .admin-tabs {
    flex-wrap: wrap;
  }

  .admin-tabs .tab-button {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
  }

  .post-table {
    max-height: none;
  }

  .admin-detail {
    padding: 16px;
  }

  .admin-preview-modal {
    width: 100%;
    max-height: 92vh;
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .admin-preview-content {
    gap: 14px;
    padding: 20px;
  }

  .admin-preview-media,
  .admin-preview-media img {
    min-height: 220px;
  }

  .admin-actions > * {
    width: 100%;
  }

  .admin-meta div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .admin-row {
    grid-template-columns: 46px 1fr;
  }

  .admin-row .source-tag,
  .admin-row .status-dot {
    justify-self: start;
  }

  .admin-row-actions,
  .email-row-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .admin-row-actions > *,
  .email-row-actions > * {
    flex: 1 1 100%;
  }

  .email-row {
    grid-template-columns: 1fr;
  }

  .email-row .status-dot {
    grid-column: 1;
    justify-self: start;
  }
}

@media (max-width: 480px) {
  .brand-hero {
    gap: 10px;
    padding: 14px 12px 18px;
  }

  .brand-logo img {
    width: clamp(64px, 24vw, 84px);
    max-height: clamp(64px, 24vw, 84px);
  }

  .partner-logo span {
    display: none;
  }

  .partner-logo img {
    width: clamp(68px, 27vw, 92px);
    max-height: clamp(50px, 18vw, 66px);
  }

  .event-lockup {
    gap: 5px;
  }

  .event-lockup p {
    padding: 0;
    font-size: clamp(0.66rem, 3.1vw, 0.78rem);
  }

  .event-lockup p::before,
  .event-lockup p::after {
    content: none;
  }

  .event-lockup h1 {
    font-size: clamp(1.48rem, 6.8vw, 1.86rem);
    line-height: 1.04;
  }
}

.tv-shell .tv-post-stage {
  --tv-card-gap: clamp(14px, 1.15vw, 22px);
  --tv-row-gap: clamp(12px, 1vh, 18px);
  position: relative;
  display: block;
  height: 100%;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.tv-shell .tv-post-viewport {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  mask-image: none;
}

.tv-shell .tv-post-viewport::-webkit-scrollbar {
  display: none;
}

.tv-shell .tv-carousel-track {
  display: flex;
  width: max-content;
  height: 100%;
  min-height: 0;
  gap: 0;
  padding: 0;
}

.tv-shell .tv-post-page {
  flex: 0 0 var(--tv-page-width, 100%);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: var(--tv-row-gap) var(--tv-card-gap);
  width: var(--tv-page-width, 100%);
  height: 100%;
  padding: 0;
  padding-right: 0;
}

.tv-shell .tv-fixed-qr-lane {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--tv-card-gap);
  width: calc(40% - 10px);
  height: calc((100% - var(--tv-row-gap)) / 2);
  pointer-events: none;
}

.tv-shell .tv-fixed-qr-lane .qr-card {
  pointer-events: auto;
}

.tv-shell .tv-post-page .post-card,
.tv-shell .tv-fixed-qr-lane .qr-card {
  width: 100%;
  height: 100%;
  min-height: 0;
  align-self: stretch;
  border-radius: var(--radius);
}

.tv-shell .tv-post-page .post-card {
  display: grid;
  grid-template-rows: minmax(0, 58%) minmax(0, 42%);
  overflow: hidden;
  border-color: rgba(8, 38, 54, 0.12);
  box-shadow: 0 10px 28px rgba(8, 38, 54, 0.06);
}

.tv-shell .tv-post-page .post-card.text-only {
  grid-template-rows: 1fr;
}

.tv-shell .tv-post-page .post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: auto;
}

.tv-shell .tv-post-page .post-image.announcement-image {
  padding: clamp(8px, 0.7vw, 12px);
  object-fit: contain;
}

.tv-shell .tv-post-page .post-body {
  min-height: 0;
  overflow: hidden;
  padding: clamp(9px, 0.74vw, 13px);
}

.tv-shell .tv-post-page .post-card h3 {
  margin-bottom: 2px;
  font-size: clamp(0.98rem, 0.98vw, 1.14rem);
  line-height: 1.03;
}

.tv-shell .tv-post-page .post-time {
  margin-bottom: 4px;
  font-size: clamp(0.62rem, 0.66vw, 0.76rem);
}

.tv-shell .tv-post-page .post-km-pill {
  min-height: 20px;
  margin-bottom: 4px;
  padding: 0 7px;
  font-size: clamp(0.62rem, 0.66vw, 0.74rem);
}

.tv-shell .tv-post-page .post-card p {
  -webkit-line-clamp: 2;
  font-size: clamp(0.76rem, 0.8vw, 0.92rem);
  line-height: 1.3;
}

.tv-shell .tv-post-page .post-card.text-only p {
  -webkit-line-clamp: 4;
}

.tv-shell .tv-fixed-qr-lane .qr-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  justify-items: center;
  gap: clamp(8px, 1vh, 14px);
  padding: clamp(14px, 1.25vw, 22px);
  text-align: center;
}

.tv-shell .tv-fixed-qr-lane .qr-code {
  width: clamp(118px, 7.4vw, 152px);
  height: clamp(118px, 7.4vw, 152px);
}

.tv-shell .tv-fixed-qr-lane .qr-card strong {
  max-width: 12ch;
  font-size: clamp(1.05rem, 1.12vw, 1.34rem);
}

.tv-shell .tv-fixed-qr-lane .qr-pill {
  min-height: 26px;
  font-size: clamp(0.72rem, 0.78vw, 0.92rem);
}

.tv-shell .tv-fixed-qr-lane .qr-heart {
  right: 10px;
  bottom: 7px;
  font-size: clamp(1.25rem, 1.6vw, 2rem);
}

.tv-shell .tv-fixed-qr-lane .donation-qr-card p {
  display: none;
}

@media (min-height: 621px) and (max-height: 760px) and (max-aspect-ratio: 32 / 9) {
  .tv-shell .tv-post-page {
    grid-template-rows: minmax(0, 1fr);
  }

  .tv-shell .tv-fixed-qr-lane {
    height: 100%;
  }

  .tv-shell .tv-post-page .post-card {
    grid-template-rows: minmax(0, 50%) minmax(0, 50%);
  }

  .tv-shell .tv-fixed-qr-lane .qr-code {
    width: clamp(92px, 8vw, 118px);
    height: clamp(92px, 8vw, 118px);
  }
}

/* Stable event header system.
   This deliberately overrides the older breakpoint stack above so the title
   has predictable modes instead of drifting between fragile intermediate layouts. */
.brand-hero {
  display: grid;
  grid-template-columns: clamp(122px, 11vw, 190px) minmax(0, 1fr) clamp(122px, 11vw, 190px);
  grid-template-areas: "augletics event partner";
  gap: clamp(18px, 2.2vw, 38px);
  align-items: center;
  min-height: clamp(112px, 8.6vw, 156px);
  padding: clamp(16px, 1.45vw, 26px) clamp(18px, 1.8vw, 34px);
  overflow: hidden;
}

.brand-logo {
  grid-area: augletics;
  justify-content: center;
  height: 100%;
  min-width: 0;
  padding: 0 clamp(14px, 1.6vw, 28px) 0 0;
  border-right: 1px solid rgba(8, 38, 54, 0.11);
}

.brand-logo img {
  width: clamp(82px, 6.4vw, 124px);
  max-height: clamp(82px, 6.4vw, 124px);
}

.event-lockup {
  grid-area: event;
  gap: clamp(5px, 0.5vw, 9px);
  min-width: 0;
}

.event-lockup p {
  min-height: 22px;
  padding: 0 clamp(18px, 2vw, 36px);
  font-size: clamp(0.92rem, 1.05vw, 1.22rem);
  line-height: 1;
}

.event-lockup p::before,
.event-lockup p::after {
  width: clamp(72px, 12vw, 270px);
}

.event-lockup h1 {
  max-width: 100%;
  font-size: clamp(2.1rem, 3.05vw, 4.05rem);
  line-height: 1.02;
  text-wrap: balance;
  white-space: normal;
  overflow-wrap: normal;
}

.event-lockup h1 span {
  display: inline;
}

.partner-logo {
  grid-area: partner;
  align-content: center;
  justify-self: stretch;
  min-width: 0;
  height: 100%;
  padding: 0 0 0 clamp(14px, 1.6vw, 28px);
  border-left: 1px solid rgba(8, 38, 54, 0.11);
}

.partner-logo img {
  width: clamp(82px, 6.6vw, 126px);
  max-height: clamp(62px, 5.8vw, 94px);
}

.partner-logo span {
  font-size: clamp(0.62rem, 0.62vw, 0.72rem);
  line-height: 1;
}

@media (min-width: 1380px) {
  .event-lockup h1 {
    white-space: nowrap;
  }
}

@media (max-width: 1180px) {
  .brand-hero {
    grid-template-columns: clamp(98px, 13vw, 142px) minmax(0, 1fr) clamp(104px, 14vw, 150px);
    gap: clamp(14px, 2vw, 26px);
    min-height: 118px;
    padding: 16px 18px;
  }

  .brand-logo img {
    width: clamp(74px, 9vw, 106px);
    max-height: clamp(74px, 9vw, 106px);
  }

  .partner-logo img {
    width: clamp(78px, 10vw, 112px);
    max-height: clamp(58px, 8vw, 80px);
  }

  .event-lockup p {
    padding: 0 clamp(12px, 1.5vw, 22px);
    font-size: clamp(0.78rem, 1.25vw, 1rem);
  }

  .event-lockup p::before,
  .event-lockup p::after {
    width: clamp(42px, 8vw, 118px);
  }

  .event-lockup h1 {
    font-size: clamp(2rem, 4.15vw, 3.15rem);
    line-height: 1.02;
  }
}

@media (max-width: 900px) {
  .brand-hero {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "augletics partner"
      "event event";
    gap: 10px 18px;
    align-items: center;
    min-height: 0;
    padding: 14px 16px 16px;
  }

  .brand-logo {
    justify-content: flex-start;
    height: auto;
    padding: 0;
    border-right: 0;
  }

  .brand-logo img {
    width: clamp(70px, 14vw, 96px);
    max-height: clamp(70px, 14vw, 96px);
  }

  .partner-logo {
    display: grid;
    justify-self: end;
    width: auto;
    height: auto;
    padding: 0;
    border-left: 0;
  }

  .partner-logo img {
    width: clamp(76px, 15vw, 104px);
    max-height: clamp(56px, 10vw, 74px);
  }

  .partner-logo span {
    display: block;
    font-size: clamp(0.56rem, 1.4vw, 0.68rem);
  }

  .event-lockup {
    width: min(100%, 520px);
    justify-self: center;
    gap: 5px;
    overflow: visible;
  }

  .event-lockup p {
    min-height: auto;
    padding: 0 clamp(14px, 4vw, 28px);
    font-size: clamp(0.82rem, 2.4vw, 1rem);
  }

  .event-lockup p::before,
  .event-lockup p::after {
    content: "";
    width: clamp(34px, 13vw, 112px);
  }

  .event-lockup h1 {
    font-size: clamp(1.72rem, 5vw, 2.35rem);
    line-height: 1.03;
  }

  .event-lockup h1 span {
    display: block;
  }
}

@media (max-width: 520px) {
  .brand-hero {
    gap: 9px 14px;
    padding: 14px 12px 16px;
  }

  .brand-logo img {
    width: clamp(64px, 20vw, 80px);
    max-height: clamp(64px, 20vw, 80px);
  }

  .partner-logo img {
    width: clamp(68px, 22vw, 86px);
    max-height: clamp(50px, 15vw, 62px);
  }

  .partner-logo span {
    font-size: 0.54rem;
  }

  .event-lockup p {
    padding: 0;
    font-size: clamp(0.74rem, 3.4vw, 0.88rem);
  }

  .event-lockup p::before,
  .event-lockup p::after {
    content: none;
  }

  .event-lockup h1 {
    font-size: clamp(1.48rem, 7vw, 1.92rem);
    line-height: 1.02;
  }
}

.tv-shell .brand-hero {
  grid-template-columns: clamp(112px, 9vw, 172px) minmax(0, 1fr) clamp(112px, 9vw, 172px);
  grid-template-areas: "augletics event partner";
  min-height: 0;
  padding: clamp(10px, 1vw, 18px) clamp(14px, 1.25vw, 24px);
}

.tv-shell .event-lockup h1 {
  font-size: clamp(1.85rem, 2.65vw, 3.25rem);
  line-height: 1.02;
  white-space: nowrap;
}

.tv-shell .brand-logo,
.tv-shell .partner-logo {
  height: 100%;
  min-width: 0;
}

.tv-shell .brand-logo img {
  width: clamp(74px, 5.8vw, 108px);
  max-height: clamp(74px, 5.8vw, 108px);
}

.tv-shell .partner-logo img {
  width: clamp(80px, 6.2vw, 116px);
  max-height: clamp(58px, 5.3vw, 84px);
}

@media (max-aspect-ratio: 9 / 5) {
  .tv-shell .event-lockup h1 {
    font-size: clamp(1.55rem, 2.25vw, 2.55rem);
  }
}

@media (max-height: 780px) {
  .tv-shell {
    grid-template-rows: clamp(116px, 16vh, 128px) minmax(0, 1fr);
  }

  .tv-shell .brand-hero {
    padding-top: clamp(8px, 0.8vw, 12px);
    padding-bottom: clamp(8px, 0.8vw, 12px);
  }

  .tv-shell .event-lockup {
    gap: 4px;
  }

  .tv-shell .event-lockup p {
    min-height: 18px;
    font-size: clamp(0.76rem, 0.86vw, 0.96rem);
  }

  .tv-shell .event-lockup p::before,
  .tv-shell .event-lockup p::after {
    width: clamp(34px, 5vw, 90px);
  }

  .tv-shell .event-lockup h1 {
    font-size: clamp(1.52rem, 2.08vw, 2.45rem);
    line-height: 1;
  }

  .tv-shell .brand-logo img {
    width: clamp(66px, 5.1vw, 92px);
    max-height: clamp(66px, 5.1vw, 92px);
  }

  .tv-shell .partner-logo img {
    width: clamp(72px, 5.5vw, 98px);
    max-height: clamp(52px, 4.8vw, 72px);
  }
}

.compose-honeypot {
  position: fixed !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Responsive wall: let the title wrap naturally and size counters to their
   available column, including larger event totals. */
.web-shell .metrics-panel {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) minmax(0, 0.9fr);
  gap: clamp(16px, 2vw, 32px);
}
.metrics-panel .metric-main > div:last-child,
.metrics-panel .metric-participants > div:last-child {
  flex: 1;
  container-type: inline-size;
}
.metrics-panel .metric-main strong {
  font-size: clamp(1.6rem, 17cqi, 5rem);
  overflow-wrap: anywhere;
}
.metrics-panel .metric-participants strong {
  font-size: clamp(1.6rem, 23cqi, 5rem);
  overflow-wrap: anywhere;
}
.web-shell .metric-main { padding-right: 16px; }
.web-shell .metric-participants { padding-left: 16px; }
.web-shell .metric-main,
.web-shell .metric-participants { gap: 16px; }
.web-shell .metric-icon { width: clamp(48px, 4vw, 72px); }
.web-shell .mini-metric { min-width: 0; }
.web-shell .mini-metric strong { font-size: clamp(1.2rem, 1.8vw, 2rem); }

@media (min-width: 601px) and (max-width: 900px) {
  .web-shell .brand-hero {
    grid-template-columns: 82px minmax(0, 1fr) 90px;
    grid-template-areas: "augletics event partner";
    gap: 18px;
    padding: 20px;
  }
  .web-shell .brand-logo img { width: 76px; max-height: 76px; }
  .web-shell .partner-logo img { width: 84px; max-height: 64px; }
  .web-shell .event-lockup { width: 100%; }
  .web-shell .event-lockup h1 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
  .web-shell .event-lockup p { font-size: 0.8rem; padding: 0; }
  .web-shell .event-lockup p::before,
  .web-shell .event-lockup p::after { content: none; }
}
@media (max-width: 900px) {
  .web-shell .event-lockup h1 span { display: inline; }
  .web-shell .event-lockup h1 { line-height: 1.1; }
}
@media (max-width: 600px) {
  .web-shell .brand-hero {
    gap: 12px;
    padding: 16px;
    border-radius: var(--radius);
  }
  .web-shell .brand-logo img { width: 60px; max-height: 60px; }
  .web-shell .partner-logo img { width: 70px; max-height: 50px; }
  .web-shell .event-lockup { width: min(100%, 400px); gap: 7px; }
  .web-shell .event-lockup h1 { font-size: clamp(1.4rem, 6.5vw, 1.9rem); }
  .web-shell .event-lockup p { font-size: 0.78rem; padding: 0; }
  .web-shell .event-lockup p::before,
  .web-shell .event-lockup p::after { content: none; }
}
@media (min-width: 721px) and (max-width: 1180px) {
  .web-shell .metrics-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .web-shell .metric-main,
  .web-shell .metric-participants { padding: 0; border: 0; }
  .web-shell .metric-participants { grid-column: 2; grid-row: 1; }
  .web-shell .metric-breakdown { grid-column: 1 / -1; }
  .web-shell .share-panel { grid-template-columns: auto minmax(0, 1fr); }
  .web-shell .share-panel .primary-button { white-space: nowrap; }
}
@media (max-width: 720px) {
  .web-shell .metrics-panel { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .web-shell .metric-main,
  .web-shell .metric-participants { padding: 0; border: 0; gap: 12px; }
  .web-shell .metric-main strong,
  .web-shell .metric-participants strong { font-size: clamp(1.8rem, 13cqi, 2.75rem); }
  .web-shell .breakdown-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .web-shell .mini-metric strong { font-size: clamp(1.05rem, 4.7vw, 1.5rem); }
}

/* On narrow displays the TV wall keeps its swipeable pages, with readable
   cards and QR codes below them instead of an overlapping fixed screen grid. */
@media (max-width: 900px) {
  .app-shell.tv-shell { display: block; width: 100%; height: auto; min-height: 100dvh; overflow: visible; }
  .tv-shell .brand-hero {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "augletics partner" "event event";
    height: auto;
    gap: 12px;
    padding: 16px;
    margin-bottom: 14px;
  }
  .tv-shell .brand-logo,
  .tv-shell .partner-logo { height: auto; padding: 0; border: 0; }
  .tv-shell .brand-logo img { width: 60px; max-height: 60px; }
  .tv-shell .partner-logo img { width: 70px; max-height: 50px; }
  .tv-shell .event-lockup { width: min(100%, 440px); }
  .tv-shell .event-lockup h1 { font-size: clamp(1.4rem, 5vw, 2rem); line-height: 1.1; white-space: normal; }
  .tv-shell .event-lockup h1 span { display: inline; }
  .tv-shell .event-lockup p { padding: 0; font-size: 0.8rem; }
  .tv-shell .event-lockup p::before,
  .tv-shell .event-lockup p::after { content: none; }
  .tv-shell main { display: block; height: auto; }
  .tv-shell .metrics-panel { height: auto; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 16px; margin-bottom: 20px; }
  .tv-shell .metric-main,
  .tv-shell .metric-participants { padding: 0; border: 0; gap: 12px; }
  .tv-shell .metric-icon { width: 48px; }
  .tv-shell .metric-main strong,
  .tv-shell .metric-participants strong { font-size: clamp(1.8rem, 13cqi, 2.75rem); }
  .tv-shell .breakdown-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tv-shell .mini-metric { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 10px; }
  .tv-shell .mini-icon { display: none; }
  .tv-shell .mini-metric strong { font-size: clamp(1rem, 4.5vw, 1.5rem); }
  .tv-shell .tv-community-section { display: block; height: auto; }
  .tv-shell .section-heading { margin-bottom: 14px; }
  .tv-shell .tv-post-stage { height: auto; overflow: visible; }
  .tv-shell .tv-post-viewport { height: auto; }
  .tv-shell .tv-carousel-track { height: auto; }
  .tv-shell .tv-post-page { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: 320px; height: auto; gap: 12px; }
  .tv-shell .tv-post-page .post-card { grid-template-rows: minmax(0, 50%) minmax(0, 50%); }
  .tv-shell .tv-post-page .post-card.text-only { grid-template-rows: 1fr; }
  .tv-shell .tv-fixed-qr-lane { position: static; width: 100%; height: auto; gap: 12px; margin-top: 16px; }
  .tv-shell .tv-fixed-qr-lane .qr-card { padding: 12px 8px; }
  .tv-shell .tv-fixed-qr-lane .qr-code { width: 112px; height: 112px; }
  .tv-shell .tv-fixed-qr-lane .qr-pill { font-size: 0.65rem; }
}
@media (min-width: 1181px) and (max-width: 1600px) {
  .web-shell .mini-metric { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .web-shell .mini-icon { display: none; }
}
@media (min-width: 901px) and (max-width: 1280px) {
  .tv-shell .mini-metric { grid-template-columns: minmax(0, 1fr); padding: 8px 12px; gap: 4px; }
  .tv-shell .mini-icon { display: none; }
}
@media (min-width: 901px) and (max-height: 760px) and (max-aspect-ratio: 32 / 9) {
  .app-shell.tv-shell { grid-template-rows: 100px minmax(0, 1fr); }
  .tv-shell main { grid-template-rows: 130px minmax(0, 1fr); }
  .tv-shell .metrics-panel { padding-top: 10px; padding-bottom: 10px; }
  .tv-shell .metric-main strong,
  .tv-shell .metric-participants strong { font-size: clamp(1.6rem, 14cqi, 3rem); }
  .tv-shell .tv-post-stage { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; }
  .tv-shell .tv-post-page { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr); }
  .tv-shell .tv-fixed-qr-lane { position: static; width: 100%; height: 100%; }
  .tv-shell .tv-fixed-qr-lane .qr-code { width: clamp(80px, 16vh, 112px); height: clamp(80px, 16vh, 112px); }
  .tv-shell .tv-fixed-qr-lane .qr-card { padding: 10px; gap: 10px; }
}

@media (max-width: 480px) {
  .privacy-header h1 { font-size: clamp(1.6rem, 7vw, 2rem); hyphens: manual; }
}

.donation-direct-link {
  display: inline-flex;
  order: 3;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  max-width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--blue-1);
  border-radius: var(--radius);
  background: var(--blue-1);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
}
.donation-direct-link:hover {
  background: var(--blue-2);
}
.donation-direct-link:focus-visible {
  outline: 3px solid var(--blue-1);
  outline-offset: 3px;
}

/* A shared explanation above all counters, separate from the event-day figures. */
.metric-context {
  display: flex;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 8px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--mint-3);
  color: var(--blue-2);
  font-size: 0.85rem;
  line-height: 1.45;
}
.metric-mode-badge {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 5px;
  background: #f8e6cf;
  color: #754711;
  font-size: 0.78rem;
  font-weight: 800;
}
.metric-context-copy { display: grid; gap: 2px; min-width: 0; }
.metric-context-warning { color: #99351e; }
.tv-shell #metricsMount:has(.metric-context) {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
}
.tv-shell .metric-context { margin: 0; padding: 8px 14px; }
@media (min-width: 901px) {
  .tv-shell main:has(.metric-context) {
    grid-template-rows: calc(clamp(128px, 13.6vh, 184px) + 52px) minmax(0, 1fr);
  }
}
@media (max-width: 600px) {
  .metric-context { align-items: flex-start; flex-direction: column; gap: 7px; padding: 12px; }
}

/* A direct donation action on personal screens; the TV card retains its QR focus. */
.donation-web-card {
  min-height: 0;
  gap: 20px;
  padding: 22px 18px;
  border-color: var(--line);
  background: #f3f8f6;
  box-shadow: none;
}
.donation-web-card .qr-copy { gap: 12px; }
.donation-web-card strong {
  max-width: 18ch;
  font-size: 1.2rem;
  line-height: 1.2;
}
.donation-heart {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--blue-1);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.donation-web-card .donation-direct-link { width: 100%; }
.donation-direct-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 720px) {
  .donation-web-card {
    gap: 16px;
    padding: 20px;
    text-align: left;
  }
  .donation-web-card .qr-copy {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
  }
  .donation-web-card strong { max-width: none; font-size: 1.15rem; }
  .donation-web-card .donation-heart { flex: 0 0 26px; }
  .donation-web-card:has(.donation-direct-link) .donation-qr-code { display: none; }
  .donation-web-card .donation-direct-link { min-height: 46px; }
}

/* Compact editorial header on personal mobile screens. */
@media (max-width: 720px) {
  .web-shell .brand-hero {
    grid-template-columns: 40px minmax(0, 1fr) 62px;
    grid-template-areas: "augletics event partner" "title title title";
    grid-template-rows: auto auto;
    gap: 16px 12px;
    padding: 8px 4px 18px;
    margin-bottom: 16px;
    min-height: 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .web-shell .brand-logo { padding: 0; border: 0; height: auto; }
  .web-shell .brand-logo img { width: 40px; max-height: 40px; }
  .web-shell .partner-logo { padding: 0; border: 0; height: auto; }
  .web-shell .partner-logo img { width: 62px; max-height: 46px; }
  .web-shell .partner-logo span { font-size: 0.48rem; }
  .web-shell .event-lockup { display: contents; }
  .web-shell .event-lockup p {
    grid-area: event;
    justify-self: start;
    justify-content: flex-start;
    min-height: 0;
    margin: 0;
    padding: 0;
    font-size: clamp(0.66rem, 2.8vw, 0.84rem);
    line-height: 1.3;
  }
  .web-shell .event-lockup p::before,
  .web-shell .event-lockup p::after { content: none; }
  .web-shell .event-lockup h1 {
    grid-area: title;
    justify-self: start;
    margin: 0;
    max-width: 100%;
    font-size: clamp(1.65rem, 7.1vw, 2.35rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.035em;
    text-align: left;
    text-wrap: balance;
    white-space: normal;
  }
  .web-shell .event-lockup h1 span { display: inline; }
}

/* Personal mobile view: one compact scorecard and calmer secondary content. */
@media (max-width: 720px) {
  .app-shell.web-shell { padding: 16px; }
  .web-shell .brand-hero { padding-left: 0; padding-right: 0; border-bottom: 0; margin-bottom: 10px; }
  .web-shell .event-lockup h1 { font-size: clamp(1.65rem, 7.4vw, 2.35rem); }
  .web-shell .metric-context {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    padding: 16px 18px 12px;
    border-radius: 14px 14px 0 0;
    border-bottom: 0;
    background: #f0f6f3;
    font-size: 0.75rem;
    line-height: 1.5;
  }
  .web-shell .metric-mode-badge { font-size: 0.68rem; padding: 3px 7px; }
  .web-shell .metric-context-copy { flex: 1 1 200px; }
  .web-shell .metrics-panel {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr);
    gap: 18px 14px;
    padding: 20px 18px 18px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: #f0f6f3;
    box-shadow: none;
  }
  .web-shell .metric-context + .metrics-panel { border-top: 0; border-radius: 0 0 14px 14px; }
  .web-shell .metric-main { padding: 0; }
  .web-shell .metric-main .metric-icon,
  .web-shell .metric-participants .metric-icon { display: none; }
  .web-shell .metric-participants {
    grid-column: 2;
    grid-row: 1;
    align-self: stretch;
    padding-left: 14px;
    border-left: 1px solid var(--line);
  }
  .web-shell .metric-main strong { font-size: clamp(1.7rem, 20cqi, 2.5rem); line-height: 1.05; }
  .web-shell .metric-participants strong { font-size: clamp(1.5rem, 25cqi, 2rem); line-height: 1.05; }
  .web-shell .metric-main span,
  .web-shell .metric-participants span { font-size: 0.75rem; line-height: 1.4; font-weight: 600; margin-top: 6px; }
  .web-shell .metric-breakdown { grid-column: 1 / -1; }
  .web-shell .breakdown-title { display: none; }
  .web-shell .breakdown-grid { gap: 10px; }
  .web-shell .mini-metric { min-height: 64px; padding: 12px; border: 0; border-radius: 9px; background: rgba(255, 255, 255, 0.8); }
  .web-shell .mini-metric > span { font-size: 0.75rem; font-weight: 600; color: var(--blue-1); }
  .web-shell .mini-metric strong { font-size: clamp(1.05rem, 4.8vw, 1.4rem); margin-top: 4px; }
  .web-shell .share-panel { padding: 0; gap: 10px; margin-bottom: 26px; border: 0; background: transparent; }
  .web-shell .share-panel .primary-button { min-height: 48px; border-radius: 11px; box-shadow: none; }
  .web-shell .share-panel p { font-size: 0.85rem; font-weight: 500; line-height: 1.5; text-align: center; color: var(--blue-1); }
  .web-shell .section-heading { margin-bottom: 14px; }
  .web-shell .section-heading h2 { font-size: clamp(1.18rem, 5.5vw, 1.55rem); line-height: 1.2; letter-spacing: -0.025em; }
  .web-shell .donation-web-card { padding: 18px; border-radius: 14px; gap: 14px; }
  .web-shell .donation-web-card strong { font-size: 1rem; line-height: 1.3; }
  .web-shell .donation-direct-link { border-radius: 9px; }
  .web-shell .post-card { border-radius: 14px; box-shadow: none; }
  .web-shell .post-card h3 { font-size: 1rem; line-height: 1.25; }
}
.share-panel .primary-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Geschützte Rohdatenansicht */
.raw-panel { min-width: 0; padding: clamp(16px, 3vw, 32px); background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.raw-heading { display: flex; justify-content: space-between; align-items: start; gap: 16px; flex-wrap: wrap; }
.raw-eyebrow { color: var(--blue-1); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.raw-heading h2 { margin: 10px 0; }
.raw-heading p, .raw-note { color: var(--blue-1); font-size: 14px; line-height: 1.6; }
.raw-badge { padding: 8px 12px; background: var(--mint-3); border-radius: 24px; white-space: nowrap; font-weight: 700; font-size: 13px; }
.raw-error { color: #9b321d; }
.raw-meta { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 20px 0; margin: 12px 0; border-block: 1px solid var(--line); font-size: 13px; }
.raw-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.raw-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 20px; border-radius: 10px; background: var(--mint-3); }
.raw-card strong { font-size: clamp(20px, 2vw, 30px); font-variant-numeric: tabular-nums; }
.raw-card small { color: var(--blue-1); overflow-wrap: anywhere; }
.raw-table-wrap { overflow-x: auto; }
.raw-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
.raw-table th, .raw-table td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.raw-table thead { background: var(--mint-3); }
.raw-table pre, .raw-json pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; }
.raw-table th { overflow-wrap: anywhere; }
.raw-json { margin-top: 24px; padding: 18px; background: #102e38; color: #e3f3ef; border-radius: 10px; }
.raw-json summary { cursor: pointer; font-weight: 700; }
.raw-json pre { margin-top: 18px; max-height: 480px; overflow: auto; }
@media (max-width: 640px) { .raw-table th, .raw-table td { padding: 10px 6px; } .raw-table { table-layout: fixed; } }
