@font-face {
  font-family: DM Sans;
  src: url(/fonts/dm-sans.woff2);
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: Instrument Serif;
  src: url(/fonts/instrument-serif-latin-400-normal.woff2);
  font-display: swap;
}
@font-face {
  font-family: Instrument Serif;
  src: url(/fonts/instrument-serif-latin-400-italic.woff2);
  font-style: italic;
  font-display: swap;
}
:root {
  --ink: #302733;
  --plum: #49324e;
  --muted: #6c636c;
  --line: #ded9d6;
  --paper: #fcfaf7;
  --lilac: #e9dff2;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.45 var(--sans);
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.48;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid #9253af;
  outline-offset: 3px;
}
button {
  border: 0;
}
h1,
h2,
p,
figure {
  margin: 0;
}
svg {
  display: block;
}
.ico {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}
.wrap {
  width: min(1160px, calc(100% - 88px));
  margin: auto;
}
.brand,
.small-brand {
  font: 2rem/1 var(--serif);
  letter-spacing: -0.045em;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}
.brand img,
.welcome-brand img {
  border-radius: 24%;
}
.brand img {
  margin-right: 10px;
}
.brand i,
.small-brand i {
  color: #714f7a;
}
.settings,
.secondary,
.primary,
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 600;
}
.settings,
.secondary {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fffdfb;
  padding: 9px 16px;
  font-size: 0.94rem;
}
.settings:hover,
.secondary:hover {
  background: #f1ebf0;
}
.settings .ico {
  width: 17px;
}
/* One sheet of printed paper runs under the photographs and the group totals. */
.album-spread {
  position: relative;
  isolation: isolate;
  --photo-height: clamp(165px, 44vw, 240px);
  --art-height: calc(
    47px + var(--photo-height) + env(safe-area-inset-top, 0px) +
      var(--app-top-gap, 0px)
  );
}
.album-spread::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  border-image: url("/photos/payment-paper.webp") 0 365 0 335 fill / 0
    calc(var(--art-height) * 0.51) 0 calc(var(--art-height) * 0.47) stretch;
  background: #d7c7e4;
  mask-image: linear-gradient(
    black calc(var(--art-height) - 56px),
    rgb(0 0 0 / 0.78) calc(var(--art-height) - 14px),
    rgb(0 0 0 / 0.38) calc(var(--art-height) + 16px),
    rgb(0 0 0 / 0.16) calc(var(--art-height) + 75px),
    transparent
  );
}
.starting .album-spread::before {
  mask-image: linear-gradient(black 45%, transparent);
}
.top {
  color: #432b4c;
  padding-top: calc(env(safe-area-inset-top, 0px) + var(--app-top-gap, 0px));
}
.top-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1192px;
  margin-inline: auto;
  padding: 3px max(16px, env(safe-area-inset-right)) 0
    max(16px, env(safe-area-inset-left));
}
.top .brand,
.top .settings {
  min-height: 44px;
}
.top .brand {
  position: relative;
  isolation: isolate;
  color: #302139;
}
.top .brand::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset: 3px -9px;
  border-radius: 14px;
  background: rgb(255 247 254 / 0.8);
}
@supports (
  (backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px))
) {
  .top .brand::before {
    background: rgb(255 247 254 / 0.64);
    -webkit-backdrop-filter: blur(9px);
    backdrop-filter: blur(9px);
  }
}
.top .brand i {
  color: #754d77;
}
.top .settings {
  border: 0;
  background: transparent;
  padding: 0 2px 0 8px;
}
.album-art {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: var(--photo-height);
  mask-image: linear-gradient(black 66%, rgb(0 0 0 / 0.88) 80%, transparent);
}
.album-layout {
  position: relative;
  height: 100%;
  width: min(100%, 920px);
  margin: auto;
}
.photo-strip {
  position: absolute;
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 4px;
  width: 20%;
  height: 88%;
  padding: 5px 5px 9px;
  background: #fff9ed;
  box-shadow: 2px 3px 0 #432b4c55;
}
.photo-strip img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  display: block;
}
.strip-left {
  left: 10%;
  top: 12%;
  transform: rotate(-11deg);
}
.strip-left img:first-child {
  object-position: 50% 34%;
}
.strip-right {
  right: 8%;
  top: 6%;
  transform: rotate(10deg);
}
.strip-right img:first-child {
  object-position: 50% 29%;
}
.album-portrait {
  position: absolute;
  inset: auto auto -2px 50%;
  height: 112%;
  aspect-ratio: 840 / 558;
  transform: translateX(-52%);
  filter: drop-shadow(2px 0 0 #fff6e4) drop-shadow(-2px -2px 0 #fff6e4)
    drop-shadow(2px 3px 0 #40264e70);
}
.album-portrait img {
  width: 100%;
  height: 100%;
  display: block;
  mask: url("/photos/portrait-mask.webp") center / 100% 100% no-repeat;
}
@media (min-width: 600px) {
  .album-spread {
    --photo-height: clamp(195px, 20vw, 260px);
  }
  .photo-strip {
    width: 25%;
    height: 65%;
    grid-template: 1fr / repeat(2, minmax(0, 1fr));
  }
  .strip-left {
    left: 3%;
    top: 25%;
  }
  .strip-right {
    right: 2%;
    top: 18%;
  }
}
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto;
  row-gap: 3px;
  margin: 4px 0 16px;
  padding: 10px 0;
  border-block: 1px solid var(--line);
}
.stat {
  position: relative;
  display: grid;
  grid-row: 1 / span 2;
  grid-template-rows: subgrid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  align-items: start;
}
.stat:first-child {
  padding: 0 clamp(10px, 3vw, 24px) 0 0;
  border-inline-end: 1px solid var(--line);
}
.stat:last-child {
  padding: 0 0 0 clamp(10px, 3vw, 24px);
}
.balance .money {
  color: var(--plum);
}
.ledger {
  background: #fffefd;
}
.ledger-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 550;
  font-size: 0.94rem;
}
.stat-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 600 0.875rem/1.25 var(--sans);
  color: #5e545d;
}
.money {
  display: flex;
  align-items: baseline;
  gap: 0.18em;
  flex-wrap: wrap;
  font: clamp(1.65rem, 8vw, 2.4rem)/1.05 var(--serif);
  letter-spacing: -0.035em;
  font-variant-numeric: lining-nums tabular-nums;
}
.long-amount .money {
  font-size: clamp(1.2rem, 5.5vw, 2.4rem);
}
.money .figure {
  min-width: 0;
  overflow-wrap: anywhere;
}
.money small {
  font: 550 0.75rem/1 var(--sans);
  letter-spacing: 0.02em;
  color: var(--muted);
}
.section-title,
.ledger-bar,
.dialog-top,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.section-title {
  margin: 0 0 15px;
}
.section-title h2,
.dialog-top h2,
.welcome h2 {
  font: 2.7rem/1.08 var(--serif);
  letter-spacing: -0.035em;
}
.overline {
  margin-bottom: 4px;
}
.primary {
  background: var(--plum);
  color: white;
  border: 1px solid var(--plum);
  padding: 12px 18px;
  border-radius: 24px;
  font-size: 0.95rem;
}
.primary:hover {
  background: #604568;
}
.primary .ico {
  width: 17px;
  height: 17px;
}
.ledger {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.ledger-bar {
  padding: 13px 22px;
  border-bottom: 1px solid var(--line);
}
.ledger-label {
  color: #655b63;
}
.select-shell {
  position: relative;
}
.select-shell:after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid;
  border-bottom: 1.5px solid;
  transform: rotate(45deg);
  right: 13px;
  top: calc(50% - 5px);
  pointer-events: none;
}
.select-shell select {
  appearance: none;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fffefa;
  padding: 7px 33px 7px 12px;
  font-size: 0.9rem;
  cursor: pointer;
}
.empty,
.loading {
  padding: 32px 15px;
  text-align: center;
  color: var(--muted);
}
.empty-mark {
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
  width: 47px;
  height: 47px;
  background: #f0e8f2;
  color: #694f70;
  border-radius: 15px;
  transform: rotate(-6deg);
}
.empty-mark .ico {
  width: 25px;
  height: 25px;
}
.empty h3 {
  margin: 0 0 3px;
  font: 1.65rem var(--serif);
  color: var(--ink);
}
.empty p {
  font-size: 0.93rem;
}
.row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 14px 22px;
  background: transparent;
  border-bottom: 1px solid #eee9e5;
}
.row:last-child {
  border-bottom: 0;
}
.row:hover {
  background: #faf6f8;
}
.row-info {
  min-width: 0;
  flex: 1;
}
.row-info strong,
.row-info small {
  display: block;
  overflow-wrap: anywhere;
}
.row-info small,
.row-sum small {
  font-size: 0.82rem;
  color: var(--muted);
}
.row-photo {
  display: inline-flex;
  margin-inline-start: 0.35em;
  vertical-align: -0.12em;
  color: var(--muted);
}
.row-photo .ico {
  width: 1em;
  height: 1em;
}
.row-sum {
  text-align: right;
  white-space: nowrap;
}
.row-sum b,
.row-sum small {
  display: block;
}
.row-sum b {
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}
.small-brand {
  font-size: 1.5rem;
}
footer {
  padding: 24px 2px 30px;
  color: var(--muted);
  font-size: 0.82rem;
}
dialog {
  width: min(460px, calc(100% - 24px));
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  background: var(--paper);
  max-height: 90dvh;
  box-shadow: 0 20px 100px #25152d40;
}
dialog::backdrop {
  background: #26172770;
}
@media (prefers-reduced-motion: no-preference) {
  dialog {
    --sheet-rest: translateY(12px) scale(0.98);
    opacity: 0;
    transform: var(--sheet-rest);
    transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 180ms ease-out;
  }
  dialog[open] {
    opacity: 1;
    transform: none;
  }
  dialog[open][data-leaving] {
    opacity: 0;
    transform: var(--sheet-rest);
    transition-duration: 175ms;
    transition-timing-function: ease-in;
  }
  dialog::backdrop {
    opacity: 1;
    transition: opacity 175ms ease;
  }
  dialog[data-leaving]::backdrop {
    opacity: 0;
  }
  @starting-style {
    dialog[open] {
      opacity: 0;
      transform: var(--sheet-rest);
    }
    dialog[open]::backdrop {
      opacity: 0;
    }
  }
  dialog[data-step] #dialog-body > :first-child,
  .toast:not([hidden]),
  body:not(.starting) .overview-inner,
  .journal {
    animation: arrive 200ms ease-out backwards;
  }
  .journal {
    animation-delay: 35ms;
  }
  @keyframes arrive {
    from {
      opacity: 0;
      translate: 0 7px;
    }
    to {
      opacity: 1;
      translate: none;
    }
  }
}
@media (hover: none) and (prefers-reduced-motion: no-preference) {
  :is(.primary, .secondary, .group-trigger, .group-option, .icon-btn) {
    transition: scale 110ms ease-out;
  }
  :is(.primary, .secondary, .group-trigger, .group-option, .icon-btn):enabled:active {
    scale: 0.97;
  }
}
@media (max-width: 540px) and (prefers-reduced-motion: no-preference) {
  dialog {
    --sheet-rest: translateY(100%);
    transition-duration: 290ms, 180ms;
  }
}
.dialog-top {
  margin-bottom: 20px;
}
.dialog-top h2 {
  font-size: 2.05rem;
}
.icon-btn {
  border: 1px solid var(--line);
  background: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
}
.form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 13px;
}
.form label,
.field {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
  font-size: 0.91rem;
  font-weight: 600;
}
.form input,
.form .select-shell select,
.invite-url {
  width: 100%;
  min-width: 0;
  border: 1px solid #cfc7cd;
  border-radius: 8px;
  background: white;
  padding: 10px 11px;
  font: 1rem var(--sans);
}
.form .select-shell select {
  padding-right: 30px;
}
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  min-width: 0;
}
.form .actions,
.actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.danger {
  margin-right: auto;
  color: #923953;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.note,
.message {
  font-size: 0.94rem;
  color: var(--muted);
  margin: 0;
}
.message:not(:empty) {
  color: #992e45;
  background: #fae9ed;
  border-radius: 8px;
  padding: 8px 10px;
}
.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0 16px;
}
.subheading {
  font: 1.5rem var(--serif);
  margin: 0 0 6px;
}
.invite {
  display: grid;
  gap: 10px;
}
.invite .secondary {
  justify-self: start;
}
.toast {
  position: fixed;
  z-index: 8;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--plum);
  color: white;
  padding: 11px 19px;
  border-radius: 30px;
  box-shadow: 0 3px 16px #2c193130;
  max-width: 90vw;
  width: max-content;
}
.entrance {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  background-color: #ede4f2;
  background-image:
    linear-gradient(#8a708a14 1px, transparent 1px),
    linear-gradient(90deg, #8a708a14 1px, transparent 1px);
  background-size: 22px 22px;
  padding: 20px;
}
.welcome {
  width: min(390px, 100%);
  background: var(--paper);
  border: 1px solid #d2c5d3;
  box-shadow: 4px 5px 0 #d8c6dd;
  border-radius: 18px;
  padding: 36px;
}
.welcome h1 {
  font: 3.9rem var(--serif);
  letter-spacing: -0.05em;
  margin: 14px 0 28px;
}
.welcome h1 i {
  color: #795985;
}
.welcome h2 {
  font-size: 1.7rem;
  margin-bottom: 9px;
}
.welcome p {
  color: var(--muted);
}
.welcome button {
  margin-top: 18px;
}
@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .section-title h2 {
    font-size: 2.35rem;
  }
}
@media (max-width: 540px) {
  .wrap {
    width: calc(100% - 26px);
  }
  .brand {
    font-size: 1.75rem;
  }
  .brand img {
    width: 29px;
    height: 29px;
  }
  .section-title {
    gap: 8px;
  }
  .primary {
    padding: 10px 13px;
    font-size: 0.89rem;
  }
  .ledger-bar,
  .row {
    padding: 12px;
  }
  .row {
    gap: 9px;
  }
  .row-info strong {
    font-size: 0.94rem;
  }
  .row-sum b {
    font-size: 0.9rem;
  }
  .ledger-label {
    gap: 6px;
    font-size: 0.87rem;
  }
  .empty {
    padding: 25px 12px;
  }
  .pair {
    grid-template-columns: 1fr 1fr;
  }
  .section-title h2 {
    font-size: 2.2rem;
  }
  .overline {
    font-size: 0.7rem;
  }
}
@media (max-width: 360px) {
  .row-info small {
    font-size: 0.76rem;
  }
  .pair {
    grid-template-columns: 1fr;
  }
  .ledger-label .ico {
    display: none;
  }
}

.date-choices {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
}
.date-choices button {
  margin: 0;
  min-height: 44px;
  font-variant-numeric: tabular-nums;
}
#accessStatus:not(:empty) {
  margin-top: 14px;
}

.group-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding-block: 7px;
}
#active-group {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.group-current {
  display: grid;
  min-width: 0;
  gap: 1px;
}
.group-current strong {
  font: 1.45rem/1.1 var(--serif);
  overflow-wrap: anywhere;
}
.group-current small {
  font-size: 0.8125rem;
  line-height: 1.25;
  color: var(--muted);
}
.group-trigger {
  flex: none;
  min-height: 44px;
  border-radius: 12px;
  background: transparent;
  color: #694d70;
  font-size: 0.84rem;
  font-weight: 550;
  padding: 6px 4px;
}
.group-trigger:hover,
.group-trigger:focus-visible {
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.group-option,
.group-edit {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: var(--ink);
  background: transparent;
}
.group-option:hover .group-name {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.group-summary {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: 2px;
}
.group-status {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-size: 0.81rem;
  font-variant-numeric: tabular-nums;
  color: #80501e;
  overflow-wrap: anywhere;
}
.group-status::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  align-self: center;
  border-radius: 50%;
  background: currentColor;
}
.group-status.settled {
  color: #386654;
}
.group-mark {
  display: inline-grid;
  flex: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
}
.group-mark svg {
  width: 26px;
  height: 26px;
}
.tone-nest {
  background: linear-gradient(145deg, #654568, #412d4b);
  color: #ffe2ad;
}
.tone-lilac {
  background: #e8dff2;
  color: #684a7f;
}
.tone-rose {
  background: #f8e0de;
  color: #9e4c59;
}
.tone-amber {
  background: #f9e7c9;
  color: #875619;
}
.tone-teal {
  background: #d9ece4;
  color: #386654;
}
.tone-blue {
  background: #dfebf6;
  color: #415f80;
}
.group-sheet {
  display: grid;
  gap: 15px;
}
#new-group {
  display: none;
}
dialog:has(.group-sheet) #new-group {
  display: inline-flex;
  margin-inline-start: auto;
  gap: 5px;
  min-height: 44px;
  padding: 6px 12px;
  border: 0;
  background: var(--lilac);
  color: var(--plum);
  font-size: 0.875rem;
}
#new-group .ico {
  width: 16px;
  height: 16px;
}
.group-line {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  gap: 4px;
}
.group-option {
  flex: 1;
  min-width: 0;
  gap: 10px;
  padding: 8px 0;
  text-align: left;
}
.group-name {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 550;
}
.group-option .ico {
  width: 17px;
  color: var(--plum);
}
.group-edit {
  justify-content: center;
  min-width: 44px;
  color: var(--muted);
}
.group-edit .ico {
  width: 16px;
}
.group-option[aria-current] .group-name {
  color: var(--plum);
  font-weight: 750;
}
.is-complete .group-mark {
  filter: grayscale(1);
}
.is-complete .group-option .group-name {
  color: var(--muted);
}
.completion-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 1px 6px;
  border-radius: 6px;
  background: #ece9e7;
  color: #585254;
}
.form .completion-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  cursor: pointer;
}
.form .completion-option input {
  width: 20px;
  height: 20px;
  min-height: 0;
  margin: 0;
  accent-color: var(--plum);
}
.group-editor h3 {
  margin: 0;
}
.group-palette {
  border: 0;
  padding: 0;
  margin: 0;
}
.group-palette legend {
  font-weight: 600;
  margin-bottom: 8px;
}
.group-palette > div {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}
.group-palette .motif {
  position: relative;
  min-width: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.form .motif input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.motif .group-mark {
  width: 100%;
  height: 46px;
}
.motif input:checked + .group-mark {
  outline: 2px solid currentColor;
  outline-offset: -2px;
}
.motif input:focus-visible + .group-mark {
  outline: 3px solid #9253af;
  outline-offset: 1px;
}
#install-app {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 16px;
}
#install-app p:not(:empty) {
  margin-top: 8px;
}
@media (min-width: 761px) {
  .group-bar {
    justify-content: flex-start;
    gap: 24px;
  }
}
.avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  font-size: 24px;
  line-height: 1;
}
.person-a {
  background: #e0edf1;
}
.person-b {
  background: #f7e3db;
}
.profile-pair {
  display: inline-flex;
  align-items: center;
  padding-left: 2px;
}
.profile-pair .avatar {
  width: 27px;
  height: 27px;
  font-size: 17px;
  border: 2px solid #fffdfb;
}
.profile-pair .avatar + .avatar {
  margin-left: -7px;
}
.profile-card {
  margin: 0;
  min-width: 0;
  padding: 12px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffdfb;
}
.profile-card legend {
  padding: 0 6px;
  font-weight: 650;
  font-size: 0.92rem;
}
.profile-name {
  display: flex;
  align-items: center;
  gap: 12px;
}
.profile-name label {
  flex: 1;
  min-width: 0;
}
.profile-name .avatar {
  width: 52px;
  height: 52px;
  font-size: 31px;
}
.avatar-options {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 4px;
  margin-top: 12px;
}
.form .avatar-choice {
  position: relative;
  display: grid;
  cursor: pointer;
}
.form .avatar-choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.avatar-choice span {
  display: grid;
  place-items: center;
  min-height: 40px;
  border-radius: 10px;
  font-size: 1.35rem;
  border: 2px solid transparent;
}
.avatar-choice input:checked + span {
  background: var(--lilac);
  border-color: var(--plum);
}
.avatar-choice input:focus-visible + span {
  outline: 3px solid #9253af;
  outline-offset: 2px;
}
.avatar-choice:hover span {
  background: #f3eef4;
}
@media (max-width: 540px) {
  .avatar-options {
    grid-template-columns: repeat(4, 1fr);
  }
  .avatar-choice span {
    min-height: 44px;
  }
  .row .avatar {
    width: 34px;
    height: 34px;
    font-size: 21px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .profile-name .preview .avatar {
    transition: transform 0.16s ease;
  }
  .profile-card:has(.avatar-choice:active) .preview .avatar {
    transform: rotate(-8deg) scale(1.09);
  }
}

.high-five {
  display: inline-flex;
  align-items: center;
  margin-right: 8px;
  vertical-align: middle;
}
.high-five .avatar {
  width: 27px;
  height: 27px;
  font-size: 17px;
  border: 2px solid white;
}
.high-five .avatar + .avatar {
  margin-left: -3px;
}
@media (prefers-reduced-motion: no-preference) {
  .high-five .avatar {
    animation: bump 0.55s ease-in-out;
    --step: 4px;
    --tilt: 10deg;
  }
  .high-five .avatar + .avatar {
    --step: -4px;
    --tilt: -10deg;
  }
  @keyframes bump {
    45% {
      transform: translate(var(--step), -4px) rotate(var(--tilt));
    }
  }
}

@media (max-width: 760px) {
  .section-title .primary {
    min-height: 44px;
  }
}
.receipt h3,
.share-heading h3 {
  margin: 0;
  overflow-wrap: anywhere;
}
.receipt h3 {
  font-size: 1.12rem;
}
.receipt-total {
  font: 2.8rem/1.1 var(--serif);
  color: var(--plum);
  margin: 4px 0 16px;
  font-variant-numeric: tabular-nums;
}
.receipt dl {
  margin: 0;
}
.receipt dl > div,
.share-person,
.share-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.receipt dl > div,
.share-person {
  min-height: 44px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.receipt dt,
.share-heading > span,
.share-value small {
  color: var(--muted);
  font-size: 0.875rem;
}
.receipt dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
  min-width: 0;
}
.person-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.person-label .avatar {
  width: 29px;
  height: 29px;
  font-size: 17px;
}
.share-detail,
.split-editor {
  margin: 16px 0 6px;
}
.share-heading {
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}
.share-heading h3 {
  font: 1.55rem var(--serif);
}
.share-value {
  display: grid;
  justify-items: end;
  gap: 2px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.form .share-person {
  display: flex;
  gap: 10px;
}
.share-input {
  display: flex;
  align-items: center;
  gap: 6px;
}
.form .share-input input {
  width: 7.3em;
  padding: 8px;
  text-align: right;
  min-height: 44px;
}
.form .share-input input:read-only {
  border-color: transparent;
  background: transparent;
}
.share-input > span {
  font-size: 0.85rem;
  min-width: 2.3em;
}
#share-feedback:not(:empty) {
  color: #923953;
  margin-top: 8px;
}
.receipt .actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}
@media (max-width: 540px) {
  dialog:has(.receipt) .danger {
    min-height: 44px;
  }
}

footer.wrap {
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}
@media (orientation: landscape) {
  .wrap {
    max-width: calc(
      100% - max(36px, env(safe-area-inset-left)) -
        max(36px, env(safe-area-inset-right))
    );
  }
}

.balance-open {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent;
}
.balance-open:focus-visible {
  outline-offset: -2px;
}
.open-chevron {
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 1.5px 1.5px 0 0;
  transform: rotate(45deg);
  align-self: center;
  flex: none;
}
.balance:hover .money {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.settlement-group {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.settlement-group .group-mark {
  width: 34px;
  height: 34px;
}
.settlement-sum,
.paid-state {
  background: #e8f1eb;
  border-radius: 16px;
  padding: 20px;
  color: #294c3c;
}
.settlement-sum > span {
  font-size: 0.875rem;
}
.settlement-sum > strong {
  display: block;
  font: 2.9rem/1.1 var(--serif);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.payment-route {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
}
.payment-route > div {
  min-width: 0;
  padding: 0 12px;
}
.payment-route > div:first-child {
  padding-left: 0;
  border-right: 1px solid var(--line);
}
.payment-route dt,
.recent-payment small {
  font-size: 0.85rem;
  color: var(--muted);
}
.payment-route dd {
  margin: 5px 0 0;
}
.settlement-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.settlement-actions button {
  min-height: 44px;
}
.settlement-actions .primary {
  flex: 1;
  background: #345d49;
  border-color: #345d49;
}
.settlement-actions .ico,
.payment-row small .ico {
  width: 16px;
  height: 16px;
}
.payment-row .row-info small {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #39624c;
}
.recent-payment {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: transparent;
  width: 100%;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  text-align: left;
}
.recent-payment span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.recent-payment small,
.recent-payment strong {
  display: block;
}
.recent-payment b {
  font-weight: 550;
  white-space: nowrap;
}
.paid-state {
  text-align: center;
  margin: 15px 0;
}
.paid-state h3 {
  font: 2rem var(--serif);
  margin: 7px 0 2px;
}
.settled-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #c9e2d3;
}
.settlement .message:empty,
.settlement [role="status"]:empty {
  display: none;
}
.settlement textarea {
  font: inherit;
  width: 100%;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
@media (max-width: 540px) {
  dialog {
    width: 100%;
    max-width: 100%;
    margin: auto 0 0;
    padding: 16px max(18px, env(safe-area-inset-right))
      max(16px, env(safe-area-inset-bottom))
      max(18px, env(safe-area-inset-left));
    border-radius: 20px 20px 0 0;
    max-height: 92dvh;
  }
}

/* Compact expense sheet */
.expense-form {
  gap: 14px;
}
.expense-form .expense-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 8.6rem);
  align-items: start;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: #f0e9f2;
}
.expense-form .amount-field,
.expense-form .expense-date {
  min-width: 0;
  color: var(--plum);
}
.amount-field > span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: baseline;
  gap: 3px;
}
.expense-form .amount-field input {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--plum);
  font: 2.5rem/1.1 var(--serif);
}
.amount-field input::placeholder {
  color: #826c87;
  opacity: 1;
}
.amount-field b {
  white-space: nowrap;
  font-size: 0.84rem;
}
.date-chip {
  position: relative;
  display: grid;
  min-height: 44px;
}
.date-chip > span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 10px;
  background: #fff9;
}
.date-chip .ico {
  width: 16px;
  height: 16px;
  flex: none;
}
.expense-form .date-chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  padding: 3px;
  cursor: pointer;
}
.expense-form .date-chip input:focus-visible {
  opacity: 1;
}
.expense-form .expense-title input {
  min-height: 44px;
}
.payer-picker {
  padding: 0;
  margin: 0;
  min-width: 0;
  border: 0;
}
.payer-picker legend {
  font-size: 0.91rem;
  font-weight: 600;
  margin-bottom: 5px;
  padding: 0;
}
.payer-picker > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: #eee9ed;
}
.form .payer-picker label {
  display: block;
  position: relative;
  min-width: 0;
}
.payer-picker input,
.visually-hidden {
  position: absolute;
  width: 1px !important;
  height: 1px;
  padding: 0 !important;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.payer-picker label > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
  min-height: 42px;
  padding: 5px 7px;
  border-radius: 10px;
  color: var(--muted);
  cursor: pointer;
}
.payer-picker label .ico {
  visibility: hidden;
  flex: none;
  width: 15px;
}
.payer-picker input:checked + span {
  background: white;
  color: var(--plum);
  box-shadow: 0 1px 4px #38253f22;
}
.payer-picker input:checked + span .ico {
  visibility: visible;
}
.payer-picker input:focus-visible + span {
  outline: 2px solid var(--plum);
}
.expense-form .split-editor {
  margin: 0;
  border-block: 1px solid var(--line);
  padding: 4px 0;
}
.expense-form .split-editor > label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.expense-form .split-editor .select-shell {
  min-width: 0;
  max-width: 71%;
}
.expense-form .split-editor select {
  border: 0;
  background: transparent;
  color: var(--plum);
  padding-right: 26px;
  min-height: 44px;
  text-overflow: ellipsis;
}
.expense-form #split-summary {
  font-size: 0.87rem;
  padding-bottom: 8px;
}
.expense-form .message:empty,
#share-feedback:empty {
  display: none;
}
.expense-form .actions {
  margin: 0;
}
.expense-form .primary {
  flex: 1;
  min-height: 46px;
  justify-content: center;
}
.expense-form .primary .ico {
  width: 17px;
  height: 17px;
}
dialog:has(.expense-form) .dialog-top {
  margin-bottom: 14px;
}
dialog:has(.expense-form) .dialog-top h2 {
  font-size: 1.85rem;
}
@media (max-width: 540px), (pointer: coarse) and (max-width: 950px) and (max-height: 540px) {
  html:has(dialog[open] .expense-form) {
    overflow: hidden;
  }
  dialog[open]:has(.expense-form) {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    --sheet-rest: translateY(12px);
  }
  dialog:has(.expense-form)::backdrop {
    background: var(--paper);
  }
  dialog:has(.expense-form) .dialog-top {
    flex: none;
    margin: 0;
    padding: max(10px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right))
      10px max(18px, env(safe-area-inset-left));
    border-bottom: 1px solid var(--line);
  }
  dialog:has(.expense-form) #dialog-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-padding-block: 12px;
    padding: 16px max(18px, env(safe-area-inset-right))
      max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  }
  /* Extra scroll travel behind the keyboard keeps the last controls reachable. */
  dialog:has(.expense-form) #dialog-body::after {
    content: "";
    display: block;
    height: max(0px, calc(100dvh - var(--editor-visible-height, 100dvh)));
  }
  /* Keep Safari from zooming in when an editable field receives focus. */
  .expense-form :is(.expense-title, .share-input, .date-chip) input,
  .expense-form .split-editor select {
    font-size: max(16px, 1rem);
  }
}
@media (max-width: 350px) {
  .expense-form .expense-top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 7.9rem);
    padding: 10px;
    gap: 6px;
  }
}
.transfer-line,
.recent-payment .transfer-line {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  flex-wrap: wrap;
}
.transfer-line .ico {
  flex: none;
  width: 1.15em;
  height: 1.15em;
  stroke-width: 2.2;
  color: #39624c;
}
.route-with-arrow {
  position: relative;
}
.route-arrow {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #deebe2;
  color: #345d49;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
}
.route-arrow .ico {
  width: 21px;
  height: 21px;
  stroke-width: 2.3;
}
.payment-route > div:first-child {
  border: 0;
  padding-right: 22px;
}
.payment-route .receives {
  padding-left: 26px;
  padding-right: 0;
}

/* Three tear-off calendar leaves for the anniversary. */
.welcome {
  padding: clamp(22px, 6vw, 36px);
  text-align: center;
}
.welcome-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  justify-content: center;
}
.welcome .welcome-brand h1 {
  font-size: 2.45rem;
  margin: 0;
}
.welcome h2 {
  margin: 16px auto 8px;
  font: 2.2rem/1.05 var(--serif);
  color: var(--plum);
}
.welcome h2 i {
  color: #885875;
}
.welcome #question > p {
  margin: 0;
  font-size: 0.94rem;
}
.love-letter {
  position: relative;
  width: 72px;
  height: 45px;
  margin: 34px auto 22px;
  border-radius: 4px 4px 9px 9px;
  background: #e5cedd;
  isolation: isolate;
  transform: rotate(-6deg);
  box-shadow: 1px 4px 0 #d7bacd;
}
.love-letter::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #d7b3ca;
  clip-path: polygon(0 0, 50% 58%, 100% 0, 100% 100%, 0 100%);
  border-radius: inherit;
}
.love-letter span {
  position: absolute;
  inset: -14px 0 auto;
  color: #9a4769;
  font-size: 36px;
  line-height: 1;
}
.welcome .date-choices {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 20px;
}
.welcome .date-choices button {
  padding: 0 0 9px;
  border: 1px solid #cbbdc8;
  border-radius: 9px;
  overflow: hidden;
  background: #fffafc;
  box-shadow: 0 3px 0 #e4d6df;
  color: var(--plum);
}
.date-choices button > * {
  display: block;
}
.date-choices button > span {
  font-size: 0.81rem;
  font-weight: 650;
  background: #68455e;
  color: #fff;
  padding: 4px 0;
}
.date-choices strong {
  font: 2.35rem/1.05 var(--serif);
  margin-top: 6px;
}
.date-choices small {
  font-size: 0.82rem;
  color: var(--muted);
}
.date-choices button:focus-visible {
  outline-offset: 3px;
}
.date-choices button:hover {
  border-color: var(--plum);
}
#accessStatus:empty {
  display: none;
}
@media (prefers-reduced-motion: no-preference) {
  .love-letter span {
    animation: peek-heart 0.85s ease-out both;
  }
  #question[data-result="yes"] .love-letter span {
    animation: send-heart 0.55s ease-out both;
  }
  #question[data-result="no"] .love-letter {
    animation: wobble-letter 0.38s ease-in-out;
  }
  .date-choices button {
    transition: transform 0.16s;
  }
  .date-choices button:active {
    transform: translateY(3px);
  }
  @keyframes peek-heart {
    from {
      transform: translateY(14px) scale(0.75);
    }
    to {
      transform: translateY(0);
    }
  }
  @keyframes send-heart {
    to {
      transform: translateY(-20px) rotate(8deg) scale(1.25);
    }
  }
  @keyframes wobble-letter {
    30% {
      transform: rotate(-14deg);
    }
    70% {
      transform: rotate(3deg);
    }
  }
}

.ledger {
  background: transparent;
  border: 0;
  overflow: visible;
}
.ledger-bar {
  padding-inline: 0;
}
.journal-day {
  margin-top: 18px;
}
.journal-day h3 {
  margin: 0 0 7px 3px;
  font: 600 0.91rem var(--sans);
  color: var(--muted);
}
.day-entries {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffefd;
}
.day-entries .row:focus-visible {
  outline-offset: -3px;
}
.group-editor .delete-group {
  justify-self: start;
  min-height: 44px;
  padding: 0;
  margin: 0;
}
.delete-confirm p {
  margin: 0;
}
.delete-confirm .delete-submit {
  padding: 11px 17px;
  border-radius: 24px;
  background: #94374e;
  color: white;
  font-weight: 600;
  min-height: 44px;
}

#dialog-body,
.form > *,
.form :is(fieldset, select, input, textarea) {
  min-inline-size: 0;
}
.form :is(input, select, textarea) {
  max-inline-size: 100%;
}
.form input[type="date"] {
  display: block;
  min-height: 44px;
}
.settlement input[type="date"] {
  appearance: none;
}
.settlement input[type="date"]::-webkit-date-and-time-value {
  text-align: start;
}

#dialog-body,
.transfer-line {
  overflow-wrap: anywhere;
}

.group-overview {
  padding-bottom: 16px;
}
.group-overview .group-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
}
.group-overview .group-mark svg {
  width: 22px;
  height: 22px;
}
.group-overview .stats {
  margin: 0;
  padding: 9px 0 11px;
  border-bottom: 0;
  border-top: 1px solid #dcd2dc;
}
.default-group {
  padding: 10px 12px 2px;
  background: #eff5f1;
  border-radius: 12px;
}
.group-sheet h3 {
  margin: 0 0 3px;
  font: 600 0.85rem/1.3 var(--sans);
  color: var(--muted);
}
.default-group .group-line {
  border: 0;
}
.avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.form .photo-upload {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 6px;
  padding: 0 10px;
  color: var(--plum);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.photo-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.photo-upload:focus-within {
  outline: 2px solid var(--plum);
  border-radius: 8px;
}
.photo-status:empty {
  display: none;
}
.crop-area {
  display: grid;
  gap: 9px;
  padding: 12px;
  background: #f4eff3;
  border-radius: 12px;
}
.crop-area canvas {
  display: block;
  justify-self: center;
  width: min(100%, 192px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  touch-action: none;
  cursor: grab;
  background: white;
}
.crop-area canvas:active {
  cursor: grabbing;
}
.crop-area input[type="range"] {
  accent-color: var(--plum);
  padding: 0;
  min-height: 32px;
}
.crop-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.photo-status {
  margin: 6px 0;
  font-size: 0.875rem;
}

.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.language-switch {
  position: relative;
  isolation: isolate;
  display: inline-grid;
  grid-template-columns: repeat(2, 25px);
  place-items: center;
  align-content: center;
  height: 44px;
  padding: 0 4px;
  border-radius: 18px;
  background: transparent;
}
.language-switch:focus-visible {
  outline-offset: -2px;
}
.language-switch::before,
.language-switch::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
}
.language-switch::before {
  inset-inline: 0;
  height: 30px;
  transform: translateY(-50%);
  border-radius: 20px;
  background: #f6eef4e8;
  box-shadow: inset 0 0 0 1px #492f501a;
}
.language-switch::after {
  left: 4px;
  width: 25px;
  height: 24px;
  border-radius: 12px;
  background: white;
  box-shadow: 0 1px 3px #40264e47;
  transform: translateY(-50%);
}
html[lang="gsw-CH"] .language-switch::after {
  transform: translate(25px, -50%);
}
@media (prefers-reduced-motion: no-preference) {
  .language-switch::after {
    transition: transform 160ms ease;
  }
}
.flag {
  width: 17px;
  height: 13px;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px #33233820;
}
.flag-de {
  background: linear-gradient(#28232a 33.33%, #ce303d 33.33% 66.66%, #ffcf50 66.66%);
}
.flag-ch {
  width: 14px;
  height: 14px;
  background:
    linear-gradient(white, white) center / 8px 3px no-repeat,
    linear-gradient(white, white) center / 3px 8px no-repeat,
    #d92e3b;
}
.welcome > .language-switch {
  display: grid;
  width: max-content;
  margin: 0 0 6px auto;
}
.top-inner {
  gap: 8px;
}
/* The installed iOS app uses a system-owned status bar. Also leave room
   for reported safe-area insets when a device draws into the cutout. */
@media (display-mode: standalone) {
  :root {
    --app-top-gap: 8px;
  }
}
:root.installed-app {
  --app-top-gap: 8px;
}
.entrance {
  padding-top: calc(
    20px + env(safe-area-inset-top, 0px) + var(--app-top-gap, 0px)
  );
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}

#balance-caption {
  min-width: 0;
  overflow-wrap: anywhere;
}
.view-choice {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.view-choice legend {
  font: 600 0.91rem/1.35 var(--sans);
  padding: 0;
  margin: 0 0 5px;
}
.view-choice > div {
  display: flex;
  gap: 6px;
}
.view-choice button {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 44px;
  padding: 4px 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: left;
  overflow-wrap: anywhere;
}
.view-choice .avatar {
  width: 26px;
  height: 26px;
  font-size: 16px;
}
.starting .group-overview,
.starting .album-art,
.starting #settings {
  display: none;
}
#start-screen {
  width: min(calc(100% - 32px), 420px);
  margin: clamp(30px, 12svh, 100px) auto;
}
#start-status {
  color: var(--muted);
}
#start-retry {
  margin-top: 12px;
}
#onboarding .view-choice legend {
  font: 2.15rem/1.1 var(--serif);
  margin-bottom: 18px;
}
#onboarding .view-choice > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
#onboarding .view-choice button {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 8px;
  text-align: center;
  font-weight: 600;
}
#onboarding .avatar {
  width: 48px;
  height: 48px;
  font-size: 28px;
}

.receipt-upload, .receipt-open {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.form .receipt-pick, .receipt-open, .receipt-remove {
  min-height: 44px;
  color: var(--plum);
  font: 600 .9rem var(--sans);
}
.form .receipt-pick {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.form .receipt-pick input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.receipt-pick:focus-within {
  outline: 2px solid var(--plum);
  outline-offset: 2px;
  border-radius: 5px;
}
.receipt-preview, .receipt-open img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 6px;
}
.receipt-remove, .receipt-open {
  background: transparent;
}
.receipt-upload p:empty {
  display: none;
}
.receipt-upload p {
  flex-basis: 100%;
  margin: 0;
  font-size: .85rem;
}
.receipt-open {
  margin-top: 12px;
  padding: 0;
}
.receipt-full {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 12px;
}
