:root {
  color-scheme: light;
  --ink: #211e20;
  --muted: #675e63;
  --line: #eee8ea;
  --accent: #d91d4c;
  --name-rose: #df2b59;
  --paper: #fff;
  --field-surface: #fafafa;
  --field-line: #d4d4d8;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(17px, 4vw, 56px);
  --content-width: min(760px, calc(100% - var(--gutter) * 2));
  --dock-bottom: max(20px, env(safe-area-inset-bottom));
  --top: max(25px, calc(env(safe-area-inset-top) + 12px));
  --content-gap: 24px;
  --page-heading-top: calc(var(--top) + 46px);
  --stage-top: calc(var(--page-heading-top) + 10px);
  --page-heading-size: clamp(1.7rem, 3.35vw, 2.3rem);
  --stage-bottom: calc(var(--dock-bottom) + 69px);
  --board-start: max(calc(var(--stage-top) + var(--content-gap)), calc(var(--page-heading-top) + 13px + var(--question-height, 36px)));
}

:root:has(#site-logo[hidden]) {
  --page-heading-top: calc(var(--top) + 20px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; background: var(--paper); color: var(--ink); font: 400 1rem/1.5 var(--sans); }
h1, h2, p, ol { margin: 0; }
h1 { font-size: var(--page-heading-size); line-height: 1.08; font-weight: 700; letter-spacing: -.048em; overflow-wrap: anywhere; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible { outline: 2px solid #a9113c; outline-offset: 4px; }

main {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: var(--stage-bottom);
}
#title { position: absolute; top: var(--page-heading-top); inset-inline-start: var(--gutter); z-index: 1; max-width: calc(100% - var(--gutter) * 2); pointer-events: none; }
.site-logo { position: absolute; top: calc(var(--top) + 2px); inset-inline-start: var(--gutter); z-index: 1; width: clamp(62px, 7vw, 79px); height: auto; max-height: 26px; object-fit: contain; object-position: left center; display: block; pointer-events: none; }
.site-logo[data-brand="piazza"] { width: 34px; max-height: none; }
.site-return {
  position: absolute; top: var(--top); inset-inline-end: var(--gutter); z-index: 1;
  color: var(--ink); font-size: .875rem; line-height: 20px; white-space: nowrap;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-skip-ink: none;
}
.text-arrow, .settings-arrow { font-family: Arial, var(--sans); font-variant-emoji: text; }
.site-return-arrow { font-size: .72em; vertical-align: .08em; }
@supports (mix-blend-mode: difference) {
  #title, .site-logo, .site-return { mix-blend-mode: difference; }
  #title, .site-return { color: #fff; }
  .site-logo { filter: invert(1); }
}

.poll-countdown {
  position: absolute; top: calc(var(--top) + 26px); inset-inline-end: var(--gutter); z-index: 1;
  font-size: .8125rem; font-variant-numeric: tabular-nums; color: var(--muted);
}
@supports (mix-blend-mode: difference) {
  .poll-countdown { color: #fff; mix-blend-mode: difference; }
}
.board-status { position: absolute; inset: 48vh var(--gutter) auto; color: var(--muted); text-align: center; }
#board-status[data-state="loading"], #proposal-content > .loading-dots, #profile-screen > .loading-dots {
  position: fixed; z-index: 2; inset: 50% auto auto 50%; transform: translate(-50%, -50%);
}
#board-status[data-state="loading"] { display: flex; }
.loading-dots { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; color: var(--name-rose); }
.loading-dots i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: dot-bounce .85s ease-in-out infinite alternate; }
.loading-dots i:nth-child(2) { animation-delay: .12s; }
.loading-dots i:nth-child(3) { animation-delay: .24s; }
@keyframes dot-bounce {
  0%, 24% { transform: translateY(2px); opacity: .42; }
  68%, 100% { transform: translateY(-4px); opacity: 1; }
}
.scene { width: 100%; }
.closed-results {
  min-height: calc(100dvh - var(--stage-bottom)); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px; padding: var(--board-start) var(--gutter) 20px;
}
.result-podium, .result-rest {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: clamp(5px, 1.2vw, 16px); padding: 0; list-style: none;
}
.result-orb {
  --size: clamp(80px, 20vw, 116px);
  display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center;
  width: var(--size); height: var(--size); border-radius: 50%; text-align: center;
  color: #402330; background: #fbe7ec;
}
.result-podium .result-orb[data-place="1"] { --size: clamp(89px, 30vw, 190px); background: #e9bf55; color: #201609; }
.result-podium .result-orb[data-place="2"] { --size: clamp(72px, 24vw, 157px); background: #cdd3dc; color: #191c23; order: -1; }
.result-podium .result-orb[data-place="3"] { --size: clamp(68px, 22vw, 144px); background: #c68264; color: #1d110d; }
.result-total { font-size: clamp(.875rem, calc(var(--size) * .16), 1.8rem); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.bubble-field {
  position: relative; isolation: isolate; overflow: hidden; width: 100%;
  height: calc(max(255px, 100vh - var(--stage-bottom)) + var(--stack-extension, 0px));
  height: calc(max(255px, 100dvh - var(--stage-bottom)) + var(--stack-extension, 0px));
}
:is(.bubble, .bubble-game-player) {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  text-decoration: none;
}
.bubble > .bubble-name, .bubble-game-player > span { pointer-events: none; }
.bubble {
  position: absolute; isolation: isolate; top: 0; left: 0; display: grid; place-content: center; justify-items: center;
  width: var(--size); height: var(--size); padding: 0; margin: 0; touch-action: none;
  border: 0; border-radius: 50%; color: #fff; background: transparent;
  transform: translate3d(calc(var(--x) - 50%), calc(var(--y) - 50%), 0);
  line-height: 1.12;
}
.bubble::before {
  content: ""; position: absolute; z-index: -1; inset: 0; border-radius: inherit;
  background-color: var(--bubble, #e32350);
  background-image:
    radial-gradient(circle at 31% 24%, #fff2 0, transparent 59%),
    radial-gradient(circle at 48% 25%, transparent 53%, #87052e34 100%);
  box-shadow:
    inset 0 0 0 1px #78133516,
    0 var(--shadow-drop, 2px) var(--shadow-blur, 6px) var(--shadow-spread, -2px) rgb(77 25 41 / var(--shadow-opacity, .12));
  transform: scale(var(--stretch, 1), var(--squeeze, 1));
  transform-origin: 50% 88%;
  transition: background-color .37s ease, filter .23s ease;
}
:is(.bubble, .rank-swatch)[data-tone="cerise"] { --bubble: #e72152; }
:is(.bubble, .rank-swatch)[data-tone="rose"] { --bubble: var(--name-rose); }
:is(.bubble, .rank-swatch)[data-tone="raspberry"] { --bubble: #d52556; }
:is(.bubble, .rank-swatch)[data-tone="watermelon"] { --bubble: #e3244d; }
:is(.bubble, .rank-swatch)[data-tone="ruby"] { --bubble: #d8234d; }
.bubble:hover, .bubble:focus-visible, .bubble.grabbed, .bubble.lighting { z-index: 2; }
.bubble.grabbed { cursor: grabbing; }
.bubble.game-arming { z-index: 2; }
.bubble.game-arming:not(.lighting)::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; pointer-events: none;
  border: 1px solid var(--bubble, var(--name-rose)); animation: game-hold-ring 2s ease-out both;
}
@keyframes game-hold-ring {
  0%, 20% { opacity: 0; transform: scale(.96); }
  100% { opacity: .85; transform: scale(1.02); }
}
body:has(.bubble-game) { overflow: hidden; }
.bubble-game {
  position: fixed; z-index: 10; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr);
  padding: max(16px, env(safe-area-inset-top)) var(--gutter) max(12px, env(safe-area-inset-bottom));
  color: var(--ink); background: var(--paper); outline: none;
  animation: bubble-game-enter .34s ease-out both;
}
.bubble-game-hud {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: 12px;
}
.bubble-game-hud h2 { font-size: clamp(1.25rem, 3vw, 1.65rem); line-height: 1.15; letter-spacing: -.04em; }
.bubble-game-hud p { margin-top: 4px; color: var(--muted); font-size: .875rem; }
.bubble-game-hud > button { justify-self: end; }
.bubble-game-hud, .bubble-game-target { animation: bubble-game-enter .3s .12s ease-out both; }
@keyframes bubble-game-enter { from { opacity: 0; } to { opacity: 1; } }
.bubble-game-stats {
  display: flex; gap: 12px; align-items: center; justify-content: center; border-radius: 100px;
  padding: 7px 14px; background: #f4f4f5; font-size: .875rem; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.bubble-game-stats > :first-child { font-weight: 700; color: #171717; }
.bubble-game-board { position: relative; overflow: hidden; touch-action: none; user-select: none; }
.bubble-game-player, .bubble-game-target {
  position: absolute; top: var(--game-y); left: var(--game-x); display: grid; place-items: center; border-radius: 50%;
  transform: translate(-50%, -50%);
}
.bubble-game-player {
  width: clamp(64px, 9vmin, 90px); aspect-ratio: 1; padding: 0 13px;
  color: var(--game-ink, #fff); background: var(--game-color, var(--name-rose));
  box-shadow: inset 0 2px 14px #fff3, 0 4px 12px #28111e20; cursor: grab; text-align: center;
}
.bubble-game-player:active { cursor: grabbing; }
.bubble-game-player > span {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  overflow-wrap: anywhere; font-size: clamp(.75rem, 1.65vmin, 1rem); line-height: 1.14;
}
.bubble-game-target {
  width: clamp(46px, 7vmin, 64px); aspect-ratio: 1; border: 2px solid var(--game-color, #de2556); pointer-events: none;
}
.bubble-game-target::before { content: ""; width: 28%; aspect-ratio: 1; border-radius: 50%; background: #e32350; }
.bubble-game-result {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); margin: 0; padding: 12px 20px;
  border-radius: 100px; color: #fff; background: #161616; font-size: .9375rem; font-weight: 600; text-align: center;
}
@media (max-width: 560px) {
  .bubble-game-hud { grid-template-columns: minmax(0, 1fr) auto; }
  .bubble-game-stats { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
}
.bubble[aria-pressed="true"] { --hover-dim: .94; }
.bubble[aria-pressed="true"]::before {
  background-color: color-mix(in srgb, var(--bubble, #e32350) 33%, #f40742);
}
.bubble[data-custom-color] { color: var(--label-ink, #fff); --hover-dim: .88; }
.bubble[data-custom-color]::before {
  background-image: radial-gradient(circle at 31% 24%, #fff2 0, transparent 59%), radial-gradient(circle at 48% 25%, transparent 53%, #0002 100%);
}
.bubble[data-custom-color][aria-pressed="true"]::before { background-color: color-mix(in srgb, var(--bubble) 88%, white); }
.bubble-name {
  display: block; width: calc(var(--size) * .74); overflow-wrap: anywhere; text-wrap: balance;
  text-align: center; white-space: var(--label-wrap, normal); font-size: calc(var(--size) * var(--label-scale, .16));
  font-weight: 400; letter-spacing: -.018em; line-height: 1.08;
}
.bubble-measure { position: fixed; top: 0; left: 0; visibility: hidden; pointer-events: none; }
.bubble-name, .bubble-total { transition: opacity .15s ease; }
.bubble-total {
  display: grid; place-items: center; position: absolute; inset: 0; opacity: 0; pointer-events: none;
  font-size: clamp(.9375rem, calc(var(--size) * .202), 2.3125rem); font-variant-numeric: tabular-nums; font-weight: 400; letter-spacing: -.04em;
}
.bubble:focus-visible::before { filter: brightness(var(--hover-dim, .76)); }
.bubble:focus-visible .bubble-name { opacity: 0; }
.bubble:focus-visible .bubble-total { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .bubble:hover:not(.grabbed)::before { filter: brightness(var(--hover-dim, .76)); }
  .bubble:hover:not(.grabbed) .bubble-name { opacity: 0; }
  .bubble:hover:not(.grabbed) .bubble-total { opacity: 1; }
}

.bubble.lighting::after {
  content: ""; position: absolute; z-index: -1; inset: 0; border-radius: inherit; pointer-events: none;
  background-image: radial-gradient(ellipse at 43% 35%, #ffb5b97a, #ff867542 28%, transparent 61%);
  background-size: 145% 145%;
  background-repeat: no-repeat;
  transform: scale(var(--stretch, 1), var(--squeeze, 1));
  transform-origin: 50% 88%;
  animation: vote-gleam 660ms cubic-bezier(.24,.64,.36,1) both;
}
@keyframes vote-gleam {
  0% { opacity: 0; background-position: 92% 87%; }
  27% { opacity: .94; }
  100% { opacity: 0; background-position: 6% 16%; }
}

.dock {
  --inset: 3px;
  --view-size: 44px;
  --view-active: #151515;
  position: fixed; z-index: 5; bottom: var(--dock-bottom); left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: var(--inset); padding: var(--inset); width: max-content; max-width: calc(100% - 22px);
  border: 1px solid #e9e5e7; border-radius: 999px; color: var(--ink); background: #fff;
  box-shadow: 0 1px 4px #28111e08, 0 6px 19px #28111e0d;
}
.dock > :is(button, a), .dock-indicator > span {
  display: inline-flex; align-items: center; justify-content: center; flex: none; min-height: var(--view-size);
  padding: 8px 15px; border: 0; border-radius: 100px; white-space: nowrap;
  font-size: .875rem; font-weight: 500; line-height: 1.5;
}
.dock button:focus-visible, .dock a:focus-visible { outline-offset: 1px; }
.dock .dock-view { width: var(--view-size); padding: 0; background: transparent; color: inherit; text-decoration: none; }
.dock > [data-current] { background: var(--view-active); color: #fff; }
.propose { text-decoration: none; background: transparent; color: var(--ink); }
.propose[aria-disabled="true"] { opacity: .42; cursor: default; }
.dock-indicator { display: none; }
@media (hover: hover) {
  .dock > .dock-view:hover { background: var(--view-active); color: #fff; }
  .propose:hover:not([aria-disabled="true"]) { background: var(--name-rose); color: #fff; }
}
@media (max-width: 320px) {
  .dock { --inset: 2px; max-width: calc(100% - 10px); }
  .dock > .propose, .dock-indicator > span:not(.dock-view) { padding-inline: 10px; }
}
@supports selector(.dock:has(.dock-view)) {
  .dock {
    --view-step: calc(var(--view-size) + var(--inset));
    --icon-end: calc(100% - var(--view-size));
    --indicator-start: 0px;
    --indicator-end: var(--icon-end);
    --indicator-color: var(--view-active);
  }
  .dock-indicator {
    position: absolute; inset: var(--inset); z-index: 1;
    display: flex; align-items: center; gap: var(--inset); pointer-events: none;
    color: #fff; background-color: var(--indicator-color);
    background-image: linear-gradient(#ffffff13, transparent 59%);
    clip-path: inset(0 var(--indicator-end) 0 var(--indicator-start) round 100px);
    transition: clip-path .36s cubic-bezier(.23,.78,.27,1), background-color .23s ease .05s;
  }
  .dock:has(.dock-indicator) > :is(.dock-view, .propose) { color: var(--ink); background: transparent; }
  .dock:has(:where(#show-list[data-current])) {
    --indicator-start: var(--view-step);
    --indicator-end: calc(var(--icon-end) - var(--view-step));
  }
  .dock:has(:where(.propose[data-current])) {
    --indicator-start: calc(var(--view-step) * 2);
    --indicator-end: var(--view-step);
  }
  .dock:has(:where(.profile-toggle[data-current])) { --indicator-start: var(--icon-end); --indicator-end: 0px; }
  @media (hover: hover) {
    .dock:has(:where(#show-bubbles:hover)) {
      --indicator-start: 0px;
      --indicator-end: var(--icon-end);
    }
    .dock:has(:where(#show-list:hover)) {
      --indicator-start: var(--view-step);
      --indicator-end: calc(var(--icon-end) - var(--view-step));
    }
    .dock:has(:where(.propose:hover:not([aria-disabled="true"]))) {
      --indicator-start: calc(var(--view-step) * 2);
      --indicator-end: var(--view-step);
      --indicator-color: var(--name-rose);
    }
    .dock:has(:where(.profile-toggle:hover)) { --indicator-start: var(--icon-end); --indicator-end: 0px; }
  }
}
.dock-icon { position: relative; display: inline-block; flex: none; width: 14px; height: 14px; }
.icon-bubbles::before, .icon-bubbles::after { position: absolute; content: ""; width: 7px; height: 7px; border: 1.2px solid; border-radius: 50%; left: 0; bottom: 1px; }
.icon-bubbles::after { width: 4px; height: 4px; left: 8px; bottom: 8px; }
.icon-list { border-bottom: 1.2px solid; }
.icon-list::before, .icon-list::after { position: absolute; right: 0; bottom: 4px; content: ""; width: 10px; border-bottom: 1.2px solid; }
.icon-list::after { bottom: 9px; width: 6px; }

.icon-profile::before, .icon-profile::after { content: ""; position: absolute; border: 1.2px solid; }
.icon-profile::before { width: 5px; height: 5px; border-radius: 50%; inset: 0 auto auto 4px; }
.icon-profile::after { width: 11px; height: 5px; border-radius: 8px 8px 2px 2px; inset: auto auto 0 1px; }

#voting-screen[data-view="list"] .voting-heading {
  padding-block: var(--page-heading-top) var(--content-gap);
}
#voting-screen[data-view="list"] #title { position: static; max-width: none; color: var(--ink); mix-blend-mode: normal; }
:root:has(#site-logo[hidden]) #voting-screen:has(#poll-countdown:not([hidden])) #title {
  max-width: calc(100vw - var(--gutter) * 2 - min(9.25rem, 40vw));
}
.list-view { list-style: none; padding: 0; margin: 0; }
.rank-row {
  display: flex; align-items: center; gap: 11px; min-height: 54px; padding: 8px;
  border-bottom: 1px solid var(--line); color: #151515; cursor: default;
}
.rank-row:last-child { border-bottom: 0; }
.rank-row:hover { background: #f7f7f7; }
.rank-number, .rank-votes { font-size: .875rem; font-variant-numeric: tabular-nums; }
.rank-number { width: 20px; flex: none; }
.rank-swatch { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--bubble, var(--name-rose)); box-shadow: inset 0 0 0 1px #211e201a; }
.rank-name { font-weight: 500; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.rank-votes { white-space: nowrap; }
.rank-row.voted .rank-name { font-weight: 650; }

.primary {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px;
  padding: 10px 18px; border-radius: 100px; border: 1px solid #151515;
  color: #fff; background: #151515; font-size: .9375rem; font-weight: 500;
  transition: background .18s, transform .18s;
}
.primary:hover { background: #333; }
.primary:active { transform: translateY(1px); }
.primary:disabled { opacity: .56; cursor: default; }

.proposal-screen, .profile-screen, .ranking-panel, #voting-screen[data-view="list"] .voting-heading {
  width: var(--content-width);
  margin-inline: auto;
}
.proposal-screen, .profile-screen {
  padding-block: var(--page-heading-top) 10px;
}
main:has(.landing-screen:not([hidden])) { padding-bottom: 0; }
.landing-screen {
  display: grid; place-items: center; min-height: 100vh; min-height: 100dvh;
  padding: var(--page-heading-top) var(--gutter); text-align: center;
}
.landing-copy p { max-width: 38ch; color: var(--muted); margin: 14px auto 22px; text-wrap: balance; }
.landing-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 16px; }
.landing-actions a { color: var(--ink); text-underline-offset: 3px; }
.landing-actions .primary { color: #fff; text-decoration: none; }
.proposal-back {
  display: inline-block; color: #151515; font-size: .875rem; line-height: 20px;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
  text-decoration-skip-ink: none; white-space: nowrap; margin-block: var(--content-gap) 6px;
}
.proposal-inner h1 { margin-bottom: 18px; }
.proposal-copy { color: var(--muted); margin-bottom: 22px; }
.form-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.form-stack .primary { justify-self: start; }
.form-stack label { display: grid; min-width: 0; gap: 7px; font-size: .875rem; font-weight: 500; }
.form-stack :where(input:not([type="checkbox"])) {
  width: 100%; min-width: 0; min-height: 46px; padding: 10px 16px; border: 1px solid var(--field-line);
  border-radius: 100px; background: var(--field-surface); color: var(--ink); font-size: 1rem; font-weight: 400;
}
.form-stack label > :where(input:not([type="checkbox"])) {
  justify-self: start; width: min(100%, var(--field-width, 58ch));
}
.form-stack :is(input[name="question"], .option-name, #proposal-value) { --field-width: 64ch; }
.form-stack :is(.domain-hostname, input[type="email"]) { --field-width: 40ch; }
.form-stack input[type="datetime-local"] { --field-width: 25ch; }
.form-stack :is(input, select, textarea, button):focus-visible, .proposal-back:focus-visible { outline: 2px solid #151515; outline-offset: 3px; }
.form-stack input::placeholder { color: #827a7e; font-weight: 400; }
.publication-notice { max-width: 64ch; color: var(--muted); font-size: .875rem; }
.proposal-inner .proposal-consent {
  display: grid; grid-template-columns: 17px 1fr; align-items: start; gap: 9px; font-weight: 400; cursor: pointer;
}
.proposal-consent input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: #151515; cursor: pointer; }
.proposal-consent a { color: inherit; text-underline-offset: 3px; }
.proposal-consent a:focus-visible { outline: 2px solid #151515; outline-offset: 3px; }
.privacy-page { padding: var(--page-heading-top) var(--gutter) var(--gutter); }
.privacy-page section { max-width: 65ch; margin-block: 22px 15px; }
.privacy-page h2 { margin-bottom: 6px; font-size: 1rem; }
.privacy-page a { color: var(--ink); }
.otp-fields { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(5px, 1.3vw, 10px); width: min(100%, 24rem); }
.otp-fields input:not([type="checkbox"]) {
  text-align: center; padding: 0; height: clamp(46px, 8vw, 64px); border-radius: 14px;
  font-size: 1.5rem; font-variant-numeric: tabular-nums;
}
.text-button {
  justify-self: start; border: 0; padding: 7px 0; font-size: .875rem;
  color: #151515; background: transparent; text-decoration: underline; text-underline-offset: 3px;
}
.form-error { color: #b50c37; font-size: .875rem; }
.form-error:empty { display: none; }
.toast {
  position: fixed; bottom: calc(var(--dock-bottom) + 74px); left: 50%; z-index: 8; transform: translateX(-50%);
  max-width: calc(100% - 28px); width: max-content; border: 1px solid #f0cbd5;
  border-radius: 100px; padding: 10px 16px; background: #fff4f7; color: var(--ink);
  box-shadow: 0 8px 28px #3c132319; pointer-events: none;
}
.toast:empty { opacity: 0; }

body:has(.profile-screen[data-access]:not([hidden])) > .site-logo { display: none; }
main:has(.profile-screen[data-access]:not([hidden])) { --access-bottom: 0px; padding-bottom: var(--access-bottom); }
main:has(.profile-screen[data-access]:not([hidden])):has(.dock:not([hidden])) { --access-bottom: var(--stage-bottom); }
.profile-screen[data-access] {
  display: grid; align-content: center;
  width: min(23rem, calc(100% - var(--gutter) * 2));
  min-height: calc(100dvh - var(--access-bottom, 0px));
  padding-block: max(28px, env(safe-area-inset-top)) max(28px, env(safe-area-inset-bottom));
}
.access-panel { min-width: 0; }
.access-heading { text-align: center; margin-bottom: 30px; }
.access-heading img { display: block; margin: 0 auto 5px; }
.access-heading p { margin-top: 10px; color: var(--muted); font-size: .9375rem; }
.access-form { gap: 16px; }
.access-form input:not([type="checkbox"]) { width: 100%; min-height: 50px; background: #f4f4f5; border-color: #e4e4e7; }
.access-password-field { display: grid; min-width: 0; gap: 7px; }
.access-password-control { position: relative; }
.access-password-control input { padding-inline-end: 89px; }
.access-password-toggle {
  position: absolute; inset-block-start: 50%; inset-inline-end: 8px; translate: 0 -50%;
  min-height: 32px; padding-inline: 9px; border: 0; border-radius: 100px;
  color: #52525b; background: transparent; font-size: .8125rem; font-weight: 500;
}
.access-password-toggle:hover { background: #e4e4e7; color: var(--ink); }
.access-password-rules {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  gap: 4px 10px; margin: 3px 0 0; padding: 0; list-style: none;
  color: #52525b; font-size: .8125rem;
}
.access-password-rules li { display: flex; align-items: center; gap: 8px; }
.password-rule-mark { width: 10px; height: 10px; flex: none; border: 1px solid #a1a1aa; border-radius: 50%; }
.access-password-rules [data-met] { color: var(--ink); }
.access-password-rules [data-met] .password-rule-mark {
  width: 6px; height: 10px; margin-inline: 2px; border: solid currentColor; border-width: 0 2px 2px 0;
  border-radius: 0; transform: translateY(-1px) rotate(45deg);
}
.password-rule-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.account-action .primary { width: 100%; min-height: 50px; text-decoration: none; }
.access-form .primary { margin-top: 4px; }
.access-switch { margin-top: 23px; color: #52525b; font-size: .875rem; text-align: center; }
.access-switch a { color: var(--ink); font-weight: 500; text-underline-offset: 4px; }
.access-switch a:hover { color: var(--accent); }
.access-switch a:focus-visible { outline: 2px solid #151515; outline-offset: 4px; }
.auth-notice, .account-notice { color: #52525b; font-size: .875rem; }
.account-notice { margin-bottom: 16px; }
.access-error:not(:empty) { margin-top: 12px; }
.account-header, .account-identity, .account-actions {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
}
.account-header {
  justify-content: space-between; padding-bottom: 18px; margin-bottom: 26px; border-bottom: 1px solid var(--field-line);
}
.account-identity { min-width: 0; flex-wrap: nowrap; }
.account-avatar {
  display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: #f4f4f5; color: var(--ink); font-size: 1rem; font-weight: 600;
}
.account-header .account-email { margin: 0; color: var(--ink); font-weight: 500; }
.account-header .account-signout { margin: 0; }
.account-delete-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.primary.danger { border-color: #b5163b; background: #b5163b; }
.primary.danger:hover { border-color: #941032; background: #941032; }
.dashboard-empty { margin-top: 16px; padding-block: 16px; border-top: 1px solid var(--field-line); color: var(--muted); }
.dashboard-top { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: 16px; }
.new-poll { gap: 6px; }
.new-poll > span { font-size: 1.1em; line-height: 1; }
.account-email, .dashboard-note { color: var(--muted); margin-top: 6px; font-size: .875rem; overflow-wrap: anywhere; }
.dashboard-list { list-style: none; margin: 20px 0; padding: 0; }
.dashboard-list li {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  border-bottom: 1px solid var(--line); padding: 12px 0; overflow-wrap: anywhere;
}
.dashboard-list li > a { margin-inline-end: auto; }
.dashboard-list a, .account-signout, .plain-action { color: #151515; text-underline-offset: 3px; }
.dashboard-list li > span { color: var(--muted); font-size: .875rem; }
.dashboard-number { min-width: 2ch; font-variant-numeric: tabular-nums; }

.account-signout { display: inline-block; margin-block: 10px; }
.editor-back { justify-self: start; padding: 0; border: 0; background: transparent; }
.editor-actions { display: grid; gap: 9px; }
.editor-actions .plain-action { justify-self: start; }
.plain-action { border: 0; background: transparent; padding: 4px 0; text-decoration: underline; font-size: .875rem; }

.form-stack .inherit-color { display: flex; align-items: center; gap: 8px; }
.form-stack input[type="checkbox"] { width: 16px; height: 16px; padding: 0; accent-color: #151515; }
.form-stack .option-color { justify-items: start; }
.form-stack input[type="color"] { width: 50px; height: 42px; padding: 5px; cursor: pointer; }
.form-stack input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.form-stack input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 100px; }
.form-stack input[type="color"]:disabled { cursor: default; opacity: .58; }
.poll-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.poll-links a { color: #151515; font-size: .875rem; text-underline-offset: 3px; }
.logo-preview {
  display: block; width: auto; height: auto; max-width: 140px; max-height: 44px; margin-top: 10px;
  object-fit: contain; object-position: left;
}
.poll-settings { width: min(100%, 440px); border-top: 1px solid var(--field-line); }
.form-stack .settings-row {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
  min-height: 53px; width: 100%; padding: 9px 0; border: 0; border-bottom: 1px solid var(--field-line);
  background: transparent; color: var(--ink); text-align: left; font-size: .875rem; font-weight: 400;
}
.settings-color input[type="color"] { width: 38px; height: 36px; min-height: 0; }
.settings-suggestions select {
  width: min(100%, 29ch); min-height: 38px; padding: 6px 10px;
  border: 1px solid var(--field-line); border-radius: 10px; background: var(--field-surface); color: var(--ink);
}
button.settings-row:hover { color: #ad153b; }
.settings-minigame { cursor: pointer; }
.settings-arrow { margin-inline-start: auto; font-size: 1.15rem; }
.options-summary, .domain-summary { display: block; color: var(--muted); font-size: .8125rem; }
.domain-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.domain-actions .primary { min-height: 40px; }
.domain-dialog a { color: var(--ink); overflow-wrap: anywhere; }
.domain-records { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: .8125rem; }
.domain-records th, .domain-records td { padding: 8px 5px; border-bottom: 1px solid var(--field-line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.domain-records th:first-child { width: 3.7rem; }
.domain-records th:last-child { width: 2.6rem; }
.domain-records .plain-action { display: block; padding-block: 0; font-size: .75rem; }
.domain-record-status, .domain-feedback { color: var(--muted); font-size: .8125rem; }
.domain-feedback:empty { display: none; }
.domain-record-status[data-status="match"] { color: #1d6a4d; }
.domain-record-status[data-status="different"] { color: #a2173b; }
.dialog-top h2 { font-size: 1.25rem; letter-spacing: -.035em; line-height: 1.14; }

body:has(.settings-dialog[open]) { overflow: hidden; }
.settings-dialog {
  width: min(540px, calc(100% - 32px)); max-width: none; max-height: min(660px, calc(100dvh - 40px));
  border: 1px solid var(--line); border-radius: 26px; padding: 0; overflow: hidden;
  background: var(--paper); color: var(--ink); box-shadow: 0 16px 70px #211e2038;
}
.settings-dialog::backdrop { background: #211e2030; backdrop-filter: blur(8px); }
.dialog-panel { display: flex; flex-direction: column; max-height: inherit; }
.dialog-top {
  display: flex; align-items: center; justify-content: space-between; flex: none; gap: 12px;
  padding: 16px 21px; border-bottom: 1px solid var(--line);
}
.dialog-close {
  display: grid; place-items: center; flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: #f5f3f4; color: var(--ink); font-size: 1.35rem; line-height: 1;
}
.dialog-content { display: grid; gap: 12px; padding: 16px 21px 22px; overflow: auto; overscroll-behavior: contain; }
.dialog-content > .primary { justify-self: start; }
.dialog-content > .plain-action { justify-self: start; }
.dialog-content h3 { margin: 0; font-size: .875rem; font-weight: 600; color: var(--muted); }
.options-current {
  display: grid; gap: 8px; max-height: min(25dvh, 224px); overflow: auto;
  overscroll-behavior: contain;
}
.option-add { border-top: 1px solid var(--line); padding-top: 14px; }
.dialog-footer {
  display: flex; align-items: center; justify-content: space-between; flex: none; gap: 12px;
  padding: 10px 21px max(10px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line);
}
.dialog-feedback { margin: 0; font-size: .875rem; color: var(--muted); }
.dialog-done { margin-inline-start: auto; flex: none; }
.option-list { list-style: none; margin: 0; padding: 0; }
.option-list li + li { border-top: 1px solid var(--line); }
.option-select {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 8px 6px;
  border: 0; background: transparent; color: var(--ink); text-align: left; overflow-wrap: anywhere;
}
.option-select:hover { background: #f7f5f6; }
.option-swatch { flex: none; width: 12px; height: 12px; border-radius: 50%; border: 1px solid #211e201a; }

@media (max-width: 640px) {
  .settings-dialog {
    position: fixed; inset: auto 0 0; width: 100%; margin: 0;
    max-height: min(85dvh, calc(100dvh - 22px)); border-radius: 24px 24px 0 0;
  }
  .dialog-content { padding-bottom: max(22px, calc(env(safe-area-inset-bottom) + 10px)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
