/* static/hz/hz-app.css: what the real app needs on top of the mock's look (static/hz/hz.css, generated).
   Hand-written. Keep it small: anything that is part of the design belongs in the mock first. */

/* tabs are links in the app (buttons in the mock): same look */
.app .tabs a{ min-height:2.75rem; display:inline-flex; align-items:center; padding:0 16px; border-radius:10px; font-size:.9375rem; font-weight:600; color:var(--ink-2) }
.app .tabs a.on{ color:var(--ink); background:rgba(var(--acc-rgb),.16) }
.app .tabs a svg{ display:none }
.app .tabbar a{ flex:1; min-height:3rem; display:grid; gap:3px; justify-items:center; align-content:center; font-size:.8125rem; color:var(--ink-3); text-align:center }
.app .tabbar a svg{ width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round }
.app .tabbar a.on{ color:var(--acc) }
.app .ic a{ display:contents }

/* which chrome shows: tabs in the bar on desktop, at the bottom on phone and tablet (R14) */
.app:not([data-medium="desk"]) .hz-top{ display:none }
.app[data-medium="desk"] .hz-bottom{ display:none }

/* main + side: two columns on desktop and tablet sideways, one after the other below that (the mock's k.layout) */
.app[data-medium="phone"] .grid.g75,.app[data-medium="phone"] .grid.g57,.app[data-medium="tabP"] .grid.g75,.app[data-medium="tabP"] .grid.g57{ display:block }
.app[data-medium="phone"] .grid.g75 > div + div,.app[data-medium="tabP"] .grid.g75 > div + div{ margin-top:0 }
.app[data-medium="phone"] .grid.g11,.app[data-medium="phone"] .grid.g111{ display:block }

/* the beta feedback sheet, restyled on the new tokens */
.app .hz-sheet{ position:fixed; inset:0; z-index:50; display:none }
.app .hz-sheet.on{ display:block }
.app .hz-sheet-backdrop{ position:absolute; inset:0; background:rgba(0,0,0,.5) }
.app .hz-sheet-panel{ position:absolute; left:0; right:0; bottom:0; margin:0 auto; max-width:32rem; background:var(--bg); color:var(--ink); border-radius:18px 18px 0 0; padding:20px; display:grid; gap:12px }
.app .hz-sheet-title{ font-size:1.25rem; font-weight:700; min-height:2.25rem; display:flex; align-items:center; padding-right:5.5rem }
.app .sheetsub{ margin:0; color:var(--ink-2); font-size:.875rem }
.app .sheetinput{ width:100%; min-height:7rem; background:var(--track); color:var(--ink); border:0; border-radius:12px; padding:12px; font:inherit }
/* U10b (26 Nov): ONE sheet anatomy. The panels (.hz-sheet-panel: Space settings, Invite, New space, Add payments, Edit a shop, Add to goal,
   Update value, Edit asset, Feedback) draw like the host sheets (.shade + .sheet: Search, Category, Budgets, New goal, Add what you own,
   Add position, Language): a handle on a phone, the title at the left with Done at its right, the content, and the primary action at the
   bottom as the standard button (.btn: solid, 15 px regular, as wide as its words). The close control stays at the end of the markup (focus
   order) and is drawn in the header. Found by opening every sheet beside its mock. */
.app:is([data-medium="phone"],[data-medium="tabP"]) .hz-sheet-panel::before{ content:""; display:block; justify-self:center; width:36px; height:4px; border-radius:2px; background:var(--ink-3); opacity:.6; margin:-8px 0 -4px }
.app .sheetcta{ justify-self:start; display:inline-flex; align-items:center; justify-content:center; min-height:2.25rem; padding:9px 16px; border-radius:999px; background:var(--acc); color:var(--bg); font:inherit; white-space:nowrap }
.app .hz-sheet-close{ position:absolute; right:20px; top:calc(20px + 4px); min-height:2.25rem; padding:8px 14px; border-radius:999px; background:rgba(var(--acc-rgb),.14); color:var(--acc); font-size:.8125rem; font-weight:600; white-space:nowrap }
.app:is([data-medium="phone"],[data-medium="tabP"]) .hz-sheet-close{ top:calc(20px + 4px + 12px) }
.app .hz-feedback-error{ color:var(--neg); font-size:.8125rem }
.app .hz-feedback-note{ color:var(--ink-3); font-size:.8125rem; margin:0 }

/* folds are <details> in the app (no script): the marker is the mock's plus / minus */
.app .fold > summary{ list-style:none; cursor:pointer } .app .fold > summary::-webkit-details-marker{ display:none }
.app .fold > summary .plus::after{ content:"+" } .app .fold[open] > summary .plus::after{ content:"−" }

/* the kit's seg and chips render links when they change the page (?view=, ?f=): same look as the mock's buttons */
.app .seg a{ display:inline-flex; align-items:center; min-height:2rem; font-size:.8125rem; font-weight:600; color:var(--ink-2); padding:5px 12px; border-radius:999px; white-space:nowrap }
.app .seg a.on{ background:rgba(var(--acc-rgb),.32); color:var(--ink) }

/* the phone's own edges (25 Nov, "the app is not fitting right on my phone"). The page asks for the whole screen
   (viewport-fit=cover), so an installed app on iPhone, and Chrome on recent Android, draw it under the status bar, the
   notch and the home / gesture bar. The old frame padded for them; the new one now does too. Desktop: every inset is 0. */
.app{ padding-left:env(safe-area-inset-left,0px); padding-right:env(safe-area-inset-right,0px) }
.app[data-medium] > .bar{ padding-top:calc(14px + env(safe-area-inset-top,0px)) }
.app[data-medium="desk"] > .bar{ padding-top:calc(12px + env(safe-area-inset-top,0px)) }
.app .tabbar{ padding-bottom:max(16px, calc(env(safe-area-inset-bottom,0px) + 6px)) }
.app[data-medium="phone"] .sheet,.app[data-medium="tabP"] .sheet{ padding-bottom:calc(28px + env(safe-area-inset-bottom,0px)) }
.app .hz-sheet-panel{ padding-bottom:calc(20px + env(safe-area-inset-bottom,0px)) }

/* narrow screens and large text (phone text-size settings scale every rem): nothing may push the page sideways */
.app .row2{ flex-wrap:wrap }
/* U5: the stamp shares the chip's line and shortens with an ellipsis when the two do not fit (the mock's Years stamp); it never drops under the chip */
.app .row2:has(> .stamp){ flex-wrap:nowrap }
.app .row2 > .stamp{ flex:0 1 auto }
.app .row2 > :not(.stamp){ flex:0 0 auto }
/* U6 (R3): a row's value never wraps under its amount: the amount and what stands with it (a count, a share) stay on one line */
.app :is(.tx .amt,.cat .a){ white-space:nowrap }
/* U13 (AC1): the title row keeps its action ON the row. A long title wraps (or shortens) inside its own space; the action never drops under it */
.app .rowh{ flex-wrap:nowrap; align-items:flex-end }
.app .rowh > h3{ flex:1 1 auto; min-width:0; overflow-wrap:anywhere }
.app .rowh > :not(h3){ flex:0 0 auto }
.app .period{ max-width:100%; min-width:0; overflow:hidden; text-overflow:ellipsis }
.app .search input{ min-width:0; width:100% }
/* FD1: a real input inside the kit's field holder (k.field) drops its own chrome: the holder is the box, and shows the focus. One rule for every form */
.app .field .inp :is(input,select,textarea){ width:100%; background:none; border:0; outline:0; color:inherit; font:inherit; font-weight:600; padding:0; min-height:1.5rem; color-scheme:dark }
.app[data-mode="light"] .field .inp :is(input,select,textarea){ color-scheme:light }
.app .field .inp :is(input,select,textarea)::placeholder{ color:var(--ink-3); font-weight:400 }
.app .field .inp select option{ background:var(--bg); color:var(--ink) }
.app .field .inp:focus-within{ outline:2px solid var(--acc) }
/* R3: a row never runs past its column. The name's column may shrink to nothing (minmax), the name stays on one line and its quiet second part (a date, a count of days) shortens first */
.app .cat{ grid-template-columns:minmax(0,1fr) auto }
.app .cat .n{ white-space:nowrap; min-width:0; overflow:hidden }
.app .cat .n > .mute{ flex:0 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis }
.app .cat .a{ display:flex; flex-wrap:nowrap; justify-content:flex-end; align-items:baseline; text-align:right }      /* R3: the count stays on the amount's line; the name gives way */
.app .cat .a small,.app .cat .a em{ white-space:nowrap } .app .cat .a em{ margin-left:.3em }
.app .hz-desc{ margin:0; color:var(--ink-2); font-size:.875rem }
/* How it works (/beta/how): the four cards keep the same gap down a phone column and across tablet and desktop rows */
/* HW1: the cards sit as the mock draws them: one after the other, the card's own rule and padding (hz.css .card-q) being the whole gap, no extra margin */
.app .hz-how{ gap:0 2.25rem; margin-top:.5rem } .app[data-medium="phone"] .hz-how > div + div{ margin-top:0 }
/* the header and the bottom tabs stay put on a phone (25 Nov, "on the phone, the page header and the menu at the bottom are not
   fixed"). The frame was a 100dvh box in a page that could still move: on a phone, scrolling past the top or end of the list
   dragged the whole page (rubber-band), header and tabs with it, and a browser without dvh made the box taller than the screen.
   Now the frame is pinned to the screen and only its middle scrolls; the page itself never scrolls or bounces. Pages without
   a .scroll (legal, sign-in, errors) scroll inside the frame as before. */
html,body{ height:100%; overflow:hidden; overscroll-behavior:none }
.app{ position:fixed; inset:0; height:auto }
.app .scroll{ overscroll-behavior-y:contain; -webkit-overflow-scrolling:touch }

/* ---------- motion in a real app (26 Nov, OI-420 (ui): "where are the micro animations and smooth screen transitions?") ----------
   The mock is one page and its controls are buttons; the app is separate pages and many controls are links. These rules give the
   links the same answers the mock's buttons have, and carry a screen change across the page load. Timing lives in hz.css. */
/* links answer a touch like the mock's buttons: press in at once, hover only where there is a pointer */
.app :is(a.btn,a.pillbtn,a.chip,a.card-s,.seg a,.tabs a,.tabbar a,a.r,a.tx,a.cat,a.cls,a.opt,a.rw){ transition:transform var(--mo-quick) var(--ease-enter),opacity var(--mo-quick) ease,background-color var(--mo-quick) ease,color var(--mo-quick) ease,box-shadow var(--mo-quick) ease }
.app :is(a.btn,a.pillbtn,a.chip,a.card-s,.seg a,.tabs a,.tabbar a):active{ transform:scale(.97) }
@media (hover:hover){ .app a:is(.r,.tx,.cat,.cls):hover{ background-color:var(--wash); box-shadow:-8px 0 0 var(--wash),8px 0 0 var(--wash); border-radius:6px }
  .app :is(a.chip,.seg a,.tabs a,.tabbar a):hover{ color:var(--ink) } }
.mo-tapped:is(a.chip,.seg a,a.pillbtn,a.btn,.card-s){ animation:hz-pop var(--mo-std) var(--ease-enter) }
/* the active tab: its icon lifts once on a tab change; on desktop the pill pops once */
.app[data-entering^="tab"] .tabbar a.on svg{ animation:hz-lift var(--mo-std) var(--ease-enter) }
.app[data-entering^="tab"] .tabs a.on{ animation:hz-pop var(--mo-std) var(--ease-enter) }
.app .tabbar a{ transition:color var(--mo-std) ease,transform var(--mo-quick) var(--ease-enter) }
/* segments made of links: the selected pill glides, so the link itself carries no fill */
.app .seg.ind a{ position:relative; z-index:1 } .app .seg.ind a.on{ background:transparent !important }
/* the old screen leaves toward the side it is left by (browsers without cross-page transitions) */
.app .scroll.hz-leave{ animation:hz-out var(--mo-quick) var(--ease-exit) both; pointer-events:none }
/* the app's own sheets rise from the bottom edge and leave the same way, faster; the dim behind fades */
.app .hz-sheet.on .hz-sheet-backdrop{ animation:hz-fade var(--mo-std) ease both }
.app .hz-sheet.on .hz-sheet-panel{ animation:hz-up var(--mo-move) var(--ease-move) both }
.app .hz-sheet.out .hz-sheet-backdrop{ animation:hz-fadeout var(--mo-std) ease both }
.app .hz-sheet.out .hz-sheet-panel{ animation:hz-down var(--mo-std) var(--ease-exit) both }
/* sheets are only as tall as what they hold (his 15 Nov note), and scroll inside when that is more than the screen */
.app .hz-sheet-panel{ max-height:92%; overflow-y:auto; overscroll-behavior:contain }
/* U10: on wide screens a sheet comes from the right edge, as tall as the screen (HZ.sheet in hz.js is the one way to open one) */
.app:is([data-medium="desk"],[data-medium="tabL"]) .hz-sheet-panel{ left:auto; right:0; top:0; bottom:0; margin:0; max-width:none; width:23rem; max-height:100%; border-radius:0; border-left:1px solid var(--line) }
.app:is([data-medium="desk"],[data-medium="tabL"]) .hz-sheet.on .hz-sheet-panel{ animation-name:hz-side }
.app:is([data-medium="desk"],[data-medium="tabL"]) .hz-sheet.out .hz-sheet-panel{ animation-name:hz-sideout }
/* opening the app: the splash is in the page only on a cold open (base.html decides before first paint) */
.app:not([data-splash]) > .splash{ display:none }
.app > .splash .lockup .wm{ color:var(--ink) }
/* one screen to the next, across the page load: the header, the veil and the tab bar hold still; only the screen travels */
@media (prefers-reduced-motion:no-preference){ @view-transition{ navigation:auto } }
.app > .scroll{ view-transition-name:hz-screen }
html[data-hz-nav="fwd"],html[data-hz-nav="tabr"]{ --hz-gx:-1 } html[data-hz-nav="back"],html[data-hz-nav="tabl"]{ --hz-gx:1 }
::view-transition-old(root),::view-transition-new(root){ animation-duration:160ms }
::view-transition-group(hz-screen){ animation:none }
::view-transition-old(hz-screen){ animation:hz-vt-out 150ms cubic-bezier(.4,0,1,1) both }
::view-transition-new(hz-screen){ animation:none }
html[data-hz-nav="swap"]::view-transition-old(hz-screen),html[data-hz-nav="fade"]::view-transition-old(hz-screen){ animation-name:hz-vt-fade }
@keyframes hz-vt-out{ to{ opacity:0; transform:translateX(calc(var(--hz-gx,0) * 26px)) } }
@keyframes hz-vt-fade{ to{ opacity:0 } }

/* ---------- U31: a link that stands in for one of the mock's buttons looks like that button (26 Nov, found by comparing the
   computed styles of the mock and the app, element by element) ----------
   The mock he signed draws every action as a <button>; its button reset (".app button{ font:inherit … }") outranks the class's own
   font rule, so a solid action and a pill are drawn at the body size and weight (15 px, regular). The app draws most actions as
   links, which that reset never reached: they came out 13 px bold. One block gives the links the button's result. */
.app a:is(.btn,.pillbtn){ font:inherit }
.app h3 a.back{ letter-spacing:normal }
.app .tabbar a.on{ font-weight:600 }
/* the search field is a button in the app (it opens the search screen): the field's own look has to survive the button reset */
.app button.search{ display:flex; align-items:center; gap:8px; width:100%; background:var(--track); border-radius:999px; padding:0 14px; min-height:2.5rem; color:var(--ink-3); font-size:.9375rem; text-align:left }
/* U22: the headline joins the main column only on a wide screen (the mock's lift). On a phone it is the plain headline, with the
   plain headline's spacing; pages that mark it "lifted" in their markup get no extra gap there. */
.app:is([data-medium="phone"],[data-medium="tabP"]) .hero.lifted{ margin:0 }
/* U22, continued. The mock draws a phone screen as one column of blocks; the app keeps the wide screen's two-column markup and
   lets it fall into one column. Two things then added space the mock does not have, on every tab and deeper screen: the grid's own
   top margin, and the section that only exists to hold the headline chart on a wide screen. On a phone both step aside, so the
   chart hint sits 12 px under the headline, as drawn. */
.app:is([data-medium="phone"],[data-medium="tabP"]) .grid:is(.g75,.g57){ margin-top:0 }
.app:is([data-medium="phone"],[data-medium="tabP"]) .sec.first:has(> .ro, > .chart, > .six){ margin-top:0; padding-top:0; border-top:0 }

/* U16: the period chip draws both arrows; one with nowhere to go (the current month has no later one) is dimmed and inert, the same
   size as a live one so the chip never changes width. The macro is `k.arrows` in templates/hz/_kit.html. */
.app .period .nav{ display:inline-block; min-width:1.25rem; min-height:1.5rem; line-height:1.5rem; text-align:center; color:inherit; text-decoration:none }
.app .period .nav.off{ opacity:.3; pointer-events:none; cursor:default }

/* U36 (MP1, MP2): a map carries no zoom buttons on the phone (a pinch zooms), and its credit is a small mark (the compact control), never a box over the map */
.app[data-medium="phone"] .maplibregl-ctrl-zoom-in,.app[data-medium="phone"] .maplibregl-ctrl-zoom-out{ display:none }
.app .maplibregl-ctrl-attrib.maplibregl-compact{ background:transparent; margin:0 6px 6px 0 }

/* SU3 (26 Nov): every screen without tabs (Setup, the bare error and legal pages) starts at ONE top offset, the mock's: its setup block
   starts 96 px under the top of the phone, the brand's top edge at 92 px. One variable; Setup (setup.css) and the bare frame (states.css)
   read it, no screen sets its own. */
:root{ --hz-bare-top:5.75rem }

/* U13 / AD8: a count badge fits three digits ("151"): it grows with its text instead of clipping it inside a fixed circle */
.app .count{ width:auto; min-width:1.5rem; padding:0 .4rem; border-radius:999px; flex:0 0 auto }
/* AD3: the admin header's inbox mark carries what waits as the mock's gold dot with its count */
.app .ic span.gold-n::after{ content:attr(data-n); position:absolute; top:4px; right:2px; min-width:1.25rem; height:1.25rem; padding:0 .25rem; box-sizing:border-box; display:grid; place-items:center; border-radius:999px; background:var(--gold); color:#0f141c; font-size:.8125rem; font-weight:700; line-height:1 }
/* AD1: the admin pages' one line about the cost currency stands apart from the block above it */
.app .adm-cost-note{ margin-top:16px }

/* C5 Ask (his signed mock: a bar above the tabs on phone and upright tablet, a compact Ask on wide screens). The frame draws the bar as a flex
   child between the scroll area and the tab bar, so the scroll area ends above it and the tab bar keeps the safe-area padding. On wide
   screens the bar is not drawn; the header carries a compact entry that opens the same sheet (from the right, as every sheet does). The
   sheet is a .hz-sheet panel (U10b: handle, title with Done, the standard actions); motion is the shared one, no own keyframes. */
.app:is([data-medium="desk"],[data-medium="tabL"]) .ask{ display:none !important }
.app .hz-ask-head{ display:none }
.app:is([data-medium="desk"],[data-medium="tabL"]) .hz-ask-head{ display:inline-flex; align-items:center; gap:6px; min-height:2.75rem; padding:0 12px; border-radius:999px; color:var(--ink-2); font-size:.8125rem; font-weight:600 }
.app .hz-ask-head svg{ width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round }
.app .hz-ask-head:hover{ color:var(--ink) }
.app .ask{ border:0; font:inherit; text-align:left; cursor:pointer; transition:transform var(--mo-quick) var(--ease-enter),background-color var(--mo-quick) ease }
.app .ask:active{ transform:scale(.985) }
.app .hz-ask-sheet .hz-sheet-panel{ align-content:start; min-height:min(34rem,88%) }
.app .askthread{ display:flex; flex-direction:column } .app .askthread:empty{ display:none }
.app .askthread .msg{ max-width:92%; overflow-wrap:anywhere } .app .askthread .msg.hz{ align-self:flex-start } .app .askthread .msg.me{ align-self:flex-end }
.app .askthread .msg .cat{ padding:6px 0 4px } .app .askthread .msg .list{ margin-top:6px } .app .askthread .msg .act{ margin-top:8px }
.app .askthread .msg small.fail{ color:var(--neg) }
.app .askin{ max-width:none; padding-right:6px }
.app .askin input{ flex:1; min-width:0; background:transparent; border:0; outline:0; color:var(--ink); font:inherit }
.app .askin input::placeholder{ color:var(--ink-2) }
.app .askin:focus-within{ box-shadow:0 0 0 2px rgba(var(--acc-rgb),.5) }
.app .askin kbd{ display:none }
.app:is([data-medium="desk"],[data-medium="tabL"]) .askin kbd{ display:inline-block }
.app .askgo{ width:2rem; height:2rem; flex:none; border-radius:50%; display:grid; place-items:center; background:rgba(var(--acc-rgb),.2); color:var(--acc); font:inherit }
.app .hz-ask-sheet .chips .chip{ white-space:normal; text-align:left; line-height:1.3; font-weight:500 }

/* PK1 (OI-421 (ui)): a payment you can tick in an "Add payments" sheet is the kit's payment row (`k.tx(r, pick=True)`) with a tick before the name; picked rows take the accent */
.app .tx.pick{ text-align:left; font:inherit; color:inherit; background:none; border:0; cursor:pointer }
.app .tx.pick .m{ display:flex; align-items:center; gap:10px; min-width:0 }
.app .tx.pick .tick{ flex:none; width:1.125rem; height:1.125rem; border-radius:50%; border:1.5px solid var(--ink-3); background:transparent; position:relative; transition:background var(--mo-quick) var(--ease-enter),border-color var(--mo-quick) var(--ease-enter) }
.app .tx.pick[aria-pressed="true"] .tick{ background:var(--acc); border-color:var(--acc) }
.app .tx.pick[aria-pressed="true"] .tick::after{ content:''; position:absolute; left:.3rem; top:.1rem; width:.25rem; height:.5rem; border:solid var(--bg); border-width:0 2px 2px 0; transform:rotate(45deg) }
.app .tx.pick .c{ padding-left:1.875rem }

/* TS1 (taste, OI-421 (ui)): money and amount fields draw no native number spinner; the typed figure is the control */
.app input[type=number]{ -moz-appearance:textfield; appearance:textfield }
.app input[type=number]::-webkit-outer-spin-button,.app input[type=number]::-webkit-inner-spin-button{ -webkit-appearance:none; margin:0 }

/* ---------- the width rules (design/ui-rules.md FW1 to FW5; his 26 Nov note: "many elements are not fitting the width of the app") ----------
   FW1 one gutter. The distance from the screen edge to the content is ONE variable per medium. The column reads it here; a row that
       leaves the column (FW3) reads the same variable. No page stylesheet writes a side padding for the column or a negative side
       margin as a number (tests/static/test_ui_rules.py). The values are the mock's (hz.css: 20 / 24 / 32 / 28). */
.app[data-medium="phone"]{ --gut:20px } .app[data-medium="tabP"]{ --gut:24px } .app[data-medium="tabL"]{ --gut:32px } .app[data-medium="desk"]{ --gut:28px }
.app[data-medium] .col{ padding-left:var(--gut); padding-right:var(--gut) }
/*     the frame keeps the column's edges: on an upright tablet the column is centred at 45rem, so the header and the Ask bar are too
       (the Ask bar sits 8 px outside the column on each side, as on a phone: 20 px gutter, 12 px margin) */
.app[data-medium="tabP"] > .bar{ max-width:45rem }
.app[data-medium="tabP"] > .ask{ align-self:center; width:calc(100% - 24px); max-width:calc(45rem - 2 * var(--gut) + 16px) }
/* FW2 one maximum for a visual. A chart, a waterfall, a strip, the six months and their loading shape share ONE maximum width, and it
       is the upright tablet's column (45rem less its gutters), so on a phone and on an upright tablet a visual always ends where its
       column ends. On wide screens a visual sits in the main column of the two-column layout (k.layout), which is narrower than this.
       The chart script reads its host's width and holds no number of its own. */
.app{ --vis-max:42rem }
.app :is(.chart,.wf,.strip,.six){ max-width:var(--vis-max) }
/* FW3 the one thing that may leave the column is a row that scrolls sideways (.carou): it bleeds exactly the gutter on both sides, so a
       tile slides under the screen edge and the first tile starts on the column's edge. When every tile fits, the tiles share the
       width and nothing scrolls. */
.app:is([data-medium="phone"],[data-medium="tabP"]) .carou{ margin-left:calc(var(--gut) * -1); margin-right:calc(var(--gut) * -1); padding-left:var(--gut); padding-right:var(--gut); scroll-padding-left:var(--gut); scroll-padding-right:var(--gut) }
.app:is([data-medium="phone"],[data-medium="tabP"]) .carou > .card-s{ flex:1 0 9.5rem; width:auto }
/* FW4 text that does not fit shortens inside its own cell and never pushes its neighbour or the edge (R3, for every row): in a list row
       the value takes at most a little over half, the name the rest; a row of chips beside a title wraps under it. */
.app .r > .v{ flex:0 1 auto; min-width:0; max-width:55%; overflow:hidden; text-overflow:ellipsis }
.app .r > .plus{ flex:0 0 1.5rem }
.app .row2 > .chips{ flex:0 1 auto; min-width:0 }
/*     the six months: on the narrowest phones the gap between the columns gives way before a figure may leave its column */
.app[data-medium="phone"] .six{ gap:clamp(3px, calc((100vw - 300px) * .15), 6px) }
/* HD1 the header's unread mark keeps its button whole. The mark's class is also the small category dot's (an 8 px flex item), which
       shrank the settings button to its 20 px icon and put the mark on top of it; in the header the button keeps its 44 px. */
.app .ic span.dot{ flex:0 0 2.75rem; border-radius:0 }
/* TP1 (OI-442 (ui)): the payment sheet and its follow-ups (change category, name, add to a space) are drawn by ONE script, static/hz/pay-sheet.js, on every
   screen that lists payments, so the sheet's own rules live here (they were Activity's and Plan's page rules). */
/* `.ps` is the class the script puts on the sheets it draws into: these rules were Activity's own and must not reach the sheets of other
   screens (Settings, Access, the import, a space's settle sheet, a shop's edit sheet), which keep the kit's spacing. */
.ps .card-q{ margin-top:12px }
.ps .opt{ display:flex; align-items:center; gap:10px; text-align:left }
.ps .opt small{ display:block }
.ps .opt.on{ background:rgba(var(--acc-rgb),.18) }
.ps .btn[disabled],.ps .pillbtn[disabled]{ opacity:.45; pointer-events:none }
.app .ps .opt{ width:100% }
.app .sheet input.sheetin{ width:100%; background:transparent; border:0; outline:0; color:inherit; font:inherit; padding:0 }
.app .sheet select.sheetin{ background:var(--track); border-radius:10px; padding:6px 8px }
.sheet .ps-cat{ max-width:none; margin-bottom:8px }
.sheet .ps-rename{ margin-top:12px }
.sheet .ps-ghost{ margin:10px 0 0 }
.sheet .ps-hid{ margin:0 0 10px }      /* SH2: why a hidden payment is hidden, under its amount */
.sheet .ps-sa .n{ padding-left:12px }      /* SA1: the sub-account or cardholder, set in under Account */
/* SH2: the hidden payments of an account's page sit under a native disclosure; its two labels swap with its state */
.app details.hidfold > summary{ list-style:none; cursor:pointer } .app details.hidfold > summary::-webkit-details-marker{ display:none }
.app details.hidfold[open] .hf-closed,.app details.hidfold:not([open]) .hf-open{ display:none }
