/* patron-revenue.css — p196 (2026-11-26): the revenue counter (patron-revenue.js) in the top bar, its sheet, and the
   Dashboard's Revenue card. Loaded with the app, after plain.css. The Dashboard's own css loads later and has an id rule
   (#dash button{font:inherit;color:inherit}), so the counter's rules carry :is(#dash,html) to stay on top.
   Reference: Mercury's balance (one confident tabular figure, the currency sign and the cents smaller and quieter, no
   decoration) and Stripe's "Today" (a live dot, a flat line waiting at 0, a step up when a sale lands). Colour only where it
   means money came in: the green of the Dashboard's "Stripe connected". No gradient text, no confetti. */

/* ------------------------------------------------------------------ tokens per theme (Dark, White, Sky) */
.rv,.rv-sheet,.rv-card{--rv-ink:#f5f5f2; --rv-mute:rgba(245,245,242,.46); --rv-label:rgba(245,245,242,.58); --rv-g:58,208,126;
  --rv-bg:#161618; --rv-line:rgba(255,255,255,.085); --rv-hi:rgba(255,255,255,.06); --rv-well:rgba(255,255,255,.07); --rv-lift:0 0 0 0 transparent}
html[data-theme="light"] :is(.rv,.rv-sheet,.rv-card){--rv-ink:#141414; --rv-mute:rgba(20,20,20,.42); --rv-label:rgba(20,20,20,.55); --rv-g:23,122,66;
  --rv-bg:#ffffff; --rv-line:#e3e3de; --rv-hi:rgba(255,255,255,0); --rv-well:rgba(0,0,0,.05); --rv-lift:0 1px 2px rgba(0,0,0,.04),0 6px 18px rgba(40,36,28,.06)}
html[data-sky="sky"] .rv{--rv-ink:#0A1A33; --rv-mute:rgba(10,26,51,.48); --rv-label:rgba(10,26,51,.6);
  --rv-bg:rgba(255,255,255,.8); --rv-line:rgba(255,255,255,.95); --rv-well:rgba(10,26,51,.06); --rv-lift:0 8px 24px rgba(20,48,100,.16),0 1px 2px rgba(20,48,100,.08)}

/* ------------------------------------------------------------------ the counter: a laptop */
:is(#dash,html) .rv{--rv-fs:21px; --rv-w:600; --rv-glow:0 0 0 0 transparent;
  position:relative;display:inline-flex;align-items:center;gap:11px;flex:none;height:44px;margin:-5px 2px -5px 0;padding:0 18px 0 15px;
  border:0;border-radius:14px;background:var(--rv-bg);color:var(--rv-ink);font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Helvetica Neue",sans-serif;
  box-shadow:inset 0 0 0 1px var(--rv-line),inset 0 1px 0 var(--rv-hi),var(--rv-lift),var(--rv-glow);
  cursor:pointer;text-align:left;white-space:nowrap;-webkit-tap-highlight-color:transparent;transition:box-shadow .5s ease,background-color .2s ease}
html[data-sky="sky"] .rv{backdrop-filter:blur(18px) saturate(1.3);-webkit-backdrop-filter:blur(18px) saturate(1.3)}
:is(#dash,html) .rv:hover{background:color-mix(in srgb,var(--rv-bg) 88%,var(--rv-ink))}
:is(#dash,html) .rv:focus-visible{outline:2px solid #6c9cff;outline-offset:3px}
.rv-head{display:inline-flex;align-items:center;gap:7px;min-width:0}
.rv-lab{font-size:12.5px;font-weight:600;line-height:1;letter-spacing:.005em;color:var(--rv-label);transition:color .3s ease}
.rv-fig{display:inline-flex;align-items:baseline;font-size:calc(var(--rv-fs) * var(--rv-fit,1));font-weight:var(--rv-w);line-height:1;
  letter-spacing:-.022em;font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1;color:var(--rv-ink);white-space:nowrap}
.rv-fig .rv-cur{font-size:.66em;font-weight:600;letter-spacing:0;color:var(--rv-mute);margin-right:.08em}
.rv-fig .rv-post{margin:0 0 0 .2em}
.rv-fig .rv-dec{font-size:.66em;letter-spacing:-.005em;color:var(--rv-mute)}
.rv-fig [hidden]{display:none}
.rv-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* while it can't count: what to do, in the counter (the sheet says how) */
.rv-act{display:inline-flex;align-items:center;gap:3px;margin-left:1px;padding:6px 10px 6px 11px;border-radius:9px;background:var(--rv-well);
  font-size:12px;font-weight:650;line-height:1;color:var(--rv-ink);opacity:.86}
.rv-act::after{content:"›";font-size:14px;line-height:.8;opacity:.6}
.rv-act[hidden]{display:none}

/* the dot: green and breathing while it counts; a hollow ring while it can't; grey on a blip */
.rv-dot{position:relative;flex:none;width:7px;height:7px;border-radius:50%;background:rgb(var(--rv-g))}
.rv-dot::after{content:"";position:absolute;inset:0;border-radius:50%;background:rgb(var(--rv-g));opacity:0}
[data-s="live"] .rv-dot::after{animation:rv-breathe 2.8s ease-out infinite}
[data-s="live"][data-zero="1"] .rv-dot::after{animation-duration:3.8s}
:is([data-s="connect"],[data-s="permit"],[data-s="test"],[data-s="soon"],[data-s="gone"],[data-s="load"]) .rv-dot{background:transparent;box-shadow:inset 0 0 0 1.5px var(--rv-mute)}
:is([data-s="err"],[data-s="stale"]) .rv-dot{background:var(--rv-mute)}
[data-s="stale"] .rv-fig{opacity:.72}
[data-s="load"] .rv-fig{opacity:.4}
@keyframes rv-breathe{0%{transform:scale(1);opacity:.55}70%,100%{transform:scale(3);opacity:0}}

/* more present as it grows: a step bigger and bolder at each of €100, €1k, €10k, €100k, €1M, and from €1k a green edge and
   then a soft green light under it (Sky: a white one) */
:is(#dash,html) .rv[data-tier="1"]{--rv-fs:22px;--rv-w:620}
:is(#dash,html) .rv[data-tier="2"]{--rv-fs:23px;--rv-w:640}
:is(#dash,html) .rv[data-tier="3"]{--rv-fs:24px;--rv-w:660;--rv-glow:inset 0 0 0 1px rgba(var(--rv-g),.2)}
:is(#dash,html) .rv[data-tier="4"]{--rv-fs:25px;--rv-w:680;--rv-glow:inset 0 0 0 1px rgba(var(--rv-g),.28),0 6px 22px -8px rgba(var(--rv-g),.38)}
:is(#dash,html) .rv[data-tier="5"]{--rv-fs:26px;--rv-w:700;--rv-glow:inset 0 0 0 1px rgba(var(--rv-g),.34),0 8px 28px -8px rgba(var(--rv-g),.48),0 0 0 4px rgba(var(--rv-g),.06)}
:is(#dash,html) .rv[data-tier="6"]{--rv-fs:27px;--rv-w:720;--rv-glow:inset 0 0 0 1px rgba(var(--rv-g),.42),inset 0 1px 0 rgba(var(--rv-g),.3),0 10px 34px -8px rgba(var(--rv-g),.55),0 0 0 5px rgba(var(--rv-g),.08)}
html[data-sky="sky"] .rv[data-tier="4"]{--rv-glow:inset 0 0 0 1px rgba(var(--rv-g),.25),0 6px 26px -6px rgba(255,255,255,.75)}
html[data-sky="sky"] .rv[data-tier="5"]{--rv-glow:inset 0 0 0 1px rgba(var(--rv-g),.3),0 8px 32px -6px rgba(255,255,255,.85),0 0 0 4px rgba(255,255,255,.22)}
html[data-sky="sky"] .rv[data-tier="6"]{--rv-glow:inset 0 0 0 1px rgba(var(--rv-g),.36),0 10px 38px -6px rgba(255,255,255,.95),0 0 0 5px rgba(255,255,255,.3)}

/* a sale lands: the counter counts up (patron-revenue.js), its label says how much in green, one soft green ring goes out */
.rv[data-note] .rv-lab{color:rgb(var(--rv-g));font-weight:650}
.rv.rv-ping::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;animation:rv-ping 1.6s cubic-bezier(.2,.7,.2,1) 1}
.rv.rv-ping[data-note="mile"]::after{animation-iteration-count:2}
.rv.rv-ping[data-note="mile"]{background:color-mix(in srgb,var(--rv-bg) 86%,rgb(var(--rv-g)))}
@keyframes rv-ping{0%{box-shadow:0 0 0 0 rgba(var(--rv-g),.42)}100%{box-shadow:0 0 22px 10px rgba(var(--rv-g),0)}}

/* ------------------------------------------------------------------ a phone: right of the notch, the label over the figure,
   no plate (the bar is narrow); the figure fits the room it has (--rv-fit) */
@media (max-width:800px){
  :is(#dash,html) .rv{flex-direction:column;align-items:flex-end;justify-content:center;gap:4px;height:auto;margin:0 2px 0 0;padding:0 2px;
    background:none!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
  :is(#dash,html) .rv{--rv-fs:17px}
  :is(#dash,html) .rv[data-tier="2"],:is(#dash,html) .rv[data-tier="3"]{--rv-fs:18px}
  :is(#dash,html) .rv:is([data-tier="4"],[data-tier="5"],[data-tier="6"]){--rv-fs:19px}
  .rv-head{gap:5px}
  .rv-lab{font-size:10px;letter-spacing:.02em}
  .rv-dot{width:6px;height:6px}
  .rv-act{display:none!important}
  .rv.rv-ping::after{inset:-6px -8px;border-radius:12px}
  .home-top>.rv{margin-left:auto}
  .home-top>.rv~.home-convo,.home-top>.home-convo~.rv{margin-left:10px}
}
/* the phone's light bars: the figure on the bar's own ground */
@media (max-width:800px){
  html[data-sky="sky"] .rv{--rv-ink:#141414; --rv-mute:rgba(20,20,20,.42); --rv-label:rgba(20,20,20,.55)}
}
@media (prefers-reduced-motion:reduce){
  .rv,.rv-lab{transition:none}
  .rv-dot::after,.rv.rv-ping::after,.rv-snow.on::after{animation:none!important}
}

/* ------------------------------------------------------------------ the sheet */
.rv-sheet .rv-pane{display:flex;flex-direction:column;gap:14px}
.rv-shero{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:18px 20px 20px;border-radius:18px;background:var(--rv-well);
  box-shadow:inset 0 0 0 1px var(--rv-line)}
.rv-shead{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:var(--rv-label)}
.rv-sheet .rv-sfig{--rv-fs:44px;--rv-w:700}
.rv-sgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.rv-cell{display:flex;flex-direction:column;gap:5px;padding:12px 14px;border-radius:14px;background:var(--rv-well)}
.rv-cell span{font-size:12px;font-weight:550;color:var(--rv-label)}
.rv-cell b{font-size:16px;font-weight:650;font-variant-numeric:tabular-nums;color:var(--rv-ink)}
.rv-p{margin:0;font-size:14px;line-height:1.5;color:var(--rv-ink)}
.rv-p.muted{font-size:13px;color:var(--rv-label)}
.rv-tip{padding:12px 14px;border-radius:12px;background:rgba(var(--rv-g),.1);box-shadow:inset 0 0 0 1px rgba(var(--rv-g),.22);font-size:13.5px;line-height:1.45;color:var(--rv-ink)}
.rv-steps{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:8px;font-size:14px;line-height:1.45;color:var(--rv-ink)}
.rv-steps a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.rv-again{align-self:flex-start}
.rv-link{align-self:flex-start;padding:0;border:0;background:none;font:inherit;font-size:13.5px;font-weight:600;color:var(--rv-label);cursor:pointer}
.rv-link:hover{color:var(--rv-ink)}
.rv-pay{margin:0}

/* ------------------------------------------------------------------ the Dashboard's Revenue card (the widget's own look:
   SF Rounded like the other cards, one big figure, two small ones, the 30-day line) */
#dash .rv-card .rv-dbig{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
#dash .rv-card .rv-dfig{--rv-fs:44px;--rv-w:700;font-family:ui-rounded,"SF Pro Rounded",-apple-system,sans-serif;letter-spacing:-.025em}
#dash .rv-card[data-tier="3"] .rv-dfig,#dash .rv-card[data-tier="4"] .rv-dfig{--rv-fs:42px}
#dash .rv-card:is([data-tier="5"],[data-tier="6"]) .rv-dfig{--rv-fs:38px}
#dash .rv-card .rv-dfig .rv-cur{font-size:.6em;font-weight:650}
#dash .rv-card .rv-dfig .rv-dec{font-size:.56em}
#dash .rv-card .rv-dbig small{font-family:ui-rounded,"SF Pro Rounded",-apple-system,sans-serif;font-size:13px;font-weight:600;color:var(--d-mute)}
#dash .rv-card .rv-drow{display:flex;gap:22px;margin-top:12px}
#dash .rv-card .rv-dstat{display:flex;flex-direction:column;gap:3px}
#dash .rv-card .rv-dstat b{font-family:ui-rounded,"SF Pro Rounded",-apple-system,sans-serif;font-size:17px;font-weight:700;font-variant-numeric:tabular-nums;color:var(--d-ink)}
#dash .rv-card .rv-dstat span{font-size:12px;font-weight:550;color:var(--d-mute)}
#dash .rv-card .rv-spark{margin-top:14px}
#dash .rv-card .rv-sbox{position:relative;height:46px}
#dash .rv-card .rv-sbox svg{display:block;width:100%;height:100%;overflow:visible}
#dash .rv-card .rv-sline{fill:none;stroke:rgb(var(--rv-g));stroke-width:1.75;stroke-linejoin:round;stroke-linecap:round}
#dash .rv-card .rv-sline.flat{stroke:var(--d-mute);stroke-dasharray:2 4;opacity:.7}
#dash .rv-card .rv-sarea{fill:rgba(var(--rv-g),.09);stroke:none}
#dash .rv-card .rv-snow{position:absolute;right:-2px;width:7px;height:7px;margin-top:-3.5px;border-radius:50%;background:var(--d-mute)}
#dash .rv-card .rv-snow.on{background:rgb(var(--rv-g))}
#dash .rv-card .rv-snow.on::after{content:"";position:absolute;inset:0;border-radius:50%;background:rgb(var(--rv-g));animation:rv-breathe 3.2s ease-out infinite}
#dash .rv-card .rv-sfoot{display:flex;justify-content:space-between;gap:10px;margin-top:7px;font-size:11.5px;font-weight:550;color:var(--d-mute)}
#dash .rv-card .rv-sfoot span:last-child{font-variant-numeric:tabular-nums}
#dash .rv-card[data-rv="live"] .rv-sfoot span:last-child{color:var(--d-text)}
#dash .rv-card .dsh-sub{margin-top:12px}

/* p196b (Albert, 2026-11-26: "remove the cheap green glow from the counter also the green dot, make it more like rounded
   rectangle"): no glow, no green edge, no ring or tint on a sale, no dot; a squarer rectangle. It still grows with the money. */
:is(#dash,html) .rv{border-radius:10px}
:is(#dash,html) .rv[data-tier]{--rv-glow:0 0 0 0 transparent}
html[data-sky="sky"] .rv[data-tier]{--rv-glow:0 0 0 0 transparent}
.rv .rv-dot{display:none}
.rv.rv-ping::after{display:none}
.rv.rv-ping[data-note="mile"]{background:var(--rv-bg)}
.rv-act{border-radius:7px}
