:root {
  color-scheme: light;
  --ink: #15100d;
  --paper: #fff8ea;
  --paper-2: #f3efe4;
  --line: #201812;
  --muted: #6f665f;
  --coral: #ff5d52;
  --blue: #2368ff;
  --mint: #1fbf8f;
  --acid: #d8ff3e;
  --rose: #f7b8c8;
  --shadow: 0 18px 60px rgba(21, 16, 13, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(21, 16, 13, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(21, 16, 13, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 10% 20%, rgba(255, 93, 82, 0.22), transparent 24rem),
    radial-gradient(circle at 86% 12%, rgba(35, 104, 255, 0.16), transparent 25rem),
    radial-gradient(circle at 70% 84%, rgba(31, 191, 143, 0.16), transparent 26rem),
    var(--paper);
  background-size: 42px 42px, 42px 42px, auto, auto, auto, auto;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    repeating-radial-gradient(circle at 10% 10%, rgba(21, 16, 13, 0.14) 0 1px, transparent 1px 5px);
  mix-blend-mode: multiply;
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 44px;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  text-align: left;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--paper);
  background: var(--ink);
  border-radius: 50%;
  font-weight: 700;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1;
}

.brand small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 3px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fffdf7;
  box-shadow: 3px 3px 0 var(--line);
}

.lang-option,
.text-button {
  min-height: 32px;
  border: 0;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
}

.lang-option {
  min-width: 44px;
  padding: 6px 10px;
  color: var(--ink);
  background: transparent;
  border-radius: 999px;
}

.lang-option.is-active {
  color: var(--paper);
  background: var(--ink);
}

.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 8px 12px;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 3px 3px 0 var(--line);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.text-button:hover {
  transform: translate(2px, 2px);
  background: var(--acid);
  box-shadow: 1px 1px 0 var(--line);
}

.screen {
  display: block;
}

.is-hidden {
  display: none !important;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 28px;
  align-items: end;
  min-height: 520px;
  padding-bottom: 28px;
}

.home-copy {
  width: 100%;
  max-width: 720px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(3rem, 5.8vw, 5.2rem);
  line-height: 0.9;
  overflow-wrap: anywhere;
}

h1 span {
  display: block;
  white-space: nowrap;
}

h2 {
  font-size: clamp(2rem, 5vw, 4.8rem);
  line-height: 0.94;
  overflow-wrap: anywhere;
}

h3 {
  font-size: clamp(1.28rem, 2.5vw, 2rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

.lede {
  max-width: 630px;
  margin: 22px 0 0;
  color: #3b322d;
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.method-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.method-strip span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 7px 11px;
  color: var(--ink);
  background: rgba(255, 248, 234, 0.72);
  border: 2px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.poster-frame {
  position: relative;
  justify-self: end;
  width: min(100%, 410px);
  margin: 0 12px 0 0;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow), 8px 8px 0 var(--line);
  transform: rotate(2deg);
  overflow: hidden;
}

.poster-frame::before {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  width: 58px;
  height: 18px;
  background: var(--coral);
  border: 2px solid var(--line);
  content: "";
}

.poster-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.sync-panel {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin: 0 0 20px;
  padding: 16px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 248, 234, 0.82);
  box-shadow: 5px 5px 0 var(--line);
}

/* Brand-new visitor: collapse the whole device/sync dashboard to one quiet
   privacy line so it never competes with the tests above it. */
.sync-panel.is-fresh {
  grid-template-columns: 1fr;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.sync-panel.is-fresh .eyebrow,
.sync-panel.is-fresh h2,
.sync-panel.is-fresh #syncText {
  display: none;
}

/* Hide the ID / analytics / retention / plan dashboard that is all zeros for a
   new visitor. The restore-pair affordance and device actions stay reachable. */
.sync-panel.is-fresh .sync-grid,
.sync-panel.is-fresh #analyticsPanel,
.sync-panel.is-fresh #pairPlan,
.sync-panel.is-fresh .continue-link-head,
.sync-panel.is-fresh #continueLinkText,
.sync-panel.is-fresh #continueLinkPrivacy {
  display: none;
}

.sync-panel.is-fresh .sync-card,
.sync-panel.is-fresh #continueLinkCard {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.sync-panel.is-fresh .sync-copy p:not(.eyebrow) {
  margin: 0 0 8px;
}

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

.sync-panel h2 {
  max-width: 560px;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  line-height: 0.98;
}

.sync-panel p:not(.eyebrow) {
  max-width: 620px;
  margin: 10px 0 0;
  color: #3b322d;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.sync-note {
  font-size: 0.9rem;
  color: var(--muted) !important;
}

.sync-card {
  min-width: 0;
  display: grid;
  gap: 12px;
  align-content: start;
}

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

.sync-stat {
  min-width: 0;
  padding: 10px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf7;
}

.sync-stat span,
.sync-stat strong {
  display: block;
}

.sync-stat span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.sync-stat strong {
  margin-top: 6px;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

.analytics-panel {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: #eef8ff;
}

.analytics-panel.is-disabled {
  background: #f6f1e8;
}

.analytics-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.analytics-head span,
.analytics-grid span,
.retention-metrics > span,
.retention-metrics-grid span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.analytics-head strong {
  padding: 4px 8px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--lime);
  font-size: 0.72rem;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.analytics-panel.is-disabled .analytics-head strong {
  background: var(--pink);
}

.analytics-panel p {
  margin: 0;
  color: #3b322d;
  font-size: 0.86rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.analytics-grid div {
  min-width: 0;
  padding: 8px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf7;
}

.analytics-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
  line-height: 1;
}

.retention-metrics {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding-top: 2px;
}

.retention-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.retention-metrics-grid div {
  min-width: 0;
  padding: 8px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: #f7fff0;
}

.retention-metrics-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
  line-height: 1;
}

.analytics-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.analytics-actions .ghost-button {
  flex: 1 1 150px;
  width: auto;
  min-width: 0;
  min-height: 40px;
  padding: 8px 10px;
}

.continue-link-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 10px 0;
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
}

.continue-link-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.continue-link-card span,
.continue-link-card small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.continue-link-card strong {
  min-width: 0;
  color: var(--blue);
  font-size: 0.9rem;
  line-height: 1.1;
  text-align: right;
  overflow-wrap: anywhere;
}

.continue-link-card.is-private strong {
  color: var(--red);
}

.continue-link-card p {
  margin: 0;
  color: #3b322d;
  font-size: 0.88rem;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.return-guide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(128px, auto);
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 0;
  border-bottom: 2px solid var(--line);
}

.return-guide-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.return-guide span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.return-guide strong {
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.return-guide p {
  margin: 0;
  color: #3b322d;
  font-size: 0.86rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.return-guide .ghost-button {
  width: auto;
  min-width: 0;
  min-height: 38px;
  padding: 8px 11px;
  box-shadow: none;
  white-space: normal;
}

.return-guide .ghost-button:hover {
  transform: none;
  box-shadow: none;
}

.restore-pair-form {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding-top: 6px;
}

.restore-pair-form label {
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.restore-pair-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  min-width: 0;
}

.restore-pair-row input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 8px 10px;
  color: var(--ink);
  background: #fffdf7;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  outline: none;
}

.restore-pair-row input:focus {
  box-shadow: inset 0 0 0 2px rgba(35, 104, 255, 0.28);
}

.restore-pair-row .ghost-button {
  width: auto;
  min-height: 40px;
  padding: 8px 10px;
  box-shadow: none;
  white-space: nowrap;
}

.restore-pair-row .ghost-button:hover {
  transform: none;
  box-shadow: none;
}

.pair-plan {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.82);
}

.pair-plan-head,
.pair-last,
.pair-activity-head,
.pending-invites-head,
.pair-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pair-plan-head span,
.pair-last span,
.pair-activity-head span,
.pair-activity-item span,
.pending-invites-head span,
.pending-invite-item span,
.pair-history-head span,
.pair-history-item span,
.pair-test-chip em {
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.pair-plan-head strong,
.pair-last strong,
.pair-activity-head strong,
.pending-invites-head strong,
.pair-history-head strong {
  font-size: 0.9rem;
  line-height: 1.1;
  text-align: right;
  overflow-wrap: anywhere;
}

.pending-invites {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding-top: 10px;
  border-top: 2px solid var(--line);
}

.pending-invite-list {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.pending-waiting-state {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 8px 0;
  border-top: 1px solid rgba(21, 16, 13, 0.18);
  border-bottom: 1px solid rgba(21, 16, 13, 0.18);
}

.pending-waiting-state span,
.pending-waiting-state small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.pending-waiting-state strong {
  color: var(--red);
  font-size: 0.9rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.pending-waiting-state p {
  margin: 0;
  color: #3b322d;
  font-size: 0.86rem;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.pending-waiting-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
}

.pending-waiting-steps small {
  min-width: 0;
  padding-top: 6px;
  border-top: 2px solid var(--line);
}

.pending-invite-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 8px 0;
  border-top: 1px solid rgba(21, 16, 13, 0.18);
}

.pending-invite-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.pending-invite-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.pending-invite-actions .ghost-button {
  flex: 1 1 86px;
  width: auto;
  min-height: 34px;
  padding: 6px 10px;
  box-shadow: none;
  white-space: nowrap;
}

.pending-invite-actions .ghost-button:hover {
  transform: none;
  box-shadow: none;
}

.weekly-checkin,
.checkin-streak,
.weekly-reminder,
.conversation-prompt,
.date-mission {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding-top: 10px;
  border-top: 2px solid var(--line);
}

.weekly-checkin div,
.checkin-streak-head,
.weekly-reminder-head,
.conversation-prompt div,
.date-mission div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.weekly-checkin span,
.weekly-checkin small,
.checkin-streak span,
.checkin-streak small,
.weekly-reminder span,
.weekly-reminder small,
.conversation-prompt span,
.conversation-prompt small,
.date-mission span,
.date-mission small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.weekly-checkin strong,
.checkin-streak strong,
.weekly-reminder strong,
.conversation-prompt strong,
.date-mission strong {
  min-width: 0;
  font-size: 0.9rem;
  line-height: 1.1;
  text-align: right;
  overflow-wrap: anywhere;
}

.checkin-streak-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.checkin-streak-grid div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px 9px;
  background: #fffdf7;
  border: 2px solid var(--line);
  border-radius: var(--radius);
}

.checkin-streak-grid strong {
  color: var(--blue);
  font-size: 1rem;
  line-height: 1.05;
  text-align: left;
}

.weekly-checkin p,
.conversation-prompt p,
.date-mission p {
  margin: 0;
  color: #3b322d;
  font-size: 0.88rem;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.weekly-reminder-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(132px, 0.72fr);
  gap: 8px;
  min-width: 0;
}

.reminder-toggle,
.reminder-day {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  min-height: 38px;
  padding: 7px 9px;
  background: #fffdf7;
  border: 2px solid var(--line);
  border-radius: var(--radius);
}

.reminder-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
  flex: 0 0 auto;
}

.reminder-toggle span,
.reminder-day span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.reminder-day select {
  min-width: 0;
  max-width: 118px;
  color: var(--ink);
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
}

.weekly-checkin button,
.conversation-prompt button,
.date-mission button {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
}

.pair-activity {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding-top: 10px;
  border-top: 2px solid var(--line);
}

.pair-activity-list {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.pair-activity-item {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 8px 0;
  border-top: 1px solid rgba(21, 16, 13, 0.18);
}

.pair-activity-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.pair-activity-item strong {
  min-width: 0;
  font-size: 0.82rem;
  line-height: 1.15;
  text-align: right;
  overflow-wrap: anywhere;
}

.pair-history {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding-top: 10px;
  border-top: 2px solid var(--line);
}

.pair-history-list {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.pair-history-item {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 8px 0;
  border-top: 1px solid rgba(21, 16, 13, 0.18);
}

.pair-history-item.has-action {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) auto;
}

.pair-history-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.pair-history-item strong {
  min-width: 0;
  font-size: 0.82rem;
  line-height: 1.15;
  text-align: right;
  overflow-wrap: anywhere;
}

.pair-history-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.pair-history-actions small {
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.pair-history-actions .ghost-button {
  min-height: 34px;
  padding: 6px 10px;
  box-shadow: none;
  white-space: nowrap;
}

.pair-history-actions .ghost-button:hover {
  transform: none;
  box-shadow: none;
}

.total-summary {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding-top: 10px;
  border-top: 2px solid var(--line);
}

.total-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.total-summary p,
.total-summary button {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.total-summary-head span,
.total-summary-grid span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.total-summary-head strong {
  color: var(--blue);
  font-size: 1rem;
  line-height: 1;
  text-align: right;
}

.total-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.total-summary-grid div {
  min-width: 0;
}

.total-summary-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.summary-evidence-list {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.group-conclusion .summary-evidence-list {
  grid-column: 1 / -1;
}

.summary-evidence-list span {
  min-width: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.total-summary-actions,
.group-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.total-summary-actions button,
.group-share-actions button {
  flex: 1 1 132px;
  min-height: 40px;
  padding: 8px 10px;
}

.pair-plan p {
  margin: 0;
  color: #3b322d;
  font-size: 0.92rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.pair-recommendation {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 9px 0;
  border-top: 1px solid rgba(21, 16, 13, 0.18);
  border-bottom: 1px solid rgba(21, 16, 13, 0.18);
}

.pair-recommendation span {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.14;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.pair-recommendation small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.pair-progress-map {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 9px 0;
  border-top: 1px solid rgba(21, 16, 13, 0.18);
  border-bottom: 1px solid rgba(21, 16, 13, 0.18);
}

.pair-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.pair-progress-head span,
.pair-progress-stats span,
.pair-progress-row small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.pair-progress-head strong {
  min-width: 0;
  color: var(--blue);
  font-size: 0.88rem;
  line-height: 1.1;
  text-align: right;
  overflow-wrap: anywhere;
}

.pair-progress-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
}

.pair-progress-stats span {
  min-width: 0;
  padding: 7px 8px;
  background: #fffdf7;
  border: 2px solid var(--line);
  border-radius: var(--radius);
}

.pair-progress-list {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.pair-progress-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(88px, auto);
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.pair-progress-row div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 8px;
  min-width: 0;
}

.pair-progress-row span {
  min-width: 0;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.pair-progress-row strong {
  min-width: 0;
  font-size: 0.72rem;
  line-height: 1.08;
  text-align: right;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.pair-progress-row[data-progress-status="waiting"] strong {
  color: var(--red);
}

.pair-progress-row[data-progress-status="complete"] strong {
  color: #168452;
}

.pair-progress-row i {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  height: 7px;
  overflow: hidden;
  background: rgba(21, 16, 13, 0.12);
  border: 1px solid rgba(21, 16, 13, 0.32);
  border-radius: 999px;
}

.pair-progress-row b {
  display: block;
  height: 100%;
  background: var(--blue);
}

.pair-progress-row[data-progress-status="waiting"] b {
  background: var(--red);
}

.pair-progress-row[data-progress-status="complete"] b {
  background: #1ca66a;
}

.pair-test-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.pair-test-chip {
  min-width: 0;
  padding: 8px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: #fff8ea;
}

.pair-test-chip.is-done {
  background: #d9f7e7;
}

.pair-test-chip strong,
.pair-test-chip em {
  display: block;
  overflow-wrap: anywhere;
}

.pair-test-chip strong {
  font-size: 0.78rem;
  line-height: 1.08;
}

.sync-card .ghost-button {
  width: 100%;
}

.sync-card .primary-button {
  width: 100%;
}

.privacy-actions {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.privacy-confirm {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
}

.privacy-confirm input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--blue);
}

.privacy-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.privacy-actions .ghost-button {
  flex: 1 1 150px;
  min-height: 42px;
}

.test-board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 8px;
}

.test-group {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.test-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 36px;
  padding: 0 2px;
}

.test-group-header span,
.test-group-header strong {
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.test-group-header strong {
  color: var(--blue);
  white-space: nowrap;
}

.test-group > p {
  margin: 0;
  max-width: 640px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.group-conclusion {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px;
  padding: 10px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.86);
}

.group-conclusion span,
.group-conclusion strong {
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.group-conclusion strong {
  color: var(--blue);
}

.group-conclusion p {
  grid-column: 1 / -1;
  margin: 0;
  color: #3b322d;
  font-size: 0.88rem;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.group-conclusion small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.group-share-actions {
  grid-column: 1 / -1;
}

.group-test-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.test-card {
  min-height: 252px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 16px;
  color: var(--ink);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 5px 5px 0 var(--line);
  text-align: left;
  transition: transform 170ms ease, box-shadow 170ms ease, background 170ms ease;
}

.test-card:hover {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--line);
}

.test-card[data-tone="coral"] {
  background: #ffddd8;
}

.test-card[data-tone="blue"] {
  background: #dce8ff;
}

.test-card[data-tone="mint"] {
  background: #d9f7e7;
}

.test-card[data-tone="acid"] {
  background: #f3ffb8;
}

.test-card[data-tone="rose"] {
  background: #ffe1eb;
}

.test-card strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  line-height: 0.96;
  overflow-wrap: anywhere;
}

.test-card p {
  margin: 12px 0 0;
  color: #352b26;
  font-size: 0.95rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.test-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
}

.test-methods em {
  max-width: 100%;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.72);
  color: #3b322d;
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.15;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.test-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.quiz-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.quiz-rail,
.quiz-panel,
.invite-panel,
.result-panel {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 248, 234, 0.88);
  box-shadow: 6px 6px 0 var(--line);
}

.quiz-rail {
  position: sticky;
  top: 18px;
  min-height: 520px;
  padding: 18px;
  overflow: hidden;
}

.quiz-rail h2 {
  font-size: clamp(2rem, 3vw, 3.1rem);
  overflow-wrap: anywhere;
}

.quiz-rail p:not(.eyebrow) {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.42;
}

.back-button {
  margin-bottom: 28px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  font-weight: 700;
}

.progress-wrap {
  margin-top: 28px;
}

.progress-track {
  width: 100%;
  height: 12px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--paper-2);
  overflow: hidden;
}

.progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--coral), var(--acid), var(--mint));
  transition: width 220ms ease;
}

.progress-wrap strong {
  display: block;
  margin-top: 8px;
  font-size: 0.88rem;
}

.quiz-panel {
  min-height: 560px;
  padding: clamp(18px, 4vw, 44px);
}

.name-field {
  display: grid;
  gap: 8px;
  max-width: 360px;
  margin-bottom: 36px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.name-field input,
.link-box input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fffdf7;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  outline: none;
}

.name-field input:focus,
.link-box input:focus {
  box-shadow: 0 0 0 4px rgba(35, 104, 255, 0.18);
}

.question-count {
  margin: 0 0 10px;
  color: var(--coral);
  font-weight: 800;
}

.question-block h3 {
  max-width: 780px;
  margin-bottom: 20px;
}

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

.options-grid.is-scale {
  grid-template-columns: 1fr;
}

.options-grid.is-rank {
  grid-template-columns: 1fr;
}

.options-grid.is-budget {
  grid-template-columns: 1fr;
}

.options-grid.is-order {
  grid-template-columns: 1fr;
}

.options-grid.is-swipe {
  grid-template-columns: 1fr;
}

.option-button {
  min-height: 108px;
  padding: 15px;
  color: var(--ink);
  background: #fffdf7;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 rgba(21, 16, 13, 0.9);
  text-align: left;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.option-button:hover,
.option-button.is-selected {
  transform: translate(3px, 3px);
  background: var(--acid);
  box-shadow: 1px 1px 0 rgba(21, 16, 13, 0.9);
}

.option-button span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.option-button strong {
  display: block;
  margin-top: 8px;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.scale-question {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf7;
  box-shadow: 4px 4px 0 rgba(21, 16, 13, 0.9);
}

.scale-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}

.scale-labels span {
  max-width: 48%;
  overflow-wrap: anywhere;
}

.scale-input {
  width: 100%;
  accent-color: var(--blue);
}

.scale-value {
  display: block;
  min-height: 30px;
  font-size: 1.08rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.scale-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.scale-choice {
  min-width: 0;
  min-height: 54px;
  padding: 8px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.1;
  overflow-wrap: anywhere;
  text-align: left;
}

.scale-choice.is-selected {
  background: var(--acid);
}

.rank-question {
  display: grid;
  gap: 14px;
}

.rank-slots,
.rank-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.rank-options {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rank-slot,
.rank-card {
  min-width: 0;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  overflow-wrap: anywhere;
}

.rank-slot {
  min-height: 78px;
  padding: 10px;
  background: var(--paper-2);
}

.rank-slot.is-filled {
  background: #fffdf7;
  box-shadow: 3px 3px 0 rgba(21, 16, 13, 0.9);
}

.rank-card {
  min-height: 104px;
  padding: 12px;
  background: #fffdf7;
  text-align: left;
  box-shadow: 4px 4px 0 rgba(21, 16, 13, 0.9);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.rank-card:hover,
.rank-card.is-selected {
  transform: translate(3px, 3px);
  background: var(--acid);
  box-shadow: 1px 1px 0 rgba(21, 16, 13, 0.9);
}

.rank-slot span,
.rank-card span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.rank-slot strong,
.rank-card strong {
  display: block;
  margin-top: 8px;
  font-size: 0.86rem;
  line-height: 1.15;
}

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

.budget-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--acid);
  font-weight: 900;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.budget-options {
  display: grid;
  gap: 10px;
}

.budget-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 12px;
  min-width: 0;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf7;
  box-shadow: 4px 4px 0 rgba(21, 16, 13, 0.9);
}

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

.budget-copy span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1;
}

.budget-copy strong {
  display: block;
  margin-top: 7px;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.budget-controls {
  display: grid;
  grid-template-columns: 34px minmax(56px, auto) 34px;
  align-items: center;
  gap: 6px;
}

.budget-step {
  width: 34px;
  height: 34px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 900;
}

.budget-controls output {
  min-width: 56px;
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

.budget-track {
  grid-column: 1 / -1;
  height: 8px;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--paper-2);
}

.budget-track i {
  display: block;
  height: 100%;
  background: var(--blue);
}

.order-question {
  display: grid;
}

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

.order-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf7;
  box-shadow: 4px 4px 0 rgba(21, 16, 13, 0.9);
}

.order-item[draggable="true"] {
  cursor: grab;
}

.order-copy {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.order-copy span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--acid);
  font-size: 0.82rem;
  font-weight: 900;
}

.order-copy strong {
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.order-controls {
  display: flex;
  gap: 6px;
}

.order-move {
  width: 34px;
  height: 34px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--ink);
  font-weight: 900;
}

.order-move:disabled {
  opacity: 0.35;
}

.swipe-question {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.swipe-progress {
  display: flex;
  min-width: 0;
}

.swipe-progress span {
  display: grid;
  place-items: center;
  min-width: 48px;
  height: 34px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--blue);
  color: #fffdf7;
  font-size: 0.82rem;
  font-weight: 900;
}

.swipe-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 132px;
  min-width: 0;
  padding: 16px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf7;
  box-shadow: 5px 5px 0 rgba(21, 16, 13, 0.9);
}

.swipe-card span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--rose);
  font-size: 0.86rem;
  font-weight: 900;
}

.swipe-card strong {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.swipe-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.swipe-action {
  min-height: 46px;
  padding: 10px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  color: var(--ink);
  box-shadow: 3px 3px 0 rgba(21, 16, 13, 0.9);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.swipe-action.is-selected,
.swipe-action:hover {
  transform: translate(2px, 2px);
  background: var(--acid);
  box-shadow: 1px 1px 0 rgba(21, 16, 13, 0.9);
}

.quiz-actions,
.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.share-actions button {
  flex: 1 1 180px;
}

.primary-button,
.ghost-button {
  min-height: 46px;
  padding: 10px 16px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--line);
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.primary-button {
  color: var(--paper);
  background: var(--ink);
}

.ghost-button {
  color: var(--ink);
  background: #fffdf7;
}

.primary-button:hover,
.ghost-button:hover {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--line);
}

.primary-button:disabled,
.ghost-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
  box-shadow: 4px 4px 0 var(--line);
}

.invite-panel {
  max-width: 780px;
  margin: 72px auto;
  padding: clamp(22px, 5vw, 52px);
}

.invite-panel p:not(.eyebrow),
.result-hero p {
  max-width: 700px;
  color: var(--muted);
  line-height: 1.5;
}

.privacy-note {
  max-width: 700px;
  margin: 14px 0 0;
  padding: 10px 12px;
  color: #3b322d;
  background: #fffdf7;
  border: 2px solid rgba(21, 16, 13, 0.22);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
}

.link-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 24px;
}

.status-line {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--blue);
  font-weight: 700;
}

.result-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 20px;
  align-items: center;
  min-height: 330px;
  padding: clamp(18px, 5vw, 52px);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff8ea 0%, #f9e2df 42%, #d9f7e7 100%);
  box-shadow: 8px 8px 0 var(--line);
}

.score-orbit {
  display: grid;
  grid-template-rows: 1fr auto auto 1fr;
  width: min(100%, 210px);
  aspect-ratio: 1;
  place-items: center;
  justify-self: end;
  border: 2px solid var(--line);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #fffdf7 0 42%, transparent 43%),
    conic-gradient(var(--coral), var(--acid), var(--mint), var(--blue), var(--coral));
  box-shadow: 7px 7px 0 var(--line);
}

.score-orbit strong {
  grid-row: 2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  line-height: 1;
}

.score-orbit span {
  grid-row: 3;
  max-width: 140px;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.result-panel {
  padding: 18px;
}

.metrics-panel {
  grid-column: span 12;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  background: var(--ink);
  color: var(--paper);
}

.metric {
  min-height: 110px;
  padding: 14px;
  border: 2px solid rgba(255, 248, 234, 0.28);
  border-radius: var(--radius);
}

.metric span {
  display: block;
  color: rgba(255, 248, 234, 0.68);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.45rem;
  line-height: 1;
}

.reveal-next-panel {
  grid-column: span 12;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.35fr) auto;
  gap: 14px;
  align-items: center;
}

.reveal-next-copy {
  min-width: 0;
}

.reveal-next-copy span {
  display: block;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.reveal-next-copy h3 {
  margin: 6px 0 0;
  font-size: 1.35rem;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.reveal-next-copy p {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.reveal-next-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.reveal-next-steps small {
  min-width: 0;
  padding-top: 8px;
  border-top: 2px solid var(--line);
  color: #3b322d;
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.18;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.reveal-next-panel .ghost-button {
  justify-self: end;
  white-space: nowrap;
}

.score-why-panel {
  grid-column: span 12;
}

.match-panel,
.friction-panel {
  grid-column: span 6;
}

.score-why-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.score-why-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-height: 88px;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf7;
}

.score-why-item b {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--ink);
  background: #dbe7ff;
  border: 2px solid var(--line);
  border-radius: 50%;
  font-size: 0.86rem;
  line-height: 1;
}

.score-why-item span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.chart-panel {
  grid-column: span 7;
}

.prompts-panel,
.share-panel {
  grid-column: span 5;
}

.result-panel h3 {
  margin-bottom: 16px;
}

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

.insight {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-height: 74px;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf7;
}

.insight b {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--ink);
  background: var(--acid);
  border: 2px solid var(--line);
  border-radius: 50%;
}

.insight-empty b {
  background: var(--mint);
}

.insight strong,
.insight small {
  display: block;
}

.insight small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.35;
}

.chart-row {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) 44px;
  gap: 10px;
  align-items: center;
  min-height: 38px;
  margin-bottom: 10px;
}

.chart-row span {
  font-size: 0.85rem;
  font-weight: 800;
}

.pair-bars {
  display: grid;
  gap: 4px;
}

.pair-bar {
  height: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #efe5d7;
  overflow: hidden;
}

.pair-bar i {
  display: block;
  width: 50%;
  height: 100%;
  background: var(--coral);
}

.pair-bar:nth-child(2) i {
  background: var(--blue);
}

.chart-row em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: right;
}

.prompts-panel ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}

.prompts-panel li {
  padding-left: 4px;
  line-height: 1.38;
}

.premium-panel {
  grid-column: span 7;
  display: grid;
  gap: 12px;
  align-content: start;
  background: #e7ffd0;
}

.premium-panel.is-unlocked,
.total-premium-preview.is-unlocked {
  background: #dce9ff;
}

.premium-panel span,
.total-premium-preview span {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 5px 8px;
  color: var(--paper);
  background: var(--ink);
  border: 2px solid var(--line);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.premium-panel h3 {
  margin: 0;
}

.premium-panel p,
.total-premium-preview p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.premium-panel ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.premium-panel li {
  position: relative;
  min-height: 34px;
  padding: 8px 10px 8px 34px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.78);
  font-weight: 800;
  line-height: 1.22;
}

.premium-panel li::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 12px;
  height: 12px;
  background: var(--acid);
  border: 2px solid var(--line);
  border-radius: 50%;
  transform: translateY(-50%);
}

.premium-panel .primary-button,
.total-premium-preview .ghost-button {
  width: fit-content;
  max-width: 100%;
}

.premium-panel button:disabled,
.total-premium-preview button:disabled {
  cursor: default;
  opacity: 0.72;
  transform: none;
}

.premium-report {
  display: grid;
  gap: 12px;
  padding-top: 4px;
}

.premium-report.is-hidden {
  display: none;
}

.premium-report-header {
  display: grid;
  gap: 4px;
  padding-top: 10px;
  border-top: 2px solid var(--line);
}

.premium-report-header strong {
  font-size: 1.04rem;
  line-height: 1.1;
}

.premium-report-header small {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.25;
}

.premium-report-grid {
  display: grid;
  gap: 10px;
}

.premium-report-snapshot {
  display: grid;
  grid-template-columns: minmax(86px, 0.65fr) repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
  padding: 10px 0;
  border-block: 2px solid rgba(30, 25, 22, 0.22);
}

.premium-report-score,
.premium-report-focus {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.premium-report-score {
  align-content: center;
}

.premium-report-score span,
.premium-report-focus span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.premium-report-score strong {
  font-family: var(--display);
  font-size: 3rem;
  line-height: 0.92;
}

.premium-report-focus strong {
  line-height: 1.05;
}

.premium-report-focus p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.28;
}

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

.premium-report-actions .ghost-button {
  width: fit-content;
  max-width: 100%;
}

.premium-report-row {
  display: grid;
  gap: 6px;
  padding: 10px 0 0;
  border-top: 2px solid rgba(30, 25, 22, 0.18);
}

.premium-report-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.premium-report-row strong {
  line-height: 1.16;
}

.premium-report-row p {
  margin: 0;
}

.premium-report-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.premium-report-kicker b {
  padding: 4px 7px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.8);
  font-size: 0.72rem;
  line-height: 1;
  text-transform: uppercase;
}

@media (max-width: 620px) {
  .premium-report-snapshot {
    grid-template-columns: 1fr;
  }

  .premium-report-score strong {
    font-size: 2.4rem;
  }
}

.total-premium-preview {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: #e7ffd0;
}

.share-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  color: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 93, 82, 0.95), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(216, 255, 62, 0.86), transparent 24%),
    radial-gradient(circle at 72% 88%, rgba(31, 191, 143, 0.9), transparent 28%),
    #15100d;
}

.share-card span,
.share-card small {
  color: rgba(255, 248, 234, 0.82);
  font-weight: 800;
  text-transform: uppercase;
}

.share-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 7vw, 4.2rem);
  line-height: 0.88;
  overflow-wrap: anywhere;
}

.share-card em {
  font-style: normal;
  font-size: 1.7rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10;
  max-width: min(360px, calc(100vw - 36px));
  padding: 12px 14px;
  color: var(--paper);
  background: var(--ink);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 5px 5px 0 rgba(21, 16, 13, 0.35);
  font-weight: 800;
}

@media (max-width: 960px) {
  .home-grid,
  .sync-panel,
  .quiz-layout,
  .result-hero {
    grid-template-columns: 1fr;
  }

  .home-grid {
    min-height: 0;
  }

  .poster-frame {
    width: min(100%, 420px);
    max-width: 420px;
    margin-right: 0;
    transform: none;
  }

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

  .pair-test-strip {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .quiz-rail {
    position: static;
    min-height: auto;
  }

  .budget-summary,
  .budget-row {
    grid-template-columns: 1fr;
  }

  .budget-summary {
    display: grid;
  }

  .budget-controls {
    justify-self: start;
  }

  .order-item,
  .order-copy {
    grid-template-columns: 1fr;
  }

  .order-controls {
    justify-self: start;
  }

  .swipe-card {
    grid-template-columns: 1fr;
  }

  .score-orbit {
    justify-self: start;
  }

  .reveal-next-panel {
    grid-template-columns: 1fr;
  }

  .reveal-next-panel .ghost-button {
    justify-self: start;
    white-space: normal;
  }

  .result-panel:nth-child(n) {
    grid-column: span 12;
  }

  .score-why-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .app-shell {
    width: min(100% - 18px, 1180px);
    padding-top: 10px;
  }

  .topbar {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand strong {
    font-size: 0.98rem;
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
    max-width: none;
    justify-content: stretch;
    align-items: center;
  }

  .text-button {
    width: 100%;
    min-width: 0;
    padding-inline: 10px;
  }

  h1 {
    font-size: clamp(2.12rem, 9.8vw, 3.1rem);
  }

  .lede {
    font-size: 1rem;
  }

	  .test-board,
	  .sync-grid,
	  .analytics-grid,
  .retention-metrics-grid,
  .pair-progress-stats,
	  .pair-test-strip,
	  .total-summary-grid,
  .options-grid,
  .scale-options,
  .rank-slots,
  .rank-options,
  .metrics-panel,
	  .link-box {
	    grid-template-columns: 1fr;
	  }

  .restore-pair-row {
    grid-template-columns: 1fr;
  }

  .return-guide {
    grid-template-columns: 1fr;
  }

  .return-guide .ghost-button {
    width: 100%;
  }

  .restore-pair-row .ghost-button {
    width: 100%;
    white-space: normal;
  }

  .test-group > p {
    min-height: 0;
  }

		  .pair-plan-head,
		  .pair-last,
  .pair-activity-head,
  .pair-progress-head,
		  .analytics-head,
	  .continue-link-head,
	  .pending-invites-head,
  .pair-history-head,
  .weekly-checkin div,
  .checkin-streak-head,
  .weekly-reminder-head,
  .conversation-prompt div,
  .date-mission div,
  .total-summary-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

		  .pair-plan-head strong,
		  .pair-last strong,
  .pair-activity-head strong,
  .pair-progress-head strong,
		  .analytics-head strong,
	  .continue-link-card strong,
	  .pending-invites-head strong,
  .pair-history-head strong,
  .weekly-checkin strong,
  .checkin-streak strong,
  .weekly-reminder strong,
  .conversation-prompt strong,
  .date-mission strong,
	  .total-summary-head strong {
	    text-align: left;
	  }

  .pair-progress-row {
    grid-template-columns: 1fr;
  }

  .pair-progress-row strong {
    text-align: left;
  }

  .pair-activity-item {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .pair-activity-item strong {
    text-align: left;
  }

	  .weekly-reminder-controls {
    grid-template-columns: 1fr;
  }

  .checkin-streak-grid {
    grid-template-columns: 1fr;
  }

  .pair-history-item,
  .pair-history-item.has-action {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .pair-history-actions {
    justify-content: stretch;
  }

  .pair-history-actions .ghost-button {
    width: 100%;
    white-space: normal;
  }

  .pending-invite-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .pending-invite-actions {
    justify-content: stretch;
  }

  .pending-invite-actions .ghost-button {
    width: 100%;
  }

  .pending-waiting-steps {
    grid-template-columns: 1fr;
  }

  .reveal-next-steps {
    grid-template-columns: 1fr;
  }

  .pair-history-item strong {
    text-align: left;
  }

  .test-card {
    min-height: 190px;
  }

  .quiz-panel,
  .quiz-rail,
  .result-panel,
  .invite-panel {
    box-shadow: 4px 4px 0 var(--line);
  }

  .option-button {
    min-height: 92px;
  }

  .chart-row {
    grid-template-columns: 94px minmax(0, 1fr) 38px;
  }

  .share-card strong {
    font-size: clamp(1.65rem, 9vw, 2.35rem);
    line-height: 0.95;
  }
}

.consent-gate,
.sensitive-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 18px;
  overflow-y: auto;
  background: rgba(21, 16, 13, 0.72);
  backdrop-filter: blur(10px);
}

.consent-card {
  width: min(560px, 100%);
  padding: clamp(24px, 5vw, 42px);
  border: 3px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--line);
}

.consent-card h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 8vw, 3.2rem);
  line-height: 0.96;
}

.consent-card > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.55;
}

.consent-mark {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  place-items: center;
  color: var(--paper);
  background: var(--ink);
  border-radius: 50%;
  font-weight: 800;
}

.consent-check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  margin-top: 14px;
  padding: 14px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fffdf7;
  line-height: 1.4;
}

.consent-check input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--blue);
}

.consent-check a {
  color: var(--blue);
  font-weight: 700;
}

.consent-note {
  margin: 14px 0 0;
  font-size: 0.82rem;
}

.consent-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.consent-actions a {
  text-decoration: none;
}

.sensitive-exit {
  margin-top: 18px;
  color: #a22a2a;
}

.safety-note {
  max-width: 720px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 2px solid var(--line);
  border-left: 8px solid var(--coral);
  border-radius: 8px;
  background: #fffdf7;
  font-size: 0.9rem;
  line-height: 1.45;
}

.product-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 42px;
  padding: 22px 0 4px;
  border-top: 2px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.product-footer p {
  margin: 0;
}

.product-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.product-footer a {
  color: var(--ink);
  font-weight: 750;
  text-underline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

/* draw4love 2026 visual system
   Pairanoid keeps its existing interaction contracts and adopts the same
   zine-inspired type, color, geometry, and tactile controls as the main site. */
@font-face {
  font-family: "Onest Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/draw4love/fonts/onest-cyrillic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Onest Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/draw4love/fonts/onest-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --ink: #18131d;
  --paper: #fff8ed;
  --paper-2: #fffdf7;
  --surface: #fffdf7;
  --line: #18131d;
  --muted: #675f69;
  --coral: #ff5a19;
  --orange: #ff5a19;
  --pink: #ff3f7f;
  --red: #cf2f62;
  --blue: #244dff;
  --mint: #50d3ad;
  --acid: #dcff3f;
  --lime: #dcff3f;
  --rose: #ff8db6;
  --yellow: #ffc83d;
  --shadow: 0 24px 60px rgba(24, 19, 29, 0.16);
  --hard-shadow: 7px 7px 0 var(--ink);
  --radius: 18px;
  --display: "Onest Variable", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
}

html {
  min-height: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  min-width: 320px;
  min-height: 100dvh;
  overflow-x: clip;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 16%, rgba(255, 63, 127, 0.13), transparent 25rem),
    radial-gradient(circle at 88% 12%, rgba(220, 255, 63, 0.16), transparent 24rem),
    radial-gradient(circle at 72% 84%, rgba(36, 77, 255, 0.1), transparent 28rem),
    var(--paper);
  background-size: auto;
  font-family: var(--display);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  opacity: 0.12;
  background-image: radial-gradient(currentColor 0.7px, transparent 0.85px);
  background-size: 8px 8px;
  mask-image: linear-gradient(to bottom, #000 0, transparent 72%);
}

.grain {
  opacity: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1200;
  padding: 11px 16px;
  color: var(--paper);
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--pink);
  text-decoration: none;
  font-weight: 850;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 4px solid var(--blue);
  outline-offset: 4px;
}

h1,
h2,
h3,
.test-card strong,
.score-orbit strong,
.metric strong,
.share-card strong {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -0.055em;
}

.app-shell {
  width: min(1200px, calc(100% - 40px));
  padding: 18px 0 48px;
}

.topbar {
  position: relative;
  z-index: 20;
  min-height: 64px;
  margin-bottom: 32px;
  padding: 9px 12px 9px 10px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: 5px 5px 0 var(--ink);
  backdrop-filter: blur(16px);
}

.brand {
  gap: 11px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  color: var(--ink);
  background: linear-gradient(145deg, var(--rose), var(--pink));
  border: 2px solid var(--ink);
  border-radius: 13px;
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 0.98rem;
  font-weight: 950;
  transform: rotate(-3deg);
}

.brand strong {
  font-size: 1.24rem;
  font-weight: 950;
  letter-spacing: -0.055em;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.topbar-actions {
  flex-wrap: nowrap;
  gap: 9px;
}

.lang-switch {
  min-height: 44px;
  padding: 3px;
  background: var(--surface);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

.lang-option,
.text-button {
  min-height: 34px;
  font-weight: 900;
}

.lang-option.is-active {
  color: var(--paper);
  background: var(--ink);
}

.text-button {
  min-width: 78px;
  min-height: 44px;
  padding: 8px 14px;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
}

.text-button[data-action="demo"] {
  background: var(--yellow);
}

.text-button:hover {
  background: var(--lime);
}

.home-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.75fr);
  gap: clamp(42px, 7vw, 96px);
  align-items: center;
  min-height: 690px;
  padding: 48px 0 76px;
}

.home-copy {
  max-width: 700px;
}

.home-copy > .eyebrow {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 22px;
  padding: 7px 11px;
  color: var(--ink);
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 7px;
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-transform: uppercase;
  transform: rotate(-1deg);
}

h1 {
  max-width: 760px;
  font-size: clamp(4rem, 7.4vw, 6.8rem);
  line-height: 0.84;
  letter-spacing: -0.075em;
}

h1 span {
  white-space: normal;
}

h2 {
  line-height: 0.9;
}

h3 {
  line-height: 1;
}

.lede {
  max-width: 620px;
  margin-top: 26px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  font-weight: 550;
  line-height: 1.45;
}

.method-strip {
  gap: 9px;
  margin-top: 28px;
}

.method-strip span {
  min-height: 36px;
  padding: 7px 12px;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 0.79rem;
  font-weight: 850;
}

.poster-frame {
  width: min(100%, 430px);
  margin: 0 14px 0 0;
  padding: 14px;
  overflow: visible;
  background: var(--pink) url("/assets/draw4love/zine-hero.webp") center / cover;
  border: 3px solid var(--ink);
  border-radius: 25px;
  box-shadow: 12px 12px 0 var(--ink);
  transform: rotate(2.2deg);
}

.poster-frame::before {
  top: -15px;
  left: 46%;
  width: 88px;
  height: 30px;
  background: var(--lime);
  border: 2px solid var(--ink);
  border-radius: 5px;
  transform: translateX(-50%) rotate(-3deg);
}

.poster-frame::after {
  position: absolute;
  right: 12px;
  bottom: 32px;
  width: 78px;
  height: 78px;
  background: var(--orange, #ff5a19);
  border: 3px solid var(--ink);
  border-radius: 50%;
  box-shadow: 4px 4px 0 var(--ink);
  content: "";
}

.poster-frame img {
  position: relative;
  z-index: 1;
  border: 3px solid var(--ink);
  border-radius: 15px;
}

.test-board {
  gap: 46px;
  margin-top: 12px;
}

.test-group {
  gap: 15px;
}

.test-group-header {
  min-height: 42px;
  padding: 0 3px 10px;
  border-bottom: 3px solid var(--ink);
}

.test-group-header span,
.test-group-header strong {
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0.045em;
}

.test-group-header strong {
  color: var(--blue);
}

.test-group > p {
  max-width: 720px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}

.group-test-list {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}

.test-card {
  --card-rotate: 0deg;
  min-height: 270px;
  gap: 24px;
  padding: 19px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  box-shadow: 7px 7px 0 var(--ink);
  transform: rotate(var(--card-rotate));
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 180ms ease;
}

.test-card:nth-child(3n + 1) {
  --card-rotate: -0.35deg;
}

.test-card:nth-child(3n + 2) {
  --card-rotate: 0.28deg;
}

.test-card:hover {
  transform: translateY(-4px) rotate(var(--card-rotate));
  box-shadow: 9px 10px 0 var(--ink);
}

.test-card:active {
  transform: translate(3px, 3px) rotate(var(--card-rotate)) scale(0.99);
  box-shadow: 3px 3px 0 var(--ink);
}

.test-card[data-tone="coral"] {
  background: #ff8655;
}

.test-card[data-tone="blue"] {
  background: #a8b8ff;
}

.test-card[data-tone="mint"] {
  background: #75ddb9;
}

.test-card[data-tone="acid"] {
  background: var(--lime);
}

.test-card[data-tone="rose"] {
  background: var(--rose);
}

.test-card strong {
  font-size: 1.66rem;
  line-height: 0.96;
}

.test-card p {
  color: var(--ink);
  font-weight: 560;
}

.test-methods em {
  padding: 4px 8px;
  color: var(--ink);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  border: 1.5px solid var(--ink);
  font-size: 0.64rem;
  font-weight: 900;
}

.test-meta {
  padding-top: 12px;
  border-top: 2px solid color-mix(in srgb, var(--ink) 36%, transparent);
  font-weight: 900;
}

.sync-panel {
  gap: 22px;
  margin-top: 56px;
  padding: 22px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 24px;
  box-shadow: 7px 7px 0 var(--ink);
}

.sync-panel.is-fresh {
  margin-top: 44px;
  padding: 20px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: color-mix(in srgb, var(--yellow) 58%, var(--paper));
  box-shadow: 5px 5px 0 var(--ink);
}

.sync-panel.is-fresh .sync-card,
.sync-panel.is-fresh #continueLinkCard {
  background: transparent;
}

.sync-panel h2 {
  letter-spacing: -0.055em;
}

.sync-panel p:not(.eyebrow) {
  color: var(--ink);
}

.sync-card,
.sync-stat,
.analytics-panel,
.continue-link-card,
.return-guide,
.pair-plan,
.pending-invites,
.weekly-checkin,
.checkin-streak,
.weekly-reminder,
.conversation-prompt,
.date-mission,
.pair-activity,
.pair-history,
.total-summary,
.total-premium-preview {
  border-color: var(--ink);
  border-radius: 14px;
}

.sync-stat,
.continue-link-card,
.return-guide,
.analytics-panel,
.pair-plan,
.pair-activity,
.pair-history,
.total-summary {
  background: var(--surface);
}

.sync-stat,
.analytics-panel,
.continue-link-card,
.return-guide,
.pair-plan,
.pending-invites,
.weekly-checkin,
.checkin-streak,
.weekly-reminder,
.conversation-prompt,
.date-mission,
.pair-activity,
.pair-history,
.total-summary,
.total-premium-preview {
  box-shadow: 3px 3px 0 var(--ink);
}

.analytics-head strong,
.continue-link-card strong,
.group-conclusion strong,
.status-line,
.question-count {
  color: var(--blue);
}

.restore-pair-row input,
.name-field input,
.link-box input,
.reminder-day select {
  min-height: 50px;
  color: var(--ink);
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 14px;
}

.restore-pair-row input:focus,
.name-field input:focus,
.link-box input:focus,
.reminder-day select:focus {
  outline: 4px solid var(--blue);
  outline-offset: 2px;
  box-shadow: none;
}

.quiz-layout {
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 24px;
}

.quiz-rail,
.quiz-panel,
.invite-panel,
.result-panel {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 24px;
  box-shadow: 7px 7px 0 var(--ink);
}

.quiz-rail {
  top: 20px;
  padding: 22px;
  background:
    radial-gradient(circle at 90% 8%, var(--yellow) 0 11%, transparent 11.5%),
    var(--lime);
}

.quiz-rail h2 {
  font-size: clamp(2.2rem, 3.2vw, 3.4rem);
  letter-spacing: -0.065em;
}

.back-button {
  min-height: 44px;
  padding: 9px 13px;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 900;
}

.back-button:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.progress-track {
  height: 14px;
  background: var(--surface);
  border: 2px solid var(--ink);
}

.progress-track span {
  background: var(--pink);
}

.quiz-panel {
  min-height: 560px;
  padding: clamp(22px, 4vw, 48px);
}

.question-block h3 {
  margin-bottom: 24px;
  font-size: clamp(1.65rem, 3vw, 2.7rem);
  line-height: 1.02;
}

.option-button,
.scale-choice,
.rank-slot,
.rank-card,
.budget-row,
.order-item,
.swipe-card,
.swipe-action {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--ink);
  border-radius: 16px;
  box-shadow: 5px 5px 0 var(--ink);
}

.option-button {
  min-height: 116px;
  padding: 18px;
}

.option-button:hover,
.option-button.is-selected,
.scale-choice:hover,
.scale-choice.is-selected,
.rank-card:hover,
.rank-card.is-selected,
.swipe-action:hover,
.swipe-action.is-selected {
  color: var(--ink);
  background: var(--lime);
  border-color: var(--ink);
}

.option-button:active,
.scale-choice:active,
.rank-card:active,
.swipe-action:active {
  transform: translate(3px, 3px) scale(0.99);
  box-shadow: 2px 2px 0 var(--ink);
}

.scale-input {
  accent-color: var(--pink);
}

.scale-value,
.budget-summary {
  color: var(--ink);
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 16px;
  box-shadow: 4px 4px 0 var(--ink);
}

.budget-track,
.pair-bar {
  background: color-mix(in srgb, var(--paper) 74%, var(--ink));
  border-color: var(--ink);
}

.budget-track i,
.pair-bar i {
  background: var(--pink);
}

.pair-bar:nth-child(2) i {
  background: var(--blue);
}

.order-move,
.budget-step {
  min-width: 44px;
  min-height: 44px;
  color: var(--ink);
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 12px;
}

.budget-controls {
  grid-template-columns: 44px minmax(56px, auto) 44px;
}

.budget-step {
  width: 44px;
  height: 44px;
}

.primary-button,
.ghost-button {
  min-height: 50px;
  padding: 11px 17px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  font-weight: 900;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 170ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 170ms ease, background 170ms ease;
}

.primary-button {
  color: var(--paper);
  background: var(--ink);
  box-shadow: 5px 5px 0 var(--pink);
}

.ghost-button {
  color: var(--ink);
  background: var(--surface);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--ink);
}

.primary-button:hover {
  color: var(--ink);
  background: var(--lime);
}

.primary-button:active,
.ghost-button:active {
  transform: translate(4px, 4px) scale(0.99);
  box-shadow: 1px 1px 0 var(--ink);
}

.primary-button:disabled,
.ghost-button:disabled {
  box-shadow: 4px 4px 0 var(--ink);
}

.invite-panel {
  margin-block: 72px;
  background:
    radial-gradient(circle at 92% 12%, var(--lime) 0 8%, transparent 8.5%),
    var(--yellow);
}

.privacy-note {
  padding: 12px 14px;
  color: var(--ink);
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 14px;
}

.result-hero {
  min-height: 360px;
  padding: clamp(24px, 5vw, 58px);
  background:
    radial-gradient(circle at 12% 82%, var(--yellow) 0 10%, transparent 10.5%),
    radial-gradient(circle at 78% 15%, rgba(255, 255, 255, 0.42) 0 8%, transparent 8.5%),
    var(--rose);
  border: 3px solid var(--ink);
  border-radius: 26px;
  box-shadow: 10px 10px 0 var(--ink);
}

.result-hero h2 {
  max-width: 760px;
  font-size: clamp(2.7rem, 6vw, 5.6rem);
  letter-spacing: -0.07em;
}

.result-hero p {
  color: var(--ink);
  font-weight: 600;
}

.score-orbit {
  width: min(100%, 220px);
  background: var(--lime);
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
}

.score-orbit strong {
  font-size: clamp(3rem, 7vw, 4.9rem);
}

.score-orbit span {
  color: var(--ink);
  font-weight: 900;
}

.result-grid {
  gap: 18px;
  margin-top: 24px;
}

.result-panel {
  padding: 22px;
}

.metrics-panel {
  color: var(--paper);
  background: var(--ink);
}

.metric {
  border-color: rgba(255, 248, 237, 0.55);
  border-radius: 14px;
}

.metric span {
  color: rgba(255, 248, 237, 0.78);
}

.metric strong {
  font-size: 2.65rem;
}

.reveal-next-panel {
  background: var(--yellow);
}

.score-why-panel {
  background: var(--surface);
}

.match-panel {
  background: var(--mint);
}

.friction-panel {
  background: var(--rose);
}

.chart-panel {
  background: var(--yellow);
}

.prompts-panel {
  background: var(--surface);
}

.premium-panel,
.total-premium-preview {
  background: var(--lime);
}

.share-panel {
  background: #a8b8ff;
}

.score-why-item,
.insight,
.premium-panel li {
  color: var(--ink);
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  border-color: var(--ink);
  border-radius: 14px;
}

.score-why-item b,
.insight b {
  color: var(--ink);
  background: var(--lime);
  border-color: var(--ink);
}

.share-card {
  background:
    radial-gradient(circle at 86% 18%, var(--lime) 0 14%, transparent 14.5%),
    radial-gradient(circle at 15% 82%, var(--pink) 0 19%, transparent 19.5%),
    var(--ink);
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 7px 7px 0 var(--pink);
}

.share-card span,
.share-card small {
  color: rgba(255, 248, 237, 0.86);
}

.share-card strong {
  font-size: clamp(2.35rem, 7vw, 4.4rem);
  letter-spacing: -0.065em;
}

.premium-panel span,
.total-premium-preview span {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.consent-gate,
.sensitive-gate {
  padding: 20px;
  background: rgba(24, 19, 29, 0.82);
  backdrop-filter: blur(12px);
}

.consent-card {
  width: min(590px, 100%);
  padding: clamp(25px, 5vw, 44px);
  background: var(--surface);
  border: 3px solid var(--ink);
  border-radius: 24px;
  box-shadow: 10px 10px 0 var(--pink);
}

.consent-card h2 {
  font-size: clamp(2.25rem, 8vw, 3.65rem);
  letter-spacing: -0.065em;
}

.consent-mark {
  width: 56px;
  height: 56px;
  color: var(--ink);
  background: var(--rose);
  border: 2px solid var(--ink);
  border-radius: 15px;
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-4deg);
}

.consent-check {
  grid-template-columns: 24px minmax(0, 1fr);
  min-height: 56px;
  padding: 15px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 14px;
}

.consent-check input {
  width: 22px;
  height: 22px;
  accent-color: var(--pink);
}

.consent-check a {
  color: var(--blue);
  font-weight: 850;
}

.safety-note {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--ink);
  border-left-color: var(--pink);
  border-radius: 14px;
}

.toast {
  padding: 14px 16px;
  color: var(--paper);
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 14px;
  box-shadow: 5px 5px 0 var(--pink);
}

.product-footer {
  margin-top: 58px;
  padding: 24px;
  color: rgba(255, 248, 237, 0.72);
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 18px;
  box-shadow: 6px 6px 0 var(--pink);
}

.product-footer strong,
.product-footer a {
  color: var(--paper);
}

.product-footer a:hover {
  color: var(--lime);
}

@media (max-width: 960px) {
  .home-grid,
  .sync-panel,
  .quiz-layout,
  .result-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-grid {
    gap: 48px;
    padding: 36px 0 70px;
  }

  .poster-frame {
    justify-self: center;
    margin-right: 0;
    transform: rotate(1deg);
  }

  .quiz-rail {
    background: var(--lime);
  }
}

@media (max-width: 640px) {
  .app-shell {
    width: min(100% - 24px, 1200px);
    padding-top: 12px;
  }

  .topbar {
    gap: 13px;
    margin-bottom: 12px;
    padding: 10px;
    border-radius: 16px;
    box-shadow: 4px 4px 0 var(--ink);
  }

  .brand strong {
    font-size: 1.1rem;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .topbar-actions {
    grid-template-columns: minmax(108px, auto) repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .lang-switch,
  .text-button {
    min-height: 44px;
  }

  .text-button {
    padding-inline: 8px;
    font-size: 0.76rem;
  }

  .lang-option {
    min-width: 42px;
    padding-inline: 7px;
  }

  .home-grid {
    gap: 42px;
    padding: 34px 0 62px;
  }

  .home-copy > .eyebrow {
    margin-bottom: 18px;
    font-size: 0.66rem;
  }

  h1 {
    font-size: clamp(2.85rem, 14vw, 4rem);
    line-height: 0.88;
    letter-spacing: -0.07em;
  }

  .lede {
    margin-top: 20px;
    font-size: 1rem;
  }

  .method-strip {
    margin-top: 22px;
  }

  .method-strip span {
    min-height: 34px;
    padding: 6px 9px;
    font-size: 0.72rem;
  }

  .poster-frame {
    width: calc(100% - 8px);
    padding: 10px;
    border-radius: 20px;
    box-shadow: 8px 8px 0 var(--ink);
    transform: rotate(0.7deg);
  }

  .poster-frame::after {
    right: 8px;
    bottom: 24px;
    width: 54px;
    height: 54px;
  }

  .test-board {
    gap: 38px;
  }

  .group-test-list {
    gap: 15px;
  }

  .test-card,
  .test-card:nth-child(n) {
    --card-rotate: 0deg;
    min-height: 218px;
    padding: 17px;
    box-shadow: 5px 5px 0 var(--ink);
  }

  .sync-panel,
  .sync-panel.is-fresh {
    margin-top: 42px;
    padding: 16px;
    border-radius: 18px;
    box-shadow: 5px 5px 0 var(--ink);
  }

  .quiz-panel,
  .quiz-rail,
  .result-panel,
  .invite-panel {
    border-radius: 18px;
    box-shadow: 5px 5px 0 var(--ink);
  }

  .quiz-rail,
  .quiz-panel,
  .result-panel {
    padding: 18px;
  }

  .result-hero {
    min-height: 0;
    padding: 24px;
    border-radius: 20px;
    box-shadow: 7px 7px 0 var(--ink);
  }

  .result-hero h2 {
    font-size: clamp(2.65rem, 13vw, 4.1rem);
  }

  .score-orbit {
    width: min(72vw, 210px);
  }

  .primary-button,
  .ghost-button {
    min-height: 50px;
  }

  .consent-gate,
  .sensitive-gate {
    place-items: start center;
    padding: 14px;
  }

  .consent-card {
    padding: 22px;
    border-radius: 19px;
    box-shadow: 6px 6px 0 var(--pink);
  }

  .consent-card h2 {
    font-size: clamp(2.15rem, 10vw, 3rem);
  }

  .consent-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .consent-actions > * {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .product-footer {
    align-items: flex-start;
    padding: 20px;
  }
}
