@font-face {
  font-family: Fraunces;
  src: url('/fonts/fraunces-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --bg: #f6f1ea;
  --surface: #fffdf9;
  --surface-2: #efe8de;
  --text: #2a2521;
  --muted: #675e56;
  --line: #e2d9cc;
  --accent: #a8442f;
  --on-accent: #ffffff;
  --secondary: #315d63;
  --secondary-soft: #e5efed;
  --font-display: Fraunces, Georgia, serif;
  --font-body: Inter, system-ui, sans-serif;
  --radius-panel: 20px;
  --radius-card: 28px;
  --yes: #267044;
  --yes-soft: #dcefe2;
  --no: #963838;
  --no-soft: #f5dede;
  --jente: #923b60;
  --gutt: #365c91;
  --shadow: 0 10px 30px rgb(60 40 20 / 0.12);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1916;
    --surface: #25221e;
    --surface-2: #302c27;
    --text: #f1ebe3;
    --muted: #a59a8f;
    --line: #3b362f;
    --accent: #e47a5e;
    --on-accent: #1b1916;
    --secondary: #9ac3c8;
    --secondary-soft: #24383a;
    --yes: #6cc08d;
    --yes-soft: #203a2a;
    --no: #e07b7b;
    --no-soft: #3d2424;
    --jente: #e08aab;
    --gutt: #86a8dd;
    --shadow: 0 10px 30px rgb(0 0 0 / 0.4);
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

/* A quiet, non-modal choice. Equal buttons; the app remains usable underneath. */
[data-analytics-settings] { display: none; }
.analytics-ready [data-analytics-settings] { display: inline; padding: 0; border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.analytics-choice-open { padding-bottom: var(--analytics-height, 240px); }
.analytics-choice { position: fixed; z-index: 30; inset: auto 0 0; display: flex; align-items: center; justify-content: center; gap: 32px; padding: 20px max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.analytics-choice[hidden] { display: none; }
.analytics-copy { max-width: 60ch; }
.analytics-copy h2 { margin: 0 0 6px; font-size: 1.25rem; line-height: 1.3; }
.analytics-copy p { margin: 0; font-size: .875rem; line-height: 1.5; color: var(--muted); }
.analytics-copy a { color: var(--secondary); }
.analytics-actions { display: flex; gap: 10px; flex-shrink: 0; }
.analytics-actions button { min-height: 44px; padding: 10px 18px; border: 1px solid var(--secondary); border-radius: 999px; background: var(--surface); color: var(--secondary); font: 600 .875rem/1.4 var(--font-body); white-space: nowrap; transition: none; }
.analytics-actions button:hover:not(:disabled) { background: var(--secondary-soft); }
@media (max-width: 760px) {
  .analytics-choice { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px 20px max(16px, env(safe-area-inset-bottom)); }
  .analytics-actions button { flex: 1; }
}
@media (max-height: 700px) {
  .analytics-choice { position: static; }
  .analytics-choice-open { padding-bottom: 0; }
}
@media print { .analytics-choice, [data-analytics-settings] { display: none !important; } .analytics-choice-open { padding-bottom: 0; } }

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font-body);
  -webkit-tap-highlight-color: transparent;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom));
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

h1,
h2,
.serif {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.4rem, 8vw, 4.25rem);
  line-height: 1.08;
  text-wrap: balance;
  margin: 1.5rem 0 0.5rem;
}

h2 {
  font-size: 1.3rem;
  margin: 1.5rem 0 0.75rem;
}

p {
  margin: 0 0 1rem;
}

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

.small {
  font-size: 0.875rem;
}

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

button {
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  background: var(--surface-2);
  font-weight: 500;
  min-height: 44px;
  transition: transform 0.1s, background 0.2s;
}

button:active {
  transform: scale(0.97);
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

button:hover:not(:disabled) {
  background: color-mix(in srgb, var(--surface-2) 82%, var(--text));
}

button.primary {
  background: var(--accent);
  color: var(--on-accent);
}

button.primary:hover:not(:disabled),
.cta:hover {
  background: color-mix(in srgb, var(--accent) 90%, var(--text));
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  border-bottom: 1px solid var(--line);
}

.site-head > a:not(.brand):last-child {
  font-size: 0.875rem;
  font-weight: 600;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(3rem, 8vw, 6rem) 0 3rem;
}

.hero h1 {
  max-width: 680px;
  margin-top: 0.4rem;
  font-size: clamp(2.5rem, 5.5vw, 4rem);
}

.eyebrow {
  margin: 0 0 0.45rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lede {
  max-width: 610px;
  font-size: clamp(1.05rem, 3vw, 1.3rem);
  color: var(--muted);
}

.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.proof-row span::before {
  content: '✓';
  margin-right: 0.35rem;
  color: var(--yes);
  font-weight: 700;
}

.start-panel {
  padding: clamp(1.25rem, 5vw, 2rem);
  box-shadow: none;
}

.how {
  padding: 4rem 0 3rem;
}

.how ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.how li {
  display: grid;
  gap: 0.4rem;
  counter-increment: steps;
}

.how li::before {
  content: '0' counter(steps);
  color: var(--accent);
  font: 600 1.4rem/1 Georgia, "Times New Roman", serif;
}

.how li span {
  color: var(--muted);
  font-size: 0.9rem;
}

.compact-panel {
  margin-bottom: 1rem;
}

.recover {
  display: grid;
  gap: 0.5rem;
  padding: 1rem 0;
}

.recover [data-recover-status] {
  min-height: 1.5em;
  margin: 0;
}

.content-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

button.ghost {
  background: transparent;
  padding: 0.4rem 0.7rem;
  min-height: 44px;
}

button:disabled {
  opacity: 0.4;
  cursor: default;
}

input,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  accent-color: var(--accent);
}

.stack {
  display: grid;
  gap: 0.75rem;
}

.row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.25rem;
}

.choices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.choices button {
  border-radius: 14px;
  padding: 1rem 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 1.1rem 1.2rem;
  background: var(--accent);
  color: var(--on-accent);
}

.choices button:hover:not(:disabled) {
  background: color-mix(in srgb, var(--accent) 90%, var(--text));
}

/* ── Rom ── */

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.55rem;
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.brand::before {
  content: '';
  width: 25px;
  height: 25px;
  background: var(--accent);
  mask: url('/brand/mark.svg') center / contain no-repeat;
}

.code {
  font-family: ui-monospace, monospace;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.people {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0;
}

.chip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.8rem;
}

.chip.me {
  border-color: var(--accent);
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 1rem;
}

.tabs button {
  background: transparent;
  padding: 0.5rem;
  font-size: 0.9rem;
  min-height: 44px;
}

.tabs button[aria-selected='true'] {
  background: var(--surface);
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.1);
}

.badge {
  display: inline-block;
  min-width: 1.4em;
  padding: 0 0.35em;
  margin-left: 0.3em;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.75rem;
  line-height: 1.4em;
}

/* ── Kort ── */

.deck {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
}

.card {
  position: relative;
  background: var(--surface);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
  touch-action: pan-y;
  user-select: none;
  will-change: transform;
}

.card.fly {
  transition: transform 0.25s ease-in, opacity 0.25s;
}

.card.snap {
  transition: transform 0.2s ease-out;
}

.card .name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.8rem, 14vw, 4.2rem);
  line-height: 1.05;
  margin: 0.5rem 0 0.75rem;
  overflow-wrap: anywhere;
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
}

.tag.jente {
  color: var(--jente);
  background: color-mix(in srgb, var(--jente) 15%, transparent);
}

.tag.gutt {
  color: var(--gutt);
  background: color-mix(in srgb, var(--gutt) 15%, transparent);
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 1rem 0;
}

.stat {
  background: var(--surface-2);
  border-radius: 14px;
  padding: 0.6rem;
}

.stat b {
  display: block;
  font-size: 1.15rem;
}

.stat span {
  font-size: 0.75rem;
  color: var(--muted);
}

.spark {
  width: 100%;
  height: 70px;
  display: block;
}

.spark path.area {
  fill: color-mix(in srgb, var(--accent) 18%, transparent);
}

.spark path.line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.spark-axis {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--muted);
}

.stamp {
  position: absolute;
  top: 1.2rem;
  padding: 0.2rem 0.7rem;
  border: 3px solid;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.3rem;
  opacity: 0;
  pointer-events: none;
}

.stamp.yes {
  left: 1.2rem;
  color: var(--yes);
  transform: rotate(-12deg);
}

.stamp.no {
  right: 1.2rem;
  color: var(--no);
  transform: rotate(12deg);
}

.actions {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: center;
}

.actions .vote {
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.vote.no {
  background: var(--no-soft);
  color: var(--no);
}

.vote.yes {
  background: var(--yes-soft);
  color: var(--yes);
}

.deck-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.deck-footer select {
  width: auto;
  padding: 0.3rem 0.6rem;
  font-size: 0.85rem;
  min-height: 44px;
}

/* ── Lister ── */

.list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.6rem 0.9rem;
}

.list .nm {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
}

.list.big .nm {
  font-size: 1.5rem;
}

.pill {
  padding: 0.25rem 0.7rem;
  font-size: 0.8rem;
  min-height: 44px;
}

.pill.yes {
  background: var(--yes-soft);
  color: var(--yes);
}

.pill.no {
  background: var(--no-soft);
  color: var(--no);
}

.empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
}

footer.source {
  margin-top: auto;
  padding-top: 2rem;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
}

.source nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 1rem;
}

.source nav a, .content-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.source p { margin: .6rem 0 0; }
.source p a { display: inline-flex; align-items: center; min-height: 44px; }

.deck-wrap {
  width: min(100%, 560px);
  margin-inline: auto;
}

.paywall {
  margin-top: 1rem;
  padding: clamp(1.25rem, 5vw, 1.75rem);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  box-shadow: var(--shadow);
}

.paywall h2,
.account-tools h2 {
  margin: 0 0 0.5rem;
}

.check-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
}

.check-list li::before {
  content: '✓';
  margin-right: 0.4rem;
  color: var(--yes);
  font-weight: 700;
}

.buy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.terms-check {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin: 1rem 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.terms-check input {
  width: 1rem;
  min-width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
}

.buy-row > div {
  display: grid;
}

.buy-row b {
  font: 600 1.75rem/1.1 var(--font-display);
}

.buy-row span,
.microcopy {
  color: var(--muted);
  font-size: 0.75rem;
}

button.vipps {
  min-height: 48px;
  background: #ff5b24;
  color: #1b1916;
  font-weight: 600;
}

.account-tools {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.account-tools p {
  margin-bottom: 0;
}

.room-settings {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}

.room-settings p {
  margin-bottom: 0;
}

button.danger {
  color: var(--no);
  background: var(--no-soft);
}

.success {
  color: var(--yes);
  font-weight: 600;
}

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

.decision-toolbar {
  display: grid;
  grid-template-columns: 1fr 1.4fr auto auto;
  gap: 0.6rem;
  align-items: end;
  margin-bottom: 0.75rem;
  padding: 0.8rem;
}

.decision-toolbar label {
  display: grid;
  gap: 0.25rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.decision-toolbar input,
.decision-toolbar select {
  padding: 0.55rem 0.7rem;
  color: var(--text);
  font-size: 1rem;
}

.list .nm .surname {
  font-weight: 400;
}

.list .nm small {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font: 500 0.7rem system-ui, sans-serif;
  letter-spacing: 0.08em;
}

@media (max-width: 560px) {
  .how ol,
  .check-list {
    grid-template-columns: 1fr;
  }

  .buy-row,
  .recover .row,
  .account-tools form.row {
    align-items: stretch;
    flex-direction: column;
  }

  .buy-row .vipps {
    width: 100%;
  }

  .decision-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .room-settings {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 380px) {
  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar > .row {
    justify-content: space-between;
  }
}

#toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: var(--text);
  color: var(--bg);
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-weight: 500;
  max-width: calc(100vw - 32px);
  z-index: 10;
}

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

@media print {
  body,
  main {
    background: #fff;
    color: #111;
  }

  .topbar,
  .people,
  .tabs,
  .decision-toolbar,
  .account-tools,
  .order-actions,
  footer,
  #toast {
    display: none !important;
  }

  .deck-wrap,
  main {
    width: 100%;
    max-width: none;
    min-height: auto;
  }

  .printable li {
    break-inside: avoid;
    border-color: #bbb;
  }
}

.page-loading {
  margin-top: 3rem;
  text-align: center;
}

.order-page {
  width: min(760px, calc(100% - 2rem));
  margin: 0 auto;
  padding-bottom: 3rem;
}

.receipt dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.receipt dl div {
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}

.receipt dt {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.receipt dd {
  margin: 0.3rem 0 0;
}

.receipt table {
  width: 100%;
  margin-top: 1rem;
  border-collapse: collapse;
}

.receipt th,
.receipt td {
  padding: 0.75rem 0.4rem;
  border-bottom: 1px solid var(--line);
  text-align: right;
}

.receipt th:first-child,
.receipt td:first-child {
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 600px) {
  .receipt dl {
    grid-template-columns: 1fr;
  }

  .receipt table {
    font-size: 0.78rem;
  }
}

/* ── Innholdssider ── */

.content-page {
  display: block;
  max-width: 980px;
}

.content-hero {
  max-width: 760px;
  padding: clamp(3.5rem, 10vw, 7rem) 0 clamp(2.5rem, 6vw, 4rem);
}

.content-hero .cta,
.content-cta .cta {
  display: inline-block;
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}

.content-section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
}

.content-section > p,
.legal {
  max-width: 720px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

th,
td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}

th:nth-child(2),
td:nth-child(2) {
  text-align: left;
}

tbody th {
  font: 600 1.05rem var(--font-display);
}

.content-cta {
  margin: 3rem 0;
  padding: clamp(1.5rem, 5vw, 3rem);
  border-top: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  background: var(--surface);
}

.split-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding-bottom: 3rem;
}

.split-content > div {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.steps {
  display: grid;
  gap: 0.75rem;
  max-width: 620px;
}

.content-footer {
  display: grid;
  gap: 1rem;
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

.content-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

@media (max-width: 600px) {
  .split-content {
    grid-template-columns: 1fr;
  }
}

/* Navnero: a shared journal, with the working room kept deliberately quiet. */
.home-page { max-width: 1100px; }
.hero-copy .lede { margin: 1.3rem 0 1.6rem; font-size: 1.1rem; max-width: 48ch; }
.cta { display: inline-flex; align-items: center; gap: 1rem; background: var(--accent); color: var(--on-accent); padding: .9rem 1.4rem; border-radius: 999px; font-weight: 600; text-decoration: none; min-height: 48px; }
.hero-note { color: var(--muted); font-size: .875rem; margin: 1rem 0 .4rem; }
.data-note { color: var(--muted); font-size: .8rem; }
.journal-preview { margin: 0; background: var(--surface); padding: 1.7rem; border-radius: var(--radius-panel); box-shadow: var(--shadow); transform: rotate(2deg); }
.journal-top { display: flex; gap: .6rem; align-items: center; color: var(--muted); font-size: .7rem; padding-bottom: 1.5rem; }
.journal-title { font: 500 1.2rem/1.3 var(--font-display); margin-bottom: 1.1rem; }
.journal-preview ul { margin: 0; padding: 0; list-style: none; }
.journal-preview li { border-top: 1px solid var(--line); padding: .9rem 0; display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.journal-preview li > span:first-child { font: 500 2rem/1.2 var(--font-display); }
.mutual { color: var(--yes); font-size: .7rem; white-space: nowrap; }
.journal-preview figcaption { margin-top: 1rem; color: var(--muted); font-size: .7rem; }
.start-help { margin: .4rem 0 .3rem; font-size: .9rem; }
.how h2 { margin: 0 0 1.7rem; font-size: 1.8rem; }
.how-reassurance { font: 400 1.3rem/1.5 var(--font-display); max-width: 55ch; margin: 2.5rem 0 0; }
.compact-panel { max-width: 680px; }
.recover { max-width: 680px; }
.form-error { color: var(--no); margin: 0; font-size: .875rem; }
.form-error:empty { display: none; }
.room-title, .state-title { font-size: clamp(1.8rem, 6vw, 2.5rem); margin-top: 1.5rem; }
.room-title .count { color: var(--muted); font: 500 1rem var(--font-body); }
.deck-wrap { display: flex; flex-direction: column; flex: 1; }
.room-note { padding: 1rem 0; margin: 0 0 1rem; border-bottom: 1px solid var(--line); }
.room-note p { margin: 0 0 .4rem; color: var(--muted); font-size: .875rem; }
.room-note button { padding-left: 0; color: var(--accent); }
.match-moment { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; margin-bottom: 1rem; border-bottom: 1px solid var(--line); }
.match-moment h2 { font-size: 1.2rem; color: var(--yes); margin: 0 0 .2rem; }
.match-moment p { margin: 0; color: var(--muted); font-size: .8rem; }
.match-moment button { flex-shrink: 0; font-size: .8rem; }
.payment-status { padding: .85rem 1rem; color: var(--yes); background: var(--yes-soft); border-radius: 12px; }
.share-fallback { padding: 1rem 0; }
.share-fallback label { display: block; color: var(--muted); margin-bottom: .5rem; font-size: .875rem; }
.filter-row [aria-pressed='true'] { outline: 2px solid currentColor; outline-offset: 2px; }
.room-settings h2 { margin: 0 0 .4rem; font-size: 1.1rem; }
.recovery-actions { justify-content: center; flex-wrap: wrap; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
input::placeholder { color: var(--muted); opacity: 1; }
.match-summary { font-weight: 600; color: var(--yes); }
.receipt .table-wrap { margin-bottom: 1rem; }

@media (max-width: 780px) {
  .hero { grid-template-columns: 1fr; gap: 2rem; padding-top: 2.5rem; }
  .hero h1 { font-size: clamp(2.35rem, 7vw, 3.6rem); }
  .journal-preview { max-width: 420px; transform: none; }
  .journal-top { padding-bottom: 1rem; }
  .journal-preview li { padding: .6rem 0; }
  .journal-preview li > span:first-child { font-size: 1.6rem; }
  .journal-preview { display: none; }
}
@media (max-width: 560px) {
  .topbar { align-items: stretch; flex-direction: column; }
  .topbar > .row { justify-content: space-between; }
  .choices { grid-template-columns: 1fr; }
  .choices button { padding: .85rem 1rem; }
  .how { padding: 2.5rem 0; }
  .how h2 { font-size: 1.5rem; }
  .how-reassurance { font-size: 1.15rem; }
  .match-moment { flex-direction: column; align-items: flex-start; }
  .room-settings .row { flex-wrap: wrap; }
  .list li { flex-wrap: wrap; }
  .terms-check { font-size: .875rem; }
  .order-page { width: 100%; }
}

/* A room that remembers you, with choices that never move their controls. */
.start-panel h2 { margin: 0; }
.start-panel { gap: 1.1rem; }
.home-actions { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; }
.code-entry-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 1rem; font-weight: 500; }
.home-page h1:focus, .entry-intro h1:focus { outline: none; }
.home-recovery { max-width: 680px; margin-block: 1rem 2rem; border-block: 1px solid var(--line); padding-block: .5rem; }
.home-recovery summary { cursor: pointer; padding-block: .75rem; color: var(--muted); font-size: .875rem; }
.home-recovery .recover { margin-block: .5rem 1rem; }
.entry-page { max-width: 600px; margin-inline: auto; }
.entry-intro { margin-block: clamp(2rem, 7vw, 3rem) 1.5rem; }
.entry-intro h1 { max-width: 18ch; margin: 0 0 .75rem; font-size: clamp(2rem, 7vw, 3rem); text-wrap: balance; }
.entry-intro p { max-width: 46ch; margin: 0; }
.entry-page .start-panel { padding: 0; gap: 1.5rem; }
.entry-page .optional-name { max-width: none; }
.entry-page .source { margin-top: 3rem; }
.code-entry-form { gap: .75rem; }
.code-entry-form > button { justify-self: start; margin-top: .5rem; min-height: 48px; }
.home-recovery summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.list-choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; padding: 0; border: 0; margin: 0; min-width: 0; }
.list-choice label { position: relative; cursor: pointer; }
.list-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.list-choice span { display: flex; justify-content: center; align-items: center; border: 1px solid var(--line); border-radius: 12px; min-height: 60px; padding: .65rem .4rem; font-size: .9rem; font-weight: 600; }
.list-choice label:hover span { border-color: var(--secondary); }
.list-choice input:checked + span { background: var(--secondary-soft); border-color: var(--secondary); color: var(--secondary); }
.list-choice input:focus-visible + span { outline: 3px solid var(--secondary); outline-offset: 3px; }
.choice-check { position: absolute; top: 6px; right: 7px; width: 12px; height: 12px; visibility: hidden; }
.list-choice input:checked + span .choice-check { visibility: visible; }
.optional-name { max-width: 460px; display: grid; gap: .35rem; }
.optional-name label { display: flex; gap: .75rem; align-items: baseline; }
.optional-name p, .start-retention { margin: 0; }
.start-panel > button { justify-self: start; min-height: 48px; padding-inline: 1.4rem; }
.flow-banner { padding: 1rem; border: 1px solid var(--line); border-radius: 12px; }
.recent-rooms { display: flex; flex-wrap: wrap; gap: .7rem 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: .875rem; }
.recent-rooms > span { color: var(--muted); }
.recent-rooms a { font-weight: 600; }
.join-page { max-width: 600px; }
.join-intro { margin-block: 2rem 1.5rem; }
.join-intro h1 { max-width: 16ch; font-size: clamp(2.2rem, 8vw, 3rem); }
.join-recovery { padding: 1.5rem 0; }
.join-recovery h2 { font: 600 1rem var(--font-body); margin: 0 0 .5rem; }
.join-recovery p { margin-bottom: .75rem; }
.room-meta { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .75rem; margin-top: .5rem; }
.room-meta details { position: relative; text-align: right; }
.room-meta summary { cursor: pointer; min-height: 30px; }
.room-meta .code { display: block; }
.sync-line { min-height: 32px; display: flex; gap: .5rem; align-items: baseline; margin-bottom: .5rem; }
.sync-line p { margin: 0; color: var(--muted); font-size: .75rem; }
.sync-line .sync-error { color: var(--no); }
.sync-line button { padding-block: 0; }
.topbar { flex-direction: row; align-items: center; }
.tabs button { font-size: .82rem; }
.card-slot { position: relative; }
.card.departing { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.pick-help { text-align: center; margin: -.6rem 0 0; font-size: .75rem; }
.room-loading { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 420px; color: var(--muted); }
.room-loading img { margin-bottom: .5rem; }
.room-note { padding: .6rem 0; margin-bottom: .75rem; }
.room-note p { font-size: .8rem; }
.room-note button { min-height: 38px; padding-block: .3rem; }
.profile-form { margin-top: 1.5rem; }
.profile-form p { margin: 0; }
@media (max-width: 560px) {
  .start-panel > button { width: 100%; }
  .code-entry-form > button { width: 100%; }
  .profile-form .row { flex-direction: column; align-items: stretch; }
  .tabs button { padding-inline: .2rem; font-size: .75rem; }
  .card { padding: 1.4rem 1rem 1rem; }
  .card .name { font-size: clamp(2.6rem, 13vw, 4rem); }
  .deck { gap: 1rem; }
  .room-meta { margin-top: .25rem; }
  .people { margin: .2rem 0; }
  .sync-line { margin-bottom: .2rem; }
}
@media print { .sync-line, .room-meta, .profile-form { display: none !important; } }
[hidden] { display: none !important; }
.actions [data-undo] svg { vertical-align: -.15em; }
.vote.yes:hover:not(:disabled), .pill.yes:hover:not(:disabled) { background: color-mix(in srgb, var(--yes-soft) 92%, var(--yes)); }
.vote.no:hover:not(:disabled), .pill.no:hover:not(:disabled), button.danger:hover:not(:disabled) { background: color-mix(in srgb, var(--no-soft) 92%, var(--no)); }
.join-recovery [data-new-invite] { display: block; margin-top: .75rem; padding-left: 0; }
@media (max-width: 560px) {
  .match-moment { flex-direction: row; align-items: center; gap: .75rem; padding-block: .65rem; }
  .match-moment h2 { font-size: 1.05rem; }
  .match-moment button { max-width: 100px; padding: .55rem .7rem; }
}
