:root {
  --bg: #f9f3ea;
  --bg-accent: #f3eadc;
  --panel: rgba(255, 251, 245, 0.86);
  --panel-strong: rgba(255, 252, 248, 0.98);
  --text: #536f6f;
  --muted: #7f9793;
  --line: rgba(176, 188, 180, 0.35);
  --brand: #73918d;
  --brand-soft: #eef5f3;
  --brand-accent: #f0b98a;
  --brand-lavender: #c8b7ea;
  --brand-seafoam: #9edfdc;
  --brand-gold: #ccb36a;
  --brand-ivory: #fffaf1;
  --success: #e6f6ef;
  --success-text: #4c8c6b;
  --shadow: 0 28px 70px rgba(160, 157, 140, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(240, 185, 138, 0.22), transparent 26%),
    radial-gradient(circle at 83% 18%, rgba(158, 223, 220, 0.18), transparent 18%),
    radial-gradient(circle at 18% 82%, rgba(200, 183, 234, 0.14), transparent 22%),
    linear-gradient(180deg, var(--brand-ivory) 0%, var(--bg) 55%, #f5ede2 100%);
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.5), transparent 65%);
  opacity: 0.6;
}

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

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

.page-shell {
  width: min(1280px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 40px 0 56px;
}

.flash-message {
  position: sticky;
  top: 14px;
  z-index: 20;
  margin-bottom: 12px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(23, 32, 51, 0.92);
  color: #fff;
  box-shadow: var(--shadow);
}

.flash-message[data-error="true"] {
  background: #9c2f2f;
}

.hero,
.panel,
.source-item,
.event-card {
  backdrop-filter: blur(18px);
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 28px;
  padding: 24px 28px;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 249, 240, 0.88), rgba(243, 250, 248, 0.9)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent);
  border: 1px solid rgba(204, 179, 106, 0.2);
  box-shadow: var(--shadow);
}

.eyebrow,
.panel-kicker,
.form-title,
.select-wrap span,
.input-wrap span,
.summary-score-label {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero h1,
.panel h2,
.source-name,
.event-title {
  margin: 0;
  line-height: 1.05;
}

.hero h1 {
  margin: 0;
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}

.hero-copy {
  max-width: 520px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

.hero-subtitle {
  margin: 10px 0 0;
  max-width: 640px;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.12;
  color: #6d8782;
  font-weight: 700;
}

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

.hero-logo-wrap {
  width: 112px;
  min-width: 112px;
  aspect-ratio: 1;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(204, 179, 106, 0.18);
  display: grid;
  place-items: center;
  padding: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.hero-logo {
  width: 100%;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  opacity: 0.96;
}

.hero-copy-wrap {
  display: grid;
  gap: 18px;
  padding-top: 2px;
}

.hero-nav {
  display: flex;
  justify-content: flex-end;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--brand);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(115, 145, 141, 0.16);
  font-weight: 700;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 14px 18px;
  border-radius: 24px;
  background: rgba(255, 251, 245, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.admin-topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-topbar-logo {
  width: 62px;
  min-width: 62px;
  border-radius: 18px;
}

.admin-topbar-overline {
  margin: 0 0 4px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.admin-topbar-title {
  color: #5b7772;
  font-size: 1rem;
}

.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-auth-shell {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 120px);
}

.admin-auth-shell[hidden] {
  display: none !important;
}

#adminAppShell[hidden] {
  display: none !important;
}

.admin-auth-card {
  width: min(860px, 100%);
  display: grid;
  gap: 24px;
  padding: 28px;
  border-radius: 30px;
  background: rgba(255, 251, 245, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.admin-auth-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-auth-copy {
  margin: 0;
  max-width: 60ch;
  color: var(--muted);
  line-height: 1.6;
}

.admin-auth-switch {
  display: inline-flex;
  width: fit-content;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(115, 145, 141, 0.16);
  gap: 6px;
}

.admin-auth-switch-button {
  border: 0;
  background: transparent;
  color: var(--brand);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
}

.admin-auth-switch-button.is-active {
  background: linear-gradient(135deg, #8ba6a0, #7c9f99 48%, #87c8c3 100%);
  color: #fff;
}

.admin-auth-stack {
  display: grid;
}

.admin-auth-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(115, 145, 141, 0.12);
}

.admin-auth-form[hidden] {
  display: none !important;
}

.admin-auth-form h2 {
  margin: 0;
  color: #5b7772;
  font-size: 1.2rem;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-tab {
  border: 1px solid rgba(115, 145, 141, 0.16);
  background: rgba(255, 255, 255, 0.72);
  color: var(--brand);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}

.admin-tab.is-active {
  background: linear-gradient(135deg, #8ba6a0, #7c9f99 48%, #87c8c3 100%);
  color: #fff;
}

.sources-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-stat {
  min-width: 180px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(252, 247, 239, 0.84));
  border: 1px solid rgba(158, 223, 220, 0.28);
  color: #69847f;
  font-weight: 600;
}

.hero-stat span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-gold);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.8fr);
  gap: 22px;
  align-items: start;
}

.dashboard-grid-single {
  grid-template-columns: 1fr;
}

.scrapers-stack {
  display: grid;
  gap: 18px;
}

.admin-panel-view[hidden] {
  display: none !important;
}

.panel {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
}

.panel-sources,
.panel-events {
  padding: 24px;
}

.panel-events {
  margin-top: 22px;
}

.subscriber-shell,
.newsletter-compose,
.newsletter-library {
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 252, 247, 0.88), rgba(244, 251, 249, 0.9));
  border: 1px solid rgba(204, 179, 106, 0.14);
  overflow: hidden;
}

.subscriber-table-head,
.subscriber-row {
  display: grid;
  grid-template-columns: 60px minmax(0, 1.7fr) 180px 140px 110px;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
}

.subscriber-table-head {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-bottom: 1px solid rgba(204, 179, 106, 0.12);
}

.subscriber-row {
  border-bottom: 1px solid rgba(204, 179, 106, 0.08);
}

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

.subscriber-email {
  font-weight: 700;
  color: #395552;
  overflow-wrap: anywhere;
}

.newsletter-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.25fr);
  gap: 18px;
}

.newsletter-compose,
.newsletter-library {
  padding: 20px;
}

.newsletter-compose-head h3 {
  margin: 0 0 6px;
}

.newsletter-compose-head p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.5;
}

.newsletter-form {
  display: grid;
  gap: 14px;
}

.form-row-split {
  grid-template-columns: minmax(0, 1.5fr) minmax(180px, 0.7fr);
}

.newsletter-form textarea,
.newsletter-form select,
.newsletter-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  padding: 12px 14px;
}

.newsletter-auto-note {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(204, 179, 106, 0.14);
  color: var(--muted);
  line-height: 1.55;
}

.newsletter-list {
  display: grid;
  gap: 14px;
}

.newsletter-card {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(204, 179, 106, 0.14);
  display: grid;
  gap: 14px;
}

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

.newsletter-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.newsletter-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.newsletter-pill-kind {
  background: rgba(200, 183, 234, 0.24);
  color: #7d54b5;
}

.newsletter-pill-status {
  background: rgba(240, 185, 138, 0.22);
  color: #b9732f;
}

.newsletter-subject {
  margin: 0;
  font-size: 1.5rem;
  color: #395552;
}

.newsletter-preview,
.newsletter-meta {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.newsletter-send-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.newsletter-test-wrap {
  margin: 0;
}

.newsletter-send-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.newsletter-preview-shell {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 250, 242, 0.68), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(158, 223, 220, 0.2);
}

.newsletter-preview-overline {
  margin: 0 0 10px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #af99d6;
}

.newsletter-preview-subject {
  margin: 0 0 10px;
  font-size: 2rem;
  line-height: 1.05;
  color: #3f5d59;
}

.newsletter-preview-intro {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.6;
}

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

.newsletter-preview-event {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: rgba(255, 251, 246, 0.92);
  box-shadow: var(--shadow);
}

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

.newsletter-preview-event-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.newsletter-preview-event-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(21, 35, 34, 0.08) 0%, rgba(21, 35, 34, 0.22) 42%, rgba(21, 35, 34, 0.8) 100%);
}

.newsletter-preview-event-copy {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  align-content: end;
  gap: 7px;
  padding: 18px;
  color: #fff9f1;
}

.newsletter-preview-event-type {
  margin: 0;
  color: #c8f0ea;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.newsletter-preview-event-title {
  margin: 0;
  color: #fff9f1;
  font-size: clamp(1.3rem, 1.8vw, 2rem);
  line-height: 1.02;
}

.newsletter-preview-event-meta {
  margin: 0;
  color: rgba(248, 251, 250, 0.92);
  font-size: 0.94rem;
  line-height: 1.45;
}

.newsletter-preview-event-description {
  margin: 0;
  color: rgba(248, 251, 250, 0.96);
  font-size: 0.98rem;
  line-height: 1.55;
}

.newsletter-preview-event-empty {
  grid-column: 1 / -1;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(204, 179, 106, 0.1);
  color: var(--muted);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.panel-header.compact {
  margin-bottom: 18px;
}

.panel-header-events {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.panel-header-events .toolbar {
  justify-content: flex-end;
}

.events-toolbar-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.panel h2 {
  font-size: 1.7rem;
}

.nightly-pill,
.status-chip,
.source-badge,
.score-badge,
.score-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
}

.nightly-pill {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(247, 241, 255, 0.56));
  color: var(--text);
  padding: 12px 16px;
  font-weight: 600;
  border: 1px solid rgba(200, 183, 234, 0.25);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-seafoam);
  box-shadow: 0 0 0 8px rgba(158, 223, 220, 0.18);
}

.source-list {
  display: grid;
  gap: 14px;
}

.source-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(252, 246, 239, 0.8));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.source-main,
.source-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

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

.source-main > div {
  min-width: 0;
}

.source-name {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.source-url,
.source-last-run,
.source-diagnostics,
.event-description,
.event-meta,
.summary-note,
.event-source-line {
  color: var(--muted);
}

.source-url {
  text-decoration: none;
  word-break: break-all;
}

.source-url:hover {
  color: var(--brand);
}

.source-badge {
  padding: 9px 12px;
  background: linear-gradient(135deg, rgba(200, 183, 234, 0.28), rgba(158, 223, 220, 0.22));
  color: #8b7eb8;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.source-meta {
  min-width: 320px;
  justify-content: flex-end;
  align-items: center;
}

.source-meta-details {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: flex-end;
  min-width: 0;
}

.source-meta-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 8px;
}

.source-error {
  width: 100%;
  margin: 8px 0 0;
  color: #9c2f2f;
  font-size: 0.92rem;
}

.source-diagnostics {
  width: 100%;
  margin: 8px 0 0;
  font-size: 0.88rem;
}

.source-last-run {
  margin: 0;
}

.status-chip {
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(230, 246, 239, 0.98), rgba(158, 223, 220, 0.28));
  color: var(--success-text);
  font-weight: 700;
}

.source-form {
  margin-top: 18px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.source-form-top {
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-top: 0;
  border-bottom: 0;
}

.form-title {
  margin: 0 0 14px;
  font-weight: 700;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 2fr 180px auto;
  gap: 14px;
  align-items: end;
}

.form-row-scraper {
  grid-template-columns: 1fr 2fr auto;
}

.form-row-manual-entry {
  grid-template-columns: 1fr 1.55fr 1.2fr 1fr;
  align-items: start;
  column-gap: 14px;
  row-gap: 10px;
}

.manual-entry-form {
  display: block;
}

.manual-description-wrap {
  gap: 8px;
  grid-column: 1 / 3;
}

.manual-description-wrap span {
  line-height: 1;
}

.manual-description-wrap textarea {
  min-height: 144px;
}

.manual-entry-submit {
  grid-column: 3;
  width: 100%;
  min-width: 0;
  min-height: 58px;
  align-self: end;
  margin-bottom: 0;
}

.input-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-wrap input,
.input-wrap textarea,
.select-wrap select {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  border-radius: 16px;
  padding: 15px 16px;
  outline: none;
  transition: border-color 140ms ease, transform 140ms ease;
}

.input-wrap input:focus,
.input-wrap textarea:focus,
.select-wrap select:focus {
  border-color: rgba(158, 223, 220, 0.85);
  transform: translateY(-1px);
}

.input-wrap textarea {
  resize: vertical;
  min-height: 120px;
}

.select-wrap select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 3px),
    calc(100% - 16px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
}

.manual-file-wrap {
  min-width: 0;
  grid-column: 3;
}

.manual-host-wrap {
  max-width: none;
}

.manual-event-url-wrap {
  grid-column: 1 / 3;
}

.manual-image-url-wrap {
  grid-column: 3;
}

.manual-upload-feedback {
  grid-column: 4;
  grid-row: 2 / span 3;
  display: grid;
  gap: 6px;
  align-content: start;
  justify-items: stretch;
  min-width: 0;
  width: 100%;
  margin-top: 0;
}

.manual-file-control {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 16px;
  width: 100%;
}

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

.manual-upload-preview {
  width: 100%;
  max-width: none;
  aspect-ratio: 1 / 1;
  min-height: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(151, 161, 171, 0.35);
  background: #eef1f4;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  display: grid;
  place-items: center;
  position: relative;
}

.manual-upload-preview-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #8f9aa4;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 18px;
}

.manual-upload-preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
}

.manual-upload-status {
  min-height: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 0;
}

.manual-upload-status[data-state="success"] {
  color: var(--success-text);
  font-weight: 700;
}

.manual-upload-status:empty {
  display: none;
}

.manual-upload-status[data-state="error"] {
  color: #9c2f2f;
}

.manual-file-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  min-width: 112px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(115, 145, 141, 0.14), rgba(158, 223, 220, 0.22));
  border: 1px solid rgba(115, 145, 141, 0.18);
  color: var(--brand);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.manual-file-trigger:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(115, 145, 141, 0.12);
  background: linear-gradient(135deg, rgba(115, 145, 141, 0.18), rgba(158, 223, 220, 0.28));
}

.manual-file-name {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  text-transform: none;
}

.sort-select-wrap select {
  min-width: 160px;
  padding-right: 48px;
}

.manual-file-name[data-state="success"] {
  color: var(--success-text);
  font-weight: 700;
}

.featured-event-media.is-clickable,
.event-image-wrap.is-clickable {
  cursor: pointer;
}

.button {
  border: none;
  border-radius: 18px;
  padding: 14px 18px;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
}

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

.button-primary {
  background: linear-gradient(135deg, #8ba6a0, #7c9f99 48%, #87c8c3 100%);
  color: #fff;
  box-shadow: 0 18px 36px rgba(115, 145, 141, 0.22);
}

.button-secondary {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(247, 241, 255, 0.65));
  color: var(--brand);
  border: 1px solid rgba(115, 145, 141, 0.18);
}

.button-danger-soft {
  background: linear-gradient(135deg, rgba(255, 251, 251, 0.96), rgba(255, 235, 239, 0.92));
  color: #c17a84;
  border: 1px solid rgba(215, 162, 171, 0.3);
}

.button-lg {
  padding-inline: 24px;
  min-height: 58px;
  font-size: 1rem;
  font-weight: 700;
}

.button-small {
  padding: 10px 14px;
  border-radius: 14px;
}

.summary-score {
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(160deg, rgba(118, 149, 143, 0.96), rgba(148, 198, 195, 0.88), rgba(200, 183, 234, 0.82)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.25), transparent);
  color: #f9fbff;
}

.summary-score strong {
  display: block;
  font-size: 4rem;
  line-height: 1;
  margin: 10px 0;
}

.summary-score p,
.summary-score-label {
  color: rgba(245, 248, 255, 0.78);
}

.criteria-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 10px;
  display: grid;
  gap: 10px;
}

.criteria-list li {
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(250, 245, 255, 0.6));
  border-radius: 16px;
  border: 1px solid var(--line);
  font-weight: 600;
}

.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}

.select-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toolbar .select-wrap {
  gap: 3px;
}

.toolbar .select-wrap select {
  min-height: 38px;
  padding: 7px 12px;
  border-radius: 12px;
  font-size: 0.96rem;
}

.toolbar-refresh-button {
  min-height: 38px;
  padding: 8px 18px;
  text-align: center;
  background: linear-gradient(135deg, #dbc8f3, #c5afe8 52%, #bca4e2 100%) !important;
  color: #5b4f7d !important;
  border: 1px solid rgba(165, 138, 214, 0.72) !important;
  box-shadow: 0 10px 20px rgba(168, 142, 215, 0.24) !important;
  font-weight: 700;
}

.toolbar-refresh-button:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #d5c0f1, #bea5e6 52%, #b396de 100%) !important;
  box-shadow: 0 14px 26px rgba(168, 142, 215, 0.3) !important;
}

.event-current-toolbar {
  gap: 18px;
}

.toolbar-select-inline {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.toolbar-select-inline span {
  margin: 0;
  white-space: nowrap;
}

.source-provider-wrap {
  align-self: end;
}

.source-provider-wrap select {
  min-height: 38px;
  padding: 7px 12px;
  border-radius: 12px;
  font-size: 0.96rem;
}

.publish-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.publish-panel .feature-section-picker {
  margin-right: auto;
}

.events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.empty-state {
  padding: 30px 20px;
  text-align: center;
  border: 1px dashed rgba(204, 179, 106, 0.45);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.44);
}

.empty-state h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.event-card {
  display: grid;
  grid-template-columns: minmax(380px, 32%) minmax(0, 1fr);
  gap: 0;
  align-items: start;
  overflow: hidden;
  border-radius: 24px;
  background: var(--panel-strong);
  border: 1px solid rgba(204, 179, 106, 0.12);
  box-shadow: 0 24px 40px rgba(166, 160, 139, 0.12);
  position: relative;
}

.event-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-accent), var(--brand-lavender), var(--brand-seafoam));
}

.event-image-wrap {
  position: relative;
  height: 100%;
  min-height: 320px;
  overflow: hidden;
  align-self: stretch;
}

.event-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-image-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(21, 35, 34, 0.12) 0%, rgba(21, 35, 34, 0.24) 40%, rgba(21, 35, 34, 0.78) 100%);
}

.event-body {
  display: none;
}

.event-copy {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-rows: 1fr auto auto auto;
  gap: 5px;
  padding: 10px 12px;
  color: #fff9f1;
  text-align: right;
  align-content: end;
}

.event-copy-top {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  align-items: start;
}

.event-copy-content {
  margin-left: auto;
  max-width: 12rem;
}

.event-type {
  margin: 0 0 6px;
  color: #a88ec7;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
}

.event-title {
  font-size: clamp(1rem, 1.2vw, 1.28rem);
  margin-bottom: 2px;
  color: inherit;
  line-height: 1;
  max-width: 11ch;
  margin-left: auto;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-score {
  margin: 0;
  color: inherit;
  font-weight: 700;
  opacity: 0.92;
  font-size: 0.76rem;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 8px;
  font-size: 0.68rem;
  color: inherit;
  opacity: 0.92;
}

.event-description {
  margin: 0;
  max-width: 20ch;
  font-size: 0.72rem;
  line-height: 1.18;
  color: inherit;
  margin-left: auto;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-source-line {
  font-size: 0.72rem;
  margin-top: auto;
  color: inherit;
  opacity: 0.86;
}

.event-bottom {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  align-content: start;
  align-self: stretch;
  justify-self: stretch;
  width: 100%;
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.92), rgba(248, 252, 251, 0.95));
}

.review-panel {
  padding: 7px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(245, 252, 250, 0.88));
  border: 1px solid rgba(158, 223, 220, 0.22);
  display: grid;
  gap: 5px;
  grid-column: 1 / -1;
}

.publish-panel {
  padding: 8px 10px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 248, 238, 0.85), rgba(255, 255, 255, 0.96));
  border: 1px solid rgba(204, 179, 106, 0.22);
}

.publish-copy {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.92rem;
}

.feature-section-picker {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.feature-section-button.is-active {
  background: linear-gradient(135deg, #8ba6a0, #7c9f99 48%, #87c8c3 100%);
  color: #fff;
}

.display-toggle-button.is-active {
  background: linear-gradient(135deg, rgba(115, 145, 141, 0.92), rgba(158, 223, 220, 0.82));
  color: #fff;
}

.review-title {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.review-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 0;
}

.review-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px;
  align-items: start;
  padding: 4px 5px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(158, 223, 220, 0.16);
  min-width: 0;
}

.review-label {
  font-weight: 600;
  padding-top: 2px;
  font-size: 0.68rem;
  line-height: 1.15;
  min-width: 0;
}

.review-rating-group {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
}

.review-rating-option {
  position: relative;
  display: inline-flex;
}

.review-rating-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.review-rating-option span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  transition: background 140ms ease, color 140ms ease;
}

.review-rating-option input:checked + span {
  background: linear-gradient(135deg, #8ba6a0, #7c9f99 48%, #87c8c3 100%);
  color: #fff;
}

.review-rating-option input:focus-visible + span {
  outline: 2px solid rgba(124, 159, 153, 0.42);
  outline-offset: 1px;
}

.review-row input {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  border-radius: 10px;
  padding: 3px 6px;
  font-size: 0.7rem;
  min-width: 0;
}

.review-row input {
  grid-column: 1 / -1;
  line-height: 1.1;
}

.score-pill {
  display: grid;
  gap: 2px;
  padding: 7px 8px;
  background: linear-gradient(135deg, rgba(255, 248, 238, 0.72), rgba(240, 250, 248, 0.78));
  border: 1px solid rgba(158, 223, 220, 0.18);
  font-size: 0.74rem;
  border-radius: 12px;
}

.score-pill strong {
  font-size: 0.9rem;
}

.publish-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  grid-column: 1 / -1;
}

.score-summary {
  display: grid;
  gap: 2px;
}

.score-summary-inline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 5px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(158, 223, 220, 0.18);
}

.score-summary-inline span {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.score-summary-value {
  font-size: 1rem;
  line-height: 1;
  color: var(--brand);
}

.image-tone-light .event-image-overlay {
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.06) 0%, rgba(255, 250, 243, 0.12) 40%, rgba(255, 250, 243, 0.84) 100%);
}

.image-tone-light .event-copy {
  color: #49645f;
}

.image-tone-dark .event-copy {
  color: #fff9f1;
}

.public-shell {
  width: min(1260px, calc(100vw - 64px));
  padding-top: 42px;
  padding-bottom: 96px;
}

.public-hero {
  display: grid;
  gap: 22px;
  margin-bottom: 56px;
  position: relative;
  z-index: 2;
}

.public-vibe-bar {
  height: 5px;
  width: 100%;
  border-radius: 999px;
  background:
    linear-gradient(160deg, rgba(118, 149, 143, 0.96), rgba(148, 198, 195, 0.88), rgba(200, 183, 234, 0.82)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent);
  box-shadow: 0 8px 16px rgba(115, 145, 141, 0.1);
}

.public-hero-topline {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-start;
}

.public-brand-lockup {
  display: flex;
  align-items: center;
  gap: 28px;
}

.public-brand-copy {
  display: grid;
  align-content: center;
  gap: 12px;
  padding-top: 0;
  transform: translateY(-10px);
}

.public-logo-wrap {
  width: 320px;
  min-width: 320px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.public-overline {
  margin: 0;
  font-size: clamp(3.1rem, 5vw, 4.7rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
  line-height: 0.96;
  background:
    linear-gradient(160deg, rgba(118, 149, 143, 0.96), rgba(148, 198, 195, 0.88), rgba(200, 183, 234, 0.82));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.public-kicker,
.featured-event-type {
  margin: 0;
  font-size: clamp(2.55rem, 4.5vw, 4rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6a8983;
  font-weight: 800;
  line-height: 0.96;
}

.public-title,
.public-section-heading h2,
.featured-event-title {
  margin: 0;
  line-height: 0.96;
}

.public-title {
  max-width: 34ch;
  margin-top: 0;
  font-size: clamp(1.3rem, 2.15vw, 1.92rem);
  line-height: 1.18;
  color: #8ca5a1;
  letter-spacing: 0;
  font-weight: 500;
  white-space: normal;
}

.public-lede,
.featured-event-description,
.featured-event-source,
.featured-event-meta {
  color: var(--muted);
}

.public-main {
  display: grid;
  gap: 28px;
  position: relative;
  z-index: 1;
  clear: both;
}

.public-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 0;
}

.public-section-heading h2 {
  font-size: clamp(1.28rem, 2.15vw, 1.95rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background:
    linear-gradient(160deg, rgba(118, 149, 143, 0.98), rgba(148, 198, 195, 0.9));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 0.96;
}

.public-section-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.public-empty-state {
  margin-top: 10px;
}

.board-tab {
  border: 1px solid rgba(115, 145, 141, 0.16);
  background: rgba(255, 255, 255, 0.68);
  color: var(--brand);
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, color 140ms ease;
}

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

.board-tab.is-active {
  background: linear-gradient(135deg, #8ba6a0, #7c9f99 48%, #87c8c3 100%);
  color: #fff;
  box-shadow: 0 18px 36px rgba(115, 145, 141, 0.22);
  border-color: transparent;
}

.featured-events-grid {
  position: relative;
  min-height: 0;
}

.featured-event-card {
  display: grid;
  overflow: hidden;
  border-radius: 0;
  background: rgba(255, 251, 246, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  margin: 0;
}

.featured-event-media {
  position: relative;
  min-height: 100% !important;
  height: 100%;
  overflow: hidden;
}

.featured-event-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 220ms ease;
}

.featured-event-card:hover .featured-event-image {
  transform: scale(1.045);
}

.featured-event-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(21, 35, 34, 0.1) 0%, rgba(21, 35, 34, 0.26) 44%, rgba(21, 35, 34, 0.8) 100%);
}

.featured-event-copy {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  padding: 18px;
  color: #fff9f1;
}

.featured-events-grid[data-layout-density="dense"] .featured-event-copy,
.featured-events-grid[data-layout-density="mega"] .featured-event-copy {
  gap: 8px;
  padding: 14px;
}

.featured-event-topline {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.featured-event-schedule {
  display: grid;
  gap: 2px;
}

.featured-event-day,
.featured-event-time {
  margin: 0;
}

.featured-event-day {
  font-size: clamp(1.25rem, 1.7vw, 1.8rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: #d8d5ff;
  text-shadow: 0 1px 10px rgba(72, 78, 132, 0.22);
}

.featured-event-time {
  font-size: 1rem;
  font-weight: 700;
  opacity: 0.92;
  color: #bfc7ff;
  text-shadow: 0 1px 10px rgba(72, 78, 132, 0.18);
}

.featured-event-type {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: #c8f0ea;
  font-weight: 700;
  text-align: right;
  max-width: 12ch;
}

.featured-event-main {
  align-self: end;
  display: grid;
  gap: 10px;
}

.featured-event-title {
  font-size: clamp(1.45rem, 1.9vw, 2.1rem);
  color: inherit;
  line-height: 1.06;
  max-width: 14ch;
  margin: 0;
}

.featured-events-grid[data-layout-density="dense"] .featured-event-title,
.featured-events-grid[data-layout-density="mega"] .featured-event-title {
  font-size: clamp(1.08rem, 1.35vw, 1.52rem);
  max-width: 12ch;
}

.featured-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 0.9rem;
  color: rgba(255, 249, 241, 0.88);
}

.featured-events-grid[data-layout-density="dense"] .featured-event-meta,
.featured-events-grid[data-layout-density="mega"] .featured-event-meta {
  gap: 5px 8px;
  font-size: 0.8rem;
}

.featured-event-description {
  margin: 0;
  max-width: 38ch;
  font-size: 0.92rem;
  line-height: 1.42;
  color: rgba(255, 249, 241, 0.88);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-line-clamp: 4;
}

.featured-events-grid[data-layout-density="dense"] .featured-event-description,
.featured-events-grid[data-layout-density="mega"] .featured-event-description {
  max-width: 30ch;
  font-size: 0.82rem;
  line-height: 1.34;
  -webkit-line-clamp: 3;
}

.featured-event-card.layout-portrait .featured-event-description,
.featured-event-card.layout-tall .featured-event-description {
  max-width: 28ch;
  -webkit-line-clamp: 3;
}

.featured-event-card.layout-standard .featured-event-title,
.featured-event-card.layout-tall .featured-event-title {
  font-size: clamp(1.28rem, 1.5vw, 1.7rem);
  max-width: 12ch;
}

.featured-event-card.layout-standard .featured-event-description,
.featured-event-card.layout-tall .featured-event-description {
  font-size: 0.88rem;
}

.featured-event-card.layout-standard .featured-event-meta,
.featured-event-card.layout-tall .featured-event-meta {
  font-size: 0.84rem;
  gap: 6px 10px;
}

.featured-event-card.layout-standard .featured-event-description {
  -webkit-line-clamp: 2;
}

.featured-events-grid[data-layout-density="dense"] .featured-event-card.layout-standard .featured-event-description,
.featured-events-grid[data-layout-density="mega"] .featured-event-card.layout-standard .featured-event-description {
  -webkit-line-clamp: 3;
}

.featured-event-card.layout-portrait .featured-event-title {
  max-width: 10ch;
}

.featured-events-grid[data-layout-density="dense"] .featured-event-card.layout-feature .featured-event-title,
.featured-events-grid[data-layout-density="mega"] .featured-event-card.layout-feature .featured-event-title {
  font-size: clamp(1.3rem, 1.6vw, 1.8rem);
  max-width: 14ch;
}

.featured-events-grid[data-layout-density="dense"] .featured-event-card.layout-feature .featured-event-description,
.featured-events-grid[data-layout-density="mega"] .featured-event-card.layout-feature .featured-event-description {
  -webkit-line-clamp: 4;
}

.featured-events-grid[data-layout-density="mega"] .featured-event-day {
  font-size: clamp(1rem, 1.2vw, 1.22rem);
}

.featured-events-grid[data-layout-density="mega"] .featured-event-time {
  font-size: 0.84rem;
}

.featured-events-grid[data-layout-density="mega"] .featured-event-type {
  font-size: 0.66rem;
}

.featured-event-card.layout-portrait .featured-event-meta {
  display: block;
}

.featured-event-card.layout-portrait .featured-event-meta span {
  display: block;
  margin-bottom: 4px;
}

.image-tone-light .featured-event-overlay {
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.05) 0%, rgba(255, 250, 243, 0.14) 45%, rgba(255, 250, 243, 0.78) 100%);
}

.tone-body-dark .featured-event-title,
.tone-body-dark .featured-event-meta,
.tone-body-dark .featured-event-description {
  color: #49635f;
  text-shadow: none;
}

.tone-body-light .featured-event-title,
.tone-body-light .featured-event-meta,
.tone-body-light .featured-event-description {
  color: #fff9f1;
}

.tone-top-dark .featured-event-day {
  color: #746fb4;
  text-shadow: none;
}

.tone-top-dark .featured-event-time {
  color: #838bd1;
  text-shadow: none;
}

.tone-top-light .featured-event-day {
  color: #d8d5ff;
  text-shadow: 0 1px 10px rgba(72, 78, 132, 0.22);
}

.tone-top-light .featured-event-time {
  color: #bfc7ff;
  text-shadow: 0 1px 10px rgba(72, 78, 132, 0.18);
}

.tone-type-dark .featured-event-type {
  color: #668b86;
  text-shadow: none;
}

.tone-type-light .featured-event-type {
  color: #c8f0ea;
  text-shadow: 0 1px 10px rgba(35, 55, 53, 0.2);
}

@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

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

  .sources-actions {
    justify-content: flex-start;
  }

  .signup-banner,
  .newsletter-layout,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer-bottom {
    text-align: center;
  }

  .subscriber-table-head,
  .subscriber-row {
    grid-template-columns: 44px minmax(0, 1.5fr) 140px 120px 94px;
    font-size: 0.92rem;
  }

  .featured-events-grid {
    position: relative;
  }

  .public-section-heading,
  .public-hero-topline {
    flex-direction: column;
    align-items: stretch;
  }

  .featured-event-card,
  .featured-event-card.layout-wide,
  .featured-event-card.layout-feature,
  .featured-event-card.layout-standard,
  .featured-event-card.layout-tall {
    margin-bottom: 0;
  }

  .featured-event-card.layout-portrait .featured-event-media,
  .featured-event-card.layout-wide .featured-event-media,
  .featured-event-media {
    min-height: 320px;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100vw - 18px, 100%);
    padding-top: 20px;
  }

  .panel-sources,
  .panel-summary,
  .panel-events {
    padding: 18px;
  }

  .source-item,
  .source-main,
  .source-meta,
  .event-heading,
  .panel-header {
    flex-direction: column;
    align-items: stretch;
  }

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

  .manual-entry-actions {
    grid-template-columns: 1fr;
  }

  .manual-entry-submit {
    width: 100%;
    min-width: 0;
  }

  .manual-event-url-wrap,
  .manual-image-url-wrap,
  .manual-upload-feedback {
    grid-column: auto;
    grid-row: auto;
  }

  .subscriber-table-head {
    display: none;
  }

  .subscriber-row {
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: start;
  }

  .signup-fields,
  .signup-fields-footer {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    gap: 10px;
  }

  .site-footer-signup {
    justify-items: center;
    text-align: center;
    padding-inline: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-footer-footerline {
    grid-template-columns: repeat(2, max-content);
    justify-content: center;
    column-gap: 28px;
    row-gap: 12px;
  }

  .signup-input {
    min-width: 0;
    width: 100%;
    flex: 1 1 auto;
  }

  .newsletter-card-top {
    flex-direction: column;
  }

  .newsletter-send-tools,
  .newsletter-preview-grid {
    grid-template-columns: 1fr;
  }

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

  .review-row {
    grid-template-columns: 1fr 72px;
  }

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

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

  .event-image-wrap {
    min-height: 220px;
    aspect-ratio: 16 / 10;
  }

  .event-copy {
    padding: 16px;
  }

  .event-bottom {
    display: grid;
  }

  .featured-event-copy {
    padding: 16px;
  }

  .featured-event-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .event-aside {
    padding: 0 18px 18px;
  }

  .hero-brand {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-logo-wrap {
    width: 88px;
    min-width: 88px;
  }

  .hero h1 {
    white-space: normal;
  }

  .public-shell {
    width: min(100vw - 18px, 100%);
    padding-top: 14px;
    padding-bottom: 48px;
  }

  .public-brand-lockup {
    flex-direction: column;
    gap: 6px;
    align-items: center;
  }

  .public-logo-wrap {
    width: min(220px, 56vw);
    min-width: 0;
  }

  .public-vibe-bar {
    height: 4px;
  }

  .public-hero {
    gap: 16px;
    margin-bottom: 28px;
  }

  .public-hero-topline {
    gap: 18px;
  }

  .public-brand-copy {
    gap: 2px;
    transform: translateY(-12px);
    text-align: center;
    justify-items: center;
  }

  .public-overline {
    font-size: clamp(1.45rem, 8vw, 2.1rem);
    letter-spacing: 0.1em;
    line-height: 1;
  }

  .public-title {
    max-width: none;
    font-size: clamp(0.84rem, 3.6vw, 0.98rem);
    line-height: 1.18;
    white-space: nowrap;
    text-align: center;
  }

  .signup-banner-top {
    margin-top: 8px;
    gap: 12px;
  }

  .signup-title {
    font-size: clamp(1.18rem, 5.8vw, 1.42rem);
    white-space: normal;
    text-align: center;
  }

  .signup-banner-top .signup-input,
  .signup-input {
    min-width: 0;
    flex: 1 1 auto;
    width: 100%;
    font-size: 1rem;
    padding: 15px 18px;
  }

  .signup-button {
    width: auto;
    flex: 0 0 auto;
    min-height: 54px;
    padding-inline: 18px;
  }

  .public-section-heading {
    gap: 14px;
    align-items: stretch;
  }

  .public-section-heading h2 {
    font-size: clamp(1rem, 5vw, 1.2rem);
    line-height: 1.1;
    text-align: center;
  }

  .public-section-controls {
    justify-content: center;
    gap: 8px;
  }

  .board-tab {
    flex: 1 1 0;
    min-width: 0;
    padding: 11px 12px;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
  }

  .featured-events-grid {
    position: relative;
  }

  .featured-event-media {
    min-height: 280px;
  }

  .featured-event-copy {
    gap: 8px;
    padding: 14px;
  }

  .featured-event-topline {
    gap: 10px;
  }

  .featured-event-day {
    font-size: 1rem;
  }

  .featured-event-time {
    font-size: 0.8rem;
  }

  .featured-event-type {
    font-size: 0.62rem;
    max-width: 14ch;
  }

  .featured-event-main {
    gap: 8px;
  }

  .featured-event-title,
  .featured-event-card.layout-standard .featured-event-title,
  .featured-event-card.layout-tall .featured-event-title,
  .featured-event-card.layout-portrait .featured-event-title {
    max-width: none;
    font-size: clamp(1.18rem, 6vw, 1.5rem);
    line-height: 1.06;
  }

  .featured-event-meta,
  .featured-event-card.layout-standard .featured-event-meta,
  .featured-event-card.layout-tall .featured-event-meta {
    gap: 4px 8px;
    font-size: 0.76rem;
  }

  .featured-event-description,
  .featured-event-card.layout-standard .featured-event-description,
  .featured-event-card.layout-tall .featured-event-description,
  .featured-event-card.layout-portrait .featured-event-description {
    max-width: none;
    font-size: 0.8rem;
    line-height: 1.34;
    -webkit-line-clamp: 3;
  }

  .site-footer {
    gap: 28px;
    margin-top: 28px;
    padding: 44px 18px 24px;
  }

  .site-footer-title {
    font-size: clamp(1.18rem, 5.6vw, 1.4rem);
  }

  .site-footer-signup {
    gap: 12px;
    padding-inline: 0;
  }

  .site-footer-footerline {
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: 8px;
    text-align: center;
  }

  .site-footer-footerline span,
  .site-footer-name {
    font-size: 0.92rem;
  }
}

.public-title {
  font-size: clamp(1rem, 1.7vw, 1.45rem);
}

.signup-banner {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 0 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  width: 100%;
  margin-inline: auto;
}

.signup-banner-top {
  margin-top: 24px;
  flex-wrap: wrap;
  max-width: 100%;
}

.signup-kicker {
  margin: 0 0 6px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-gold);
}

.signup-title {
  margin: 0;
  background:
    linear-gradient(160deg, rgba(118, 149, 143, 0.98), rgba(148, 198, 195, 0.9));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  line-height: 1.12;
  white-space: nowrap;
}

.signup-copy {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
  max-width: 48ch;
  font-size: 1.02rem;
}

.signup-fields {
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
}

.signup-banner-top .signup-input {
  min-width: min(360px, 40vw);
  flex: 0 1 360px;
}

.signup-input {
  min-width: min(520px, 56vw);
  flex: 0 1 520px;
  border-radius: 999px;
  border: 1px solid rgba(115, 145, 141, 0.16);
  background: rgba(255, 255, 255, 0.82);
  padding: 18px 22px;
  color: var(--text);
  font-size: 1.08rem;
}

.signup-input::placeholder {
  color: rgba(107, 129, 125, 0.72);
}

.signup-button {
  white-space: nowrap;
  min-height: 62px;
  padding-inline: 28px;
}

.newsletter-cta-button {
  background: linear-gradient(180deg, #a5c1bc 0%, #97b7b1 100%) !important;
  color: #fff !important;
  box-shadow: 0 14px 28px rgba(115, 145, 141, 0.18) !important;
  border: none !important;
}

.newsletter-cta-button:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #9ab8b2 0%, #8dafaa 100%) !important;
  box-shadow: 0 18px 32px rgba(115, 145, 141, 0.22) !important;
}

.signup-message {
  margin: 8px 0 0;
  color: #8d76bc;
  font-weight: 600;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.signup-message[data-error="true"] {
  color: #9c2f2f;
}

.site-footer {
  display: grid;
  gap: 42px;
  margin-top: 40px;
  padding: 72px max(24px, calc((100vw - 1120px) / 2)) 28px;
  border-top: 1px solid rgba(204, 179, 106, 0.16);
  background: transparent;
  box-shadow: none;
  justify-items: center;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.site-footer > * {
  margin-inline: auto;
}

.site-footer-admin {
  margin-top: 24px;
  padding-top: 28px;
}

.site-footer-signup {
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
  padding: 0 18px 8px;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

.site-footer-signup .signup-copy {
  margin: 0 auto;
  text-align: center;
}

.site-footer-title {
  margin: 0;
  color: #6d8782;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  line-height: 1.12;
}

.signup-fields-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto;
}

.signup-fields-footer .signup-input {
  min-width: min(640px, 84vw);
  flex: 0 1 min(640px, 84vw);
}

.signup-fields-footer .signup-message {
  flex-basis: 100%;
  width: 100%;
  text-align: center;
  margin-top: 10px;
}

.site-footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 26px;
  border-top: 1px solid rgba(204, 179, 106, 0.16);
  width: 100%;
  margin: 0 auto;
}

.site-footer-footerline {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  align-items: center;
  justify-content: center;
  column-gap: clamp(28px, 5vw, 78px);
  row-gap: 10px;
  width: 100%;
  max-width: 1120px;
  text-align: center;
}

.site-footer-name {
  color: #5d7873;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.98rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}

.site-footer-footerline span {
  color: var(--muted);
  font-size: 1rem;
}

@media (max-width: 760px) {
  body.public-body,
  .public-shell,
  .site-footer {
    overflow-x: clip;
  }

  .public-lede {
    max-width: none;
    font-size: 1.02rem;
  }

  .signup-banner,
  .signup-banner-top {
    width: 100%;
    max-width: 100%;
    gap: 12px;
  }

  .signup-fields,
  .signup-fields-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: min(100%, 320px);
    margin: 0 auto;
    max-width: 100%;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  .signup-banner-top .signup-input,
  .signup-fields-footer .signup-input,
  .signup-input {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    flex: 1 1 auto;
    min-height: 54px;
    padding: 0 18px;
    font-size: 1rem;
    line-height: 1.2;
    border-radius: 28px;
  }

  .signup-button,
  .newsletter-cta-button {
    width: auto;
    max-width: none;
    min-width: 118px;
    min-height: 54px;
    padding: 0 18px;
  }

  .site-footer {
    width: 100%;
    padding-left: 18px;
    padding-right: 18px;
    overflow-x: clip;
  }

  .site-footer-signup {
    width: 100%;
    max-width: 100%;
    padding-inline: 0;
  }

  .signup-fields-footer .signup-message {
    grid-column: 1 / -1;
  }

  .featured-event-media {
    min-height: 260px;
  }

  .featured-events-grid {
    position: relative;
  }

  .featured-event-card,
  .featured-event-card.layout-wide,
  .featured-event-card.layout-feature,
  .featured-event-card.layout-standard,
  .featured-event-card.layout-tall {
    margin-bottom: 0;
  }

  .public-section-controls {
    width: 100%;
  }

  .board-tab {
    flex: 1 1 180px;
  }

  .featured-event-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .public-shell,
  .signup-banner-top,
  .site-footer,
  .site-footer-signup,
  .site-footer-bottom,
  .site-footer-footerline {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .site-footer {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .signup-banner-top .signup-fields,
  .site-footer-signup .signup-fields-footer {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: min(100%, 320px) !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }

  .signup-banner-top .signup-input,
  .site-footer-signup .signup-input {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    flex: 1 1 auto !important;
    min-height: 52px !important;
    padding: 0 16px !important;
  }

  .signup-banner-top .signup-button,
  .signup-banner-top .newsletter-cta-button,
  .site-footer-signup .signup-button,
  .site-footer-signup .newsletter-cta-button {
    width: auto !important;
    min-width: 104px !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    min-height: 52px !important;
    padding: 0 14px !important;
  }

  .site-footer-signup {
    justify-items: center !important;
    padding-inline: 0 !important;
  }

  .site-footer-title,
  .site-footer-signup .signup-copy {
    width: 100% !important;
    max-width: 320px !important;
    margin-inline: auto !important;
    text-align: center !important;
  }

  .site-footer-signup .signup-message,
  .signup-banner-top .signup-message {
    flex-basis: 100% !important;
    width: 100% !important;
    text-align: center !important;
    margin: 8px auto 0 !important;
  }

  .site-footer-footerline {
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    text-align: center !important;
    row-gap: 10px !important;
  }
}
