/* The font, served by Wallet itself (no Google), so the text shows at once and offline. Manrope (30 Nov 2026,
   Charlie chose it over Inter and Plus Jakarta Sans): numbers of equal width so amounts line up, the real minus
   sign, accented letters. Variable (weights 200-800) from @fontsource-variable/manrope, latin and latin-ext;
   SIL Open Font License in /fonts/Manrope-LICENSE.txt. */
@font-face { font-family: Manrope; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/fonts/manrope-latin.woff2) format("woff2");
  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: Manrope; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/fonts/manrope-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
/* Wallet: styles taken from the approved phone mockups. */
:root {
  --bg: #F6F4EF; --text: #1E1E1C; --muted: #6B6A63; --card: #fff; --line: #E3DFD5;
  --field-line: #D5D0C4; --seg: #E9E5DA; --seg-text: #4A4943; --seg-shadow: rgba(0,0,0,.15);
  --accent: #2556C4; --link: #2556C4; --danger: #B3261E; --dis: #EFECE4;
  --pos: #1F7A4D; --neg: #B3261E;
  color-scheme: light;
}
/* Dark: follows the phone's setting (Device) unless Light or Dark is chosen. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161615; --text: #EDEBE6; --muted: #A9A79F; --card: #242422; --line: #383734;
    --field-line: #4A4944; --seg: #2E2D2A; --seg-text: #CFCDC6; --seg-shadow: rgba(0,0,0,.5);
    --danger: #FF8A80; --dis: #2B2A28; --link: #8AB4FF;
    --pos: #7FD6A6; --neg: #FF8A80;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #161615; --text: #EDEBE6; --muted: #A9A79F; --card: #242422; --line: #383734;
  --field-line: #4A4944; --seg: #2E2D2A; --seg-text: #CFCDC6; --seg-shadow: rgba(0,0,0,.5);
  --danger: #FF8A80; --dis: #2B2A28; --link: #8AB4FF;
    --pos: #7FD6A6; --neg: #FF8A80;
  color-scheme: dark;
}

/* Accent colour (Settings): buttons and highlights. Blue is the default above. */
:root[data-accent="green"] { --accent: #1F7A4D; --link: #1F7A4D; --link-dark: #7FD6A6; }
:root[data-accent="teal"] { --accent: #0F6F6A; --link: #0F6F6A; --link-dark: #6FD3CC; }
:root[data-accent="purple"] { --accent: #6B46C1; --link: #6B46C1; --link-dark: #BBA4F5; }
:root[data-accent="pink"] { --accent: #B8195A; --link: #B8195A; --link-dark: #F59AC0; }
:root[data-accent="orange"] { --accent: #B4440E; --link: #B4440E; --link-dark: #FFB083; }
/* More colors. */
:root[data-accent="gold"] { --accent: #8A6200; --link: #8A6200; --link-dark: #EBC16A; }
:root[data-accent="brown"] { --accent: #7C4A26; --link: #7C4A26; --link-dark: #E1B18E; }
:root[data-accent="olive"] { --accent: #56661C; --link: #56661C; --link-dark: #C5D88A; }
:root[data-accent="sky"] { --accent: #0A6AA6; --link: #0A6AA6; --link-dark: #78C6F8; }
:root[data-accent="plum"] { --accent: #7E2A72; --link: #7E2A72; --link-dark: #DF90D4; }
:root[data-accent="slate"] { --accent: #475569; --link: #475569; --link-dark: #A4B4CB; }
@media (prefers-color-scheme: dark) {
  :root[data-accent]:not([data-theme="light"]) { --link: var(--link-dark); }
}
:root[data-accent][data-theme="dark"] { --link: var(--link-dark); }
/* Settings: the colour swatches. */
/* Six to a row on any phone: the circles shrink a little on very small screens instead of the last ones wrapping
   onto a second line (2 Dec 2026, Charlie). */
.sw { display: grid; grid-template-columns: repeat(6, minmax(0, 44px)); gap: 8px; }
.swb { width: 100%; aspect-ratio: 1; height: auto; border-radius: 50%; border: 2px solid var(--line); padding: 3px; background: var(--card); cursor: pointer; }
.swb span { display: block; width: 100%; height: 100%; border-radius: 50%; }
/* More colors link under the swatches, and the second row. */
.swmore { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; padding: 4px 0; border: 0; background: transparent;
  color: var(--link); font: 600 15px Manrope, system-ui, sans-serif; cursor: pointer; }
.swmore svg { transition: transform .2s; }
.swmore[aria-expanded="true"] svg { transform: rotate(180deg); }
.sw2 { margin-top: 8px; }
.wsw2 { margin-top: 12px; }
@media (prefers-reduced-motion: reduce) { .swmore svg { transition: none; } }
.swb.on { border-color: var(--text); }
.swb:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); }
body { font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--text); -webkit-text-size-adjust: 100%; }
button, input { font-family: inherit; }

.s { max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh;
  padding: calc(env(safe-area-inset-top) + 32px) 20px calc(env(safe-area-inset-bottom) + 24px);
  display: flex; flex-direction: column; gap: 16px; font-size: 16px; line-height: 1.4; }
h1 { margin: 0; font-size: 26px; font-weight: 700; }
.m { color: var(--muted); font-size: 14px; margin: 0; }
.c { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.b { min-height: 48px; border-radius: 12px; border: 1px solid var(--field-line); background: var(--card); color: var(--text);
  font: 600 16px Manrope, system-ui, sans-serif; padding: 0 16px; width: 100%; text-align: left; cursor: pointer; }
.b:disabled { opacity: .55; cursor: default; }
.p { background: var(--accent); border-color: var(--accent); color: #fff; text-align: center; }
.f { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); font-weight: 600; }
.i { min-height: 48px; border: 1px solid var(--field-line); border-radius: 12px; background: var(--card); padding: 0 14px;
  font: 16px Manrope, system-ui, sans-serif; color: var(--text); width: 100%; }
.i:focus, .b:focus-visible, .ib:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.r { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.k { font-size: 13px; color: var(--muted); }
/* The small heading over your categories that were never used (Settings → Categories). */
.unusedh:not(.seclabel) { font-weight: 600; }
.v { font-size: 22px; font-weight: 700; }
.sm { width: auto; min-height: 44px; font-size: 14px; padding: 0 12px; flex: none; }
.d { color: var(--danger); }
.ib { width: 44px; height: 44px; min-height: 44px; border-radius: 12px; border: 1px solid var(--field-line); background: var(--card);
  display: flex; align-items: center; justify-content: center; padding: 0; color: var(--text); flex: none; cursor: pointer; }
.hdr { display: flex; align-items: center; gap: 8px; }
.hdr h1 { flex: 1; }
.o { display: flex; justify-content: space-between; align-items: center; min-height: 40px; border-top: 1px solid var(--line); }
.err { color: var(--danger); font-weight: 600; font-size: 14px; margin: 0; }
.ok { font-weight: 600; font-size: 14px; margin: 0; text-align: center; }
.grow { flex: 1; }
.row-in { display: flex; gap: 8px; margin-top: 8px; }
.row-in .i { flex: 1; min-width: 0; }
.sub { padding-left: 12px; }

/* Slice 2: the Add form (mockups Add, Income, Picker, NoBalance). */
.stack { display: flex; flex-direction: column; gap: 16px; }
.big { font-size: 32px; font-weight: 700; min-height: 64px; }
.hint { font-weight: 400; }
.ph { color: var(--muted); font-weight: 400; }
.sel { display: flex; justify-content: space-between; align-items: center; }
/* Today's balance of the chosen account, before the arrow. */
.sel .selbal { margin-left: auto; padding-left: 12px; color: var(--muted); font-weight: 500; font-size: 15px; white-space: nowrap; }
.sel::after { content: ""; flex: none; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); margin: -4px 2px 0 12px; }
/* Every row of tabs or switches: equal tabs when they fit; when the words don't fit (a narrow phone, big text),
   the row slides sideways instead of squeezing or cutting them. A safety net, never a look on purpose. */
.seg { display: flex; background: var(--seg); border-radius: 12px; padding: 4px; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: 1; min-width: max-content; white-space: nowrap; min-height: 44px; border: 0; border-radius: 9px; background: transparent; font: 600 15px Manrope, system-ui, sans-serif;
  color: var(--seg-text); cursor: pointer; }
.seg .on { background: var(--card); color: var(--text); box-shadow: 0 1px 2px var(--seg-shadow); }
.seg button:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.alert { border: 2px solid var(--danger); }
/* The date field looks like the other pickers; the phone's own date picker sits on top of it. */
.datew { position: relative; }
.datew .b { display: flex; align-items: center; color: var(--text); font-weight: 600; }
.datew input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; margin: 0; padding: 0;
  font-size: 16px; cursor: pointer; -webkit-appearance: none; appearance: none; }
.datew input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.datew:focus-within .b { outline: 2px solid var(--link); outline-offset: 2px; }
.scrim { position: fixed; inset: 0; background: rgba(30, 30, 28, .55); display: flex; align-items: flex-end; justify-content: center; z-index: 10;
  animation: fade .15s ease-out; }
.sheet { background: var(--card); color: var(--text); border-radius: 18px 18px 0 0; width: 100%; max-width: 480px; max-height: 85vh; max-height: 85dvh;
  overflow-y: auto; padding: 12px 20px calc(env(safe-area-inset-bottom) + 28px); display: flex; flex-direction: column; outline: none;
  animation: up .2s ease-out; }
.sheet h2 { margin: 0; font-size: 20px; }
.sheet > .r { margin-bottom: 6px; }
.grab { width: 40px; height: 4px; border-radius: 2px; background: var(--field-line); align-self: center; margin-bottom: 12px; flex: none; }
.o { width: 100%; background: none; border: 0; border-top: 1px solid var(--line); padding: 6px 0; min-height: 52px; text-align: left;
  font: 600 16px Manrope, system-ui, sans-serif; color: var(--text); cursor: pointer; }
button.o { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
/* The chosen row in a picker: a soft accent tint (no tick needed). */
.o.cur { background: color-mix(in srgb, var(--accent) 15%, transparent); border-radius: 10px; border-top-color: transparent;
  margin: 0 -10px; padding-left: 10px; padding-right: 10px; width: calc(100% + 20px); }
.o.cur + .o { border-top-color: transparent; }
.o.add { color: var(--link); }
/* Keyboard highlight in a picker: a soft accent tint plus a lighter ring, inside the row so it never touches the text. */
.o:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 75%, transparent); outline-offset: -4px;
  background: color-mix(in srgb, var(--accent) 12%, transparent); border-radius: 12px; border-top-color: transparent;
  margin: 0 -12px; padding-left: 12px; padding-right: 12px; width: calc(100% + 24px); }
.o:focus-visible + .o { border-top-color: transparent; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
/* Name suggestions on New loan: a list that floats under the box while it's tapped. */
.has-sugg { position: relative; }
.sugg { position: absolute; left: 0; right: 0; top: 100%; margin-top: 6px; z-index: 5; padding: 0 14px;
  background: var(--card); border: 1px solid var(--field-line); border-radius: 12px; box-shadow: 0 8px 24px var(--seg-shadow); }
.sugg .o { font-weight: 500; }
.sugg .o:first-child { border-top: 0; }
.chip { min-height: 44px; border-radius: 999px; border: 1px solid var(--field-line); background: var(--card); color: var(--text);
  font: 600 14px Manrope, system-ui, sans-serif; padding: 0 14px; cursor: pointer; }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip:disabled { opacity: .55; }
.chip:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
@keyframes up { from { transform: translateY(40px); opacity: .4; } }
@keyframes fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .scrim, .sheet { animation: none; } }

/* Slice 4: the dashboard, the delete popup and the edit pages. */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid2 .c { min-width: 0; }
/* Expenses / Income cards open their transactions. */
button.c.tapc { display: flex; flex-direction: column; justify-content: flex-start; width: 100%; text-align: left;
  font: inherit; color: inherit; cursor: pointer; position: relative; padding-right: 18px; }
/* A little bigger, and as thick as the row arrows (20px at 2.5), still in the corner. */
.tapc .chev { position: absolute; right: 4px; top: 13px; width: 16px; height: 16px; stroke-width: 3.1; color: var(--muted); }
.grid2 .v { overflow-wrap: anywhere; }
/* Expenses / Income amounts: one line, and the same size in both cards. --len is the
   longer amount's length; when it doesn't fit at the normal size, both shrink to fit the card. */
.grid2.fitv { container-type: inline-size; }
.grid2.fitv .v { white-space: nowrap; overflow-wrap: normal;
  font-size: min(22px, calc(((100cqi - 12px) / 2 - 36px) / (var(--len) * .6))); }
.nav { width: 48px; text-align: center; font-size: 20px; }
.acct { padding: 4px 16px; }
.acct .body { padding-bottom: 12px; }
.acct.gone { background: var(--dis); }
.a { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 52px; background: none; border: 0; padding: 0;
  font: 600 16px Manrope, system-ui, sans-serif; color: var(--text); cursor: pointer; }
.a .bal { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.a .endb { font-size: 12px; font-weight: 400; }
.a::after { content: ""; flex: none; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); margin: -4px 0 0 4px; }
.a.up::after { transform: rotate(-135deg); margin-top: 4px; }
.a:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.o.static { display: flex; justify-content: space-between; align-items: center; cursor: default; }
.hd { font-size: 13px; font-weight: 700; color: var(--muted); padding: 10px 0 4px; }
.txw { padding: 6px 0 6px 12px; }
.tx { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tx > div { min-width: 0; overflow-wrap: anywhere; }
.tx > strong { white-space: nowrap; }
.acts { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding-top: 6px; }
.acts .b { width: auto; }
.center { text-align: center; }
.scrim.center { align-items: center; padding: 24px; }
.dlg { background: var(--card); color: var(--text); border-radius: 16px; padding: 20px; width: 100%; max-width: 440px;
  display: flex; flex-direction: column; gap: 14px; animation: fade .15s ease-out; }
.dlg h2 { margin: 0; font-size: 20px; }
.dlg .r .b { flex: 1; }
.inset { background: var(--bg); }
.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
:root[data-theme="dark"] .danger { color: #1E1E1C; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .danger { color: #1E1E1C; } }
.b.d { color: var(--danger); }

/* After slice 4: tappable period title and the success message. */
.ptitle { flex: 1; min-width: 0; text-align: center; }
.pt { font: 700 16px Manrope, system-ui, sans-serif; color: var(--text); background: none; border: 0; padding: 0 4px; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
.pt::after { content: ""; flex: none; width: 6px; height: 6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); margin-top: -3px; }
.ptitle.datew { display: flex; justify-content: center; }
.ptitle.datew .pt { width: 100%; }
button.pt:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 8px; }
.mgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mgrid .chip { padding: 0; }
.chip:disabled { opacity: .4; cursor: default; }
.toastw { position: fixed; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom) + 20px); display: flex; justify-content: center;
  pointer-events: none; z-index: 20; padding: 0 20px; }
.toast { background: var(--text); color: var(--bg); font: 600 15px Manrope, system-ui, sans-serif; padding: 12px 18px; border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .25); animation: toast 2.6s ease forwards; max-width: 440px; }
@keyframes toast { 0% { opacity: 0; transform: translateY(12px); } 8% { opacity: 1; transform: none; } 85% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }

/* Slice 5: Settings. */
.seg .tb { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 8px 0; min-height: 64px; }
.b.link { display: flex; justify-content: space-between; align-items: center; }
.chev { color: var(--muted); flex: none; }
.right { text-align: right; margin-top: 6px; }
.b:disabled.d { color: var(--muted); background: var(--dis); }

/* Animations (all off with the phone's Reduce motion setting) */
.b, .ib, .chip, .seg button { transition: transform .1s ease, background-color .15s ease, color .15s ease; }
.b:active:not(:disabled), .ib:active, .chip:active:not(:disabled), .seg button:active { transform: scale(.97); }
.o, .a { transition: background-color .15s ease, transform .1s ease; }
button.o:active, .a:active { transform: scale(.99); }
.a::after { transition: transform .2s ease, margin-top .2s ease; }
.body { animation: open .2s ease-out; }
@keyframes open { from { opacity: 0; transform: translateY(-6px); } }
.scrim.leaving { pointer-events: none; animation: fadeout .2s ease-in forwards; }
.scrim.leaving .sheet { animation: down .2s ease-in forwards; }
.scrim.leaving .dlg { animation: shrink .15s ease-in forwards; }
@keyframes fadeout { to { opacity: 0; } }
@keyframes down { to { transform: translateY(100%); } }
@keyframes shrink { to { opacity: 0; transform: scale(.96); } }
.dlg { animation: pop .18s ease-out; }
@keyframes pop { from { opacity: 0; transform: scale(.96); } }
@media (prefers-reduced-motion: reduce) {
  .b, .ib, .chip, .seg button, .o, .a, .a::after { transition: none; }
  .b:active, .ib:active, .chip:active, .seg button:active, button.o:active, .a:active { transform: none; }
  .body, .dlg, .scrim.leaving, .scrim.leaving .sheet, .scrim.leaving .dlg { animation: none; }
}
/* No browser tap flash (the blue box on Android); the press-down effect is the tap feedback. */
html { -webkit-tap-highlight-color: transparent; }
/* Drag a slide-up panel down by its bar or title row. */
.grab, .sheet > .drag { touch-action: none; cursor: grab; }
.grab { position: relative; }
.grab::before { content: ""; position: absolute; inset: -14px -80px; }

/* Accent colour in a few more places. */
/* Thin accent things (icons, arrows, lines, outlines, the filter dot) use --link,
   which is the accent in light mode and its lighter shade in dark mode; filled things keep --accent. */
.seg .on { position: relative; }
.seg .on::after { content: ""; position: absolute; left: 28%; right: 28%; bottom: 4px; height: 3px; border-radius: 2px; background: var(--link); }
.acct:has(> .a.up) { border-left: 4px solid var(--link); }
/* Row arrows are grey everywhere (Settings rows were blue); the back arrow and
   icon buttons keep the accent, and so do the arrows inside links such as Manage funds. */
.ib svg, .more-link .chev { color: var(--link); }
.swb.on { border-color: var(--link); }
/* The tint needs a little more strength on the dark theme to be seen. */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .o.cur { background: color-mix(in srgb, var(--accent) 24%, transparent); } }
:root[data-theme="dark"] .o.cur { background: color-mix(in srgb, var(--accent) 24%, transparent); }

/* Dashboard account groups: Income, Expenses and Transfers headings with their totals. */
.grp + .grp { margin-top: 14px; }
.hd.gh { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; color: var(--text);
  text-transform: uppercase; letter-spacing: .04em; padding: 10px 0 6px; }
.hd.gh > .num:last-child, .hd.gh > span:last-child:not(:first-child) { text-transform: none; letter-spacing: 0; white-space: nowrap; }
.grp > div > .o, .grp > .o { padding-left: 12px; }
.pos { color: var(--pos); }
.neg { color: var(--neg); }

/* Loading placeholders: grey shapes that pulse while a page loads. */
.ph-wait { min-height: 1px; }
.ph.now .sk { animation: skp 1.2s ease-in-out infinite; }
.ph { display: flex; flex-direction: column; gap: 12px; }
.sk { background: var(--line); border-radius: 12px; animation: skp 1.2s ease-in-out infinite, skin 0s 150ms both; }
/* Loading shapes wait 150 ms before showing (review 2, 30 Nov 2026): a page coming from its kept copy, or a quick
   answer, then never flashes them. */
@keyframes skin { from { visibility: hidden; } to { visibility: visible; } }
.sk-card { height: 76px; }
.sk-hero { height: 128px; }
.sk-loans { height: 64px; }
/* Dashboard top: Available to spend first and biggest. */
.c.hero .v.hv { font-size: 32px; font-weight: 700; letter-spacing: -0.5px; margin-top: 2px; }
.c.hero .tot { display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.c.hero .tot .tv { font-size: 16px; font-weight: 600; }
.c.loans2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.c.loans2 strong { font-size: 16px; }
.sk-row { height: 52px; }
/* A list loading in its one card (30 Nov 2026): rows with lines between them, like the real list. */
.sklist { padding: 0 16px; }
.sklrow { display: flex; justify-content: space-between; align-items: center; min-height: 52px; }
.sklrow + .sklrow { border-top: 1px solid var(--line); }
.sk-ln { height: 14px; border-radius: 7px; }
.sk-amt { height: 14px; width: 64px; border-radius: 7px; }
.ph > .seclabel { margin-bottom: -4px; }
.sk-label { height: 12px; width: 40%; border-radius: 6px; margin-bottom: 8px; }
.sk-field { height: 48px; }
@keyframes skp { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: skin 0s 150ms both; } }
/* Dashboard: a figure of the newly picked period while it loads, and the back-to-now button. */
.sk-num { display: inline-block; width: 7.5em; max-width: 100%; height: 1em; border-radius: 6px; vertical-align: middle; }
.sk-num.sm { width: 4.5em; height: .8em; }
.nowr { display: flex; justify-content: center; }
.body.ph { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
/* Transactions page: one card per day, Show more at the bottom. */
.day { display: flex; flex-direction: column; gap: 6px; }
.more { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.rows { display: flex; flex-direction: column; gap: 8px; }
/* "Manage goals ›" / "Manage loans ›" at the bottom of the dashboard's Savings and Loans. */
button.o.more-link { justify-content: flex-start; gap: 4px; color: var(--link); font-weight: 600; }
button.o.more-link .chev { width: 18px; height: 18px; }
/* Dashboard: the period switch while loading, and a grey arrow on All transactions like the rows around it. */
.sk-seg { height: 52px; }
.dash-row .chev { color: var(--muted); }
.seg[hidden] { display: none; }
/* Bottom message outline: green when it worked, red for an error. */
.toast.ok { outline: 2px solid var(--pos); outline-offset: -2px; }
.toast.error { outline: 2px solid var(--neg); outline-offset: -2px; }
/* Savings fund targets: a bar and its line under the fund. */
.fund { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.fund .bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.fund .fill { height: 100%; border-radius: 4px; background: var(--accent); }
.fund .fill.done { background: var(--pos); }
.fundrow { border-top: 1px solid var(--line); padding: 10px 0 8px; }
/* Loan repayment bar: rows that open a loan, and the grey bar of a written-off loan. */
button.loanrow { display: block; width: 100%; background: none; border: 0; border-top: 1px solid var(--line); text-align: left; color: var(--text); font: inherit; cursor: pointer; }
button.loanrow > .r { display: flex; }
.fund .fill.off { background: var(--muted); }
/* Transaction lines: tap to edit; swipe left to show a red Delete behind the line. */
.txw { position: relative; overflow: hidden; padding: 0; }
.txrow { position: relative; background: var(--card); padding: 10px 0 10px 12px; touch-action: pan-y; cursor: pointer;
  transition: transform .2s ease; -webkit-user-select: none; user-select: none; }
/* At least 48px tall, an easy thumb target; the bin fills more of it. */
.txrow { min-height: 48px; display: flex; align-items: center; }
.txrow > .tx { flex: 1; min-width: 0; }
.grp .txw .txrow { padding-left: 24px; }
.txrow.drag { transition: none; }
.txw.locked .txrow { cursor: default; }
.txrow:focus-visible { outline: 2px solid var(--link); outline-offset: -2px; }
/* A rounded red button with just a bin. */
.txdel { position: absolute; top: 4px; right: 4px; bottom: 4px; width: 64px; border: 0; border-radius: 12px; background: var(--danger); color: #fff;
  display: flex; align-items: center; justify-content: flex-start; padding: 0 0 0 21px; cursor: pointer; transition: width .2s ease; }
.txw:has(.txrow.drag) .txdel { transition: none; }
/* Past half the line, the bin pops so you know letting go will delete. */
.txdel svg { transition: transform .15s ease; }
.txdel.armed svg { transform: scale(1.3); }
@media (prefers-reduced-motion: reduce) { .txdel, .txdel svg { transition: none; } .txdel.armed svg { transform: none; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .txdel { color: #1E1E1C; } }
:root[data-theme="dark"] .txdel { color: #1E1E1C; }
@media (prefers-reduced-motion: reduce) { .txrow { transition: none; } }

/* Shorter transaction lists inside an account (P4-02). */
.more.short { padding: 10px 0 6px; }
.more-b { display: flex; gap: 8px; justify-content: center; }
/* Show more / Show less are small centred buttons, as wide as their words. */
.more-b .b { flex: none; width: auto; padding: 0 20px; text-align: center; white-space: nowrap; }

/* Categories page: built-in categories grouped after the user's own. */
.builtin { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }

/* Reorder accounts (P5-04): the held row lifts out and follows the finger. */
.reo { display: flex; align-items: center; justify-content: space-between; gap: 8px; position: relative; }
.reo.fixed { opacity: .75; }
.reo.dragging { z-index: 2; box-shadow: 0 10px 24px rgba(0,0,0,.22); }
.reo .handle { font-size: 22px; line-height: 1; padding: 8px 12px; margin: -8px -8px -8px 0; cursor: grab; touch-action: none; user-select: none; color: var(--muted); }
.reo.dragging .handle { cursor: grabbing; }
.hdr .reo-b { flex: none; }

/* Search and filters on All transactions (P5-01). */
.filters { display: flex; flex-direction: column; gap: 10px; }
.filters .grid2 { gap: 10px; }
/* Dropdowns use the app's own arrow, like every other picker; tapping still opens the phone's list. */
.selw { position: relative; display: block; }
.selw > select.i { -webkit-appearance: none; appearance: none; padding-right: 44px; }
.selw::after { content: ""; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px; pointer-events: none;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); }
.filters .sum { align-items: center; }
.sumv { font-size: 18px; font-weight: 600; }
.sumv strong { font-weight: 700; }
.txnetr { gap: 10px; align-items: center; }
.txnet { font-size: 15px; white-space: nowrap; }
.txnet strong { font-weight: 700; }
.wtxsum .txnet { margin-left: auto; font-size: 18px; }

/* Filter button and panel on All transactions. */
.hdr .fbtn { position: relative; flex: none; color: var(--text); }
.hdr .fbtn.on::after { content: ""; position: absolute; top: 7px; right: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--link); }
.tags .tag { min-height: 36px; padding: 0 12px; font-size: 14px; }
.fsheet { gap: 12px; }
.fsheet .pnav { justify-content: space-between; align-items: center; }

/* Inside an open account: categories read as headers, their transactions sit in a soft tray. */
.o.cat .cn { display: flex; align-items: baseline; gap: 6px; font-weight: 700; }
.o.cat .tw { display: inline-block; color: var(--muted); font-weight: 600; transition: transform .15s ease; width: 10px; }
.o.cat[aria-expanded="true"] .tw { transform: rotate(90deg); }
.tray { --tray: color-mix(in srgb, var(--text) 5%, var(--card)); background: var(--tray); border-radius: 12px; margin: 2px 0 8px 12px; padding: 0; overflow: hidden; }
.tray .txrow { padding-right: 12px; }
.tray .swipe-note { padding: 8px 12px 0; }
.tray .txrow { background: var(--tray); font-size: 14.5px; }
.grp .tray .txw .txrow { padding-left: 14px; }
.tray .txw + .txw { border-top: 1px solid var(--line); }
.tray .more.short { padding: 8px 0 10px; }
@media (prefers-reduced-motion: reduce) { .o.cat .tw { transition: none; } }

/* Buttons side by side (Cancel / Done) center their text. */
.r > .b:not(.sm) { text-align: center; }
/* Accounts page: one compact row per account. */
.c.arow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.arow .aname { min-width: 0; }
.arow .aname strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arow .acts { display: flex; gap: 8px; flex: none; margin: 0; padding: 0; }

/* Two-choice question on a form (like Loan Direction): both choices visible, one tap. */
.radios { display: flex; gap: 12px; }
.radio { flex: 1; min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--field-line); background: var(--card); color: var(--text); font: 600 16px Manrope, system-ui, sans-serif; cursor: pointer; }
.radio .dot { width: 20px; height: 20px; flex: none; border-radius: 50%; border: 2px solid var(--muted); display: flex; align-items: center; justify-content: center; }
.radio.on { border-color: var(--link); }
.radio.on .dot { border-color: var(--link); }
.radio.on .dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--link); }
.radio:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
/* Deleted accounts on the dashboard get their own heading. */
.gonehd { margin-top: 8px; }
/* All transactions: rows centred in their day card, the same space left and right and above and below. */
.day .c.acct { padding-top: 0; padding-bottom: 0; }
.day .c.acct > .body { padding: 0; margin: 0; border: 0; }
.day .txrow { padding-left: 0; padding-right: 0; }
.dlg .inset { text-align: left; }
/* Review 2, bug 5 (30 Nov 2026): one long word in a note (a pasted reference) wraps instead of pushing the amount out. */
.dlg .inset .r > div { min-width: 0; overflow-wrap: anywhere; }
.loanrow .lpurp { display: block; text-align: left; margin-top: 2px; }
.center-t { text-align: center; }

/* Built-in categories heading: the size of a category name. */
.bhd { font-weight: 600; font-size: 16px; color: var(--text); }
.loanrow .lst { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.loanrow .lst .chev { width: 13px; height: 13px; color: var(--muted); }
/* Net for the period, a slim row under the Expenses and Income cards. */
.c.netrow { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; padding-bottom: 12px; }
.c.netrow strong { font-size: 17px; }

/* ---------- Laptop layout (Phase 6; mock: docs/mockups/laptop/mock.html) ----------
   From 1024px wide: a sidebar on the left, the page in the middle, Add and Edit as a panel on the right. */
.wl { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; --side: #EFECE4; --hover: #F1EEE7; }
:root[data-theme="dark"] .wl { --side: #1C1C1A; --hover: #2A2A27; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wl { --side: #1C1C1A; --hover: #2A2A27; } }
.wside { position: sticky; top: 0; height: 100vh; background: var(--side); border-right: 1px solid var(--line);
  padding: 20px 14px; display: flex; flex-direction: column; gap: 2px; }
.wbrand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; padding: 4px 10px 16px; }
.wbrand i { width: 26px; height: 26px; border-radius: 8px; background: var(--accent); }
.wbrand i svg { display: block; width: 100%; height: 100%; }
.wic { width: 20px; height: 20px; flex: none; }
.wadd { display: flex; align-items: center; gap: 10px; min-height: 44px; border: 0; border-radius: 12px; background: var(--accent); color: #fff;
  font: 600 15px Manrope, system-ui, sans-serif; padding: 0 12px; margin-bottom: 14px; cursor: pointer; }
.wadd .kbd { margin-left: auto; background: rgba(255,255,255,.18); border-color: transparent; color: #fff; }
.wnav { display: flex; align-items: center; gap: 12px; padding: 9px 10px; min-height: 42px; border: 0; border-radius: 10px; background: transparent;
  color: var(--text); font: 500 15px Manrope, system-ui, sans-serif; text-align: left; cursor: pointer; }
.wnav .wic { color: var(--muted); }
.wnav:hover { background: var(--hover); }
.wnav.on { background: var(--card); box-shadow: inset 3px 0 0 var(--link), 0 1px 2px rgba(0,0,0,.12); font-weight: 600; }
.wnav.on .wic { color: var(--link); }
.wcnt { margin-left: auto; color: var(--muted); font-size: 13px; font-weight: 500; }
/* Plans due on the laptop menu: red count, and a red dot on the calendar (open or closed menu). */
.wnav { position: relative; }
.wsum { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 10px 0; background: var(--card); font-size: 13px; }
.wsv { font-size: 22px; font-weight: 700; margin: 2px 0; font-variant-numeric: tabular-nums; }
.kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border: 1px solid var(--field-line);
  border-bottom-width: 2px; border-radius: 6px; font-size: 12px; color: var(--muted); font-weight: 600; background: var(--card); }
.wnav:focus-visible, .wadd:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.wstog { margin-left: auto; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 8px;
  background: transparent; color: var(--muted); cursor: pointer; padding: 0; }
.wstog:hover { background: var(--hover); color: var(--text); }
.wstog:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.wstog.weye + .wstog { margin-left: -6px; }
.wl.rail .wstog.weye + .wstog { margin-left: 0; }
/* Collapsed sidebar: icons only. Pointing at an icon shows its name. */
.wl { transition: grid-template-columns .2s ease; }
.wl.rail { grid-template-columns: 72px 1fr; }
/* While the menu grows back, every label stays on one line at its full width and the menu uncovers it,
   instead of wrapping and then snapping to one line. In the rail the names on
   hover need to stick out, so it doesn't clip. */
.wl:not(.rail) .wside { overflow-x: clip; white-space: nowrap; }
.wl:not(.rail) .wside > * { min-width: 220px; }
.wl.rail .wside { padding: 20px 14px; align-items: center; z-index: 6; }
.wl.rail .wbrand { flex-direction: column; padding: 4px 0 12px; gap: 12px; }
.wl.rail .wbt, .wl.rail .wside .wnav > span, .wl.rail .wadd > span:not(.ktip) { display: none; }
.wl.rail .wstog { margin-left: 0; }
.wl.rail .wadd { width: 44px; padding: 0; justify-content: center; }
.wl.rail .wside .wnav { width: 44px; padding: 0; justify-content: center; }
.wl.rail .wside [data-tip] { position: relative; }
.wl.rail .wside [data-tip]:hover::after, .wl.rail .wside [data-tip]:focus-visible::after {
  content: attr(data-tip); position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%);
  background: #222; color: #fff; font: 500 13px Manrope, system-ui, sans-serif; padding: 6px 10px; border-radius: 8px;
  white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.25); pointer-events: none; z-index: 20; }
@media (prefers-reduced-motion: reduce) { .wl { transition: none; } }
/* The two icon buttons next to "Wallet" say what they do on hover when the menu is open too; the label
   sits under the button, right-aligned, so the open menu doesn't cut it off. */
.wl:not(.rail) .wbrand [data-tip] { position: relative; }
.wl:not(.rail) .wbrand [data-tip]:hover::after, .wl:not(.rail) .wbrand [data-tip]:focus-visible::after {
  content: attr(data-tip); position: absolute; top: calc(100% + 8px); right: 0; background: #222; color: #fff;
  font: 500 13px Manrope, system-ui, sans-serif; padding: 6px 10px; border-radius: 8px; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,.25); pointer-events: none; z-index: 20; }

.wmain { min-width: 0; }
.wmain > .s { max-width: 1180px; padding: 28px 32px 40px; margin: 0; }
.wtop > .s > .hdr > .ib[aria-label="Back"] { display: none; }
/* Pages that are still the phone design keep a readable width. */
.wmain > .s:not(.wpage) { max-width: 640px; }

/* Add and Edit panel */
.wshade { position: fixed; inset: 0; background: rgba(0,0,0,.28); z-index: 30; }
.wpanel { position: fixed; top: 0; right: 0; bottom: 0; width: 460px; max-width: 100vw; background: var(--bg); border-left: 1px solid var(--line);
  box-shadow: -12px 0 32px rgba(0,0,0,.18); z-index: 31; overflow-y: auto; overscroll-behavior: contain; animation: wslide .2s ease; }
@keyframes wslide { from { transform: translateX(40px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wpanel { animation: none; } }
.wpanel > .s { min-height: 0; padding: 20px 24px 32px; max-width: none; }
.wclose { position: absolute; top: 18px; right: 20px; width: auto; min-height: 40px; display: flex; align-items: center; gap: 8px; z-index: 1; }
.wpanel .hdr { padding-right: 120px; }
/* Inside the panel the Add screen does not need View dashboard or Settings: the sidebar has them. */
.wpanel .hdr > .b.sm, .wpanel .hdr > .ib[aria-label="Settings"] { display: none; }
.wpanel .sheet, .wpanel .dlg { max-width: 460px; }

/* Wide Dashboard */
.wdash { gap: 18px; }
.wdash .hdr { align-items: baseline; gap: 16px; }
.wdash .hdr h1 { flex: none; }
.wdash .h2 { font-size: 16px; }
.wdash .r { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.wgrid4 { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 14px; }
.wgrid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.wcard { display: flex; flex-direction: column; gap: 6px; min-height: 120px; }
.wcard .v { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
button.wcard.wlink { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.wcard .k .bar { margin-top: 6px; }
.wlink:hover, button.c.tapc:hover, .wrow:hover { background: var(--hover); }
.wgrid3 .wcard { min-height: 0; }
.wdash .bar { height: 8px; border-radius: 4px; background: var(--seg); overflow: hidden; }
.wdash .bar i { display: block; height: 100%; background: var(--link); border-radius: 4px; }

.wpbar { display: flex; align-items: center; gap: 16px; padding: 8px; }
.wpbar .seg { width: 320px; flex: none; }
.wpnav { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; }
.wpnav .b.nav { width: 44px; min-height: 44px; padding: 0; }
.wpnav > :not(.nav) { flex: 0 1 auto; min-width: 240px; }
.wpbar > .b.sm { width: auto; flex: none; }


.wchart { display: flex; align-items: flex-end; gap: 3px; height: 180px; margin-top: 14px; padding-bottom: 20px; position: relative; }
/* An empty chart says why, in its middle (above the day labels). */
.wnospend { position: absolute; inset: 0 0 20px 0; display: flex; align-items: center; justify-content: center; margin: 0; pointer-events: none; }
.wbar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; position: relative; cursor: default; }
/* Red, like spending everywhere else. */
.wbar i { display: block; background: var(--neg); border-radius: 3px 3px 0 0; opacity: .38; min-height: 2px; }
.wbar.on i, .wbar.today i { opacity: 1; }
.wbar.tap { cursor: pointer; }
.wbar.tap:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 4px; }
.wbar.today .wx { color: var(--text); font-weight: 600; }
.wleg { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--neg); opacity: .38; margin-right: 6px; vertical-align: -1px; }
/* A dashed line at the average, its amount at the right end. */
.wavg { position: absolute; left: 0; right: 0; bottom: calc(20px + (100% - 20px) * var(--avg)); border-top: 1.5px dashed color-mix(in srgb, var(--text) 45%, transparent); pointer-events: none; z-index: 1; }
.wavg span { position: absolute; right: 0; bottom: 3px; font-size: 11px; font-weight: 600; color: var(--muted); }
.wbar.fut i { background: var(--line); opacity: 1; }
.wx { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--muted); white-space: nowrap; }
.wtip { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg);
  border-radius: 8px; padding: 6px 9px; font-size: 12px; white-space: nowrap; display: flex; flex-direction: column; z-index: 2; pointer-events: none; }
.wbar { justify-content: flex-end; }
.wbar .wtip { bottom: auto; top: -46px; }
.wbar:first-child .wx { left: 0; transform: none; }
.wbar:last-child .wx { left: auto; right: 0; transform: none; }

.wtable { padding: 0; overflow: hidden; }
/* Sticky table headings: on long laptop tables the column headings stay at the top
   while you scroll. clip (not hidden) keeps the rounded corners without stopping the heading from sticking. */
.wtable:has(> .wthd) { overflow: clip; }
.wtable > .wthd { position: sticky; top: 0; z-index: 3; background: var(--card); box-shadow: 0 1px 0 var(--line); }
.wth { padding: 14px 16px 8px; }
.wrow { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.25fr); gap: 10px; align-items: center; width: 100%;
  padding: 12px 16px; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--text); font: inherit; text-align: left;
  font-variant-numeric: tabular-nums; cursor: pointer; }
.wrow > span:not(:first-child) { text-align: right; }
/* The same › as the category rows, turned 90° when the account is open
   (the old ⌄ isn't in Manrope, so it came from a fallback font and sat low). */
.wrow .tw { display: inline-block; width: 16px; color: var(--muted); font-weight: 600; text-align: center; transition: transform .15s ease; }
.wrow.on .tw { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) { .wrow .tw { transition: none; } }
.wrow.on { background: var(--hover); box-shadow: inset 3px 0 0 var(--link); }
.wsubk { display: block; font-size: 13px; margin-left: 16px; }
.whead { cursor: default; font-size: 12px; color: var(--muted); font-weight: 600; padding-top: 8px; padding-bottom: 8px; text-transform: uppercase; letter-spacing: .04em; }
.whead:hover { background: transparent; }
.wgone { padding: 10px 16px 4px; border-top: 1px solid var(--line); font-weight: 600; }
.wbody { border-top: 1px solid var(--line); padding: 4px 16px 12px 42px; background: var(--card); }
.wtable .m { padding: 12px 16px; }
.wcat { display: block; width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--text);
  font: inherit; text-align: left; cursor: pointer; }
.wcat .r { display: flex; }
.wcat .bar { display: block; }
.wfoot { padding-top: 10px; font-size: 14px; }
.wlat { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; padding: 9px 0; border: 0; border-bottom: 1px solid var(--line);
  background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; font-variant-numeric: tabular-nums; }
.wlat > span:first-child { display: flex; flex-direction: column; min-width: 0; }
.wlat .k { font-size: 13px; }
.wsee { border: 0; background: transparent; color: var(--link); font: 600 15px Manrope, system-ui, sans-serif; cursor: pointer; padding: 4px; }
.wsearch { margin-left: auto; display: flex; align-items: center; gap: 10px; width: 340px; min-height: 44px; padding: 0 12px; border: 1px solid var(--field-line);
  border-radius: 12px; background: var(--card); color: var(--muted); font: 15px Manrope, system-ui, sans-serif; cursor: text; }
.wsearch .kbd { margin-left: auto; }
.wdash .hdr { align-items: center; }
.wcat .bar { margin-top: 6px; }
.wcat .amt .k { font-size: 13px; margin-left: 6px; }
.wcat + .more-link, .wdash .c > .more-link { margin-top: 6px; }

/* Wide All transactions (Phase 6): filters always open on the left, a sortable table. */
.wtx .hdr { align-items: center; }
.wsq { cursor: text; width: 420px; }
.wsq input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: 15px Manrope, system-ui, sans-serif; outline: none; height: 42px; }
.wsq:focus-within { border-color: var(--link); box-shadow: 0 0 0 1px var(--link); }
.wsq input::-webkit-search-cancel-button { cursor: pointer; }
.wtxcols { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; }
.wfil { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 14px; }
.wfil .r { display: flex; justify-content: space-between; align-items: center; }
.wfil .h2 { font-size: 16px; }
.wtxmain { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.wtxsum { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; min-height: 36px; }
.wtot2 { margin: 0; font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.wchips { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.wchips .chips { margin: 0; }
.wchips > .b.sm { width: auto; flex: none; }
.wtt { padding: 0; }
.wtrow { display: grid; grid-template-columns: 112px minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.5fr) 160px; gap: 12px; align-items: center;
  padding: 12px 16px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; cursor: pointer; min-height: 52px; }
.wtrow:first-child { border-top: 0; }
.wtrow:not(.wthd):hover, .wtrow:focus-within { background: var(--hover); }
.wtrow:focus-visible { outline: 2px solid var(--link); outline-offset: -2px; }
.wtrow.locked { cursor: default; }
.wtrow > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.wtrow .k { font-size: 14px; }
.wdesc { display: flex; flex-direction: column; }
.wdesc .k { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wamt { display: flex; justify-content: flex-end; align-items: center; gap: 4px; }
.wamt strong { white-space: nowrap; }
.wacts { display: flex; gap: 2px; visibility: hidden; }
.wtrow:hover .wacts, .wtrow:focus-within .wacts { visibility: visible; }
.wact { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
/* Pointing at the pen shows blue, at the bin red, each in a soft box, so the bin says it deletes before the click. */
.wact:hover { background: color-mix(in srgb, var(--link) 12%, transparent); color: var(--link); }
.wact.del:hover { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.wact svg { width: 18px; height: 18px; }
.wthd { cursor: default; padding-top: 10px; padding-bottom: 10px; min-height: 0; }
.wthd button { border: 0; background: transparent; padding: 4px 0; color: var(--muted); font: 600 12px Manrope, system-ui, sans-serif; text-transform: uppercase;
  letter-spacing: .04em; text-align: left; cursor: pointer; display: flex; align-items: center; gap: 4px; }
.wthd button:last-child { justify-content: flex-end; }
.wthd button:hover, .wthd button.on { color: var(--text); }
.warr { color: var(--link); font-size: 13px; }
.wtt .m { padding: 16px; margin: 0; }
.wtfoot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.wtfoot > .b.sm { width: auto; }

/* Wide Savings (Phase 6): fund cards across the top, activity as a table. */
.wgrow { flex: 1; }
.wsav .hdr { align-items: center; gap: 14px; }
.wsav .hdr h1 { flex: none; }
.wsav .hdr > .k { max-width: 520px; }
.wsav .hdr > .b.sm { width: auto; flex: none; }
.wsav .hdr > .b.p { padding: 0 16px; }
.wfunds { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.wfunds .wcard { min-height: 150px; }
.wgrid4 .wcard .v.zero { color: var(--muted); font-weight: 600; }
.wfunds .r { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 36px; }
/* A fund card's pen and bin show when you point at the card (or tab to them). */
.wfunds .wcard .wacts { margin: -6px -6px -6px 0; }
.wfunds .wcard:hover .wacts, .wfunds .wcard:focus-within .wacts { visibility: visible; }
.wfunds .wcard:hover { background: var(--hover); }
.wbigv { font-size: 32px !important; }
.wsav .wpbar { padding-left: 18px; }
.wsav .wpbar .seg { width: 220px; }
.wsav .wpnav { flex: none; }
.wsavt .wtrow { grid-template-columns: 112px minmax(0, 1.3fr) minmax(0, 1.3fr) minmax(0, 1.4fr) 160px; }
.wsavt .wthd span { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.wsavt .wthd span:last-child { text-align: right; }
/* From and To didn't fit side by side in the laptop filter box, so they stack there. */
.wfil .grid2 { grid-template-columns: minmax(0, 1fr); }
.wfil input[type="date"] { min-width: 0; width: 100%; box-sizing: border-box; }
/* Dashboard rows on a laptop: Edit and Delete on the row you point at. */
.txrow:hover .wacts, .txrow:focus-within .wacts, .wlat:hover .wacts, .wlat:focus-within .wacts { visibility: visible; }
.wide .txrow:hover { background: var(--hover); }
.wide .txrow { cursor: pointer; }
.wide .txw.locked .txrow { cursor: default; }
.wlat.locked { cursor: default; }
.wlat:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 6px; }
.tx .wamt { flex: none; }

/* Wide Loans (Phase 6): totals across the top, every loan in a table, the chosen loan beside it. */
.wloans .hdr { align-items: center; gap: 14px; }
.wloans .hdr h1 { flex: none; }
.wloans .hdr > .b.sm { width: auto; flex: none; padding: 0 16px; }
.wgrid4.weq { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wloans .wcard { min-height: 0; }
.wlcols { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(300px, 1fr); gap: 18px; align-items: start; }
.wloant .wth { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; }
.wloant .wth .seg { width: 280px; }
/* Purpose gets the room; Type and Status only as wide as their words. */
.wloant .wtrow { grid-template-columns: minmax(64px, .8fr) minmax(0, 2.4fr) repeat(3, minmax(90px, .9fr)) 92px; gap: 10px; }
.wloant .wtrow > .num { overflow: visible; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wloant .wthd span { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.wloant .wthd span:nth-child(n+3):nth-child(-n+5), .wloant .num { text-align: right; }
.wloant .num.strong { font-weight: 700; }
/* The card's own heading already names the loan. */
.wldet > .c > .k:first-child { display: none; }
.wloant .wtrow.on { background: var(--hover); box-shadow: inset 3px 0 0 var(--link); }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.pill.open { background: color-mix(in srgb, var(--link) 16%, transparent); color: color-mix(in srgb, var(--link) 88%, var(--text)); }
.pill.done { background: var(--seg); color: var(--muted); }
.wldet { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 10px; }
.wlh { margin: -4px 0 0; font-size: 22px; }
.wldet > .c { border: 0; box-shadow: none; padding: 0; background: transparent; }
.wldet > .c .v { font-size: 32px; }
.wldet .acts { justify-content: flex-start; }
.wldet .acts .b.sm { width: auto; }

/* The loan already shown beside the table isn't clickable, so no hand there. */
.wloant .wtrow.on { cursor: default; }
.wloant .wtrow.on:hover { background: var(--hover); }
/* Inside the side panel, Close takes the place of Back. */
.wpanel .hdr > .ib[aria-label="Back"] { display: none; }

/* Wide Settings (Phase 6): a section menu on the left, the chosen section beside it. */
.wsetcols { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px; align-items: start; }
.wsub { display: flex; flex-direction: column; gap: 2px; padding: 8px; position: sticky; top: 20px; }
.wsetmain { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.wsetmain > main.s { padding: 0; max-width: 640px; margin: 0; min-height: 0; }
.wsec { display: flex; flex-direction: column; gap: 6px; }
.wsec > .h2 { margin: 0; font-size: 17px; }
.wsec > p.k { margin: 0 0 8px; }
.wtiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.wtile { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card);
  color: var(--text); font: inherit; cursor: pointer; text-align: left; }
.wtile:hover { border-color: var(--field-line); }
.wtile.on { border: 2px solid var(--link); padding: 11px; }
.wtl { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.wtl svg { width: 20px; height: 20px; }
.wsel { margin-left: auto; color: var(--link); font-size: 14px; }
.wprev { position: relative; display: block; height: 104px; border-radius: 10px; overflow: hidden; background: #F4F2EC; border: 1px solid rgba(0,0,0,.06); }
.wprev.dark { background: #1B1B19; }
.wprev.device { background: linear-gradient(90deg, #F4F2EC 50%, #1B1B19 50%); }
.wprev i { position: absolute; left: 12px; top: 12px; bottom: 12px; width: 28%; border-radius: 8px; background: #E6E1D6; }
.wprev.dark i { background: #2B2B28; }
.wprev.device i { background: #8C8880; }
.wprev b { position: absolute; left: 36%; height: 12px; border-radius: 6px; background: #D7D2C6; }
.wprev b:first-of-type { top: 14px; width: 30%; }
.wprev b:last-of-type { top: 34px; width: 52%; }
.wprev.dark b { background: #45443F; }
.wprev.device b { background: #8C8880; }
.wprev em { position: absolute; left: 36%; top: 58px; width: 22%; height: 12px; border-radius: 6px; background: var(--accent); }
.wswatches { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.wswatch { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--card); color: var(--text); font: 600 15px Manrope, system-ui, sans-serif; cursor: pointer; }
.wswatch span { width: 44px; height: 44px; border-radius: 50%; }
.wswatch.on { border: 2px solid var(--link); padding: 13px 7px; }
.wsee.swmore { padding: 4px 0; margin-top: 12px; font-size: 14px; }
.wacct { padding: 0; gap: 0; }
.wacct .wth, .wcatcol .wth { display: flex; align-items: center; gap: 10px; padding: 14px 16px; }
.wacct .wth .b.sm, .wcatcol .wth .b.sm { width: auto; flex: none; }
/* Name and since on the left, balance and starting balance on the right. */
.wacct .wtrow { grid-template-columns: minmax(0, 1fr) 90px auto; padding-top: 12px; padding-bottom: 12px; }
.wacct .wtrow:first-child { border-top: 0; }
.wa2 { display: flex; flex-direction: column; }
.wa2 > strong { display: inline; }
.wnum2 { text-align: right; align-items: flex-end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wsub2 { font-size: 13px; margin-top: 2px; }
.wacct .wthd:hover { background: transparent; }
/* Categories you made: the whole row opens Rename; the icons show when you point at it. */
.wcown { cursor: pointer; }
.wcown:hover, .wcown:focus-within { background: var(--hover); }
.wcown:focus-visible { outline: 2px solid var(--link); outline-offset: -2px; }
.wcown:hover .wacts, .wcown:focus-within .wacts { visibility: visible; }
.wacct .wthd span { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.wacct .wthd span:nth-child(2), .wacct .wthd span:nth-child(3), .wacct .num { text-align: right; }
.wacct .num.strong { font-weight: 700; }
.wbtns { display: flex; justify-content: flex-end; gap: 6px; }
.wbtns .b.sm { width: auto; min-height: 36px; padding: 0 12px; }
.wlinkrow { width: 100%; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--text); font: inherit; text-align: left;
  display: flex !important; justify-content: space-between; align-items: center; cursor: pointer !important; }
.wlinkrow:hover { background: var(--hover) !important; }
.wlinkrow .chev { color: var(--muted); }
.wcats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.wcatcol { padding: 0; gap: 0; }
.wcatcol .wth { justify-content: space-between; }
.wcrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); min-height: 56px; }
.wcrow .k { font-size: 14px; }
.wbi .bhd { margin: 0 0 2px; }
.wbi p.k { margin: 0; }
.wcrow.wlinkrow { padding: 14px 16px; }
/* Settings sections as separate cards: heading with its buttons, the list, Deleted. */
.wshead { display: flex; align-items: center; gap: 10px; padding: 14px 16px; }
.wshead > div, .wshead > .h2 { flex: 1; }
.wshead .h2 { margin: 0; font-size: 17px; }
.wshead p.k { margin: 2px 0 0; }
.wshead .b.sm { width: auto; flex: none; }
.wsetmain .wacct + .wacct, .wsetmain .wshead + .wacct { margin-top: 0; }
.wcatcol { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.wcards { padding: 0; overflow: hidden; }
.wcards > .wcrow:first-child { border-top: 0; }
.wacct > .wlinkrow:first-child { border-top: 0; }

/* Laptop Add panel, pickers and Reorder (Phase 6; approved mock). */
.pair { display: contents; }
/* Laptop Add: Account and Category sat side by side until the account icon left no room for the
   name; now each has its own line, like on the phone. */
.kbdp { margin-left: 10px; background: rgba(255,255,255,.18); border-color: transparent; color: #fff; }
.wadded { margin-top: 6px; }
.wadded .hd { margin-bottom: 4px; }
.wad { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.wad:first-of-type { border-top: 0; }
.wdate { display: flex; align-items: center; gap: 10px; }
.wdate .calic { color: var(--muted); flex: none; }
.wdate.on { outline: 2px solid var(--link); outline-offset: 2px; }
.wcal { border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 12px; margin-top: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.08); color: var(--text); font-weight: 400; }
.wcalh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.wcalh .b.nav { width: 40px; min-height: 40px; padding: 0; }
.wcalg { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.wcalw { text-align: center; font-size: 12px; color: var(--muted); font-weight: 600; padding: 4px 0; }
.wday { height: 40px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--text); font: 15px Manrope, system-ui, sans-serif; cursor: pointer; font-variant-numeric: tabular-nums; }
/* Hover only with a mouse, and never on a picked day (a tapped end day stayed "hovered" on
   the phone and turned into a grey square). */
@media (hover: hover) { .wday:hover:not(:disabled):not(.on):not(.rone):not(.rs):not(.re):not(.inr) { background: var(--hover, var(--seg)); } }
.wday:disabled { color: var(--muted); opacity: .45; cursor: default; }
.wday.now { border-color: var(--link); }
.wday.on { background: var(--accent); color: #fff; font-weight: 600; }
.wday:focus-visible { outline: 2px solid var(--link); outline-offset: 1px; }
.wcalf { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.wcalf .k { margin-left: auto; font-size: 13px; }
/* Pickers under their field */
.scrim.popscrim { background: transparent; animation: none; }
.sheet.popd { position: fixed; border-radius: 14px; max-width: none; padding: 10px 14px 14px; box-shadow: 0 12px 32px rgba(0,0,0,.22);
  border: 1px solid var(--line); animation: popin .14s ease-out; }
.sheet.popd .grab { display: none; }
.sheet.popd h2 { font-size: 16px; }
@keyframes popin { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .sheet.popd { animation: none; } }
.scrim.leaving.popscrim .sheet { animation: fadeout .12s ease-in forwards; }
/* Reorder: Move up / Move down. Hidden from sight on a phone (dragging ≡ is for fingers) but still there for screen readers. */
.reoud { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wide .reoud { position: static; width: auto; height: auto; overflow: visible; clip: auto; display: flex; gap: 6px; margin-left: auto; }
/* Drawn arrows, centred exactly in their buttons. */
.wide .reoud .b.sm { width: 40px; height: 36px; min-height: 36px; padding: 0; display: grid; place-items: center; line-height: 0; }
.wide .reoud .b.sm svg { display: block; }
.wide .reo .handle { margin-left: 4px; }
.wdate { justify-content: flex-start; text-align: left; }
.wdate > span { flex: 1; text-align: left; }
/* The laptop calendar floats over the form under the Date field, like the pickers. */
.calscrim { position: fixed; inset: 0; z-index: 12; }
.wcalpos { position: fixed; }
.wcalpos .wcal { margin-top: 0; box-shadow: 0 12px 32px rgba(0,0,0,.22); animation: popin .14s ease-out; }
@media (prefers-reduced-motion: reduce) { .wcalpos .wcal { animation: none; } }
/* Rows inside the dashboard's cards highlight like every other row (a soft background),
   reaching a little past the text so the highlight isn't tight against it. */
.wcat, .wlat { margin: 0 -10px; padding-left: 10px; padding-right: 10px; width: calc(100% + 20px); }
.wcat:hover, .wcat:focus-visible, .wlat:not(.locked):hover, .wlat:focus-within { background: var(--hover); border-radius: 10px; border-bottom-color: transparent; }
/* Every laptop page is centred; the dashboard grows to about 1560px with a main
   column (what follows the period) and a right column (what doesn't). */
.wmain > .s.wpage { margin: 0 auto; }
.wmain > .s.wdash { max-width: 1560px; }
/* Laptop dashboard, layout B: Today on the left, the period you pick on
   the right in the tinted panel, the same order as the phone. Each side is as tall as what's in it. */
.wdashb { display: grid; grid-template-columns: minmax(320px, 1fr) minmax(0, 1.9fr); gap: 24px; align-items: start; }
/* minmax(0, 1fr): the column never grows past its side, so a long note in Latest transactions ends in "…" instead of
   pushing the cards under the period panel (bug found in the 29 Nov 2026 review). */
.wtoday { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-content: start; min-width: 0; padding-top: 15px; }
/* The two labels sit on one line and the Available card lines up with the picker: the panel
   has a 1px border and 14px above its label; the left side starts 15px down; both labels are 17px tall, 12px above
   what they name. */
.seclabel { font-size: 12px; line-height: 17px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-left: 4px; }
.wtoday > .seclabel { margin-bottom: -2px; }
/* Review 2 (30 Nov 2026): a touch stronger on the period panel's tinted background, for the readability guideline. */
.perhead > .seclabel { color: color-mix(in srgb, var(--muted) 85%, var(--text)); }
.wtodayc { display: grid; container-type: inline-size; }
.wtodayc > .v { font-size: min(32px, 11cqi); font-weight: 700; letter-spacing: -0.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* Savings full width, Lent out and You owe side by side, inside the Today card (no small lines). */
.wdtiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.wdtiles > .wcard { min-height: 0; gap: 4px; padding: 12px 14px; border-radius: 12px; container-type: inline-size; }
.wdtiles > .wide { grid-column: 1 / -1; }
.wdtiles .wdv { align-items: center; }
.wdtiles .wdv svg { color: var(--muted); flex: none; }
.wdtiles .wcard .v { font-size: min(22px, 12cqi); white-space: nowrap; }
/* The period panel: the phone's tint, the label inside at the top; the picker isn't pinned on the laptop. */
.perpanel.wper { margin: 0; padding: 0 14px 16px; gap: 14px; min-width: 0; }
.wper .perhead { position: static; margin: 0 -14px; padding: 14px; gap: 12px; border-radius: 22px 22px 0 0; }
.wper .wpbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 0; align-items: center; }
.wper .wpbar .seg, .wper .wpbar .seg.seg5 { grid-column: 1 / -1; width: 100%; }
.wper .wpbar > .wpnav { min-width: 0; justify-content: space-between; }
.wper .wpbar > .wpnav > :not(.nav) { min-width: 0; }
.wper .wpbar > .allr, .wper .wpbar > .rangef { grid-column: 1 / -1; min-width: 0; }
.wper .wpbar > .b.sm { margin: 0; }
/* Expenses, Income and Net in one row; amounts shrink to the card rather than stick out. */
.wper .wgrid3 .wcard { container-type: inline-size; }
.wper .wgrid3 .wcard .v { font-size: min(26px, 13cqi); white-space: nowrap; }
/* Spending by category beside Income by category and Transfers, stacked; that side ends on the same line as Spending. */
.wcats2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.wcats2 > .pcard { align-content: start; }
.wph .wchartsk { margin-top: 0; height: 246px; }
/* The laptop dashboard's loading shapes, sized like what they stand for (2 Dec 2026). */
.sk-segnav { height: 108px; }
.wsk3 { height: 88px; }
.wcatsk2 { height: 219px; }
.wlatsk { padding-top: 10px; padding-bottom: 10px; }
.wincol { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.wincol > .pcard:last-child { flex: 1; align-content: start; }
/* Narrower laptops: Net under Expenses and Income, the category cards one under another. */
@media (max-width: 1279px) {
  .wper .wgrid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wper .wgrid3 > :nth-child(3) { grid-column: 1 / -1; }
  .wcats2 { grid-template-columns: minmax(0, 1fr); }
  .wincol > .pcard:last-child { flex: none; }
}
/* A tablet held sideways or a small window: Today above the period, like the phone. */
@media (max-width: 1099px) {
  .wdashb { grid-template-columns: minmax(0, 1fr); }
  .wtoday { padding-top: 0; }
}
.wfsub { display: block; font-size: 13px; margin-top: 4px; }
/* Paybacks: the line under a category with money paid back, and the payback field and list. */
.catback { display: block; font-size: 13px; margin-top: 2px; }
.pbhint { margin: 6px 0 0; }
.pbnot { margin: 14px 0 6px; }
.pbsub { display: block; font-size: 14px; font-weight: 400; }
.wlat .amt { white-space: nowrap; }
/* Latest transactions (2 Dec 2026, Charlie: "looks weird"): a line only between rows, as wide as the text like the
   accounts list above it, and none under the last row. The row itself stays wider, for its hover background. */
.wlat { position: relative; border-bottom: 0; }
.wlat + .wlat::before { content: ""; position: absolute; top: 0; left: 10px; right: 10px; border-top: 1px solid var(--line); }
.wlat:hover::before, .wlat:hover + .wlat::before, .wlat:focus-within::before, .wlat:focus-within + .wlat::before { border-top-color: transparent; }
.wlat > span:first-child { min-width: 0; }
/* Loading shapes for the chart and the category lists while a new period loads. */
.wchartsk { display: block; height: 180px; margin-top: 14px; border-radius: 10px; }
.wcatsk { display: flex; flex-direction: column; gap: 14px; padding: 12px 0 6px; }
.wcatsk .sk { display: block; height: 18px; border-radius: 6px; }
.wcatsk .sk:nth-child(2) { width: 80%; }
.wcatsk .sk:nth-child(3) { width: 60%; }
/* Forms on a laptop open as a panel on the right, like Add and Edit. */
.scrim.sidescrim { align-items: stretch; justify-content: flex-end; background: rgba(0,0,0,.28); }
.sheet.sided { width: 460px; max-width: 100vw; max-height: none; height: 100%; border-radius: 0; padding: 20px 24px 28px;
  border-left: 1px solid var(--line); box-shadow: -12px 0 32px rgba(0,0,0,.18); background: var(--bg); animation: wslide .2s ease; }
.sheet.sided .grab { display: none; }
.sheet.sided h2 { font-size: 22px; }
.scrim.leaving.sidescrim .sheet { animation: wslideout .18s ease-in forwards; }
@keyframes wslideout { to { transform: translateX(40px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sheet.sided, .scrim.leaving.sidescrim .sheet { animation: none; } }
/* Two longer choices one above the other (delete an account with money: move it or write it off). */
.radios.col { flex-direction: column; gap: 8px; }
.radios.col .radio { padding: 12px 14px; text-align: left; align-items: flex-start; }
.radios.col .radio .dot { margin-top: 2px; }
.radios.col .radio > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.radios.col .radio .k { font-weight: 400; font-size: 14px; }
/* Deleted · Undo: stays 6 seconds, longer while the pointer is on it. */
.toast.act { animation: toastin .2s ease; display: flex; align-items: center; gap: 16px; pointer-events: auto; padding: 8px 8px 8px 18px; }
@keyframes toastin { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.tundo { white-space: nowrap; background: none; border: 0; color: var(--bg); font: 700 15px Manrope, system-ui, sans-serif; text-decoration: underline; padding: 6px 10px; border-radius: 8px; cursor: pointer; min-height: 36px; }
.tundo:hover { background: rgba(127, 127, 127, .25); }
.tundo:focus-visible { outline: 2px solid var(--accent); }
/* Locked rows open read-only details, so they get the normal hand cursor; Savings' loan rows don't open. */
.txw.locked .txrow, .wide .txw.locked .txrow, .wtrow.locked, .wlat.locked { cursor: pointer; }
.wlat.locked:hover { background: var(--hover); border-radius: 10px; border-bottom-color: transparent; }
.wtrow.noopen { cursor: default; }
/* Setup on a laptop (mock: docs/mockups/setup/mock.html). */
.wsu { max-width: 1120px; margin: 0 auto; padding: 32px 40px 48px; display: block; }
.wsu h1 { font-size: 30px; letter-spacing: -.5px; margin: 0 0 6px; }
.wsu .wlead { margin: 0 0 24px; max-width: 640px; }
.wsutop { display: flex; align-items: center; gap: 24px; margin-bottom: 28px; }
.wsubrand { font-weight: 800; font-size: 21px; display: flex; align-items: center; gap: 10px; letter-spacing: -.3px; }
.wsubrand i { width: 26px; height: 26px; border-radius: 8px; background: var(--accent); display: inline-block; }
.wsusteps { display: flex; align-items: center; gap: 10px; margin: 0 0 0 auto; padding: 0; list-style: none; font-weight: 600; font-size: 14px; color: var(--muted); }
.wsusteps li { display: flex; align-items: center; gap: 8px; }
.wsusteps b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line); font-size: 13px; }
.wsusteps .on { color: var(--text); }
.wsusteps .on b { background: var(--accent); border-color: var(--accent); color: #fff; }
.wsusteps .done b { background: var(--pos); border-color: var(--pos); color: #fff; }
.wsusteps .bar { width: 48px; height: 2px; background: var(--line); }
.wsucols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.wsucols .stack { display: flex; flex-direction: column; gap: 14px; }
.wsuhead { align-items: flex-end; margin-bottom: 24px; }
.wsuico { width: 40px; height: 40px; border-radius: 11px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); display: grid; place-items: center; flex: none; }
.wsuico .wic { width: 20px; height: 20px; }
.wsuacct { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.wsuacct:nth-child(2) { border-top: 0; }
.wsuacct .grow, .wsufund .grow { flex: 1; min-width: 0; }
.wtag { font-size: 12.5px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; }
.wsufund { display: flex; align-items: center; gap: 10px; margin: 8px 0 0 54px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; }
.wsufund.add { display: block; border-style: dashed; padding: 4px 12px 12px; }
.wsufi { color: var(--accent); display: grid; } .wsufi .wic { width: 16px; height: 16px; }
.wsufunds { display: flex; align-items: center; gap: 12px; margin: 6px 0 10px 54px; }
.b.wghost { border-color: transparent; background: none; color: var(--link); padding-left: 0; }
.wsutiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.wsutile { border: 1px dashed var(--line); border-radius: 12px; padding: 14px; display: flex; gap: 12px; align-items: flex-start; cursor: pointer; background: none; text-align: left; font: inherit; color: var(--text); }
.wsutile:hover, .wsutile:focus-visible { background: var(--hover); border-style: solid; }
.wsutile .wsuico { width: 34px; height: 34px; border-radius: 9px; }
.wsutile strong { display: block; }
.wsutile .k { display: block; }
.wsutile.own { grid-column: 1 / -1; }
.wsutile.add { display: block; cursor: default; border-style: solid; padding: 4px 14px 14px; }
.wsutile.add:hover { background: none; }
.wsusum { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 14px; }
.wsusum > .b.p { width: 100%; padding: 13px; font-size: 16px; }
.wsulist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.wsulist li { display: flex; align-items: center; gap: 10px; padding: 3px 0; }
.wsulist li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.wsulist li.sub { color: var(--muted); font-size: 14px; padding-left: 14px; }
.wsulist li.sub::before { background: none; border: 2px solid var(--accent); width: 4px; height: 4px; }
.wsulist li .k { margin-left: auto; font-size: 12.5px; }
.wsubrow { display: grid; grid-template-columns: 40px 1fr 190px; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.wsubrow.hd { border-top: 0; padding-top: 0; }
.wsubrow.hd + .wsubrow { border-top: 1px solid var(--line); }
.wsubrow.sub { border-top: 0; padding: 6px 0; }
.wsubrow.sub .nm { padding-left: 16px; border-left: 2px solid var(--line); }
.wsuin { display: flex; flex-direction: column; gap: 4px; }
.wsuin .i { text-align: right; font-variant-numeric: tabular-nums; }
.wsuin .err { font-size: 13px; }
.wsugen { text-align: right; padding-right: 13px; font-variant-numeric: tabular-nums; }
.wlabel { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.wkbd { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.wsubig { font-size: 26px; font-weight: 800; letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.wsuline { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.wsusplit { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: color-mix(in srgb, var(--accent) 15%, transparent); margin: 6px 0 4px; }
.wsusplit span { display: block; background: var(--accent); }
.wsusw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 8px; background: var(--accent); }
.wsusw.gen { background: color-mix(in srgb, var(--accent) 15%, transparent); border: 1px solid var(--line); }
.wsur { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.wsuhead { align-items: flex-end; }
.wsuline.wsur { flex-direction: row; }
.wsuhead > .b { width: auto; flex: none; }
.wsuico, .wsufi { color: var(--link); }
.wsulist li::before { background: var(--link); }
.wsulist li.sub::before { background: none; border-color: var(--link); }
/* Setup's small theme switch (mock: docs/mockups/setup/theme.html). */
.thsw { display: inline-flex; gap: 4px; background: var(--seg, var(--line)); border-radius: 10px; padding: 3px; flex: none; }
.thsw button { font: inherit; font-size: 13px; font-weight: 600; border: 0; background: none; color: var(--muted); border-radius: 8px; padding: 4px 10px; min-height: 30px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.thsw button svg { width: 14px; height: 14px; }
.thsw button.on { background: var(--card); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.thsw button:focus-visible { outline: 2px solid var(--link); outline-offset: 1px; }
.wsuvr { width: 1px; height: 26px; background: var(--line); flex: none; }

/* Phone bottom bar: Dashboard, a raised + in the
   accent colour, Settings. The page you're on shows in the accent colour. Sheets and popups (z-index 10+)
   cover it; it hides while typing and on Edit pages (main.tsx). */
.bbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9; background: var(--card); border-top: 1px solid var(--line);
  display: flex; align-items: flex-end; padding: 6px 16px calc(env(safe-area-inset-bottom) + 8px); }
.bt { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; background: none; border: 0;
  color: var(--muted); font: 600 12px Manrope, system-ui, sans-serif; min-height: 54px; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bt .wic { width: 25px; height: 25px; }
.bt.on { color: var(--link); }
.bt .pl { display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; margin-top: -30px; border-radius: 50%;
  background: var(--accent); color: #fff; border: 5px solid var(--bg); box-shadow: 0 3px 10px rgba(0,0,0,.18); transition: transform .1s ease; }
.bt .pl .wic { width: 28px; height: 28px; stroke-width: 2.6; }
.bt:active .pl { transform: scale(.94); }
.bt:focus-visible { outline: none; }
.bt:focus-visible > .wic, .bt:focus-visible .pl { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 8px; }
.bt:focus-visible .pl { border-radius: 50%; }
/* One-time hint above the +, in the bottom message's colors so it stands out on dark cards too. */
.plushint { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 108px); transform: translateX(-50%); z-index: 9;
  background: var(--text); color: var(--bg); font: 600 14px Manrope, system-ui, sans-serif; padding: 8px 14px; border-radius: 10px; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0,0,0,.25); pointer-events: none; animation: hintin .3s ease-out both .4s; }
.plushint::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; background: var(--text); transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
@keyframes hintin { from { opacity: 0; transform: translate(-50%, 8px); } }
@media (prefers-reduced-motion: reduce) { .plushint { animation: none; } }
/* Holding the + opens an arc of four round buttons. */
.bt.add { -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; touch-action: none; }
.bt.add .pl .wic { transition: transform .18s ease; }
.bbar.arcon .bt.add .pl .wic { transform: rotate(45deg); }
.arcdim { position: fixed; inset: 0; z-index: 9; touch-action: none; overscroll-behavior: contain; background: rgba(20,20,18,.5); animation: arcfade .15s ease-out; }
.arc { position: fixed; left: 50%; bottom: calc(var(--bbar-h, 64px) + 34px + env(safe-area-inset-bottom)); width: min(390px, 100vw); height: 120px;
  transform: translateX(-50%); z-index: 10; pointer-events: none; }
.arcb { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; padding: 0;
  font: 600 13px Manrope, system-ui, sans-serif; color: #fff; transform: translateX(-50%); pointer-events: auto; cursor: pointer;
  transition: opacity .15s ease; animation: arcout .26s cubic-bezier(.2,.9,.3,1.25) both; }
.arcb i { width: 56px; height: 56px; border-radius: 50%; background: var(--card); color: var(--link); display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.22); transition: transform .14s ease, background-color .14s ease, color .14s ease, box-shadow .2s ease; }
.arcb i .wic { width: 24px; height: 24px; }
.arcb span { background: rgba(20,20,18,.82); padding: 2px 8px; border-radius: 8px; transition: background-color .14s ease; }
.arcb:active i { transform: scale(.94); }
.arcb:focus-visible i { outline: 2px solid var(--link); outline-offset: 3px; }
/* Under the finger while dragging, and the pop when it's picked. */
.arcb.hot i { background: var(--link); color: #fff; transform: scale(1.22); box-shadow: 0 6px 20px color-mix(in srgb, var(--link) 45%, transparent); }
.arcb.hot span { background: var(--link); }
.arcb.pop i { background: var(--link); color: #fff; transform: scale(1.4); box-shadow: 0 0 0 10px color-mix(in srgb, var(--link) 25%, transparent); }
.arc.picked .arcb:not(.pop) { opacity: .35; }
/* Each button springs out of the + (it starts at the + and small), one after another. */
.arcb.a0 { left: 16%; top: 44px; --fx: min(34vw, 133px); --fy: 56px; }
.arcb.a1 { left: 38%; top: 0; --fx: min(12vw, 47px); --fy: 100px; animation-delay: .03s; }
.arcb.a2 { left: 62%; top: 0; --fx: max(-12vw, -47px); --fy: 100px; animation-delay: .06s; }
.arcb.a3 { left: 84%; top: 44px; --fx: max(-34vw, -133px); --fy: 56px; animation-delay: .09s; }
@keyframes arcout { from { opacity: 0; transform: translate(calc(-50% + var(--fx)), var(--fy)) scale(.3); } }
@keyframes arcfade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .arcb, .arcdim { animation: none; } .arcb i, .bt.add .pl .wic { transition: none; } .arcb.hot i, .arcb.pop i { transform: none; } }
/* Room for the bar under every page, and the bottom message sits above it. */
.hasbar main.s { padding-bottom: calc(env(safe-area-inset-bottom) + 100px); }
.hasbar .toastw { bottom: calc(env(safe-area-inset-bottom) + 92px); }

/* Dashboard periods: All · Day · Month · Year · Range, like All transactions' Dates.
   All shows where it starts; Range shows From and To in place of the arrows. */
.allr { justify-content: center; }
.allr .pt { display: flex; align-items: center; cursor: default; }
.allr .pt::after { content: none; }
.rangef { gap: 10px; }
.rangef .f { margin: 0; }
.wpbar .seg.seg5 { width: 400px; }
.wpbar .allr { flex: 1; display: flex; }
.wpbar .rangef { flex: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 200px)); justify-content: center; }
.wpbar .rangef .f { display: flex; align-items: center; gap: 8px; font-size: 14px; }
/* Laptop category lists: 5 biggest, then Show N more / Show less. */
/* From and To boxes drawn like the other pickers. */
.datew .sel { font-weight: 600; }
.datew .sel.ph { color: var(--muted); font-weight: 500; }
.wpbar .rangef .datew { flex: 1; min-width: 0; }
.wpbar .rangef .datew .b { white-space: nowrap; }
.datew .b.sel { display: flex; flex-direction: row; justify-content: space-between; align-items: center; text-align: left; white-space: nowrap; width: 100%; }

/* Phone dashboard top: inside the main card, Savings full width, then
   Lent out and You owe side by side; each opens its page. The loan amounts shrink together when needed. */
.htiles { display: grid; gap: 10px; margin-top: 14px; }
.htwo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; container-type: inline-size; }
.htile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; width: 100%;
  /* The trays' colour, a touch lighter than the card in dark and darker in light. */
  background: color-mix(in srgb, var(--text) 5%, var(--card)); border: 1px solid var(--line); border-radius: 14px; padding: 12px 30px 12px 14px; font: inherit; color: inherit; cursor: pointer; }
.htile.wide { flex-direction: row; justify-content: space-between; align-items: center; padding-right: 36px; }
.htile .k { font-size: 14px; }
.htile b { font-size: 18px; font-weight: 700; white-space: nowrap; }
.htile b.zero { color: var(--muted); font-weight: 600; }
.htile .chev { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; stroke-width: 3.1; color: var(--muted); }
.htwo .htile b { font-size: min(18px, calc(((100cqi - 10px) / 2 - 46px) / (var(--len) * .6))); }
.htile:active { transform: scale(.99); }
/* The card arrow moved 3px right and the label got 4px back, so "Expenses this month" fits on one line. */
.hdr .ib.txlist { margin-left: auto; }
.hdr .ib.eyeb { margin-left: auto; }
.hdr .ib.eyeb + .ib.txlist { margin-left: 0; }
/* Hide amounts: every amount on screen is marked by privacy.ts and covered by a soft bar in the
   accent color (a blur spread past the numbers and left smudges). */
::highlight(amt) { color: transparent; background-color: color-mix(in srgb, var(--link) 22%, transparent); }
.sk-hero-p { height: 200px; }
.sk-hero-l { height: 287px; }

/* A money amount never breaks over two lines anywhere; a − or + always stays with its number. */
.amt, .pos, .neg, .tv, .wrow:not(.whead) > span:not(:first-child) { white-space: nowrap; }
/* "See all" never wraps; "· any date" was removed from Latest transactions to give it room. */
.wsee { white-space: nowrap; }

/* Narrow-laptop fixes. */
/* Latest transactions: one line per name, "…" if it's long (the whole name is one click away). */
.wlat .wlt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wlat .k { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Loans table: split into Lent out and You owe, so no Type column. */
@media (max-width: 1399px) {
  .wloant .wtrow { grid-template-columns: minmax(80px, 1.3fr) repeat(3, minmax(84px, .9fr)) 84px; }
  .wloant .wtrow > :nth-child(2) { display: none; }
  .wloant .wtrow > span:first-child b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 1199px) {
  .wloant .wtrow { grid-template-columns: minmax(90px, 1.4fr) repeat(2, minmax(84px, 1fr)) 80px; }
  .wloant .wtrow > :nth-child(4) { display: none; }
  /* Settings → Theme: "Selected" on its own line under the name. */
  .wtl { flex-wrap: wrap; }
  .wtl .wsel { flex-basis: 100%; margin-left: 0; }
}
/* All transactions under 1280px: the filters sit above the list, in one row, so the list gets the full width. */
@media (max-width: 1279px) {
  .wtxcols { grid-template-columns: minmax(0, 1fr); }
  .wfil { position: static; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 12px; }
  .wfil > .r, .wfil > .pnav, .wfil > .grid2, .wfil > div.f { grid-column: 1 / -1; }
  .wfil > div.f .seg { max-width: 420px; }
  .wfil .f { margin: 0; }
}
/* On screens wider than the phone page (an unfolded Fold, a phone turned sideways) the bar's
   background still spans the screen, but its three buttons stay under the 480px page. Normal phones: unchanged (16px). */
.bbar { padding-left: max(16px, calc((100vw - 480px) / 2)); padding-right: max(16px, calc((100vw - 480px) / 2)); }
/* Settings → Categories on the laptop: side by side when there's room; under 1200px an
   Expense / Income switch like the phone's shows one list at a time, using the full width. */
.wcatseg { display: none; }
@media (max-width: 1199px) {
  .wcatseg { display: flex; max-width: 360px; margin-bottom: 14px; }
  .wcats { grid-template-columns: minmax(0, 1fr); }
  .wcats > .wcatcol:not(.cur) { display: none; }
}
/* Built-in categories dropdown: closed by default, at the top of each list. */
.bitog { display: flex; align-items: center; gap: 6px; width: 100%; background: none; border: 0; padding: 0; font: inherit;
  color: var(--text); text-align: left; cursor: pointer; min-height: 32px; }
.wcrow.bitog { padding: 12px 16px; min-height: 48px; justify-content: flex-start; border-top: 0; }
.bitog .k { font-weight: 400; }
.bitog .tw { display: inline-block; width: 12px; color: var(--muted); font-weight: 600; transition: transform .15s ease; }
.bitog[aria-expanded="true"] .tw { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) { .bitog .tw { transition: none; } }
/* The Expense / Income switch on a smaller laptop is as wide as the lists under it, like the phone's. */
@media (max-width: 1199px) { .wcatseg { max-width: none; } }
.builtin .birow { padding: 12px 0 2px; border-top: 1px solid var(--line); }

/* Phone Settings lists (accounts, funds, categories): tap to edit, swipe left to delete. */
.c.txw.swc { padding: 0; }
/* Lists in one card (30 Nov 2026): Settings' pages, accounts and categories. The rows lose their own box and get a
   line between them, inset like the Dashboard's; a row still swipes left to delete inside the card. */
.rlist { padding: 0 16px; }
.rlist > .b.link { border: 0; border-radius: 0; background: none; padding: 0; min-height: 52px; }
.rlist > .b.link + .b.link { border-top: 1px solid var(--line); }
.rowcard { padding: 0; overflow: hidden; display: grid; }
.rowcard > .c { border: 0; border-radius: 0; background: none; position: relative; }
.rowcard > .c + .c::before { content: ""; position: absolute; left: 16px; right: 16px; top: 0; border-top: 1px solid var(--line); z-index: 1; pointer-events: none; }
.swc .tx { display: block; }
.swc .txrow { padding: 14px 16px; border-radius: inherit; }
.swc .aname { min-width: 0; }
.swc .aname strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.swc .k { margin-top: 2px; }
/* Phone Loans: Lent out and You owe headings. */
.lgrp { margin: 6px 0 -4px 4px; }
/* Laptop Loans table: the Lent out / You owe heading rows. */
.wlgrp { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 16px 6px; border-top: 1px solid var(--line); }
.wlgrp strong { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
/* Laptop Categories under 1200px: the switch already says Expense or Income, so no heading card; + Add sits beside the switch. */
.wcattop { display: none; }
@media (max-width: 1199px) {
  .wcattop { display: flex; align-items: stretch; gap: 12px; margin-bottom: 14px; }
  .wcattop .wcatseg { flex: 1; margin-bottom: 0; }
  .wcattop .wcatadd { display: inline-flex; align-items: center; justify-content: center; width: auto; flex: none; padding: 0 20px; }
  .wcats .wshead { display: none; }
}

/* Counts sit on the right of the row in grey, no "·" before them. */
.bitog .bicount { margin-left: auto; padding-right: 2px; }
.wlinkrow > .r { display: flex; align-items: center; gap: 8px; }
/* Phone Accounts: the balance on the right. */
.swc .tx > .r { align-items: center; gap: 12px; }
.swc .abal { flex: none; white-space: nowrap; }
/* Phone Settings: icons on the rows, and Appearance as a dropdown. */
.lnk { display: inline-flex; align-items: center; gap: 12px; }
.lnk .wic { color: var(--muted); }
.appr { padding: 0; }
:is(.apptog, .sgntog) { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 52px; padding: 12px 16px;
  background: none; border: 0; font: inherit; font-weight: 600; color: var(--text); text-align: left; cursor: pointer; }
:is(.apptog, .sgntog) > .r { gap: 8px; }
/* The due card's arrow (Dashboard) is the same one, turning the same way (Charlie, 1 Dec 2026). */
:is(.apptog, .sgntog) .chev, .duetog .chev { transition: transform .15s ease; }
:is(.apptog, .sgntog)[aria-expanded="true"] .chev, .duetog[aria-expanded="true"] .chev { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) { :is(.apptog, .sgntog) .chev, .duetog .chev { transition: none; } }
.appnow { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; white-space: nowrap; }
/* "Detailed · Device" on one line even at 360px. */
:is(.apptog, .sgntog) .lnk { min-width: 0; }
:is(.apptog, .sgntog) { gap: 10px; }
@media (max-width: 380px) { .appnow { font-size: 14px; gap: 6px; } :is(.apptog, .sgntog) > .r { gap: 6px; } }
.appdot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.appbody { padding: 0 16px 16px; border-top: 1px solid var(--line); padding-top: 14px; }

/* Phone Reorder, hold anywhere on a row; no text selection or callout from the long press. */
.reo:not(.fixed) { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.reo .handle { pointer-events: none; }

/* Phone dashboard, "Balances as of today" under the title. */
/* Phone dashboard labels: "Today, Nov 26" above the top card, "The period you pick" above the panel. */
main.s > .seclabel { margin-bottom: -6px; }
main.s > .todaylbl { margin-top: -2px; }
main.s > .perlbl { margin-top: 6px; }
main.s > .perlbl + .perpanel { margin-top: 0; }

/* Offline strip: phone, fixed at the top; laptop, at the top of the page beside the menu. */
.offbar { position: fixed; top: 0; left: 0; right: 0; z-index: 30; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: calc(env(safe-area-inset-top) + 9px) 14px 9px; background: #3b3a36; color: #fff; font: 600 14px Manrope, system-ui, sans-serif; text-align: center; }
.offbar svg { flex: none; }
/* Review 2, improvement 3 (30 Nov 2026): two lines on the left, Try again on the right. */
.offbar .offtx { flex: 1; min-width: 0; display: flex; flex-direction: column; text-align: left; line-height: 1.3; }
.offbar .offtx b { font-weight: 600; }
.offbar .offtx span { font-weight: 400; opacity: .85; font-size: 13.5px; }
.offbar .offtry { flex: none; font: 600 13.5px Manrope, system-ui, sans-serif; color: #fff; background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28); border-radius: 10px; padding: 8px 12px; cursor: pointer; }
.offbar .offtry:disabled { opacity: .6; }
.offbar.slowbar { justify-content: center; }
html.offline:not(.wide) body { padding-top: calc(env(safe-area-inset-top) + 54px); }
.wmain > .offbar { position: sticky; }
/* Demo tag, only on the demo copy. */
.demotag { display: inline-flex; align-items: center; font: 700 12px Manrope, system-ui, sans-serif; letter-spacing: .02em; color: #8a5a00;
  background: #ffe9b3; border-radius: 999px; padding: 3px 9px; margin-left: 10px; vertical-align: middle; flex: none; }
:root[data-theme="dark"] .demotag { color: #ffd77a; background: #4a3a12; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .demotag { color: #ffd77a; background: #4a3a12; } }
.wbrand .demotag { margin-left: -2px; }
.wbrand i { flex: none; }
/* Offline on a laptop: the sticky table headings sit just under the strip. */
html.offline.wide .wtable > .wthd { top: 54px; }

/* Keys on hover: a dark label with the button's name and its key, after a short moment. */
/* (.wclose is already placed absolutely, which also holds its label.) */
.wadd, .wstog, .wsearch, .ksave { position: relative; }
.ktip { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); z-index: 20; display: flex; align-items: center; gap: 8px;
  background: #222; color: #fff; font: 500 13px Manrope, system-ui, sans-serif; padding: 6px 8px 6px 10px; border-radius: 8px; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,.25); pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .12s ease, visibility 0s linear .12s; }
.ktip.r { left: auto; right: 0; transform: none; }
.ktip b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 5px; background: rgba(255,255,255,.16); font: 600 12px Manrope, system-ui, sans-serif; }
:hover > .ktip, :focus-visible > .ktip { opacity: 1; visibility: visible; transition: opacity .12s ease .4s, visibility 0s linear .4s; }
.wsearch.wsq:focus-within > .ktip { opacity: 0; visibility: hidden; }
/* In the collapsed menu the labels sit to the right of the icons, like the names. */
.wl.rail .wside .ktip, .wl.rail .wside .ktip.r { top: 50%; left: calc(100% + 12px); right: auto; transform: translateY(-50%); }
/* The ? button next to Settings (A). */
.wsetrow { display: flex; align-items: center; gap: 4px; }
.wsetrow > .wnav { flex: 1; }
.wl.rail .wsetrow { flex-direction: column; gap: 6px; }
.wstog.whelp .wic { width: 20px; height: 20px; }
/* The shortcuts list. */
.khelp { max-width: 460px; text-align: left; max-height: calc(100vh - 48px); overflow-y: auto; }
.khelp .c.tips { box-shadow: none; }
.khelp .tipb { padding-left: 16px; }
.khead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.khead .b { width: auto; }
.kgrp { margin-top: 14px; }
.kt { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.krow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; }
.kt + .krow { border-top: 0; }
.kkeys { display: flex; gap: 4px; }
.krow .kbd { min-width: 26px; height: 26px; font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .ktip, :hover > .ktip { transition: none; } }
/* The ? button is at the bottom of the screen, so its label opens upward. */
.whelp > .ktip { top: auto; bottom: calc(100% + 8px); }
.wl.rail .wside .whelp > .ktip { top: 50%; bottom: auto; }

/* Phone All transactions: the title shrinks a little so the eye fits beside it on every phone. */
.hdr h1.h1fit { white-space: nowrap; font-size: clamp(19px, 5.7vw, 26px); overflow: hidden; text-overflow: ellipsis; }
/* Review 2, bug 6 (30 Nov 2026): on 320-wide phones the title shrinks a little to fit in full. */
@media (max-width: 340px) { .hdr h1.h1fit { font-size: 16px; } }
.hdr .ib.eyeb + .ib { margin-left: 0; }
.hdr .reo-b + .ib.eyeb { margin-left: 0; }
/* Tips (phone). */
.c.tips { padding: 0; }
/* Help: rows that open to a line and a picture, one at a time. */
.tip { border-top: 1px solid var(--line); }
.tip:first-child { border-top: 0; }
.tiph { all: unset; box-sizing: border-box; width: 100%; display: flex; gap: 14px; align-items: center; padding: 14px 16px; cursor: pointer; min-height: 64px; }
.tiph:focus-visible { outline: 2px solid var(--link); outline-offset: -2px; border-radius: 12px; }
.tiph b { flex: 1; font-size: 16px; }
.tiph .chev { flex: none; color: var(--muted); transition: transform .2s ease; }
.tip.open .tiph .chev { transform: rotate(90deg); }
.tip i { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-style: normal; font-weight: 700;
  background: color-mix(in srgb, var(--link) 14%, transparent); color: var(--link); }
.tipb { padding: 0 16px 16px 66px; display: grid; gap: 10px; }
.tipb > span:first-child { color: var(--muted); font-size: 14px; line-height: 1.4; }
.tippic img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.tippic .pd { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tippic .pl { display: none; } :root:not([data-theme="light"]) .tippic .pd { display: block; } }
:root[data-theme="dark"] .tippic .pl { display: none; }
:root[data-theme="dark"] .tippic .pd { display: block; }
@keyframes tipin { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .tipb { animation: none; } .tiph .chev { transition: none; } }
/* Email Charlie, at the top of Help. */
.c.contact { display: grid; gap: 4px; margin-bottom: 14px; }
.contact b { font-size: 17px; }
.contact > span { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.contact a.b { display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-weight: 600; }
.khelp .c.contact { box-shadow: none; }
.khelp .contact a.b { justify-self: start; width: auto; padding: 0 18px; }

/* Phone Dashboard: the All transactions button says "All" next to its icon. */
.hdr .ib.txall { width: auto; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px 0 11px; font: 600 15px Manrope, system-ui, sans-serif; color: var(--link); }
.repr { justify-content: space-between; align-items: center; gap: 12px; width: 100%; }
.repr > strong { white-space: nowrap; }


/* Dashboard rework: above the date picker is today, below it the period. */
/* Each account's balance today, under Available to spend (phone top card; laptop Accounts today card). */
.accrows { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 10px; border-top: 1px solid var(--line); }
.accr { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 10px 0; border: 0;
  border-bottom: 1px solid var(--line); background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.accr > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.accr > b { font-weight: 600; white-space: nowrap; }
.accr .chev { flex: none; color: var(--muted); }
.accr:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 6px; }
.wtodayc .accrows { margin-top: 10px; }
.wdash .accr:hover { background: var(--hover); }
.totline { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; color: var(--muted); font-size: 14px; }
.totline > span:last-child { white-space: nowrap; }
/* The period's cards: Spending and Income by category, Transfers, end-of-period balances. */
.c.pcard { display: grid; gap: 2px; }
.pcard > .r:first-child { margin-bottom: 4px; }
.pcard .h2 { font-size: 17px; }
.wdash .pcard .h2 { font-size: 16px; }
.pcard .bar { display: block; height: 6px; margin-top: 6px; border-radius: 3px; background: color-mix(in srgb, var(--link) 14%, transparent); overflow: hidden; }
.pcard .bar i { display: block; height: 100%; border-radius: 3px; background: var(--link); }
.pcard .bar.inc { background: color-mix(in srgb, var(--pos) 14%, transparent); }
.pcard .bar.inc i { background: var(--pos); }
.pcard .wcat .r { justify-content: space-between; gap: 12px; }
.pcard .wcat b { min-width: 0; overflow-wrap: anywhere; text-align: left; }
.endr { justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.endr:last-child { border-bottom: 0; }
.endr b { font-weight: 600; white-space: nowrap; }
/* Phone: spending bars red like the Expenses amount, each with its % of the total. */
.pcard .bar.exp { background: color-mix(in srgb, var(--neg) 14%, transparent); }
.pcard .bar.exp i { background: var(--neg); }
.pcard .cpct { font-size: 13px; white-space: nowrap; }
/* Email Charlie: the address with Copy, for computers with no email app set up. */
.contaddr { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; color: var(--muted); font-size: 14px; }
.contaddr > span { min-width: 0; overflow-wrap: anywhere; user-select: all; }
.contaddr .b.sm { flex: none; min-height: 36px; padding: 0 14px; }
.khelp .contaddr { justify-content: flex-start; }

/* The period panel: the date picker and what it controls in one panel tinted
   with the accent colour; the picker is its top bar and stays at the top while scrolling. Phone dashboard only. */
.perpanel { display: grid; gap: 12px; margin-top: 6px; padding: 0 10px 14px; border-radius: 22px;
  background: color-mix(in srgb, var(--link) 7%, var(--bg)); border: 1px solid color-mix(in srgb, var(--link) 16%, transparent); }
.perpanel.loading { background: none; border-color: transparent; padding: 0; }
.perhead { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; display: grid; gap: 10px;
  margin: 0 -10px; padding: 12px 12px 10px; border-radius: 22px 22px 0 0;
  background: color-mix(in srgb, var(--link) 7%, var(--bg));
  border-bottom: 1px solid color-mix(in srgb, var(--link) 16%, transparent); }
/* The month, year and date sheets open from inside the pinned bar, which sits under the bottom bar (z-index 9);
   while one is open the bar is lifted above it, so the sheet covers the bottom bar like every other sheet. */
.perhead:has(.scrim) { z-index: 11; }
.perpanel.loading .perhead { position: static; background: none; border: 0; padding: 0; margin: 0; }
.perhead > * { margin: 0; }
.perpanel > .c, .perpanel > .grid2 { margin: 0; }
.perpanel .seg5 { background: color-mix(in srgb, var(--link) 13%, var(--bg)); }
/* Range on the phone: one line, the height of Month's, that opens From and To
   in a sheet. Before, From and To sat in the pinned bar and stuck out of the panel below about 385px wide. */
.perhead .rline { justify-content: center; gap: 4px; font-weight: 600; font-size: 17px; white-space: nowrap; }
.sheet .rangef { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 4px 0 16px; }
.sheet .rangef .f, .sheet .rangef .datew { min-width: 0; }
.sheet .rangef .datew .b { padding-left: 12px; padding-right: 10px; font-size: 15px; white-space: nowrap; }
@media (max-width: 359px) { .sheet .rangef .datew .b { padding-left: 10px; padding-right: 8px; font-size: 14px; } .sheet .rangef .sel::after { margin-left: 6px; } }
.sheet .rgo { width: 100%; }
/* Accounts on the phone dashboard: the first 4, then Show N more. */
.accmore { all: unset; box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%;
  padding: 12px 0 2px; color: var(--link); font-weight: 600; font-size: 15px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.accmore:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 8px; }
.accmore svg { transition: transform .2s; }
.accmore svg.up { transform: rotate(180deg); }
/* Every Show more / Show less: this link, also under the period cards and All transactions. */
.accmore:disabled { color: var(--muted); cursor: default; }
.more-b .accmore, .wtfoot .accmore { width: auto; padding: 4px 8px; }
.pcard > .accmore { padding-top: 10px; }
@media (prefers-reduced-motion: reduce) { .accmore svg { transition: none; } }
.perpanel .b.nav:disabled { background: color-mix(in srgb, var(--link) 4%, var(--bg)); }

/* Account icons: in the accent colour, in a soft square where there's room. */
.aicw { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--link) 12%, transparent); color: var(--link); }
.aicw.sm { width: 28px; height: 28px; border-radius: 8px; }
.aglyph { flex: none; color: var(--link); }
.accr { gap: 12px; }
.accr > .aicw, .accr > .aglyph { flex: none; }
/* Laptop Today card: the icon alone, names on one line. */
.wtodayc .accr { gap: 10px; font-size: 15px; }
.wtodayc .accr > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wtodayc .accr .chev { width: 16px; height: 16px; }
.wcard .k .aglyph { display: inline-block; vertical-align: -3px; margin-right: 6px; }
/* The dashboard's Savings tile with its piggy bank. */
.htile.wide { gap: 12px; }
.htile.wide > .k { flex: 1; }
/* Account pickers: icon, the name on one line, the balance at the right edge. */
button.o.oic { justify-content: flex-start; gap: 12px; }
button.o.oic > span:not(.aicw):first-of-type { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
button.o.oic > .k { flex: none; margin-left: auto; }
/* Settings → Accounts: the icon left of the name (phone list and laptop table). */
.swc .r > .aicw { margin-right: 12px; }
.swc .r > .aname { flex: 1; min-width: 0; }
.wa2.wai { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
.wa2.wai > .aicw { grid-row: span 2; }
/* Edit account: the icon left of the name, "Icon" above it; it opens the list of icons. */
.nmrow { display: flex; gap: 12px; align-items: flex-end; }
.nmrow > label.f { flex: 1; min-width: 0; }
.icbtn { display: grid; place-items: center; width: 48px; height: 48px; box-sizing: border-box; padding: 0; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--field-line); background: color-mix(in srgb, var(--link) 12%, var(--card)); color: var(--link); }
.icbtn.fixed { cursor: default; }
.icbtn .aglyph { color: var(--link); }
.icbtn:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.icgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.icgrid button { display: grid; justify-items: center; gap: 6px; padding: 10px 4px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--card); color: var(--muted); font: inherit; font-size: 12px; text-align: center; cursor: pointer; }
.icgrid button .aicw { width: 40px; height: 40px; }
.icgrid button.on { border: 2px solid var(--link); color: var(--text); font-weight: 600; }
.icgrid button:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
button.o.oic > .aicw { align-self: center; padding: 0; height: 34px; }
button.o.oic > .aicw.sm { height: 28px; }
/* The chosen account's icon in a picker field. */
.sel.withic { justify-content: flex-start; gap: 10px; }
.sel.withic > .selic { flex: none; }
.sel.withic > span:not(.selbal):not(.ph) { flex: 1; min-width: 0; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sel.withic > .selbal { padding-left: 4px; }
/* A very long one-word category ends in "…" like an account, instead of pushing the page wider (Planned check, 2 Dec 2026). */
.sel { min-width: 0; }
.sel > #cav { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* One look everywhere: account icons are plain, in the accent colour, with no square behind
   them. The Icon button in Edit account and the tiles in the icon list keep their own frames (they're buttons). */
.aicw, .aicw.sm, button.o.oic > .aicw, button.o.oic > .aicw.sm, .icgrid button .aicw {
  width: auto; height: auto; padding: 0; border-radius: 0; background: none; }
.icgrid button .aicw .aglyph { width: 26px; height: 26px; }
.icgrid button { padding: 14px 4px 10px; gap: 8px; }
.kbd.karrow { width: 24px; min-width: 24px; padding: 0; }
/* Reorder accounts: each row's icon left of its name. */
.reo > .aicw { flex: none; margin-right: 12px; }
.reo:has(> .aicw) > strong { flex: 1; }

/* Phase 7, Planned transactions */
.bt { position: relative; }
.plsec { display: grid; padding-top: 4px; padding-bottom: 4px; }
/* Tighter rows (2 Dec 2026, Charlie, A from a mock): a long list reads faster; the name stays on one line. */
.plsec .txrow { padding: 7px 0; min-height: 0; }
.plsec .plt > .clamp2 { -webkit-line-clamp: 1; line-clamp: 1; }
.plsec .txw + .txw { border-top: 1px solid var(--line); }
.plt { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.pls { display: block; font-size: 13px; font-weight: 400; color: var(--muted); }
.pls.late { color: var(--neg); }
.pls .late { color: var(--neg); }
/* Planned's rows read like a calendar's list: a date block on the left (day and weekday), red when late, the accent
   colour today. */
.pldblk { flex: none; width: 40px; height: 40px; border-radius: 10px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; margin-right: 12px; background: color-mix(in srgb, var(--text) 5%, transparent); color: var(--text); }
.pldblk b { font-size: 16px; line-height: 17px; font-weight: 700; }
.pldblk + .plt { flex: 1; min-width: 0; text-align: left; }
.pldblk span { font-size: 9px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; opacity: .8; }
.pldblk.late { background: color-mix(in srgb, var(--neg) 12%, transparent); color: var(--neg); }
.pldblk.today { background: color-mix(in srgb, var(--link) 14%, transparent); color: var(--link); }
/* Month labels inside Planned's list: more space above than below, so each one reads as the start of its month. */
.plmon { font-size: 13px; font-weight: 600; color: var(--muted); padding-top: 16px; }
.plmon:first-child { padding-top: 6px; }
.pla { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plempty { display: grid; gap: 6px; }
.plinfo b { color: var(--text); }
.b.sel.miss { border-color: var(--neg); }
.plmiss { font-size: 13px; font-weight: 500; color: var(--neg); }
.plcols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; align-items: start; }
.plcols > div { display: grid; gap: 16px; min-width: 0; }
/* Its own layer is above the list (z-index 10, where sheets sit), so a sheet opened from the card covers the list. */
.plleft { position: sticky; top: 20px; z-index: 10; }
.plcols .seclabel { margin-bottom: -6px; }
.wide .plsec .txw { margin: 0 -8px; }
.wide .plsec .txrow { padding: 7px 8px; border-radius: 10px; }

/* Hide amounts when Wallet opens: a switch in Appearance. */
.swrow { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.swrow b { display: block; font-weight: 600; color: var(--text); font-size: 15px; }
.swrow small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.swt { flex: none; width: 50px; height: 30px; border-radius: 15px; border: 0; padding: 0; background: var(--field-line); position: relative; cursor: pointer;
  transition: background-color .15s ease; }
.swt::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: left .15s ease; }
.swt.on { background: var(--accent); }
.swt.on::after { left: 23px; }
.swt:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .swt, .swt::after { transition: none; } }
.swline { border-top: 1px solid var(--line); margin: 16px 0 14px; }

/* The shrunk menu, opened over the page while pointed at: the page keeps its place. */
.wl.peek { grid-template-columns: 72px 1fr; }
.wl.peek > .wmain { grid-column: 2; }
.wl.peek .wside { position: fixed; left: 0; top: 0; bottom: 0; width: 248px; z-index: 30; box-shadow: 6px 0 24px rgba(0,0,0,.14);
  animation: wpeek .16s ease-out; }
@keyframes wpeek { from { width: 72px; } to { width: 248px; } }
@media (prefers-reduced-motion: reduce) { .wl.peek .wside { animation: none; } }

/* Minimize menu and Hide amounts as menu rows at the bottom (open and shrunk). */
.wnav.wbot { position: relative; }
.wnav.wbot > svg { flex: none; width: 20px; height: 20px; color: var(--muted); }

/* Confirming a plan on another day than planned. */
.pldate { font-size: 13px; color: var(--muted); font-weight: 500; margin-top: -8px; }
.pldate b { color: var(--text); font-weight: 600; }
.pluse { display: block; border: 0; background: none; padding: 0; margin-top: 4px; min-height: 24px; color: var(--link); font: 600 13px Manrope, system-ui, sans-serif; cursor: pointer; }

/* One calendar everywhere: Wallet's own, with round days, on the phone (from the bottom) and the
   laptop (under the field). A range is two taps: circles on the first and last day, a band between. */
.wcalg { column-gap: 0; row-gap: 4px; }
.wday { width: 40px; height: 40px; padding: 0; border-radius: 50%; justify-self: center; }
.wday.on, .wday.rone { background: var(--accent); color: #fff; font-weight: 600; border-color: var(--accent); }
.wday.inr, .wday.rs, .wday.re { width: 100%; border-radius: 0; border: 0; --band: color-mix(in srgb, var(--accent) 14%, transparent); }
.wday.inr { background: var(--band); color: var(--text); }
.wday.rs, .wday.re { color: #fff; font-weight: 600; }
.wday.rs { background: radial-gradient(circle at center, var(--accent) 19.5px, transparent 20.5px), linear-gradient(to right, transparent 50%, var(--band) 50%); }
.wday.re { background: radial-gradient(circle at center, var(--accent) 19.5px, transparent 20.5px), linear-gradient(to left, transparent 50%, var(--band) 50%); }
:root[data-theme="dark"] .wday.on, :root[data-theme="dark"] .wday.rone, :root[data-theme="dark"] .wday.rs, :root[data-theme="dark"] .wday.re { color: #1E1E1C; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wday.on, :root:not([data-theme="light"]) .wday.rone,
  :root:not([data-theme="light"]) .wday.rs, :root:not([data-theme="light"]) .wday.re { color: #1E1E1C; } }
.sheet .wcal { border: 0; box-shadow: none; padding: 0; margin: 4px 0 0; }
.b.sel.wdate { font-weight: 600; }
.rpanel .rhead { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 2px 0 8px; }
.rpanel .rhead b { font-size: 16px; }
.rpanel .rgo { margin-top: 12px; width: 100%; }
.wcalpos .rpanel { border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.22); }
.wcalpos .rpanel .wcal { border: 0; box-shadow: none; padding: 0; margin: 0; animation: none; }
.b.sel.rline { display: flex; flex-direction: row; align-items: center; gap: 10px; font-weight: 600; }
.b.sel.rline .calic { color: var(--muted); flex: none; }
.b.sel.rline > span { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rangew > .rline { flex: 1; min-width: 0; }
.perhead .rangew > .rline > span { text-align: center; }
.wpnav.rangew { justify-content: center !important; }
.wpnav.rangew > .rline.rcenter { flex: 0 1 auto; width: auto; min-width: 300px; font-size: 17px; }
.wpnav.rangew > .rline.rcenter > span { text-align: center; }
.lphead { margin: 10px 0 4px; font-weight: 600; }
.lphead:first-child { margin-top: 0; }
/* Smooth open and close. */
.clps.anim > div { animation: clpin .2s ease-out; }
.clps.closing > div { opacity: 0; transform: translateY(-4px); transition: opacity .12s ease, transform .12s ease; }
@keyframes clpin { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .clps.anim > div { animation: none; } .clps.closing > div { transition: none; } }
.sugg { animation: popin .14s ease-out; }
@media (prefers-reduced-motion: reduce) { .sugg { animation: none; } }
.bistack { display: flex; flex-direction: column; gap: 8px; }
.sheet .shact { margin-left: auto; margin-right: 14px; }
.sheet .shact + .b.sm { margin-left: 0; }
.dlg .inset .dlgamt { white-space: nowrap; padding-left: 12px; }

/* Planned: if everything planned happens. */
.plsum { display: grid; gap: 6px; font-size: 15px; }
.plsum strong { font-variant-numeric: tabular-nums; }
.plsum .neg { color: var(--neg); }
.plsum .pos { color: var(--pos, var(--text)); }
.plsline { border-top: 1px solid var(--line); margin: 6px 0 4px; }
/* After your plans (30 Nov 2026, A2): Available by … in big type, today's number under it, then the Dashboard's tiles. */
.plsum { gap: 0; }
.plsum .plsby { font-size: 15px; }
.plsum .v.hv { font-size: 32px; font-weight: 700; letter-spacing: -0.5px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.plsum .plsnow { font-size: 14px; margin-top: 2px; }
.plsum .plsnow .pos, .plsum .plsnow .neg { font-weight: 600; }
.plstiles { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.plstiles .htile b.pos { color: var(--pos, var(--text)); }
.plstiles .htile b.neg { color: var(--neg); }
.plsum .plsnote { margin-top: 10px; }
/* The card's date opens the choice of how far ahead to look (next 30 days or end of this month). */
/* Small laptops and tablets sideways, under 1200 px (2 Dec 2026, Charlie chose A from a mock: the card's column was
   too narrow at 1024 and Money in / Money out shrank to tiny type): the card goes above the list at full width, the
   big number on the left and the two tiles on the right. 1200 px and wider keep the two columns. */
@media (max-width: 1199px) {
  .plcols { grid-template-columns: minmax(0, 1fr); }
  .plleft { position: static; }
  .plcols .plsum { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 24px; }
  .plcols .plsum > .plsby, .plcols .plsum > .plsval, .plcols .plsum > .plsnow { grid-column: 1; }
  .plcols .plsum > .plstiles { grid-column: 2; grid-row: 1 / span 3; align-self: center; margin-top: 0; padding-top: 0; border-top: 0; }
  .plcols .plsum > .plsnote { grid-column: 1 / -1; }
  .ph .plcols .plleft > .sk { height: 150px !important; }
}
.plsahead { all: unset; cursor: pointer; color: var(--link); font-weight: 600; display: inline-flex; align-items: center; gap: 2px; }
.plsahead svg { width: 14px; height: 14px; }
.plsahead:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 4px; }
.plsopt { padding-top: 10px; padding-bottom: 10px; }
.plsopt .plt { display: grid; gap: 2px; }

.plsbreak { display: grid; }
.plsbreak .r { padding: 12px 0; border-top: 1px solid var(--line); }
.plsbreak .r:first-child { border-top: 0; }
.plsbreak strong { font-variant-numeric: proportional-nums; }
.plsbreak .plsbtot { font-weight: 700; }
.plsbreak .plsbtot .pos { color: var(--pos, var(--text)); }
.plsbreak .plsbtot .neg { color: var(--neg); }
/* A repeating plan in Due: a plain grey repeat icon where the circle would be (a label, not a button). */
.plrep { flex: none; align-self: center; width: 24px; display: inline-flex; justify-content: center; margin-right: 16px; color: var(--muted); }
.plrep + .plt { flex: 1; min-width: 0; }
.plstot { align-items: baseline; }
.plstot span { font-weight: 600; }
.plstot strong { font-size: 24px; letter-spacing: -.02em; }
.plsnote { font-size: 12.5px; margin: 4px 0 0; }
.wplanned .seclabel { margin-bottom: -6px; }

/* Repeating plans: the Repeat sheet on New plan, and the ↻ mark on a series row. */
.rpsheet { gap: 14px; }
.rpends { flex-direction: column; gap: 8px; }
.rpends .radio { flex: none; }
.rpdate { margin-left: auto; font-weight: 500; }
.rpn { width: 58px; min-height: 38px; padding: 0 8px; margin: 0 6px; font-size: 16px; text-align: center; }
.rpcal { padding: 10px; display: grid; gap: 6px; }
.rpshort { justify-content: flex-start; gap: 14px; flex-wrap: wrap; }
.repic { vertical-align: -2px; margin-right: 3px; }
.plkeep { border-color: var(--link); color: var(--link); }
/* Save changes is the main button after a change (2 Dec 2026); Mark as paid then sits under it, outlined. */
.b.p.plkeep { color: #fff; }
.plmark2 { border-color: var(--link); color: var(--link); }
.sedited { margin-left: 8px; font-size: 12px; padding: 2px 8px; vertical-align: 2px; }
.rpdays { flex-wrap: nowrap; justify-content: space-between; gap: 6px; }
.rpdays { gap: 4px; }
.rpdays .chip { flex: 1 1 0; min-width: 0; max-width: 46px; aspect-ratio: 1; min-height: 0; height: auto; padding: 0; border-radius: 50%; }
.rpfreq { flex-wrap: nowrap; gap: 6px; }
.rpfreq .chip { flex: 1 1 auto; padding-left: 0; padding-right: 0; min-width: 0; text-align: center; }
/* The Repeat field: the rule, and how it ends in small grey text under it, inside the box. */
.b.rpbtn { padding-top: 8px; padding-bottom: 8px; }
.rpbtn .rptxt { display: grid; gap: 2px; text-align: left; min-width: 0; line-height: 1.25; }
.rpbtn .rpunder { font-size: 13px; font-weight: 400; }

/* A planned repayment's loan is its own and can't be changed, so its box has no arrow. */
.b.sel.plloan { cursor: default; }
.b.sel.plloan::after { display: none; }

/* Planned: a repeating plan as a dropdown (planned.tsx, SeriesRow). Its dates sit in a tray under its row. */
.plsec .plser + .txw, .plsec .txw + .plser, .plsec .plser + .plser { border-top: 1px solid var(--line); }
.pldue { color: var(--neg); font-weight: 600; }
.plchev { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  margin: -8px 0 -8px 2px; border-radius: 10px; color: var(--muted); cursor: pointer; flex: none; }
.plchev:focus-visible { outline: 2px solid var(--link); }
/* The app's tray colour for a box inside a card (like the Dashboard's Savings tile): a touch lighter than the card
   in dark, darker in light. Never the page colour, which looks like a dark hole in dark mode. */
.pltray { --tray: color-mix(in srgb, var(--text) 5%, var(--card)); background: var(--tray); border-radius: 12px; padding: 0 12px 6px; margin: 0 0 12px 12px; }
/* The rows keep the tray's colour so the swipe's red bin stays hidden behind them until swiped. */
.pltray .txrow { background: var(--tray); }
.pltray .txrow { min-height: 52px; padding: 10px 0; }
.pltray .plt { font-weight: 500; }
.pltray .txw + .txw { border-top: 1px solid var(--line); }
.pltmore { padding-top: 6px; }
.pltmore .accmore { width: auto; }
.wide .pltray .txw { margin: 0 -4px; }
.wide .pltray .txrow { padding: 10px 4px; }
.plpart { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; }

/* Planned: the empty circle on a due row confirms it as planned (planned.tsx, PlanCheck). It sits on the left, like a
   to-do list, so the amounts stay lined up on the right; it fills with a check while saving. */
.plok { all: unset; position: relative; box-sizing: border-box; flex: none; align-self: center; display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; margin: -6px 16px -6px 0; padding: 0; border-radius: 50%; border: 2px solid var(--link); color: transparent;
  cursor: pointer; transition: background .15s ease, color .15s ease; }
/* A bigger tap area than the circle itself. */
/* The circle is 24px (30 Nov 2026, Charlie; was 28), the place for a finger stays 44px. */
.plok::after { content: ""; position: absolute; width: 44px; height: 44px; }
/* Filled like the app's main buttons. */
.plok.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.plok:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.tx > .plok + .plt { flex: 1; min-width: 0; }
@media (hover: hover) { .plok:hover:not(.on) { color: color-mix(in srgb, var(--link) 45%, transparent); } }
/* Repeat for a loan repayment: "Pay it off in 10: $560 each ›" under After N times (repeat.tsx). */
.rppay { justify-self: start; text-align: left; padding: 6px 2px; font-size: 14px; }

/* All transactions on the phone (29 Nov 2026): the Filter button with its word, and Sort by in the Filters sheet. */
.hdr .fbtnw { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; }
.hdr .fbtnw svg { color: var(--link); }
.txsort { flex-wrap: wrap; gap: 8px; }
.txsortw { font-size: 13px; }

/* Long names and notes (review bug 3, 29 Nov 2026): at most 2 lines, or 1, then "…"; the full text is on its page.
   Last in the file so they win over a box's own display. A box that holds one needs a column that can shrink
   (minmax(0, 1fr)), or the text widens it instead of ending in "…". */
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.clamp1 { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.hdr h1 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; min-width: 0; }
.perpanel, .c.pcard { grid-template-columns: minmax(0, 1fr); }

/* Phone Loans: the Closed loans dropdown (review improvement 4, 29 Nov 2026): one card, its row at the top; open, the
   closed loans sit inside under a line, under Lent out and You owe, by person. */
.lclosed { padding-top: 4px; padding-bottom: 4px; }
.lclh { all: unset; box-sizing: border-box; display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 44px; cursor: pointer; }
.lclh:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 6px; }
.lclc { display: inline-flex; align-items: center; gap: 8px; }
.lclin { border-top: 1px solid var(--line); margin-top: 4px; padding: 4px 0 8px; display: grid; gap: 4px; }
.lclin .lgrp { margin: 8px 0 0; }
.lclp { display: grid; }
.lclp > .r { margin-top: 8px; }
.lyear .pos { color: var(--pos); }

/* Phone Savings: Money in and out of Savings (review improvement 5, 29 Nov 2026). */
.savmoves { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 52px; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.savmoves .chev { color: var(--muted); }

/* A due plan its account can't cover (review P2, 29 Nov 2026): "Whish has only $24.00" in red under it. */
.pls.plshort { color: var(--neg); font-weight: 600; }

/* Phone Dashboard: plans due today or late (review P4, 29 Nov 2026), a card under the balances. Its left part opens
   Planned; the arrow behind the line opens the list of what's due, each with the circle to confirm it (1 Dec 2026). */
.duecard { padding: 0; overflow: hidden; border-color: color-mix(in srgb, var(--neg) 45%, var(--line)); }
.dueh { display: flex; align-items: stretch; }
.duerow { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; min-height: 56px;
  padding: 10px 6px 10px 14px; cursor: pointer; }
.duetog { all: unset; box-sizing: border-box; display: flex; align-items: center; justify-content: center; width: 52px; flex: none;
  color: var(--muted); border-left: 1px solid var(--line); cursor: pointer; }
.duerow:focus-visible, .duetog:focus-visible { outline: 2px solid var(--link); outline-offset: -2px; border-radius: 12px; }
.duei { display: inline-flex; color: var(--neg); flex: none; }
.duet { flex: 1; min-width: 0; display: grid; }
.duet .k { font-size: 13px; }
.duelist { border-top: 1px solid var(--line); padding: 0 14px; }
.duei2 { display: flex; align-items: center; min-height: 58px; padding: 8px 0; }
.duei2 + .duei2, .duelist .txw + .txw .duei2 { border-top: 1px solid var(--line); }
/* Due rows swipe left to delete on the phone, like Planned's (2 Dec 2026, Charlie). */
.duelist .txw .txrow { padding: 0; min-height: 0; }
.duelist .txw .txrow > .tx { display: block; }
.duelist .txw .duei2 { width: 100%; }
.duew { all: unset; box-sizing: border-box; flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 10px; align-items: center; min-height: 44px; }
.duew > :not(.duea) { grid-column: 1; }
.duew > .duea { grid-column: 2; grid-row: 1 / span 3; }
.duew:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 8px; }
.duew b { font-weight: 600; }
.duew .k { font-size: 13px; }
.duew .k.late, .duew .late { color: var(--neg); }
.duew .dueshort { font-weight: 600; }
/* The circle's place, kept empty for a plan that can't be saved as planned, so the names still line up. */
.plok.plnone { visibility: hidden; pointer-events: none; }
/* Amount changes each time (P1, 2 Dec 2026): a pen in the circle, "about" over the amount, the switch under Amount. */
.plok.plpen { color: var(--link); }
.plabout { display: block; font-size: 11px; font-weight: 500; color: var(--muted); line-height: 1; text-align: right; margin-bottom: 2px; }
.plvar { margin-top: -4px; }
.pluse.plchg { display: inline; margin: 0 0 0 2px; }
/* No amount yet: grey words where the amount would be, and "about" on the card's tile when it counts a guess. */
.pla.plunk, .duea.plunk { color: var(--muted); font-weight: 500; font-size: 13px; }
.pltabout { text-align: left; margin: 2px 0 -2px; }
.k.plblank { display: block; font-size: 13px; margin-top: -8px; }
.duea { font-weight: 600; flex: none; }
.duelist .accmore { border-top: 1px solid var(--line); }
.duelist .accmore { padding-bottom: 14px; }
/* The due list fades and slides in like Planned's dropdowns (only opacity and movement, cheap for a phone) and
   closes at once. Animating its height felt laggy (2 Dec 2026). */
.duelist { animation: open .2s ease-out; }
@media (prefers-reduced-motion: reduce) { .duelist { animation: none; } }
.duesk { height: 62.5px; }
/* Planned: when any list on the page has repeating plans, one-time plans leave the arrow's room, so every amount
   lines up in one column (the laptop's Due and Coming up too) (repeating plans' amounts sit left of their arrow). */
main:has(.plsec > .plser) .plsec > .txw .pla { margin-right: 30px; }
/* The arrow sits at the row's edge (24 wide, was 40), so the room one-time plans leave is 30, not 46 (Charlie chose the
   smaller gap from a mock, 29 Nov 2026); its tap area still reaches past the drawn arrow on both sides. */
.plchev { width: 24px; justify-content: flex-end; position: relative; }
.plchev::before { content: ''; position: absolute; inset: -4px -6px -4px -10px; }
/* A repeating plan's dropdown slides open like the Dashboard's rows (Charlie, 29 Nov 2026: it opened at once). Closing
   stays instant, like every row in the app (15 Nov 2026: animating a close means rebuilding the rows). */
.pltray { animation: open .2s ease-out; }
@media (prefers-reduced-motion: reduce) { .pltray { animation: none; } }

/* A changed amount after a quiet check (review 2, 30 Nov 2026, Charlie: A1): a soft glow in the accent colour. */
.chg { border-radius: 6px; animation: chg 1.2s ease-out; }
@keyframes chg {
  0%, 35% { background: color-mix(in srgb, var(--accent) 28%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent); }
  100% { background: transparent; box-shadow: 0 0 0 3px transparent; }
}
@media (prefers-reduced-motion: reduce) { .chg { animation: none; } }

/* The phone's pull-down to check for changes (30 Nov 2026, Charlie: A with the wallet icon). Chrome's own pull-down
   restarted the app (a black screen and loading shapes); it is off, and ptr.tsx pulls the page instead. */
html, body { overscroll-behavior-y: none; }
.ptr { position: fixed; left: 0; right: 0; z-index: 40; pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 4px;
  top: calc(env(safe-area-inset-top) + max(6px, var(--d) / 2 - 16px)); }
.ptri { display: flex; color: var(--muted); opacity: calc(.35 + .65 * var(--p)); transform: rotate(-12deg) scale(calc(.7 + .3 * var(--p)));
  transition: color .15s ease, transform .15s ease; }
.ptr.ready .ptri { color: var(--accent); opacity: 1; transform: translateY(-3px); }
.ptr.busy .ptri { animation: ptrb .7s ease-in-out infinite; }
.ptrs { width: calc(14px + 12px * var(--p)); height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--text) 18%, transparent); }
.ptr.busy .ptrs { animation: ptrs .7s ease-in-out infinite; }
@keyframes ptrb { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(-9px); } }
@keyframes ptrs { 0%, 100% { width: 26px; } 50% { width: 18px; } }
@media (prefers-reduced-motion: reduce) { .ptr.busy .ptri, .ptr.busy .ptrs { animation: none; } }
/* The outline in index.html while the app's code loads: a bottom bar and grey shapes on a phone, the side menu's
   strip on a laptop. Never a blank screen after a restart. */
.boot .bootmain { max-width: 480px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 32px) 20px 0; display: flex; flex-direction: column; gap: 14px; }
.boot .boott { height: 30px; width: 46%; border-radius: 10px; margin-bottom: 8px; }
.boot .bootc { height: 280px; }
.boot .bootr { height: 64px; }
.boot .sk { animation: skp 1.2s ease-in-out infinite; }
.bootbar { position: fixed; left: 0; right: 0; bottom: 0; height: calc(64px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line);
  display: flex; justify-content: space-around; align-items: flex-start; padding-top: 14px; }
.bootbar i { width: 26px; height: 26px; border-radius: 8px; background: var(--line); }
.bootbar b { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); margin-top: -26px; }
.bootside { display: none; }
@media (min-width: 1024px) {
  .bootbar { display: none; }
  .bootside { display: block; position: fixed; left: 0; top: 0; bottom: 0; width: 248px; background: color-mix(in srgb, var(--text) 3%, var(--bg)); border-right: 1px solid var(--line); }
  .boot .bootmain { margin-left: 248px; max-width: none; padding: 40px 40px 0; }
  .boot .bootc { height: 200px; }
}
/* Big amounts on their own use Manrope's normal digits (30 Nov 2026): its equal-width "1" leaves a gap ("$5,1 18.60")
   that only makes sense in a column. Lists and tables keep equal-width digits so amounts line up. */
.wsv, .wcard .v, .wtot2, .wtodayc > .v, .wsubig, .plsum .v.hv, .c.hero .v.hv { font-variant-numeric: proportional-nums; }
/* The pull-down's wallet grows as you pull, to about double (30 Nov 2026, Charlie). */
.ptri svg { width: calc(26px + 26px * var(--p)); height: calc(26px + 26px * var(--p)); }
.ptr { top: calc(env(safe-area-inset-top) + max(6px, var(--d) / 2 - 10px - 13px * var(--p))); }
.ptrs { width: calc(16px + 22px * var(--p)); height: 5px; border-radius: 3px; }
.ptr.busy .ptrs { animation: ptrs2 .7s ease-in-out infinite; }
@keyframes ptrs2 { 0%, 100% { width: 38px; } 50% { width: 26px; } }

/* ===== Animations (3 Dec 2026, Charlie kept these five after trying them on the demo). Only moves and fades, short, and
   none with Reduce motion. ===== */
@media (prefers-reduced-motion: no-preference) {
  /* Cards and tiles press in a little under the finger. */
  .htile, .wlink, .tapc, .accr, .duerow, .plsahead { transition: transform .1s ease; }
  .htile:active, .wlink:active, .tapc:active, .accr:active, .duerow:active { transform: scale(.98); }
  /* "✓ Saved" pops into the button. */
  .okpop { display: inline-block; animation: okpop .3s cubic-bezier(.3, 1.6, .5, 1) both; }
  @keyframes okpop { from { opacity: 0; transform: scale(.6); } }
  /* Theme and accent: the colours cross-fade (the browser's own view transition). */
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }
}

/* A paid-off loan's card: a green PAID stamp at the top right (3 Dec 2026, Charlie: green, since red means money out
   or late everywhere else). The text beside it stops short of it. */
.lncard { position: relative; }
.lncard.paid > .k:first-of-type, .lncard.paid > .v { padding-right: 104px; }
.paidst { position: absolute; right: 14px; top: 12px; font: 800 26px/1 Manrope, system-ui, sans-serif; letter-spacing: 3px;
  color: var(--pos); border: 3px solid var(--pos); border-radius: 8px; padding: 5px 10px 4px; transform: rotate(-12deg);
  opacity: .9; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  /* Right after the repayment that paid it off: the stamp drops in and the card gives a small thud. */
  .lncard.land .paidst { animation: stampin .38s cubic-bezier(.5, 0, .75, 0) .25s both; }
  .lncard.land { animation: stampthud .18s ease-out .54s; }
  @keyframes stampin { 0% { transform: rotate(-12deg) scale(2.6); opacity: 0; } 75% { transform: rotate(-12deg) scale(.92); opacity: 1; }
    100% { transform: rotate(-12deg) scale(1); opacity: .9; } }
  @keyframes stampthud { 50% { transform: translateY(3px); } }
}

/* "All caught up" (3 Dec 2026, Charlie): the due card after its last plan is paid with the circle, for a moment. */
.duecard.caught { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-color: var(--pos); color: var(--pos);
  font: 700 17px Manrope, system-ui, sans-serif; }
.duecard.caught .ccirc { stroke-dasharray: 63; animation: cdraw .32s ease-out both; }
.duecard.caught .ctick { stroke-dasharray: 14; animation: cdraw2 .22s ease-out .32s both; }
.duecard.caught span { animation: cword .2s ease-out .5s both; }
@keyframes cdraw { from { stroke-dashoffset: 63; } to { stroke-dashoffset: 0; } }
@keyframes cdraw2 { from { stroke-dashoffset: 14; } to { stroke-dashoffset: 0; } }
@keyframes cword { from { opacity: 0; transform: translateX(-6px); } }

/* A field that can't change any more (the starting balance once an account has transactions, 4 Dec 2026). */
.i.ro { display: flex; align-items: center; background: transparent; color: var(--muted); border-style: dashed; cursor: default; }
.wsufrom { margin: 0 0 14px; max-width: 340px; }

/* Monthly limits on the Dashboard (4 Dec 2026, Charlie, A): orange from 80%, red once over. */
.limc { display: grid; gap: 4px; --near: #b26a00; }
[data-theme="dark"] .limc { --near: #e0a040; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .limc { --near: #e0a040; } }
.limc > .r { margin-bottom: 4px; }
.limrow { all: unset; box-sizing: border-box; display: grid; gap: 5px; padding: 8px 0; cursor: pointer; border-radius: 8px; }
.limrow:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.limrow .r { gap: 8px; }
.limrow .limamt, .limrow .limnote { color: var(--near); }
.limrow.over .limamt, .limrow.over .limnote { color: var(--neg); }
.limnote { font-size: 14px; font-weight: 600; }
.limbar { display: block; height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.limbar > span { display: block; height: 100%; border-radius: 99px; background: var(--near); }
.limrow.over .limbar > span { background: var(--neg); }

/* Phase 8: the sign-in screen and Settings' Sign-in card (src/client/signin.tsx). */
.sgn { align-items: stretch; }
.sgnbrand { justify-content: center; padding: 0 0 18px; font-size: 22px; }
.sgnbrand i { width: 32px; height: 32px; border-radius: 9px; }
.sgncard { display: flex; flex-direction: column; gap: 12px; padding: 22px 20px; }
.sgncard h1 { margin: 0; font-size: 24px; }
.sgncard .k { font-size: 15px; line-height: 1.45; margin: 0; }
.gbtn { display: flex; align-items: center; justify-content: center; gap: 12px; text-decoration: none; font-weight: 600;
  margin-top: 6px; }
.gbtn .gg { width: 20px; height: 20px; flex: none; }
.sgnfoot { text-align: center; margin-top: 14px; }
.sgnset { display: flex; flex-direction: column; gap: 12px; }
.sgnwho { display: flex; align-items: center; gap: 12px; }
.sgnwho svg { width: 22px; height: 22px; flex: none; color: var(--muted); }
.sgnwho > span { display: flex; flex-direction: column; min-width: 0; }
.sgnwho b { font-weight: 600; overflow-wrap: anywhere; }
.sgnbtns { display: flex; gap: 10px; flex-wrap: wrap; }
.sgnbtns .b { flex: 1 1 160px; justify-content: center; text-align: center; }
.wsetmain .sgnset { max-width: 640px; }
.sgnset > .k { margin: 0; }
@media (min-width: 1024px) { .sgn { max-width: 420px; } }

/* Phase 8 backups (src/client/backup.tsx). */
.bkc { display: flex; flex-direction: column; gap: 10px; }
.bkc > .k { margin: 0; }
.bkwho { display: flex; align-items: center; gap: 12px; }
.bkwho svg { width: 22px; height: 22px; flex: none; color: var(--muted); }
.bkwho > span { display: flex; flex-direction: column; }
.bkwho b { font-weight: 600; }
.bkbtn { justify-content: center; text-align: center; }
.wsetmain .bkc { max-width: 640px; }
.bksetup { display: flex; align-items: center; gap: 12px; }
.bksetup > svg { width: 22px; height: 22px; flex: none; color: var(--muted); }
.bksetup .grow { display: flex; flex-direction: column; min-width: 0; }
.wsu .bksetup { margin-bottom: 20px; }
.bksaved { margin: 0; font-size: 14px; color: var(--pos); overflow-wrap: anywhere; }
.bksaved b { font-weight: 600; }
.bkdone { display: flex; flex-direction: column; gap: 12px; text-align: center; align-items: stretch; }
.bkdone .bkok { align-self: center; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--pos); color: var(--card); font-size: 26px; font-weight: 700; }
.bkdone b { font-weight: 600; overflow-wrap: anywhere; }

/* Import transactions (5 Dec 2026, src/client/importer.tsx). */
.imphow ul { margin: 8px 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.imphow b { color: var(--text); font-weight: 600; }
.impundo { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.impundo .grow { display: flex; flex-direction: column; gap: 2px; min-width: 200px; }
.impcol { max-width: 720px; }
.impstep { display: flex; gap: 14px; align-items: flex-start; }
.impstep .grow { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.impstep .k { margin: 0; }
.impn { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 15px; }
.impnote { margin: 0 4px; }
.impsum h2 { margin: 2px 0 10px; font-size: 22px; }
.impbar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; background: var(--line); }
.impbar i { background: var(--pos); } .impbar u { background: var(--neg); } .impbar s { background: #C98A1B; }
.implegend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 14px; }
.implegend span { display: inline-flex; align-items: center; gap: 6px; }
.implegend i, .implegend u, .implegend s { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.implegend i { background: var(--pos); } .implegend u { background: var(--neg); } .implegend s { background: #C98A1B; }
.impbad { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.impbad .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 0; overflow-wrap: anywhere; }
.impbad .neg { color: var(--neg); font-size: 14px; white-space: normal; }
.imprn { flex: none; font-weight: 600; font-size: 13px; color: var(--muted); width: 54px; padding-top: 2px; }
.impdl { margin-top: 8px; }
.impchk { display: flex; align-items: center; gap: 10px; padding-top: 8px; font-size: 15px; }
.impchk input { width: 20px; height: 20px; }
.impok { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; }
.impok .grow { display: flex; flex-direction: column; min-width: 0; }
.impok > .k:first-child { width: 48px; flex: none; }
.impact { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.impact .b { justify-content: center; min-width: 140px; }
.implink { display: inline-flex; align-items: center; gap: 5px; background: none; border: 0; padding: 8px 2px; margin: -8px 0;
  color: var(--link); font: 600 14px Manrope, system-ui, sans-serif; cursor: pointer; }
.implink svg { width: 16px; height: 16px; }
.addimp { align-self: center; margin: 10px auto 0; padding: 10px 4px; }
.wsetmain .imp .impcol { max-width: 720px; }
.impact .b { width: auto; flex: 0 0 auto; }
.sgnfw { display: flex; flex-direction: column; min-width: 0; text-align: left; line-height: 1.25; }
.sgnfw .k { font-size: 13px; font-weight: 400; }
.sgnfw b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sgnfold .lnk { min-width: 0; }
.sgnin { display: flex; flex-direction: column; gap: 12px; }
.sgnin > .k { margin: 0; }

/* Profile, PIN lock, name screen (5 Dec 2026; src/client/profile.tsx, lock.tsx). */
.avt { flex: none; border-radius: 50%; background: var(--accent); color: #fff; display: inline-grid; place-items: center; font-weight: 700; overflow: hidden; }
.avt.avtph img { width: 100%; height: 100%; display: block; object-fit: cover; }
.prc { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; cursor: pointer; padding: 14px 16px; }
.prcw { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.prcw b { font-size: 18px; }
.prcw .k { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prcol { max-width: 720px; }
.prhead { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 16px; }
.prrows { padding: 0 16px; }
.prrow { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; font: inherit; color: inherit; }
.prrow:first-child { border-top: 0; }
.prrow .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.prrow > .k:first-child { width: 132px; flex: none; }
.prlink { cursor: pointer; }
.prpick { display: flex; flex-direction: column; padding: 0 0 8px; }
.prop { display: flex; align-items: center; gap: 12px; padding: 10px 4px; background: none; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.prop .rdo { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--field-line); flex: none; }
.prop.on .rdo { border: 6px solid var(--accent); }
.prdev { color: var(--muted); display: inline-flex; }
.prdev svg { width: 22px; height: 22px; }
.prbtns { display: flex; gap: 10px; flex-wrap: wrap; }
.prbtns .b { flex: 1; justify-content: center; }
.prdel .k { margin: 6px 0 12px; }
.linkbtn { background: none; border: 0; padding: 4px; color: var(--link); font: inherit; font-weight: 600; cursor: pointer; }
.greet { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; font-weight: 600; margin: 0 0 -4px 2px; }
.lock { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.lockin { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; max-width: 340px; text-align: center; }
.lockin h1 { margin: 6px 0 0; font-size: 26px; }
.lockin .k { margin: 0; }
.lockfp { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; color: var(--accent); background: var(--card); border: 1px solid var(--line); margin-top: 26px; }
.lockfp svg { width: 54px; height: 54px; }
.lockhint { color: var(--muted); margin: 4px 0 18px; }
.lockalt { margin-top: 8px; }
.dots { display: flex; gap: 18px; margin: 18px 0 22px; }
.dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--muted); }
.dots i.on { background: var(--text); border-color: var(--text); }
.pad { display: grid; grid-template-columns: repeat(3, 76px); gap: 14px 26px; }
.padk { width: 76px; height: 76px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-size: 28px; font-weight: 500; cursor: pointer; display: grid; place-items: center; }
.padk.sm { border: 0; background: none; font-size: 24px; color: var(--muted); }
.padk.sm svg { width: 32px; height: 32px; }
.namein { gap: 12px; }
.nameic { font-size: 44px; }
.namef { width: 100%; font: inherit; font-size: 20px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--field-line); background: var(--card); color: var(--text); text-align: center; margin: 8px 0; }
.namein .b.p { width: 100%; justify-content: center; }
@media (max-width: 600px) { .prbtns { flex-direction: column; } .prrow > .k:first-child { width: 120px; } }
.lockalt.b { width: 100%; justify-content: center; }
.prred .lnk { color: var(--neg); }
.prred .lnk .wic, .prred .lnk svg { color: var(--neg); }
.prdelrow { background: none; border: 0; color: var(--neg); font: inherit; font-weight: 600; padding: 10px 4px; align-self: center; cursor: pointer; }
.prlinks { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 8px; padding: 8px 0; }
.prlinks .prdellink { color: var(--neg); flex-basis: 100%; }
.prop { cursor: pointer; }
.papc { display: flex; flex-direction: column; gap: 12px; }
.papc .k, .papc .err { margin: 0; }
.prhid { background: var(--accent) !important; color: #fff !important; border-color: var(--accent) !important; }
.prhid svg, .prhid svg * { stroke: #fff !important; color: #fff !important; }
.shake { animation: pinshake .4s ease; }
@keyframes pinshake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
@media (prefers-reduced-motion: reduce) { .shake { animation: none; } }
.lockmsg { min-height: 40px; margin: 12px 0 0 !important; max-width: 300px; }
.lockmsg.err { color: var(--neg); }
.padk:disabled { opacity: .45; cursor: default; }
button.lockfp { cursor: pointer; padding: 0; font: inherit; }
.pinflow { position: fixed; inset: 0; z-index: 30; background: var(--bg); }
.pfx { position: absolute; top: 16px; left: 16px; }
.prback { align-self: flex-start; padding: 0 2px; }
.prh2 { margin: 0 2px; }
.prdeltype { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.phdlg { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.phbox { position: relative; overflow: hidden; border-radius: 16px; align-self: center; touch-action: none; cursor: grab; background: var(--line); }
.phbox img { position: absolute; left: 0; top: 0; max-width: none; user-select: none; pointer-events: none; }
.phring { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 999px rgba(0, 0, 0, .45); pointer-events: none; }
.phzoom { display: flex; align-items: center; gap: 12px; }
.phzoom input { flex: 1; }
.prname, .prmail { overflow-wrap: anywhere; }
.wnav .avt { margin: 0 1px; }
/* 5 Dec 2026 (Charlie: the floating list covered Save): past notes as small buttons under the Note box, in the page. */
.nchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.nchip { border: 1px solid var(--field-line); background: var(--card); color: var(--text); border-radius: 999px; padding: 8px 14px;
  font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
.nchip:hover { background: var(--hover); }
/* 5 Dec 2026 (Charlie chose C): the phone's bar is two floating pills, Dashboard and All, Planned and Settings, with the
   + floating between them in the accent colour, with a plain shadow (no glow). Nothing behind them: no fade, no strip
   (Charlie, 13:27 to 13:35, from mocks). The + rises while pressed or held (class lift, main.tsx). */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bbar { background: transparent; border-top: 0; pointer-events: none;
  align-items: center; padding: 0 max(12px, calc((100vw - 480px) / 2)) calc(env(safe-area-inset-bottom) + 10px); gap: 8px; }
.bbar > * { pointer-events: auto; }
.bpill { flex: 1; display: flex; align-items: center; height: 62px; padding: 0 12px; gap: 2px; background: var(--card); border: 1px solid var(--line);
  border-radius: 31px; box-shadow: 0 8px 24px rgba(0, 0, 0, .10); }
.bpill .bt { min-height: 0; height: 100%; justify-content: center; flex: 1 1 auto; white-space: nowrap; }
.bt.add { flex: 0 0 auto; min-height: 0; }
.bt.add .pl { margin: 0; width: 60px; height: 60px; border: 0; box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
  transition: transform .18s cubic-bezier(.3, 1.4, .5, 1), box-shadow .18s ease; }
/* Pressing the + presses it in a little; nothing moves out from under the finger (Charlie, 14:09: the rise felt wrong). */
.bt.add.lift .pl { transform: scale(.94); }
@media (prefers-reduced-motion: reduce) { .bt.add .pl { transition: none; } }
@media (max-width: 360px) { .bbar { gap: 6px; padding-left: 8px; padding-right: 8px; } .bpill { padding: 0 8px; } .bt.add .pl { width: 54px; height: 54px; }
  .bpill .bt { font-size: 11px; } }

/* 5 Dec 2026, 14:09 to 14:18 (Charlie, from mocks): icons only (the names stay for screen readers), a soft accent pill
   behind the tab you're on, and 10px under the pills on every phone (above the gesture line where there is one). */
.bpill .bt > span:not(.avt) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bpill .bt { position: relative; }
.bpill .bt > * { position: relative; z-index: 1; }
.bpill .bt .wic { width: 26px; height: 26px; }
.bpill .bt.on::before { content: ""; position: absolute; inset: 9px 4px; border-radius: 22px; background: color-mix(in srgb, var(--accent) 16%, transparent); }
/* MOCK 5 Dec 2026: the owner page. */
.ownsum { display: flex; align-items: center; gap: 16px; padding: 16px 18px; }
.ownsum > div:not(.ownsep) { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.ownsep { width: 1px; align-self: stretch; background: var(--line); }
.ownbig { font-size: 26px; font-weight: 700; }
.owncap { display: flex; align-items: center; gap: 10px; }
.owncap .i { width: 80px; }
.ownrow { align-items: center; }
.owntag { margin-left: 8px; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--link); }
.ownmeta { font-size: 13px; }
.ownrm { color: var(--neg); }
.ownstats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ownstats .c { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; }
.ownplan { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; }
.ownbar .r { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 15px; }
.ownbar .bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.ownbar .bar i { display: block; height: 100%; min-width: 6px; border-radius: 4px; background: var(--accent); }
/* The owner page's nearly-full bar. */
.ownbar .bar i.warn { background: var(--neg); }
/* Owner page: a long Gmail wraps onto a second line instead of running off the row (review 3, Charlie: A). */
.ownrow .grow { min-width: 0; }
.ownrow .grow .k { overflow-wrap: anywhere; }
/* The lock screen with fingerprint or face: the button low on the screen, near the thumb. */
.lockin:has(.lockbio) { min-height: calc(100dvh - 48px); justify-content: flex-start; padding-top: 12vh; }
.lockbio { margin-top: auto; padding-bottom: 8vh; display: flex; flex-direction: column; align-items: center; }
.lockbio .lockfp { margin-top: 0; }
.lockbio .lockhint { margin: 4px 0 6px; }
/* Profile: the email gets its own line under its label, so a long Gmail fits. */
.prrow.prstack { flex-direction: column; align-items: flex-start; gap: 2px; }
.prrow.prstack > .k:first-child { width: auto; }
.prrow.prstack .grow { width: 100%; }
.prrow.prstack .prmail { display: block; }
/* The app tour: the screen dims around one real part (the ring), with a short card beside it. */
.tourblock { position: fixed; inset: 0; z-index: 9997; }
.tourblock.dim { background: rgba(0, 0, 0, .55); }
.tourhole { position: fixed; z-index: 9998; pointer-events: none; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .55); outline: 2px solid var(--accent); outline-offset: 2px; }
.tourcard { position: fixed; z-index: 9999; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.tourcard b { font-size: 18px; }
.tourcard .k { font-size: 15px; line-height: 1.45; }
.tourfoot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.tourdots { display: flex; gap: 6px; }
.tourdots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.tourdots i.on { background: var(--accent); }
.tourbtns { display: flex; gap: 8px; align-items: center; }
.tourskip { color: var(--muted); }
/* Help's rows for the tour and the privacy page: like Settings' rows (the privacy one is a link). */
a.b.r.link.tipprv { text-decoration: none; color: inherit; }
.khelp .hlinks { margin: 0 0 14px; }
/* The welcome card after the tour, in the middle of the dimmed screen. */
.tourwel { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(340px, calc(100vw - 32px)); text-align: center; align-items: center; padding: 26px 22px 20px; gap: 8px; }
.tourwel b { font-size: 22px; }
.tourwel .b.p { width: 100%; justify-content: center; margin-top: 10px; }
/* The tour card's top line (title, Skip) and its foot (Back, dots, Next). */
.tourtop { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
/* Skip looks small but takes a thumb-sized tap (review 3): the padding is the tap area, the margin keeps the look. */
.tourtop .tourskip { padding: 12px 12px 12px 16px; margin: -12px -12px -12px 0; font-weight: 500; }
.tourfoot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.tourfoot .tourback { justify-self: start; }
.tourfoot .tournext { justify-self: end; }
.tourgap { display: block; }
/* Thumb-sized tap areas that look the same (review 3): the Privacy link under sign-in, Edit next to the name. */
.sgnfoot a { display: inline-block; padding: 13px 8px; margin: -13px -8px; }
.prrow > .linkbtn { padding: 11px 8px; margin: -11px -8px -11px 0; }
/* Confirm popups with a long action ("Delete account", "Replace everything") on narrow phones: the action on top,
   Cancel under it, both full width (review 3, Charlie: B). */
@media (max-width: 359px) { .dlg > .r.dlglong { flex-direction: column-reverse; } .dlg > .r.dlglong .b { width: 100%; flex: none; } }
.impall { font-weight: 700; }
