:root {
  color-scheme: light;
  --ink: #101828;
  --muted: #667085;
  --text-secondary: #475467;
  --line: #848ea0;
  --line-strong: #101828;
  --soft-line: #d0d5dd;
  --paper: #f7f8fc;
  --surface: #ffffff;
  --soft: #eef0f6;
  --disabled: #e4e7ec;
  --signal: #5b5ce2;
  --signal-hover: #5455d4;
  --signal-pressed: #4647b8;
  --signal-tint: #ededff;
  --spark: #b9f04b;
  --on-spark: #101828;
  --success: #16805c;
  --warning: #a85d00;
  --danger: #c23838;
  --danger-tint: #fff4f3;
  --tint-line: #dadaff;
  --inverse-background: #101828;
  --inverse-foreground: #f7f8fc;
  --inverse-muted: #d0d5dd;
  --inverse-line: #475467;
  --inverse-subtle: #98a2b3;
  --radius: 12px;
  --radius-answer: 8px;
  --radius-plane: 20px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  font-family: var(--font-geist-sans), system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f7f8fb;
  --muted: #b8c0cc;
  --text-secondary: #d0d5df;
  --line: #7a8699;
  --line-strong: #f7f8fb;
  --soft-line: #5d687b;
  --paper: #0c1018;
  --surface: #161c28;
  --soft: #222a3a;
  --disabled: #30394a;
  --signal: #a5a4ff;
  --signal-hover: #b9b8ff;
  --signal-pressed: #8b8aeb;
  --signal-tint: #292b4c;
  --success: #53dda9;
  --warning: #ffc06a;
  --danger: #ff8a8a;
  --danger-tint: #3a232a;
  --tint-line: #555789;
  --inverse-background: #080b12;
  --inverse-foreground: #f7f8fb;
  --inverse-muted: #c2c9d4;
  --inverse-line: #5d687b;
  --inverse-subtle: #9da7b7;
}

:root[data-theme="dark"] .brand-lockup,
:root[data-theme="dark"] .public-info-brand img {
  content: url("/brand/polsje-lockup-reversed.svg");
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}

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

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 700px;
  margin-bottom: 12px;
  font-size: clamp(24px, 6vw, 32px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

h2 {
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

h3 {
  margin-bottom: 6px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
}

p {
  line-height: 1.5;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 50;
  padding: 10px 14px;
  border: 2px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

.center-screen {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding:
    max(24px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
}

.loading-line {
  margin: 0;
  color: var(--muted);
}

.loading-brand {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.loading-brand img {
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 8px 18px rgb(91 92 226 / 18%));
}

.shell {
  width: min(100%, 920px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 16px 104px;
}

.topbar {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--soft-line);
}

.topbar-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.topbar-mark {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  filter: drop-shadow(0 5px 12px rgb(91 92 226 / 18%));
}

.account-label {
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
  text-align: right;
}

.topbar-account {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.topbar-points {
  min-width: 96px;
  max-width: 164px;
  min-height: 44px;
  display: inline-grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 5px 6px 5px 9px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}

.topbar-points-copy {
  min-width: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}

.topbar-points strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-points small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.topbar-claim-count {
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  padding: 0 4px;
  border: 0;
  border-radius: 6px;
  background: var(--spark);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.topbar-points[aria-current="page"] {
  border-color: var(--signal);
  box-shadow: 0 0 0 1px var(--signal);
}

.content {
  padding: 34px 0;
}

.page-head {
  margin-bottom: 28px;
}

.page-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.lead {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  min-height: 76px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--soft-line);
  background: var(--surface);
}

.bottom-nav.has-debug {
  grid-template-columns: repeat(4, 1fr);
}

.nav-button {
  position: relative;
  min-height: 74px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 0;
  border-right: 1px solid var(--soft-line);
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.nav-button > span:not(.nav-count) {
  vertical-align: middle;
}

.nav-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.nav-count {
  position: absolute;
  top: 8px;
  left: calc(50% + 8px);
  min-width: 20px;
  min-height: 20px;
  display: inline-grid;
  place-items: center;
  margin-left: 0;
  padding: 1px 5px;
  border: 0;
  border-radius: 6px;
  background: var(--soft);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.nav-button:last-child {
  border-right: 0;
}

.nav-button[aria-current="page"] {
  background: var(--signal);
  color: var(--surface);
}

.button,
.button-secondary,
.button-quiet,
.button-danger,
.choice-button,
.type-button,
.scale-button {
  min-height: 48px;
  display: inline-flex;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--signal);
  color: var(--surface);
  font-weight: 600;
  text-decoration: none;
  align-items: center;
  justify-content: center;
}

.button-secondary,
.choice-button,
.type-button,
.scale-button {
  background: var(--surface);
  color: var(--ink);
}

.button-quiet {
  min-height: 44px;
  padding: 0 12px;
  border-color: transparent;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}

.button-danger {
  border-color: var(--danger);
  background: var(--surface);
  color: var(--danger);
}

.button:hover:not(:disabled) {
  background: var(--signal-hover);
}

.button:active:not(:disabled) {
  background: var(--signal-pressed);
}

.button-secondary:hover:not(:disabled),
.button-quiet:hover:not(:disabled),
.choice-button:hover:not(:disabled),
.type-button:hover:not(:disabled),
.scale-button:hover:not(:disabled) {
  background: var(--signal-tint);
}

.button.full,
.button-secondary.full,
.button-quiet.full,
.button-danger.full {
  width: 100%;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.button-row.end {
  justify-content: flex-end;
}

.wire-card,
.question-row,
.circle-card,
.result-card,
.guest-card,
.auth-card,
.notice,
.share-box,
.empty-state {
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: var(--surface);
}

.wire-card,
.circle-card,
.result-card,
.guest-card,
.auth-card,
.share-box,
.empty-state {
  padding: 20px;
}

.guest-card,
.auth-card,
.growth-card,
.result-card {
  border-radius: var(--radius-plane);
}

.notice {
  padding: 14px 16px;
  border-left: 4px solid var(--signal);
  color: var(--muted);
  font-size: 14px;
}

.push-nudge {
  margin: 14px 0 -10px;
}

.push-nudge button {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
}

.push-nudge button > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.push-nudge small,
.setup-status-row small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.push-nudge-mark,
.setup-status-mark {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  font-weight: 600;
}

.stack {
  display: grid;
  gap: 14px;
}

.stack.large {
  gap: 22px;
}

.notice + .stack,
.wire-card + .stack {
  margin-top: 22px;
}

.question-row {
  width: 100%;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  color: inherit;
  text-align: left;
  text-decoration: none;
}

.question-row:hover,
.question-row:focus-visible,
.circle-card:hover {
  border-color: var(--signal);
  box-shadow: 0 4px 16px rgb(16 24 40 / 10%);
}

.question-row p,
.question-row h3 {
  margin-bottom: 0;
}

.question-row h3 {
  overflow-wrap: anywhere;
}

.question-context {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.question-meta,
.member-meta,
.muted,
.field-help,
.result-meta {
  color: var(--muted);
  font-size: 14px;
}

.question-meta {
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
  padding: 4px 7px;
  border: 1px solid var(--soft-line);
  border-radius: 6px;
  background: var(--soft);
  line-height: 1.35;
}

.question-meta .question-status-emphasis {
  color: var(--ink);
  font-weight: 600;
}

.incoming-reward {
  font-weight: 600;
  color: var(--ink);
}

.count-box {
  min-width: 66px;
  align-self: stretch;
  display: grid;
  place-items: center;
  padding: 8px;
  border-left: 1px solid var(--soft-line);
  text-align: center;
}

.count-box strong {
  display: block;
  font-size: 22px;
}

.count-box span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.empty-state {
  text-align: center;
}

.empty-state p:last-child {
  margin-bottom: 0;
}

.setup-card,
.how-it-works,
.next-action-card,
.next-step-preview {
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: var(--surface);
}

.setup-card,
.how-it-works,
.next-action-card {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.setup-card {
  margin-bottom: 34px;
  border-left: 4px solid var(--signal);
}

.setup-card h2,
.setup-card p,
.how-it-works h2,
.how-it-works p,
.next-action-card h2,
.next-action-card p,
.next-step-preview p {
  margin-bottom: 0;
}

.circle-overview-head {
  display: grid;
  gap: 18px;
}

.page-primary-action {
  width: 100%;
}

.page-question-cta {
  width: 100%;
  min-height: 62px;
  margin-bottom: 28px;
  font-size: 18px;
}

.question-flow-head {
  width: min(100%, 760px);
  margin: 0 auto;
}

.question-flow-progress {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 24px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  overflow: hidden;
}

.question-flow-progress > span {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-right: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
}

.question-flow-progress > span:last-child {
  border-right: 0;
}

.question-flow-progress > span.is-active {
  background: var(--signal);
  color: var(--surface);
}

.question-flow-progress > span.is-complete {
  background: var(--soft);
  color: var(--ink);
}

.question-flow-progress small {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.question-flow-progress strong {
  font-size: 15px;
}

.inline-countdown {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

.how-it-works {
  margin-bottom: 34px;
  box-shadow: 5px 5px 0 var(--ink);
}

.flow-steps {
  display: grid;
  gap: 0;
  margin: 2px 0;
  padding: 0;
  list-style: none;
  counter-reset: circle-flow;
}

.flow-steps li {
  position: relative;
  min-height: 68px;
  display: grid;
  align-content: start;
  gap: 3px;
  padding: 2px 0 20px 48px;
  border-left: 2px solid var(--line);
  color: var(--muted);
}

.flow-steps li:last-child {
  min-height: 44px;
  padding-bottom: 0;
  border-left-color: transparent;
}

.flow-steps li::before {
  counter-increment: circle-flow;
  content: counter(circle-flow);
  position: absolute;
  top: 0;
  left: -18px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
}

.flow-steps strong {
  color: var(--ink);
}

.next-step-preview {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px;
  padding: 14px;
  border-style: dashed;
  color: var(--muted);
}

.next-step-preview strong {
  color: var(--ink);
}

.step-number {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
}

.form-actions {
  display: grid;
  gap: 10px;
}

.circle-create-form {
  max-width: 680px;
}

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

.field > label,
.field > legend,
.field-label {
  font-size: 14px;
  font-weight: 600;
}

fieldset.field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

input,
textarea,
select {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  outline: none;
}

textarea {
  min-height: 108px;
  resize: vertical;
  line-height: 1.45;
}

input:focus,
textarea:focus,
select:focus,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid transparent !important;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink) !important;
}

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

.first-use {
  width: min(100%, 620px);
  min-height: calc(100vh - 250px);
  display: grid;
  align-content: center;
  gap: 18px;
  margin: 0 auto;
  padding: 28px 0;
}

.first-use h1,
.first-use p {
  margin-bottom: 0;
}

.composer {
  width: min(100%, 760px);
  margin: 0 auto;
}

.composer-step {
  display: grid;
  gap: 24px;
}

.composer-step > .step-number {
  margin: 0;
}

.composer-step > .field > h2 {
  margin: 0;
}

.answer-type-list,
.audience-grid {
  display: grid;
  gap: 10px;
}

.answer-type-card,
.audience-card {
  width: 100%;
  min-height: 76px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
}

.answer-type-card strong,
.audience-card strong {
  font-size: 16px;
}

.answer-type-card span,
.audience-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.answer-type-card[aria-pressed="true"],
.audience-card[aria-pressed="true"] {
  border: 2px solid var(--signal);
  background: var(--signal-tint);
  color: var(--ink);
}

.answer-type-card[aria-pressed="true"] span,
.audience-card[aria-pressed="true"] span {
  color: var(--text-secondary);
}

.option-editor,
.pending-list {
  display: grid;
  gap: 10px;
}

.option-row {
  display: grid;
  gap: 8px;
}

.option-remove {
  align-self: end;
}

.compact-setting {
  margin-top: 18px;
}

.explanation-setting {
  margin-top: 14px;
}

.draft-media-tools {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.draft-media-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.media-icon-button {
  position: relative;
  width: 44px;
  min-width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-weight: 600;
}

.media-icon-button.with-label {
  width: auto;
  border-radius: var(--radius);
  padding: 0 12px;
}

.css-icon {
  position: relative;
  width: 20px;
  height: 20px;
  display: inline-block;
  flex: 0 0 auto;
  color: currentColor;
}

.css-icon-mic::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 50%;
  width: 8px;
  height: 12px;
  box-sizing: border-box;
  border: 2px solid currentColor;
  border-radius: 999px;
  background: transparent;
  transform: translateX(-50%);
}

.css-icon-mic::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 14px;
  height: 9px;
  box-sizing: border-box;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 999px 999px;
  box-shadow: 0 3px 0 -1px currentColor;
  transform: translateX(-50%);
}

.css-icon-camera::before {
  content: "";
  position: absolute;
  inset: 4px 0 1px;
  border: 2px solid currentColor;
  border-radius: 2px;
}

.css-icon-camera::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 6px;
  width: 5px;
  height: 5px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: var(--paper);
}

.css-icon-camera > span {
  position: absolute;
  top: 1px;
  left: 4px;
  width: 8px;
  height: 5px;
  border: 2px solid currentColor;
  border-bottom: 0;
}

.draft-media-preview {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px dashed var(--soft-line);
  border-radius: var(--radius);
  background: var(--soft);
}

.private-media-preview {
  width: 100%;
  max-height: 360px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: var(--soft);
}

.private-media-preview.is-image {
  min-height: 120px;
  object-fit: contain;
}

.private-media-preview.is-video {
  min-height: 160px;
}

.private-media-preview.is-audio {
  min-height: 44px;
  border: 0;
}

.private-media-preview.is-compact.is-image,
.choice-option-card .private-media-preview.is-image {
  aspect-ratio: 1;
  max-height: none;
  object-fit: cover;
}

.private-media-preview.is-compact.is-video {
  min-height: 120px;
}

.question-slot-media {
  width: 100%;
  display: grid;
  gap: 6px;
}

.question-slot-media.is-compact {
  align-self: stretch;
}

.prepared-choice-preview {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.prepared-choice-item,
.choice-option-card {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.prepared-choice-item {
  padding: 10px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
}

.nested-fieldset {
  padding: 16px !important;
  border: 2px dashed var(--line) !important;
}

.nested-fieldset legend {
  padding: 0 7px;
}

.scale-label-fields {
  margin-top: 18px;
}

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

.preset-grid .type-button,
.duration-grid .type-button {
  width: 100%;
  min-height: 52px;
}

.audience-detail {
  min-width: 0;
}

.people-picker {
  max-height: 360px;
  overflow: auto;
  border: 2px solid var(--line);
  border-radius: var(--radius);
}

.person-choice {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--soft-line);
  background: var(--paper);
  cursor: pointer;
}

.person-choice:last-child {
  border-bottom: 0;
}

.person-choice:hover,
.person-choice:focus-within {
  background: var(--soft);
}

.person-choice input,
.check-line input,
.radio-label input {
  width: 20px;
  min-width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 0;
  padding: 0;
  accent-color: var(--signal);
}

.person-choice span,
.person-choice strong,
.person-choice small {
  display: block;
}

.group-member-editor {
  display: grid;
  gap: 12px;
  padding-top: 18px;
  border-top: 2px solid var(--line);
}

.group-current-members {
  display: grid;
  border: 2px solid var(--line);
  border-radius: var(--radius);
}

.group-member-row {
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--soft-line);
}

.group-member-row:last-child {
  border-bottom: 0;
}

.group-member-row > span,
.group-member-row strong,
.group-member-row small {
  min-width: 0;
  display: block;
  overflow-wrap: anywhere;
}

.group-member-row small {
  margin-top: 3px;
  color: var(--muted);
}

.group-member-row.is-pending-removal {
  border-style: dashed;
  background: var(--soft);
  opacity: 0.72;
}

.group-member-row.is-pending-removal strong {
  text-decoration: line-through;
}

.group-add-panel {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.group-add-panel > summary {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.group-add-panel > summary::-webkit-details-marker {
  display: none;
}

.group-add-panel > summary > span {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
}

.group-add-panel[open] > summary {
  border-bottom: 1px solid var(--soft-line);
}

.group-add-panel-body {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.group-friend-search-field,
.group-search-empty {
  margin: 0;
}

.group-add-picker {
  max-height: 280px;
}

.group-search-empty {
  padding: 16px;
  color: var(--muted);
}

.person-choice span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.person-choice small {
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.35;
}

.check-line {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}

.timing-field {
  padding-top: 22px;
  border-top: 2px solid var(--line);
}

.recipient-builder {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.answer-slot-overview {
  display: grid;
  gap: 10px;
  padding: 15px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: var(--surface);
}

.answer-slot-overview .section-head.compact {
  align-items: flex-start;
}

.answer-slot-overview .section-head.compact strong {
  display: block;
  line-height: 1.3;
}

.answer-slot-overview .field-help,
.link-fill-card p {
  margin: 0;
}

.answer-slot-meter {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.answer-slot {
  min-width: 0;
  aspect-ratio: 1.35;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-answer);
  background: var(--surface);
  font-size: 12px;
  font-weight: 600;
}

.answer-slot.is-person {
  border-color: var(--signal);
  background: var(--signal);
  color: var(--surface);
}

.answer-slot.is-link {
  border-style: dashed;
  border-color: var(--signal);
  background: var(--signal-tint);
}

.answer-slot.is-empty {
  border-color: var(--soft-line);
  color: var(--muted);
}

.optional-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.group-audience-picker,
.people-add-panel,
.selected-recipients {
  min-width: 0;
}

.group-member-chooser,
.selected-recipient-list {
  min-width: 0;
  display: grid;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  overflow: hidden;
}

.people-add-panel {
  display: grid;
  gap: 7px;
}

.selected-recipient-row {
  min-width: 0;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 11px;
  border-bottom: 1px solid var(--soft-line);
}

.selected-recipient-row:last-child {
  border-bottom: 0;
}

.selected-recipient-row > span,
.link-fill-choice > span {
  min-width: 0;
}

.selected-recipient-row strong,
.selected-recipient-row small,
.link-fill-choice strong,
.link-fill-choice small {
  display: block;
}

.selected-recipient-row small,
.link-fill-choice small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.recipient-remove {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 9px;
}

.compact-empty {
  padding: 12px;
}

.person-choice.is-disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.link-fill-card {
  padding: 14px;
  border: 1px dashed var(--signal);
  border-radius: var(--radius);
}

.link-fill-choice {
  min-height: 0;
  padding: 0;
  border: 0;
}

.radio-label {
  gap: 8px;
  cursor: pointer;
}

.radio-label:has(input:checked) {
  background: var(--signal-tint);
  color: var(--ink);
}

.radio-label:has(input:checked) input {
  accent-color: var(--signal);
}

.sticky-actions {
  position: sticky;
  bottom: 78px;
  z-index: 10;
  margin: 0 -8px;
  padding: 12px 8px;
  border-top: 1px solid var(--soft-line);
  background: var(--paper);
}

.sticky-actions > * {
  flex: 1 1 180px;
}

.review-stack {
  width: min(100%, 720px);
  margin: 0 auto;
}

.review-stack .wire-card p:last-child,
.review-stack .wire-card h2:last-child {
  margin-bottom: 0;
}

.review-options {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 24px;
}

.review-timer {
  border-width: 3px;
}

.invitation-card {
  display: grid;
  gap: 14px;
}

.invitation-card p:last-child {
  margin-bottom: 0;
}

.people-directory {
  grid-template-columns: 1fr;
}

.person-card {
  min-width: 0;
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: var(--surface);
}

.person-card-main {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.person-card-heading {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.person-card-heading > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.helper-badge {
  flex: 0 0 auto;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  max-width: 142px;
  padding: 5px 8px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: var(--soft);
  text-align: right;
}

.helper-badge strong,
.helper-badge small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.helper-badge strong {
  font-size: 12px;
}

.helper-badge small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.ranking-info {
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: var(--paper);
}

.ranking-info > summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  list-style: none;
}

.ranking-info > summary::-webkit-details-marker {
  display: none;
}

.ranking-info > summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 20px;
}

.ranking-info[open] > summary::after {
  content: "−";
}

.ranking-info > p {
  margin: 0 12px 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.friends-sort-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.friends-sort-button {
  min-height: 44px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.friends-sort-button[aria-pressed="true"] {
  border: 2px solid var(--signal);
  background: var(--signal-tint);
  color: var(--ink);
}

.availability-status-card {
  display: grid;
  gap: 10px;
}

.availability-status-card h2,
.availability-status-card p {
  margin: 0;
}

.availability-switch-row {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}

.availability-switch-row > span {
  min-width: 0;
  display: grid;
  gap: var(--space-2);
}

.availability-switch-row small {
  color: var(--muted);
}

.availability-switch {
  position: relative;
  width: 52px;
  height: 30px;
  min-height: 30px;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
}

.availability-switch::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  display: block;
  box-sizing: border-box;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: var(--muted);
  transition: background 120ms ease, transform 120ms ease;
}

.availability-switch:checked {
  border-color: var(--success);
  background: var(--success);
}

.availability-switch:checked::before {
  background: var(--surface);
  transform: translateX(22px);
}

.availability-switch:disabled {
  cursor: wait;
  opacity: 0.55;
}

.availability-status-copy {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

/* Fotoverfijning is uitsluitend een weergavelaag. De opgeslagen, al
   genormaliseerde camerabijlage blijft ongewijzigd. */
@supports (filter: saturate(1)) {
  .polsje-photo {
    filter: saturate(0.96) contrast(1.015) brightness(1.01);
  }
}

@media (forced-colors: active) {
  .polsje-photo {
    filter: none;
  }
}

.person-card strong,
.person-card small {
  display: block;
}

.person-card small {
  margin-top: 3px;
  color: var(--muted);
}

.person-card .member-meta {
  overflow-wrap: anywhere;
}

.person-card-actions {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 2px dashed var(--soft-line);
}

.person-card-actions .button-quiet {
  width: 100%;
  min-height: 44px;
}

.friend-edit-panel,
.share-optional-panel {
  min-width: 0;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: var(--paper);
}

.friend-edit-panel > summary,
.share-optional-panel > summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.friend-edit-panel > summary::-webkit-details-marker,
.share-optional-panel > summary::-webkit-details-marker {
  display: none;
}

.friend-edit-panel > summary::after,
.share-optional-panel > summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 22px;
}

.friend-edit-panel[open] > summary::after,
.share-optional-panel[open] > summary::after {
  content: "−";
}

.friend-edit-panel form,
.share-optional-panel > :not(summary) {
  margin: 0 13px 13px;
}

.prepared-share-flow {
  width: min(100%, 760px);
  margin: 0 auto;
}

.compact-question-card h2,
.primary-share-box h2,
.primary-share-box p:last-child {
  margin-bottom: 0;
}

.primary-share-box {
  border-color: var(--signal);
  border-width: 2px;
}

.private-audience-note {
  margin-bottom: 0;
}

.guest-start-countdown {
  display: grid;
  justify-items: center;
  gap: 4px;
  margin: 20px 0;
  padding: 20px;
  border: 2px solid var(--signal);
  border-radius: var(--radius-plane);
  background: var(--signal-tint);
  text-align: center;
}

.guest-start-countdown strong {
  font-size: clamp(42px, 16vw, 72px);
  line-height: 1;
}

.single-action > * {
  flex-basis: 100%;
}

.save-responders-panel .people-picker {
  max-height: 280px;
}

.points-card h2 {
  margin-bottom: 6px;
  font-size: clamp(30px, 9vw, 46px);
}

.points-card p:last-child {
  margin-bottom: 0;
}

.helper-progress-label {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  margin-bottom: 6px;
  font-size: 13px;
}

.helper-progress-label strong,
.helper-progress-label span {
  display: block;
}

.helper-progress-label span {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.badge-progress-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.badge-progress-summary strong,
.badge-progress-summary small {
  display: block;
}

.badge-progress-summary small {
  margin-top: 3px;
  color: var(--muted);
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
}

.badge-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: var(--paper);
}

.badge-card.is-claimed {
  border-style: solid;
}

.badge-card.is-claimable {
  border: 2px solid var(--signal);
  box-shadow: 0 4px 16px rgb(16 24 40 / 10%);
}

.badge-card-head {
  min-width: 0;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}

.badge-card-head.is-progress {
  grid-template-columns: minmax(0, 1fr);
}

.badge-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  font-size: 10px;
  font-weight: 600;
}

.badge-card-progress {
  width: 100%;
  height: 8px;
  display: block;
  -webkit-appearance: none;
  appearance: none;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: var(--disabled);
  color: var(--ink);
  accent-color: var(--signal);
}

.badge-card-progress::-webkit-progress-bar {
  background: var(--disabled);
}

.badge-card-progress::-webkit-progress-value {
  background: var(--signal);
}

.badge-card-progress::-moz-progress-bar {
  background: var(--signal);
}

.badge-mark.is-complete {
  border-color: var(--spark);
  background: var(--spark);
  color: var(--ink);
  font-size: 17px;
}

.badge-card h2,
.badge-card p {
  margin-bottom: 0;
}

.badge-card h2 {
  font-size: 16px;
  line-height: 1.12;
}

.badge-card .eyebrow {
  margin-bottom: 3px;
  font-size: 9px;
}

.badge-claim-button {
  min-height: 44px;
  padding: 8px;
  font-size: 12px;
}

.badge-details {
  margin-top: auto;
  border-top: 1px dashed var(--soft-line);
  padding-top: 7px;
}

.badge-details summary {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.badge-details p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.claimable-badge-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 2px solid var(--signal);
  border-radius: var(--radius);
  background: var(--signal-tint);
}

.claimable-badge-notice span {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.helper-path-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.helper-path-heading h2,
.helper-path-heading p {
  margin-bottom: 0;
}

.helper-path-heading > strong {
  flex: 0 0 auto;
  border: 2px solid var(--line);
  padding: 7px 9px;
  font-size: 13px;
}

.helper-progress-card progress {
  width: 100%;
  height: 18px;
  display: block;
  -webkit-appearance: none;
  appearance: none;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: var(--disabled);
  color: var(--signal);
  accent-color: var(--signal);
}

.helper-progress-card progress::-webkit-progress-bar {
  background: var(--disabled);
}

.helper-progress-card progress::-webkit-progress-value {
  background: var(--signal);
}

.helper-progress-card progress::-moz-progress-bar {
  background: var(--signal);
}

.helper-level-section {
  margin-top: 15px;
  padding-top: 13px;
  border-top: 2px dashed var(--soft-line);
}

.helper-level-section h3 {
  margin-bottom: 12px;
}

.helper-level-path {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.helper-level-path li {
  min-height: 40px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 7px;
  padding: 6px 7px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius-answer);
}

.helper-level-path li.is-current {
  border: 2px solid var(--signal);
  background: var(--signal-tint);
}

.helper-level-path li.is-locked {
  color: var(--muted);
}

.helper-level-path strong,
.helper-level-path small {
  display: block;
}

.helper-level-path small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.helper-level-marker {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
}

.helper-unlock-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  padding: 18px;
  border: 2px solid var(--signal);
  border-radius: var(--radius-plane);
  background: var(--signal-tint);
  box-shadow: 0 8px 24px rgb(16 24 40 / 12%);
}

.helper-unlock-card h2,
.helper-unlock-card p {
  margin-bottom: 5px;
}

.helper-unlock-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--spark);
  font-size: 22px;
  font-weight: 600;
}

.app-setup-card {
  display: grid;
  gap: 14px;
}

.app-setup-card h2,
.app-setup-card .field-help {
  margin-bottom: 0;
}

.setup-status-list {
  display: grid;
  gap: 8px;
}

.setup-status-row {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px;
  border: 1px solid var(--soft-line);
  background: var(--soft);
}

.setup-status-row > span:last-child {
  min-width: 0;
}

.pending-list {
  margin-top: 18px;
  padding: 14px;
  border: 2px dashed var(--soft-line);
}

.pending-list p {
  margin-bottom: 0;
}

.invite-known-panel form {
  margin-bottom: 0;
}

.two-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.debug-columns {
  align-items: start;
}

.debug-lane {
  min-width: 0;
  padding: 14px;
}

.debug-lane-head,
.debug-log-row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.debug-lane-head {
  margin-bottom: 12px;
}

.debug-lane-head h2,
.debug-lane-head small,
.debug-log-row p,
.debug-log-row small {
  margin: 0;
}

.debug-lane-head small,
.debug-log-row-head time,
.debug-log-row small {
  color: var(--muted);
  font-size: 11px;
}

.debug-log-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--soft-line);
  list-style: none;
}

.debug-log-row {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 11px 0;
  border-bottom: 1px solid var(--soft-line);
  overflow-wrap: anywhere;
}

.debug-log-row-head time,
.debug-log-code,
.debug-log-row small {
  font-variant-numeric: tabular-nums;
}

.debug-log-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.45;
}

.empty-state.compact {
  padding: 14px;
  font-size: 13px;
}

.debug-privacy-note {
  margin-top: 14px;
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.type-button {
  min-width: 0;
  padding: 10px 6px;
  font-size: 14px;
}

.type-button[aria-pressed="true"],
.choice-button[aria-pressed="true"],
.scale-button[aria-pressed="true"] {
  border: 2px solid var(--signal);
  background: var(--signal-tint);
  color: var(--ink);
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.choice-button {
  width: 100%;
  min-height: 58px;
  text-align: left;
}

.scale-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.scale-button {
  min-width: 0;
  padding: 0;
}

.scale-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.error-box {
  padding: 12px 14px;
  border: 1px solid var(--danger);
  border-left-width: 8px;
  border-radius: var(--radius);
  background: var(--danger-tint);
}

.auth-wrap,
.guest-wrap {
  width: min(100%, 560px);
  margin: 0 auto;
}

.guest-answer-screen {
  place-items: start center;
}

.guest-question-head {
  display: grid;
  gap: 12px;
}

.guest-question-head h1,
.guest-question-head p {
  margin-bottom: 0;
}

.guest-question-head h1 {
  font-size: clamp(24px, 7vw, 32px);
  line-height: 1.15;
}

.guest-identity-step {
  padding-top: 18px;
  border-top: 2px dashed var(--soft-line);
}

.identity-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.identity-choice {
  min-width: 0;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.identity-choice:has(input:checked) {
  border: 2px solid var(--signal);
  background: var(--signal-tint);
  color: var(--ink);
}

.identity-choice:has(input:checked) input {
  accent-color: var(--signal);
}

.identity-choice input {
  width: 20px;
  min-width: 20px;
  height: 20px;
  min-height: 20px;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  accent-color: var(--signal);
}

.identity-choice strong,
.identity-choice small {
  display: block;
}

.identity-choice small {
  margin-top: 2px;
  font-size: 11px;
}

.identity-choice:has(input:checked) small {
  color: var(--text-secondary);
}

[data-guest-name-field][hidden] {
  display: none;
}

.auth-card,
.guest-card {
  box-shadow: 0 12px 40px rgb(16 24 40 / 12%);
}

.auth-brand-mark {
  width: 56px;
  height: 56px;
  display: block;
  margin-bottom: 20px;
  filter: drop-shadow(0 10px 24px rgb(91 92 226 / 20%));
}

.install-card {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding: 16px;
  border: 1px solid var(--soft-line);
  border-left: 4px solid var(--signal);
  border-radius: var(--radius);
  background: var(--paper);
}

.install-card h2,
.install-card p {
  margin-bottom: 0;
}

.install-card .eyebrow {
  margin-bottom: 4px;
}

.oauth-authentication {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.oauth-provider-list {
  display: grid;
  gap: 10px;
}

.oauth-provider-button {
  min-height: 52px;
  border-color: #747775;
  background: #ffffff;
  color: #1f1f1f;
  font-weight: 500;
}

.oauth-provider-button.is-google:not(:disabled) {
  padding: 6px 12px;
  border-color: transparent;
  background: transparent;
}

.google-sign-in-image {
  width: 180px;
  height: 40px;
  display: block;
  object-fit: contain;
}

.oauth-provider-button:disabled:not([data-oauth-busy="true"]) {
  cursor: not-allowed;
}

.oauth-live-status {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.auth-contact {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.auth-contact a,
.page-head a {
  color: var(--ink);
  font-weight: 600;
  text-underline-offset: 3px;
}

.demo-box {
  margin-top: 20px;
  padding: 14px;
  border: 2px dashed var(--line);
  background: var(--soft);
  font-size: 14px;
}

.demo-box code {
  display: block;
  margin: 4px 0 10px;
  font-size: 13px;
}

.circle-head,
.member-row,
.share-line,
.result-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.circle-head {
  align-items: flex-start;
}

.member-list {
  margin: 16px 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--soft-line);
}

.member-row {
  min-height: 54px;
  padding: 8px 0;
  border-bottom: 1px solid var(--soft-line);
}

.member-row p {
  margin: 0;
}

.inline-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding-top: 4px;
}

.share-box {
  display: grid;
  gap: 12px;
  background: var(--soft);
}

.invite-step.is-next-action {
  order: -1;
  border-width: 3px;
  box-shadow: 5px 5px 0 var(--ink);
}

.next-action-card {
  border-style: dashed;
}

.share-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}

.step-line {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.step-line li {
  position: relative;
  min-height: 48px;
  padding: 5px 0 18px 42px;
  border-left: 2px solid var(--line);
  color: var(--muted);
}

.step-line li:last-child {
  border-left-color: transparent;
}

.step-line li::before {
  counter-increment: steps;
  content: counter(steps);
  position: absolute;
  top: 0;
  left: -17px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
}

.result-hero {
  padding: 20px;
  border: 2px solid var(--signal);
  border-radius: var(--radius-plane);
  background: var(--signal-tint);
  text-align: center;
}

.result-hero strong {
  display: block;
  margin-bottom: 4px;
  font-size: clamp(36px, 12vw, 64px);
}

.result-line {
  padding: 12px 0;
  border-bottom: 1px solid var(--soft-line);
}

.result-line:last-child {
  border-bottom: 0;
}

.bar-track {
  width: min(110px, 32vw);
  height: 16px;
  border: 1px solid var(--line);
  background: var(--paper);
}

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

.bar-progress {
  width: min(120px, 34vw);
  height: 18px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  accent-color: var(--signal);
}

.bar-progress::-webkit-progress-bar {
  background: var(--paper);
}

.bar-progress::-webkit-progress-value {
  background: var(--signal);
}

.bar-progress::-moz-progress-bar {
  background: var(--signal);
}

.open-answer {
  padding: 16px 0;
  border-bottom: 1px solid var(--soft-line);
}

.open-answer:last-child {
  border-bottom: 0;
}

.open-answer blockquote {
  margin: 8px 0 0;
  font-size: 17px;
  line-height: 1.45;
}

.deadline {
  font-variant-numeric: tabular-nums;
}

.end-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border: 2px solid var(--spark);
  border-radius: 50%;
  font-size: 26px;
  background: var(--spark);
  color: var(--ink);
  font-weight: 600;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 92px;
  z-index: 40;
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 16px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: none;
}

.app-update {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  left: 50%;
  z-index: 70;
  width: min(620px, calc(100vw - 24px));
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 2px solid var(--signal);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 12px 32px rgb(16 24 40 / 18%);
  transform: translateX(-50%);
}

.app-update-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.app-update-copy span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.app-update-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.app-update-actions .button,
.app-update-actions .button-quiet {
  min-height: 44px;
}

.confirm-dialog {
  width: min(520px, calc(100vw - 28px));
  max-width: none;
  max-height: calc(100dvh - 28px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius-plane);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 80px rgb(16 24 40 / 24%);
}

.confirm-dialog::backdrop {
  background: rgb(0 0 0 / 55%);
}

.confirm-dialog-card {
  min-width: 0;
  display: grid;
  gap: 14px;
  padding: 20px;
  overflow-wrap: anywhere;
}

.confirm-dialog-card h2,
.confirm-dialog-card p {
  margin: 0;
}

.confirm-dialog-card > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.5;
  white-space: pre-line;
}

.confirm-dialog-actions {
  padding-top: 6px;
}

.camera-dialog {
  width: min(720px, calc(100vw - 28px));
  max-width: none;
  max-height: calc(100dvh - 28px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius-plane);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 80px rgb(16 24 40 / 28%);
}

.camera-dialog::backdrop {
  background: rgb(0 0 0 / 72%);
}

.camera-dialog-card {
  min-width: 0;
  display: grid;
  gap: 14px;
  padding: 18px;
}

.camera-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.camera-dialog-head h2,
.camera-dialog-head p,
.camera-placeholder p {
  margin: 0;
}

.camera-viewfinder {
  position: relative;
  width: 100%;
  min-height: min(62dvh, 520px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #000;
}

.camera-live-preview,
.camera-photo-preview {
  width: 100%;
  height: min(62dvh, 520px);
  display: block;
  object-fit: contain;
  background: #000;
}

.camera-live-preview.is-mirrored {
  transform: scaleX(-1);
}

.camera-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  padding: 24px;
  background: var(--soft);
  color: var(--ink);
  text-align: center;
}

.camera-permission-help {
  width: min(100%, 460px);
  padding: 12px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: var(--paper);
  text-align: left;
}

.camera-permission-help > summary {
  cursor: pointer;
  font-weight: 600;
}

.camera-permission-help ol,
.camera-permission-help p {
  margin: 10px 0 0;
}

.camera-permission-help ol {
  padding-left: 20px;
}

.camera-permission-help li + li {
  margin-top: 5px;
}

.media-permission-recovery {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--warning);
  border-radius: var(--radius);
  background: var(--paper);
  text-align: left;
}

.media-permission-recovery p,
.media-permission-recovery ol {
  margin: 0;
}

.media-permission-recovery ol {
  padding-left: 20px;
}

.media-permission-recovery li + li {
  margin-top: 5px;
}

.media-permission-recovery .button-secondary {
  width: 100%;
  min-height: 44px;
}

.camera-dialog-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.camera-dialog-actions > button {
  min-height: 48px;
}

.camera-dialog-actions > button[hidden] + button {
  grid-column: 1 / -1;
}

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

.page-head-row {
  flex-wrap: wrap;
}

.question-section {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.question-inboxes > .question-section:first-child {
  margin-top: 0;
}

.question-start-panel {
  display: grid;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
  padding: var(--space-6);
  border: 1px solid var(--soft-line);
  border-radius: var(--radius-plane);
  background: var(--surface);
}

.question-start-panel .page-head,
.question-start-panel .page-question-cta,
.question-start-panel .setup-card {
  margin-bottom: 0;
}

.question-draft-card {
  margin-top: 0;
}

.question-inboxes {
  display: grid;
  gap: var(--space-8);
}

.question-inboxes .question-section {
  margin-top: 0;
}

.question-section-copy {
  max-width: 560px;
  margin: var(--space-1) 0 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.4;
}

.question-type-context {
  color: var(--text-secondary);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.section-head .eyebrow {
  margin-bottom: 4px;
}

.section-head h2 {
  margin: 0;
  font-size: 24px;
}

.section-count {
  min-width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  font-weight: 600;
}

.empty-inline {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
}

.empty-inline strong {
  color: var(--ink);
}

.row-arrow {
  align-self: center;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
}

.question-row.is-static {
  cursor: default;
  border-style: dashed;
}

.circle-list-card {
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: var(--surface);
}

.circle-link {
  width: 100%;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.circle-link strong,
.circle-link span {
  display: block;
}

.circle-link strong {
  margin-bottom: 5px;
  font-size: 21px;
}

.circle-list-card:hover,
.circle-list-card:focus-within {
  border-color: var(--signal);
  box-shadow: 0 4px 16px rgb(16 24 40 / 10%);
}

.back-button {
  min-height: 44px;
  margin-bottom: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.circle-detail-head {
  margin-bottom: 20px;
}

.slot-line {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.slot {
  min-width: 0;
  flex: 1;
  height: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}

.slot.is-filled {
  border-color: var(--signal);
  background: var(--signal);
}

.settings-panel {
  padding: 16px;
  border: 2px dashed var(--line);
}

.settings-panel > summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
}

.settings-panel[open] > summary {
  margin-bottom: 18px;
  border-bottom: 1px solid var(--soft-line);
}

.settings-panel .form-grid {
  margin-bottom: 18px;
}

.question-action-panel {
  padding: 0;
  border-width: 1px;
  border-color: var(--soft-line);
  border-style: solid;
}

.question-action-panel > summary {
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  font-size: 18px;
}

.question-action-panel > summary::after {
  content: "→";
  flex: 0 0 auto;
  font-size: 24px;
  line-height: 1;
}

.question-action-panel[open] > summary {
  margin-bottom: 16px;
}

.question-action-panel[open] > summary::after {
  content: "↓";
}

.question-action-panel > .share-box,
.question-action-panel > div {
  margin: 0 16px 16px;
}

.question-share-panel .share-box {
  padding: 14px;
}

.repeat-question-panel > div {
  display: grid;
  justify-items: start;
  gap: 12px;
}

.repeat-question-panel p,
.result-empty span {
  margin-bottom: 0;
}

.result-empty {
  padding-block: 14px;
}

.result-card .section-head {
  margin-bottom: 6px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--line);
}

.respondent-list {
  padding-bottom: 8px;
}

.respondent-privacy {
  margin: 0;
  padding: 10px 0 8px;
  border-bottom: 1px solid var(--soft-line);
  color: var(--text-secondary);
  font-size: 13px;
}

.respondent-row {
  border-bottom: 1px solid var(--soft-line);
}

.respondent-row:last-child {
  border-bottom: 0;
}

.respondent-row > summary {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  cursor: pointer;
  list-style: none;
}

.respondent-row > summary::-webkit-details-marker {
  display: none;
}

.respondent-row > summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 22px;
  font-weight: 600;
}

.respondent-row[open] > summary::after {
  content: "−";
}

.response-preview {
  max-width: 36%;
  margin-left: auto;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.respondent-answer {
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-answer);
  background: var(--soft);
}

.respondent-answer blockquote {
  margin: 4px 0 12px;
  font-size: 17px;
  line-height: 1.45;
}

.voice-recorder {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: var(--soft);
}

.explanation-disclosure {
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: var(--paper);
}

.explanation-disclosure > summary {
  min-height: 52px;
  padding: 14px 16px;
  cursor: pointer;
}

.explanation-disclosure[open] > summary {
  border-bottom: 1px solid var(--soft-line);
}

.explanation-disclosure > .stack {
  padding: 14px;
}

.voice-recorder p {
  margin: 4px 0 0;
}

.voice-recorder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.voice-recorder-actions .button,
.voice-recorder-actions .button-quiet {
  min-height: 44px;
}

.voice-recorder-timer {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.voice-recorder-preview,
.response-audio audio,
.response-private-media {
  width: 100%;
  min-height: 44px;
}

.voice-recorder-preview.is-image,
.response-private-media.is-image {
  max-height: 360px;
  object-fit: contain;
}

.response-private-media.is-video {
  max-height: 420px;
}

.response-audio {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.voice-upload-retry {
  padding: 18px;
}

.lifecycle-box,
.growth-card,
.identity-box,
.slot-summary,
.fomo-line {
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: var(--paper);
}

.lifecycle-box,
.growth-card {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.lifecycle-box h2,
.growth-card h2,
.share-box h2 {
  margin-bottom: 0;
  font-size: 25px;
}

.lifecycle-box p,
.growth-card p {
  margin-bottom: 0;
}

.identity-box {
  display: grid;
  gap: 6px;
  padding: 14px;
  background: var(--soft);
}

.align-start {
  width: fit-content;
  justify-self: start;
}

.fomo-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-color: var(--signal);
  background: var(--signal);
  color: var(--surface);
}

.fomo-line span {
  font-size: 13px;
  text-align: right;
}

.slot-summary {
  display: grid;
  gap: 5px;
  padding: 16px;
  background: var(--soft);
}

.slot-summary strong {
  font-size: 20px;
}

.guest-wrap .growth-card {
  box-shadow: 0 12px 32px rgb(16 24 40 / 12%);
}

@media (max-width: 430px) {
  .helper-unlock-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .helper-unlock-card > .button-quiet {
    grid-column: 1 / -1;
    width: 100%;
  }

  .helper-progress-label {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .helper-progress-label span {
    text-align: left;
  }

  .sticky-actions .button,
  .sticky-actions .button-secondary {
    width: 100%;
  }

  .voice-recorder-actions,
  .voice-recorder-actions .button,
  .voice-recorder-actions .button-quiet {
    width: 100%;
  }

  .page-head-row > .button {
    width: 100%;
  }

  .fomo-line {
    align-items: flex-start;
    flex-direction: column;
  }

  .fomo-line span {
    text-align: left;
  }

  .response-preview {
    max-width: 30%;
  }

  .confirm-dialog-actions > button {
    width: 100%;
  }

  .camera-dialog {
    width: 100vw;
    max-height: 100dvh;
    height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .camera-dialog-card {
    min-height: 100dvh;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    padding: max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom));
  }

  .camera-viewfinder {
    min-height: 0;
  }

  .camera-live-preview,
  .camera-photo-preview {
    height: 100%;
    min-height: 0;
  }
}

@media (max-width: 360px) {
  .shell {
    padding-inline: 12px;
  }

  .topbar {
    align-items: flex-start;
    gap: 8px;
  }

  .topbar-account {
    gap: 6px;
  }

  .account-label {
    max-width: 84px;
  }

  .topbar-points {
    min-width: 88px;
    max-width: 116px;
  }

  .identity-choice-grid,
  .app-update-actions {
    grid-template-columns: 1fr;
  }

  .helper-level-path {
    grid-template-columns: 1fr;
  }

  .helper-path-heading {
    flex-direction: column;
  }

  .helper-path-heading > strong {
    align-self: flex-start;
  }

  .app-update-actions .button,
  .app-update-actions .button-quiet {
    width: 100%;
  }

  .bottom-nav.has-debug .nav-button {
    padding-inline: 4px;
    font-size: 13px;
  }
}

@media (min-width: 680px) {
  .shell {
    padding: 26px 28px 60px;
  }

  .topbar {
    padding-bottom: 20px;
  }

  .bottom-nav {
    position: static;
    width: 420px;
    min-height: 48px;
    margin: 22px 0 0 auto;
    border: 2px solid var(--line);
  }

  .bottom-nav.has-debug {
    width: 560px;
  }

  .nav-button {
    min-height: 44px;
    flex-direction: row;
    gap: 7px;
    font-size: 14px;
  }

  .nav-icon {
    width: 19px;
    height: 19px;
  }

  .nav-count {
    position: static;
  }

  .content {
    padding-top: 42px;
  }

  .two-columns {
    grid-template-columns: 1fr 1fr;
  }

  .answer-type-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .option-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

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

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

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

  .sticky-actions {
    bottom: 0;
  }

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

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

  .scale-grid {
    grid-template-columns: repeat(var(--scale-columns, 10), 1fr);
  }

  .inline-form {
    grid-template-columns: 1fr 1fr auto;
    align-items: end;
  }

  .circle-overview-head {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .page-primary-action {
    width: auto;
  }

  .form-actions {
    grid-template-columns: auto minmax(220px, 1fr);
    align-items: center;
  }

  .form-actions .button {
    grid-column: 2;
    grid-row: 1;
  }

  .form-actions .button-quiet {
    grid-column: 1;
    grid-row: 1;
  }

  .toast {
    bottom: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .question-row:hover,
  .circle-card:hover,
  .circle-list-card:hover {
    transform: none !important;
  }
}

/* Public information pages */
.app-legal-footer {
  width: min(calc(100% - 32px), 888px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin: -76px auto 90px;
  padding: 14px 0;
  color: var(--text-secondary);
  font-size: 13px;
  position: relative;
  z-index: 2;
}

.app-legal-footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.app-legal-footer a:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}

.public-info-page {
  min-height: 100vh;
  background:
    linear-gradient(90deg, transparent 0, transparent calc(100% - 1px), rgb(16 24 40 / 4%) calc(100% - 1px)) 0 0 / 24px 24px,
    var(--paper);
}

.public-info-header {
  width: min(calc(100% - 40px), 1120px);
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  border-bottom: 1px solid var(--soft-line);
}

.public-info-brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
}

.public-info-brand img {
  display: block;
  width: 104px;
  height: auto;
}

.public-info-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.public-info-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.public-info-nav a:hover,
.public-info-nav a[aria-current="page"] {
  background: var(--signal-tint);
  color: var(--ink);
}

.public-info-main {
  width: min(calc(100% - 40px), 1120px);
  margin: 0 auto;
  padding: 32px 0 96px;
}

.public-info-hero {
  min-height: 470px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin-bottom: 32px;
  padding: clamp(32px, 7vw, 80px);
  border-radius: clamp(22px, 4vw, 44px);
  overflow: hidden;
  position: relative;
  background: var(--inverse-background);
  color: var(--inverse-foreground);
}

.public-info-hero::before,
.public-info-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.public-info-hero::before {
  width: 290px;
  height: 290px;
  top: -120px;
  right: -50px;
  border: 62px solid var(--signal);
  opacity: 0.92;
}

.public-info-hero::after {
  width: 110px;
  height: 110px;
  top: 66px;
  right: 114px;
  background: var(--spark);
}

.public-info-eyebrow,
.public-info-section-number {
  margin-bottom: 16px;
  color: var(--spark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.public-info-hero .public-info-eyebrow {
  position: relative;
  z-index: 1;
}

.public-info-hero h1 {
  max-width: 760px;
  margin-bottom: 22px;
  color: inherit;
  font-size: clamp(42px, 8vw, 82px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.06em;
  position: relative;
  z-index: 1;
}

.public-info-intro {
  max-width: 710px;
  margin: 0;
  color: var(--inverse-muted);
  font-size: clamp(18px, 2.4vw, 23px);
  line-height: 1.45;
  position: relative;
  z-index: 1;
}

.public-info-note {
  display: grid;
  grid-template-columns: minmax(130px, 0.28fr) minmax(0, 1fr);
  gap: 28px;
  margin: 28px 0;
  padding: 24px clamp(20px, 4vw, 44px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-plane);
  background: var(--spark);
  color: var(--on-spark);
}

.public-info-note strong {
  font-size: 17px;
}

.public-info-note p {
  max-width: 740px;
  margin-bottom: 0;
}

.public-info-note small {
  grid-column: 2;
  color: var(--on-spark);
}

.public-info-section {
  display: grid;
  grid-template-columns: minmax(84px, 0.22fr) minmax(0, 1fr);
  gap: clamp(20px, 5vw, 64px);
  align-items: start;
  margin: 28px 0;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--soft-line);
  border-radius: var(--radius-plane);
  background: var(--surface);
}

.public-info-section-tint {
  background: var(--signal-tint);
  border-color: var(--tint-line);
}

.public-info-section-number {
  margin: 4px 0 0;
  color: var(--signal);
  font-variant-numeric: tabular-nums;
}

.public-info-section > div {
  max-width: 760px;
}

.public-info-section h2 {
  margin-bottom: 18px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.public-info-section p,
.public-info-section li {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.65;
}

.public-info-section p:last-child {
  margin-bottom: 0;
}

.public-info-section a,
.public-info-note a {
  font-weight: 650;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.public-info-steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: polsje-step;
}

.public-info-steps li {
  display: grid;
  grid-template-columns: minmax(130px, 0.34fr) minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--soft-line);
  counter-increment: polsje-step;
}

.public-info-steps li:first-child {
  padding-top: 0;
}

.public-info-steps li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.public-info-steps strong {
  color: var(--ink);
}

.public-info-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding: clamp(28px, 5vw, 54px);
  border-radius: var(--radius-plane);
  background: var(--signal);
  color: var(--surface);
}

.public-info-callout p {
  margin: 0;
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.public-info-cta {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0 20px;
  border: 2px solid var(--surface);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.public-info-cta:hover {
  background: transparent;
  color: var(--surface);
}

.public-info-footer {
  min-height: 630px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: end;
  gap: 34px 52px;
  padding:
    clamp(58px, 10vw, 120px)
    max(20px, calc((100vw - 1120px) / 2))
    max(32px, env(safe-area-inset-bottom));
  overflow: hidden;
  background: var(--inverse-background);
  color: var(--inverse-foreground);
}

.public-info-footer-copy {
  min-width: 0;
}

.public-info-footer-copy > p {
  max-width: 660px;
  margin: 30px 0 0;
  font-size: clamp(34px, 6vw, 68px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.public-info-footer nav {
  display: grid;
  align-content: end;
  gap: 4px;
}

.public-info-footer nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  color: var(--inverse-muted);
  text-underline-offset: 4px;
}

.public-info-footer nav a:hover {
  color: var(--inverse-foreground);
}

.public-info-footer small {
  grid-column: 1 / -1;
  color: var(--inverse-subtle);
}

.public-signal-wrap {
  width: clamp(160px, 23vw, 250px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  position: relative;
}

.public-signal-core {
  width: 48%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 32%;
  background: var(--spark);
  position: relative;
  z-index: 3;
  animation: polsje-mark-breathe 7s cubic-bezier(.2,.8,.2,1) infinite;
}

.public-signal-core img {
  width: 68%;
  height: 68%;
}

.public-signal-line {
  position: absolute;
  inset: 17%;
  border: 2px solid rgb(237 237 255 / 70%);
  border-radius: 42% 58% 46% 54%;
  opacity: 0;
  transform: scale(.58) rotate(0deg);
  animation: polsje-signal-out 7s cubic-bezier(.18,.72,.2,1) infinite;
}

.public-signal-line-two {
  animation-delay: 550ms;
  border-radius: 55% 45% 59% 41%;
}

.public-signal-line-three {
  animation-delay: 1100ms;
  border-color: rgb(185 240 75 / 58%);
  border-radius: 48% 52% 44% 56%;
}

@keyframes polsje-signal-out {
  0%, 8% {
    opacity: 0;
    transform: scale(.58) rotate(0deg);
  }
  16% {
    opacity: .92;
  }
  42%, 100% {
    opacity: 0;
    transform: scale(1.25) rotate(16deg);
  }
}

@keyframes polsje-mark-breathe {
  0%, 10%, 42%, 100% { transform: scale(1); }
  18% { transform: scale(1.055) rotate(-2deg); }
  26% { transform: scale(.985) rotate(1deg); }
}

@media (max-width: 720px) {
  .public-info-header {
    width: min(calc(100% - 28px), 1120px);
    min-height: 68px;
    gap: 12px;
  }

  .public-info-brand img {
    width: 88px;
  }

  .public-info-nav {
    gap: 0;
  }

  .public-info-nav a {
    padding: 0 8px;
    font-size: 13px;
  }

  .public-info-main {
    width: min(calc(100% - 28px), 1120px);
    padding-top: 20px;
  }

  .public-info-hero {
    min-height: 430px;
    padding: 30px 24px;
  }

  .public-info-hero::before {
    width: 210px;
    height: 210px;
    top: -100px;
    right: -64px;
    border-width: 46px;
  }

  .public-info-hero::after {
    width: 72px;
    height: 72px;
    top: 42px;
    right: 66px;
  }

  .public-info-note,
  .public-info-section {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .public-info-note small {
    grid-column: auto;
  }

  .public-info-section p,
  .public-info-section li {
    font-size: 16px;
  }

  .public-info-section-number {
    margin-bottom: 0;
  }

  .public-info-steps li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .public-info-callout {
    align-items: flex-start;
    flex-direction: column;
  }

  .public-info-footer {
    min-height: 590px;
    grid-template-columns: 1fr;
    align-content: end;
    gap: 34px;
  }

  .public-info-footer nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-info-footer small {
    grid-column: auto;
  }
}

@media (max-width: 390px) {
  .public-info-nav a {
    min-width: 44px;
    padding: 0 5px;
    font-size: 12px;
  }

  .public-info-hero {
    min-height: 400px;
  }

  .public-info-hero h1 {
    font-size: clamp(39px, 12vw, 54px);
  }

  .public-info-footer nav {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-legal-footer a,
  .public-signal-core,
  .public-signal-line {
    animation: none;
    transition: none;
  }

  .public-signal-line {
    opacity: .3;
    transform: scale(1) rotate(8deg);
  }

  .public-signal-line-two {
    transform: scale(.82) rotate(-10deg);
  }

  .public-signal-line-three {
    transform: scale(.66) rotate(4deg);
  }
}

/* Polsje playtest pass — explicit sharing, compact profile access and feedback. */
.bottom-nav {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bottom-nav.has-debug {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.topbar {
  position: relative;
  z-index: 22;
}

.profile-menu {
  position: relative;
}

.profile-menu > summary {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--soft-line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.profile-menu > summary::-webkit-details-marker {
  display: none;
}

.profile-menu > summary:focus-visible,
.profile-menu[open] > summary {
  outline: 3px solid var(--signal-tint);
  border-color: var(--signal);
}

.profile-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--signal);
  color: var(--surface);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.profile-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(292px, calc(100vw - 32px));
  display: grid;
  gap: 2px;
  padding: 8px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 46px rgb(16 24 40 / 16%);
}

.profile-menu-identity {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 10px 10px 12px;
  border-bottom: 1px solid var(--soft-line);
}

.profile-menu-identity strong,
.profile-menu-identity small,
.profile-menu-identity span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.profile-menu-identity small,
.profile-menu-identity span {
  color: var(--text-secondary);
  font-size: 12px;
}

.profile-menu-panel > button {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border: 0;
  border-radius: var(--radius-answer);
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.profile-menu-panel > button:hover,
.profile-menu-panel > button:focus-visible {
  background: var(--soft);
}

.questions-feedback-footer {
  display: flex;
  justify-content: center;
  margin-top: var(--space-8);
  padding: var(--space-4) 0 var(--space-2);
}

.questions-feedback-footer .questions-feedback-cta {
  min-height: 44px;
  width: auto;
  margin: 0;
  padding: 8px 14px;
  border-color: var(--ink);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
}

.questions-feedback-footer .questions-feedback-cta:hover:not(:disabled) {
  border-color: var(--ink);
  background: var(--signal-tint);
}

.questions-feedback-footer .questions-feedback-cta:active:not(:disabled) {
  border-color: var(--signal-pressed);
  background: var(--signal-tint);
  transform: translateY(1px);
}

.in-app-dialog {
  width: min(560px, calc(100% - 24px));
  max-height: min(760px, calc(100dvh - 24px));
  margin: auto;
  padding: clamp(18px, 4vw, 28px);
  overflow: auto;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius-plane);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 70px rgb(16 24 40 / 22%);
}

.in-app-dialog::backdrop {
  background: rgb(16 24 40 / 48%);
}

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
}

.dialog-head h2 {
  margin-bottom: 0;
}

.icon-button {
  min-width: 44px;
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  padding: 8px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius-answer);
  background: var(--surface);
  color: var(--ink);
}

.icon-button .semantic-icon {
  width: 20px;
  height: 20px;
}

.clean-share-flow {
  width: min(100%, 760px);
  margin-inline: auto;
}

.external-share-card,
.in-app-share-card {
  display: grid;
  gap: var(--space-4);
  padding: clamp(18px, 4vw, 26px);
  border: 1px solid var(--soft-line);
  border-radius: var(--radius-plane);
  background: var(--surface);
}

.external-share-card h2,
.in-app-share-card h2 {
  margin-bottom: 0;
}

.share-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: var(--space-2);
  align-items: stretch;
}

.share-link-row .share-input {
  min-width: 0;
  margin: 0;
}

.share-copy-button {
  width: 48px;
  min-width: 48px;
  height: 100%;
}

.in-app-share-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
}

.in-app-share-heading > strong {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--signal-tint);
  color: var(--signal-pressed);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.share-recipient-section {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.share-recipient-section > legend {
  margin-bottom: var(--space-2);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
}

.share-sent-state {
  margin: 0;
  color: var(--success);
  font-size: 13px;
  font-weight: 700;
}

.guest-home-brand {
  width: max-content;
  display: inline-flex;
  border-radius: var(--radius-answer);
}

.guest-home-brand:focus-visible {
  outline: 3px solid var(--signal-tint);
}

.guest-acquisition-card .field-help {
  margin: 0;
  text-align: center;
}

@media (max-width: 430px) {
  .topbar-account {
    gap: 6px;
  }

  .topbar-points {
    min-width: 78px;
    max-width: 92px;
  }

  .profile-menu-panel {
    position: fixed;
    top: 72px;
    right: 12px;
  }

  .in-app-share-heading {
    display: grid;
  }

  .in-app-share-heading > strong {
    width: max-content;
  }
}

@media (min-width: 680px) {
  .bottom-nav,
  .bottom-nav.has-debug {
    width: min(100%, 440px);
  }
}

/* Sebas detail/result pass: calm owner hierarchy with round response signals. */
.signal-slot {
  border-radius: 999px;
}

.signal-progress {
  display: grid;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin-block: 20px;
}

.signal-progress .signal-slots {
  margin: 0;
}

.signal-slots-label {
  color: inherit;
  font-size: 13px;
  font-weight: 650;
}

.result-summary-plane .signal-slots.is-sealed .signal-slot.is-filled {
  border-color: var(--signal);
  background: var(--signal);
}

.result-close-time,
.result-owner-privacy {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.result-close-time .semantic-icon,
.result-owner-privacy .semantic-icon {
  flex: 0 0 auto;
}

.result-close-time time {
  color: var(--ink);
  font-weight: 700;
}

.result-owner-privacy {
  margin: -4px 0 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--soft-line);
}

.result-primary-actions {
  display: grid;
  gap: 8px;
}

.result-strip-copy {
  min-width: 0;
  display: grid;
  gap: 9px;
  flex: 1;
}

.result-choice-meter {
  width: 100%;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft-line);
}

.result-choice-meter > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--signal);
}

.reveal-plane .result-choice-meter > span {
  background: var(--spark);
}

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

.respondent-row-static,
.respondent-row > summary {
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(100px, 0.7fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
}

.respondent-row-static {
  border-bottom: 1px solid var(--soft-line);
}

.response-identity {
  min-width: 0;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.response-identity > span:last-child,
.response-identity strong,
.response-identity small {
  min-width: 0;
  display: block;
}

.response-identity small {
  margin-top: 3px;
  color: var(--text-secondary);
  font-size: 12px;
}

.response-identity-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--soft-line);
  border-radius: 50%;
  background: var(--signal-tint);
  color: var(--ink);
  font-weight: 750;
}

.response-identity.is-guest .response-identity-mark {
  background: var(--soft);
  color: var(--text-secondary);
}

.response-identity.is-anonymous .response-identity-mark .semantic-icon {
  width: 20px;
  height: 20px;
}

.response-account-check,
.response-xp {
  margin-left: 7px;
  color: var(--signal);
  font-size: 12px;
  font-weight: 750;
}

.response-xp {
  color: var(--text-secondary);
  font-weight: 600;
}

.response-preview {
  max-width: none;
  margin-left: 0;
  overflow: visible;
  text-align: right;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}

.respondent-row > summary::after,
.respondent-row[open] > summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentcolor;
  border-bottom: 2px solid currentcolor;
  transform: rotate(45deg);
  transition: transform 120ms ease-out;
}

.respondent-row[open] > summary::after {
  transform: rotate(225deg);
}

.respondent-answer {
  margin-left: 52px;
}

.badge-condition {
  margin: auto 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--soft-line);
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.4;
}

.result-bottom-action {
  display: flex;
  justify-content: center;
  padding-top: 8px;
  border-top: 1px solid var(--soft-line);
}

.result-close-link {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 430px) {
  .signal-progress {
    width: 100%;
  }

  .result-scale-counts {
    grid-template-columns: 1fr;
  }

  .respondent-row-static,
  .respondent-row > summary {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .respondent-row-static .response-preview,
  .respondent-row > summary .response-preview {
    grid-column: 1 / -1;
    margin-left: 52px;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .respondent-row > summary::after,
  .respondent-row[open] > summary::after {
    transition: none;
  }
}

@media (forced-colors: active) {
  *,
  *::before,
  *::after {
    box-shadow: none !important;
    forced-color-adjust: auto;
  }

  input:focus,
  textarea:focus,
  select:focus,
  button:focus-visible,
  a:focus-visible,
  summary:focus-visible {
    outline: 2px solid Highlight !important;
    outline-offset: 2px;
  }

  .answer-type-card[aria-pressed="true"],
  .audience-card[aria-pressed="true"],
  .choice-button[aria-pressed="true"],
  .scale-button[aria-pressed="true"],
  .friends-sort-button[aria-pressed="true"],
  .identity-choice:has(input:checked),
  .radio-label:has(input:checked) {
    border: 3px solid Highlight;
  }

  .topbar-claim-count,
  .helper-unlock-mark,
  .end-mark {
    border: 2px solid CanvasText;
  }
}

/* ==========================================================================
   Polsje fidelity components — source-mapped Ask → Wait → Reveal grammar
   ========================================================================== */

.brand-lockup {
  width: 104px;
  height: 32px;
  display: block;
  object-fit: contain;
}

.topbar-lockup {
  flex: 0 0 auto;
}

.auth-lockup {
  margin-bottom: 32px;
}

.guest-lockup {
  margin-bottom: 8px;
}

.empty-lockup {
  width: 88px;
  height: auto;
  margin-bottom: 8px;
}

.loading-brand img {
  width: 104px;
  height: 32px;
}

.semantic-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  flex: 0 0 auto;
  color: currentcolor;
  vertical-align: -4px;
}

.auth-value {
  display: grid;
  gap: 8px;
}

.auth-value h1,
.auth-value p {
  margin: 0;
}

.auth-privacy,
.privacy-state,
.result-independence,
.share-deadline,
.guest-question-contract p,
.invitation-state p,
.reframe-cue {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.auth-privacy {
  margin: 20px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.question-plane {
  position: relative;
  display: grid;
  gap: 32px;
  padding: 8px 0 0;
}

.reframe-cue {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-left: 4px solid var(--warning);
  border-radius: 0 var(--radius-answer) var(--radius-answer) 0;
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 14px;
}

.signal-slots {
  display: grid;
  grid-template-columns: repeat(5, 44px);
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin-block: 20px;
}

.signal-slot {
  width: 44px;
  aspect-ratio: 1;
  display: block;
  border: 2px solid currentcolor;
  border-radius: var(--radius-answer);
  background: transparent;
}

.signal-slots.is-sealed .signal-slot.is-filled {
  background: var(--ink);
}

.signal-slots.is-reveal .signal-slot.is-filled {
  border-color: var(--spark);
  background: var(--spark);
}

.signal-slots.is-compact {
  grid-template-columns: repeat(5, 9px);
  gap: 3px;
  margin: 0 0 7px;
}

.signal-slots.is-compact .signal-slot {
  width: 9px;
  border-width: 1px;
  border-radius: 2px;
}

.count-box {
  min-width: 82px;
  align-content: center;
  color: var(--ink);
}

.count-box strong,
.count-box > span:last-child {
  color: var(--ink);
}

.count-box > span:last-child {
  font-weight: 600;
}

.branded-empty {
  justify-items: start;
  padding: 20px 4px;
  border: 0;
  background: transparent;
}

.invitation-plane,
.wait-plane,
.reveal-plane {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: var(--radius-plane) var(--radius-plane) var(--radius-answer) var(--radius-plane);
}

.invitation-plane {
  border: 0;
  background: var(--inverse-background);
  color: var(--inverse-foreground);
}

.compact-question-card.invitation-plane {
  padding: 24px;
  border: 0;
}

.invitation-plane .eyebrow,
.invitation-plane .field-help,
.invitation-plane small {
  color: var(--inverse-muted);
}

.invitation-plane h2,
.invitation-plane p {
  margin-bottom: 0;
}

.invitation-lockup {
  margin-bottom: 20px;
}

.invitation-kicker {
  color: var(--inverse-foreground);
  font-size: 14px;
  font-weight: 600;
}

.invitation-state {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--inverse-line);
  color: var(--inverse-foreground);
  font-size: 14px;
}

.invitation-state .signal-slots,
.live-share-plane .signal-slots {
  color: var(--inverse-foreground);
}

.invitation-state .signal-slots.is-sealed .signal-slot.is-filled,
.live-share-plane .signal-slots.is-sealed .signal-slot.is-filled {
  border-color: var(--inverse-foreground);
  background: var(--inverse-foreground);
}

.prepared-choice-preview {
  gap: 8px;
  margin-top: 20px;
}

.prepared-choice-item {
  min-height: 52px;
  padding: 12px;
  border: 0;
  border-radius: var(--radius-answer);
  background: var(--surface);
  color: var(--ink);
}

.live-share-plane {
  display: grid;
  gap: 12px;
}

.share-deadline {
  color: var(--inverse-foreground);
}

.privacy-state {
  padding: 14px 16px;
  border-left: 4px solid var(--signal);
  border-radius: 0 var(--radius-answer) var(--radius-answer) 0;
  background: var(--signal-tint);
  color: var(--text-secondary);
  font-size: 14px;
}

.primary-share-box {
  padding: 20px;
  background: var(--surface);
}

.guest-question-contract {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--signal);
}

.guest-question-contract p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.guest-question-contract .signal-slots {
  margin: 8px 0 0;
  color: var(--ink);
}

.guest-question-head > .guest-lockup {
  margin-bottom: 8px;
}

.guest-card > .eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
}

.identity-box small {
  display: block;
  margin-top: 4px;
  color: var(--text-secondary);
}

.wait-plane,
.reveal-plane {
  border: 2px solid var(--ink);
}

.wait-plane {
  background: var(--surface);
  color: var(--ink);
}

.reveal-plane {
  background: var(--inverse-background);
  color: var(--inverse-foreground);
}

.result-summary-plane h2 {
  max-width: 620px;
  margin-bottom: 0;
  font-size: clamp(26px, 7vw, 36px);
}

.reveal-plane .eyebrow,
.reveal-plane .result-independence,
.reveal-plane .result-scale-strip p {
  color: var(--inverse-muted);
}

.reveal-plane .signal-slots {
  color: var(--inverse-foreground);
}

.result-independence {
  margin: 0 0 20px;
  color: var(--text-secondary);
  font-size: 14px;
}

.result-wait-status {
  display: grid;
  gap: var(--space-3);
  margin: 0 0 var(--space-4);
}

.result-wait-status > div {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(112px, 0.7fr) minmax(0, 1.3fr);
  gap: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--soft-line);
}

.result-wait-status dt,
.result-wait-status dd {
  margin: 0;
}

.result-wait-status dt {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
}

.result-wait-status dd {
  color: var(--ink);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.result-wait-copy {
  margin: 0;
  color: var(--text-secondary);
}

.result-strips {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.result-strip {
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-answer);
  background: var(--surface);
  color: var(--ink);
}

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

.result-strip small {
  margin-top: 2px;
  color: var(--text-secondary);
}

.result-scale-strip {
  margin-top: 20px;
}

.result-scale-strip .scale-labels {
  color: inherit;
}

.result-screen {
  width: min(100%, 680px);
  margin-inline: auto;
}

.result-question-head {
  margin-top: 28px;
}

.setup-status-mark .semantic-icon {
  width: 18px;
  height: 18px;
}

.setup-status-row small {
  color: var(--text-secondary);
}

.media-permission-recovery strong,
.media-permission-recovery li,
.media-permission-recovery p {
  color: var(--ink);
}

.confirm-dialog-card,
.camera-dialog-card {
  color: var(--ink);
}

@media (max-width: 430px) {
  .signal-slots {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
  }

  .signal-slot {
    width: 100%;
  }

  .signal-slots.is-compact {
    width: fit-content;
    grid-template-columns: repeat(5, 9px);
  }

  .signal-slots.is-compact .signal-slot {
    width: 9px;
  }

  .invitation-plane,
  .wait-plane,
  .reveal-plane,
  .compact-question-card.invitation-plane {
    padding: 20px;
  }
}

@media (forced-colors: active) {
  .signal-slot,
  .signal-slots.is-sealed .signal-slot.is-filled,
  .signal-slots.is-reveal .signal-slot.is-filled {
    border-color: CanvasText;
    background: Canvas;
  }

  .signal-slot.is-filled {
    background: CanvasText !important;
  }
}

/* ==========================================================================
   Polsje fidelity override layer — Visual Brand & UI System 1.0
   This layer intentionally overrides the earlier wireframe presentation while
   preserving the existing markup, routes and interaction behaviour.
   ========================================================================== */

/* Shared reading plane and flat identity */

.shell {
  width: min(100%, 760px);
}

.content {
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
}

.loading-brand img,
.topbar-mark,
.auth-brand-mark {
  filter: none;
}

.loading-brand img,
.topbar-mark,
.auth-brand-mark,
.topbar-title {
  box-shadow: none;
}

.auth-card,
.guest-card {
  box-shadow: none;
}

.loading-line,
.deadline,
.count-box strong,
.section-count,
.nav-count,
.topbar-points small,
.helper-progress-card progress,
.badge-card-progress,
.result-hero strong,
.guest-start-countdown strong {
  font-variant-numeric: tabular-nums;
}

/* Paper remains the default plane. Surface is reserved for controls, sealed
   answers and consequential state containers. */

.wire-card,
.question-row,
.circle-card,
.guest-card,
.auth-card,
.empty-state,
.person-card,
.circle-list-card {
  background: transparent;
  box-shadow: none;
}

.notice {
  border: 1px solid var(--signal);
  border-left-width: 4px;
  background: var(--signal-tint);
  color: var(--text-secondary);
}

.share-box,
.result-card,
.confirm-dialog,
.camera-dialog,
.app-update {
  background: var(--surface);
}

.empty-state {
  border: 0;
}

.question-row {
  border: 0;
  border-bottom: 1px solid var(--soft-line);
  border-radius: 0;
  padding-inline: 4px;
}

.question-row:first-child {
  border-top: 1px solid var(--soft-line);
}

.question-row:hover,
.question-row:focus-visible {
  border-color: var(--soft-line);
  border-radius: var(--radius);
  background: var(--signal-tint);
  box-shadow: none;
}

.question-meta {
  border-color: transparent;
  background: var(--soft);
  color: var(--text-secondary);
}

.count-box {
  min-width: 72px;
  border-left-color: var(--line);
}

/* Buttons, loading and disabled states */

.button,
.button-secondary,
.button-quiet,
.button-danger,
.choice-button,
.type-button,
.scale-button,
.answer-type-card,
.audience-card,
.friends-sort-button {
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.button {
  border-color: var(--signal);
}

.button-secondary,
.choice-button,
.type-button,
.scale-button,
.answer-type-card,
.audience-card,
.friends-sort-button {
  border-color: var(--line);
  background: var(--surface);
}

.button-secondary:active:not(:disabled),
.button-quiet:active:not(:disabled),
.choice-button:active:not(:disabled),
.type-button:active:not(:disabled),
.scale-button:active:not(:disabled),
.answer-type-card:active:not(:disabled),
.audience-card:active:not(:disabled),
.friends-sort-button:active:not(:disabled) {
  border-color: var(--signal-pressed);
  background: var(--signal-tint);
  transform: translateY(1px);
}

button:disabled,
.button:disabled,
.button-secondary:disabled,
.button-quiet:disabled,
.button-danger:disabled,
.choice-button:disabled,
.type-button:disabled,
.scale-button:disabled,
.answer-type-card:disabled,
.audience-card:disabled,
.friends-sort-button:disabled {
  border-color: var(--soft-line);
  background: var(--disabled);
  color: var(--text-secondary);
  opacity: 1;
}

input:disabled,
textarea:disabled,
select:disabled {
  border-color: var(--soft-line);
  background: var(--disabled);
  color: var(--text-secondary);
  opacity: 1;
}

form[aria-busy="true"] button[type="submit"],
[data-oauth-busy="true"],
[aria-busy="true"] .button {
  cursor: progress;
}

form[aria-busy="true"] button[type="submit"] {
  border-color: var(--signal-pressed);
  background: var(--signal-pressed);
  color: var(--surface);
}

/* Preserve the approved two-colour 2px + 2px focus treatment. */

input:focus,
textarea:focus,
select:focus,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid transparent !important;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink) !important;
}

/* Whole-row selection receives a visible non-colour cue in addition to the
   Signal boundary and tint. */

.answer-type-card,
.audience-card,
.choice-button,
.type-button,
.scale-button,
.friends-sort-button {
  position: relative;
}

.answer-type-card[aria-pressed="true"],
.audience-card[aria-pressed="true"],
.choice-button[aria-pressed="true"],
.type-button[aria-pressed="true"],
.scale-button[aria-pressed="true"],
.friends-sort-button[aria-pressed="true"] {
  border: 2px solid var(--signal);
  background: var(--signal-tint);
  color: var(--ink);
}

.answer-type-card[aria-pressed="true"],
.audience-card[aria-pressed="true"],
.choice-button[aria-pressed="true"] {
  padding-right: 48px;
}

.type-button[aria-pressed="true"],
.scale-button[aria-pressed="true"],
.friends-sort-button[aria-pressed="true"] {
  padding-right: 28px;
}

.answer-type-card[aria-pressed="true"]::after,
.audience-card[aria-pressed="true"]::after,
.choice-button[aria-pressed="true"]::after,
.type-button[aria-pressed="true"]::after,
.scale-button[aria-pressed="true"]::after,
.friends-sort-button[aria-pressed="true"]::after {
  content: "✓";
  position: absolute;
  top: 50%;
  right: 12px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--signal);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  transform: translateY(-50%);
}

/* Navigation remains a quiet control surface; Signal marks location without
   flooding the whole segment. */

.bottom-nav {
  border-color: var(--soft-line);
  background: var(--surface);
}

.nav-button {
  border-right: 0;
  background: var(--surface);
  color: var(--muted);
}

.nav-button:hover:not(:disabled) {
  background: var(--signal-tint);
  color: var(--ink);
}

.nav-button[aria-current="page"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 -4px 0 var(--signal);
}

.nav-button[aria-current="page"] .nav-icon {
  color: var(--signal);
  stroke-width: 2.2;
}

.nav-count {
  border: 2px solid var(--surface);
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
}

.topbar-claim-count {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.topbar-points[aria-current="page"] {
  border-color: var(--signal);
  background: var(--signal-tint);
  box-shadow: none;
}

.topbar-points[aria-current="page"] small,
.helper-level-path li.is-current small {
  color: var(--text-secondary);
}

/* Decision-cut punctuation. Signal is used while asking; Spark is reserved for
   the reveal. */

.auth-card,
.composer-step,
.guest-card,
.primary-share-box,
.result-hero {
  position: relative;
}

.auth-card::before,
.composer-step::before,
.guest-card::before,
.primary-share-box::before {
  content: "";
  position: absolute;
  top: -8px;
  right: 10px;
  width: 34px;
  height: 6px;
  border-radius: 3px;
  background: var(--signal);
  pointer-events: none;
  transform: rotate(-45deg);
  transform-origin: center;
}

.result-hero::before {
  content: "";
  position: absolute;
  top: 18px;
  right: 20px;
  width: 38px;
  height: 7px;
  border-radius: 4px;
  background: var(--spark);
  pointer-events: none;
  transform: rotate(-45deg);
  transform-origin: center;
  animation: polsje-resolve-cut 220ms ease-out both;
}

@keyframes polsje-resolve-cut {
  from {
    opacity: 0;
    transform: translateX(-12px) rotate(-45deg);
  }

  to {
    opacity: 1;
    transform: translateX(0) rotate(-45deg);
  }
}

/* Auth and username onboarding */

.auth-wrap {
  width: min(100%, 520px);
}

.auth-card {
  padding: 28px 8px;
  border: 0;
  border-radius: var(--radius-plane);
}

.auth-card h1 {
  max-width: 480px;
  font-size: clamp(30px, 8vw, 40px);
}

.auth-brand-mark {
  margin-bottom: 24px;
}

.oauth-authentication {
  margin-top: 28px;
}

.install-card {
  border: 1px solid var(--soft-line);
  border-left: 1px solid var(--soft-line);
  background: transparent;
}

.auth-contact {
  text-align: left;
}

/* Questions and ask */

.page-question-cta {
  border-radius: var(--radius-plane);
}

.question-flow-progress {
  gap: 0;
  border: 0;
  border-bottom: 1px solid var(--soft-line);
  border-radius: 0;
  overflow: visible;
}

.question-flow-progress > span,
.question-flow-progress > span.is-active,
.question-flow-progress > span.is-complete {
  position: relative;
  border: 0;
  background: transparent;
  color: var(--muted);
}

.question-flow-progress > span.is-active {
  color: var(--ink);
}

.question-flow-progress > span.is-active::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: -1px;
  left: 12px;
  height: 3px;
  background: var(--signal);
}

.wire-card.composer-step {
  padding: 8px 0 0;
  border: 0;
  border-radius: var(--radius-plane);
  background: transparent;
}

.composer #question-prompt {
  min-height: 144px;
  padding: 16px;
  border: 2px solid var(--line);
  border-radius: var(--radius-plane) var(--radius-plane) var(--radius-answer) var(--radius-plane);
  background: var(--surface);
  font-size: 20px;
  line-height: 1.4;
}

.answer-type-card {
  min-height: 80px;
}

.nested-fieldset {
  border: 1px solid var(--line) !important;
  border-radius: var(--radius);
  background: transparent;
}

.timing-field {
  border-top-color: var(--soft-line);
}

.sticky-actions {
  border-top-color: var(--soft-line);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
}

/* Share and waiting */

.prepared-share-flow,
.question-flow-head,
.composer {
  width: min(100%, 680px);
}

.compact-question-card {
  padding: 8px 0 16px;
  border: 0;
  border-bottom: 1px solid var(--soft-line);
  border-radius: 0;
}

.compact-question-card h2 {
  font-size: clamp(24px, 6vw, 32px);
}

.primary-share-box,
.share-box {
  border: 1px solid var(--line);
  border-radius: var(--radius-plane);
  box-shadow: none;
}

.primary-share-box {
  border: 2px solid var(--signal);
}

.share-optional-panel,
.friend-edit-panel,
.ranking-info {
  border-color: var(--soft-line);
  background: transparent;
}

.private-audience-note {
  border-left-width: 4px;
}

.guest-start-countdown {
  border: 1px solid var(--signal);
  background: var(--signal-tint);
  box-shadow: none;
}

/* Guest answer and invitation states */

.guest-wrap {
  width: min(100%, 620px);
}

.guest-card {
  padding: 8px 0;
  border: 0;
  border-radius: var(--radius-plane);
}

.guest-question-head {
  padding: 20px;
  border: 1px solid var(--signal);
  border-radius: var(--radius-plane) var(--radius-plane) var(--radius-answer) var(--radius-plane);
  background: var(--signal-tint);
}

.guest-question-head h1 {
  font-size: clamp(28px, 8vw, 36px);
}

.fomo-line {
  padding: 12px 0 0;
  border: 0;
  border-top: 1px solid var(--signal);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
}

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

.choice-button {
  min-height: 64px;
  justify-content: flex-start;
  text-align: left;
}

.choice-option-card {
  border-radius: var(--radius-answer);
}

.identity-choice {
  border-color: var(--line);
  background: var(--surface);
}

.identity-choice:has(input:checked) {
  border: 2px solid var(--signal);
  background: var(--signal-tint);
  color: var(--ink);
}

.person-choice:has(input:checked) {
  border: 2px solid var(--signal);
  background: var(--signal-tint);
  color: var(--ink);
}

.person-choice:has(input:checked) small,
.check-line:has(input:checked) small,
.helper-badge small {
  color: var(--text-secondary);
}

.explanation-disclosure,
.voice-recorder,
.identity-box {
  border-color: var(--soft-line);
  background: transparent;
}

/* Quiet reveal and independent answer strips */

.result-hero {
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: var(--radius-plane) var(--radius-plane) var(--radius-answer) var(--radius-plane);
  background: var(--surface);
  color: var(--ink);
  box-shadow: none;
}

.result-card {
  border: 1px solid var(--soft-line);
  border-radius: var(--radius-answer);
  box-shadow: none;
}

.result-line {
  gap: 16px;
}

/* Counts remain visible in text; the forbidden generic poll bar is suppressed. */
.bar-progress,
.bar-track,
.bar-fill {
  display: none;
}

.respondent-answer {
  border-color: var(--line);
  border-radius: var(--radius-answer);
  background: var(--surface);
}

.respondent-row > summary {
  border-radius: var(--radius-answer);
}

.respondent-row > summary:hover {
  background: var(--signal-tint);
}

.lifecycle-box,
.growth-card,
.slot-summary {
  border-color: var(--soft-line);
  background: transparent;
  box-shadow: none;
}

.settings-panel {
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: transparent;
}

.question-action-panel {
  background: transparent;
}

/* Spark is availability or reveal only. Generic success, badge and count
   states use neutral or Signal treatment instead. */

.availability-switch:checked {
  border-color: var(--spark);
  background: var(--spark);
}

.availability-switch:checked::before {
  background: var(--ink);
}

.helper-unlock-mark {
  border: 1px solid var(--signal);
  background: var(--signal);
  color: var(--surface);
}

.badge-mark.is-complete {
  border-color: var(--signal);
  background: var(--signal-tint);
  color: var(--ink);
}

.end-mark {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

/* Friends, groups and account remain useful lists rather than card grids. */

.people-directory {
  grid-template-columns: 1fr;
}

.person-card,
.circle-list-card {
  padding: 16px 0;
  border: 0;
  border-bottom: 1px solid var(--soft-line);
  border-radius: 0;
}

.circle-list-card:first-child,
.person-card:first-child {
  border-top: 1px solid var(--soft-line);
}

.circle-list-card:hover,
.circle-list-card:focus-within {
  border-color: var(--soft-line);
  border-radius: var(--radius);
  background: var(--signal-tint);
  box-shadow: none;
}

.helper-badge {
  border-color: var(--soft-line);
  background: var(--soft);
  color: var(--ink);
}

.friends-sort-controls {
  padding: 4px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: var(--surface);
}

.friend-edit-panel,
.person-card-actions {
  border-color: var(--soft-line);
}

.availability-status-card,
.app-setup-card,
[data-form="profile"],
.points-card {
  border-color: var(--soft-line);
  background: transparent;
  box-shadow: none;
}

.setup-status-mark {
  border-radius: var(--radius-answer);
  background: var(--surface);
  color: var(--ink);
}

.claimable-badge-notice {
  background: var(--signal-tint);
  color: var(--ink);
}

.badge-grid {
  gap: 12px;
}

.badge-card {
  border-color: var(--soft-line);
  background: transparent;
  box-shadow: none;
}

.badge-card.is-claimable {
  border-color: var(--signal);
  background: var(--signal-tint);
  box-shadow: none;
}

.helper-level-path li {
  background: transparent;
}

.helper-level-path li.is-current {
  background: var(--signal-tint);
}

.helper-unlock-card {
  background: var(--signal-tint);
  box-shadow: none;
}

/* Operational, permission and dialog states */

.error-box {
  border-radius: var(--radius);
}

.media-permission-recovery {
  border-color: var(--warning);
  background: var(--paper);
}

.confirm-dialog,
.camera-dialog {
  border-color: var(--line);
  box-shadow: 0 20px 56px rgb(16 24 40 / 20%);
}

.confirm-dialog::backdrop,
.camera-dialog::backdrop {
  background: rgb(16 24 40 / 58%);
}

.app-update {
  border-color: var(--line);
  box-shadow: 0 12px 32px rgb(16 24 40 / 16%);
}

.toast {
  border-color: var(--ink);
  border-radius: var(--radius);
  background: var(--inverse-background);
  color: var(--inverse-foreground);
}

.debug-columns {
  grid-template-columns: 1fr;
}

.debug-lane {
  border-color: var(--soft-line);
  background: transparent;
}

.debug-log-row {
  border-color: var(--soft-line);
}

@media (max-width: 430px) {
  .auth-card,
  .guest-card {
    padding-inline: 0;
  }

  .question-flow-progress > span {
    padding-inline: 8px;
  }

  .answer-type-card[aria-pressed="true"],
  .audience-card[aria-pressed="true"],
  .choice-button[aria-pressed="true"] {
    padding-right: 46px;
  }

  .badge-grid {
    grid-template-columns: 1fr;
  }

  .topbar-account {
    gap: 6px;
  }

  .account-label {
    display: none;
  }
}

@media (min-width: 680px) {
  .bottom-nav,
  .bottom-nav.has-debug {
    width: min(100%, 520px);
    margin: 20px auto 0;
    border: 1px solid var(--soft-line);
    border-radius: var(--radius);
    overflow: hidden;
  }

  .nav-button[aria-current="page"] {
    box-shadow: inset 0 -4px 0 var(--signal);
  }

  .content {
    padding-top: 40px;
  }

  .people-directory,
  .choice-grid,
  .debug-columns {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .result-hero::before {
    animation: none;
  }

  .button,
  .button-secondary,
  .button-quiet,
  .button-danger,
  .choice-button,
  .type-button,
  .scale-button,
  .answer-type-card,
  .audience-card,
  .friends-sort-button,
  .availability-switch::before {
    transition: none;
  }
}

@media (forced-colors: active) {
  .answer-type-card[aria-pressed="true"]::after,
  .audience-card[aria-pressed="true"]::after,
  .choice-button[aria-pressed="true"]::after,
  .type-button[aria-pressed="true"]::after,
  .scale-button[aria-pressed="true"]::after,
  .friends-sort-button[aria-pressed="true"]::after {
    border: 2px solid Highlight;
    background: Canvas;
    color: CanvasText;
  }

  .result-hero::before,
  .auth-card::before,
  .composer-step::before,
  .guest-card::before,
  .primary-share-box::before {
    background: Highlight;
  }
}

/* Final fidelity corrections for inferred secondary states and the live
   reveal component. */

.reveal-plane::before {
  content: "";
  position: absolute;
  top: 20px;
  right: 22px;
  width: 38px;
  height: 7px;
  border-radius: 4px;
  background: var(--spark);
  pointer-events: none;
  transform: rotate(-45deg);
  transform-origin: center;
  animation: polsje-resolve-cut 220ms ease-out both;
}

.offline-banner {
  position: fixed;
  right: 16px;
  bottom: 92px;
  left: 16px;
  z-index: 45;
  width: min(520px, calc(100vw - 32px));
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline: auto;
  padding: 12px 16px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 12px 32px rgb(16 24 40 / 16%);
}

.danger-disclosure > div {
  display: grid;
  gap: 12px;
  padding: 0 14px 14px;
}

.danger-disclosure p {
  margin: 0;
  color: var(--text-secondary);
}

.topbar-points {
  max-width: 180px;
}

.topbar-points strong {
  font-size: 14px;
}

.topbar-points small {
  font-size: 14px;
}

.helper-badge {
  max-width: 180px;
}

.helper-badge strong,
.helper-badge small {
  font-size: 14px;
  text-transform: none;
}

.badge-card h2 {
  font-size: 17px;
}

.badge-card .eyebrow {
  font-size: 12px;
}

.badge-claim-button,
.badge-details summary,
.badge-details p,
.helper-level-path small,
.debug-lane-head small,
.debug-log-row-head time,
.debug-log-row small,
.debug-log-code {
  font-size: 14px;
}

.badge-details summary {
  min-height: 44px;
  width: 100%;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.helper-level-path li {
  min-height: 48px;
}

.debug-log-row {
  min-height: 48px;
}

.circle-link > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.circle-link .row-arrow {
  flex: 0 0 auto;
}

.composer > .sticky-actions {
  position: static;
  bottom: auto;
  z-index: auto;
  margin: 8px 0 0;
  padding: 0;
  border-top: 0;
  background: transparent;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-plane::before {
    animation: none;
  }
}

@media (forced-colors: active) {
  .reveal-plane::before {
    background: Highlight;
  }
}

/* ==========================================================================
   Test-ready responsive shell — mobile task flow, desktop workspace
   This is deliberately the last layout layer so its breakpoint decisions are
   not undone by the earlier fidelity overrides.
   ========================================================================== */

.shell {
  min-height: 100dvh;
}

.content,
.question-flow-head,
.composer,
.prepared-share-flow,
.result-screen {
  min-width: 0;
}

.page-head {
  margin-bottom: 22px;
}

.page-head h1:last-child,
.page-head p:last-child {
  margin-bottom: 0;
}

.page-question-cta {
  min-height: 56px;
  margin-bottom: 28px;
}

.question-section {
  margin-top: 30px;
}

.push-nudge {
  margin: 12px 0 0;
}

.push-nudge button {
  min-height: 56px;
  padding: 8px 10px;
}

.push-nudge button strong {
  line-height: 1.25;
}

.push-nudge small {
  line-height: 1.3;
}

.push-nudge .row-arrow {
  font-size: 24px;
}

@media (max-width: 679px) {
  .shell {
    width: 100%;
    padding:
      max(14px, env(safe-area-inset-top))
      16px
      calc(84px + env(safe-area-inset-bottom));
  }

  .topbar {
    min-height: 62px;
    padding-bottom: 14px;
  }

  .topbar-lockup {
    width: 96px;
    height: auto;
  }

  .topbar-points {
    min-width: 112px;
    min-height: 44px;
  }

  .topbar-points strong,
  .topbar-points small {
    font-size: 12px;
  }

  .content {
    padding: 24px 0 28px;
  }

  h1 {
    font-size: clamp(28px, 8vw, 34px);
    line-height: 1.12;
  }

  h2,
  .section-head h2 {
    font-size: 22px;
  }

  .lead {
    font-size: 16px;
    line-height: 1.45;
  }

  .questions-page-head {
    margin-bottom: 20px;
  }

  .bottom-nav {
    min-height: calc(68px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
  }

  .nav-button {
    min-height: 68px;
    gap: 3px;
  }

  .nav-icon {
    width: 21px;
    height: 21px;
  }

  .nav-count {
    top: 5px;
  }

  .offline-banner,
  .toast {
    bottom: calc(78px + env(safe-area-inset-bottom));
  }

  .sticky-actions {
    bottom: calc(78px + env(safe-area-inset-bottom));
  }

  .question-row {
    min-height: 88px;
    padding: 14px 4px;
    gap: 10px;
  }

  .question-row h3 {
    font-size: 17px;
    line-height: 1.3;
  }

  .count-box {
    min-width: 70px;
    padding: 6px;
  }

  .question-flow-head .back-button {
    margin-bottom: 16px;
  }

  .question-flow-progress {
    margin-bottom: 20px;
  }

  .question-flow-head .page-head {
    margin-bottom: 20px;
  }

  .composer-step {
    gap: 22px;
  }

  .composer #question-prompt {
    min-height: 132px;
    font-size: 18px;
  }

  .answer-type-card {
    min-height: 70px;
  }

  .timing-field {
    padding-top: 20px;
  }

  .composer > .sticky-actions {
    gap: 8px;
    margin-top: 4px;
  }

  .composer > .sticky-actions > * {
    width: 100%;
    flex-basis: 100%;
  }

  .circle-link {
    min-height: 82px;
    padding: 14px 4px;
  }

  .circle-link strong {
    font-size: 19px;
  }

  .availability-status-card,
  [data-form="profile"],
  .app-setup-card,
  .retention-card {
    padding: 16px 0;
  }
}

@media (min-width: 380px) and (max-width: 679px) {
  .shell-page-badges .badge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shell-page-badges .badge-card {
    padding: 11px;
  }

  .shell-page-badges .badge-card h2 {
    font-size: 15px;
  }
}

@media (min-width: 680px) and (max-width: 959px) {
  .shell {
    width: min(100%, 860px);
    padding: 24px 32px 48px;
  }

  .topbar {
    min-height: 66px;
    padding-bottom: 18px;
  }

  .bottom-nav,
  .bottom-nav.has-debug {
    width: min(100%, 620px);
    margin: 18px 0 0;
    overflow: visible;
  }

  .content {
    max-width: 760px;
    padding-top: 34px;
  }

  h1 {
    font-size: 34px;
  }

  h2,
  .section-head h2 {
    font-size: 23px;
  }

  .push-nudge {
    max-width: 760px;
    margin-inline: auto;
  }

  .question-flow-head,
  .composer,
  .prepared-share-flow,
  .result-screen {
    width: 100%;
    max-width: 760px;
  }

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

@media (min-width: 960px) {
  body {
    font-size: 16px;
  }

  .shell {
    width: min(100%, 1180px);
    display: grid;
    grid-template-areas:
      "topbar topbar"
      "nav utility"
      "nav content";
    grid-template-columns: 190px minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    align-items: start;
    column-gap: 32px;
    padding: 28px 32px 56px;
  }

  .topbar {
    grid-area: topbar;
    min-height: 70px;
    padding-bottom: 20px;
  }

  .bottom-nav,
  .bottom-nav.has-debug {
    position: sticky;
    top: 28px;
    grid-area: nav;
    width: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-self: start;
    margin: 32px 0 0;
    padding: 4px;
    overflow: visible;
    border: 1px solid var(--soft-line);
    border-radius: var(--radius);
    background: var(--surface);
  }

  .nav-button {
    width: 100%;
    min-height: 48px;
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
    padding: 0 12px;
    border-radius: var(--radius-answer);
    font-size: 14px;
  }

  .nav-button[aria-current="page"] {
    background: var(--signal-tint);
    box-shadow: inset 4px 0 0 var(--signal);
  }

  .nav-count {
    position: static;
    margin-left: auto;
  }

  .push-nudge {
    grid-area: utility;
    margin: 24px 0 0;
  }

  .content {
    grid-area: content;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 32px 0 0;
  }

  h1 {
    max-width: 760px;
    font-size: clamp(34px, 3vw, 44px);
  }

  h2 {
    font-size: 23px;
  }

  .lead {
    max-width: 680px;
    font-size: 18px;
  }

  .page-head {
    margin-bottom: 28px;
  }

  .page-question-cta {
    width: fit-content;
    min-width: 250px;
    min-height: 56px;
    margin-bottom: 34px;
  }

  .question-row {
    min-height: 108px;
    padding: 18px 12px;
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: 20px;
  }

  .question-row:has(> .row-arrow) {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .question-row h3 {
    font-size: 19px;
  }

  .count-box {
    min-width: 104px;
    padding: 12px 8px;
  }

  .count-box strong {
    font-size: 27px;
  }

  .question-flow-head,
  .composer,
  .prepared-share-flow,
  .result-screen {
    width: 100%;
    max-width: none;
  }

  .question-flow-progress > span {
    padding: 12px 16px;
  }

  .question-plane {
    grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.8fr);
    align-items: start;
    column-gap: 28px;
  }

  .question-plane > .field:first-child {
    grid-column: 1;
    grid-row: 1;
  }

  .question-plane > fieldset {
    grid-column: 2;
    grid-row: 1;
  }

  .question-plane > [data-question-config],
  .question-plane > .timing-field {
    grid-column: 1 / -1;
  }

  .question-plane .answer-type-list {
    grid-template-columns: 1fr;
  }

  .composer #question-prompt {
    min-height: 196px;
  }

  .option-editor {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .option-editor > .button-secondary.full {
    grid-column: 1 / -1;
  }

  .option-row {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .composer > .sticky-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--soft-line);
  }

  .composer > .sticky-actions > * {
    min-width: 180px;
    flex: 0 0 auto;
  }

  .choice-grid,
  .prepared-choice-preview,
  .people-directory,
  .debug-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .shell-page-account .content > .stack.large {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .shell-page-account .app-setup-card {
    grid-column: 1 / -1;
  }

  .shell-page-account .account-logout {
    width: auto;
    min-width: 180px;
    justify-self: start;
  }

  .guest-wrap {
    width: min(100%, 760px);
  }

  .auth-wrap {
    width: min(100%, 580px);
  }

  .wire-card,
  .circle-card,
  .result-card,
  .guest-card,
  .auth-card,
  .share-box {
    padding: 24px;
  }

  .stack.large {
    gap: 26px;
  }
}

@media (min-width: 1368px) {
  .shell {
    width: min(100%, 1400px);
    grid-template-areas:
      "topbar topbar topbar"
      "nav content utility";
    grid-template-columns: 220px minmax(0, 820px) minmax(200px, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: 32px;
  }

  .push-nudge {
    position: sticky;
    top: 28px;
    margin-top: 32px;
  }

  .shell-page-debug .content {
    grid-column: 2 / -1;
  }
}

.content:focus {
  outline: none;
}

[data-guest-answer-control][aria-invalid="true"] {
  border-radius: var(--radius-answer);
  outline: 2px solid var(--danger);
  outline-offset: 4px;
  scroll-margin-top: 24px;
}

.offline-banner:not([hidden]) ~ .toast {
  bottom: 156px;
}

@media (max-width: 679px) {
  .offline-banner:not([hidden]) ~ .toast {
    bottom: calc(142px + env(safe-area-inset-bottom));
  }

  .bottom-nav .nav-button:focus-visible {
    box-shadow: inset 0 0 0 3px var(--ink) !important;
  }

  .bottom-nav .nav-button[aria-current="page"]:focus-visible {
    box-shadow:
      inset 0 -4px 0 var(--signal),
      inset 0 0 0 3px var(--ink) !important;
  }
}

/* ==========================================================================
   Account rhythm — compact viewport polish
   Account settings are separate, consequential surfaces. Keep their boundaries
   calm and give controls enough breathing room on a phone without changing the
   denser list treatment used by Vragen and Kringen.
   ========================================================================== */

.theme-preference-card {
  display: grid;
  gap: var(--space-3);
}

.theme-preference-card > h2,
.theme-preference-card > p {
  margin-bottom: 0;
}

.theme-choice-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
  margin-top: var(--space-1);
}

.theme-choice-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0 var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
}

.theme-choice-button:hover:not(:disabled) {
  background: var(--soft);
}

.theme-choice-button[aria-pressed="true"] {
  border: 2px solid var(--signal);
  background: var(--signal-tint);
}

.theme-choice-button[aria-pressed="true"]::before {
  content: "✓";
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  background: var(--signal);
  color: var(--surface);
  font-size: 12px;
  line-height: 1;
}

.shell-page-account .content > .stack.large {
  gap: var(--space-6);
}

.shell-page-account .availability-status-card,
.shell-page-account .theme-preference-card,
.shell-page-account [data-form="profile"],
.shell-page-account .app-setup-card,
.shell-page-account .retention-card,
.shell-page-account .account-delete-panel {
  border: 1px solid var(--soft-line);
  border-radius: var(--radius-plane);
  background: var(--surface);
}

.shell-page-account .retention-card {
  display: grid;
  gap: 12px;
}

.shell-page-account .retention-card h2,
.shell-page-account .retention-card p {
  margin-bottom: 0;
}

.shell-page-account .setup-status-row {
  min-height: 62px;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--radius);
}

.shell-page-account .account-delete-panel > summary {
  min-height: 48px;
}

@media (min-width: 680px) {
  .shell-page-account .availability-status-card,
  .shell-page-account .theme-preference-card,
  .shell-page-account [data-form="profile"],
  .shell-page-account .app-setup-card,
  .shell-page-account .retention-card,
  .shell-page-account .account-delete-panel {
    padding: 24px;
  }
}

@media (max-width: 679px) {
  .shell-page-account .content {
    padding-top: 28px;
  }

  .shell-page-account .page-head {
    margin-bottom: 26px;
  }

  .shell-page-account .page-head .eyebrow {
    margin-bottom: 6px;
  }

  .shell-page-account .content > .stack.large {
    gap: var(--space-6);
  }

  .shell-page-account .availability-status-card,
  .shell-page-account .theme-preference-card,
  .shell-page-account [data-form="profile"],
  .shell-page-account .app-setup-card,
  .shell-page-account .retention-card,
  .shell-page-account .account-delete-panel {
    padding: var(--space-6);
  }

  .shell-page-account .availability-status-card {
    gap: 12px;
  }

  .shell-page-account .availability-status-card > .eyebrow,
  .shell-page-account .app-setup-card > .eyebrow {
    margin-bottom: 0;
  }

  .shell-page-account .availability-switch-row {
    min-height: 48px;
    align-items: center;
    gap: var(--space-4);
  }

  .shell-page-account [data-form="profile"] {
    gap: var(--space-6);
  }

  .shell-page-account [data-form="profile"] input {
    min-height: 52px;
  }

  .shell-page-account .app-setup-card {
    gap: var(--space-4);
  }

  .shell-page-account .setup-status-list {
    gap: 10px;
  }

  .shell-page-account .account-delete-panel[open] > summary {
    margin-bottom: 20px;
    padding-bottom: 16px;
  }

  .shell-page-account .account-logout {
    margin-top: 2px;
  }
}

@media (min-width: 680px) {
  .question-start-panel {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .question-start-panel .question-draft-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 430px) {
  .question-start-panel {
    padding: var(--space-6);
  }

  .question-start-panel .page-question-cta {
    width: 100%;
  }

  .result-wait-status > div {
    grid-template-columns: 1fr;
    gap: var(--space-1);
  }
}

@media (max-width: 679px) {
  .topbar-points {
    max-width: 160px;
  }
}

/* ==========================================================================
   Question inbox choice + authenticated answer detail
   Voor jou / Van jou is one explicit decision control, not two feed columns.
   The public answer route keeps its quiet guest surface; a verified app user
   keeps the normal workspace shell and navigation.
   ========================================================================== */

.question-inbox-control {
  display: grid;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.question-inbox-control-head {
  display: grid;
  gap: var(--space-1);
}

.question-inbox-control-head h2,
.question-inbox-control-head p {
  margin: 0;
}

.question-inbox-control-head h2 {
  font-size: 18px;
}

.question-inbox-control-head p {
  color: var(--text-secondary);
  font-size: 14px;
}

.question-view-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-1);
  padding: var(--space-1);
  border: 1px solid var(--soft-line);
  border-radius: var(--radius-plane);
  background: var(--soft);
}

.question-view-button {
  min-width: 0;
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 2px solid transparent;
  border-radius: calc(var(--radius-plane) - var(--space-1));
  background: transparent;
  color: var(--text-secondary);
  text-align: left;
}

.question-view-button:hover:not(:disabled) {
  background: var(--signal-tint);
  color: var(--ink);
}

.question-view-button[aria-pressed="true"] {
  border: 2px solid var(--signal);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgb(16 24 40 / 10%);
}

.question-view-button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.question-view-button-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.question-view-button-copy strong,
.question-view-button-copy small {
  overflow-wrap: anywhere;
}

.question-view-button-copy strong {
  font-size: 16px;
  line-height: 1.2;
}

.question-view-button-copy small {
  color: currentColor;
  font-size: 12px;
  line-height: 1.3;
}

.question-view-signal {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 7px;
  background: var(--signal);
  color: var(--surface);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.question-view-button[aria-pressed="true"] .question-view-signal {
  background: var(--ink);
  color: var(--paper);
}

.own-question-card {
  border-bottom: 1px solid var(--soft-line);
}

.own-question-card:first-child {
  border-top: 1px solid var(--soft-line);
}

.own-question-card > .question-row,
.own-question-card > .question-row:first-child {
  border: 0;
}

.own-question-card.needs-action {
  box-shadow: inset 3px 0 0 var(--signal);
}

.question-state-label {
  display: block;
  margin-bottom: 5px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
}

.question-state-label.is-action {
  color: var(--signal-pressed);
}

.question-row h3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.question-row-side {
  min-width: 82px;
  align-self: stretch;
  display: grid;
  align-content: center;
  justify-items: stretch;
  gap: var(--space-2);
}

.question-row-side .count-box {
  min-width: 0;
}

.question-card-action {
  display: block;
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
  text-align: right;
}

.own-question-card-actions {
  display: flex;
  justify-content: flex-end;
  padding: 0 var(--space-1) var(--space-3);
}

.question-card-delete {
  min-height: 44px;
  padding: 0 var(--space-3);
  border: 0;
  border-radius: var(--radius-answer);
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
}

.question-card-delete:hover,
.question-card-delete:focus-visible {
  background: var(--signal-tint);
  color: var(--ink);
}

.question-card-delete:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.question-inboxes {
  min-height: 144px;
}

/* ==========================================================================
   Theme-aware question workspace
   The inbox is one quiet decision surface. Counts and identity marks only use
   data already visible to the signed-in person; time is the card progress.
   ========================================================================== */

.question-inbox-panel {
  display: grid;
  gap: var(--space-5, 20px);
  padding: var(--space-4);
  overflow: hidden;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius-plane);
  background: var(--surface);
  box-shadow: 0 12px 34px rgb(16 24 40 / 7%);
}

.question-inbox-panel .question-inbox-control {
  margin-bottom: 0;
}

.question-inbox-panel .question-view-switch {
  border-color: var(--line);
}

.open-question-summary {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin: 0;
  color: var(--text-secondary);
}

.open-question-summary > span:last-child {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.open-question-summary strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}

.open-question-summary small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.open-question-summary-mark {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--spark);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--spark) 14%, transparent);
}

.question-inbox-panel .question-inboxes {
  min-height: 112px;
}

.question-inbox-panel .empty-inline {
  padding: var(--space-3) 0;
  border: 0;
  background: transparent;
}

.question-start-panel {
  box-shadow: 0 12px 34px rgb(16 24 40 / 7%);
}

.question-view-signal,
.nav-count,
.topbar-claim-count {
  border-radius: 999px;
}

.topbar-points {
  grid-template-columns: auto minmax(0, 1fr) auto;
  border-radius: 999px;
}

.topbar-helper-mark {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--spark);
  color: var(--on-spark);
  font-size: 12px;
  font-weight: 800;
}

.profile-avatar-wrap {
  position: relative;
  display: inline-grid;
}

.profile-status-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--surface);
  border-radius: 999px;
  background: var(--muted);
}

.profile-status-dot.is-available {
  background: var(--success);
}

.incoming-question-main {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: var(--space-3);
}

.incoming-question-copy {
  min-width: 0;
}

.incoming-question-avatar {
  position: relative;
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  margin-top: 1px;
  border: 1px solid var(--soft-line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
}

.incoming-question-avatar.has-open-status::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--surface);
  border-radius: 999px;
  background: var(--spark);
}

.incoming-question-person-icon {
  width: 19px;
  height: 19px;
}

.question-lifecycle-progress {
  position: relative;
  width: min(100%, 360px);
  height: 5px;
  display: block;
  margin-top: var(--space-3);
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft);
}

.question-lifecycle-progress::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--question-lifecycle-progress, 0%);
  border-radius: inherit;
  background: var(--signal);
  transition: width 240ms linear;
}

.question-lifecycle-progress.is-complete::after {
  width: 100%;
  background: var(--spark);
}

.own-question-row:not(.has-card-action) {
  grid-template-columns: minmax(0, 1fr);
}

.question-row {
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.question-inbox-panel .question-row:hover,
.question-inbox-panel .question-row:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgb(16 24 40 / 10%);
}

.question-card-delete {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--soft-line);
  border-radius: 999px;
  background: var(--surface);
}

.question-delete-icon {
  width: 18px;
  height: 18px;
}

.questions-feedback-footer {
  display: grid;
  justify-items: center;
  gap: var(--space-3);
  text-align: center;
}

.questions-feedback-prompt {
  max-width: 360px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-secondary);
}

.questions-feedback-prompt p {
  margin: 0;
  font-size: 13px;
}

.feedback-friendly-mark {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--soft-line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
}

.feedback-friendly-mark .semantic-icon {
  width: 16px;
  height: 16px;
}

:root[data-theme="dark"] .question-start-panel {
  border-color: var(--soft-line);
  background: linear-gradient(145deg, #1a2130 0%, var(--surface) 68%);
  box-shadow:
    0 18px 48px rgb(0 0 0 / 20%),
    inset 0 1px 0 rgb(255 255 255 / 4%);
}

:root[data-theme="dark"] .question-inbox-panel {
  box-shadow:
    0 14px 38px rgb(0 0 0 / 16%),
    inset 0 1px 0 rgb(255 255 255 / 3%);
}

:root[data-theme="dark"] .question-view-switch {
  background: var(--paper);
}

:root[data-theme="dark"] .question-view-button[aria-pressed="true"] {
  border-color: var(--signal);
  background: var(--soft);
  box-shadow: none;
}

:root[data-theme="dark"] .question-inbox-panel .question-row:hover,
:root[data-theme="dark"] .question-inbox-panel .question-row:focus-visible {
  box-shadow: 0 9px 24px rgb(0 0 0 / 20%);
}

@media (min-width: 680px) {
  .question-inbox-panel {
    padding: var(--space-6);
  }
}

@media (max-width: 430px) {
  .topbar-helper-mark {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }

  .topbar-points {
    min-width: 102px;
    max-width: 116px;
    padding-inline: 7px;
  }

  .question-inbox-panel {
    padding: var(--space-3);
  }

  .own-question-row:not(.has-card-action) {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .question-row,
  .question-lifecycle-progress::after {
    transition: none;
  }

  .question-inbox-panel .question-row:hover,
  .question-inbox-panel .question-row:focus-visible {
    transform: none;
  }
}

.answer-app-detail {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
}

.answer-app-detail > .back-button {
  margin-bottom: var(--space-6);
}

.answer-app-detail .guest-wrap {
  width: 100%;
  margin: 0;
}

@media (max-width: 430px) {
  .question-view-button {
    gap: var(--space-2);
    padding-inline: 10px;
  }

  .question-view-signal {
    width: 24px;
    height: 24px;
  }

  .own-question-row {
    grid-template-columns: minmax(0, 1fr) 76px;
  }

  .question-row-side {
    min-width: 0;
  }

  .question-card-action {
    text-align: center;
  }
}

/* ==========================================================================
   Final interaction polish — quiet, purposeful and reduced-motion safe
   ========================================================================== */

/* The opening lockup confirms that the app is ready. It reveals once, without
   zoom, bounce or continuous movement. */
.loading-brand .brand-lockup {
  animation: polsje-app-open 220ms ease-out both;
}

.loading-brand .loading-line {
  animation: polsje-soft-appear 180ms ease-out 70ms both;
}

@keyframes polsje-app-open {
  from {
    opacity: 0;
    clip-path: inset(0 36% 0 0 round 2px);
  }

  to {
    opacity: 1;
    clip-path: inset(0 0 0 0 round 2px);
  }
}

@keyframes polsje-soft-appear {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* The core product action gets one directional cue. It stays flat and calm;
   the cue only moves on direct pointer interaction. */
.shell-page-questions .page-question-cta,
.shell-page-circles .page-friends-cta {
  justify-content: space-between;
  gap: var(--space-4);
  padding-inline: 20px;
}

.primary-action-arrow {
  flex: 0 0 auto;
  font-size: 22px;
  line-height: 1;
  transition: transform 160ms ease;
}

.shell-page-questions .page-question-cta:hover .primary-action-arrow,
.shell-page-circles .page-friends-cta:hover .primary-action-arrow {
  transform: translateX(2px);
}

/* Switching between the two question inboxes gets a short acknowledgement,
   not a page-transition effect. */
.question-inboxes > .question-section:not([hidden]) {
  animation: polsje-soft-appear 140ms ease-out both;
}

/* Owner-only product management. Aggregate cards stay deliberately quieter
   than the product flow; the dashboard should inform, never compete. */
.management-head {
  align-items: end;
}

.management-window-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: var(--space-8);
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.management-window-switch button {
  min-height: 44px;
  border: 0;
  border-radius: calc(var(--radius) - 4px);
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-weight: 650;
}

.management-window-switch button[aria-pressed="true"] {
  background: var(--signal);
  color: var(--surface);
}

.management-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.management-metric {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 18px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: var(--surface);
}

.management-metric > span,
.management-metric small {
  color: var(--text-secondary);
}

.management-metric > span {
  font-size: 13px;
  font-weight: 650;
}

.management-metric strong {
  font-size: clamp(24px, 3vw, 36px);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.management-metric small {
  font-size: 12px;
  line-height: 1.4;
}

.management-columns {
  align-items: start;
  margin-bottom: var(--space-6);
}

.management-panel {
  padding: clamp(18px, 3vw, 26px);
}

.management-panel h2,
.management-boundary h2 {
  margin-top: 4px;
}

.management-list {
  display: grid;
  gap: 0;
  margin: var(--space-4) 0;
}

.management-list > div {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 10px 0;
  border-bottom: 1px solid var(--soft-line);
}

.management-list > div:last-child {
  border-bottom: 0;
}

.management-list dt {
  min-width: 0;
  color: var(--text-secondary);
}

.management-list dd {
  flex: 0 0 auto;
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}

.management-trend-list {
  display: grid;
  gap: 9px;
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
}

.management-trend-list li {
  display: grid;
  grid-template-columns: 64px minmax(80px, 1fr) 36px;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}

.management-trend-list time {
  color: var(--text-secondary);
}

.management-trend-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft);
}

.management-trend-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--signal);
}

.management-trend-list strong {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.management-boundary {
  margin-block: var(--space-8) var(--space-5);
  padding: clamp(18px, 3vw, 26px);
}

.management-diagnostics {
  margin-top: var(--space-5);
  padding: 0;
  overflow: hidden;
}

.management-diagnostics > summary {
  min-height: 52px;
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 700;
}

.management-diagnostics[open] > summary {
  border-bottom: 1px solid var(--soft-line);
}

.management-diagnostics .debug-columns {
  padding: 18px;
}

.management-generated {
  margin-top: var(--space-4);
}

@media (max-width: 760px) {
  .management-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .management-head {
    align-items: stretch;
  }

  .management-head .button-secondary {
    width: 100%;
  }

  .management-metric-grid {
    gap: 8px;
  }

  .management-metric {
    padding: 14px;
  }

  .management-metric strong {
    font-size: 25px;
  }

  .management-metric small {
    display: none;
  }

  .management-trend-list li {
    grid-template-columns: 54px minmax(60px, 1fr) 30px;
    gap: 8px;
  }
}

@media (max-width: 679px) {
  input,
  textarea,
  select,
  button,
  a,
  summary {
    scroll-margin-block: 96px;
  }
}

@media (max-width: 360px) {
  .shell-page-questions .page-question-cta,
  .shell-page-circles .page-friends-cta {
    justify-content: center;
  }

  .primary-action-arrow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .loading-brand .brand-lockup,
  .loading-brand .loading-line,
  .question-inboxes > .question-section:not([hidden]) {
    animation: none;
  }

  .primary-action-arrow {
    transition: none;
    transform: none;
  }
}
