:root {
  --bg: #03070c;
  --bg-soft: #07111b;
  --surface: rgba(8, 18, 29, 0.94);
  --surface-2: rgba(12, 27, 42, 0.96);
  --surface-3: rgba(18, 35, 51, 0.92);
  --line: rgba(184, 154, 82, 0.42);
  --line-soft: rgba(184, 154, 82, 0.19);
  --gold: #b89a52;
  --gold-light: #e2c77f;
  --red: #861f24;
  --red-light: #b83a3f;
  --text: #e4ebf2;
  --text-soft: #aab7c4;
  --text-muted: #778696;
  --green: #62a36e;
  --danger: #d26767;
  --shadow: rgba(0, 0, 0, 0.48);
  --radius: 6px;
  --max-width: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 50% -12rem, rgba(24, 63, 94, 0.4), transparent 42rem),
    linear-gradient(180deg, #08131e 0, #03070c 36rem, #020508 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, black, transparent 75%);
}

button,
input,
textarea {
  font: inherit;
}

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

a {
  color: inherit;
}

img,
video {
  max-width: 100%;
}

.hidden {
  display: none !important;
}

.page-background {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  pointer-events: none;
}

.cloud-layer {
  position: absolute;
  top: 78px;
  left: 50%;
  width: min(1500px, 130vw);
  height: 260px;
  transform: translateX(-50%);
  opacity: 0.26;
  background: url("assets/invicta-clouds.png") center top / cover no-repeat;
  filter: saturate(0.9) brightness(0.85);
}

.site-shell,
.header-inner,
.footer-inner {
  width: min(var(--max-width), calc(100% - 34px));
  margin: 0 auto;
}

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(3, 8, 13, 0.9);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
}

.site-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.55;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 92px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 218px;
  height: auto;
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.5));
}

.brand-section {
  padding-left: 18px;
  color: var(--gold-light);
  border-left: 1px solid var(--line);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.header-nav a,
.text-button {
  padding: 8px 0;
  color: #b8c4ce;
  border: 0;
  background: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 150ms ease;
}

.header-nav a:hover,
.header-nav a:focus-visible,
.text-button:hover,
.text-button:focus-visible {
  color: var(--gold-light);
}

.site-shell {
  padding: 36px 0 70px;
}

.hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.95fr);
  min-height: 540px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(110deg, rgba(7, 17, 27, 0.99) 0%, rgba(7, 17, 27, 0.97) 48%, rgba(7, 17, 27, 0.58) 75%, rgba(7, 17, 27, 0.3) 100%),
    radial-gradient(circle at 77% 20%, rgba(68, 107, 139, 0.22), transparent 34%);
  box-shadow: 0 28px 70px var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 7px;
  pointer-events: none;
  border: 1px solid rgba(184, 154, 82, 0.16);
}

.hero-panel::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 120px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(1, 4, 7, 0.75));
}

.hero-copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 70px 28px 70px 68px;
}

.hero-copy h1,
.admin-login h1,
.admin-intro h1,
.poll-detail h1 {
  margin: 12px 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.hero-copy h1 {
  max-width: 720px;
  font-size: clamp(2.9rem, 5.5vw, 5.4rem);
  line-height: 0.98;
}

.hero-copy p {
  max-width: 690px;
  margin: 0;
  color: var(--text-soft);
  font-size: clamp(1.02rem, 1.55vw, 1.22rem);
  line-height: 1.75;
}

.section-kicker {
  color: var(--gold-light);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-art {
  position: relative;
  min-height: 540px;
}

.hero-art img {
  position: absolute;
  right: -96px;
  bottom: -125px;
  width: min(770px, 65vw);
  max-width: none;
  filter: brightness(0.76) saturate(0.82) contrast(1.08) drop-shadow(-18px 12px 30px rgba(0, 0, 0, 0.62));
}

.trust-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 660px;
  margin-top: 28px;
  color: #8797a6;
  font-size: 0.82rem;
  line-height: 1.55;
}

.trust-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 21px;
  height: 21px;
  color: #d9e6d9;
  border: 1px solid rgba(98, 163, 110, 0.52);
  border-radius: 50%;
  background: rgba(98, 163, 110, 0.12);
  font-size: 0.7rem;
  font-weight: 900;
}

.primary-button,
.secondary-button,
.compact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: 11px 20px;
  border-radius: 3px;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.primary-button {
  color: #fff4df;
  border: 1px solid #a83c41;
  background: linear-gradient(180deg, #9f2a30, #67171b);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.12), 0 8px 18px rgba(0, 0, 0, 0.28);
}

.primary-button:hover,
.primary-button:focus-visible {
  transform: translateY(-1px);
  border-color: #d55c61;
  background: linear-gradient(180deg, #b5363c, #781d21);
}

.primary-button:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.secondary-button,
.compact-button {
  color: #d8e1e8;
  border: 1px solid rgba(184, 154, 82, 0.42);
  background: rgba(184, 154, 82, 0.07);
}

.secondary-button:hover,
.secondary-button:focus-visible,
.compact-button:hover,
.compact-button:focus-visible {
  color: var(--gold-light);
  border-color: rgba(226, 199, 127, 0.68);
  background: rgba(184, 154, 82, 0.12);
}

.compact-button {
  min-height: 37px;
  padding: 8px 13px;
  font-size: 0.72rem;
}

.purpose-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 18px;
  border: 1px solid var(--line-soft);
  background: rgba(7, 16, 25, 0.9);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
}

.purpose-strip > div {
  padding: 22px 26px;
}

.purpose-strip > div + div {
  border-left: 1px solid var(--line-soft);
}

.purpose-strip strong,
.purpose-strip span {
  display: block;
}

.purpose-strip strong {
  margin-bottom: 6px;
  color: #dce6ee;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
}

.purpose-strip span {
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.content-section {
  margin-top: 60px;
  scroll-margin-top: 110px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 21px;
}

.section-heading h2,
.surface-panel h2 {
  margin: 7px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 3vw, 2.75rem);
  font-weight: 600;
  line-height: 1.1;
}

.section-heading p {
  max-width: 720px;
  margin: 9px 0 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.count-badge {
  display: grid;
  place-items: center;
  min-width: 52px;
  height: 52px;
  padding: 0 14px;
  color: var(--gold-light);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(184, 154, 82, 0.08);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  font-weight: 700;
}

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

.poll-card,
.admin-poll-card,
.surface-panel {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 34%),
    var(--surface);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.018);
}

.poll-card {
  position: relative;
  display: flex;
  min-height: 270px;
  flex-direction: column;
  overflow: hidden;
  padding: 28px;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.poll-card::after {
  content: "I";
  position: absolute;
  right: 22px;
  bottom: 2px;
  color: rgba(184, 154, 82, 0.055);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 8rem;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.poll-card:hover,
.poll-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(226, 199, 127, 0.56);
  background:
    linear-gradient(180deg, rgba(184, 154, 82, 0.045), transparent 36%),
    var(--surface-2);
}

.poll-card h3,
.admin-poll-card h3 {
  position: relative;
  z-index: 1;
  margin: 14px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.2;
}

.poll-card p,
.admin-poll-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--text-soft);
  line-height: 1.62;
}

.poll-card-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 28px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.poll-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.meta-chip,
.state-chip {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 4px 9px;
  border: 1px solid rgba(164, 183, 199, 0.18);
  border-radius: 999px;
  color: #9cacba;
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.state-chip.open {
  color: #9fd0a7;
  border-color: rgba(98, 163, 110, 0.35);
  background: rgba(98, 163, 110, 0.08);
}

.state-chip.closed {
  color: #d7a5a5;
  border-color: rgba(210, 103, 103, 0.32);
  background: rgba(210, 103, 103, 0.07);
}

.state-chip.scheduled,
.state-chip.draft {
  color: #dcc88f;
  border-color: rgba(184, 154, 82, 0.35);
  background: rgba(184, 154, 82, 0.08);
}

.card-arrow {
  color: var(--gold-light);
  font-size: 1.45rem;
}

.loading-card,
.empty-card,
.error-card {
  grid-column: 1 / -1;
  padding: 40px;
  color: var(--text-soft);
  border: 1px dashed rgba(184, 154, 82, 0.28);
  border-radius: var(--radius);
  text-align: center;
  background: rgba(8, 18, 29, 0.58);
}

.error-card {
  color: #efb0b0;
  border-color: rgba(210, 103, 103, 0.42);
}

.back-link {
  display: inline-block;
  margin: 5px 0 20px;
  color: #aab8c4;
  font-size: 0.86rem;
  text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--gold-light);
}

.poll-detail {
  position: relative;
  overflow: hidden;
  padding: 48px;
}

.poll-detail::after {
  content: "";
  position: absolute;
  top: 28px;
  right: 28px;
  width: 260px;
  height: 124px;
  opacity: 0.035;
  background: url("assets/invicta-logo.png") center / contain no-repeat;
  pointer-events: none;
}

.poll-detail-header {
  position: relative;
  z-index: 1;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line-soft);
}

.poll-detail h1 {
  max-width: 920px;
  font-size: clamp(2.35rem, 5vw, 4.3rem);
  line-height: 1.02;
}

.poll-description {
  max-width: 860px;
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.78;
  white-space: pre-wrap;
}

.poll-timing {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 21px;
}

.countdown {
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
}

.supporting-material {
  position: relative;
  z-index: 1;
  margin-top: 32px;
  padding-top: 4px;
}

.supporting-material h2 {
  margin-bottom: 6px;
}

.supporting-material > p {
  margin: 0;
  color: var(--text-muted);
}

.asset-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.asset-card,
.option-media {
  overflow: hidden;
  border: 1px solid rgba(184, 154, 82, 0.22);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.22);
}

.asset-card img,
.asset-card video,
.option-media img,
.option-media video {
  display: block;
  width: 100%;
  max-height: 450px;
  object-fit: contain;
  background: rgba(1, 4, 7, 0.76);
}

.asset-card audio,
.option-media audio {
  display: block;
  width: calc(100% - 24px);
  margin: 14px 12px;
  color-scheme: dark;
}

.asset-download {
  display: block;
  padding: 15px;
  color: var(--gold-light);
  font-weight: 700;
  text-decoration: none;
  word-break: break-word;
}

.asset-caption {
  padding: 10px 12px;
  color: var(--text-muted);
  border-top: 1px solid rgba(184, 154, 82, 0.16);
  font-size: 0.76rem;
  line-height: 1.45;
}

.vote-area {
  position: relative;
  z-index: 1;
  margin-top: 38px;
}

.vote-area > h2 {
  margin-top: 7px;
}

.vote-intro {
  max-width: 780px;
  margin: 8px 0 0;
  color: var(--text-muted);
  line-height: 1.65;
}

.vote-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin: 24px 0;
}

.choice-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(156, 175, 191, 0.2);
  border-radius: 5px;
  background: rgba(10, 23, 35, 0.84);
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.choice-card:hover,
.choice-card:has(input:checked) {
  transform: translateY(-1px);
  border-color: rgba(226, 199, 127, 0.62);
  background: rgba(16, 33, 48, 0.94);
}

.choice-card:has(input:checked) {
  box-shadow: inset 0 0 0 1px rgba(184, 154, 82, 0.25);
}

.choice-select {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 15px 17px;
  cursor: pointer;
}

.choice-select input {
  width: 20px;
  height: 20px;
  accent-color: var(--red-light);
}

.choice-select span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.35;
}

.option-media {
  margin: 12px 12px 0;
}

.option-media .asset-caption {
  background: rgba(255, 255, 255, 0.015);
}

.turnstile-box {
  min-height: 65px;
  margin: 18px 0;
}

.form-status {
  min-height: 24px;
  margin-top: 12px;
  color: var(--text-soft);
  line-height: 1.5;
}

.form-status.error {
  color: #e79696;
}

.form-status.success {
  color: #90c89a;
}

.result-list {
  display: grid;
  gap: 15px;
  margin-top: 24px;
}

.result-row {
  padding: 17px;
  border: 1px solid rgba(156, 175, 191, 0.18);
  border-radius: 4px;
  background: rgba(10, 23, 35, 0.72);
}

.result-row .option-media {
  margin: 0 0 15px;
}

.result-label {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 9px;
  font-weight: 700;
}

.result-label span:first-child {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
}

.result-label span:last-child {
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.result-progress {
  width: 100%;
  height: 14px;
  overflow: hidden;
  border: 1px solid rgba(184, 154, 82, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  appearance: none;
}

.result-progress::-webkit-progress-bar {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.result-progress::-webkit-progress-value {
  border-radius: 999px;
  background: linear-gradient(90deg, #6f191e, #bc4146);
}

.result-progress::-moz-progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, #6f191e, #bc4146);
}

.result-total,
.closed-message,
.voted-message,
.scheduled-message {
  margin-top: 20px;
  padding: 15px 17px;
  color: var(--text-soft);
  border-left: 3px solid var(--gold);
  background: rgba(184, 154, 82, 0.055);
  line-height: 1.6;
}

.site-footer {
  border-top: 1px solid var(--line-soft);
  background: rgba(2, 6, 10, 0.9);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 116px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.footer-brand img {
  width: 155px;
  opacity: 0.82;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 19px;
}

.footer-links a {
  color: #9eacb9;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--gold-light);
}

/* Administration */
.admin-main {
  min-height: calc(100vh - 210px);
}

.narrow-panel {
  width: min(560px, 100%);
  margin: 44px auto 0;
}

.admin-login {
  padding: 46px;
  text-align: center;
}

.admin-logo-wrap {
  margin: 0 auto 22px;
}

.admin-logo-wrap img {
  width: 270px;
}

.admin-login h1,
.admin-intro h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  line-height: 1;
}

.admin-login p,
.admin-intro p,
.panel-intro {
  color: var(--text-soft);
  line-height: 1.65;
}

.admin-login p {
  max-width: 440px;
  margin: 0 auto;
}

.stack-form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
  text-align: left;
}

.stack-form label,
.option-fieldset legend {
  color: #dbe4eb;
  font-size: 0.84rem;
  font-weight: 750;
}

.stack-form input[type="text"],
.stack-form input[type="password"],
.stack-form input[type="datetime-local"],
.stack-form input:not([type]),
.stack-form textarea,
.admin-login input {
  width: 100%;
  margin-top: 8px;
  padding: 12px 13px;
  color: var(--text);
  border: 1px solid rgba(157, 176, 192, 0.24);
  border-radius: 3px;
  outline: none;
  background: rgba(0, 0, 0, 0.25);
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.stack-form textarea {
  resize: vertical;
  min-height: 130px;
}

.stack-form input:focus,
.stack-form textarea:focus,
.admin-login input:focus {
  border-color: rgba(226, 199, 127, 0.65);
  background: rgba(0, 0, 0, 0.34);
  box-shadow: 0 0 0 3px rgba(184, 154, 82, 0.08);
}

.admin-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 20px;
  padding: 35px 40px;
}

.admin-intro h1 {
  margin-bottom: 9px;
}

.admin-intro p {
  margin: 0;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(410px, 0.9fr);
  gap: 20px;
  align-items: start;
}

.create-panel,
.manage-panel {
  padding: 34px;
}

.panel-intro {
  margin: 9px 0 0;
  font-size: 0.9rem;
}

.option-fieldset {
  min-width: 0;
  margin: 4px 0 0;
  padding: 18px;
  border: 1px solid rgba(184, 154, 82, 0.2);
  border-radius: 4px;
}

.option-fieldset legend {
  padding: 0 8px;
}

.field-help,
.file-help {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.55;
}

.field-help {
  margin: 0 0 15px;
}

.option-editor {
  display: grid;
  gap: 12px;
  margin-bottom: 13px;
}

.option-edit-row {
  position: relative;
  display: grid;
  gap: 9px;
  padding: 13px 42px 13px 13px;
  border: 1px solid rgba(157, 176, 192, 0.17);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.17);
}

.option-edit-row .poll-option-input {
  margin-top: 0;
}

.option-file-label {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  color: var(--text-muted) !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
}

.option-file-label input[type="file"] {
  width: 100%;
  min-width: 0;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.option-file-label input[type="file"]::file-selector-button,
.file-drop input[type="file"]::file-selector-button {
  margin-right: 10px;
  padding: 7px 10px;
  color: #d6dfe7;
  border: 1px solid rgba(184, 154, 82, 0.34);
  border-radius: 3px;
  background: rgba(184, 154, 82, 0.07);
  cursor: pointer;
}

.remove-option-button {
  position: absolute;
  top: 11px;
  right: 11px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: #b4c0ca;
  border: 1px solid rgba(157, 176, 192, 0.2);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
}

.remove-option-button:hover {
  color: #efb1b1;
  border-color: rgba(210, 103, 103, 0.48);
}

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

.optional-label {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 500;
}

.file-drop {
  display: grid;
  gap: 9px;
  padding: 16px;
  border: 1px dashed rgba(184, 154, 82, 0.34);
  border-radius: 4px;
  background: rgba(184, 154, 82, 0.035);
}

.file-drop > span:first-child {
  color: #dbe4eb;
  font-weight: 750;
}

.file-drop small {
  color: var(--text-muted);
  font-weight: 500;
}

.file-drop input[type="file"] {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.settings-box {
  display: grid;
  gap: 10px;
  padding: 15px;
  border: 1px solid rgba(157, 176, 192, 0.16);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.14);
}

.check-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 11px;
  cursor: pointer;
}

.check-row input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--red-light);
}

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

.check-row small {
  margin-top: 3px;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.45;
}

.compact-heading {
  align-items: center;
  margin-bottom: 18px;
}

.admin-poll-list {
  display: grid;
  gap: 13px;
}

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

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

.admin-card-top h3 {
  font-size: 1.22rem;
}

.admin-stats {
  flex: 0 0 auto;
  color: var(--text-muted);
  font-size: 0.72rem;
  text-align: right;
}

.admin-card-bottom {
  margin-top: 17px;
  padding-top: 14px;
  border-top: 1px solid rgba(157, 176, 192, 0.14);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.admin-actions a,
.admin-actions button {
  padding: 7px 9px;
  color: #c7d2dc;
  border: 1px solid rgba(157, 176, 192, 0.2);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.7rem;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.admin-actions a:hover,
.admin-actions button:hover {
  color: var(--gold-light);
  border-color: rgba(184, 154, 82, 0.52);
}

.admin-actions .danger-button:hover {
  color: #efaaaa;
  border-color: rgba(210, 103, 103, 0.52);
}

@media (max-width: 980px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 17px 0;
  }

  .header-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .hero-panel {
    grid-template-columns: 1fr;
    min-height: 610px;
  }

  .hero-copy {
    padding: 56px 46px 220px;
  }

  .hero-art {
    position: absolute;
    inset: 0;
    min-height: 0;
  }

  .hero-art img {
    right: -90px;
    bottom: -245px;
    width: 740px;
    opacity: 0.54;
  }

  .purpose-strip,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .purpose-strip > div + div {
    border-top: 1px solid var(--line-soft);
    border-left: 0;
  }
}

@media (max-width: 760px) {
  .site-shell,
  .header-inner,
  .footer-inner {
    width: min(100% - 22px, var(--max-width));
  }

  .site-shell {
    padding-top: 22px;
  }

  .brand {
    gap: 11px;
  }

  .brand img {
    width: 172px;
  }

  .brand-section {
    padding-left: 11px;
    font-size: 0.78rem;
  }

  .header-nav {
    gap: 17px;
  }

  .hero-panel {
    min-height: 570px;
  }

  .hero-copy {
    padding: 42px 27px 195px;
  }

  .hero-copy h1 {
    font-size: clamp(2.45rem, 13vw, 4rem);
  }

  .hero-art img {
    right: -110px;
    bottom: -215px;
    width: 650px;
  }

  .purpose-strip > div {
    padding: 18px 20px;
  }

  .section-heading,
  .admin-intro,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .poll-grid,
  .vote-options,
  .two-column-fields {
    grid-template-columns: 1fr;
  }

  .poll-detail,
  .create-panel,
  .manage-panel,
  .admin-login {
    padding: 27px 22px;
  }

  .poll-detail::after {
    width: 170px;
  }

  .footer-inner {
    padding: 26px 0;
  }

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

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

  .admin-stats {
    text-align: left;
  }
}

@media (max-width: 460px) {
  .brand-section {
    display: none;
  }

  .header-nav a,
  .text-button {
    font-size: 0.69rem;
  }

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

  .hero-actions a {
    width: 100%;
  }

  .hero-copy {
    padding-right: 20px;
    padding-left: 20px;
  }

  .poll-card {
    padding: 22px;
  }

  .result-label {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}
