/* fonts served by the app itself (no outside requests); both under the SIL Open Font License, see public/fonts */
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/atkinson-hyperlegible-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/atkinson-hyperlegible-latin-400-italic.woff2) format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/atkinson-hyperlegible-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: italic; font-weight: 700; font-display: swap; src: url(/fonts/atkinson-hyperlegible-latin-700-italic.woff2) format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/bricolage-grotesque-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/bricolage-grotesque-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/bricolage-grotesque-latin-700-normal.woff2) format('woff2'); }
:root {
  /* Moosou: ink on cream, from the logo artwork */
  --ink: #141414;
  --ink-soft: #4A4A4A;
  --paper: #FFFFFF;      /* page */
  --card: #FFFFFF;
  --soft: #F3ECDF;       /* highlights and panels in the logo's cream: toggles, boxes, voice note, current tab */
  --line: #E6DED0;
  --accent: #8A3B22;     /* rust, used sparingly: the partner in charts, links */
  --accent-soft: #F3E4DC;
  --moss: #3E6B4E;
  --amber: #9A6213;
  --amber-soft: #F7EAD2;
  --c1: #1baf7a; --c2: #eb6834; --c3: #6250d6; --c4: #eda100; --c5: #e87ba4; --c-other: #B8B0A4;   /* category chart (checked for colour-blind readers) */
  --todo: #A69C8F;       /* entries still to finish: warm grey dashed frame */
  --todo-ink: #141414;   /* their "$ ___" */
  --todo-dot: #C2333F;   /* the red dot in front: a cool red, apart from Alica's rust */
  --danger: #A3341F;
  --pa: #8A3B22;         /* first person (rust) */
  --pb: #2F5C8F;
  --pa-soft: #F2D9CD;     /* row tint: carried by the first person alone */
  --pb-soft: #E3ECF6;     /* row tint: carried by the second person alone (rust/blue stay apart for colour-blind eyes too) */
  /* next colours for bigger groups (3rd, 4th person): sage #4F6F3A / #DCE6D2 and plum #7A3E6A / #EBD9E6 */
  --logo-bg: #F3ECDF;    /* the logo's cream */
  --logo-ink: #141414;
  --display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --body: 'Atkinson Hyperlegible', ui-sans-serif, system-ui, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}
/* dark: follows the phone unless chosen in Settings (html[data-theme="light" | "dark"]) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #F3ECDF; --ink-soft: #B8B0A4; --paper: #171513; --card: #211E1B; --soft: #2A2622; --line: #38332E;
    --accent: #D9967A; --accent-soft: #3A2A23; --pa: #E0997C; --pb: #8DB4E2; --moss: #8CC2A0; --amber: #E2B064; --amber-soft: #3A2E19; --danger: #EE8E78;
    --pa-soft: #3A2620; --pb-soft: #1E2A38;
    --c1: #199e70; --c2: #d95926; --c3: #9085e9; --c4: #c98500; --c5: #d55181; --c-other: #6E665D;
    --todo: #6E665D; --todo-ink: #F3ECDF; --todo-dot: #F2838B;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --ink: #F3ECDF; --ink-soft: #B8B0A4; --paper: #171513; --card: #211E1B; --soft: #2A2622; --line: #38332E;
    --accent: #D9967A; --accent-soft: #3A2A23; --pa: #E0997C; --pb: #8DB4E2; --moss: #8CC2A0; --amber: #E2B064; --amber-soft: #3A2E19; --danger: #EE8E78;
    --pa-soft: #3A2620; --pb-soft: #1E2A38;
    --c1: #199e70; --c2: #d95926; --c3: #9085e9; --c4: #c98500; --c5: #d55181; --c-other: #6E665D;
    --todo: #6E665D; --todo-ink: #F3ECDF; --todo-dot: #F2838B;
    color-scheme: dark;
}
* { box-sizing: border-box; }
html { scrollbar-gutter: stable; }   /* long and short pages keep the same width */
html, body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.45 var(--body); -webkit-text-size-adjust: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- shell ---------- */
.shell { max-width: 640px; margin: 0 auto; min-height: 100dvh; padding: calc(var(--safe-t) + 12px) 16px calc(var(--safe-b) + 120px); }
.topbar { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.topbar h1 { font: 700 20px/1 var(--display); margin: 0 auto 0 0; letter-spacing: -0.01em; }
.iconbtn { width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; display: grid; place-items: center; }
.iconbtn svg { width: 24px; height: 24px; stroke: var(--ink); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.iconbtn[aria-current="page"] { background: var(--soft); }

/* ---------- balance statement ---------- */
.balance { padding: 18px 0 20px; border-bottom: 1px solid var(--line); }
.balance .who { margin: 0; color: var(--ink-soft); }
.balance .who strong { color: var(--ink); }
.balance .figure { font: 700 clamp(44px, 13vw, 64px)/1 var(--display); letter-spacing: -0.03em; margin: 4px 0 14px; font-variant-numeric: tabular-nums; }
.balance .figure.even { color: var(--moss); }


/* ---------- month nav + ledger ---------- */
.monthnav { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 4px; }
.monthnav h2 { font: 700 22px/1.2 var(--display); margin: 0; }
.monthnav .sum { color: var(--ink-soft); font-size: 15px; }
.day { margin: 18px 0 0; font-size: 14px; color: var(--ink-soft); }
.ledger { list-style: none; margin: 6px 0 0; padding: 0; }
.row { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; }
.row .desc { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .meta { font-size: 14px; color: var(--ink-soft); grid-column: 1; }
.row .amt { font: 500 19px/1.2 var(--display); font-variant-numeric: tabular-nums; text-align: right; }
.row .mine { font-size: 13px; color: var(--ink-soft); text-align: right; }
.row.transfer .amt { color: var(--moss); }
.empty { padding: 40px 8px; text-align: center; color: var(--ink-soft); }

/* ---------- capture bar ---------- */
.capture { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(var(--safe-b) + 12px); background: linear-gradient(to top, var(--paper) 70%, transparent); }
.capture-inner { max-width: 608px; margin: 0 auto; display: flex; align-items: center; gap: 10px; }
.quick { flex: 1; min-width: 0; height: 52px; padding: 0 16px; border-radius: 26px; border: 1px solid var(--line); background: var(--card); }
.mic { flex: none; width: 72px; height: 72px; border-radius: 50%; border: 0; background: var(--ink); display: grid; place-items: center; box-shadow: 0 6px 18px -8px rgba(20,20,20,.55); }
.mic svg { width: 30px; height: 30px; stroke: var(--paper); fill: none; stroke-width: 2; stroke-linecap: round; }
.plus { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; }
.plus svg { width: 22px; height: 22px; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.pending { font-size: 13px; color: var(--amber); text-align: center; margin: 0 0 6px; }

/* ---------- buttons & forms ---------- */
.btn { min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-weight: 700; }
.btn.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.big { min-height: 54px; padding: 0 28px; font-size: 18px; }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--danger); background: transparent; border-color: transparent; }
.btn:disabled { opacity: .5; }
label.f { display: block; margin: 14px 0 0; font-size: 14px; color: var(--ink-soft); }
label.f > input, label.f > select, label.f > textarea { display: block; width: 100%; margin-top: 4px; min-height: 48px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 17px; }
.seg { display: flex; gap: 4px; margin-top: 4px; padding: 4px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); }
.seg button { flex: 1; min-height: 42px; border: 0; border-radius: 9px; background: transparent; font-weight: 700; color: var(--ink-soft); }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.split-note { margin: 6px 0 0; font-size: 14px; color: var(--ink-soft); }
input[type=range] { width: 100%; accent-color: var(--ink); }

/* ---------- bottom sheet ---------- */
.sheet { width: 100%; max-width: 640px; max-height: 92dvh; margin: auto auto 0; padding: 0; border: 0; border-radius: 20px 20px 0 0; background: var(--card); color: var(--ink); }
.sheet::backdrop { background: rgba(20, 20, 20, .45); }
.sheet[open] { animation: rise .22s cubic-bezier(.2,.8,.2,1); }
@keyframes rise { from { transform: translateY(30px); opacity: .4; } }
.sheet-body { padding: 10px 18px calc(var(--safe-b) + 18px); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 1; padding: 12px 18px 8px; background: var(--card); }
.sheet-head h3 { margin: 0; font: 700 20px/1.2 var(--display); }
.sheet-foot { display: flex; gap: 10px; justify-content: space-between; margin-top: 22px; }
.reason { margin: 4px 0 6px; padding: 10px 12px; border-radius: 10px; background: var(--soft); font-size: 15px; }
.voicebox { margin-top: 10px; padding: 12px; border-radius: 12px; background: var(--soft); }
.voicebox audio { width: 100%; height: 40px; }
.voicebox p { margin: 8px 0 0; font-size: 15px; }
.voicebox .t { font-style: italic; }

/* ---------- recorder ---------- */
.recorder { position: fixed; inset: 0; z-index: 50; background: #171513; color: #F3ECDF; display: grid; place-items: center; padding: 24px; }
.rec-inner { text-align: center; max-width: 420px; }
.rec-hint { margin: 0 0 40px; font-size: 18px; }
.rec-hint span { display: block; margin-top: 8px; font-size: 15px; opacity: .7; }
.rec-pulse { width: 180px; height: 180px; margin: 0 auto 48px; border-radius: 50%; background: #F3ECDF; display: grid; place-items: center; animation: breathe 1.6s ease-in-out infinite; }
.rec-time { font: 700 40px/1 var(--display); font-variant-numeric: tabular-nums; color: #171513; }
@keyframes breathe { 50% { box-shadow: 0 0 0 26px rgba(243, 236, 223, .14); } }
.rec-actions { display: flex; gap: 16px; justify-content: center; }
.recorder .btn.ghost { color: #F3ECDF; border-color: rgba(243, 236, 223, .4); background: transparent; }
.recorder .btn.primary { background: #F3ECDF; color: #171513; border-color: #F3ECDF; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 16px; right: 16px; bottom: calc(var(--safe-b) + 104px); z-index: 60; max-width: 480px; margin: 0 auto; padding: 14px 16px; border-radius: 14px; background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: space-between; gap: 12px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); }
.toast button { border: 0; background: none; color: var(--paper); font-weight: 700; text-decoration: underline; min-height: 36px; }

/* ---------- login ---------- */
.login { max-width: 400px; margin: 0 auto; padding: calc(var(--safe-t) + 15vh) 24px 40px; }
.login h1 { font: 700 44px/1 var(--display); letter-spacing: -0.03em; margin: 0 0 8px; }
.login p { color: var(--ink-soft); margin: 0 0 28px; }
.people { display: flex; gap: 12px; }
.people button { flex: 1; min-height: 64px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); font: 700 20px var(--display); }
.people button[aria-pressed="true"] { border: 2px solid var(--accent); background: var(--accent-soft); }
.err { color: var(--danger); margin: 10px 0 0; }

/* ---------- stats & settings ---------- */
.section-title { font: 700 22px/1.2 var(--display); margin: 26px 0 8px; }
.catlist { list-style: none; padding: 0; margin: 0; }
.catlist li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.catlist input { flex: 1; min-width: 0; min-height: 44px; padding: 0 10px; border: 1px solid transparent; border-radius: 8px; background: transparent; }
.catlist input:focus { border-color: var(--line); background: var(--card); }
.catlist li.archived input { color: var(--ink-soft); text-decoration: line-through; }
.catlist .btn { min-width: 92px; }
.catlist .btn.danger { border-color: var(--line); }
.catlist .btn.icon-only { min-width: 44px; width: 44px; padding: 0; display: grid; place-items: center; }
.catlist .btn.icon-only svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.small { font-size: 14px; color: var(--ink-soft); }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

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

/* ---------- accounts & invites ---------- */
.authlinks { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 18px; }
.link { border: 0; background: none; padding: 8px 0; min-height: 44px; color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.login form + form { margin-top: 8px; padding-top: 4px; border-top: 1px solid var(--line); }
.login .section-title { font-size: 20px; }
.invite-card { margin: 16px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--soft); }
.invite-card p { margin: 0 0 6px; }
.invite-card .code { font-family: var(--display); letter-spacing: 0.08em; }
/* a destructive action in settings: the button, its consequence right under it */
.danger-item { margin: 18px 0 0; }
.danger-item .btn.danger { padding-left: 0; padding-right: 0; min-height: 36px; }
.danger-item .small { margin: 0; }
.btn.danger-fill { background: var(--danger); border-color: var(--danger); color: #fff; }

/* ---------- install on home screen ---------- */
.install-card { display: flex; gap: 14px; align-items: flex-start; margin: 16px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.install-card img { border-radius: 10px; flex: none; }
.install-card p { margin: 0 0 2px; }
.install-card .row-actions { margin-top: 10px; }
.steps { margin: 4px 0 0; padding-left: 1.4em; }
.steps li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.steps li span { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.steps small { display: block; margin-top: 4px; color: var(--ink-soft); font-size: 14px; }
.ios-share { width: 22px; height: 22px; stroke: var(--ink); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -5px; }
.ios-arrow { position: fixed; left: 50%; bottom: calc(var(--safe-b) + 6px); width: 0; height: 0; transform: translateX(-50%);
  border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 16px solid var(--ink); animation: nudge 1.2s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translate(-50%, 6px); } }

/* ---------- home: month spending first, balance as one line ---------- */
.hero { padding: 4px 0 16px; border-bottom: 1px solid var(--line); }
/* the period and the switch sit at exactly the same place on the home page and in the statistics */
.hero .monthnav, .period-head .monthnav { margin: 0 0 6px; }
.hero .monthnav h2, .period-head .monthnav h2 { font: 700 20px/1.2 var(--display); }
.period-head { padding-top: 4px; }
.hero .figure { font: 700 clamp(44px, 13vw, 60px)/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; text-align: center; }
.hero .sub { margin: 8px 0 0; text-align: center; color: var(--ink-soft); }
.balance-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink-soft); }
.balance-line b { color: var(--ink); font-family: var(--display); font-variant-numeric: tabular-nums; }
.balance-line .link { min-height: 40px; padding: 0; }
.review-head { margin-top: 8px; }
label.check { display: flex; gap: 12px; align-items: flex-start; margin: 12px 0 0; padding: 12px; border-radius: 12px; background: var(--soft); cursor: pointer; }
label.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }
label.check small { display: block; color: var(--ink-soft); font-size: 14px; }

/* show/hide password */
.pw-wrap { position: relative; }
.pw-wrap > input { padding-right: 76px !important; }
.pw-toggle { position: absolute; right: 6px; bottom: 6px; min-height: 36px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--soft); color: var(--ink); font-weight: 700; font-size: 15px; }

/* ---------- Moosou brand ---------- */
.brand { display: flex; align-items: center; gap: 10px; margin: 0 auto 0 0; min-width: 0; }
.brand svg { flex: none; }
.brand .wordmark { font: 700 22px/1 var(--display); letter-spacing: -0.02em; }
.brand .page-title { font: 700 20px/1 var(--display); }
.moose-tile rect { fill: var(--logo-bg); }
.moose-tile path { stroke: var(--logo-ink); }
.moose-tile circle { fill: var(--logo-ink); }
.lockup { display: flex; align-items: center; gap: 16px; margin: 0 0 28px; }
.lockup .wordmark { display: block; font: 700 46px/1 var(--display); letter-spacing: -0.03em; }
.lockup .tagline { display: block; margin-top: 6px; font: italic 400 18px/1.2 var(--body); color: var(--ink-soft); }
.login .intro { margin: 0 0 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.brand h1 { margin: 0; }

/* optional sections on the first screen */
details.optional { margin: 16px 0 0; border-top: 1px solid var(--line); padding-top: 4px; }
details.optional summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 700; list-style: none; }
details.optional summary::-webkit-details-marker { display: none; }
details.optional summary::after { content: '+'; margin-left: auto; font: 400 24px/1 var(--display); color: var(--ink-soft); }
details.optional[open] summary::after { content: '−'; }
details.optional .small { margin: 8px 0 0; }
details.join { margin-top: 24px; }
.invite-hint { font-size: 14px; }

/* split line in the entry form: text + small Edit, slider only after Edit */
.ratio-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.ratio-line .split-note { margin: 0; }
.ratio-edit { flex: none; width: 36px; height: 36px; padding: 0; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); }
.ratio-edit svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#ratioBox input[type=range] { margin-top: 10px; }

/* learned split hint in the entry form */
.habit { margin: 6px 0 0; font-size: 14px; color: var(--ink-soft); }

/* ---------- receipt photos ---------- */
.quick-wrap { flex: 1; min-width: 0; position: relative; display: flex; }
/* photo and voice: two equal round buttons side by side */
.capture-inner .mic { width: 60px; height: 60px; }
.capture-inner .mic svg { width: 27px; height: 27px; stroke: var(--paper); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.capture-inner { gap: 8px; }
.has-photo svg { width: 15px; height: 15px; margin-left: 6px; vertical-align: -2px; stroke: var(--ink-soft); fill: none; stroke-width: 2; stroke-linejoin: round; }
.photobox { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 10px; border-radius: 12px; background: var(--soft); }
.photo-thumb { flex: none; width: 72px; height: 96px; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--card); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.btn.attach { display: inline-flex; align-items: center; gap: 8px; }
.btn.attach svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linejoin: round; }
.lightbox { position: fixed; inset: 0; z-index: 5; background: rgba(20, 20, 20, .92); display: grid; place-items: center; padding: 16px; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 32px); object-fit: contain; border-radius: 6px; }
.lightbox .iconbtn { position: absolute; top: calc(var(--safe-t) + 12px); right: 12px; background: rgba(255, 255, 255, .15); }
.lightbox .iconbtn svg { stroke: #fff; }

/* small "read again" button on the right of the voice / photo box */
.voice-top { display: flex; align-items: center; gap: 10px; }
.voice-top audio, .voice-top .t { flex: 1; min-width: 0; margin: 0; }
.redo { flex: none; width: 40px; height: 40px; margin-left: auto; padding: 0; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--ink); }
.redo svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.redo:disabled { opacity: .7; }
@keyframes spin { to { transform: rotate(360deg); } }

.box-actions { display: flex; gap: 8px; margin-left: auto; }
.box-actions .redo { margin-left: 0; }
.voice-top .redo + .redo { margin-left: 0; }

/* entry header: add recording / photo */
.iconbtn.media svg { stroke-width: 1.7; }

/* recording / photo buttons in a row under the entry title */
.sheet-head { flex-wrap: wrap; }
.media-row { flex-basis: 100%; display: flex; gap: 8px; margin: 6px 0 0 -4px; }
.media-row .iconbtn.media { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; }
.media-row .iconbtn.media svg { width: 22px; height: 22px; }

/* Apply: fill the entry from its recording / photo */
.redo.apply.busy { animation: busy 1s ease-in-out infinite; }
@keyframes busy { 50% { opacity: .45; } }
.voice-top .apply { margin-left: auto; }

/* first steps: account -> email -> budget */
.steps { list-style: none; display: flex; gap: 6px; margin: 20px 0 18px; padding: 0; font-size: 14px; color: var(--ink-soft); }
.steps li { display: flex; align-items: center; gap: 6px; flex: 1; padding-top: 8px; border-top: 3px solid var(--line); }
.steps li span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); font-size: 12px; font-weight: 700; }
.steps li.done { border-color: var(--ink); }
.steps li.done span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.steps li.now { border-color: var(--ink); color: var(--ink); font-weight: 700; }
.steps li.now span { border-color: var(--ink); }
.verify-h { margin: 18px 0 4px; font: 700 24px/1.2 'Bricolage Grotesque', sans-serif; }
.mailart { width: 64px; height: 64px; margin-top: 22px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; }
.mailart svg { width: 30px; height: 30px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 0%, 70%, 100% { transform: none; } 80% { transform: translateY(-3px); } 90% { transform: translateY(1px); } }
.small.ok { color: var(--ink-soft); margin: 0; }
.small.ok:empty, main .err:empty { display: none; }
.note { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--soft); }
details.join { margin-top: 18px; }
#cf { margin-top: 8px; }

/* the bar: type an expense (with a small button for the full form) | camera | mic */
.quick-wrap .quick { padding-right: 52px; }
.form-open { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; display: grid; place-items: center; color: var(--ink-soft); cursor: pointer; }
.form-open:active { background: var(--soft); }
.form-open svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* numbers in the amount field: a plain zero (Atkinson draws it with a slash) */
input.amount, input.amount::placeholder, input.quick, input.quick::placeholder { font-family: 'Bricolage Grotesque', 'Atkinson Hyperlegible', sans-serif; }

/* Moosou Plus: locked buttons after the trial, and the explanation */
.mic, .iconbtn.media { position: relative; }
.mic.locked { opacity: .55; }
.iconbtn.media.locked { opacity: .6; }
.lockbadge { position: absolute; right: -2px; top: -2px; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; }
.iconbtn.media .lockbadge { width: 18px; height: 18px; right: -4px; top: -4px; }
.lockbadge svg, .capture-inner .mic .lockbadge svg { width: 12px; height: 12px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.plan-hint .link { white-space: nowrap; }
.plus-sheet { border: 0; border-radius: 22px; padding: 24px; width: min(92vw, 380px); background: var(--paper); color: var(--ink); text-align: left; }
.plus-sheet::backdrop { background: rgba(0, 0, 0, .45); }
.plus-sheet h3 { margin: 14px 0 6px; font: 700 24px/1.2 var(--display); }
.plus-sheet p { margin: 0 0 14px; color: var(--ink-soft); }
.plus-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.plus-list li { display: flex; align-items: center; gap: 12px; }
.plus-list svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* who carries an expense: the row in the person's colour when it's theirs alone, neutral when shared */
.ledger.tinted li { margin: 6px 0; }
.ledger.tinted .row { border: 0; border-radius: 12px; padding: 10px 12px; background: var(--soft); }
.ledger.tinted .row.for-a { background: var(--pa-soft); }
.ledger.tinted .row.for-b { background: var(--pb-soft); }
/* entries to finish: an empty form waiting to be filled in */
.row.review, .ledger.tinted .row.review { padding: 10px 12px; border: 2px dashed var(--todo); border-radius: 12px; background: transparent; }
.ledger:not(.tinted) .row.review { margin: 6px 0; }
.row.review .meta { color: var(--todo-ink); font-weight: 700; }
.row.review .desc::before { content: ''; display: inline-block; width: 9px; height: 9px; margin-right: 7px; border-radius: 50%; background: var(--todo-dot); vertical-align: 1px; }
.row .amt.missing { color: var(--todo-ink); letter-spacing: 1px; }
/* appearance switch in Settings */
.seg.theme { margin-top: 6px; }

/* a quiet note about Plus in Settings */
.plus-ad { display: flex; gap: 12px; align-items: flex-start; margin: 12px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--soft); }
.plus-ad svg { flex: none; width: 22px; height: 22px; margin-top: 2px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.plus-ad p { margin: 0; font-size: 15px; color: var(--ink-soft); }
.plus-ad strong { color: var(--ink); }
.plus-ad { flex-wrap: wrap; }
.plus-ad > p { flex: 1; min-width: 0; }
.plus-ad .plus-actions { flex-basis: 100%; margin-top: 0; }
.plus-ad .btn.big:not(.primary) { background: var(--card); }

/* private entries */
.private-check svg { width: 16px; height: 16px; margin-right: 6px; vertical-align: -2px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.is-private svg { width: 15px; height: 15px; margin-right: 6px; vertical-align: -2px; stroke: var(--ink); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Settings: sections that fold away */
details.set-sec { border-bottom: 1px solid var(--line); }
details.set-sec summary { min-height: 58px; display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; font: 700 19px/1.2 var(--display); }
details.set-sec summary::-webkit-details-marker { display: none; }
details.set-sec summary::after { content: ''; margin-left: 8px; width: 9px; height: 9px; border-right: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft); transform: rotate(45deg); transition: transform .2s; margin-right: 4px; }
details.set-sec[open] summary::after { transform: rotate(-135deg); }
.set-body { padding: 0 0 18px; }
.set-body > :first-child { margin-top: 0; }
details.set-sec summary > span:first-child { margin-right: auto; }
.sum-hint { font: 500 15px/1.2 var(--display); color: var(--ink-soft); max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logout-row { margin: 24px 0 8px; }
.logout-row .btn { width: 100%; }

/* password rules under a new password */
.pw-rules { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--ink-soft); }
.pw-rules li::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; border: 1.5px solid var(--ink-soft); vertical-align: 1px; }
.pw-rules li.ok { color: var(--ink); }
.pw-rules li.ok::before { content: '✓'; width: auto; height: auto; border: 0; color: var(--moss); font-weight: 700; margin-right: 5px; }
.pw-rules.show-missing li:not(.ok) { color: var(--danger); }
.pw-rules.show-missing li:not(.ok)::before { border-color: var(--danger); }

/* statistics: one summary block, comparisons, tappable bars */
.stat-hero { margin: 18px 0 8px; padding: 18px; border-radius: 18px; background: var(--soft); }
.stat-total { margin: 0; font: 600 40px/1.05 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat-cmp { margin: 6px 0 0; color: var(--ink-soft); font-size: 15px; }
.stat-cmp b, .delta { font-weight: 600; }
.up { color: var(--danger); }
.down { color: var(--moss); }
.splitbar { display: flex; height: 10px; margin: 16px 0 10px; border-radius: 5px; overflow: hidden; background: var(--line); }
.splitbar i, .splitkeys i { display: block; height: 100%; }
.splitbar .sh, .splitkeys .sh { background: color-mix(in srgb, var(--ink) 30%, transparent); }
.splitbar .a, .splitkeys .a { background: var(--pa); }
.splitbar .b, .splitkeys .b { background: var(--pb); }
.splitkeys { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15px; }
.splitkeys li { display: flex; align-items: center; gap: 8px; }
.splitkeys i { width: 10px; height: 10px; border-radius: 2px; flex: none; }
.splitkeys span { margin-left: auto; font-family: var(--display); font-variant-numeric: tabular-nums; }
.stat-hero .parts { margin: 10px 0 0; }
.privnote { display: flex; gap: 6px; align-items: flex-start; margin: 10px 0 0; }
.privnote svg { width: 14px; height: 14px; flex: none; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.barbtn { all: unset; box-sizing: border-box; display: block; width: 100%; cursor: pointer; border-radius: 8px; }
.barbtn:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.barbtn .delta { display: block; margin-top: 4px; font-size: 13px; }
.detail-head { display: flex; align-items: center; gap: 8px; margin: 14px 0 4px; }
.detail-head h2 { margin: 0; }
.detail-head .small { margin: 2px 0 0; }
.iconbtn:disabled { opacity: .25; cursor: default; }

/* "2 entries need a look" — a quiet line with a small button */
.review-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0 0; font-size: 15px; }
.review-line b { color: var(--todo-ink); }
.btn.small { min-height: 32px; padding: 0 12px; border-radius: 9px; font-size: 14px; border: 1.5px solid var(--todo); color: var(--todo-ink); background: transparent; }
.btn.small.icon { width: 36px; min-height: 36px; padding: 0; display: grid; place-items: center; }
.btn.small.icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.row.review .meta .who { color: var(--ink-soft); font-weight: 400; }

/* Moosou Plus: subscribe / manage */
.plus-actions { display: grid; gap: 8px; margin: 14px 0 8px; }
.plus-actions .btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; }
.plus-actions .btn small { font-weight: 600; font-size: 13px; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, currentColor 14%, transparent); }
.plus-actions .small { margin: 2px 0 0; text-align: center; }
.plus-sheet .btn.ghost { margin-top: 4px; }

/* repeating entries: a quiet toggle; the choices appear only when it is on */
.repeat-box { margin: 10px 0 0; }
.repeat-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink-soft); cursor: pointer; }
.repeat-toggle input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.repeat-toggle svg { width: 16px; height: 16px; margin-right: 4px; vertical-align: -3px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.repeat-box .seg { margin-top: 8px; }
.repeat-next { margin: 6px 0 0; }
.choose-actions { display: grid; gap: 8px; }
.has-photo svg { fill: none; }
.repeat-box .seg button { min-height: 36px; font-size: 15px; }
.repeat-box .seg button { padding: 0 4px; font-size: 14px; }

/* statistics: category filter chip, ring chart, category rows */
.chip { display: inline-flex; align-items: center; gap: 6px; margin: 12px 0 0; padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font-size: 14px; font-weight: 700; }
.chip.on { border-color: var(--ink); }
.excl-note { margin: 4px 0 0; }
.seg.small button { min-height: 36px; font-size: 14px; }
.donut-wrap { display: grid; place-items: center; margin: 14px 0 6px; }
.donut path { cursor: pointer; }
.donut .d-total { font: 700 19px var(--display); fill: var(--ink); }
.donut .d-sub { font: 400 12px var(--body); fill: var(--ink-soft); }
.catrows { list-style: none; margin: 0; padding: 0; }
.catrows li { border-bottom: 1px solid var(--line); }
.catrow { display: grid !important; grid-template-columns: 12px 1fr auto auto; gap: 4px 10px; align-items: center; padding: 10px 0; font-size: 15px; }
.catrow .dot { width: 12px; height: 12px; border-radius: 3px; }
.catrow .pc { color: var(--ink-soft); font-size: 14px; text-align: right; }
.catrow .am { font-family: var(--display); font-variant-numeric: tabular-nums; min-width: 84px; text-align: right; }
.catrow .delta { grid-column: 2 / -1; margin-top: 0; }
.donut text { pointer-events: none; }

/* statistics: timeline per month */
.tl-wrap { margin: 6px 0 4px; }
.timeline { width: 100%; height: auto; display: block; }
.tl-grid { stroke: var(--line); stroke-width: 1; }
.tl-axis { font: 400 11px var(--body); fill: var(--ink-soft); }
.tl-val { font: 700 12px var(--display); fill: var(--ink); }
.tl-line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.tl-area { fill: var(--ink); opacity: .07; }
.tl-avg { stroke: var(--ink-soft); stroke-width: 1.2; stroke-dasharray: 4 4; }
.tl-dot { fill: var(--paper); stroke: var(--ink); stroke-width: 2; }
.tl-hit { fill: transparent; cursor: pointer; }
.tl-hit:hover { fill: var(--ink); opacity: .04; }
.tl-key { display: flex; gap: 16px; flex-wrap: wrap; margin: 2px 0 0; font-size: 13px; color: var(--ink-soft); }
.tl-key span { display: inline-flex; align-items: center; gap: 6px; }
.tl-key i { display: inline-block; width: 18px; border-top: 2px solid var(--ink); }
.tl-key i.k-avg { border-top: 1.5px dashed var(--ink-soft); }
.tl-hit.on { fill: var(--ink); opacity: .07; }
.tl-pick { margin: 0; min-height: 20px; font-weight: 700; color: var(--ink); }
.tl-line.thin { stroke-width: 1.8; opacity: .95; }
.tl-key i { border-top-width: 2.5px; }
.avg-line { margin-top: 2px; font-size: 14px; }
.avg-line b { color: var(--ink); font-weight: 700; }

/* admin page */
.a-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.a-tile { padding: 14px; border-radius: 14px; background: var(--soft); display: grid; gap: 2px; }
.a-tile b { font: 700 30px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.a-tile span { font-weight: 700; }
.a-tile small { color: var(--ink-soft); font-size: 13px; }
.a-list { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 0; }
.a-list dt { color: var(--ink-soft); }
.a-list dd { margin: 0; font: 600 17px var(--display); font-variant-numeric: tabular-nums; text-align: right; }
.a-weeks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.a-weeks li { display: grid; grid-template-columns: 96px 1fr 32px 64px; align-items: center; gap: 8px; font-size: 14px; }
.a-weeks i { height: 10px; border-radius: 5px; background: var(--ink); min-width: 2px; }
.a-weeks b { text-align: right; font-family: var(--display); }
.a-weeks small { color: var(--ink-soft); }
.a-money li { grid-template-columns: 56px 1fr 92px; margin: 0; }
.a-grid + .a-money { margin-top: 12px; }
.repeat-toggle .toggle-hint { margin-left: 6px; font-size: 13px; color: var(--ink-soft); opacity: .8; }
.repeat-box + .repeat-box { margin-top: 8px; }
.f-btn svg { stroke: var(--ink-soft); }
.f-btn { position: relative; flex: none; color: var(--ink-soft); }
.f-btn .dot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--todo-dot); box-shadow: 0 0 0 2px var(--soft); }
.filter-sheet { margin: auto auto 0; width: min(100vw, 520px); max-width: 100vw; max-height: 88vh; border-radius: 22px 22px 0 0; padding: 20px 18px calc(18px + env(safe-area-inset-bottom)); overflow-y: auto; }
.filter-sheet h3 { margin: 0 0 12px; outline: none; }
.filter-sheet h4 { margin: 14px 0 6px; font-size: 14px; color: var(--ink-soft); }
.filter-sheet .f-q { width: 100%; box-sizing: border-box; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: 0 12px; font-size: 16px; }
.f-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.f-chips button { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font-size: 14px; font-weight: 700; }
.f-chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.filter-sheet .row-actions { margin-top: 18px; }

.sub-title { margin: 22px 0 6px; font: 700 16px var(--display); }
.set-body > .sub-title:first-child { margin-top: 4px; }
.a-recent { list-style: none; margin: 0; padding: 0; }
.a-recent li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.a-recent span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-recent small { color: var(--ink-soft); white-space: nowrap; }

/* links to the Privacy Policy and Terms */
.consent { margin: 12px 0 0 !important; font-size: 13px; text-align: center; }
.consent + .consent { margin-top: 4px !important; }
.consent a, .legal-links a { color: var(--ink-soft); text-underline-offset: 3px; }
.legal-links { margin: 28px 0 0; font-size: 13px; color: var(--ink-soft); text-align: center; }

/* the language on the first screen: three quiet words */
.lang-pick { display: flex; justify-content: center; gap: 4px; margin: 10px 0 0; }
.lang-pick button { border: 0; background: none; padding: 6px 10px; border-radius: 8px; font-size: 13px; color: var(--ink-soft); min-height: 32px; }
.lang-pick button[aria-pressed="true"] { color: var(--ink); font-weight: 700; background: var(--soft); }

/* "?" behind a comparison: a small round button with a short explanation */
.qhelp { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 6px; border-radius: 50%; border: 1.5px solid var(--line); color: var(--ink-soft); font: 700 11px/1 var(--body); vertical-align: 1px; cursor: pointer; }
.qhelp:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.explain-sheet p { margin: 0 0 18px; }

/* home: month or whole year, picked from the title */
.pick-title { border: 0; background: none; padding: 4px 6px; border-radius: 8px; font: inherit; color: inherit; display: inline-flex; align-items: center; gap: 6px; }
.pick-title .car { font-size: 13px; color: var(--ink-soft); }
.pop-back { position: fixed; inset: 0; z-index: 40; }
.pop { position: absolute; left: 50%; transform: translateX(-50%); z-index: 41; width: 240px; padding: 6px; border-radius: 14px; background: var(--card); box-shadow: 0 10px 40px rgba(0, 0, 0, .25); }
.pop button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 46px; padding: 0 14px; border: 0; border-radius: 10px; background: none; color: var(--ink); font-size: 16px; text-align: left; }
.pop button.on { background: var(--soft); font-weight: 700; }
.pop svg { width: 18px; height: 18px; stroke: var(--ink); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mhead { font: 700 20px var(--display); margin: 24px 0 2px; }

/* Together | Alica | Charles under the period (home and statistics) */
.who-pill { display: flex; gap: 2px; width: 100%; box-sizing: border-box; margin: 4px 0 8px; padding: 3px; border-radius: 11px; background: var(--soft); }
.who-pill button { flex: 1; min-width: 0; border: 0; background: transparent; border-radius: 8px; min-height: 34px; padding: 0 14px; font-weight: 700; font-size: 14px; color: var(--ink-soft); }
.who-pill button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }

/* the switch and the filter button in one row; under it, what is filtered */
.view-bar { display: flex; align-items: center; gap: 8px; margin: 4px 0 8px; }
.view-bar .who-pill { margin: 0; flex: 1; }
.view-bar .vb-gap { flex: 1; }
.view-bar .f-btn { flex: none; width: 46px; height: 46px; border-radius: 11px; background: var(--soft); }
.view-bar .f-btn.on svg { stroke: var(--ink); }
.view-bar .f-btn .dot { top: 8px; right: 8px; }
.f-sum { margin: -2px 0 10px; text-align: center; font-size: 14px; color: var(--ink-soft); }
.f-sum b { color: var(--ink); }
.f-sum .link { font-size: 14px; padding: 0; min-height: 0; font-weight: 400; color: var(--ink-soft); }
.f-h4 { display: flex; justify-content: space-between; align-items: baseline; }
.f-h4 .link { font-size: 13px; padding: 0; min-height: 0; font-weight: 400; color: var(--ink-soft); }
.f-h4 span { font-weight: 400; color: var(--ink-soft); font-size: 13px; }

/* Settings → categories: the grip to drag a row */
.catlist .drag { flex: none; width: 32px; height: 44px; border: 0; background: none; padding: 0; cursor: grab; touch-action: none; display: grid; place-items: center; }
.catlist .drag svg { width: 20px; height: 20px; fill: var(--ink-soft); stroke: none; }
.catlist .drag:focus-visible { outline: 2px solid var(--ink); border-radius: 6px; }
.catlist li.dragging { background: var(--soft); border-radius: 10px; box-shadow: 0 6px 20px rgba(0, 0, 0, .15); position: relative; z-index: 2; }

/* admin: recent problems */
.a-errors { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.a-errors li { border-bottom: 1px solid var(--line); }
.a-errors summary { display: grid; grid-template-columns: auto auto 1fr; gap: 8px; padding: 8px 0; cursor: pointer; list-style: none; }
.a-errors summary::-webkit-details-marker { display: none; }
.a-errors .e-when { color: var(--ink-soft); white-space: nowrap; }
.a-errors .e-lv { font-weight: 700; }
.a-errors .lv-error .e-lv { color: var(--todo-dot); }
.a-errors .e-msg { overflow-wrap: anywhere; }
.a-errors pre { margin: 0 0 10px; padding: 10px; border-radius: 8px; background: var(--soft); font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }

/* after the trial without Plus: one line and the way to subscribe, where the entry bar was */
.capture.ended .capture-inner { background: var(--soft); border-radius: 16px; padding: 10px 10px 10px 16px; }
.capture.ended p { flex: 1; margin: 0; font-size: 15px; line-height: 1.35; }
.capture.ended .btn { flex: none; }
