/* ---------- Digital wallet view (#digital-wallet, /wallet): markup from tools/wal_markup.py ----------
   The Unlimited data hero's mechanics (udp.css + waterfalls.css wfp-*) on the wallet's own paper, then: why not credits
   (lede, picture, a credits | wallet table), what's free vs. what the wallet pays for, three steps, auto top-up, one wallet
   for the team, the FAQ box. Cards are crayon-outlined (features.js draws [data-crayon]) with a marble well holding a
   plain-HTML picture, as on How it works. Each picture's styles follow the layout below, one part per picture module (tools/wal_pic_<name>.py). */
body[data-view="digital-wallet"] #home{position:absolute;top:0;left:0;right:0;height:0;overflow:hidden;visibility:hidden}
.wal{padding-bottom:0}
.wal-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---- hero (the field, the paper and the strip: the field part below; the panel: the panel part) ---- */
.wal-hero .wfp-hero-copy{gap:18px}
.wal-kick{margin:0}
.wal-facts{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:24px}
.wal-fact{display:inline-flex;align-items:center;gap:9px;height:42px;padding:0 15px 0 12px;border:1px solid var(--fg-20);border-radius:8px;background:#fff;font:400 14.5px/1.2 var(--sans);color:var(--fg-80);white-space:nowrap}
.wal-fact b{font-weight:600;color:#000}
.wal-fact svg{width:18px;height:18px;flex:none;color:var(--fc)}
.wal-hero .ctas{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}

/* ---- sections ---- */
.wal-sec{display:flex;flex-direction:column;align-items:center;width:min(var(--grid-body),100%);margin:clamp(88px,8vw,128px) auto 0;padding:0 var(--gut)}
.wal-sec:first-of-type{margin-top:0}
.wal-credits{padding-top:calc(var(--half,96px) + clamp(88px,8vw,120px));margin-top:0}
.wal-head{display:flex;flex-direction:column;align-items:center;max-width:760px;margin:0 auto clamp(32px,3.4vw,48px);text-align:center}
.wal-head .f-badge{margin-bottom:16px}
.wal-h2{max-width:22ch;margin:0;font:500 var(--h2)/1.12 var(--sans);letter-spacing:-.02em;color:#18161D;text-wrap:balance}

/* the credits | wallet table (its look, the crayon band behind the wallet column: the compare part below) */
.wal-table{width:min(960px,100%);margin:clamp(32px,3.4vw,48px) auto 0;border-collapse:collapse;table-layout:fixed;font:400 15.5px/1.45 var(--sans)}
.wal-table th,.wal-table td{padding:16px 18px;text-align:left;vertical-align:top;border-bottom:1px solid var(--fg-10)}
.wal-table thead th{font:500 15px/1.2 var(--sans);color:#18161D}
.wal-table tbody th{width:24%;font-weight:500;color:#18161D}
.wal-table td{color:var(--fg-70)}
.wal-table td:last-child{color:#18161D}

/* a crayon card: text on one side, a marble well with the picture on the other (How it works' idea cards) */
.wal-card{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);align-items:center;gap:clamp(24px,3.4vw,52px);width:min(1040px,100%);padding:clamp(22px,2.4vw,34px)}
.wal-flip{grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr)}
.wal-flip .wal-well{order:-1}
.wal-text{display:flex;flex-direction:column;align-items:flex-start;gap:14px;min-width:0}
.wal-title{margin:6px 0 0;font:500 var(--h3)/1.15 var(--sans);letter-spacing:-.018em;color:#18161D;text-wrap:balance}
.wal-body{margin:0;font:400 clamp(15.5px,1.15vw,16.5px)/1.55 var(--sans);color:var(--fg-70);text-wrap:pretty}
.wal-points{display:flex;flex-direction:column;gap:10px;margin:4px 0 0;padding:0;list-style:none}
.wal-points li{position:relative;padding-left:22px;font:400 15px/1.5 var(--sans);color:var(--fg-70);text-wrap:pretty}
.wal-points li::before{content:"";position:absolute;left:2px;top:.62em;width:8px;height:8px;border-radius:2px;background:color-mix(in srgb,var(--cc) 80%,#18161D)}
.wal-well{display:grid;place-items:center;aspect-ratio:auto;min-height:clamp(320px,32vw,420px);margin:0;padding:clamp(16px,2.4vw,30px);container-type:inline-size}

/* the two paths of a lookup, under the two lists: in Loopster Data (free) or from a vendor (at cost) */
.wal-pool{display:flex;flex-direction:column;align-items:flex-start;gap:4px;width:100%;margin-top:6px;padding:16px 18px;border-radius:14px;background:rgba(255,255,255,.6);box-shadow:inset 0 0 0 1px var(--fg-10)}
.wal-pool-step{display:flex;align-items:center;gap:12px;min-width:0;width:100%}
.wal-pool-p{margin-left:auto;flex:none;font:600 15px/1 var(--sans);color:#18161D;font-variant-numeric:tabular-nums}
.wal-pool-p.is-free{color:#1C8A5C}
.wal-pool-note{margin:6px 0 0;font:400 13px/1.35 var(--sans);color:var(--fg-60)}
.wal-pool-ic{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:10px;background:#fff;box-shadow:0 0 0 1px rgba(28,22,70,.08),0 6px 14px -8px rgba(30,24,60,.35)}
.wal-pool-ic img{width:20px;height:20px}
.wal-pool-ic.is-pool{background:#141414}
.wal-pool-ic.is-free{font:600 12px/1 var(--sans);color:#1C8A5C;background:#EAF6EF;box-shadow:inset 0 0 0 1px rgba(35,162,109,.35)}
.wal-pool-t{display:flex;flex-direction:column;gap:2px;min-width:0}
.wal-pool-t b{font:500 15px/1.25 var(--sans);color:#18161D}
.wal-pool-t span{font:400 13px/1.3 var(--sans);color:var(--fg-60)}
.wal-pool-ar{flex:none;width:24px;height:14px;margin:0 0 0 8px;transform:rotate(90deg);color:color-mix(in srgb,var(--cc) 70%,#18161D)}

/* three steps, each a plain card (the integrations cards' border, corner and paper; no crayon outline: Nick,
   2026-11-16) with its picture on top */
.wal-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(20px,2.2vw,32px);width:min(1100px,100%);margin:0;padding:0;list-style:none}
.wal-step{position:relative;isolation:isolate;display:flex;flex-direction:column;gap:20px;min-width:0;padding:clamp(18px,1.8vw,24px);border:1px solid rgba(0,0,0,.12);border-radius:10px;background:rgba(255,255,255,.7)}
.wal-step-well{min-height:clamp(220px,19vw,260px);padding:clamp(12px,1.4vw,18px)}
.wal-step-t{display:flex;flex-direction:column;gap:8px;padding:0 4px 4px}
.wal-step-n{font:400 14px/1 var(--pixel);letter-spacing:.04em;color:color-mix(in srgb,var(--cc) 75%,#18161D)}
.wal-step h3{margin:2px 0 0;font:500 clamp(19px,1.45vw,21px)/1.25 var(--sans);letter-spacing:-.012em;color:#18161D}
.wal-step p{margin:0;font:400 15px/1.5 var(--sans);color:var(--fg-70);text-wrap:pretty}

/* the FAQ box: the home one (sol_markup.faq) */
#digital-wallet .agp-faq{margin-top:clamp(88px,8vw,124px)}

/* the footer's call to action: this page's line */
.foot-cta-in .fc-wal{display:none}
body[data-view="digital-wallet"] .foot-cta-main .foot-cta-in>p:not(.fc-wal){display:none}
body[data-view="digital-wallet"] .foot-cta-main .foot-cta-in .fc-wal{display:block}

/* placeholder for a picture not drawn yet */
.wal-ph{display:grid;place-items:center;width:100%;min-height:160px;border-radius:12px;background:rgba(255,255,255,.7);font:400 12px/1 var(--pixel);color:var(--fg-60)}

@media (max-width:1023px){
  .wal-steps{grid-template-columns:minmax(0,1fr);max-width:560px}
}
@media (max-width:860px){
  .wal-card,.wal-flip{grid-template-columns:minmax(0,1fr)}
  .wal-flip .wal-well{order:0}
  .wal-table th,.wal-table td{padding:12px 10px;font-size:14.5px}
  .wal-table tbody th{width:28%}
}
@media (max-width:560px){
  .wal-facts{flex-direction:column;align-items:stretch;gap:0;width:100%;border:1px solid var(--fg-20);border-radius:8px;background:#fff}
  .wal-fact{height:auto;min-height:42px;padding:8px 14px 8px 13px;border:0;border-radius:0;background:none;white-space:normal}
  .wal-fact+.wal-fact{border-top:1px solid var(--fg-10)}
  .wal-card{padding:20px 16px}
  .wal-well{min-height:0;padding:20px 8px}
  .wal-table{font-size:14px}
  .wal-table th,.wal-table td{padding:11px 6px}
}


/* ================= field picture (tools/wal_pic_field.py) ================= */
/* Digital wallet page: the hero's crayon field (tools/wal_pic_field.py) on udp.css's mechanics (.udp-field, .udp-ob,
   .udp-ln, .udp-strip, .udp-so: the Unlimited data hero). Wallets, coins and bills drawn in the hand of the Unlimited data
   objects (assets/site/wal/obj/), scattered on crayon paper around the centred copy. */

/* the paper: the Unlimited data hero's tile, recoloured mint (assets/site/wal/paper-mint.webp: money green, and the red,
   orange, yellow, blue and purple objects pop on it). The sky-blue candidate sits beside it, paper-sky.webp on #A9D1F2,
   with a shadow of rgba(24,64,120,.42) below */
.wal-paper{background:#C7E9D1 url(assets/site/wal/paper-mint.webp) 0 0/512px 512px}
/* the site's paper grain over the coloured paper, as on every cream section (Nick 2026-10-27: the Digital wallet hero had
   lost the texture; the recoloured tile alone is nearly flat). Stronger than the cream pages' paper (Nick, the same
   day): assets/site/paper-grain.webp is that paper in neutral grey with its weave 1.9x deeper (each pixel's distance from white), so it adds grain
   without a tint */
.wal-paper::after{content:"";position:absolute;inset:0;background:url(assets/site/paper-grain.webp) 0 0/256px 256px;mix-blend-mode:multiply;opacity:.45;pointer-events:none}
/* Nick, 2026-11-16: the line under the title was hard to read here too. As on Signals and Unlimited data: a light mint
   (#C7E9D1, was #A9DDB8), the grain over it at 45%, the line in ink at 86% (udp.css) */

/* the panel's glass starts 28px under the lowest object over it (wal_pic_field.py OBJ, per object tier). Set as the copy's
   height (hero padding + copy + the 40px gap = the panel top), not the hero's, so it holds whatever the panel's height */
.wal-hero{--wal-p:580px;min-height:0}
.wal-hero .wfp-hero-copy{min-height:calc(var(--wal-p) - clamp(116px,12vw,190px) - 40px)}
@media (min-width:1536px){.wal-hero{--wal-p:704px}}

/* the panel's glass and shadow, tuned for this paper (the pink one had a rose shadow) */
.wal-hero .udp-stats{background:rgba(255,255,255,.26);box-shadow:0 40px 80px -40px rgba(18,84,52,.42)}

@media (prefers-reduced-motion:reduce){.wal-field .udp-ob,.wal-field .udp-ln,.wal-field-strip .udp-so{animation:none}}

/* under 1200px: no field, a row of objects between the copy and the panel (udp.css), the copy at its own height */
@media (max-width:1199px){
  .wal-hero .wfp-hero-copy{min-height:0}
}
/* phones: the five middle objects at 64 % (udp.css: 80 %), so the turned wallets clear the screen edges */
@media (max-width:420px){.wal-field-strip .udp-so{width:calc(var(--w) * .64px)}}


/* ================= panel picture (tools/wal_pic_panel.py) ================= */
/* Digital wallet page: the hero panel (tools/wal_pic_panel.py), the white card on the hero's bottom edge, in the glass
   ring of the Unlimited data panel (udp.css .udp-stats). The wallet at a glance, drawn like the app: the balance, the
   latest money in and out, the auto top-up rule. Three columns split by hairlines, then two (balance | top-up over the
   activity), then one, as the card narrows (container queries on the card). Classes wal-pn-*. */
.wal-hero .wal-panel{background:rgba(255,255,255,.3);box-shadow:0 40px 80px -40px rgba(30,24,60,.42)}
.wal-panel .wal-panel-card{display:block;padding:0;container-type:inline-size;box-shadow:0 0 0 1px rgba(28,22,70,.06)}
/* under 900px the hero's --half is 150px, which left this taller (stacked) panel ~35px above the next section's eyebrow;
   it hangs 96px past the paper instead, as on desktop */
@media (max-width:900px){.wal-hero .wal-panel{margin-bottom:-96px}}

.wal-pn{display:grid;grid-template-columns:minmax(0,.86fr) minmax(0,1.2fr) minmax(0,1.04fr);padding:22px 0 20px;
  font-family:"Geist",var(--sans);font-feature-settings:"tnum" 1;font-size:13px;line-height:1.3;color:#1C1A24;-webkit-font-smoothing:antialiased;text-align:left}
.wal-pn :where(p){margin:0}
.wal-pn-col{display:flex;flex-direction:column;min-width:0;padding:0 clamp(20px,2.7cqw,34px)}
.wal-pn-col+.wal-pn-col{border-left:1px solid #EFEEF4}

/* each column's head: 22px tall, so the three line up */
.wal-pn-h{display:flex;align-items:center;gap:9px;min-height:22px;font-size:13px;font-weight:600;letter-spacing:-.005em;white-space:nowrap}
.wal-pn-glyph{display:grid;place-items:center;flex:none;width:22px;height:22px;border-radius:6px;background:rgba(35,162,109,.1);color:#1C8A5C}
.wal-pn-glyph svg{width:14px;height:14px}
.wal-pn-when{margin-left:auto;padding-right:6px;font-size:11.5px;font-weight:400;color:#7B788A}
.wal-pn-sw{position:relative;flex:none;width:28px;height:16px;margin-left:auto;border-radius:8px;background:#23A26D}
.wal-pn-sw i{position:absolute;top:2px;right:2px;width:12px;height:12px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.2)}

/* 1. the balance, on the column's foot (level with the last activity row and the top-up rule) */
.wal-pn-funds{margin-top:auto;padding-top:14px}
.wal-pn-k{font-size:12px;color:#7B788A}
.wal-pn-big{margin:5px 0 9px;font-size:clamp(32px,3.5cqw,42px);font-weight:600;line-height:1;letter-spacing:-.03em}
.wal-pn-ok{display:flex;align-items:center;gap:8px;font-size:12.5px;font-weight:500;color:#1C8A5C}
.wal-pn-ok i{flex:none;width:6px;height:6px;border-radius:50%;background:#23A26D;box-shadow:0 0 0 3px rgba(35,162,109,.16)}

/* 2. the latest money in and out */
.wal-pn-rows{margin:8px 0 0;padding:0;list-style:none}
.wal-pn-row{display:grid;grid-template-columns:22px minmax(0,1fr) auto;align-items:center;gap:11px;padding:6px 0}
.wal-pn-row+.wal-pn-row{border-top:1px solid #F1F0F5}
.wal-pn-row:last-child{padding-bottom:0}
.wal-pn-logo{display:block;width:22px;height:22px;border-radius:6px;object-fit:contain}
.wal-pn-in{display:grid;place-items:center;background:rgba(35,162,109,.1);color:#1C8A5C}
.wal-pn-in svg{width:14px;height:14px}
.wal-pn-what{display:flex;flex-direction:column;gap:1px;min-width:0}
.wal-pn-what b{font-size:12.5px;font-weight:500;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wal-pn-what span{font-size:11px;line-height:1.2;color:#7B788A;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* every amount sits in the same 6px inset, so the figures line up and the top-up's pill ends with the hairlines */
.wal-pn-amt{padding:3px 6px;border-radius:5px;font-size:12.5px;font-weight:500;white-space:nowrap}
.is-in .wal-pn-amt{background:rgba(35,162,109,.1);color:#1C8A5C;font-weight:600}

/* 3. the auto top-up rule: the two selects line up in one column */
.wal-pn-d{margin-top:8px;font-size:12px;line-height:1.4;color:#7B788A;text-wrap:pretty}
.wal-pn-rule{display:grid;grid-template-columns:auto auto;justify-content:start;align-items:center;gap:8px 9px;margin-top:auto;padding-top:12px;font-size:12.5px;color:#4A4656}
.wal-pn-rule>span:not(.wal-pn-sel){text-align:right}
.wal-pn-sel{display:inline-flex;align-items:center;justify-content:space-between;gap:8px;min-width:68px;height:26px;padding:0 7px 0 10px;border-radius:6px;background:#fff;box-shadow:inset 0 0 0 1px #E6E4EC,0 1px 2px rgba(28,22,70,.05);font-weight:500;color:#1C1A24}
.wal-pn-sel svg{width:12px;height:12px;color:#7B788A}

/* wide cards (the 1200px grid): a size up, so the app's 12-13px type still reads across a 1200px panel */
@container (min-width:1000px){
  .wal-pn{padding:22px 0 21px}
  .wal-pn-h{font-size:14px}
  .wal-pn-d{font-size:13px}
  .wal-pn-k{font-size:12.5px}
  .wal-pn-ok{font-size:13px}
  .wal-pn-row{gap:12px;padding:6px 0}
  .wal-pn-what b,.wal-pn-amt{font-size:13.5px}
  .wal-pn-what span{font-size:12px}
  .wal-pn-rule{font-size:13.5px;gap:8px 10px}
  .wal-pn-sel{height:28px;min-width:72px}
}

/* two columns: the balance beside the top-up rule, the activity under them */
@container (max-width:820px){
  .wal-pn{grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:0}
  .wal-pn-col{padding:20px clamp(18px,3.4cqw,28px)}
  .wal-pn-bal{grid-area:1/1}
  .wal-pn-auto{grid-area:1/2}
  .wal-pn-col.wal-pn-feed{grid-area:2/1/3/3;border-left:0;border-top:1px solid #EFEEF4;padding-top:18px}
}
/* one column (phones, and cards too narrow for "When the balance falls below [$50]" on one line): stacked, the
   hairlines inset */
@container (max-width:600px){
  .wal-pn{grid-template-columns:minmax(0,1fr)}
  .wal-pn .wal-pn-col{grid-area:auto;margin:0 18px;padding:18px 0}
  .wal-pn-col+.wal-pn-col{border-left:0;border-top:1px solid #EFEEF4}
  .wal-pn-big{font-size:36px}
  .wal-pn-funds{padding-top:12px}
}


/* ================= compare picture (tools/wal_pic_compare.py) ================= */
/* ---------- Digital wallet page, "Why not credits?": the compare picture (tools/wal_pic_compare.py) and the credits |
   wallet table under it (credits() in tools/wal_markup.py). ----------
   The picture: the same three lookups billed two ways, a greyed credits bill tilted a step behind, the Loopster wallet's
   receipt straight and crisp in front. Sized by its own width (container units), so it works from a 300px phone to the
   960px section. */
.wal-cmp{container-type:inline-size;width:min(960px,100%);margin:0 auto}
.wal-cmp-pair{display:flex;justify-content:center;align-items:center;padding:6px 0 14px}
.wal-cmp-card{position:relative;flex:none;padding:20px 22px 20px;border-radius:12px;font-family:"Geist",var(--sans);font-feature-settings:"tnum" 1;font-size:13px;line-height:1.3;color:#1C1A24;-webkit-font-smoothing:antialiased}
.wal-cmp-card p{margin:0}
/* in front: the app's white card */
.wal-cmp-new{z-index:1;width:min(372px,50cqw);background:#fff;box-shadow:0 0 0 1px rgba(28,22,70,.07),0 26px 52px -22px rgba(30,24,60,.42),0 8px 18px -8px rgba(30,24,60,.18)}
/* behind: the same bill on grey paper, tilted, a step smaller; its right edge tucks under the receipt (padding only) */
.wal-cmp-old{width:min(344px,47cqw);margin-right:-22px;padding-right:40px;background:#F1F0F4;color:#6E6A78;box-shadow:0 0 0 1px rgba(28,22,70,.06),0 18px 34px -22px rgba(30,24,60,.3);transform:translateY(12px) rotate(-2.4deg) scale(.95);transform-origin:100% 50%}

.wal-cmp-hd{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 10px}
.wal-cmp-t{display:flex;align-items:center;gap:7px;font-size:14px;font-weight:600;letter-spacing:-.005em;white-space:nowrap}
.wal-cmp-old .wal-cmp-t{color:#5B5868}
.wal-cmp-w{width:16px;height:16px;flex:none;color:#1C8A5C}
.wal-cmp-s{margin-top:4px !important;font-size:11.5px;color:#7B788A}
.wal-cmp-old .wal-cmp-s{color:#86828F}
.wal-cmp-tag{display:inline-flex;align-items:center;gap:5px;height:22px;padding:0 8px;border-radius:6px;font-size:11px;font-weight:500;white-space:nowrap}
.wal-cmp-exp{background:rgba(183,121,31,.1);color:#94650F}
.wal-cmp-ok{background:rgba(35,162,109,.1);color:#1C8A5C}
.wal-cmp-ok i{width:6px;height:6px;border-radius:50%;background:#23A26D}
.wal-cmp-g{width:13px;height:13px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* the three lines: an icon (the vendor's logo on the receipt), what it was, what it cost */
.wal-cmp-rows{margin:16px 0 0;padding:0;list-style:none;border-top:1px solid #EFEEF4}
.wal-cmp-old .wal-cmp-rows{border-color:#E3E1E8}
.wal-cmp-rows li{display:grid;grid-template-columns:26px minmax(0,1fr) auto;align-items:center;gap:11px;min-height:50px;padding:8px 0;border-bottom:1px solid #EFEEF4}
.wal-cmp-old .wal-cmp-rows li{border-color:#E3E1E8}
.wal-cmp-ic{display:grid;place-items:center;width:26px;height:26px;border-radius:7px;background:#E7E5EC;color:#8C8897}
.wal-cmp-ic .wal-cmp-g{width:14px;height:14px;stroke-width:1.8}
.wal-cmp-new .wal-cmp-ic{background:#fff;box-shadow:inset 0 0 0 1px #EFEEF4}
.wal-cmp-ic img{display:block;width:18px;height:18px;border-radius:4px;object-fit:contain}
.wal-cmp-l{display:flex;flex-direction:column;gap:3px;min-width:0}
.wal-cmp-l b{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wal-cmp-l small{font-size:11.5px;color:#7B788A;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wal-cmp-v{font-weight:500;white-space:nowrap}
.wal-cmp-new .wal-cmp-v{font-weight:600}

/* the total: a puzzle on the left, plain dollars on the right */
.wal-cmp-tot{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-top:14px !important;font-weight:500}
.wal-cmp-tot b{font-size:21px;font-weight:600;letter-spacing:-.02em;line-height:1.1;white-space:nowrap}
.wal-cmp-old .wal-cmp-tot b{font-size:17px;color:#5B5868}
.wal-cmp-ft{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:12px !important;padding-top:12px;border-top:1px dashed #DAD8E0;font-size:12px}
.wal-cmp-q{display:inline-flex;align-items:center;gap:6px;font-size:17px;font-weight:600;color:#5B5868}
.wal-cmp-q i{display:grid;place-items:center;width:27px;height:27px;border-radius:6px;border:1.5px dashed #A8A4B2;font-style:normal;color:#5B5868}
.wal-cmp-sure{justify-content:flex-start;gap:7px;color:#1C8A5C;font-weight:500;min-height:24px}
.wal-cmp-sure .wal-cmp-g{width:14px;height:14px;stroke-width:2.4}

/* phones: the two bills stacked, the credits bill above and a step behind */
@container (max-width:600px){
  .wal-cmp-pair{flex-direction:column;align-items:stretch;padding:4px 2px 10px}
  .wal-cmp-old{align-self:flex-start;width:min(90%,344px);margin:0 0 -16px;padding:16px 18px 30px;transform:rotate(-2deg) scale(.96);transform-origin:50% 100%}
  .wal-cmp-old .wal-cmp-rows{margin-top:12px}
  .wal-cmp-old .wal-cmp-rows li{min-height:42px;padding:6px 0}
  .wal-cmp-old .wal-cmp-tot{margin-top:11px !important}
  .wal-cmp-old .wal-cmp-ft{margin-top:9px !important;padding-top:9px}
  .wal-cmp-new{align-self:flex-end;width:min(94%,372px)}
}
@container (max-width:360px){
  .wal-cmp-card{padding:16px 16px 16px}
  .wal-cmp-old{padding-bottom:28px}
  .wal-cmp-old,.wal-cmp-new{width:96%}
  .wal-cmp-rows li{grid-template-columns:24px minmax(0,1fr) auto;gap:9px;min-height:46px}
  .wal-cmp-ic{width:24px;height:24px}
  .wal-cmp-tot b{font-size:19px}
}

/* ---------- the table: credits | Loopster wallet, a wax-crayon band behind the wallet column ----------
   The band is one box at the column's edges (24% | 38% | 38%, fixed), outlined by features.js ([data-crayon]) and
   coloured in by v2-pricing.js ([data-crayon-fill]) in a light wallet green, under the text. */
.wal-tbl{position:relative;isolation:isolate;width:min(960px,100%);margin:clamp(40px,4.2vw,60px) auto 0}
.wal-tbl-band{position:absolute;z-index:0;top:0;bottom:0;left:62%;width:38%;isolation:isolate;pointer-events:none;--fill-mix:24%}
/* without the scripts (or before they run) a plain light tint marks the column; the wax replaces it */
.wal-tbl-band{border-radius:16px;background:rgba(35,162,109,.08)}
.wal-tbl-band:has(>.v2p-fill){background:none}
.wal-tbl-band .f-box path{stroke-width:2.6}
.wal-tbl-band .f-box .fill{fill:rgba(255,255,255,.5)}
.wal-tbl-band>.v2p-fill{position:absolute;z-index:-1;left:0;top:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.wal-tbl-band .v2p-fill path{fill:none;stroke:color-mix(in srgb,var(--cc) var(--fill-mix,34%),#fff);stroke-linecap:round;stroke-linejoin:round}
.wal-tbl-band .v2p-fill.is-in{animation:v2p-colour .9s cubic-bezier(.4,.1,.3,1) .45s both}
@media (prefers-reduced-motion:reduce){.wal-tbl-band .v2p-fill.is-in{animation:none}}

.wal-tbl .wal-table{position:relative;z-index:1;width:100%;margin:0;table-layout:fixed;border-collapse:separate;border-spacing:0;font:400 16px/1.45 var(--sans)}
.wal-tbl .wal-table :is(th,td){padding:17px 22px;border:0;text-align:left;vertical-align:top;overflow-wrap:break-word}
.wal-tbl .wal-table thead td{width:24%}
.wal-tbl .wal-table thead th{width:38%;padding-top:26px;padding-bottom:16px;font:500 16px/1.25 var(--sans);color:#18161D}
.wal-tbl .wal-table thead .wal-them{color:var(--fg-60)}
.wal-tbl .wal-table thead .wal-us{padding-left:26px}
.wal-tbl-w{display:inline-block;width:18px;height:18px;margin:-3px 8px 0 0;vertical-align:middle;color:#1C8A5C}
.wal-tbl .wal-table tbody :is(th,td){border-top:1px solid var(--fg-10)}
.wal-tbl .wal-table tbody .wal-us{border-top-color:rgba(18,92,60,.14)}
.wal-tbl .wal-table tbody th{width:auto;padding-left:4px;font-weight:500;color:#18161D}
.wal-tbl .wal-table tbody .wal-them{color:var(--fg-60)}
.wal-tbl .wal-table tbody .wal-us{padding-left:26px;font-weight:500;color:#111}
.wal-tbl .wal-table tbody tr:last-child>*{padding-bottom:26px}

/* phones: each row is its label, then the two answers side by side; the band runs down the right half */
@media (max-width:640px){
  .wal-tbl-band{left:50%;width:50%}
  .wal-tbl .wal-table,.wal-tbl .wal-table :is(thead,tbody,tr,th,td){display:block;width:auto}
  .wal-tbl .wal-table :is(thead,tbody) tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .wal-tbl .wal-table thead .wal-tbl-0{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0 0 0 0)}
  .wal-tbl .wal-table thead th{width:auto;padding:20px 14px 14px;font-size:15px}
  .wal-tbl .wal-table thead .wal-them{padding-left:2px}
  .wal-tbl .wal-table thead .wal-us{padding-left:16px}
  .wal-tbl .wal-table tbody tr{border-top:1px solid var(--fg-10)}
  .wal-tbl .wal-table tbody :is(th,td){border-top:0}
  .wal-tbl .wal-table tbody th{grid-column:1 / -1;padding:15px 14px 6px 2px;font-size:13.5px;line-height:1.3;color:#18161D}
  .wal-tbl .wal-table tbody td{padding:0 14px 16px;font-size:14.5px;line-height:1.4}
  .wal-tbl .wal-table tbody .wal-them{padding-left:2px}
  .wal-tbl .wal-table tbody .wal-us{padding-left:16px}
  .wal-tbl .wal-table tbody tr:last-child>th{padding-bottom:6px}
  .wal-tbl .wal-table tbody tr:last-child>td{padding-bottom:22px}
}


/* ================= split picture (tools/wal_pic_split.py) ================= */
/* ---------- Digital wallet page: "Most of Loopster never touches your wallet." (split() in tools/wal_markup.py) ----------
   The card: text | picture like the page's other crayon cards, with the two lists (included / paid from the wallet)
   stacked on the text side; side by side only where the text runs the card's full width (861-1023 stacks the card).
   The picture (tools/wal_pic_split.py): the app's Add column panel, "For you" tab. Its top half is free, its bottom half
   is what the wallet pays for. Plain HTML in the app's type (Geist, tabular numbers), sized for a 290-470px well. */

/* ---- the card ---- */
@media (min-width:861px){.wal-split-card{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);align-items:stretch}}   /* wal.css stacks it at 860 */
.wal-split-groups{display:flex;flex-direction:column;gap:18px;width:100%;margin-top:4px}
.wal-split-group+.wal-split-group{padding-top:18px;border-top:1px solid var(--fg-10)}
.wal-split-h{display:flex;align-items:center;gap:8px;margin:0 0 10px;font:400 11px/1.3 var(--pixel);letter-spacing:.05em;text-transform:uppercase}
.wal-split-g-free .wal-split-h{color:#1C8A5C}
.wal-split-g-paid .wal-split-h{color:#5B5868}
.wal-split-mark{flex:none;width:14px;height:14px}
.wal-split-list{display:flex;flex-direction:column;gap:8px;margin:0;padding:0;list-style:none}
.wal-split-list li{position:relative;padding-left:22px;font:400 15px/1.5 var(--sans);color:var(--fg-70);text-wrap:pretty}
.wal-split-list li::before{content:"";position:absolute;left:3px;top:.6em;width:7px;height:7px;border-radius:2px}
.wal-split-g-free li::before{background:#23A26D}
.wal-split-g-paid li::before{background:#B9B6C3}
.wal-split-well{min-height:0}
@media (min-width:561px){.wal-split-well{padding:clamp(16px,2vw,26px)}}   /* phones keep the page's 20px 8px */

/* ---- the picture: an app window ---- */
.wal-split-win{width:100%;max-width:470px;overflow:hidden;background:#fff;border-radius:12px;box-shadow:0 0 0 1px rgba(28,22,70,.07),0 26px 52px -22px rgba(30,24,60,.42),0 8px 18px -8px rgba(30,24,60,.18);
  font-family:"Geist",var(--sans);font-size:13px;line-height:1.3;font-feature-settings:"tnum" 1;color:#1C1A24;-webkit-font-smoothing:antialiased;text-align:left}
.wal-split-bar{display:flex;align-items:center;gap:9px;height:32px;padding:0 12px;border-bottom:1px solid #EFEEF4;color:#7B788A;font-size:12px;white-space:nowrap}
.wal-split-dots{display:flex;gap:5px}
.wal-split-dots i{width:9px;height:9px;border-radius:50%;background:#E6E4EB}
.wal-split-x{width:14px;height:14px;margin-left:auto;color:#A9A6B4}

/* the tabs: For you is on */
.wal-split-tabs{display:flex;gap:16px;padding:0 14px;border-bottom:1px solid #EFEEF4;white-space:nowrap;overflow:hidden}
.wal-split-tabs span{position:relative;padding:10px 0 9px;font-size:12.5px;color:#7B788A}
.wal-split-tabs .is-on{font-weight:500;color:#1C1A24}
.wal-split-tabs .is-on::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;border-radius:2px;background:#1C1A24}

/* the two sections */
.wal-split-sec{padding:4px 0 6px}
/* the line the wallet starts at: a dashed rule with its label on it, and the paid half on a faint grey */
.wal-split-sec-paid{position:relative;margin-top:8px;padding-top:10px;border-top:1px dashed #D6D4DE;background:#FAFAFC}
.wal-split-line{position:absolute;top:0;left:0;right:0;display:flex;justify-content:center;margin:0;transform:translateY(-50%)}
.wal-split-line span{display:inline-flex;align-items:center;gap:6px;height:22px;padding:0 9px 0 8px;border-radius:6px;background:#fff;box-shadow:0 0 0 1px #E2E0E8,0 2px 6px -2px rgba(30,24,60,.12);
  font:400 10.5px/1 var(--pixel);letter-spacing:.04em;text-transform:uppercase;color:#4A4656;white-space:nowrap}
.wal-split-line svg{width:13px;height:13px}
.wal-split-sh{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0;padding:10px 14px 6px}
.wal-split-sh b{font-size:12px;font-weight:600;color:#1C1A24}
.wal-split-sh span{display:inline-flex;align-items:center;gap:5px;font-size:11.5px;color:#7B788A;white-space:nowrap}
.wal-split-sh svg{width:13px;height:13px}
.wal-split-rows{margin:0;padding:0 6px;list-style:none}
.wal-split-rows li{display:flex;align-items:center;gap:10px;min-height:34px;padding:5px 8px;border-radius:8px}
.wal-split-ic{flex:none;display:grid;place-items:center;width:24px;height:24px;border-radius:7px;background:#F3F2F7;color:#4A4656}
.wal-split-svg{width:15px;height:15px}
.wal-split-l{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wal-split-free{flex:none;display:inline-flex;align-items:center;height:21px;padding:0 8px;border-radius:6px;background:#F2F1F6;color:#6E6A78;font-size:11.5px;font-weight:500}

/* when you need more: name over its subtitle, the vendors, the wallet price */
.wal-split-more li{min-height:46px}
.wal-split-more .wal-split-ic{background:#fff;box-shadow:inset 0 0 0 1px #E9E8EF}
.wal-split-n{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}
.wal-split-n b{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wal-split-n span{font-size:11.5px;color:#7B788A;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wal-split-logos{flex:none;display:flex;align-items:center}
.wal-split-logos img{display:block;width:20px;height:20px;padding:2.5px;margin-left:-5px;border-radius:50%;background:#fff;box-shadow:0 0 0 1px #E9E8EF;object-fit:contain}
.wal-split-logos img:first-child{margin-left:0}
.wal-split-logos i{margin-left:5px;font-style:normal;font-size:11px;color:#7B788A}
.wal-split-price{flex:none;display:inline-flex;align-items:center;gap:5px;height:22px;padding:0 8px 0 7px;border-radius:6px;background:rgba(35,162,109,.1);color:#1C8A5C;font-size:11.5px;font-weight:500;white-space:nowrap}
.wal-split-price svg{width:13px;height:13px}

/* narrower windows (tablets stacked, phones): the vendor logos go, then the tabs and rows tighten */
@container (max-width:400px){
  .wal-split-logos{display:none}
  /* the name and the price on one line, the subtitle under both (beside a 130px price, "Phone waterfall" ran out of room) */
  .wal-split-more li{display:grid;grid-template-columns:24px minmax(0,1fr) auto;gap:2px 10px}
  .wal-split-more .wal-split-ic{grid-row:1/3}
  .wal-split-n{display:contents}
  .wal-split-n b{grid-area:1/2}
  .wal-split-n span{grid-area:2/2/3/4}
  .wal-split-price{grid-area:1/3}
}
/* phones: the tabs tighten, and the price goes under the subtitle (beside it, the names were cut: "Phone water…") */
@container (max-width:360px){
  .wal-split-tabs{gap:13px;padding:0 12px}
  .wal-split-tabs span{font-size:12px}
  .wal-split-sh{padding:10px 12px 6px}
  .wal-split-rows{padding:0 4px}
  .wal-split-rows li{column-gap:9px;padding-left:8px;padding-right:8px}
  .wal-split-more li{grid-template-columns:24px minmax(0,1fr);padding-top:8px;padding-bottom:8px}
  .wal-split-more .wal-split-ic{grid-row:1/4;align-self:start}
  .wal-split-n span{grid-area:2/2}
  .wal-split-price{grid-area:3/2;justify-self:start;margin-top:6px}
}
@container (max-width:330px){
  .wal-split-tabs span:last-child{display:none}
}

/* text beside the picture only above 860; under it the card stacks, and the lists sit side by side while there's room */
@media (min-width:561px) and (max-width:860px){
  .wal-split-groups{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(20px,3vw,32px)}
  .wal-split-group+.wal-split-group{padding-top:0;border-top:0}
}


/* ================= steps picture (tools/wal_pic_steps.py) ================= */
/* ---------- Digital wallet page: the three "How it works" pictures (tools/wal_pic_steps.py) ----------
   One white card per step, same frame, padding and type, so they read as a set: the balance card, the run dialog, the
   ledger. Each picture is its own size container (wal-st): 213-261px wide in the three columns (1024 and up), 260-288px on
   phones, at most 340px on the single column (tablets). Narrow cards stack the top-up control and give each ledger row
   two lines; from 330px they lay out like the app. Static, no motion. Text never goes under 10.5px. */

/* the step wells: one height in the three columns, so the three pictures and the step numbers line up */
.wal-well.wal-st-well{min-height:296px;padding:18px}
@media (max-width:1023px){.wal-well.wal-st-well{min-height:0;padding:28px 20px}}
@media (max-width:560px){.wal-well.wal-st-well{padding:22px 16px}}   /* phones: the cards keep a marble frame (the page's 8px sides crowded them) */

.wal-st{container:wal-st/inline-size;width:100%;max-width:340px;font-family:"Geist",var(--sans);font-feature-settings:"tnum" 1;font-size:12px;line-height:1.3;color:#1C1A24;text-align:left;-webkit-font-smoothing:antialiased}
:where(.wal-st) div{margin:0}
:where(.wal-st) i{font-style:normal}
.wal-st-card{padding:13px 12px 12px;border-radius:12px;background:#fff;box-shadow:0 0 0 1px rgba(28,22,70,.07),0 26px 52px -22px rgba(30,24,60,.42),0 8px 18px -8px rgba(30,24,60,.18)}
.wal-st-h{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:600;line-height:1.25;letter-spacing:-.006em}
.wal-st-btn{display:inline-flex;flex:none;align-items:center;justify-content:center;height:30px;padding:0 12px;border-radius:8px;background:#1C1A24;font-size:12px;font-weight:500;color:#fff;white-space:nowrap}
.wal-st-ghost{background:#fff;box-shadow:inset 0 0 0 1px #E4E2EA;color:#1C1A24}

/* 1: the balance card */
.wal-st-big{margin-top:5px;font-size:27px;font-weight:600;line-height:1.1;letter-spacing:-.03em}
.wal-st-cap{margin-top:10px;font-size:11px;color:#7B788A}
.wal-st-plans{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px;margin-top:6px;padding:3px;border-radius:9px;background:#F4F3F7}
.wal-st-plans>span{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:0;padding:4px 2px 5px;border-radius:7px}
.wal-st-plans i{font-size:10.5px;line-height:1.2;color:#7B788A}
.wal-st-plans b{font-size:12.5px;font-weight:600;line-height:1.2;color:#5B5868}
.wal-st-plans .wal-st-on{background:#fff;box-shadow:0 0 0 1px rgba(28,22,70,.06),0 1px 3px rgba(28,22,70,.12)}
.wal-st-plans .wal-st-on i{color:#1C8A5C}
.wal-st-plans .wal-st-on b{color:#1C1A24}
.wal-st-top{display:flex;flex-direction:column;gap:6px;margin-top:10px}
.wal-st-sel{display:flex;align-items:center;gap:8px;min-width:0;padding:5px 9px 5px 10px;border-radius:8px;background:#fff;box-shadow:inset 0 0 0 1px #E4E2EA}
.wal-st-opt{display:flex;flex:1;flex-direction:column;gap:1px;min-width:0}
.wal-st-opt b{font-weight:600}
.wal-st-opt i{display:none}
.wal-st-opt span{font-size:11px;color:#7B788A}
.wal-st-chev{flex:none;width:12px;height:12px;color:#7B788A}
.wal-st-bal .wal-st-btn{width:100%;height:29px}

/* 2: the run dialog */
.wal-st-p{margin-top:7px;font-size:12px;line-height:1.5;color:#5B5868;text-wrap:balance}
.wal-st-p b{font-weight:600;color:#1C1A24}
.wal-st-cost{display:flex;flex-direction:column;gap:9px;margin-top:15px;padding:11px 10px;border-radius:9px;background:#F8F8FA;box-shadow:inset 0 0 0 1px #EFEEF4}
.wal-st-col{display:flex;align-items:center;gap:6px;min-width:0;white-space:nowrap}
.wal-st-col img{flex:none;width:16px;height:16px;border-radius:4px}
.wal-st-col b{font-weight:500}
.wal-st-col span{overflow:hidden;text-overflow:ellipsis;font-size:11.5px;color:#7B788A}
.wal-st-col span::before{content:"·";margin-right:6px}
.wal-st-cpr{display:flex;align-items:baseline;justify-content:space-between;gap:8px;padding-top:9px;border-top:1px solid #ECEBF1}
.wal-st-cpr span{font-size:11.5px;color:#7B788A}
.wal-st-cpr b{font-size:12.5px;font-weight:600}
.wal-st-acts{display:flex;justify-content:flex-end;gap:6px;margin-top:18px}
.wal-st-run .wal-st-card{padding:17px 14px 15px}
.wal-st-run .wal-st-h{font-size:14px}
.wal-st-run .wal-st-btn{padding:0 11px}

/* 3: the ledger, newest first: spend is one red row a day, credits are green and say where they came from */
.wal-st-sub{display:none;margin-top:3px;font-size:11.5px;color:#7B788A}
.wal-st-th{display:none}
.wal-st-rows{margin-top:11px}
.wal-st-row{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"desc amt" "date amt";align-items:center;gap:2px 6px;padding:7px 0;border-top:1px solid #EFEEF4}
.wal-st-row:last-child{padding-bottom:1px}
.wal-st-desc{grid-area:desc;min-width:0;font-weight:500}   /* wraps rather than clips if a label ever outgrows the row */
.wal-st-d{grid-area:date;font-size:11px;color:#7B788A;white-space:nowrap}
.wal-st-amt{grid-area:amt;display:inline-flex;align-items:center;gap:2px;justify-self:end;padding:3px 6px 3px 4px;border-radius:6px;font-size:11.5px;font-weight:600;white-space:nowrap}
.wal-st-arr{flex:none;width:10px;height:10px}
.wal-st-out{background:rgba(212,68,47,.09);color:#B8392A}
.wal-st-in{background:rgba(35,162,109,.1);color:#1C8A5C}

/* from 330px (the single column on tablets): the top-up control on one line, the ledger as the app's three columns */
@container wal-st (min-width:330px){
  .wal-st-card{padding:15px 14px 14px}
  .wal-st-top{flex-direction:row}
  .wal-st-sel{flex:1;padding:0 9px 0 10px}
  .wal-st-opt{flex-direction:row;align-items:baseline;white-space:nowrap}
  .wal-st-opt i{display:inline;white-space:pre;color:#7B788A}
  .wal-st-opt span{overflow:hidden;font-size:12px;text-overflow:ellipsis}
  .wal-st-bal .wal-st-btn{width:auto}
  .wal-st-sub{display:block}
  .wal-st-th{display:grid;grid-template-columns:86px minmax(0,1fr) auto;gap:8px;margin-top:12px;padding-bottom:6px;font-size:11px;color:#7B788A}
  .wal-st-th span:last-child{text-align:right}
  .wal-st-rows{margin-top:0}
  .wal-st-row{grid-template-columns:86px minmax(0,1fr) auto;grid-template-areas:"date desc amt";padding:8px 0}
}


/* ================= topup picture (tools/wal_pic_topup.py) ================= */
/* Digital wallet page: the Auto top-up picture (tools/wal_pic_topup.py). The app's Auto top-up card, and under it a
   week of wallet balance falling to the dashed $50 floor and jumping up by $100, twice. Sized by the well's width
   (.wal-well is an inline-size container): 300px on phones to 420px on desktop. */
.wal-topup{display:flex;flex-direction:column;gap:12px;width:min(100%,420px);font-family:"Geist",var(--sans);font-feature-settings:"tnum" 1;line-height:1.3;color:#1C1A24;text-align:left;-webkit-font-smoothing:antialiased}
.wal-topup :where(p){margin:0}
.wal-topup-card{background:#fff;border-radius:12px;box-shadow:0 0 0 1px rgba(28,22,70,.07),0 26px 52px -22px rgba(30,24,60,.42),0 8px 18px -8px rgba(30,24,60,.18)}

/* the app's card */
.wal-topup-set{padding:16px 18px}
.wal-topup-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.wal-topup-t{font-size:14px;font-weight:600;letter-spacing:-.005em}
.wal-topup-sw{position:relative;flex:none;width:30px;height:17px;border-radius:99px;background:#1C1A24}
.wal-topup-sw i{position:absolute;top:2px;right:2px;width:13px;height:13px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.25)}
.wal-topup-d{margin-top:4px;font-size:12.5px;line-height:1.45;color:#7B788A;text-wrap:pretty}
.wal-topup-rows{display:flex;flex-direction:column;gap:8px;margin-top:14px;padding-top:14px;border-top:1px solid #EFEEF4}
.wal-topup-row{display:flex;align-items:center;gap:8px;font-size:13px;color:#4A4656}
.wal-topup-sel{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 7px 0 10px;border-radius:7px;background:#fff;box-shadow:inset 0 0 0 1px #E4E2EA,0 1px 2px rgba(28,22,70,.05)}
.wal-topup-sel b{font-size:13px;font-weight:600;color:#1C1A24}
.wal-topup-chev{width:13px;height:13px;fill:none;stroke:#7B788A;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* the balance chart */
.wal-topup-chart{padding:14px 16px 12px}
.wal-topup-ch{display:flex;align-items:center;justify-content:space-between;gap:12px}
.wal-topup-ct{display:flex;align-items:center;gap:7px;font-size:13px;font-weight:600}
.wal-topup-wic{width:15px;height:15px;fill:none;stroke:#7B788A;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.wal-topup-cm{font-size:11.5px;color:#7B788A}
.wal-topup-plot{--h:clamp(104px,30cqw,128px);position:relative;margin-top:12px;padding-top:34px}
.wal-topup-area{position:relative;height:var(--h)}
.wal-topup-area::before{content:"";position:absolute;left:0;right:0;bottom:0;border-top:1px solid #EFEEF4}
.wal-topup-draw{position:absolute;inset:0}
.wal-topup-svg{display:block;width:100%;height:100%;overflow:visible}
.wal-topup-fill{fill:url(#wal-topup-g)}
.wal-topup-line{fill:none;stroke:#1C1A24;stroke-width:1.6;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}
.wal-topup-jump{fill:none;stroke:#23A26D;stroke-width:2.2;stroke-linecap:round;vector-effect:non-scaling-stroke}
.wal-topup-floor{position:absolute;left:0;right:0;top:var(--y);border-top:1px dashed rgba(183,121,31,.75)}
.wal-topup-floor span{position:absolute;right:0;top:0;transform:translateY(-50%);padding:2px 5px;border-radius:4px;background:#FDF4E3;font-size:10.5px;font-weight:600;line-height:1.2;color:#9A6A07}
.wal-topup-dot{position:absolute;left:var(--x);top:var(--y);width:7px;height:7px;margin:-3.5px 0 0 -3.5px;border-radius:50%}
.wal-topup-lo{background:#fff;box-shadow:inset 0 0 0 1.5px #B7791F}
.wal-topup-hi{background:#23A26D;box-shadow:0 0 0 2px #fff}
.wal-topup-now{background:#1C1A24;box-shadow:0 0 0 2px #fff}
.wal-topup-add{position:absolute;left:var(--x);top:var(--y);transform:translate(7px,-50%);font-size:10.5px;font-weight:600;color:#1C8A5C}
.wal-topup-lead{position:absolute;left:var(--x);top:-10px;height:calc(10px + var(--y) * var(--h) / 100 - 4px);border-left:1px dashed rgba(35,162,109,.7);margin-left:-.5px}
.wal-topup-toast{position:absolute;top:0;right:calc(100% - var(--x) - 40px);display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 9px 0 4px;border-radius:7px;background:#fff;box-shadow:0 0 0 1px rgba(28,22,70,.08),0 8px 18px -8px rgba(30,24,60,.35);font-size:11.5px;white-space:nowrap}
.wal-topup-toast b{font-weight:500}
.wal-topup-toast i{font-style:normal;color:#B4B1BE}
.wal-topup-toast em{font-style:normal;font-weight:600;color:#1C8A5C}
.wal-topup-up{display:grid;place-items:center;width:16px;height:16px;border-radius:5px;background:rgba(35,162,109,.12)}
.wal-topup-up svg{width:11px;height:11px;fill:none;stroke:#1C8A5C;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.wal-topup-x{display:flex;justify-content:space-between;margin-top:8px;font-size:10.5px;color:#7B788A}

/* phones: the well's side padding is 8px there, so the cards step in a little to keep some marble around them */
@container (max-width:400px){
  .wal-topup{width:calc(100% - 12px)}
}
/* small phones (360-375px): a tighter card so "When the balance falls below [$50]" stays on one line */
@container (max-width:300px){
  .wal-topup-set{padding:14px}
  .wal-topup-chart{padding:13px 14px 11px}
  .wal-topup-row{gap:6px;font-size:12.5px}
  .wal-topup-sel{gap:4px;padding:0 6px 0 8px}
  .wal-topup-sel b{font-size:12.5px}
}

/* motion: the line draws in as the chart scrolls into view, then the toast pops (scroll-driven, so it never waits on a
   timer and a still or a printout always shows the finished chart: before and after its range the animation adds
   nothing). Wide screens only, where the whole card fits the window; phones and reduced motion get the still. The well
   clips instead of hiding (same look), so it isn't a scroll container and view() tracks the page's scroll. */
@supports (animation-timeline:view()){
  @media (min-width:861px) and (prefers-reduced-motion:no-preference){
    .wal-well:has(> .wal-topup){overflow:clip}
    .wal-topup-plot{view-timeline:--wal-topup-v block}
    .wal-topup-draw{animation:wal-topup-draw linear forwards;animation-timeline:--wal-topup-v;animation-range:entry 0% contain 18%}
    .wal-topup-toast{animation:wal-topup-pop linear forwards;animation-timeline:--wal-topup-v;animation-range:entry 0% contain 18%}
  }
}
@keyframes wal-topup-draw{
  0%,12%{clip-path:inset(-14px 100% -14px -14px)}
  100%{clip-path:inset(-14px -14px -14px -14px)}
}
@keyframes wal-topup-pop{
  0%,82%{opacity:0;transform:translateY(5px) scale(.96)}
  100%{opacity:1;transform:none}
}


/* ================= team picture (tools/wal_pic_team.py) ================= */
/* Digital wallet page: the team picture (tools/wal_pic_team.py), in the "One wallet. Every workspace. Your rules." card.
   One white app window: the organization's wallet on top, a 1px tree from its glyph down to four workspaces, each with
   a spend-limit bar (Northwind's reached: amber, lookups paused, "Change limit"), then the own-API-key row at $0. Under
   it, the wallet button's three states. Sized off the marble well (container-type:inline-size): ~380-400px wide on
   desktop, 280-310px on phones. Geometry: --p is the window's side padding, --tx the trunk's x (the wallet tile's
   centre), --ix where a workspace row's content starts. */
.wal-team{--p:16px;--tx:31px;--ix:46px;--tile:20px;--ln:#DCDAE4;--ink:#1C1A24;--mut:#7B788A;--hair:#EFEEF4;--amb:#B7791F;
  display:flex;flex-direction:column;gap:10px;width:min(100%,410px);font-family:"Geist",var(--sans);font-feature-settings:"tnum" 1;
  font-size:13px;line-height:1.3;color:var(--ink);-webkit-font-smoothing:antialiased}
.wal-team p{margin:0}
.wal-team-win,.wal-team-legend{background:#fff;border-radius:12px;box-shadow:0 0 0 1px rgba(28,22,70,.07),0 26px 52px -22px rgba(30,24,60,.42),0 8px 18px -8px rgba(30,24,60,.18)}
.wal-team-win{overflow:hidden}
.wal-team-wi,.wal-team-pi{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* title bar (How it works' .hx-bar) */
.wal-team-bar{display:flex;align-items:center;gap:9px;height:32px;padding:0 12px;border-bottom:1px solid var(--hair);color:var(--mut);font-size:12px;white-space:nowrap}
.wal-team-dots{display:flex;gap:5px}
.wal-team-dots i{width:9px;height:9px;border-radius:50%;background:#E6E4EB}

/* the wallet: glyph, available funds, the four workspaces it serves */
.wal-team-head{position:relative;display:flex;align-items:center;gap:12px;padding:13px var(--p) 11px;overflow:hidden}
.wal-team-wal,.wal-team-key{position:relative;flex:none;display:grid;place-items:center;width:32px;height:32px;border-radius:9px}
.wal-team-wal{background:rgba(35,162,109,.1);color:#1C8A5C}
.wal-team-wal::after{content:"";position:absolute;left:calc(var(--tx) - var(--p));top:100%;width:1px;height:80px;background:var(--ln)}
.wal-team-wi{width:17px;height:17px}
.wal-team-funds{display:flex;flex-direction:column;gap:3px;min-width:0}
.wal-team-funds span{font-size:11.5px;color:var(--mut)}
.wal-team-funds b{font-size:clamp(22px,6.6cqw,26px);font-weight:600;line-height:1.05;letter-spacing:-.02em}

/* the tree: a trunk from the wallet glyph, an elbow into each workspace */
.wal-team-tree{position:relative;padding-bottom:7px}
.wal-team-lh{position:relative;display:flex;justify-content:space-between;gap:10px;padding:2px var(--p) 4px var(--ix);font-size:11px;color:var(--mut);white-space:nowrap}
.wal-team-lh::before,.wal-team-ws::before{content:"";position:absolute;left:var(--tx);top:0;bottom:0;width:1px;background:var(--ln)}
.wal-team-list{margin:0;padding:0;list-style:none}
.wal-team-ws{position:relative;display:grid;grid-template-columns:var(--tile) minmax(0,1fr) auto;align-items:center;column-gap:10px;padding:7px var(--p) 7px var(--ix)}
.wal-team-ws:last-child::before{display:none}
.wal-team-ws::after{content:"";position:absolute;left:var(--tx);top:0;width:calc(var(--ix) - var(--tx) - 5px);height:calc(7px + var(--tile) / 2);
  border-left:1px solid var(--ln);border-bottom:1px solid var(--ln);border-bottom-left-radius:8px;box-sizing:border-box}
.wal-team-tile{display:grid;place-items:center;width:var(--tile);height:var(--tile);border-radius:6px;background:#F2F1F6;font-size:10.5px;font-weight:600;color:#5B5868}
.wal-team-name{min-width:0;overflow:hidden;font-weight:500;white-space:nowrap;text-overflow:ellipsis}
.wal-team-cl{font-weight:400;color:var(--mut)}
.wal-team-amt{font-size:12.5px;color:var(--mut);white-space:nowrap}
.wal-team-amt b{font-weight:500;color:var(--ink)}
.wal-team-track{grid-column:2/4;height:4px;margin-top:6px;border-radius:2px;background:var(--hair);overflow:hidden}
.wal-team-track i{display:block;height:100%;border-radius:2px;background:#23A26D}
.wal-team-cap .wal-team-amt b{color:var(--amb)}
.wal-team-cap .wal-team-track i{background:#D99A2B}

/* Northwind: limit reached */
.wal-team-note{grid-column:2/4;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 8px;margin-top:8px;padding:3px 3px 3px 8px;border-radius:8px;background:rgba(183,121,31,.08)}
.wal-team-paused{display:inline-flex;align-items:center;gap:4px;min-width:0;font-size:11px;font-weight:500;color:var(--amb)}
.wal-team-pz{flex:none;width:12px;height:12px;fill:currentColor}
.wal-team-btn{padding:3px 7px;border-radius:6px;background:#fff;box-shadow:0 0 0 1px rgba(28,22,70,.1),0 1px 2px rgba(28,22,70,.06);font-size:11px;font-weight:500;white-space:nowrap}

/* bring your own key: $0 from the wallet */
.wal-team-byok{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:12px;padding:9px var(--p);border-top:1px solid var(--hair);background:#FAFAFC}
.wal-team-key{background:#EDECF3;color:#5B5868}
.wal-team-bk{display:flex;flex-direction:column;gap:2px;min-width:0}
.wal-team-bk b{font-weight:500}
.wal-team-bk span{overflow:hidden;font-size:11.5px;color:var(--mut);white-space:nowrap;text-overflow:ellipsis}
.wal-team-zero{padding:4px 8px;border-radius:6px;background:rgba(35,162,109,.1);font-size:11.5px;font-weight:500;color:#1C8A5C;white-space:nowrap}

/* the wallet button's three states */
.wal-team-legend{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:10px 0 8px}
.wal-team-st{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0}
.wal-team-st+.wal-team-st{border-left:1px solid var(--hair)}
.wal-team-pill{display:inline-flex;align-items:center;gap:5px;height:24px;padding:0 9px 0 7px;border-radius:99px;font-size:12px;font-weight:600;white-space:nowrap}
.wal-team-pi{width:13px;height:13px;stroke-width:2}
.wal-team-pill-ok{background:rgba(35,162,109,.1);color:#1C8A5C}
.wal-team-pill-low{background:rgba(183,121,31,.1);color:var(--amb)}
.wal-team-pill-empty{background:rgba(212,68,47,.08);color:#D4442F}
.wal-team-lg{font-size:11px;color:var(--mut)}

/* phones (the well is 280-310px wide at 360-390) */
@container (max-width:330px){
  .wal-team{--p:12px;--tx:25px;--ix:38px;--tile:18px}
  .wal-team-wal,.wal-team-key{width:28px;height:28px;border-radius:8px}
  .wal-team-byok{grid-template-columns:28px minmax(0,1fr) auto;gap:10px}
  .wal-team-head{gap:10px}
  .wal-team-ws{column-gap:8px}
}
@container (max-width:300px){
  .wal-team-cl{display:none}
}
/* small phones (320): the $0 pill drops under the key's name, the state pills lose their glyph */
@container (max-width:270px){
  .wal-team-byok{grid-template-columns:28px minmax(0,1fr);row-gap:6px}
  .wal-team-zero{grid-column:2;justify-self:start}
  .wal-team-pill{padding:0 8px}
  .wal-team-pill .wal-team-pi{display:none}
}
