:root {
  --ink: #1a1a1a;
  --red: #c4122e;
  --muted: #5c5c5c;
  --line: #ececec;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
  line-height: 1.5;
}

h1,
h2,
h3,
h4 {
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: 0;
}

h1 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

.author-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin: 0 0 0.5rem;
}

.author-line h1 {
  margin: 0;
}

.help-mark {
  display: inline-block;
  margin-left: 0.35rem;
  color: var(--red);
  font-weight: 650;
  text-decoration: none;
}

h2 {
  font-size: 1.05rem;
  margin: 1.6rem 0 0.45rem;
}

h3,
h4 {
  font-size: 1rem;
  margin: 1.2rem 0 0.35rem;
}

p {
  margin: 0 0 0.8rem;
}

a {
  color: var(--ink);
}

a:hover {
  color: var(--red);
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 0.5rem;
  top: -3rem;
  background: #fff;
  color: #111;
  padding: 0.4rem 0.6rem;
  z-index: 2;
}

.skip:focus {
  top: 0.5rem;
}

.wrap {
  width: min(40rem, calc(100% - 3rem));
  margin: 0 auto;
}

.site-header {
  background: #fff;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.35rem;
  padding-bottom: 1.1rem;
}

.brand {
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1;
  text-decoration: none;
}

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

.brand-tld,
.brand:hover .brand-tld {
  color: var(--red);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  align-items: center;
}

.nav a,
.nav .linkish {
  color: inherit;
  text-decoration: none;
}

.nav a:hover,
.linkish:hover {
  color: var(--red);
  text-decoration: underline;
}

.who {
  color: var(--muted);
}

.linkish {
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}

.layout {
  display: block;
  padding: 1.15rem 0 3.5rem;
}

.lede {
  font-size: 1rem;
}

.home-intro {
  margin: 0.35rem 0 1.35rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--line);
}

.home-line {
  margin: 0 0 0.45rem;
  font-size: 1.7rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.home-ask {
  color: var(--red);
}

.home-intro .lede {
  margin: 0;
  max-width: 38rem;
  color: var(--muted);
}

.neighborhood-find {
  margin-top: 1.15rem;
}

.neighborhood-find p {
  flex-basis: 100%;
  margin: 0;
  max-width: 38rem;
  color: var(--muted);
}

.hint,
.meta,
.note,
.empty,
.comment-meta {
  color: var(--muted);
}

.meta {
  font-size: 0.92rem;
}

.poll-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.more-polls {
  margin: 1.25rem 0 0;
}

.poll-list li {
  border-bottom: 1px solid var(--line);
  padding: 1.15rem 0 1.2rem;
}

.poll-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.1rem;
  margin-top: 0.65rem;
}

.poll-close,
.poll-remove {
  margin: 0.75rem 0 0;
}

.poll-actions .poll-close,
.poll-actions .poll-remove {
  margin: 0;
}

.poll-close button.button,
.poll-remove > button.button {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.poll-close button.button:hover,
.poll-remove > button.button:hover {
  background: transparent;
  color: var(--red);
}

.poll-list .poll-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: transparent;
  border: 0;
}

.asker {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.asker:hover,
.asker:focus-visible {
  color: var(--red);
}

.poll-list .meta,
article .meta {
  display: flex;
  flex-wrap: nowrap;
  align-items: last baseline;
  gap: 0.2rem 0.85rem;
  margin-top: 0.35rem;
}

.poll-list .meta > span:first-child,
article .meta > span:first-child {
  min-width: 0;
}

.meta-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: baseline;
  gap: 0.85rem;
  white-space: nowrap;
}

article .meta {
  margin-bottom: 0.8rem;
}

.up-form {
  display: flex;
  gap: 0.35rem;
  align-items: baseline;
  margin: 0;
}

.flag-tally {
  display: inline-flex;
  gap: 0.35rem;
  align-items: baseline;
}

.flag-tally .flag-form {
  display: inline-flex;
}

.flag-form {
  margin: 0;
}

.flag {
  background: none;
  border: 0;
  padding: 0;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.comments .flag-form,
.comments .up-form {
  margin: 0;
}

.up {
  background: none;
  border: 0;
  padding: 0;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.up.is-on,
.up:hover {
  color: var(--red);
}

.poll-list .poll-card:hover,
.poll-list .poll-card:focus-visible {
  border-bottom-color: var(--line);
}

.poll-byline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin: 0 0 0.15rem;
  color: var(--muted);
  font-size: 0.92rem;
}

article .poll-byline {
  margin-bottom: 0.35rem;
}

.poll-byline p {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.poll-when {
  flex: 0 0 auto;
  white-space: nowrap;
}

.poll-list h2 {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
}

.poll-list .poll-card:hover h2,
.poll-list .poll-card:focus-visible h2 {
  color: var(--red);
  text-decoration: none;
}

.clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.3rem;
}

.poll-list .meta,
.empty {
  margin-bottom: 0;
}

.question {
  font-size: 1.05rem;
}

.prose,
.comment-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.is-buried {
  filter: blur(0.4rem);
  user-select: none;
}

.buried-note {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.button,
.button.secondary {
  display: inline-block;
  background: #fff;
  color: var(--red);
  text-decoration: none;
  border: 1px solid var(--red);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  text-align: center;
}

.button:hover,
.button.secondary:hover {
  background: #fff;
  color: #a30f26;
}

form .button {
  display: inline-block;
  width: auto;
  max-width: 100%;
}

.warn-enter {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.warn-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.warn-box {
  width: min(22rem, calc(100vw - 2rem));
  max-width: min(22rem, calc(100vw - 2rem));
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 1.15rem 1.2rem 1rem;
  white-space: normal;
  overflow: visible;
}

.warn-box h2 {
  margin: 0 0 0.55rem;
}

.warn-box p {
  margin: 0 0 0.9rem;
}

.warn-box .button {
  display: inline-block;
  width: auto;
  margin: 0 0.6rem 0.4rem 0;
}

dialog.warn-box {
  position: fixed;
  inset: 0;
  height: fit-content;
  margin: auto;
  z-index: 2;
}

dialog.warn-box::backdrop {
  background: rgba(26, 26, 26, 0.35);
}

#basics-warn.warn-box {
  width: min(28rem, calc(100vw - 2rem));
  max-width: min(28rem, calc(100vw - 2rem));
}

.warn-toggle:not(:checked) ~ dialog.warn-box {
  display: none;
}

body:has(.warn-toggle:checked)::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.35);
  z-index: 1;
}

label.button {
  cursor: pointer;
}

form {
  margin: 0 0 1rem;
}

fieldset {
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  margin: 0.4rem 0 1rem;
  padding: 0.8rem 0 0.2rem;
}

legend {
  font-family: inherit;
  font-weight: 650;
  padding: 0;
}

.profile-answers {
  margin: 1.4rem 0 0.4rem;
}

.survey-built {
  margin: 0 0 1.2rem;
  padding-left: 1.2rem;
}

.survey-built li {
  margin: 0.8rem 0;
}

.survey-question {
  margin: 1.4rem 0;
  padding-top: 0.4rem;
  border-top: 1px solid var(--line);
}

.profile-head,
.profile-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  padding: 1.15rem 1.2rem 1.05rem;
  margin: 0 0 0.85rem;
}

.profile-head {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.profile-head h1,
.profile-head p,
.profile-card > h2 {
  margin: 0;
}

form.profile-card > h2 {
  margin: 0 0 0.45rem;
}

.zip-section,
.link-section {
  border-top: 0;
}

.zip-section > summary,
.link-section > summary {
  font-size: 1.05rem;
}

.link-section {
  margin-top: 0.35rem;
}

form.profile-card > .link-section + h2 {
  margin-top: 1.35rem;
}

.profile-card .zip-note,
.profile-card .link-intro,
.profile-card .link-rule {
  color: var(--muted);
}

.link-list {
  margin: 0.35rem 0 0.2rem;
}

.link-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  border-bottom: 1px solid #d4d4d4;
}

.link-row:focus-within {
  border-bottom: 2px solid var(--red);
}

.link-row input[type="text"] {
  flex: 1;
  width: auto;
  min-width: 0;
  border-bottom: 0;
  padding: 0.55rem 0;
}

.link-row input[type="text"]:focus,
.link-row input[type="text"]:focus-visible {
  border-bottom: 0;
  outline: none;
}

.link-guidelines {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 1.05rem 0 0.15rem;
  font-weight: 650;
}

.link-mark {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
  color: var(--red);
}

.profile-card .link-rule {
  margin: 0.15rem 0 0.35rem;
}

.account-at {
  font-size: 1.15rem;
  font-weight: 650;
  line-height: 1;
}

.profile-head p,
.account-note,
.profile-callout p,
.privacy-row p {
  color: var(--muted);
}

.profile-head p {
  margin-top: 0.15rem;
}

.profile-badge,
.account-icon,
.profile-shield {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.profile-badge {
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 0.45rem;
  background: var(--red);
  color: #fff;
}

.profile-badge svg,
.account-icon svg,
.profile-shield svg,
.account-lock svg {
  width: 1.2rem;
  height: 1.2rem;
}

.account-row,
.privacy-row {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.account-row + .account-row,
.privacy-row + .privacy-row {
  border-top: 1px solid var(--line);
  margin-top: 0.95rem;
  padding-top: 0.95rem;
}

.account-icon {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  background: #f3f3f4;
  color: #6d6d6d;
}

.account-copy {
  min-width: 0;
}

.account-label {
  margin: 0;
  color: #8a8a8a;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.account-value {
  margin: 0.12rem 0;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.account-note,
.profile-callout p,
.privacy-row p {
  margin: 0;
}

.account-lock {
  margin-left: auto;
  color: #8a8a8a;
}

.profile-card-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.profile-shield {
  color: var(--red);
}

.profile-shield svg {
  width: 1.15rem;
  height: 1.15rem;
}

.profile-callout {
  background: #fdf2f3;
  border-radius: 0.45rem;
  padding: 0.85rem 1rem;
  margin: 0.85rem 0 1rem;
}

.profile-callout h3,
.privacy-row h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
}

.profile-callout h3 {
  color: var(--red);
}

.profile-notes {
  margin: 0.2rem 0 1rem;
  padding-left: 1.2rem;
}

.profile-notes li {
  margin: 0.45rem 0;
}

.profile-blurb {
  margin: 0 0 0.75rem;
}

.is-hidden {
  display: none;
}

.profile-clear {
  margin: 0.15rem 0 0.55rem;
}

.profile-section {
  border-top: 1px solid var(--line);
  margin: 0;
  padding: 0.15rem 0 0.35rem;
  scroll-margin-top: 0.75rem;
}

.profile-section summary {
  cursor: pointer;
  font-weight: 650;
  padding: 0.55rem 0;
}

.profile-mark {
  display: inline-block;
  width: 1.15rem;
  height: 1.15rem;
  margin-right: 0.4rem;
  color: var(--red);
  vertical-align: -0.18rem;
}

.profile-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.profile-section summary:hover {
  color: var(--red);
}

.profile-group {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
  padding: 0.75rem 0 0.35rem;
}

.profile-group legend {
  display: block;
  margin-bottom: 0.35rem;
}

.profile-group .field {
  margin-bottom: 0.45rem;
}

.profile-choices {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.1rem;
  row-gap: 0.1rem;
  margin: 0.1rem 0 0.35rem;
}

.profile-choices .choice {
  flex: 1 1 14rem;
  margin: 0.2rem 0;
}

.profile-chart {
  margin: 0.15rem 0 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.profile-chart .choice {
  margin: 0;
}

.choice {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin: 0.45rem 0 0.7rem;
}

input[type="radio"],
input[type="checkbox"] {
  accent-color: var(--red);
}

.field {
  display: block;
  margin: 0 0 0.9rem;
}

.field span {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 650;
}

.field .secret-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0;
  font-weight: inherit;
  border-bottom: 1px solid #d4d4d4;
}

.secret-line input[type="password"],
.secret-line input[type="text"] {
  flex: 1;
  min-width: 0;
  width: auto;
  border-bottom: 0;
}

.secret-line input[type="password"]:focus,
.secret-line input[type="text"]:focus,
.secret-line input[type="password"]:focus-visible,
.secret-line input[type="text"]:focus-visible {
  border-bottom: 0;
  outline: none;
}

.secret-line:focus-within {
  border-bottom: 2px solid var(--red);
}

.secret-toggle {
  flex: none;
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--red);
  font: inherit;
  font-weight: 500;
  padding: 0.45rem 0 0.5rem;
  cursor: pointer;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  width: 100%;
  font: inherit;
  padding: 0.45rem 0 0.5rem;
  border: 0;
  border-bottom: 1px solid #d4d4d4;
  border-radius: 0;
  background: transparent;
}

textarea {
  resize: none;
}

.field textarea {
  field-sizing: content;
  min-height: 1.6rem;
  overflow: hidden;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

select {
  appearance: none;
  padding-right: 1.25rem;
  cursor: pointer;
}

label.field:has(select) {
  position: relative;
}

label.field:has(select)::after {
  content: "";
  position: absolute;
  right: 0.15rem;
  bottom: 0.7rem;
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: rotate(45deg);
  pointer-events: none;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus,
input[type="text"]:focus-visible,
input[type="email"]:focus-visible,
input[type="password"]:focus-visible,
textarea:focus-visible,
select:focus-visible {
  border-bottom: 2px solid var(--red);
  outline: none;
}

.errors,
.flash,
.banner {
  background: transparent;
  border: 0;
  border-left: 3px solid var(--red);
  padding: 0.1rem 0 0.1rem 0.75rem;
  margin: 0 0 1rem;
}

.errors ul {
  margin: 0;
  padding-left: 1.2rem;
}

.flash.ok {
  border-left-color: var(--ink);
}

.result {
  margin: 0 0 0.7rem;
}

.result-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
}

.track {
  height: 0.45rem;
  background: var(--line);
}

.fill {
  height: 100%;
  background: var(--red);
}

.pct-0 { width: 0%; }
.pct-5 { width: 5%; }
.pct-10 { width: 10%; }
.pct-15 { width: 15%; }
.pct-20 { width: 20%; }
.pct-25 { width: 25%; }
.pct-30 { width: 30%; }
.pct-35 { width: 35%; }
.pct-40 { width: 40%; }
.pct-45 { width: 45%; }
.pct-50 { width: 50%; }
.pct-55 { width: 55%; }
.pct-60 { width: 60%; }
.pct-65 { width: 65%; }
.pct-70 { width: 70%; }
.pct-75 { width: 75%; }
.pct-80 { width: 80%; }
.pct-85 { width: 85%; }
.pct-90 { width: 90%; }
.pct-95 { width: 95%; }
.pct-100 { width: 100%; }

.group {
  margin: 0 0 1rem;
}

.group-label {
  font-weight: 650;
  margin-bottom: 0.3rem;
}

.result-board {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

.result-board > .stat {
  align-self: start;
  min-width: 8.5rem;
}

.result-board .tile-status {
  display: block;
  margin-top: 0.35rem;
  overflow-wrap: anywhere;
}

.result-board .meter {
  margin-top: 0.75rem;
}

.result-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.4rem;
}

.stat-share {
  font-size: 1.05rem;
  font-weight: 650;
}

.lane-share {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.75rem;
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.results-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.results-head h2 {
  margin-top: 0;
}

.breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.85rem 0 0;
}

.creator-links {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
  flex: none;
}

.creator-links a {
  display: flex;
  color: var(--red);
  line-height: 0;
}

.creator-links a:hover {
  color: var(--ink);
}

.creator-links-label {
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

.creator-links .link-mark {
  width: 1.4rem;
  height: 1.4rem;
}

.breakdown-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 400;
  text-decoration: none;
}

.breakdown-link:hover {
  color: var(--red);
}

.share-menu {
  position: relative;
  margin: 0.15rem 0 1rem;
}

.share-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  padding: 0.28rem 0.8rem 0.28rem 0.62rem;
  border: 1px solid var(--red);
  border-radius: 999px;
  background: #fff;
  color: var(--red);
  font-size: 0.9rem;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.share-menu summary::-webkit-details-marker,
.share-menu summary::marker {
  display: none;
  content: "";
}

.share-menu summary:hover,
.share-menu[open] > summary {
  color: #a30f26;
  border-color: #a30f26;
}

.share-panel {
  width: fit-content;
  min-width: 11rem;
  margin-top: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: #fff;
  padding: 0.3rem;
}

.share-panel button,
.share-panel a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  margin: 0;
  padding: 0.45rem 0.65rem;
  border: 0;
  border-radius: 0.45rem;
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.share-panel button:hover,
.share-panel button.is-on,
.share-panel a:hover {
  background: #fdf2f3;
  color: var(--red);
}

.copy-hold {
  position: fixed;
  left: -9999px;
  top: 0;
}

body.embed-page {
  background: #fff;
}

.embed-card {
  width: min(40rem, calc(100% - 2rem));
  margin: 1rem auto 1.5rem;
}

.embed-out {
  margin: 0.9rem 0 0;
  font-size: 0.9rem;
}

.embed-out a {
  color: var(--red);
  text-decoration: none;
}

.embed-out a:hover {
  text-decoration: underline;
}

.embed-choices {
  list-style: none;
  margin: 0.15rem 0 1.1rem;
  padding: 0;
}

.embed-choices li {
  position: relative;
  margin: 0.4rem 0;
  padding-left: 1.35rem;
}

.embed-choices li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28rem;
  width: 0.72rem;
  height: 0.72rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.embed-preview {
  display: block;
  width: min(30rem, 100%);
  height: 45rem;
  margin: 0 0 1.25rem;
  border: 1px solid var(--line);
  background: #fff;
}

.embed-code textarea {
  min-height: 7rem;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.85rem;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.icon-button:hover,
.icon-button.is-on {
  color: var(--red);
}

.icon-button.send {
  background: var(--red);
  color: #fff;
}

.icon-button.send:hover {
  background: #a30f26;
  color: #fff;
}

body.monitor .wrap {
  width: min(64rem, calc(100% - 2rem));
}

.community-delete {
  margin-top: 0.85rem;
}

.monitor-back {
  color: var(--red);
  font-weight: 650;
  text-decoration: none;
}

.monitor-back:hover {
  text-decoration: underline;
}

.monitor-stats,
.monitor-grid {
  display: grid;
  gap: 0.75rem;
}

.monitor-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1rem 0;
}

.stat,
.tile {
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.85rem 0.95rem 1rem;
}

.stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 650;
  line-height: 1.1;
}

.stat-name {
  display: block;
  font-size: 1.15rem;
  font-weight: 650;
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

a.stat,
a.tile {
  color: inherit;
  text-decoration: none;
}

a.stat:hover,
a.tile:hover {
  border-color: var(--red);
  color: inherit;
}

.dash-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
}

.dash-stats .stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.45rem;
  min-height: 6.6rem;
}

.dash-stats .stat-name {
  overflow-wrap: break-word;
}

.dash-stats button.stat .stat-name {
  margin-bottom: 0;
  color: inherit;
  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dash-stats form {
  margin: 0;
}

button.stat {
  width: 100%;
  border-radius: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

button.stat:hover {
  border-color: var(--red);
}

.dash-tile p {
  margin: 0 0 0.45rem;
}

.stat span:last-child:not(.stat-num):not(.stat-name),
.tile-status {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.monitor-grid {
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
}

.tile h2 {
  margin: 0 0 0.7rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tile.is-down {
  background: #fafafa;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.swatch,
.seg {
  background: var(--red);
}

.swatch {
  width: 0.7rem;
  height: 0.7rem;
}

.lane {
  margin: 0 0 0.75rem;
}

.lane-top {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.92rem;
}

.meter {
  display: flex;
  height: 0.7rem;
  background: var(--line);
  margin-top: 0.25rem;
}

.seg {
  height: 100%;
}

.opt-0 { background: #c4122e; }
.opt-1 { background: #1a1a1a; }
.opt-2 { background: #5c5c5c; }
.opt-3 { background: #8d8d8d; }
.opt-4 { background: #6e1a28; }
.opt-5 { background: #3d3d3d; }
.opt-6 { background: #a30f26; }
.opt-7 { background: #b7b7b7; }

.thread-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
}

.thread-head h2,
.thread h2 {
  margin-bottom: 0.75rem;
}

.sort-bar {
  display: flex;
  gap: 0.85rem;
  margin: 0 0 0.75rem;
}

.place-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1rem;
  margin: 0 0 1rem;
}

.place-line input {
  width: 14rem;
  flex: none;
}

.place-name {
  font-weight: 650;
}

.place-list {
  flex-basis: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.place-choice {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.sort-bar button,
.sort-bar a {
  background: none;
  border: 0;
  padding: 0;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
}

.sort-bar button:hover,
.sort-bar a:hover {
  color: var(--ink);
  font-weight: 650;
}

.sort-bar button.is-on,
.sort-bar a.is-on {
  color: var(--red);
  font-weight: 650;
}

.composer {
  margin: 0 0 0.25rem;
}

@media (pointer: coarse) {
  .composer {
    scroll-margin-top: 5rem;
    scroll-margin-bottom: 45vh;
  }

  .composer textarea,
  .ask textarea,
  .ask input {
    font-size: 16px;
  }

  /* Room to scroll the field above the keyboard. */
  body.composer-lift {
    padding-bottom: 50vh;
  }

  .composer.is-lifted,
  .ask.is-lifted {
    position: relative;
    z-index: 4;
    background: #fff;
  }
}

.composer textarea {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 0.55rem 0 0.4rem;
  border: 0;
  border-bottom: 1px solid #d4d4d4;
  border-radius: 0;
  resize: none;
  overflow: hidden;
  line-height: 1.4;
  background: transparent;
}

.composer textarea::placeholder {
  color: var(--muted);
}

.composer textarea:focus {
  outline: none;
  border-bottom: 2px solid var(--ink);
}

.composer-actions {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.65rem;
}

/* Stay visible once there is text. A phone drops focus before the send tap lands. */
.composer:focus-within .composer-actions,
.composer:valid .composer-actions {
  display: flex;
}

.composer:focus-within textarea,
.composer:valid textarea {
  height: 4.75rem;
  overflow: auto;
}

.composer-actions .choice {
  margin: 0;
}

.composer-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.75rem;
}

.composer-name a {
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: none;
}

.composer-name a:hover {
  color: var(--red);
}

.composer-actions .icon-button {
  flex: none;
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
}

.composer-actions .icon-button::before {
  content: "";
  position: absolute;
  inset: -0.4rem;
}

.comments {
  list-style: none;
  padding: 0;
  margin: 0.35rem 0 0;
}

.comments li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  padding: 0.85rem 0 0.35rem;
}

.avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 650;
  line-height: 1;
}

.avatar.is-quiet {
  background: #8d8d8d;
}

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

.comment-meta {
  margin: 0.15rem 0 0.15rem;
  font-size: 0.82rem;
}

.comment-meta strong {
  color: var(--ink);
  font-weight: 650;
}

.comment-body {
  margin: 0;
}

.comment-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.3rem;
}

.comment-status {
  flex-basis: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.2rem 0 2rem;
  color: var(--muted);
  background: #fff;
}

.site-footer p {
  margin: 0;
  font-size: 0.85rem;
}

.footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.footer-copy {
  margin-left: auto;
  white-space: nowrap;
  text-align: right;
}

.site-footer a:hover {
  color: var(--red);
}

.sign-panel {
  width: min(22rem, 100%);
  margin: 2rem auto 0;
}

.sign-panel h1 {
  text-align: center;
  font-weight: 500;
  font-size: 1.6rem;
  margin: 0.2rem 0 1.6rem;
}

.sign-id {
  margin: -1.1rem 0 1.3rem;
  text-align: center;
  color: var(--muted);
}

body.sign-in .button.solid {
  display: inline-block;
  width: auto;
  margin-top: 1.15rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: #fff;
  color: var(--red);
  border: 1px solid var(--red);
  text-align: center;
  text-decoration: none;
}

body.sign-in .button.solid:hover {
  background: #fff;
  color: #a30f26;
}

body.sign-in .button.sign-next {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.sign-links {
  margin: 0.45rem 0;
}

.sign-links a,
.sign-foot a {
  color: var(--red);
  text-decoration: none;
}

.sign-links a:hover,
.sign-foot a:hover {
  color: var(--red);
  text-decoration: underline;
}

.sign-foot {
  border-top: 1px solid var(--line);
  margin: 1.5rem 0 0;
  padding-top: 1rem;
}

.sign-foot p {
  margin: 0;
}

.sign-foot p + p {
  margin-top: 0.45rem;
}

.sign-legal {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.sign-legal a {
  color: var(--red);
  text-decoration: none;
}

.sign-legal a:hover {
  text-decoration: underline;
}

.wizard-progress {
  margin: 0 0 1.4rem;
}

.wizard-count {
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.wizard-bar {
  display: flex;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.wizard-bar li {
  flex: 1;
  min-width: 0;
}

.wizard-mark {
  display: block;
  height: 4px;
  border-radius: 999px;
  background: var(--line);
}

.wizard-bar .is-done .wizard-mark,
.wizard-bar .is-current .wizard-mark {
  background: var(--red);
}

.wizard-label {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wizard-bar .is-current .wizard-label {
  color: var(--ink);
  font-weight: 650;
}

.wizard-legend {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.wizard fieldset,
fieldset:has(.wizard-legend) {
  border: 0;
  margin: 0 0 0.8rem;
  padding: 0;
}

fieldset:has(.wizard-legend) .choice {
  margin: 0 0 0.45rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--line);
}

fieldset:has(.wizard-legend) .choice:has(:checked) {
  border-color: var(--red);
}

.group-pick {
  display: none;
}

form:has(input[name="visibility"][value="group"]:checked) .group-pick {
  display: block;
}

.wizard-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.4rem;
}

.wizard-actions .button {
  width: auto;
  margin-left: auto;
}

.audience-step h1,
.ask h1 {
  font-size: 1.7rem;
  margin-bottom: 0.35rem;
}

.audience-step .lede {
  margin-bottom: 1.15rem;
}

.audience {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 0.85rem;
  align-items: center;
  margin: 0 0 0.35rem;
  padding: 0.9rem 1rem;
  border: 0;
  border-radius: 0.8rem;
  background: transparent;
  cursor: pointer;
}

.audience:has(:checked) {
  background: #fff5f6;
}

.audience input {
  appearance: none;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  border: 2px solid #c8c8c8;
  border-radius: 50%;
  background: #fff;
}

.audience:has(:checked) input {
  border-color: var(--red);
  background: radial-gradient(circle, var(--red) 0 42%, #fff 46%);
}

.audience-badge {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: #fde8ec;
  color: var(--red);
}

.audience-badge svg {
  width: 1.35rem;
  height: 1.35rem;
}

.audience-copy {
  display: block;
  min-width: 0;
}

.audience-name {
  display: block;
  font-weight: 700;
}

.audience-note {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.audience-step .group-pick {
  margin: -0.2rem 0 0.75rem 3.6rem;
}

.audience-step .group-pick a {
  color: var(--red);
  font-weight: 650;
  text-decoration: none;
}

.audience-step .group-pick a:hover {
  text-decoration: underline;
}

.ask .lede {
  margin-bottom: 1.15rem;
}

.ask .title-count {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.85rem;
  text-align: right;
}

.match-list {
  border: 0;
  margin: 0 0 0.4rem;
  padding: 0;
}

.match-pick {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  margin: 0 0 0.35rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.8rem;
  cursor: pointer;
}

.match-pick:has(:checked) {
  background: #fff5f6;
}

.title-line {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 1px solid #d4d4d4;
}

.title-line input {
  flex: 1;
  width: auto;
  min-width: 0;
  border-bottom: 0;
}

.title-line .title-count {
  margin: 0;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.85rem;
  white-space: nowrap;
}

.wizard-back {
  color: var(--muted);
  text-decoration: none;
}

.wizard-back:hover {
  color: var(--red);
}

.wizard-review {
  margin: 0 0 1.2rem;
}

.wizard-review dt {
  margin-top: 0.85rem;
  font-weight: 650;
}

.wizard-review dd {
  margin: 0.15rem 0 0;
}

.wizard-review ul {
  margin: 0.2rem 0 0;
  padding-left: 1.15rem;
}

@media (max-width: 520px) {
  .wizard-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
  }
}

@media (max-width: 860px) {
  .header-bar {
    flex-wrap: nowrap;
    gap: 0.75rem;
  }

  .brand {
    font-size: 1.25rem;
  }

  .nav {
    flex-wrap: nowrap;
    gap: 0.75rem;
    font-size: 0.95rem;
  }

  .nav a {
    white-space: nowrap;
  }

  .monitor-stats {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 360px) {
  .site-footer p {
    font-size: 0.68rem;
  }
}
