:root {
  --paper: #10110e;
  --white: #1b1d17;
  --ink: #f4f5ed;
  --muted: #a9ad9f;
  --green: #c0ff42;
  --lime: #303c1b;
  --line: #393d31;
  --red: #963e37;
  --serif: Arial, Helvetica, sans-serif;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a,
input,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #c0ff42;
  outline-offset: 4px;
}
header {
  height: 100px;
  max-width: 1240px;
  padding: 0 44px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--serif);
  font-size: 34px;
  letter-spacing: -1.5px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.brand-icon {
  font-size: 40px;
  line-height: 1;
}
.brand-dot {
  margin-left: -10px;
  color: #758344;
}
nav {
  display: flex;
  align-items: center;
  gap: 29px;
  font-size: 14px;
}
nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
}
.nav-account {
  background: transparent;
  border: 1px solid #606754;
  border-radius: 7px;
  color: var(--ink);
  padding: 12px 18px;
  min-height: 44px;
}
.nav-account span {
  margin-left: 16px;
}
main {
  min-height: calc(100vh - 230px);
}
.home {
  max-width: 1152px;
  margin: 68px auto 80px;
  padding: 0 16px;
}
.home-grid {
  display: grid;
  grid-template-columns: 1fr 1.03fr;
  gap: 90px;
  align-items: start;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 13px 0 23px;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  background: #c0ff42;
  border-radius: 50%;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-family: var(--serif);
  font-size: 66px;
  line-height: 1.05;
  letter-spacing: -2.5px;
  font-weight: 400;
  margin-bottom: 24px;
}
h1 em {
  color: #c0ff42;
  font-weight: 400;
}
p {
  line-height: 1.65;
}
.intro {
  font-size: 17px;
  color: #a9ad9f;
  max-width: 365px;
}
.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 27px 0 36px;
}
.pill {
  font-size: 11px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 30px;
  white-space: nowrap;
}
.pill i {
  font-style: normal;
  margin-right: 6px;
  color: #647747;
}
.demo {
  position: relative;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  max-width: 400px;
}
.overline {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.demo-card {
  margin: 16px 0 0;
  background: #eeefe5;
  border-radius: 12px;
  padding: 20px 23px;
  transform: rotate(-2deg);
  border: 1px solid #dfe3d3;
}
.demo-card .demo-q {
  font-family: var(--serif);
  font-size: 21px;
  margin: 0 0 14px;
}
.demo-row {
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  border-top: 1px solid #dce0d0;
}
.demo-row span:last-child {
  background: var(--white);
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 11px;
}
.demo-note {
  font-size: 11px;
  color: var(--muted);
  margin: 18px 0;
  text-align: center;
}
.create-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 9px 30px #263e2e05;
  padding: 30px 31px;
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 10px;
  margin-bottom: 26px;
}
.card-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.7px;
  margin-bottom: 7px;
}
.card-head p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.step-badge {
  font-size: 10px;
  color: #c0ff42;
  background: #303c1b;
  border-radius: 20px;
  padding: 7px 10px;
  white-space: nowrap;
}
.field-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 10px;
}
.optional {
  font-weight: 400;
  color: var(--muted);
  font-size: 11px;
}
input,
textarea {
  border: 1px solid #606754;
  background: #1b1d17;
  color: var(--ink);
  border-radius: 6px;
  padding: 13px 14px;
  width: 100%;
  min-height: 48px;
  font-size: 14px;
}
input::placeholder,
textarea::placeholder {
  color: #a9ad9f;
}
textarea {
  resize: vertical;
  min-height: 78px;
}
.field-help {
  font-size: 11px;
  color: var(--muted);
  margin: 8px 0 23px;
}
.option-input {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}
.option-number {
  height: 26px;
  width: 26px;
  border-radius: 50%;
  background: #292e20;
  color: #c0ff42;
  font-size: 11px;
  display: grid;
  place-items: center;
  flex: none;
}
.option-input input {
  flex: 1;
  min-width: 0;
}
.remove {
  border: 0;
  background: none;
  color: #a9ad9f;
  width: 44px;
  min-height: 44px;
  font-size: 21px;
  flex: none;
}
.add-option {
  width: 100%;
  border: 1px dashed #606754;
  background: none;
  border-radius: 6px;
  min-height: 44px;
  text-align: left;
  padding: 10px 14px;
  color: #c0ff42;
  font-size: 12px;
  margin: 3px 0 23px;
}
.add-option span {
  font-size: 17px;
  margin-right: 7px;
}
.publish-note {
  display: flex;
  gap: 8px;
  line-height: 1.6;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 18px;
}
.primary {
  border: 1px solid var(--green);
  background: var(--green);
  color: #10110e;
  border-radius: 7px;
  padding: 14px 21px;
  font-weight: 600;
  font-size: 14px;
  min-height: 49px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
}
.primary.wide {
  width: 100%;
}
.button-arrow {
  font-size: 19px;
  font-weight: 400;
}
.fine-print {
  text-align: center;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.6;
  margin: 12px 0 0;
}
.how-strip {
  border-top: 1px solid var(--line);
  margin-top: 65px;
  padding-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}
.how-item {
  display: flex;
  gap: 14px;
}
.how-num {
  font-family: var(--serif);
  font-size: 26px;
  color: #7f8c60;
  flex: none;
}
.how-item h3 {
  font-size: 12px;
  font-weight: 700;
  margin: 4px 0 6px;
}
.how-item p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  max-width: 230px;
}
footer {
  max-width: 1240px;
  margin: auto;
  border-top: 1px solid var(--line);
  padding: 26px 44px;
  display: flex;
  align-items: center;
  gap: 25px;
  color: var(--muted);
  font-size: 11px;
}
footer .small {
  font-size: 22px;
  color: var(--ink);
  white-space: nowrap;
}
footer span {
  flex: 1;
}
.text-button {
  border: 0;
  background: none;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  min-height: 44px;
  padding: 8px 0;
  font-size: 12px;
}
.page {
  max-width: 720px;
  margin: 45px auto 70px;
  padding: 0 20px;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  min-height: 44px;
  margin-bottom: 15px;
}
.page h1 {
  font-size: 43px;
  line-height: 1.15;
  letter-spacing: -1.3px;
  overflow-wrap: anywhere;
  margin-bottom: 17px;
}
.page-intro {
  font-size: 14px;
  color: var(--muted);
}
.status-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  margin: 8px 0 18px;
}
.status {
  border-radius: 20px;
  background: #303c1b;
  padding: 7px 11px;
  color: #c0ff42;
  font-weight: 700;
}
.status.closed {
  background: #292c24;
  color: #c3c7b9;
}
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  margin: 20px 0;
}
.share-url {
  display: flex;
  gap: 10px;
  margin: 20px 0 12px;
}
.secondary {
  background: transparent;
  border: 1px solid #606754;
  color: var(--ink);
  border-radius: 7px;
  padding: 11px 17px;
  min-height: 46px;
  font-size: 13px;
}
.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.hint {
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
  margin: 10px 0;
}
.notice {
  background: #303c1b;
  padding: 16px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
  margin: 18px 0;
}
.error {
  color: #ffaba7;
  background: #361e23;
  border: 1px solid #924a58;
  border-radius: 7px;
  padding: 13px;
  font-size: 13px;
  line-height: 1.6;
  margin: 12px 0;
}
.error:empty {
  display: none;
}
.error a {
  text-decoration: underline;
}
.ballot-option {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 21px;
  margin: 15px 0;
  background: var(--white);
  min-width: 0;
}
.ballot-option legend {
  padding: 0 6px;
  font-family: var(--serif);
  font-size: 22px;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.ratings {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.rating {
  position: relative;
  min-width: 0;
}
.rating input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  margin: 0;
}
.rating span {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  border: 1px solid #606754;
  border-radius: 7px;
  min-height: 82px;
  padding: 10px 3px;
  font-size: 11px;
  text-align: center;
}
.rating b {
  font-size: 22px;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1;
}
.rating input:checked + span {
  background: #303c1b;
  border: 2px solid #c0ff42;
  padding: 9px 2px;
  color: #46208f;
  font-weight: 700;
}
.rating input:focus-visible + span {
  outline: 3px solid #c0ff42;
  outline-offset: 3px;
}
.rating[data-value="NOT"] input:checked + span {
  background: #562231;
  border-color: #ff9aa8;
  color: #ffc5cf;
}
.ballot-option.invalid {
  border: 2px solid var(--red);
}
.submit-bar {
  position: sticky;
  bottom: 0;
  background: var(--paper);
  padding: 16px 0 max(16px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  margin-top: 25px;
  display: flex;
  gap: 16px;
  align-items: center;
  z-index: 2;
}
.submit-bar .primary {
  flex: 1;
}
.submit-progress {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.result-hero {
  background: #303c1b;
  border: 1px solid #556f2b;
  border-radius: 12px;
  padding: 26px;
  margin: 23px 0;
}
.result-hero .overline {
  color: #c0ff42;
}
.result-hero h2 {
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 400;
  line-height: 1.2;
  margin: 12px 0;
  overflow-wrap: anywhere;
}
.result-hero p {
  font-size: 13px;
  margin-bottom: 0;
  color: #c0c8b1;
}
.result-option {
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
}
.result-title {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: start;
}
.result-title h3 {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 400;
  overflow-wrap: anywhere;
  margin-bottom: 10px;
}
.favorite-tag {
  font-size: 10px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  background: #303c1b;
  padding: 6px 8px;
  border-radius: 20px;
}
.evidence {
  font-size: 12px;
  color: var(--muted);
  margin: 3px 0 13px;
}
.count-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}
.count-grid div {
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted);
}
.count-grid strong {
  display: block;
  font-size: 19px;
  color: var(--ink);
  font-weight: 400;
}
.bar {
  height: 6px;
  background: #30332b;
  border-radius: 5px;
  margin-bottom: 10px;
  overflow: hidden;
  display: flex;
}
.bar span {
  height: 100%;
  display: block;
}
.bar .love {
  background: #c0ff42;
}
.bar .works {
  background: #80a84a;
}
.bar .not {
  background: #ff7c97;
}
.bar .skip {
  background: #5b6151;
}
.creator-controls {
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding-top: 20px;
}
.creator-controls h2 {
  font-size: 13px;
}
.danger {
  color: #ff9aa8;
  border-color: #924a58;
}
.empty {
  text-align: center;
  padding: 45px 15px;
}
.empty h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
}
.tabs {
  display: flex;
  gap: 25px;
  border-bottom: 1px solid var(--line);
  margin: 28px 0 10px;
}
.tabs button {
  border: 0;
  background: none;
  padding: 14px 0;
  font-size: 13px;
  color: var(--muted);
  min-height: 44px;
}
.tabs button.active {
  color: var(--ink);
  border-bottom: 2px solid var(--green);
  font-weight: 700;
}
.history-item {
  display: block;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}
.history-item h2 {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 400;
  margin: 12px 0;
  overflow-wrap: anywhere;
}
.history-item .meta {
  display: flex;
  gap: 15px;
  color: var(--muted);
  font-size: 11px;
}
.settings-row {
  display: flex;
  gap: 12px;
  align-items: start;
  font-size: 13px;
  line-height: 1.6;
  margin: 18px 0;
}
.settings-row input {
  width: 20px;
  min-height: 20px;
  height: 20px;
  margin-top: 1px;
  flex: none;
  accent-color: var(--green);
}
.loading {
  padding: 80px 20px;
  text-align: center;
  font-family: var(--serif);
  font-size: 24px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
  color: var(--ink);
  padding: 36px;
  width: min(460px, calc(100% - 30px));
  max-height: 90dvh;
  overflow: auto;
}
dialog::backdrop {
  background: #000b;
}
dialog h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 31px;
  letter-spacing: -0.8px;
  margin-right: 10px;
}
dialog p {
  font-size: 13px;
  color: var(--muted);
}
.modal-close {
  position: absolute;
  right: 12px;
  top: 9px;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  font-size: 26px;
  color: var(--muted);
}
dialog .primary {
  margin-top: 14px;
  width: 100%;
}
dialog input {
  margin: 7px 0;
}
.code-input {
  font-size: 27px;
  letter-spacing: 8px;
  text-align: center;
}
.skip-link {
  position: fixed;
  top: -60px;
  left: 10px;
  z-index: 20;
  padding: 12px;
  background: var(--white);
}
.skip-link:focus {
  top: 10px;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 22px;
  background: var(--ink);
  color: white;
  border-radius: 8px;
  box-shadow: 0 3px 15px #0002;
  font-size: 13px;
  z-index: 20;
  max-width: 90%;
  text-align: center;
}
#toast {
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -8px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
}
#toast.toast-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
@media (prefers-reduced-motion: reduce) {
  #toast { transition: none; }
}
#network {
  background: #3e3520;
  padding: 12px 20px;
  text-align: center;
  font-size: 12px;
}
.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;
}
details {
  font-size: 12px;
  margin: 20px 0;
}
summary {
  cursor: pointer;
  min-height: 44px;
  padding: 13px 0;
}
.inline-link {
  text-decoration: underline;
}
.recovery-link {
  word-break: break-all;
  font-size: 12px;
}
.updated {
  font-size: 11px;
  color: var(--muted);
}
.offline-badge {
  color: #ffaba7;
}
.tagline-under {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}
.form-foot {
  margin-top: 24px;
}
.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #c0ff42;
  border-radius: 50%;
  margin-right: 6px;
}
@media (min-width: 1400px) {
  .home {
    margin-top: 83px;
  }
  .home-grid {
    gap: 110px;
  }
  h1 {
    font-size: 72px;
  }
}
@media (max-width: 900px) {
  .home-grid {
    gap: 35px;
  }
  h1 {
    font-size: 54px;
  }
  .home {
    margin-top: 45px;
    padding: 0 28px;
  }
  .create-card {
    padding: 25px;
  }
  .ratings {
    gap: 6px;
  }
  header {
    padding: 0 28px;
  }
  footer {
    padding: 25px 28px;
  }
}
@media (max-width: 680px) {
  header {
    height: 78px;
    padding: 0 20px;
  }
  .brand {
    font-size: 29px;
  }
  .brand-icon {
    font-size: 33px;
  }
  nav {
    gap: 15px;
    font-size: 12px;
  }
  .nav-account {
    padding: 9px 12px;
  }
  .nav-account span {
    display: none;
  }
  .home {
    margin: 29px auto 40px;
    padding: 0 20px;
  }
  .home-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .eyebrow {
    font-size: 10px;
    margin: 10px 0 17px;
  }
  h1 {
    font-size: 51px;
    letter-spacing: -2px;
    margin-bottom: 16px;
  }
  .intro {
    font-size: 15px;
    max-width: 330px;
    margin-bottom: 16px;
  }
  .feature-pills {
    margin: 20px 0 0;
    gap: 6px;
  }
  .pill {
    font-size: 10px;
    padding: 7px 9px;
  }
  .demo {
    display: none;
  }
  .create-card {
    padding: 23px 20px;
    border-radius: 11px;
  }
  .card-head {
    margin-bottom: 23px;
  }
  .card-head h2 {
    font-size: 27px;
  }
  .how-strip {
    margin-top: 34px;
    padding-top: 24px;
    gap: 23px;
    grid-template-columns: 1fr;
  }
  .how-item p {
    max-width: none;
  }
  .how-num {
    font-size: 25px;
  }
  footer {
    flex-wrap: wrap;
    gap: 8px 17px;
    padding: 24px 20px;
  }
  footer span {
    font-size: 10px;
    flex-basis: 65%;
    line-height: 1.6;
  }
  footer .text-button {
    font-size: 11px;
  }
  .page {
    margin-top: 22px;
    padding: 0 20px;
  }
  .page h1 {
    font-size: 35px;
  }
  .ballot-option {
    padding: 17px 12px;
  }
  .ballot-option legend {
    font-size: 23px;
  }
  .rating span {
    font-size: 10px;
    min-height: 83px;
  }
  .rating b {
    font-size: 23px;
  }
  .count-grid div {
    font-size: 9px;
  }
  .result-hero {
    padding: 23px;
  }
  .share-url {
    flex-wrap: wrap;
  }
  .share-url input {
    flex-basis: 100%;
  }
  .result-title {
    gap: 8px;
  }
  .favorite-tag {
    font-size: 9px;
  }
  .submit-bar {
    gap: 10px;
  }
  .submit-bar .primary {
    padding: 14px 10px;
    font-size: 13px;
  }
  .submit-progress {
    font-size: 10px;
  }
  .panel {
    padding: 20px;
  }
  .page .back {
    margin-bottom: 6px;
  }
  dialog {
    padding: 30px 22px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  a {
    transition:
      background 0.15s,
      color 0.15s;
  }
  button:hover {
    filter: brightness(0.96);
  }
}


@font-face { font-family: 'Archivo Black'; src: url('/fonts/archivo-black-latin.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
:root { color-scheme: dark; --display: 'Archivo Black', 'Arial Black', sans-serif; }
header { max-width: 1320px; height: 96px; border: 0; }
.brand { font-family: var(--display); font-size: 31px; letter-spacing: -1.5px; gap: 10px; }
.brand-dot { color: var(--green); }
.brand-icon { display: inline-block; flex: none; width: 35px; height: 35px; font-size: 0; background: url('/icon.svg') center / contain no-repeat; }
nav { font-weight: 700; }
.nav-account { border-radius: 0; border-color: var(--line); background: transparent; font-weight: 700; }
.home { max-width: 1240px; margin: 66px auto 100px; padding: 0 28px; }
.home-grid { grid-template-columns: 1.1fr 1fr; gap: 70px; align-items: center; }
.eyebrow { font-size: 12px; letter-spacing: 1.4px; color: var(--green); margin: 0 0 28px; }
.eyebrow::before { display: none; }
h1 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(68px, 7vw, 104px); letter-spacing: -6px; line-height: .94; margin-bottom: 0; }
h1 em { font-weight: 400; font-style: normal; color: var(--green); }
.intro { max-width: 370px; font-size: 18px; line-height: 1.5; margin: 28px 0 0; color: var(--muted); }
.create-card { background: transparent; padding: 0 0 0 36px; border: 0; border-left: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.card-head h2 { font-family: var(--display); text-transform: uppercase; font-size: 34px; font-weight: 400; letter-spacing: -1.5px; line-height: 1.05; }
.card-head p { font-size: 14px; }
.field-label { font-size: 14px; }
.optional { font-size: 12px; }
input, textarea { background: #1b1e16; border-color: #424837; border-radius: 3px; font-size: 16px; }
input::placeholder, textarea::placeholder { color: #a9ad9f; }
textarea { min-height: 92px; }
.question-space { height: 24px; }
.option-number { background: transparent; color: var(--green); font-weight: 800; font-size: 13px; }
.add-option { border: 0; padding-left: 36px; color: var(--green); font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.primary { background: var(--green); border-color: var(--green); color: #10110e; border-radius: 3px; font-size: 15px; font-weight: 900; min-height: 56px; text-transform: uppercase; letter-spacing: .4px; }
.secondary { background: transparent; border-color: #626b52; color: var(--ink); border-radius: 3px; font-weight: 700; }
.publish-note { font-size: 11px; }
.fine-print { font-size: 12px; }
footer { border-color: var(--line); font-size: 12px; }
footer .small { font-family: var(--display); }
footer .brand-icon { width: 25px; height: 25px; }
.page { max-width: 800px; margin-top: 30px; }
.page h1 { font-family: var(--display); font-size: clamp(46px, 5.5vw, 76px); line-height: 1; letter-spacing: -3px; font-weight: 400; margin: 22px 0 32px; }
.status { background: transparent; color: var(--green); padding: 0; }
.status::before { content: '●'; margin-right: 7px; }
.status.closed { background: transparent; color: var(--muted); }
.panel { border-radius: 4px; padding: 26px; border-color: var(--line); }
.share-panel { background: #242b18; border-color: #52682b; }
.share-panel .card-head { margin-bottom: 14px; }
.share-panel .card-head h2 { font-size: 29px; color: var(--green); }
.share-url { flex-wrap: wrap; margin: 12px 0; }
.share-url input { flex: 1 1 100%; }
.share-panel details { margin-bottom: 0; }
.ballot-option { background: transparent; border: 0; border-radius: 0; padding: 20px 0; margin: 22px 0; }
.ballot-option legend { font-family: var(--display); font-size: 26px; padding: 0; letter-spacing: -.8px; }
.ratings { gap: 9px; }
.rating span { background: #20241a; border: 2px solid #363d2c; border-radius: 4px; min-height: 90px; font-weight: 700; font-size: 12px; }
.rating b { font-family: Arial, sans-serif; font-size: 26px; font-weight: 700; }
.rating input:checked + span { background: #c0ff42; border-color: #c0ff42; color: #10110e; padding: 10px 3px; }
.rating[data-value="NOT"] input:checked + span { background: #ff7c97; color: #241015; border-color: #ff7c97; }
.rating[data-value="SKIP"] input:checked + span { background: #b3b9a7; color: #151710; border-color: #b3b9a7; }
.result-hero { background: var(--green); color: #10110e; border: 0; border-radius: 4px; padding: 28px; }
.result-hero .overline, .result-hero p { color: #263411; }
.result-hero h2 { font-family: var(--display); text-transform: uppercase; font-size: 40px; font-weight: 400; letter-spacing: -1.8px; }
.result-hero.result-final { position: relative; overflow: hidden; padding: clamp(28px, 6vw, 56px); margin: 28px 0 36px; }
.result-hero.result-final h2 { position: relative; font-size: clamp(38px, 7vw, 72px); line-height: 1.05; letter-spacing: -0.04em; margin: 20px 0; }
.result-hero.result-final .overline { font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
.result-hero.result-final .result-final-caption { font-size: 16px; line-height: 1.5; }
.result-tie-divider { display: block; font-size: .5em; margin: 12px 0; }
.pick-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.pick-confetti span { position: absolute; top: -16px; left: var(--left); width: 8px; height: 14px; background: #304916; animation: pick-confetti-fall 2.5s var(--delay) ease-in both; }
.pick-confetti span:nth-child(3n) { background: #fffdf0; border-radius: 50%; }
.pick-confetti span:nth-child(3n + 1) { background: #8060c9; }
@keyframes pick-confetti-fall {
  from { transform: translateY(-20px) rotate(0); opacity: 1; }
  to { transform: translate(var(--drift), 520px) rotate(var(--turn)); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .pick-confetti { display: none; } }
.result-title h3, .history-item h2 { font-family: var(--display); font-size: 26px; font-weight: 400; letter-spacing: -.7px; }
.favorite-tag { background: var(--green); color: #10110e; border-radius: 2px; font-weight: 800; }
.count-grid strong { font-weight: 800; }
.creator-controls h2 { font-size: 16px; }
dialog { border-radius: 5px; }
dialog h2, .empty h2 { font-family: var(--display); text-transform: uppercase; font-weight: 400; }
#toast { background: var(--green); color: #10110e; border-radius: 3px; font-weight: 700; }
@media (max-width: 900px) {
 .home-grid { gap: 32px; }
 .home { margin-top: 40px; }
 h1 { font-size: 74px; letter-spacing: -4px; }
 .create-card { padding-left: 25px; }
}
@media (max-width: 680px) {
 header { height: 80px; padding: 0 20px; }
 .brand { font-size: 25px; letter-spacing: -1.5px; gap: 7px; }
 .brand-icon { width: 28px; height: 28px; }
 nav { gap: 12px; }
 .nav-account { padding: 8px 10px; }
 .home { margin: 28px auto 60px; padding: 0 20px; }
 .home-grid { grid-template-columns: 1fr; gap: 38px; }
 .eyebrow { margin-bottom: 20px; font-size: 11px; }
 h1 { font-size: clamp(48px, 15.5vw, 90px); letter-spacing: -3.5px; line-height: .97; }
 .intro { font-size: 16px; max-width: 330px; margin-top: 20px; }
 .create-card { padding: 28px 0 0; border-left: 0; border-top: 1px solid var(--line); }
 .card-head h2 { font-size: 34px; }
 .card-head p { font-size: 13px; }
 .page { margin-top: 16px; }
 .page h1 { font-size: 46px; letter-spacing: -2px; margin: 20px 0 28px; }
 .panel, .result-hero { padding: 22px; }
 .share-panel .card-head h2 { font-size: 27px; }
 .ballot-option legend { font-size: 24px; }
 .ratings { gap: 6px; }
 .rating span { font-size: 10px; min-height: 84px; }
 .result-hero h2 { font-size: 34px; }
 .submit-bar .primary { font-size: 13px; }
 footer > span { display: none; }
 footer { justify-content: space-between; }
}

/* One idea at a time, followed by an explicit ballot review. */
[hidden] { display: none !important; }
.deck-top { display: flex; justify-content: space-between; gap: 12px; text-transform: uppercase; font-weight: 800; font-size: 12px; letter-spacing: 1px; color: var(--green); margin-top: 32px; }
.deck-private { color: var(--muted); font-size: 10px; }
.deck-steps { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 30px; }
.deck-step { position: relative; border: 1px solid #4e5740; background: transparent; color: var(--muted); width: 44px; min-height: 44px; font-weight: 800; border-radius: 50%; }
.deck-step[aria-current] { color: #10110e; background: var(--green); border-color: var(--green); }
.deck-step.is-answered:not([aria-current]) { color: var(--green); border-color: var(--green); }
.deck-step.is-answered .step-check::after { content: '✓'; position: absolute; bottom: -5px; right: -3px; font-size: 11px; background: var(--paper); color: var(--green); padding: 0 2px; }
.vote-deck .ballot-option { padding: 28px; margin: 0; background: #1b2015; border: 1px solid #3c482c; border-radius: 16px; }
.vote-deck .ballot-option legend { float: left; width: 100%; font-size: clamp(30px, 4vw, 46px); line-height: 1.12; margin-bottom: 34px; padding: 0; }
.vote-deck .ratings { clear: both; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.vote-deck .rating span { min-height: 110px; font-size: 14px; gap: 12px; border-radius: 12px; background: #282f20; border-color: transparent; }
.vote-deck .rating b { font-size: 34px; }
.vote-deck .rating input:checked + span { background: var(--green); border-color: var(--green); }
.vote-deck .rating[data-value="NOT"] input:checked + span { background: #ff7c97; border-color: #ff7c97; }
.vote-deck .rating[data-value="SKIP"] input:checked + span { background: #b3b9a7; border-color: #b3b9a7; }
.vote-deck .ballot-option.invalid { border: 2px solid #ff7c97; }
.vote-deck .submit-bar { flex-wrap: wrap; border: 0; padding-top: 14px; }
.vote-deck .submit-progress { flex: 1; text-align: center; }
.vote-deck #deck-next, .vote-deck #submit-ballot { flex: 1 1 100%; }
.deck-skip { margin: 16px 0 0; }
#deck-review h2 { font-family: var(--display); font-size: 36px; letter-spacing: -1.5px; margin: 0 0 12px; }
.review-choice { display: flex; align-items: center; justify-content: space-between; width: 100%; text-align: left; gap: 16px; background: #1b2015; border: 1px solid #3c482c; border-radius: 10px; padding: 20px; margin: 10px 0; color: var(--ink); font-size: 16px; overflow-wrap: anywhere; }
.review-choice > span:first-child { flex: 1; min-width: 0; }
.review-choice strong { font-size: 12px; color: var(--green); max-width: 40%; }
@media (max-width: 680px) {
 .vote-deck .ballot-option { padding: 24px 18px; }
 .vote-deck .ballot-option legend { font-size: 31px; margin-bottom: 28px; }
 .vote-deck .rating span { min-height: 104px; font-size: 12px; }
 .deck-private { letter-spacing: 0; }
}
@media (prefers-reduced-motion: no-preference) {
 .vote-deck .rating span { transition: transform .15s, background .15s; }
 .vote-deck .rating input:checked + span { transform: rotate(-2deg) scale(1.025); }
}

.ready-strip { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 20px 0 24px; font-size: 13px; color: var(--green); }
.ready-strip .secondary { font-size: 12px; }

.landing-how { margin-top: 110px; padding-top: 50px; border-top: 1px solid var(--line); }
.landing-how h2, .landing-install h2 { font-family: var(--display); text-transform: uppercase; font-size: clamp(36px, 4.5vw, 62px); letter-spacing: -2px; line-height: 1.06; font-weight: 400; margin-bottom: 36px; }
.landing-how h2 em { color: var(--green); font-style: normal; }
.landing-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 42px; }
.landing-number { color: var(--green); font-size: 14px; font-weight: 800; }
.landing-steps h3 { font-size: 22px; letter-spacing: -.6px; margin: 18px 0 12px; }
.landing-steps p, .install-facts p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.landing-footnote { color: var(--muted); font-size: 13px; margin: 28px 0 0; }
.landing-install { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; margin-top: 80px; padding: 40px; border: 1px solid #52682b; background: #1b2015; border-radius: 12px; }
.landing-install h2 { font-size: clamp(34px, 3.8vw, 52px); margin-bottom: 24px; }
.landing-install > div > p { color: var(--muted); max-width: 480px; }
.landing-install .primary { margin-top: 10px; text-align: center; }
.install-facts { display: grid; gap: 18px; align-content: center; }
.install-facts strong { font-size: 18px; }
.install-facts p { margin: 8px 0 0; }
@media (max-width: 680px) {
 .landing-how { margin-top: 64px; padding-top: 32px; }
 .landing-how h2, .landing-install h2 { font-size: 36px; letter-spacing: -1.5px; overflow-wrap: anywhere; }
 .landing-steps, .landing-install { grid-template-columns: 1fr; gap: 28px; }
 .landing-steps h3 { margin-top: 10px; }
 .landing-steps p { margin-bottom: 0; }
 .landing-install { margin-top: 44px; padding: 25px 20px; }
 .landing-install .primary { width: 100%; font-size: 13px; padding: 14px 12px; }
}

/* A little crowd, paired with a loud, compact wordmark. */
.brand { gap: 9px; font-size: 32px; letter-spacing: -1.7px; white-space: nowrap; }
.brand-name { display: inline-block; transform: rotate(-2deg); font-family: var(--display); line-height: 1; }
.brand-icon { background-image: url('/brand-mark.svg'); width: 44px; height: 44px; }
footer .brand-icon { width: 32px; height: 32px; }
footer .brand.small { font-size: 23px; letter-spacing: -1px; }
@media (max-width: 680px) {
 .brand { font-size: clamp(20px, 6vw, 26px); letter-spacing: -1.3px; gap: 6px; }
 .brand-icon { width: 32px; height: 32px; }
 header { gap: 10px; }
 nav { gap: 10px; flex: none; }
 footer .brand.small { font-size: 21px; }
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  column-gap: 24px;
  margin-top: 8px;
}

/* Keep action feedback in view, including on long ballot and results pages. */
#toast {
  top: calc(env(safe-area-inset-top, 0px) + 88px);
  bottom: auto;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 18px 24px;
  border: 2px solid var(--ink);
  box-shadow: 0 8px 28px #0004;
  font-size: 16px;
  line-height: 1.5;
  z-index: 100;
  pointer-events: none;
}
button.copy-confirmed {
  background: var(--green);
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--green);
}

/* Shared website footer and readable information pages. */
.site-footer { display: block; padding: 48px 44px 22px; margin-top: 64px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 36px; }
.site-footer span { flex: initial; }
.site-footer .brand { display: inline-flex; }
.footer-about p { font-size: 14px; line-height: 1.7; margin: 18px 0 0; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.footer-links h2 { font-size: 12px; color: var(--ink); margin: 0 0 14px; font-weight: 700; }
.footer-links a, .footer-links .text-button { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; padding: 8px 0; text-decoration: none; }
.footer-links a:hover, .footer-links .text-button:hover { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.footer-links [hidden] { display: none; }
.footer-bottom { border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; padding-top: 20px; }
.footer-bottom p { margin: 0; font-size: 12px; }
.site-footer .footer-bottom span { font-size: inherit; }
.information-page { max-width: 800px; padding-bottom: 20px; }
.information-eyebrow { color: var(--green); font-size: 11px; letter-spacing: 2px; margin-top: 32px; }
.information-page h1 { overflow-wrap: anywhere; }
.information-sections { margin-top: 36px; }
.information-sections section { border-top: 1px solid var(--line); padding: 24px 0; }
.information-sections h2 { font-size: 20px; margin: 0 0 12px; }
.information-sections p { color: var(--muted); font-size: 15px; line-height: 1.8; margin: 0; overflow-wrap: anywhere; }
.information-nav { display: flex; flex-wrap: wrap; gap: 12px 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.information-nav a { min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 680px) {
  .site-footer { padding: 32px 20px 22px; margin-top: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .footer-about { grid-column: 1 / -1; }
  .site-footer .brand span { font-size: inherit; flex-basis: auto; }
  .footer-about p { font-size: 13px; }
  .information-page h1 { font-size: 38px; }
}

/* The result stays first; the next plan is an optional step below it. */
.next-pick { margin-block: 24px; }
.next-pick h2 { max-width: 30ch; }
.next-pick .primary { display: inline-flex; gap: 20px; text-decoration: none; }
.share-result-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: clamp(18px, 4vw, 32px); margin-block: 20px; overflow-wrap: anywhere; }
.share-result-card > strong { display: block; color: var(--green); font-size: clamp(24px, 5vw, 36px); line-height: 1.2; }
#invite-message { margin-bottom: 12px; resize: vertical; }
#manual-copy { width: 100%; min-height: 130px; }

/* A dedicated action layout overrides the generic full-width dialog primary. */
.install-dialog h2 { margin-top: 14px; margin-right: 32px; font-size: clamp(25px, 4vw, 31px); line-height: 1.15; }
.install-actions { display: flex; gap: 14px; margin-top: 24px; flex-wrap: wrap; }
.install-actions > button { min-height: 48px; padding: 14px 22px; flex: 1 1 130px; margin: 0; }
dialog .install-actions .primary { width: auto; margin: 0; }
@media (max-width: 540px) {
  .install-actions { flex-direction: column; }
  .install-actions > button { flex: none; width: 100%; }
}

/* Shared by the landing page and app, including scrollable dialogs. */
@media (prefers-reduced-motion: no-preference) {
  html, dialog { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  html, dialog { scroll-behavior: auto; }
}
