/* /app on top of base.css. Phone-first: base rules are the 320px layout. */

[hidden] { display: none !important; }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  letter-spacing: var(--track-tight);
  color: var(--label);
}

main > .wordmark { margin-bottom: var(--space-6); }

/* The app icon's silhouette: a torn receipt on a cobalt tile. */
.mark {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--accent);
  overflow: hidden;
  flex: none;
}
.mark::after {
  content: "";
  position: absolute;
  inset: 17% 27% 15%;
  background: #FFFFFF;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 87.5% 100%, 75% 90%, 62.5% 100%, 50% 90%, 37.5% 100%, 25% 90%, 12.5% 100%, 0 90%);
}

/* A tab's title, set like the wordmark (owner, 2026-10-16/17), as
   TabTitle.swift: the tab's glyph on a cobalt tile, the word semibold and
   tight. The tile is in em, so it grows with the title. */
.title-mark { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: var(--track-tight); }
.title-tile { position: relative; flex: none; width: 1em; height: 1em; border-radius: 0.27em; background: var(--accent); }
.title-tile::before { content: ""; position: absolute; inset: 22%; background: var(--label-on-accent); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }

/* ── Sign-in ── */

.sign-in {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: var(--space-6) var(--space-4) var(--space-8);
  background: var(--bg-base);
  max-width: 30rem;
  margin: 0 auto;
}
.sign-in-copy { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: var(--space-3); }
.sign-in-copy h1 { margin: 0; }
.sign-in-copy p { margin: 0; }

.providers { display: flex; flex-direction: column; gap: var(--space-3); }
.provider { min-height: var(--hit-min); display: flex; justify-content: center; }
/* 44px: the tap-target floor, and near Google's button, which its script caps at 40px. */
#apple-button, #appleid-signin { width: 100%; max-width: 400px; height: var(--hit-min); margin: 0 auto; }
/* Google's button is a light-scheme iframe. On a dark page the browser paints a
   scheme mismatch with an opaque white canvas, a white slab round the button;
   matching the scheme on the frame itself keeps it transparent. */
.provider iframe { color-scheme: light; }

.fine, .error {
  margin: var(--space-2) 0 0;
  text-align: center;
  font-size: var(--footnote-size);
  line-height: var(--footnote-lh);
  color: var(--label-tertiary);
}
.error { color: var(--label); }

/* ── Signed in ── */

h2 {
  font-size: var(--footnote-size);
  line-height: var(--footnote-lh);
  font-weight: 400;
  text-transform: uppercase;
  color: var(--label-secondary);
  margin: var(--space-8) 0 var(--space-2) var(--space-4);
}

/* The web's sheet (design principle 8: sheets for doing): a card over a dimmed page, with the sheet's shadow. */
.confirm { width: min(30rem, calc(100vw - 2 * var(--space-4))); border: 0; border-radius: var(--radius-lg); padding: var(--space-5) var(--space-4); background: var(--bg-elevated); color: var(--label); box-shadow: var(--shadow-sheet); }
.confirm::backdrop { background: rgb(0 0 0 / 0.4); }
.confirm h3 { margin: 0 0 var(--space-2); font-size: var(--title-3-size); line-height: var(--title-3-lh); }
.confirm form, .report, .add { display: flex; flex-direction: column; gap: var(--space-2); }
.confirm label { display: flex; flex-direction: column; gap: var(--space-1); color: var(--label-secondary); font-size: var(--footnote-size); }
.confirm .amount-row { display: flex; gap: var(--space-2); }
.confirm .amount-row label:first-child { flex: 1; }
.confirm .amount-row input { font-variant-numeric: var(--numeric); }
/* Where it was read (EXP-149): Lucide scan-text in the tint, then the receipt's line with the value marked. */
.confirm .source { margin: 0; }
.confirm .source[hidden], .confirm .source-line[hidden] { display: none; }
.confirm .source-toggle { display: inline-flex; align-items: center; gap: var(--space-1); min-height: var(--hit-min); margin: -10px 0; padding: 0; border: 0; background: none; color: var(--accent-text); font: inherit; font-size: var(--footnote-size); font-weight: 600; cursor: pointer; }
.confirm .source-glyph { width: 16px; height: 16px; background: var(--accent-text); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7V5a2 2 0 0 1 2-2h2'/%3E%3Cpath d='M17 3h2a2 2 0 0 1 2 2v2'/%3E%3Cpath d='M21 17v2a2 2 0 0 1-2 2h-2'/%3E%3Cpath d='M7 21H5a2 2 0 0 1-2-2v-2'/%3E%3Cpath d='M7 8h8'/%3E%3Cpath d='M7 12h10'/%3E%3Cpath d='M7 16h6'/%3E%3C/svg%3E"); }
.confirm .source-line { margin: 0; padding: var(--space-2) var(--space-3); border-radius: 12px; background: var(--fill); color: var(--label); font-size: var(--footnote-size); font-variant-numeric: var(--numeric); overflow-wrap: anywhere; }
.confirm .source-line mark { background: var(--accent-soft); color: inherit; font-weight: 600; border-radius: 4px; padding: 0 2px; }
.confirm .note, .confirm .count { margin: 0; color: var(--gap); font-size: var(--footnote-size); }
.confirm .note { cursor: pointer; }
.confirm .count { font-size: inherit; margin-top: var(--space-2); }
.confirm #c-report-row, .sender-row, .receipts-edit { display: flex; flex-direction: column; gap: var(--space-1); }
.confirm #c-report-row[hidden] { display: none; }
.confirm .hint { margin: 0; color: var(--label-secondary); font-size: var(--footnote-size); }
.confirm .note:not([hidden]), .confirm .hint:not([hidden]) { display: flex; align-items: baseline; gap: var(--space-2); }
.confirm .note > span, .confirm .hint > span { flex: 1; }
.confirm .looks-right { flex: none; min-height: var(--hit-min); margin: -12px 0; padding: 0 var(--space-1); border: 0; background: none; color: var(--accent-text); font: inherit; font-size: max(var(--web-control-font), 1em); font-weight: 600; cursor: pointer; }
.confirm .dialog-actions { display: flex; justify-content: space-between; margin-top: var(--space-2); }
.confirm.ask { width: min(22rem, calc(100vw - 2 * var(--space-4))); }
.ask-text { margin: 0 0 var(--space-2); color: var(--label); }
.ask #ask-go { font-weight: 600; }
/* Two long answers, one above the other (EXP-138): the send first, Wait under it. */
.confirm .dialog-actions.stacked { flex-direction: column; align-items: stretch; gap: var(--space-1); }
.capture { cursor: pointer; }

/* Add, bottom right (EXP-34): the floating capture accessory, the one place
   with a shadow. + fans out into Email, File, Photos, Camera. */
#signed-in { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
.add-scrim {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg-grouped) 80%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.add-items, .add-toggle {
  position: fixed;
  z-index: 11;
  right: max(var(--space-4), env(safe-area-inset-right));
}
.add-toggle {
  bottom: max(var(--space-4), env(safe-area-inset-bottom));
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 50%;
  font-size: var(--title-1-size);
  font-weight: 400;
  box-shadow: var(--shadow-popover);
}
.add-toggle span { display: block; transition: transform var(--dur-base) var(--ease-standard); }
.add-toggle[aria-expanded="true"] span { transform: rotate(45deg); }
.add-items {
  bottom: calc(max(var(--space-4), env(safe-area-inset-bottom)) + 56px + var(--space-4));
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-4);
}
/* Each choice flies out of the + (--rise rows above it), spinning, nearest
   the thumb first; its name lands after it, so names never cross in flight.
   The drop is glyph half + gap + the +'s half, plus a row per rise. */
.add-items li {
  --rise: 0;
  animation: add-fan var(--dur-slow) var(--ease-standard) calc(var(--rise) * 35ms) both;
}
.add-items li:nth-last-child(2) { --rise: 1; }
.add-items li:nth-last-child(3) { --rise: 2; }
.add-items li:nth-last-child(4) { --rise: 3; }
.add-items li:nth-last-child(5) { --rise: 4; }
.add-items .add-glyph { animation: add-spin var(--dur-slow) var(--ease-standard) calc(var(--rise) * 35ms) both; }
.add-items .add-label { animation: add-label var(--dur-base) var(--ease-standard) calc(var(--rise) * 35ms + 150ms) both; }
@keyframes add-fan {
  from { transform: translateY(calc(var(--rise) * (48px + var(--space-4)) + 24px + var(--space-4) + 28px)); }
}
@keyframes add-spin { from { opacity: 0; transform: rotate(-180deg) scale(0.4); } }
@keyframes add-label { from { opacity: 0; transform: translateX(12px); } }
.add-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 48px;
  padding: 0 4px 0 0;
  background: transparent;
  color: var(--label);
  font-weight: var(--headline-weight);
  cursor: pointer;
}
.add-item:active { background: transparent; opacity: 0.6; }
.add-glyph {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-elevated);
  color: var(--accent-text);
  font-size: var(--title-3-size);
  box-shadow: var(--shadow-popover);
}
/* Lucide outlines (design/readme.md · Iconography) as masks in the tint. */
.add-glyph[class*="icon-"]::before {
  content: "";
  width: 22px;
  height: 22px;
  background: var(--accent-text);
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.icon-camera { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z'/%3E%3Ccircle cx='12' cy='13' r='3'/%3E%3C/svg%3E"); }
.icon-photos { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='18' x='3' y='3' rx='2' ry='2'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21'/%3E%3C/svg%3E"); }
.icon-file { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z'/%3E%3C/svg%3E"); }
@media (prefers-reduced-motion: reduce) {
  .add-items li { animation: add-fade var(--dur-fast) ease both; }
  .add-items .add-glyph, .add-items .add-label { animation: none; }
  .add-toggle span { transition: none; }
}
@keyframes add-fade { from { opacity: 0; } }
/* RunningTotal (design/readme.md · Money): caption, ~ EUR headline, subtotals. EXP-32. */
.running { padding: var(--space-3) var(--space-4) 0; }
.running p { margin: 0; text-align: left; font-variant-numeric: var(--numeric); }
.running .caption { font-size: var(--footnote-size); line-height: var(--footnote-lh); color: var(--label-secondary); }
.running .total { font-size: var(--total-size); line-height: var(--total-lh); font-weight: var(--total-weight); color: var(--label); }
.running .subtotals { font-size: var(--subheadline-size); line-height: var(--subheadline-lh); color: var(--label-secondary); }
.running .waiting { margin-top: var(--space-1); font-size: var(--footnote-size); line-height: var(--footnote-lh); color: var(--indicative); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; }
.section-head h2 { margin-right: auto; }
.confirm.wide { width: min(36rem, calc(100vw - 2 * var(--space-4))); }
/* The email as sent (EXP-36): the sender's colours on a light card, whatever the theme. */
.mail-head h3 { overflow-wrap: anywhere; }
.mail-head p { margin: 0; }
.mail-card { display: block; width: 100%; height: min(70vh, 48rem); margin-top: var(--space-2); border: 1px solid var(--separator); border-radius: var(--radius-md); background: #fff; color-scheme: light; }
.report h3 { margin: 0; }
/* A trip's photo (EXP-53): as-is, no scrim, the title below it, never on it. */
.trip-photo { margin: 0; }
.trip-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: 220px; object-fit: cover; border-radius: var(--radius-lg); background: var(--bg-grouped); }
.trip-photo figcaption { margin-top: var(--space-1); }
.trip-photo figcaption a { color: inherit; }
.report .amount-row { display: grid; grid-template-columns: 1fr 1fr; }
.report .amount-row label { min-width: 0; }
.claimed { margin: 0; font-size: var(--title-1-size); line-height: var(--title-1-lh); font-weight: 600; color: var(--label); font-variant-numeric: var(--numeric); }
/* A row with a name and its controls on one line: payers, the forwarding address, sign-ins, senders. */
.payer-row, .forward-to, .signin-row, .sender-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.payer-row .default { color: var(--label-secondary); font-size: var(--footnote-size); }

.undo { display: flex; align-items: center; justify-content: space-between; margin: 0 0 var(--space-2); color: var(--label-secondary); }
.captures, .credits { list-style: none; margin: 0; padding: 0; }
.capture { display: flex; align-items: center; gap: var(--space-3); min-height: var(--row-min); }
.capture + .capture { border-top: 1px solid var(--separator); }
:is(.capture, .receipts-edit) .glyph { flex: none; width: var(--thumb); height: var(--thumb); border-radius: var(--radius-xs); display: grid; place-items: center; background: var(--bg-grouped); color: var(--label-secondary); }
:is(.capture, .receipts-edit) .glyph svg { width: 22px; height: 22px; }
.capture .text { flex: 1; min-width: 0; }
.capture .title { margin: 0; color: var(--label); display: flex; justify-content: space-between; gap: var(--space-2); }
/* The name takes the room the amount leaves; with too little (a match row's answers), the amount goes beneath. */
.capture .title { flex-wrap: wrap; column-gap: var(--space-2); row-gap: 0; }
.capture .title span:first-child { flex: 1 1 7em; min-width: 0; overflow-wrap: break-word; }
.capture .title .amount { flex: none; margin-left: auto; }
.capture .amount { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: var(--numeric); white-space: nowrap; }
.capture .meta-line { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2); }
/* The ~ or the charged amount ends the meta line on every receipt row (EXP-154), with or without words before it. */
.capture .meta-line > :is(.indicative, .charged) { margin-left: auto; }
/* The what line can carry it too, when there is one: the words take the room the amount leaves. */
.capture .meta-line > .what { flex: 1 1 auto; min-width: 0; }
/* The ~ EUR and what the bank charged: footnote, right, tabular (design · Money); the ~ in the indicative colour. */
.capture :is(.indicative, .charged) { margin: 0; text-align: right; white-space: nowrap; font-size: var(--footnote-size); line-height: var(--footnote-lh); color: var(--label-secondary); font-variant-numeric: var(--numeric); }
.capture .indicative { color: var(--indicative); }
/* Unsure (design: ProposalField unsure): Lucide circle-help in amber, drawn as a mask so no font can break it. */
.capture .unsure { display: inline-block; width: 20px; height: 20px; font-size: 0; background: var(--gap); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.capture .meta, .sender-how { margin: 0; font-size: var(--footnote-size); line-height: var(--footnote-lh); }
/* What it is (EXP-105): under the merchant, in the label colour, so it reads before the meta line. */
.capture .what { margin: 0; color: var(--label); font-size: var(--subheadline-size); line-height: var(--subheadline-lh); overflow-wrap: break-word; }

/* EmptyState (design · Components, EXP-118): a 44px glyph, a title, a sentence,
   an action at most. Built only by feedback.js's emptyState(); in a sheet's
   list it is the list's one row, closer set. */
.empty { padding: var(--space-8) var(--space-4); text-align: center; }
.empty-glyph { display: block; width: 44px; height: 44px; margin: 0 auto var(--space-3); background: var(--label-tertiary); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.empty-title { margin: 0 0 var(--space-2); color: var(--label); font-size: var(--title-3-size); line-height: var(--title-3-lh); font-weight: var(--title-3-weight); }
.empty-text { max-width: 300px; margin: 0 auto; color: var(--label-secondary); font-size: var(--subheadline-size); line-height: var(--subheadline-lh); text-wrap: pretty; }
.empty-title:last-child { margin-bottom: 0; }
.empty button { margin-top: var(--space-4); }
/* The empty Inbox's ways in (EXP-118): full width, stacked, the address first. */
.empty-ways { display: flex; flex-direction: column; gap: var(--space-2); max-width: 360px; margin: var(--space-4) auto 0; }
.empty-ways button { display: flex; align-items: center; justify-content: center; gap: var(--space-2); width: 100%; min-height: 44px; margin: 0; }
.empty-ways .copy-address-row { justify-content: flex-start; }
.empty-ways .copy-address-row .address { flex: 1; min-width: 0; text-align: start; }
.empty-ways .copy-word { font-weight: 600; color: var(--accent-text); }
.way-glyph { width: 18px; height: 18px; flex: none; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.copy-address-row .way-glyph { color: var(--accent-text); }
li.empty { padding: var(--space-6) var(--space-2); list-style: none; }
li.empty .empty-glyph { width: 32px; height: 32px; }

/* SegmentedPicker (design/components/forms): which part of the claim a list shows (EXP-139). */
.segmented { display: flex; gap: 2px; padding: 2px; margin: 0 0 var(--space-4); border-radius: var(--radius-sm); background: var(--fill); }
.segmented[hidden] { display: none; }
.segmented button { flex: 1; min-height: var(--hit-min); padding: 0 var(--space-3); border: 0; border-radius: var(--radius-xs); background: transparent; color: var(--label); font: 400 15px/1 var(--font-sans); cursor: pointer; }
.segmented button[aria-checked="true"] { background: var(--bg-elevated); box-shadow: 0 1px 3px rgb(0 0 0 / 0.12); font-weight: 600; }
.segmented button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
/* The forwarding address is set in mono (design · Type). */
.address { color: var(--label); font-family: var(--font-mono); overflow-wrap: anywhere; }
.forward-to .address { min-width: 0; font-size: var(--subheadline-size); }

.group { background: var(--bg-elevated); border-radius: var(--radius-lg); overflow: hidden; }
.row { margin: 0; padding: var(--space-3) var(--space-4); color: var(--label); }
/* A hairline between rows, including those inside #sign-ins. */
.group .row:not(:first-child), #sign-ins + .row, #sign-ins .row + .row, #senders + .row, #senders .row + .row { border-top: 1px solid var(--separator); }
.group > .row:first-child, #sign-ins .row:first-child, #senders .row:first-child { border-top: 0; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-2); padding-left: var(--space-2); padding-right: var(--space-2); }

.signin-row span { overflow-wrap: anywhere; }
.add .add-title { margin: 0; color: var(--label); }
.add .fine { margin: 0; text-align: left; }
#link-apple #appleid-signin { margin: 0; }

.add-sender { display: flex; gap: var(--space-2); align-items: center; }
.add-sender input { flex: 1; min-width: 0; }
.trip-sync-detail { display: block; margin-top: var(--space-1); color: var(--label-secondary); }
.sender-head > span:first-of-type, .settings-words { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sender-how strong { color: var(--label); font-variant-numeric: var(--numeric); }
#gmail-filter { overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
#copy-gmail-filter { align-self: flex-start; padding: 0; }
.fine.left { text-align: left; margin: var(--space-2) var(--space-4) 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Needs a decision (EXP-10, EXP-48): answers are round 44px targets, or in the dialog a row opens.
   On a phone they sit under the words at the trailing edge, so the merchant and amount get the width;
   from 30rem at the row's end (owner, 2026-12-02). */
.decision { align-items: flex-start; }
.confirm .bank-line { margin: 0 0 var(--space-3); color: var(--label); font-variant-numeric: var(--numeric); }
.decision .answers { flex: none; display: flex; gap: var(--space-1); align-self: center; }
.decision:has(> .answers) { flex-wrap: wrap; row-gap: var(--space-1); }
.decision:has(> .answers) > .text { flex: 1 1 0; min-width: 0; }
.decision > .answers { flex-basis: 100%; justify-content: flex-end; }
@media (min-width: 30rem) {
	.decision:has(> .answers) { flex-wrap: nowrap; }
	.decision > .answers { flex-basis: auto; }
}
/* A 36px circle drawn inside the 44px target. */
.decision button.answer { width: var(--hit-min); height: var(--hit-min); padding: 0; display: grid; place-items: center; color: var(--label); background: radial-gradient(circle at center, var(--fill) 17px, transparent 18px); }
.decision button.answer.prominent { color: var(--label-on-accent); background: radial-gradient(circle at center, var(--accent) 17px, transparent 18px); }
.decision button.answer:active { opacity: 0.6; background: radial-gradient(circle at center, var(--fill) 17px, transparent 18px); }
.decision button.answer[class*="icon-"]::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.decision button.answer.prominent:active { background: radial-gradient(circle at center, var(--accent) 17px, transparent 18px); }
/* A report's payment suggestion (EXP-14) keeps its answers under the row. */
.decision .decision-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
.decision .decision-actions button { padding: 0 var(--space-4); border-radius: var(--radius-full); font-weight: 400; }
.decision .decision-actions button.neutral { background: var(--fill); color: var(--label); }
.decision.opens { cursor: pointer; }
.decision .chevron { flex: none; align-self: center; width: 8px; height: 8px; margin: 0 var(--space-1); border-right: 2px solid var(--label-tertiary); border-bottom: 2px solid var(--label-tertiary); transform: rotate(-45deg); }
/* The bank's line and a trip's gaps open in place (.gap-summary, .gap-trip). */
.decision.open .chevron { transform: rotate(45deg); }
.decision input.pick, .capture input.pick { flex: none; width: 22px; height: 22px; margin: 11px; accent-color: var(--accent); align-self: center; }
.row.rest { padding-top: 0; padding-bottom: var(--space-2); }
.row.rest button { padding-left: calc(var(--thumb) + var(--space-3)); }
/* Why a match was suggested (EXP-82): ticked when it fits, amber when it's worth a second look. */
/* The match card's evidence (EXP-161): the receipt above both amounts, beside them once there's room. */
#mt-evidence, #e-bank { container-type: inline-size; }
.match-evidence { display: grid; gap: var(--space-3); margin: 0 0 var(--space-3); }
@container (min-width: 26rem) { .match-evidence { grid-template-columns: 10.5rem 1fr; align-items: start; } }
.match-receipt { position: relative; display: block; width: 100%; height: 12.5rem; min-height: 44px; padding: 0; overflow: hidden; border-radius: 12px; border: 0.5px solid var(--separator); background: #fff; cursor: zoom-in; }
@container (min-width: 26rem) { .match-receipt { height: 14rem; } }
.match-receipt :is(img, iframe) { display: block; width: 100%; height: 100%; border: 0; object-fit: contain; pointer-events: none; color-scheme: light; }
.match-receipt .expand { position: absolute; right: 8px; bottom: 8px; width: 28px; height: 28px; border-radius: 50%; background: var(--bg-elevated); box-shadow: 0 0 0 0.5px var(--separator); }
.match-receipt .expand::before { content: ""; position: absolute; inset: 6px; background: var(--label); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.icon-maximize-2 { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M9 21H3v-6'/%3E%3Cpath d='m21 3-7 7'/%3E%3Cpath d='m3 21 7-7'/%3E%3C/svg%3E"); }
.match-amounts { margin: 0; display: grid; gap: var(--space-1); font-variant-numeric: var(--numeric); }
.match-amounts > div { display: flex; justify-content: space-between; gap: var(--space-2); }
.match-amounts dt { color: var(--label-secondary); }
.match-amounts dd { margin: 0; font-weight: 600; color: var(--label); }
.match-amounts p { margin: 0; font-size: var(--subheadline-size); line-height: var(--subheadline-lh); }
.match-amounts .indicative { color: var(--indicative); }
/* An expense's ~ EUR under its amount while the bank hasn't charged it (EXP-120). */
#e-indicative { margin: calc(var(--space-1) * -1) 0 0; color: var(--indicative); font-size: var(--footnote-size); line-height: var(--footnote-lh); font-variant-numeric: var(--numeric); }
.match-amounts .match-diff { color: var(--label-secondary); margin-top: var(--space-1); }
.reasons { list-style: none; margin: 0 0 var(--space-3); padding: 0; display: grid; gap: var(--space-1); }
.reasons li { display: flex; gap: var(--space-2); color: var(--label); font-size: var(--subheadline-size); line-height: var(--subheadline-lh); }
.reasons li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 1px; background: var(--accent-text); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.reasons li.look { color: var(--gap); }
.reasons li.look::before { background: var(--gap); }
.other-answers { justify-content: flex-start; flex-wrap: wrap; border-top: 1px solid var(--separator); margin-top: var(--space-3); padding-top: var(--space-2); }
/* Find in email (EXP-112): one 44px row per inbox, the address under the action. */
.find-email { border-top: 1px solid var(--separator); margin-top: var(--space-3); padding-top: var(--space-2); }
.find-email .fine.left { margin-left: 0; margin-right: 0; }
.find-list { list-style: none; margin: var(--space-1) 0 0; padding: 0; }
.find-list button { width: 100%; min-height: var(--hit-min); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; text-align: left; gap: 2px; }
.find-list .address { font-size: var(--footnote-size); line-height: var(--footnote-lh); color: var(--label-secondary); font-weight: 400; overflow-wrap: anywhere; }
.claim-line label { display: block; margin: 0; }
.claim-line .meta { margin: var(--space-1) 0 0; font-size: var(--footnote-size); line-height: var(--footnote-lh); color: var(--label-secondary); font-variant-numeric: var(--numeric); overflow-wrap: anywhere; }
.decision .glyph.suggested { background: var(--accent-soft); color: var(--accent-text); }
.decision .glyph.gap { background: var(--gap-soft); border: 1px dashed var(--gap); color: var(--gap); }
/* Looks personal's one line (EXP-141): said quietly, never amber. */
.decision .glyph.personal { background: var(--fill); color: var(--label-secondary); }
/* A row's glyph until its picture loads: how it came in, its category, a suggestion's sparkle, a gap's dashed circle. */
:is(.capture, .receipts-edit) .glyph[class*="icon-"]::before { content: ""; width: 22px; height: 22px; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }

button.plain { background: transparent; color: var(--accent-text); padding: 0 var(--space-2); font-weight: 400; }
button.plain:active { background: transparent; opacity: 0.6; }
button.destructive { color: var(--destructive); }
/* Button · bordered (design/components/actions): an EmptyState's action, a neutral banner's. */
button.bordered { background: transparent; color: var(--accent-text); box-shadow: inset 0 0 0 1px var(--separator-strong); }
button.bordered:active { background: var(--fill); }
button.bordered.destructive { color: var(--destructive); }
button:disabled, select:disabled, input:disabled { opacity: 0.4; cursor: default; }

@media (min-width: 48rem) {
  .sign-in { padding: var(--space-12) var(--space-8); }
}

/* Day headers inside a list (EXP-29). */
.group .day { margin: 0; padding: var(--space-3) var(--space-4) var(--space-1); font-size: var(--footnote-size); line-height: var(--footnote-lh); color: var(--label-secondary); list-style: none; }
.group .day + .row { border-top: 0; }
/* Under Ready to send (EXP-177): why the Reports tab is badged, as an inset-grouped footer. */
.group .section-note { margin: 0; padding: var(--space-2) var(--space-4) 0; font-size: var(--footnote-size); line-height: var(--footnote-lh); color: var(--label-secondary); list-style: none; }

/* An expense's category, changed in place (EXP-28). */
.capture select.category { width: auto; margin-top: var(--space-1); }

/* The receipt itself over its glyph (EXP-27). */
:is(.capture, .receipts-edit) .glyph { position: relative; overflow: hidden; }
:is(.capture, .receipts-edit) .glyph img.thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% calc(var(--focus, 0) * -1 * var(--thumb)); }
/* Until its bytes come (EXP-154): kept in the layout, unseen, so the row coming into view asks for it. */
:is(.capture, .receipts-edit) .glyph img.thumb:not([src]) { visibility: hidden; }
/* Who it's from (EXP-63): a photo fills from its middle; a logo sits whole on white, drawn for a light page. */
:is(.capture, .receipts-edit) .glyph img.thumb[data-mark="photo"], :is(.capture, .receipts-edit) .glyph img.thumb[data-mark="picture"] { object-position: 50% 50%; }
/* A bank's logo (EXP-142): whole on white in both modes, before the line's small print or the bank's name. */
/* A logo, a merchant's or a bank's (EXP-63, EXP-142): whole on white with a hairline edge, in light and dark, never cropped. Sized where it sits. */
.logo-tile { box-sizing: border-box; object-fit: contain; background: #fff; border: 1px solid var(--separator); }
.logo-tile.bank { width: 16px; height: 16px; flex: none; margin-inline-end: var(--space-1); vertical-align: -3px; padding: 1px; border-radius: var(--radius-xs); }
.logo-tile.bank.large { width: 28px; height: 28px; margin-inline-end: 0; padding: 3px; border-radius: var(--radius-sm); }
:is(.capture, .receipts-edit) .glyph img.thumb.logo-tile { object-fit: contain; padding: 5px; border-radius: inherit; }
/* Reports as cards, as con-cierge's past trips (EXP-53): each report its own
   rounded row, and a trip's row is its photo under a wash, the words white.
   The wash is fixed black, not a token: legibility over photography. */
#reports, #reports-archived-list { display: flex; flex-direction: column; gap: 10px; background: transparent; border-radius: 0; overflow: visible; }
#reports > .row, #reports-archived-list > .row { background: var(--bg-elevated); border-radius: var(--radius-lg); overflow: hidden; border-top: 0 !important; }
:is(#reports, #reports-archived-list) .capture.trip { position: relative; isolation: isolate; min-height: 132px; align-items: flex-end; color: #fff; }
:is(#reports, #reports-archived-list) .capture.trip .title { color: #fff; }
:is(#reports, #reports-archived-list) .capture.trip .title span:first-child { font-size: var(--title-3-size); line-height: var(--title-3-lh); font-weight: var(--title-3-weight); }
:is(#reports, #reports-archived-list) .capture.trip :is(.meta, .status) { color: rgb(255 255 255 / 0.85); }
:is(#reports, #reports-archived-list) .capture.trip .text { text-shadow: 0 1px 6px rgb(0 0 0 / 0.4); }
.trip-bg { position: absolute; inset: 0; z-index: -1; background: #383838; }
.trip-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.trip-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgb(0 0 0 / 0.15), rgb(0 0 0 / 0.5) 40%, rgb(0 0 0 / 0.9)); }
/* A report opens out of its row's card, photo and all (EXP-56). */
::view-transition-group(report-card) { animation-duration: var(--dur-slow); animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1); }
.swipe:has(> .swipe-face.trip) { min-height: 132px; }

/* Notifications (EXP-24): one switch per stage, its words beside it, each row a 44px target. */
.push-stage { display: flex; align-items: center; gap: var(--space-3); min-height: var(--hit-min); cursor: pointer; }
.push-stage span { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.push-stage small { color: var(--label-secondary); }
.push-stage input { flex: none; width: 24px; height: 24px; min-height: 0; margin: 0; accent-color: var(--accent); }

/* A sheet asking which (Add to an expense, Pair): the question, then its answers. */
.confirm .choice { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-1); }
/* "Not yet charged" (EXP-30): a checkbox with its words, one 44px row. */
.confirm .check { display: flex; flex-direction: row; align-items: center; gap: var(--space-2); min-height: var(--hit-min); }
.confirm .check input { width: 24px; height: 24px; min-height: 0; margin: 0; accent-color: var(--accent); }

/* Export links (EXP-12): each a full tap target. */
.exports a { display: inline-block; min-height: var(--hit-min); line-height: var(--hit-min); }

/* Send to payer (EXP-13). */
.send { display: grid; gap: var(--space-2); margin: var(--space-4) 0; }

/* Who it's from at the top of Confirm (EXP-63), as on the apps: their photo
   edge to edge under the title, fading into the sheet before the form starts;
   or their logo on its tile. Decoration: the receipt opens from its links. */
.mark-header { margin: 0 calc(-1 * var(--space-4)) var(--space-3); }
/* No receipt (EXP-111): the bank's amount large and alone, as an expense opens; its own words at the bottom. */
.claim-amount { margin: 0; font-size: var(--total-size); line-height: var(--total-lh); font-weight: var(--total-weight); color: var(--label); font-variant-numeric: var(--numeric); }
.claim-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: var(--space-1) 0 var(--space-4); color: var(--label-secondary); }
.confirm .statement { margin: 0; color: var(--label-secondary); white-space: pre-line; overflow-wrap: anywhere; }
.mark-header[data-mark="photo"], .mark-header[data-mark="picture"] { height: 14rem; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.mark-header[data-mark="photo"] img, .mark-header[data-mark="picture"] img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mark-header[data-mark="logo"] { display: flex; justify-content: center; }
.mark-header[data-mark="logo"] img { width: 88px; height: 88px; padding: 10px; border-radius: var(--radius-xl); }

/* Banner (design · Components, principle 10; EXP-118): a slow-burn condition at
   the top of what it's about, never an alert. Built only by feedback.js's
   banner(): its tone's -soft tint, the glyph in the tone, the words, one
   capsule action. Neutral sits on the elevated fill, or the plain fill in a sheet. */
.banner { display: flex; gap: var(--space-3); margin: 0 0 var(--space-4); padding: var(--space-4); border-radius: var(--radius-lg); background: var(--bg-elevated); color: var(--label); text-align: left; }
.banner-glyph { flex: none; width: 20px; height: 20px; margin-top: 1px; background: var(--label-secondary); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.banner-words { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-1); }
.banner-words p { margin: 0; font-size: var(--subheadline-size); line-height: var(--subheadline-lh); overflow-wrap: break-word; }
.banner-title { color: var(--label); font-weight: 600; }
.banner-text { color: var(--label-secondary); }
.banner .capsule { margin-top: var(--space-1); padding: 0 var(--space-4); border-radius: var(--radius-full); font-weight: 600; }
.banner .check { min-height: var(--hit-min); }
.banner[data-tone="attention"] { background: var(--gap-soft); }
.banner[data-tone="attention"] .banner-glyph { background: var(--gap); }
.banner[data-tone="active"], .banner[data-tone="matched"] { background: var(--accent-soft); }
.banner[data-tone="active"] .banner-glyph, .banner[data-tone="matched"] .banner-glyph { background: var(--accent-text); }
.banner[data-tone="done"] { background: var(--paid-soft); }
.banner[data-tone="done"] .banner-glyph { background: var(--paid); }
.confirm .banner { margin: 0; }
.confirm .banner[data-tone="neutral"] { background: var(--fill); }
#bank-select { flex: 1; min-width: 0; }

/* State = glyph + word (design principle 7). The tone → colour map, as in
   Expent/UI/StatusLabel.swift and design/readme.md (State colours). */
.status { display: inline-flex; align-items: center; gap: 5px; font-size: var(--footnote-size); line-height: var(--footnote-lh); font-weight: 500; white-space: nowrap; }
/* A row's states stack, one per line (ExpenseRow.states). */
p.status { display: flex; width: fit-content; max-width: 100%; white-space: normal; }
p.status + p.status { margin-top: 2px; }
.status::before { content: ""; flex: none; width: 15px; height: 15px; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.tone-neutral { color: var(--label-secondary); }
.tone-active { color: var(--accent-text); }
.tone-matched { color: var(--matched); }
.tone-attention { color: var(--gap); }
.tone-done { color: var(--paid); }
.icon-clock { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E"); }
.icon-circle-check { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
.icon-badge-check { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
.icon-circle-alert { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' x2='12' y1='8' y2='12'/%3E%3Cline x1='12' x2='12.01' y1='16' y2='16'/%3E%3C/svg%3E"); }
.icon-file-text { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z'/%3E%3Cpath d='M14 2v4a2 2 0 0 0 2 2h4'/%3E%3Cpath d='M10 9H8'/%3E%3Cpath d='M16 13H8'/%3E%3Cpath d='M16 17H8'/%3E%3C/svg%3E"); }
.icon-send { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z'/%3E%3Cpath d='m21.854 2.147-10.94 10.939'/%3E%3C/svg%3E"); }
.icon-contrast { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 18a6 6 0 0 0 0-12v12z'/%3E%3C/svg%3E"); }
.icon-pencil-line { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z'/%3E%3Cpath d='m15 5 4 4'/%3E%3C/svg%3E"); }
.icon-circle-dot { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Ccircle cx='12' cy='12' r='1'/%3E%3C/svg%3E"); }
.icon-link { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E"); }
.icon-copy { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='14' height='14' x='8' y='8' rx='2' ry='2'/%3E%3Cpath d='M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2'/%3E%3C/svg%3E"); }

/* Statement import (EXP-15): counts, right-aligned, tabular. */
.summary { margin-top: var(--space-3); }
.count-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); }
.count-row strong { font-variant-numeric: var(--numeric); font-weight: 400; color: var(--label); text-align: right; }
.count-row .sender-how { flex: 1; }
#statements-section.dropping .group { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Paid (EXP-14; design reference iPhone 04): what came back, what is still
   owed, the credits behind it. Figures are the Worker's; nothing is added here. */
.paid { display: grid; gap: var(--space-1); padding: var(--space-3) var(--space-4); border-radius: var(--radius-lg); background: var(--bg-grouped); }
.paid .fine.left { margin: 0; }
.paid-figure { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2); }
.paid-figure .of { color: var(--label-secondary); font-variant-numeric: var(--numeric); }
.paid .count-row { margin: 0; padding-top: var(--space-2); border-top: 1px solid var(--separator); color: var(--label-secondary); }
.paid .count-row strong { font-weight: 600; }
.credits li { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-height: var(--hit-min); border-top: 1px solid var(--separator); font-size: var(--footnote-size); line-height: var(--footnote-lh); color: var(--label-secondary); font-variant-numeric: var(--numeric); }
.credits li span { min-width: 0; overflow-wrap: anywhere; }
.capture .owed-toggle { flex: none; }
.proposal { display: grid; gap: var(--space-2); }
/* A trip in parts (EXP-138): each part sent its own block under the trip,
   a rule above it; its name and total as one line, wrapping on a cover screen. */
.parts { display: flex; flex-direction: column; gap: var(--space-4); margin-top: var(--space-2); }
.parts[hidden] { display: none; }
.part { display: flex; flex-direction: column; gap: var(--space-2); padding-top: var(--space-4); border-top: 1px solid var(--separator); }
.part-head { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-1) var(--space-3); font-size: var(--headline-size); line-height: var(--headline-lh); font-weight: var(--headline-weight); color: var(--label); }
.part-head span:first-child { min-width: 0; overflow-wrap: anywhere; }
.part-head .amount { font-variant-numeric: var(--numeric); }
.part .part-meta { margin-top: 0; }
.part .send { margin: 0; }
.proposal .fine.left { margin: 0 var(--space-4); }
/* Lucide user: Looks personal (EXP-128), the design's Personal glyph. */
.icon-user { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E"); }
.icon-circle-help { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E"); }

/* Reports put away (EXP-49). */
.archived { margin-top: var(--space-4); }
.archived summary { min-height: var(--hit-min); display: flex; align-items: center; gap: var(--space-2); padding: 0 var(--space-4); color: var(--label-secondary); font-size: var(--footnote-size); cursor: pointer; list-style: none; }
.archived summary::-webkit-details-marker { display: none; }
.archived summary::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform var(--dur-fast) var(--ease-standard); }
.archived[open] summary::before { transform: rotate(45deg); }

/* Select mode, reports (EXP-49) and decisions (EXP-48): one bar on the
   screen's bottom edge, over the +, which select mode hides. It wraps when a
   selection has more answers than fit on a phone's width. */
body.selecting .add { display: none; }
body.selecting main { padding-bottom: calc(120px + env(safe-area-inset-bottom)); }
.select-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--space-1) var(--space-2); padding: var(--space-2) var(--space-3) calc(var(--space-2) + env(safe-area-inset-bottom)); background: var(--bg-elevated); border-top: 1px solid var(--separator); }
.select-bar .bar-note { flex: 1 0 100%; order: -1; padding: var(--space-1) 0; color: var(--label-secondary); font-size: var(--footnote-size); line-height: var(--footnote-lh); }
.select-bar .count { display: none; flex: 1; color: var(--label-secondary); font-size: var(--footnote-size); font-variant-numeric: var(--numeric); }
.select-bar #rb-all, .select-bar #db-all { margin-right: auto; padding-left: 0; }
.select-bar button { white-space: nowrap; }
.select-bar button:not(.plain) { padding: 0 var(--space-3); border-radius: var(--radius-md); }
.select-bar button.neutral { background: var(--fill); color: var(--label); }
.select-bar button.neutral.destructive { color: var(--destructive); }
@media (min-width: 30rem) {
  .select-bar { justify-content: center; padding-left: var(--space-4); padding-right: var(--space-4); }
  .select-bar .count { display: block; }
  .select-bar #rb-all, .select-bar #db-all { margin-right: 0; }
}

/* The tab bar (design/readme.md · Navigation): Inbox, Expenses, Reports,
   Settings, as RootView.swift. On a phone it is the bottom bar and the + and
   select bars sit on it; from 64rem it is the sidebar, as on iPad and Mac. */
:root { --tabbar-h: calc(62px + max(var(--space-2), env(safe-area-inset-bottom))); }
#signed-in { padding-bottom: calc(var(--tabbar-h) + 88px); }
/* Floating, as iOS draws its tab bar: a capsule of material off the edges. */
.tabbar {
  position: fixed;
  left: max(var(--space-4), env(safe-area-inset-left));
  right: max(var(--space-4), env(safe-area-inset-right));
  bottom: max(var(--space-2), env(safe-area-inset-bottom));
  z-index: 2;
  display: flex;
  padding: 4px;
  border-radius: var(--radius-full);
  background: var(--material-bar);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid var(--separator);
  box-shadow: var(--shadow-popover);
}
.tabbar a {
  flex: 1;
  min-height: 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: var(--radius-full);
  color: var(--label);
  font-size: var(--caption-2-size);
  line-height: var(--caption-2-lh);
  font-weight: 600;
  text-decoration: none;
}
.tabbar a[aria-current="page"] { color: var(--accent-text); background: var(--fill); }
.tabbar a:active { opacity: 0.6; }
.tab-glyph { position: relative; }
/* The Inbox count: what needs a decision, as RootView.swift's badge. */
.badge { position: absolute; top: -6px; left: 16px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--destructive); color: var(--label-on-accent); font-size: var(--caption-1-size); line-height: 18px; font-weight: 600; text-align: center; font-variant-numeric: var(--numeric); -webkit-mask: none; mask: none; }
.tab-glyph { width: 26px; height: 26px; }
.tab-glyph::before { content: ""; position: absolute; inset: 0; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.add-toggle { bottom: calc(var(--tabbar-h) + var(--space-4)); }
.add-items { bottom: calc(var(--tabbar-h) + var(--space-4) + 56px + var(--space-4)); }
.view-head { margin-bottom: var(--space-2); }
.view-head h1 { margin: 0 auto 0 0; }
.view-head button { align-self: center; }
/* Discard sits quiet beside a row whose tap is Confirm. */
button.plain.quiet { color: var(--label-secondary); }
@media (min-width: 64rem) {
  .tabbar {
    top: 0;
    right: auto;
    width: 15rem;
    flex-direction: column;
    gap: var(--space-1);
    padding: calc(var(--space-12) + 48px) var(--space-3) var(--space-4);
    border-top: 0;
    border-right: 1px solid var(--separator);
  }
  .tabbar a { flex: none; flex-direction: row; justify-content: flex-start; gap: var(--space-3); min-height: var(--hit-min); padding: 0 var(--space-3); border-radius: var(--radius-sm); font-size: var(--body-size); line-height: var(--body-lh); font-weight: 400; color: var(--label); }
  .tabbar a[aria-current="page"] { background: var(--fill); color: var(--label); }
  .tab-glyph { color: var(--accent-text); }
  .tab-glyph { width: 20px; height: 20px; }
  .tabbar { left: 0; bottom: 0; border-radius: 0; border-width: 0 1px 0 0; box-shadow: none; padding: calc(var(--space-12) + 48px) var(--space-3) var(--space-4); }
  .tabbar a { border-radius: var(--radius-sm); font-weight: 400; }
  .tabbar a { position: relative; }
  .tab-glyph { position: static; }
  .tab-glyph::before { position: static; display: block; width: 100%; height: 100%; }
  .badge { top: 13px; left: auto; right: var(--space-3); }
  #signed-in { margin-left: 15rem; max-width: 48rem; padding-bottom: 88px; }
  .add-toggle { bottom: max(var(--space-4), env(safe-area-inset-bottom)); }
  .add-items { bottom: calc(max(var(--space-4), env(safe-area-inset-bottom)) + 56px + var(--space-4)); }
}
.icon-tray { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='22 12 16 12 14 15 10 15 8 12 2 12'/%3E%3Cpath d='M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z'/%3E%3C/svg%3E"); }
.icon-list-checks { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 17 2 2 4-4'/%3E%3Cpath d='m3 7 2 2 4-4'/%3E%3Cpath d='M13 6h8'/%3E%3Cpath d='M13 12h8'/%3E%3Cpath d='M13 18h8'/%3E%3C/svg%3E"); }
.icon-settings { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }

/* The bank, quietly (EXP-50): its one line sits apart from the Inbox's decisions. */
#gaps-block { margin-top: var(--space-4); }
.gaps-head { min-height: 0; }

/* A card per day, as the iOS Inbox draws them: the day above, outside. */
.group.captures:has(> .day) { background: transparent; border-radius: 0; overflow: visible; }
.group.captures:has(> .day) > .day { padding: var(--space-5) var(--space-4) var(--space-2); font-size: var(--subheadline-size); line-height: var(--subheadline-lh); }
.group.captures:has(> .day) > .day:first-child { padding-top: var(--space-2); }
.group.captures:has(> .day) > .row { background: var(--bg-elevated); }
.group.captures:has(> .day) > .day + .row { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.group.captures:has(> .day) > .row:has(+ .day), .group.captures:has(> .day) > .row:has(+ .section-note), .group.captures:has(> .day) > .row:last-child { border-bottom-left-radius: var(--radius-lg); border-bottom-right-radius: var(--radius-lg); }
.group.captures:has(> .day) > .day + .row:has(+ .day), .group.captures:has(> .day) > .day + .row:has(+ .section-note), .group.captures:has(> .day) > .day + .row:last-child { border-radius: var(--radius-lg); }
.group.captures:has(> .day) .capture { min-height: 76px; padding-top: var(--space-4); padding-bottom: var(--space-4); }
/* The phone has the tab bar for a title; the wordmark is for the sidebar. */
main > .wordmark { display: none; }
.running { margin-bottom: var(--space-4); }
@media (min-width: 64rem) {
  main > .wordmark { display: inline-flex; }
}
.group.captures:has(> .day) .capture { align-items: flex-start; }

/* Swipe actions (design principle 8, as the apps' .swipeActions): the row's
   face slides over its actions; a long press or right-click lists them. */
.row.swipe { position: relative; overflow: hidden; display: block; padding: 0 !important; min-height: 0; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.swipe-face { position: relative; z-index: 1; background: var(--bg-elevated); touch-action: pan-y pinch-zoom; will-change: transform; }
.swipe-face.settling { transition: transform var(--dur-base) var(--ease-standard); }
.swipe-face.row { border-top: 0 !important; }
/* A pixel in from the row's edges: at rest the face covers them whole, so no red
   hairline shows through its antialiased edge (plainest on EXP-53's report cards). */
.swipe-actions { position: absolute; top: 1px; bottom: 1px; display: flex; }
.row.swipe:not(.swiping) > .swipe-actions { visibility: hidden; }
.swipe-actions.leading { left: 1px; }
.swipe-actions.trailing { right: 1px; flex-direction: row-reverse; }
.swipe-action { min-width: 76px; height: 100%; padding: 0 var(--space-4); border-radius: 0; font-size: var(--web-control-font); font-weight: 600; color: var(--label-on-accent); }
.swipe-action.act-neutral { background: var(--label-tertiary); }
.swipe-action.act-accent { background: var(--accent); }
.swipe-action.act-destructive { background: var(--destructive); }
.swipe-action:active { opacity: 0.6; }
@media (prefers-reduced-motion: reduce) { .swipe-face.settling { transition: none; } }

.context-menu { position: fixed; z-index: 20; min-width: 13rem; padding: var(--space-1) 0; border-radius: 14px; background: var(--bg-elevated); border: 1px solid var(--separator); box-shadow: var(--shadow-popover); display: flex; flex-direction: column; }
.context-menu button { justify-content: flex-start; width: 100%; border-radius: 0; background: transparent; color: var(--label); font-weight: 400; }
.context-menu button + button { border-top: 1px solid var(--separator); }
.context-menu button.act-destructive { color: var(--destructive); }
.context-menu button:active { background: var(--fill); }

/* Add to an existing expense (EXP-66) and Pair (EXP-130): receipt rows (EXP-154), each a 44px target at least, edge to edge in the sheet. */
.attach-list { list-style: none; margin: 0; padding: 0; max-height: 50vh; overflow-y: auto; }
.attach-list .row { padding-left: 0; padding-right: 0; }
.attach-list .group { padding: var(--space-2) 0 var(--space-1); }
/* The line exactly as the bank sent it (EXP-152): selectable, to search for in the bank's own app. */
.bank-line.statement { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; user-select: text; overflow-wrap: anywhere; margin: 0; }
.receipts-edit .receipt { display: flex; align-items: center; justify-content: space-between; min-height: var(--hit-min); gap: var(--space-2); }
.icon-circle-dashed { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.1 2.182a10 10 0 0 1 3.8 0'/%3E%3Cpath d='M13.9 21.818a10 10 0 0 1-3.8 0'/%3E%3Cpath d='M17.609 3.721a10 10 0 0 1 2.69 2.7'/%3E%3Cpath d='M2.182 13.9a10 10 0 0 1 0-3.8'/%3E%3Cpath d='M20.279 17.609a10 10 0 0 1-2.7 2.69'/%3E%3Cpath d='M21.818 10.1a10 10 0 0 1 0 3.8'/%3E%3Cpath d='M3.721 6.391a10 10 0 0 1 2.7-2.69'/%3E%3Cpath d='M6.391 20.279a10 10 0 0 1-2.69-2.7'/%3E%3C/svg%3E"); }
.icon-sparkle { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z'/%3E%3C/svg%3E"); }
.icon-check { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.icon-x { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18'/%3E%3Cpath d='m6 6 12 12'/%3E%3C/svg%3E"); }
.icon-at-sign { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8'/%3E%3C/svg%3E"); }
.icon-mail { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='16' x='2' y='4' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E"); }
.icon-bed-double { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 20v-8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v8'/%3E%3Cpath d='M4 10V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4'/%3E%3Cpath d='M12 4v6'/%3E%3Cpath d='M2 18h20'/%3E%3C/svg%3E"); }
.icon-plane { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z'/%3E%3C/svg%3E"); }
.icon-tram-front { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='16' height='16' x='4' y='3' rx='2'/%3E%3Cpath d='M4 11h16'/%3E%3Cpath d='M12 3v8'/%3E%3Cpath d='m8 19-2 3'/%3E%3Cpath d='m18 22-2-3'/%3E%3Cpath d='M8 15h.01'/%3E%3Cpath d='M16 15h.01'/%3E%3C/svg%3E"); }
.icon-car { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2'/%3E%3Ccircle cx='7' cy='17' r='2'/%3E%3Cpath d='M9 17h6'/%3E%3Ccircle cx='17' cy='17' r='2'/%3E%3C/svg%3E"); }
.icon-utensils { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2'/%3E%3Cpath d='M7 2v20'/%3E%3Cpath d='M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7'/%3E%3C/svg%3E"); }
.icon-paperclip { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13.234 20.252 21 12.3'/%3E%3Cpath d='m16 6-8.414 8.586a2 2 0 0 0 0 2.828 2 2 0 0 0 2.828 0l8.414-8.586a4 4 0 0 0 0-5.656 4 4 0 0 0-5.656 0l-8.415 8.585a6 6 0 1 0 8.486 8.486'/%3E%3C/svg%3E"); }
.icon-tag { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z'/%3E%3Ccircle cx='7.5' cy='7.5' r='.5' fill='black'/%3E%3C/svg%3E"); }

/* ── Settings as a hub (EXP-117), as SettingsView.swift ── */
/* The account, then a row per page on a glyph tile; #settings/<page> opens one. */
#settings-hub .group + .group { margin-top: var(--space-5); }
a.settings-row { display: flex; align-items: center; gap: var(--space-3); min-height: var(--hit-min); color: var(--label); text-decoration: none; }
a.settings-row::after { content: ""; flex: none; width: 14px; height: 14px; background: var(--label-tertiary); -webkit-mask: var(--chevron-right) center / contain no-repeat; mask: var(--chevron-right) center / contain no-repeat; }
a.settings-row:active { background: var(--fill-pressed); }
.settings-tile { position: relative; flex: none; width: 29px; height: 29px; border-radius: 27%; background: var(--accent); }
.settings-tile::before { content: ""; position: absolute; inset: 22%; background: var(--label-on-accent); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.settings-hint { flex: none; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--label-secondary); font-size: var(--subheadline-size); }
.settings-hint.status { font-size: var(--footnote-size); }
.account-row { padding-top: var(--space-3); padding-bottom: var(--space-3); }
.account-row .settings-words { display: flex; flex-direction: column; white-space: normal; }
.account-row strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-row small { color: var(--label-secondary); font-size: var(--footnote-size); line-height: var(--footnote-lh); }
.account-glyph { flex: none; width: 44px; height: 44px; background: var(--accent); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.settings-page > .back { display: inline-flex; align-items: center; gap: 2px; min-height: var(--hit-min); color: var(--accent-text); text-decoration: none; }
.settings-page > .back::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--chevron-left) center / contain no-repeat; mask: var(--chevron-left) center / contain no-repeat; }
.settings-page > .page-title { margin: 0 0 var(--space-3); font-size: var(--title-2-size); line-height: var(--title-2-lh); font-weight: 600; color: var(--label); text-transform: none; letter-spacing: 0; padding: 0; }
.payer-row .default.icon-check { flex: none; width: 18px; height: 18px; font-size: 0; background: var(--accent-text); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
:root {
  --chevron-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
  --chevron-left: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 18-6-6 6-6'/%3E%3C/svg%3E");
}
.icon-landmark { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='3' x2='21' y1='22' y2='22'/%3E%3Cline x1='6' x2='6' y1='18' y2='11'/%3E%3Cline x1='10' x2='10' y1='18' y2='11'/%3E%3Cline x1='14' x2='14' y1='18' y2='11'/%3E%3Cline x1='18' x2='18' y1='18' y2='11'/%3E%3Cpolygon points='12 2 20 7 4 7'/%3E%3C/svg%3E"); }
.icon-users { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E"); }
.icon-bell { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9'/%3E%3Cpath d='M10.3 21a1.94 1.94 0 0 0 3.4 0'/%3E%3C/svg%3E"); }

/* Sending to Emerald (EXP-137): a spinner beside the running count, and the checks. */
.emerald-progress { display: flex; align-items: center; gap: 0.5em; }
.spinner { width: 1em; height: 1em; border: 0.15em solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spinner-turn var(--dur-slow) linear infinite; }
@keyframes spinner-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
.emerald-checks { list-style: none; padding: 0; margin: 0.5em 0; }
.emerald-checks li::before { content: "✓ "; }
.emerald-checks li.hold { color: var(--gap); }
.emerald-checks li.hold::before { content: "! "; }
/* Lucide cloud-off: offline (design · Iconography, Offline saved), on a banner (EXP-118). */
.icon-cloud-off { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2 2 20 20'/%3E%3Cpath d='M5.782 5.782A7 7 0 0 0 9 19h8.5a4.5 4.5 0 0 0 1.307-.193'/%3E%3Cpath d='M21.532 16.5A4.5 4.5 0 0 0 17.5 10h-1.79A7.008 7.008 0 0 0 10 5.07'/%3E%3C/svg%3E"); }
/* Lucide search: a dialog's search that found nothing (EXP-118). */
.icon-search { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E"); }

/* The unfolded iPhone Duo held sideways (EXP-167, the app's FoldLayout): a
   window 900–1079px wide and wider than tall has its crease down the middle.
   The list keeps the left screen and a dialog (Confirm, a report, an edit)
   opens on the right, a 12px gutter each side of the fold, as the app puts
   the page beside its list. An iPad held sideways (1133px and up) isn't one. */
/* max-width: from 1080px a window's middle isn't a fold (FoldLayout.maxWidth). */
@media (min-width: 56.25rem) and (max-width: 67.49rem) and (orientation: landscape) {
  #signed-in { max-width: calc(50vw - 12px); margin-left: 0; margin-right: auto; }
  .confirm { width: min(30rem, calc(50vw - 12px - var(--space-4))); margin: auto max(var(--space-4), env(safe-area-inset-right)) auto calc(50vw + 12px); }
}
/* Held upright the crease runs across the middle: a dialog starts at the top
   rather than centring on it. 900–1079px tall and at least 600px wide is the
   inner screen; the cover screen is under 900px tall, an iPad over 1080. */
/* max-height: from 1080px tall a window's middle isn't a fold. */
@media (min-height: 56.25rem) and (max-height: 67.49rem) and (min-width: 37.5rem) and (orientation: portrait) {
  .confirm { margin-top: max(var(--space-6), env(safe-area-inset-top)); margin-bottom: auto; }
}
