:root {
  --bg: #060607;
  --bg-alt: #0d0f12;
  --surface: #111318;
  --surface-strong: #181b21;
  --surface-soft: #1e2129;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --ink: #f5efe4;
  --ink-soft: #b7afa2;
  --ink-dim: #81786b;
  --accent: #caa56a;
  --accent-strong: #f0c88b;
  --accent-soft: rgba(202, 165, 106, 0.12);
  --success: #66c9ab;
  --danger: #ff8e77;
  --shadow: 0 38px 90px -34px rgba(0, 0, 0, 0.78);
  --shadow-soft: 0 26px 60px -32px rgba(202, 165, 106, 0.24);
  --radius-xl: 32px;
  --radius-lg: 26px;
  --radius-md: 20px;
  --radius-sm: 16px;
  --motion: cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--ink);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  letter-spacing: -0.01em;
  word-break: keep-all;
  background:
    radial-gradient(circle at 16% 14%, rgba(202, 165, 106, 0.2), transparent 28%),
    radial-gradient(circle at 86% 12%, rgba(202, 165, 106, 0.12), transparent 22%),
    radial-gradient(circle at 82% 84%, rgba(255, 255, 255, 0.06), transparent 24%),
    linear-gradient(180deg, #070709 0%, #0a0b0f 38%, #0b0d12 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none !important;
}

code {
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent-strong);
  font-size: 0.9em;
}

.app-shell {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
}

.noise-layer {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.9'/%3E%3C/svg%3E");
}

.aurora {
  position: fixed;
  inset: -6rem auto auto -8rem;
  z-index: 0;
  width: 38rem;
  height: 38rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(202, 165, 106, 0.22), transparent 64%);
  filter: blur(24px);
  animation: float 11s var(--motion) infinite;
  pointer-events: none;
}

.aurora-right {
  inset: 8rem -10rem auto auto;
  width: 28rem;
  height: 28rem;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 60%);
  animation-delay: -4s;
}

.aurora-third {
  inset: auto auto -12rem 34%;
  width: 34rem;
  height: 34rem;
  background: radial-gradient(circle, rgba(202, 165, 106, 0.14), transparent 66%);
  animation-delay: -7s;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 18px 0 0;
  background: linear-gradient(180deg, rgba(7, 7, 9, 0.85), rgba(7, 7, 9, 0));
}

.header-inner,
.page,
.site-footer {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.brand-mark-image {
  display: block;
  width: auto;
  height: 40px;
  flex: 0 0 auto;
  filter: brightness(0) invert(1);
}

.brand-copy {
  display: grid;
  min-width: 0;
}

.brand-copy strong {
  display: block;
  font-family: "Pretendard", sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  word-break: keep-all;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 42px -34px rgba(0, 0, 0, 0.76);
}

.nav-link {
  padding: 11px 18px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  transition:
    transform 0.5s var(--motion),
    background-color 0.5s var(--motion),
    color 0.5s var(--motion),
    border-color 0.5s var(--motion);
}

.nav-link:hover,
.nav-link.active {
  color: var(--ink);
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
}

.page {
  position: relative;
  padding: 68px 0 108px;
}

.page-home {
  width: min(calc(100% - 40px), 1040px);
  padding-top: 96px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.82fr);
  gap: 26px;
  align-items: start;
  margin-bottom: 30px;
}

.home-polls {
  display: grid;
  gap: 26px;
}

.hero-card,
.panel,
.poll-button,
.choice-card,
.agenda-item,
.metric-card,
.results-row,
.admin-card,
.empty-state,
.toast {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.024)),
    linear-gradient(135deg, rgba(202, 165, 106, 0.05), transparent 48%);
  box-shadow: var(--shadow);
}

.hero-card::before,
.panel::before,
.poll-button::before,
.choice-card::before,
.agenda-item::before,
.metric-card::before,
.results-row::before,
.admin-card::before,
.empty-state::before,
.toast::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.hero-card,
.panel,
.metric-card,
.admin-card {
  padding: 26px;
}

.hero-card {
  min-height: 280px;
  background:
    radial-gradient(circle at 88% 14%, rgba(202, 165, 106, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.024)),
    #111318;
}

.hero-card::after,
.poll-button::after,
.results-row::after,
.choice-card::after,
.admin-card::after {
  content: "";
  position: absolute;
  inset: auto -16% -32% auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(202, 165, 106, 0.15), transparent 66%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(202, 165, 106, 0.18);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-family: "Outfit", "Pretendard", sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 24px rgba(240, 200, 139, 0.44);
}

.hero-copy h1 {
  margin: 0;
  max-width: 10ch;
  color: var(--ink);
  font-family: "Pretendard", sans-serif;
  font-size: clamp(2.45rem, 4.8vw, 4.9rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.05em;
  text-wrap: balance;
  word-break: keep-all;
}

.poll-page-title {
  margin: 0;
  max-width: none;
  color: #ff9a62;
  font-size: 40px !important;
  line-height: 1.05;
  font-family: "Pretendard", sans-serif !important;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.poll-intro {
  display: grid;
  gap: 4px;
  padding: 0 2px 2px;
}

.poll-page-subtitle {
  margin: 0;
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.72;
  word-break: keep-all;
}

.poll-page-note {
  display: block;
  margin-top: 6px;
  color: var(--ink-dim);
}

.hero-copy p {
  max-width: 58ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.75;
  word-break: keep-all;
}

.hero-actions,
.section-actions,
.panel-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 8px;
}

.hero-side,
.stack {
  display: grid;
  gap: 20px;
}

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

.metric-card {
  min-height: 160px;
}

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

.admin-dashboard-top {
  gap: 16px;
}

.admin-dashboard-toolbar {
  display: grid;
  gap: 16px;
  padding: 22px 24px;
}

.admin-dashboard-head {
  margin-bottom: 0;
}

.admin-dashboard-head .stack {
  gap: 8px;
}

.admin-dashboard-head .hero-actions {
  margin-top: 0;
}

.admin-dashboard-title {
  margin: 0;
  color: var(--ink);
  font-family: "Pretendard", sans-serif;
  font-size: clamp(1.85rem, 2.6vw, 2.6rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.admin-dashboard-metrics .metric-card {
  min-height: 118px;
  padding: 20px 22px;
}

.admin-dashboard-metrics .metric-value {
  margin-top: 10px;
  font-size: clamp(1.75rem, 2.4vw, 2.35rem);
}

.admin-dashboard-metrics .metric-note {
  margin-top: 6px;
}

.admin-live-card {
  display: grid;
  gap: 18px;
}

.admin-live-card .poll-card-title {
  max-width: none;
  font-size: clamp(1.45rem, 2vw, 1.9rem);
}

.admin-live-summary {
  display: grid;
  justify-items: end;
  gap: 4px;
  flex: 0 0 auto;
}

.admin-roster-trigger {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: right;
  cursor: pointer;
}

.admin-roster-trigger:hover .admin-live-value,
.admin-roster-trigger:focus-visible .admin-live-value,
.admin-card-roster-trigger:hover,
.admin-card-roster-trigger:focus-visible {
  color: var(--accent-strong);
}

.admin-live-value {
  color: var(--ink);
  font-family: "Outfit", "Pretendard", sans-serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}

.admin-live-label {
  color: var(--ink-dim);
  font-size: 0.84rem;
}

.admin-card-roster-trigger {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.admin-progress-list {
  gap: 14px;
}

.admin-progress-item {
  padding: 14px 16px;
  border-radius: 18px;
}

.admin-live-footer {
  align-items: center;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 28px 20px;
  background: rgba(6, 6, 8, 0.72);
  backdrop-filter: blur(16px);
}

.modal-card.roster-modal {
  width: min(100%, 760px);
  max-height: min(82vh, 860px);
  overflow: auto;
  padding: 24px;
}

.roster-modal-head {
  align-items: center;
}

.roster-close-button::after {
  display: none;
}

.roster-list {
  display: grid;
  gap: 12px;
}

.roster-row {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.inline-error {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 142, 119, 0.25);
  background: rgba(255, 142, 119, 0.08);
  color: var(--danger);
  font-size: 0.94rem;
}

.metric-label {
  display: block;
  color: var(--ink-dim);
  font-size: 0.84rem;
  letter-spacing: 0.05em;
}

.metric-value {
  display: block;
  margin-top: 20px;
  color: var(--ink);
  font-family: "Outfit", "Pretendard", sans-serif;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}

.metric-note {
  display: block;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.82fr);
  gap: 26px;
}

.poll-flow {
  width: min(100%, 1220px);
}

.admin-login-only {
  width: min(100%, 460px);
  margin: 0 auto;
}

.admin-form-page {
  width: min(100%, 920px);
  margin: 0 auto;
}

.admin-items-head {
  align-items: center;
  margin-bottom: 0;
}

.admin-items-head .field-help {
  font-size: 0.88rem;
  color: var(--ink-dim);
}

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

.admin-item-card {
  padding: 20px;
}

.admin-item-card-head {
  align-items: center;
  margin-bottom: 14px;
}

.admin-item-fields {
  align-items: start;
}

.admin-item-card .field {
  gap: 8px;
}

.admin-item-card .field textarea {
  min-height: 112px;
}

.admin-item-add,
.admin-item-remove {
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 16px;
}

.admin-item-remove {
  border-color: rgba(255, 142, 119, 0.2);
  background: rgba(255, 142, 119, 0.08);
  color: #ffc0b1;
}

.poll-layout {
  align-items: start;
}

.poll-side,
.poll-side .identity-panel {
  align-self: start;
}

.section-head,
.panel-head,
.admin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.section-title,
.panel-title,
.poll-card-title,
.choice-card h3,
.agenda-item h3 {
  margin: 0;
  color: var(--ink);
  font-family: "Pretendard", sans-serif;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.04em;
  text-wrap: balance;
  word-break: keep-all;
}

.section-title,
.panel-title {
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.page-home .section-title {
  font-size: clamp(2.2rem, 4.3vw, 3.75rem);
  letter-spacing: -0.06em;
}

.section-copy,
.panel-copy,
.small-copy,
.field-help,
.vote-rule,
.muted {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.72;
  word-break: keep-all;
}

.poll-grid,
.results-grid,
.admin-grid,
.panel-grid {
  display: grid;
  gap: 18px;
}

.home-polls .poll-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.home-polls .poll-grid > * {
  grid-column: auto;
  height: 100%;
}

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

.poll-button,
.results-row,
.admin-card,
.choice-card,
.agenda-item,
.metric-card {
  transition:
    transform 0.55s var(--motion),
    border-color 0.55s var(--motion),
    box-shadow 0.55s var(--motion),
    background-color 0.55s var(--motion);
}

.poll-button {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 22px;
  padding: 28px;
  height: 100%;
  min-height: 280px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.026) 72%),
    linear-gradient(180deg, rgba(202, 165, 106, 0.08), transparent 34%);
}

.home-polls .poll-card-title {
  max-width: none;
  font-size: clamp(1.45rem, 2vw, 1.9rem);
}

.poll-button:hover,
.choice-card:hover,
.admin-card:hover,
.results-row:hover,
.metric-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(202, 165, 106, 0.32);
  box-shadow: var(--shadow), var(--shadow-soft);
}

.poll-card-top,
.poll-card-footer,
.results-row-head,
.results-row-foot,
.badge-row,
.status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.poll-card-title {
  font-size: clamp(1.7rem, 2.5vw, 2.25rem);
  max-width: 12ch;
}

.badge,
.pill,
.tiny-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.badge {
  background: rgba(202, 165, 106, 0.12);
  border-color: rgba(202, 165, 106, 0.2);
  color: var(--accent-strong);
}

.badge.closed {
  background: rgba(255, 142, 119, 0.12);
  border-color: rgba(255, 142, 119, 0.2);
  color: var(--danger);
}

.pill {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--ink-soft);
}

.tiny-pill {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--ink-dim);
  font-family: "Outfit", "Pretendard", sans-serif;
}

.button,
.button-ghost,
.button-secondary,
.tab-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 18px 14px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition:
    transform 0.5s var(--motion),
    background-color 0.5s var(--motion),
    border-color 0.5s var(--motion),
    box-shadow 0.5s var(--motion),
    color 0.5s var(--motion);
}

.button::after,
.button-secondary::after,
.button-ghost::after {
  content: "↗";
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  font-family: "Outfit", "Pretendard", sans-serif;
  font-size: 0.86rem;
  transition:
    transform 0.5s var(--motion),
    background-color 0.5s var(--motion),
    color 0.5s var(--motion);
}

.button {
  color: #1e160c;
  background: linear-gradient(135deg, var(--accent-strong) 0%, #d2ad76 100%);
  box-shadow: 0 26px 48px -28px rgba(202, 165, 106, 0.65);
}

.button::after {
  background: rgba(31, 22, 12, 0.12);
  color: #1e160c;
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
}

.button-secondary::after {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.button-ghost {
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.08);
}

.button-ghost::after {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

.button-danger {
  color: #fff2ec;
  background: linear-gradient(135deg, rgba(255, 142, 119, 0.34), rgba(255, 142, 119, 0.18));
  border-color: rgba(255, 142, 119, 0.24);
}

.button-danger::after {
  background: rgba(255, 255, 255, 0.08);
  color: #fff2ec;
}

.button:hover,
.button-secondary:hover,
.button-ghost:hover,
.tab-button:hover {
  transform: translateY(-2px) scale(1.02);
}

.button:hover::after,
.button-secondary:hover::after,
.button-ghost:hover::after {
  transform: translateX(3px);
}

.button:active,
.button-secondary:active,
.button-ghost:active,
.tab-button:active {
  transform: scale(0.98);
}

.form-grid {
  display: grid;
  gap: 18px;
}

.identity-panel {
  padding: 20px;
}

.identity-panel .panel-head {
  margin-bottom: 14px;
}

.compact-form {
  gap: 10px;
}

.compact-form .field {
  gap: 6px;
}

.compact-form .vote-banner {
  padding: 14px 16px;
}

.poll-main-panel {
  display: grid;
  gap: 22px;
}

.poll-form-card {
  padding: 16px 18px;
  border-radius: 24px;
  border: 1px solid rgba(19, 21, 26, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 243, 236, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 20px 44px -28px rgba(0, 0, 0, 0.42);
}

.poll-form-card .panel-head {
  margin-bottom: 10px;
}

.poll-form-card .panel-title,
.poll-form-card .panel-copy,
.poll-form-card .field label {
  color: #1f232c;
}

.poll-form-card .panel-title {
  font-size: 1rem;
}

.poll-form-card .panel-copy {
  font-size: 0.85rem;
  line-height: 1.45;
}

.white-form input,
.white-form select,
.white-form textarea {
  border-color: rgba(19, 21, 26, 0.1);
  color: #1f232c;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.white-form input::placeholder,
.white-form textarea::placeholder {
  color: #6b7280;
}

.white-form input:focus,
.white-form select:focus,
.white-form textarea:focus {
  border-color: rgba(255, 154, 98, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 0 0 4px rgba(255, 154, 98, 0.18);
}

.vote-banner-light {
  border-color: rgba(255, 154, 98, 0.18);
  background: rgba(255, 154, 98, 0.08);
  color: #5f4128;
}

.identity-inline {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.1fr) minmax(0, 0.98fr) auto;
  gap: 8px;
  align-items: center;
}

.inline-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(19, 21, 26, 0.1);
  background: rgba(255, 255, 255, 0.98);
}

.inline-field-compact {
  min-width: 0;
}

.inline-label {
  color: #4b5563;
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
}

.white-form .inline-field input {
  min-width: 0;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.white-form .inline-field input:focus {
  box-shadow: none;
}

.compact-submit {
  min-height: 30px;
  height: 30px;
  padding: 0 12px 0 14px;
  font-size: 0.88rem;
  white-space: nowrap;
}

.compact-submit::after {
  width: 22px;
  height: 22px;
  font-size: 0.72rem;
}

.compact-banner {
  padding: 8px 12px !important;
  font-size: 0.82rem;
  line-height: 1.4;
}

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

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

.field {
  display: grid;
  gap: 9px;
}

.field label {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    border-color 0.5s var(--motion),
    box-shadow 0.5s var(--motion),
    background-color 0.5s var(--motion);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-dim);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(202, 165, 106, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 4px rgba(202, 165, 106, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.field textarea {
  min-height: 148px;
  resize: vertical;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-soft);
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 18px;
  align-items: stretch;
}

.choice-card,
.agenda-item {
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.026));
}

.choice-card {
  min-height: 272px;
  height: 100%;
  display: grid;
  align-content: start;
  gap: 12px;
  cursor: pointer;
}

.choice-card.selected,
.agenda-segment button.active {
  border-color: rgba(202, 165, 106, 0.38);
  background: linear-gradient(180deg, rgba(202, 165, 106, 0.17), rgba(255, 255, 255, 0.05));
  box-shadow: 0 28px 60px -34px rgba(202, 165, 106, 0.45);
}

.choice-card.selected {
  border-color: rgba(240, 200, 139, 0.62);
  background:
    linear-gradient(180deg, rgba(240, 200, 139, 0.24), rgba(255, 255, 255, 0.08)),
    linear-gradient(135deg, rgba(202, 165, 106, 0.14), rgba(255, 255, 255, 0.04));
  box-shadow:
    0 34px 72px -34px rgba(202, 165, 106, 0.6),
    0 0 0 2px rgba(240, 200, 139, 0.2);
  transform: translateY(-4px) scale(1.015);
}

.choice-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.choice-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-dim);
  font-size: 0.77rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.choice-state::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.88;
}

.choice-state.selected {
  border-color: rgba(240, 200, 139, 0.36);
  background: rgba(240, 200, 139, 0.16);
  color: var(--accent-strong);
  box-shadow: 0 0 0 1px rgba(240, 200, 139, 0.08);
}

.choice-role {
  color: var(--accent-strong);
  font-weight: 600;
}

.choice-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  color: var(--ink-dim);
  font-size: 0.88rem;
}

.choice-card.selected .choice-meta {
  color: #f6e8d0;
}

.choice-card.selected .choice-role,
.choice-card.selected h3 {
  color: #fff7ea;
}

.agenda-list {
  display: grid;
  gap: 18px;
}

.agenda-item {
  display: grid;
  gap: 16px;
}

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

.agenda-segment button {
  min-height: 52px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-soft);
  transition:
    transform 0.5s var(--motion),
    border-color 0.5s var(--motion),
    background-color 0.5s var(--motion),
    color 0.5s var(--motion);
}

.agenda-segment button:hover {
  transform: translateY(-2px);
  border-color: rgba(202, 165, 106, 0.24);
}

.agenda-segment button.reject.active {
  border-color: rgba(255, 142, 119, 0.28);
  background: linear-gradient(180deg, rgba(255, 142, 119, 0.14), rgba(255, 255, 255, 0.04));
  color: #ffe8e2;
}

.vote-banner,
.info-banner {
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(202, 165, 106, 0.18);
  background: rgba(202, 165, 106, 0.08);
  color: var(--ink-soft);
}

.info-banner.closed {
  border-color: rgba(255, 142, 119, 0.18);
  background: rgba(255, 142, 119, 0.08);
}

.results-bars,
.results-list {
  display: grid;
  gap: 16px;
}

.results-bar {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.035);
}

.meter {
  position: relative;
  overflow: hidden;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.meter-fill,
.meter-fill-secondary {
  position: absolute;
  inset: 0 auto 0 0;
  height: 100%;
  border-radius: inherit;
}

.meter-fill {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-strong) 100%);
}

.meter-fill-secondary {
  background: linear-gradient(90deg, #ffc0ab 0%, var(--danger) 100%);
}

.stacked-meter {
  display: grid;
  grid-template-columns: var(--agree, 50%) var(--reject, 50%);
  overflow: hidden;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.stacked-meter .agree {
  background: linear-gradient(90deg, var(--success) 0%, #7ae2be 100%);
}

.stacked-meter .reject {
  background: linear-gradient(90deg, #ffb8a4 0%, var(--danger) 100%);
}

.empty-state {
  padding: 28px;
  color: var(--ink-soft);
}

.site-footer {
  padding: 0 0 42px;
  color: var(--ink-dim);
}

.footer-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 22px;
  text-align: center;
  border-radius: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  min-width: 240px;
  max-width: min(92vw, 380px);
  padding: 16px 18px;
  border-radius: 22px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition:
    opacity 0.5s var(--motion),
    transform 0.5s var(--motion);
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.toast.success {
  border-color: rgba(102, 201, 171, 0.2);
  background: rgba(102, 201, 171, 0.12);
}

.toast.error {
  border-color: rgba(255, 142, 119, 0.24);
  background: rgba(255, 142, 119, 0.12);
}

.reveal-item {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(28px) scale(0.985);
  transition:
    opacity 0.9s var(--motion),
    transform 0.9s var(--motion),
    filter 0.9s var(--motion);
  transition-delay: calc(var(--index, 0) * 75ms);
}

.reveal-item.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-18px) scale(1.03);
  }
}

@media (max-width: 1120px) {
  .admin-live-grid,
  .results-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 980px) {
  .hero,
  .split-layout,
  .metric-grid,
  .two-column {
    grid-template-columns: 1fr;
  }

  .home-polls .poll-grid {
    grid-template-columns: 1fr;
  }

  .home-polls .poll-grid > *,
  .home-polls .poll-grid > *:nth-child(1),
  .home-polls .poll-grid > *:nth-child(2) {
    grid-column: auto;
    transform: none;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding-top: 12px;
  }

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

  .brand {
    justify-content: flex-start;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .page {
    width: min(calc(100% - 28px), var(--max-width));
    padding-top: 30px;
    padding-bottom: 78px;
  }

  .page-home {
    width: min(calc(100% - 28px), 1040px);
    padding-top: 64px;
  }

  .hero-card,
  .panel,
  .metric-card,
  .admin-card,
  .poll-button,
  .choice-card,
  .agenda-item,
  .results-row {
    padding: 22px;
    border-radius: 26px;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: 2.5rem;
  }

  .choice-grid,
  .agenda-segment {
    grid-template-columns: 1fr;
  }

  .button,
  .button-secondary,
  .button-ghost {
    width: 100%;
    justify-content: space-between;
  }

  .button-row > * {
    flex: 1 1 100%;
  }

  .toast {
    left: 14px;
    right: 14px;
    bottom: 14px;
    max-width: none;
  }
}
