/*
 * Kontor landing: dark hero scenes of the product pages (2026-11-09, second round).
 * The hero takes the look of the story sections (story.css): page colour with the dot grid, white type, large
 * numbers and one simple picture instead of an app screen. The page sets the colour on <body class="mk hz-page"
 * style="--hz-bg:…">; the nav spacer takes it too, so the hero starts at the top edge. The steps run on hx.js.
 */
/* engine (hx.js): steps, stacks and the state without JavaScript */
.hx.hx-boot, .hx.hx-boot * { transition: none !important; }
.hz-stage > * { transition: opacity .45s ease; }
.hz-stage.hx-out > * { opacity: 0; }
.hz-stage *, .hz-stage *::before, .hz-stage *::after { box-sizing: border-box; }
.hz-stage .hx-stack { display: grid; }
.hz-stage .hx-stack > * { grid-area: 1 / 1; min-width: 0; }
.hz-stage.js [data-in] { opacity: 0; transition: opacity .45s ease, transform .5s cubic-bezier(.2,.7,.2,1); }
.hz-stage.js [data-in].hx-on { opacity: 1; transform: none; }
.hz-stage.js .hx-gone { opacity: 0 !important; }
.hz-stage.hx-reset [data-in] { opacity: 0 !important; transition-duration: .35s; }
.hz-stage:not(.js) [data-nojs="hide"] { display: none; }
@media (prefers-reduced-motion: reduce) { .hz-stage [data-in] { transition: none !important; } }

/* One accent on the slate for every scene (Stefan 2026-11-10): the light platform blue. Green and amber appear only where
 * they mean something: green paid or favourable, amber overdue or unfavourable. */
body.hz-page { --hz-bg: #1D2F47; --hz-hi: #9DBEFA; }
/* The hero itself stays neutral like the start page and E-Rechnung (Stefan 2026-11-09, 22:34); only the picture sits on
 * a card in the page colour with the dot grid. On phones the card runs to the screen edges. */
.mk-hero.hz .mk-vis > .hz-stage { padding: 28px 30px 30px; border-radius: 20px; background-color: var(--hz-bg);
  background-image: radial-gradient(rgba(255,255,255,.17) 1.25px, transparent 1.7px); background-size: 22px 22px;
  box-shadow: 0 30px 70px -40px rgba(14,24,48,.55); }
@media (max-width: 600px) {
  .mk-hero.hz .mk-vis > .hz-stage { margin: 0 calc(-1 * var(--landing-gutter, 20px)); padding: 24px var(--landing-gutter, 20px) 26px; border-radius: 0; box-shadow: none; }
}

.hz-stage { position: relative; font-family: 'Geist', 'Inter', 'Helvetica Neue', Arial, sans-serif; color: #fff; }
.hz-label { font-size: 15px; color: rgba(255,255,255,.58); white-space: nowrap; }
.hz-top { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.hz-count { display: flex; gap: clamp(20px, 2.6vw, 36px); }
.hz-count div { display: flex; flex-direction: column; gap: 2px; }
.hz-count small { font-size: 14px; color: rgba(255,255,255,.58); white-space: nowrap; }
.hz-count b { font-weight: 500; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hz-count .hi b { color: var(--hz-hi); }
.hx.js .hz-count[data-in] { opacity: .35; transition: opacity .5s ease; }
.hx.js .hz-count[data-in].hx-on { opacity: 1; }
.hz-cap { margin-top: 22px; min-height: 3.2em; font-size: 18px; line-height: 1.5; color: rgba(255,255,255,.8); }
.hz-cap p { margin: 0; max-width: 46ch; text-wrap: pretty; }
.hz-cap b { color: #fff; font-weight: 500; }
.hz-cap span { display: inline-block; margin-right: 10px; padding: 2px 10px; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; font-size: 14px; font-weight: 500; vertical-align: 2px; }

/* hx.js visibility for the hz parts */
.hx.js .hz-cap > p { opacity: 0; transform: translateY(6px); transition: opacity .45s ease, transform .45s ease; }
.hx.js .hz-cap > p.hx-on { opacity: 1; transform: none; transition-delay: .3s; }
.hx.js .hz-cap > p:not(.hx-on), .hx.js .hz-cap > p.hx-gone { transition-duration: .2s; transition-delay: 0s; }
.hx.js.hx-reset .hz-cap > p { transition: none; }

/* ── revenue recognition ────────────────────────────────────────────────────────────────────────── */
.hzu-plot { position: relative; margin-top: 18px; }
.hzu-svg { display: block; width: 100%; height: auto; overflow: visible; }
.hzu-svg rect { fill: rgba(255,255,255,.9); transform: translate(var(--x0), var(--y0));
  transition: transform .9s cubic-bezier(.5,0,.2,1), fill .5s ease; transition-delay: calc(var(--i) * 2.4ms), 0s; }
.hzu-svg.spread rect { transform: translate(var(--x1), var(--y1)); fill: rgba(255,255,255,.2); }
.hzu-svg.spread g.on rect { fill: var(--hz-hi); transition-delay: calc(var(--i) * 2.4ms), calc((var(--i) - 0) * 0ms); }
.hx.hx-reset .hzu-svg rect { transition: none; }
.hzu-pile { position: absolute; left: calc(330 / 680 * 100%); top: 0; display: flex; flex-direction: column; gap: 2px;
  font-size: 15px; color: rgba(255,255,255,.58); white-space: nowrap; }
.hzu-pile b { font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; color: #fff; font-variant-numeric: tabular-nums; }
.hx.js .hzu-pile { opacity: 0; transition: opacity .4s ease; }
.hx.js .hzu-pile.hx-on { opacity: 1; transition-delay: .3s; }
.hx:not(.js) .hzu-pile { display: none; }
.hzu-mon { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); margin: 10px calc(6 / 680 * 100%) 0 calc(6 / 680 * 100%);
  column-gap: calc(8 / 680 * 100%); font-size: 13px; color: rgba(255,255,255,.45); }
.hzu-mon span { text-align: center; transition: color .3s ease; }
.hzu-mon span.on { color: rgba(255,255,255,.85); }
/* without JavaScript: the end of the story */
.hx:not(.js) .hzu-svg rect { transform: translate(var(--x1), var(--y1)); fill: var(--hz-hi); }

/* ── shared for the picture scenes ─────────────────────────────────────────────────────────────── */
.hz-stage span.hx-stack { display: inline-grid; }
.za-cap { margin: 18px 0 0; max-width: 52ch; font-size: 17px; line-height: 1.5; color: rgba(255,255,255,.78); text-wrap: pretty; }
.hz-count .am b { color: #F7C27C; }

/* ── 2 dunning: four countries ──────────────────────────────────────────────────────────────────── */
.zm-tab { margin-top: 20px; display: flex; flex-direction: column; }
.zm-hd, .zm-ln { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.5fr) 92px 80px; column-gap: 18px; align-items: center; }
.zm-hd { padding-bottom: 10px; font-size: 13px; color: rgba(255,255,255,.55); }
.zm-hd span:nth-child(n+3) { text-align: right; }
.zm-ln { padding: 14px 0; border-top: 1px solid rgba(255,255,255,.1); }
.zm-ln .who { display: flex; align-items: center; gap: 10px; font-size: 15.5px; font-weight: 500; min-width: 0; }
.zm-ln .who i { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.12); font-style: normal; font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.zm-ln .trk { position: relative; height: 4px; border-radius: 2px; background: rgba(255,255,255,.14); }
.zm-ln .run { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 2px; background: var(--hz-hi); }
.zm-ln .dot { position: absolute; left: 0; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; }
.zm-ln .end { position: absolute; right: -7px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); box-sizing: border-box; background: var(--hz-bg); transition: background-color .3s ease, border-color .3s ease; }
.zm-ln b { text-align: right; font-size: clamp(20px, 2vw, 26px); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.zm-ln .rate { color: var(--hz-hi); }
.zm-tab .run, .zm-tab .dot { transition: width 1.5s cubic-bezier(.4,0,.2,1), left 1.5s cubic-bezier(.4,0,.2,1); transition-delay: calc(var(--k) * .18s); }
.zm-tab.go .run { width: 100%; }
.zm-tab.go .dot { left: 100%; }
.zm-tab.go .end { background: var(--hz-hi); border-color: var(--hz-hi); transition-delay: calc(1.4s + var(--k) * .18s); }
.hx.js .zm-ln b { opacity: 0; transform: translateY(6px); transition: opacity .4s ease, transform .4s ease; }
.hx.js .zm-tab.val .zm-ln b { opacity: 1; transform: none; transition-delay: calc(var(--k) * .22s); }
.hx.js .zm-tab.val .zm-ln b.fee { transition-delay: calc(var(--k) * .22s + .1s); }
.hx.hx-reset .zm-tab * { transition: none !important; }
.hx:not(.js) .zm-ln .run { width: 100%; }
.hx:not(.js) .zm-ln .dot { left: 100%; }


/* ── 1 automated accounting: net to the expense account, tax to the tax account ───────────────────── */
.ya-plot { position: relative; margin-top: 14px; }
.ya-plot.m { display: none; }
.ya-bg { display: block; width: 100%; height: auto; overflow: visible; }
.ya-fly { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ya-bg .bx { fill: rgba(255,255,255,.06); stroke: rgba(255,255,255,.2); }
.ya-bg .bx.tx { fill: rgba(157,190,250,.07); stroke: rgba(157,190,250,.32); }
.ya-plot .hd, .ya-plot .ib { position: absolute; transform: translateY(-50%); font-size: 13px; color: rgba(255,255,255,.6); white-space: nowrap; }
.ya-plot .ib { transform: none; font-size: 12.5px; }
.ya-plot .bl { position: absolute; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 14px; min-width: 0; }
.ya-plot .bl .nm { min-width: 0; font-size: 13.5px; line-height: 1.25; color: rgba(255,255,255,.72); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ya-plot .bl .nm b { color: #fff; font-weight: 500; }
.ya-plot .bl .sm { font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ya-plot .bl.t .sm { color: var(--hz-hi); }
.ya-fly .d { transform: translate(var(--x0), var(--y0)); transform-box: fill-box; transform-origin: center; }
.ya-fly .d rect { fill: #F7F4EE; stroke: rgba(0,0,0,.14); }
.ya-fly .d path { fill: none; stroke: #C9C3B8; stroke-width: 2; stroke-linecap: round; }
.ya-fly .d.go { animation: ya-doc .95s cubic-bezier(.45,0,.25,1) both; }
@keyframes ya-doc { 0% { transform: translate(var(--x0), var(--y0)); opacity: 1; } 62% { transform: translate(var(--x1), var(--y1)); opacity: 1; }
  100% { transform: translate(var(--x1), var(--y1)) scale(.4); opacity: 0; } }
.ya-fly .c { opacity: 0; transform: translate(var(--x0), var(--y0)); transform-box: fill-box; transform-origin: center; }
.ya-fly .c rect { fill: var(--hz-hi); }
.ya-fly .c text { font-size: 11.5px; font-variant-numeric: tabular-nums; font-weight: 700; fill: #1D2F47; }
.ya-fly .c.go { animation: ya-chip 1.3s cubic-bezier(.45,0,.25,1) both; animation-delay: calc(var(--j) * .12s); }
@keyframes ya-chip { 0%, 44% { opacity: 0; transform: translate(var(--x0), var(--y0)) scale(.6); } 52% { opacity: 1; transform: translate(var(--x0), var(--y0)); }
  88% { opacity: 1; transform: translate(var(--x1), var(--y1)); } 100% { opacity: 0; transform: translate(var(--x1), var(--y1)) scale(.6); } }
.hx:not(.js) .ya-fly { display: none; }
@media (prefers-reduced-motion: reduce) { .ya-fly { display: none; } }

/* ── 3 invoices and receivables: written, issued, paid ─────────────────────────────────────────── */
.yr-board { margin-top: 18px; }
.yr-heads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 8px; font-size: 13.5px; color: rgba(255,255,255,.62); }
.yr-cols { position: relative; --rh: 76px; --cw: calc((100% - 28px) / 3); height: calc(5 * var(--rh) + 10px); }
.yr-cols > i { position: absolute; top: 0; bottom: 0; width: var(--cw); border-radius: 12px; border: 1px dashed rgba(255,255,255,.14); background: rgba(255,255,255,.035); }
.yr-cols > i:nth-child(2) { left: calc(var(--cw) + 14px); }
.yr-cols > i:nth-child(3) { right: 0; }
.yr-c { position: absolute; --c: var(--c0); --r: var(--r0);
  left: calc(var(--c) * (var(--cw) + 14px) + 6px); top: calc(var(--r) * var(--rh) + 6px); width: calc(var(--cw) - 12px); height: calc(var(--rh) - 8px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 2px; padding: 7px 10px; border-radius: 8px; border: 2px solid transparent;
  background: #fff; color: #1F2633; box-shadow: 0 16px 40px -24px rgba(0,0,0,.7); }
.yr-c.p1 { --c: var(--c1); --r: var(--r1); } .yr-c.p2 { --c: var(--c2); --r: var(--r2); } .yr-c.p3 { --c: var(--c3); --r: var(--r3); }
.yr-c.p4 { --c: var(--c4); --r: var(--r4); } .yr-c.p5 { --c: var(--c5); --r: var(--r5); } .yr-c.p6 { --c: var(--c6); --r: var(--r6); }
.hx.js .yr-c[data-in] { transition: opacity .45s ease, left .85s cubic-bezier(.45,0,.2,1), top .6s ease, background .4s ease, border-color .4s ease;
  transition-delay: calc(var(--k) * 80ms); }
.yr-c > * { flex: none; }
.yr-c .l1 { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.yr-c code { font-family: inherit; font-size: 11px; font-weight: 600; color: #1D2F47; }
.yr-c .bd { font-size: 10.5px; font-weight: 600; }
.yr-c .bd > * { justify-self: end; display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px; border-radius: 4px; background: #EEF2F9; color: #1B3A6B; white-space: nowrap; }
.yr-c .bd svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 3; }
.yr-c .who { font-size: 12px; color: #4A5568; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yr-c > b { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.yr-c.pd { background: #E2F6EE; }
.yr-c.pd .bd > * { background: #1F7A4D; color: #fff; }
.yr-c.late { border-color: #F7C27C; }
.yr-c.late .bd > * { background: #FCE6C4; color: #7A4A0B; }
.hx:not(.js) .yr-c { --c: var(--c6); --r: var(--r6); }
.hx:not(.js) .yr-c:nth-child(-n+7) { background: #E2F6EE; }
.hx:not(.js) .yr-c:nth-child(-n+7) .bd > * { background: #1F7A4D; color: #fff; }
.hx:not(.js) .yr-c:nth-child(8) { border-color: #F7C27C; }
.hx:not(.js) .yr-c:nth-child(8) .bd > * { background: #FCE6C4; color: #7A4A0B; }

/* ── 4 development costs: research below the line, development above it ──────────────────────────── */
.yd-plot { position: relative; margin-top: 14px; padding-top: 36px; }
.yd-plot .sd { position: absolute; font-size: 13px; color: rgba(255,255,255,.62); white-space: nowrap; }
.yd-plot .sd.up { left: 0; top: 6px; }
.yd-plot .sd.dn { right: 0; bottom: 0; }
.yd-plot .gt { position: absolute; top: 0; left: calc(50% + 5px); padding: 4px 11px; border-radius: 999px; background: var(--hz-hi); color: #1D2F47; font-size: 13px; font-weight: 600; white-space: nowrap; }
.yd-cols { position: relative; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; height: 240px; }
.yd-cols::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: rgba(255,255,255,.55); }
.yd-cols .cl { position: relative; }
.yd-cols .cl.g::before { content: ''; position: absolute; left: -6px; top: -8px; bottom: -8px; border-left: 1.5px dashed rgba(255,255,255,.25); transition: border-color .4s ease; }
.yd-plot.dev .cl.g::before { border-color: var(--hz-hi); }
.yd-cols .br { position: absolute; left: 0; right: 0; height: calc(var(--h) * .44); border-radius: 4px; transform: scaleY(0); transition: transform .6s cubic-bezier(.3,0,.2,1); }
.yd-cols .up .br { bottom: 50%; transform-origin: bottom; background: var(--hz-hi); }
.yd-cols .dn .br { top: 50%; transform-origin: top; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.42); }
.yd-cols .br.on { transform: none; }
.yd-cols .mo { position: absolute; left: 0; right: 0; text-align: center; font-size: 12.5px; color: rgba(255,255,255,.4); transition: color .4s ease; }
.yd-cols .dn .mo { bottom: calc(50% + 7px); }
.yd-cols .up .mo { top: calc(50% + 7px); }
.yd-cols .mo.on { color: rgba(255,255,255,.9); }
.hx:not(.js) .yd-cols .br { transform: none; }
.hx:not(.js) .yd-plot .cl.g::before { border-color: var(--hz-hi); }

/* ── 5 budget: one month as a table, budget against forecast against actual ────────────────────────── */
.yb-t { display: grid; grid-template-columns: minmax(0, 1.1fr) repeat(3, minmax(0, .8fr)) minmax(0, 1.5fr); margin-top: 22px; }
.yb-t .hr, .yb-t .tr { display: contents; }
.yb-t .hr span { padding: 0 0 10px; border-bottom: 1px solid rgba(255,255,255,.22); font-size: 13px; color: rgba(255,255,255,.6); white-space: nowrap; }
.yb-t .hr .c0, .yb-t .hr .c1, .yb-t .hr .c2, .yb-t .v { text-align: right; padding-right: 18px; }
.yb-t .hr .c3 { padding-left: 8px; }
.yb-t .tr > * { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.yb-t .tr > .nm, .yb-t .tr > .v { display: flex; align-items: center; }
.yb-t .tr > .v { justify-content: flex-end; padding-right: 18px; }
.yb-t .nm { font-size: 17px; font-weight: 500; }
.yb-t .v { font-size: clamp(20px, 1.9vw, 26px); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.yb-t .v.c0 { color: rgba(255,255,255,.72); }
.yb-t .v.c1 { color: rgba(255,255,255,.72); }
.yb-t .v.c2 { color: var(--hz-hi); }
.yb-t .dv { display: flex; align-items: center; gap: 10px; padding-left: 8px; color: #F7C27C; }
.yb-t .dv em { flex: none; min-width: 5.2em; font-style: normal; font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }
.yb-t .dv i { position: relative; flex: 1; height: 10px; border-right: 1.5px solid rgba(255,255,255,.45); }
.yb-t .dv s { position: absolute; right: 0; top: 0; bottom: 0; width: var(--w); border-radius: 3px 0 0 3px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .8s cubic-bezier(.3,0,.2,1); }
.yb-t .dv.ok { color: #9BE3B4; }
.yb-t .dv em { opacity: 0; transition: opacity .45s ease; }
.yb-t .dv.on em { opacity: 1; }
.yb-t .dv.on s { transform: none; }
.yb-nt { margin: 14px 0 0; padding-left: 10px; border-left: 2px solid #F7C27C; font-size: 14px; color: #F7C27C; }
.hx:not(.js) .yb-t .dv em { opacity: 1; }
/* round 8 (Stefan 2026-11-10, 11:21): the actual first, then budget and forecast, each with its variance as a figure */
.yb-t.yb8 { grid-template-columns: minmax(0, 1fr) repeat(2, minmax(0, .8fr)) minmax(0, .75fr) minmax(0, 1fr) minmax(0, .75fr); }
.yb-t.yb8 .hr span { text-align: right; padding-right: 14px; padding-left: 0; }
.yb-t.yb8 .hr span:first-child { text-align: left; }
.yb-t.yb8 .tr > .v { padding-right: 14px; font-size: clamp(18px, 1.6vw, 23px); }
.yb-t.yb8 .v.c0 { color: var(--hz-hi); }
.yb-t.yb8 .v.c1, .yb-t.yb8 .v.c3 { color: rgba(255,255,255,.72); }
.yb-t.yb8 .tr > .dv { display: flex; align-items: center; justify-content: flex-end; padding: 16px 14px 16px 0; font-size: 15px; font-weight: 500;
  font-variant-numeric: tabular-nums; white-space: nowrap; }
.hx:not(.js) .yb-t .dv s { transform: none; }

/* ── 7 integrations: straight lanes in and out of one ledger ─────────────────────────────────────── */
.yi-grid { display: grid; margin-top: 6px; row-gap: 12px; align-items: center;
  grid-template-columns: minmax(0, 1.5fr) minmax(22px, .45fr) minmax(0, .95fr) minmax(22px, .45fr) minmax(0, 1.5fr);
  grid-template-areas: "hi . . . ho" "i0 l0 hub m0 o0" "i1 l1 hub m1 o1" "i2 l2 hub m2 o2" "i3 l3 hub m3 o3"; }
.yi-grid .hd { font-size: 13px; color: rgba(255,255,255,.55); }
.yi-grid .hd.hi { grid-area: hi; } .yi-grid .hd.ho { grid-area: ho; }
.yi-grid .i0 { grid-area: i0; } .yi-grid .i1 { grid-area: i1; } .yi-grid .i2 { grid-area: i2; } .yi-grid .i3 { grid-area: i3; }
.yi-grid .o0 { grid-area: o0; } .yi-grid .o1 { grid-area: o1; } .yi-grid .o2 { grid-area: o2; } .yi-grid .o3 { grid-area: o3; }
.yi-grid .li0 { grid-area: l0; } .yi-grid .li1 { grid-area: l1; } .yi-grid .li2 { grid-area: l2; } .yi-grid .li3 { grid-area: l3; }
.yi-grid .lo0 { grid-area: m0; } .yi-grid .lo1 { grid-area: m1; } .yi-grid .lo2 { grid-area: m2; } .yi-grid .lo3 { grid-area: m3; }
.yi-grid .hub { grid-area: hub; align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 8px; border-radius: 16px; background: #fff; color: #0F1A2E; text-align: center; box-shadow: 0 0 0 8px rgba(157,190,250,.12); }
.yi-grid .hub b { font-family: 'Fraunces', 'Iowan Old Style', Georgia, serif; font-size: 28px; font-weight: 400; }
.yi-grid .hub small { font-size: 12.5px; line-height: 1.35; color: #4A5568; }
.yi-grid .tl { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 9px 10px; border-radius: 12px; border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.05); transition: background .35s ease, border-color .35s ease; }
.yi-grid .tl i { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); transition: background .35s ease; }
.yi-grid .tl i svg { width: 20px; height: 20px; fill: none; stroke: rgba(255,255,255,.85); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .35s ease; }
.yi-grid .tl span { display: flex; flex-direction: column; min-width: 0; }
.yi-grid .tl b { font-size: 14.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yi-grid .tl small { font-size: 12px; color: rgba(255,255,255,.58); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yi-grid .tl.hot:not(.cold), .yi-grid .tl.all { border-color: rgba(157,190,250,.55); background: rgba(157,190,250,.12); }
.yi-grid .tl.hot:not(.cold) i, .yi-grid .tl.all i { background: var(--hz-hi); }
.yi-grid .tl.hot:not(.cold) i svg, .yi-grid .tl.all i svg { stroke: #0F1A2E; }
.yi-grid .ln, .yi-grid .vl { align-self: center; }
.yi-grid .ln span, .yi-grid .vl span { display: block; height: 6px; background: radial-gradient(circle, rgba(255,255,255,.28) 1.3px, transparent 1.8px) 0 50% / 10px 6px repeat-x;
  animation: yi-flow 1.8s linear infinite; }
.yi-grid .ln.hot:not(.cold) span, .yi-grid .ln.all span { background-image: radial-gradient(circle, var(--hz-hi) 2.2px, transparent 2.8px); }
.yi-grid .ln.hot:not(.cold) span { animation-duration: .45s; }
@keyframes yi-flow { from { background-position: 0 50%; } to { background-position: 10px 50%; } }
.yi-grid .vl { display: none; }
.hx:not(.js) .yi-grid .tl { border-color: rgba(157,190,250,.55); background: rgba(157,190,250,.12); }
.hx:not(.js) .yi-grid .tl i { background: var(--hz-hi); }
.hx:not(.js) .yi-grid .tl i svg { stroke: #0F1A2E; }
@media (prefers-reduced-motion: reduce) { .yi-grid .ln span, .yi-grid .vl span { animation: none !important; } }

/* ── 8 compliance: four rules ───────────────────────────────────────────────────────────────────── */
.yc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.yc-grid .tc { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px; border-radius: 14px; border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05); opacity: .34; transition: opacity .5s ease, background .5s ease, border-color .5s ease; }
.yc-grid .tc.on { opacity: 1; background: rgba(255,255,255,.1); border-color: rgba(157,190,250,.5); }
.yc-grid .tc i { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 4px; border-radius: 50%; background: rgba(255,255,255,.1); transition: background .5s ease; }
.yc-grid .tc i svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: stroke .5s ease; }
.yc-grid .tc i svg .st { fill: #fff; stroke: none; transition: fill .5s ease; }
.yc-grid .tc.on i { background: var(--hz-hi); }
.yc-grid .tc.on i svg { stroke: #1C3A6E; }
.yc-grid .tc.on i svg .st { fill: #1C3A6E; }
.yc-grid .tc b { font-size: 19px; font-weight: 500; line-height: 1.25; }
.yc-grid .tc span { font-size: 14.5px; line-height: 1.45; color: rgba(255,255,255,.74); text-wrap: pretty; }
.hx:not(.js) .yc-grid .tc { opacity: 1; }
.hx:not(.js) .yc-grid .tc i { background: var(--hz-hi); }
.hx:not(.js) .yc-grid .tc i svg { stroke: #1C3A6E; }
.hx:not(.js) .yc-grid .tc i svg .st { fill: #1C3A6E; }

/* ── phones (round 6) ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .za-cap { font-size: 15px; }
  .ya-plot.d { display: none; }
  .ya-plot.m { display: block; }
  .ya-plot .bl { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 0 10px; }
  .ya-plot .bl .nm { max-width: 100%; font-size: 11.5px; white-space: normal; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .ya-plot .bl .sm { font-size: 14px; }
  .ya-plot .hd { font-size: 12px; }
  .ya-plot .ib { font-size: 11.5px; }
  .yr-heads { font-size: 11.5px; gap: 8px; }
  .yr-cols { --rh: 68px; --cw: calc((100% - 16px) / 3); }
  .yr-cols > i:nth-child(2) { left: calc(var(--cw) + 8px); }
  .yr-c { left: calc(var(--c) * (var(--cw) + 8px) + 4px); width: calc(var(--cw) - 8px); padding: 5px 7px; }
  .yr-c code { display: none; }
  .yr-c .l1 { justify-content: flex-start; }
  .yr-c .bd { font-size: 9.5px; }
  .yr-c .bd > * { justify-self: start; }
  .yr-c .who { font-size: 10.5px; }
  .yr-c > b { font-size: 12px; }
  .yd-cols { gap: 5px; height: 200px; }
  .yd-cols .cl.g::before { left: -3px; }
  .yd-cols .mo { font-size: 10px; }
  .yd-plot .sd, .yd-plot .gt { font-size: 11.5px; }
  .yd-plot .gt { left: calc(50% + 3px); padding: 3px 9px; }
  .yb-t { grid-template-columns: minmax(0, 1fr) repeat(3, minmax(0, .85fr)) minmax(0, 1.1fr); margin-top: 18px; }
  .yb-t .hr span { font-size: 10.5px; }
  .yb-t .hr .c0, .yb-t .hr .c1, .yb-t .hr .c2, .yb-t .v { padding-right: 8px; }
  .yb-t .tr > * { padding: 12px 0; }
  .yb-t .tr > .v { padding-right: 8px; }
  .yb-t .nm { font-size: 13.5px; }
  .yb-t .v { font-size: 15px; }
  .yb-t .dv { flex-direction: column; align-items: stretch; gap: 4px; }
  .yb-t .dv em { font-size: 13px; min-width: 0; }
  .yb-t .dv i { flex: none; height: 6px; }
  .yb-nt { font-size: 13px; }
  .yb-t.yb8 { grid-template-columns: minmax(0, 1.05fr) repeat(5, minmax(0, 1fr)); }
  .yb-t.yb8 .hr span { padding-right: 6px; font-size: 10px; line-height: 1.25; }
  .yb-t.yb8 .tr > .v { padding-right: 6px; font-size: 13.5px; }
  .yb-t.yb8 .tr > .dv { padding: 12px 6px 12px 0; font-size: 11px; }
  .yb-t.yb8 .nm { font-size: 12.5px; }
  .yi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 10px; row-gap: 10px;
    grid-template-areas: "i0 i1" "i2 i3" "vi vi" "hub hub" "vo vo" "o0 o1" "o2 o3"; }
  .yi-grid .hd, .yi-grid .ln { display: none; }
  .yi-grid .vl { display: block; justify-self: center; width: 6px; height: 26px; }
  .yi-grid .vi { grid-area: vi; } .yi-grid .vo { grid-area: vo; }
  .yi-grid .vl span { width: 6px; height: 100%; background: radial-gradient(circle, rgba(255,255,255,.3) 1.3px, transparent 1.8px) 50% 0 / 6px 10px repeat-y; animation-name: yi-flow-v; }
  .yi-grid .vl.hot:not(.cold) span, .yi-grid .vl.all span { background-image: radial-gradient(circle, var(--hz-hi) 2.2px, transparent 2.8px); }
  .yi-grid .vl.hot:not(.cold) span { animation-duration: .45s; }
  .yi-grid .hub { flex-direction: row; gap: 12px; padding: 10px 14px; box-shadow: 0 0 0 6px rgba(157,190,250,.12); }
  .yi-grid .hub b { font-size: 24px; }
  .yi-grid .hub small { font-size: 11.5px; text-align: left; }
  .yi-grid .tl { gap: 8px; padding: 7px 8px; }
  .yi-grid .tl i { width: 30px; height: 30px; }
  .yi-grid .tl i svg { width: 17px; height: 17px; }
  .yi-grid .tl b { font-size: 13px; }
  .yi-grid .tl small { font-size: 11px; white-space: normal; line-height: 1.3; }
  .yc-grid { gap: 10px; }
  .yc-grid .tc { padding: 14px 12px; gap: 6px; }
  .yc-grid .tc i { width: 38px; height: 38px; }
  .yc-grid .tc i svg { width: 21px; height: 21px; }
  .yc-grid .tc b { font-size: 15.5px; }
  .yc-grid .tc span { font-size: 12.5px; }
}
@keyframes yi-flow-v { from { background-position: 50% 0; } to { background-position: 50% 10px; } }

/* ── phones (the six) ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .hz-label { white-space: normal; }
  .zm-hd { display: none; }
  .zm-ln { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "who rate fee" "trk trk trk"; row-gap: 10px; column-gap: 14px; padding: 12px 0; }
  .zm-ln .who { grid-area: who; font-size: 14px; }
  .zm-ln .trk { grid-area: trk; margin-right: 7px; }
  .zm-ln .rate { grid-area: rate; } .zm-ln .fee { grid-area: fee; }
  .zm-ln b { font-size: 18px; }
}

/* ── phones ─────────────────────────────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .hz-top { flex-direction: column; align-items: flex-start; gap: 12px; min-height: 0; }
  .hz-count b { font-size: 20px; }
  .hz-count small { font-size: 13px; }
  .hz-cap { font-size: 15.5px; min-height: 4.6em; margin-top: 16px; }
  .hzu-mon { font-size: 9.5px; }
  .hzu-pile { font-size: 13px; top: 0; }
  .hzu-pile { left: calc(338 / 680 * 100%); font-size: 12px; }
  .hzu-pile b { font-size: 17px; }
}

/* invoices board on narrow phones: names and amounts stay whole (smaller, never cut) */
@media (max-width: 380px) { .yr-c { padding: 5px; } .yr-c > b { font-size: 11px; } .yr-c .who { font-size: 10px; } }
@media (max-width: 340px) { .yr-c { padding: 4px; } .yr-c > b { font-size: 10px; } }

/* integrations tiles: names and formats wrap instead of being cut (Stefan: smaller, never cut) */
.yi-grid .tl b, .yi-grid .tl small { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.25; }
@media (min-width: 601px) {
  .yi-grid { grid-template-columns: minmax(0, 1.6fr) minmax(14px, .3fr) minmax(0, .85fr) minmax(14px, .3fr) minmax(0, 1.6fr); }
}
@media (min-width: 601px) and (max-width: 1320px) {
  .yi-grid .tl { gap: 8px; padding: 8px; }
  .yi-grid .tl i { width: 30px; height: 30px; }
  .yi-grid .tl i svg { width: 17px; height: 17px; }
  .yi-grid .tl b { font-size: 13px; }
  .yi-grid .tl small { font-size: 11px; }
  .yi-grid .hub b { font-size: 24px; }
  .yi-grid .hub small { font-size: 11.5px; }
}
@media (max-width: 380px) {
  .yi-grid .tl { gap: 6px; padding: 6px; }
  .yi-grid .tl i { width: 26px; height: 26px; }
  .yi-grid .tl i svg { width: 15px; height: 15px; }
  .yi-grid .tl b { font-size: 12px; }
  .yi-grid .tl small { font-size: 10.5px; }
}
/* automated accounting: on medium widths the boxes are narrow, names and amounts get smaller instead of cut */
@media (min-width: 601px) and (max-width: 1380px) {
  .ya-plot .bl { gap: 6px; padding: 0 9px; }
  .ya-plot .bl .nm { font-size: 11.5px; line-height: 1.2; }
  .ya-plot .bl .sm { font-size: 13px; }
}
@media (min-width: 601px) and (max-width: 1060px) { .ya-plot .bl .nm { font-size: 11px; } .ya-plot .bl { padding: 0 8px; } }
/* budget: headers may break at their soft hyphen on phones; the note carries no side bar (Stefan: no coloured side bars) */
@media (max-width: 600px) { .yb-t .hr span { white-space: normal; hyphens: manual; } }
.yb-nt { padding-left: 0; border-left: 0; }
/* dunning hero: rate and lump sum take the width they need, the figures are a little smaller (Stefan: never cut) */
@media (min-width: 601px) {
  .zm-hd, .zm-ln { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1.1fr) 104px 88px; column-gap: 16px; }
  .zm-ln b { font-size: clamp(17px, 1.5vw, 22px); }
}
@media (min-width: 601px) and (max-width: 1180px) { .zm-ln .who { font-size: 13.5px; gap: 8px; } .zm-ln .who i { width: 26px; height: 26px; font-size: 11px; } }
