:root {
  --bg: #f3efe5;
  --panel: rgba(255, 252, 245, 0.88);
  --panel-border: rgba(89, 64, 37, 0.15);
  --ink: #221a13;
  --muted: #6c6258;
  --accent: #c48d18;
  --accent-strong: #4eaf0a;
  --danger: #9d3412;
  --shadow: 0 20px 60px rgba(47, 28, 7, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(196, 141, 24, 0.18), transparent 22%),
    linear-gradient(180deg, #f8f3e8 0%, #ede7d8 100%);
}

.layout {
  width: min(1200px, calc(100vw - 32px));
  margin: 32px auto 48px;
}

.hero {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  color: var(--accent-strong);
}

h1,
h2,
.preview-title {
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 0.95;
}

.lead {
  max-width: 58ch;
  font-size: 1.05rem;
  color: var(--muted);
}

.hero-card,
.panel,
.game-card {
  border: 1px solid var(--panel-border);
  background: var(--panel);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(244, 232, 205, 0.95)),
    linear-gradient(180deg, rgba(87, 171, 23, 0.08), transparent);
}

.hero-label {
  margin: 0 0 12px;
  color: var(--muted);
}

.hero-card code {
  white-space: pre-wrap;
  font-size: 0.95rem;
  color: #624917;
}

.panel {
  padding: 24px;
  margin-bottom: 24px;
}

.mega-upload {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 1.2fr) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 18px;
}

.mega-upload label {
  margin-bottom: 0;
}

.mega-dashboard {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.section-head.compact {
  align-items: center;
  margin-bottom: 10px;
}

.section-head.compact h3,
.episode-title-row h3 {
  margin: 0;
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
}

.episode-items {
  display: grid;
  gap: 8px;
}

.episode-items.empty,
.episode-detail.empty {
  color: var(--muted);
  padding: 14px 0;
}

.episode-item {
  width: 100%;
  border-radius: 8px;
  padding: 12px;
  text-align: left;
  background: rgba(34, 26, 19, 0.06);
  color: var(--ink);
}

.episode-item.active {
  background: rgba(78, 175, 10, 0.16);
}

.episode-item strong,
.episode-item span {
  display: block;
}

.episode-item span,
.pipeline-step span,
.episode-title-row p {
  color: var(--muted);
  font-size: 0.92rem;
}

.episode-title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.pipeline-steps {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.pipeline-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-left: 5px solid rgba(34, 26, 19, 0.18);
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.62);
  border-radius: 8px;
}

.pipeline-step.completed {
  border-left-color: var(--accent-strong);
}

.pipeline-step.running {
  border-left-color: var(--accent);
}

.pipeline-step.error {
  border-left-color: var(--danger);
}

.pipeline-step.waiting_config {
  border-left-color: #5f4c28;
}

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

.review-grid label:first-child,
.review-grid label:nth-child(3),
.review-grid label:nth-child(4) {
  grid-column: 1 / -1;
}

.review-grid textarea {
  min-height: 150px;
}

.review-grid .compact-textarea {
  min-height: 110px;
}

.status-row,
.actions,
.section-head,
.editor-header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}

.status-pill {
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(78, 175, 10, 0.12);
  color: #275c03;
  font-size: 0.92rem;
}

.status-pill.muted {
  background: rgba(34, 26, 19, 0.06);
  color: var(--muted);
}

.status-pill.error {
  background: rgba(157, 52, 18, 0.1);
  color: var(--danger);
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
}

textarea,
input,
button {
  font: inherit;
}

textarea,
input {
  width: 100%;
  border: 1px solid rgba(34, 26, 19, 0.14);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.92);
}

textarea {
  min-height: 220px;
  resize: vertical;
  margin-bottom: 16px;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--accent-strong);
  color: white;
  cursor: pointer;
  transition: transform 120ms ease, opacity 120ms ease;
}

button.secondary {
  background: #5f4c28;
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

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

.hint,
#result-count,
.match-score {
  color: var(--muted);
}

.message-box {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(157, 52, 18, 0.1);
  color: var(--danger);
}

.message-box.hidden {
  display: none;
}

.progress-panel {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(34, 26, 19, 0.06);
}

.progress-panel.hidden {
  display: none;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--ink);
}

.progress-bar {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(34, 26, 19, 0.1);
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #c48d18, #4eaf0a);
  transition: width 180ms ease;
}

.results {
  display: grid;
  gap: 18px;
}

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

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

.thumbnail-transcript {
  min-height: 150px;
}

.thumbnail-direction {
  min-height: 92px;
}

.thumbnail-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 0 14px;
}

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

.concept-list.empty {
  display: block;
  color: var(--muted);
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(34, 26, 19, 0.06);
}

.concept-item {
  display: grid;
  gap: 6px;
  align-content: start;
  text-align: left;
  border: 2px solid rgba(34, 26, 19, 0.08);
  border-radius: 14px;
  padding: 12px;
  min-height: 150px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
}

.concept-item:hover {
  transform: none;
}

.concept-item.active {
  border-color: #4eaf0a;
  box-shadow: 0 0 0 2px rgba(78, 175, 10, 0.12);
}

.concept-item strong {
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: 1rem;
}

.concept-item span {
  color: #275c03;
  font-weight: 800;
}

.concept-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.25;
}

.face-list,
.style-reference-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
  margin: 14px 0 16px;
}

.face-list.empty,
.style-reference-list.empty {
  display: block;
  color: var(--muted);
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(34, 26, 19, 0.06);
}

.face-item,
.style-reference-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(34, 26, 19, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.face-item img,
.style-reference-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
}

.style-reference-item {
  grid-template-columns: 96px 1fr;
}

.style-reference-item img {
  width: 96px;
  aspect-ratio: 16 / 9;
  height: auto;
}

.style-reference-item span {
  color: var(--muted);
  font-size: 0.86rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thumbnail-result {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.thumbnail-result.hidden {
  display: none;
}

.thumbnail-result img {
  width: min(100%, 900px);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(34, 26, 19, 0.14);
  box-shadow: var(--shadow);
}

.thumbnail-result a {
  justify-self: start;
  color: white;
  background: #4eaf0a;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
}

select {
  width: 100%;
  border: 1px solid rgba(34, 26, 19, 0.14);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.92);
  font: inherit;
}

.result-dump {
  margin-top: 16px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(34, 26, 19, 0.06);
  overflow: auto;
  font-size: 0.9rem;
}

.result-dump.hidden {
  display: none;
}

.download-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.download-list.hidden {
  display: none;
}

.download-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(34, 26, 19, 0.06);
}

.download-item a {
  color: white;
  background: #4eaf0a;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.voting-body {
  background:
    radial-gradient(circle at 82% 4%, rgba(255, 207, 35, 0.24), transparent 28%),
    radial-gradient(circle at 8% 2%, rgba(32, 149, 229, 0.18), transparent 24%),
    linear-gradient(180deg, #fff7df 0%, #efe5cc 100%);
}

.voting-layout {
  max-width: 1180px;
}

.voting-hero {
  min-height: 330px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 34px;
  align-items: center;
  margin-bottom: 28px;
  padding: 24px 0 12px;
}

.voting-hero h1 {
  max-width: 760px;
  font-size: clamp(2.5rem, 5vw, 5.2rem);
  line-height: 0.9;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.72);
}

.voting-hero .lead {
  max-width: 62ch;
  font-size: 1.16rem;
}

.voting-logo-mobile {
  display: none;
  width: min(260px, 78vw);
  margin: 0 0 18px;
}

.voting-mark {
  min-height: 300px;
  display: grid;
  place-items: center;
  align-content: end;
  gap: 4px;
  border: 1px solid rgba(34, 26, 19, 0.14);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 215, 37, 0.16), transparent 42%),
    linear-gradient(145deg, rgba(4, 13, 30, 0.97), rgba(14, 44, 73, 0.95));
  color: #fff8e8;
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 12px 18px 22px;
}

.voting-mark img {
  width: min(100%, 360px);
  max-height: 245px;
  object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.35));
}

.voting-mark strong {
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #ffcf23;
  text-align: center;
}

.voting-admin-panel.hidden,
.community-mode .voting-admin-panel {
  display: none;
}

.community-direct .public-lists-panel {
  display: none;
}

.admin-mode .community-create-list-form,
.community-direct .community-create-list-form {
  display: none;
}

.community-mode .active-list-actions {
  display: none;
}

.community-mode .active-list-panel {
  padding-top: 18px;
}

.community-mode .active-list-panel > .section-head {
  margin-bottom: 6px;
}

.community-mode .active-list-panel > .section-head h2 {
  font-size: clamp(1.55rem, 5vw, 2.45rem);
  line-height: 1.04;
}

.community-mode #active-list-description {
  max-width: 70ch;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.35;
}

.community-mode #active-list-status,
.community-mode #active-list-deadline,
.community-mode #share-panel {
  display: none;
}

.community-mode .export-history {
  display: none;
}

.voting-admin-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(360px, 1.25fr);
  gap: 18px;
  align-items: start;
}

.admin-login,
.list-form,
.nomination-box,
.ballot-box {
  border-radius: 8px;
  padding: 16px;
  background: rgba(34, 26, 19, 0.05);
}

.ballot-box.hidden,
.voting-results-section.hidden {
  display: none;
}

.list-form textarea {
  min-height: 92px;
}

.form-hint {
  margin: 10px 0 0;
  color: #715d4a;
  font-size: 0.88rem;
  line-height: 1.35;
}

.action-hint {
  margin: 4px 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 205, 40, 0.18);
  border: 1px solid rgba(196, 141, 24, 0.22);
  color: var(--blue-dark);
  font-weight: 800;
}

.action-hint.hidden {
  display: none;
}

.optional-fields {
  display: grid;
  gap: 10px;
  padding: 8px 0 0;
  color: var(--muted);
}

.optional-fields summary {
  cursor: pointer;
  width: fit-content;
  color: var(--blue-dark);
  font-weight: 800;
  font-size: 0.9rem;
}

.optional-fields[open] {
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(1, 45, 82, 0.09);
}

.status-transition-hint {
  display: block;
  min-height: 2.4em;
}

.status-transition-hint.attention {
  color: #8b1e1e;
  font-weight: 800;
}

.readiness-panel {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(34, 26, 19, 0.12);
}

.readiness-panel.hidden {
  display: none;
}

.readiness-panel > strong {
  color: var(--blue-dark);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: 0.98rem;
}

.readiness-checks {
  display: grid;
  gap: 7px;
}

.hosting-launch-panel {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(1, 45, 82, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.hosting-launch-panel > div strong,
.hosting-launch-panel > div em {
  display: block;
  line-height: 1.25;
}

.hosting-launch-panel > div strong {
  color: var(--blue-dark);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: 0.95rem;
}

.hosting-launch-panel > div em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
}

.hosting-launch-panel ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hosting-launch-panel li {
  display: grid;
  grid-template-columns: 54px minmax(90px, 0.45fr) minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-width: 0;
  padding: 7px 8px;
  border-radius: 8px;
  background: rgba(34, 26, 19, 0.05);
}

.hosting-launch-panel li > span {
  display: inline-flex;
  justify-content: center;
  border-radius: 999px;
  padding: 3px 6px;
  font-size: 0.64rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hosting-launch-panel li.ok > span {
  background: rgba(78, 175, 10, 0.15);
  color: #275c03;
}

.hosting-launch-panel li.warn > span {
  background: rgba(255, 207, 35, 0.22);
  color: #624917;
}

.hosting-launch-panel li strong {
  color: var(--ink);
  font-size: 0.78rem;
}

.hosting-launch-panel li em {
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  overflow-wrap: anywhere;
}

.readiness-check {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 8px;
  border-radius: 8px;
  background: rgba(34, 26, 19, 0.06);
}

.readiness-check > span {
  display: inline-flex;
  justify-content: center;
  border-radius: 999px;
  padding: 3px 6px;
  background: rgba(34, 26, 19, 0.1);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.readiness-check strong,
.readiness-check em {
  display: block;
  line-height: 1.25;
}

.readiness-check strong {
  color: var(--ink);
  font-size: 0.86rem;
}

.readiness-check em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  overflow-wrap: anywhere;
}

.readiness-check.ok > span {
  background: rgba(78, 175, 10, 0.15);
  color: #275c03;
}

.readiness-check.warn > span {
  background: rgba(255, 207, 35, 0.22);
  color: #624917;
}

.readiness-check.error > span {
  background: rgba(178, 34, 34, 0.13);
  color: #8b1e1e;
}

.list-options {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(130px, 1fr) minmax(180px, 1fr);
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
}

.checkbox-label {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  margin-bottom: 10px;
}

.checkbox-label input {
  width: auto;
}

.message-box.success {
  background: rgba(78, 175, 10, 0.12);
  color: #275c03;
}

.toplist-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.list-panel-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
}

.toplist-list.empty,
.bgg-suggestions.empty,
.nominations.empty,
.ballot-items.empty,
.results-table.empty {
  color: var(--muted);
  padding: 14px;
  border-radius: 8px;
  background: rgba(34, 26, 19, 0.06);
}

.global-admin-dashboard {
  display: grid;
  gap: 12px;
  margin: 14px 0 16px;
}

.global-admin-dashboard.hidden {
  display: none;
}

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

.admin-dashboard-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  justify-content: space-between;
  padding: 10px;
  border-radius: 8px;
  background: rgba(34, 26, 19, 0.05);
}

.admin-dashboard-tools label {
  min-height: 0;
  max-width: 210px;
  margin: 0;
}

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

.admin-filter-bar button {
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
}

.admin-filter-bar button.active {
  background: var(--blue-dark);
  color: #fff;
}

.admin-focus-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.admin-focus-item {
  display: grid;
  gap: 6px;
  width: 100%;
  border-radius: 8px;
  padding: 12px;
  text-align: left;
  background: rgba(34, 26, 19, 0.07);
  color: var(--ink);
}

.admin-focus-item.has-results {
  background: rgba(78, 175, 10, 0.14);
  border: 1px solid rgba(78, 175, 10, 0.28);
}

.admin-focus-item.has-results em {
  color: #275c03;
  background: rgba(78, 175, 10, 0.18);
  border-color: rgba(78, 175, 10, 0.34);
}

.admin-focus-item strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-focus-item span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.3;
}

.admin-focus-item em {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  color: #012d52;
  background: rgba(255, 205, 40, 0.24);
  border: 1px solid rgba(196, 141, 24, 0.28);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1.25;
}

.toplist-item {
  width: 100%;
  display: grid;
  gap: 6px;
  text-align: left;
  border-radius: 8px;
  background: rgba(34, 26, 19, 0.07);
  color: var(--ink);
}

.toplist-item.active {
  background: rgba(78, 175, 10, 0.17);
}

.toplist-item.has-results {
  background: rgba(78, 175, 10, 0.14);
  border: 1px solid rgba(78, 175, 10, 0.28);
}

.toplist-item span {
  color: var(--muted);
  font-size: 0.9rem;
}

.toplist-item em {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 205, 40, 0.24);
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
}

.toplist-item.has-results em {
  color: #275c03;
  background: rgba(78, 175, 10, 0.18);
}

.phase-note {
  margin: 8px 0 0;
  max-width: 62ch;
  color: var(--muted);
}

.deadline-note {
  display: grid;
  gap: 3px;
  max-width: 62ch;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(78, 175, 10, 0.28);
  border-radius: 8px;
  background: rgba(78, 175, 10, 0.1);
  color: var(--ink);
}

.deadline-note.hidden {
  display: none;
}

.deadline-note strong {
  color: var(--blue-dark);
  font-size: 0.95rem;
}

.deadline-note span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.deadline-note.today,
.deadline-note.soon {
  border-color: rgba(247, 181, 0, 0.4);
  background: rgba(247, 181, 0, 0.13);
}

.deadline-note.overdue {
  border-color: rgba(190, 48, 48, 0.34);
  background: rgba(190, 48, 48, 0.1);
}

.community-list-intro {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin: 16px 0 18px;
  padding: 14px 16px;
  border: 1px solid rgba(32, 149, 229, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 207, 35, 0.18), rgba(32, 149, 229, 0.11)),
    rgba(255, 255, 255, 0.7);
}

.community-list-intro.hidden {
  display: none;
}

.community-list-intro strong {
  display: block;
  color: var(--blue-dark);
  font-size: 1rem;
}

.community-list-intro p {
  max-width: 68ch;
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.community-list-intro-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.community-list-intro-actions a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 900;
  text-decoration: none;
}

.community-list-intro-actions a.primary {
  background: var(--blue);
  color: #fff;
}

.community-list-intro-actions a.secondary {
  border: 1px solid rgba(32, 149, 229, 0.25);
  background: rgba(255, 255, 255, 0.76);
  color: var(--blue-dark);
}

.community-phase-roadmap {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: -8px 0 18px;
}

.community-phase-roadmap.hidden {
  display: none;
}

.community-phase-roadmap > div {
  min-height: 86px;
  display: grid;
  align-content: start;
  gap: 4px;
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(34, 26, 19, 0.08);
}

.community-phase-roadmap > div span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(34, 26, 19, 0.16);
  color: var(--ink);
  font-weight: 900;
  font-size: 0.78rem;
}

.community-phase-roadmap > div strong {
  color: var(--blue-dark);
  font-size: 0.92rem;
}

.community-phase-roadmap > div em {
  color: var(--muted);
  font-size: 0.8rem;
  font-style: normal;
  line-height: 1.25;
}

.community-phase-roadmap > div.done {
  background: rgba(78, 175, 10, 0.12);
  border-color: rgba(78, 175, 10, 0.2);
}

.community-phase-roadmap > div.done span {
  background: #2f7d05;
  color: white;
}

.community-phase-roadmap > div.active {
  background: rgba(255, 207, 35, 0.2);
  border-color: rgba(196, 141, 24, 0.32);
}

.community-phase-roadmap > div.active span {
  background: var(--accent);
  color: white;
}

.community-phase-roadmap > div.upcoming {
  opacity: 0.72;
}

.active-list-panel.hidden {
  display: none;
}

.active-list-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
}

.admin-result-cta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  padding: 13px 14px;
  border-radius: 8px;
  background: rgba(78, 175, 10, 0.14);
  border: 1px solid rgba(78, 175, 10, 0.3);
}

.admin-result-cta.hidden {
  display: none;
}

.admin-result-cta strong {
  display: block;
  color: #275c03;
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: 1.05rem;
}

.admin-result-cta p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.export-limit-label {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.export-limit-label select {
  min-width: 124px;
  margin: 0;
  padding: 9px 10px;
}

.admin-dashboard {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.admin-dashboard.hidden {
  display: none;
}

.admin-quickbar {
  position: sticky;
  top: 10px;
  z-index: 12;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid rgba(11, 69, 125, 0.16);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.94);
  box-shadow: 0 12px 28px rgba(29, 19, 15, 0.12);
  backdrop-filter: blur(10px);
}

.admin-quickbar.hidden {
  display: none;
}

.admin-quickbar-main,
.admin-quickbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-quickbar-main strong {
  color: var(--blue-dark);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
}

.admin-quickbar-main span {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(32, 149, 229, 0.1);
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.admin-quickbar-actions {
  justify-content: flex-end;
}

.admin-quickbar-actions button {
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
}

.admin-metric {
  min-height: 74px;
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 250, 240, 0.76);
  border: 1px solid rgba(34, 26, 19, 0.1);
}

.admin-metric strong {
  display: block;
  color: var(--blue-dark);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: 1.45rem;
  line-height: 1;
}

.admin-metric span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.25;
}

.admin-metric.attention {
  background: rgba(255, 207, 35, 0.18);
  border-color: rgba(196, 141, 24, 0.38);
}

.online-results-panel {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.78);
  border: 1px solid rgba(11, 69, 125, 0.12);
}

.online-results-panel.hidden {
  display: none;
}

.online-results-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.online-results-head strong,
.online-results-card h3,
.online-ballot-card > div strong {
  color: var(--blue-dark);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
}

.online-results-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.online-results-head span {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(78, 175, 10, 0.12);
  color: #275c03;
  font-size: 0.84rem;
  font-weight: 900;
}

.online-results-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
  gap: 12px;
  align-items: start;
}

.online-results-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(34, 26, 19, 0.1);
}

.online-results-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.online-total-list,
.online-ballot-card ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.online-total-list li {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 3px 10px;
  padding: 9px;
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.82);
}

.online-total-list span {
  grid-row: span 2;
  color: var(--yellow-dark);
  font-size: 0.82rem;
  font-weight: 950;
}

.online-total-list strong,
.online-ballot-card li strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
}

.online-total-list em,
.online-ballot-card > div span {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 800;
}

.online-ballot-list {
  display: grid;
  gap: 10px;
  max-height: 680px;
  overflow: auto;
  padding-right: 2px;
}

.online-ballot-card {
  display: grid;
  gap: 9px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.84);
  border: 1px solid rgba(34, 26, 19, 0.1);
}

.online-ballot-card > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.online-ballot-card p {
  margin: 0;
  padding: 8px 9px;
  border-radius: 8px;
  background: rgba(32, 149, 229, 0.08);
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.online-ballot-card li {
  display: grid;
  grid-template-columns: 28px 38px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 44px;
}

.online-ballot-card li > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(196, 141, 24, 0.16);
  color: var(--yellow-dark);
  font-size: 0.78rem;
  font-weight: 950;
}

.online-ballot-card img {
  width: 38px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  background: rgba(34, 26, 19, 0.08);
}

.online-ballot-card li:not(:has(img)) {
  grid-template-columns: 28px minmax(0, 1fr);
}

.online-results-empty {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.editorial-info-panel,
.host-notes-panel,
.admin-audit-panel {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 13px 14px;
  border-radius: 8px;
  border: 1px solid rgba(34, 26, 19, 0.1);
}

.editorial-info-panel {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  background: rgba(255, 250, 240, 0.78);
}

.host-notes-panel {
  background: rgba(15, 38, 72, 0.06);
}

.admin-audit-panel {
  background: rgba(34, 26, 19, 0.045);
}

.editorial-info-panel.hidden,
.host-notes-panel.hidden,
.admin-audit-panel.hidden {
  display: none;
}

.editorial-info-panel strong,
.host-notes-panel strong,
.admin-audit-panel strong {
  display: block;
  color: var(--blue-dark);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
}

.editorial-info-panel p,
.host-notes-panel p,
.admin-audit-panel p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.admin-audit-panel ol {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-audit-panel li {
  display: grid;
  grid-template-columns: minmax(128px, auto) minmax(150px, 1fr) minmax(0, 1.4fr);
  gap: 10px;
  align-items: baseline;
  padding-top: 7px;
  border-top: 1px solid rgba(34, 26, 19, 0.08);
}

.admin-audit-panel li span,
.admin-audit-panel li em {
  color: var(--muted);
  font-size: 0.84rem;
  font-style: normal;
}

.production-panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(15, 38, 72, 0.16);
  background: rgba(15, 38, 72, 0.055);
}

.production-panel.hidden {
  display: none;
}

.production-panel-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.production-panel-head strong {
  display: block;
  color: var(--blue-dark);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: 1rem;
}

.production-panel-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.production-status {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border-radius: 999px;
  padding: 7px 11px;
  color: white;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.production-status.ok {
  background: #2f7d05;
}

.production-status.warn {
  background: #b87900;
}

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

.production-card {
  min-height: 78px;
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 250, 240, 0.78);
  border: 1px solid rgba(34, 26, 19, 0.1);
}

.production-card span,
.production-flow span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.production-card strong {
  display: block;
  margin-top: 5px;
  color: var(--blue-dark);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: 1.12rem;
  overflow-wrap: anywhere;
}

.production-card em {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.84rem;
  font-style: normal;
  line-height: 1.3;
}

.production-flow {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(240px, 1fr);
  gap: 12px;
}

.production-flow ol,
.production-flow ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.production-flow ol {
  display: grid;
  gap: 8px;
  counter-reset: production-steps;
}

.production-flow ol li {
  position: relative;
  min-height: 34px;
  padding: 8px 10px 8px 42px;
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.65);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
}

.production-flow ol li::before {
  counter-increment: production-steps;
  content: counter(production-steps);
  position: absolute;
  left: 10px;
  top: 7px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(34, 26, 19, 0.16);
  color: var(--ink);
  font-size: 0.76rem;
}

.production-flow ol li.done {
  background: rgba(78, 175, 10, 0.15);
}

.production-flow ol li.done::before {
  background: #2f7d05;
  color: white;
}

.production-flow ol li.attention {
  background: rgba(255, 207, 35, 0.2);
}

.production-flow ul {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.production-flow ul li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border-radius: 8px;
  padding: 8px;
  background: rgba(255, 250, 240, 0.65);
}

.production-flow ul li span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-size: 0.82rem;
  text-transform: none;
}

.production-flow ul li strong {
  min-width: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.production-flow ul li em {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
}

.production-flow ul li.muted-row {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.production-artifacts {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.production-readiness-checklist {
  display: grid;
  gap: 9px;
  padding: 11px 12px;
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.72);
  border: 1px solid rgba(34, 26, 19, 0.1);
}

.production-readiness-checklist > div span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.production-readiness-checklist > div strong {
  display: block;
  margin-top: 4px;
  color: var(--blue-dark);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
}

.production-readiness-checklist ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.production-readiness-checklist li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  border-radius: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.production-readiness-checklist li > span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #b87900;
  color: white;
  font-size: 0.76rem;
  font-weight: 900;
}

.production-readiness-checklist li.ok > span {
  background: #2f7d05;
}

.production-readiness-checklist li.info > span {
  background: #6f5a2f;
}

.production-readiness-checklist li strong {
  display: block;
  min-width: 0;
  color: var(--ink);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.production-readiness-checklist li em {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
  line-height: 1.32;
}

.production-artifact-list {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.55);
  border: 1px solid rgba(34, 26, 19, 0.08);
}

.production-artifact-list > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.production-artifact-list ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.production-artifact-list li {
  display: grid;
  grid-template-columns: minmax(120px, 0.75fr) minmax(180px, 1.5fr) minmax(90px, auto);
  gap: 8px;
  align-items: center;
  color: var(--ink);
  font-size: 0.84rem;
}

.production-artifact-list code {
  min-width: 0;
  padding: 4px 6px;
  border-radius: 6px;
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.7);
  overflow-wrap: anywhere;
}

.production-artifact-list em {
  color: var(--muted);
  font-style: normal;
  text-align: right;
}

.production-data-hooks {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(21, 169, 255, 0.08);
  border: 1px solid rgba(21, 169, 255, 0.18);
}

.production-data-hooks > span {
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.production-data-hooks p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.production-data-hooks ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.production-data-hooks li {
  display: grid;
  grid-template-columns: minmax(120px, 0.75fr) minmax(180px, 1.35fr) minmax(140px, 1fr);
  gap: 8px;
  align-items: center;
  color: var(--ink);
  font-size: 0.84rem;
}

.production-data-hooks code {
  min-width: 0;
  padding: 4px 6px;
  border-radius: 6px;
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.78);
  overflow-wrap: anywhere;
}

.production-data-hooks em {
  color: var(--muted);
  font-style: normal;
}

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

.voter-email-verification {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(90px, 0.45fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border-radius: 8px;
  background: rgba(21, 169, 255, 0.08);
  border: 1px solid rgba(21, 169, 255, 0.18);
}

.voter-email-verification.hidden {
  display: none;
}

.voter-email-verification .form-hint {
  grid-column: 1 / -1;
}

.public-integration-panel {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) repeat(6, auto);
  gap: 8px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(34, 26, 19, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
}

.public-integration-panel span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.public-integration-panel strong {
  color: var(--blue-dark);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
}

.public-integration-panel code {
  grid-column: 1 / -1;
  padding: 7px 9px;
  border-radius: 8px;
  color: var(--blue-dark);
  background: rgba(34, 26, 19, 0.06);
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.share-panel {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  padding: 13px 14px;
  border-radius: 8px;
  background: rgba(34, 26, 19, 0.06);
}

.share-panel.hidden {
  display: none;
}

.share-panel strong {
  display: block;
  color: var(--blue-dark);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
}

.share-panel p {
  max-width: min(72ch, 100%);
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

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

.participation-notice {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(34, 26, 19, 0.05);
  border: 1px solid rgba(34, 26, 19, 0.08);
}

.participation-notice span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.25;
}

.participation-notice.hidden {
  display: none;
}

.participation-details {
  max-width: 88ch;
  margin: 4px 0 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.participation-details summary {
  width: fit-content;
  cursor: pointer;
  color: var(--blue-dark);
  font-weight: 900;
}

.participation-details ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.participation-details li {
  margin: 4px 0;
  line-height: 1.38;
}

.participation-consent {
  min-height: 0;
  margin-bottom: 0;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--muted);
}

.editorial-pick-control {
  min-height: 0;
  margin-top: 10px;
  font-weight: 900;
}

.editorial-pick-control.hidden {
  display: none;
}

.nomination-origin {
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.nomination-origin.editorial {
  color: #012d52;
  background: rgba(255, 205, 40, 0.3);
  border: 1px solid rgba(196, 141, 24, 0.36);
}

.thanks-panel {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 13px;
  border-radius: 8px;
  background: rgba(78, 175, 10, 0.12);
  border: 1px solid rgba(78, 175, 10, 0.26);
}

.thanks-panel.hidden {
  display: none;
}

.nomination-thanks-panel {
  background: rgba(32, 149, 229, 0.1);
  border-color: rgba(32, 149, 229, 0.24);
}

.community-create-thanks-panel {
  background: rgba(255, 205, 40, 0.18);
  border-color: rgba(196, 141, 24, 0.3);
}

.thanks-panel.nomination-thanks-panel strong {
  color: var(--blue-dark);
}

.thanks-panel.community-create-thanks-panel strong {
  color: var(--blue-dark);
}

.thanks-panel.nomination-thanks-panel p {
  color: var(--muted);
}

.thanks-panel.community-create-thanks-panel p {
  color: var(--muted);
}

.thanks-panel strong {
  color: #275c03;
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
}

.thanks-panel p {
  margin: 0;
  color: #31551b;
  font-size: 0.9rem;
  line-height: 1.4;
}

.thanks-share-text {
  padding: 10px 11px;
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.78);
  border: 1px solid rgba(34, 26, 19, 0.1);
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.38;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.thanks-ballot-summary {
  display: grid;
  gap: 7px;
  padding: 10px 11px;
  border-radius: 8px;
  background: rgba(78, 175, 10, 0.1);
  border: 1px solid rgba(78, 175, 10, 0.2);
}

.thanks-ballot-summary.hidden {
  display: none;
}

.thanks-ballot-summary > span {
  color: #31551b;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.thanks-ballot-summary ol {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.thanks-ballot-summary li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  color: var(--ink);
  font-size: 0.86rem;
}

.thanks-ballot-summary strong {
  color: var(--blue-dark);
}

.thanks-ballot-summary em {
  color: #31551b;
  font-style: normal;
  font-weight: 700;
}

.thanks-panel button {
  justify-self: start;
}

.results-summary {
  margin: -2px 0 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.results-share-panel {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(1, 45, 82, 0.06);
  border: 1px solid rgba(1, 45, 82, 0.12);
}

.results-share-panel.hidden {
  display: none;
}

.results-share-panel > strong {
  color: var(--blue-dark);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
}

.results-share-panel button {
  justify-self: start;
}

.public-results-archive {
  margin-top: 18px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(34, 26, 19, 0.04);
  border: 1px solid rgba(34, 26, 19, 0.08);
}

.public-results-archive.hidden {
  display: none;
}

.community-home-panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border-radius: 8px;
  background: #f7fbff;
  border: 1px solid rgba(11, 69, 125, 0.12);
}

.community-home-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.community-home-head strong,
.community-home-card strong {
  display: block;
  color: var(--blue-dark);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
}

.community-home-head p,
.community-home-card p,
.community-home-card em,
.community-home-empty p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.community-home-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.community-home-stats span,
.community-home-card > span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 209, 63, 0.22);
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.community-home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.community-home-card,
.community-home-empty {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(11, 69, 125, 0.1);
}

.community-home-card.nomination {
  border-top: 4px solid var(--green);
}

.community-home-card.voting {
  border-top: 4px solid var(--yellow);
}

.community-home-card.result {
  border-top: 4px solid var(--blue);
}

.community-home-card button {
  justify-self: start;
}

.community-create-list-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid rgba(32, 149, 229, 0.2);
  background: rgba(255, 250, 240, 0.82);
}

.community-create-list-form > div:first-child {
  display: grid;
  gap: 3px;
}

.community-create-list-form strong {
  color: var(--blue-dark);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
}

.community-create-list-form p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.public-results-list {
  display: grid;
  gap: 10px;
}

.public-result-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  background: #fffaf0;
  border: 1px solid rgba(34, 26, 19, 0.1);
}

.public-result-card strong {
  display: block;
  color: var(--blue-dark);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
}

.public-result-card p,
.public-result-card em {
  display: block;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.public-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}

.public-result-actions a {
  color: var(--blue-dark);
  font-weight: 700;
  text-decoration: none;
}

.voting-workspace,
.voting-results-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.user-flow-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  padding: 8px;
  border: 1px solid rgba(32, 149, 229, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 207, 35, 0.16), rgba(32, 149, 229, 0.1)),
    rgba(255, 255, 255, 0.7);
}

.admin-mode .user-flow-strip {
  display: none;
}

.user-flow-strip span {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 7px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-weight: 900;
  line-height: 1.25;
}

.user-flow-strip b {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  font-size: 0.9rem;
}

.community-direct .voting-workspace {
  grid-template-columns: minmax(280px, 0.76fr) minmax(380px, 1fr);
  gap: 14px;
  margin-top: 12px;
}

.community-mode .nomination-box,
.community-mode .ballot-box {
  padding: 14px;
}

.community-mode .nomination-box h3,
.community-mode .ballot-box h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.community-mode .nomination-box label,
.community-mode .ballot-box label {
  margin-bottom: 8px;
}

.community-mode .optional-fields {
  margin-top: 6px;
}

.community-mode .ballot-box > .form-hint {
  margin-top: 4px;
}

.community-direct .nomination-box,
.community-direct .ballot-box {
  scroll-margin-top: 88px;
}

.voting-workspace.hidden,
.voting-results-grid.hidden,
.nomination-box.hidden,
#results-standings-section.hidden {
  display: none;
}

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

.voting-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.nomination-box h3,
.ballot-box h3,
.voting-results-grid h3 {
  margin-top: 0;
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
}

.bgg-suggestions {
  display: grid;
  gap: 8px;
}

.bgg-loading {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 3px 10px;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.92);
  border: 1px solid rgba(32, 149, 229, 0.18);
  color: var(--blue-dark);
}

.bgg-loading strong {
  font-size: 0.95rem;
  line-height: 1.2;
}

.bgg-loading em {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 800;
}

.bgg-loading-spinner {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid rgba(32, 149, 229, 0.18);
  border-top-color: var(--blue);
  animation: bgg-spin 0.8s linear infinite;
}

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

.bgg-suggestion-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}

.bgg-suggestion {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  border-radius: 8px;
  padding: 8px;
  background: #fffaf0;
  color: var(--ink);
}

.bgg-suggestion-cover {
  display: grid;
  place-items: center;
  width: 54px;
  height: 62px;
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(15, 38, 72, 0.94), rgba(32, 149, 229, 0.82));
  color: #ffcf23;
  font-size: 0.78rem;
  font-weight: 900;
  overflow: hidden;
}

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

.bgg-suggestion-main {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 4px;
  text-align: left;
}

.bgg-suggestion-main strong {
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.bgg-alt-title {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.bgg-source-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(34, 26, 19, 0.12);
  color: var(--blue-dark);
  font-weight: 800;
  font-size: 0.82rem;
  text-decoration: none;
  white-space: nowrap;
}

.bgg-source-link:hover {
  text-decoration: underline;
}

.bgg-suggestion-main small {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  color: var(--muted);
  font-size: 0.78rem;
}

.bgg-suggestion-main small span {
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(34, 26, 19, 0.06);
}

.bgg-suggestion-cta {
  width: fit-content;
  margin-top: 2px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}

.bgg-detail-meta span {
  background: rgba(32, 149, 229, 0.09);
  color: var(--blue-dark);
}

.bgg-suggestion.already-nominated {
  cursor: not-allowed;
  opacity: 0.78;
  background: #f2f4f7;
  border-color: rgba(34, 26, 19, 0.12);
}

.bgg-suggestion.needs-consent {
  cursor: not-allowed;
  opacity: 0.72;
}

.bgg-suggestion.needs-consent .bgg-suggestion-cta,
.bgg-suggestion.already-nominated .bgg-suggestion-cta {
  background: rgba(34, 26, 19, 0.12);
  color: var(--muted);
}

.bgg-suggestion.already-nominated .bgg-suggestion-main strong {
  color: var(--muted);
}

.bgg-duplicate-note {
  display: block;
  margin-top: 2px;
  color: var(--blue-dark);
  font-style: normal;
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1.25;
}

.nominations,
.results-table,
.ballot-items {
  display: grid;
  gap: 10px;
}

.nomination-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.nominations-hint {
  margin: -4px 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.nominations-hint.hidden {
  display: none;
}

.nomination-filter-bar.hidden {
  display: none;
}

.nomination-filter-bar button {
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 8px;
  border: 1px solid rgba(34, 26, 19, 0.12);
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: none;
}

.nomination-filter-bar button.active {
  border-color: rgba(196, 141, 24, 0.42);
  background: rgba(196, 141, 24, 0.16);
  color: var(--blue-dark);
}

.ballot-pick-list {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.ballot-pick-list.empty {
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
  font-weight: 800;
}

.ballot-pick-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--blue-dark);
}

.ballot-pick-list-head span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 900;
}

.ballot-pick-search {
  display: grid;
  gap: 5px;
  min-height: 0;
  margin: 0;
  color: var(--blue-dark);
  font-size: 0.82rem;
  font-weight: 900;
}

.ballot-pick-search input {
  width: 100%;
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid rgba(32, 149, 229, 0.22);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font: inherit;
}

.ballot-pick-help {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.ballot-pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 7px;
}

.ballot-pick {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 6px 9px;
  align-items: center;
  min-height: 54px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(32, 149, 229, 0.18);
  background: rgba(255, 255, 255, 0.82);
  color: var(--blue-dark);
  text-align: left;
  box-shadow: none;
}

.ballot-pick span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(32, 149, 229, 0.12);
  color: var(--blue-dark);
  font-weight: 950;
}

.ballot-pick strong {
  overflow-wrap: anywhere;
  line-height: 1.15;
  font-size: 0.9rem;
}

.ballot-pick em {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 800;
}

.ballot-pick.selected {
  border-color: rgba(0, 146, 63, 0.42);
  background: rgba(0, 146, 63, 0.1);
}

.ballot-pick.selected span {
  background: var(--green);
  color: #fff;
}

.ballot-pick-empty,
.ballot-pick-more {
  margin: 0;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.ballot-pick-empty {
  grid-column: 1 / -1;
}

.nomination-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(34, 26, 19, 0.1);
}

.nomination-item.selected {
  border-color: rgba(0, 146, 63, 0.36);
  background: rgba(0, 146, 63, 0.08);
}

.nomination-item.selectable {
  cursor: pointer;
}

.nomination-item.selectable:focus-visible {
  outline: 3px solid rgba(32, 149, 229, 0.35);
  outline-offset: 2px;
}

.nomination-item img {
  width: 58px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  background: rgba(34, 26, 19, 0.08);
}

.nomination-item span,
.result-row em {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  font-style: normal;
}

.nomination-status {
  display: inline-block;
  width: fit-content;
  margin-top: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(34, 26, 19, 0.08);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.nomination-vote-cta {
  display: inline-block;
  width: fit-content;
  margin-top: 5px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(32, 149, 229, 0.1);
  color: var(--blue-dark);
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1;
}

.nomination-vote-cta.selected {
  background: var(--green);
  color: #fff;
}

.nomination-status.approved {
  background: rgba(78, 175, 10, 0.14);
  color: #275c03;
}

.nomination-status.pending {
  background: rgba(196, 141, 24, 0.16);
  color: #624917;
}

.nomination-status.rejected,
.nomination-status.disabled {
  background: rgba(157, 52, 18, 0.1);
  color: var(--danger);
}

.nomination-review-meta {
  margin-top: 4px;
  font-size: 0.82rem;
}

.nomination-reason {
  margin-top: 7px;
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(255, 207, 35, 0.16);
  color: var(--blue-dark);
  font-size: 0.84rem;
  line-height: 1.35;
}

.nomination-reason b {
  font-weight: 950;
}

.nomination-actions,
.review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.nomination-actions {
  max-width: 270px;
}

.nomination-actions button,
.review-actions button {
  padding: 8px 10px;
  font-size: 0.84rem;
}

.nomination-cover-picker {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(32, 149, 229, 0.08);
  border: 1px solid rgba(32, 149, 229, 0.18);
}

.nomination-cover-picker.error {
  background: rgba(157, 52, 18, 0.08);
  border-color: rgba(157, 52, 18, 0.18);
}

.nomination-cover-picker p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.nomination-cover-picker .cover-picker-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin: 0;
}

.nomination-cover-picker .cover-options {
  max-height: 360px;
}

.nomination-cover-picker .text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brown);
  font-size: 0.84rem;
  text-decoration: underline;
  box-shadow: none;
}

.bgg-loading.compact {
  padding: 8px 0;
}

.ballot-item,
.result-row {
  display: grid;
  grid-template-columns: 38px 56px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(34, 26, 19, 0.1);
}

.ballot-main,
.ballot-actions {
  display: flex;
  gap: 6px;
}

.ballot-main {
  flex-direction: column;
  min-width: 0;
}

.ballot-actions {
  flex-direction: row;
  grid-column: 3 / -1;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.ballot-rank {
  display: grid;
  place-items: center;
  grid-row: 1 / span 2;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--blue-dark);
  color: white;
  font-weight: 900;
}

.ballot-cover {
  display: grid;
  place-items: center;
  grid-row: 1 / span 2;
  width: 56px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(34, 26, 19, 0.08);
  border: 1px solid rgba(34, 26, 19, 0.12);
  color: rgba(34, 26, 19, 0.45);
  font-size: 0.7rem;
  font-weight: 900;
}

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

.ballot-main strong {
  overflow-wrap: normal;
  hyphens: auto;
}

.ballot-item em {
  color: var(--muted);
  font-size: 0.84rem;
  font-style: normal;
}

.ballot-item button {
  padding: 8px 10px;
}

.ballot-summary {
  padding: 9px 11px;
  border-radius: 8px;
  background: rgba(34, 26, 19, 0.06);
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.ballot-draft-status {
  padding: 9px 11px;
  border-radius: 8px;
  background: rgba(255, 207, 35, 0.16);
  border: 1px solid rgba(196, 141, 24, 0.28);
  color: #624404;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.35;
}

.ballot-draft-status.hidden {
  display: none;
}

.ballot-progress {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f7fbff;
  border: 1px solid rgba(11, 69, 125, 0.12);
}

.ballot-progress.hidden {
  display: none;
}

.ballot-progress strong,
.ballot-progress span {
  display: block;
}

.ballot-progress strong {
  color: var(--blue-dark);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
}

.ballot-progress span {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 2px;
}

.ballot-progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(11, 69, 125, 0.12);
  overflow: hidden;
}

.ballot-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--yellow));
}

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

.result-row span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-weight: 800;
}

.bgg-attribution {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.bgg-attribution a {
  color: #275c03;
  font-weight: 800;
  text-decoration: none;
}

.results.empty {
  place-items: center;
  min-height: 120px;
  color: var(--muted);
}

.game-card {
  display: grid;
  grid-template-columns: minmax(320px, 640px) minmax(280px, 1fr);
  gap: 20px;
  padding: 20px;
}

.preview-card {
  min-height: 240px;
  display: grid;
  grid-template-columns: 126px 1fr 180px;
  gap: 22px;
  align-items: center;
  padding: 18px 22px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #faf6eb 100%);
  border: 1px solid rgba(196, 141, 24, 0.14);
}

.preview-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.image-frame {
  width: 108px;
  height: 136px;
  border-radius: 8px;
  overflow: hidden;
  background: #eff4fa;
  position: relative;
  border: 2px solid rgba(87, 171, 23, 0.24);
}

.image-frame img,
.image-frame .image-fallback {
  width: 100%;
  height: 100%;
}

.image-frame img {
  object-fit: cover;
  display: none;
}

.image-frame.has-image img {
  display: block;
}

.image-frame.has-image .image-fallback {
  display: none;
}

.image-fallback {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.source-badge {
  text-decoration: none;
  color: white;
  background: #111;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.76rem;
}

.preview-title {
  color: #d39b0e;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

.preview-subtitle {
  color: #3658aa;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.1;
}

.preview-title[data-size="md"] {
  font-size: clamp(1.7rem, 2.45vw, 2.35rem);
}

.preview-title[data-size="lg"] {
  font-size: clamp(1.45rem, 2.1vw, 2rem);
}

.preview-title[data-size="xl"] {
  font-size: clamp(1.15rem, 1.75vw, 1.6rem);
}

.preview-meta {
  display: grid;
  gap: 6px;
  font-size: 1.2rem;
  color: var(--accent-strong);
  font-weight: 700;
}

.preview-meta div {
  display: flex;
  gap: 8px;
  align-items: center;
}

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

.cover-picker {
  margin: 14px 0 16px;
}

.match-switcher {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
  margin: 14px 0 12px;
}

.match-switcher select {
  max-width: 100%;
}

.cover-picker-head {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.cover-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 10px;
  max-height: 260px;
  overflow: auto;
}

.cover-option {
  border: 2px solid rgba(34, 26, 19, 0.08);
  border-radius: 12px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.cover-option.active {
  border-color: #4eaf0a;
  box-shadow: 0 0 0 2px rgba(78, 175, 10, 0.12);
}

.cover-option img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  margin-bottom: 6px;
}

.cover-option span {
  display: block;
  font-size: 0.72rem;
  line-height: 1.2;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
}

.field-grid label {
  margin: 0;
  font-size: 0.92rem;
}

.field-grid input {
  margin-top: 6px;
}

@media (max-width: 980px) {
  .hero,
  .voting-hero,
  .game-card,
  .mega-upload,
  .mega-dashboard,
  .review-grid,
  .voting-admin-grid,
  .voting-workspace,
  .voting-results-grid {
    grid-template-columns: 1fr;
  }

  .community-mode .nomination-box {
    order: 1;
  }

  .community-mode .ballot-box {
    order: 2;
  }

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

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

  .online-results-grid {
    grid-template-columns: 1fr;
  }

  .admin-quickbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-quickbar-actions {
    justify-content: flex-start;
    width: 100%;
  }

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

  .admin-audit-panel li {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .production-flow {
    grid-template-columns: 1fr;
  }

  .community-list-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .community-list-intro-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .community-phase-roadmap {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .preview-card {
    grid-template-columns: 108px 1fr;
  }

  .preview-meta {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .layout {
    width: min(100vw - 18px, 1200px);
    margin-top: 14px;
  }

  .community-direct .voting-hero {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 10px;
    padding: 8px 0 0;
  }

  .community-direct .voting-mark {
    display: none;
  }

  .community-direct .voting-logo-mobile {
    display: block;
    width: 112px;
    margin: 0 0 6px;
  }

  .community-direct .voting-hero .eyebrow {
    font-size: 0.74rem;
  }

  .community-direct .voting-hero h1 {
    font-size: clamp(1.58rem, 8.6vw, 2.18rem);
    line-height: 1;
  }

  .community-direct .voting-hero .lead {
    margin-top: 6px;
    font-size: 0.88rem;
    line-height: 1.28;
  }

  .panel,
  .hero-card,
  .game-card {
    border-radius: 18px;
  }

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

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

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

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

  .concept-list {
    grid-template-columns: 1fr;
  }

  .list-options {
    grid-template-columns: 1fr;
  }

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

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

  .online-results-head,
  .admin-result-cta,
  .online-ballot-card > div {
    flex-direction: column;
    align-items: flex-start;
  }

  .online-total-list li {
    grid-template-columns: 1fr;
  }

  .online-total-list span {
    grid-row: auto;
  }

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

  .production-flow ul li {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .production-flow ul li em {
    grid-column: 2;
  }

  .community-list-intro-actions a {
    width: 100%;
  }

  .community-mode .active-list-panel {
    padding: 12px;
  }

  .community-mode .active-list-panel > .section-head {
    display: block;
  }

  .community-direct .active-list-panel > .section-head {
    display: none;
  }

  .community-mode .active-list-panel > .section-head h2 {
    font-size: clamp(1.45rem, 8vw, 2rem);
    line-height: 1.08;
  }

  .community-mode #active-list-description {
    font-size: 0.9rem;
  }

  .community-direct .voting-workspace,
  .voting-workspace,
  .voting-results-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 10px;
  }

  .community-mode .nomination-box,
  .community-mode .ballot-box {
    padding: 12px;
  }

  .community-mode .nomination-box h3,
  .community-mode .ballot-box h3 {
    font-size: 1.12rem;
  }

  .community-mode .nomination-box label,
  .community-mode .ballot-box label {
    font-size: 0.9rem;
  }

  .community-mode .optional-fields {
    display: none;
  }

  .community-mode .bgg-source-link {
    min-height: 44px;
  }

  .participation-notice {
    display: none;
  }

  .participation-notice span {
    font-size: 0.76rem;
  }

  .participation-consent {
    display: none;
  }

  .community-list-intro {
    margin: 10px 0;
    padding: 10px;
    gap: 10px;
  }

  .community-list-intro p {
    font-size: 0.9rem;
    line-height: 1.32;
  }

  .community-phase-roadmap {
    display: none;
  }

  .user-flow-strip {
    display: none;
  }

  .admin-quickbar {
    top: 6px;
    margin-top: 8px;
    padding: 8px;
  }

  .admin-quickbar-main strong {
    width: 100%;
  }

  .admin-quickbar-actions button {
    flex: 1 1 110px;
  }

  .ballot-pick-grid {
    grid-template-columns: 1fr;
  }

  .bgg-suggestion-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .bgg-suggestion {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 8px;
    padding: 8px;
  }

  .bgg-suggestion-cover {
    width: 48px;
    height: 58px;
  }

  .bgg-suggestion-main strong {
    font-size: 0.95rem;
  }

  .bgg-source-link {
    width: fit-content;
    min-height: 0;
    justify-self: end;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    background: transparent;
  }

  .production-readiness-checklist ul {
    grid-template-columns: 1fr;
  }

  .production-artifact-list li {
    grid-template-columns: 1fr;
  }

  .production-artifact-list em {
    text-align: left;
  }

  .production-data-hooks li {
    grid-template-columns: 1fr;
  }

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

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

  .public-integration-panel > div,
  .public-integration-panel code {
    grid-column: 1 / -1;
  }

  .voting-hero {
    min-height: 0;
    margin-bottom: 10px;
    padding-top: 8px;
    gap: 14px;
  }

  .voting-hero h1 {
    font-size: 2.05rem;
    line-height: 0.95;
  }

  .voting-hero .lead {
    font-size: 0.98rem;
    line-height: 1.3;
  }

  .voting-mark {
    display: none;
  }

  .voting-logo-mobile {
    display: block;
    width: min(148px, 48vw);
    margin-bottom: 8px;
  }

  .nomination-item {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .nomination-actions {
    grid-column: 1 / -1;
    max-width: none;
    justify-content: flex-start;
  }

  .ballot-item {
    grid-template-columns: 34px 52px minmax(0, 1fr);
  }

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

  .bgg-source-link {
    justify-content: flex-start;
  }

  .ballot-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .public-result-card {
    align-items: stretch;
    flex-direction: column;
  }

  .community-home-head {
    flex-direction: column;
  }

  .community-home-stats {
    justify-content: flex-start;
  }

  .public-result-actions {
    justify-content: flex-start;
  }

  .episode-title-row,
  .pipeline-step {
    grid-template-columns: 1fr;
  }

  .episode-title-row {
    flex-direction: column;
  }
}
