/* Caféino Patron — onglet « Finances » (assets/owner-finance.js), sous-vue « Avis » et lignes « Sorties de caisse ».
   Même langage que owner.css (couche « Torréfaction ») : cartes moka, cuivre pour l'accent, vert pour le bénéfice. */

body.owner {
  --fx-cogs: #C8814A;          /* marchandises */
  --fx-exp: #E9C9A3;           /* charges */
  --fx-sal: #8C7D72;           /* salaires */
  --fx-net: #5FBD88;           /* bénéfice */
}

/* ---------- Sélecteur de mois (segmenté, n colonnes) ---------- */
.fin-seg { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); }
.fin-seg .seg-thumb { width: calc((100% - 8px) / var(--n, 3)); }

/* ---------- Héros : bénéfice net ---------- */
.fin-hero { padding-bottom: 18px; }
.fin-hero .hero-value { margin-top: 12px; }
.fin-hero.neg .hero-value .amt-int { background: linear-gradient(180deg, #FFE2DA 0%, #F2A08C 60%, #E06A52 130%); -webkit-background-clip: text; background-clip: text; }
.fx-chip {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 650; color: var(--ink-2); background: rgba(255, 255, 255, .07);
}
.fin-note {
  display: flex; gap: 7px; align-items: flex-start; margin-top: 12px; font-size: 12.5px; line-height: 1.45; color: var(--muted);
}
.fin-note .ico { flex: none; margin-top: 2px; color: var(--crema); }
.fin-note sup { font-size: .7em; }

.fx-flow { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .06); }
.fx-flow-k { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; margin-bottom: 9px; font-size: 11.5px; font-weight: 650; letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--muted); }
.fx-flow-k em { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 600; color: #F2A08C; }
.fx-bar {
  position: relative; display: flex; gap: 3px; height: 14px; border-radius: 999px; overflow: visible;
}
.fx-bar i { display: block; height: 100%; min-width: 3px; border-radius: 4px; transform-origin: left; }
.fx-bar i:first-child { border-radius: 999px 4px 4px 999px; }
.fx-bar i:last-of-type { border-radius: 4px 999px 999px 4px; }
.fx-flow.grow .fx-bar i { animation: fxGrow .9s var(--ease-spring) both; }
.fx-flow.grow .fx-bar i:nth-child(2) { animation-delay: .08s; }
.fx-flow.grow .fx-bar i:nth-child(3) { animation-delay: .16s; }
.fx-flow.grow .fx-bar i:nth-child(4) { animation-delay: .24s; }
i.fx-cogs { background: linear-gradient(180deg, #E0A06A, var(--fx-cogs) 55%, #9A5A2B); }
i.fx-exp { background: linear-gradient(180deg, #FFF0DD, var(--fx-exp)); }
i.fx-sal { background: linear-gradient(180deg, #A89A8E, var(--fx-sal)); }
i.fx-net { background: linear-gradient(180deg, #8EDDB0, var(--fx-net)); box-shadow: 0 0 14px rgba(95, 189, 136, .35); }
.fx-flow.over .fx-bar { margin-top: 22px; }
.fx-flow-warn { margin-top: 10px; font-size: 12px; line-height: 1.4; color: #F2A08C; }
.fx-flow-warn b { white-space: nowrap; }
.fx-rev { position: absolute; top: -5px; bottom: -5px; width: 2px; margin-left: -1px; border-radius: 2px; background: var(--milk); box-shadow: 0 0 0 2px rgba(14, 12, 11, .7); }
.fx-rev span { position: absolute; top: -17px; left: 50%; transform: translateX(-50%); font-size: 10px; font-weight: 700; color: var(--milk); white-space: nowrap; }
.fx-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; margin-top: 12px; }
.fx-legend span { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 12.5px; color: var(--ink-2); }
.fx-legend span i { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.fx-legend b { margin-left: auto; font-weight: 750; color: var(--ink); white-space: nowrap; letter-spacing: -.01em; }

/* ---------- Compte de résultat ---------- */
.pl { display: grid; }
.pl-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 11px 0; }
.pl-row + .pl-row, .pl-cats + .pl-row { border-top: 1px solid rgba(255, 255, 255, .055); }
.pl-k { display: flex; gap: 8px; min-width: 0; font-size: 14px; color: var(--ink-2); }
.pl-k > i { width: 12px; flex: none; font-style: normal; font-weight: 700; color: var(--muted); text-align: center; }
.pl-k > span { display: grid; gap: 2px; min-width: 0; }
.pl-k em { font-style: normal; font-size: 11.5px; line-height: 1.35; color: var(--muted); }
.pl-row > b { font-size: 14.5px; font-weight: 700; white-space: nowrap; letter-spacing: -.01em; }
.pl-row.lead .pl-k, .pl-row.sum .pl-k { color: var(--ink); font-weight: 600; }
.pl-row.lead > b { font: 750 17px/1.2 var(--font-display); letter-spacing: -.02em; }
.pl-row.sum > b { color: var(--crema); }
.pl-row.has-cats { padding-bottom: 6px; }
.pl-row.total { margin-top: 4px; padding: 14px 14px; border-radius: 16px; border-top: 0 !important; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.pl-row.total .pl-k { color: var(--ink); font-weight: 700; font-size: 15px; }
.pl-row.total > b { font: 800 22px/1 var(--font-display); letter-spacing: -.035em; }
.pl-row.total.pos { background: radial-gradient(120% 140% at 100% 0%, rgba(95, 189, 136, .16), transparent 60%), rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px rgba(95, 189, 136, .22); }
.pl-row.total.pos > b { color: #8EDDB0; }
.pl-row.total.neg { background: radial-gradient(120% 140% at 100% 0%, rgba(239, 115, 91, .16), transparent 60%), rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px rgba(239, 115, 91, .25); }
.pl-row.total.neg > b { color: #F2A08C; }
.pl-cats { list-style: none; margin: 0 0 8px 20px; padding: 10px 12px; display: grid; gap: 10px; border-radius: 14px; background: rgba(255, 255, 255, .03); }
.pl-cats li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 8px; align-items: center; }
.pl-cat-ico { width: 26px; height: 26px; border-radius: 30%; display: grid; place-items: center; font-size: 14px; background: rgba(255, 255, 255, .06); }
.pl-cat-main { display: grid; gap: 5px; min-width: 0; }
.pl-cat-top { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.pl-cat-top > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-cat-top b { font-weight: 650; white-space: nowrap; color: var(--ink); }
.pl-cats .meter { height: 5px; }
.pl-cats .meter i { background: linear-gradient(90deg, #A89A8E, var(--fx-exp)); }
.pl-foot { display: flex; gap: 7px; align-items: flex-start; margin-top: 14px; font-size: 11.5px; line-height: 1.45; color: var(--muted); }
.pl-foot .ico { flex: none; margin-top: 1px; color: var(--accent); }

/* ---------- Seuil de rentabilité ---------- */
.be-top { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 16px; align-items: center; }
.be-ring { position: relative; width: 124px; height: 124px; }
.be-ring svg { display: block; width: 100%; height: 100%; overflow: visible; }
.be-track { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 11; }
.be-prog { fill: none; stroke: url(#be-g); stroke-width: 11; stroke-linecap: round; filter: drop-shadow(0 0 8px rgba(200, 129, 74, .45)); }
.be-ring.grow .be-prog { animation: beGrow 1.3s var(--ease-out) both; }
.be-pace { fill: var(--milk); stroke: #171412; stroke-width: 3; }
.be-c { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 1px; text-align: center; }
.be-c b { font: 800 27px/1 var(--font-display); letter-spacing: -.04em; }
.be-c span { font-size: 11px; font-weight: 600; color: var(--muted); }
.be-main { display: grid; gap: 4px; min-width: 0; justify-items: start; }
.be-k { font-size: 11px; font-weight: 650; letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--muted); }
.be-big { font: 800 29px/1.05 var(--font-display); letter-spacing: -.04em; white-space: nowrap; }
.be-sub { font-size: 12.5px; color: var(--ink-2); line-height: 1.35; }
.be-sub b { color: var(--ink); font-weight: 700; white-space: nowrap; }
.be-chip { display: inline-flex; align-items: center; gap: 4px; height: 24px; margin-top: 6px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.be-chip.ok { color: var(--ok); background: var(--ok-soft); }
.be-chip.warn { color: var(--warn); background: var(--warn-soft); }

.fx-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.fx-tiles > div { display: grid; gap: 2px; align-content: start; min-width: 0; padding: 10px 11px; border-radius: 14px; background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
.fx-tiles span { font-size: 11.5px; font-weight: 600; line-height: 1.25; color: var(--muted); }
.fx-tiles b { font: 750 16px/1.25 var(--font-display); letter-spacing: -.025em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-tiles em { font-style: normal; font-size: 10.5px; line-height: 1.3; color: var(--muted); }
.fx-tiles .warn b { color: var(--warn); }
.fx-tiles .danger b { color: var(--danger); }

/* ---------- Listes (échéances, salaires, fournisseurs, dépenses) ---------- */
.hint-danger { color: var(--danger); font-weight: 650; }
.hint-warn { color: var(--warn); font-weight: 650; }
.fx-total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: -2px 2px 10px; font-size: 12.5px; color: var(--muted); }
.fx-total b { font: 750 20px/1.1 var(--font-display); letter-spacing: -.03em; color: var(--ink); }
.fx-list { list-style: none; margin: 0 -6px; padding: 0; display: grid; }
.fx-list > li + li { border-top: 1px solid rgba(255, 255, 255, .055); }
.fx-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 11px; align-items: center; width: 100%; min-height: 62px; padding: 9px 6px; text-align: left; border-radius: 14px; }
.fx-list > li.fx-row + li.fx-row { border-top: 1px solid rgba(255, 255, 255, .055); border-radius: 0; }
.fx-row-btn { transition: background-color var(--dur-fast); }
.fx-row-btn:active { background: rgba(255, 255, 255, .04); }
.fx-tile {
  width: 40px; height: 40px; border-radius: 30%; flex: none; display: grid; place-items: center; font-size: 20px; line-height: 1;
  background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.fx-tile-ico { color: var(--crema); background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(200, 129, 74, .18); }
.fx-tile.sm { width: 30px; height: 30px; font-size: 15px; }
.fx-tile.lg { width: 50px; height: 50px; font-size: 26px; }
.fx-main { display: grid; gap: 3px; min-width: 0; }
.fx-main strong { font-size: 14.5px; font-weight: 600; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-main > span { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 6px; font-size: 12px; line-height: 1.35; color: var(--muted); }
.fx-main .st { margin-left: 0; }
.fx-side { display: grid; justify-items: end; gap: 5px; white-space: nowrap; }
.fx-side > b { font-size: 14.5px; font-weight: 750; letter-spacing: -.015em; }
.fx-row-btn .fx-side { grid-auto-flow: column; align-items: center; gap: 4px; }
.fx-row-btn .fx-chev { color: var(--muted); opacity: .6; }
.fx-out.is-credit { color: var(--ink-2); font-weight: 650; }
.fx-btn {
  height: 30px; padding: 0 14px; border-radius: 999px; font-size: 12.5px; font-weight: 750; color: #1A0F07;
  background: var(--copper-sheen); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 4px 12px rgba(200, 129, 74, .22);
  transition: transform var(--dur-fast) var(--ease-out);
}
.fx-btn:active { transform: scale(.93); }
.fx-row.is-late .fx-tile { box-shadow: inset 0 0 0 1.5px rgba(239, 115, 91, .55); }
.fx-row.is-soon .fx-tile { box-shadow: inset 0 0 0 1.5px rgba(231, 172, 85, .5); }
.fx-row.is-paid { opacity: .72; }
.fx-row.is-paid .fx-side > b { color: var(--ink-2); font-weight: 650; }
.fx-more {
  display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 40px; margin-top: 8px; border-radius: 14px;
  background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); font-size: 13px; font-weight: 650; color: var(--ink-2);
}
.fx-more:active { background: rgba(255, 255, 255, .07); }
.fx-more-quiet { background: none; box-shadow: none; color: var(--muted); justify-content: flex-start; padding: 0 4px; height: 36px; }
.fx-more-quiet .ico:first-child { color: var(--ok); }
.fx-more-quiet .fx-chev { margin-left: auto; transition: transform var(--dur) var(--ease-out); }
.fx-more-quiet[aria-expanded="true"] .fx-chev { transform: rotate(90deg); }
.fx-list-quiet { margin-top: 2px; }
.fx-demo {
  display: inline-flex; align-items: center; height: 17px; padding: 0 6px; border-radius: 999px; font-size: 10px; font-weight: 700;
  letter-spacing: .04em; color: var(--crema); background: rgba(200, 129, 74, .14); box-shadow: inset 0 0 0 1px rgba(200, 129, 74, .22);
}
.zd-hero .fx-demo { justify-self: start; margin-top: 4px; }
.fx-av {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font: 700 16px/1 var(--font-display); color: var(--ink); background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.fx-av.lg { width: 100%; height: 100%; font-size: 22px; background: var(--copper-sheen); color: #1A0F07; }
.fx-tile .fx-av.lg { border-radius: inherit; }

/* Salaires : résumé */
.fx-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.fx-sum > div { display: grid; gap: 2px; align-content: start; min-width: 0; padding: 10px 11px; border-radius: 14px; background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
.fx-sum span { font-size: 11.5px; font-weight: 600; line-height: 1.25; color: var(--muted); }
.fx-sum-main > span { font-size: 11px; font-weight: 650; letter-spacing: var(--track-caps); text-transform: uppercase; }
.fx-sum b { font: 750 15.5px/1.25 var(--font-display); letter-spacing: -.025em; white-space: nowrap; }
.fx-sum em { font-style: normal; font-size: 10.5px; color: var(--muted); }
.fx-sum .fx-sum-main {
  grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; align-items: end; padding: 14px;
  background: radial-gradient(120% 140% at 100% 0%, rgba(200, 129, 74, .2), transparent 60%), rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px rgba(200, 129, 74, .18);
}
.fx-sum-main span { grid-column: 1; }
.fx-sum-main b { grid-column: 1; font-size: 26px; letter-spacing: -.04em; }
.fx-sum-main em { grid-column: 2; grid-row: 1 / span 2; align-self: end; text-align: right; }

/* Dépenses : répartition par source */
.fx-srcs { display: flex; flex-wrap: wrap; gap: 6px; margin: -2px 0 10px; }
.fx-src { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--ink-2); background: rgba(255, 255, 255, .045); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.fx-src .ico { color: var(--accent); }
.fx-src b { color: var(--ink); font-weight: 750; }

/* Stock */
.fx-lows { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.fx-low { display: grid; gap: 6px; }
.fx-low-top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.fx-low-top strong { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-low-top b { color: var(--warn); font-weight: 750; white-space: nowrap; }
.fx-low .meter i { background: linear-gradient(90deg, #A86A1E, var(--warn)); }
.fx-low.is-out .fx-low-top b { color: var(--danger); }
.fx-low.is-out .meter i { background: var(--danger); }
.fx-low-sub { font-size: 11.5px; color: var(--muted); }
.fx-h { display: flex; align-items: center; gap: 7px; margin: 20px 2px 2px; font-family: var(--font); font-size: 14px; font-weight: 700; }
.fx-h .ico { color: var(--accent); }
.fx-h-sub { margin: 0 2px 10px; font-size: 12px; color: var(--muted); }
.fx-shops { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.fx-shop { min-width: 0; display: grid; gap: 10px; padding: 12px; border-radius: 18px; background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .055); }
.fx-shop-head { display: flex; align-items: center; gap: 9px; font-size: 14px; }
.fx-shop ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fx-shop li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-shop li { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--ink-2); }
.fx-shop li b { color: var(--ink); font-weight: 650; white-space: nowrap; }
.fx-shop .btn { text-decoration: none; height: 40px; }

/* Arrivée sur une section depuis une alerte */
.fin-sec { scroll-margin-top: 12px; }
.fin-sec.flash { animation: finFlash 1.6s var(--ease-out); }

/* ---------- Feuilles : paiement et dépense ---------- */
.fin-form { gap: 16px; }
.fin-form .pf-input { height: 62px; }
.ff-hint { margin: -6px 2px 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.ff-hint b { color: var(--ink-2); }
.ff-src { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ff-src-b {
  display: grid; justify-items: center; gap: 5px; padding: 11px 6px 10px; border-radius: 16px; font-size: 13px; font-weight: 650; color: var(--ink-2);
  background: rgba(255, 255, 255, .045); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
  transition: background-color var(--dur-fast), color var(--dur-fast), box-shadow var(--dur-fast), transform var(--dur-fast) var(--ease-out);
}
.ff-src-b .ico { color: var(--muted); }
.ff-src-b:active { transform: scale(.95); }
.ff-src-b[aria-checked="true"] { color: var(--ink); background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent), 0 6px 18px rgba(200, 129, 74, .16); }
.ff-src-b[aria-checked="true"] .ico { color: var(--crema); }
.ff-note { display: flex; gap: 8px; align-items: flex-start; margin: -6px 0 0; padding: 10px 12px; border-radius: 14px; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); background: rgba(255, 255, 255, .035); }
.ff-note .ico { flex: none; margin-top: 1px; color: var(--accent); }
.ff-note.bad { color: #f3cc8f; background: var(--warn-soft); box-shadow: inset 0 0 0 1px rgba(226, 166, 74, .3); }
.ff-note.bad .ico { color: var(--warn); }
.ff-newcat { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: -6px; }
.fin-form input[type="date"] { color-scheme: dark; }
.fin-form .pf-input.shake { animation: shake .42s ease; }
.owner-sheet .layer-foot .btn:disabled { opacity: .45; }

/* Détail d'une écriture */
.fin-entry { display: grid; gap: 12px; }
.fin-entry .zd-hero { background: radial-gradient(120% 100% at 100% 0%, rgba(200, 129, 74, .2), transparent 60%), var(--surface-2); }
.fin-entry .zd-rows dd { font-weight: 600; }
.fin-entry .zd-rows dt em { font-style: normal; color: var(--muted); font-size: 12px; }
.fx-del { margin-top: 4px; }
.fx-del p { display: flex; gap: 8px; align-items: flex-start; padding: 11px 12px; border-radius: 14px; font-size: 13px; line-height: 1.45; color: #ffc6b9; background: var(--danger-soft); }
.fx-del p .ico { flex: none; margin-top: 2px; }
.fx-del-acts { display: flex; gap: 8px; margin-top: 10px; }

/* ---------- Clôture Z : sorties de caisse ---------- */
.zd-out { display: grid; gap: 1px; min-width: 0; }
.zd-out b { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zd-out em { font-style: normal; font-size: 11.5px; color: var(--muted); }

/* ---------- Fil d'activité : sorties d'argent ---------- */
.fi-danger { background: var(--danger-soft); color: var(--danger); }
.fi-minus { color: var(--ink-2); }
.fi-sub .fx-demo { vertical-align: 1px; margin-left: 2px; }

/* ---------- Avis (sous-vue de « Plus ») ---------- */
.back-link {
  display: inline-flex; align-items: center; gap: 4px; height: 36px; margin: 10px 0 -8px -6px; padding: 0 12px 0 8px; border-radius: 999px;
  font-size: 14px; font-weight: 650; color: var(--crema); transition: background-color var(--dur-fast);
}
.back-link:active { background: rgba(255, 255, 255, .06); }
.set-badge {
  min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center;
  font-size: 11.5px; font-weight: 750; color: #fff; background: var(--danger);
}

@keyframes fxGrow { from { transform: scaleX(0); opacity: .4; } }
@keyframes beGrow { from { stroke-dasharray: 0 100; } }
@keyframes finFlash {
  0%, 30% { box-shadow: inset 0 0 0 1.5px rgba(200, 129, 74, .75), 0 0 0 4px rgba(200, 129, 74, .16), 0 14px 34px rgba(0, 0, 0, .28); }
  100% { box-shadow: var(--card-edge), 0 14px 34px rgba(0, 0, 0, .28); }
}

@media (max-width: 374px) {
  .be-top { grid-template-columns: 104px minmax(0, 1fr); gap: 12px; }
  .be-ring { width: 104px; height: 104px; }
  .be-big { font-size: 24px; }
  .fx-tiles, .fx-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .fx-flow.grow .fx-bar i, .be-ring.grow .be-prog, .fin-sec.flash { animation: none !important; }
}
