@font-face {
  font-family: "Geist";
  src: url("fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  src: url("fonts/geist-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* Role tokens mirror the Ube scheme in shared/.../ui/theme/Color.kt.
   Components use roles only, never swatch names, so both themes hold contrast. */
:root {
  --bg: #0A0810;
  --surface-low: #110D17;
  --surface: #1A1422;
  --surface-high: #221A2D;
  --surface-highest: #2D2439;
  --outline-variant: #3A2F4C;
  --on-surface: #F4F0F8;
  --on-surface-variant: #A39AB6;
  --primary: #CBB6FF;
  --primary-hover: #E8DEFF;
  --primary-text: #CBB6FF;
  --on-primary: #26134A;
  --primary-container: #3A1F66;
  --on-primary-container: #F4F0F8;
  --on-primary-container-variant: #E8DEFF;
  --confirmed: #7443E6;
  --on-confirmed: #F4F0F8;
  --dot: rgba(203, 182, 255, 0.16);
  --tint: rgba(58, 31, 102, 0.35);

  --sans: "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --serif: "Fraunces", Georgia, serif;

  --gutter: clamp(20px, 5vw, 64px);
  --wrap: 1240px;
  --section: clamp(88px, 11vw, 152px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Radius rule from DESIGN.md: chips 10, tray 18, cards 24, hero surfaces 28, controls full. */
  --r-tray: 18px;
  --r-card: 24px;
  --r-hero: 28px;

  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #F4F0F8;
    --surface-low: #EEE8F4;
    --surface: #E8E1F0;
    --surface-high: #E2DAEB;
    --surface-highest: #DBD2E6;
    --outline-variant: #CEC4DC;
    --on-surface: #110D17;
    --on-surface-variant: #5F5675;
    --primary: #7443E6;
    --primary-hover: #6B38DD;
    --primary-text: #5310C5;
    --on-primary: #F4F0F8;
    --primary-container: #E8DEFF;
    --on-primary-container: #26134A;
    --on-primary-container-variant: #3A1F66;
    --confirmed: #7443E6;
    --on-confirmed: #F4F0F8;
    --dot: rgba(116, 67, 230, 0.13);
    --tint: rgba(116, 67, 230, 0.08);
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--on-surface);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
::selection { background: var(--primary); color: var(--on-primary); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
p { text-wrap: pretty; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
small { font-size: 1em; }
em { font-style: normal; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 8px; }
.icon { width: 20px; height: 20px; flex: none; fill: currentColor; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 3;
  padding: 10px 16px; border-radius: 999px;
  background: var(--primary); color: var(--on-primary); font-weight: 500; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Shared display type: Fraunces is voice only (DESIGN.md), Geist carries the rest. */
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.025em; }
h1 em, h2 em { font-style: italic; color: var(--primary); }
h2 { font-size: clamp(2.25rem, 4.6vw, 3.75rem); line-height: 1.08; padding-bottom: 0.06em; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px 0 22px; border-radius: 999px;
  background: var(--primary); color: var(--on-primary);
  font: 500 1.0625rem/1 var(--sans); text-decoration: none; white-space: nowrap;
  transition: background-color 0.2s, transform 0.2s var(--ease-out);
}
.btn:hover { background: var(--primary-hover); }
.btn:active { transform: scale(0.97); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 0.9375rem; }
.btn-lg { min-height: 60px; padding: 0 34px 0 28px; font-size: 1.125rem; }
.link {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px;
  color: var(--primary); font-weight: 500; text-decoration: none;
}
.link .icon { transition: transform 0.25s var(--ease-out); }
.link:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.link:hover .icon { transform: translateX(3px); }
.text-btn {
  min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: none;
  color: var(--primary-text); font-weight: 500; cursor: pointer;
}
.text-btn:hover { background: var(--surface-highest); }

/* Header */
.top {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 32px;
  max-width: calc(var(--wrap) + 2 * var(--gutter)); height: 72px; margin: 0 auto; padding: 0 var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1.375rem/1 var(--sans); letter-spacing: -0.03em; }
.brand-mark { width: 30px; height: 30px; color: var(--primary); }
.top nav { display: flex; gap: 28px; margin-left: auto; }
.top nav a, .foot nav a { color: var(--on-surface-variant); text-decoration: none; font-size: 0.9375rem; transition: color 0.2s; }
.top nav a:hover, .foot nav a:hover { color: var(--on-surface); }

/* Ring and tick: the product's core pair */
.ring {
  display: inline-block; flex: none;
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--primary);
}
.tick {
  display: inline-grid; place-items: center; flex: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--confirmed); color: var(--on-confirmed);
}
.tick svg { width: 16px; height: 16px; fill: currentColor; }

.avatar {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface-highest); color: var(--on-surface-variant);
  font: 600 0.9375rem/1 var(--sans);
}
.money { font-weight: 500; white-space: nowrap; letter-spacing: -0.01em; }
.money.in { color: var(--primary-text); }

/* Hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: center;
  max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto;
  padding: clamp(32px, 6vw, 88px) var(--gutter) clamp(56px, 7vw, 96px);
}
h1 { font-size: clamp(3.25rem, 7vw, 6.25rem); line-height: 1.02; padding-bottom: 0.08em; }
.lede { max-width: 30em; margin-top: 22px; font-size: clamp(1.0625rem, 1.5vw, 1.3125rem); color: var(--on-surface-variant); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 34px; }

.hero-visual { display: grid; gap: 14px; }
.hero-visual figcaption { font-size: 0.875rem; color: var(--on-surface-variant); padding-left: 8px; }

/* The shade: pings fold into drafts */
.shade {
  position: relative;
  padding: 14px 14px 6px;
  background: var(--surface-high);
  border-radius: var(--r-hero);
}
.pings { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.item {
  display: grid; grid-template-columns: 40px 1fr auto 22px; align-items: center; column-gap: 14px;
  padding: 14px 18px;
  background: var(--surface-highest);
  border-radius: var(--r-tray);
}
.item .avatar { background: var(--surface-high); }
.as-ping { grid-column: 2 / -1; display: grid; gap: 1px; min-width: 0; }
.as-ping .meta { font: 500 0.6875rem/1.6 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-surface-variant); }
.as-ping strong { font-weight: 500; letter-spacing: -0.01em; }
.as-ping span:last-child { font-size: 0.9375rem; }
.as-row, .as-row-block { display: none; min-width: 0; }
.as-row strong { display: block; font-weight: 500; letter-spacing: -0.01em; }
.as-row span { font-size: 0.875rem; color: var(--on-surface-variant); }
.as-row em, .row-text em { color: var(--primary-text); white-space: nowrap; }

.shade[data-state="drafts"] .item { padding: 10px 8px; background: transparent; }
.shade[data-state="drafts"] .item .avatar { background: var(--surface-highest); }
.shade[data-state="drafts"] .as-ping { display: none; }
.shade[data-state="drafts"] .as-row { display: block; }
.shade[data-state="drafts"] .as-row.money,
.shade[data-state="drafts"] .as-row.ring { display: inline-block; }
.shade[data-state="drafts"] .as-row-block { display: flex; }
.tray {
  align-items: center; gap: 12px;
  margin-top: 8px; padding: 12px 16px;
  background: var(--surface-low); border-radius: var(--r-tray);
  font-size: 0.9375rem; color: var(--on-surface-variant);
}
.tray strong { color: var(--on-surface); font-weight: 500; }

.handle {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  width: min(220px, 100%); min-height: 56px; margin: 6px auto 0; padding: 10px 0 8px; border: 0; border-radius: var(--r-tray);
  background: none; cursor: grab; touch-action: none;
  transition: background-color 0.2s;
}
.handle:hover { background: var(--surface-highest); }
.handle:active { cursor: grabbing; }
.handle-bar { width: 56px; height: 5px; border-radius: 999px; background: var(--primary); transition: transform 0.3s var(--ease-out); }
.handle:hover .handle-bar { transform: scaleX(1.2); }
.handle-label { font: 500 0.75rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-surface); }

::view-transition-group(*) { animation-duration: 0.55s; animation-timing-function: var(--ease-out); }

/* Ledger demo */
.ledger {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 7vw, 112px); align-items: center;
  max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto;
  padding: var(--section) var(--gutter);
}
.ledger-demo { background: var(--surface); border-radius: var(--r-card); padding: 12px 12px 6px; }
.balance { padding: 22px; border-radius: var(--r-hero); background: var(--primary-container); color: var(--on-primary-container); }
.balance-label { font-size: 0.9375rem; color: var(--on-primary-container-variant); }
.balance-value {
  margin-top: 6px; transform-origin: left center;
  font: 600 clamp(2.25rem, 4.4vw, 2.875rem)/1.05 var(--sans); letter-spacing: -0.035em;
}
.pending {
  display: flex; align-items: center; gap: 12px;
  margin-top: 18px; padding: 12px 14px; border-radius: var(--r-tray);
  background: var(--surface-low); color: var(--on-surface-variant); font-size: 0.9375rem;
}
.pending strong { color: var(--on-surface); font-weight: 500; }
.pending.clear .ring { display: none; }
.rows { list-style: none; margin: 8px 0 0; padding: 0; }
.row {
  display: grid; grid-template-columns: 40px 1fr auto 48px; align-items: center; column-gap: 14px;
  padding: 8px 4px 8px 10px; border-radius: var(--r-tray);
  transition: background-color 0.4s var(--ease-out);
}
.row-text { min-width: 0; }
.row-text strong { display: block; font-weight: 500; letter-spacing: -0.01em; }
.row-text span { font-size: 0.875rem; color: var(--on-surface-variant); }
.row.done { background: var(--tint); }
.row.done .row-text em { color: var(--on-surface-variant); }
.confirm {
  position: relative; display: grid; place-items: center;
  width: 48px; height: 48px; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%;
}
.confirm::before {
  content: ""; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--primary);
  transition: background-color 0.3s var(--ease-out), border-color 0.3s, transform 0.3s var(--ease-out);
}
.confirm svg {
  position: absolute; width: 16px; height: 16px; fill: var(--on-confirmed);
  transform: scale(0); transition: transform 0.35s var(--ease-out) 0.08s;
}
.confirm:hover::before { transform: scale(1.12); }
.confirm:active::before { transform: scale(0.92); }
.confirm[aria-pressed="true"]::before { background: var(--confirmed); border-color: var(--confirmed); }
.confirm[aria-pressed="true"] svg { transform: scale(1); }
.demo-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 4px 6px 4px 10px; }
.demo-foot p { font-size: 0.8125rem; color: var(--on-surface-variant); }

.ledger-copy p { margin-top: 22px; max-width: 30em; color: var(--on-surface-variant); }
.ledger-copy p strong { color: var(--on-surface); font-weight: 500; }

/* Showcase: one centred composition, tablet with the phone overlapping its corner */
.showcase {
  max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto;
  padding: var(--section) var(--gutter);
  text-align: center;
}
.showcase h2 { max-width: 16em; margin: 0 auto; }
.screens {
  position: relative;
  width: min(1040px, 100%); margin: clamp(48px, 6vw, 80px) auto 0;
  padding-left: clamp(0px, 9vw, 128px);
}
.screens img { border: 1px solid var(--outline-variant); }
.screen-tablet { width: 100%; border-radius: var(--r-card); }
.screen-phone {
  position: absolute; left: 0; bottom: -12%;
  width: clamp(130px, 25%, 260px); border-radius: var(--r-hero);
  box-shadow: 0 24px 60px -24px rgba(10, 8, 16, 0.55);
}
.caption { max-width: 34em; margin: clamp(72px, 10vw, 128px) auto 0; font-size: 0.9375rem; color: var(--on-surface-variant); }

/* How it works: sticky heading beside the steps */
.how {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 112px); align-items: start;
  max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto;
  padding: var(--section) var(--gutter);
}
.how-head { position: sticky; top: 48px; }
.how h2 { font-family: var(--sans); font-weight: 600; letter-spacing: -0.035em; font-size: clamp(2.25rem, 4.2vw, 3.5rem); line-height: 1.05; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(40px, 5vw, 64px); }
.step { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 24px; }
.step-icon {
  grid-row: span 2;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--primary-container); color: var(--on-primary-container);
}
.step-icon svg { width: 26px; height: 26px; fill: currentColor; }
.step h3 { font-weight: 500; font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1.25; padding-top: 12px; }
.step p { margin-top: 10px; max-width: 34em; color: var(--on-surface-variant); }

/* Why: bento, 1+1+1 / 1+2 */
.why {
  max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto;
  padding: var(--section) var(--gutter);
}
.why h2 { max-width: 14em; }
.bento {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
  margin-top: clamp(40px, 5vw, 64px);
}
.cell {
  display: grid; align-content: start; gap: 10px;
  padding: clamp(24px, 3vw, 36px); border-radius: var(--r-card);
  background: var(--surface);
}
.cell h3 { font-weight: 600; font-size: 1.1875rem; line-height: 1.3; letter-spacing: -0.015em; }
.cell p { color: var(--on-surface-variant); font-size: 1rem; }
.cell-icon { width: 28px; height: 28px; margin-bottom: 14px; fill: var(--primary); }
.cell-decide { background: var(--primary-container); color: var(--on-primary-container); }
.cell-decide p { color: var(--on-primary-container-variant); }
.flow { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.flow .icon { fill: currentColor; opacity: 0.6; }
.flow .ring, .flow .tick { width: 30px; height: 30px; }
.flow .tick svg { width: 20px; height: 20px; }
.cell-outline { background: none; border: 1px solid var(--outline-variant); }
.cell-sum {
  grid-column: span 2;
  align-content: end; gap: 16px;
  background: var(--surface-high);
}
.cell .sum { font: 600 clamp(2rem, 4vw, 3.25rem)/1.05 var(--sans); letter-spacing: -0.04em; color: var(--on-surface); white-space: nowrap; }
.cell-sum h3 + p { margin-top: 8px; }

/* Privacy: framed night art. The frame keeps its own fixed dark palette in both themes. */
.privacy {
  max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto;
  padding: var(--section) var(--gutter);
}
.night {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--r-hero);
  background: #0A0810; color: #F4F0F8;
}
.night::before {
  content: ""; position: absolute; inset: 0 0 45%; z-index: 1; pointer-events: none;
  background: linear-gradient(#0A0810 0%, rgba(10, 8, 16, 0.82) 45%, rgba(10, 8, 16, 0));
}
.night img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; object-position: center bottom; }
.night-copy {
  position: absolute; inset: 0 0 auto; z-index: 2;
  display: grid; justify-items: center; gap: 24px; text-align: center;
  padding: clamp(36px, 6vw, 88px) 24px 0;
}
.night-copy h2 { font-size: clamp(2.25rem, 5.4vw, 4.25rem); }
.night-copy h2 em { color: #CBB6FF; }
.waiting {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 16px 8px 12px; border-radius: 999px;
  background: #110D17; border: 1px solid #3A2F4C; font-size: 0.9375rem; font-weight: 500;
}
.waiting .brand-mark { width: 20px; height: 20px; color: #CBB6FF; }
.waiting .ring { width: 14px; height: 14px; border-color: #CBB6FF; }
.facts {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px 24px;
  list-style: none; margin: 32px 0 20px; padding: 0;
}
.facts li { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; line-height: 1.4; }
.facts .icon { margin-top: 1px; fill: var(--primary); }

/* Install panel */
.install { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) var(--section); }
.install-panel {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: end;
  padding: clamp(32px, 5vw, 72px); border-radius: var(--r-hero);
  background:
    radial-gradient(circle, var(--dot) 1.6px, transparent 2px) 0 0 / 14px 14px,
    var(--primary-container);
  color: var(--on-primary-container);
}
.install-mark { width: clamp(64px, 8vw, 104px); height: clamp(64px, 8vw, 104px); color: var(--on-primary-container); }
.install h2 { margin-top: 24px; font-style: italic; font-size: clamp(2.5rem, 5.4vw, 4.5rem); }
.install-side { display: grid; justify-items: start; gap: 16px; }
.install-side p { color: var(--on-primary-container-variant); font-size: 0.9375rem; }
.install-side .prerelease { margin-top: 8px; padding-top: 16px; border-top: 1px solid currentColor; border-top-color: color-mix(in srgb, currentColor 25%, transparent); }
.install-side strong { color: var(--on-primary-container); font-weight: 600; }

/* Footer */
.foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px;
  max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto;
  padding: 32px var(--gutter) 48px;
  border-top: 1px solid var(--outline-variant);
}
.foot .brand { font-size: 1.125rem; }
.foot .brand-mark { width: 24px; height: 24px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* Motion: entrance and scroll reveal. Hidden states exist only with JS and motion allowed. */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .hero-visual { animation: rise 0.9s var(--ease-out) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.06s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.14s; }
  .hero-visual { animation-delay: 0.3s; }
  html.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
  html.js [data-reveal].in { opacity: 1; transform: none; }
  .breathe { animation: breathe 3.2s ease-in-out infinite; }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes breathe { 50% { transform: scale(0.8); opacity: 0.55; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}

/* Tablet and below: single column */
@media (max-width: 960px) {
  .top nav { display: none; }
  .top .btn-sm { margin-left: auto; }
  .hero, .ledger, .how { grid-template-columns: minmax(0, 1fr); }
  .how-head { position: static; }
  .bento { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cell-sum { grid-column: 1 / -1; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .install-panel { grid-template-columns: minmax(0, 1fr); align-items: start; }
}

/* Phone */
.nowrap { white-space: nowrap; }
.as-row.money { white-space: nowrap; }
@media (max-width: 640px) {
  .hero { padding-top: 16px; }
  .item { grid-template-columns: 40px 1fr auto 22px; column-gap: 12px; padding: 12px 14px; }
  .row { column-gap: 10px; }
  .screens { padding-left: 0; }
  .screen-phone { position: relative; left: auto; bottom: auto; width: 62%; margin: -22% 0 0 auto; }
  .caption { margin-top: 32px; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .night img { aspect-ratio: 3 / 4; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .cell .sum { white-space: normal; }
}

/* Narrow: amounts stack below the text, as in the app's Recent list. */
@media (max-width: 420px) {
  .row { grid-template-columns: 40px minmax(0, 1fr) 48px; grid-template-areas: "avatar text confirm" "avatar amount confirm"; }
  .row .avatar { grid-area: avatar; }
  .row-text { grid-area: text; }
  .row .money { grid-area: amount; justify-self: start; }
  .row .confirm { grid-area: confirm; }
}

@media (max-width: 360px) {
  .shade { padding: 10px 8px 6px; }
  .item { grid-template-columns: 32px 1fr auto 22px; column-gap: 8px; padding: 10px 8px; }
  .item .avatar { width: 32px; height: 32px; }
}
