/* EasyAccount /me, the 2026-10-20 redesign and the 2026-11-02 ledger pass: taste-skill's "achromatic ledger" app style. One white
   page in ink and rules, the sidebar a step darker; lists and figures sit on the page, not in boxes. The mark of the system is the
   logo's double rule, an accountant's total line: under a total it says the figure adds up, beside a bank movement it says its
   proof is joined (a single grey line: maybe the same; nothing: no proof yet). The 2026-11-04 redesign takes the site's sign: its
   face, Barlow, and its black and gold. Gold marks where the person is (this month's bar, the month picked, the step to do) and is
   the label of the one black button; it is never text on white (it does not read). Red is the logo's and an error's only. Status
   keeps its pale pairs. Tabular figures. Radius tight:
   controls 6, chips 4; nothing lifts at rest (only what floats, a menu, casts a soft edge). The pages carry no inline style (CSP
   style-src 'self', and img-src 'self': no data: images either): these classes are their whole vocabulary. Every page works without script. */
@font-face{font-family:"Barlow";font-style:normal;font-weight:400;font-display:swap;src:url('/me/assets/barlow-latin-400-normal.woff2') format('woff2')}
@font-face{font-family:"Barlow";font-style:normal;font-weight:500;font-display:swap;src:url('/me/assets/barlow-latin-500-normal.woff2') format('woff2')}
@font-face{font-family:"Barlow";font-style:normal;font-weight:600;font-display:swap;src:url('/me/assets/barlow-latin-600-normal.woff2') format('woff2')}
:root{
  --ink:#141414;--ink-hover:#2c2c2c;--paper:#fcfcfb;--side:#f4f4f2;--surface:#ffffff;--muted:#5c5c5c;--faint:#6b6b6b;
  --red:#b2332a;--gold:#c9a446;--gold-ink:#ecd27a;
  --bank:#f4f4f2;--bank-ink:#3d3d3d;
  --border:#dcdad4;--rule:#ecebe7;--control:#cfccc5;
  --hover:#f1efea;--active:#e9e6df;--raised:#f6f5f2;--track:#ecebe7;
  --positive:#247b50;--negative:#c4242a;--warning:#92400e;
  --ok-bg:#dcfae5;--ok-text:#04250e;--error-bg:#ffedea;--error-text:#831c1e;--warn-bg:#fffbeb;--warn-line:#fde68a;--warn-text:#92400e;
  --neutral-bg:#efeeeb;--neutral-text:#3d3d3d;
  --grid:#ecebe7;--axis:#9a9a9a;--past:#d3d0c9;
  --radius-card:8px;--radius-control:6px;--radius-chip:4px;
  --sidebar:248px;--pad:40px;--gap:16px;--form:720px;--width:1360px;
  --font:"Barlow",ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  --mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; /* literal codes only: a key, the bank's text. taste-skill-ignore */
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--font);font-size:15px;line-height:22px;font-weight:400;font-variant-numeric:tabular-nums;-webkit-font-smoothing:antialiased}
img{max-width:100%}
:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
::selection{background:var(--active);color:var(--ink)}
.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
/* `hidden` wins over the display that button, .btn and the rest set: a page's script hides and shows them by it */
[hidden]{display:none !important}

/* Type: one face; app sizes (12/13/14/16/24/30), sentence case, tracking only on the title. */
h1{margin:0;font-size:24px;line-height:30px;font-weight:600;letter-spacing:-.01em;text-wrap:balance}
h2{margin:32px 0 12px;font-size:16px;line-height:24px;font-weight:600}
h3{margin:20px 0 6px;font-size:14px;line-height:20px;font-weight:600}
p{margin:0 0 12px}
.lead{font-size:16px;line-height:24px}
.muted{color:var(--muted)}
/* A figure that adds up: the double rule under it, an accountant's total line. */
.total{display:inline-block;padding-bottom:2px;border-bottom:3px double var(--ink)}
a{color:var(--ink);text-decoration:underline;text-decoration-color:#9a9a9a;text-decoration-thickness:1px;text-underline-offset:3px}
a:hover{text-decoration-color:currentColor}
/* A way back over a page's title ("← Recibos"): small and grey, the page's title is what is read. */
main > p:not([class]):is(:has(+ .page-head),:has(+ .walk)){margin:0 0 8px}
main > p:not([class]):is(:has(+ .page-head),:has(+ .walk)) > a:not([class]){color:var(--muted);font-size:13px;text-decoration:none}
main > p:not([class]):is(:has(+ .page-head),:has(+ .walk)) > a:not([class]):hover{color:var(--ink);text-decoration:underline}

/* — The shell — */
/* The bar across the top, on a page of no account or a step of its own (signing in, the sign-up's steps, the list of accounts):
   the mark and the name, then the account picker, the switcher, the search and the person's menu at the right. */
.bar{position:relative;display:flex;flex-wrap:nowrap;align-items:center;gap:0 16px;min-height:56px;padding:0 var(--pad);border-bottom:1px solid var(--border);background:var(--paper);color:var(--ink)}
.bar a{color:inherit;text-decoration:none}
.brand{display:inline-flex;flex:none;align-items:center;gap:10px;padding-block:12px;color:var(--ink);font-size:16px;line-height:1;font-weight:600;letter-spacing:-.01em;white-space:nowrap;text-decoration:none}
.brand img{display:block;width:28px;height:28px}
.bar form.search{flex:0 1 280px;min-width:120px;margin:0 0 0 auto}
.bar:not(:has(form.search)) details.user,.bar:not(:has(form.search)) > form.lang{margin-left:auto}
/* The menus: a summary, and under it a panel that floats (the one thing with a shadow). No script: details and summary. */
details.accounts,details.menu{position:relative;flex:0 1 auto;min-width:0}
details.accounts summary,details.menu summary{position:relative;display:block;max-width:240px;padding:6px 22px 6px 10px;overflow:hidden;border-radius:var(--radius-control);font-weight:500;line-height:20px;white-space:nowrap;text-overflow:ellipsis;list-style:none;cursor:pointer}
details.accounts summary:hover,details.menu summary:hover,details.accounts[open] summary,details.menu[open] > summary{background:var(--hover)}
details.accounts summary::-webkit-details-marker,details.menu summary::-webkit-details-marker,details.nav-fold > summary::-webkit-details-marker{display:none}
details.accounts summary::after,details.menu summary::after{content:"";position:absolute;right:9px;top:12px;width:6px;height:6px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg)}
details.accounts[open] summary::after,details.menu[open] > summary::after{top:15px;transform:rotate(225deg)}
details.accounts ul,.menu-panel{position:absolute;z-index:40;top:calc(100% + 6px);left:0;min-width:240px;max-width:min(340px,calc(100vw - 32px));margin:0;padding:6px;list-style:none;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card);box-shadow:0 10px 28px rgba(17,17,17,.12);color:var(--ink);font-size:14px} /* taste-skill-ignore: a menu floats */
.nav-body .menu-panel,.nav-body details.accounts ul{min-width:0;max-width:none}
.menu-panel ul{margin:0;padding:0;list-style:none}
.menu-panel form{margin:0}
details.accounts ul a,.menu-panel a,.menu-panel button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:0;padding:7px 10px;border:0;border-radius:var(--radius-control);background:none;color:var(--ink);font:inherit;font-weight:400;line-height:20px;text-align:left;text-decoration:none;overflow-wrap:anywhere}
details.accounts ul a:hover,.menu-panel a:hover,.menu-panel button:hover{background:var(--raised);color:var(--ink)}
details.accounts ul a[aria-current="page"],.menu-panel a[aria-current="page"]{background:var(--raised);font-weight:600}
.menu-panel .menu-head{margin:0;padding:6px 10px 8px;color:var(--muted);font-size:13px;overflow-wrap:anywhere}
.menu-panel .menu-head strong{display:block;color:var(--ink);font-size:14px;font-weight:600}
.menu-panel .menu-head span{display:block}
.menu-panel hr{margin:6px 0;border:0;border-top:1px solid var(--border)}
.menu-panel a.with-sub{flex-direction:column;align-items:flex-start;gap:0}
.menu-sub{color:var(--muted);font-size:12px}
/* How many receipts of a business need someone, next to its name in the switcher. */
.menu-panel .count{flex:none;color:var(--muted);font-size:12px;font-weight:500}
/* The language: at the right of the bar on a page of no one signed in; in the person's menu, a row of its own. */
form.lang{display:flex;flex:none;align-items:center;gap:2px}
.bar > form.lang button,.menu-panel form.lang button{display:inline-flex;width:auto;min-height:28px;padding:0 8px;border:0;border-radius:var(--radius-control);background:none;color:var(--muted);font-size:12px;font-weight:600}
.bar > form.lang button:hover,.menu-panel form.lang button:hover{background:var(--hover);color:var(--ink)}
.bar > form.lang button[aria-pressed="true"],.menu-panel form.lang button[aria-pressed="true"]{background:var(--active);color:var(--ink)}
.menu-panel form.lang{padding:2px 4px}
/* The person's menu: their initials in a neutral circle and their name; its panel headed by who they are. */
details.user summary{display:flex;align-items:center;gap:10px;max-width:none;padding:6px 26px 6px 6px}
.avatar{display:inline-grid;flex:none;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--active);color:var(--ink);font-size:12px;font-weight:600;line-height:1}
details.user .who{min-width:0;overflow:hidden;font-size:13px;font-weight:500;white-space:nowrap;text-overflow:ellipsis}
.bar > details.user .who{display:none}
.bar > details.user .menu-panel{left:auto;right:0}
/* The bar's search. */
form.search input{width:100%;min-height:32px;padding:5px 10px;border:1px solid var(--control);border-radius:var(--radius-control);background:var(--surface);color:var(--ink);font-size:13px}
form.search input::placeholder{color:var(--faint)}

/* The sidebar (an account's page): a labelled column on the page's ground, separated by nothing, sticky while the page scrolls.
   Its parts from the top: the mark and the name, the account picker, the search, the navigation, and the person's menu at its foot.
   Its fold (a details) shows its content without being opened on a wide screen; on a narrow one it is the "Menú" of a 48px bar. */
body:has(> .bar .nav-fold){display:grid;grid-template-columns:var(--sidebar) minmax(0,1fr);align-items:start;min-height:100vh}
body:has(> .bar .nav-fold) > .bar{position:sticky;top:0;display:flex;flex-direction:column;align-items:stretch;gap:0;height:100vh;height:100dvh;min-height:0;padding:16px 12px 12px;overflow-y:auto;border:0;background:var(--side);scrollbar-width:thin}
.bar-head{display:flex;align-items:center;gap:10px;min-width:0;padding:0 6px 14px}
.bar-head .brand{padding:0}
.bar-scope{display:none}
details.nav-fold{display:flex;flex:1 1 auto;flex-direction:column;min-height:0}
/* "Menú": the folded bar's button (a phone, a tablet); on a wide screen the fold shows its content unopened, where the browser can
   say so (::details-content); where it cannot, "Menú" stays and opens it. */
details.nav-fold > summary{display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:0 12px;border:1px solid var(--control);border-radius:var(--radius-control);background:var(--surface);font-weight:500;list-style:none;cursor:pointer}
details.nav-fold > summary .when-open,details.nav-fold[open] > summary .when-closed{display:none}
details.nav-fold[open] > summary .when-open{display:inline}
details.nav-fold[open] > summary{background:var(--active)}
.menu-icon{display:block;flex:none}
@supports selector(::details-content){
  @media (min-width: 1000px){
    details.nav-fold > summary{display:none}
    details.nav-fold::details-content{display:flex;flex:1 1 auto;flex-direction:column;content-visibility:visible}
  }
}
.nav-body{display:flex;flex:1 1 auto;flex-direction:column;gap:12px;min-height:0}
.nav-body > details.accounts summary{max-width:none;border:1px solid var(--control);background:var(--surface)}
.nav-body > details.accounts ul{right:0}
.nav-body > form.search{flex:none;margin:0}
nav.tabs{display:flex;flex-direction:column;gap:20px}
.nav-group{display:flex;flex-direction:column;gap:2px;min-width:0}
nav.tabs a:not(.btn){display:flex;align-items:center;gap:8px;min-height:32px;padding:6px 10px;border-radius:var(--radius-control);color:var(--ink);font-size:14px;line-height:20px;font-weight:400;text-decoration:none;white-space:nowrap}
nav.tabs a:not(.btn):hover{background:var(--hover)}
nav.tabs a[aria-current="page"]:not(.btn){background:var(--active);font-weight:500}
/* A count says what it counts, after the label at the item's right: the number in ink, its noun in grey. */
nav.tabs .count{margin-left:auto;color:var(--ink);font-size:12px;font-weight:500;white-space:nowrap}
/* The group of a business, under its name: a preparer's switcher, an owner's one business as a plain label. */
.nav-label{margin:0;padding:0 10px 6px;overflow:hidden;color:var(--muted);font-size:12px;line-height:16px;white-space:nowrap;text-overflow:ellipsis}
.nav-group > details.businesses{flex:none;margin:0 0 4px}
.nav-group > details.businesses > summary{max-width:none;padding:6px 26px 6px 10px;border:1px solid var(--control);background:var(--surface);font-size:13px}
.nav-group > details.businesses > summary:hover,.nav-group > details.businesses[open] > summary{background:var(--surface);border-color:var(--ink)}
.nav-group > details.businesses .menu-panel{right:0;max-height:min(420px,calc(100vh - 160px));overflow-y:auto}
.nav-group.business:not(:has(a)) > details.businesses > summary{color:var(--muted)}
/* Whose page it is, over a business page's heading. */
.page-head p.crumb{margin:0 0 2px;color:var(--muted);font-size:14px;font-weight:500}
/* The client switcher's box to find one by name. */
input.switch-find{display:block;width:100%;min-height:34px;margin:0 0 6px;padding:5px 10px;border:1px solid var(--control);border-radius:var(--radius-control);background:var(--surface);color:var(--ink);font:inherit;font-size:14px}
input.switch-find::placeholder{color:var(--faint)}
/* Subir, under Buscar at the top of the sidebar (2026-11-04 redesign): one place for it on every page. */
.nav-body > a.bar-upload{width:100%;min-height:34px;margin:8px 0 6px;font-size:14px}
/* Buscar in one tap while the bar is folded, and the bar at the foot of a phone (the 2026-11-05 audit, §6; TelPorHacer): four places,
   each its icon over its word, the page's in gold. Neither shows on a wide screen, where the sidebar has them. */
a.bar-find,nav.phone-bar{display:none}
@media (max-width: 999px){
  a.bar-find{display:grid;flex:none;place-items:center;width:44px;height:44px;margin-right:-6px;border-radius:var(--radius-control);color:var(--ink)}
  a.bar-find:hover,a.bar-find[aria-current="page"]{background:var(--hover)}
}
@media (max-width: 699px){
  nav.phone-bar{position:fixed;left:0;right:0;bottom:0;z-index:28;display:flex;padding:4px 6px calc(10px + env(safe-area-inset-bottom));border-top:1px solid var(--border);background:var(--surface)}
  nav.phone-bar a{display:flex;flex:1 1 0;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;min-height:52px;border-radius:var(--radius-control);color:var(--muted);font-size:12px;line-height:14px;font-weight:500;text-decoration:none}
  nav.phone-bar a span:not(.avatar){max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
  nav.phone-bar a .avatar{width:22px;height:22px;font-size:10px}
  nav.phone-bar a[aria-current="page"]{color:var(--ink);font-weight:600;box-shadow:inset 0 3px 0 var(--gold)}
  nav.phone-bar a[aria-current="page"] svg{color:var(--gold)}
  nav.phone-bar a[aria-current="page"] .avatar{background:var(--ink);color:var(--gold-ink)}
  body:has(> .bar nav.phone-bar) > main{padding-bottom:96px}
}
/* Rediseño ronda 2 · onboarding: the sign-in, the fork, the named steps (gold where the person is), the
   office's box and invitation with its preview, the owner's three ways, the batch's findings, and "Para empezar · N de M". */
a.btn.sign-in{min-height:46px;padding:0 22px;font-size:16px}
.login-foot{margin:28px 0 0;padding:16px 0 0;border-top:1px solid var(--rule);color:var(--muted);font-size:13px;line-height:18px}
.login-foot p{margin:0 0 8px}
.login-foot p:last-child{margin:0}
form.fork-lang{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:flex-end;gap:4px 8px;margin:0 0 16px;color:var(--muted);font-size:13px}
form.fork-lang button.plain{font-size:13px}
.fork-picks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 20px}
a.fork-pick{display:flex;flex-direction:column;gap:6px;min-height:168px;padding:20px;border:1px solid var(--control);border-radius:var(--radius-card);background:var(--surface);color:var(--ink);text-decoration:none}
a.fork-pick strong{font-size:18px;line-height:24px;font-weight:600}
a.fork-pick span{color:var(--muted)}
a.fork-pick em{margin-top:auto;font-style:normal;font-weight:600;text-decoration:underline;text-decoration-color:var(--gold);text-decoration-thickness:2px;text-underline-offset:4px}
a.fork-pick:hover{border-color:var(--ink)}
ol.onb-steps{display:grid;grid-auto-columns:minmax(0,1fr);grid-auto-flow:column;gap:8px;max-width:var(--form);margin:0 0 24px;padding:0;list-style:none;color:var(--muted);font-size:13px;line-height:18px}
ol.onb-steps li{padding:8px 0 0;border-top:4px solid var(--track)}
ol.onb-steps li.done{border-top-color:var(--ink)}
ol.onb-steps li.on{border-top-color:var(--gold);color:var(--ink);font-weight:600}
form.onb-form label.choice.agree{margin:4px 0 0;font-size:14px}
form.onb-form .actions .hint{margin:0}
p.onb-alt{margin:16px 0 0}
.onb-invite{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,320px);align-items:start;gap:24px 40px;max-width:1080px}
.onb-invite-form .actions a{font-weight:500}
aside.onb-preview{padding:16px;border-radius:var(--radius-card);background:var(--side)}
aside.onb-preview h2{margin:0 0 4px}
aside.onb-preview .hint{margin:8px 0 0}
.wa-msg{margin:12px 0 0;padding:12px;border-radius:var(--radius-card);background:var(--surface);border:1px solid var(--border)}
.wa-msg p{margin:0}
.wa-msg p.wa-replies{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:10px 0 0}
.wa-replies span{padding:6px;border-top:1px solid var(--rule);text-align:center;font-weight:500}
.onb-invite:has(input[name="language_1"][value="en"]:checked) .wa-msg.pv-es{display:none}
.onb-invite:has(input[name="language_1"][value="es"]:checked) .wa-msg.pv-en{display:none}
ol.ways{display:grid;gap:12px;margin:0 0 20px;padding:0;list-style:none}
li.way{padding:16px;border:1px solid var(--border);border-radius:var(--radius-card);background:var(--surface)}
li.way h2{margin:0 0 4px}
li.way .hint{margin:0 0 12px}
li.way p{margin:0 0 8px}
li.way .link{font-weight:500;overflow-wrap:anywhere}
li.way form.inline{align-items:flex-end}
li.way .dropzone{padding:24px 16px}
.callout ul.found{display:flex;flex-wrap:wrap;gap:4px 20px;margin:8px 0 0}
.callout ul.found li{display:block;font-weight:500}
.callout ul.found li.unread{color:var(--negative)}
.callout p.hint.after-review{margin:12px 0 0}
/* The papers of a box (the 2026-11-05 audit, §5): a grid of its pictures, each with who, when, how much and its state. */
ul.papers{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px;max-width:1080px;margin:20px 0;padding:0;list-style:none}
li.paper > a,li.paper:not(:has(> a)){display:flex;flex-direction:column;gap:4px;height:100%;padding:10px;border:1px solid var(--border);border-radius:var(--radius-card);background:var(--surface);color:var(--ink);text-decoration:none;box-sizing:border-box}
li.paper > a:hover{border-color:var(--ink)}
.paper-ph{display:grid;place-items:center;height:96px;margin-bottom:2px;border-radius:6px;background:var(--raised);overflow:hidden}
.paper-ph img{width:100%;height:96px;object-fit:cover;object-position:top}
.paper-mark{color:var(--muted);font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase}
.paper-n{font-weight:600;font-size:14px;line-height:18px;overflow-wrap:anywhere}
.paper-m{color:var(--muted);font-size:13px;line-height:18px}
li.paper .chip{align-self:flex-start;margin-top:2px}
li.paper.wait .paper-n,li.paper.wait .paper-m{color:var(--muted)}
li.paper.wait .paper-ph{background:var(--track)}
.card.guide.start .guide-head h2{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px}
.start-count{color:var(--muted);font-weight:500}
progress.start-bar{display:block;width:100%;max-width:var(--form);height:6px;margin:10px 0 12px}
ol.start-steps{display:grid;gap:0;max-width:var(--form);margin:0 0 12px;padding:0;list-style:none;border-top:1px solid var(--rule)}
ol.start-steps li{position:relative;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 16px;padding:12px 0 12px 32px;border-bottom:1px solid var(--rule)}
ol.start-steps li::before{content:"";position:absolute;left:0;top:14px;width:18px;height:18px;border:1.5px solid var(--control);border-radius:50%}
ol.start-steps li.done::before{border-color:var(--ink);background:var(--ink)}
ol.start-steps li.done::after{content:"";position:absolute;left:7px;top:18px;width:5px;height:9px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
ol.start-steps li.wait::before{border-color:var(--warning)}
ol.start-steps li.current::before{border:5px solid var(--gold)}
ol.start-steps li.current{padding-top:14px;padding-bottom:14px}
ol.start-steps li.current .name{font-weight:600}
ol.start-steps li.later,ol.start-steps li.optional{color:var(--muted)}
ol.start-steps .what{display:grid;gap:2px;flex:1 1 280px;min-width:0}
ol.start-steps .what .hint{margin:0}
ol.start-steps li > .btn,ol.start-steps li > .chip,ol.start-steps li > a.go{flex:none}
@media (max-width: 640px){
  .fork-picks,.onb-invite{grid-template-columns:minmax(0,1fr)}
  a.fork-pick{min-height:0}
  ol.onb-steps{grid-auto-flow:row;grid-auto-columns:auto}
  ol.onb-steps li:not(.on){display:none}
}
details.nav-fold details.user{flex:none;margin-top:auto}
details.nav-fold details.user > summary:hover,details.nav-fold details.user[open] > summary{background:var(--hover)}
details.nav-fold details.user .menu-panel{top:auto;bottom:calc(100% + 6px);left:0;right:0;min-width:0;max-width:none}

/* The page: its head (a way back over it; the title, the line under it, its actions), then its body. One left edge, one gutter. */
main{width:100%;max-width:calc(var(--width) + 2 * var(--pad));margin:0 auto;padding:32px var(--pad) 72px}
body:has(> .bar .nav-fold) > main{margin:0}
main.narrow{max-width:calc(var(--form) + 2 * var(--pad))}
main.narrow.in-app{max-width:calc(var(--width) + 2 * var(--pad))}
main.narrow.in-app > *{max-width:var(--form)}
/* A page of its own with no navigation (signing in, a step of the sign-up): one white sheet in the middle of the paper. */
body:not(:has(> .bar .nav-fold)) > main.narrow:not(.in-app){margin-top:40px;margin-bottom:56px;padding:32px 40px 36px;max-width:calc(var(--form) + 80px);background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card)}
.page-head{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:12px 24px;margin:0 0 24px}
.page-head > div:first-child{flex:1 1 360px;min-width:0}
.sub{margin:4px 0 0;color:var(--muted);font-size:14px;line-height:20px}
.sub .chip{vertical-align:0}
.actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:20px 0 0}
.page-head .actions{margin:0;flex:none}
.narrow > .steps{max-width:none}
/* A part of a wide page that is a form or a short list: the width of a form, where the page starts. */
.column{max-width:var(--form)}
section.column{margin-top:32px}

/* Buttons: one primary per view, near-black with a white label; secondary white with a 1px border; plain and danger as text. */
button,a.btn,a.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:36px;padding:0 14px;border:1px solid var(--ink);border-radius:var(--radius-control);background:var(--ink);color:var(--gold-ink);font:inherit;font-size:15px;font-weight:600;line-height:20px;text-align:center;text-decoration:none;cursor:pointer;transition:background-color .15s ease,border-color .15s ease,color .15s ease}
button:hover,a.btn:hover,a.button:hover{background:var(--ink-hover);border-color:var(--ink-hover);color:var(--gold-ink)}
button.secondary,.btn.secondary{background:var(--surface);border-color:var(--control);color:var(--ink)}
button.secondary:hover,.btn.secondary:hover{background:var(--raised);border-color:#b9b9b9;color:var(--ink)}
.btn.secondary[aria-current="page"]{background:var(--active);border-color:var(--control)}
button.plain,button.danger,a.danger{min-height:24px;padding:0;border:0;background:none;color:var(--ink);font-weight:500;text-decoration:underline;text-decoration-color:#9a9a9a;text-decoration-thickness:1px;text-underline-offset:3px}
button.plain:hover{background:none;color:var(--ink);text-decoration-color:currentColor}
button.danger,a.danger,button.danger:hover,a.danger:hover{background:none;color:var(--negative)}
button.danger:hover,a.danger:hover{text-decoration-color:currentColor}
button.secondary.danger,.btn.secondary.danger{min-height:36px;padding:0 14px;border:1px solid var(--control);background:var(--surface);color:var(--negative);text-decoration:none}
button.secondary.danger:hover,.btn.secondary.danger:hover{background:var(--error-bg);border-color:var(--negative);color:var(--negative)}
button:disabled{opacity:.55;cursor:not-allowed}
/* The verb of a row or a line that acts right there (Copiar, Apagarlo, Recordarle): ink text, no box. */
button.go{min-height:0;padding:2px 0;border:0;background:none;color:var(--ink);font:inherit;font-weight:500;cursor:pointer}
button.go:hover{background:none;border-color:transparent;color:var(--ink);text-decoration:underline;text-underline-offset:3px}
button.go:focus-visible{outline:2px solid var(--ink);outline-offset:2px;border-radius:3px}

/* Forms: a field is its label over its control; choices are radios or checkboxes, each with an optional small note. */
form{margin:0}
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select,textarea{min-height:36px;max-width:100%;padding:7px 10px;border:1px solid var(--control);border-radius:var(--radius-control);background:var(--surface);color:var(--ink);font:inherit;font-size:14px;font-weight:400;line-height:20px}
textarea{min-height:96px;resize:vertical}
input:focus-visible,select:focus-visible,textarea:focus-visible{border-color:var(--ink);outline:2px solid var(--ink);outline-offset:0}
input::placeholder,textarea::placeholder{color:var(--faint)}
input[aria-invalid="true"]:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select[aria-invalid="true"],textarea[aria-invalid="true"]{border-color:var(--negative)}
label.field{display:grid;align-content:start;gap:6px;max-width:480px;margin:0 0 16px;font-weight:500}
label.field input:not([type="checkbox"]):not([type="radio"]),label.field select,label.field textarea{width:100%}
.fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));align-items:start;gap:0 16px;max-width:var(--form)}
.fields label.field{max-width:none}
.hint{display:block;margin:6px 0 16px;color:var(--muted);font-size:13px;line-height:18px;font-weight:400}
.field-error{display:block;margin:0 0 16px;color:var(--negative);font-size:13px;font-weight:500}
label.field .hint,label.field .field-error,fieldset.choices > .hint{margin:0}
.field-error:empty{display:none}
fieldset.choices{display:grid;gap:10px;min-width:0;max-width:var(--form);margin:0 0 16px;padding:0;border:0}
fieldset.choices legend{margin:0 0 10px;padding:0;font-weight:500}
label.choice{position:relative;display:block;margin:0;padding-left:28px;font-weight:400;line-height:20px;cursor:pointer}
:not(fieldset) > label.choice{margin:0 0 16px}
label.choice input{position:absolute;left:0;top:1px;width:18px;height:18px;margin:0;accent-color:var(--ink);cursor:pointer}
label.choice small{color:var(--muted);font-size:13px}
/* A text field inside a choice ("Otro:" and its code): under the choice's words, not over its radio */
label.choice input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]){position:static;display:block;width:100%;max-width:452px;height:auto;margin:6px 0 0;cursor:text}
/* The partners show only when the entity chosen is a partnership; without :has() support they always show */
form:has([name="entity"]):not(:has([name="entity"][value="partnership"]:checked)):not(:has(select[name="entity"] option[value="partnership"]:checked)) .partners{display:none}
details.more{max-width:var(--form);margin:0 0 16px}
details.more summary{display:inline-flex;align-items:center;gap:8px;color:var(--ink);font-weight:500;list-style:none;cursor:pointer}
details.more summary::-webkit-details-marker{display:none}
details.more summary::before{content:"";display:inline-block;width:6px;height:6px;margin:0 2px 2px 1px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(-45deg)}
details.more[open] summary::before{transform:rotate(45deg)}
details.more summary:hover{text-decoration:underline;text-underline-offset:3px}
details.more[open] summary{margin-bottom:12px}
form.inline{display:inline-flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0;vertical-align:middle}
form.inline:has(label.field){align-items:flex-end}
form.inline label.field{margin:0}

/* States: a pale tint with dark text of the same hue, one per row; never squeezed. */
.chip{display:inline-flex;flex:none;align-items:center;min-height:20px;padding:0 6px;border:1px solid transparent;border-radius:var(--radius-chip);background:var(--neutral-bg);color:var(--neutral-text);font-size:12px;line-height:16px;font-weight:500;white-space:nowrap;vertical-align:1px}
.chip.ok{background:var(--ok-bg);color:var(--ok-text)}
.chip.warn{background:var(--warn-bg);border-color:var(--warn-line);color:var(--warn-text)}
.chip.error{background:var(--error-bg);color:var(--error-text)}
.chip.neutral{background:var(--neutral-bg);color:var(--neutral-text)}
/* 2026-11-05: every state an icon and a word, the icon drawn here: done with a check, the person's to do with a gold dot, waiting
   with a ring, an error with its mark (the only red). */
.chip::before{content:"";flex:none;margin-right:5px}
.chip.ok::before{width:4px;height:7px;margin:0 7px 2px 1px;border:solid var(--positive);border-width:0 1.5px 1.5px 0;transform:rotate(45deg)}
.chip.warn::before{width:6px;height:6px;border-radius:50%;background:var(--gold)}
.chip.neutral::before{box-sizing:border-box;width:7px;height:7px;border:1.5px solid currentColor;border-radius:50%}
.chip.error::before{content:"!";margin-right:4px;font-weight:700}
/* What needs the admin: a white panel with its title first. A quiet note: the same, smaller. */
.callout{margin:0 0 20px;padding:14px 16px;background:var(--side);border-radius:var(--radius-control)}
.callout > strong:first-child{display:block;margin:0 0 2px;font-weight:600}
.callout p{margin:4px 0 0}
.callout ul{display:grid;gap:8px;margin:8px 0 0;padding:0;list-style:none}
.callout li{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:2px 16px}
.callout .actions{margin-top:12px}
.note{margin:0 0 20px;padding:12px 14px;background:var(--side);border-radius:var(--radius-control)}
.flash{margin:0 0 20px;padding:10px 14px;border-radius:var(--radius-control);font-weight:500}
.flash.ok{background:var(--ok-bg);color:var(--ok-text)}
.flash.error{background:var(--error-bg);color:var(--error-text)}
/* The wizard's steps: a bar per step, the ones done in ink. */
.steps{display:flex;gap:6px;max-width:var(--form);margin:0 0 20px}
.steps span{flex:1;height:4px;border-radius:2px;background:var(--track)}
.steps span.done{background:var(--ink)}
/* A row of figures: one container split by hairlines, a label over each value. */
.metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));margin:0 0 24px;overflow:hidden;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.metrics > div{min-width:0;padding:14px 16px;border-left:1px solid var(--rule);margin-left:-1px}
.metrics > div:first-child{padding-left:0}
.metrics dt{color:var(--muted);font-size:13px;line-height:18px}
.metrics dd{margin:4px 0 0;font-size:24px;line-height:30px;font-weight:500;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
/* A part of the page: a rule over it, no box (the 2026-11-02 ledger pass). */
.card{margin:0 0 var(--gap);padding:20px 0;border-top:1px solid var(--border)}
.card > :first-child{margin-top:0}
.card > :last-child{margin-bottom:0}
.card h2{margin:0 0 12px}

/* — A business's page (the 2026-10-20 redesign) — */
/* Its question: "¿Cómo va este cliente este mes y qué falta para cerrarlo?". The month block is the biggest thing: its figures
   (one strip, the expenses lead), the twelve months' expenses (this month in the logo's red, the closed months over the double rule), and
   beside them what waits, each line with its one button. Then where the money went, by account and by vendor. */
.card.month{display:grid;grid-template-columns:minmax(0,1fr);padding:0}
.month-figures{min-width:0;padding:20px 0}
.card.month > .todo-list{min-width:0;padding:20px 0;border-top:1px solid var(--border)}
@media (min-width: 1200px){
  .card.month.with-todo{grid-template-columns:minmax(0,1.9fr) minmax(320px,1fr)}
  .month-figures{padding-right:40px}
  .card.month > .todo-list{padding-left:40px;border-top:0;border-left:1px solid var(--rule)}
}
.month-head{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;margin:0 0 14px}
.month-head h2{margin:0}
.stamp{color:var(--muted);font-size:12px}
.month-head nav.seg{margin-left:auto}
/* Month or year: a segmented track as wide as its two options, the active one a white pill. */
nav.seg{display:inline-flex;padding:2px;border-radius:var(--radius-control);background:var(--track)}
nav.seg a{display:inline-flex;align-items:center;min-height:28px;padding:0 12px;border:1px solid transparent;border-radius:4px;color:var(--muted);font-size:13px;font-weight:500;text-decoration:none}
nav.seg a:hover{color:var(--ink)}
nav.seg a[aria-current="page"]{background:var(--surface);border-color:var(--border);color:var(--ink)}
/* The figures: a bare strip split by hairlines, a label over each value. The answer figure leads at 30px; the others at 24. */
.kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0 0 16px;padding:0 0 14px;border-bottom:1px solid var(--rule)}
.kpi{display:flex;flex-direction:column;gap:2px;min-width:0;padding:0 16px}
.kpi:first-child{padding-left:0}
.kpi + .kpi{border-left:1px solid var(--border)}
.kpi .label{color:var(--muted);font-size:13px;line-height:18px}
.kpi strong{font-size:24px;line-height:32px;font-weight:500;letter-spacing:-.01em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.kpi.lead strong{font-size:30px;line-height:38px;font-weight:600}
.kpi .delta,.kpi .last{color:var(--muted);font-size:12px;line-height:16px}
/* A change says good or bad by its colour, which way by a small triangle; the words stay grey. */
.kpi .delta.up::before,.kpi .delta.down::before{content:"";display:inline-block;width:0;height:0;margin:0 5px 1px 0;border-left:4px solid transparent;border-right:4px solid transparent}
.kpi .delta.up::before{border-bottom:6px solid var(--muted)}
.kpi .delta.down::before{border-top:6px solid var(--muted)}
.kpi .delta.good::before{border-bottom-color:var(--positive);border-top-color:var(--positive)}
/* More spent than before is not an error (red is only for errors): its triangle is ink. */
.kpi .delta.bad::before{border-bottom-color:var(--ink);border-top-color:var(--ink)}
.kpi .delta.up.good::before,.kpi .delta.up.bad::before{border-top-color:transparent}
.kpi .delta.down.good::before,.kpi .delta.down.bad::before{border-bottom-color:transparent}
.chart-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 12px;margin:0 0 8px}
.chart-head h3{margin:0}
/* The legend of the closed months: the mark itself, two short 2px lines. */
.legend{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:12px}
.swatch.closed{display:inline-block;width:16px;height:4px;border-radius:2px;background:var(--faint)}
.source{margin:6px 0 0;color:var(--muted);font-size:12px;line-height:16px}
/* The chart, drawn on the server: grey past months, this month in the logo's red, a baseline, 3-4 round ticks; the closed months' double
   rule on the axis. */
svg.bars{display:block;width:100%;height:192px;overflow:visible}
svg.bars rect{fill:var(--past)}
svg.bars .now rect{fill:var(--gold)}
svg.bars text{fill:var(--muted);font-family:var(--font);font-size:12px;text-anchor:middle;font-variant-numeric:tabular-nums}
svg.bars text.tick{text-anchor:start}
svg.bars .now text.month{fill:var(--ink);font-weight:600}
svg.bars text.value{fill:var(--ink)}
svg.bars .now text.value{font-weight:600}
svg.bars line.grid{stroke:var(--grid);stroke-width:1}
svg.bars line.base{stroke:var(--axis);stroke-width:1}
svg.bars line.zero{stroke:var(--axis);stroke-width:2}
svg.bars line.closed{stroke:var(--faint);stroke-width:4;stroke-linecap:round}
/* — Rediseño ronda 2 · cierre del mes (R1, R4): the month's four steps on a client's Resumen, its strip in Clientes, what was done
   this week in Por hacer, and the close's confirmation. A step's state is a mark and a word: done in green with a check, the
   person's in gold (its top edge, an amber dot), waiting on the client in grey with a ring, not yet a bare ring. — */
.close-steps{margin:0 0 var(--gap)}
.close-answer{margin:0 0 12px;font-size:16px;line-height:24px;max-width:72ch}
.close-answer strong{font-weight:600}
/* The months behind the one to close that are ready, under its answer, with the way to close them (2026-11-05). */
.close-ready{margin:-4px 0 12px;font-size:14px;line-height:20px}
.close-ready a.go{margin-left:4px;font-weight:600}
/* The month of a Resumen or of Clientes (2026-11-05): its name underlined in gold (where the person is), and the months to pick in
   a list under it (a details: no script). */
details.month-pick{position:relative;display:inline-block;margin:0 0 8px}
details.month-pick > summary{display:inline-flex;align-items:center;gap:8px;min-height:28px;padding:2px 2px 2px 0;border-bottom:2px solid var(--gold);color:var(--ink);font-size:14px;font-weight:600;list-style:none;cursor:pointer}
details.month-pick > summary::-webkit-details-marker{display:none}
details.month-pick > summary::after{content:"";width:6px;height:6px;margin:0 2px 3px 0;border:solid var(--muted);border-width:0 1.5px 1.5px 0;transform:rotate(45deg)}
details.month-pick ul{position:absolute;z-index:40;top:calc(100% + 6px);left:0;min-width:200px;max-height:340px;margin:0;padding:6px;overflow-y:auto;list-style:none;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card);box-shadow:0 10px 28px rgba(17,17,17,.12)} /* taste-skill-ignore: a menu floats */
details.month-pick ul a{display:block;padding:6px 10px;border-radius:var(--radius-control);color:var(--ink);font-size:14px;line-height:20px;text-decoration:none}
details.month-pick ul a:hover{background:var(--raised)}
details.month-pick ul a[aria-current="true"]{background:var(--raised);font-weight:600;box-shadow:inset 3px 0 0 var(--gold)}
ol.steps4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:0;padding:0;list-style:none;overflow:hidden;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card)}
ol.steps4 > li.step{display:flex;flex-direction:column;gap:4px;min-width:0;padding:16px 16px 14px;box-shadow:inset 0 4px 0 var(--track)}
ol.steps4 > li.step + li.step{border-left:1px solid var(--rule)}
ol.steps4 > li.step.done{box-shadow:inset 0 4px 0 var(--positive)}
ol.steps4 > li.step.you{box-shadow:inset 0 4px 0 var(--gold)}
ol.steps4 > li.step.client{box-shadow:inset 0 4px 0 var(--faint)}
.step-t{display:flex;align-items:center;gap:8px;margin:0 0 4px;font-weight:600;line-height:20px}
.step-mark,.close-mark{position:relative;flex:none;display:inline-block;width:20px;height:20px;border-radius:50%;background:var(--neutral-bg);box-shadow:inset 0 0 0 1.5px var(--control)}
.done > .step-t .step-mark,.close-done li.done .close-mark{background:var(--ok-bg);box-shadow:none}
.done > .step-t .step-mark::after,.close-done li.done .close-mark::after{content:"";position:absolute;left:7px;top:4px;width:5px;height:9px;border:solid var(--positive);border-width:0 2px 2px 0;transform:rotate(45deg)}
.you > .step-t .step-mark,.close-done li.you .close-mark{background:var(--warn-bg);box-shadow:none}
.you > .step-t .step-mark::after,.close-done li.you .close-mark::after{content:"";position:absolute;left:6px;top:6px;width:8px;height:8px;border-radius:50%;background:var(--gold)}
.client > .step-t .step-mark{background:var(--neutral-bg);box-shadow:inset 0 0 0 1.5px var(--faint)}
.client > .step-t .step-mark::after{content:"";position:absolute;left:9px;top:5px;width:4px;height:6px;border:solid var(--faint);border-width:0 0 1.5px 1.5px}
.step-big{margin:0;font-size:22px;line-height:28px;font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.step-big span{color:var(--muted);font-size:15px;font-weight:500}
.step-small{margin:0;color:var(--muted);font-size:13px;line-height:18px}
ol.steps4 a.go{align-self:flex-start;margin-top:auto;padding-top:6px;font-size:14px;font-weight:600}
@media (max-width: 999px){
  ol.steps4{grid-template-columns:repeat(2,minmax(0,1fr))}
  ol.steps4 > li.step + li.step{border-left:0}
  ol.steps4 > li.step:nth-child(even){border-left:1px solid var(--rule)}
  ol.steps4 > li.step:nth-child(n+3){border-top:1px solid var(--rule)}
}
@media (max-width: 480px){
  ol.steps4{grid-template-columns:minmax(0,1fr)}
  ol.steps4 > li.step:nth-child(even){border-left:0}
  ol.steps4 > li.step + li.step{border-top:1px solid var(--rule)}
}
/* Clientes: the four steps of each client's month as four short segments, then the month in words; its one next thing at the end. */
td.month-steps{min-width:220px;white-space:normal}
.mini{display:inline-grid;grid-template-columns:repeat(4,18px);gap:3px;margin:0 10px 0 0;vertical-align:middle}
.mini > span{display:block;height:6px;border-radius:3px;background:var(--control)}
.mini > span.done{background:var(--positive)}
.mini > span.you{background:var(--gold)}
.mini > span.client{background:var(--faint)}
.mini-said{font-size:13px;line-height:18px}
/* Clientes (2026-11-05): its filters with their counts and the month picker on one line over the table; under each client, who sends. */
.clients-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;margin:0 0 12px}
.clients-bar details.month-pick{margin:0}
nav.seg a .count{margin-left:4px;color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}
nav.seg a[aria-current="page"] .count{color:var(--ink)}
table.rows.clients td .meta{display:block;margin-top:2px;color:var(--muted);font-size:12px;line-height:16px}
td.go.next a.go{font-weight:600}
td.go.next a.row-action{font-weight:600;text-decoration:none}
td.go.next a.row-action:hover{text-decoration:underline;text-underline-offset:3px}
/* Por hacer: what was done this week, at its end, a quiet band of figures. */
.todo-done{margin:0 0 24px;padding:16px 18px;border-radius:var(--radius-card);background:var(--side)}
.todo-done h2{margin:0 0 8px}
.todo-done ul{display:flex;flex-wrap:wrap;gap:12px 28px;margin:0;padding:0;list-style:none}
.todo-done li{display:flex;flex-direction:column;min-width:0}
.todo-done li strong{font-size:22px;line-height:28px;font-weight:600;font-variant-numeric:tabular-nums}
.todo-done li span{color:var(--muted);font-size:13px;line-height:18px}
/* Cerrar el mes: what is done, each with its mark and word; that it is final; the answer; and, folded, the accounting detail. */
.close-lead{margin:0 0 8px;color:var(--muted);font-size:14px}
ul.close-done{margin:0 0 16px;padding:0;list-style:none}
ul.close-done li{display:grid;grid-template-columns:22px minmax(0,1fr);gap:12px;align-items:start;padding:10px 0}
ul.close-done li + li{border-top:1px solid var(--rule)}
ul.close-done strong{font-weight:600}
ul.close-done p{margin:2px 0 0;color:var(--muted);font-size:13px;line-height:18px}
/* Each movement with its reason, for the preparer's papers (2026-11-05): a short list under its line, no rule between them. */
ul.close-done ul.close-why{margin:4px 0 0;padding:0 0 0 14px;color:var(--muted);font-size:13px;line-height:18px}
ul.close-done ul.close-why li{display:list-item;padding:0;border:0}
.close-mark{margin-top:1px}
.close-confirm .actions{justify-content:flex-end}
details.close-detail{max-width:none;margin:16px 0 0}
details.close-detail h3{margin:16px 0 4px}
dl.close-ledger{max-width:760px;margin:0 0 8px}
dl.close-ledger > div{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 20px;padding:10px 0;border-top:1px solid var(--rule)}
dl.close-ledger dt{flex:1 1 280px;min-width:0}
dl.close-ledger dd{margin:0;font-weight:500;font-variant-numeric:tabular-nums;white-space:nowrap}
dl.close-ledger > div.transit dt{color:var(--muted);font-size:13px}
dl.close-ledger > div.total{border-top-color:var(--axis);font-weight:600}
dl.close-ledger > div.total dd{padding-bottom:1px;border-bottom:3px double var(--ink);font-weight:600}
dl.close-ledger > div.warn dd{color:var(--warn-text)}
details.close-detail p.ok{margin:0 0 8px;color:var(--positive);font-size:13px;font-weight:500}
details.close-detail p.warn{margin:0 0 8px;color:var(--warn-text);font-size:13px}
/* What waits, in the month block: its title, then its lines; the rest folded. */
.todo-list > h2{margin:0 0 8px}
details.more.todo-more{margin:0;max-width:none}
details.more.todo-more > summary{padding:10px 0 0;font-size:13px}
details.more.todo-more[open] > summary{margin-bottom:0}
/* Where it went: the amount at the right of each name, a 2px grey bar under it at its share, the most first in ink. */
.card.pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;padding:0}
.card.pair > section{min-width:0;padding:20px 40px 20px 0}
.card.pair > section + section{padding:20px 0 20px 40px;border-left:1px solid var(--rule)}
.card.pair h3{margin:0 0 12px}
ul.shares{display:grid;gap:10px;margin:0;padding:0;list-style:none}
ul.shares li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;align-items:baseline}
ul.shares .name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
ul.shares .num{font-variant-numeric:tabular-nums;text-align:right}
ul.shares progress{grid-column:1 / -1;width:100%;height:2px;-webkit-appearance:none;appearance:none;border:0;border-radius:0;background:transparent;color:var(--muted);overflow:hidden}
ul.shares progress::-webkit-progress-bar{background:transparent}
ul.shares progress::-webkit-progress-value{background:var(--past)}
ul.shares progress::-moz-progress-bar{background:var(--past)}
ul.shares li:first-child progress::-webkit-progress-value{background:var(--ink)}
ul.shares li:first-child progress::-moz-progress-bar{background:var(--ink)}
section.recent{margin-top:var(--gap)}
section.recent > h2,section.channels h2{margin:0 0 8px}
section.recent > p:last-child{margin:12px 0 0}
section.channels{margin:28px 0 0}
section.channels p{margin:0 0 6px}
.section-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;margin:32px 0 12px}
.section-head h2{margin:0}
/* The emails a business's address did not take, under Personas. */
.rejected{display:grid;gap:8px;margin:0 0 14px;padding:0;list-style:none}
.rejected li{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 16px}
.rejected li>span{flex:1 1 auto}

/* The getting-started guide: its title with "Ocultar la guía", how far it is as a bar, the next step with its one button, every
   step folded; once done, folded to its title. */
.guide-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px}
.guide-head h2{margin:0}
.guide .walk{max-width:none;margin:10px 0 14px}
.guide-next{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 24px;margin:0 0 4px;padding:14px 16px;background:var(--raised);border-radius:var(--radius-control)}
.guide-next .what{flex:1 1 320px;min-width:0}
.guide-next .label{display:block;color:var(--muted);font-size:12px;font-weight:500}
.guide-next .actions{margin:0}
.guide-next .step{margin:2px 0 0;font-size:16px;line-height:24px;font-weight:600}
.guide-next .hint{margin:4px 0 0}
.guide .checklist li.linked:hover{background:none}
details.card.guide.done > summary{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;cursor:pointer}
details.card.guide.done > summary::-webkit-details-marker{display:none}
details.card.guide.done > summary h2{margin:0;padding-bottom:2px;border-bottom:3px double var(--ink)}
details.card.guide.done > summary::after{content:"";flex:none;width:7px;height:7px;margin-right:4px;border:solid var(--muted);border-width:0 1.5px 1.5px 0;transform:rotate(45deg)}
details.card.guide.done[open] > summary{margin-bottom:12px}
details.card.guide.done[open] > summary::after{transform:rotate(225deg)}
.checklist{display:grid;gap:10px;margin:0 0 20px;padding:0;list-style:none}
.checklist li{position:relative;min-height:22px;padding-left:30px}
.checklist li::before{content:"";position:absolute;left:0;top:1px;width:18px;height:18px;border:1.5px solid var(--control);border-radius:50%}
.checklist li.done::before{border-color:var(--ink);background:var(--ink)}
.checklist li.done::after{content:"";position:absolute;left:7px;top:5px;width:5px;height:9px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.checklist li.wait::before{border-color:var(--warning)}
/* Waiting: the circle half filled, its right half a flat half-disc (no gradient). */
.checklist li.wait::after{content:"";position:absolute;left:9px;top:1px;width:9px;height:18px;border-radius:0 9px 9px 0;background:var(--warning)}
.checklist li.todo{font-weight:500}
.checklist li.optional{color:var(--muted)}
.checklist li.optional::before{border-color:var(--border)}
dl.facts{max-width:720px;margin:0 0 24px}
dl.facts > div{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 16px;padding:12px 0}
dl.facts > div + div{border-top:1px solid var(--rule)}
dl.facts dt{flex:0 0 140px;color:var(--muted);font-size:13px}
dl.facts dd{flex:1 1 200px;min-width:0;margin:0}
dl.facts dd + dd{flex:0 0 auto}

/* A role to pick, a way receipts come, a backing of a movement: a white card with what it does; the checked one outlined in ink. */
fieldset.roles{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px}
fieldset.roles > .hint,fieldset.languages > .hint{grid-column:1/-1}
fieldset.languages{grid-template-columns:repeat(2,max-content);gap:10px 32px}
label.role-card{position:relative;display:block;margin:0;padding:12px 14px 12px 42px;border:1px solid var(--control);border-radius:var(--radius-card);background:var(--surface);cursor:pointer}
label.role-card:has(input:checked){border-color:var(--ink);outline:1px solid var(--ink);outline-offset:-2px}
label.role-card input{position:absolute;left:14px;top:14px;width:18px;height:18px;margin:0;accent-color:var(--ink);cursor:pointer}
label.role-card .role-note{display:block;color:var(--muted);font-size:13px;line-height:18px}
label.role-card .fields{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
label.role-card .fields span{padding:1px 6px;border-radius:var(--radius-chip);background:var(--neutral-bg);color:var(--neutral-text);font-size:12px}
label.role-card .fields span.more{background:var(--ok-bg);color:var(--ok-text)}
/* The sign-up's first question: two choices as large as a thumb, each a link. */
.picks{display:grid;gap:12px;max-width:var(--form)}
.lang-pick{max-width:var(--form);margin:0 0 24px;padding:0 0 20px;border-bottom:1px solid var(--border)}
.lang-pick p{margin:0 0 10px}
a.pick{display:block;padding:16px 18px;border:1px solid var(--control);border-radius:var(--radius-card);background:var(--surface);color:var(--ink);text-decoration:none}
a.pick strong{display:block;margin:0 0 2px;font-size:16px;font-weight:600}
a.pick span{display:block;color:var(--muted)}
a.pick:hover{border-color:var(--ink)}

/* — Lists — */
/* A list is rows on rules in a white panel: 12px grey sentence-case headers over the strongest line, no band; numbers at the right
   in tabular figures; the identity column takes the width. A table inside a card has no panel of its own. */
table{width:100%;margin:0 0 24px;border-collapse:collapse;font-size:14px}
table.rows{border-collapse:separate;border-spacing:0}
.table-wrap{margin:0 0 24px;overflow-x:auto}
.table-wrap > table{margin:0}
th,td{padding:12px 16px 12px 0;text-align:left;vertical-align:middle;border-bottom:1px solid var(--rule)}
th{height:40px;padding-top:10px;padding-bottom:10px;border-bottom-color:var(--border);color:var(--muted);font-size:12px;line-height:16px;font-weight:400;white-space:nowrap}
th:last-child,td:last-child{padding-right:0}
table.rows th:first-child,table.rows td:first-child{padding-left:10px}
table.rows th:last-child,table.rows td:last-child{padding-right:10px}
.card table.rows,.callout table.rows{background:none;border:0;border-radius:0}
.card table.rows th:first-child,.card table.rows td:first-child{padding-left:0}
.card table.rows th:last-child,.card table.rows td:last-child{padding-right:0}
table.rows td:first-child{font-weight:500}
table.rows a{text-decoration:none}
table.rows a:hover{text-decoration:underline}
table.rows tr.muted td{color:var(--muted)}
table td.num,table th.num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
/* An amount has room after it, so the column next to it does not read as its continuation. */
table.rows td.num:not(:last-child),table.rows th.num:not(:last-child){padding-right:32px}
td.actions{display:table-cell;margin:0;text-align:right;white-space:nowrap}
td.actions > * + *{margin-left:14px}
/* The one way to open something: the whole row is its link (a stretched link), shaded a step under the pointer and outlined in the
   keyboard's focus. At its end, in ink, what opening it is for ("Revisar ›"), or the one button of what can be done right there. */
.linked{position:relative;cursor:pointer}
table.rows tr.linked:hover td,.linked:not(tr):hover{background:var(--hover)}
a.row-link{color:var(--ink);font-weight:500;text-decoration:none}
a.row-link::after{content:"";position:absolute;inset:0;z-index:1}
.linked:hover a.row-link{text-decoration:underline;text-underline-offset:3px}
a.row-link:focus-visible{outline:none}
a.row-link:focus-visible::after{outline:2px solid var(--ink);outline-offset:-2px;border-radius:var(--radius-control)}
.linked form,.linked button,.linked a.btn,.linked a.go:not(.row-link){position:relative;z-index:2}
/* Cpa audit GAP-15: the tick of a row, for what is sent at once, is above its link; the box that sends them under the list. */
.linked td.pick input{position:relative;z-index:2}
th.pick,td.pick{width:28px;padding-right:0}
form.bulk{margin-top:20px}
form.bulk label.check{display:flex;gap:8px;align-items:baseline;margin:8px 0}
details.rules{margin-top:20px}
fieldset.split-part{border:0;padding:0;margin:0 0 8px}
fieldset.split-part legend{font-weight:500;padding:0}
a.row-action{position:relative;z-index:2}
td.who .id{display:block;color:var(--muted);font-size:12px;font-weight:400}
.go,a.row-link.go{color:var(--ink);font-weight:500;white-space:nowrap;text-decoration:none}
a.go:hover{text-decoration:underline;text-underline-offset:3px}
td.go{color:var(--ink);font-size:13px;text-align:right}
td.go::after,span.go::after{content:" ›";color:var(--muted)}
span.go.out::after{content:none}
/* The `›` of a link that is itself the verb: its ::after is taken, stretching the link over the row. */
.chev{margin-left:4px;color:var(--muted)}
.link{word-break:break-all;user-select:all}
/* Old pages' bits, until they move to the classes above */
label:not([class]){display:block;max-width:480px;margin:0 0 14px;font-weight:500}
label:not([class]) input:not([type="checkbox"]):not([type="radio"]),label:not([class]) select{display:block;width:100%;margin-top:6px}
label:not([class]) .muted{display:block;margin-top:4px;font-size:13px;font-weight:400}

/* — Por hacer (a preparer's home): "¿Qué hago hoy, en todos mis clientes?" — */
/* What it all comes to with the one way to start, then each section a panel of its lines, in two columns on a wide screen. */
.todo-summary{display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px;margin:0 0 var(--gap);padding:0 0 20px}
.todo-summary p{flex:1 1 320px;margin:0;font-size:16px;line-height:24px;font-weight:600}
/* The queue is one panel, grouped by kind, the oldest first in each: one list read top to bottom. */
.todo-board{margin:0 0 24px;border-top:1px solid var(--border)}
section.todo-section{margin:0;padding:20px 0 4px}
section.todo-section + section.todo-section{border-top:1px solid var(--border)}
section.todo-section h2{margin:0}
section.todo-section > .hint{margin:2px 0 8px}
/* Each thing in plain words with (its business and) since when, its verb in ink at its right (under it on a phone). */
ul.todo-rows{margin:0;padding:0;list-style:none}
ul.todo-rows > li{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:4px 20px;margin:0 -10px;padding:12px 10px;border-top:1px solid var(--rule)}
ul.todo-rows a.row-link{font-weight:500}
.todo-what p{margin:0}
.todo-what .meta{margin-top:2px;color:var(--muted);font-size:12px;line-height:16px}
/* 2026-11-05: a line of a preparer's Por hacer starts by its client, then what, then its verb; each heading says how many. */
.todo-what .todo-who{margin:0 0 2px;font-size:14px;font-weight:600}
section.todo-section h2 .count{margin-left:6px;color:var(--muted);font-size:14px;font-weight:500;font-variant-numeric:tabular-nums}
.todo-do{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px 16px;font-size:13px;line-height:20px}
/* How far a statement's reconciliation is, under its line: a thin bar and "12 de 20 listos". */
.progress-line{display:flex;align-items:center;gap:10px;max-width:320px;margin-top:6px;color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}
.progress-line progress{flex:1 1 auto;height:4px}
.progress-line span{flex:none;white-space:nowrap}
.progress-line progress{min-width:48px}
.todo-clear h2{margin:0 0 4px}
.todo-clear p{margin:0}

/* — Recibos: the filters over the list; a tab per state with how many it holds — */
form.filters{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;margin:0 0 20px}
form.filters label.field{flex:1 1 140px;max-width:220px;margin:0}
form.filters label.field select,form.filters label.field input{width:100%}
form.filters label.field.search{flex:1 1 280px;max-width:420px}
form.filters > a{align-self:center;font-weight:500}
form.filters details.more{flex:1 0 100%;max-width:none;margin:0}
form.filters .filters-more{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px}
.filters-on{display:flex;flex-wrap:wrap;gap:4px 16px;margin:0 0 12px;color:var(--muted);font-size:13px}
.filters-on a{font-weight:500}
nav.state-tabs{display:flex;flex-wrap:wrap;gap:0 24px;margin:0 0 20px;border-bottom:1px solid var(--border)}
nav.state-tabs a{position:relative;display:inline-flex;align-items:center;gap:6px;padding:10px 0 9px;color:var(--muted);font-weight:500;text-decoration:none}
nav.state-tabs a:hover{color:var(--ink)}
nav.state-tabs a[aria-current="page"]{color:var(--ink)}
nav.state-tabs a[aria-current="page"]::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--ink)}
nav.state-tabs .count{color:var(--muted);font-size:12px;font-weight:400;font-variant-numeric:tabular-nums}
nav.state-tabs a[aria-current="page"] .count{color:var(--ink)}
p.totals{margin:12px 0 0;text-align:right;font-variant-numeric:tabular-nums}
table.receipts td:first-child{font-weight:400;white-space:nowrap}
table.receipts td.num{font-variant-numeric:tabular-nums;white-space:nowrap}
table.receipts .muted{font-size:13px}
.actions.pager{margin:0 0 24px}
/* The business's address for receipts by email, in sight where receipts are dealt with: the address with Copiar, from whom. */
.email-box{display:grid;gap:2px;margin:0 0 var(--gap);padding:0 0 16px;border-bottom:1px solid var(--rule)}
.email-box p{margin:0}
.email-box .label{font-weight:600}
.email-box .link{font-weight:500;overflow-wrap:anywhere;text-decoration:none}
.email-box button.go{margin-left:8px}
.email-box .hint{margin:0}

/* — One receipt: its file at the left, sticky while the form at the right scrolls; on a phone the file first — */
main.wide{max-width:none;padding-top:20px}
main.wide .page-head{margin-bottom:14px}
.review{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:28px}
.review-file{position:sticky;top:16px;min-width:0}
.review-file img{display:block;width:100%;height:auto;max-height:78vh;margin:0 auto 10px;object-fit:contain;border:1px solid var(--border);border-radius:var(--radius-card);background:var(--surface)}
.review-file iframe{display:block;width:100%;height:78vh;margin:0 0 10px;border:1px solid var(--border);border-radius:var(--radius-card);background:var(--surface)}
.review-file p{font-size:13px}
.review-file .no-file{margin:0;padding:24px;background:var(--side);border:0;border-radius:var(--radius-card);color:var(--muted)}
.review-form{min-width:0;padding:20px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card)}
.review-form fieldset{min-width:0;margin:0;padding:0;border:0}
.review-form fieldset[disabled]{opacity:.8}
.review-form label.field,.review-form .fields{max-width:none}
.review-form label.field{margin-bottom:12px}
.review-form .note form{margin-top:10px}
.review-form .callout form{display:inline-flex}
.review-form .note,.review-form .callout{background:var(--raised);border-color:transparent}
.review-form .review-actions{position:sticky;bottom:0;z-index:5;margin:20px -20px -20px;padding:12px 20px;background:var(--surface);border-top:1px solid var(--border);border-radius:0 0 var(--radius-card) var(--radius-card)}
.review-form details.more.amounts{margin:-4px 0 14px}
.review-form details.more.amounts[open] summary{margin-bottom:10px}
form[data-role="save-form"]:has(select[name="paid_with"]):not(:has(select[name="paid_with"] option[value="new_card"]:checked)) .card-fields:not(.shown),
form[data-role="save-form"]:has(select[name="doc_type"]):not(:has(select[name="doc_type"] option[value="invoice"]:checked)) .paid-date:not(.shown){display:none}
@media (min-width: 801px){
  .review{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr)}
  .review-file{top:12px}
  .review-file img{max-height:max(320px,calc(100vh - 140px))}
  .review-file iframe{height:max(360px,calc(100vh - 140px))}
}
/* What was just saved, atop the next receipt: green, with what it was and the way back to it; it takes the focus (barra.js). */
.flash.saved{display:grid;gap:4px;font-weight:400}
.flash.saved p{margin:0}
.flash.saved p:first-child{font-weight:500}
.flash.saved p.done-mark{position:relative;padding-left:22px}
.flash.saved p.done-mark::before{content:"";position:absolute;left:5px;top:3px;width:5px;height:10px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg)}
.flash.saved .in{font-weight:400}
.flash.saved a{margin-left:6px;color:var(--ok-text);font-weight:600}
.flash.saved:focus{outline:none}
.flash.saved:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
/* How far the walk is, over the receipt's title: done of all in words, and a bar. */
.walk{display:grid;gap:6px;max-width:var(--form);margin:0 0 12px}
.walk p{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px;margin:0;color:var(--muted);font-size:13px}
.walk strong{color:var(--ink);font-size:14px;font-weight:600}
.walk progress{height:6px}
.walk .hint{margin:0}
.walk.counter{display:flex;align-items:center;justify-content:space-between;gap:12px;max-width:none}
.walk.counter strong{font-size:15px}
.next-up{margin:8px 0 0}
/* The receipt (or the comparison) that comes in after a save, and its title: in, from a little lower, once (a row arriving). */
@keyframes me-arrive{from{opacity:.25;transform:translateY(8px)}to{opacity:1;transform:none}}
.arrived,main:has(.arrived) .page-head h1{animation:me-arrive .4s ease-out}
@media (prefers-reduced-motion: reduce){.arrived,main:has(.arrived) .page-head h1{animation:none}}
/* A possible duplicate beside the one it seems to repeat: each its file and its facts (what differs shaded), the ways out under. */
.dup-lead{margin:0 0 14px;font-size:16px;line-height:24px;font-weight:600}
.compare .side form.keep{display:flex;align-items:center;gap:10px;margin:12px 0 0}
.dup-bank{margin:12px 0 0;font-weight:500}
.compare{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--gap);align-items:start}
.compare.alone{grid-template-columns:minmax(0,1fr);max-width:calc(var(--form) + 120px)}
.compare .side{min-width:0;padding:16px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card)}
.compare .side h2{margin:0 0 10px}
.side-body{display:grid;grid-template-columns:minmax(0,190px) minmax(0,1fr);gap:14px;align-items:start}
.side-file img{display:block;width:100%;height:auto;max-height:230px;object-fit:contain;margin:0 0 4px;border:1px solid var(--border);border-radius:var(--radius-control);background:var(--surface)}
.side-file iframe{display:block;width:100%;height:230px;margin:0 0 4px;border:1px solid var(--border);border-radius:var(--radius-control);background:var(--surface)}
.side-file p{margin:0;font-size:13px}
.side-file .no-file{padding:12px;background:var(--side);border-radius:var(--radius-control);color:var(--muted)}
dl.side-facts{display:grid;gap:2px;margin:0;font-size:13px}
dl.side-facts > div{display:grid;grid-template-columns:minmax(80px,34%) minmax(0,1fr);gap:0 10px;padding:3px 6px;border-radius:var(--radius-chip)}
dl.side-facts dt{color:var(--muted)}
dl.side-facts dd{margin:0;overflow-wrap:anywhere}
dl.side-facts .tag{margin-left:4px;color:var(--muted);font-size:12px;font-weight:500}
dl.side-facts .differs{background:var(--warn-bg)}
dl.side-facts .differs .tag{color:var(--warn-text)}
dl.side-facts .came{color:var(--muted)}
.compare-actions{position:sticky;bottom:0;z-index:5;margin:14px 0 0;padding:12px 0;background:var(--paper);border-top:1px solid var(--border)}
@media (max-width: 1100px){
  .side-body{grid-template-columns:minmax(0,1fr)}
  .side-file img{max-height:200px}
  .side-file iframe{height:200px}
}

/* — Subir archivos: a zone to drop on or pick from, a bar, and a row for each file (the script builds them) — */
.dropzone{margin:0 0 12px;padding:48px 24px;border:1px solid transparent;border-radius:var(--radius-control);background:var(--side);text-align:center}
.dropzone.is-over{border-color:var(--ink);background:var(--raised)}
.dropzone .lead{margin:0 0 4px;font-weight:500}
.dropzone .actions{justify-content:center;margin-top:16px}
.upload-progress{display:flex;align-items:center;gap:12px;margin:0 0 16px}
/* A bar is ink on a light track, never red. */
progress{display:block;width:100%;height:8px;margin:0;border:0;border-radius:4px;background:var(--track);color:var(--ink);overflow:hidden;-webkit-appearance:none;appearance:none}
progress::-webkit-progress-bar{background:var(--track);border-radius:4px}
progress::-webkit-progress-value{background:var(--ink);border-radius:4px}
progress::-moz-progress-bar{background:var(--ink);border-radius:4px}
.callout progress{margin:8px 0 4px}
.upload-progress progress{flex:1 1 auto}
.upload-progress span{flex:none;font-weight:600;font-variant-numeric:tabular-nums}
ul.files{margin:0 0 24px;padding:0;list-style:none;border-top:1px solid var(--border)}
ul.files:empty{display:none}
ul.files li{display:flex;align-items:center;gap:4px 12px;padding:8px 0;border-bottom:1px solid var(--rule)}
ul.files li:last-child{border-bottom:0}
/* The mark at a file's left: a tick when it went up (or was here already), a cross when it failed; drawn, not a glyph. */
.file-mark{position:relative;flex:none;width:16px;height:16px}
ul.files li[data-state="ok"] .file-mark::before,ul.files li[data-state="known"] .file-mark::before{content:"";position:absolute;left:5px;top:1px;width:5px;height:10px;border:solid var(--positive);border-width:0 2px 2px 0;transform:rotate(45deg)}
ul.files li[data-state="failed"] .file-mark::before,ul.files li[data-state="failed"] .file-mark::after{content:"";position:absolute;left:7px;top:2px;width:2px;height:12px;background:var(--negative);transform:rotate(45deg)}
ul.files li[data-state="failed"] .file-mark::after{transform:rotate(-45deg)}
.file-name{flex:1 1 auto;min-width:0;overflow-wrap:anywhere}
.file-note{flex:none}
.batch-line{display:block;margin-top:2px;font-size:13px;font-weight:400}

/* — 2-step verification: the steps, the QR (black on white whatever the page) and the key to type by hand — */
ol.setup{max-width:var(--form);margin:0 0 20px;padding-left:22px}
ol.setup li{margin:0 0 12px}
.qr{display:inline-block;margin:10px 0 4px;padding:8px;background:#ffffff;border:1px solid var(--border);border-radius:var(--radius-card);line-height:0}
.qr svg{display:block;width:200px;height:200px}
/* A key and recovery codes are literal codes: a monospace for them alone. taste-skill-ignore */
.key,ol.codes{font-family:var(--mono);font-variant-ligatures:none}
.key{display:inline-block;padding:2px 8px;background:var(--raised);border:1px solid var(--border);border-radius:var(--radius-chip);font-size:14px;letter-spacing:.04em;overflow-wrap:anywhere}
ol.codes{display:grid;grid-template-columns:repeat(2,max-content);gap:8px 40px;max-width:var(--form);margin:0 0 20px;padding:16px 20px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card);list-style:none;font-size:16px;letter-spacing:.06em}
@media (max-width: 400px){ol.codes{grid-template-columns:max-content}}

/* — Settings: Cuenta in two columns (each group a row: its name and what it is at the left, its rows in a panel at the right);
   Ajustes, Tu WhatsApp and the rest as a form's column of panels — */
.settings-page{display:grid;gap:0}
.setting-group{display:grid;grid-template-columns:minmax(0,320px) minmax(0,1fr);gap:16px 48px;padding:28px 0;border-top:1px solid var(--border)}
.setting-group:first-child{padding-top:0;border-top:0}
.setting-about h2{margin:0 0 4px}
.setting-about .hint{margin:0}
.setting-panel{min-width:0;max-width:760px}
.setting-panel > dl.facts{max-width:none;margin:0}
/* A list of settings is a white panel of rows: what it is, how it is, the one thing to do about it at the right. */
dl.facts.settings{padding:0 10px;border-top:1px solid var(--border)}
dl.facts.settings > div{margin:0 -10px;padding:13px 10px}
dl.facts.settings dt{flex-basis:180px}
dl.facts.settings > div.linked:hover{background:var(--hover)}
dl.facts.settings > div:first-child{border-top-left-radius:var(--radius-card);border-top-right-radius:var(--radius-card)}
dl.facts.settings > div:last-child{border-bottom-left-radius:var(--radius-card);border-bottom-right-radius:var(--radius-card)}
main.narrow h2 + dl.facts.settings,main.narrow h2 + table.rows{margin-top:0}
.copy-line{display:inline-flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px}
/* How receipts come in, folded at the end of a business's page once they come. */
details.more.channels{margin-top:32px}
details.more.channels p{margin:0 0 6px}
/* Ayuda: how to reach us in a panel, then each question in bold over its answer. */
.help-reach{margin:0 0 28px;padding:16px 20px;background:var(--side);border-radius:var(--radius-control)}
.help-reach h2{margin:0 0 4px}
.help-reach .actions{margin-top:12px}
dl.faq{display:grid;gap:16px;max-width:var(--form);margin:0 0 20px}
dl.faq dt{font-weight:600}
dl.faq dd{margin:4px 0 0;color:var(--muted)}
/* Personas: the panel to add a person; a person's fields (what they can do only while a number is typed). */
section.add-person{max-width:var(--form);margin-top:32px}
td.how .muted{display:block;font-size:13px}
td.how .also{display:block;margin-top:4px}
.person-fields:has(input[type="tel"]:placeholder-shown) .when-whatsapp{display:none}
.person-fields > .hint{margin:-8px 0 16px}
/* Paso 2: the admin's own line, the people, and what can be read about the business's email and uploads. */
fieldset.p2-me,fieldset.p2-people{max-width:var(--form);margin:0 0 20px;padding:0;border:0}
fieldset.p2-me legend,fieldset.p2-people legend{margin:0 0 10px;padding:0;font-weight:600}
fieldset.p2-me label.choice{margin:0}
fieldset.p2-me label.field{margin:0}
details.more.another{margin:4px 0 0;padding:14px 0 0;border-top:1px solid var(--rule)}
details.more.another > .person-fields{margin-top:4px}
.p2-info{max-width:var(--form)}
.p2-info p{margin:0 0 6px}
.p2-info p:last-child{margin:0}
fieldset.ways{display:grid;gap:10px;max-width:var(--form);margin:0 0 18px;padding:0;border:0}
fieldset.ways > legend{margin:0 0 10px;padding:0;font-weight:600}
.way{padding:12px 14px;background:var(--surface);border:1px solid var(--control);border-radius:var(--radius-card)}
.way:has(> label.choice input:checked){border-color:var(--ink);outline:1px solid var(--ink);outline-offset:-2px}
.way > label.choice{margin:0;font-weight:500}
.way .way-more{margin:12px 0 0 28px}
.way:has(> label.choice input:not(:checked)) .way-more{display:none}
.way .way-more label.field{margin-bottom:12px}
/* Mi WhatsApp: the number with its change folded. */
details.more.change-number{margin:0}
details.more.change-number form{margin-top:8px}
details.more.change-number label.field{margin-bottom:10px}
/* How a business is registered: its six answers in two columns while there is room. */
fieldset.choices.entity{grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:10px 24px}
fieldset.choices.entity > .hint,fieldset.choices.entity > .field-error{grid-column:1/-1}

/* — Conciliación: a statement (one account, one period) and its movements — */
/* "Cuadra con el banco" beside its balances: the statement's lines give its closing balance. */
.metrics .adds{display:flex;flex-direction:column;justify-content:center;gap:2px}
.metrics .adds dt{justify-self:start;align-self:start;padding-bottom:2px;border-bottom:3px double var(--ink);color:var(--ink);font-size:14px;font-weight:600}
.metrics .adds dd{margin:0;font-size:13px;line-height:18px;font-weight:400}
table.statements ul.warnings{margin:6px 0 0;padding-left:18px;color:var(--muted);font-size:13px}
table.statements td:first-child{min-width:190px}
table.statements td:nth-child(2){white-space:nowrap}
/* A warning's ways out, side by side. */
.warning-ways{display:inline-flex;flex-wrap:wrap;gap:4px 20px}
table.lines td:last-child .actions{margin-top:6px}
table.lines td.num,table.lines th.num,table.receipts th.num{text-align:right}
/* Money in, with its sign in the text and in the positive colour; money out stays ink. */
table.lines td.num.in{color:var(--positive)}
/* What the bank says, as it prints it: its own codes ("SHERWIN-WILLIAMS #7721"), literal, in a monospace. taste-skill-ignore */
/* The bank's text in the page's face (the 2026-10-23 audit: monospace read as code). */
.bank-text{overflow-wrap:anywhere}
small.suggested{display:block;color:var(--muted);font-size:12px}
.line-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:var(--gap);align-items:start}
.line-actions .card{margin:0}
.line-actions .card h2{margin-top:0}
/* The movements with one clear receipt, joined all at once: what they are and the page's one button, over the list. */
form.suggestions{display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px;margin:0 0 var(--gap);padding:14px 16px;background:var(--side);border-radius:var(--radius-control)}
form.suggestions p{flex:1 1 320px;margin:0;font-weight:500}
/* — Conciliación, the board: each movement beside what backs it, its statement picked from a row of them — */
table.board td{vertical-align:middle}
table.board td:first-child{white-space:nowrap}
table.board td.num{text-align:right}
table.board td.num.in{color:var(--positive)}
/* How a movement stands, between the bank and its receipt: joined, explained, a receipt that is or may be it, or nothing yet. */
.board-thumb{width:36px;height:46px;margin-right:8px;object-fit:cover;object-position:top;border:1px solid var(--border);border-radius:4px;background:var(--raised);vertical-align:middle}
.board-receipt{display:inline-flex;flex-direction:column;line-height:1.3;vertical-align:middle}
/* Why a receipt is the movement's, each reason in words: ✓ it agrees, ≈ it differs, – it does not say. */
.board-reasons{display:flex;flex-wrap:wrap;gap:2px 12px;margin:6px 0 0;padding:0;list-style:none;font-size:12px}
/* Each reason marked by a small dot in its colour: no glyphs. */
.board-reasons li::before{content:"";display:inline-block;width:6px;height:6px;margin-right:6px;border-radius:3px;background:currentColor;vertical-align:1px}
.board-reasons li.ok{color:var(--positive)}
.board-reasons li.warn{color:var(--warning)}
.board-reasons li.n{color:var(--muted)}
table.board td.board-do{text-align:right;white-space:nowrap}
table.board td.board-do form.inline + form.inline{margin-left:8px}

/* The months of an account (Banco, Conciliación): a cell each, a year at most, the same five states everywhere. */
ol.month-strip{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:4px;margin:0;padding:0;list-style:none}
ol.month-strip li > a,ol.month-strip li > span{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:44px;padding:4px 2px;border:1px solid transparent;border-radius:4px;color:inherit;font-size:12px;line-height:1.15;text-align:center;text-decoration:none}
ol.month-strip .m-name{font-weight:500}
/* 2026-11-05: each month says its state in sight, a word with its icon drawn here, never a mark that needs a legend: Cerrado with a
   lock, Cuadra with a green check, "3 por revisar" with a gold dot on pale amber, Falta in a dashed box, Todavía no with a ring. */
ol.month-strip .m-word{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:3px;max-width:100%;color:var(--muted);font-size:11px;line-height:13px}
ol.month-strip .m-word::before{content:"";flex:none}
.m.done .m-word::before{width:4px;height:8px;margin:0 2px 2px 0;border:solid var(--positive);border-width:0 2px 2px 0;transform:rotate(45deg)}
.m.open > a,.m.open > span{background:var(--warn-bg);color:var(--ink)}
.m.open .m-word{color:var(--warn-text);font-weight:600}
.m.open .m-word::before{width:6px;height:6px;border-radius:50%;background:var(--gold)}
.m.missing > a,.m.missing > span{border:1px dashed var(--control);color:var(--muted)}
.m.missing .m-word::before{width:7px;height:8px;border:1px dashed var(--faint);border-radius:1px}
.m.next > a,.m.next > span{background:var(--track);color:var(--muted)}
.m.next .m-word::before{width:6px;height:6px;border:1.5px solid var(--faint);border-radius:50%}
.m.closed > a,.m.closed > span{background:var(--side);color:var(--ink)}
.m.closed .m-word{padding-left:12px;color:var(--ink);font-weight:500}
.m.closed .m-word::before{position:absolute;left:0;bottom:2px;width:9px;height:6px;border-radius:1.5px;background:currentColor}
.m.closed .m-word::after{content:"";position:absolute;left:1.5px;bottom:7px;box-sizing:border-box;width:6px;height:5px;border:1.5px solid currentColor;border-bottom:0;border-radius:3px 3px 0 0}
ol.month-strip a:hover{filter:brightness(.94)}
ol.month-strip a:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
ol.month-strip li.selected > a{border-color:transparent;border-bottom:3px solid var(--gold);border-radius:0;background:var(--surface);color:var(--ink);font-weight:600}

/* Banco y tarjetas: one row per account, its name and balance, its months, its one thing to do. */
.card.accounts{padding:0}
section.account{display:grid;grid-template-columns:minmax(180px,1.1fr) minmax(0,2.2fr) minmax(150px,.9fr);gap:24px;align-items:center;padding:20px 0;border-top:1px solid var(--rule)}
section.account:first-child{border-top:0}
section.account h2{margin:0;font-size:15px}
section.account .account-name p{margin:6px 0 0}
section.account .balance{font-size:17px;font-variant-numeric:tabular-nums}
section.account .account-do{text-align:right}
section.account .account-do p{margin:0 0 4px}
/* An account's figures over its strip's months: what came in and went out, its movements, those to reconcile (2026-10-23: "algo
   que sea meaningful para el user"). */
.account-months{display:grid;gap:10px}
.account-figures dl{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px 16px;margin:0}
.account-figures dt{color:var(--muted);font-size:12px}
.account-figures dd{margin:2px 0 0;font-size:15px;font-weight:600;font-variant-numeric:tabular-nums}
.account-figures .open dd{color:var(--warn-text)}
.account-figures > p{margin:4px 0 0;font-size:12px}
section.account .account-name p.muted{margin-top:4px;font-size:13px}
details.all-statements{margin-top:24px}
@media (max-width: 999px){
  section.account{grid-template-columns:1fr;gap:12px}
  section.account .account-do{text-align:left}
  ol.month-strip{grid-auto-flow:row;grid-template-columns:repeat(auto-fill,minmax(44px,1fr))}
}

/* Conciliación's head: the accounts as tabs, the shown one's months, then the month in one line with its balances and links. */
.board-head{display:grid;gap:12px;margin:0 0 8px}
.board-head nav.seg{justify-self:start}
.board-month{margin:0 0 12px}
.board-month p{margin:0 0 4px}
.board-links{font-size:13px}

/* A business's ways in, atop its Resumen: its email, its WhatsApp, the upload. */
section.ways-in{margin:0 0 28px;border-top:1px solid var(--rule);border-bottom:1px solid var(--rule)}
section.ways-in dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));margin:0}
section.ways-in dl > div{padding:12px 16px;border-left:1px solid var(--rule)}
section.ways-in dl > div:first-child{padding-left:0;border-left:0}
section.ways-in dt{color:var(--muted);font-size:12px}
section.ways-in dd{margin:2px 0 0;font-weight:500;overflow-wrap:anywhere}
section.ways-in .link{text-decoration:none}
section.ways-in button.go{margin-left:6px}
/* Every movement of the month with its receipt or explained. */
.done-all{margin:0 0 24px;padding:14px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.done-all strong{display:inline-block;padding-bottom:2px;border-bottom:3px double var(--ink);font-size:16px}
/* What takes something out sits last on its page, apart from what keeps it. */
.actions.page-end{margin-top:32px;padding-top:16px;border-top:1px solid var(--border)}
.actions.page-end a.go{font-weight:500}
.actions.page-end a.danger{color:var(--negative);font-weight:500}
/* One movement: what the bank says beside what it was and what backs it, in one form. */
.movement{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);align-items:start;gap:28px}
.movement dl.facts dt{flex-basis:130px}
.movement dl.facts .bank-text{font-size:14px}
fieldset.question{min-width:0;margin:0 0 28px;padding:0;border:0}
fieldset.question > legend{margin:0 0 4px;padding:0;font-size:16px;font-weight:600}
fieldset.question > .hint{margin:0 0 12px}
label.backing{position:relative;display:block;margin:0;padding:12px 14px 12px 42px;border:1px solid var(--control);border-radius:var(--radius-card);background:var(--surface);font-weight:400;line-height:20px;cursor:pointer}
label.backing:has(> input:checked){border-color:var(--ink);outline:1px solid var(--ink);outline-offset:-2px}
label.backing > input{position:absolute;left:14px;top:14px;width:18px;height:18px;margin:0;accent-color:var(--ink)}
label.backing strong{display:block;font-weight:500}
label.backing small{display:block;color:var(--muted);font-size:13px}
/* What a choice needs, under it, once it is chosen (with no :has, always). */
.backing-more{margin:0 0 4px 28px;padding:14px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card)}
.backing-group:has(> label.backing > input:not(:checked)) > .backing-more{display:none}
.backing-group{display:grid;gap:8px}
.backing-groups{display:grid;gap:10px}
.backing-more fieldset.choices{margin:0 0 12px}
.backing-more label.field{max-width:none}
.backing-more .search{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px 12px;margin:0 0 12px}
.backing-more .search label.field{flex:1 1 240px;margin:0}
.backing-more .search input{width:100%}
label.choice .candidate{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 12px}
label.choice .candidate .num{margin-left:auto;font-weight:500;font-variant-numeric:tabular-nums}
/* A receipt next to the movement: what differs shaded and said with its numbers; how its difference is settled under it. */
.compare-box{margin:0 0 20px;padding:12px 14px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card)}
.compare-box h2{margin:0 0 8px}
dl.cmp{display:grid;gap:2px;margin:0 0 4px;font-size:14px}
dl.cmp > div{display:grid;grid-template-columns:110px minmax(0,1fr) minmax(0,1fr) minmax(0,1.3fr);gap:4px 12px;align-items:baseline;padding:5px 6px;border-radius:var(--radius-chip)}
dl.cmp dt{color:var(--muted)}
dl.cmp dd{margin:0;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
dl.cmp .head dd,dl.cmp .head dt{color:var(--muted);font-size:12px;font-weight:500}
dl.cmp .differs{background:var(--warn-bg)}
dl.cmp .tag{color:var(--muted);font-size:12px;font-weight:500}
dl.cmp .differs .tag{color:var(--warn-text)}
.compare-box fieldset.choices{margin:12px 0 0}
/* A sum that does not add up, said as the bank does it, then what the PDF says instead. */
p.sum{font-variant-numeric:tabular-nums}
p.sum + p.sum{font-weight:600}
/* "Revisar la lectura": each line of what was read is a row of fields, compact so a month fits beside its PDF. */
table.reading-lines td{padding:4px 6px;vertical-align:middle}
table.reading-lines td:first-child{width:2.5em;font-weight:400}
table.reading-lines input:not([type="checkbox"]),table.reading-lines select{width:100%;min-height:32px;padding:4px 8px;font-size:14px}
table.reading-lines input[type="date"]{min-width:9.5em}
table.reading-lines input.num{min-width:7em;text-align:right}
table.reading-lines td:last-child{text-align:center}
table.reading-lines tr.reading-add td{padding-top:14px;color:var(--muted);font-size:13px;font-weight:500}
table.reading-lines tr.reading-new td{background:var(--raised)}
table.reading-lines select{min-width:8.5em}
table.reading-lines td:nth-child(3){min-width:12em}
.review.reading{grid-template-columns:minmax(0,5fr) minmax(0,7fr)}

/* A sent form's button (enviar.js): it says what is happening, with a spinner, and does not take a second click. */
button.is-busy{cursor:progress}
button.is-busy::before{content:"";flex:none;width:14px;height:14px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:me-spin .8s linear infinite}
@keyframes me-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion: reduce){button.is-busy::before{animation:none}button,a.btn,a.button{transition:none}}
/* The way past the bar to the page, for a keyboard: hidden until it has the focus. */
.skip{position:absolute;left:8px;top:-60px;z-index:60;padding:10px 14px;background:var(--surface);color:var(--ink);border:2px solid var(--ink);border-radius:var(--radius-control);font-weight:600}
.skip:focus{top:8px}
main:focus{outline:none}
/* A phone (a touch screen) is offered its camera and no folder, and is not told to drag; a computer the other way. */
.coarse-only{display:none}
@media (pointer: coarse){
  .coarse-only{display:revert}
  .fine-only{display:none}
}

/* — Narrower screens — */
@media (max-width: 1100px){
  .review.reading{grid-template-columns:1fr}
  table.reading-lines td:nth-child(3){min-width:0}
  table.reading-lines input.num{min-width:5.5em}
  table.reading-lines select{min-width:7em}
  .setting-group{grid-template-columns:minmax(0,1fr);gap:12px}
}
/* Below a laptop's width the sidebar folds into a 48px bar: the mark, where the page is, and "Menú", which opens the navigation as a
   sheet over the page. The page takes the whole width. */
@media (max-width: 999px){
  :root{--pad:24px}
  body:has(> .bar .nav-fold){display:block}
  body:has(> .bar .nav-fold) > .bar{position:sticky;top:0;z-index:30;flex-direction:row;align-items:center;gap:12px;height:48px;min-height:48px;padding:0 var(--pad);overflow:visible;border-bottom:1px solid var(--border);background:var(--paper)}
  .bar-head{flex:1 1 auto;padding:0}
  .bar-head .brand-name{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .bar-head .brand img{width:26px;height:26px}
  .bar-scope{display:block;min-width:0;overflow:hidden;font-weight:600;white-space:nowrap;text-overflow:ellipsis}
  details.nav-fold{flex:none;display:block}
  details.nav-fold:not([open]) > .nav-body{display:none}
  details.nav-fold[open] .nav-body{position:fixed;inset:48px 0 0 0;z-index:29;gap:16px;padding:16px var(--pad) 24px;overflow-y:auto;background:var(--paper)}
  nav.tabs a:not(.btn){min-height:44px}
  details.nav-fold details.user{margin-top:8px}
  .card.month > .todo-list{border-left:0}
}
@media (max-width: 960px){
  /* Receipts below a laptop's width (app-screens §12): a row of two lines, not a card of five. Line 1, the vendor (or its EB id) and
     its total at the right; line 2, in 13px grey, its date · account · origin · state; the verb at the right of line 2. */
  table.rows.receipts:not(.lines) thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
  table.rows.receipts:not(.lines),table.rows.receipts:not(.lines) tbody{display:block;width:100%}
  table.rows.receipts:not(.lines) tr,table.rows.receipts:not(.lines) tr.linked{display:flex;flex-wrap:wrap;align-items:baseline;width:100%;margin:0;padding:10px 16px;border:0;border-bottom:1px solid var(--rule);border-radius:0}
  .card table.rows.receipts:not(.lines) tr{padding-left:0;padding-right:0}
  table.rows.receipts:not(.lines) tr:last-child{border-bottom:0}
  table.rows.receipts:not(.lines) tr.linked{position:relative}
  table.rows.receipts:not(.lines) tr::before{content:"";order:3;flex:0 0 100%;height:4px}
  table.rows.receipts:not(.lines) tr td,table.rows.receipts:not(.lines) tr td:first-child,table.rows.receipts:not(.lines) tr td:last-child{position:static;display:block;width:auto;min-width:0;padding:0;border:0;background:none}
  table.rows.receipts:not(.lines) tr td[data-label]::before{content:none}
  table.rows.receipts:not(.lines) tr td.who{order:1;flex:1 1 0;overflow:hidden;font-weight:500;white-space:nowrap;text-overflow:ellipsis}
  table.rows.receipts:not(.lines) td.who .id{display:inline;margin-left:8px}
  table.rows.receipts:not(.lines) tr td.num{order:2;flex:none;padding-left:12px;font-weight:500}
  table.rows.receipts:not(.lines) tr td:not(.who):not(.num):not(.go){order:4;color:var(--muted);font-size:13px;font-weight:400;line-height:20px}
  /* Line 2 stays one line: the date and the state keep their width, the account and the origin take what is left, cut. */
  table.rows.receipts:not(.lines) tr td.date ~ td:not(.who):not(.num):not(.go){flex:1 1 0;min-width:3.5em;max-width:max-content;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
  table.rows.receipts:not(.lines) tr td.date ~ td:not(.who):not(.num):not(.go):has(.chip){flex:none;min-width:0;overflow:visible}
  table.rows.receipts:not(.lines) tr td.date{flex:none;white-space:nowrap}
  table.rows.receipts:not(.lines) tr td.date ~ td.account:not(.who):not(.num):not(.go){flex-grow:2}
  table.rows.receipts:not(.lines) tr td.date ~ td:not(.who):not(.num):not(.go)::before{content:"·";position:static;display:inline;width:auto;margin:0 6px;color:var(--muted);font-size:13px;font-weight:400}
  table.rows.receipts:not(.lines) .chip{font-size:12px}
  table.rows.receipts:not(.lines) tr td.go{order:5;margin-left:auto;padding:0 0 0 12px;font-size:13px;text-align:right}
  table.rows.receipts:not(.lines) tr.linked:hover td{background:none}
  table.rows.receipts:not(.lines) tr.linked:hover{background:var(--raised)}
  /* Every other list (Personas, a statement's lines, Empresas, Conciliación…) is label-value rows below a laptop's width: on a
     tablet their last columns would scroll out of sight. */
  :is(table.rows:not(.receipts):not(.reading-lines),table.rows.receipts.lines) thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
  :is(table.rows:not(.receipts):not(.reading-lines),table.rows.receipts.lines),:is(table.rows:not(.receipts):not(.reading-lines),table.rows.receipts.lines) :is(tbody,tr,td){display:block;width:100%}
  :is(table.rows:not(.receipts):not(.reading-lines),table.rows.receipts.lines) tr{position:relative;padding:12px 16px;border-bottom:1px solid var(--rule)}
  :is(table.rows:not(.receipts):not(.reading-lines),table.rows.receipts.lines) tr:last-child{border-bottom:0}
  :is(table.rows:not(.receipts):not(.reading-lines),table.rows.receipts.lines) td,:is(table.rows:not(.receipts):not(.reading-lines),table.rows.receipts.lines) td:first-child,:is(table.rows:not(.receipts):not(.reading-lines),table.rows.receipts.lines) td:last-child{position:static;padding:2px 0;border:0;background:none}
  :is(table.rows:not(.receipts):not(.reading-lines),table.rows.receipts.lines) td[data-label]{padding-left:40%}
  .card :is(table.rows:not(.receipts):not(.reading-lines),table.rows.receipts.lines) tr{padding-left:0;padding-right:0}
  :is(table.rows:not(.receipts):not(.reading-lines),table.rows.receipts.lines) td[data-label]::before{content:attr(data-label);display:inline-block;width:calc(66.667% - 12px);margin:0 12px 0 -66.667%;color:var(--muted);font-family:var(--font);font-size:12px;font-weight:400;letter-spacing:normal;vertical-align:top}
  /* Conciliación's mark says what the chip beside the receipt says; as label-value rows it would stand alone, so it goes. */
  table.rows.board tr td.board-mark{display:none}
  table.rows.board tr td.board-do:last-child{padding-top:6px;text-align:left}
  :is(table.rows:not(.receipts):not(.reading-lines),table.rows.receipts.lines) td:empty{display:none}
  :is(table.rows:not(.receipts):not(.reading-lines),table.rows.receipts.lines) td.go{padding:6px 0 0;text-align:left}
  :is(table.rows:not(.receipts):not(.reading-lines),table.rows.receipts.lines) td.num{text-align:left}
  :is(table.rows:not(.receipts):not(.reading-lines),table.rows.receipts.lines) td .progress-line{display:inline-flex;width:100%;margin-top:0;vertical-align:middle}
  :is(table.rows:not(.receipts):not(.reading-lines),table.rows.receipts.lines) tr.linked:hover td{background:none}
  :is(table.rows:not(.receipts):not(.reading-lines),table.rows.receipts.lines) tr.linked:hover{background:var(--raised)}
}
@media (max-width: 800px){
  .review{grid-template-columns:1fr;gap:16px}
  .review-file{position:static}
  .review-file img{max-height:60vh}
  .review-file iframe{height:60vh}
  .movement{grid-template-columns:minmax(0,1fr);gap:20px}
  .compare{grid-template-columns:minmax(0,1fr)}
  dl.cmp > div{grid-template-columns:90px minmax(0,1fr) minmax(0,1fr)}
  dl.cmp .tag{grid-column:2 / -1}
  .card.pair{grid-template-columns:minmax(0,1fr)}
  .card.pair > section + section{padding:20px 0;border-left:0;border-top:1px solid var(--rule)}
}
@media (max-width: 640px){
  :root{--pad:16px}
  main{padding-top:20px;padding-bottom:56px}
  h1{font-size:20px;line-height:26px}
  h2{margin-top:28px}
  .page-head{flex-direction:column;align-items:stretch;gap:12px}
  .page-head > div:first-child{flex:none}
  .page-head .actions{flex-wrap:wrap}
  .page-head .actions > :last-child:is(a.btn:not(.secondary),button:not(.secondary)){order:-1;flex:1 1 100%}
  body:not(:has(> .bar .nav-fold)) > main.narrow:not(.in-app){width:auto;margin:16px var(--pad) 40px;padding:20px 16px 24px}
  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select,textarea{min-height:44px;font-size:16px}
  button:not(.plain):not(.danger):not(.go),a.btn,a.button,button.secondary.danger,.btn.secondary.danger{min-height:44px}
  .bar > form.lang button,.menu-panel a,.menu-panel button{min-height:44px}
  /* Text buttons and links of a row are a thumb's height too (WCAG 2.5.8, and gloves). */
  button.plain,button.danger,a.danger{display:inline-flex;align-items:center;min-height:44px}
  .todo-do button.go{min-height:44px}
  /* Above a list on a phone, only what it needs: the address without its note, the tabs (five or more in one row that scrolls),
     the search in one row. */
  .email-box .hint{display:none}
  nav.state-tabs{column-gap:20px}
  nav.state-tabs:has(> a:nth-child(5)){flex-wrap:nowrap;margin-left:calc(-1 * var(--pad));margin-right:calc(-1 * var(--pad));padding:0 var(--pad);overflow-x:auto;scrollbar-width:none}
  nav.state-tabs:has(> a:nth-child(5))::after{content:"";flex:0 0 1px}
  nav.state-tabs::-webkit-scrollbar{display:none}
  nav.state-tabs a{flex:none}
  form.filters{flex-wrap:nowrap}
  form.filters label.field.search{flex:1 1 0;min-width:0;font-size:0;line-height:0;gap:0}
  form.filters > button{flex:none}
  form.filters details.more{flex:none}
  form.filters:has(details.more){flex-wrap:wrap}
  .bar{gap:0 10px;padding:0 var(--pad)}
  .bar > form.search{display:none}
  .bar:has(> details) .brand-name{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .bar > details.accounts,.bar > details.businesses,.bar > details.user{position:static}
  .bar > details.menu .menu-panel,.bar > details.accounts ul{left:var(--pad);right:var(--pad);min-width:0;max-width:none}
  .bar > details.accounts summary,.bar > details.menu summary{max-width:42vw}
  table.rows td.actions:not(:empty){display:flex;flex-wrap:wrap;align-items:center;gap:0 20px;padding-top:6px;text-align:left;white-space:normal}
  dl.facts dt,dl.facts.settings dt{flex-basis:100%}
  .metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .metrics > div:nth-child(n+3){border-top:1px solid var(--border)}
  .metrics > div:last-child:nth-child(odd){grid-column:1 / -1}
  .kpis{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:14px}
  .kpi.lead{grid-column:1 / -1;padding:0}
  .kpi.lead + .kpi{padding-left:0;border-left:0}
  .kpi.lead strong{font-size:28px;line-height:34px}
  .kpi strong{font-size:22px;line-height:28px}
  .month-figures,.card.month > .todo-list,.card.pair > section,.card.pair > section + section{padding:16px 0}
  .month-head nav.seg{margin-left:0}
  /* Twelve values do not fit a phone's width: this month's stays, the scale says the rest. */
  svg.bars g:not(.now) text.value{display:none}
  ul.todo-rows > li{grid-template-columns:minmax(0,1fr);margin:0 -16px;padding:12px 16px}
  .todo-do{justify-content:flex-start}
  .todo-summary,section.todo-section{padding-left:0;padding-right:0}
  .todo-summary .btn{flex:1 1 100%}
  .guide-next{display:grid;grid-template-columns:minmax(0,1fr)}
  .guide-next > a.btn{width:100%}
  form.suggestions button{flex:1 1 100%}
  .review-form{padding:16px}
  .review-form .review-actions{margin:16px -16px -16px;padding:10px 16px}
  .compare-actions{margin-left:calc(-1 * var(--pad));margin-right:calc(-1 * var(--pad));padding:10px var(--pad)}
  .compare-actions form,.compare-actions form button{width:100%}
  .dropzone{padding:24px 16px}
  ul.files li{flex-wrap:wrap}
  .file-name{flex:1 1 calc(100% - 30px)}
  .file-note{margin-left:28px}
  .way .way-more{margin-left:0}
  table.reading-lines td:first-child{display:none}
  table.reading-lines td:last-child{text-align:left}
}

/* A movement's page (the 2026-10-23 audit: "que no tenga que hacer scroll por toda la ventana", "se ve mal distribuido"): what the
   bank says in one strip across the top; under it the whole width for its proof. The ways to back it are tabs; the receipts are a
   list that scrolls by itself, and the picked one opens beside it with its photo, row by row against the bank (no script: :has and
   a position out of the list's scroll). "What was it?" is not asked while a receipt is picked (its account is used). A phone keeps
   the page's own flow, the picked receipt under its card. */
section.bank-strip{margin:0 0 16px;padding:12px 16px;background:var(--bank);border-radius:var(--radius-control)}
section.bank-strip dl{display:grid;grid-template-columns:auto minmax(0,2fr) auto minmax(0,1.3fr);gap:4px 32px;margin:0}
section.bank-strip dt{color:var(--muted);font-size:12px}
section.bank-strip dd{margin:2px 0 0;overflow-wrap:anywhere}
section.bank-strip > .hint{margin:8px 0 0}
.movement{display:block}
.panel-hint{margin:0 0 10px}
.movement form:has(input[name="respaldo"][value="recibo"]:checked) fieldset.what{display:none}
.pick-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;margin:0 0 10px}
.pick-toolbar .search{flex:1 1 280px;max-width:440px;margin:0}
.pick-toolbar .search label.field{flex:1 1 auto;margin:0}
.pick-months{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 10px}
.pick-months a{padding:4px 10px;border:1px solid var(--border);border-radius:var(--radius-control);background:var(--surface);color:var(--ink);font-size:13px;text-decoration:none}
.pick-months a:hover{background:var(--raised)}
.pick-months a[aria-current="page"]{border-color:var(--ink);font-weight:600}
fieldset.picks{display:grid;gap:8px;min-width:0;margin:0;padding:0;border:0}
label.choice.pick{position:static;display:block;margin:0;padding:0;cursor:pointer}
label.choice.pick input{position:static;width:18px;height:18px;margin:0}
.pick-card{display:grid;gap:6px;padding:10px 12px;border:1px solid var(--border);border-radius:var(--radius-card);background:var(--surface)}
.pick-card:hover{background:var(--raised)}
label.choice.pick:has(input:checked) .pick-card{border-color:var(--ink);outline:1px solid var(--ink);outline-offset:-2px}
label.choice.pick:has(input:focus-visible) .pick-card{outline:2px solid var(--ink);outline-offset:2px}
.pick-head{display:grid;grid-template-columns:18px 40px minmax(0,1fr) auto auto;gap:12px;align-items:center}
.pick-thumb{width:40px;height:52px;object-fit:cover;object-position:top;border-radius:4px;background:var(--raised)}
.pick-thumb.none{display:block;background:var(--side)}
.pick-main{display:grid;min-width:0}
.pick-main .muted{font-size:13px;overflow-wrap:anywhere}
.pick-head .num{font-weight:600;font-variant-numeric:tabular-nums}
label.choice.pick .board-reasons{margin:0}
.pick-detail{display:none}
label.choice.pick:has(input:checked) .pick-detail{display:grid;grid-template-columns:minmax(0,150px) minmax(0,1fr);gap:16px;align-items:start;margin:6px 0 2px;padding:14px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card);cursor:default}
label.choice.pick:has(input:checked) .pick-detail:not(:has(.pick-photo)){grid-template-columns:minmax(0,1fr)}
.pick-detail dl.cmp > div{grid-template-columns:110px minmax(0,1fr) minmax(0,1fr)}
.pick-detail .go{grid-column:1 / -1}
.pick-photo{width:100%;max-height:240px;object-fit:contain;object-position:top;border:1px solid var(--border);border-radius:4px;background:var(--raised)}
details.suggest-how{margin-top:12px;font-size:13px}
details.suggest-how ul{margin:8px 0 0;padding-left:18px;color:var(--muted)}
details.suggest-how li{margin:2px 0}
@media (max-width: 999px){
  .panel-hint{display:none}
  section.bank-strip dl{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  section.bank-strip dl .wide{grid-column:1 / -1}
  .backing-more{margin-left:0}
  .pick-head{grid-template-columns:18px 40px minmax(0,1fr) auto}
  .pick-head .chip{grid-column:3 / -1;justify-self:start}
  label.choice.pick:has(input:checked) .pick-detail{grid-template-columns:minmax(0,1fr)}
  .pick-detail dl.cmp > div{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .pick-detail dl.cmp dt{grid-column:1 / -1}
  .pick-detail dl.cmp .head dt{display:none}
}
@media (min-width: 1000px){
  .backing-groups{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
  .backing-group{display:contents}
  label.backing{padding:9px 10px 9px 36px}
  label.backing > input{left:12px;top:11px}
  label.backing strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  label.backing small{display:none}
  .backing-more{grid-column:1 / -1;grid-row:2;margin:4px 0 0}
  .movement fieldset.question{margin-bottom:14px}
  fieldset.what > p.hint:first-of-type{display:none}
  /* The list on the left scrolls by itself; the picked receipt sits at the right, outside that scroll. */
  .picker{position:relative}
  .picks-list{width:44%;max-height:max(300px, calc(100vh - 540px));overflow:auto;overscroll-behavior:contain;padding:2px 6px 2px 2px}
  .picker:has(input:checked){min-height:min(440px, max(300px, calc(100vh - 540px)))}
  label.choice.pick:has(input:checked) .pick-detail{position:absolute;top:2px;right:0;bottom:0;width:calc(56% - 20px);overflow:auto;margin:0}
}
@media (min-width: 1000px) and (min-height: 640px){
  .movement form .review-actions{position:sticky;bottom:0;z-index:2;margin:0;padding:12px 0;background:var(--paper)}
}

/* The way to every loose receipt under the suggestion; what Save does by the way chosen; a joined movement and its undo. */
.pick-more{margin:10px 0 0;font-size:14px}
.pick-more a{font-weight:500;text-decoration:none}
.pick-toolbar .pick-more{margin:0}
.save-note{display:none;margin:0 0 10px;color:var(--muted);font-size:13px;max-width:72ch}
.movement form:has(input[name="respaldo"][value="recibo"]:checked) .save-note.receipt{display:block}
.movement form:has(input[name="respaldo"]:checked:not([value="recibo"])) .save-note.other{display:block}
section.joined-card{max-width:760px}
section.joined-card h2{margin:0 0 12px;font-size:16px}
section.joined-card dl.cmp > div{grid-template-columns:110px minmax(0,1fr) minmax(0,1fr)}
section.joined-card .separate{margin-top:14px;padding-top:12px;border-top:1px solid var(--rule)}

/* Over the board, the movements whose receipt looks right: one line with its way to review them one by one. */
div.suggestions{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;margin:0 0 12px;padding:12px 16px;background:var(--side);border-radius:var(--radius-control)}
div.suggestions p{margin:0}

/* Conciliación in one screen (the 2026-10-25 audit, Diseño A): the month's movements in a list by where they stand, and the one
   picked beside it. Two things never look alike: the bank is a grey column with its own words as it wrote them; the receipt is
   white, as paper, with its photo. Three states, a mark each: done (the double rule: joined), to confirm (a single grey line: maybe the\n   same), no proof yet (nothing between them).
   A phone shows one at a time: the list, or the movement with its way back. */
.recon-sum{margin:6px 0 10px;color:var(--muted);font-size:13.5px}
.recon-sum strong{color:var(--ink);font-weight:600}
.recon-sum .ok{color:var(--positive)}
.recon-sum a{color:var(--muted)}
.recon{display:grid;grid-template-columns:minmax(300px,5fr) minmax(0,7fr);gap:20px;align-items:start}
.recon-list{border-top:1px solid var(--border);overflow:hidden}
.recon-list ol{margin:0;padding:0;list-style:none}
.recon-group{display:flex;justify-content:space-between;padding:14px 10px 6px;color:var(--muted);font-size:12px;font-weight:500}
.recon-group:not(:first-child){border-top:1px solid var(--rule)}
a.mv{display:grid;grid-template-columns:16px 48px minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 10px 10px 8px;border-left:2px solid transparent;border-top:1px solid var(--rule);color:var(--ink);text-decoration:none}
.recon-group + li > a.mv{border-top:0}
a.mv:hover{background:var(--hover)}
a.mv[aria-current="true"]{background:var(--hover);border-left-color:var(--ink)}
a.mv:focus-visible{outline:2px solid var(--ink);outline-offset:-2px}
a.mv .d{color:var(--muted);font-size:12.5px;white-space:nowrap}
a.mv .t{display:grid;min-width:0}
a.mv .t .bank-text{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
a.mv .t small{overflow:hidden;color:var(--muted);font-size:12px;line-height:16px;white-space:nowrap;text-overflow:ellipsis}
a.mv .a{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
a.mv .a.in,.recon-panel .amt.in{color:var(--positive)}
/* A movement's or a receipt's mark (2026-11-04 redesign: shapes that read alone, not lines that need a legend): a green check
   (joined to its proof), a blue ring (a receipt that may be its own: "¿Es este su recibo?"), an amber dot (its receipt is missing). */
.dot{display:inline-flex;align-items:center;justify-content:center;flex:none;width:12px;height:12px;border-radius:50%}
.dot.confirm{box-sizing:border-box;border:2px solid #3a5f99}
.dot.open{background:#d9a21b}
.dot.done{border-radius:0}
.dot.done::after{content:"";width:4px;height:8px;margin-top:-2px;border:solid var(--positive);border-width:0 2px 2px 0;transform:rotate(45deg)}
.recon-done{display:grid;gap:2px;padding:14px 16px;border-bottom:1px solid var(--rule);font-size:13.5px}
.recon-done strong{justify-self:start;padding-bottom:2px;border-bottom:3px double var(--ink);color:var(--ink)}
.recon-done .go{justify-self:start;margin-top:4px}
.recon-done .recon-close{justify-self:start;margin-top:8px}
.recon-done .hint,.recon-done .note{margin:4px 0 0}
form.recon-all{margin:0;padding:14px 16px;gap:10px;border-width:0 0 1px;border-radius:0;font-size:13.5px}
form.recon-all p{flex-basis:100%;font-weight:400}
.recon-nib,.recon-empty{margin:0;padding:10px 16px;border-top:1px solid var(--rule);color:var(--muted);font-size:12.5px}
.recon-missing{margin:20px 0 8px}
.recon-missing > h2,.recon-missing > p{padding:0 10px}
.recon-missing ol{margin:0;padding:0;list-style:none}
a.mv.loose small .chip{min-height:18px;vertical-align:0}
.recon-missing .id{display:block;color:var(--muted);font-size:12px}
.recon-panel{min-width:0;padding:16px 0 0 28px;border-left:1px solid var(--rule)}
.recon-back{display:none;margin:0 0 10px;color:var(--muted);font-size:13px;text-decoration:none}
.panel-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.panel-head h2{margin:0;font-size:17px;line-height:24px;font-weight:640}
.panel-head .muted{font-size:12.5px;white-space:nowrap}
.recon-panel > .panel-hint{display:block;margin:2px 0 0;color:var(--muted);font-size:13px}
.pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);margin:16px 0 4px;border:1px solid var(--border);border-radius:var(--radius-card);overflow:hidden}
.pair.one{grid-template-columns:minmax(0,1fr)}
.pair .side{min-width:0;padding:14px 16px}
.pair .side p{margin:0}
.pair .side.bank{background:var(--bank)}
.pair .side.receipt{border-left:1px solid var(--border);background:var(--surface)}
.pair .side.receipt.none{display:flex;flex-direction:column;justify-content:center;color:var(--muted)}
.pair .side p.kind{display:flex;align-items:center;gap:7px;margin:0 0 10px;color:var(--muted);font-size:12px;font-weight:500}
svg.i{flex:none;width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linejoin:round}
.pair .side.bank .bank-text{font-size:14px}
.pair .side p.amt{margin-top:4px;font-size:17px;line-height:24px;font-weight:650;font-variant-numeric:tabular-nums}
.pair .muted{font-size:12.5px}
.pair .rc{display:flex;gap:12px;align-items:flex-start}
.pair .rname{font-weight:600}
.rc-photo{flex:none;width:52px;height:68px;overflow:hidden;border:1px solid var(--border);border-radius:4px;background:var(--raised)}
.rc-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:top}
.rc-photo.none{border-color:transparent;background:var(--side)}
.pair .go{font-size:13px}
table.pair-rows{width:100%;margin:6px 0 0;border-collapse:collapse;font-size:13.5px}
table.pair-rows th,table.pair-rows td{padding:8px 0;border-bottom:1px solid var(--rule);text-align:left;vertical-align:top}
table.pair-rows tr:last-child > *{border-bottom:0}
table.pair-rows th{width:110px;padding-right:8px;color:var(--muted);font-size:12.5px;font-weight:500}
table.pair-rows td.m{width:26px;font-weight:700;text-align:center}
td.m.y{color:var(--ink)}
td.m.n{color:var(--warning)}
td.m.x{color:var(--negative)}
p.verdict{margin:12px 0 0;padding:10px 12px;border-radius:var(--radius-control);background:var(--warn-bg);font-size:13.5px}
p.verdict.good{padding:10px 0 0;background:none;border-top:3px double var(--ink);border-radius:0}
p.verdict.bad{background:var(--side)}
.panel-actions{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;margin:16px 0 0}
details.not-this > summary{display:inline-flex;align-items:center;min-height:36px;padding:0 14px;border:1px solid var(--border);border-radius:6px;cursor:pointer;font-weight:500;list-style:none}
details.not-this > summary::-webkit-details-marker{display:none}
details.not-this[open]{flex:1 0 100%}
details.not-this form.reasons{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:8px 0 0}
.undo{margin:-8px 0 12px}
details.told-apart{margin:16px 0 0}
details.told-apart ul{margin:6px 0 0;padding:0;list-style:none}
details.told-apart li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 12px;padding:6px 0;border-top:1px solid var(--rule)}
.recon-panel > .hint{margin:12px 0 0}
.recon-panel .keys{white-space:nowrap}
details.recon-change{margin-top:14px}
details.recon-change > summary{cursor:pointer;font-weight:600}
.recon-panel .movement{margin-top:16px}
/* "En el banco" on a receipt's page, in the bank's shape; Recibos' column "Banco"; the Resumen's note of an expense counted twice. */
section.inbank{margin:0 0 14px;padding:12px 14px;background:var(--bank);border-radius:var(--radius-card)}
section.inbank p{margin:0}
section.inbank p.kind{display:flex;align-items:center;gap:7px;margin:0 0 6px;color:var(--muted);font-size:12px;font-weight:500}
section.inbank .actions{margin-top:10px}
.bank-said{font-size:13px}
td.bank .dot{margin-right:4px}
div.twice{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;margin:0 0 14px;padding:12px 16px;background:var(--warn-bg);border:1px solid var(--warn-line);border-radius:var(--radius-card);font-size:13.5px}
div.twice p{margin:0}
@media (min-width: 1000px){
  .recon-panel .picks-list{width:100%;max-height:none;overflow:visible}
  .recon-panel .picker:has(input:checked){min-height:0}
  .recon-panel label.choice.pick:has(input:checked) .pick-detail{position:static;width:auto;margin:6px 0 2px}
  .recon-panel .backing-groups{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media (max-width: 999px){
  .recon{grid-template-columns:minmax(0,1fr)}
  .recon-page[data-view="panel"] .recon-list,.recon-page[data-view="panel"] .board-head,.recon-page[data-view="panel"] .recon-sum,.recon-page[data-view="panel"] .recon-balance{display:none}
  .recon-page[data-view="list"] .recon-panel{display:none}
  .recon-back{display:inline-block}
  .recon-panel{padding:16px 0 0;border-left:0}
  .pair{grid-template-columns:minmax(0,1fr)}
  .pair .side.receipt{border-left:0;border-top:1px solid var(--border)}
  .panel-actions > form:first-child,.panel-actions > form:first-child button{flex:1 1 100%}
  .recon-panel .keys{display:none}
}

/* Conciliación at hand (the 2026-11-02 pass: "que el usuario tenga todo a la mano sin hacer scroll y fácil de hacer"; and "no me
   gusta ver barras de desplazamiento por componentes"). The balance against the books is one line of four figures, the
   unexplained one over the double rule once it is zero. No part scrolls by itself: the page does, the movement starts level with
   the list, and "Guardar y seguir" stays at the screen's foot while the movement is in sight. The answer is short: the four ways
   of backing it in one row, the reasons in two columns, each reason's note and the one field it needs shown once it is picked
   (without :has(), all of them, as before). */
.recon-balance{display:flex;flex-wrap:wrap;align-items:flex-end;gap:6px 28px;margin:0 0 12px}
.recon-balance dl.facts{display:flex;flex-wrap:wrap;gap:4px 28px;max-width:none;margin:0}
.recon-balance dl.facts > div{display:grid;gap:0;padding:0}
.recon-balance dl.facts > div + div{border-top:0}
.recon-balance dl.facts dt{color:var(--muted);font-size:12px;line-height:16px}
.recon-balance dl.facts dd{justify-self:start;font-weight:500}
.recon-balance dl.facts div.ok dd{padding-bottom:1px;border-bottom:3px double var(--ink)}
.recon-balance dl.facts div.warn dd{color:var(--negative)}
.recon-balance > p{flex:1 1 280px;margin:0;color:var(--muted);font-size:13px;line-height:18px}
.recon-balance > p.warn{color:var(--warn-text)}
.recon-balance > details.more{flex:none;margin:0;font-size:13px}
.recon-balance > details.more[open]{flex:1 1 100%}
.backing-more label.choice small{display:none}
.backing-more label.choice:has(input:checked) small{display:block}
.backing-more:not(:has(input[name="motivo"][value="refund"]:checked)) label.field:has(select[name="gasto"]),
.backing-more:not(:has(input[name="motivo"][value="own_transfer"]:checked)) label.field:has(select[name="otra"]),
.backing-more:not(:has(input[name="motivo"][value="owner"]:checked)) label.field:has(select[name="socio"]),
.backing-more:not(:has(input[name="motivo"][value="worker"]:checked)) label.field:has(input[name="beneficiario"]),
.backing-more:not(:has(input[name="motivo"][value="worker"]:checked)) label.field:has(select[name="trabajo"]),
.backing-more:not(:has(input[name="motivo"][value="loan"]:checked)) label.field:has(select[name="prestamo"]),
.backing-more:not(:has(input[name="motivo"][value="adjusted"]:checked)) label.field:has(input[name="entrada"]),
.backing-more:not(:has(input[name="motivo"][value="related"]:checked)) label.field:has(input[name="compania"]),
.backing-more:not(:has(input[name="motivo"][value="related"]:checked)) label.field:has(select[name="tipo"]){display:none}
/* A line of a closed period is in no row of the books (2026-11-02 audit, gap 29): never the double rule of what adds up, a grey
   dash. */
.dot.done.closed::after{border-color:var(--faint)}
/* Rediseño ronda 2 · recibos y conciliación */
/* Recibos: each row with the receipt's picture, small (its own file, or a mark for a PDF), its vendor over how it came and who sent
   it, its date, account and total; a state only when it asks for something. Below a laptop's width, two whole lines: the vendor and
   its total, then how it came · its date and its state; the picture at their left. Nothing is cut short. */
table.rc-list th.thumb,table.rc-list td.thumb{width:32px;padding-right:12px}
.rc-thumb{display:block;width:32px;height:40px;object-fit:cover;object-position:top;border:1px solid var(--border);border-radius:4px;background:var(--raised)}
span.rc-thumb.doc{display:grid;place-items:center;color:var(--muted);font-size:9px;font-weight:600;letter-spacing:.04em;text-transform:uppercase}
span.rc-thumb.none{border-style:dashed;background:none}
table.rc-list td.who .via{display:block;color:var(--muted);font-size:13px;font-weight:400;line-height:18px}
table.rc-list td.state:empty{padding:0}
@media (max-width: 960px){
  table.rows.receipts.rc-list tr.linked{position:relative;display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 12px;padding:10px 16px 10px 60px;min-height:44px}
  .card table.rows.receipts.rc-list tr.linked{padding-left:44px;padding-right:0}
  table.rows.receipts.rc-list tr::before{content:none}
  table.rows.receipts.rc-list tr td.thumb{position:absolute;left:16px;top:12px;width:auto;padding:0}
  .card table.rows.receipts.rc-list tr td.thumb{left:0}
  table.rows.receipts.rc-list tr td.who{display:contents}
  table.rows.receipts.rc-list td.who a.row-link{order:1;flex:1 1 0;min-width:0;overflow-wrap:anywhere}
  table.rows.receipts.rc-list tr td.num{order:2;flex:none;padding:0;font-weight:500}
  table.rows.receipts.rc-list td.who .via{order:3;flex:0 1 auto;min-width:0;font-size:13px;overflow-wrap:anywhere}
  table.rows.receipts.rc-list tr td.date{order:4;flex:none;color:var(--muted);font-size:13px;line-height:18px}
  table.rows.receipts.rc-list tr td.date::before{content:"·";margin-right:6px}
  table.rows.receipts.rc-list tr td.state{order:5;flex:none;margin-left:auto;padding:0}
  table.rows.receipts.rc-list tr td.state:empty,table.rows.receipts.rc-list tr td.account,table.rows.receipts.rc-list tr td.bank,table.rows.receipts.rc-list tr td.go,table.rows.receipts.rc-list tr td.pick,table.rows.receipts.rc-list th.pick{display:none}
  table.rows.receipts.rc-list tr td.date ~ td:not(.who):not(.num):not(.go)::before{content:none}
  form.bulk{display:none}
}

/* A receipt to review, read as text: what was read in words, a fact a line, the bank's charge for it one more of them; under them
   Confirmar, the one ink button, and "Corregir algo", which opens the form (`?corregir=1`). The form rides along, folded. */
.rc-read{margin:0 0 4px}
.rc-read h2{margin:0 0 8px;font-size:15px;font-weight:600}
.rc-read dl{margin:0}
.rc-read dl > div{display:grid;grid-template-columns:minmax(110px,150px) minmax(0,1fr);gap:4px 16px;padding:9px 0;border-top:1px solid var(--rule)}
.rc-read dl > div:first-child{border-top:0}
.rc-read a.fix{float:right;margin-left:12px;font-size:13px;font-weight:500}
.rc-read .fixing dd input,.rc-read .fixing dd select,.rc-read .fixing dd textarea{width:100%;max-width:var(--form)}
.rc-read dt{color:var(--muted);font-size:13px}
.rc-read dd{margin:0;font-weight:500;overflow-wrap:anywhere}
.rc-read dd small{display:block;color:var(--muted);font-size:12.5px;font-weight:400}
.rc-read .in-bank{margin-top:6px;padding:10px 12px;border:0;border-radius:var(--radius-control);background:var(--bank)}
.rc-read .bank-acts{display:flex;flex-wrap:wrap;align-items:center;gap:4px 16px;margin-top:6px;font-weight:400;font-size:13px}
.review-form.as-read .review-actions{margin-top:16px}
@media (max-width: 640px){
  .rc-read dl > div{grid-template-columns:minmax(0,1fr);gap:0}
  .review-form.as-read .review-actions > button[data-role="save"]{flex:1 1 100%}
}

/* «Revise N cosas» (src/review/issues.ts): atop a receipt's right column, why it needs the person, a reason a line with its mark (the
   chips' own: a red "!" what does not add up, a gold dot what is missing, a ring what only needs a yes), each a link to its field, its
   quick buttons under it; then what is fine, with a check. With nothing to review, "Solo confirmar" and the page's Confirmar. The
   fields it points at are marked the same way: red, amber, gold. */
.rc-box{margin:0 0 16px;padding:12px 14px;border:1px solid var(--warn-line);border-radius:var(--radius-card);background:var(--warn-bg)}
.rc-box.ok{border-color:var(--border);background:var(--raised)}
.rc-box h2{margin:0 0 6px;font-size:16px;font-weight:600}
.rc-box p{margin:0 0 6px;color:var(--muted);font-size:13.5px}
.rc-box ul{margin:0;padding:0;list-style:none}
.rc-issues > li{position:relative;padding:7px 0 7px 22px}
.rc-issues > li + li{border-top:1px solid var(--warn-line)}
.rc-issues > li::before{content:"";position:absolute;left:3px;top:15px;box-sizing:border-box;width:8px;height:8px;border-radius:50%}
.rc-issues > li.warn::before{background:var(--gold)}
.rc-issues > li.confirm::before{border:1.5px solid var(--neutral-text)}
.rc-issues > li.error::before{content:"!";top:7px;left:4px;width:auto;height:auto;border-radius:0;color:var(--negative);font-weight:700}
.rc-issues a.rc-say{color:var(--ink);font-weight:600;text-decoration:none}
.rc-issues a.rc-say:hover{text-decoration:underline}
.rc-issues li.error .rc-say{color:var(--error-text)}
.rc-issues .rc-say{font-weight:600}
.rc-issues small{display:block;color:var(--muted);font-size:12.5px}
.rc-quick{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.rc-quick form{display:inline-flex;margin:0}
.rc-quick .btn,.rc-quick button{min-height:32px;font-size:14px}
.rc-fine{margin-top:8px !important;padding-top:6px !important;border-top:1px solid var(--rule)}
.rc-box:not(.ok) .rc-fine{border-top-color:var(--warn-line)}
.rc-box.ok .rc-fine{margin-top:0 !important;padding-top:0 !important;border-top:0}
.rc-fine li{position:relative;padding:3px 0 3px 22px;color:var(--muted);font-size:13.5px}
.rc-fine li::before{content:"";position:absolute;left:5px;top:7px;width:4px;height:8px;border:solid var(--positive);border-width:0 1.5px 1.5px 0;transform:rotate(45deg)}
.rc-box .actions{margin-top:10px}
[data-mark="warn"]:not([type="hidden"]){border-color:var(--warning);box-shadow:0 0 0 3px var(--warn-line)}
[data-mark="error"]:not([type="hidden"]){border-color:var(--negative);box-shadow:0 0 0 3px var(--error-bg)}
[data-mark="confirm"]:not([type="hidden"]){border-color:var(--gold);box-shadow:0 0 0 2px var(--warn-bg)}
.rc-read dl > div.mark-warn,.rc-read dl > div.mark-error,.rc-read dl > div.mark-confirm{margin:0 -8px;padding-left:8px;padding-right:8px;border-radius:var(--radius-control)}
.rc-read dl > div.mark-warn{background:var(--warn-bg);box-shadow:inset 3px 0 0 var(--warning)}
.rc-read dl > div.mark-error{background:var(--error-bg);box-shadow:inset 3px 0 0 var(--negative)}
.rc-read dl > div.mark-confirm{box-shadow:inset 3px 0 0 var(--gold)}
nav.fix-tabs{margin-top:-12px;border-bottom:0;font-size:14px}
nav.fix-tabs a{padding:6px 0}

/* Looking for a charge's receipt: the charge in sight over the search (it stays at the top while the results scroll), the filters
   taken from it as chips (✕ takes one away, + puts it back), this client or all of them, and what was found, each with its reasons;
   one in another client says where it is and offers to move it here; one joined already, to open. */
.charge-strip{position:sticky;top:0;z-index:3;display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px;margin:0 0 10px;padding:8px 12px;border-radius:var(--radius-control);background:var(--bank);font-size:13.5px}
.charge-strip .lab{color:var(--muted);font-size:12px}
.charge-strip .bank-text{font-weight:600;overflow-wrap:anywhere}
.charge-strip strong{margin-left:auto;font-variant-numeric:tabular-nums}
.search-filters{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin:0 0 4px}
.search-filters label.check{display:inline-flex;align-items:center;gap:6px;margin:0;font-size:13px;font-weight:400}
.chips{display:flex;flex-wrap:wrap;gap:6px}
a.chip-f{display:inline-flex;align-items:center;min-height:28px;padding:0 10px;border:1px solid var(--control);border-radius:14px;background:var(--surface);color:var(--ink);font-size:13px;font-weight:500;text-decoration:none;white-space:nowrap}
a.chip-f.on{border-color:var(--ink)}
a.chip-f.off{border-style:dashed;color:var(--muted);font-weight:400}
a.chip-f:hover{background:var(--hover)}
nav.seg.scope a{min-height:26px}
.found-count{margin:8px 0;color:var(--muted);font-size:13px}
.found-card{display:block;margin:0}
.found-card .pick-head{grid-template-columns:0 40px minmax(0,1fr) auto auto}
.found-card .pick-detail{display:grid;grid-template-columns:minmax(0,150px) minmax(0,1fr);gap:16px;align-items:start;margin:6px 0 2px;padding:14px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card)}
.found-card .pick-detail:not(:has(.pick-photo)){grid-template-columns:minmax(0,1fr)}
.found-card.other .pick-card{border-color:var(--ink)}
.board-reasons li.other{color:var(--ink);font-weight:500}
.found-act{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin:8px 0 14px}
.found-act .hint{margin:0}

/* R8: "Unir los N con su recibo" opens the review one by one; on it, Es este, No es este and Saltar, and where Es este goes. */
div.suggestions.recon-all{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin:0;padding:14px 16px;border-bottom:1px solid var(--border);background:var(--side);font-size:13.5px}
div.suggestions.recon-all p{flex:1 1 100%;margin:0}
div.suggestions.recon-all p.hint{color:var(--muted);font-size:12.5px}
.panel-actions.pair-walk{flex-wrap:wrap}
@media (max-width: 640px){
  div.suggestions.recon-all a.btn{flex:1 1 100%}
  .found-card .pick-detail{grid-template-columns:minmax(0,1fr)}
}
.movement form:has(input[name="respaldo"][value="sin-recibo"]:checked):not(:has(input[name="motivo"][value="other"]:checked)) fieldset.what{display:none}
.backing-more fieldset.choices{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px 20px}
.backing-more fieldset.choices > legend{grid-column:1 / -1}
.recon-panel .pair{margin:12px 0 4px}
.recon-panel .pair .side{padding:10px 14px}
.recon-panel fieldset.question > .hint{display:none}
/* The four ways in one row: a long name takes two lines rather than an ellipsis. */
.recon-panel label.backing strong{white-space:normal;overflow:visible;line-height:18px}
.recon-panel .movement form .review-actions{position:sticky;bottom:0;z-index:2;margin:12px 0 0;padding:12px 0 16px;background:var(--paper);border-top:1px solid var(--rule)}
.recon-panel .save-note{font-size:12px;line-height:16px}
/* On a phone the bar that stays at the screen's foot is the button alone; what saving did is said after it, in its message. */
@media (max-width: 640px){.recon-panel .movement form:has(input[name="respaldo"]:checked) .save-note{display:none}}
/* The four ways to back it: the labels first, then what the chosen one needs (flex `order`), so a row of four on a wide screen
   and two by two on a small laptop (1000-1199px) both keep the choice's form under all of them. */
@media (min-width: 1000px){
  .recon-panel .backing-groups{display:flex;flex-wrap:wrap;gap:6px}
  .recon-panel label.backing{flex:1 1 calc(25% - 6px);min-width:0}
  .recon-panel .backing-more{order:1;flex:1 1 100%;margin:4px 0 0}
}
@media (min-width: 1000px) and (max-width: 1199px){
  .recon{grid-template-columns:minmax(260px,4fr) minmax(0,6fr)}
  .recon-panel label.backing{flex-basis:calc(50% - 6px)}
  .recon-panel fieldset.picks{grid-template-columns:repeat(auto-fill,minmax(130px,1fr))}
}
/* "Ya llegó su recibo" as a gallery (the 2026-11-02 pass: "el usuario no conoce los recibos"): each loose receipt by its photo,
   its vendor, day and total, the closest first; the one picked opens under its row, the whole width, beside the bank row by row,
   with why it was offered. The label is display:contents so its card and its comparison are the gallery's own cells; `dense`
   keeps the rest of the picked one's row in that row (2026-11-05: picking one made the cards after it jump under the comparison),
   and a card never changes size when picked (its reasons are in the comparison). */
.recon-panel fieldset.picks{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));grid-auto-flow:row dense;gap:10px;align-items:stretch}
.recon-panel label.choice.pick{display:contents}
.recon-panel .pick-card{position:relative;display:flex;flex-direction:column;gap:6px;min-width:0;padding:8px;cursor:pointer}
.recon-panel .pick-head{display:flex;flex-direction:column;align-items:stretch;gap:4px;min-width:0}
.recon-panel .pick-head input{position:absolute;top:14px;left:14px;z-index:1}
.recon-panel .pick-thumb{display:block;width:100%;height:96px;border-radius:4px;object-fit:cover;object-position:top}
.recon-panel .pick-main strong{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.recon-panel .pick-main .muted{font-size:12px;line-height:16px}
.recon-panel .pick-head .num{font-size:16px;line-height:22px}
.recon-panel .pick-head .chip{align-self:flex-start}
.recon-panel .pick-card .board-reasons{display:none}
.pick-cmp{display:grid;gap:10px;min-width:0}
.pick-cmp .board-reasons{margin:0}
/* A comparison's photo and rows wrap, so a narrow panel never squeezes them into one cell. What a search found that is not joined
   from here (in another client, or joined to another charge) is a card like the others, with where it is under its name; picked,
   its comparison carries its own action and "Guardar y seguir" steps aside. */
.recon-panel label.choice.pick:has(input:checked) .pick-detail{display:flex;flex-wrap:wrap;gap:14px;align-items:flex-start}
.recon-panel .pick-detail .pick-photo{flex:0 1 150px;min-width:0}
.recon-panel .pick-detail .pick-cmp{flex:1 1 280px}
.recon-panel .pick-detail .go{flex:1 1 100%}
.recon-panel label.pick.found .pick-card .board-reasons{display:flex;flex-direction:column;gap:2px;margin:0}
.recon-panel .pick-detail .found-act{display:flex;flex:1 1 100%;flex-wrap:wrap;align-items:center;gap:6px 12px}
.recon-panel form:has(input[name=respaldo][value=recibo]:checked):has(label.pick.found input:checked) .review-actions{display:none}
.recon-panel label.choice.pick:has(input:checked) .pick-detail{grid-column:1 / -1}
.recon-panel .pick-thumb.none{height:64px}
.reading-sum{margin:12px 0 0;font-weight:500;color:var(--warn-text)}
.reading-sum.ok{color:var(--ok-text)}
