/* app.css — delphi's one stylesheet. The tokens and the shell first; then the
   components every page is built from (page head, tiles, folds, tables, scroll
   boxes, tabs, charts, hover label, dialog, picker); then the blocks only one
   page uses. Light theme only. */

:root {
  --bg: #faf9f6;
  --paper: #ffffff;
  --ink: #1c1b18;
  --ink-2: #5b5852;
  --ink-3: #8f8b82;
  --line: #e3dfd5;
  --line-strong: #c9c4b8;
  --accent: #1f4e79;
  --credit: #1f6b3a;
  --debit: #9b2f2f;
  --chip: #ebe7de;
  --bar: #3a76ab;   /* validated pair: bars, fitted curve */
  --fit: #b5651d;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}
* { box-sizing: border-box; }
html { font-size: 15px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); line-height: 1.45;
  font-variant-numeric: tabular-nums;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
[hidden] { display: none !important; }

/* ---- shell: the topbar with the brand, the crumbs and the catalogue menu ---- */
.topbar {
  display: flex; align-items: baseline; gap: 1.25rem;
  padding: .9rem 2rem; border-bottom: 1px solid var(--line); background: var(--paper);
}
.brand { font-family: var(--serif); font-size: 1.25rem; letter-spacing: .04em; color: var(--ink); }
.crumbs { color: var(--ink-3); font-size: .9rem; }
.crumbs a { color: var(--ink-2); }
.crumbs > * + *::before { content: "/"; margin: 0 .5rem; color: var(--line-strong); font-family: var(--sans); }
.sitenav { margin-left: auto; display: flex; gap: 1.25rem; font-size: .9rem; }
.menu { position: relative; }
.menu summary {
  list-style: none; cursor: pointer; color: var(--ink-2); display: inline-flex; align-items: center; gap: .35rem; user-select: none;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { color: var(--ink-3); transition: transform .15s; }
.menu summary:hover, .menu[open] summary { color: var(--accent); }
.menu[open] summary svg { transform: rotate(180deg); color: var(--accent); }
.menu-list {
  position: absolute; top: calc(100% + .6rem); left: -.9rem; z-index: 40; min-width: 10rem;
  display: flex; flex-direction: column; padding: .3rem 0;
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 3px;
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
}
.menu-list a { padding: .45rem .9rem; color: var(--ink-2); }
.menu-list a:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); color: var(--accent); }
.menu-list button {
  appearance: none; border: 0; background: none; width: 100%; text-align: left; cursor: pointer;
  font: inherit; padding: .45rem .9rem; color: var(--ink-2);
}
.menu-list button:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); color: var(--accent); }
.menu.user .who { font-family: var(--mono); font-size: .88em; }
.menu.user .menu-list { left: auto; right: -.9rem; white-space: nowrap; }

main { max-width: 1280px; margin: 0 auto; padding: 2rem; }
.page { max-width: 1100px; margin: 0 auto; }
.page.narrow { max-width: 820px; }

/* ---- type ---- */
h2 {
  font-family: var(--sans); font-size: .72rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
  margin: 2.5rem 0 .75rem;
}
h2 .count, h2 .n { color: var(--ink-3); font-weight: 400; margin-left: .4rem; letter-spacing: 0; text-transform: none; }
.kicker { margin: 0 0 .6rem; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.kicker a { color: inherit; }
.kicker a:hover { color: var(--accent); text-decoration: none; }
.kicker .mono { letter-spacing: .04em; margin-right: .4rem; }
.kicker .kind[title] { text-decoration: underline dotted var(--line-strong); text-underline-offset: 3px; cursor: help; }
.lit { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.mono { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--ink-3); }
.none { color: var(--line-strong); }
.credit { color: var(--credit); }
.debit { color: var(--debit); }
mark { background: color-mix(in srgb, var(--accent) 16%, transparent); color: inherit; padding: 0; }

/* a subject with nothing assigned wears a pill beside its name */
.pill {
  align-self: center; display: inline-flex; align-items: center; gap: .4rem;
  padding: .2rem .6rem; border: 1px dotted var(--line-strong); border-radius: 999px;
  font-family: var(--sans); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
}
.pill::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; border: 1px solid var(--ink-3); }

/* ---- page head: the kicker and the title on the left; at the right, the way
   into the analysis and the pager, or the search ---- */
.head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem;
  padding: 1.5rem 0 1.5rem; border-bottom: 1px solid var(--line);
}
.head > div { min-width: 0; }
.head.stack { display: block; }
.head.lander { padding-bottom: 1.75rem; }
.head.tool-top { align-items: flex-start; }
.head.tool-top .tool { margin-top: 1.7rem; }   /* level with the name, under the kicker */
.home-head { padding: 2.5rem 0 2rem; }
.head h1 { font-family: var(--serif); font-size: 1.9rem; font-weight: 400; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
.home-head h1 { font-size: 2.2rem; line-height: 1.1; }
.home-head .lede { margin: .9rem 0 0; max-width: 34rem; color: var(--ink-2); font-size: .95rem; line-height: 1.55; }
.bank-title .num { font-family: var(--mono); font-size: .7em; color: var(--ink-2); margin-left: .5rem; letter-spacing: .04em; vertical-align: 2px; }

/* "Bank | number | period" */
.ident { display: flex; align-items: baseline; gap: .8rem; }
.ident .sep { align-self: center; width: 1px; height: 1.4rem; background: var(--line-strong); }
.ident .num { font-family: var(--mono); font-size: .68em; color: var(--ink-2); letter-spacing: .04em; }
.ident .per { color: var(--ink); }
.ident .dash { color: var(--ink-3); font-weight: 300; margin: 0 .1rem; }
/* "004.003 Label" */
.subject { display: flex; align-items: baseline; gap: .8rem; }
.subject .id { font-family: var(--mono); font-size: .68em; color: var(--ink-2); letter-spacing: .04em; }

.dates { margin: .7rem 0 0; color: var(--ink); font-size: .95rem; }
.dates .lit { margin-right: .3rem; }
.dates .lit:nth-of-type(2) { margin-left: 1.25rem; }
.dates .mono { letter-spacing: .04em; }
.dates .stmt-link { margin-left: 1.5rem; font-size: .85rem; }
.dates .stmt-link:first-child { margin-left: 0; }
.head .desc { margin: .8rem 0 0; max-width: 62rem; color: var(--ink-2); font-size: .92rem; line-height: 1.5; }
.head .meta { margin: .7rem 0 0; font-size: .82rem; color: var(--ink-2); }
.head .meta .key { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-right: .5rem; }
.head .meta .mono { letter-spacing: .04em; }
.head .side { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }

/* the way into a subject's analysis: an icon and its word */
.tool {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: .5rem; height: 2rem; padding: 0 .8rem;
  border: 1px solid var(--line-strong); border-radius: 3px; color: var(--ink-2); font-size: .85rem; white-space: nowrap;
}
.tool svg { color: var(--ink-3); }
.tool:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.tool:hover svg { color: var(--accent); }

/* the pager names the adjacent months; only the ones on file are links */
.pager { display: flex; gap: .5rem; align-items: center; }
.pager a, .pager span.off {
  display: inline-flex; align-items: center; gap: .5rem; height: 2rem; padding: 0 .8rem;
  border: 1px solid var(--line-strong); border-radius: 3px; color: var(--ink-2); font-size: .85rem; white-space: nowrap;
}
.pager .arrow { color: var(--ink-3); }
.pager a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.pager a:hover .arrow { color: var(--accent); }
.pager span.off { color: var(--ink-3); border-style: dotted; cursor: default; }
.pager span.off .arrow { color: var(--line-strong); }

/* the jump list: any statement on file, by year */
.jump { position: relative; display: inline-flex; align-items: center; height: 2rem; border: 1px solid var(--line-strong); border-radius: 3px; background: var(--paper); }
.jump .lit { padding: 0 .6rem; font-size: .68rem; border-right: 1px solid var(--line); align-self: stretch; display: inline-flex; align-items: center; }
.jump select { appearance: none; border: 0; background: none; height: 100%; padding: 0 1.6rem 0 .7rem; font: inherit; font-size: .85rem; color: var(--ink-2); cursor: pointer; }
.jump::after { content: ""; position: absolute; right: .65rem; top: 50%; width: .4rem; height: .4rem; border: solid var(--ink-3); border-width: 0 1.4px 1.4px 0; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.jump:hover { border-color: var(--accent); }
.jump:hover select, .jump:hover .lit { color: var(--accent); }
.jump select:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* ---- tiles: a row of figures between two hairlines; six across by default ---- */
.tiles {
  display: grid; grid-template-columns: repeat(6, 1fr); margin: 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.tiles.c5 { grid-template-columns: repeat(5, 1fr); }
.tiles.c4 { grid-template-columns: repeat(4, 1fr); }
.tiles > div { padding: .9rem 1rem .9rem 0; }
.tiles > div + div { padding-left: 1rem; border-left: 1px solid var(--line); }
.tiles.c4 > div:nth-child(5) { padding-left: 0; border-left: 0; }
.tiles.c4 > div:nth-child(n+5) { border-top: 1px solid var(--line); }
.tiles dt { margin: 0 0 .3rem; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.tiles dd { margin: 0; font-size: 1.05rem; color: var(--ink); }
.tiles dd.num { font-family: var(--mono); }
.tiles dd.credit { color: var(--credit); }
.tiles dd.debit { color: var(--debit); }
.tiles dd.end { color: var(--accent); }
.tiles .of { font-family: var(--sans); font-size: .78rem; color: var(--ink-3); }
/* the first and last movement open the dialog; the mark while it is open */
.tiles a.mov { color: inherit; text-decoration: underline dotted var(--line-strong); text-underline-offset: 4px; }
.tiles a.mov:hover { color: var(--accent); text-decoration-color: var(--accent); }
.tiles a.mov.mv-src { color: var(--accent); }

/* ---- folds: a caret and a title on one line, what they hold underneath ---- */
.fold > summary { list-style: none; display: flex; align-items: baseline; gap: .6rem; min-width: 0; cursor: pointer; user-select: none; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary .caret { flex-shrink: 0; width: .8rem; color: var(--ink-3); font-size: .7rem; }
.fold > summary .caret::before { content: "▸"; display: inline-block; transition: transform .12s ease; }
.fold[open] > summary .caret::before { transform: rotate(90deg); }
.fold > summary:hover .caret, .fold > summary:hover .lit, .fold > summary:hover h2, .fold > summary:hover .y { color: var(--accent); }
.fold > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* the bank page's sections: serif titles that outrank what they contain, the
   body set in from the left so the years and facts read as nested */
.sec { border-top: 1px solid var(--line-strong); }
.sec:first-of-type { border-top: 0; }
.sec > summary { gap: .9rem; padding: 1.15rem 0; }
.sec > summary h2 { margin: 0; font-family: var(--serif); font-size: 1.35rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink); }
.sec > summary .caret { width: 1rem; font-size: .85rem; }
.sec > summary .n { margin-left: auto; font-size: .82rem; color: var(--ink-3); }
.sec-body { padding: 0 0 1.75rem 1.9rem; }

/* a year of statements */
.year { border-top: 1px solid var(--line); }
.year:first-of-type { border-top: 0; }
.year:last-of-type { border-bottom: 1px solid var(--line); }
.year > summary { gap: .75rem; padding: .7rem 0; }
.year .caret { width: .9rem; font-size: .8rem; }
.year .y { font-family: var(--serif); font-size: 1.05rem; color: var(--ink); }
.year .n { margin-left: auto; font-size: .82rem; color: var(--ink-3); }

/* a chart's table twin */
.tbl { margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.tbl > summary { gap: .4rem; font-size: .78rem; color: var(--ink-3); width: max-content; }
.tbl > summary:hover { color: var(--accent); }
.tbl > summary .caret { width: auto; font-size: inherit; }

/* a subject's description: its first line, clipped, while folded; the whole text unfolded */
.desc-fold { margin-top: .9rem; }
.desc-fold > summary .lit { flex-shrink: 0; }
.desc-fold > summary .preview { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .88rem; color: var(--ink-2); }
.desc-fold[open] > summary .preview { display: none; }
.desc-fold .desc { margin: .6rem 0 0 1.4rem; max-width: 62rem; color: var(--ink-2); font-size: .92rem; line-height: 1.5; }

/* a subject's summary: the count and the net beside the title while folded; the tiles unfolded */
.sum-fold { margin-top: 1.5rem; }
.sum-fold > summary h2 { margin: 0; }
.sum-fold > summary .n { margin-left: .4rem; font-size: .82rem; color: var(--ink-3); white-space: nowrap; }
.sum-fold[open] > summary .n { display: none; }
.sum-fold .tiles { margin-top: .75rem; }
.sum-fold + .tabs { margin-top: 1.5rem; }

/* the group page's subaccount table */
.kids-fold { margin-top: 2.5rem; }
.kids-fold > summary { width: max-content; }
.kids-fold > summary .caret { width: auto; }
.kids-fold > summary h2 { margin: 0; }
.kids-fold .kids { margin-top: .75rem; }

/* ---- tables: one rhythm, a few shapes ---- */
table.t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .88rem; }
.t th, .t td {
  padding: 0 .7rem; height: 2.4rem; text-align: left; vertical-align: middle;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.t thead th {
  position: sticky; top: 0; z-index: 1; background: var(--bg); height: 2.1rem;
  color: var(--ink-3); font-weight: 500; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
  border-bottom: 1px solid var(--line-strong);
}
.t th:first-child, .t td:first-child { padding-left: 0; }
.t th:last-child, .t td:last-child { padding-right: 0; }
.t .r { text-align: right; font-family: var(--mono); }

/* a statement's movements */
.movs tbody tr.mov { cursor: pointer; }
.movs tbody tr:hover td { background: var(--paper); }
.movs tbody tr:target td { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.movs .d { width: 6.5rem; color: var(--ink-2); font-family: var(--mono); font-size: .82rem; }
.movs .c { max-width: 0; }
.movs .c .concept { display: block; overflow: hidden; text-overflow: ellipsis; }
.movs .ref { width: 13rem; color: var(--ink-3); font-family: var(--mono); font-size: .8rem; }
.movs .amt { width: 8.5rem; text-align: right; font-family: var(--mono); }
.movs .bal { color: var(--ink-2); }

/* a chart's table twin, and the group's subaccounts */
table.mini, table.kids { width: auto; border-collapse: collapse; font-size: .85rem; }
.mini { margin-top: .6rem; min-width: 24rem; }
table.kids { width: 100%; font-size: .88rem; }
.mini th, .mini td, .kids th, .kids td { padding: .35rem .9rem .35rem 0; border-bottom: 1px solid var(--line); text-align: left; }
.kids th, .kids td { padding: .55rem .9rem .55rem 0; white-space: nowrap; }
.mini th, .kids th { font-size: .7rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.mini .r, .kids .r { text-align: right; font-family: var(--mono); }
.kids .lbl { width: 100%; white-space: normal; }
.kids .mono a { color: var(--ink-2); text-decoration: underline dotted var(--line-strong); text-underline-offset: 3px; }
.kids .mono a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.kids .void td { color: var(--ink-3); }
.kids tfoot td { border-bottom: 0; border-top: 1px solid var(--line-strong); font-weight: 500; }
.kids tfoot .lbl { color: var(--ink-2); font-weight: 400; }

/* ---- scroll boxes: the table scrolls in its own box, sized to the viewport by
   the script (--top); until then capped at 60vh ---- */
.box {
  max-height: calc(100dvh - var(--top, 40dvh)); min-height: 14rem;
  overflow: auto; overscroll-behavior: contain; scrollbar-width: thin;
}
.movs-box { border-bottom: 1px solid var(--line-strong); }
.movs-box .movs tbody tr:last-child td { border-bottom: 0; }

/* ---- tabs: a tab strip above a card; each panel holds a chart or a table ---- */
.tabs { margin-top: 2.5rem; }
.tablist { display: flex; gap: 1.75rem; margin-bottom: .9rem; }
.tablist [role=tab] {
  appearance: none; border: 0; background: none; padding: 0 0 .5rem; cursor: pointer;
  font-family: var(--sans); font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3); border-bottom: 2px solid transparent;
}
.tablist [role=tab]:hover { color: var(--accent); }
.tablist [role=tab][aria-selected=true] { color: var(--ink); border-bottom-color: var(--accent); }
.tablist [role=tab]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.panel {
  padding: 1rem 1.5rem 1.25rem; background: var(--paper);
  border: 1px solid var(--line-strong); border-radius: 3px;
}
.panel.box { padding-top: 0; padding-bottom: 0; }   /* the sticky head and foot rows carry the padding */
.panel-head { display: flex; justify-content: flex-end; align-items: center; min-height: 2.2rem; }
.panel-head:has(.series) { justify-content: space-between; align-items: flex-start; gap: 1rem; }
.panel-head .fit-note { margin: 0; font-size: .78rem; color: var(--ink-3); }

/* ---- charts: inline svg, styled here ---- */
.plot { position: relative; margin-top: .4rem; }
.plot svg { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--sans); }
.plot .grid { stroke: var(--line); stroke-width: 1; }
.plot .axis { stroke: var(--line-strong); stroke-width: 1; }
.plot .tick { fill: var(--ink-3); font-size: 11px; }
.plot .tick.y { font-family: var(--mono); }
.plot .bar { fill: var(--bar); transition: opacity .1s; }
.plot .bar.credit { fill: var(--credit); }
.plot .bar.debit { fill: var(--debit); }
.plot .hit { fill: transparent; }
.plot .hit:hover + .bar, .plot .band:hover .bar { opacity: .75; }
.plot .curve { fill: none; stroke: var(--fit); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.plot .empty { fill: var(--ink-3); font-size: 12px; }
.plot .cap { fill: var(--ink-2); font-size: 11px; font-family: var(--mono); }

/* legend under the histogram: only shown when the curve is drawn */
.legend { display: flex; gap: 1.25rem; margin: .5rem 0 0; font-size: .78rem; color: var(--ink-2); }
.legend span::before { content: ""; display: inline-block; width: .9rem; height: .55rem; margin-right: .4rem; vertical-align: -1px; background: var(--bar); border-radius: 2px; }
.legend .fit::before { height: 2px; background: var(--fit); vertical-align: 3px; border-radius: 1px; }

/* toggle between the two measures */
.seg { display: inline-flex; flex-shrink: 0; border: 1px solid var(--line-strong); border-radius: 3px; overflow: hidden; align-self: center; }
.seg label { position: relative; }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg span { display: block; padding: .3rem .8rem; font-size: .8rem; color: var(--ink-2); background: var(--bg); user-select: none; }
.seg label + label span { border-left: 1px solid var(--line-strong); }
.seg input:checked + span { background: var(--accent); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -2px; }
.seg label:hover span { color: var(--accent); }
.seg input:checked:hover + span { color: #fff; }

/* one hue per child of a group, in catalogue order; the tail past eight folds into "Otras" */
.series {
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100;
  --s5: #e87ba4; --s6: #008300; --s7: #4a3aa7; --s8: #e34948; --s0: #a9a59b;
}
.legend.series { flex-wrap: wrap; gap: .3rem 1rem; margin: .35rem 0 0; }
.legend.series button {
  appearance: none; border: 0; background: none; padding: 0; cursor: pointer;
  font: inherit; font-size: .78rem; color: var(--ink-2); display: inline-flex; align-items: center; gap: .4rem;
}
.legend.series button::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: var(--c); }
.legend.series button:hover { color: var(--accent); }
.legend.series button.off { color: var(--ink-3); }
.legend.series button.off::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--c); }
.plot .bar.s { fill: var(--c); cursor: pointer; }
.plot .dot { fill: var(--c); stroke: var(--paper); stroke-width: 2; cursor: pointer; transition: opacity .1s; }
.plot .dot.dim, .plot .bar.dim { opacity: .12; }
.plot .hit-dot { fill: transparent; cursor: pointer; }
.plot .hit-dot:hover + .dot { r: 6; }

/* ---- hover label, created by the script ---- */
.tip {
  position: fixed; z-index: 30; max-width: 34rem; padding: .55rem .75rem; pointer-events: none;
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 3px;
  box-shadow: 0 4px 14px rgba(0,0,0,.06); font-size: .8rem; line-height: 1.45; color: var(--ink-2);
}
.tip.chart { padding: .5rem .7rem; white-space: nowrap; }
.tip b { display: block; color: var(--ink); font-weight: 500; }
.tip .mono { color: var(--ink); }

/* ---- the movement dialog, shared by every page that lists movements ---- */
dialog.movement {
  width: min(42rem, calc(100vw - 2rem)); padding: 1.1rem 1.5rem 1.25rem; margin: auto;
  border: 1px solid var(--line-strong); border-radius: 3px; background: var(--paper); color: var(--ink);
  box-shadow: 0 16px 48px rgba(0,0,0,.14); font-family: var(--sans); font-variant-numeric: tabular-nums;
}
dialog.movement:focus { outline: none; }
dialog.movement::backdrop { background: rgba(28,27,24,.35); }
.movement .mv-top { display: flex; justify-content: space-between; align-items: flex-start; }
.movement .kicker { margin: 0; }
.movement .close {
  appearance: none; border: 0; background: none; padding: 0 0 0 1rem; margin: -.3rem 0 0;
  font: inherit; font-size: 1.4rem; line-height: 1; color: var(--ink-3); cursor: pointer;
}
.movement .close:hover { color: var(--accent); }
.movement h2.concept { font-family: var(--sans); font-weight: 500; font-size: 1.05rem; letter-spacing: 0; text-transform: none; margin: .6rem 0 0; line-height: 1.3; color: var(--ink); }
.movement .detail { margin: .3rem 0 0; padding: 0; list-style: none; font-family: var(--mono); font-size: .76rem; color: var(--ink-3); line-height: 1.55; word-break: break-word; }
.movement .facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1.5rem;
  margin: 1.1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line);
}
.movement .facts > div { margin: 0; min-width: 0; }
.movement .facts .wide { grid-column: 1 / -1; }
.movement dt { margin: 0 0 .15rem; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.movement dd { margin: 0; font-size: .92rem; color: var(--ink); }
.movement dd.mono { font-family: var(--mono); font-size: .88rem; }
.movement dd.credit { color: var(--credit); }
.movement dd.debit { color: var(--debit); }
.movement dd .sep { margin: 0 .5rem; color: var(--line-strong); }
.movement dd a.mono { font-family: var(--mono); font-size: .88em; color: var(--ink-2); text-decoration: underline dotted var(--line-strong); text-underline-offset: 3px; }
.movement dd a.mono:hover { color: var(--accent); text-decoration-color: var(--accent); }
.movement .foot { margin: 1.1rem 0 0; font-size: .85rem; }
/* the element that opened the dialog (a table row, usually) stays marked until it closes */
.mv-src > td { background-color: color-mix(in srgb, var(--accent) 8%, transparent); box-shadow: inset 0 1px 0 var(--accent), inset 0 -1px 0 var(--accent); }
.mv-src:not(tr) { background-color: color-mix(in srgb, var(--accent) 8%, transparent); box-shadow: 0 0 0 1px var(--accent); }

/* ---- the range picker: two month calendars and the action row ---- */
.picker-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2.5rem;
  padding: 1rem 1.25rem 1.25rem;
}
.cal-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .6rem; }
.cal-head .lit { margin-right: auto; }
.cal-head .yr { font-family: var(--serif); font-size: 1.1rem; min-width: 3.2rem; text-align: center; }
.cal-head .step {
  font: inherit; width: 1.6rem; height: 1.6rem; line-height: 1; border-radius: 3px; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink-2);
}
.cal-head .step:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.cal-head .step:disabled { color: var(--line-strong); border-color: var(--line); cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: .35rem; }
.cal-grid button {
  font: inherit; font-size: .8rem; line-height: 1; padding: .5rem 0; border-radius: 3px; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink);
}
.cal-grid button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.cal-grid button.missing { border-style: dotted; color: var(--ink-3); background: transparent; cursor: default; }
.cal-grid button.outside { color: var(--ink-3); }
.cal-grid button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.picker-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 1rem; }
.picker-actions .hint { color: var(--ink-3); font-size: .82rem; }
.picker-actions .go {
  margin-left: auto; font: inherit; font-size: .88rem; padding: .45rem 1.1rem; border-radius: 3px; cursor: pointer;
  border: 1px solid var(--accent); background: var(--accent); color: #fff;
}
.picker-actions .go:hover { filter: brightness(1.08); }

/* ---- home: the entities served, as cards ---- */
.entities { list-style: none; margin: 2rem 0 0; padding: 0; }
.entities li + li { margin-top: .9rem; }
.entity-card {
  position: relative; display: grid; grid-template-columns: 2.6rem 1fr auto 1.4rem; column-gap: 1.25rem; align-items: center;
  padding: 1.35rem 1.5rem 1.35rem 1.25rem;
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 4px;
  color: var(--ink); text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.entity-card::before {   /* accent rule that appears on hover, like the catalogue's connector */
  content: ""; position: absolute; left: -1px; top: 1rem; bottom: 1rem; width: 2px;
  background: var(--accent); opacity: 0; transition: opacity .15s ease;
}
.entity-card:hover { border-color: var(--accent); box-shadow: 0 6px 20px rgba(0,0,0,.05); text-decoration: none; }
.entity-card:hover::before { opacity: 1; }
.entity-card:hover .name, .entity-card:hover .arrow { color: var(--accent); }
.entity-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.entity-card .idx { font-family: var(--mono); font-size: .82rem; color: var(--ink-3); letter-spacing: .06em; align-self: start; padding-top: .2rem; }
.entity-card .who { display: flex; flex-direction: column; min-width: 0; }
.entity-card .kind { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.entity-card .name { font-family: var(--serif); font-size: 1.45rem; line-height: 1.2; margin-top: .3rem; color: var(--ink); transition: color .15s ease; }
.entity-card .rfc { font-family: var(--mono); font-size: .82rem; letter-spacing: .05em; color: var(--ink-2); margin-top: .45rem; }
.entity-card .banks { display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; }
.entity-card .bank {
  font-size: .78rem; letter-spacing: .03em; color: var(--ink-2); white-space: nowrap;
  padding: .25rem .6rem; border: 1px solid var(--line); border-radius: 3px; background: var(--bg);
}
.entity-card .arrow { color: var(--ink-3); font-size: 1rem; text-align: right; transition: color .15s ease, transform .15s ease; }
.entity-card:hover .arrow { transform: translateX(3px); }

/* ---- entity: its bank accounts, one button each ---- */
.bank-list { list-style: none; margin: 0; padding: 0; }
.bank-list li + li { margin-top: .6rem; }
.bank-list .bank {
  display: flex; align-items: center; gap: .9rem;
  padding: .9rem 1.15rem; border: 1px solid var(--line-strong); border-radius: 4px;
  background: var(--paper); color: var(--ink); text-decoration: none;
  transition: border-color .12s ease;
}
.bank-list .bank:hover { border-color: var(--accent); text-decoration: none; }
.bank-list .bank:hover .arrow, .bank-list .bank:hover .bank-name { color: var(--accent); }
.bank-name { font-family: var(--serif); font-size: 1.15rem; }
.bank-list .sep { width: 1px; height: 1.1rem; background: var(--line-strong); }
.bank-num { font-family: var(--mono); font-size: .95rem; letter-spacing: .04em; }
.bank-meta { margin-left: auto; font-size: .78rem; color: var(--ink-3); letter-spacing: .06em; }
.bank-list .arrow { color: var(--ink-3); font-size: .95rem; }

/* ---- bank account: facts, the months of each year, the multi-period query ---- */
.sec .facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 3rem; margin: 0;
}
.sec .facts > div {
  display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; align-items: baseline;
  padding: .55rem 0; border-bottom: 1px solid var(--line);
}
.sec .facts dt { margin: 0; font-size: .78rem; color: var(--ink-3); }
.sec .facts dd { margin: 0; color: var(--ink); }
.status::before {
  content: ""; display: inline-block; width: .5rem; height: .5rem; border-radius: 50%;
  background: var(--credit); margin-right: .5rem; vertical-align: 1px;
}
.status.inactive::before { background: var(--ink-3); }
.months {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: .4rem;
  padding: .1rem 0 1.1rem 1.65rem;
}
.months a, .months span {
  display: block; text-align: center; padding: .45rem 0; border-radius: 3px;
  font-size: .82rem; line-height: 1; text-transform: lowercase;
}
.months a { color: var(--ink); background: var(--paper); border: 1px solid var(--line-strong); }
.months a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.months span { color: var(--ink-3); border: 1px dotted var(--line-strong); }
.page .note { margin: 0; color: var(--ink-2); font-size: .9rem; max-width: 40rem; line-height: 1.5; }   /* an empty state, in words */
.entity-card .bank.none { color: var(--ink-3); border-style: dashed; }
.multi .note { margin: 0 0 1rem; color: var(--ink-2); font-size: .9rem; max-width: 40rem; }
.multi .picker-form { border: 1px solid var(--line-strong); border-radius: 3px; background: var(--paper); }

/* ---- period: the picker in a card, then the run of statements ---- */
.picker { margin-top: 1.25rem; border: 1px solid var(--line-strong); border-radius: 3px; background: var(--paper); }
.picker > summary { gap: .8rem; padding: .7rem 1rem; font-size: .9rem; }
.picker .val { color: var(--ink); }
.picker .n { color: var(--ink-3); font-size: .82rem; }
.picker .change { margin-left: auto; color: var(--accent); font-size: .82rem; }
.picker[open] .change { visibility: hidden; }
.picker .picker-form { border-top: 1px solid var(--line); }

.run-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.run-tools { display: flex; align-items: center; gap: .6rem; font-size: .8rem; }
.run-tools button { font: inherit; font-size: .8rem; padding: 0; border: 0; background: none; color: var(--ink-2); cursor: pointer; }
.run-tools button:hover { color: var(--accent); }
.run-tools .sep { width: 1px; height: .9rem; background: var(--line-strong); }

/* one month per statement in a single scroll box; each month's head sticks
   to the top and is pushed out by the next one */
.run { --month-head: 3rem; min-height: 16rem; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.month > summary {
  position: sticky; top: 0; z-index: 3;
  display: grid; align-items: center; column-gap: 1.25rem;
  grid-template-columns: .8rem 9.5rem 11rem 11rem 1fr auto;
  height: var(--month-head); padding: 0 .25rem 0 0;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.month .caret { font-size: .8rem; }
.month .y { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); }
.month .bal { font-family: var(--mono); font-size: .85rem; color: var(--ink-2); }
.month .bal .lit { font-family: var(--sans); font-size: .68rem; margin-right: .35rem; }
.month .n { justify-self: end; font-size: .82rem; color: var(--ink-3); }
.month .open { font-size: .82rem; color: var(--ink-3); }
.month .open:hover { color: var(--accent); text-decoration: none; }
/* the month's table, set in under the month head; its column head sticks just below that head */
.run .t { margin-bottom: 1rem; }
.run .t thead th { top: var(--month-head); z-index: 2; }
.run .t th:first-child, .run .t td:first-child { padding-left: 1.05rem; }

/* ---- the catalogues: groups on the left, the selected group's entries on the right ---- */
.siblings { display: flex; align-items: baseline; gap: 1.1rem; }
.siblings a { color: var(--ink-3); text-decoration: none; }
.siblings a:hover { color: var(--accent); }

/* search: an icon that unfolds an input; matches drop down as cards that jump to the entry */
.search { position: relative; display: inline-flex; align-items: center; height: 2rem; border: 1px solid transparent; border-radius: 3px; transition: border-color .15s; }
.search.open { border-color: var(--line-strong); background: var(--paper); }
.search input {
  width: 0; opacity: 0; padding: 0; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: .9rem; color: var(--ink); height: 100%;
  transition: width .2s ease, opacity .15s ease, padding .2s ease;
}
.search.open input { width: 18rem; opacity: 1; padding: 0 .3rem 0 .7rem; }
.search input::-webkit-search-cancel-button { display: none; }
.search-btn {
  appearance: none; border: 0; background: transparent; color: var(--ink-2);
  width: 2rem; height: 100%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.search-btn:hover, .search.open .search-btn { color: var(--accent); }
.results {
  position: absolute; top: calc(100% + .4rem); right: 0; z-index: 20;
  width: 30rem; max-height: 24rem; overflow-y: auto; scrollbar-width: thin; padding: .3rem 0;
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 3px;
  box-shadow: 0 6px 20px rgba(0,0,0,.08); text-align: left;
}
.opt {
  display: grid; grid-template-columns: 4.6rem 1fr; column-gap: .8rem; align-items: baseline;
  padding: .55rem .9rem; cursor: pointer;
}
.opt + .opt { border-top: 1px solid var(--line); }
.opt .in { display: block; margin-top: .1rem; font-size: .75rem; color: var(--ink-3); }
.opt .in .id { font-size: .72rem; }
.opt.is-group .label { font-family: var(--serif); font-size: 1.02rem; }
.opt.active, .opt:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.opt.active .label { color: var(--accent); }
.results .none { padding: .6rem .9rem; color: var(--ink-3); font-size: .85rem; }

/* the two panes: both fill the rest of the viewport and scroll on their own */
.flow {
  --gap: 2.5rem;
  display: grid; grid-template-columns: calc(22rem + var(--gap)) 1fr;
  height: calc(100dvh - var(--top, 0px)); min-height: 20rem;
}
.groups, .detail { min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; }
.groups { padding-right: var(--gap); }   /* the gap lives inside the pane so the connector can cross it */
.detail { border-left: 1px solid var(--line-strong); padding-left: var(--gap); }
.cat .id { font-family: var(--mono); color: var(--ink-2); font-size: .82rem; letter-spacing: .04em; }
.cat a.id { text-decoration: underline dotted var(--line-strong); text-underline-offset: 3px; }
.cat a.id:hover { color: var(--accent); text-decoration-color: var(--accent); }
.cat .label { display: block; min-width: 0; color: var(--ink); }
/* the info icon: hovering it shows the description as a hover label */
.info {
  display: inline-flex; align-items: center; justify-content: center; width: 1.2rem; height: 1.2rem;
  color: var(--line-strong); cursor: help; align-self: center; vertical-align: middle;
}
.group:hover .info, .account:hover .info, .pane-head .info { color: var(--ink-3); }
.info:hover { color: var(--accent); }
/* left: the groups */
.group {
  position: relative; display: grid; grid-template-columns: 3rem 1fr auto auto; column-gap: .6rem; align-items: baseline;
  padding: .8rem .6rem .8rem .5rem; border-bottom: 1px solid var(--line); cursor: pointer; user-select: none;
}
.group .label { font-family: var(--serif); font-size: 1.05rem; }
.group .more { color: var(--ink-3); font-size: 1.1rem; line-height: 1; align-self: center; margin-left: .2rem; }
.group:hover .label, .group:focus-visible .label { color: var(--accent); }
.group:focus-visible { outline: 0; }
.group.on { background: color-mix(in srgb, var(--accent) 6%, transparent); border-bottom-color: var(--accent); }
.group.on .label, .group.on .more { color: var(--accent); }
.group.on::after {   /* connector into the detail pane */
  content: ""; position: absolute; top: 50%; right: calc(-1 * var(--gap)); width: var(--gap);
  border-top: 1px solid var(--accent);
}
/* kinds (providers catalogue): no id column; a count sits beside the label */
.group.kind { grid-template-columns: 1fr auto auto auto; }
.group .n { font-family: var(--mono); font-size: .78rem; color: var(--ink-3); align-self: center; }
.group.on .n { color: var(--accent); }
/* right: the selected group's header stays put while its entries scroll */
.pane-head {
  position: sticky; top: 0; z-index: 1; background: var(--bg);
  padding: .4rem 0 1rem; border-bottom: 1px solid var(--line-strong);
}
.pane-head .id { display: block; margin-bottom: .2rem; }
.pane-head .label { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; letter-spacing: 0; text-transform: none; margin: 0; color: var(--accent); }
.pane-head .info { margin-left: .2rem; }
.account {
  display: grid; grid-template-columns: 4.6rem 1fr auto; column-gap: .6rem; align-items: baseline;
  padding: .7rem .6rem .7rem 0; border-bottom: 1px solid var(--line);
}
.account .label { font-size: .95rem; }
.account .rfc { font-family: var(--mono); font-size: .78rem; color: var(--ink-3); letter-spacing: .03em; }
.account:has(.rfc) { grid-template-columns: 4.6rem 1fr auto auto; }
.account.hit { background: color-mix(in srgb, var(--accent) 8%, transparent); border-bottom-color: var(--accent); }
.account.hit .label { color: var(--accent); }

/* ---- the fold tables of the analysis pages ---- */
.pivot th, .pivot td { height: 2.3rem; }
.pivot thead th {
  background: var(--paper); height: 3rem; padding-top: .9rem; vertical-align: bottom; padding-bottom: .55rem;
}
.pivot .r { width: 8.5rem; }
.pivot .name { width: 100%; max-width: 0; padding-left: calc(var(--lvl, 0) * 1.6rem); }
.pivot .l1 { --lvl: 1; } .pivot .l2 { --lvl: 2; } .pivot .l3 { --lvl: 3; } .pivot .l4 { --lvl: 4; } .pivot .l5 { --lvl: 5; }
.pivot tbody tr:last-child td { border-bottom: 0; }
.pivot tfoot td {
  position: sticky; bottom: 0; z-index: 1; background: var(--paper);
  height: 3.1rem; padding-bottom: .5rem; border-bottom: 0; border-top: 1px solid var(--line-strong); font-weight: 500;
}
/* subject rows unfold on a click anywhere but a link; their figures are set in ink-2 */
.pivot .sub { cursor: pointer; }
.pivot .sub td { color: var(--ink-2); }
.pivot .sub:hover td { background-color: var(--bg); }
.pivot .tg {
  appearance: none; border: 0; background: none; padding: 0; margin: 0; width: 1.2rem;
  color: var(--ink-3); cursor: pointer; font: inherit; font-size: .75rem; text-align: left; vertical-align: 1px;
}
.pivot .tg::before { content: "▸"; display: inline-block; transition: transform .12s ease; }
.pivot .tg[aria-expanded=true]::before { transform: rotate(90deg); }
.pivot .tg:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.pivot .sub:hover .tg { color: var(--accent); }
.pivot .id { color: var(--ink-2); text-decoration: underline dotted var(--line-strong); text-underline-offset: 3px; margin-right: .55rem; }
.pivot .id:hover { color: var(--accent); text-decoration-color: var(--accent); }
.pivot a.lbl { text-decoration: underline dotted var(--line-strong); text-underline-offset: 3px; }
.pivot a.lbl:hover { color: var(--accent); text-decoration-color: var(--accent); }
/* three levels, told apart: tinted first-level rows, plain second-level rows,
   small muted movement rows; guide lines drop from each open parent's caret */
.pivot .l0 td { background-color: color-mix(in srgb, var(--chip) 45%, var(--paper)); height: 2.5rem; }
.pivot .l0 .lbl { font-weight: 500; font-size: .92rem; }
.pivot .l0 .tg { color: var(--ink-2); }
.pivot .sub.l0:hover td { background-color: color-mix(in srgb, var(--chip) 80%, var(--paper)); }
.pivot .l1 .lbl { color: var(--ink-2); }
.pivot .l1 .name, .pivot .l2 .name { background-repeat: no-repeat; }
.pivot .l1 .name {
  background-image: linear-gradient(var(--line-strong), var(--line-strong));
  background-size: 1px 100%; background-position: .3rem 0;
}
.pivot .l2 .name {
  background-image: linear-gradient(var(--line-strong), var(--line-strong)), linear-gradient(var(--line-strong), var(--line-strong));
  background-size: 1px 100%, 1px 100%; background-position: .3rem 0, 1.9rem 0;
}
/* movement rows: the date and the head (or the printed concept, muted, when none
   is set); a click opens the movement dialog */
.pivot .mov { cursor: pointer; }
.pivot .mov td { height: 2rem; font-size: .8rem; color: var(--ink-2); border-bottom-style: dotted; }
.pivot .mov .m { display: flex; align-items: baseline; gap: .7rem; padding-left: 1.2rem; min-width: 0; }
.pivot .mov .d { flex-shrink: 0; font-family: var(--mono); font-size: .76rem; color: var(--ink-3); }
.pivot .mov .head { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pivot .mov .head.none { color: var(--ink-3); font-style: italic; }
.pivot .mov .r { font-size: .8rem; }
.pivot .mov:hover td { background-color: var(--bg); }
.pivot .mov:hover .head { color: var(--accent); }

/* ---- narrow screens ---- */
@media (max-width: 900px) {
  main { padding: 1rem; }
  .head { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .head.stack { display: block; }
  .head h1 { flex-wrap: wrap; }
  .head.tool-top .tool { margin-top: 0; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .tiles > div:nth-child(3n+1) { padding-left: 0; border-left: 0; }
  .tiles > div:nth-child(n+4) { border-top: 1px solid var(--line); }
  .tiles.c5, .tiles.c4 { grid-template-columns: repeat(2, 1fr); }
  .tiles.c5 > div:nth-child(odd), .tiles.c4 > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .tiles.c5 > div:nth-child(even), .tiles.c4 > div:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--line); }
  .tiles.c5 > div:nth-child(n+3), .tiles.c4 > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .panel { padding: .75rem .9rem 1rem; }
  .tablist { gap: 1.25rem; }
  .sum-fold > summary { flex-wrap: wrap; }
  .sum-fold > summary .n { flex-basis: 100%; margin-left: 1.4rem; white-space: normal; }
  table.pivot { min-width: 50rem; }   /* the columns keep their width; the card scrolls sideways too */
}
@media (max-width: 720px) {
  .sec .facts { grid-template-columns: 1fr; column-gap: 0; }
  .sec-body { padding-left: 0; }
  .months { grid-template-columns: repeat(6, 1fr); padding-left: 0; }
  .picker-form { grid-template-columns: 1fr; }
  .month > summary { grid-template-columns: .8rem 1fr auto; row-gap: .25rem; height: auto; padding: .6rem .25rem .6rem 0; }
  .month .bal { grid-column: 2 / -1; }
  .search.open input { width: 12rem; }
  .results { width: calc(100vw - 2rem); right: auto; left: 0; }
  .flow { display: block; height: auto; }
  .groups, .detail { overflow: visible; }
  .groups { padding-right: 0; }
  .detail { border-left: 0; padding-left: 0; margin-top: 1.5rem; }
  .group.on::after { display: none; }
}
@media (max-width: 640px) {
  .home-head { padding-top: 1.5rem; }
  .entity-card { grid-template-columns: 2.2rem 1fr 1.2rem; column-gap: .9rem; padding: 1.1rem 1.1rem 1.1rem 1rem; }
  .entity-card .banks { grid-column: 2; grid-row: 2; flex-direction: row; flex-wrap: wrap; align-items: flex-start; margin-top: .8rem; }
  .entity-card .arrow { grid-row: 1; }
  .entity-card .name { font-size: 1.25rem; }
  .movement .facts { grid-template-columns: 1fr; }
}

/* ---- the login, the password change and the reset link: one narrow column ---- */
.auth { max-width: 24rem; margin: 3rem auto 0; }
.auth .head { padding-top: 0; }
.auth form { display: flex; flex-direction: column; gap: 1.1rem; margin-top: 1.5rem; }
.auth label { display: flex; flex-direction: column; gap: .4rem; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.auth input {
  font: inherit; font-size: .95rem; letter-spacing: 0; text-transform: none; color: var(--ink);
  padding: .55rem .7rem; border: 1px solid var(--line-strong); border-radius: 3px; background: var(--paper);
}
.auth input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.auth .go {
  align-self: flex-start; font: inherit; font-size: .88rem; padding: .5rem 1.2rem; border-radius: 3px; cursor: pointer;
  border: 1px solid var(--accent); background: var(--accent); color: #fff;
}
.auth .go:hover { filter: brightness(1.08); }
.auth .note { margin: 1.25rem 0 0; color: var(--ink-2); font-size: .92rem; }
.auth .hint { margin: -.5rem 0 0; color: var(--ink-3); font-size: .8rem; }
.auth .err { margin: 0; color: var(--debit); font-size: .9rem; }
.auth .foot { margin: 1.5rem 0 0; font-size: .88rem; }
