/* Nikola Togoev portfolio. Direction C "Studio".
   Edit colors and fonts here; every page uses these tokens. */
:root{
  --bg:#ffffff;
  --fg:#0d0d12;
  --muted:#55556a;
  --soft:#f1f1f4;
  --line:#e4e4ea;
  --accent:#3d5afe;
  --accent-2:#9b5cff;
  --dark:#0d0d12;
  --body-text:#2b2b38;
  --on-fg:#ffffff;
  --surface:#ffffff;
  --header-bg:rgba(255,255,255,.82);
  --radius:22px;
  --display:"Space Grotesk",system-ui,sans-serif;
  --body:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
  --mono:"JetBrains Mono",ui-monospace,Menlo,monospace;
  --page:1240px;
  --text:720px;
  color-scheme:light;
}
:root[data-theme=dark]{
  --bg:#0e0e13;
  --fg:#f2f2f6;
  --muted:#a2a2b5;
  --soft:#1a1a22;
  --line:#2a2a35;
  --accent:#7b8cff;
  --dark:#06060a;
  --body-text:#d3d3dc;
  --on-fg:#0e0e13;
  --surface:#15151c;
  --header-bg:rgba(14,14,19,.8);
  color-scheme:dark;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{background:var(--bg);color:var(--fg);font:16px/1.6 var(--body);-webkit-font-smoothing:antialiased}
img,iframe,video{display:block;max-width:100%}
a{color:inherit}
:focus-visible{outline:3px solid var(--accent);outline-offset:3px;border-radius:6px}
.wrap{max-width:var(--page);margin:0 auto;padding:0 24px}

/* nav (sticky) */
.site-header{position:sticky;top:0;z-index:50;background:var(--header-bg);-webkit-backdrop-filter:saturate(180%) blur(14px);backdrop-filter:saturate(180%) blur(14px);border-bottom:1px solid transparent;transition:border-color .2s}
.site-header.scrolled{border-bottom-color:var(--line)}
.nav{display:flex;justify-content:space-between;align-items:center;gap:16px;padding-block:14px}
html{scroll-padding-top:80px}
.nav .brand{font:700 16px var(--display);text-decoration:none;letter-spacing:-.01em}
.nav ul{display:flex;gap:28px;list-style:none;flex-wrap:wrap}
.nav ul a{display:block;padding:6px 0;text-decoration:none;font-size:15px;font-weight:500;color:var(--muted);transition:color .15s}
.nav ul a:hover{color:var(--fg)}
.nav ul a[aria-current=page]{color:var(--fg);font-weight:600}
.nav .brand{white-space:nowrap}
@media (max-width:560px){.wrap.nav{padding-inline:16px}.nav ul{gap:14px;flex-wrap:nowrap}.nav ul a{font-size:14px}.nav .brand{font-size:15px}}

/* hero */
.hero{padding-block:56px 40px}
.hero h1{font:700 clamp(44px,7.5vw,104px)/.92 var(--display);letter-spacing:-.04em}
.grad{background:linear-gradient(90deg,var(--accent),var(--accent-2));-webkit-background-clip:text;background-clip:text;color:transparent}
.hero .lede{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;flex-wrap:wrap;margin-top:28px}
.hero .lede p{max-width:56ch;font-size:19px;line-height:1.5;color:var(--muted)}
.btn{display:inline-block;background:var(--fg);color:var(--on-fg);padding:14px 22px;border-radius:999px;text-decoration:none;font-weight:600;font-size:15px}
.btn:hover{background:var(--accent)}
.btn.ghost{background:var(--soft);color:var(--fg)}
.btn.ghost:hover{background:var(--fg);color:var(--on-fg)}

/* bento */
.bento{display:grid;grid-template-columns:repeat(6,1fr);gap:14px;padding-bottom:24px}
.tile{border-radius:var(--radius);overflow:hidden;position:relative;color:#fff;padding:26px;min-height:340px;display:flex;flex-direction:column;justify-content:space-between;text-decoration:none;background:#22222c;isolation:isolate}
.tile img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;transition:transform .5s ease}
.tile::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0) 40%,rgba(0,0,0,.65));z-index:-1}
.tile:hover img{transform:scale(1.03)}
.tile small,.stat small,.eyebrow{font:500 12px var(--mono);text-transform:uppercase;letter-spacing:.08em}
.tile small{opacity:.9}
.tile h3{font:700 clamp(22px,2.4vw,30px)/1.08 var(--display);letter-spacing:-.01em}
.tile .k{margin-top:8px;font-size:14px;opacity:.92}
.tile .go{position:absolute;top:22px;right:22px;width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.18);display:grid;place-items:center;font-size:18px;backdrop-filter:blur(6px)}
.s2{grid-column:span 2}.s3{grid-column:span 3}.s4{grid-column:span 4}.s6{grid-column:span 6}
.stat{border-radius:var(--radius);padding:26px;display:flex;flex-direction:column;justify-content:space-between;min-height:200px;background:var(--accent);color:#fff}
.stat b{font:700 clamp(44px,5vw,60px)/1 var(--display);letter-spacing:-.03em}
.stat.light{background:var(--soft);color:var(--fg)}
.stat.dark{background:var(--dark)}
.stat .big{font:700 clamp(22px,2.6vw,30px)/1.15 var(--display);max-width:30ch}
.pill{display:inline-block;margin-top:12px;font:500 12px var(--mono);text-transform:uppercase;letter-spacing:.06em;padding:5px 10px;border-radius:999px;background:#d8ff5a;color:#0d0d12}

/* sections */
.section{padding-block:72px 24px}
.section h2{font:700 clamp(30px,4vw,48px)/1 var(--display);letter-spacing:-.03em;margin-bottom:28px}
.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.card{background:var(--soft);border-radius:var(--radius);padding:24px}
.card h3{font:700 20px/1.2 var(--display);margin-bottom:8px}
.card p{color:var(--muted);font-size:15px;line-height:1.55}
.writing{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.post{display:flex;flex-direction:column;gap:14px;text-decoration:none;background:var(--soft);border-radius:var(--radius);overflow:hidden}
.post img{aspect-ratio:16/10;object-fit:cover;width:100%}
.post div{padding:0 22px 22px;flex:1;display:flex;flex-direction:column;align-items:flex-start}
.post h3{font:700 20px/1.2 var(--display);margin-bottom:8px}
.post p{color:var(--muted);font-size:15px;line-height:1.5}
.post span{display:inline-block;margin-top:auto;padding-top:16px;font-weight:600;font-size:14px;color:var(--accent)}
.post:hover h3{color:var(--accent)}

/* footer */
.footer{margin-top:72px;background:var(--dark);color:#fff}
.footer .wrap{padding-top:72px;padding-bottom:40px}
.footer h2{font:700 clamp(36px,6vw,80px)/.95 var(--display);letter-spacing:-.04em}
.footer h2 a{text-decoration:none}
.footer h2 a:hover{color:#d8ff5a}
.footer .links{display:flex;gap:8px;flex-wrap:wrap;margin-top:32px}
.footer .links a{padding:10px 16px;border-radius:999px;background:rgba(255,255,255,.1);text-decoration:none;font-size:14px;font-weight:500}
.footer .links a:hover{background:#fff;color:#0d0d12}
.footer .legal{margin-top:56px;font-size:13px;color:#9a9aae}

/* case study */
.cs-hero{padding-block:48px 32px}
.cs-hero .eyebrow{color:var(--accent)}
.cs-hero h1{font:700 clamp(38px,6vw,80px)/.95 var(--display);letter-spacing:-.035em;margin-top:14px;max-width:16ch}
.cs-hero .sub{margin-top:20px;font-size:20px;line-height:1.45;color:var(--muted);max-width:52ch}
.meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:28px}
.meta span{padding:8px 14px;border-radius:999px;background:var(--soft);font-size:14px}
.meta span b{font-weight:600}
.cover{border-radius:var(--radius);overflow:hidden;background:var(--soft);aspect-ratio:16/8}
.cover img{width:100%;height:100%;object-fit:cover}
.cs{max-width:var(--text);margin:0 auto;padding-block:56px 24px}
.cs h2{font:700 clamp(28px,3.4vw,40px)/1.05 var(--display);letter-spacing:-.025em;margin:72px 0 18px}
.cs h3{font:700 22px/1.25 var(--display);margin:44px 0 12px}
.cs h4{font:600 17px/1.3 var(--body);margin:28px 0 8px}
.cs p{margin:0 0 16px;color:var(--body-text)}
.cs ul,.cs ol{margin:0 0 20px 1.2em}
.cs li{margin:0 0 8px;color:var(--body-text)}
.cs strong{font-weight:600;color:var(--fg)}
.cs a{color:var(--accent);text-underline-offset:3px}
.cs blockquote{margin:44px 0;padding:0;border:0;font:500 clamp(24px,3vw,34px)/1.2 var(--display);letter-spacing:-.02em;color:var(--fg)}
.cs blockquote p{font:inherit;color:inherit}
.cs figure{margin:36px calc(50% - min(50vw - 24px, 520px));}
.cs figure img{display:block;width:auto;max-width:100%;max-height:min(72vh,680px);margin:0 auto;border-radius:16px;background:var(--soft)}
.cs .embed{width:100%;max-width:960px;margin:0 auto;border-radius:16px;background:var(--soft)}
.cs figcaption{margin-top:10px;text-align:center;font-size:14px;color:var(--muted)}
.cs .embed{position:relative;aspect-ratio:16/9;overflow:hidden}
.cs .embed iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.next{display:block;margin:72px 0 0}
.next .tile{min-height:300px}

/* about */
.about-grid{display:grid;grid-template-columns:1fr 1.2fr;gap:48px;align-items:start;padding-block:24px}
.about-grid img{border-radius:var(--radius);width:100%;aspect-ratio:4/5;object-fit:cover;background:var(--soft)}
.about-grid p{font-size:18px;line-height:1.6;color:var(--body-text);margin-bottom:18px}
.timeline{list-style:none;border-top:1px solid var(--line)}
.timeline li{display:grid;grid-template-columns:180px 1fr;gap:24px;padding:22px 0;border-bottom:1px solid var(--line)}
.timeline .when{font:500 13px var(--mono);color:var(--muted);text-transform:uppercase;letter-spacing:.04em;padding-top:4px}
.timeline h3{font:700 20px/1.2 var(--display)}
.timeline p{color:var(--muted);font-size:15px;margin-top:6px}
.timeline .role{color:var(--fg);font-weight:500;font-size:15px;margin-top:4px}
.timeline ul{margin:10px 0 0 1.1em;color:var(--muted);font-size:15px;line-height:1.6}
.timeline ul li{display:list-item;padding:0;border:0;margin:0 0 6px}
.timeline h3 a,.timeline .role a{color:inherit;text-decoration:none}
.timeline ul a,.timeline p a{color:var(--accent)}
.about-intro{grid-template-columns:1.2fr 1fr}
.about-intro .actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:28px}

@media (max-width:900px){
  .cards{grid-template-columns:1fr 1fr}
  .writing{grid-template-columns:1fr}
  .about-grid{grid-template-columns:1fr}
}
@media (max-width:800px){
  .s2,.s3,.s4{grid-column:span 6}
  .tile{min-height:300px}
  .cs figure{margin:28px 0}
}
@media (max-width:560px){
  .cards{grid-template-columns:1fr}
  .timeline li{grid-template-columns:1fr;gap:6px}
  .hero .lede p{font-size:17px}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* CV page */
.cs-hero .meta .btn{margin:0}
.cvpage h2{margin:48px 0 14px}
.cvpage h2:first-child{margin-top:0}
.cvpage h3{font:700 20px/1.3 var(--display);margin:28px 0 2px}
.cvpage h3 a{color:inherit;text-decoration:none}
.cvpage .when{font-size:14px;color:var(--muted);margin-bottom:10px}
.cvpage .when a,.cvpage .g a{color:inherit}
.cvpage .g{color:var(--muted)}
.cvpage ul{margin-bottom:12px}
.cvpage b{font-weight:600;color:var(--fg)}
.next .post{display:block}

/* carousels (UXfolio galleries) */
.cs .carousel{margin:36px calc(50% - min(50vw - 24px, 520px))}
.carousel .track{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.carousel .track::-webkit-scrollbar{display:none}
.cs .carousel figure{margin:0;flex:0 0 auto;scroll-snap-align:start}
.cs .carousel.phones figure img{height:min(64vh,560px);width:auto;max-height:none;max-width:none;margin:0}
.cs .carousel.slides figure{flex-basis:100%}
.cs .carousel.slides figure img{width:100%;height:auto;max-height:none}
.carousel .ctl{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:14px}
.carousel .ctl button{width:40px;height:40px;border-radius:50%;border:0;background:var(--soft);font-size:18px;cursor:pointer;color:var(--fg)}
.carousel .ctl button:hover{background:var(--fg);color:var(--on-fg)}
.carousel .count{font:500 13px var(--mono);color:var(--muted);min-width:56px;text-align:center}
@media (max-width:800px){.cs .carousel{margin:28px 0}.cs .carousel.phones figure img{height:52vh}}
.carousel.fits .ctl{display:none}
.carousel.fits .track{justify-content:center}
.next .post-next{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:0;align-items:stretch}
.next .post-next img{height:100%;aspect-ratio:auto;min-height:220px}
.next .post-next div{padding:22px}
@media (max-width:640px){.next .post-next{grid-template-columns:1fr}.next .post-next img{aspect-ratio:16/10;min-height:0}}
.cs .post{text-decoration:none}.cs .post h3{color:var(--fg)}.cs .post:hover h3{color:var(--accent)}.cs .post p{color:var(--muted)}

/* contact */
.contact-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:48px;align-items:start;padding-bottom:24px}
.contact-form{display:flex;flex-direction:column;gap:18px}
.contact-form label{display:flex;flex-direction:column;gap:8px;font-size:14px;font-weight:600}
.contact-form input,.contact-form textarea{font:inherit;font-weight:400;font-size:16px;padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--fg);resize:vertical}
.contact-form input:focus,.contact-form textarea:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px rgba(61,90,254,.15)}
.contact-form .btn{align-self:flex-start;border:0;cursor:pointer;font-family:inherit}
.form-status{font-size:15px;color:var(--muted);min-height:1.5em}
.contact-cards{display:grid;gap:14px}
.contact-cards .card a{color:var(--fg)}
.contact-cards .copy{display:inline-block;margin-top:10px;padding:8px 14px;border-radius:999px;border:0;background:var(--surface);font:600 14px var(--body);color:var(--fg);cursor:pointer;text-decoration:none}
.contact-cards .copy:hover{background:var(--fg);color:var(--on-fg)}
@media (max-width:800px){.contact-grid{grid-template-columns:1fr}}


.nav .brand{display:flex;align-items:center;gap:10px}
main.narrow .wrap{max-width:calc(var(--text) + 48px + 200px)}
main.narrow .about-intro{grid-template-columns:1.4fr 1fr;gap:36px}
main.narrow .about-intro p{font-size:17px}

@media (max-width:460px){.nav .brand .word{display:none}}
.nav{gap:24px}

/* logo: white tile, flips to black on scroll */
.nav .brand .mark{display:block;width:34px;height:34px;perspective:200px}
.nav .brand .flip{display:block;position:relative;width:100%;height:100%;transform-style:preserve-3d;transition:transform .45s cubic-bezier(.4,.2,.2,1)}
.nav .brand .face{position:absolute;inset:0;width:100%;height:100%;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.nav .brand .back{transform:rotateY(180deg)}
.site-header.flipped .brand .flip{transform:rotateY(180deg)}
@media (prefers-reduced-motion:reduce){.nav .brand .flip{transition:none}}
.nav .brand .word{font:700 19px/1 var(--display);letter-spacing:-.02em;color:var(--fg)}

/* theme toggle */
.theme-toggle{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;border:1px solid var(--line);background:transparent;color:var(--fg);cursor:pointer;transition:background .15s,border-color .15s}
.theme-toggle:hover{background:var(--soft)}
.theme-toggle svg{width:18px;height:18px}
.theme-toggle .moon,[data-theme=dark] .theme-toggle .sun{display:none}
[data-theme=dark] .theme-toggle .moon{display:block}
.nav ul{align-items:center}
html{transition:background-color .25s}
body{transition:background-color .25s,color .25s}
[data-theme=dark] .footer{border-top:1px solid var(--line)}
[data-theme=dark] .cs figure img,[data-theme=dark] .cover{background:#1a1a22}
/* dark mode logo: black tile with outline first, white tile after the flip */
[data-theme=dark] .brand .front rect{fill:transparent;stroke:#f2f2f6}
[data-theme=dark] .brand .front g{stroke:#f2f2f6}
[data-theme=dark] .brand .back rect{fill:#f2f2f6}
[data-theme=dark] .brand .back g{stroke:#0e0e13}
@media (max-width:560px){.theme-toggle{width:32px;height:32px}}

/* availability */
.avail{display:inline-flex;align-items:center;gap:10px;font:500 13px var(--mono);letter-spacing:.04em;color:var(--muted);margin-bottom:22px;padding:7px 14px;border:1px solid var(--line);border-radius:999px}
.avail .dot{width:8px;height:8px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.18)}
/* quotes */
.quotes{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.quote{margin:0;background:var(--soft);border-radius:var(--radius);padding:28px;display:flex;flex-direction:column;justify-content:space-between;gap:22px}
.quote blockquote{font:500 clamp(18px,1.6vw,21px)/1.45 var(--display);letter-spacing:-.01em;color:var(--fg)}
.quote figcaption{display:flex;flex-direction:column;gap:2px;font-size:14px}
.quote figcaption b{font-weight:600}
.quote figcaption span{color:var(--muted)}
.quotes-src{margin-top:16px;font-size:14px}
.quotes-src a{color:var(--accent);text-decoration:none}

@media (max-width:800px){.quotes{grid-template-columns:1fr}}
/* legal */
.footer .legal a{color:inherit}
.legal-text h2{font-size:clamp(20px,2.2vw,24px);margin:40px 0 12px}
.legal-text p{font-size:16px}

@media (max-width:560px){.nav ul{gap:12px}}
@media (max-width:380px){.wrap.nav{padding-inline:12px;gap:10px}.nav ul{gap:10px}.nav ul a{font-size:13.5px}.theme-toggle{width:30px;height:30px}.nav .brand .mark{width:30px;height:30px}}

.quote .who{display:flex;align-items:center;gap:12px;text-decoration:none;color:inherit}
.quote .who img{width:44px;height:44px;border-radius:50%;object-fit:cover;flex:none}
.quote .nr{display:flex;flex-direction:column;gap:2px;flex:1}
.quote .nr>span{color:var(--muted)}
.quote .nr b{color:var(--fg)}
.quote .who .li{width:20px;height:20px;color:#0a66c2;flex:none;opacity:.85;transition:opacity .15s}
.quote .who:hover b{color:var(--accent)}
.quote .who:hover .li{opacity:1}
[data-theme=dark] .quote .who .li{color:#70b5f9}

@media (max-width:560px){.wrap.nav{padding-inline:14px;gap:10px}.nav ul{gap:11px}.nav ul a{font-size:13.5px}.theme-toggle{width:30px;height:30px}.theme-toggle svg{width:16px;height:16px}.nav .brand .mark{width:30px;height:30px}}
@media (max-width:380px){.wrap.nav{padding-inline:10px;gap:8px}.nav ul{gap:9px}.nav ul a{font-size:13px}}

/* header: logo left, menu centred, CV + theme right */
.wrap.nav{display:grid;grid-template-columns:1fr auto 1fr;align-items:center}
.nav .brand{justify-self:start}
.nav nav{justify-self:center}
.nav-actions{justify-self:end;display:flex;align-items:center;gap:10px}
@media (max-width:560px){.nav-actions{gap:6px}}
/* menu back on the right, before CV + theme */
.wrap.nav{grid-template-columns:1fr auto auto;column-gap:32px}
.nav nav{justify-self:end}
@media (max-width:560px){.wrap.nav{column-gap:12px}}
@media (max-width:380px){.wrap.nav{column-gap:8px}}

/* CV and theme buttons share one style */
.theme-toggle{height:36px;border:1px solid var(--line);background:transparent;color:var(--fg);transition:background .15s,border-color .15s}
.theme-toggle:hover{background:var(--soft);border-color:var(--line);color:var(--fg)}
@media (max-width:560px){.theme-toggle{height:30px}}
main.narrow .hero-full{max-width:var(--page)}
.quotes{gap:20px}
.quote{gap:36px;padding:32px}
/* About: hero + intro use the full page width, everything below is a centred narrow column */
main.narrow .wrap{max-width:calc(920px + 48px)}
main.narrow .hero-full,main.narrow .about-intro.top{max-width:var(--page)}
main.narrow .about-intro.top{grid-template-columns:1.15fr 1fr;gap:56px;align-items:center}
main.narrow .about-intro.top p{font-size:19px}
main.narrow .about-intro.top img{aspect-ratio:4/4.4;border-radius:var(--radius)}
@media (max-width:900px){main.narrow .about-intro.top{grid-template-columns:1fr;gap:28px}}
main.narrow .hero-full h1{max-width:none}
main.narrow .divider-wrap{max-width:var(--page)}
.divider{border:0;border-top:1px solid var(--line);margin:72px 0 0}
main.narrow .divider-wrap + .section{padding-top:64px}
/* quotes: more air, monochrome LinkedIn icon (black in light, white in dark) */
.quotes{gap:28px}
.quote{gap:48px;padding:36px}
.quote .who .li,[data-theme=dark] .quote .who .li{color:var(--fg);opacity:.9}
.quote .who:hover .li{opacity:1}
/* About: quotes like on home, full width, two columns */
main.narrow section.wrap:has(.quotes){max-width:var(--page)}
main.narrow section.wrap:has(.quotes)>*{max-width:none}

/* tile gaps match the monitor frame in the Carrier app image */
.bento{gap:18px}
/* Trade Republic row */
.tr-intro{border-radius:var(--radius);background:var(--soft);padding:26px;min-height:340px;display:flex;flex-direction:column;justify-content:space-between}
.tr-intro small{font:500 12px var(--mono);text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}
.tr-intro h3{font:700 clamp(22px,2.4vw,30px)/1.08 var(--display);letter-spacing:-.01em;margin-bottom:12px}
.tr-intro p{color:var(--muted);font-size:15px;line-height:1.55}
.tr-intro .soon{display:inline-block;margin-top:18px;font:500 12px var(--mono);text-transform:uppercase;letter-spacing:.06em;padding:5px 10px;border-radius:999px;border:1px solid var(--line);color:var(--muted)}
.tr-visual{border-radius:var(--radius);min-height:340px;position:relative;overflow:hidden;background:radial-gradient(120% 120% at 100% 0%,#2b2f5e 0%,#121320 55%,#0b0b12 100%);display:flex;align-items:flex-end}
.tr-chart{position:absolute;inset:auto 0 0 0;height:62%}
.tr-chart svg{width:100%;height:100%;display:block}
.tr-label{position:absolute;left:26px;top:26px;font:700 clamp(28px,3.4vw,44px)/1 var(--display);letter-spacing:-.02em;color:#fff}
/* footer: soft grey in light mode, dark in dark mode */
:root:not([data-theme=dark]) .footer{background:var(--soft);color:var(--fg)}
:root:not([data-theme=dark]) .footer h2 a:hover{color:var(--muted)}
:root:not([data-theme=dark]) .footer .links a{background:var(--bg);border:1px solid var(--line)}
:root:not([data-theme=dark]) .footer .links a:hover{background:var(--fg);color:var(--bg);border-color:var(--fg)}
:root:not([data-theme=dark]) .footer .legal{color:var(--muted)}

.projects{grid-template-columns:minmax(0,1fr)}
.projects>.s6{grid-column:1/-1}
/* recommendations: quieter, supporting role */
.quote{background:transparent;border:1px solid var(--line);padding:28px;gap:28px}
.quote blockquote{font:400 16px/1.65 var(--sans,Inter),system-ui,sans-serif;letter-spacing:0;color:var(--muted)}
.quote .who img{width:38px;height:38px}
.quote .nr{font-size:13px}
.quote .who .li{width:18px;height:18px;opacity:.6}

/* projects: one tile, image with title + attached info panel */
.projects{display:grid;grid-template-columns:minmax(0,1fr);gap:28px;padding-bottom:24px}
.wrow{display:grid;grid-template-columns:2fr 1fr;border-radius:var(--radius);overflow:hidden;background:var(--soft);text-decoration:none;color:inherit;isolation:isolate}
.wrow.flip{grid-template-columns:1fr 2fr}
.wrow.flip .wrow-info{order:-1}
.wrow-media{position:relative;min-height:400px;padding:28px;display:flex;flex-direction:column;justify-content:space-between;color:#fff;background:#22222c;overflow:hidden;isolation:isolate}
.wrow-media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;transition:transform .6s ease}
.wrow-media::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(0,0,0,.25) 0%,rgba(0,0,0,0) 30%,rgba(0,0,0,0) 50%,rgba(0,0,0,.6))}
.wrow-media small{font:500 12px var(--mono);text-transform:uppercase;letter-spacing:.08em}
.wrow-media h3{font:700 clamp(26px,2.8vw,36px)/1.05 var(--display);letter-spacing:-.02em;max-width:18ch}
.wrow-media .go{position:absolute;top:22px;right:22px;width:42px;height:42px;border-radius:50%;background:rgba(255,255,255,.18);backdrop-filter:blur(6px);display:grid;place-items:center;font-size:19px;transition:background .2s,color .2s,transform .2s}
.wrow-media .badge{position:absolute;top:22px;right:22px;font:500 11px var(--mono);text-transform:uppercase;letter-spacing:.06em;padding:7px 11px;border-radius:999px;background:rgba(255,255,255,.16);backdrop-filter:blur(6px)}
.wrow.tr .wrow-media img{object-position:50% 50%}
.wrow-info{padding:32px;display:flex;flex-direction:column;justify-content:space-between;gap:32px}
.wrow-info p{font-size:17px;line-height:1.5;color:var(--muted);max-width:26ch}
.wrow-info .kpi b{display:block;font:700 clamp(40px,4.2vw,56px)/1 var(--display);letter-spacing:-.03em}
.wrow-info .kpi span{display:block;margin-top:8px;font-size:14px;color:var(--muted)}
a.wrow:hover .wrow-media img{transform:scale(1.03)}
a.wrow:hover .go{background:#fff;color:#0d0d12}
@media (max-width:820px){
  .wrow,.wrow.flip{grid-template-columns:1fr}
  .wrow.flip .wrow-info{order:0}
  .wrow-media{min-height:0;aspect-ratio:4/3}
  .wrow-info{padding:24px;gap:24px}
}

/* more breathing room */
.hero{padding-block:112px 96px}
.hero h1{line-height:.96}
.hero .lede{margin-top:56px;align-items:flex-end;gap:40px}
.hero .lede p{font-size:20px;line-height:1.6}
.section{padding-block:128px 0}
.section h2{margin-bottom:44px}
.footer{margin-top:144px}
.cards{gap:20px}
@media (max-width:820px){
  .hero{padding-block:64px 56px}
  .hero .lede{margin-top:32px}
  .section{padding-block:88px 0}
  .footer{margin-top:96px}
}
.wrow-media small{max-width:calc(100% - 150px)}
a.wrow .wrow-media small{max-width:calc(100% - 60px)}
@media (max-width:820px){
  a.wrow .wrow-media img{object-position:50% 85%}
}
/* title lives in the side panel; image keeps label + arrow */
.wrow-media::after{background:linear-gradient(180deg,rgba(0,0,0,.28) 0%,rgba(0,0,0,0) 28%)}
.wrow-info h3{font:700 clamp(24px,2.3vw,30px)/1.1 var(--display);letter-spacing:-.015em;margin-bottom:12px}
.wrow-info p{font-size:16px}
.wrow-info .kpi{border-top:1px solid var(--line);padding-top:18px}
.wrow-info .kpi b{font:700 26px/1 var(--display);letter-spacing:-.02em}
.wrow-info .kpi span{margin-top:6px}

/* hero v3: chip, tighter title, intro and actions stacked left */
.hero{padding-block:72px 88px}
.hero .chip{display:inline-flex;align-items:center;gap:8px;padding:7px 14px 7px 12px;border:1px solid var(--line);border-radius:999px;font:500 13px var(--sans,Inter),system-ui,sans-serif;color:var(--fg);margin-bottom:28px}
.hero .chip i{width:8px;height:8px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.18)}
.hero h1{font-size:clamp(36px,5.6vw,76px)}
.hero .intro{margin-top:28px;max-width:54ch;font-size:19px;line-height:1.6;color:var(--muted)}
.hero-cta{display:flex;align-items:center;gap:24px;margin-top:32px}
.hero-cta .btn{margin:0}
.text-link{font-weight:600;text-decoration:none;color:var(--fg)}
.text-link span{display:inline-block;transition:transform .2s}
.text-link:hover span{transform:translateX(4px)}
@media (max-width:820px){.hero{padding-block:48px 56px}.hero .intro{font-size:17px}}

/* projects rhythm: TR featured, then big + small cards */
.projects{grid-template-columns:repeat(6,minmax(0,1fr))}
.projects>.wrow{grid-column:1/-1}
.pcard{display:flex;flex-direction:column;border-radius:var(--radius);overflow:hidden;background:var(--soft);text-decoration:none;color:inherit}
.pc-media{position:relative;flex:1;min-height:360px;padding:22px;color:#fff;background:#22222c;overflow:hidden;isolation:isolate}
.pc-media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;transition:transform .6s ease}
.pc-media::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(0,0,0,.28) 0%,rgba(0,0,0,0) 28%)}
.pc-media small{font:500 12px var(--mono);text-transform:uppercase;letter-spacing:.08em}
.pc-media .go{position:absolute;top:16px;right:16px;width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.18);backdrop-filter:blur(6px);display:grid;place-items:center;font-size:18px;transition:background .2s,color .2s}
.pc-info{display:flex;justify-content:space-between;align-items:flex-end;gap:12px 24px;flex-wrap:wrap;padding:22px 24px 24px}
.pc-info h3{font:700 clamp(20px,1.9vw,24px)/1.15 var(--display);letter-spacing:-.01em;flex:1 1 200px}
.pc-info .kpi{text-align:right}
.pcard.s2 .pc-info .kpi{text-align:left}
.pc-info .kpi b{display:block;font:700 22px/1 var(--display);letter-spacing:-.02em}
.pc-info .kpi span{display:block;margin-top:5px;font-size:13px;color:var(--muted)}
a.pcard:hover .pc-media img{transform:scale(1.03)}
a.pcard:hover .go{background:#fff;color:#0d0d12}
@media (max-width:820px){
  .projects>.pcard{grid-column:1/-1}
  .pc-media{min-height:0;aspect-ratio:4/3}
  .pc-info .kpi{text-align:left}
}
/* hide the titles baked into the old UXfolio covers (top ~20%) */
.pc-media img{top:auto;bottom:0;height:136%}
.hero-cta .text-link{font-size:17px}
/* hero CTA: purple on hover, like the Contact link */
.text-link{transition:color .2s}
.text-link:hover{color:var(--accent)}
/* hero CTA: plain text, purple outlined pill on hover (no layout shift) */
.hero-cta .text-link{display:inline-flex;align-items:center;gap:6px;padding:10px 18px;margin-left:-18px;border:1.5px solid transparent;border-radius:999px;transition:color .2s,border-color .2s,background .2s}
.hero-cta .text-link:hover{color:var(--accent);border-color:var(--accent)}
/* hero CTA inside the grid: light outlined pill, purple on hover */
.hero-cta .text-link{margin-left:0;border-color:var(--line)}
.hero-cta .text-link:hover{border-color:var(--accent);color:var(--accent)}

/* image only project cards */
.pcard{background:transparent}
.pc-media{min-height:400px;border-radius:var(--radius)}
@media (max-width:820px){.pc-media{min-height:0}}

/* contact: cards column matches the form height */
.contact-grid{align-items:stretch}
.contact-cards{grid-template-rows:repeat(4,1fr);gap:16px}
.contact-cards .card{display:flex;flex-direction:column;justify-content:center;padding:22px 26px}
.contact-cards .card h3{margin-bottom:6px}
.contact-cards .card p a+a{margin-left:18px}
.contact-cards .muted{color:var(--muted)}
.contact-cards .copy{align-self:flex-start}
.form-status:empty{display:none}
@media (max-width:800px){.contact-cards{grid-template-rows:none}}
@media (min-width:801px){.contact-cards{contain:size;gap:14px}.contact-cards .card{padding:16px 24px}.contact-cards .copy{margin-top:8px}}
/* contact v2: cards keep natural height; message field stretches so its bottom lines up with the last card */
@media (min-width:801px){
  .contact-cards{contain:none;grid-template-rows:none;align-content:start;padding-bottom:var(--send-row,65px)}
  .contact-cards .card{justify-content:flex-start;padding:22px 26px}
  .contact-form label:has(textarea){flex:1}
  .contact-form textarea{flex:1;min-height:160px;resize:none}
}
/* cleaned covers: back to centred crop; title sits top left under the company label */
.pc-media img{top:0;bottom:auto;height:100%}
.pc-head{max-width:calc(100% - 60px)}
.pc-head small{display:block;opacity:.85}
.pc-head h3{margin-top:8px;font:700 clamp(22px,2.2vw,28px)/1.1 var(--display);letter-spacing:-.015em}
.pc-media::after{background:linear-gradient(180deg,rgba(0,0,0,.32) 0%,rgba(0,0,0,0) 38%)}
/* label top left, big title bottom left on a soft shadow */
.pc-media{display:flex;flex-direction:column;justify-content:space-between;padding:24px}
.pc-media small{opacity:.9;max-width:calc(100% - 60px)}
.pc-title{font:700 clamp(24px,2.5vw,32px)/1.08 var(--display);letter-spacing:-.02em;max-width:20ch;text-shadow:0 2px 16px rgba(0,0,0,.25)}
.pc-media::after{background:linear-gradient(180deg,rgba(0,0,0,.28) 0%,rgba(0,0,0,0) 24%,rgba(0,0,0,0) 45%,rgba(0,0,0,.62) 100%)}
/* more air between project tiles */
.projects{gap:40px}
@media (max-width:820px){.projects{gap:24px}}
/* rows keep 40px, tiles within a row sit closer (18px, the Carrier monitor frame) */
.projects{column-gap:18px;row-gap:40px}
@media (max-width:820px){.projects{row-gap:24px}}
/* more air between rows; TR panel starts exactly where the narrow column below starts */
.projects{row-gap:56px}
@media (min-width:821px){
  .wrow{grid-template-columns:calc((100% - 90px) * 4 / 6 + 72px) 1fr}
}
@media (max-width:820px){.projects{row-gap:28px}}
/* TR arrow and label line up with the LOX tile below */
.wrow-media{padding:24px}
.wrow-media .go{top:16px;right:16px;width:40px;height:40px;font-size:18px}
@media (min-width:821px){.wrow-media .go{right:34px}}
/* TR tile is light: dark label and arrow, no dark top fade */
.wrow.tr .wrow-media{color:#0d0d12}
.wrow.tr .wrow-media::after{display:none}
.wrow.tr .wrow-media .go{background:rgba(13,13,18,.08)}
a.wrow.tr:hover .go{background:#0d0d12;color:#fff}

/* ===== Motion ===== */
.nav ul{position:relative}

/* Page transitions: header stays, content fades up; project image morphs into the case study cover */
@view-transition{navigation:auto}
.site-header{view-transition-name:site-header}
::view-transition-group(*){animation-duration:.5s;animation-timing-function:cubic-bezier(.2,.7,.2,1)}
::view-transition-old(*),::view-transition-new(*){height:100%;object-fit:cover;overflow:clip}
::view-transition-old(root){animation:vt-out .2s ease both}
::view-transition-new(root){animation:vt-in .42s cubic-bezier(.2,.7,.2,1) .05s both}
@keyframes vt-out{to{opacity:0;transform:translateY(-6px)}}
@keyframes vt-in{from{opacity:0;transform:translateY(14px)}}

/* First visit in a session: hero and tiles rise in one after another */
@keyframes rise{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:no-preference){
  html.first .hero>*,html.first .cs-hero>*,html.first .projects>*{animation:rise .8s cubic-bezier(.2,.7,.2,1) both}
  html.first .hero>:nth-child(2),html.first .cs-hero>:nth-child(2){animation-delay:.08s}
  html.first .hero>:nth-child(3),html.first .cs-hero>:nth-child(3){animation-delay:.16s}
  html.first .hero>:nth-child(4),html.first .cs-hero>:nth-child(4){animation-delay:.24s}
  html.first .projects>:nth-child(1){animation-delay:.3s}
  html.first .projects>:nth-child(2){animation-delay:.4s}
  html.first .projects>:nth-child(3){animation-delay:.46s}
  html.first .projects>:nth-child(n+4){animation-delay:.52s}
}

/* Images fade in on their tile colour instead of popping in */
html.js .pc-media img,html.js .wrow-media img,html.js .cover img{opacity:0;transition:opacity .6s ease,transform .6s ease}
html.js .pc-media img.is-loaded,html.js .wrow-media img.is-loaded,html.js .cover img.is-loaded{opacity:1}
.wrow.tr .wrow-media{background:#f1f1f4}

/* Tile hover: arrow turns to point up and out */
.pc-media .go,.wrow-media .go{transition:background .2s,color .2s,transform .35s cubic-bezier(.3,.7,.2,1)}
a.pcard:hover .go,a.wrow:hover .go{transform:rotate(-45deg)}
/* the arrow sits on a blurred backdrop over an image that scales and moves; its own layer stops it flickering when the hover ends */
.pc-media .go,.wrow-media .go{z-index:1;will-change:transform;backface-visibility:hidden;-webkit-backface-visibility:hidden;transform:translateZ(0)}
a.pcard:hover .go,a.wrow:hover .go{transform:translateZ(0) rotate(-45deg)}

/* Respect reduced motion everywhere */
@media (prefers-reduced-motion:reduce){
  ::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}
  .pc-media .go,.wrow-media .go,html.js .pc-media img,html.js .wrow-media img{transition:none!important}
}

/* Case study summary at the top */
.cs-summary{margin:0 0 56px;padding:28px;border-radius:var(--radius);background:var(--soft)}
.cs-sum-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
.cs-summary h4{font:500 12px var(--mono);text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin:0 0 10px}
.cs-summary p{margin:0;font-size:15px;line-height:1.55}
.cs-summary p b{color:var(--fg)}
.cs-facts{display:flex;flex-wrap:wrap;gap:10px 32px;margin:24px 0 0;padding-top:20px;border-top:1px solid var(--line)}
.cs-facts div{display:flex;gap:10px;font-size:14px}
.cs-facts dt{font:500 11px/1.9 var(--mono);text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
.cs-facts dd{margin:0;font-weight:500}
.cs .cs-summary~h2:first-of-type,.cs>h2:first-child{margin-top:0}
@media (min-width:900px){.cs .cs-summary{margin-inline:calc(50% - min(50vw - 24px, 520px))}}
@media (max-width:760px){.cs-sum-grid{grid-template-columns:1fr;gap:20px}}

/* Calmer images: smaller, and phones in carousels less tall */
.cs figure img{max-height:min(60vh,520px)}
.cs .carousel.phones figure img{height:min(56vh,480px)}
.cs figcaption{text-align:center}
/* Up next card at the end of a case study */
.cs .next a.pcard{color:#fff;text-decoration:none}
.cs .next .pc-media{min-height:320px}
.cs .next .pcard.light .pc-media{color:#0d0d12}
.cs .next .pcard.light .pc-media::after{display:none}
.cs .next .pcard.light .go{background:rgba(13,13,18,.08)}
.cs .next .pcard.light .pc-title{text-shadow:none}

/* Footer v2: headline left, links right, legal bar at the bottom */
.footer .wrap{padding-top:64px;padding-bottom:28px}
.foot-top{display:grid;grid-template-columns:1fr auto;align-items:end;gap:32px 48px}
.footer h2{font-size:clamp(36px,5vw,64px)}
.footer .foot-top .links{margin-top:0;justify-content:flex-end;max-width:440px}
.foot-bottom{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:56px;padding-top:20px;border-top:1px solid rgba(255,255,255,.12);font-size:13px;color:#9a9aae}
.foot-bottom a{color:inherit;margin-left:20px}
.foot-bottom a:hover{color:#fff}
:root:not([data-theme=dark]) .foot-bottom{border-top-color:var(--line);color:var(--muted)}
:root:not([data-theme=dark]) .foot-bottom a:hover{color:var(--fg)}
@media (max-width:760px){.foot-top{grid-template-columns:1fr}.footer .foot-top .links{justify-content:flex-start}.foot-bottom a{margin:0 16px 0 0}}

/* Contact: first card lines up with the top of the Name input, not its label */
@media (min-width:801px){.contact-cards{margin-top:var(--label-offset,30px)}}
@media (min-width:1001px){.footer .foot-top .links{max-width:none;flex-wrap:nowrap}}
/* Footer links: outlined pills like the hero CTA, purple on hover; headline hover purple too */
.footer h2 a{transition:color .2s}
.footer h2 a:hover,:root:not([data-theme=dark]) .footer h2 a:hover{color:var(--accent)}
.footer .foot-top .links a{background:transparent;border:1.5px solid rgba(255,255,255,.16);transition:color .2s,border-color .2s}
.footer .foot-top .links a:hover{background:transparent;color:var(--accent);border-color:var(--accent)}
:root:not([data-theme=dark]) .footer .foot-top .links a{border-color:var(--line)}
:root:not([data-theme=dark]) .footer .foot-top .links a:hover{color:var(--accent);border-color:var(--accent);background:transparent}
.footer .links a span{opacity:.7}
/* Link icons: one SVG size, centred on the text */
.ico{width:14px;height:14px;flex:none;opacity:.75}
.footer .foot-top .links a{display:inline-flex;align-items:center;gap:8px}
.contact-cards .card p a{display:inline-flex;align-items:center;gap:5px}
.contact-cards .card p a .ico{width:13px;height:13px}
/* Contact page: footer is only the legal bar */
.footer.compact{margin-top:96px}
.footer.compact .wrap{padding-top:0}
.footer.compact .foot-bottom{margin-top:0;border-top:0;padding-top:24px}

/* TR card is drawn in code and inverts the page theme: dark card on the light site, light card on the dark site */
:root{--tr-bg:#1c1c23;--tr-fg:#f2f2f6;--tr-muted:#a2a2b5;--tr-line:rgba(255,255,255,.12);--tr-btn:rgba(255,255,255,.14)}
:root[data-theme=dark]{--tr-bg:#f1f1f4;--tr-fg:#0d0d12;--tr-muted:#55556a;--tr-line:#e0e0e6;--tr-btn:rgba(13,13,18,.08)}
.wrow.tr,.wrow.tr .wrow-media,.wrow.tr .wrow-info{background:var(--tr-bg)}
.wrow.tr .wrow-media,.wrow.tr .wrow-info,.wrow.tr .wrow-info h3,.wrow.tr .wrow-info .kpi b{color:var(--tr-fg)}
.wrow.tr .wrow-info p,.wrow.tr .wrow-info .kpi span{color:var(--tr-muted)}
.wrow.tr .wrow-info .kpi{border-top-color:var(--tr-line)}
.wrow.tr .wrow-media .go{background:var(--tr-btn)}
a.wrow.tr:hover .go{background:var(--tr-fg);color:var(--tr-bg)}
.cs .next .pcard.light .pc-media{color:var(--tr-fg)}
.cs .next .pcard.light .go{background:var(--tr-btn)}
.wrow,.wrow-media,.wrow-info{transition:background-color .3s,color .3s}
/* Footer always sits at the bottom of the window on short pages */
body{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
body>main{flex:1 0 auto}
body>.footer{flex-shrink:0}
/* Dark mode: TR back to the earlier look, light image next to the dark panel */
:root[data-theme=dark] .wrow.tr,:root[data-theme=dark] .wrow.tr .wrow-info{background:var(--soft)}
:root[data-theme=dark] .wrow.tr .wrow-info,:root[data-theme=dark] .wrow.tr .wrow-info h3,:root[data-theme=dark] .wrow.tr .wrow-info .kpi b{color:var(--fg)}
:root[data-theme=dark] .wrow.tr .wrow-info p,:root[data-theme=dark] .wrow.tr .wrow-info .kpi span{color:var(--muted)}
:root[data-theme=dark] .wrow.tr .wrow-info .kpi{border-top-color:var(--line)}
/* Light mode: dark image, grey panel with dark text */
:root:not([data-theme=dark]) .wrow.tr{background:var(--soft)}
:root:not([data-theme=dark]) .wrow.tr .wrow-info{background:var(--soft)}
:root:not([data-theme=dark]) .wrow.tr .wrow-info,:root:not([data-theme=dark]) .wrow.tr .wrow-info h3,:root:not([data-theme=dark]) .wrow.tr .wrow-info .kpi b{color:var(--fg)}
:root:not([data-theme=dark]) .wrow.tr .wrow-info p,:root:not([data-theme=dark]) .wrow.tr .wrow-info .kpi span{color:var(--muted)}
:root:not([data-theme=dark]) .wrow.tr .wrow-info .kpi{border-top-color:var(--line)}
/* TR image background follows the theme: light on light, dark on dark, same tone as the panel */
.wrow.tr .wrow-media,:root[data-theme=dark] .wrow.tr .wrow-media{background:var(--soft);color:var(--fg)}
.wrow.tr .wrow-media .go{background:color-mix(in srgb,var(--fg) 9%,transparent)}
a.wrow.tr:hover .go{background:var(--fg);color:var(--bg)}
/* TR image a step deeper than the panel, so the two parts read as separate */
.wrow.tr .wrow-media,:root[data-theme=dark] .wrow.tr .wrow-media{background:color-mix(in srgb,var(--soft) 93%,var(--fg))}
/* Light mode TR: almost white image, cool neutral grey panel */
:root:not([data-theme=dark]) .wrow.tr .wrow-media{background:#f8f8fa}
:root:not([data-theme=dark]) .wrow.tr,:root:not([data-theme=dark]) .wrow.tr .wrow-info{background:#ebebf0}

@media (max-width:1000px){.foot-top{grid-template-columns:1fr}.footer .foot-top .links{justify-content:flex-start;flex-wrap:wrap}}

/* Contact cards v3: icon, label, main value, meta line; whole card clickable */
.contact-cards{gap:14px}
.ccard{position:relative;display:grid;grid-template-columns:48px 1fr auto;align-items:center;gap:18px;padding:22px 24px;border-radius:var(--radius);background:var(--soft);border:1px solid transparent;transition:border-color .2s,transform .2s,background .2s}
.ccard:hover{border-color:color-mix(in srgb,var(--accent) 45%,transparent)}
.cico{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;background:var(--bg);color:var(--accent);transition:background .2s,color .2s}
.cico svg{width:22px;height:22px}
.ccard:hover .cico{background:var(--accent);color:#fff}
.cbody{display:flex;flex-direction:column;gap:3px;min-width:0}
.clabel{font:500 11px var(--mono);text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}
.cmain{font:600 17px/1.35 var(--body);color:var(--fg);text-decoration:none;overflow-wrap:anywhere}
.cmeta{font-size:13.5px;color:var(--muted)}
a.stretch::after{content:"";position:absolute;inset:0;border-radius:inherit}
.cbtn{position:relative;z-index:1;border:1px solid var(--line);background:var(--bg);color:var(--fg);border-radius:999px;padding:8px 14px;font:600 13px var(--body);cursor:pointer;transition:border-color .2s,color .2s}
.cbtn:hover{border-color:var(--accent);color:var(--accent)}
.cgo{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;border:1px solid var(--line);color:var(--fg);transition:border-color .2s,color .2s}
.cgo .ico{width:15px;height:15px;opacity:1}
.ccard:hover .cgo{border-color:var(--accent);color:var(--accent)}
.clinks{display:flex;gap:10px;flex-wrap:wrap;margin-top:4px}
.clinks a{display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border-radius:999px;border:1px solid var(--line);background:var(--bg);font:600 14px var(--body);color:var(--fg);text-decoration:none;transition:border-color .2s,color .2s}
.clinks a:hover{border-color:var(--accent);color:var(--accent)}
.clinks .ico{width:13px;height:13px}
#localtime{font-variant-numeric:tabular-nums;color:var(--fg);font-weight:600}
@media (max-width:460px){.ccard{grid-template-columns:40px 1fr;gap:14px;padding:18px}.cico{width:40px;height:40px}.cbtn,.cgo{grid-column:2;justify-self:start}}
/* One title position and size on every main page (same as home) */
.hero,.cs-hero{padding-top:72px}
.cs-hero h1,.hero h1{font-size:clamp(36px,5.6vw,76px);line-height:.96}
@media (max-width:820px){.hero,.cs-hero{padding-top:48px}}
.cs-hero h1:first-child{margin-top:0}

/* About intro: smaller text and photo */
main.narrow .about-intro.top{grid-template-columns:1.7fr 1fr;gap:64px;align-items:start}
main.narrow .about-intro.top p{font-size:17px;line-height:1.6}
main.narrow .about-intro.top img{max-width:360px;width:100%;justify-self:end;aspect-ratio:4/4.6}
@media (max-width:900px){main.narrow .about-intro.top{grid-template-columns:1fr}main.narrow .about-intro.top img{justify-self:start;max-width:320px}}

/* Smaller subtitles under page titles */
.cs-hero .sub,.hero .intro,.hero .lede p{font-size:17px;line-height:1.6}
@media (max-width:820px){.cs-hero .sub,.hero .intro,.hero .lede p{font-size:16px}}

/* More air between page intro and content (Writing, Contact) */
.writing{margin-top:40px}
.contact-grid{margin-top:40px}
@media (max-width:820px){.writing,.contact-grid{margin-top:24px}}
/* Contact cards: hover only when the whole card is a link; more breathing room */
.ccard:not(:has(a.stretch)):hover{border-color:transparent}
.ccard:not(:has(a.stretch)):hover .cico{background:var(--bg);color:var(--accent)}
.ccard{padding:26px 28px}
.cbody{gap:6px}
.clabel{margin-bottom:2px}
.cmeta{line-height:1.5}
.clinks{margin-top:6px}
/* About photo: same height as the text column, bottom aligned with the CV button */
main.narrow .about-intro.top{align-items:stretch}
main.narrow .about-intro.top>div>p:first-child{margin-top:0}
main.narrow .about-intro.top .actions{margin-bottom:0}
main.narrow .about-intro.top img{height:0;min-height:100%;aspect-ratio:auto;object-fit:cover;align-self:stretch}
@media (max-width:900px){main.narrow .about-intro.top img{height:auto;min-height:0;aspect-ratio:4/4.6}}
/* Writing: center the article cards in the space between intro and footer */
@media (min-width:821px){
main:has(.writing){display:flex;flex-direction:column}
main:has(.writing)>section{width:100%;box-sizing:border-box}
main:has(.writing)>section:has(.writing){flex:1 0 auto;display:flex;flex-direction:column;justify-content:center;padding-block:96px 0}
main:has(.writing) .writing{margin-top:0}
}
/* Case summary: three separate cards, facts row underneath */
.cs-summary{padding:0;background:none;border-radius:0}
.cs-sum-grid{gap:14px}
.cs-sum-grid>div{padding:26px 28px;border-radius:var(--radius);background:var(--soft)}
.cs-facts{margin-top:20px;padding:0 28px;border-top:0}
@media (max-width:760px){.cs-sum-grid{gap:12px}.cs-sum-grid>div{padding:22px}.cs-facts{padding:0 4px}}
@media (min-width:761px){.cs-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;padding:0}.cs-facts div{padding-inline:28px}}
/* Skills as chips */
.skills{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.skills li{display:grid;grid-template-columns:180px 1fr;gap:24px;align-items:start;padding:22px 24px;border-radius:var(--radius);background:var(--soft)}
.sk-label{font:500 12px var(--mono);text-transform:uppercase;letter-spacing:.08em;color:var(--muted);padding-top:9px}
.sk-chips{display:flex;flex-wrap:wrap;gap:8px}
.skills .chip{display:inline-flex;align-items:center;padding:6px 12px;border-radius:999px;border:1px solid var(--line);background:var(--bg);font:500 14px/1.3 var(--body);color:var(--fg)}
@media (max-width:760px){.skills li{grid-template-columns:1fr;gap:12px;padding:18px}.sk-label{padding-top:0}}
/* Linked titles on About: purple on hover */
.timeline h3 a,.timeline .role a{transition:color .2s}
.timeline h3 a:hover,.timeline .role a:hover{color:var(--accent)}
/* contact v3: Send button bottom lines up with the last card; message field can be resized within limits */
@media (min-width:801px){
  .contact-cards{padding-bottom:0}
  .contact-form textarea{flex:1 0 auto;height:140px;min-height:140px;max-height:480px;resize:vertical}
}
.contact-form textarea{min-height:140px;max-height:480px;resize:vertical}
/* Message field resize handle: grey and inset from the rounded corner */
.contact-form textarea::-webkit-resizer{background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M10 3 3 10M10 7 7 10' stroke='%23858594' stroke-width='1.3' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") no-repeat 0 0/16px 16px;width:16px;height:16px}
/* Contact cards v4: one system. Icon, label, value, one round action on the right. */
.contact-cards{gap:12px}
.ccard{grid-template-columns:44px 1fr 40px;gap:16px;padding:18px 20px;align-items:center}
.cico{width:44px;height:44px;border-radius:12px}
.cico svg{width:20px;height:20px}
.cbody{gap:4px}
.clabel{margin:0;font-size:11px}
.cmain{font-size:16px;font-weight:600;line-height:1.3}
.cact{position:relative;z-index:1;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;border:1px solid var(--line);background:transparent;color:var(--fg);cursor:pointer;padding:0;transition:border-color .2s,color .2s}
.cact svg,.cact .ico{width:16px;height:16px;opacity:1}
span.cact{pointer-events:none}
.ccard:not(.static):hover{border-color:color-mix(in srgb,var(--accent) 45%,transparent)}
.ccard:not(.static):hover .cico{background:var(--accent);color:#fff}
.ccard:not(.static):hover .cact,.cact:hover{border-color:var(--accent);color:var(--accent)}
.cact .i-done{display:none}
.cact.done .i-copy{display:none}
.cact.done .i-done{display:block;color:var(--accent)}
.ccard.static:hover{border-color:transparent}
.ccard.static:hover .cico{background:var(--bg);color:var(--accent)}
.ctime{justify-self:end;font:500 13px var(--mono);color:var(--muted);white-space:nowrap}
#localtime{color:var(--muted);font-weight:500}
@media (max-width:460px){.ccard{grid-template-columns:40px 1fr 40px;gap:12px;padding:16px}.cico{width:40px;height:40px}.cact{grid-column:auto;justify-self:end}}
body{overflow-x:clip}
/* Article images, carousels and videos never wider than the text column */
.cs figure{margin-inline:0}
.cs .carousel{margin-inline:0}
.cs figure img{max-width:100%;max-height:none;width:100%;height:auto}
.cs .carousel figure img{width:auto}
.cs .carousel.slides figure img{width:100%}
.cs .embed{max-width:100%}
/* Case summary: four cards, as wide as the cover. Facts become the fourth card. */
@media (min-width:900px){.cs .cs-summary{margin-inline:calc(50% - min(50vw - 24px, 596px))}}
.cs-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.cs-sum-grid{display:contents}
.cs-summary .cs-facts{display:flex;flex-direction:column;gap:14px;margin:0;padding:26px 28px;border-radius:var(--radius);background:var(--soft);border:0}
.cs-summary .cs-facts div{display:flex;flex-direction:column;gap:4px;padding:0}
.cs-summary .cs-facts dt{font:500 12px var(--mono);letter-spacing:.08em;line-height:1.2}
.cs-summary .cs-facts dd{font-size:15px;line-height:1.45}
@media (max-width:1100px) and (min-width:761px){.cs-summary{grid-template-columns:repeat(2,1fr)}}
@media (max-width:760px){.cs-summary{grid-template-columns:1fr;gap:12px}.cs-summary .cs-facts{padding:22px}}
/* About title wave */
.wave{display:inline-block;transform-origin:70% 75%;animation:wave 1.6s ease-in-out .6s 1}
@keyframes wave{0%,60%,100%{transform:rotate(0)}10%,30%{transform:rotate(14deg)}20%{transform:rotate(-8deg)}40%{transform:rotate(-4deg)}50%{transform:rotate(10deg)}}
h1:hover .wave{animation:wave 1.6s ease-in-out 1}
@media (prefers-reduced-motion:reduce){.wave{animation:none!important}}
.about-intro .hero-cta{margin-top:28px;gap:12px;flex-wrap:wrap}
.hero-cta .text-link .ico{width:15px;height:15px}
/* About intro uses the same muted text color as the home intro */
main.narrow .about-intro.top p{color:var(--muted)}
/* Skills v3: quiet spec sheet. Three columns, label on a hairline, plain list. */
.skills{display:grid;grid-template-columns:repeat(3,1fr);gap:48px 40px}
.skills>li{display:block;padding:20px 0 0;border-radius:0;background:none;border-top:1px solid var(--line)}
.sk-label{display:block;padding:0;margin-bottom:14px;font:500 12px var(--mono);text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}
.sk-list{list-style:none;margin:0;padding:0}
.sk-list li{font-size:16px;line-height:1.5;color:var(--fg);padding:3px 0}
@media (max-width:900px){.skills{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){.skills{grid-template-columns:1fr;gap:32px}}
.skills .sk-list li{display:block;grid-template-columns:none;gap:0;background:none;border:0;border-radius:0;padding:3px 0}
/* Divider under the case summary cards */
.cs .cs-summary{padding-bottom:56px;border-bottom:1px solid var(--line);margin-bottom:64px}
@media (max-width:760px){.cs .cs-summary{padding-bottom:40px;margin-bottom:48px}}
/* Previous / next case study arrows on the sides */
.cs-side{display:none}
@media (min-width:1180px){
  .cs-side{display:block}
  .cs-side-btn{position:fixed;top:50%;z-index:20;display:flex;align-items:center;gap:12px;transform:translateY(-50%);text-decoration:none;color:var(--fg);opacity:0;pointer-events:none;transition:opacity .3s}
  body.cs-side-on .cs-side-btn{opacity:1;pointer-events:auto}
  .cs-side-btn.is-prev{left:28px}
  .cs-side-btn.is-next{right:28px;flex-direction:row-reverse}
  .cs-side-arrow{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;border:1px solid var(--line);background:color-mix(in srgb,var(--bg) 85%,transparent);backdrop-filter:blur(6px);font-size:18px;transition:border-color .2s,color .2s,transform .25s}
  .cs-side-btn:hover .cs-side-arrow{border-color:var(--accent);color:var(--accent)}
  .cs-side-btn.is-prev:hover .cs-side-arrow{transform:translateX(-3px)}
  .cs-side-btn.is-next:hover .cs-side-arrow{transform:translateX(3px)}
  .cs-side-tip{display:flex;flex-direction:column;gap:2px;max-width:200px;padding:10px 14px;border-radius:12px;background:var(--soft);font:600 14px/1.3 var(--body);opacity:0;transform:translateX(-6px);transition:opacity .2s,transform .2s;pointer-events:none}
  .cs-side-btn.is-next .cs-side-tip{transform:translateX(6px);text-align:right}
  .cs-side-tip small{font:500 11px var(--mono);text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}
  .cs-side-btn:hover .cs-side-tip{opacity:1;transform:none}
}
/* Previous / next between case studies: a short horizontal slide instead of the fade */
html.vt-next::view-transition-old(root){animation:vt-out-l .32s cubic-bezier(.4,0,.2,1) both}
html.vt-next::view-transition-new(root){animation:vt-in-r .48s cubic-bezier(.2,.7,.2,1) .06s both}
html.vt-prev::view-transition-old(root){animation:vt-out-r .32s cubic-bezier(.4,0,.2,1) both}
html.vt-prev::view-transition-new(root){animation:vt-in-l .48s cubic-bezier(.2,.7,.2,1) .06s both}
@keyframes vt-out-l{to{opacity:0;transform:translateX(-48px)}}
@keyframes vt-out-r{to{opacity:0;transform:translateX(48px)}}
@keyframes vt-in-r{from{opacity:0;transform:translateX(48px)}}
@keyframes vt-in-l{from{opacity:0;transform:translateX(-48px)}}
/* Cover shows immediately (no fade); article images reserve their space and fade in softly */
html.js .cover img{opacity:1!important}
.cs figure img{height:auto;background:var(--soft)}
html.js .cs figure img{opacity:0;transition:opacity .5s ease}
html.js .cs figure img.is-loaded{opacity:1}
/* Previous / next: rise from below instead of sliding sideways */
html.vt-next::view-transition-old(root),html.vt-prev::view-transition-old(root){animation:vt-out .22s ease both}
html.vt-next::view-transition-new(root),html.vt-prev::view-transition-new(root){animation:vt-rise .55s cubic-bezier(.2,.7,.2,1) .08s both}
@keyframes vt-rise{from{opacity:0;transform:translateY(32px)}}
/* About: same gap between title and intro as on Home */
main.narrow .hero-full{padding-bottom:0}
main.narrow .about-intro.top{margin-top:28px;padding-top:0}
/* Contact v5: four cards fill the height from the first field to the bottom of the message box */
@media (min-width:801px){
  .contact-cards{grid-template-rows:repeat(4,1fr);align-content:stretch;padding-bottom:var(--send-gap,65px)}
  .contact-form textarea{height:200px}
}
/* Contact cards match the form fields: same surface and hairline border */
.ccard{background:var(--surface);border:1px solid var(--line)}
.cico{background:var(--soft)}
.ccard:hover .cico{background:var(--accent)}
.ctime{margin-left:6px;font:500 13px var(--mono);color:var(--muted)}
#localtime{color:var(--muted)}
/* Footer legal links: no underline, purple on hover */
.foot-bottom a{text-decoration:none;transition:color .2s}
.foot-bottom a:hover{color:var(--accent)!important}
/* Case study top: one rhythm. 56px between meta, cover, cards, divider and the first heading */
body:has(.cs-summary) .cs-hero{padding-bottom:0}
body:has(.cs-summary) .cs-hero .meta{margin-bottom:0}
body:has(.cs-summary) main>.cs-hero+.wrap{margin-top:56px;padding:0 24px}
body:has(.cs-summary) .cover{margin:0}
.cs:has(.cs-summary){padding-top:56px}
.cs .cs-summary{margin-top:0;padding-bottom:56px;margin-bottom:56px}
.cs .cs-summary+h2,.cs .cs-summary~h2:first-of-type{margin-top:0}
@media (max-width:760px){body:has(.cs-summary) main>.cs-hero+.wrap{margin-top:36px}.cs:has(.cs-summary){padding-top:36px}.cs .cs-summary{padding-bottom:36px;margin-bottom:36px}}
/* Carousel: page dots like on phones instead of arrows and counter */
.carousel .ctl.dots{display:flex;justify-content:center;align-items:center;gap:8px;margin-top:18px}
.carousel .dots button{width:7px;height:7px;padding:0;border:0;border-radius:999px;background:var(--line);cursor:pointer;transition:width .3s cubic-bezier(.2,.7,.2,1),background .3s}
.carousel .dots button:hover{background:var(--muted)}
.carousel .dots button.on{width:22px;background:var(--fg)}
.carousel.fits .dots{display:none}
/* About: every section uses the same full page width as the intro and recommendations */
main.narrow .wrap{max-width:var(--page)}
main.narrow .timeline li{grid-template-columns:260px minmax(0,780px)}
@media (max-width:900px){main.narrow .timeline li{grid-template-columns:1fr}}
/* Skills v4: each group in its own card */
.skills{gap:16px}
.skills>li{padding:26px 28px;border-top:0;border-radius:var(--radius);background:var(--soft)}
.sk-label{margin-bottom:12px}
.skills>li:has(.sk-list li:nth-child(7)) .sk-list{columns:2;column-gap:24px}
.sk-list li{break-inside:avoid}
/* Skills v5: card title, then items on hairlines; details in parentheses become a quiet note */
.skills .sk-label{font:600 20px/1.2 var(--display);text-transform:none;letter-spacing:-.01em;color:var(--fg);margin-bottom:14px}
.skills .sk-list li{display:flex;justify-content:space-between;gap:12px;align-items:baseline;padding:10px 0;font-size:15px;color:var(--fg);border-top:1px solid var(--line)}
.skills .sk-note{font:500 12px var(--mono);color:var(--muted);text-align:right}
.skills>li:has(.sk-list li:nth-child(7)) .sk-list{columns:2;column-gap:28px}
/* Skill card header with icon */
.skills .sk-head{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.skills .sk-head .sk-label{margin:0}
.sk-ico{width:40px;height:40px;flex:0 0 40px;border-radius:12px;display:grid;place-items:center;background:var(--bg);color:var(--accent)}
.sk-ico svg{width:19px;height:19px}
/* Divider above Recommendations: same space above and below */
main.narrow .divider-wrap .divider{margin-top:48px}
main.narrow .divider-wrap+section{padding-top:72px!important}

/* Writing cards: image zooms slightly on hover, like the work tiles on Home */
.post{isolation:isolate}
.post img{transition:transform .5s ease}
.post:hover img{transform:scale(1.03)}
.post-next{overflow:hidden}
/* Skill card icon sits on the right of the title */
.skills .sk-head{flex-direction:row-reverse;justify-content:space-between}
/* Skill icons without the box */
.sk-ico{width:auto;height:auto;flex:0 0 auto;background:none;border-radius:0}
.sk-ico svg{width:22px;height:22px}
main.narrow section:has(.quotes)+.divider-wrap .divider{margin-top:72px}
/* Writing: cards start at the same height as the Contact form (no vertical centering) */
@media (min-width:821px){
main:has(.writing)>section:has(.writing){flex:0 0 auto;display:block;padding-block:0}
main:has(.writing) .writing{margin-top:40px}
}
main.narrow .about-intro.top{padding-bottom:0}
/* About photo: keep face and the sketch in frame */
main.narrow .about-intro.top img{object-position:58% 26%;max-width:330px}
/* About hero: title, intro and buttons on the left; a tall photo on the right from the title to the buttons */
main.narrow .about-hero{max-width:var(--page);display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:64px;align-items:stretch;padding-bottom:0}
.about-hero .about-text>h1{margin:0 0 28px}
.about-hero .about-text p{font-size:17px;line-height:1.6;color:var(--muted);max-width:62ch;margin:0 0 16px}
.about-hero .hero-cta{margin-top:28px;gap:12px;flex-wrap:wrap}
.about-hero img{height:0;min-height:100%;width:100%;max-width:340px;justify-self:end;object-fit:cover;object-position:60% 35%;border-radius:var(--radius)}
@media (max-width:900px){main.narrow .about-hero{grid-template-columns:1fr;gap:32px}.about-hero img{height:auto;min-height:0;aspect-ratio:4/5;max-width:320px;justify-self:start}}
/* Outside of work: text and band photo side by side, Spotify link */
.outside{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:64px;align-items:start}
.outside-text p{font-size:17px;line-height:1.7;color:var(--muted);margin:0 0 20px;max-width:58ch}
.outside-text p a{color:var(--fg)}
.outside-text .hero-cta{margin-top:32px}
.outside figure{margin:0}
.outside img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;border-radius:var(--radius);background:var(--soft)}
.outside figcaption{margin-top:10px;font-size:14px;color:var(--muted)}
@media (max-width:900px){.outside{grid-template-columns:1fr;gap:32px}}
/* About photo: narrower, trimmed from the left */
.about-hero img{max-width:290px;object-position:70% 35%}
/* Scroll reveal */
.rv{opacity:0;transform:translateY(28px);transition:opacity .7s ease var(--rv-d,0ms),transform .9s cubic-bezier(.2,.7,.2,1) var(--rv-d,0ms)}
.rv.in{opacity:1;transform:none}
/* Parallax on project images (scale leaves room for the drift) */
.pc-media img,.wrow-media img{transform:translate3d(0,var(--py,0px),0) scale(var(--s,1.08));will-change:transform}
a.pcard:hover .pc-media img,a.wrow:hover .wrow-media img{--s:1.11;transform:translate3d(0,var(--py,0px),0) scale(var(--s))}
html.js .pc-media img,html.js .wrow-media img{transition:opacity .6s ease,transform .6s cubic-bezier(.2,.7,.2,1)}
@media (prefers-reduced-motion:reduce){.rv{opacity:1;transform:none}.pc-media img,.wrow-media img{transform:none}}
/* Outside of work: photo top aligned with the section title */
.outside-text h2{margin-top:0}
.outside img{object-position:50% 58%}
/* Practice cards on Home: title with icon, text, optional link to the related case study */
.cards.practice{gap:16px}
.card.pr{display:flex;flex-direction:column;padding:28px;border-radius:var(--radius);background:var(--soft)}
.pr-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}
.card.pr h3{margin:0;font:600 20px/1.2 var(--display);letter-spacing:-.01em}
.pr-ico{color:var(--accent);flex:0 0 auto}
.pr-ico svg{width:22px;height:22px;display:block}
.card.pr p{font-size:15px;line-height:1.6;color:var(--muted);margin:0}
.pr-link{margin-top:auto;padding-top:20px;font-weight:600;font-size:14px;color:var(--fg);text-decoration:none;transition:color .2s}
.pr-link span{display:inline-block;transition:transform .2s}
.pr-link:hover{color:var(--accent)}
.pr-link:hover span{transform:translateX(3px)}
/* Home: principles list. Number, statement, short line, link to the project it came from */
.principles{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
.principles li{border-bottom:1px solid var(--line)}
.pp{display:grid;grid-template-columns:72px minmax(0,1fr) auto;gap:24px;align-items:baseline;padding:32px 0;text-decoration:none;color:var(--fg)}
.pp-n{font:500 13px var(--mono);color:var(--muted);letter-spacing:.06em}
.pp-body{display:flex;flex-direction:column;gap:10px}
.pp-t{font:600 clamp(26px,3.2vw,40px)/1.1 var(--display);letter-spacing:-.02em;transition:color .25s}
.pp-d{font-size:16px;line-height:1.55;color:var(--muted);max-width:60ch}
.pp-go{font-weight:600;font-size:14px;color:var(--muted);white-space:nowrap;transition:color .25s}
.pp-go span{display:inline-block;transition:transform .25s}
.pp:hover .pp-t,.pp:hover .pp-go{color:var(--accent)}
.pp:hover .pp-go span{transform:translateX(4px)}
@media (max-width:760px){.pp{grid-template-columns:40px minmax(0,1fr);padding:24px 0}.pp-go{grid-column:2}}
/* Hero dot field: full width behind the Home hero, fading out toward the text and the work below */
main > .hero{position:relative;isolation:isolate}
.hero-field{position:absolute;z-index:-1;top:-72px;bottom:0;left:calc(50% - 50vw);width:100vw;height:calc(100% + 72px);pointer-events:none;
  -webkit-mask-image:radial-gradient(120% 90% at 78% 40%,#000 25%,transparent 75%);mask-image:radial-gradient(120% 90% at 78% 40%,#000 25%,transparent 75%)}
/* Home hero: no text cursor or selection, so the dot field feels uninterrupted */
main > .hero h1,main > .hero .intro{cursor:default;-webkit-user-select:none;user-select:none}
.hero>.hero-field{animation:none!important}
/* About hero without photo: single column */
main.narrow .about-hero{grid-template-columns:minmax(0,1fr)}
/* ÆN logo and links in Outside of work */
.aen-row{display:flex;flex-direction:column;align-items:flex-start;gap:24px;margin-top:32px}
.aen-logo{width:72px;height:auto;color:var(--fg);display:block}
.aen-row .hero-cta{margin:0;gap:12px;flex-wrap:wrap}
/* Contact cards v6: cards are static, only the round button reacts */
.ccard:hover,.ccard:not(.static):hover{border-color:var(--line)}
.ccard:hover .cico,.ccard:not(.static):hover .cico{background:var(--soft);color:var(--accent)}
.ccard:not(.static):hover .cact{border-color:var(--line);color:var(--fg)}
a.cact,button.cact{pointer-events:auto;text-decoration:none}
a.cact:hover,button.cact:hover{border-color:var(--accent)!important;color:var(--accent)!important;background:color-mix(in srgb,var(--accent) 10%,transparent)}
.ccard .ctime{justify-self:end;margin:0}
.ccard:hover .cico{background:var(--soft)!important;color:var(--accent)!important}
/* Tiles: flat brand color on top and most of the card; darken only the bottom behind the title */
.pc-media::after{background:linear-gradient(180deg,rgba(0,0,0,0) 0%,rgba(0,0,0,0) 52%,rgba(0,0,0,.68) 100%)!important}
.wrow-media::after{background:linear-gradient(180deg,rgba(0,0,0,0) 0%,rgba(0,0,0,0) 58%,rgba(0,0,0,.55) 100%)}
/* TR videos */
.cs-videos{margin:40px 0}
.cs-videos .vgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.cs-videos .vgrid>div{display:flex;flex-direction:column;gap:8px}
.cs-videos video{width:100%;height:auto;aspect-ratio:3/4;object-fit:cover;border-radius:12px;background:var(--surface,#111);border:1px solid var(--line,rgba(127,127,127,.2))}
.cs-videos .vgrid span{font:500 12px/1.4 "JetBrains Mono",monospace;color:var(--muted)}
.cs-videos figcaption{margin-top:12px}
@media(max-width:640px){.cs-videos .vgrid{grid-template-columns:1fr}}
/* TR feature rows */
.cs-features{margin:48px 0;display:flex;flex-direction:column;gap:48px}
.cs-features .feat{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:40px;align-items:center}
.cs-features .feat.rev video{order:2}
.cs-features video{width:100%;height:auto;aspect-ratio:3/4;object-fit:cover;border-radius:16px;border:1px solid var(--line,rgba(127,127,127,.2));display:block}
.cs-features .feat-k{font:500 12px/1.4 "JetBrains Mono",monospace;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}
.cs-features h3{margin:10px 0 10px}
.cs-features .feat-t p{margin:0;color:var(--muted)}
.cs-features .feat-cap{margin:-16px 0 0;font-size:13px;color:var(--muted)}
@media(max-width:640px){.cs-features .feat{grid-template-columns:1fr;gap:20px}.cs-features .feat.rev video{order:0}}
/* TR features stacked */
.cs-features{gap:0}
.cs-features .feat{display:block;padding:40px 0;border-top:1px solid var(--line,rgba(127,127,127,.2))}
.cs-features .feat:first-child{border-top:0;padding-top:0}
.cs-features .feat-t{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:12px 40px;align-items:start;margin-bottom:24px}
.cs-features .feat-k{grid-column:1/-1}
.cs-features h3{margin:0}
.cs-features .feat-media{background:var(--surface,rgba(127,127,127,.08));border:1px solid var(--line,rgba(127,127,127,.2));border-radius:16px;padding:40px;display:flex;justify-content:center}
.cs-features .feat-media video{max-width:380px;border-radius:10px}
.cs-features .feat-cap{margin:0}
@media(max-width:640px){.cs-features .feat-t{grid-template-columns:1fr}.cs-features .feat-media{padding:20px}}
.wrow.tr .wrow-media,:root[data-theme=dark] .wrow.tr .wrow-media{color:#fff}
/* Contact cards: no hover on the card, only on the round button */
.ccard,.ccard:hover,.ccard:not(.static):hover{border-color:var(--line)!important;background:var(--surface)!important;box-shadow:none!important;transform:none!important}
.ccard .cico,.ccard:hover .cico,.ccard:not(.static):hover .cico{background:var(--soft)!important;color:var(--accent)!important}
.ccard:hover .cact:not(:hover){border-color:var(--line)!important;color:var(--fg)!important;background:transparent!important}
/* Contact form: fields and error states */
.contact-form .field{display:flex;flex-direction:column;gap:8px}
.contact-form .field label{font-size:14px;font-weight:600}
.contact-form .opt{font-weight:400;color:var(--muted);margin-left:4px}
.contact-form .ferr{margin:0;font-size:13px;color:#d93636;min-height:0}
.contact-form .ferr:empty{display:none}
.contact-form .field.bad input,.contact-form .field.bad textarea{border-color:#d93636;box-shadow:0 0 0 3px color-mix(in srgb,#d93636 14%,transparent)}
.contact-form input:focus-visible,.contact-form textarea:focus-visible{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 18%,transparent)}
.contact-form .hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.contact-form .b-busy{display:none}
.contact-form[data-state=busy] .b-idle{display:none}
.contact-form[data-state=busy] .b-busy{display:inline}
.contact-form button[disabled]{opacity:.6;cursor:progress}
.contact-form .form-status.ok{color:#1f8a4c}
.contact-form .form-status.error{color:#d93636}
.contact-form .form-status a{color:inherit}
:root[data-theme=dark] .contact-form .ferr,:root[data-theme=dark] .contact-form .form-status.error{color:#ff7a7a}
:root[data-theme=dark] .contact-form .form-status.ok{color:#5fd08f}
.contact-form .field label{display:block}
.contact-form .ferr{min-height:18px;line-height:18px;margin-top:-2px}
.contact-form .ferr:empty{display:block}
.contact-form .field{gap:6px}
/* Logo hover: flip to the opposite style, in accent purple */
.nav .brand .face rect,.nav .brand .face g{transition:fill .2s,stroke .2s}
@media (hover:hover){
  .nav .brand:hover .flip{transform:rotateY(180deg)}
  .site-header.flipped .brand:hover .flip{transform:rotateY(0deg)}
  .nav .brand:hover .back rect,[data-theme=dark] .nav .brand:hover .back rect{fill:var(--accent)}
  .nav .brand:hover .back g,[data-theme=dark] .nav .brand:hover .back g{stroke:#fff}
  .site-header.flipped .brand:hover .front rect,[data-theme=dark] .site-header.flipped .brand:hover .front rect{fill:transparent;stroke:var(--accent)}
  .site-header.flipped .brand:hover .front g,[data-theme=dark] .site-header.flipped .brand:hover .front g{stroke:var(--accent)}
}
@media (hover:hover){
  .nav .brand:hover .face rect,[data-theme=dark] .nav .brand:hover .face rect{fill:transparent!important;stroke:var(--accent)!important;stroke-width:2px}
  .nav .brand:hover .face g,[data-theme=dark] .nav .brand:hover .face g{stroke:var(--accent)!important}
  .nav .brand .word{transition:color .2s}
  .nav .brand:hover .word{color:var(--accent)}
}
[data-theme=dark] .brand .back rect{stroke:#f2f2f6}
/* Stable header: nav anchored left after the logo so Work never jumps; no morphing of the header between pages */
::view-transition-group(site-header){animation:none}
::view-transition-old(site-header){display:none}
::view-transition-new(site-header){animation:none}
.nav ul{flex-wrap:nowrap}
.cs-wide .embed{max-width:1000px;margin:0 auto}
.cs-wide .next{max-width:800px}
/* Case studies: UXfolio style rows. Each h2 section is a row with a hairline above; text keeps its heading;
   text and images side by side on a 12 column grid, alternating sides; galleries centered; videos full width. */
.cs.cs-wide{max-width:none}
.cs-wide .cs-summary{margin-inline:0!important;margin-bottom:0!important}
.cs-wide .csec{padding:80px 0;border-top:1px solid var(--line)}
.cs-wide .csec.nohead{padding:0;border-top:0}
.cs-wide .csec.nohead + .csec{border-top:0}
.cs-wide .csec > .part + .part{margin-top:56px}
.cs-wide .csec > .part + .cs-features,.cs-wide .csec > .cs-features{margin:56px 0 0}
.cs-wide h2{font-size:clamp(26px,2.8vw,36px);margin:0 0 18px}
.cs-wide .blk-t :is(p,ul,ol):last-child{margin-bottom:0}
.cs-wide figure{margin:0}
.cs-wide figure img{width:100%;height:auto;max-height:none}
.cs-wide figcaption{text-align:center;margin-top:10px}
.cs-wide .blk-m{display:grid;gap:24px}
.cs-wide .blk-m.n2{grid-template-columns:1fr 1fr}
.cs-wide .blk-m.n1.portrait figure{max-width:320px;margin:0 auto}
.cs-wide .blk-m.n1.square figure{max-width:440px;margin:0 auto}
.cs-wide .gallery{display:grid;gap:48px;justify-content:center}
.cs-wide .gallery.phones-2{grid-template-columns:repeat(2,minmax(0,380px))}
.cs-wide .gallery.phones-3{grid-template-columns:repeat(3,minmax(0,300px))}
.cs-wide .gallery.phones-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.cs-wide .gallery.wide-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.cs-wide .gallery.wide-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.cs-wide .part .carousel{margin:0}
.cs-wide .embed{max-width:none}
@media (min-width:900px){
  .cs-wide .text,.cs-wide .pair{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:48px;align-items:center}
  .cs-wide .text .blk-t{grid-column:1/9}
  .cs-wide .pair.media-right .blk-t{grid-column:1/7}
  .cs-wide .pair.media-right .blk-m{grid-column:8/13}
  .cs-wide .pair.media-left .blk-m{grid-column:1/6}
  .cs-wide .pair.media-left .blk-t{grid-column:7/13}
}
@media (max-width:899px){
  .cs-wide .csec{padding:56px 0}
  .cs-wide .csec > .part + .part{margin-top:40px}
  .cs-wide .pair .blk-m{margin-top:28px}
  .cs-wide .gallery{gap:20px}
  .cs-wide .gallery.phones-3,.cs-wide .gallery.phones-4{grid-template-columns:repeat(2,1fr)}
  .cs-wide .gallery.wide-2,.cs-wide .gallery.wide-3{grid-template-columns:1fr}
  .cs-wide .blk-m.n1.portrait figure{max-width:280px}
}
/* TR feature rows inside the wide layout: text left, video panel right */
@media (min-width:900px){
  .cs-wide .cs-features .feat{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:48px;align-items:center;padding:48px 0}
  .cs-wide .cs-features .feat-t{display:block;margin:0;max-width:none}
  .cs-wide .cs-features .feat-t p{margin-top:12px}
  .cs-wide .cs-features h3{margin:8px 0 0}
  .cs-wide .cs-features .feat-media{padding:40px}
  .cs-wide .cs-features .feat-media video{max-width:360px}
}
@media (min-width:900px){.cs-wide .pair .blk-t,.cs-wide .pair .blk-m{grid-row:1}}
/* Phone screenshots: one size everywhere, inside a drawn device frame */
.cs-wide{--phone:272px}
.cs-wide figure.phone{width:var(--phone);max-width:100%;margin:0 auto;position:relative}
.cs-wide figure.phone img{display:block;width:100%;height:auto;border:9px solid #141418;border-radius:42px;background:#141418;box-shadow:0 0 0 1px rgba(0,0,0,.08),0 28px 48px -22px rgba(0,0,0,.45)}
.cs-wide figure.phone::before{content:"";position:absolute;top:17px;left:50%;width:27%;height:17px;transform:translateX(-50%);border-radius:999px;background:#141418;z-index:2}
:root[data-theme=dark] .cs-wide figure.phone img{box-shadow:0 0 0 1px rgba(255,255,255,.14),0 28px 48px -22px rgba(0,0,0,.7)}
.cs-wide figure.phone figcaption{margin-top:14px}
.cs-wide .blk-m.n2{grid-template-columns:repeat(2,minmax(0,var(--phone)));justify-content:center;gap:24px}
.cs-wide .blk-m.n1.phone figure{max-width:var(--phone)}
.cs-wide .gallery.phones-2{grid-template-columns:repeat(2,minmax(0,var(--phone)));gap:48px}
.cs-wide .gallery.phones-3{grid-template-columns:repeat(3,minmax(0,var(--phone)));gap:48px}
.cs-wide .gallery.phones-4{grid-template-columns:repeat(4,minmax(0,var(--phone)));gap:32px}
.cs-wide .carousel.phones figure{width:var(--phone)}
.cs-wide .carousel.phones figure img{height:auto;width:100%}
@media (min-width:900px){
  .cs-wide .pair.has2.media-right .blk-t{grid-column:1/6}
  .cs-wide .pair.has2.media-right .blk-m{grid-column:6/13}
  .cs-wide .pair.has2.media-left .blk-m{grid-column:1/8}
  .cs-wide .pair.has2.media-left .blk-t{grid-column:8/13}
}
@media (max-width:899px){
  .cs-wide{--phone:260px}
  .cs-wide .gallery.phones-3,.cs-wide .gallery.phones-4,.cs-wide .gallery.phones-2{grid-template-columns:repeat(2,minmax(0,var(--phone)));gap:16px}
  .cs-wide .blk-m.n2{gap:16px}
  .cs-wide figure.phone img{border-width:7px;border-radius:34px}
  .cs-wide figure.phone::before{top:13px;height:14px}
}
@media (min-width:900px){.cs-wide .text .blk-t{grid-column:3/11}}
/* Work and Articles: chevron + flyout menu listing every page in the section */
.nav ul li.has-menu{position:relative;display:flex;align-items:center;gap:1px}
.nav .chev{width:22px;height:22px;padding:0;border:0;border-radius:6px;background:none;color:var(--muted);cursor:pointer;display:grid;place-items:center;transition:color .15s,transform .2s,background .15s}
.nav .chev svg{width:14px;height:14px}
.nav .chev:hover,.nav li.has-menu.open .chev{color:var(--fg)}
.nav .chev:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.nav li.has-menu.open .chev{transform:rotate(180deg)}
.nav .menu{position:absolute;top:calc(100% + 10px);left:-10px;z-index:40;width:392px;padding:8px;border-radius:16px;background:var(--bg);border:1px solid var(--line);box-shadow:0 24px 48px -16px rgba(0,0,0,.22),0 2px 8px rgba(0,0,0,.06);opacity:0;visibility:hidden;transform:translateY(-6px);transition:opacity .18s ease,transform .22s cubic-bezier(.2,.7,.2,1),visibility 0s linear .22s}
.nav .menu::before{content:"";position:absolute;left:0;right:0;top:-14px;height:14px}
.nav li.has-menu.open .menu,.nav li.has-menu:focus-within .menu{opacity:1;visibility:visible;transform:none;transition:opacity .18s ease,transform .22s cubic-bezier(.2,.7,.2,1),visibility 0s}
@media (hover:hover){.nav li.has-menu:hover .menu{opacity:1;visibility:visible;transform:none;transition:opacity .18s ease,transform .22s cubic-bezier(.2,.7,.2,1),visibility 0s}.nav li.has-menu:hover .chev{color:var(--fg);transform:rotate(180deg)}}
.nav .menu ul{display:flex;flex-direction:column;gap:2px;list-style:none;margin:0;padding:0}
.nav .menu li{display:block}
.nav ul .menu li a{display:grid;grid-template-columns:56px 1fr;gap:12px;align-items:center;padding:8px;border:0;border-radius:10px;font-size:14px;font-weight:500;color:var(--fg);text-decoration:none;transition:background .15s}
.nav ul .menu li a:hover{background:var(--soft);color:var(--fg)}
.nav ul .menu li a[aria-current=page]{background:var(--soft);font-weight:500}
.nav ul .menu li a[aria-current=page] b{color:var(--accent)}
.nav .menu img{display:block;width:56px;height:40px;object-fit:cover;border-radius:6px;background:var(--soft)}
.nav .menu b{display:block;font-weight:600;line-height:1.25}
.nav .menu small{display:block;margin-top:2px;font-size:12px;color:var(--muted)}
.nav ul .menu .menu-all{display:block;margin:6px 0 0;padding:10px 8px 6px;border:0;border-top:1px solid var(--line);border-radius:0;font-size:15px;font-weight:500;color:var(--muted)}
.nav ul .menu .menu-all:hover{color:var(--accent)}
:root[data-theme=dark] .nav .menu{box-shadow:0 24px 48px -16px rgba(0,0,0,.6),0 0 0 1px rgba(255,255,255,.04)}
@media (max-width:640px){
  .nav .menu{position:fixed;left:12px;right:12px;top:62px;width:auto}
  .nav .chev{width:20px;height:20px}
}
.nav #menu-articles{width:352px}
@media (max-width:480px){.nav .chev{width:18px;height:18px}.nav .chev svg{width:12px;height:12px}}
/* Menu rows: one height, small uniform tiles on the brand colour, no wrapping */
.nav ul .menu li a{grid-template-columns:40px minmax(0,1fr);gap:12px;padding:8px 10px 8px 8px;min-height:56px}
.nav .menu .mtile{display:block;width:40px;height:40px;border-radius:9px;overflow:hidden;background:var(--soft)}
.nav .menu .mtile img{display:block;width:40px;height:40px;border-radius:0;background:transparent}
.nav .menu .mtile img.fit{object-fit:contain}
.nav .menu .mtile img.crop{object-fit:cover}
.nav .menu .txt{display:block;min-width:0}
.nav .menu b,.nav .menu small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nav .menu b{font-size:14px}
.nav .menu small{margin-top:3px}
.nav .menu ul{gap:0}
.nav ul .menu .menu-all{margin-top:8px;padding:12px 8px 6px}
.nav .menu{padding:8px;width:384px}
.nav #menu-articles{width:344px}
/* Menu rows: full width, left aligned (undo the centering inherited from the top nav list) */
.nav .menu ul{align-items:stretch;flex-wrap:nowrap;gap:2px}
.nav .menu ul li{display:block;width:100%;margin:0}
.nav ul .menu li a{width:100%;box-sizing:border-box}
.nav ul .menu .menu-all{width:100%;box-sizing:border-box;margin:6px 0 0}
/* Menu width hugs the longest line; the divider runs edge to edge */
.nav .menu{width:340px}
.nav #menu-articles{width:330px}
.nav ul .menu .menu-all{margin:8px -8px -8px;width:calc(100% + 16px);padding:12px 16px 12px;border-top:1px solid var(--line)}
@media (max-width:640px){.nav .menu,.nav #menu-articles{width:auto}}
#work,#articles{scroll-margin-top:84px}
/* Smaller chevron */
.nav .chev{width:18px;height:18px}
.nav .chev svg{width:11px;height:11px}
@media (max-width:480px){.nav .chev{width:16px;height:16px}.nav .chev svg{width:10px;height:10px}}
/* Copy button: icon exactly centred (the inline span was sitting 1px high) */
.cact{display:grid;place-items:center;justify-content:center}
.cact .i-copy,.cact .i-done{display:grid;place-items:center;line-height:0;width:16px;height:16px}
.cact .i-copy svg,.cact .i-done svg{display:block;width:16px;height:16px}
.cact:not(.done) .i-done{display:none}
.cact.done .i-copy{display:none}
/* Contact v6: cards at natural height; message box sized by script so its bottom meets the last card */
@media (min-width:801px){
  .contact-grid{align-items:start}
  .contact-cards{grid-template-rows:none;align-content:start;padding-bottom:0;margin-top:30px}
  .contact-form textarea{height:160px;flex:0 0 auto}
}
/* Flyout menu: softer opening. A short hover intent delay, then a slow ease in with the rows settling one after another. */
.nav .menu{transform-origin:top left;transform:translateY(-10px) scale(.985);transition:opacity .16s ease,transform .18s ease,visibility 0s linear .18s}
.nav li.has-menu.open .menu,.nav li.has-menu:focus-within .menu{opacity:1;visibility:visible;transform:none;transition:opacity .32s cubic-bezier(.2,.7,.2,1),transform .45s cubic-bezier(.2,.7,.2,1),visibility 0s}
@media (hover:hover){
  .nav li.has-menu:hover .menu{opacity:1;visibility:visible;transform:none;transition:opacity .32s cubic-bezier(.2,.7,.2,1) .14s,transform .45s cubic-bezier(.2,.7,.2,1) .14s,visibility 0s linear .14s}
  .nav li.has-menu:hover .chev{transition:color .15s,transform .35s cubic-bezier(.2,.7,.2,1) .14s}
}
.nav .menu li,.nav .menu .menu-all{opacity:0;transform:translateY(-5px);transition:opacity .14s ease,transform .14s ease}
.nav li.has-menu.open .menu :is(li,.menu-all),.nav li.has-menu:focus-within .menu :is(li,.menu-all){opacity:1;transform:none;transition:opacity .3s ease,transform .38s cubic-bezier(.2,.7,.2,1)}
@media (hover:hover){.nav li.has-menu:hover .menu :is(li,.menu-all){opacity:1;transform:none;transition:opacity .3s ease,transform .38s cubic-bezier(.2,.7,.2,1)}}
.nav li.has-menu.open .menu li:nth-child(1),.nav li.has-menu:hover .menu li:nth-child(1){transition-delay:.16s}
.nav li.has-menu.open .menu li:nth-child(2),.nav li.has-menu:hover .menu li:nth-child(2){transition-delay:.2s}
.nav li.has-menu.open .menu li:nth-child(3),.nav li.has-menu:hover .menu li:nth-child(3){transition-delay:.24s}
.nav li.has-menu.open .menu li:nth-child(4),.nav li.has-menu:hover .menu li:nth-child(4){transition-delay:.28s}
.nav li.has-menu.open .menu li:nth-child(5),.nav li.has-menu:hover .menu li:nth-child(5){transition-delay:.32s}
.nav li.has-menu.open .menu .menu-all,.nav li.has-menu:hover .menu .menu-all{transition-delay:.36s}
@media (prefers-reduced-motion:reduce){.nav .menu,.nav .menu li,.nav .menu .menu-all{transition:none!important;transform:none!important}}

/* flyout rows: grey company and role line above the name; 6th row joins the stagger */
.nav .menu .txt small{margin:0 0 3px}
.nav .menu .txt b{margin:0}
.nav li.has-menu.open .menu li:nth-child(6),.nav li.has-menu:hover .menu li:nth-child(6){transition-delay:.36s}
.nav li.has-menu.open .menu .menu-all,.nav li.has-menu:hover .menu .menu-all{transition-delay:.4s}

/* Case study body: sticky chapter list on the left, one 720px column on the right, images stacked above their text */
.cs-body{display:grid;grid-template-columns:200px minmax(0,var(--text));gap:64px;align-items:start;margin-top:64px}
.cs-toc{position:sticky;top:88px;min-width:0}
.cs-toc ol{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
.cs-toc a{display:flex;gap:12px;align-items:baseline;padding:6px 0;color:var(--muted);text-decoration:none;font:500 14px/1.35 var(--body);border:0;transition:color .2s}
.cs-toc a .n{font:500 11px var(--mono);letter-spacing:.06em;min-width:20px;color:var(--muted);transition:color .2s}
.cs-toc a:hover{color:var(--fg)}
.cs-toc a.on{color:var(--fg);font-weight:600}
.cs-toc a.on .n{color:var(--accent)}
.cs-main{min-width:0}
.cs-wide .cs-main .csec{padding:64px 0;border-top:1px solid var(--line);scroll-margin-top:88px}
.cs-wide .cs-main .csec:first-child{padding-top:0;border-top:0}
.cs-wide .cs-main .csec > .part + .part{margin-top:36px}
.cs-wide .cs-main .csec > .part.head + .part{margin-top:22px}
.cs-wide .cs-main h2{font-size:clamp(26px,2.6vw,32px);margin:0}
.cs-wide .cs-main .part.one figure{max-width:100%}
.cs-wide .cs-main .gallery{justify-content:start}
.cs-wide .cs-main .gallery.phones-2{grid-template-columns:repeat(2,minmax(0,var(--phone)));gap:32px}
.cs-wide .cs-main .gallery.phones-3{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.cs-wide .cs-main .gallery.phones-4{grid-template-columns:repeat(2,minmax(0,var(--phone)));gap:32px 24px}
.cs-wide .cs-main .cs-features .feat{display:block;padding:40px 0}
.cs-wide .cs-main .cs-features .feat-media{padding:0}
.cs-wide .cs-body ~ .next{margin-left:264px}
@media (max-width:1439px){body:has(.cs-toc) .cs-side{display:none}}
@media (max-width:900px){
  .cs-body{grid-template-columns:minmax(0,1fr);gap:28px;margin-top:40px}
  .cs-toc{top:58px;z-index:5;margin:0 -24px;padding:10px 24px;background:var(--bg);border-bottom:1px solid var(--line)}
  .cs-toc ol{flex-direction:row;gap:20px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .cs-toc ol::-webkit-scrollbar{display:none}
  .cs-toc a{white-space:nowrap;padding:4px 0}
  .cs-wide .cs-main .csec{padding:48px 0;scroll-margin-top:110px}
  .cs-wide .cs-body ~ .next{margin-left:0}
}

/* chapter subheads (the old section titles inside a merged chapter) */
.cs-wide .cs-main .part.sub h3{font:700 20px/1.25 var(--display);letter-spacing:-.01em;margin:0}
.cs-wide .cs-main .csec > .part + .part.sub{margin-top:48px}
.cs-wide .cs-main .csec > .part.sub + .part{margin-top:14px}
.cs-wide .cs-main .csec > .part.head + .part.sub{margin-top:28px}

/* chapter numbers on the page + case title on top of the chapter list */
.cs-wide .cs-main .part.head .cnum{display:block;margin-bottom:10px;font:500 12px var(--mono);letter-spacing:.08em;color:var(--accent)}
.cs-toc .toc-top{display:block;margin:0 0 14px;padding:0 0 14px;border-bottom:1px solid var(--line);font:600 14px/1.35 var(--body);color:var(--muted);text-decoration:none;transition:color .2s}
.cs-toc .toc-top:hover,.cs-toc .toc-top.on{color:var(--fg)}
@media (max-width:900px){.cs-toc .toc-top{display:none}}

/* chapter nav: "Case study" label over the title, "01 | Context" items */
.cs-toc .toc-top small{display:block;margin-bottom:6px;font:500 11px var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.cs-toc .toc-top span{display:block;color:var(--fg)}

/* quieter "Case study" label; chapter number on the same line as the heading */
.cs-toc .toc-top small{margin-bottom:4px;font:400 12px/1.3 var(--body);letter-spacing:0;text-transform:none;color:var(--muted)}
.cs-wide .cs-main .part.head{display:flex;align-items:center;gap:16px}
.cs-wide .cs-main .part.head .cnum{display:block;margin:0;font:500 14px var(--mono);letter-spacing:.04em;color:var(--accent)}
.cs-wide .cs-main .part.head .csep{flex:none;width:1px;height:26px;background:var(--line)}
/* home hero: name and employer in bold, original CTA */
.hero .intro b{font-weight:600;color:var(--fg);white-space:nowrap}
/* Home intro: company names as quiet links, bold like plain text, a touch greyer on hover, underline and outline on keyboard focus */
.hero .intro a.intro-co{font-weight:600;color:var(--fg);white-space:nowrap;text-decoration:none;cursor:pointer;border-radius:3px;transition:color .2s}
.hero .intro a.intro-co:hover{color:color-mix(in srgb,var(--fg) 55%,var(--muted))}
.hero .intro a.intro-co:focus-visible{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;outline:2px solid var(--accent);outline-offset:3px}

/* case summary v2: two rows of separate cards (facts, results) */
.cs-brief{display:grid;gap:14px}
.cs-brief-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.cs-brief-row.res.n2{grid-template-columns:repeat(2,minmax(0,1fr))}
.cs-brief-row.res.n3{grid-template-columns:repeat(3,minmax(0,1fr))}
.cs-fact,.cs-res{padding:22px 24px;border-radius:var(--radius);background:var(--soft)}
.cs-fact small{display:block;margin-bottom:8px;font-size:13px;color:var(--muted)}
.cs-fact b{display:block;font:500 16px/1.35 var(--body);color:var(--fg)}
.cs-fact span{display:block;margin-top:4px;font-size:14px;line-height:1.4;color:var(--muted)}
.cs-brief-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 2px 0}
.cs-brief-head h4{margin:0;font:400 13px/1.3 var(--body);color:var(--muted)}
.cs-status{display:inline-flex;align-items:center;gap:8px;font:500 13px/1 var(--body);color:var(--fg)}
.cs-status::before{content:"";width:8px;height:8px;border-radius:50%;background:#22c55e}
.cs-status.pending::before{background:var(--muted)}
.cs-res{padding:26px 24px}
.cs-res b{display:block;font:700 clamp(26px,2.6vw,36px)/1.05 var(--display);letter-spacing:-.02em;color:var(--fg)}
.cs-res p{margin:12px 0 6px;font-size:15px;line-height:1.45;color:var(--fg)}
.cs-res small{display:block;font-size:13px;color:var(--muted)}
@media (max-width:900px){.cs-brief-row,.cs-brief-row.res.n3{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:480px){.cs-brief-row,.cs-brief-row.res.n2,.cs-brief-row.res.n3{grid-template-columns:1fr}}

/* hero facts row (replaces the pills) */
.cs-hero-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px 32px;margin:36px 0 0;padding-top:24px;border-top:1px solid var(--line);max-width:1100px}
.cs-hero-facts dt{margin:0 0 6px;font-size:13px;color:var(--muted)}
.cs-hero-facts dd{margin:0;font:500 15px/1.4 var(--body);color:var(--fg)}
.cs-hero-facts dd span{display:block;margin-top:2px;font-weight:400;font-size:14px;color:var(--muted)}
@media (max-width:760px){.cs-hero-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 20px}}

/* hero facts: a short divider over each fact, more air before the cover */
.cs-hero-facts{border-top:0;padding-top:0;margin-bottom:72px;max-width:none}
.cs-hero-facts>div{padding-top:16px;border-top:1px solid var(--line)}
@media (max-width:760px){.cs-hero-facts{margin-bottom:40px}}

/* facts moved under the cover, above the results */
.cs-brief .cs-hero-facts{margin:0 0 28px}

/* full width divider between the case header block and the chapters */
.cs-wide .cs-body{margin-top:72px;padding-top:72px;border-top:1px solid var(--line)}
@media (max-width:900px){.cs-wide .cs-body{margin-top:40px;padding-top:40px}}

/* case summary v3: one block of small sections under the cover (no cards) */
.cs-sum{display:grid;grid-template-columns:repeat(var(--cols,4),minmax(0,1fr));gap:36px 32px}
.cs-sum-item{padding-top:16px;border-top:1px solid var(--line)}
.cs-sum-item small{display:block;margin-bottom:8px;font-size:13px;line-height:1.35;color:var(--muted)}
.cs-sum-item b{display:block;font:500 16px/1.35 var(--body);color:var(--fg)}
.cs-sum-item.num b{font:700 clamp(26px,2.4vw,34px)/1.05 var(--display);letter-spacing:-.02em}
.cs-sum-item span{display:block;margin-top:6px;font-size:14px;line-height:1.45;color:var(--muted)}
.cs-sum-item.num span{color:var(--fg)}
.cs-sum-item .cs-status{margin-top:12px}
@media (max-width:900px){.cs-sum{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 20px}}
@media (max-width:480px){.cs-sum{grid-template-columns:1fr}}

/* case summary v4: goals and impact as lists */
.cs-sum{grid-template-columns:minmax(0,.9fr) minmax(0,.9fr) minmax(0,1.1fr) minmax(0,1.1fr)}
.cs-sum-item ul{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.cs-sum-item li{font-size:15px;line-height:1.45;color:var(--muted);padding-left:16px;position:relative}
.cs-sum-item li::before{content:"";position:absolute;left:2px;top:.6em;width:4px;height:4px;border-radius:50%;background:var(--muted)}
.cs-sum-item li b{display:inline;font:600 15px/1.45 var(--body);color:var(--fg)}
@media (max-width:900px){.cs-sum{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:480px){.cs-sum{grid-template-columns:1fr}}

/* case summary v5: three equal columns, role as label/value rows */
.cs-sum{grid-template-columns:repeat(3,minmax(0,1fr));gap:36px 48px}
.cs-sum-item>small{margin-bottom:16px;font-weight:500;color:var(--fg)}
.cs-sum-dl{display:grid;grid-template-columns:76px minmax(0,1fr);gap:10px 16px;margin:0}
.cs-sum-dl dt{font-size:14px;line-height:1.45;color:var(--muted)}
.cs-sum-dl dd{margin:0;font-size:15px;line-height:1.45;color:var(--fg)}
.cs-sum-dl dd span{display:inline;margin:0;font-size:14px;color:var(--muted)}
.cs-sum-dl dd .cs-status{display:inline-flex;margin:0;font-size:15px;font-weight:400;color:var(--fg)}
.cs-sum-item ul{gap:12px}
.cs-sum-item li{color:var(--fg)}
.cs-sum-item li b{font-weight:600}
@media (max-width:900px){.cs-sum{grid-template-columns:1fr;gap:32px}}

/* case summary v6: status as the last list item, its bullet is the status dot */
.cs-sum-item li.st::before{left:0;top:.45em;width:8px;height:8px;background:#22c55e}
.cs-sum-item li.st.pending::before{background:var(--muted)}

/* case summary v7: everything grey, bold parts carry the emphasis */
.cs-sum-item>small{font-weight:400;color:var(--muted)}
.cs-sum-item li{color:var(--muted)}
.cs-sum-item li b{color:var(--fg);font-weight:600}

/* case summary v8: the three columns as soft cards */
.cs-sum{gap:16px}
.cs-sum-item{border-top:0;padding:28px 28px 32px;background:var(--soft);border-radius:var(--radius)}
.cs-sum-item>small{margin-bottom:18px}
@media (max-width:900px){.cs-sum{gap:12px}.cs-sum-item{padding:24px}}

/* case summary v9: tighter card padding */
.cs-sum-item{padding:22px 22px 24px}
.cs-sum-item>small{margin-bottom:14px}
@media (max-width:900px){.cs-sum-item{padding:20px}}

/* case summary v11: bullets back, bigger title with a divider under it */
.cs-sum-item>small{font:600 16px/1.3 var(--body);color:var(--fg);margin-bottom:16px;padding-bottom:14px;border-bottom:1px solid var(--line)}
.cs-sum-item ul{gap:12px}
.cs-sum-item li{padding:0 0 0 16px;border-top:0}
.cs-sum-item li::before{display:block}

/* case summary v12: card titles in caps mono, grey */
.cs-sum-item>small{font:500 12px/1.3 var(--mono);text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}

/* case summary v13: one spacing unit around the title: 24 card padding, 16 above and below the divider */
.cs-sum-item{padding:24px}
.cs-sum-item>small{display:block;margin:0 0 16px;padding:0 0 16px;line-height:16px}
.cs-sum-item ul{gap:14px}
@media (max-width:900px){.cs-sum-item{padding:20px}}

/* case summary v14: less space above the title, same 16 as around the divider */
.cs-sum-item{padding-top:16px}

/* case summary v15: equal padding on top and sides */
.cs-sum-item{padding:20px 20px 24px}

/* case summary v16: wider gap between cards; cover to cards = cards to divider = divider to chapters (72, 40 on mobile) */
.cs-sum{gap:24px}
@media (min-width:901px){.cs-sum{margin-top:16px}}
@media (max-width:900px){.cs-sum{gap:16px;margin-top:-16px}}

/* case summary v17: darker cards, halfway between the page and the soft tone */
.cs-sum-item{background:color-mix(in srgb,var(--soft) 50%,var(--bg))}

/* chapters v2: the content column runs to the right margin; images use the full width, text keeps a readable measure */
@media (min-width:901px){
  .cs-body{grid-template-columns:200px minmax(0,1fr)}
  .cs-body .part.txt,.cs-body .part.sub{max-width:var(--text)}
}

/* chapters v3: images back to the text width; only the column and dividers run to the margin */
@media (min-width:901px){.cs-body .part{max-width:var(--text)}}

/* chapters v4: images and text both run to the right margin */
@media (min-width:901px){.cs-body .part,.cs-body .part.txt,.cs-body .part.sub{max-width:none}}

/* chapters v5: wider, slightly larger navigation, so the content column narrows to about 820px */
@media (min-width:901px){
  .cs-body{grid-template-columns:280px minmax(0,1fr)}
  .cs-toc a{font-size:15px;padding:7px 0}
  .cs-toc .toc-top span{font-size:16px}
  .cs-wide .cs-body ~ .next{margin-left:344px}
}

/* case hero v2: full bleed cover with the title on it, bottom left */
.cs-hero-full{position:relative;height:clamp(520px,calc(100svh - 67px),820px);overflow:hidden;background:#0e0e13;color:#fff}
.cs-hero-full .hf-media{position:absolute;inset:0}
.cs-hero-full .hf-media img{width:100%;height:100%;object-fit:cover;transform:none!important;opacity:1!important}
.cs-hero-full::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(90deg,rgba(10,10,14,.72) 0%,rgba(10,10,14,.38) 38%,rgba(10,10,14,0) 62%),linear-gradient(0deg,rgba(10,10,14,.55) 0%,rgba(10,10,14,0) 45%)}
.cs-hero-full .hf-text{position:absolute;left:0;right:0;bottom:56px;z-index:1}
.cs-hero-full .eyebrow{color:rgba(255,255,255,.8)}
.cs-hero-full h1{color:#fff;max-width:14ch;margin:14px 0 0}
.cs-hero-full .sub{color:rgba(255,255,255,.82);max-width:560px;margin-top:18px}
@media (max-width:900px){.cs-hero-full{height:auto;min-height:0;display:flex;flex-direction:column;background:var(--bg);color:var(--fg)}
  .cs-hero-full::after{display:none}
  .cs-hero-full .hf-media{position:relative;inset:auto;order:2;aspect-ratio:16/10}
  .cs-hero-full .hf-text{position:static;padding-top:48px;padding-bottom:32px}
  .cs-hero-full .eyebrow{color:var(--accent)}.cs-hero-full h1{color:var(--fg)}.cs-hero-full .sub{color:var(--muted)}}

/* case hero v3: display size title, portrait covers sit whole on the right */
.cs-hero-full h1{font:700 clamp(40px,5.6vw,84px)/.95 var(--display);letter-spacing:-.035em;max-width:13ch}
.cs-hero-full .hf-media.fit img{position:absolute;right:max(24px,calc((100vw - 1192px)/2));top:50%;width:auto;height:118%;transform:translateY(-50%) rotate(-4deg)!important;object-fit:contain;border-radius:28px;box-shadow:0 40px 90px rgba(0,0,0,.35)}
@media (max-width:900px){.cs-hero-full .hf-media.fit img{position:static;width:100%;height:100%;transform:none!important;object-fit:cover;border-radius:0;box-shadow:none}}

/* case hero v4: fitted covers anchored right, no tilt, soft left edge */
.cs-hero-full .hf-media.fit img{right:0;left:auto;top:auto;bottom:0;height:100%;width:auto;max-width:none;transform:none!important;border-radius:0;box-shadow:none;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 14%);mask-image:linear-gradient(90deg,transparent 0,#000 14%)}
.cs-hero-full:has(.hf-media.fit)::after{background:linear-gradient(0deg,rgba(10,10,14,.25) 0%,rgba(10,10,14,0) 40%)}
@media (max-width:900px){.cs-hero-full .hf-media.fit img{-webkit-mask-image:none;mask-image:none;width:100%;height:100%}}

/* case hero v5: title wraps earlier, wider soft edge on fitted covers */
.cs-hero-full h1{max-width:11ch}
.cs-hero-full .hf-media.fit img{-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 32%);mask-image:linear-gradient(90deg,transparent 0,#000 32%)}

/* case hero v7: calmer. Shorter hero kept, no overlap, no shadow */
@media (min-width:901px){
  .cs-hero-full{height:clamp(440px,58svh,580px)}
  .cs-hero-full .hf-text{bottom:56px}
  .cs-sum{margin-top:16px}
}

/* case hero v8 (option D): background in code that drifts slowly, cover rises in once and then breathes */
.cs-hero-full .hf-media.fit{background:var(--hc)}
.cs-hero-full .hf-bg{position:absolute;inset:0;background:linear-gradient(120deg,color-mix(in srgb,var(--hc) 82%,#000),var(--hc),color-mix(in srgb,var(--hc) 82%,#fff),var(--hc),color-mix(in srgb,var(--hc) 82%,#000));background-size:300% 300%;animation:hf-drift 16s ease-in-out infinite}
@keyframes hf-drift{0%,100%{background-position:0% 50%}50%{background-position:100% 50%}}
.cs-hero-full .hf-media.fit img{-webkit-mask-image:radial-gradient(ellipse 62% 74% at 58% 52%,#000 58%,transparent 100%);mask-image:radial-gradient(ellipse 62% 74% at 58% 52%,#000 58%,transparent 100%);
  animation:hf-rise 1s cubic-bezier(.2,.7,.2,1) both,hf-bob 7s ease-in-out 1.1s infinite}
@keyframes hf-rise{from{translate:0 48px;opacity:.3}to{translate:0 0;opacity:1}}
@keyframes hf-bob{0%,100%{translate:0 0}50%{translate:0 -8px}}
html.js .cs-hero-full .hf-media img{opacity:1}
@media (max-width:900px){.cs-hero-full .hf-media.fit img{-webkit-mask-image:none;mask-image:none;animation:hf-rise 1s cubic-bezier(.2,.7,.2,1) both}}
@media (prefers-reduced-motion:reduce){.cs-hero-full .hf-bg,.cs-hero-full .hf-media.fit img{animation:none}}

/* live UI blocks inside the case text */
.live-ui{margin:8px 0 28px}
.live-ui figcaption{margin-top:10px;font-size:14px;color:var(--muted);text-align:center}
.lu-stage{display:flex;flex-wrap:wrap;gap:20px;align-items:center;justify-content:center;padding:40px 24px;border-radius:var(--radius);color:#16161c}
.lu-choco{background:linear-gradient(160deg,#5a82ff,#3867ff 50%,#2d55e6)}
.lu-cell{width:min(440px,100%);background:#fff;border-radius:22px;padding:20px;box-shadow:0 24px 60px rgba(10,20,80,.3)}
.lu-top{display:flex;gap:14px;align-items:center}
.lu-top b{display:block;font:600 17px/1.25 var(--body)}
.lu-top small{font-size:13px;color:#8a8780}
.lu-img{width:58px;height:58px;border-radius:50%;flex:none;background:radial-gradient(circle at 35% 35%,#ff8b6b,#e6331c 60%);box-shadow:inset -7px -7px 0 rgba(0,0,0,.12)}
.lu-price{margin-left:auto;font:700 19px var(--display)}
.lu-ctl{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:16px}
.lu-step{display:flex;align-items:center;border:1px solid #dcd8cf;border-radius:14px;overflow:hidden}
.lu-step button{width:42px;height:42px;border:0;background:#fff;font:600 19px var(--body);color:#16161c;cursor:pointer}
.lu-step button:hover{background:#f2f0ea}
.lu-step output{min-width:50px;text-align:center;font:600 16px var(--body);font-variant-numeric:tabular-nums}
.lu-units{display:flex;background:#f2f0ea;border-radius:12px;padding:3px}
.lu-units button{border:0;background:transparent;border-radius:9px;padding:8px 12px;font:600 13px var(--body);color:#6a675f;cursor:pointer}
.lu-units button[aria-pressed="true"]{background:#fff;color:#16161c;box-shadow:0 1px 3px rgba(0,0,0,.12)}
.lu-add{margin-left:auto;width:46px;height:46px;border-radius:50%;border:0;background:#2f55f0;color:#fff;font:400 26px/1 var(--body);cursor:pointer}
.lu-total{display:flex;justify-content:space-between;align-items:center;margin-top:14px;background:#16161c;color:#fff;border-radius:14px;padding:13px 16px;font-size:13px}
.lu-total span{color:rgba(255,255,255,.7)}
.lu-total b{font:700 19px var(--display);font-variant-numeric:tabular-nums}
.live-ui button:focus-visible,.live-ui input:focus-visible+span{outline:2px solid #7b8cff;outline-offset:2px}

/* live UI: keep the mock UI light inside dark pages */
.live-ui .lu-cell{color-scheme:light;color:#16161c}
.live-ui .lu-price{color:#16161c}

/* case hero v11: subtle soft curve at the bottom edge (a page coloured shape masks a shallow arc) */
.cs-hero-full::before{content:"";position:absolute;left:0;right:0;bottom:-1px;height:36px;z-index:3;pointer-events:none;background:var(--bg);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0 0Q720 80 1440 0V40H0z'/%3E%3C/svg%3E") center/100% 100% no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0 0Q720 80 1440 0V40H0z'/%3E%3C/svg%3E") center/100% 100% no-repeat}
@media (max-width:900px){.cs-hero-full::before{height:18px}}

/* case hero v12: straight on the left, the right side curves up */
.cs-hero-full::before{height:36px;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40H720Q1080 40 1440 0V40z'/%3E%3C/svg%3E") center/100% 100% no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40H720Q1080 40 1440 0V40z'/%3E%3C/svg%3E") center/100% 100% no-repeat}
@media (max-width:900px){.cs-hero-full::before{height:18px}}

/* case header on the hero: transparent, white elements on the case colour (like the home tiles); normal again once past the hero */
.site-header.on-hero{background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none;border-bottom-color:transparent}
.site-header.on-hero .brand,.site-header.on-hero .nav>nav>ul>li>a,.site-header.on-hero .nav>nav>ul>li>.chev,.site-header.on-hero .nav-actions{
  --fg:#fff;--muted:rgba(255,255,255,.78);--accent:#fff;--line:rgba(255,255,255,.38);--soft:rgba(255,255,255,.16);color:var(--fg)}
.site-header.on-hero .brand .word{color:#fff}
.site-header.on-hero .brand .front rect{fill:transparent;stroke:#fff}
.site-header.on-hero .brand .front g{stroke:#fff}
.site-header.on-hero .brand .back rect{fill:#fff;stroke:#fff}
.site-header.on-hero .brand .back g{stroke:#16161c}
.site-header.on-hero .theme-toggle:hover{background:rgba(255,255,255,.14)}
.site-header{transition:border-color .2s,background-color .25s}

@media (max-width:900px){.cs-hero-full .hf-media.fit img{position:relative;z-index:1}}

/* case hero v13: right side curve shallower */
.cs-hero-full::before{height:22px}
@media (max-width:900px){.cs-hero-full::before{height:12px}}

/* case hero v14: straight bottom edge again */
.cs-hero-full::before{display:none}

/* case hero v15: the moving cover runs below the hero edge, so its bob never opens a gap at the bottom */
.cs-hero-full .hf-media.fit img{height:calc(100% + 32px);bottom:-24px}

/* case hero, photo covers (Web Terminal): blurred dark photo, a slow light sweep, and one sharp glass panel that rises in and breathes */
.cs-hero-full .hf-media.photo>img{filter:blur(14px) brightness(.42) saturate(1.15);transform:scale(1.12)!important;animation:hf-pan 26s ease-in-out infinite alternate}
@keyframes hf-pan{from{translate:-1.5% 0}to{translate:1.5% -1%}}
.cs-hero-full .hf-media.photo .hf-bg{background:radial-gradient(40% 60% at 30% 40%,rgba(120,140,255,.16),transparent 70%),radial-gradient(35% 55% at 75% 60%,rgba(255,255,255,.08),transparent 70%);background-size:200% 200%;animation:hf-drift 18s ease-in-out infinite}
.cs-hero-full:has(.hf-media.photo)::after{background:linear-gradient(90deg,rgba(10,10,14,.55) 0%,rgba(10,10,14,.15) 50%,rgba(10,10,14,0) 70%)}
.cs-hero-full .hf-glass{position:absolute;right:max(24px,calc((100vw - 1192px)/2));top:50%;width:min(46vw,620px);aspect-ratio:16/10;margin-top:calc(min(46vw,620px) * -0.3125);border-radius:18px;overflow:hidden;
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.18);box-shadow:0 30px 80px rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.2);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  animation:hf-rise 1s cubic-bezier(.2,.7,.2,1) both,hf-bob 7s ease-in-out 1.1s infinite}
.cs-hero-full .hf-glass img{position:absolute;width:170%;max-width:none;height:auto;left:-51%;top:-3%;opacity:1!important;transform:none!important}
.cs-hero-full .hf-glass::after{content:"";position:absolute;inset:0;background:linear-gradient(115deg,transparent 30%,rgba(255,255,255,.14) 45%,transparent 60%);background-size:250% 100%;animation:hf-sheen 7s ease-in-out 1.2s infinite}
@keyframes hf-sheen{0%{background-position:120% 0}60%,100%{background-position:-120% 0}}
@media (max-width:900px){.cs-hero-full .hf-media.photo{position:relative;aspect-ratio:16/10;overflow:hidden}.cs-hero-full .hf-media.photo>img{filter:none;transform:none!important;animation:none}.cs-hero-full .hf-glass,.cs-hero-full .hf-media.photo .hf-bg{display:none}}
@media (prefers-reduced-motion:reduce){.cs-hero-full .hf-media.photo>img,.cs-hero-full .hf-glass,.cs-hero-full .hf-glass::after,.cs-hero-full .hf-media.photo .hf-bg{animation:none}}

/* Web Terminal: looping background video over the blurred photo, shown once it has loaded */
.cs-hero-full .hf-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity 1.2s ease;filter:brightness(.8)}
.cs-hero-full .hf-video.on{opacity:1}
@media (max-width:900px){.cs-hero-full .hf-video{display:none}}
@media (prefers-reduced-motion:reduce){.cs-hero-full .hf-video{display:none}}

/* Web Terminal hero: two of the real screen recordings float on the blurred photo, front one sharp, back one smaller */
.cs-hero-full .hf-vid{position:absolute;top:50%;aspect-ratio:3/4;border-radius:18px;overflow:hidden;background:#111;box-shadow:0 30px 80px rgba(0,0,0,.55),0 0 0 1px rgba(255,255,255,.12)}
.cs-hero-full .hf-vid video{display:block;width:100%;height:100%;object-fit:cover}
.cs-hero-full .hf-vid.v0{right:max(24px,calc((100vw - 1192px)/2));height:84%;translate:0 -50%;z-index:2;animation:hf-rise2 1s cubic-bezier(.2,.7,.2,1) both,hf-bob2 7s ease-in-out 1.1s infinite}
.cs-hero-full .hf-vid.v1{right:calc(max(24px,(100vw - 1192px)/2) + 250px);height:66%;translate:0 -42%;rotate:-4deg;opacity:.75;filter:saturate(.9);animation:hf-rise3 1.1s cubic-bezier(.2,.7,.2,1) .12s both,hf-bob3 8s ease-in-out 1.3s infinite}
@keyframes hf-rise2{from{translate:0 -38%;opacity:.3}to{translate:0 -50%;opacity:1}}
@keyframes hf-bob2{0%,100%{translate:0 -50%}50%{translate:0 calc(-50% - 8px)}}
@keyframes hf-rise3{from{translate:0 -30%;opacity:0}to{translate:0 -42%;opacity:.75}}
@keyframes hf-bob3{0%,100%{translate:0 -42%}50%{translate:0 calc(-42% - 6px)}}
@media (max-width:900px){.cs-hero-full .hf-vid{display:none}}
@media (prefers-reduced-motion:reduce){.cs-hero-full .hf-vid{animation:none}}

.cs-hero-full .hf-vid{top:calc(50% + 34px)}
.cs-hero-full .hf-vid.v0{height:76%}
.cs-hero-full .hf-vid.v1{height:60%}

/* front clip cropped to the chart only (drops the app tabs at the top) */
.cs-hero-full .hf-vid.v0{aspect-ratio:870/1093}
.cs-hero-full .hf-vid.v0 video{width:103.45%;height:auto;max-width:none;margin:-10.57% 0 0 -1.72%;object-fit:fill}

/* front clip: crop to the inner chart panel only, so no frame or corners of the recording show */
.cs-hero-full .hf-vid.v0{aspect-ratio:846/1098;background:#161616}
.cs-hero-full .hf-vid.v0 video{width:106.38%;margin:-9.46% 0 0 -3.19%}

.cs-hero-full .hf-vid.v1{aspect-ratio:846/1098;background:#161616}
.cs-hero-full .hf-vid.v1 video{width:106.38%;height:auto;max-width:none;margin:-9.46% 0 0 -3.19%;object-fit:fill}

.cs-hero-full .hf-vid{border-radius:10px}

/* one vertical rhythm on case pages (desktop): text and front clip end 64px above the hero edge, 64px hero to cards, 64px cards to divider */
@media (min-width:901px){
  .cs-hero-full .hf-text{bottom:64px}
  .cs-hero-full .hf-vid{top:auto;translate:none}
  .cs-hero-full .hf-vid.v0{bottom:61px;height:74%;animation:hf-rise4 1s cubic-bezier(.2,.7,.2,1) both,hf-bob4 7s ease-in-out 1.1s infinite}
  .cs-hero-full .hf-vid.v1{bottom:110px;height:58%;filter:opacity(.75) saturate(.9);animation:hf-rise5l 1.1s cubic-bezier(.2,.7,.2,1) .12s both,hf-bob4 8s ease-in-out 1.3s infinite}
  .cs-sum{margin-top:8px}
  .cs-wide .cs-body{margin-top:64px}
}
@keyframes hf-rise4{from{translate:0 40px;opacity:.3}to{translate:0 0;opacity:1}}
@keyframes hf-rise5{from{translate:0 40px;opacity:0}to{translate:0 0;opacity:.75}}
@keyframes hf-bob4{0%,100%{translate:0 0}50%{translate:0 -6px}}
@media (prefers-reduced-motion:reduce){.cs-hero-full .hf-vid.v0,.cs-hero-full .hf-vid.v1{animation:none}}

/* Leaf: background drawn in code that follows the theme, transparent MacBook shot on top (home tile and case hero) */
:root{--leaf-a:#eceef0;--leaf-b:#d9dce0;--leaf-grid:rgba(30,40,50,.07);--leaf-ink:#33363d;--leaf-ink-soft:rgba(51,54,61,.72)}
[data-theme=dark]{--leaf-a:#1a5876;--leaf-b:#0e344a;--leaf-grid:rgba(255,255,255,.05);--leaf-ink:#fff;--leaf-ink-soft:rgba(255,255,255,.82)}
.pc-media.code-leaf{background:linear-gradient(var(--leaf-grid) 1px,transparent 1px) 0 0/48px 48px,linear-gradient(90deg,var(--leaf-grid) 1px,transparent 1px) 0 0/48px 48px,linear-gradient(170deg,var(--leaf-a),var(--leaf-b));color:var(--leaf-ink)}
.pc-media.code-leaf img{inset:auto 0 0 0;top:auto;width:100%;height:auto;object-fit:contain;transform-origin:50% 100%}
.pc-media.code-leaf::after{display:none}
.pc-media.code-leaf .pc-title{text-shadow:none}
.pc-media.code-leaf .go{background:color-mix(in srgb,var(--leaf-ink) 12%,transparent);color:var(--leaf-ink)}
/* ===== Leaf case heroes (order creation, carrier app) =====
   Static gradient; the grid is drawn on canvas.hf-grid by assets/grid-field.js and bends only under the cursor;
   the device is static apart from the one-time rise on load. Layers: canvas 1, device 2, text above.
   No moving light, glow, sheen or aurora: a background layer for these heroes is still being chosen. */
.cs-hero-full.code-leaf{--hc:var(--leaf-b);color:var(--leaf-ink)}
.cs-hero-full.code-leaf::after{display:none}
.cs-hero-full.code-leaf .eyebrow{color:var(--leaf-ink-soft)}
.cs-hero-full.code-leaf h1{color:var(--leaf-ink)}
.cs-hero-full.code-leaf .sub{color:var(--leaf-ink-soft)}
.cs-hero-full.code-leaf .hf-text{z-index:3}
.cs-hero-full .hf-media.code{position:absolute;inset:0;background:linear-gradient(170deg,var(--leaf-a),var(--leaf-b))}
.cs-hero-full .hf-media.code .hf-bg{display:none}
.cs-hero-full .hf-media.code .hf-grid{position:absolute;inset:0;z-index:1;width:100%;height:100%;pointer-events:none}
.cs-hero-full .hf-media.code img{position:absolute;z-index:2;object-fit:contain;opacity:1!important;transform:none!important;translate:none;animation:hf-rise4 1s cubic-bezier(.2,.7,.2,1) both}
@media (min-width:901px){
  .cs-hero-full.code-leaf:not(.corner) .hf-media.code img{right:max(0px,calc((100vw - 1340px)/2));bottom:-3%;height:94%;width:auto;max-width:none;object-position:100% 100%}
  .cs-hero-full.corner .hf-media.code img{left:auto;right:0;top:24%;bottom:auto;height:auto;width:min(46vw,720px);max-width:none}
}
.cs-hero-full.corner .hf-media.code img{filter:drop-shadow(0 30px 60px rgba(8,30,44,.3))}
/* light: soft MacBook shot, layered shadow under the white monitor, dark text and header on the light gradient */
@media (prefers-reduced-motion:reduce){.cs-hero-full .hf-media.code img{animation:none}}
@media (max-width:900px){.cs-hero-full .hf-media.code{position:relative;inset:auto;order:2;aspect-ratio:16/11}.cs-hero-full .hf-media.code img{right:0;left:0;margin:auto;bottom:0;height:100%;max-width:none;animation:none}}

.pc-media.code-leaf img{inset:auto;left:5%;top:12%;bottom:auto;width:90%;height:auto}


.pc-media.code-leaf img{left:-4%;top:22%;width:108%}

.pc-media.code-leaf::after{display:block;background:linear-gradient(180deg,transparent 55%,color-mix(in srgb,var(--leaf-b) 85%,transparent) 82%,var(--leaf-b) 100%)!important}

.pc-media.code-leaf img{left:16%;top:20%;width:100%}
.pc-media.code-leaf::after{background:linear-gradient(180deg,transparent 70%,color-mix(in srgb,var(--leaf-b) 55%,transparent) 100%)!important}

.pc-media.code-leaf img{left:12%;top:18%;width:130%;max-width:none}


.cs-hero-full{-webkit-user-select:none;user-select:none}

/* Leaf Carrier app: a monitor corner on the same code grid, bleeding off right and bottom */
.pc-media.code-leaf.corner img{inset:auto;left:36%;top:23%;bottom:auto;width:68%;height:auto;max-width:none;filter:drop-shadow(0 24px 40px rgba(8,30,44,.28))}
@media (max-width:900px){.cs-hero-full.corner .hf-media.code img{left:14%;right:auto;top:12%;margin:0;height:auto;width:100%}}

/* Carrier tile: monitor starts as far below the arrow as the arrow is from the top (16 + 40 + 16) */
.pc-media.code-leaf.corner img{top:112px!important;left:36%!important;width:68%!important}

.pc-media.code-leaf:not(.corner) img{top:54px!important;width:122%!important;left:17%!important}

/* light: softer device shadows and no bottom fade on Leaf */
html:not([data-theme=dark]) .pc-media.code-leaf::after{display:none!important}
html:not([data-theme=dark]) .pc-media.code-leaf:not(.corner) img{content:url(img/site-thumb/leaf-macbook-soft.webp)}
html:not([data-theme=dark]) .pc-media.code-leaf.corner img{filter:drop-shadow(0 16px 28px rgba(20,50,90,.10))}
.site-header.on-hero .brand:hover .face rect{fill:#fff!important;stroke:#fff!important}
.site-header.on-hero .brand:hover .face g{stroke:#16161c!important}
.site-header.on-hero .brand:hover .word{color:#fff}
html:not([data-theme=dark]) .pc-media.code-leaf{--leaf-a:#e2e5e9;--leaf-b:#cdd2d8;--leaf-grid:rgba(30,40,50,.08)}
.pc-media.code-leaf{background-position:-19px -15px,-19px -15px,0 0!important}


@keyframes hf-rise5l{from{translate:0 40px;opacity:0}to{translate:0 0;opacity:1}}
/* TR tiles: Figma compositions fill the tile exactly */
a.pcard[href*="work/tr-"] .pc-media img{inset:0!important;top:0!important;bottom:auto!important;left:0!important;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover!important;object-position:50% 50%!important}
a.pcard[href*="work/tr-"] .pc-media{background:#1c1d22!important}
/* TR tiles in dark mode: light versions from Figma, dark text */
[data-theme=dark] a.pcard[href*="work/tr-joint"] .pc-media img{content:url(img/site-thumb/tr-joint-account-light-card2.jpg)}
[data-theme=dark] a.pcard[href*="work/tr-web"] .pc-media img{content:url(img/site-thumb/tr-web-terminal-light.jpg?v=2)}
[data-theme=dark] a.pcard[href*="work/tr-"] .pc-media{background:#f1f1f4!important;color:#16161c}
[data-theme=dark] a.pcard[href*="work/tr-"] .pc-media::after{display:none}
[data-theme=dark] a.pcard[href*="work/tr-"] .pc-title{color:#16161c;text-shadow:none}
[data-theme=dark] a.pcard[href*="work/tr-"] .pc-media small{color:#16161c}
[data-theme=dark] a.pcard[href*="work/tr-"] .pc-media .go{background:rgba(22,22,28,.08);color:#16161c}

/* Trade Republic heroes follow the home tiles: dark in light mode, light in dark mode, with a live price line */
.cs-hero-full.tr{--trh-a:#1f2026;--trh-b:#141418;background:linear-gradient(170deg,var(--trh-a),var(--trh-b))!important}
.cs-hero-full.tr::after{background:none!important}
.cs-hero-full.tr .hf-media.photo>img,.cs-hero-full.tr .hf-media .hf-bg{display:none!important}
.cs-hero-full.tr .tr-line{position:absolute;inset:0;z-index:0;pointer-events:none}
.cs-hero-full.tr .hf-media>img,.cs-hero-full.tr .hf-vid{z-index:1}
.cs-hero-full.tr .hf-vid.v0{z-index:2}
@media (min-width:901px){.cs-hero-full.tr .hf-media.fit>img{right:calc(max(24px,(100vw - 1192px)/2) - 24px)!important;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 28%,#000 88%,transparent 100%)!important;mask-image:linear-gradient(90deg,transparent 0,#000 28%,#000 88%,transparent 100%)!important}}
/* light mode TR heroes: dark text and header on the light gradient (every width) */
/* Carrier app tile: monitor a bit smaller */
.pc-media.code-leaf.corner img{top:120px!important;left:40%!important;width:60%!important}
.cs-hero-full.tr .hf-media{background:none!important}
/* Home: Leaf tiles teal in both themes */
html .pc-media.code-leaf{--leaf-a:#1a5876!important;--leaf-b:#0e344a!important;--leaf-grid:rgba(255,255,255,.05)!important;--leaf-ink:#fff!important;--leaf-ink-soft:rgba(255,255,255,.82)!important}
/* Carrier tile: shadow and a soft teal fade over the white monitor */
html .pc-media.code-leaf.corner img{filter:drop-shadow(-10px 14px 28px rgba(3,18,28,.22))!important}
html .pc-media.code-leaf.corner::after{display:block!important;z-index:0;background:linear-gradient(180deg,rgba(14,52,74,0) 70%,rgba(14,52,74,.18) 100%)!important}
html .pc-media.code-leaf.corner small,html .pc-media.code-leaf.corner .pc-title{position:relative;z-index:1}
html .pc-media.code-leaf.corner .go{z-index:1}
/* tiles: no light fringe in the rounded corners; keep filtered images inside the radius (Safari) */
a.pcard:has(.code-leaf),a.pcard[href*="work/tr-"]{background:transparent}
.pc-media.code-leaf{clip-path:inset(0 round var(--radius));isolation:isolate}
/* TR hero ticker tape */
.cs-hero-full.tr .tr-ticker{position:absolute;left:0;right:0;bottom:22px;z-index:0;pointer-events:none;display:grid;gap:10px;-webkit-mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent);mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent)}
.cs-hero-full.tr .tk-row{overflow:hidden;white-space:nowrap}
.cs-hero-full.tr .tk-track{display:inline-flex;gap:44px;padding-right:44px;animation:tk-move 90s linear infinite}
.cs-hero-full.tr .tk-row.r2 .tk-track{animation-duration:120s;animation-direction:reverse}
@keyframes tk-move{from{transform:translateX(0)}to{transform:translateX(-50%)}}
.cs-hero-full.tr .tk{display:inline-flex;gap:10px;font:500 12px/1 var(--mono);letter-spacing:.06em;text-transform:uppercase;color:rgba(255,255,255,.22)}
.cs-hero-full.tr .tk b{font-weight:500}
.cs-hero-full.tr .tk i{font-style:normal}
.cs-hero-full.tr .tk i.up{color:rgba(52,199,89,.55)}
.cs-hero-full.tr .tk i.dn{color:rgba(255,69,58,.5)}
@media (prefers-reduced-motion:reduce){.cs-hero-full.tr .tk-track{animation:none}}
@media (max-width:900px){.cs-hero-full.tr .tr-ticker{display:none}}
@media (min-width:901px){.cs-hero-full.tr .hf-text{translate:0 -34px}.cs-hero-full.tr .tr-ticker{bottom:14px;gap:9px}}
/* TR hero: back to the price line (ticker off) */
.cs-hero-full.tr .tr-ticker{display:none!important}
@media (min-width:901px){.cs-hero-full.tr .hf-text{translate:none}}
@media (min-width:821px){main > .hero .intro{max-width:600px}}

/* in-text videos: shown near their real size so they stay sharp */
.cs-features video,.cs video:not(.hf-vid video){max-width:340px!important;width:100%!important;margin-inline:auto}
.cs-features .feat-media{padding:32px!important}
.cs-hero-full.tr .tr-line{animation:trl-in 1.2s ease .2s both}
@keyframes trl-in{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){.cs-hero-full.tr .tr-line{animation:none}}
/* summary cards: a touch more contrast in light, a touch lighter in dark */
.cs-sum-item{background:#f5f5f7!important}
[data-theme=dark] .cs-sum-item{background:#1a1a21!important}
/* TR joint hero: transparent hand from Figma, so the price line runs behind it */
.cs-hero-full.tr .hf-media.fit>img,html:not([data-theme=dark]) .cs-hero-full.tr .hf-media.fit>img{content:url(img/site-thumb/tr-hand.webp);-webkit-mask-image:none!important;mask-image:none!important}
/* LOX hero: three real phones, straight and aligned */
.cs-hero-full .hf-media.phones>img{display:none}
.cs-hero-full .hf-phones{position:absolute;right:max(24px,calc((100vw - 1192px)/2));bottom:-14%;height:96%;display:flex;align-items:flex-end;gap:22px;z-index:1}
.cs-hero-full .hf-phones .ph{margin:0;position:relative;height:100%;aspect-ratio:1108/2400;padding:9px;border-radius:44px;background:#0d0d10;box-shadow:inset 0 0 0 1.5px #2b2b30,0 30px 60px rgba(8,16,60,.35),0 6px 14px rgba(8,16,60,.2)}
.cs-hero-full .hf-phones .ph::before{content:"";position:absolute;top:18px;left:50%;width:28%;height:20px;margin-left:-14%;border-radius:12px;background:#0d0d10;z-index:2}
.cs-hero-full .hf-phones .ph img{display:block;width:100%;height:100%;object-fit:cover;object-position:top;border-radius:35px;opacity:1!important;transform:none!important;position:static!important;-webkit-mask-image:none!important;mask-image:none!important;animation:none!important}
.cs-hero-full .hf-phones .ph0,.cs-hero-full .hf-phones .ph2{height:86%;margin-bottom:6%}
.cs-hero-full .hf-phones{animation:hf-rise 1s cubic-bezier(.2,.7,.2,1) both}
@media (max-width:900px){.cs-hero-full .hf-phones{position:relative;right:auto;bottom:auto;height:420px;justify-content:center;gap:12px;margin:24px auto -60px}.cs-hero-full .hf-phones .ph{border-radius:30px;padding:6px}.cs-hero-full .hf-phones .ph img{border-radius:25px}.cs-hero-full .hf-phones .ph::before{top:12px;height:14px}}
@media (prefers-reduced-motion:reduce){.cs-hero-full .hf-phones{animation:none}}
.cs-hero-full .hf-phones{height:82%;bottom:-10%;gap:0}
.cs-hero-full .hf-phones .ph1{z-index:2}
.cs-hero-full .hf-phones .ph0{margin-right:-44px;z-index:1}
.cs-hero-full .hf-phones .ph2{margin-left:-44px;z-index:1}
.cs-hero-full .hf-phones .ph0,.cs-hero-full .hf-phones .ph2{height:84%;margin-bottom:4%;filter:brightness(.96)}
/* LOX phones: same height, same baseline, stacked left over right (left most visible) */
.cs-hero-full .hf-phones{gap:0;height:78%;bottom:-8%}
.cs-hero-full .hf-phones .ph0,.cs-hero-full .hf-phones .ph1,.cs-hero-full .hf-phones .ph2{height:100%;margin:0;filter:none}
.cs-hero-full .hf-phones .ph0{z-index:3}
.cs-hero-full .hf-phones .ph1{z-index:2;margin-left:-70px}
.cs-hero-full .hf-phones .ph2{z-index:1;margin-left:-70px}
/* LOX: a single phone */
.cs-hero-full .hf-phones .ph1,.cs-hero-full .hf-phones .ph2{display:none}
.cs-hero-full .hf-phones{height:86%;bottom:-10%;right:calc(max(24px,(100vw - 1192px)/2) + 60px)}
@media (min-width:901px){.cs-hero-full.tr .hf-media.fit>img{height:calc(100% - 40px)!important;bottom:-24px!important}}
@media (min-width:901px){.cs-hero-full.tr .hf-media.fit>img{height:122%!important;bottom:-14%!important;right:calc(max(24px,(100vw - 1192px)/2) - 34px)!important;margin-right:0!important}}

/* ===== Hero buttons: Get in touch + Download CV (Home hero and About) ===== */
.hero-cta.hb-pair{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.hb{--hb-ease:cubic-bezier(.2,.7,.2,1);position:relative;isolation:isolate;display:inline-flex;align-items:center;gap:8px;height:48px;padding:0 22px;border-radius:999px;overflow:hidden;font:600 16px/1 var(--body);text-decoration:none;white-space:nowrap;transition:color .3s ease,border-color .3s ease,transform .15s ease;-webkit-tap-highlight-color:transparent}
.hb:active{transform:scale(.98)}
@media (max-width:420px){.hb{padding:0 18px}}
.hb-label{display:block;height:1.25em;line-height:1.25;overflow:hidden}
.hb-roll{display:block;position:relative;transition:transform .42s var(--hb-ease)}
.hb-roll::after{content:attr(data-text);position:absolute;left:0;top:100%}
.hb:hover .hb-roll,.hb:focus-visible .hb-roll{transform:translateY(-100%)}
.hb-ico{display:block;width:17px;height:17px;overflow:hidden;flex:none}
.hb-ico svg{display:block;width:17px;height:17px}
/* Get in touch: the violet gradient and the light fill are separate layers, so no violet rim shows at the rounded edge */
.hb-touch{color:#fff}
.hb-bg,.hb-touch::before{position:absolute;inset:0;border-radius:inherit;z-index:-1;transition:opacity .35s ease}
.hb-touch::before{content:"";background:#fff;opacity:0}
.hb-bg{background:linear-gradient(90deg,#4a5cff,#8a4dff);opacity:1;z-index:-1}
:root:not([data-theme=dark]) .hb-touch::before{background:#ecebf4}
.hb-touch:hover,.hb-touch:focus-visible{color:#5b3df5}
.hb-touch:hover .hb-bg,.hb-touch:focus-visible .hb-bg{opacity:0}
.hb-touch:hover::before,.hb-touch:focus-visible::before{opacity:1}
.hb-touch:hover .hb-ico svg,.hb-touch:focus-visible .hb-ico svg{animation:hb-arrow .5s var(--hb-ease)}
@keyframes hb-arrow{0%{transform:none}45%{transform:translateX(130%)}46%{transform:translateX(-130%)}100%{transform:none}}
/* Download CV: outlined; the arrow drops out and comes back in from the top */
.hb-cv{color:var(--fg);border:1.5px solid var(--line);background:transparent}
.hb-cv:hover,.hb-cv:focus-visible{color:var(--accent);border-color:var(--accent)}
/* About CV button: "Download CV" in the link color, ".pdf" grey; a real copy rolls in, so the grey survives the hover */
.hb-roll2::after{content:none}
.hb-roll2 .hb-dup{position:absolute;left:0;top:100%;white-space:nowrap}
.hb-cv .hb-ext{color:var(--muted);transition:color .2s}
.hb-cv:hover .hb-ext,.hb-cv:focus-visible .hb-ext{color:inherit}
.hb-cv:hover .hb-ico svg,.hb-cv:focus-visible .hb-ico svg{animation:hb-drop .5s var(--hb-ease)}
@keyframes hb-drop{0%{transform:none}45%{transform:translateY(130%)}46%{transform:translateY(-130%)}100%{transform:none}}
@media (prefers-reduced-motion:reduce){
  .hb-roll,.hb:hover .hb-roll,.hb:focus-visible .hb-roll{transition:none;transform:none}
  .hb:hover .hb-ico svg,.hb:focus-visible .hb-ico svg{animation:none}
  .hb:active{transform:none}
}

/* ===== Images in case studies =====
   Every image starts at the left edge of the text, captions left aligned.
   --ar (width / height) is written by the build, so sizes are right before the image loads. */
.cs-wide .cs-main figure img{margin-left:0;margin-right:auto}
.cs figcaption,.cs-wide figcaption,.cs-wide figure.phone figcaption,.live-ui figcaption{text-align:left}
/* portrait and square: at most min(68svh,600px) tall, width follows */
.cs-wide .cs-main figure:is(.portrait,.square) img{width:min(100%,calc(min(68svh,600px) * var(--ar,.75)));max-width:100%;height:auto;max-height:none}
/* wide images on their own: at most 640px wide */
.cs-wide .cs-main .part.one figure.landscape img{width:100%;max-width:640px}

/* ===== Case study hero on mobile (up to 900px) =====
   The cover colour runs up behind the transparent header, text sits on the colour,
   the cover image comes last, whole, with a soft fade at its top edge. */
@media (max-width:900px){
  .cs-hero-full{position:relative;overflow:hidden;height:auto;min-height:0;max-height:none;justify-content:flex-start;background:var(--hc,#16161c);color:#fff}
  .cs-hero-full .hf-text{position:relative;inset:auto;translate:none;z-index:2;order:1;padding-top:32px;padding-bottom:28px}
  .cs-hero-full .eyebrow{color:rgba(255,255,255,.8)}
  .cs-hero-full h1{color:#fff}
  .cs-hero-full .sub{color:rgba(255,255,255,.82)}
  .cs-hero-full .hf-media{order:2;position:relative;inset:auto;aspect-ratio:auto;background:none}
  .cs-hero-full .hf-media .hf-bg{display:none}
  /* fitted covers (LOX, Product cell, Joint account) */
  .cs-hero-full .hf-media.fit>img{position:relative;display:block;width:100%;height:auto;max-height:none;object-fit:contain;
    -webkit-mask-image:linear-gradient(180deg,transparent 0,#000 22%);mask-image:linear-gradient(180deg,transparent 0,#000 22%);animation:none}
  /* LOX: the phone scaled up and anchored right */
  .cs-hero-full .hf-media.phones .hf-phones{position:relative;right:auto;bottom:auto;height:auto;display:flex;justify-content:flex-end;margin:8px -8% -22% 0;animation:none}
  .cs-hero-full .hf-media.phones .hf-phones .ph0{height:auto;width:68%;aspect-ratio:1108/2400;margin:0}
  .cs-hero-full .hf-media.phones{-webkit-mask-image:linear-gradient(180deg,transparent 0,#000 16%);mask-image:linear-gradient(180deg,transparent 0,#000 16%)}
  /* Product cell: portrait cover at 72% width, centred, soft radial edge */
  .cs-hero-full .hf-media.fit>img[src*="choco-product-cell"]{width:72%;margin:0 auto;
    -webkit-mask-image:radial-gradient(ellipse 50% 50% at 50% 50%,#000 62%,transparent 100%);mask-image:radial-gradient(ellipse 50% 50% at 50% 50%,#000 62%,transparent 100%)}
  /* Web Terminal: the product shot instead of the office photo */
  .cs-hero-full .hf-media.photo{aspect-ratio:auto;overflow:visible}
  .cs-hero-full .hf-media.photo>img:not(.hf-shot),.cs-hero-full .hf-media.photo .hf-glass{display:none}
  .cs-hero-full .hf-media.photo>img.hf-shot{display:block!important;position:relative;width:100%;height:auto;filter:none;transform:none!important;animation:none;
    -webkit-mask-image:linear-gradient(180deg,transparent 0,#000 22%);mask-image:linear-gradient(180deg,transparent 0,#000 22%)}
  /* Trade Republic: no price line behind the text on small screens */
  .cs-hero-full.tr .tr-line{display:none}
  /* Leaf: gradient and bending grid fill the whole hero; the screen sits whole at the bottom */
  .cs-hero-full:has(.hf-media.code){--leaf-shot:62vw;padding-bottom:var(--leaf-shot)!important}
  .cs-hero-full .hf-media.code{position:absolute;inset:0;order:0;aspect-ratio:auto;z-index:0}
  .cs-hero-full .hf-media.code .hf-grid{position:absolute;inset:0}
  .cs-hero-full .hf-media.code img{top:auto;bottom:0;left:0;right:0;margin:0 auto;height:var(--leaf-shot);width:auto;max-width:100%;object-fit:contain;
    -webkit-mask-image:linear-gradient(180deg,transparent 0,#000 18%);mask-image:linear-gradient(180deg,transparent 0,#000 18%)}
  .cs-hero-full.corner .hf-media.code img{left:12%;right:auto;top:auto;bottom:0;margin:0;height:var(--leaf-shot);width:auto;max-width:none}
}
.cs-hero-full .hf-shot{display:none}

/* ===== Mobile menu (up to 760px) ===== */
.menu-btn,.drawer{display:none}
@media (max-width:760px){
  .wrap.nav{grid-template-columns:1fr auto;column-gap:12px;padding-inline:16px}
  .nav>nav,.nav-actions .theme-toggle{display:none}
  .nav .brand{gap:10px}
  .nav .brand .mark,.nav .brand .mark{width:38px;height:38px}
  .nav .brand .word{display:inline;font-size:21px}
  .menu-btn{display:grid;align-content:center;justify-items:center;gap:5px;width:44px;height:44px;margin-right:-10px;padding:0;border:0;border-radius:10px;background:none;color:var(--fg);cursor:pointer}
  .menu-btn span{display:block;width:22px;height:2px;border-radius:2px;background:currentColor}
  .menu-btn:hover{background:var(--soft)}
  .drawer{display:block;position:fixed;inset:0;z-index:100}
  .drawer[hidden]{display:none}
}
html.dr-lock{overscroll-behavior:none}
/* full-screen menu: its top bar repeats the header (logo left, close where the burger is), so opening it reads as the burger turning into a close button */
.dr-scrim{display:none}
.dr-panel{position:absolute;inset:0;display:flex;flex-direction:column;background:var(--bg);color:var(--fg);opacity:0;transition:opacity .22s ease;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y}
.dr-panel>nav,.dr-foot{transform:translateY(10px);transition:transform .32s cubic-bezier(.2,.7,.2,1)}
.drawer.open .dr-panel{opacity:1}
.drawer.open .dr-panel>nav,.drawer.open .dr-foot{transform:none}
.dr-top{width:100%;position:sticky;top:0;z-index:1;background:var(--bg);border-bottom:1px solid transparent}
.dr-close{display:grid;place-items:center;width:44px;height:44px;margin-right:-10px;padding:0;border:0;border-radius:10px;background:none;color:var(--fg);cursor:pointer}
.dr-close svg{width:22px;height:22px}
@media (hover:hover){.dr-close:hover{background:var(--soft)}}
.dr-list{list-style:none;margin:0;padding:8px 8px 0;flex:1}
.dr-list>li{border-bottom:1px solid var(--line)}
.dr-row{display:flex;align-items:center;justify-content:space-between;gap:8px}
.dr-row>a{flex:1;padding:13px 8px;font:500 19px/1.2 var(--body);color:var(--fg);text-decoration:none}
.dr-row>a[aria-current=page]{font-weight:600}
@media (hover:hover){.dr-row>a:hover{color:var(--accent)}}
.dr-chev{display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:10px;background:none;color:var(--muted);cursor:pointer;transition:transform .2s,color .15s}
.dr-chev svg{width:18px;height:18px}
.dr-sec.open .dr-chev{transform:rotate(180deg);color:var(--fg)}
.dr-sub{padding:0 0 12px}
.dr-menu{list-style:none;margin:0;padding:0}
.dr-menu a{display:grid;grid-template-columns:40px minmax(0,1fr);gap:12px;align-items:center;padding:8px;border-radius:10px;color:var(--fg);text-decoration:none}
.dr-menu a:hover,.dr-menu a[aria-current=page]{background:var(--soft)}
.dr-menu a[aria-current=page] b{color:var(--accent)}
.dr-menu .mtile{display:block;width:40px;height:40px;border-radius:9px;overflow:hidden;background:var(--soft)}
.dr-menu .mtile img{display:block;width:40px;height:40px}
.dr-menu .mtile img.fit{object-fit:contain}
.dr-menu .mtile img.crop{object-fit:cover}
.dr-menu .txt{display:flex;flex-direction:column;gap:2px;min-width:0}
.dr-menu small{font-size:12px;line-height:1.3;color:var(--muted)}
.dr-menu b{font-size:14.5px;line-height:1.3;font-weight:500}
.dr-all{display:block;margin-top:4px;padding:10px 8px;font-size:15px;font-weight:500;color:var(--muted);text-decoration:none}
.dr-all:hover{color:var(--accent)}
.dr-item{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:13px 8px;border:0;background:none;color:var(--fg);font:500 19px/1.2 var(--body);text-align:left;text-decoration:none;cursor:pointer}
@media (hover:hover){.dr-item:hover{color:var(--accent)}}
.dr-ico{display:grid;place-items:center;width:44px;height:24px;color:var(--muted)}
.dr-ico svg{width:20px;height:20px}
/* the label and icon say what the tap will do */
.dr-theme .to-light,.dr-theme .sun,[data-theme=dark] .dr-theme .to-dark,[data-theme=dark] .dr-theme .moon{display:none}
[data-theme=dark] .dr-theme .to-light{display:inline}
[data-theme=dark] .dr-theme .sun{display:block}
.dr-panel>nav{flex:1 0 auto}
.dr-foot{display:flex;gap:20px;padding:24px 16px calc(20px + env(safe-area-inset-bottom))}
.dr-foot a{font-size:14px;color:var(--muted);text-decoration:none}
.dr-foot a:hover,.dr-foot a[aria-current=page]{color:var(--fg)}
@media (prefers-reduced-motion:reduce){.dr-panel,.dr-panel>nav,.dr-foot,.dr-chev{transition:none}}

/* ===== Mobile type (up to 760px): body text and headings about 10% larger =====
   :root:root lifts these above the desktop rules; :where() keeps them equal among themselves, so order decides. */
@media (max-width:760px){
  /* 15px text: lists, roles, small paragraphs */
  :root:root main :where(div>p:not(.eyebrow),ul>li,li>a,li>b,p>a,.btn>span,.timeline p){font-size:16.5px}
  /* 14px text: captions, labels */
  :root:root main :where(figcaption,.field>label,.contact-form label,.quotes-src a,.toc-top>span){font-size:15.5px}
  :root:root main :where(.nr>b,.nr>span,.rv>.when,.ctime>span){font-size:14.3px}
  /* 16px body text */
  :root:root main :where(.cs>p,.cs li>p,.cs ul>li,.cs ol>li,.cs p>em,.cs p>strong,p.sub,p.intro,p.intro>b,.blk-t>p,figure.quote>blockquote,.pp-d,.cmain,.cs-side-tip){font-size:17.5px}
  :root:root main .cs :where(ul.sk-list>li){font-size:16.5px}
  /* 17px lead text */
  :root:root main :where(.about-text>p,.outside-text>p,.hero-cta .text-link){font-size:18.5px}
  /* headings */
  :root:root main :where(h3,h3>a,.sk-label,.part.sub h3){font-size:22px}
  :root:root main :where(blockquote.rv>p,.pc-media>.pc-title){font-size:26.5px}
  :root:root main :where(.part>h2,.pp-t){font-size:28.5px}
  :root:root main .cs>h2{font-size:31px}
  :root:root main :where(section.wrap>h2,.outside-text>h2,.section h2){font-size:33px}
  :root:root main :where(h1,h1>.grad,.hero h1,.cs-hero h1){font-size:40px}
  :root:root main :where(.hf-text>h1){font-size:44px}
  :root:root :where(.footer h2,.footer h2>a){font-size:40px}
  :root:root :where(.footer .links>a){font-size:15.5px}
  :root:root .cs-wide .cs-main .part.sub h3{font-size:22px}
  :root:root .footer .foot-top .links a{font-size:15.5px}
  :root:root :where(.footer .foot-bottom span){font-size:14.3px}
}
/* right-hand icons (chevrons, theme, download) share one column with the close button above */
.dr-chev{margin-right:-2px}
.dr-item{padding-right:0}
.dr-item .dr-ico{margin-right:-2px}
.dr-close svg,.dr-chev svg,.dr-ico svg{width:20px;height:20px}
/* text and dividers start on the logo's left edge (16px); icons stay centred under the close button */
.dr-list{padding:8px 16px 0}
.dr-row>a,.dr-item{padding-left:0;padding-right:0}
.dr-chev,.dr-item .dr-ico{margin-right:-10px}
.dr-menu{margin:0 -8px}
.dr-all{padding-left:0;padding-right:0}
/* dividers: from the logo's left edge to the screen's right edge; labels sit 8px further in */
.dr-list{padding:8px 0 0 16px}
.dr-row,.dr-item{padding-right:6px}
.dr-row>a,.dr-item{padding-left:8px}
.dr-chev,.dr-item .dr-ico{margin-right:0}
.dr-menu{margin:0 16px 0 0}
.dr-all{padding-left:8px}
.dr-foot{padding-left:24px}
.dr-row>a,.dr-item{padding-top:18px;padding-bottom:18px}
/* Work and Articles: the whole row opens the list (All work / All articles links sit inside) */
.dr-tog{flex:1;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:18px 0 18px 8px;border:0;background:none;font:500 19px/1.2 var(--body);color:var(--fg);text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent}
.dr-tog .dr-chev{width:44px;height:26px;margin:-4px 0}
@media (hover:hover){.dr-tog:hover>span:first-child{color:var(--accent)}}

/* ===== Quiet footer: name + role left, plain links right ===== */
.footer:not(.compact) .wrap{padding-top:32px;padding-bottom:32px}
.foot-quiet{display:flex;justify-content:space-between;align-items:center;gap:24px 48px;flex-wrap:wrap}
.fq-id{display:flex;flex-direction:column;gap:4px;margin:0}
.fq-id b{font:600 17px/1.3 var(--body)}
.fq-id span{font-size:15px;line-height:1.4;color:#9a9aae}
.fq-links{display:flex;flex-wrap:wrap;gap:12px 28px}
.fq-links a{display:inline-flex;align-items:center;gap:6px;font-size:15px;font-weight:500;color:inherit;text-decoration:none;transition:color .2s}
.fq-links a .ico{width:13px;height:13px;opacity:.55;transition:opacity .2s}
.fq-links a:hover{color:var(--accent)}
.fq-links a:hover .ico{opacity:1}
.fq-links a .fq-ext{margin-left:-6px;opacity:.55;transition:opacity .2s}
.fq-links a:hover .fq-ext{opacity:1}
.footer:not(.compact) .foot-bottom{margin-top:40px}
:root:not([data-theme=dark]) .fq-id span{color:var(--muted)}
@media (max-width:760px){
  .foot-quiet{flex-direction:column;align-items:flex-start;gap:24px}
  .fq-links{flex-direction:column;align-items:flex-start;gap:14px}
  :root:root .fq-links a{font-size:16px}
}
/* footer: the same 32px above the top row, between it and the divider, under the divider and under the bottom row */
.footer:not(.compact) .foot-bottom{margin-top:32px;padding-top:32px}

/* ===== Nov 2026 case order: big first and last tiles, Choco row label, draft placeholders ===== */
.projects>.pc-group{grid-column:1/-1;margin:0 0 -40px;font:500 12px var(--mono);text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}
@media (max-width:820px){.projects>.pc-group{margin-bottom:-16px}}
.pcard.big .pc-media{min-height:460px}
.pcard.big .pc-title{max-width:24ch}
@media (min-width:821px){
  .pcard.big .pc-media.code-leaf:not(.corner) img{top:44px!important;left:42%!important;width:66%!important}
}
@media (max-width:820px){.pcard.big .pc-media{min-height:0}}
/* open items from the drafts stay visible until they are filled */
mark.need{background:color-mix(in srgb,#f5a524 22%,transparent);color:inherit;border:1px dashed color-mix(in srgb,#f5a524 70%,transparent);border-radius:6px;padding:1px 6px;font:500 .82em/1.5 var(--mono);white-space:normal}
mark.need.verify{font-size:.7em;text-transform:uppercase;letter-spacing:.06em;vertical-align:.12em}
.need-box{display:flex;flex-direction:column;gap:6px;margin:24px 0;padding:28px 24px;border:1.5px dashed color-mix(in srgb,#f5a524 70%,transparent);border-radius:var(--radius);background:color-mix(in srgb,#f5a524 8%,transparent)}
.need-box b{font:500 12px var(--mono);text-transform:uppercase;letter-spacing:.08em;color:#c27b00}
[data-theme=dark] .need-box b{color:#f5b54a}
/* Nov 2026 case titles are full sentences: smaller hero type, wider measure, natural wrapping */
.cs-hero-full h1{font-size:clamp(36px,4.2vw,60px);line-height:1;max-width:18ch}
.cs blockquote p+p{margin-top:14px;font:500 15px/1.5 var(--sans,inherit);letter-spacing:0;color:var(--muted)}
:root:root .projects>.pc-group{font-size:12px;line-height:1.5}

/* ===== Read aloud (assets/listen.js) ===== */
.tts-btn{display:inline-flex;align-items:center;gap:10px;margin-top:24px;height:44px;padding:0 18px 0 6px;border-radius:999px;border:1px solid color-mix(in srgb,currentColor 24%,transparent);background:color-mix(in srgb,currentColor 8%,transparent);color:inherit;font:600 15px/1 inherit;cursor:pointer;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);transition:background .2s,border-color .2s}
.tts-btn .tts-ico{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:color-mix(in srgb,currentColor 16%,transparent)}
.tts-btn svg{width:15px;height:15px}
@media (hover:hover){.tts-btn:hover{background:color-mix(in srgb,currentColor 14%,transparent);border-color:color-mix(in srgb,currentColor 36%,transparent)}}
.cs-hero .tts-btn{display:inline-flex}
.tts-bar{position:fixed;left:50%;bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:70;display:flex;align-items:center;gap:2px;width:min(560px,calc(100% - 32px));padding:8px 8px 10px;border-radius:20px;color:var(--fg);background:color-mix(in srgb,var(--bg) 88%,transparent);-webkit-backdrop-filter:blur(18px) saturate(1.4);backdrop-filter:blur(18px) saturate(1.4);border:1px solid var(--line);box-shadow:0 14px 44px rgba(0,0,0,.22);overflow:hidden;transform:translate(-50%,calc(100% + 40px));opacity:0;pointer-events:none;transition:transform .4s cubic-bezier(.2,.7,.2,1),opacity .25s}
.tts-bar.open{transform:translate(-50%,0);opacity:1;pointer-events:auto}
.tts-c{flex:none;width:40px;height:40px;border:0;border-radius:50%;display:grid;place-items:center;background:transparent;color:inherit;cursor:pointer;padding:0}
.tts-c svg{width:20px;height:20px}
.tts-bar .tts-pp{width:44px;height:44px;background:var(--fg);color:var(--bg)}
.tts-bar .tts-pp svg{width:18px;height:18px}
@media (hover:hover){.tts-bar .tts-c:not(.tts-pp):hover{background:color-mix(in srgb,var(--fg) 8%,transparent)}}
.tts-info{flex:1;min-width:0;padding:0 10px}
.tts-info small{display:flex;align-items:center;gap:6px;font:500 11px/1.4 var(--mono);text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}
.tts-info b{display:block;font-size:14px;font-weight:600;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tts-wave{display:inline-flex}.tts-wave svg{width:13px;height:13px}
@keyframes tts-wave{50%{opacity:.3}}
.tts-bar.playing .tts-wave{animation:tts-wave 1.2s ease-in-out infinite;color:var(--accent)}
.tts-rate{flex:none;height:32px;min-width:46px;margin:0 2px;padding:0 10px;border-radius:999px;border:1px solid var(--line);background:transparent;color:inherit;font:600 12px var(--mono);cursor:pointer}
.tts-prog{position:absolute;left:0;right:0;bottom:0;height:3px;background:color-mix(in srgb,var(--fg) 6%,transparent)}
.tts-prog span{display:block;height:100%;background:var(--accent);transform-origin:0 50%;transform:scaleX(0);transition:transform .4s ease}
.tts-on{background:color-mix(in srgb,var(--accent) 10%,transparent);box-shadow:0 0 0 8px color-mix(in srgb,var(--accent) 10%,transparent);border-radius:6px;transition:background .3s,box-shadow .3s}
.cs-hero-full .tts-on{background:rgba(255,255,255,.12);box-shadow:0 0 0 8px rgba(255,255,255,.12)}
::highlight(tts-word){background-color:rgba(123,140,255,.42);color:inherit}
html:not([data-theme=dark]) ::highlight(tts-word){background-color:rgba(61,90,254,.22)}
body.tts-open .cs-side-btn{top:calc(50% - 40px)}
@media (prefers-reduced-motion:reduce){.tts-bar{transition:opacity .2s}.tts-bar.playing .tts-wave{animation:none}}
@media (max-width:420px){.tts-bar{gap:0;padding:6px 6px 9px}.tts-info{padding:0 6px}.tts-rate{min-width:40px;padding:0 6px}}
.cs-hero-full h1::highlight(tts-word),.cs-hero-full .sub::highlight(tts-word){background-color:rgba(255,255,255,.3)}
.tts-bar{background:var(--header-bg);-webkit-backdrop-filter:saturate(180%) blur(14px);backdrop-filter:saturate(180%) blur(14px)}  /* same glass as the sticky header */
.tts-btn .tts-dur{opacity:.66;font-weight:500;padding-left:10px;margin-left:-2px;border-left:1px solid color-mix(in srgb,currentColor 28%,transparent);line-height:16px}

/* ===== Overview band inside the case hero: role / dates / team + one key number per column ===== */
.cs-hero-full{--band:132px}
.cs-hero-full.has-sum{padding-bottom:var(--band)!important}
.cs-hero-full.has-sum .hf-text{bottom:calc(var(--band) + 44px)}
.hf-band{position:absolute;left:0;right:0;bottom:0;z-index:4;height:var(--band);display:flex;align-items:center;color:#fff;
  background:color-mix(in srgb,var(--hc,#0e0e13) 62%,transparent);-webkit-backdrop-filter:blur(16px) saturate(1.3);backdrop-filter:blur(16px) saturate(1.3);
  border-top:1px solid color-mix(in srgb,currentColor 18%,transparent)}
.hb-grid{display:grid;grid-template-columns:minmax(0,1.25fr) repeat(var(--n),minmax(0,1fr));gap:0 40px;align-items:start;width:100%}
.hb-role{display:flex;flex-direction:column;gap:3px;font-size:14px;line-height:1.4}
.hb-role b{font-size:15px;font-weight:600}
.hb-role span{opacity:.75}
.hb-num{display:flex;flex-direction:column;gap:6px;padding-left:24px;border-left:1px solid color-mix(in srgb,currentColor 18%,transparent)}
.hb-num b{font:700 clamp(24px,2.3vw,34px)/1 var(--display);letter-spacing:-.02em;white-space:nowrap}
.hb-num span{font-size:13.5px;line-height:1.4;opacity:.75}
.hb-num mark.need.verify{font-size:10px;vertical-align:.45em;margin-left:4px;letter-spacing:.06em}
.cs-hero-full.code-leaf .hf-band{color:var(--leaf-ink);background:color-mix(in srgb,var(--leaf-b) 70%,transparent)}
.cs-hero-full.tr .hf-band{background:rgba(14,14,19,.62)}
@media (max-width:900px){
  .cs-hero-full.has-sum{padding-bottom:0!important}
  .cs-hero-full.has-sum .hf-text{bottom:auto}
  .hf-band{position:relative;order:1;height:auto;padding:22px 0 26px;background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none}
  .hb-grid{grid-template-columns:1fr 1fr;gap:20px 16px}
  .hb-role{grid-column:1/-1}
  .hb-num{padding-left:14px}
  :root:root .hb-num b{font-size:24px}
  .hb-num span{font-size:12.5px}
}
.cs-hero-full{--band:156px}
.hb-role{font-size:13.5px}
.hb-num b{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;font-size:clamp(22px,2.1vw,30px)}
.hb-num b mark.need.verify{margin-left:0;vertical-align:0}
@media (min-width:901px){.hb-grid{grid-template-columns:minmax(0,1.25fr) repeat(3,minmax(0,1fr))}}  /* same four columns on every case */
.hf-band,.cs-hero-full.code-leaf .hf-band,.cs-hero-full.tr .hf-band,html:not([data-theme=dark]) .cs-hero-full.tr .hf-band{background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none}  /* the band sits on the hero itself, no layer of its own */
/* no line above the band */
.hf-band{border-top:0}
/* pictures stay above the band: the picture area ends where the band starts, the hero background runs through both */
@media (min-width:901px){
  .cs-hero-full.has-sum .hf-media.fit{bottom:var(--band);overflow:hidden;background:transparent}
  .cs-hero-full.has-sum:has(.hf-media.fit){background:var(--hc)}
  .cs-hero-full.has-sum:not(.tr):has(.hf-media.fit){background:linear-gradient(120deg,color-mix(in srgb,var(--hc) 82%,#000),var(--hc),color-mix(in srgb,var(--hc) 82%,#fff),var(--hc),color-mix(in srgb,var(--hc) 82%,#000));background-size:300% 300%;animation:hf-drift 16s ease-in-out infinite}
  .cs-hero-full.has-sum .hf-media.fit .hf-bg{display:none}
}
@media (prefers-reduced-motion:reduce){.cs-hero-full.has-sum{animation:none!important}}
/* role and dates in the hero text; the band carries only the KPIs */
.hf-meta{display:flex;flex-wrap:wrap;gap:2px 10px;margin:18px 0 0;font-size:15px;line-height:1.5;opacity:.85}
.hf-meta b{font-weight:600}
.hf-meta .dot{opacity:.5}
@media (min-width:901px){.hb-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.hb-num:first-child{padding-left:0;border-left:0}
@media (max-width:900px){.hb-grid{grid-template-columns:1fr 1fr}.hb-num:first-child{grid-column:1/-1}.hb-num:nth-child(2){padding-left:0;border-left:0}}
.cs-hero-full{--band:120px}

/* quotes: a reading serif, with a divider above and below */
.cs blockquote{margin:48px 0;padding:36px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font:italic 400 clamp(24px,2.6vw,32px)/1.35 "Iowan Old Style","Charter","Palatino Linotype",Palatino,Georgia,serif;letter-spacing:-.005em}
.cs blockquote p{font:inherit}
.cs blockquote p+p{margin-top:18px;font:500 14px/1.5 Inter,system-ui,sans-serif;font-style:normal;letter-spacing:.01em;color:var(--muted)}
/* no divider above the first chapter (the hero ends the intro); one thin line above the KPI band instead */
.cs-wide .cs-body{border-top:0;padding-top:0;margin-top:72px}
@media (max-width:900px){.cs-wide .cs-body{margin-top:40px}}
.hf-band .hb-grid{border-top:1px solid color-mix(in srgb,currentColor 20%,transparent);padding-top:28px}
.cs-hero-full{--band:140px}
@media (max-width:900px){.hf-band .hb-grid{padding-top:22px}}
/* KPI band: divider across the full page width, more air above and below the numbers */
.hf-band .hb-grid{border-top:0;padding-top:0}
.hf-band{border-top:1px solid color-mix(in srgb,currentColor 20%,transparent)!important}
.cs-hero-full{--band:196px}
@media (min-width:901px){.hf-band{align-items:center}}
@media (max-width:900px){.hf-band{padding:32px 0 36px}}
.cs-hero-full{--band:156px}
@media (max-width:900px){.hf-band{padding:26px 0 30px}}
/* less space between the hero and the first chapter */
.cs-wide .cs-body{margin-top:24px}
@media (max-width:900px){.cs-wide .cs-body{margin-top:16px}}
/* hero → first chapter: one 48px gap (32px on phones) */
.cs.cs-wide{padding-top:0}
.cs-wide .cs-body{margin-top:48px}
@media (max-width:900px){.cs-wide .cs-body{margin-top:32px}}
/* calmer type: smaller case titles and chapter headings */
.cs-hero-full h1{font-size:clamp(32px,3.3vw,48px);line-height:1.04;max-width:20ch}
.cs-hero-full .sub{max-width:520px}
.cs-main .part.head h2{font-size:clamp(22px,1.9vw,26px)}
:root:root .cs-hero-full h1{font-size:clamp(30px,8vw,36px)}
@media (min-width:761px){:root:root .cs-hero-full h1{font-size:clamp(32px,3.3vw,48px)}}
/* a quote that closes a chapter: the chapter divider below is enough, so no second line; more air around quotes */
.cs blockquote{margin:56px 0;padding:40px 0}
.cs-main .csec>.part:last-child .blk-t>blockquote:last-child{border-bottom:0;padding-bottom:0;margin-bottom:8px}
.cs blockquote{font-size:clamp(21px,2vw,27px)}

/* ===== Every asset fills the text column; air between assets ===== */
.cs-wide .cs-main .part.one figure{width:100%;max-width:none;margin:0}
.cs-wide .cs-main .part.one figure.landscape img{width:100%;max-width:none;height:auto}
/* tall pictures and phone shots sit centred in a full width frame instead of floating at half width */
.cs-wide .cs-main .part.one figure:is(.portrait,.square,.phone){display:flex;flex-direction:column;align-items:center;padding:40px;border-radius:var(--radius);background:var(--soft)}
.cs-wide .cs-main .part.one figure:is(.portrait,.square,.phone) img{width:auto;max-width:100%;max-height:620px;height:auto}
.cs-wide .cs-main .part.one figure.phone::before{display:none}
.cs-wide .cs-main .part.one figure:is(.portrait,.square,.phone) figcaption{align-self:stretch;margin-top:20px}
.cs-wide .cs-main .part.gallery:is(.phones-2,.phones-3,.phones-4){justify-content:center;padding:40px;border-radius:var(--radius);background:var(--soft)}
@media (max-width:760px){
  .cs-wide .cs-main .part.one figure:is(.portrait,.square,.phone),.cs-wide .cs-main .part.gallery:is(.phones-2,.phones-3,.phones-4){padding:20px}
  .cs-wide .cs-main .part.one figure:is(.portrait,.square,.phone) img{max-height:460px}
}
.cs-main .csec>.part:not(.txt):not(.head):not(.sub){margin-top:56px}
.cs-main .csec>.part:not(.txt):not(.head):not(.sub)+.part{margin-top:56px}
.cs-main .live-ui{margin:48px 0}
@media (max-width:760px){.cs-main .csec>.part:not(.txt):not(.head):not(.sub),.cs-main .csec>.part:not(.txt):not(.head):not(.sub)+.part{margin-top:36px}.cs-main .live-ui{margin:32px 0}}
/* chapter text: more room under the heading and between paragraphs and bullets */
.cs-main .part.head+.part.txt{margin-top:32px}
.cs-main .blk-t>p,.cs-main .blk-t>ul,.cs-main .blk-t>ol{margin:0 0 22px}
.cs-main .blk-t>:last-child{margin-bottom:0}
.cs-main .blk-t li+li{margin-top:12px}
/* tall picture with a caption: picture on the left, caption on the right, so the frame is used edge to edge */
@media (min-width:761px){
  .cs-wide .cs-main .part.one figure:is(.portrait,.square,.phone):has(figcaption){display:grid;grid-template-columns:auto minmax(0,1fr);align-items:end;justify-items:start;gap:40px}
  .cs-wide .cs-main .part.one figure:is(.portrait,.square,.phone):has(figcaption) img{max-height:560px;width:auto;max-width:100%}
  .cs-wide .cs-main .part.one figure:is(.portrait,.square,.phone):has(figcaption) figcaption{margin:0 0 4px;font-size:18px;line-height:1.45;color:var(--fg);max-width:28ch}
}
.cs-wide .cs-main .part.one figure:is(.portrait,.square,.phone):not(:has(figcaption)) img{margin:0 auto}
@media (min-width:761px){.cs-wide .cs-main .part.one figure:is(.portrait,.square,.phone):has(figcaption) figcaption{align-self:end!important}}
/* one left edge for the chapter: number, text, frames and list bullets all start on it */
.cs-main .blk-t>ul,.cs-main .blk-t>ol{padding-left:22px;margin-left:0}
.cs-main .blk-t>ul>li::marker,.cs-main .blk-t>ol>li::marker{color:var(--muted)}
/* two or three wide screens in a row stack full width instead of shrinking side by side */
.cs-wide .cs-main .gallery.wide-2,.cs-wide .cs-main .gallery.wide-3{grid-template-columns:1fr;gap:40px}
.cs-wide .cs-main .gallery.wide-2 img,.cs-wide .cs-main .gallery.wide-3 img{width:100%;height:auto}
/* hero: eyebrow (company · industry · date) / title / role in the reading serif / intro */
.cs-hero-full .hf-role{margin:14px 0 0;font:italic 400 clamp(17px,1.4vw,20px)/1.35 var(--body);letter-spacing:0;opacity:.92}
.cs-hero-full .hf-role+.sub{margin-top:18px}
/* Leaf hero with the KPI band: a smaller MacBook that stays above the band */
@media (min-width:901px){
  .cs-hero-full.has-sum.code-leaf:not(.corner) .hf-media.code img{bottom:calc(var(--band) + 44px);height:calc((100% - var(--band)) * .7)}
}
/* bigger MacBook on the Leaf hero, still above the band */
@media (min-width:901px){
  .cs-hero-full.has-sum.code-leaf:not(.corner) .hf-media.code img{bottom:calc(var(--band) + 24px);height:calc((100% - var(--band)) * .9)}
}
/* hero text sits higher above the KPI band on every case */
@media (min-width:901px){.cs-hero-full.has-sum .hf-text{bottom:calc(var(--band) + 96px)}}
/* Leaf hero: bigger MacBook, its visible bottom edge 24px above the band (the file has ~12% empty space under the laptop) */
@media (min-width:901px){
  .cs-hero-full.has-sum.code-leaf:not(.corner) .hf-media.code img{height:calc((100% - var(--band)) * 1.1);bottom:calc(var(--band) + 24px - (100% - var(--band)) * 1.1 * .1206)}
}
/* hero text: more air between eyebrow, title, role, intro and Listen */
.cs-hero-full h1{line-height:1.08;margin-top:22px}
.cs-hero-full .hf-role{margin-top:22px}
.cs-hero-full .hf-role+.sub{margin-top:26px}
.cs-hero-full .hf-text .tts-btn{margin-top:36px}
@media (min-width:901px){.cs-hero-full.has-sum.code-leaf:not(.corner) .hf-media.code img{height:calc((100% - var(--band)) * 1.04);bottom:calc(var(--band) + 64px - (100% - var(--band)) * 1.04 * .1206)}}
@media (min-width:901px){.cs-hero-full.has-sum.code-leaf:not(.corner) .hf-media.code img{bottom:calc(var(--band) + 52px - (100% - var(--band)) * 1.04 * .1206)}}
/* Leaf hero: band height on the 48px grid, softer divider, and a second line on the hero's bottom edge */
.cs-hero-full.has-sum.code-leaf{--band:144px}
.cs-hero-full.has-sum.code-leaf .hf-band{border-top-color:color-mix(in srgb,currentColor 11%,transparent)!important;border-bottom:1px solid color-mix(in srgb,currentColor 11%,transparent)}
@media (min-width:901px){.cs-hero-full.has-sum.code-leaf:not(.corner) .hf-media.code img{bottom:calc(var(--band) + 42px - (100% - var(--band)) * 1.04 * .1206)}}
@media (min-width:901px){.cs-hero-full.has-sum.code-leaf:not(.corner) .hf-media.code img{bottom:calc(var(--band) + 40px - (100% - var(--band)) * 1.04 * .134)}}  /* solid laptop base (not its soft shadow) sits on the divider */
/* more room between a chapter heading and its first paragraph */
.cs-main .part.head+.part.txt,.cs-main .part.head+.part{margin-top:44px}
@media (max-width:760px){.cs-main .part.head+.part.txt,.cs-main .part.head+.part{margin-top:28px}}
/* the same breathing room under every title in the case text: sub titles, feature titles, bold lead-ins */
.cs-main .part.sub+.part{margin-top:28px}
.cs-main .blk-t h3,.cs-main .blk-t h4,.cs-features .feat-t h3{margin-bottom:16px}
.cs-features .feat-k{display:block;margin-bottom:12px}
.cs-main .blk-t p>strong:first-child{display:inline}
.cs-wide .cs-main .csec>.part.head+.part{margin-top:44px!important}
@media (max-width:760px){.cs-wide .cs-main .csec>.part.head+.part{margin-top:28px!important}}
/* Leaf MacBook a little smaller, base still on the divider */
@media (min-width:901px){.cs-hero-full.has-sum.code-leaf:not(.corner) .hf-media.code img{height:calc((100% - var(--band)) * .95);bottom:calc(var(--band) + 40px - (100% - var(--band)) * .95 * .134)}}
@media (min-width:901px){.cs-hero-full.has-sum.code-leaf:not(.corner) .hf-media.code img{height:calc((100% - var(--band)) * 1);bottom:calc(var(--band) + 56px - (100% - var(--band)) * 1 * .134)}}
.cs-wide .cs-main .csec>.part.head+.part{margin-top:32px!important}@media (max-width:760px){.cs-wide .cs-main .csec>.part.head+.part{margin-top:24px!important}}
@media (min-width:901px){.cs-hero-full.has-sum.code-leaf:not(.corner) .hf-media.code img{bottom:calc(var(--band) + 84px - (100% - var(--band)) * 1 * .134)}}
@media (min-width:901px){.cs-hero-full.has-sum.code-leaf:not(.corner) .hf-media.code img{height:calc((100% - var(--band)) * 1.05);bottom:calc(var(--band) + 84px - (100% - var(--band)) * 1.05 * .134)}}
@media (min-width:901px){.cs-hero-full.has-sum.code-leaf:not(.corner) .hf-media.code img{bottom:calc(var(--band) + 62px - (100% - var(--band)) * 1.05 * .134)}}
@media (min-width:901px){.cs-hero-full.has-sum.code-leaf:not(.corner) .hf-media.code img{bottom:calc(var(--band) + 40px - (100% - var(--band)) * 1.05 * .134)}}

/* ===== Leaf hero: slow drifting light under the static grid (replaces the cursor warp) ===== */
.cs-hero-full.code-leaf .hf-media.code{overflow:hidden;isolation:isolate}
.cs-hero-full.code-leaf .hf-media.code::before,.cs-hero-full.code-leaf .hf-media.code::after{content:"";position:absolute;z-index:0;pointer-events:none;border-radius:50%;filter:blur(60px);will-change:transform}
/* a soft leaf green glow, lower left, and a cool blue one, upper right; they drift past each other */
.cs-hero-full.code-leaf .hf-media.code::before{width:62vw;height:62vw;left:-14vw;top:18%;background:radial-gradient(circle,color-mix(in srgb,#3fd28a 34%,transparent) 0%,transparent 66%);animation:leaf-drift-a 26s ease-in-out infinite alternate}
.cs-hero-full.code-leaf .hf-media.code::after{width:56vw;height:56vw;right:-12vw;top:-22%;background:radial-gradient(circle,color-mix(in srgb,#7cc8ff 30%,transparent) 0%,transparent 66%);animation:leaf-drift-b 32s ease-in-out infinite alternate}
.cs-hero-full.code-leaf .hf-grid{z-index:1}
@keyframes leaf-drift-a{0%{transform:translate3d(0,0,0) scale(1)}50%{transform:translate3d(14vw,-8%,0) scale(1.12)}100%{transform:translate3d(26vw,6%,0) scale(.94)}}
@keyframes leaf-drift-b{0%{transform:translate3d(0,0,0) scale(1)}50%{transform:translate3d(-16vw,14%,0) scale(1.08)}100%{transform:translate3d(-8vw,26%,0) scale(1.16)}}
/* light theme: quieter glows on the pale grey hero */
@media (prefers-reduced-motion:reduce){.cs-hero-full.code-leaf .hf-media.code::before,.cs-hero-full.code-leaf .hf-media.code::after{animation:none}}
/* Leaf and Trade Republic heroes (no KPI band): the same height as the Choco heroes, text at the same height too */
@media (min-width:901px){
  .cs-hero-full.tall{padding-bottom:156px!important}
  .cs-hero-full.tall .hf-text{bottom:252px}
  .cs-hero-full.tall.code-leaf:not(.corner) .hf-media.code img{height:calc((100% - 100px) * .95);bottom:calc(64px - (100% - 100px) * .95 * .134)}
}
@media (min-width:901px){.cs-hero-full.tall .hf-text{bottom:72px}}  /* no KPI band: the text settles at the bottom of the hero */
/* Choco heroes: text settles just above the KPI band */
@media (min-width:901px){.cs-hero-full.has-sum .hf-text{bottom:calc(var(--band) + 48px)}}
/* tighter steps between eyebrow, title, role, intro and Listen (all case heroes) */
.cs-hero-full h1{margin-top:14px}
.cs-hero-full .hf-role{margin-top:12px}
.cs-hero-full .hf-role+.sub{margin-top:16px}
.cs-hero-full .hf-text .tts-btn{margin-top:26px}
/* Leaf hero (case by case): text and MacBook lifted off the bottom edge */
@media (min-width:901px){
  .cs-hero-full.tall.code-leaf .hf-text{bottom:132px}
  .cs-hero-full.tall.code-leaf:not(.corner) .hf-media.code img{height:calc((100% - 160px) * .98);bottom:calc(100px - (100% - 160px) * .98 * .134)}
}
/* Leaf and Trade Republic heroes have room: more air between the hero elements (Choco keeps the tight steps) */
.cs-hero-full.tall h1{margin-top:24px}
.cs-hero-full.tall .hf-role{margin-top:20px}
.cs-hero-full.tall .hf-role+.sub{margin-top:26px}
.cs-hero-full.tall .hf-text .tts-btn{margin-top:40px}
@media (min-width:901px){.cs-hero-full.tall .hf-vid.v0{height:63%;bottom:90px}}  /* Web Terminal: the chart clip a bit smaller */
/* Trade Republic cases: neutral grey accent instead of the site violet (chapter numbers, active chapter, links, read aloud) */
main.co-trade{--accent:#9a9aa6}
html:not([data-theme=dark]) main.co-trade{--accent:#5c5c68}
@media (min-width:901px){
  /* Web Terminal: chart clip further right */
  .cs-hero-full.tall .hf-vid.v0{right:max(16px,calc((100vw - 1192px)/2 - 72px))}
  /* Trade Republic heroes: text a bit higher */
  .cs-hero-full.tall.tr .hf-text{bottom:124px}
}
/* Tax savings hero: cleaner hand cutout (no light halo), smaller hand, text higher */
.cs-hero-full.tr .hf-media.fit>img,html:not([data-theme=dark]) .cs-hero-full.tr .hf-media.fit>img{content:url(img/site-thumb/tr-hand-clean.webp)!important;filter:none!important;box-shadow:none!important;border:0!important}
@media (min-width:901px){
  .cs-hero-full.tall.tr .hf-media.fit>img{height:96%!important;bottom:-8%!important}
  .cs-hero-full.tall.tr:has(.hf-media.fit) .hf-text{bottom:170px}
}
@media (min-width:901px){.cs-hero-full.tall .hf-vid.v1{right:calc(max(16px,calc((100vw - 1192px)/2 - 72px)) + 250px)}}  /* screener follows the chart clip, same spacing as before */
@media (min-width:901px){.cs-hero-full.tall .hf-vid.v0{height:69%;bottom:118px}}  /* chart clip a bit bigger and higher */
@media (min-width:901px){.cs-hero-full.tall.code-leaf:not(.corner) .hf-media.code img{height:calc((100% - 120px) * 1.06);bottom:calc(100px - (100% - 120px) * 1.06 * .134)}}
@media (min-width:901px){.cs-hero-full.tall:not(.tr):not(.code-leaf) .hf-text{bottom:132px}}  /* Choco heroes without the band: text at the same height as Leaf */
/* Choco heroes: flat Choco blue for now, no moving light or shading */
.cs-hero-full:not(.tr):not(.code-leaf) .hf-media.fit .hf-bg{display:none!important}
.cs-hero-full:not(.tr):not(.code-leaf) .hf-media.fit{background:var(--hc)!important}
.cs-hero-full:not(.tr):not(.code-leaf):has(.hf-media.fit){background:var(--hc)!important;animation:none!important}
.cs-hero-full:not(.tr):not(.code-leaf):has(.hf-media.fit)::after,.cs-hero-full:not(.tr):not(.code-leaf):has(.hf-media.fit)::before{display:none!important}
/* Leaf hero: text and MacBook centred vertically in the space under the header */
@media (min-width:901px){
  .cs-hero-full.tall.code-leaf .hf-text{top:calc(50% + 32px);bottom:auto;translate:0 -50%}
  .cs-hero-full.tall.code-leaf:not(.corner) .hf-media.code img{bottom:auto;top:calc(50% + 32px - (100% - 120px) * 1.06 * .494)}
}
@media (min-width:901px){.cs-hero-full.tall.code-leaf:not(.corner) .hf-media.code img{top:calc(50% - 8px - (100% - 120px) * 1.06 * .494)}}
/* Trade Republic heroes: text centred vertically under the header; the chart clip too (the hand keeps rising from the bottom edge) */
@media (min-width:901px){
  .cs-hero-full.tall.tr .hf-text,.cs-hero-full.tall.tr:has(.hf-media.fit) .hf-text{top:calc(50% + 32px);bottom:auto;translate:0 -50%}
  .cs-hero-full.tall.tr .hf-vid.v0{top:calc(50% + 32px);bottom:auto;translate:0 -50%}
}
@media (min-width:901px){.cs-hero-full.tall.tr .hf-vid.v0{top:auto;bottom:122px}}  /* chart clip: bottom anchored, which puts its middle on the hero middle */
@media (min-width:901px){.cs-hero-full.tall.tr .hf-vid.v1{height:68%;bottom:110px}}  /* background clip bigger, growing upward */
@media (min-width:901px){
  .cs-hero-full.tall.tr .hf-vid.v0{bottom:98px}  /* chart clip a little lower */
  .cs-hero-full.tall.code-leaf:not(.corner) .hf-media.code img{top:calc(50% + 16px - (100% - 120px) * 1.06 * .494)}  /* Leaf MacBook a little lower */
}
@media (min-width:901px){.cs-hero-full.tall.tr .hf-media.fit>img{height:102%!important;bottom:-4%!important;right:calc(max(24px,(100vw - 1192px)/2) - 90px)!important}}  /* Tax savings: hand a bit bigger, higher and further right */
@media (min-width:901px){.cs-hero-full.tall.tr .hf-media.fit>img{bottom:-7%!important}}  /* keep the phone top clear of the header */
@media (min-width:901px){
  .cs-hero-full.tall.tr .hf-vid.v1{right:calc(max(16px,calc((100vw - 1192px)/2 - 72px)) + 170px)}  /* background clip further right, more of it under the chart */
  .cs-hero-full.tall.code-leaf:not(.corner) .hf-media.code img{top:calc(50% + 48px - (100% - 120px) * 1.06 * .494)}  /* Leaf MacBook lower */
}
@media (min-width:901px){.cs-hero-full.tall.code-leaf:not(.corner) .hf-media.code img{top:calc(50% + 32px - (100% - 120px) * 1.06 * .494)}}
/* a quote that closes a chapter: it keeps its own bottom line with the same 40px as on top, and the chapter divider under it is hidden, so the space is even */
.cs-main .csec>.part:last-child .blk-t>blockquote:last-child{border-bottom:1px solid var(--line)!important;padding-bottom:40px!important;margin-bottom:0!important}
.cs-main .csec:has(>.part:last-child .blk-t>blockquote:last-child)+.csec{border-top-color:transparent!important}
/* image captions: centred under the image, in the reading serif italic, a bit more room above */
.cs figcaption,.cs-wide figcaption,.cs-wide figure.phone figcaption,.live-ui figcaption{text-align:center!important;font:italic 400 16px/1.45 "Iowan Old Style","Charter","Palatino Linotype",Palatino,Georgia,serif!important;letter-spacing:0;color:var(--muted);margin-top:18px!important}
/* captions that sit beside a tall picture inside its frame stay left aligned */
@media (min-width:761px){.cs-wide .cs-main .part.one figure:is(.portrait,.square,.phone):has(figcaption) figcaption{text-align:left!important;font-size:18px!important;margin-top:0!important}}

/* ===== Quotes, tightened: a thin accent bar on the left instead of two full-width lines ===== */
.cs blockquote,.cs-main .csec>.part:last-child .blk-t>blockquote:last-child{border:0!important;border-left:2px solid var(--accent)!important;padding:4px 0 4px 26px!important;margin:44px 0!important;font-size:clamp(20px,1.8vw,24px)!important;line-height:1.4!important}
.cs-main .csec>.part:last-child .blk-t>blockquote:last-child{margin-bottom:0!important}
.cs-main .csec:has(>.part:last-child .blk-t>blockquote:last-child)+.csec{border-top-color:var(--line)!important}
.cs blockquote p+p{margin-top:12px!important}
@media (max-width:760px){.cs blockquote{margin:32px 0!important;padding-left:18px!important}}
/* quotes: a divider above, the same distance from the paragraph and from the quote */
.cs blockquote{position:relative;margin-top:76px!important}
.cs blockquote::before{content:"";position:absolute;left:-2px;right:0;top:-38px;border-top:1px solid var(--line)}
@media (max-width:760px){.cs blockquote{margin-top:56px!important}.cs blockquote::before{top:-28px}}
/* Web ordering hero: the MacBook from the deck's title slide, bleeding off the right edge, centred under the header */
.cs-hero-full .hf-media.fit img[src*="web-hero"]{-webkit-mask-image:none!important;mask-image:none!important;border-radius:0!important;box-shadow:none!important;filter:drop-shadow(0 30px 60px rgba(10,20,80,.28))!important;transform:none!important;animation:none;
  top:calc(50% + 32px)!important;bottom:auto!important;translate:0 -50%;height:auto!important;width:min(52vw,820px)!important;max-width:none!important;right:0!important;left:auto!important}
@media (max-width:900px){.cs-hero-full .hf-media.fit img[src*="web-hero"]{position:relative!important;top:auto!important;translate:none;width:92%!important;margin-left:auto;display:block}}
@media (min-width:901px){.cs-hero-full .hf-media.fit img[src*="web-hero"]{width:min(43vw,680px)!important}}

/* ===== Quotes, final: one line above and one below, the same space on both sides of the text; no side bar ===== */
.cs blockquote,.cs-main .csec>.part:last-child .blk-t>blockquote:last-child{position:static!important;border:0!important;border-top:1px solid var(--line)!important;border-bottom:1px solid var(--line)!important;padding:32px 0!important;margin:40px 0!important}
.cs blockquote::before{content:none!important}
/* a quote that ends a chapter: no second line (chapter divider hidden) and a normal gap to the next chapter title */
.cs-main .csec>.part:last-child .blk-t>blockquote:last-child{margin-bottom:0!important}
.cs-wide .cs-main .csec:has(>.part:last-child .blk-t>blockquote:last-child){padding-bottom:0!important}
.cs-wide .cs-main .csec:has(>.part:last-child .blk-t>blockquote:last-child)+.csec{border-top-color:transparent!important;padding-top:56px!important}
@media (max-width:760px){.cs blockquote{padding:24px 0!important;margin:32px 0!important}}
/* Web ordering and Mobile ordering heroes: device art fully in view, right edge on the content edge, soft shadow under it like Leaf */
.cs-hero-full .hf-media.fit img:is([src*="web-hero2"],[src*="mob-hero2"]){-webkit-mask-image:none!important;mask-image:none!important;border-radius:0!important;box-shadow:none!important;transform:none!important;animation:none;
  filter:drop-shadow(0 30px 34px rgba(8,18,70,.42)) drop-shadow(0 8px 12px rgba(8,18,70,.25))!important;left:auto!important;bottom:auto!important;max-width:none!important;
  top:calc(50% + 32px)!important;translate:0 -50%;right:max(24px,calc((100vw - 1192px)/2))!important}
@media (min-width:901px){
  .cs-hero-full .hf-media.fit img[src*="web-hero2"]{width:min(46vw,720px)!important;height:auto!important}
  .cs-hero-full .hf-media.fit img[src*="mob-hero2"]{height:72%!important;width:auto!important}
}
@media (max-width:900px){.cs-hero-full .hf-media.fit img:is([src*="web-hero2"],[src*="mob-hero2"]){position:relative!important;top:auto!important;right:auto!important;translate:none;display:block;margin:0 auto;width:88%!important;height:auto!important}
  .cs-hero-full .hf-media.fit img[src*="mob-hero2"]{width:62%!important}}
/* Choco hero devices: bigger and further right */
@media (min-width:901px){
  .cs-hero-full .hf-media.fit img:is([src*="web-hero2"],[src*="mob-hero2"]){right:calc(max(24px,(100vw - 1192px)/2) - 56px)!important}
  .cs-hero-full .hf-media.fit img[src*="web-hero2"]{width:min(53vw,840px)!important}
  .cs-hero-full .hf-media.fit img[src*="mob-hero2"]{height:82%!important}
}
@media (min-width:901px){.cs-hero-full .hf-media.fit img[src*="web-hero2"]{width:min(50vw,800px)!important}}  /* keeps the screen clear of the title */
@media (min-width:901px){.cs-hero-full .hf-media.fit img:is([src*="web-hero2"],[src*="mob-hero2"]){right:calc(max(24px,(100vw - 1192px)/2) - 130px)!important}}  /* further right, away from the text */
@media (min-width:901px){.cs-hero-full .hf-media.fit img:is([src*="web-hero2"],[src*="mob-hero2"]){right:calc(max(24px,(100vw - 1192px)/2) - 200px)!important}}
@media (min-width:901px){.cs-hero-full .hf-media.fit img[src*="web-hero2"]{right:calc(max(24px,(100vw - 1192px)/2) - 270px)!important}}
/* chapters: bigger titles and more air everywhere */
.cs-main .part.head h2{font-size:clamp(28px,2.6vw,36px)!important;line-height:1.1}
.cs-wide .cs-main .csec{padding:88px 0}
.cs-wide .cs-main .csec:first-child{padding-top:0}
.cs-wide .cs-main .csec>.part.head+.part{margin-top:40px!important}
.cs-main .blk-t>p,.cs-main .blk-t>ul,.cs-main .blk-t>ol{margin-bottom:26px}
.cs blockquote,.cs-main .csec>.part:last-child .blk-t>blockquote:last-child{padding:44px 0!important;margin:56px 0!important}
.cs-main .csec>.part:last-child .blk-t>blockquote:last-child{margin-bottom:0!important}
.cs-wide .cs-main .csec:has(>.part:last-child .blk-t>blockquote:last-child)+.csec{padding-top:80px!important}
@media (max-width:900px){.cs-wide .cs-main .csec{padding:56px 0}.cs-wide .cs-main .csec:has(>.part:last-child .blk-t>blockquote:last-child)+.csec{padding-top:56px!important}}
@media (max-width:760px){.cs-main .part.head h2{font-size:26px!important}.cs blockquote{padding:30px 0!important;margin:40px 0!important}.cs-wide .cs-main .csec>.part.head+.part{margin-top:28px!important}}
/* home tiles and Up next cards using the cut-out hero devices: contained, smaller, sitting in the bottom right */
.pc-media img:is([src*="web-hero2"],[src*="mob-hero2"]){inset:auto!important;top:auto!important;left:auto!important;object-fit:contain!important;height:auto!important;max-width:none!important;transform:none!important;--s:1!important;filter:drop-shadow(0 24px 30px rgba(8,18,70,.35))}
.pc-media img[src*="web-hero2"]{right:4%!important;bottom:-8%!important;width:min(56%,620px)!important}
.pc-media img[src*="mob-hero2"]{right:6%!important;bottom:-34%!important;width:min(40%,300px)!important}
@media (max-width:760px){.pc-media img[src*="web-hero2"]{width:72%!important;bottom:-6%!important}.pc-media img[src*="mob-hero2"]{width:48%!important;bottom:-30%!important}}
.pc-media:has(img:is([src*="web-hero2"],[src*="mob-hero2"]))::after{background:linear-gradient(180deg,rgba(0,0,0,.16) 0%,rgba(0,0,0,0) 30%)!important}
/* home tiles: role and reading time under the title */
.pc-bottom{display:flex;flex-direction:column;gap:10px}
.pc-meta{font:500 14px/1.3 var(--sans,Inter),system-ui,sans-serif;opacity:.82;text-shadow:0 1px 10px rgba(0,0,0,.2)}
.pc-media.code-leaf .pc-meta,[data-theme=dark] a.pcard[href*="work/tr-"] .pc-meta{text-shadow:none}
/* Web ordering tile: laptop lifted */
.pc-media img[src*="web-hero2"]{bottom:6%!important}
.pc-desc{margin:4px 0 2px;max-width:46ch;font-size:16px;line-height:1.5;opacity:.86;text-shadow:0 1px 10px rgba(0,0,0,.18)}
.pc-media.code-leaf .pc-desc{text-shadow:none}
@media (max-width:760px){.pc-desc{display:none}}
/* wide tiles: description stays clear of the device */
.pc-desc{max-width:40ch}
@media (min-width:821px){.pcard.big .pc-media.code-leaf:not(.corner) img{top:26px!important;width:56%!important;left:46%!important}}  /* Leaf home tile: MacBook higher and a bit smaller */
@media (min-width:821px){.pcard.big .pc-media.code-leaf:not(.corner) img{top:22px!important;width:61%!important;left:44%!important}}  /* Leaf home tile: MacBook a bit bigger */
@media (min-width:821px){.pcard.big .pc-media.code-leaf:not(.corner) img{left:46.5%!important}}  /* keep the laptop clear of the title */
/* read aloud: the spoken word gets a rounded pill with even padding (replaces the square text highlight) */
.tts-pill{position:absolute;left:0;top:0;width:0;height:0;z-index:5;pointer-events:none;opacity:0;background:color-mix(in srgb,var(--accent) 30%,transparent);mix-blend-mode:normal;transition:left .12s ease,top .12s ease,width .12s ease,height .12s ease,opacity .2s}
.tts-pill.on-hero{background:rgba(255,255,255,.2)}
html:not([data-theme=dark]) .tts-pill:not(.on-hero){background:color-mix(in srgb,var(--accent) 18%,transparent)}
@media (prefers-reduced-motion:reduce){.tts-pill{transition:opacity .2s}}
/* read aloud: the hero lines hug their text when highlighted */
.cs-hero-full .hf-text>:is(h1,.hf-role,.sub){width:fit-content;max-width:min(100%,620px)}
/* hover target while the player is open: an outlined pill, and a pointer, on the word a click would jump to */
.tts-ghost{background:transparent!important;box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--accent) 70%,transparent);transition:opacity .15s}
.tts-ghost.on-hero{box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.6)}
body.tts-open.tts-pointing{cursor:pointer}
/* hover target: a soft filled pill instead of an outline */
.tts-ghost{box-shadow:none!important;background:color-mix(in srgb,var(--accent) 16%,transparent)!important}
.tts-ghost.on-hero{background:rgba(255,255,255,.14)!important}
html:not([data-theme=dark]) .tts-ghost:not(.on-hero){background:color-mix(in srgb,var(--accent) 11%,transparent)!important}

/* ===== What I found (Web ordering): interactive audit of the old screen ===== */
.live-ui.found{margin:0;padding:clamp(20px,3vw,36px);border-radius:var(--radius);background:#3867ff}
.fd-stage{position:relative;border-radius:12px;overflow:hidden;box-shadow:0 24px 50px -20px rgba(8,18,70,.55)}
.fd-stage img{display:block;width:100%;height:auto}
.fd-mask{position:absolute;inset:0;pointer-events:none}
.fd-area{position:absolute;border-radius:10px;pointer-events:none;outline:1.5px dashed rgba(255,46,170,.55);outline-offset:-2px;transition:opacity .25s,box-shadow .25s,outline-color .25s}
.found[data-active] .fd-area{opacity:0}
.found[data-active] .fd-area.on{opacity:1;outline:2px solid #ff2eaa;box-shadow:0 0 0 9999px rgba(12,14,40,.55)}
.fd-dot{position:absolute;z-index:2;translate:-50% -50%;width:28px;height:28px;border-radius:50%;border:2px solid #fff;background:#ff2eaa;color:#fff;font:700 13px/1 var(--sans,Inter),system-ui,sans-serif;display:grid;place-items:center;cursor:pointer;box-shadow:0 4px 12px rgba(80,0,50,.35);transition:transform .2s,opacity .2s}
.found[data-active] .fd-dot:not(.on){opacity:.35}
.fd-dot.on,.fd-dot:hover{transform:scale(1.18)}
.fd-list{list-style:none;margin:22px 0 0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 20px}
.fd-list button{display:flex;align-items:center;gap:12px;width:100%;padding:9px 12px;border:0;border-radius:10px;background:transparent;color:#fff;font:500 15px/1.35 var(--sans,Inter),system-ui,sans-serif;text-align:left;cursor:pointer;transition:background .2s,opacity .2s}
.fd-list .n{flex:none;width:24px;height:24px;border-radius:50%;background:#fff;color:#3867ff;font-weight:700;font-size:12px;display:grid;place-items:center}
.fd-list button:hover,.fd-list button.on{background:rgba(255,255,255,.16)}
.found[data-active] .fd-list button:not(.on){opacity:.6}
.live-ui.found figcaption{color:rgba(255,255,255,.8)!important}
@media (max-width:760px){.fd-list{grid-template-columns:1fr}.fd-dot{width:22px;height:22px;font-size:11px}}
@media (prefers-reduced-motion:reduce){.fd-area,.fd-dot,.fd-list button{transition:none}}
/* What I found: compact problem list */
main .cs .live-ui.found .fd-list{margin:22px 0 0!important;padding:0!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-auto-rows:auto;align-items:start;gap:2px 14px!important}
main .cs .live-ui.found .fd-list>li{margin:0!important;padding:0!important;min-height:0;line-height:1.3}
main .cs .live-ui.found .fd-list button{min-height:0!important;height:auto!important;margin:0!important;padding:7px 10px!important;gap:10px;font:500 14.5px/1.3 var(--sans,Inter),system-ui,sans-serif!important;letter-spacing:0;align-items:flex-start}
main .cs .live-ui.found .fd-list .n{width:20px;height:20px;font-size:11px;margin-top:-1px}
@media (max-width:1100px){main .cs .live-ui.found .fd-list{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media (max-width:600px){main .cs .live-ui.found .fd-list{grid-template-columns:1fr!important}}
/* What I found: title + description cells, equal size */
main .cs .live-ui.found .fd-list{grid-auto-rows:1fr;align-items:stretch;gap:6px 14px!important;margin-top:26px!important}
main .cs .live-ui.found .fd-list button{height:100%!important;padding:10px 12px!important;align-items:flex-start}
main .cs .live-ui.found .fd-t{display:flex;flex-direction:column;gap:3px;min-width:0}
main .cs .live-ui.found .fd-t b{font:600 15px/1.25 var(--sans,Inter),system-ui,sans-serif;color:#fff}
main .cs .live-ui.found .fd-t small{font:400 13px/1.4 var(--sans,Inter),system-ui,sans-serif;color:rgba(255,255,255,.78)}
main .cs .live-ui.found .fd-list .n{margin-top:-1px}
/* What I found: solid dots (no see-through when dimmed), stronger active row */
main .cs .live-ui.found .fd-dot{padding:0!important;line-height:1!important;font-variant-numeric:tabular-nums;display:flex;align-items:center;justify-content:center}
main .cs .live-ui.found[data-active] .fd-dot:not(.on){opacity:1;background:#8a7a96;border-color:rgba(255,255,255,.55);box-shadow:none}
main .cs .live-ui.found .fd-list .n{line-height:1!important;font-variant-numeric:tabular-nums;display:flex;align-items:center;justify-content:center;transition:background .2s,color .2s}
main .cs .live-ui.found .fd-list button{transition:background .2s,opacity .2s,box-shadow .2s,transform .2s}
main .cs .live-ui.found .fd-list button:hover,main .cs .live-ui.found .fd-list button.on{background:#fff!important;box-shadow:0 10px 24px -10px rgba(8,18,70,.55)}
main .cs .live-ui.found .fd-list button:hover .fd-t b,main .cs .live-ui.found .fd-list button.on .fd-t b{color:#14163a}
main .cs .live-ui.found .fd-list button:hover .fd-t small,main .cs .live-ui.found .fd-list button.on .fd-t small{color:rgba(20,22,58,.7)}
main .cs .live-ui.found .fd-list button:hover .n,main .cs .live-ui.found .fd-list button.on .n{background:#ff2eaa;color:#fff}
main .cs .live-ui.found[data-active] .fd-list button:not(.on){opacity:.5}
main .cs .live-ui.found{margin-top:56px!important}
/* Design concepts: three cards, hover to focus */
main .cs .live-ui.concepts{margin:40px 0!important;padding:clamp(20px,3vw,36px);border-radius:var(--radius);background:#3867ff}
.cc-list{list-style:none!important;margin:0!important;padding:0!important;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
main .cs .cc-list>li{margin:0!important;padding:12px;border-radius:14px;color:#fff;cursor:default;outline:none;transition:background .25s,opacity .25s,transform .25s,box-shadow .25s}
.cc-img{border-radius:10px;overflow:hidden;box-shadow:0 18px 36px -18px rgba(8,18,70,.6);transition:transform .35s cubic-bezier(.2,.7,.2,1)}
.cc-img img{display:block;width:100%;height:auto}
.cc-txt{padding:16px 4px 4px}
.cc-n{display:block;font:500 12px/1 var(--mono,ui-monospace),monospace;opacity:.7;margin-bottom:8px}
main .cs .cc-txt b{display:block;font:600 16px/1.3 var(--sans,Inter),system-ui,sans-serif;color:#fff}
main .cs .cc-txt p{margin:8px 0 0!important;font:400 13.5px/1.45 var(--sans,Inter),system-ui,sans-serif!important;color:rgba(255,255,255,.82);max-height:0;opacity:0;overflow:hidden;transition:max-height .35s,opacity .3s}
.cc-pick{float:right;margin-top:-3px;padding:4px 9px;border-radius:99px;background:#fff;color:#3867ff;font:600 11px/1 var(--sans,Inter),system-ui,sans-serif;letter-spacing:.02em}
main .cs .live-ui.concepts figcaption{color:rgba(255,255,255,.85)!important;margin-top:20px!important}
@media (hover:hover){
 .cc-list:hover>li:not(:hover){opacity:.55}
 main .cs .cc-list>li:hover,main .cs .cc-list>li:focus-visible{background:rgba(255,255,255,.12)}
 .cc-list>li:hover .cc-img,.cc-list>li:focus-visible .cc-img{transform:scale(1.04)}
 main .cs .cc-list>li:hover .cc-txt p,main .cs .cc-list>li:focus-visible .cc-txt p{max-height:9em;opacity:1}
}
@media (hover:none),(max-width:760px){main .cs .cc-txt p{max-height:none;opacity:1}}
@media (max-width:760px){.cc-list{grid-template-columns:1fr;gap:8px}}
@media (prefers-reduced-motion:reduce){.cc-list>li,.cc-img,main .cs .cc-txt p{transition:none}}
/* concepts: description as overlay on the wireframe, no layout shift */
.cc-img{position:relative}
main .cs .cc-img p{position:absolute;inset:auto 0 0 0;margin:0!important;padding:16px 16px 14px;max-height:none!important;background:linear-gradient(to top,rgba(14,16,48,.94) 70%,rgba(14,16,48,0));color:#fff!important;font:400 13.5px/1.45 var(--sans,Inter),system-ui,sans-serif!important;opacity:0;transform:translateY(12px);transition:opacity .3s,transform .35s cubic-bezier(.2,.7,.2,1)}
@media (hover:hover){main .cs .cc-list>li:hover .cc-img p,main .cs .cc-list>li:focus-visible .cc-img p{opacity:1;transform:none}}
@media (hover:none),(max-width:760px){main .cs .cc-img p{position:static;opacity:1;transform:none;background:none;padding:12px 4px 0;color:rgba(255,255,255,.85)!important}.cc-img{overflow:visible;box-shadow:none}.cc-img img{border-radius:10px;box-shadow:0 18px 36px -18px rgba(8,18,70,.6)}}
@media (hover:none),(max-width:760px){main .cs .cc-list>li{display:flex;flex-direction:column}.cc-img{display:contents}.cc-img img{order:1}.cc-txt{order:2}main .cs .cc-img p{order:3;padding:6px 4px 4px}}
main .cs .live-ui.found .fd-list{margin-top:40px!important}main .cs .live-ui.found{padding-bottom:clamp(14px,1.6vw,20px)!important}
/* concepts v2: blue box holds cards + one description panel; caption outside */
main .cs .live-ui.concepts{padding:0!important;background:none!important;border-radius:0}
.cc-box{padding:clamp(20px,3vw,36px) clamp(20px,3vw,36px) clamp(16px,2vw,24px);border-radius:var(--radius);background:#3867ff}
main .cs .live-ui.concepts figcaption{color:var(--muted)!important;margin-top:18px!important}
main .cs .cc-img p,main .cs .cc-txt p{display:none}
.cc-img{transform:none}
main .cs .cc-list>li{cursor:pointer;opacity:.6}
main .cs .cc-list>li.on{opacity:1;background:rgba(255,255,255,.14)}
.cc-list>li.on .cc-img{transform:translateY(-4px);box-shadow:0 26px 44px -18px rgba(8,18,70,.7)}
.cc-list:hover>li:not(:hover){opacity:.6}
main .cs .cc-desc{margin:18px 0 0!important;padding:16px 20px;min-height:4.6em;border-radius:12px;background:#fff;color:rgba(20,22,58,.78)!important;font:400 15px/1.5 var(--sans,Inter),system-ui,sans-serif!important}
main .cs .cc-desc b{display:block;margin-bottom:2px;color:#14163a;font-weight:600}
@media (hover:hover){main .cs .cc-list>li:hover .cc-img p{opacity:0}}
@media (max-width:760px){
 main .cs .cc-list>li{opacity:1;background:none!important;cursor:default}
 .cc-list>li.on .cc-img{transform:none}
 main .cs .cc-txt p{display:block;margin:6px 0 0!important;font:400 14px/1.45 var(--sans,Inter),system-ui,sans-serif!important;color:rgba(255,255,255,.85)!important;max-height:none;opacity:1}
 main .cs .cc-desc{display:none}
}
.cc-list>li.chosen .cc-n{opacity:1}
/* concepts v3: description as plain text on blue, fixed height (all stacked, longest sets it) */
main .cs .cc-desc{display:grid;margin:22px 12px 0!important;padding:18px 0 0;min-height:0;border-radius:0;background:none;border-top:1px solid rgba(255,255,255,.25);color:#fff!important}
main .cs .cc-desc>div{grid-area:1/1;opacity:0;transition:opacity .25s;font:400 15px/1.5 var(--sans,Inter),system-ui,sans-serif;color:rgba(255,255,255,.85);max-width:62ch}
main .cs .cc-desc>div.on{opacity:1}
main .cs .cc-desc b{display:block;margin-bottom:4px;color:#fff;font-weight:600}
@media (max-width:760px){main .cs .cc-desc{display:none}}
/* concepts: title above the wireframe (shadow falls into open space below) */
main .cs .cc-list>li{display:flex;flex-direction:column}
.cc-txt{order:0;padding:4px 4px 16px}
.cc-img{order:1}
main .cs .cc-list>li{padding:14px 12px 20px}
@media (max-width:760px){main .cs .cc-list>li{display:flex}.cc-txt{display:contents}.cc-n{order:0}main .cs .cc-txt b{order:1;margin-bottom:12px}.cc-img img{order:2}main .cs .cc-txt p{order:3;margin-top:12px!important}}
.cc-txt{padding-bottom:26px}main .cs .cc-list>li{padding-bottom:8px}
/* User testing: A/B switch */
main .cs .live-ui.ab{margin:56px 0 0!important;padding:0;background:none}
.ab-box{padding:clamp(20px,3vw,36px);border-radius:var(--radius);background:#3867ff}
.ab-seg{position:relative;display:grid;grid-template-columns:1fr 1fr;width:min(320px,100%);margin:0 auto 24px;padding:4px;border-radius:99px;background:rgba(255,255,255,.18)}
.ab-seg button{position:relative;z-index:1;padding:9px 14px;border:0;border-radius:99px;background:none;color:#fff;font:600 14px/1 var(--sans,Inter),system-ui,sans-serif;cursor:pointer;transition:color .25s}
.ab-seg button[aria-selected="true"]{color:#14163a}
.ab-thumb{position:absolute;top:4px;bottom:4px;left:4px;width:calc(50% - 4px);border-radius:99px;background:#fff;box-shadow:0 6px 16px -6px rgba(8,18,70,.5);transition:transform .35s cubic-bezier(.2,.7,.2,1)}
.ab[data-k="exp"] .ab-thumb{transform:translateX(100%)}
.ab-stage{display:grid}
.ab-side{grid-area:1/1;opacity:0;visibility:hidden;transition:opacity .35s,visibility .35s}
.ab-side.on{opacity:1;visibility:visible}
.ab-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:18px;color:#fff;text-align:center}
.ab-stats small{display:block;font:500 12px/1.3 var(--sans,Inter),system-ui,sans-serif;opacity:.8;margin-bottom:6px}
.ab-stats b{display:block;font:600 clamp(24px,3vw,34px)/1 var(--sans,Inter),system-ui,sans-serif;letter-spacing:-.02em}
.ab-side img{display:block;width:100%;height:auto;border-radius:12px;box-shadow:0 24px 50px -20px rgba(8,18,70,.55)}
@media (prefers-reduced-motion:reduce){.ab-side,.ab-thumb{transition:none}}
/* What I found: softer active list item (tint instead of white card) */
main .cs .live-ui.found .fd-list button:hover,main .cs .live-ui.found .fd-list button.on{background:rgba(255,255,255,.14)!important;box-shadow:none}
main .cs .live-ui.found .fd-list button:hover .fd-t b,main .cs .live-ui.found .fd-list button.on .fd-t b{color:#fff}
main .cs .live-ui.found .fd-list button:hover .fd-t small,main .cs .live-ui.found .fd-list button.on .fd-t small{color:rgba(255,255,255,.88)}
main .cs .live-ui.found[data-active] .fd-list button:not(.on){opacity:.55}
/* User testing: switch below the heatmap */
.ab-box{display:flex;flex-direction:column}
.ab-seg{order:2;margin:24px auto 0}
.ab-side img{border-radius:10px}
.is-dragging,.is-dragging *{cursor:grabbing!important;user-select:none}
main .cs .ab-stats{margin-bottom:36px}
main .cs .ab-seg{margin-top:clamp(20px,3vw,36px)}
main .cs .ab-stats>div{display:flex;flex-direction:column-reverse}main .cs .ab-stats small{margin:8px 0 0}

.ab.second .ab-thumb{transform:translateX(100%)}
main .cs .live-ui.ab.modes{margin:40px 0 0!important}
.ab.modes .ab-side img{border-radius:0;box-shadow:none}
main .cs .live-ui.found .fd-list button:hover .n,main .cs .live-ui.found .fd-list button.on .n{background:#fff;color:#3867ff}
/* Solution: what changed, mapped onto Order and Edit mode (green = fixed) */
main .cs .fixmap{margin:40px 0 0!important;padding:clamp(20px,3vw,36px) clamp(20px,3vw,36px) clamp(14px,1.6vw,20px);border-radius:var(--radius);background:#3867ff}
main .cs .fixmap .live-ui.found.fd-part{margin:0!important;padding:0!important;background:none!important;border-radius:0}
main .cs .fixmap .fd-part+.fd-part{margin-top:40px!important;padding-top:36px!important;border-top:1px solid rgba(255,255,255,.25)}
main .cs .fx-label{margin:0 0 14px!important;color:#fff;font:600 13px/1 var(--mono,ui-monospace),monospace;letter-spacing:.06em;text-transform:uppercase;opacity:.85}
.fx-stage{background:none;box-shadow:none}
.fixmap .fd-area{outline-color:rgba(20,214,140,.65)}
.fixmap .found[data-active] .fd-area.on{outline-color:#14d68c}
.fixmap .fd-dot{background:#14d68c;color:#06301f;box-shadow:0 4px 12px rgba(0,60,30,.35)}
main .cs .fixmap .live-ui.found[data-active] .fd-dot:not(.on){background:#7aa392}
/* Outcome: interactive orders chart */
main .cs .live-ui.chart{margin:40px 0 0!important;padding:0;background:none}
.ch-box{padding:clamp(16px,3vw,36px);border-radius:var(--radius);background:#3867ff}
.ch-card{position:relative;padding:clamp(18px,2.6vw,32px) clamp(16px,2.6vw,32px) clamp(14px,2vw,24px);border-radius:12px;background:#fff;color:#14163a;font-family:var(--sans,Inter),system-ui,sans-serif;box-shadow:0 24px 50px -20px rgba(8,18,70,.55)}
.ch-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:56px}
.ch-head b{font-size:17px;font-weight:600}
.ch-head small{font-size:13px;color:#6b6f85}
.ch-plot{position:relative;height:clamp(240px,34vw,360px);margin-left:44px}
.ch-grid{position:absolute;inset:0}
.ch-g{position:absolute;left:0;right:0;height:0;border-top:1px solid #eef0f4}
.ch-g:first-child{border-top-color:#c9cdd9}
.ch-g i{position:absolute;right:calc(100% + 10px);top:-8px;font:400 11.5px/1 var(--sans,Inter),system-ui,sans-serif;font-style:normal;color:#8a8ea3;white-space:nowrap;font-variant-numeric:tabular-nums}
.ch-cols{position:absolute;inset:0;display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:2px}
.ch-col{position:relative;height:100%;margin:0;padding:0 14%;border:0;background:none;cursor:pointer;outline:none;-webkit-tap-highlight-color:transparent}
.ch-bar{position:absolute;left:14%;right:14%;bottom:0;height:var(--h);border-radius:4px 4px 0 0;background:#3867ff;transition:opacity .2s,background .2s}
.ch-col:nth-child(-n+4) .ch-bar{background:#a9bcff}
.chart.hovering .ch-col:not(.on) .ch-bar{opacity:.35}
.ch-col.on .ch-bar{background:#2a52e0}
.ch-col:focus-visible .ch-bar{outline:2px solid #14163a;outline-offset:2px}
.ch-x{position:absolute;left:0;right:0;top:calc(100% + 10px);font-size:12.5px;color:#555a70;text-align:center}
.ch-v{position:absolute;left:50%;bottom:calc(100% + 6px);transform:translateX(-50%);font-size:12.5px;font-weight:600;color:#14163a;white-space:nowrap;opacity:0;transition:opacity .2s;font-variant-numeric:tabular-nums}
.ch-col.lab .ch-v{opacity:1}
.chart.hovering .ch-v{opacity:0}
.ch-mk{position:absolute;left:50%;bottom:calc(100% + 30px);transform:translateX(-50%);padding:6px 10px;border-radius:99px;background:#14163a;color:#fff;font-size:12px;font-weight:600;white-space:nowrap}
.ch-mk::after{content:"";position:absolute;left:50%;top:100%;transform:translateX(-50%);border:5px solid transparent;border-top-color:#14163a}
.ch-col:last-child .ch-mk{left:auto;right:-6px;transform:none}
.ch-col:last-child .ch-mk::after{left:auto;right:calc(50% - 5px - 14%);transform:none}
.ch-tip{position:absolute;z-index:3;transform:translate(-50%,-100%);padding:9px 12px;border-radius:10px;background:#14163a;color:#fff;font-size:12.5px;line-height:1.35;white-space:nowrap;pointer-events:none;opacity:0;transition:opacity .15s;box-shadow:0 10px 24px -8px rgba(8,18,70,.5)}
.ch-tip.vis{opacity:1}
.ch-tip small{display:block;color:rgba(255,255,255,.7);font-size:11.5px}
.ch-tip b{display:block;font-size:15px;font-weight:600;font-variant-numeric:tabular-nums}
.ch-tip span{display:block;color:#9fe3c4;font-variant-numeric:tabular-nums}
.chart.hovering .ch-mk{opacity:.25}
.ch-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
main .cs .live-ui.chart figcaption{margin-top:18px!important}
.ch-card{padding-bottom:calc(clamp(14px,2vw,24px) + 30px)}
@media (max-width:600px){.ch-head{flex-direction:column;gap:4px;margin-bottom:60px}.ch-plot{margin-left:36px}.ch-x{font-size:10.5px}.ch-v{font-size:10.5px}.ch-mk{font-size:10.5px;padding:5px 8px}.ch-col:nth-child(5) .ch-mk{left:-10px;transform:none}.ch-col:nth-child(5) .ch-mk::after{left:calc(50% + 10px - 5px)}}
@media (prefers-reduced-motion:reduce){.ch-bar,.ch-v,.ch-tip{transition:none}}
.ch-col.mark{z-index:2}
.ch-sr{display:block;left:0;top:0;margin:0!important;padding:0!important;border:0!important}
/* shipped markers: arrow sits on the bar, pill can shift without losing its pointer */
.ch-mk::after{display:none}
.ch-col.mark .ch-bar::before{content:"";position:absolute;left:50%;bottom:calc(100% + 20px);transform:translateX(-50%);border:5px solid transparent;border-top-color:#14163a}
.ch-col.mark .ch-mk{bottom:calc(100% + 30px)}
.ch-col:nth-child(5) .ch-mk{left:auto;right:-8px;transform:none}
.chart.hovering .ch-col.mark .ch-bar::before{opacity:.25}
@media (max-width:600px){.ch-col:nth-child(5) .ch-mk{left:auto;right:-6px}}
.chart.hovering .ch-mk,.chart.hovering .ch-col.mark .ch-bar::before{opacity:0}.ch-mk,.ch-col.mark .ch-bar::before{transition:opacity .15s}
/* Solution: product tour on the real screens (hotspots + popover, underline tabs) */
main .cs .tour{margin:40px 0 0!important;padding:0}
.tr-box{padding:clamp(18px,3vw,36px);border-radius:var(--radius);background:#3867ff}
.tr-tabs{display:flex;gap:28px;margin:0 0 22px;border-bottom:1px solid rgba(255,255,255,.28)}
.tr-tabs button{position:relative;margin:0 0 -1px;padding:0 0 12px;border:0;border-bottom:2px solid transparent;background:none;color:rgba(255,255,255,.65);font:600 15px/1 var(--sans,Inter),system-ui,sans-serif;cursor:pointer;transition:color .2s,border-color .2s}
.tr-tabs button:hover{color:#fff}
.tr-tabs button[aria-selected="true"]{color:#fff;border-bottom-color:#fff}
.tr-stage{position:relative;display:grid;border-radius:12px;box-shadow:0 24px 50px -20px rgba(8,18,70,.55)}
.tr-screen{grid-area:1/1;position:relative;border-radius:12px;overflow:hidden;opacity:0;visibility:hidden;transition:opacity .3s,visibility .3s}
.tr-screen.on{opacity:1;visibility:visible}
.tr-screen img{display:block;width:100%;height:auto}
.tr-area{position:absolute;border-radius:8px;box-shadow:0 0 0 2px #3867ff;background:rgba(61,107,255,.06);opacity:0;transition:opacity .2s;pointer-events:none}
.tr-area.on{opacity:1}
.tr-hs{position:absolute;z-index:2;width:30px;height:30px;margin:0;padding:0;border:0;background:none;translate:-50% -50%;cursor:pointer;-webkit-tap-highlight-color:transparent}
.tr-hs span{position:absolute;inset:8px;border-radius:50%;background:#3867ff;box-shadow:0 0 0 3px #fff,0 2px 8px rgba(8,18,70,.4);transition:transform .2s}
.tr-hs::before{content:"";position:absolute;inset:5px;border-radius:50%;background:rgba(61,107,255,.45);animation:tr-pulse 2s ease-out infinite}
.tr-hs:hover span,.tr-hs.on span,.tr-hs:focus-visible span{transform:scale(1.25)}
.tr-hs.on::before{animation:none;opacity:0}
.tr-hs:focus-visible{outline:2px solid #14163a;outline-offset:2px;border-radius:50%}
@keyframes tr-pulse{0%{transform:scale(.6);opacity:.9}100%{transform:scale(1.9);opacity:0}}
.tr-pop{position:absolute;z-index:4;width:min(260px,70%);padding:14px 16px;border-radius:12px;background:#14163a;color:#fff;box-shadow:0 18px 40px -12px rgba(8,18,70,.6);opacity:0;transform:translateY(4px);transition:opacity .18s,transform .18s;pointer-events:none;font-family:var(--sans,Inter),system-ui,sans-serif}
.tr-pop.vis{opacity:1;transform:none}
.tr-pop b{display:block;font-size:14.5px;font-weight:600;margin-bottom:4px}
main .cs .tr-pop p{margin:0!important;font-size:13.5px!important;line-height:1.45!important;color:rgba(255,255,255,.82)!important}
@media (max-width:600px){.tr-hs{width:26px;height:26px}.tr-hs span{inset:8px}.tr-tabs{gap:20px}.tr-tabs button{font-size:14px}}
@media (prefers-reduced-motion:reduce){.tr-hs::before{animation:none}.tr-screen,.tr-pop,.tr-area{transition:none}}
/* tour tabs sit above the blue box, on the page */
main .cs .tour .tr-tabs{margin:0 0 20px;border-bottom:1px solid var(--line)}
main .cs .tour .tr-tabs button{color:var(--muted)}
main .cs .tour .tr-tabs button:hover{color:var(--fg)}
main .cs .tour .tr-tabs button[aria-selected="true"]{color:var(--fg);border-bottom-color:var(--accent)}
main .cs .tr-pop{padding:14px 16px 15px}main .cs .tr-pop b{line-height:1.25!important;margin:0 0 6px}
/* What I found: blue box holds only the screen; problem list sits on the page, one per row */
main .cs .live-ui.found{padding:0!important;background:none!important;border-radius:0}
main .cs .live-ui.found .fd-box{padding:clamp(20px,3vw,36px);border-radius:var(--radius);background:#3867ff}
main .cs .live-ui.found .fd-list{display:block!important;margin:28px 0 0!important;border-top:1px solid var(--line)}
main .cs .live-ui.found .fd-list>li{border-bottom:1px solid var(--line)}
main .cs .live-ui.found .fd-list button{height:auto!important;padding:14px 12px!important;border-radius:0!important;align-items:flex-start;gap:14px}
main .cs .live-ui.found .fd-list .n{width:24px;height:24px;margin-top:1px;background:none;border:1.5px solid var(--line);color:var(--fg);font-size:12px}
main .cs .live-ui.found .fd-t{flex-direction:row;flex-wrap:wrap;align-items:baseline;gap:4px 14px}
main .cs .live-ui.found .fd-t b{min-width:150px;color:var(--fg)!important;font-size:15.5px}
main .cs .live-ui.found .fd-t small{color:var(--muted)!important;font-size:15px}
main .cs .live-ui.found .fd-list button:hover,main .cs .live-ui.found .fd-list button.on{background:var(--soft)!important}
main .cs .live-ui.found .fd-list button:hover .fd-t b,main .cs .live-ui.found .fd-list button.on .fd-t b{color:var(--fg)!important}
main .cs .live-ui.found .fd-list button:hover .fd-t small,main .cs .live-ui.found .fd-list button.on .fd-t small{color:var(--muted)!important}
main .cs .live-ui.found .fd-list button:hover .n,main .cs .live-ui.found .fd-list button.on .n{background:#ff2eaa;border-color:#ff2eaa;color:#fff}
main .cs .live-ui.found[data-active] .fd-list button:not(.on){opacity:.5}
@media (max-width:600px){main .cs .live-ui.found .fd-t{flex-direction:column;gap:2px}main .cs .live-ui.found .fd-t b{min-width:0}}
main .cs .live-ui.found .fd-list button:hover .n,main .cs .live-ui.found .fd-list button.on .n{background:var(--accent);border-color:var(--accent);color:#fff}
main .cs .live-ui.found .fd-t{display:grid!important;grid-template-columns:170px minmax(0,1fr);gap:2px 16px;align-items:baseline}main .cs .live-ui.found .fd-t b{min-width:0}@media (max-width:600px){main .cs .live-ui.found .fd-t{grid-template-columns:1fr}}
main .cs .live-ui.found .fd-box{position:relative}
/* LOX hero: Scale line under the intro */
.cs-hero-full .hf-text .hf-scale{margin:18px 0 0;max-width:46ch;font-size:15px;line-height:1.5;color:rgba(255,255,255,.82)}
.cs-hero-full .hf-text .hf-scale b{display:block;margin-bottom:4px;font:500 11.5px/1 var(--mono,ui-monospace),monospace;letter-spacing:.08em;text-transform:uppercase;color:rgba(255,255,255,.65)}
.cs-hero-full .hf-text>.hf-scale{width:auto}
/* Home: the two Senior Choco tiles side by side; devices sit top right, clear of the title */
@media (min-width:761px){
 .s3 .pc-media img[src*="web-hero2"]{top:13%!important;bottom:auto!important;right:5%!important;width:52%!important}
 .s3 .pc-media img[src*="mob-hero2"]{top:9%!important;bottom:auto!important;right:6%!important;width:31%!important}
}
/* Home: Web ordering long (s4), Mobile ordering short (s2) */
@media (min-width:761px){
 .s4 .pc-media img[src*="web-hero2"]{top:12%!important;bottom:auto!important;right:4%!important;width:min(52%,560px)!important}
 .s2 .pc-media img[src*="mob-hero2"]{top:20%!important;bottom:auto!important;right:-8%!important;width:78%!important}
}
@media (min-width:761px){.s2 .pc-media img[src*="mob-hero2"]{top:9%!important;right:6%!important;width:42%!important}}
@media (min-width:761px){.s2 .pc-media img[src*="mob-hero2"]{top:7%!important;width:36%!important}}
/* Mobile ordering: old order guide audit, phone left and problem list right */
main .cs .live-ui.found.side{margin:48px 0!important}
main .cs .live-ui.found.side .fd-box{padding:0;background:none;border-radius:var(--radius);overflow:hidden}
main .cs .live-ui.found.side .fd-stage{border-radius:var(--radius);box-shadow:none}
main .cs .live-ui.found.side .fd-cap{margin:0 0 14px!important;font:italic 16px/1.4 var(--serif,Georgia,serif);color:var(--muted)}
main .cs .live-ui.found.side .fd-list{margin:0!important}
main .cs .live-ui.found.side .fd-t{grid-template-columns:1fr!important;gap:3px!important}
@media (min-width:900px){
 main .cs .live-ui.found.side{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:40px;align-items:center}
}
@media (max-width:899px){main .cs .live-ui.found.side .fd-side{margin-top:24px}}
main .cs .live-ui.found.side .fd-box{background:#3867ff;padding:clamp(20px,3vw,36px) clamp(28px,5vw,64px);display:flex;justify-content:center}
main .cs .live-ui.found.side .fd-stage{width:100%;max-width:300px;border-radius:0;overflow:visible;background:none}
main .cs .live-ui.found.side .fd-stage{overflow:hidden;border-radius:44px}
/* Home thumbs v2: devices drop low and bleed out of the tile; titles keep to the left */
@media (min-width:761px){
 .s4 .pc-media img[src*="web-hero2"]{top:auto!important;bottom:-16%!important;right:-12%!important;width:64%!important}
 .s4:has(img[src*="web-hero2"]) .pc-title{max-width:52%}
 .s2 .pc-media img[src*="mob-hero2"]{top:auto!important;bottom:-26%!important;right:-12%!important;width:62%!important}
 .s2:has(img[src*="mob-hero2"]) .pc-title{max-width:56%;font-size:clamp(22px,1.9vw,30px)!important;line-height:1.12}
}
@media (min-width:761px){
 .s4:has(img[src*="web-hero2"]) .pc-bottom{max-width:48%}
 .s4:has(img[src*="web-hero2"]) .pc-title{max-width:none}
 .s4 .pc-media img[src*="web-hero2"]{width:60%!important;right:-11%!important;bottom:-14%!important}
 .s2:has(img[src*="mob-hero2"]) .pc-bottom{max-width:58%}
 .s2:has(img[src*="mob-hero2"]) .pc-title{max-width:none}
 .s2 .pc-media img[src*="mob-hero2"]{width:52%!important;right:-14%!important;bottom:-30%!important}
}
@media (min-width:900px){main .cs .live-ui.found.side .fd-pop{display:none!important}}
/* Home thumbs v3: Web title on two lines, bigger laptop growing up and left; Mobile title shortened, same size as Web */
@media (min-width:761px){
 .s4:has(img[src*="web-hero2"]) .pc-bottom{max-width:60%}
 .s4 .pc-media img[src*="web-hero2"]{width:66%!important;right:-22%!important;bottom:-10%!important}
 .s2:has(img[src*="mob-hero2"]) .pc-title{font-size:inherit!important;max-width:none}
 .s2:has(img[src*="mob-hero2"]) .pc-bottom{max-width:56%}
}
@media (min-width:761px){.s2:has(img[src*="mob-hero2"]) .pc-title{font-size:clamp(24px,2.5vw,32px)!important;line-height:1.08}.s4 .pc-media img[src*="web-hero2"]{right:-25%!important}}
/* Mobile ordering: Maze results as two cards */
main .cs .live-ui.mz{margin:40px 0!important;padding:0;background:none}
.mz-box{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:clamp(18px,3vw,36px);border-radius:var(--radius);background:#3867ff}
.mz-card{padding:22px 22px 18px;border-radius:12px;background:#fff;color:#14163a;font-family:var(--sans,Inter),system-ui,sans-serif;box-shadow:0 18px 40px -20px rgba(8,18,70,.55)}
.mz-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.mz-n{font:500 12px/1 var(--mono,ui-monospace),monospace;letter-spacing:.08em;text-transform:uppercase;color:#6b6f85}
.mz-score{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:#1f7a6b;color:#fff;font:700 18px/1 var(--sans,Inter),system-ui,sans-serif;box-shadow:0 0 0 5px rgba(31,122,107,.18)}
.mz-card.low .mz-score{background:#c27a10;box-shadow:0 0 0 5px rgba(194,122,16,.18)}
main .cs .mz-task{margin:0 0 18px!important;font:600 16px/1.35 var(--sans,Inter),system-ui,sans-serif!important;color:#14163a!important}
.mz-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:14px 0;border-top:1px solid #eceef3;border-bottom:1px solid #eceef3}
.mz-stats b{display:block;font:700 22px/1.1 var(--sans,Inter),system-ui,sans-serif;font-variant-numeric:tabular-nums}
.mz-stats small{display:block;margin-top:4px;font-size:12.5px;color:#6b6f85}
main .cs .mz-resp{margin:12px 0 0!important;font-size:12.5px!important;color:#8a8ea3!important}
main .cs .live-ui.mz figcaption{margin-top:18px!important}
@media (max-width:640px){.mz-box{grid-template-columns:1fr}}
/* Mobile ordering: two personas from the buyer vision */
main .cs .live-ui.ps{margin:40px 0!important;padding:0;background:none}
.ps-box{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:clamp(18px,3vw,36px);border-radius:var(--radius);background:#3867ff}
.ps-card{padding:22px;border-radius:12px;background:#fff;color:#14163a;font-family:var(--sans,Inter),system-ui,sans-serif;box-shadow:0 18px 40px -20px rgba(8,18,70,.55)}
.ps-head{display:flex;align-items:center;gap:16px;margin-bottom:16px;padding-bottom:16px;border-bottom:1px solid #eceef3}
.ps-head img{width:76px;height:96px;object-fit:contain;flex:none}
.ps-head b{display:block;font:700 22px/1.1 var(--display,var(--sans));letter-spacing:-.01em}
.ps-head small{display:block;margin-top:3px;font-size:14px;color:#555a70}
.ps-where{display:inline-block;margin-top:10px;padding:4px 10px;border-radius:99px;background:#eef2ff;color:#3867ff;font-size:12px;font-weight:600}
main .cs .ps-card dl{margin:0!important;display:grid;gap:12px}
main .cs .ps-card dt{font:500 11.5px/1 var(--mono,ui-monospace),monospace;letter-spacing:.08em;text-transform:uppercase;color:#8a8ea3;margin:0 0 4px}
main .cs .ps-card dd{margin:0!important;font-size:14.5px;line-height:1.45;color:#14163a}
main .cs .live-ui.ps figcaption{margin-top:18px!important}
@media (max-width:640px){.ps-box{grid-template-columns:1fr}}
main .cs .live-ui.ps .ps-head img{width:76px!important;height:96px!important;max-width:none!important;margin:0!important;border-radius:0!important;box-shadow:none!important;object-fit:contain}main .cs .live-ui.ps .ps-head{display:flex!important}
/* Personas v2: dark editorial cards with a portrait */
main .cs .live-ui.ps2 .ps-box{padding:0;background:none;gap:20px}
main .cs .ps2 .ps-card{display:flex;flex-direction:column;padding:0;overflow:hidden;border-radius:16px;background:#16161d;border:1px solid rgba(255,255,255,.08);box-shadow:none;color:#ececf2}
:root[data-theme="light"] main .cs .ps2 .ps-card{background:#14141b}
main .cs .ps2 .ps-photo{position:relative;aspect-ratio:5/4;overflow:hidden}
main .cs .ps2 .ps-photo img{display:block;width:100%!important;height:100%!important;max-width:none!important;margin:0!important;border-radius:0!important;object-fit:cover;object-position:50% 30%;box-shadow:none!important}
main .cs .ps2 .ps-photo::after{content:"";position:absolute;inset:auto 0 0 0;height:45%;background:linear-gradient(to top,#16161d,rgba(22,22,29,0))}
main .cs .ps2 .ps-where{position:absolute;top:14px;left:14px;z-index:1;margin:0;padding:6px 11px;border-radius:99px;background:rgba(10,10,14,.6);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);color:#fff;font:500 12px/1 var(--sans,Inter),system-ui,sans-serif;letter-spacing:.01em}
main .cs .ps2 .ps-body{padding:4px 26px 26px;margin-top:-34px;position:relative;z-index:1}
main .cs .ps2 .ps-name{margin:0!important;padding:0!important;border:0!important;font:700 30px/1.05 var(--display,var(--sans))!important;letter-spacing:-.02em;color:#fff!important}
main .cs .ps2 .ps-role{margin:6px 0 18px!important;font:italic 17px/1.3 var(--serif,Georgia,serif)!important;color:#a7a7bb!important}
main .cs .ps2 dl{display:grid;gap:0;margin:0!important}
main .cs .ps2 dl>div{padding:14px 0;border-top:1px solid rgba(255,255,255,.09)}
main .cs .ps2 dt{margin:0 0 6px!important;font:500 11px/1 var(--mono,ui-monospace),monospace;letter-spacing:.1em;text-transform:uppercase;color:#8d8da3}
main .cs .ps2 dd{margin:0!important;font:400 15px/1.55 var(--sans,Inter),system-ui,sans-serif!important;color:#e4e4ec!important}
main .cs .ps2 dl>div:last-child dt{color:#8fa8ff}
main .cs .ps2 dl>div:last-child dd{color:#fff!important}
/* Personas v3: compact dark cards, round portrait, three rows */
main .cs .live-ui.ps3 .ps-box{padding:0;background:none;gap:16px}
main .cs .ps3 .ps-card{padding:22px 24px 8px;border-radius:14px;background:#16161d;border:1px solid rgba(255,255,255,.08);box-shadow:none;color:#ececf2}
main .cs .ps3 .ps-head{display:flex!important;align-items:center;gap:14px;margin:0 0 6px;padding:0 0 18px;border-bottom:1px solid rgba(255,255,255,.09)}
main .cs .ps3 .ps-head img{width:56px!important;height:56px!important;max-width:none!important;margin:0!important;border-radius:50%!important;object-fit:cover;object-position:50% 30%;box-shadow:none!important;flex:none}
main .cs .ps3 .ps-head b{display:block;font:700 20px/1.1 var(--display,var(--sans));color:#fff;letter-spacing:-.01em}
main .cs .ps3 .ps-head small{display:block;margin-top:3px;font-size:14px;color:#a7a7bb}
main .cs .ps3 .ps-where{margin:0 0 0 auto;padding:5px 10px;border-radius:99px;background:rgba(255,255,255,.07);color:#cfcfdc;font:500 12px/1 var(--sans,Inter),system-ui,sans-serif;white-space:nowrap}
main .cs .ps3 dl{display:grid;gap:0;margin:0!important}
main .cs .ps3 dl>div{padding:12px 0;border-top:1px solid rgba(255,255,255,.06)}
main .cs .ps3 dl>div:first-child{border-top:0}
main .cs .ps3 dt{margin:0 0 5px!important;font:500 11px/1 var(--mono,ui-monospace),monospace;letter-spacing:.1em;text-transform:uppercase;color:#8d8da3}
main .cs .ps3 dd{margin:0!important;font:400 14.5px/1.5 var(--sans,Inter),system-ui,sans-serif!important;color:#e4e4ec!important}
@media (max-width:420px){main .cs .ps3 .ps-where{display:none}}
main .cs .live-ui.ps3 .ps-head img{clip-path:circle(50%)}
main .cs .ps3 .ps-head{flex-wrap:wrap}
main .cs .ps3 .ps-where{order:3;margin:12px 0 0 70px;flex-basis:auto}
main .cs .ps3 .ps-head>div{flex:1;min-width:0}
main .cs .ps3 .ps-where{display:none!important}
/* Personas: rows line up across both cards (Goal, Needs, Pain start at the same height) */
@media (min-width:641px){
 main .cs .ps3 .ps-box{grid-auto-rows:auto;row-gap:0}
 main .cs .ps3 .ps-card{display:grid;grid-row:span 4;grid-template-rows:subgrid;row-gap:0}
 main .cs .ps3 .ps-card dl{display:contents}
 main .cs .ps3 .ps-card dl>div:first-child{border-top:0}
}
main .cs .ps3 .ps-card{border:0!important;box-shadow:0 24px 48px -20px rgba(0,0,0,.65),0 2px 6px rgba(0,0,0,.25)!important}
/* Mobile ordering audit: Before / After */
main .cs .found.ba .fd-box{display:grid}
main .cs .found.ba .ba-stage{grid-area:1/1;opacity:0;visibility:hidden;transition:opacity .35s,visibility .35s}
main .cs .found.ba .ba-stage.on{opacity:1;visibility:visible}
main .cs .found.ba .ba-a{display:none!important}
main .cs .found.ba[data-mode="after"] .ba-a{display:block!important}
main .cs .found.ba[data-mode="after"] .ba-b{display:none!important}
.ba-tabs{display:flex;gap:24px;margin:0 0 6px;border-bottom:1px solid var(--line)}
.ba-tabs button{margin:0 0 -1px;padding:0 0 12px;border:0;border-bottom:2px solid transparent;background:none;color:var(--muted);font:600 15px/1 var(--sans,Inter),system-ui,sans-serif;cursor:pointer;transition:color .2s,border-color .2s}
.ba-tabs button:hover{color:var(--fg)}
.ba-tabs button[aria-selected="true"]{color:var(--fg);border-bottom-color:var(--accent)}
main .cs .found.ba .fd-list{border-top:0!important}
main .cs .found.ba[data-mode="after"] .fd-area{outline-color:rgba(20,214,140,.6)}
main .cs .found.ba[data-mode="after"][data-active] .fd-area.on{outline-color:#14d68c}
main .cs .found.ba[data-mode="after"] .fd-dot{background:#14d68c;color:#06301f}
main .cs .found.ba .fd-cap{display:none}
main .cs .found.ba .fd-box{justify-items:center;align-items:start}main .cs .found.ba .ba-stage{width:100%!important;max-width:300px}
main .cs .live-ui.found.side.ba .fd-box{display:grid!important;justify-items:center;align-items:start}main .cs .live-ui.found.side.ba .ba-stage{grid-area:1/1;width:100%!important;max-width:300px}
main .cs .live-ui.ps.ps3 .ps-head img{width:56px!important;height:56px!important;border-radius:50%!important;clip-path:none}
/* Before/After: both texts share one cell, so the list (and the block) never changes height */
main .cs .found.ba .fd-t small.ba-b,main .cs .found.ba .fd-t small.ba-a{display:block!important;grid-row:2;grid-column:1}
main .cs .found.ba .fd-t b{grid-row:1;grid-column:1}
main .cs .found.ba .ba-a{visibility:hidden}
main .cs .found.ba[data-mode="after"] .ba-a{visibility:visible}
main .cs .found.ba[data-mode="after"] .ba-b{visibility:hidden}
/* After mode: blue dots like the Solution tour, a bit smaller */
main .cs .found.ba[data-mode="after"] .fd-dot{width:22px;height:22px;background:#3867ff;color:#fff;border:2px solid #fff;font-size:11px;box-shadow:0 2px 8px rgba(8,18,70,.4)}
main .cs .found.ba[data-mode="after"] .fd-area{outline-color:rgba(61,107,255,.7)}
main .cs .found.ba[data-mode="after"][data-active] .fd-area.on{outline-color:#3867ff}
main .cs .found.ba[data-mode="after"][data-active] .fd-dot:not(.on){background:#8c9cc8}
/* Solution tour: smaller hotspots so the interface reads better */
.tr-hs{width:24px;height:24px}
.tr-hs span{inset:7px;box-shadow:0 0 0 2px #fff,0 2px 6px rgba(8,18,70,.4)}
.tr-hs::before{inset:5px}
/* Home thumbs v4 */
@media (min-width:761px){
 .s4 .pc-media img[src*="web-hero2"]{right:-20%!important;bottom:-3%!important;width:66%!important}
 .s4:has(img[src*="web-hero2"]) .pc-bottom{position:relative;z-index:2}
 .s2:has(img[src*="mob-hero2"]) .pc-bottom{max-width:none}
 .s2:has(img[src*="mob-hero2"]) .pc-title{white-space:nowrap}
 .s2:has(img[src*="mob-hero2"]) .pc-meta{display:block;max-width:48%}
 .s2 .pc-media img[src*="mob-hero2"]{width:64%!important;right:-16%!important;bottom:-34%!important}
}
@media (min-width:761px){
 .s2 .pc-media img[src*="mob-hero2"]{top:6%!important;bottom:auto!important;right:-10%!important;width:58%!important}
 .s2:has(img[src*="mob-hero2"]) .pc-meta{max-width:none}
 .s2:has(img[src*="mob-hero2"]) .pc-bottom{position:relative;z-index:2}
}
@media (min-width:761px){.s2 .pc-media img[src*="mob-hero2"]{top:auto!important;bottom:33%!important;right:-4%!important;width:46%!important}}
@media (min-width:761px){.s2 .pc-media img[src*="mob-hero2"]{bottom:31%!important;width:43%!important;right:-2%!important}}
@media (min-width:761px){.s4 .pc-media img[src*="web-hero2"]{bottom:0!important}}
@media (min-width:761px){.s4 .pc-media img[src*="web-hero2"]{bottom:-1px!important}}
@media (min-width:761px){.s2:has(img[src*="mob-hero2"]) .pc-title{white-space:normal}}
@media (min-width:761px){.s2 .pc-media img[src*="mob-hero2"]{top:auto!important;bottom:-26%!important;right:-12%!important;width:58%!important}}
@media (min-width:761px){.s2:has(img[src*="mob-hero2"]) .pc-meta{display:block;max-width:50%}}
/* Audit screens: clean screen by default; dots and dashed boxes appear while you point at the screen or the list (always shown on touch) */
@media (hover:hover){
 main .cs .live-ui.found .fd-dot,main .cs .live-ui.found .fd-area{transition:opacity .25s,transform .2s,box-shadow .25s,outline-color .25s}
 main .cs .live-ui.found:not(:hover):not(:focus-within):not([data-active]) .fd-dot,
 main .cs .live-ui.found:not(:hover):not(:focus-within):not([data-active]) .fd-area{opacity:0!important;pointer-events:none}
}
/* Personas v4: one big need per persona, goal and pain side by side */
main .cs .live-ui.ps4 .ps-box{padding:0;background:none;gap:16px}
main .cs .ps4 .ps-card{display:flex!important;flex-direction:column;padding:28px;border-radius:16px;background:#1c1c25;border:0;box-shadow:0 24px 48px -24px rgba(0,0,0,.6);color:#ececf2}
:root[data-theme="light"] main .cs .ps4 .ps-card{background:#17171f}
main .cs .ps4 .ps-head{display:flex!important;align-items:center;gap:14px;margin:0;padding:0;border:0}
main .cs .live-ui.ps.ps4 .ps-head img{width:48px!important;height:48px!important;max-width:none!important;margin:0!important;border-radius:50%!important;object-fit:cover;object-position:50% 30%;box-shadow:none!important}
main .cs .ps4 .ps-head b{display:block;font:600 17px/1.2 var(--sans,Inter),system-ui,sans-serif;color:#fff}
main .cs .ps4 .ps-head small{display:block;margin-top:2px;font-size:13.5px;color:#9a9aae}
main .cs .ps4 .ps-need{flex:1;margin:22px 0 24px!important;font:400 22px/1.35 var(--display,var(--sans))!important;letter-spacing:-.01em;color:#fff!important}
main .cs .ps4 dl{display:grid!important;grid-template-columns:1fr 1.4fr;gap:20px;margin:0!important;padding-top:18px;border-top:1px solid rgba(255,255,255,.08)}
main .cs .ps4 dl>div{padding:0!important;border:0!important}
main .cs .ps4 dt{margin:0 0 6px!important;font:500 11px/1 var(--mono,ui-monospace),monospace;letter-spacing:.1em;text-transform:uppercase;color:#8d8da3}
main .cs .ps4 dd{margin:0!important;font:400 14px/1.5 var(--sans,Inter),system-ui,sans-serif!important;color:#c9c9d6!important}
@media (max-width:640px){main .cs .ps4 dl{grid-template-columns:1fr}}
main .cs .ps4 dl{grid-template-columns:1fr!important;gap:16px!important}
/* hide audit numbers unless pointing at the block; a mouse click on a tab no longer keeps them on */
@media (hover:hover){
 main .cs .live-ui.found:not(:hover):not(:has(:focus-visible)):not([data-active]) .fd-dot,
 main .cs .live-ui.found:not(:hover):not(:has(:focus-visible)):not([data-active]) .fd-area{opacity:0!important;pointer-events:none}
 main .cs .live-ui.found:not(:hover):focus-within:not(:has(:focus-visible)):not([data-active]) .fd-dot,
 main .cs .live-ui.found:not(:hover):focus-within:not(:has(:focus-visible)):not([data-active]) .fd-area{opacity:0!important}
}
/* personas: header, need and goal/pain line up across both cards */
@media (min-width:641px){
 main .cs .ps4 .ps-box{grid-auto-rows:auto;row-gap:0}
 main .cs .ps4 .ps-card{display:grid!important;grid-row:span 3;grid-template-rows:subgrid;row-gap:0}
 main .cs .ps4 .ps-need{flex:none}
 main .cs .ps4 dl{align-self:start}
}
/* Order from anywhere: four screens in the audit's phone frame, stacked and crossfaded */
main .cs .live-ui.found.side.any .fd-box{display:grid!important;justify-items:center;align-items:start}
main .cs .live-ui.found.side.any .any-stage{grid-area:1/1;width:100%!important;max-width:300px;opacity:0;visibility:hidden;transition:opacity .3s,visibility .3s}
main .cs .live-ui.found.side.any .any-stage.on{opacity:1;visibility:visible}
main .cs .live-ui.found.side.any .any-stage img{display:block;width:100%;height:auto}
main .cs .live-ui.found.side.any .fd-list{border-top:0!important}
@media (prefers-reduced-motion:reduce){main .cs .live-ui.found.side.any .any-stage{transition:none}}
/* Web hero laptop: a tight contact shadow under the base plus a soft cast shadow, so it rests instead of floating */
.cs-hero-full .hf-media.fit img[src*="web-hero2"]{filter:drop-shadow(0 4px 3px rgba(6,14,60,.45)) drop-shadow(0 22px 22px rgba(6,14,60,.38)) drop-shadow(0 50px 60px rgba(6,14,60,.28))}
/* Order from anywhere, v2: Before/After switch on top, phone, then the flow (before) or screen tabs (after) */
main .cs .live-ui.oa{margin:48px 0!important}
.oa-box{padding:clamp(20px,3vw,36px);border-radius:var(--radius);background:#3867ff;color:#fff}
.oa-seg{margin:0 auto 28px!important;width:min(240px,100%)!important}
.oa[data-mode="after"] .ab-thumb{transform:translateX(100%)}
.oa-stage{display:grid}
.oa-mode{grid-area:1/1;display:flex;flex-direction:column;align-items:center;opacity:0;visibility:hidden;transition:opacity .3s,visibility .3s}
.oa-mode.on{opacity:1;visibility:visible}
.oa-phones{display:grid;width:min(280px,72%)}
.oa-ph{grid-area:1/1;display:block;width:100%;height:auto;opacity:0;transition:opacity .25s}
.oa-ph.on{opacity:1}
.oa-chain,.oa-tabs{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:24px 0 0!important;padding:0!important;list-style:none}
.oa-chain li{display:flex;align-items:center;gap:8px;margin:0!important;padding:0!important;font:600 14px/1 var(--sans,Inter),system-ui,sans-serif;color:#fff}
.oa-chain li::before{display:none!important}
.oa-chain li{padding:9px 14px!important;border-radius:99px;background:rgba(255,255,255,.16)}
.oa-chain li:last-child{background:#fff;color:#14163a}
.oa-chain li+li{position:relative;margin-left:22px!important}
.oa-chain li+li::after{content:"→";position:absolute;left:-21px;top:50%;transform:translateY(-50%);color:rgba(255,255,255,.8);font-weight:400}
.oa-tabs button{padding:9px 14px;border:0;border-radius:99px;background:rgba(255,255,255,.16);color:#fff;font:600 14px/1 var(--sans,Inter),system-ui,sans-serif;cursor:pointer;transition:background .2s,color .2s}
.oa-tabs button:hover{background:rgba(255,255,255,.28)}
.oa-tabs button[aria-selected="true"]{background:#fff;color:#14163a}
.oa-note{min-height:2.9em;max-width:440px;margin:14px auto 0!important;text-align:center;font-size:15px!important;line-height:1.45!important;color:rgba(255,255,255,.9)!important}
@media (prefers-reduced-motion:reduce){.oa-mode,.oa-ph{transition:none}}
.oa-ph{border-radius:14.7% / 7.2%}
main .cs .live-ui.oa .oa-ph{border-radius:14.7% / 7.2%!important;background:none!important;box-shadow:none!important;margin:0!important;border:0!important}
main .cs .live-ui.oa .oa-ph:not(.on){opacity:0!important}main .cs .live-ui.oa .oa-ph.on{opacity:1!important}
@media (max-width:480px){
 .oa-chain,.oa-tabs{gap:6px}
 .oa-chain li,.oa-tabs button{padding:7px 10px!important;font-size:12px!important}
 .oa-chain li+li{margin-left:14px!important}
 .oa-chain li+li::after{left:-14px;font-size:11px}
 .oa-chain{gap:0 6px}
}
@media (max-width:480px){.oa-chain{flex-wrap:nowrap;gap:0}.oa-chain li{padding:7px 9px!important;white-space:nowrap}.oa-chain li+li{margin-left:16px!important}.oa-chain li+li::after{left:-13px}}
/* Research studies: method card + task result bars */
main .cs .live-ui.study{margin:40px 0!important;padding:clamp(20px,3vw,32px);border:1px solid var(--line);border-radius:var(--radius);background:var(--soft)}
.rc{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px 24px}
.rc-item{padding-top:14px;border-top:1px solid var(--line)}
.rc-item small{display:block;margin-bottom:6px;font-size:13px;line-height:1.35;color:var(--muted)}
.rc-item b{display:block;font:500 15px/1.4 var(--body);color:var(--fg)}
@media (max-width:760px){.rc{grid-template-columns:repeat(2,minmax(0,1fr))}}
.tb{margin-top:32px}
.tb-h{margin:0 0 12px!important;font:600 13px/1.3 var(--body)!important;color:var(--muted)!important;letter-spacing:.02em}
.tb-scroll{overflow-x:auto}
.tb-list{display:grid;gap:14px;min-width:420px;margin:0!important;padding:0!important;list-style:none}
.tb-row{display:grid;grid-template-columns:minmax(150px,1.2fr) 2fr minmax(92px,auto);align-items:center;gap:16px;margin:0!important;padding:0!important}
.tb-row::before{display:none!important}
.tb-name{font-size:15px;line-height:1.35;color:var(--fg)}
.tb-name small{display:block;margin-top:2px;font-size:13px;color:var(--muted)}
.tb-track{position:relative;height:10px;border-radius:99px;background:var(--line);overflow:hidden}
.tb-bar{position:absolute;inset:0 auto 0 0;width:var(--v);border-radius:99px;background:var(--accent);transform-origin:left;transition:transform .9s cubic-bezier(.2,.7,.2,1)}
.tb.armed .tb-bar{transform:scaleX(0)}
.tb.armed.in .tb-bar{transform:scaleX(1)}
.tb-val{font-size:15px;color:var(--fg);white-space:nowrap;font-variant-numeric:tabular-nums}
.tb-val span{color:var(--muted)}
.tb-cap{margin:16px 0 0!important;font-size:13px!important;line-height:1.5!important;color:var(--muted)!important}
@media (prefers-reduced-motion:reduce){.tb-bar{transition:none}.tb.armed .tb-bar{transform:none}}
main .cs .live-ui.ab{margin-bottom:40px!important}
main .cs .live-ui.study .tb{margin-top:0}
/* Solution tour: Order mode / Edit mode as the same centered pill switch as the A/B test, under the screen */
main .cs .tour .tr-tabs.ab-seg{display:grid!important;gap:0!important;margin:clamp(20px,3vw,36px) auto 0!important;border-bottom:0!important}
main .cs .tour .tr-tabs.ab-seg button{margin:0!important;padding:9px 14px!important;border:0!important;border-radius:99px;color:#fff!important}
main .cs .tour .tr-tabs.ab-seg button[aria-selected="true"]{color:#14163a!important}
.tour[data-k="edit"] .ab-thumb{transform:translateX(100%)}
main .cs .tour .tr-tabs.ab-seg button{font:600 14px/1 var(--sans,Inter),system-ui,sans-serif!important}
/* Mode switches sit under the blue box, centered, in page colors */
main .cs .live-ui.ab .ab-seg,main .cs .tour .tr-tabs.ab-seg{order:0;margin:20px auto 0!important;background:var(--soft)!important;box-shadow:inset 0 0 0 1px var(--line)}
main .cs .live-ui.ab .ab-seg button,main .cs .tour .tr-tabs.ab-seg button{color:var(--muted)!important}
main .cs .live-ui.ab .ab-seg button:hover,main .cs .tour .tr-tabs.ab-seg button:hover{color:var(--fg)!important}
main .cs .live-ui.ab .ab-seg button[aria-selected="true"],main .cs .tour .tr-tabs.ab-seg button[aria-selected="true"]{color:#fff!important}
main .cs .live-ui.ab .ab-thumb,main .cs .tour .tr-tabs .ab-thumb{background:var(--accent)!important;box-shadow:none!important}
main .cs .live-ui.oa .oa-seg{margin:20px auto 0!important;background:var(--soft)!important;box-shadow:inset 0 0 0 1px var(--line)}
main .cs .live-ui.oa .oa-seg button{color:var(--muted)!important}
main .cs .live-ui.oa .oa-seg button:hover{color:var(--fg)!important}
main .cs .live-ui.oa .oa-seg button[aria-selected="true"]{color:#fff!important}
main .cs .live-ui.oa .oa-seg .ab-thumb{background:var(--accent)!important;box-shadow:none!important}
main .cs .live-ui.oa .oa-seg{margin:0 auto 20px!important}
/* Step 1 audit: Before/After tabs run across the top of the whole block */
main .cs .live-ui.found.side.ba>.ba-tabs{grid-column:1/-1;margin:0 0 4px}
/* Step 2: same layout as Step 1. Tabs on top, blue phone left, text right */
main .cs .live-ui.oa2{margin:48px 0!important}
@media (min-width:900px){main .cs .live-ui.oa2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:40px;align-items:center}}
.oa2>.ba-tabs{grid-column:1/-1;margin:0 0 4px}
.oa2 .oa-box{display:flex;justify-content:center;padding:clamp(20px,3vw,36px) clamp(28px,5vw,64px);border-radius:var(--radius);background:#3867ff}
.oa2 .oa-phones{display:grid;width:100%;max-width:300px}
main .cs .live-ui.oa2 .oa-ph{grid-area:1/1;display:block;width:100%;height:auto;margin:0!important;border:0!important;background:none!important;box-shadow:none!important;border-radius:14.7% / 7.2%!important;transition:opacity .25s}
main .cs .live-ui.oa2 .oa-ph:not(.on){opacity:0!important}
main .cs .live-ui.oa2 .oa-ph.on{opacity:1!important}
.oa2 .oa-side{display:grid}
.oa2 .oa-mode{grid-area:1/1;opacity:0;visibility:hidden;transition:opacity .3s,visibility .3s}
.oa2 .oa-mode.on{opacity:1;visibility:visible}
@media (max-width:899px){.oa2 .oa-side{margin-top:24px}}
.oa2 .oa-t{display:block;margin:0 0 8px;font:600 20px/1.3 var(--body);color:var(--fg)}
.oa2 .oa-d{margin:0!important;font-size:16px!important;line-height:1.55!important;color:var(--muted)!important}
.oa2 .oa-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 24px}
.oa2 .oa-tabs button{padding:8px 14px;border:1px solid var(--line);border-radius:99px;background:none;color:var(--muted);font:600 14px/1 var(--sans,Inter),system-ui,sans-serif;cursor:pointer;transition:background .2s,color .2s,border-color .2s}
.oa2 .oa-tabs button:hover{color:var(--fg);border-color:var(--muted)}
.oa2 .oa-tabs button[aria-selected="true"]{background:var(--accent);border-color:var(--accent);color:#fff}
.oa2 .oa-chain{display:flex;flex-wrap:wrap;align-items:center;gap:0;margin:24px 0 0!important;padding:0!important;list-style:none}
.oa2 .oa-chain li{position:relative;margin:0!important;padding:8px 12px!important;border:1px solid var(--line);border-radius:99px;font:600 13px/1 var(--sans,Inter),system-ui,sans-serif;color:var(--muted)}
.oa2 .oa-chain li::before{display:none!important}
.oa2 .oa-chain li+li{margin-left:22px!important}
.oa2 .oa-chain li+li::after{content:"→";position:absolute;left:-18px;top:50%;transform:translateY(-50%);color:var(--muted);font-weight:400}
.oa2 .oa-chain li:last-child{background:var(--accent);border-color:var(--accent);color:#fff}
@media (prefers-reduced-motion:reduce){.oa2 .oa-mode,main .cs .live-ui.oa2 .oa-ph{transition:none}}
.oa2 .oa-side{text-align:left}
.oa2 .oa-chain li{background:none!important}
.oa2 .oa-chain li:last-child{background:var(--accent)!important;color:#fff!important}
.oa2 .oa-chain li+li::after{color:var(--muted)!important;left:-18px!important}
main .cs .live-ui.oa2 .oa-side,main .cs .live-ui.oa2 .oa-t,main .cs .live-ui.oa2 .oa-d{text-align:left!important}
main .cs .live-ui.oa2 .oa-tabs{justify-content:flex-start!important;margin:0 0 24px!important}
main .cs .live-ui.oa2 .oa-chain{justify-content:flex-start!important;margin:24px 0 0!important}
main .cs .live-ui.oa2 .oa-mode{display:block!important}
/* Before/After as the same pill switch as Web, centered above the block */
main .cs .live-ui .ba-tabs.ba-pill{grid-column:1/-1;display:grid!important;grid-template-columns:1fr 1fr;gap:0!important;width:min(240px,100%)!important;margin:0 auto 20px!important;padding:4px!important;border:0!important;border-radius:99px;background:var(--soft)!important;box-shadow:inset 0 0 0 1px var(--line)}
main .cs .live-ui .ba-tabs.ba-pill button{position:relative;z-index:1;margin:0!important;padding:9px 14px!important;border:0!important;border-radius:99px;background:none;color:var(--muted)!important;font:600 14px/1 var(--sans,Inter),system-ui,sans-serif!important}
main .cs .live-ui .ba-tabs.ba-pill button:hover{color:var(--fg)!important}
main .cs .live-ui .ba-tabs.ba-pill button[aria-selected="true"]{color:#fff!important}
main .cs .live-ui .ba-tabs.ba-pill .ab-thumb{background:var(--accent)!important;box-shadow:none!important}
main .cs .found.ba[data-mode="after"] .ba-pill .ab-thumb,main .cs .oa2[data-mode="after"] .ba-pill .ab-thumb{transform:translateX(100%)}
/* Before/After pill centered over the blue box, not the whole block */
@media (min-width:900px){
 main .cs .live-ui.found.side.ba>.ba-pill,main .cs .live-ui.oa2>.ba-pill{grid-column:1;grid-row:1}
 main .cs .live-ui.found.side.ba>.fd-box,main .cs .live-ui.oa2>.oa-box{grid-column:1;grid-row:2}
 main .cs .live-ui.found.side.ba>.fd-side,main .cs .live-ui.oa2>.oa-side{grid-column:2;grid-row:2;align-self:center}
 main .cs .live-ui.found.side.ba,main .cs .live-ui.oa2{row-gap:0!important}
}
@media (min-width:900px){main .cs .live-ui.found.side.ba>.fd-box,main .cs .live-ui.oa2>.oa-box{align-self:start}}
/* Audit dots: pink (before) and blue (after) the same size */
main .cs .live-ui.found .fd-dot,main .cs .found.ba[data-mode="after"] .fd-dot{width:25px!important;height:25px!important;font-size:12px!important}
/* Before/After audit: hovering the switch alone does not reveal the numbers */
@media (hover:hover){
 main .cs .live-ui.found.ba:has(.ba-pill:hover):not([data-active]) .fd-dot,
 main .cs .live-ui.found.ba:has(.ba-pill:hover):not([data-active]) .fd-area{opacity:0!important;pointer-events:none}
}
/* Step 2: screen tabs under the phone, inside the blue box; reserved but hidden in Before */
.oa2 .oa-box{flex-direction:column;align-items:center}
main .cs .live-ui.oa2 .oa-box .oa-tabs{justify-content:center!important;margin:24px 0 0!important}
.oa2 .oa-box .oa-tabs button{border-color:transparent;background:rgba(255,255,255,.16);color:#fff}
.oa2 .oa-box .oa-tabs button:hover{background:rgba(255,255,255,.28);color:#fff;border-color:transparent}
.oa2 .oa-box .oa-tabs button[aria-selected="true"]{background:#fff;color:#14163a;border-color:#fff}
.oa2[data-mode="before"] .oa-box .oa-tabs{visibility:hidden}
.oa2 .oa-box{padding-left:20px!important;padding-right:20px!important}
main .cs .live-ui.oa2 .oa-box .oa-tabs{flex-wrap:nowrap!important;gap:6px!important}
main .cs .live-ui.oa2 .oa-box .oa-tabs button{padding:7px 11px!important;font-size:13px!important;white-space:nowrap}
/* Articles: the cover photo is the hero, title over it */
.cs-hero-full.art .art-media{position:absolute;inset:0;overflow:hidden}
.cs-hero-full.art .art-media img{width:100%;height:100%;object-fit:cover;display:block;opacity:1!important;transform:none!important;filter:none!important;border-radius:0!important}
.cs-hero-full.art .art-media::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(10,10,16,.92) 0%,rgba(10,10,16,.6) 38%,rgba(10,10,16,.15) 75%,rgba(10,10,16,.35) 100%)}
.cs-hero-full.art .hf-text{z-index:2}
@media (max-width:900px){
 .cs-hero-full.art .art-media{position:relative!important;inset:auto!important;order:0!important;aspect-ratio:16/10}
 .cs-hero-full.art .art-media::after{display:none}
 .cs-hero-full.art{background:var(--bg)!important;color:var(--fg)!important}
}
main .cs .art-lead{margin:0 0 56px}main .cs .art-lead .csec{padding:0!important;margin:0!important;border:0!important}main .cs .art-lead p{font-size:18px;line-height:1.6}
/* Web hero: laptop sits lower */
@media (min-width:901px){.cs-hero-full .hf-media.fit img[src*="web-hero2"]{top:calc(50% + 84px)!important}}
/* Articles: no full bleed. Title left, the photo as a framed card on the right at its own ratio */
@media (min-width:901px){
 .cs-hero-full.art{background:var(--bg)!important;color:var(--fg)!important}
 .cs-hero-full.art .art-media{inset:auto!important;top:50%!important;translate:0 -50%;right:max(24px,calc((100vw - 1192px)/2))!important;left:auto!important;width:min(42vw,600px);aspect-ratio:16/9;border-radius:var(--radius);box-shadow:0 30px 60px -30px rgba(0,0,0,.6)}
 .cs-hero-full.art .art-media::after{display:none}
 .cs-hero-full.art .hf-text{top:50%;bottom:auto!important;translate:0 -50%}
 .cs-hero-full.art .hf-text>*{max-width:min(46vw,560px)}
 .cs-hero-full.art .hf-text h1{font-size:clamp(36px,4vw,60px)}
}
.cs-hero-full.art::before,.cs-hero-full.art::after{display:none!important}
/* Articles: Choco blue behind the hero, like the case heroes; shorter subtitle line */
@media (min-width:901px){
 .cs-hero-full.art{background:#3867ff!important;color:#fff!important}
 .cs-hero-full.art .hf-text .eyebrow{color:rgba(255,255,255,.75)!important}
 .cs-hero-full.art .hf-text .sub{max-width:440px!important;color:rgba(255,255,255,.85)!important}
 .cs-hero-full.art .art-media{box-shadow:0 30px 60px -28px rgba(8,18,70,.6)}
}
@media (max-width:900px){
 .cs-hero-full.art{background:#3867ff!important;color:#fff!important}
 .cs-hero-full.art .hf-text .eyebrow{color:rgba(255,255,255,.75)!important}
 .cs-hero-full.art .hf-text .sub{color:rgba(255,255,255,.88)!important}
 .cs-hero-full.art .art-media{margin:16px 16px 0;border-radius:var(--radius);width:auto}
}
/* Read next card: text block centered with even padding */
main .next .post-next div{display:flex!important;flex-direction:column!important;justify-content:center!important;padding:clamp(24px,3.5vw,48px)!important}
main .next .post-next div h3{margin:0 0 12px!important}
main .next .post-next div p{margin:0 0 24px!important}
main .next .post-next div span{margin:0!important}
/* Article hero v3: text and photo sit low in the blue, photo with a caption under it */
@media (min-width:901px){
 .cs-hero-full.art .hf-text{top:auto!important;bottom:72px!important;translate:none!important}
 .cs-hero-full.art .art-media{top:auto!important;bottom:72px!important;translate:none!important;aspect-ratio:auto!important;overflow:visible!important;box-shadow:none!important;border-radius:0!important;margin:0}
}
.cs-hero-full.art .art-img{aspect-ratio:16/9;overflow:hidden;border-radius:var(--radius);box-shadow:0 30px 60px -28px rgba(8,18,70,.6)}
.cs-hero-full.art .art-img img{width:100%;height:100%;object-fit:cover;display:block}
.cs-hero-full.art .art-media figcaption{margin:12px 0 0!important;text-align:left!important;font:italic 400 15px/1.4 "Iowan Old Style","Charter",Georgia,serif!important;color:rgba(255,255,255,.82)!important}
@media (max-width:900px){.cs-hero-full.art .art-media{aspect-ratio:auto!important;overflow:visible!important}.cs-hero-full.art .art-media figcaption{margin-top:10px!important}}
/* Step 2 v4: screen tabs under the blue box on the page; numbered list of changes on the right */
@media (min-width:900px){
 main .cs .live-ui.oa2>.oa-tabs{grid-column:1;grid-row:3}
}
main .cs .live-ui.oa2>.oa-tabs{display:flex;justify-content:center!important;flex-wrap:wrap!important;gap:8px!important;margin:20px 0 0!important}
main .cs .live-ui.oa2>.oa-tabs button{padding:8px 14px!important;font-size:14px!important;border:1px solid var(--line)!important;background:none!important;color:var(--muted)!important}
main .cs .live-ui.oa2>.oa-tabs button:hover{color:var(--fg)!important;border-color:var(--muted)!important}
main .cs .live-ui.oa2>.oa-tabs button[aria-selected="true"]{background:var(--accent)!important;border-color:var(--accent)!important;color:#fff!important}
main .cs .live-ui.oa2[data-mode="before"]>.oa-tabs{visibility:hidden}
.oa2 .oa-mode[data-m="after"]{display:grid!important}
.oa2 .oa-scr{grid-area:1/1;opacity:0;visibility:hidden;transition:opacity .25s,visibility .25s}
.oa2 .oa-scr.on{opacity:1;visibility:visible}
main .cs .live-ui.oa2 .oa-list{list-style:none;margin:16px 0 0!important;padding:0!important;border-top:1px solid var(--line)}
main .cs .live-ui.oa2 .oa-list li{display:flex;gap:14px;align-items:flex-start;margin:0!important;padding:14px 0!important;border-bottom:1px solid var(--line);font-size:16px;line-height:1.5;color:var(--muted);text-align:left}
main .cs .live-ui.oa2 .oa-list li::before{display:none!important}
main .cs .live-ui.oa2 .oa-list .n{flex:none;display:flex;align-items:center;justify-content:center;width:24px;height:24px;margin-top:1px;border:1.5px solid var(--line);border-radius:50%;font-size:12px;color:var(--fg);font-variant-numeric:tabular-nums}
main .cs .live-ui.oa2 .oa-mode[data-m="after"]{display:grid!important}
/* Step 2 v5: Before and After both get their own screen tabs, underline style, under the blue box; notes start at the top */
main .cs .live-ui.oa3 .oa-tabbar{display:grid;margin:20px 0 0}
main .cs .live-ui.oa3 .oa-tabbar .oa-tabs{grid-area:1/1;display:flex!important;flex-wrap:nowrap!important;justify-content:center!important;gap:clamp(16px,3vw,28px)!important;margin:0!important;padding:0!important;border-bottom:1px solid var(--line);visibility:hidden;opacity:0;transition:opacity .25s,visibility .25s}
main .cs .live-ui.oa3 .oa-tabbar .oa-tabs.on{visibility:visible;opacity:1}
main .cs .live-ui.oa3 .oa-tabbar .oa-tabs button{margin:0 0 -1px!important;padding:0 0 12px!important;border:0!important;border-bottom:2px solid transparent!important;border-radius:0!important;background:none!important;color:var(--muted)!important;font:600 15px/1 var(--sans,Inter),system-ui,sans-serif!important;white-space:nowrap;cursor:pointer;transition:color .2s,border-color .2s}
main .cs .live-ui.oa3 .oa-tabbar .oa-tabs button:hover{color:var(--fg)!important}
main .cs .live-ui.oa3 .oa-tabbar .oa-tabs button[aria-selected="true"]{color:var(--fg)!important;border-bottom-color:var(--accent)!important}
main .cs .live-ui.oa3 .oa-mode{display:grid!important;align-items:start!important;align-content:start!important}
main .cs .live-ui.oa3 .oa-scr{align-self:start!important}
main .cs .live-ui.oa3 .oa-t{margin-top:0}
@media (min-width:900px){
 main .cs .live-ui.oa3>.oa-tabbar{grid-column:1;grid-row:3}
 main .cs .live-ui.oa3>.oa-side{grid-column:2;grid-row:2/4;align-self:start!important;margin-top:0}
}
@media (max-width:899px){main .cs .live-ui.oa3 .oa-side{margin-top:28px}}
@media (max-width:420px){main .cs .live-ui.oa3 .oa-tabbar .oa-tabs button{font-size:14px!important}}
@media (prefers-reduced-motion:reduce){main .cs .live-ui.oa3 .oa-tabbar .oa-tabs{transition:none}}
main .wrap:has(>.cover)+article .cs-body{margin-top:clamp(40px,5vw,72px)}
/* Articles v5: photo then title, both in the text column next to the chapter list */
main .cs .art-top{margin:0 0 48px}
main .cs .art-top .cover{margin:0 0 32px!important;max-width:none}
main .cs .art-top .cover img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:var(--radius);display:block}
main .cs .art-top .cs-hero{padding:0!important;margin:0!important;max-width:none!important}
main .cs .art-top .cs-hero h1{font-size:clamp(34px,4vw,52px)!important;line-height:1.05!important;margin:10px 0 16px!important}
main .cs .art-top .cs-hero .sub{max-width:none!important;margin:0!important}
main article:has(.art-top){padding-top:clamp(32px,4vw,56px)}
main article:has(.art-top){padding-top:0!important}main article:has(.art-top) .cs-body{margin-top:40px!important}
main .cs .art-top .cover{margin-bottom:48px!important}main .cs .art-top{margin-bottom:72px!important}
main .next .post-next div{justify-content:space-between!important;padding:clamp(24px,2.6vw,36px)!important}main .next .post-next div p{margin-bottom:24px!important}main .next .post-next div span{margin-top:auto!important}
main .cs-toc .toc-top.art-toc small{margin:0}
main .cs-toc .toc-top.art-toc small{font-size:15px!important;font-weight:600!important;color:var(--fg)!important;letter-spacing:0}
/* Articles: the chapter list starts where it sticks, so it stays put instead of sliding up first */
main article:has(.art-top) .cs-toc{top:105px!important}
main .cs-toc .toc-top.art-toc small{color:var(--muted)!important}
/* Step 2 v6: screen tabs top right, above the notes, no title */
main .cs .live-ui.oa3 .oa-side .oa-tabbar{margin:0 0 4px!important}
main .cs .live-ui.oa3 .oa-side .oa-tabbar .oa-tabs{justify-content:flex-start!important}
main .cs .live-ui.oa3 .oa-list{margin-top:0!important;border-top:0!important}
@media (min-width:900px){main .cs .live-ui.oa3>.oa-side{grid-row:2!important;align-self:start!important}}
main .cs .live-ui.oa3 .oa-side>.oa-tabbar{grid-area:1/1}main .cs .live-ui.oa3 .oa-side>.oa-mode{grid-area:2/1!important}
/* Step 2 tap flow: a pill per screen, a pink dot per tap */
main .cs .live-ui.tflow{margin:40px 0!important;padding:clamp(20px,3vw,32px);border:1px solid var(--line);border-radius:var(--radius);background:var(--soft)}
.tflow .tf-row{display:grid;grid-template-columns:150px minmax(0,1fr) 72px;gap:16px;align-items:center;padding:14px 0;border-bottom:1px solid var(--line)}
.tflow .tf-row:first-child{padding-top:0}
.tflow .tf-name{margin:0!important;font-size:14px!important;line-height:1.35!important;color:var(--muted)!important}
.tflow .tf-row.new .tf-name{color:var(--fg)!important;font-weight:600}
.tflow .tf-steps{display:flex;flex-wrap:wrap;gap:6px 18px;margin:0!important;padding:0!important;list-style:none}
.tflow .tf-p{position:relative;display:inline-flex;align-items:center;gap:7px;margin:0!important;padding:6px 10px!important;border:1px solid var(--line);border-radius:99px;font:500 13px/1 var(--sans,Inter),system-ui,sans-serif;color:var(--fg);white-space:nowrap}
.tflow .tf-p::before{display:none!important}
.tflow .tf-p+.tf-p::after{content:"→";position:absolute;left:-15px;top:50%;transform:translateY(-50%);font-size:11px;color:var(--muted)}
.tflow .tf-p i{display:inline-flex;gap:3px}
.tflow .tf-p i b{width:7px;height:7px;border-radius:50%;background:#e8559b}
.tflow .tf-p.gone span{text-decoration:line-through;text-decoration-color:#e8559b;opacity:.55}
.tflow .tf-p.gone i b{opacity:.55}
.tflow .tf-row.new .tf-p{background:#3867ff;border-color:#3867ff;color:#fff}
.tflow .tf-n{margin:0!important;text-align:right;font-size:13px!important;color:var(--muted)!important;white-space:nowrap}
.tflow .tf-n b{font:700 24px/1 var(--display,inherit);color:var(--fg)}
.tflow .tf-row.new .tf-n b{color:#3867ff}
.tflow figcaption{margin:14px 0 0!important;text-align:left!important;font:400 13px/1.5 var(--body)!important;font-style:normal!important;color:var(--muted)!important}
@media (max-width:640px){.tflow .tf-row{grid-template-columns:1fr auto}.tflow .tf-steps{grid-column:1/-1;grid-row:2}.tflow .tf-n{grid-row:1}}
/* Tap flow v2: plain before/now bars */
main .cs .live-ui.tflow2{display:block}
.tflow2 .tf-h{margin:0 0 20px!important;font:600 15px/1.3 var(--body)!important;color:var(--fg)!important}
.tflow2 .tf-row{display:block!important;padding:0 0 20px!important;margin:0 0 20px;border-bottom:1px solid var(--line)}
.tflow2 .tf-row:last-of-type{margin-bottom:0;border-bottom:0;padding-bottom:0!important}
.tflow2 .tf-name{margin:0 0 10px!important;font-size:14px!important;color:var(--muted)!important}
.tflow2 .tf-bar{display:grid;grid-template-columns:64px minmax(0,1fr) 72px;align-items:center;gap:12px;margin:6px 0}
.tflow2 .tf-k{font-size:14px;color:var(--muted)}
.tflow2 .tf-track{height:12px;border-radius:99px;background:var(--line);overflow:hidden}
.tflow2 .tf-fill{display:block;height:100%;width:var(--w);border-radius:99px;background:var(--muted)}
.tflow2 .tf-bar.new .tf-fill{background:#3867ff}
.tflow2 .tf-bar.new .tf-k{color:var(--fg);font-weight:600}
.tflow2 .tf-v{font-size:14px;color:var(--muted);white-space:nowrap;text-align:right}
.tflow2 .tf-v b{font:700 20px/1 var(--display,inherit);color:var(--fg)}
.tflow2 .tf-bar.new .tf-v b{color:#3867ff}
.tflow2 figcaption{margin:20px 0 0!important}

/* Order from anywhere: tabs share the full divider width */
main .cs .live-ui.oa3 .oa-side .oa-tabbar .oa-tabs{justify-content:stretch!important;gap:0!important}
main .cs .live-ui.oa3 .oa-side .oa-tabbar .oa-tabs button{flex:1 1 0;text-align:center;padding-left:4px!important;padding-right:4px!important}

/* Order from anywhere: numbered markers on the phone, shown while pointing at the block, linked to the list */
main .cs .live-ui.oa3 .oa-ph{position:relative}
main .cs .live-ui.oa3 .oa-ph img{display:block;width:100%!important;height:auto!important;margin:0!important;border:0!important;box-shadow:none!important;border-radius:14.7% / 7.2%!important;background:none!important}
main .cs .live-ui.oa3 .oa-ph:not(.on),main .cs .live-ui.oa3 .oa-ph:not(.on) .oa-dot{pointer-events:none}
main .cs .live-ui.oa3 .oa-dot{position:absolute;z-index:2;translate:-50% -50%;width:25px;height:25px;padding:0!important;border-radius:50%;border:2px solid #fff;background:#ff2eaa;color:#fff;font:700 12px/1 var(--sans,Inter),system-ui,sans-serif;font-variant-numeric:tabular-nums;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 2px 8px rgba(80,0,50,.35);transition:opacity .25s,transform .2s,background .2s}
main .cs .live-ui.oa3[data-mode="after"] .oa-dot{background:#3867ff;box-shadow:0 2px 8px rgba(8,18,70,.4)}
main .cs .live-ui.oa3 .oa-dot.on{transform:scale(1.18)}
main .cs .live-ui.oa3[data-active] .oa-dot:not(.on){opacity:.4}
main .cs .live-ui.oa3 .oa-list li{transition:color .2s}
main .cs .live-ui.oa3 .oa-list li[data-i]{cursor:default}
main .cs .live-ui.oa3 .oa-list li.on{color:var(--fg)}
main .cs .live-ui.oa3 .oa-list li.on .n{border-color:#ff2eaa;background:#ff2eaa;color:#fff}
main .cs .live-ui.oa3[data-mode="after"] .oa-list li.on .n{border-color:#3867ff;background:#3867ff}
@media (hover:hover){main .cs .live-ui.oa3:not(:hover):not(:has(:focus-visible)) .oa-dot{opacity:0!important;pointer-events:none}}
@media (max-width:760px){main .cs .live-ui.oa3 .oa-dot{width:21px;height:21px;font-size:11px}}
@media (prefers-reduced-motion:reduce){main .cs .live-ui.oa3 .oa-dot{transition:none}}
/* Order from anywhere: Issues / Improvements heading above the notes */
main .cs .live-ui.oa3 .oa-h{margin:22px 0 4px!important;padding:0!important;font:500 12px/1 var(--mono,ui-monospace),monospace!important;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)!important}

/* Narrow home tiles: read time on its own line, so the text stays clear of the photo */
/* Step 1 product row: old row next to the new one you can use */
main .cs .live-ui.prow{margin:32px 0!important}
main .cs .prow .pr-box{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start;padding:clamp(20px,3vw,32px);border-radius:var(--radius);background:#3867ff}
main .cs .prow .pr-lab{display:block;margin:0 0 10px;font:500 12px/1 var(--mono,ui-monospace),monospace;letter-spacing:.1em;text-transform:uppercase;color:rgba(255,255,255,.85)}
main .cs .prow .pr-lab em{font-style:normal;margin-left:6px;padding:3px 6px;border-radius:4px;background:rgba(255,255,255,.18);color:#fff}
main .cs .prow .pr-card{position:relative;border-radius:14px;background:#fff;color:#111;overflow:hidden;font-family:Inter,system-ui,-apple-system,sans-serif;box-shadow:0 12px 30px -14px rgba(8,18,70,.5)}
main .cs .prow .pr-old img{display:block;width:100%!important;height:auto!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:none!important}
main .cs .prow .pr-new{display:grid;grid-template-columns:30% 1fr auto;grid-template-areas:"img info star" "pick pick cart";column-gap:12px;row-gap:12px;padding:14px}
main .cs .prow .pr-img{grid-area:img;width:100%!important;height:auto!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:none!important;align-self:center}
main .cs .prow .pr-info{grid-area:info;display:flex;flex-direction:column;min-width:0}
main .cs .prow .pr-info b{font-weight:400;font-size:15px;line-height:1.25;color:#111}
main .cs .prow .pr-info small{font-size:13px;color:#8a8a8a;margin-top:2px}
main .cs .prow .pr-info strong{margin-top:auto;padding-top:10px;font-size:15px;font-weight:700;color:#111}
main .cs .prow button{font:inherit;cursor:pointer;margin:0!important}
main .cs .prow .pr-star{grid-area:star;align-self:start;width:40px;height:40px;padding:3px!important;margin:-4px -4px 0 0!important;border:0!important;background:none!important;color:#c6d4ff;transition:transform .2s,color .2s}
main .cs .prow .pr-star svg{width:100%;height:100%;fill:currentColor}
main .cs .prow .pr-star[aria-pressed="true"]{color:#3867ff;transform:scale(1.12)}
main .cs .prow .pr-pick{grid-area:pick;display:flex;align-items:center;height:42px;border:1px solid #e9e4dc;border-radius:2px;max-width:260px}
main .cs .prow .pr-qty{width:34%;height:100%;padding:0 6px!important;margin:0!important;border:0!important;border-right:1px solid #e9e4dc!important;border-radius:0!important;background:none!important;box-shadow:none!important;text-align:center;font:700 15px/1 Inter,system-ui,sans-serif;color:#111;outline:none}
main .cs .prow .pr-qty:focus{background:#f3f6ff!important}
main .cs .prow .pr-qty::placeholder{color:#b5b5b5;opacity:1}
main .cs .prow .pr-unit{flex:1;display:flex;align-items:center;justify-content:center;gap:6px;height:100%;padding:0 8px!important;border:0!important;background:none!important;color:#111;font-size:15px}
main .cs .prow .pr-unit svg{width:16px;height:16px;color:#3867ff}
main .cs .prow .pr-cart{grid-area:cart;justify-self:end;width:42px;height:42px;padding:10px!important;border:0!important;border-radius:50%;background:#3867ff!important;color:#fff;transition:transform .15s}
main .cs .prow .pr-cart svg{width:100%;height:100%;fill:currentColor}
main .cs .prow .pr-cart:active{transform:scale(.92)}
main .cs .prow .pr-msg{grid-area:msg;min-height:18px;margin:0!important;font-size:13px!important;line-height:18px!important;color:#5b6b9a!important}
main .cs .prow .pr-sheet{position:absolute;inset:auto 0 0 0;display:flex;flex-direction:column;gap:2px;padding:14px;border-radius:14px 14px 0 0;background:#fff;box-shadow:0 -10px 30px rgba(8,18,70,.18);animation:prUp .2s ease-out}
main .cs .prow .pr-sheet[hidden]{display:none}
main .cs .prow .pr-sheet b{font-size:14px;margin-bottom:6px;color:#111}
main .cs .prow .pr-sheet button[data-u]{display:flex;justify-content:space-between;padding:9px 10px!important;border:0!important;border-radius:8px;background:none!important;color:#111;text-align:left;font-size:14px}
main .cs .prow .pr-sheet button[aria-pressed="true"]{background:#eef2ff!important;color:#2c56e0;font-weight:600}
main .cs .prow .pr-sheet button[aria-pressed="true"]::after{content:"✓"}
main .cs .prow .pr-done{margin-top:6px!important;padding:9px!important;border:0!important;border-radius:999px;background:#3867ff!important;color:#fff;font-weight:600;font-size:14px}
@keyframes prUp{from{transform:translateY(30%);opacity:0}to{transform:none;opacity:1}}
@media (max-width:700px){main .cs .prow .pr-box{grid-template-columns:1fr}}
@media (prefers-reduced-motion:reduce){main .cs .prow .pr-sheet{animation:none}main .cs .prow .pr-star,main .cs .prow .pr-cart{transition:none}}
main .cs .prow .pr-qty{border-right:1px solid #e9e4dc!important}
main .cs .prow .pr-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
main .cs .prow .pr-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 10px;min-height:26px}
main .cs .prow .pr-head .pr-lab{margin:0}
main .cs .prow .pr-tog{display:flex;padding:2px;border-radius:999px;background:rgba(255,255,255,.18)}
main .cs .prow .pr-tog button{padding:4px 10px!important;border:0!important;border-radius:999px;background:none!important;color:#fff;font:500 12px/1.2 var(--sans,Inter),system-ui,sans-serif;white-space:nowrap}
main .cs .prow .pr-tog button[aria-pressed="true"]{background:#fff!important;color:#2c56e0}
main .cs .prow .pr-col:first-child .pr-lab{line-height:26px;margin-bottom:10px}
main .cs .prow.noimg .pr-img{display:none}
main .cs .prow.noimg .pr-new{grid-template-columns:1fr auto;grid-template-areas:"info star" "pick cart"}
main .cs .prow.noimg .pr-info strong{padding-top:6px}
main .cs .prow .pr-star{justify-self:center;margin:-4px 0 0!important}
main .cs .prow .pr-cart{justify-self:center}
/* product row picker, as in Figma: field with amount and unit; cart button, then outlined minus and filled plus */
main .cs .prow .pr-pick{max-width:200px!important}
main .cs .prow .pr-qty{width:46%!important}
main .cs .prow .pr-act{grid-area:cart;justify-self:end;display:flex;align-items:center;gap:16px}
main .cs .prow .pr-act .pr-cart{grid-area:auto}
main .cs .prow .pr-act .pr-step{display:none;width:34px;height:34px;padding:0!important;border-radius:50%;border:1.5px solid #3867ff!important;font:400 22px/1 Inter,system-ui,sans-serif;align-items:center;justify-content:center}
main .cs .prow .pr-minus{background:#fff!important;color:#3867ff}
main .cs .prow .pr-plus{background:#3867ff!important;color:#fff}
main .cs .prow.active .pr-act .pr-step{display:flex}
main .cs .prow.active .pr-act .pr-cart{display:none}
main .cs .prow .pr-star{justify-self:end;margin:-4px -2px 0 0!important}
/* product row: image toggle above the box; the old row rebuilt so its picker works (whole boxes only, unit fixed) */
main .cs .prow>.pr-tog{display:flex;width:max-content;margin:0 0 14px auto;padding:3px;border-radius:999px;background:var(--line);}
main .cs .prow>.pr-tog button{padding:7px 14px!important;color:var(--muted);font-size:13px}
main .cs .prow>.pr-tog button[aria-pressed="true"]{background:var(--fg)!important;color:var(--bg)}
main .cs .prow .pr-lab{line-height:20px!important;margin:0 0 10px!important}
main .cs .prow .pr-old{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px}
main .cs .prow .po-info{display:flex;flex-direction:column;min-width:0;max-width:58%}
main .cs .prow .po-info b{font-weight:400;font-size:15px;line-height:1.3;color:#111}
main .cs .prow .po-info small{margin-top:3px;font-size:12px;color:#9a9a9a}
main .cs .prow .po-chip{align-self:flex-start;margin-top:8px;padding:3px 8px;border-radius:999px;background:#f4f2ef;font-size:12px;color:#9a9a9a}
main .cs .prow .po-pick{flex:none;display:flex;align-items:stretch;height:46px;border:1px solid #dcdcdc;border-radius:6px;overflow:hidden}
main .cs .prow .po-step{width:36px;padding:0!important;border:0!important;background:none!important;color:#3867ff;font:400 22px/1 Inter,system-ui,sans-serif}
main .cs .prow .po-step:disabled{color:#c9c9c9;cursor:default}
main .cs .prow .po-val{display:flex;flex-direction:column;align-items:center;justify-content:center;width:56px;border-left:1px solid #dcdcdc;border-right:1px solid #dcdcdc}
main .cs .prow .po-val b{font-size:16px;font-weight:700;color:#111;line-height:1.1}
main .cs .prow .po-val small{font-size:11px;color:#9a9a9a}
/* product row v3: image switch inside the box (none, white, full photo), bigger steppers with press state, rolling counter */
main .cs .prow .pr-box{grid-template-areas:"tog tog" "old new";grid-template-columns:1fr 1fr}
main .cs .prow .pr-box>.pr-tog{grid-area:tog;justify-self:end;margin:0 0 -4px;padding:3px;background:rgba(255,255,255,.18)}
main .cs .prow .pr-box>.pr-tog button{padding:6px 12px!important;color:#fff;font-size:13px}
main .cs .prow .pr-box>.pr-tog button[aria-pressed="true"]{background:#fff!important;color:#2c56e0}
main .cs .prow .pr-box>.pr-col:nth-child(2){grid-area:old}
main .cs .prow .pr-box>.pr-col:nth-child(3){grid-area:new}
main .cs .prow .pr-img{display:flex;align-items:center;justify-content:center;aspect-ratio:1;border-radius:6px;overflow:hidden;background:#fff}
main .cs .prow .pr-img img{display:block;width:100%!important;height:100%!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:none!important;object-fit:contain}
main .cs .prow .pr-img .pi-fill{display:none;object-fit:cover}
main .cs .prow[data-img="fill"] .pi-white{display:none}
main .cs .prow[data-img="fill"] .pi-fill{display:block}
main .cs .prow[data-img="none"] .pr-img{display:none}
main .cs .prow[data-img="none"] .pr-new{grid-template-columns:1fr auto;grid-template-areas:"info star" "pick cart"}
main .cs .prow[data-img="none"] .pr-info strong{padding-top:6px}
main .cs .prow .pr-act .pr-step{width:42px;height:42px;font-size:26px;padding-bottom:2px!important;-webkit-user-select:none;user-select:none;touch-action:manipulation;transition:transform .1s,background .1s}
main .cs .prow .pr-act button:active,main .cs .prow .pr-act button.down{transform:scale(.9)}
main .cs .prow .pr-plus:active{background:#2547c9!important}
main .cs .prow .pr-minus:active{background:#e6ecff!important}
main .cs .prow .pr-cart:active{background:#2547c9!important}
main .cs .prow .po-step{display:flex;align-items:center;justify-content:center;padding:0 0 3px!important;-webkit-user-select:none;user-select:none;touch-action:manipulation;transition:background .1s}
main .cs .prow .po-step:not(:disabled):active{background:#eef2ff!important}
main .cs .prow .po-val b{display:block}
main .cs .prow .pr-pick{overflow:hidden}
@media (max-width:700px){main .cs .prow .pr-box{grid-template-columns:1fr;grid-template-areas:"tog" "old" "new"}main .cs .prow .pr-box>.pr-tog{justify-self:stretch}main .cs .prow .pr-box>.pr-tog button{flex:1}}

/* Step 1 row: image choice as a dropdown above the blue box */
main .cs .prow .pr-box{grid-template-areas:"old new"!important}
main .cs .prow .pr-sel{position:relative;display:flex;align-items:center;gap:10px;width:max-content;margin:0 0 12px auto;font:500 13px/1 var(--sans,Inter),system-ui,sans-serif;color:var(--muted)}
main .cs .prow .pr-sel select{appearance:none;-webkit-appearance:none;margin:0!important;padding:8px 34px 8px 12px!important;border:1px solid var(--line)!important;border-radius:8px!important;background:var(--bg)!important;color:var(--fg);font:500 13px/1.2 var(--sans,Inter),system-ui,sans-serif;cursor:pointer}
main .cs .prow .pr-sel select:focus-visible{outline:2px solid #3867ff;outline-offset:2px}
main .cs .prow .pr-sel svg{position:absolute;right:10px;width:16px;height:16px;pointer-events:none;color:var(--muted)}
@media (max-width:700px){main .cs .prow .pr-box{grid-template-areas:"old" "new"!important}main .cs .prow .pr-sel{margin-left:0}}
main .cs .prow .pr-box>.pr-col:nth-child(1){grid-area:old}
main .cs .prow .pr-box>.pr-col:nth-child(2){grid-area:new}
/* smaller image; the line between amount and unit lines up with the image's right edge */
main .cs .prow .pr-new{--pi:76px;grid-template-columns:var(--pi) 1fr auto!important}
main .cs .prow .pr-qty{width:calc(var(--pi) - 1px)!important;flex:none}
main .cs .prow .pr-info strong{padding-top:6px}
main .cs .prow[data-img="none"] .pr-new{grid-template-columns:1fr auto!important}
main .cs .prow .pr-sel select:focus,main .cs .prow .pr-sel select:focus-visible{outline:none!important;box-shadow:none!important}
main .cs .prow .pr-sel select:hover,main .cs .prow .pr-sel select:focus-visible{border-color:var(--muted)!important}
main .cs .prow .pr-sel{margin-bottom:24px!important}
/* image a bit bigger; amount and unit are equal halves, the line still under the image's edge */
main .cs .prow .pr-new{--pi:88px}
main .cs .prow .pr-pick{width:calc(var(--pi) * 2)!important;max-width:none!important}
main .cs .prow .pr-unit{flex:1 1 0;min-width:0}
/* add to cart: the cart turns into +, and − slides out from under it to the left */
main .cs .prow .pr-act .pr-plus{position:relative;z-index:1}
main .cs .prow.active .pr-act .pr-minus{animation:prMinusOut .26s cubic-bezier(.2,.8,.2,1)}
@keyframes prMinusOut{from{transform:translateX(calc(100% + 16px));opacity:0}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){main .cs .prow.active .pr-act .pr-minus{animation:none}}
main .cs .prow[data-img="none"] .pr-info{min-height:var(--pi)}

/* amount counter roll on − and + */
main .cs .prow .pr-pick{position:relative}
main .cs .prow .pr-roll{position:absolute;left:0;top:0;bottom:0;width:calc(var(--pi) - 1px);overflow:hidden;pointer-events:none}
main .cs .prow .pr-roll i{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font:normal 700 15px/1 Inter,system-ui,sans-serif;color:#111}
main .cs .prow .pr-qty.rolling{color:transparent!important}
main .cs .prow .pr-roll.up .ro{animation:prOutUp .2s cubic-bezier(.3,.7,.3,1) forwards}
main .cs .prow .pr-roll.up .rn{animation:prInUp .2s cubic-bezier(.3,.7,.3,1) forwards}
main .cs .prow .pr-roll.down .ro{animation:prOutDown .2s cubic-bezier(.3,.7,.3,1) forwards}
main .cs .prow .pr-roll.down .rn{animation:prInDown .2s cubic-bezier(.3,.7,.3,1) forwards}
@keyframes prOutUp{to{transform:translateY(-100%)}}
@keyframes prInUp{from{transform:translateY(100%)}to{transform:none}}
@keyframes prOutDown{to{transform:translateY(100%)}}
@keyframes prInDown{from{transform:translateY(-100%)}to{transform:none}}
@media (prefers-reduced-motion:reduce){main .cs .prow .pr-roll i{animation:none!important}main .cs .prow .pr-roll .ro{display:none}}

/* star: Figma's particle animation. A circle grows, hollows into a ring and bursts into dots while the new star pops in */
main .cs .prow .pr-star{position:relative;overflow:visible;color:#999;transition:none!important;transform:none!important}
main .cs .prow .pr-star svg{position:relative;z-index:1;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linejoin:round;overflow:visible}
main .cs .prow .pr-star[aria-pressed="true"]{color:#c0d5ff;transform:none!important}
main .cs .prow .pr-star[aria-pressed="true"] svg{fill:currentColor}
main .cs .prow .ps-ring{position:absolute;left:50%;top:50%;width:34px;height:34px;margin:-17px 0 0 -17px;border-radius:50%;border:17px solid #c0d5ff;box-sizing:border-box;transform:scale(0);pointer-events:none}
main .cs .prow .ps-dots{position:absolute;left:50%;top:50%;width:0;height:0;pointer-events:none}
main .cs .prow .ps-dots i{position:absolute;left:calc(var(--s) / -2);top:calc(var(--s) / -2);width:var(--s);height:var(--s);border-radius:50%;background:#c0d5ff;opacity:0;transform:rotate(var(--a)) translateY(0)}
main .cs .prow .ps-dots i:nth-child(1){--a:-90deg;--r:24px;--s:4px}
main .cs .prow .ps-dots i:nth-child(2){--a:-74deg;--r:19px;--s:3px}
main .cs .prow .ps-dots i:nth-child(3){--a:-39deg;--r:24px;--s:4px}
main .cs .prow .ps-dots i:nth-child(4){--a:-23deg;--r:19px;--s:3px}
main .cs .prow .ps-dots i:nth-child(5){--a:13deg;--r:24px;--s:4px}
main .cs .prow .ps-dots i:nth-child(6){--a:29deg;--r:19px;--s:3px}
main .cs .prow .ps-dots i:nth-child(7){--a:64deg;--r:24px;--s:4px}
main .cs .prow .ps-dots i:nth-child(8){--a:80deg;--r:19px;--s:3px}
main .cs .prow .ps-dots i:nth-child(9){--a:116deg;--r:24px;--s:4px}
main .cs .prow .ps-dots i:nth-child(10){--a:132deg;--r:19px;--s:3px}
main .cs .prow .ps-dots i:nth-child(11){--a:167deg;--r:24px;--s:4px}
main .cs .prow .ps-dots i:nth-child(12){--a:183deg;--r:19px;--s:3px}
main .cs .prow .ps-dots i:nth-child(13){--a:219deg;--r:24px;--s:4px}
main .cs .prow .ps-dots i:nth-child(14){--a:235deg;--r:19px;--s:3px}
main .cs .prow .pr-star.pop .ps-ring{animation:psRing .42s ease-out forwards}
main .cs .prow .pr-star.pop .ps-dots i{animation:psDot .5s .2s cubic-bezier(.2,.7,.3,1) forwards}
main .cs .prow .pr-star.pop svg{animation:psStar .5s .16s cubic-bezier(.3,1.6,.5,1) backwards}
@keyframes psRing{0%{transform:scale(.3);border-width:17px}45%{transform:scale(1.05);border-width:17px}100%{transform:scale(1.1);border-width:0}}
@keyframes psDot{0%{opacity:1;transform:rotate(var(--a)) translateY(calc(var(--r) * -.55))}70%{opacity:1}100%{opacity:0;transform:rotate(var(--a)) translateY(calc(var(--r) * -1))}}
@keyframes psStar{from{transform:scale(0)}to{transform:scale(1)}}
@media (prefers-reduced-motion:reduce){main .cs .prow .pr-star.pop .ps-ring,main .cs .prow .pr-star.pop .ps-dots i,main .cs .prow .pr-star.pop svg{animation:none}}
/* counter roll: numbers fade out well inside the field, not at its edge */
main .cs .prow .pr-roll{top:9px!important;bottom:9px!important;-webkit-mask-image:linear-gradient(transparent,#000 35%,#000 65%,transparent);mask-image:linear-gradient(transparent,#000 35%,#000 65%,transparent)}
main .cs .prow .pr-roll{top:4px!important;bottom:4px!important;-webkit-mask-image:linear-gradient(transparent,#000 28%,#000 72%,transparent);mask-image:linear-gradient(transparent,#000 28%,#000 72%,transparent)}
/* star: quicker start (circle and ring), the burst after stays the same */
main .cs .prow .pr-star.pop .ps-ring{animation:psRing .3s ease-out forwards}
main .cs .prow .pr-star.pop .ps-dots i{animation:psDot .5s .12s cubic-bezier(.2,.7,.3,1) forwards}
main .cs .prow .pr-star.pop svg{animation:psStar .5s .1s cubic-bezier(.3,1.6,.5,1) backwards}
@keyframes psRing{0%{transform:scale(.3);border-width:17px}35%{transform:scale(1.05);border-width:17px}100%{transform:scale(1.1);border-width:0}}
@media (prefers-reduced-motion:reduce){main .cs .prow .pr-star.pop .ps-ring,main .cs .prow .pr-star.pop .ps-dots i,main .cs .prow .pr-star.pop svg{animation:none}}
main .cs .prow .pr-qty::placeholder{color:#111!important;opacity:1}

/* Step 1 row: case switches under the box */
main .cs .prow .pr-ctl{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:16px}
main .cs .prow .pr-ctl .pr-sel{margin:0!important}
main .cs .prow .pr-chk{position:relative;display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border:1px solid var(--line);border-radius:999px;font:500 13px/1.2 var(--sans,Inter),system-ui,sans-serif;color:var(--muted);cursor:pointer;-webkit-user-select:none;user-select:none;transition:color .15s,border-color .15s,background .15s}
main .cs .prow .pr-chk input{position:absolute;opacity:0;width:1px;height:1px;margin:0;pointer-events:none}
main .cs .prow .pr-chk span::before{content:"";display:inline-block;width:12px;height:12px;margin:0 7px -1px 0;border:1.5px solid currentColor;border-radius:3px;box-sizing:border-box}
main .cs .prow .pr-chk:has(input:checked){color:var(--fg);border-color:var(--fg)}
main .cs .prow .pr-chk:has(input:checked) span::before{background:var(--fg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-4.9' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;border-color:var(--fg)}
main .cs .prow .pr-chk:hover{color:var(--fg)}
main .cs .prow .pr-chk:has(input:focus-visible){outline:2px solid #3867ff;outline-offset:2px}
main .cs .prow .pr-shuf{display:inline-flex;align-items:center;gap:7px;margin:0 0 0 auto!important;padding:8px 14px!important;border:0!important;border-radius:999px;background:#3867ff!important;color:#fff;font:600 13px/1.2 var(--sans,Inter),system-ui,sans-serif;cursor:pointer;transition:transform .1s}
main .cs .prow .pr-shuf:active{transform:scale(.95)}
main .cs .prow .pr-shuf svg{width:15px;height:15px}
/* new row content cases */
main .cs .prow .pr-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
main .cs .prow .pr-del{font-size:12px!important;color:#2f7a3f!important;margin-top:4px!important}
main .cs .prow .pr-del[hidden]{display:none}
main .cs .prow .pr-price{display:flex;align-items:baseline;gap:8px}
main .cs .prow .pr-price.sale span{color:#d6336c}
main .cs .prow .pr-price s{font-size:13px;font-weight:400;color:#9a9a9a}
main .cs .prow .pr-price s[hidden]{display:none}
main .cs .prow .pr-img .pi-fill.zoom{transform:scale(1.45)}
main .cs .prow.nounit .pr-unit svg{display:none}
main .cs .prow.nounit .pr-unit{cursor:default}
main .cs .prow .pr-unit:disabled{opacity:1;color:#111}
main .cs .prow .pr-sheet button[data-u][hidden]{display:none}
@media (max-width:700px){main .cs .prow .pr-shuf{margin-left:0!important}}
main .cs .prow .pr-chk:has(input:checked){color:var(--fg);border-color:#3867ff;background:rgba(61,107,255,.12)}
main .cs .prow .pr-chk:has(input:checked) span::before{background-color:#3867ff;border-color:#3867ff}

/* Before and After above the blue box; inside labels only when the cards stack */
main .cs .prow .pr-heads{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:0 clamp(20px,3vw,32px);margin:0 0 10px}
main .cs .prow .pr-heads span{font:500 12px/1 var(--mono,ui-monospace),monospace;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
main .cs .prow .pr-box .pr-lab{display:none!important}
@media (max-width:700px){main .cs .prow .pr-heads{display:none}main .cs .prow .pr-box .pr-lab{display:block!important}}
/* controls panel */
main .cs .prow .pr-ctl{display:block!important;margin-top:20px;padding:20px 22px 22px;border:1px solid var(--line);border-radius:var(--radius)}
main .cs .prow .pc-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
main .cs .prow .pc-t,main .cs .prow .pc-l{font:500 12px/1 var(--mono,ui-monospace),monospace;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
main .cs .prow .pr-shuf{margin:0!important}
main .cs .prow .pc-img{display:flex;align-items:center;gap:16px;padding-bottom:18px;margin-bottom:18px;border-bottom:1px solid var(--line)}
main .cs .prow .pc-seg{display:inline-flex;padding:3px;border-radius:999px;background:var(--line)}
main .cs .prow .pc-seg label{position:relative;cursor:pointer}
main .cs .prow .pc-seg input{position:absolute;opacity:0;width:1px;height:1px;margin:0}
main .cs .prow .pc-seg span{display:block;padding:7px 14px;border-radius:999px;font:500 13px/1.2 var(--sans,Inter),system-ui,sans-serif;color:var(--muted);white-space:nowrap;transition:background .15s,color .15s}
main .cs .prow .pc-seg input:checked+span{background:var(--bg);color:var(--fg);box-shadow:0 1px 3px rgba(0,0,0,.2)}
main .cs .prow .pc-seg input:focus-visible+span{outline:2px solid #3867ff;outline-offset:1px}
main .cs .prow .pc-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 24px}
main .cs .prow .pc-opt{display:flex;align-items:center;gap:10px;font:500 14px/1.25 var(--sans,Inter),system-ui,sans-serif;color:var(--fg);cursor:pointer;-webkit-user-select:none;user-select:none}
main .cs .prow .pc-opt input{position:absolute;opacity:0;width:1px;height:1px;margin:0}
main .cs .prow .pc-sw{position:relative;flex:none;width:34px;height:20px;border-radius:999px;background:var(--line);transition:background .18s}
main .cs .prow .pc-sw::after{content:"";position:absolute;left:2px;top:2px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.3);transition:transform .18s}
main .cs .prow .pc-opt input:checked+.pc-sw{background:#3867ff}
main .cs .prow .pc-opt input:checked+.pc-sw::after{transform:translateX(14px)}
main .cs .prow .pc-opt input:focus-visible+.pc-sw{outline:2px solid #3867ff;outline-offset:2px}
@media (max-width:700px){main .cs .prow .pc-grid{grid-template-columns:1fr 1fr}main .cs .prow .pc-img{flex-direction:column;align-items:flex-start;gap:10px}main .cs .prow .pc-seg span{padding:7px 11px}}
@media (prefers-reduced-motion:reduce){main .cs .prow .pc-sw,main .cs .prow .pc-sw::after{transition:none}}
main .cs .prow .pr-sheet{z-index:5}

/* product image sits top left in its slot */
main .cs .prow .pr-img{align-self:start!important}
/* panel: switches on the left, Shuffle and an open image menu on the right */
main .cs .prow .pr-ctl{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:24px;align-items:start}
main .cs .prow .pc-main .pc-t{display:block;margin:6px 0 18px}
main .cs .prow .pc-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
main .cs .prow .pc-side{display:flex;flex-direction:column;align-items:stretch;gap:10px;min-width:190px}
main .cs .prow .pc-side .pr-shuf{justify-content:center}
main .cs .prow .pc-menu{display:flex;flex-direction:column;padding:6px;border:1px solid var(--line);border-radius:12px;background:var(--bg);box-shadow:0 8px 24px -12px rgba(0,0,0,.35)}
main .cs .prow .pc-menu .pc-l{padding:6px 8px 8px}
main .cs .prow .pc-menu label{position:relative;cursor:pointer}
main .cs .prow .pc-menu input{position:absolute;opacity:0;width:1px;height:1px;margin:0}
main .cs .prow .pc-menu label span{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 10px;border-radius:8px;font:500 14px/1.2 var(--sans,Inter),system-ui,sans-serif;color:var(--muted)}
main .cs .prow .pc-menu label:hover span{color:var(--fg)}
main .cs .prow .pc-menu input:checked+span{background:rgba(61,107,255,.14);color:var(--fg)}
main .cs .prow .pc-menu input:checked+span::after{content:"✓";color:#3867ff;font-weight:700}
main .cs .prow .pc-menu input:focus-visible+span{outline:2px solid #3867ff;outline-offset:-2px}
@media (max-width:700px){main .cs .prow .pr-ctl{grid-template-columns:1fr}main .cs .prow .pc-side{min-width:0}}

/* panel v3: title and Shuffle on one line; switches and image radios on the same rows */
main .cs .prow .pr-ctl{display:block!important}
main .cs .prow .pc-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
main .cs .prow .pc-head .pc-t{margin:0}
main .cs .prow .pc-body{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:24px}
main .cs .prow .pc-menu{display:grid!important;grid-auto-rows:20px;gap:14px;padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important}
main .cs .prow .pc-grid{grid-auto-rows:20px}
main .cs .prow .pc-rad{display:flex;align-items:center;gap:10px;font:500 14px/1.25 var(--sans,Inter),system-ui,sans-serif;color:var(--fg);cursor:pointer;-webkit-user-select:none;user-select:none;white-space:nowrap}
main .cs .prow .pc-rad input{position:absolute;opacity:0;width:1px;height:1px;margin:0}
main .cs .prow .pc-dot{flex:none;width:18px;height:18px;border-radius:50%;border:1.5px solid var(--muted);box-sizing:border-box;transition:border-color .15s,box-shadow .15s}
main .cs .prow .pc-rad input:checked+.pc-dot{border:5px solid #3867ff}
main .cs .prow .pc-rad input:focus-visible+.pc-dot{outline:2px solid #3867ff;outline-offset:2px}
@media (max-width:700px){main .cs .prow .pc-body{grid-template-columns:1fr}main .cs .prow .pc-head{flex-wrap:wrap}}
main .cs .prow .pc-menu .pc-rad span{display:block;padding:0!important;border-radius:0;background:none!important;color:var(--fg);font:inherit}
main .cs .prow .pc-menu .pc-rad .pc-dot{border-radius:50%}
main .cs .prow .pc-menu .pc-rad input:checked+.pc-dot{background:none!important;border:5px solid #3867ff}
main .cs .prow .pc-menu .pc-rad input+span::after{content:none!important}
/* header on the same columns as the body: Shuffle starts where the image radios start */
main .cs .prow .pc-head{display:grid!important;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:24px;width:100%!important;max-width:none!important}
main .cs .prow .pc-head .pr-shuf{justify-self:start}
@media (max-width:700px){main .cs .prow .pc-head{grid-template-columns:1fr auto}}
/* image radios: checked is a blue circle with a white check */
main .cs .prow .pc-menu .pc-rad .pc-dot{display:block;width:18px;height:18px;border:1.5px solid var(--muted)!important;background:none no-repeat center/12px}
main .cs .prow .pc-menu .pc-rad input:checked+.pc-dot{border:0!important;background:#3867ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.6 6.3l2.2 2.2 4.6-4.8' fill='none' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center/12px!important}
/* Before and After: plain sans labels sitting right on the box edge, After a touch stronger */
main .cs .prow .pr-heads{margin:0 0 8px;padding:0 clamp(20px,3vw,32px)}
main .cs .prow .pr-heads span{font:600 14px/1.2 var(--sans,Inter),system-ui,sans-serif;letter-spacing:0;text-transform:none;color:var(--muted)}
main .cs .prow .pr-heads span+span{color:var(--fg)}
/* panel title as a plain sentence */
main .cs .prow .pc-head .pc-t{font:600 14px/1.3 var(--sans,Inter),system-ui,sans-serif;letter-spacing:0;text-transform:none;color:var(--fg);align-self:center}
/* right column flush with the panel's right edge */
main .cs .prow .pc-head,main .cs .prow .pc-body{grid-template-columns:minmax(0,1fr) auto!important}
main .cs .prow .pc-menu{justify-self:end;min-width:190px}
main .cs .prow .pc-head .pr-shuf{justify-self:end;width:190px;justify-content:flex-start}
main .cs .prow .pc-grid{max-width:520px}
@media (max-width:700px){main .cs .prow .pc-body{grid-template-columns:1fr!important}main .cs .prow .pc-menu{justify-self:start}main .cs .prow .pc-head{grid-template-columns:1fr!important}main .cs .prow .pc-head .pr-shuf{justify-self:start}}

/* empty star lighter */
main .cs .prow .pr-star{color:#cfcfcf}
main .cs .prow .pr-star svg{stroke-width:1.3}
/* Before and After back inside the box, in the site font, white on blue */
main .cs .prow .pr-box .pr-lab{display:block!important;margin:0 0 10px!important;font:600 14px/20px var(--sans,Inter),system-ui,sans-serif!important;letter-spacing:0!important;text-transform:none!important;color:rgba(255,255,255,.72)!important}
main .cs .prow .pr-box>.pr-col:nth-child(2) .pr-lab{color:#fff!important}
/* panel: Shuffle as a quiet outlined button on its own line, then the settings */
main .cs .prow .pc-head{display:flex!important;margin-bottom:18px}
main .cs .prow .pc-head .pr-shuf{width:auto!important;justify-self:auto;gap:8px;padding:9px 16px!important;border:1px solid var(--line)!important;background:none!important;color:var(--fg);font:500 14px/1.2 var(--sans,Inter),system-ui,sans-serif;transition:border-color .15s,transform .1s}
main .cs .prow .pc-head .pr-shuf:hover{border-color:var(--fg)!important}
main .cs .prow .pc-head .pr-shuf svg{width:16px;height:16px;color:#3867ff}

/* Shuffle inside the blue box, under the old card */
main .cs .prow .pr-box .pr-shuf{display:inline-flex;align-items:center;gap:8px;margin:16px 0 0!important;padding:9px 16px!important;border:0!important;border-radius:999px;background:rgba(255,255,255,.16)!important;color:#fff;font:500 14px/1.2 var(--sans,Inter),system-ui,sans-serif;cursor:pointer;transition:background .15s,transform .1s}
main .cs .prow .pr-box .pr-shuf:hover{background:rgba(255,255,255,.26)!important}
main .cs .prow .pr-box .pr-shuf:active{transform:scale(.96)}
main .cs .prow .pr-box .pr-shuf:focus-visible{outline:2px solid #fff;outline-offset:2px}
main .cs .prow .pr-box .pr-shuf svg{width:16px;height:16px;color:#fff}
main .cs .prow .pc-head{display:none!important}

/* Shuffle on its own row at the top of the box; Before and After centered under the cards */
main .cs .prow .pr-box{grid-template-areas:"shuf shuf" "old new"!important;row-gap:18px}
main .cs .prow .pr-box>.pr-shuf{grid-area:shuf;justify-self:start;margin:0!important}
main .cs .prow .pr-box>.pr-col:nth-child(2){grid-area:old}
main .cs .prow .pr-box>.pr-col:nth-child(3){grid-area:new}
main .cs .prow .pr-col{display:flex;flex-direction:column}
main .cs .prow .pr-box .pr-lab{order:2;margin:12px 0 0!important;text-align:center}
@media (max-width:700px){main .cs .prow .pr-box{grid-template-areas:"shuf" "old" "new"!important}}

/* three columns spread evenly across the panel */
main .cs .prow .pc-body{display:flex!important;justify-content:space-between;gap:24px}
main .cs .prow .pc-col{display:grid;grid-auto-rows:20px;gap:14px}
main .cs .prow .pc-body .pc-menu{justify-self:auto;min-width:0}
@media (max-width:700px){main .cs .prow .pc-body{flex-wrap:wrap;justify-content:flex-start;gap:14px 28px}}
/* Before and After on one line at the bottom of the box, whatever the card heights */
main .cs .prow .pr-box{align-items:stretch!important}
main .cs .prow .pr-box .pr-lab{margin:auto 0 0!important;padding-top:14px}
@media (max-width:700px){main .cs .prow .pr-box .pr-lab{margin:10px 0 0!important;padding-top:0}}
/* v4 layout: small Shuffle above the box, Before and After above the cards */
main .cs .prow .pr-top{display:flex;justify-content:flex-end;margin:0 0 10px}
main .cs .prow .pr-top .pr-shuf{display:inline-flex;align-items:center;gap:6px;margin:0!important;padding:4px 2px!important;border:0!important;border-radius:6px;background:none!important;color:var(--muted);font:500 13px/1.2 var(--sans,Inter),system-ui,sans-serif;cursor:pointer;transition:color .15s}
main .cs .prow .pr-top .pr-shuf:hover{color:var(--fg)}
main .cs .prow .pr-top .pr-shuf:active{transform:scale(.96)}
main .cs .prow .pr-top .pr-shuf:focus-visible{outline:2px solid #3867ff;outline-offset:2px}
main .cs .prow .pr-top .pr-shuf svg{width:14px;height:14px;color:#3867ff}
main .cs .prow .pr-box{grid-template-areas:"old new"!important;align-items:start!important;row-gap:0}
main .cs .prow .pr-box>.pr-col:nth-child(1){grid-area:old}
main .cs .prow .pr-box>.pr-col:nth-child(2){grid-area:new}
main .cs .prow .pr-box .pr-lab{order:0;margin:0 0 10px!important;padding:0;text-align:center}
@media (max-width:700px){main .cs .prow .pr-box{grid-template-areas:"old" "new"!important;row-gap:18px}main .cs .prow .pr-box .pr-lab{margin:0 0 10px!important}main .cs .prow .pr-top{justify-content:flex-start}}
/* delivery line as in Figma: under the price, from the image's left edge, orange clock, 12px #262626 */
main .cs .prow .pr-new{grid-template-areas:"img info star" "pick pick cart"}
main .cs .prow.del .pr-new{grid-template-areas:"img info star" "del del del" "pick pick cart"!important}
main .cs .prow[data-img="none"].del .pr-new{grid-template-areas:"info star" "del del" "pick cart"!important}
main .cs .prow .pr-del{grid-area:del;display:flex;align-items:center;gap:8px;font:400 12px/16px Inter,system-ui,sans-serif;color:#262626;margin:0!important}
main .cs .prow .pr-del[hidden]{display:none}
main .cs .prow .pr-del svg{flex:none;width:18px;height:18px;color:#ff8900}
/* unit drawer covers the whole card */
main .cs .prow .pr-sheet{inset:0!important;border-radius:14px!important;padding:16px!important;gap:4px!important;box-shadow:none!important}
main .cs .prow .pr-sheet b{font-size:15px!important;margin:0 0 8px!important}
main .cs .prow .pr-sheet .pr-done{margin-top:auto!important}
/* three units side by side, so the drawer fits the card */
main .cs .prow .pr-sheet{display:grid!important;grid-template-columns:repeat(3,1fr);grid-template-rows:auto auto 1fr;align-content:start;column-gap:8px!important;row-gap:10px!important}
main .cs .prow .pr-sheet b{grid-column:1/-1;margin:0!important}
main .cs .prow .pr-sheet button[data-u]{justify-content:center!important;padding:10px 6px!important;border:1px solid #e3e3e3!important;border-radius:10px!important;text-align:center!important}
main .cs .prow .pr-sheet button[aria-pressed="true"]{border-color:#3867ff!important}
main .cs .prow .pr-sheet button[aria-pressed="true"]::after{content:none!important}
main .cs .prow .pr-sheet .pr-done{grid-column:1/-1;align-self:end;margin:0!important}
main .cs .prow .pr-sheet[hidden]{display:none!important}
main .cs .prow .pr-del{color:#262626!important;font-size:12px!important;line-height:16px!important;margin:0!important}
/* Before and After in the site's mono caps, with more room */
main .cs .prow .pr-box .pr-lab{margin:4px 0 16px!important;font:500 12px/1 var(--mono,ui-monospace),monospace!important;letter-spacing:.12em!important;text-transform:uppercase!important}
main .cs .prow .pr-box .pr-lab{margin:6px 0 22px!important;text-align:left!important}
main .cs .prow .pr-box .pr-lab{font:700 13px/1 'Space Grotesk',var(--sans,Inter),sans-serif!important;letter-spacing:.1em!important}
/* the right column keeps the star's width; − and + reach left into the picker row instead of squeezing the text */
main .cs .prow .pr-new{grid-template-columns:var(--pi) minmax(0,1fr) 40px!important}
main .cs .prow[data-img="none"] .pr-new{grid-template-columns:minmax(0,1fr) 40px!important}
main .cs .prow .pr-act{justify-self:end;width:max-content}

/* unit drawer: two units as a list, one under the other, with a check on the chosen one */
main .cs .prow .pr-sheet{display:flex!important;flex-direction:column!important;gap:4px!important}
main .cs .prow .pr-sheet b{margin:0 0 6px!important}
main .cs .prow .pr-sheet button[data-u]{display:flex!important;justify-content:space-between!important;align-items:center;padding:10px 12px!important;border:0!important;border-radius:8px!important;text-align:left!important}
main .cs .prow .pr-sheet button[aria-pressed="true"]{background:#eef2ff!important;color:#2c56e0}
main .cs .prow .pr-sheet button[aria-pressed="true"]::after{content:"✓"!important}
main .cs .prow .pr-sheet .pr-done{margin-top:auto!important}
main .cs .prow .pr-sheet button[data-u][hidden]{display:none!important}

/* Done across the full width of the drawer again */
main .cs .prow .pr-sheet .pr-done{align-self:stretch!important;width:100%!important}
/* fourth row of switches; the third column holds the image radios and one switch */
main .cs .prow .pc-col3{display:grid;grid-auto-rows:20px;gap:14px}
main .cs .prow .pc-col3 .pc-menu{display:grid!important;grid-auto-rows:20px;gap:14px}
main .cs .prow .pc-col3 .pc-menu{grid-row:span 3}
/* the new cases */
main .cs .prow.noog .pr-star{visibility:hidden}
main .cs .prow.imgerr .pr-img{background:#eae6e3!important}
main .cs .prow.imgerr .pr-img img{visibility:hidden}
main .cs .prow.noprice .pr-price{display:none!important}

/* last unit removed: − slides back under +, + fades, then the cart pops back in */
main .cs .prow.leaving .pr-act .pr-minus{animation:prMinusBack .2s ease-in forwards}
main .cs .prow.leaving .pr-act .pr-plus{animation:prFadeOut .2s ease-in forwards}
main .cs .prow.back .pr-act .pr-cart{animation:prCartIn .3s cubic-bezier(.3,1.5,.5,1)}
@keyframes prMinusBack{to{transform:translateX(calc(100% + 16px));opacity:0}}
@keyframes prFadeOut{to{transform:scale(.7);opacity:0}}
@keyframes prCartIn{from{transform:scale(.5);opacity:0}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){main .cs .prow.leaving .pr-act .pr-minus,main .cs .prow.leaving .pr-act .pr-plus,main .cs .prow.back .pr-act .pr-cart{animation:none}}
/* Step 2 tabs: more room above and below, no blue focus box */
main .cs .live-ui.oa3 .oa-tabbar{margin:28px 0 6px!important}
main .cs .live-ui.oa3 .oa-tabbar .oa-tabs button{padding:6px 2px 16px!important}
main .cs .live-ui.oa3 .oa-tabbar .oa-tabs button:focus,main .cs .live-ui.oa3 .oa-tabbar .oa-tabs button:focus-visible{outline:none!important;box-shadow:none!important}
main .cs .live-ui.oa3 .oa-tabbar .oa-tabs button:focus-visible{color:var(--fg)!important;border-bottom-color:var(--muted)!important}
main .cs .live-ui.oa3 .oa-tabbar .oa-tabs button[aria-selected="true"]:focus-visible{border-bottom-color:var(--accent)!important}
main .cs .prow .pc-col3 .pc-menu{grid-row:span 4}

/* unit drawer without Done: each unit carries the same mark as the image radios */
main .cs .prow .pr-sheet button[data-u]::after{content:""!important;flex:none;width:18px;height:18px;border-radius:50%;border:1.5px solid #b5b5b5;box-sizing:border-box}
main .cs .prow .pr-sheet button[aria-pressed="true"]::after{border:0;background:#3867ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.6 6.3l2.2 2.2 4.6-4.8' fill='none' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center/12px}

/* Fractions sits above the box, left of Shuffle, since it changes both rows */
main .cs .prow .pr-top{justify-content:space-between!important;align-items:center}
main .cs .prow .pc-mini{font-size:13px!important;color:var(--muted)!important;gap:8px!important}
main .cs .prow .pc-mini .pc-sw{width:28px;height:16px}
main .cs .prow .pc-mini .pc-sw::after{width:12px;height:12px}
main .cs .prow .pc-mini input:checked+.pc-sw::after{transform:translateX(12px)}
main .cs .prow .pc-mini:has(input:checked){color:var(--fg)!important}
/* image error: Figma's camera icon in the middle of the placeholder */
main .cs .prow .pr-img{position:relative}
main .cs .prow .pr-ph{display:none;position:absolute;left:50%;top:50%;width:26px;height:26px;margin:-13px 0 0 -13px;fill:#b3aca6}
main .cs .prow.imgerr .pr-ph{display:block}
/* less blue above Before and After */
main .cs .prow .pr-box{padding-top:18px!important}
main .cs .prow .pr-box .pr-lab{margin-top:0!important}
main .cs .prow .pr-top{margin:0 0 18px!important}

/* rings around switches, radios and buttons in the Step 1 demo: keyboard only */
main .cs .prow :is(.pc-opt,.pc-rad) input:focus-visible+span{outline:none!important}
main .cs .prow button:focus-visible{outline:none!important}
html.kbnav main .cs .prow :is(.pc-opt,.pc-rad) input:focus-visible+span{outline:2px solid #3867ff!important;outline-offset:2px}
html.kbnav main .cs .prow button:focus-visible{outline:2px solid #3867ff!important;outline-offset:2px}

main .cs .prow .pr-alts{font-size:13px;color:#8a8a8a;margin-top:2px}
main .cs .prow .pr-alts[hidden]{display:none}
main .cs .prow .pr-top{justify-content:flex-end!important}
main .cs .prow .pc-col3 .pc-menu{grid-row:span 4}
/* Before and After: Inter semibold caps, a little more blue above */
main .cs .prow .pr-box{padding-top:26px!important}
main .cs .prow .pr-box .pr-lab{font:600 12px/1 Inter,system-ui,sans-serif!important;letter-spacing:.08em!important}
/* persona cards: a divider between Goal, Pain and Context */
main .cs .ps4 .ps-card dl{gap:0!important}
main .cs .ps4 .ps-card dl>div{padding:14px 0!important;border-top:1px solid var(--line)}
main .cs .ps4 .ps-card dl>div:first-child{border-top:0;padding-top:0!important}
main .cs .ps4 .ps-card dl>div:last-child{padding-bottom:0!important}
main .cs .ps4 .ps-card dl>div+div{border-top:1px solid rgba(255,255,255,.1)!important}
/* persona cards: same height, a little more air between fields */
main .cs .ps4 .ps-box{align-items:stretch!important}
main .cs .ps4 .ps-card dl>div{padding:16px 0!important}
main .cs .ps4 .ps-card dl>div:first-child{padding-top:2px!important}
main .cs .ps4 .ps-card dl>div:last-child{padding-bottom:0!important}

/* Step 2 tap flow: screens per order, one dot per tap */
main .cs .live-ui.taps{margin:32px 0!important}
main .cs .taps .tp-box{display:grid;gap:22px;padding:clamp(18px,3vw,28px);border:1px solid var(--line);border-radius:var(--radius)}
main .cs .taps .tp-row{display:grid;grid-template-columns:150px minmax(0,1fr);gap:18px;align-items:start}
main .cs .taps .tp-row+.tp-row{padding-top:22px;border-top:1px solid var(--line)}
main .cs .taps .tp-num b{display:block;font:700 44px/1 var(--display);font-variant-numeric:tabular-nums;letter-spacing:-.02em;color:var(--muted)}
main .cs .taps .tp-num span{display:block;margin-top:6px;font:500 12px/1.3 var(--sans,Inter),system-ui,sans-serif;color:var(--muted)}
main .cs .taps .tp-chips{display:flex;flex-wrap:wrap;align-items:center;gap:8px 6px;margin:0!important;padding:0!important;list-style:none}
main .cs .taps .tp-chips>li{margin:0!important;padding:0}
main .cs .taps .tp-chips>li::before{content:none!important}
main .cs .taps .tp-chips>li{display:inline-flex;align-items:center}
main .cs .taps .tp-chips>li+li::before{content:"›"!important;position:static!important;display:inline-block;width:auto!important;height:auto!important;background:none!important;margin:0 6px 0 0;color:var(--muted);font-size:15px;line-height:1}
main .cs .taps .tp-chip{display:inline-flex;align-items:center;gap:8px;padding:6px 10px;border:1px solid var(--line);border-radius:999px;font:500 13px/1.2 var(--sans,Inter),system-ui,sans-serif;color:var(--fg);background:color-mix(in srgb,var(--line) 35%,transparent)}
main .cs .taps .tp-dots{display:inline-flex;gap:3px}
main .cs .taps .tp-dots i{width:6px;height:6px;border-radius:50%;background:var(--muted)}
main .cs .taps .rm{opacity:.45}
main .cs .taps .tp-c .tp-num b{color:var(--accent)}
main .cs .taps .tp-c .tp-num span{color:var(--fg)}
main .cs .taps .tp-c .tp-chips .tp-chip{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 14%,transparent)}
main .cs .taps .tp-c .tp-dots i{background:var(--accent)}
main .cs .taps .tp-branch{position:relative;margin:8px 0 0 22px;padding-left:16px}
main .cs .taps .tp-branch::before{content:"";position:absolute;left:0;top:-6px;width:12px;height:20px;border-left:1px solid var(--line);border-bottom:1px solid var(--line);border-bottom-left-radius:6px}
main .cs .taps .tp-opt{opacity:.55;background:none}
main .cs .taps .tp-opt small{font-size:11px;color:var(--muted)}
main .cs .taps figcaption{margin-top:12px}
@media (max-width:600px){main .cs .taps .tp-row{grid-template-columns:1fr;gap:10px}main .cs .taps .tp-num b{font-size:36px}}
/* fade in on scroll */
main .cs .taps.tp-hide .tp-row{opacity:0;transform:translateY(8px)}
main .cs .taps .tp-row{transition:opacity .5s ease,transform .5s ease}
main .cs .taps .tp-row:nth-child(2){transition-delay:.12s}
main .cs .taps .tp-row:nth-child(3){transition-delay:.24s}
@media (prefers-reduced-motion:reduce){main .cs .taps .tp-row{transition:none}main .cs .taps.tp-hide .tp-row{opacity:1;transform:none}}
/* Step 2 screens: Issues and Improvements sit lower, with more air between points */
main .cs .live-ui.oa3 .oa-h{margin:40px 0 10px!important}
main .cs .live-ui.oa3 .oa-list li{padding-top:20px!important;padding-bottom:20px!important}

/* After: each improvement names the issue it answers */
main .cs .live-ui.oa3 .oa-fix{display:inline-block;margin-left:8px;padding:2px 8px;border:1px solid var(--line);border-radius:999px;font:500 11px/1.4 var(--mono,ui-monospace),monospace;letter-spacing:.04em;color:var(--muted);white-space:nowrap;vertical-align:1px}
/* tap flow: number and label on top, the screens on their own line below */
main .cs .taps .tp-row{grid-template-columns:1fr!important;gap:12px!important}
main .cs .taps .tp-num{display:flex;align-items:baseline;gap:12px}
main .cs .taps .tp-num b{font-size:40px!important}
main .cs .taps .tp-num span{margin:0!important;font-size:13px!important}

/* Step 2: the first order screen by screen; the five setup screens fade out and the rest close up, on a loop */
main .cs .live-ui.fc{margin:32px 0!important}
main .cs .fc .fc-box{padding:clamp(16px,3vw,28px) clamp(12px,2vw,20px);border-radius:var(--radius);background:#3867ff}
main .cs .fc .fc-strip{display:flex;align-items:flex-start;margin:0!important;padding:0!important;list-style:none}
main .cs .fc .fc-s{flex:1 1 0;min-width:0;margin:0!important;padding:0 2px!important;overflow:hidden}
main .cs .fc .fc-s::before{content:none!important}
main .cs .fc .fc-s img{display:block;width:100%!important;height:auto!important;margin:0!important;border:0!important;border-radius:4px!important;box-shadow:0 4px 12px -6px rgba(8,18,70,.5)!important}
main .cs .fc .fc-out{position:relative;animation:fcOut 7s ease-in-out infinite}
main .cs .fc .fc-out::after{content:"";position:absolute;inset:0 2px;border-radius:4px;background:rgba(255,46,170,0);animation:fcMark 7s ease-in-out infinite}
@keyframes fcOut{0%,30%{flex-grow:1;opacity:1;padding:0 2px}45%{opacity:0}55%,88%{flex-grow:0;opacity:0;padding:0}100%{flex-grow:1;opacity:1;padding:0 2px}}
@keyframes fcMark{0%,12%{background:rgba(255,46,170,0)}20%,40%{background:rgba(255,46,170,.45)}50%,100%{background:rgba(255,46,170,0)}}
main .cs .fc .fc-count{position:relative;height:20px;margin:16px 0 0!important;text-align:center;font:600 14px/20px var(--sans,Inter),system-ui,sans-serif;color:#fff}
main .cs .fc .fc-count span{position:absolute;inset:0;transition:none}
main .cs .fc .fc-a{animation:fcA 7s ease-in-out infinite}
main .cs .fc .fc-b{opacity:0;animation:fcB 7s ease-in-out infinite}
@keyframes fcA{0%,40%{opacity:1}50%,90%{opacity:0}100%{opacity:1}}
@keyframes fcB{0%,45%{opacity:0}55%,88%{opacity:1}98%,100%{opacity:0}}
@media (prefers-reduced-motion:reduce){main .cs .fc .fc-out,main .cs .fc .fc-out::after,main .cs .fc .fc-a,main .cs .fc .fc-b{animation:none}main .cs .fc .fc-out::after{background:rgba(255,46,170,.45)}main .cs .fc .fc-b{display:none}}
main .cs .fc .fc-s{padding:0!important}
main .cs .fc .fc-s img{width:calc(100% - 4px)!important;margin:0 auto!important}
main .cs .fc .fc-out::after{inset:0 2px}
@keyframes fcOut{0%,30%{flex-grow:1;opacity:1}45%{opacity:0}55%,88%{flex-grow:0;opacity:0}100%{flex-grow:1;opacity:1}}
main .cs .fc .fc-s img{outline:1px solid rgba(255,255,255,.35);outline-offset:-1px}
/* fixed screen size: the five leave, the rest slide together and center, the blue box never changes height */
main .cs .fc .fc-strip{justify-content:center}
main .cs .fc .fc-out{animation:fcOutW 7s ease-in-out infinite!important}
@keyframes fcOutW{0%,30%{width:6.25%;opacity:1}45%{opacity:0}55%,88%{width:0;opacity:0}100%{width:6.25%;opacity:1}}
@media (prefers-reduced-motion:reduce){main .cs .fc .fc-out{animation:none!important}}

/* screens grow again after the five leave, inside a stage sized for the biggest state, centered, so the box keeps one height */
main .cs .fc .fc-box{padding:clamp(20px,3.5vw,36px) clamp(10px,1.6vw,18px)}
main .cs .fc .fc-stage{display:flex;align-items:center;aspect-ratio:3080/672}
main .cs .fc .fc-strip{width:100%;align-items:center}
main .cs .fc .fc-strip>.fc-s{flex:1 1 0;width:auto}
main .cs .fc .fc-out{animation:fcOut 7s ease-in-out infinite!important}
@media (prefers-reduced-motion:reduce){main .cs .fc .fc-out{animation:none!important}}

/* the tap count counts down 14 to 9 while the five screens drop out, in step with the loop */
@property --fcn{syntax:'<integer>';initial-value:14;inherits:false}
main .cs .fc .fc-num{display:flex;align-items:baseline;justify-content:center;gap:8px;height:48px;margin:18px 0 0!important;color:#fff}
main .cs .fc .fc-num b{--fcn:14;counter-reset:fcn var(--fcn);font:700 44px/1 var(--display);font-variant-numeric:tabular-nums;letter-spacing:-.02em;min-width:1.3em;text-align:right;animation:fcN 7s ease-in-out infinite}
main .cs .fc .fc-num b::after{content:counter(fcn)}
main .cs .fc .fc-num span{font:500 16px/1 var(--sans,Inter),system-ui,sans-serif;color:rgba(255,255,255,.8)}
@keyframes fcN{0%,32%{--fcn:14}55%,88%{--fcn:9}97%,100%{--fcn:14}}
@media (prefers-reduced-motion:reduce){main .cs .fc .fc-num b{animation:none}}
/* more room between text and every visual in case studies */
main .cs figure.live-ui[class],main .cs figure.landscape[class]{margin-top:56px!important;margin-bottom:56px!important}
@media (max-width:700px){main .cs figure.live-ui[class],main .cs figure.landscape[class]{margin-top:40px!important;margin-bottom:40px!important}}
/* Mobile ordering only: no divider before Step 2, more room there instead */
main .cs .fc .fc-s img{width:calc(100% - 12px)!important}
main .cs .fc .fc-out::after{inset:0 6px}
/* Mobile ordering: tighter gap between the product cell panel and Step 2 */
/* personas sit lower: same room above and below, close to the divider to heading gap */
main .cs figure.live-ui.ps4[class]{margin-top:80px!important;margin-bottom:16px!important}
@media (max-width:700px){main .cs figure.live-ui.ps4[class]{margin-top:56px!important;margin-bottom:8px!important}}
/* Step 1 product cell: more room above, a little more between the blue box and the switches */
main .cs figure.live-ui.prow[class]{margin-top:80px!important}
main .cs .prow .pr-ctl{margin-top:28px!important}
@media (max-width:700px){main .cs figure.live-ui.prow[class]{margin-top:56px!important}}
/* the divider sits in the middle: whatever ends a section adds no margin of its own */
main .cs .cs-main .csec[id] > .part:last-child > :last-child > :last-child:is(figure,p,ul,ol,blockquote)[class],main .cs .cs-main .csec[id] > .part:last-child > :last-child > :last-child:is(figure,p,ul,ol,blockquote){margin-bottom:0!important}
/* divider centered between sections: about 88px above and below */
.cs-wide .cs-main .csec[id]{padding-top:36px!important;padding-bottom:92px!important}
.cs-wide .cs-main .csec[id]:first-child{padding-top:0!important}
.cs-wide .cs-main .csec[id]:last-child{padding-bottom:0!important}
@media (max-width:700px){.cs-wide .cs-main .csec[id]{padding-top:24px!important;padding-bottom:64px!important}}
/* Step 2 screens: Before and After sit well below the text */
main .cs figure.live-ui.oa3[class]{margin-top:104px!important}
@media (max-width:700px){main .cs figure.live-ui.oa3[class]{margin-top:64px!important}}
/* ===== Case study spacing system (one source of truth, overrides the earlier one-off tweaks) =====
   text to visual and visual to text: 96px (64 on phones); heading to its text: 48px; the divider sits exactly between sections */
main .cs .cs-main figure[class][class]{margin-top:var(--cs-fig,96px)!important;margin-bottom:var(--cs-fig,96px)!important}
main .cs .cs-main .csec[id] h2{margin-bottom:48px!important}
main .cs .cs-main .csec[id] > .part:last-child > :last-child > :last-child:is(figure,p,ul,ol,blockquote)[class][class],
main .cs .cs-main .csec[id] > .part:last-child > :last-child > :last-child:is(figure,p,ul,ol,blockquote){margin-bottom:0!important}
@media (max-width:700px){main .cs .cs-main{--cs-fig:64px}main .cs .cs-main .csec[id] h2{margin-bottom:32px!important}}
/* dividers exactly centered: 112px of space on both sides (the heading adds about 29px of its own above the text) */
.cs-wide .cs-main .csec[id]{padding-top:83px!important;padding-bottom:112px!important}
.cs-wide .cs-main .csec[id]:first-child{padding-top:0!important}
.cs-wide .cs-main .csec[id]:last-child{padding-bottom:0!important}
/* a visual followed only by an empty text block still ends the section */
main .cs .cs-main .csec[id] > .part:has(+ .part:last-child > .blk-t:empty) > :last-child > figure:last-child[class][class]{margin-bottom:0!important}
main .cs .cs-main .csec[id] > .part:last-child:has(> .blk-t:empty){display:none}
/* Mobile ordering, product cell into Step 2 (no divider there): one calm gap */
@media (max-width:700px){
 .cs-wide .cs-main .csec[id]{padding-top:52px!important;padding-bottom:72px!important}
}
main .cs .cs-main .csec[id] > .part:has(+ .part:last-child > .blk-t:empty) > figure:last-child[class][class],
main .cs .cs-main .csec[id] > .part:last-child > figure:last-child[class][class]{margin-bottom:0!important}
.cs-wide .cs-main .csec[id]{padding-top:114px!important}
.cs-wide .cs-main .csec[id]:first-child{padding-top:0!important}
@media (max-width:700px){.cs-wide .cs-main .csec[id]{padding-top:74px!important}}
/* whatever element ends a section (list, card, chart, figure) brings no margin of its own */
main .cs .cs-main .csec[id] > .part:last-child > :last-child,
main .cs .cs-main .csec[id] > .part:last-child > :last-child > :last-child[class][class],
main .cs .cs-main .csec[id] > .part:last-child > :last-child > :last-child{margin-bottom:0!important}
main .cs .cs-main .csec[id] > .part:last-child > :last-child > :is(ul,ol):last-child > li:last-child{margin-bottom:0!important;padding-bottom:0!important}
/* galleries: the row carries the 96px, not each picture in it */
main .cs .cs-main .part.gallery > figure[class][class]{margin-top:0!important;margin-bottom:0!important}
main .cs .cs-main .csec[id] > .part.gallery{margin-top:var(--cs-fig,96px)!important;margin-bottom:var(--cs-fig,96px)!important}
main .cs .cs-main .csec[id] > .part.gallery:last-child{margin-bottom:0!important}

/* Step 2 screens: hovering the tabs or the Before/After switch hides the numbers, so the screens can be seen clean */
main .cs .live-ui.oa3:has(.oa-tabbar:hover) .oa-dot,main .cs .live-ui.oa3:has(.ba-tabs:hover) .oa-dot{opacity:0!important;pointer-events:none}
/* heading space sits on the whole heading row, so the number and the title stay level */
main .cs .cs-main .csec[id] h2{margin-bottom:0!important}
main .cs .cs-main .csec[id] > .part.head{margin-bottom:8px!important}
@media (max-width:700px){main .cs .cs-main .csec[id] > .part.head{margin-bottom:0!important}}

/* image error, as in the LOX Figma: light tile with a thin border and a gray image icon */
main .cs .prow.imgerr .pr-img{background:#faf7f5!important;box-shadow:inset 0 0 0 1px #eee4de}
main .cs .prow .pr-ph{width:24px!important;height:24px!important;margin:-12px 0 0 -12px!important;fill:none!important;color:#ccc}

/* Step 3: interactive cart, wording and colors from the LOX cart in Figma */
main .cs .live-ui.cc{display:flex;flex-direction:column;align-items:center}
main .cs .cc .cc-mt{margin:0 0 20px!important}
main .cs .cc .cc-box{display:flex;justify-content:center;align-items:flex-start;width:100%;padding:clamp(24px,4vw,40px) 16px;border-radius:var(--radius);background:#3867ff;min-height:640px}
main .cs .cc .cc-phone{width:100%;max-width:360px;border-radius:28px;background:#faf7f5;overflow:hidden;box-shadow:0 18px 40px -18px rgba(8,18,70,.6);font-family:Inter,system-ui,sans-serif;color:#18003e}
main .cs .cc[data-mode="after"] .cc-old,main .cs .cc[data-mode="before"] .cc-new{display:none}
main .cs .cc .cc-old img{display:block;width:100%!important;height:auto!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important}
main .cs .cc .cc-banner{display:none;gap:10px;padding:14px 16px;background:#fff;border-left:3px solid #ff8900}
main .cs .cc.conflict .cc-banner{display:flex}
main .cs .cc .cc-banner svg{flex:none;width:18px;height:18px;color:#ff8900;margin-top:1px}
main .cs .cc .cc-banner b{display:block;font-size:14px;font-weight:600}
main .cs .cc .cc-banner p{margin:4px 0 10px!important;font-size:13px;line-height:1.4;color:#262626}
main .cs .cc .cc-review{padding:6px 14px!important;border:1px solid #3867ff!important;border-radius:999px;background:#fff!important;color:#3867ff;font:600 12px/1 Inter,system-ui,sans-serif;letter-spacing:.06em;text-transform:uppercase;cursor:pointer}
main .cs .cc .cc-date{display:flex;align-items:center;gap:12px;width:100%;margin:0!important;padding:14px 16px!important;border:0!important;border-bottom:1px solid #eee4de!important;border-radius:0!important;background:#faf7f5!important;color:#18003e;font:500 14px/1.2 Inter,system-ui,sans-serif;text-align:left;cursor:pointer}
main .cs .cc .cc-date svg{width:22px;height:22px;color:#3867ff}
main .cs .cc .cc-date span{flex:1}
main .cs .cc .cc-date b{font-weight:600}
main .cs .cc .cc-date i{font-style:normal;font-size:20px;color:#999}
main .cs .cc .cc-pick{display:flex;gap:8px;padding:10px 16px;background:#fff;border-bottom:1px solid #eee4de}
main .cs .cc .cc-pick[hidden]{display:none}
main .cs .cc .cc-pick button{flex:1;padding:9px 8px!important;border:1px solid #e3e3e3!important;border-radius:10px;background:#fff!important;color:#18003e;font:500 13px/1.2 Inter,system-ui,sans-serif;cursor:pointer}
main .cs .cc .cc-pick button[aria-pressed="true"]{border-color:#3867ff!important;background:#eef2ff!important;color:#2c56e0}
main .cs .cc .cc-head{padding:16px 16px 8px}
main .cs .cc .cc-head b{font-size:16px;font-weight:600}
main .cs .cc .cc-list{margin:0!important;padding:0!important;list-style:none}
main .cs .cc .cc-it{display:grid;grid-template-columns:auto 1fr 56px;gap:12px;align-items:start;margin:0!important;padding:12px 16px!important;border-top:1px solid #eee4de;background:#fff}
main .cs .cc .cc-it::before{content:none!important}
main .cs .cc .cc-it.flash{animation:ccFlash 1s ease}
@keyframes ccFlash{0%,100%{background:#fff}30%{background:#fff3e6}}
main .cs .cc .cc-q{display:flex;align-items:center;justify-content:center;width:44px;height:32px;border:1px solid #e3e3e3;border-radius:999px;font-size:14px;font-weight:600}
main .cs .cc .cc-tx{display:flex;flex-direction:column;min-width:0}
main .cs .cc .cc-tx small{font-size:12px;color:#8a8a8a}
main .cs .cc .cc-tx b{font-size:14px;font-weight:500;line-height:1.3}
main .cs .cc .cc-tx strong{margin-top:2px;font-size:14px;font-weight:700}
main .cs .cc .cc-it img{width:56px!important;height:56px!important;margin:0!important;border:0!important;border-radius:6px!important;box-shadow:none!important;object-fit:cover}
main .cs .cc .cc-ed{display:none;align-items:center;gap:6px;margin-top:8px;font-size:12px;color:#262626}
main .cs .cc .cc-ed svg{width:16px;height:16px;color:#ff8900}
main .cs .cc .cc-ed em,main .cs .cc .cc-acts em{font-style:normal}
main .cs .cc[data-salmon="in"] .cc-ed{display:flex}
main .cs .cc:not(.conflict) .cc-ed svg{color:#8a8a8a}
main .cs .cc .cc-acts{display:none;gap:8px;margin-top:10px}
main .cs .cc.conflict .cc-acts{display:flex}
main .cs .cc .cc-acts button{padding:7px 12px!important;border:1px solid #3867ff!important;border-radius:999px;background:#fff!important;color:#3867ff;font:600 12px/1 Inter,system-ui,sans-serif;cursor:pointer}
main .cs .cc[data-salmon="removed"] .cc-it[data-k="salmon"]{display:none}
main .cs .cc .cc-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px;border-top:1px solid #eee4de;background:#faf7f5}
main .cs .cc .cc-foot small{display:block;font-size:12px;color:#8a8a8a}
main .cs .cc .cc-foot b{font-size:17px;font-weight:700}
main .cs .cc .cc-go{padding:12px 20px!important;border:0!important;border-radius:999px;background:#3867ff!important;color:#fff;font:600 13px/1 Inter,system-ui,sans-serif;letter-spacing:.06em;text-transform:uppercase;cursor:pointer;transition:background .2s,transform .1s}
main .cs .cc .cc-go:disabled{background:#c9c9c9!important;cursor:not-allowed}
main .cs .cc .cc-go:not(:disabled):active{transform:scale(.96)}
main .cs .cc .cc-done{margin:0!important;padding:0 16px 16px;background:#faf7f5;font-size:13px;font-weight:600;color:#2f7a3f;text-align:right}
main .cs .cc .cc-done[hidden]{display:none}
main .cs .cc .cc-reset{margin:14px 0 0!important;padding:4px 2px!important;border:0!important;background:none!important;color:var(--muted);font:500 13px/1.2 var(--sans,Inter),system-ui,sans-serif;cursor:pointer}
main .cs .cc .cc-reset:hover{color:var(--fg)}
main .cs .cc[data-mode="before"] .cc-reset{visibility:hidden}
@media (prefers-reduced-motion:reduce){main .cs .cc .cc-it.flash{animation:none}}

/* cart: shield it from the site's list, span and switch styles */
main .cs .cc .cc-mt{order:-1}
main .cs .cc .cc-head b span,main .cs .cc .cc-ed span,main .cs .cc .cc-date span{display:inline!important}
main .cs .cc .cc-date span{flex:1}
main .cs .cc ul.cc-list{display:block!important;columns:auto!important;grid-template-columns:none!important;gap:0!important}
main .cs .cc ul.cc-list>li.cc-it{display:grid!important;grid-template-columns:auto minmax(0,1fr) 56px!important;width:auto!important;max-width:none!important;padding:12px 16px!important;margin:0!important;list-style:none}
main .cs .cc .cc-tx b,main .cs .cc .cc-tx small,main .cs .cc .cc-tx strong{display:block}
main .cs .cc .cc-acts button,main .cs .cc .cc-acts em{white-space:nowrap}

main .cs .cc .cc-cmt svg{color:#3867ff}
main .cs .cc .cc-cbox{padding:10px 16px;background:#fff;border-bottom:1px solid #eee4de}
main .cs .cc .cc-cbox[hidden]{display:none}
main .cs .cc .cc-cbox input{width:100%;margin:0!important;padding:10px 12px!important;border:1px solid #e3e3e3!important;border-radius:10px!important;background:#fff!important;color:#18003e;font:400 13px/1.2 Inter,system-ui,sans-serif;box-shadow:none!important}
main .cs .cc .cc-head{display:flex;align-items:baseline;justify-content:space-between}
main .cs .cc .cc-all{margin:0!important;padding:0!important;border:0!important;background:none!important;color:#3867ff;font:600 14px/1 Inter,system-ui,sans-serif;cursor:pointer}
main .cs .cc .cc-ed-ok{display:flex!important}
main .cs .cc .cc-ed-ok svg{color:#8a8a8a!important}
main .cs .cc.empty .cc-list,main .cs .cc.empty .cc-all{display:none!important}
main .cs .cc .cc-empty{margin:0!important;padding:24px 16px;background:#fff;font-size:14px;color:#8a8a8a;text-align:center}
main .cs .cc .cc-empty[hidden]{display:none}

/* cart rows keep the app's own colors in dark mode too */
main .cs .cc ul.cc-list>li.cc-it,main .cs .cc .cc-it .cc-tx b,main .cs .cc .cc-it .cc-tx strong,main .cs .cc .cc-q,main .cs .cc .cc-head b{color:#18003e!important;opacity:1!important}
main .cs .cc .cc-it .cc-tx small{color:#8a8a8a!important}
main .cs .cc .cc-ed,main .cs .cc .cc-ed span{color:#262626!important}

/* LOX mirror */
main .cs .live-ui.lm{display:flex;flex-direction:column;align-items:center}
main .cs .lm .lm-mt{order:-1;margin:0 0 20px!important}
main .cs .lm .lm-box{display:flex;justify-content:center;width:100%;padding:clamp(24px,4vw,40px) 16px;border-radius:var(--radius);background:#3867ff}
main .cs .lm .lm-phone{position:relative;width:100%;max-width:320px;height:600px;border-radius:32px;overflow:hidden;background:#faf7f5;box-shadow:0 18px 40px -18px rgba(8,18,70,.6);font-family:Inter,system-ui,sans-serif;color:#18003e}
main .cs .lm .lm-scr{position:absolute;inset:0;display:flex;flex-direction:column;transition:opacity .35s ease,transform .35s ease}
main .cs .lm[data-mode="choco"] .lm-wl,main .cs .lm[data-mode="wl"] .lm-choco{opacity:0;transform:scale(.97);pointer-events:none}
main .cs .lm .lm-top{padding:44px 18px 14px;background:#3867ff}
main .cs .lm .lm-logo{font:900 italic 26px/1 var(--display);letter-spacing:-.02em;color:#fff;transform:skewY(-6deg);display:inline-block}
main .cs .lm .lm-h{margin:0!important;padding:16px 18px 6px;font-size:15px;font-weight:700}
main .cs .lm ul.lm-sups,main .cs .lm ul.lm-prods{display:block!important;margin:0!important;padding:0!important;list-style:none;columns:auto!important}
main .cs .lm ul>li{display:flex!important;align-items:center;gap:12px;margin:0!important;padding:12px 18px!important;border-bottom:1px solid #eee4de;background:#fff;color:#18003e!important}
main .cs .lm ul>li::before{content:none!important}
main .cs .lm .lm-av{flex:none;display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;background:#e8eeff;color:#3867ff;font-weight:700;font-size:14px}
main .cs .lm .lm-st{flex:1;min-width:0;display:flex;flex-direction:column}
main .cs .lm .lm-st b{font-size:14px;font-weight:600;color:#18003e}
main .cs .lm .lm-st small{font-size:12px;color:#8a8a8a}
main .cs .lm .lm-st strong{font-size:14px;font-weight:700;color:#18003e;margin-top:2px}
main .cs .lm ul>li>svg{flex:none;width:20px;height:20px;color:#3867ff}
main .cs .lm .lm-note{margin:auto 0 0!important;padding:16px 18px;font-size:12px;line-height:1.4;color:#8a8a8a}
main .cs .lm .lm-nav{display:flex;justify-content:space-around;padding:10px 8px 22px;border-top:1px solid #eee4de;background:#fff}
main .cs .lm .lm-nav span{display:flex;flex-direction:column;align-items:center;gap:3px;color:#a5a5a5}
main .cs .lm .lm-nav span.on{color:#3867ff}
main .cs .lm .lm-wl .lm-nav span.on{color:var(--wl-p)}
main .cs .lm .lm-nav svg{width:22px;height:22px}
main .cs .lm .lm-nav small{font-size:11px}
main .cs .lm .lm-brand{display:flex;align-items:flex-end;height:150px;padding:0 18px 16px;background:var(--wl-p);transition:background .35s}
main .cs .lm .lm-mark{display:flex;align-items:center;gap:10px;color:#fff}
main .cs .lm .lm-mark svg{width:46px;height:28px}
main .cs .lm .lm-mark b{font:800 17px/1 var(--display);letter-spacing:.02em}
main .cs .lm .lm-chips{display:flex;gap:6px;padding:12px 18px;overflow:hidden;background:#faf7f5}
main .cs .lm .lm-chips span{flex:none;padding:6px 12px;border-radius:999px;background:#ece8e4;font-size:12px;font-weight:500;color:#18003e}
main .cs .lm .lm-chips span.on{background:var(--wl-p);color:#fff;transition:background .35s}
main .cs .lm .lm-prods img{flex:none;width:52px!important;height:52px!important;margin:0!important;border:0!important;border-radius:6px!important;box-shadow:none!important;object-fit:cover}
main .cs .lm .lm-star svg{width:22px;height:22px;color:#c9c9c9}
main .cs .lm .lm-cart{flex:none;display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;background:var(--wl-p);color:#fff;transition:background .35s}
main .cs .lm .lm-cart svg{width:18px;height:18px}
main .cs .lm .lm-ctl{display:flex;align-items:center;gap:10px;margin-top:16px;font:500 13px/1 var(--sans,Inter),system-ui,sans-serif;color:var(--muted)}
main .cs .lm .lm-sw{width:26px;height:26px;padding:0!important;border:2px solid transparent!important;border-radius:50%;background:var(--c)!important;box-shadow:0 0 0 1px var(--line);cursor:pointer;transition:transform .15s}
main .cs .lm .lm-sw[aria-pressed="true"]{box-shadow:0 0 0 2px var(--fg)}
main .cs .lm .lm-sw:hover{transform:scale(1.1)}
main .cs .lm figcaption{margin-top:12px}
@media (prefers-reduced-motion:reduce){main .cs .lm .lm-scr,main .cs .lm .lm-brand,main .cs .lm .lm-cart,main .cs .lm .lm-chips span.on{transition:none}}
main .cs .lm ul.lm-prods{flex:1;background:#faf7f5}
main .cs .lm ul.lm-sups{flex:0 0 auto}

/* LOX mirror v2: the real LOX look (warm background, dark purple ink, heavy headings) */
main .cs .lm .lm-phone{background:#faf7f5!important;color:#18003e}
main .cs .lm .lm-loc{display:flex;align-items:center;gap:10px;padding:46px 16px 12px;border-bottom:1px solid #eee4de;background:#faf7f5}
main .cs .lm .lm-loc span{flex:1;display:flex;flex-direction:column;min-width:0}
main .cs .lm .lm-loc b{display:flex;align-items:center;gap:4px;font-size:15px;font-weight:600;color:#18003e}
main .cs .lm .lm-loc b svg{width:14px;height:14px}
main .cs .lm .lm-loc small{font-size:12px;color:#8a8a8a}
main .cs .lm .lm-loc i svg{display:block;width:22px;height:22px;color:#18003e}
main .cs .lm img.lm-ava,main .cs .lm img.lm-me{width:30px!important;height:30px!important;margin:0!important;border:0!important;border-radius:50%!important;box-shadow:none!important;object-fit:cover}
main .cs .lm ul.lm-chats>li{padding:14px 16px!important;background:#faf7f5;border-bottom:1px solid #eee4de}
main .cs .lm img.lm-sup{flex:none;width:36px!important;height:36px!important;margin:0!important;border:0!important;border-radius:50%!important;box-shadow:none!important;object-fit:cover}
main .cs .lm .lm-meta{display:flex;flex-direction:column;align-items:flex-end;gap:6px}
main .cs .lm .lm-meta small{font-size:11px;color:#8a8a8a}
main .cs .lm .lm-meta em{display:flex;align-items:center;justify-content:center;min-width:18px;height:18px;border-radius:999px;background:#3867ff;color:#fff;font:600 11px/1 Inter,sans-serif;font-style:normal}
main .cs .lm .lm-chats{flex:1}
main .cs .lm .lm-hero{position:relative;height:140px;margin-bottom:44px}
main .cs .lm img.lm-photo{display:block;width:100%!important;height:140px!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;object-fit:cover}
main .cs .lm img.lm-blogo{position:absolute;left:16px;bottom:-34px;width:68px!important;height:68px!important;margin:0!important;border:3px solid #faf7f5!important;border-radius:50%!important;box-shadow:none!important}
main .cs .lm .lm-name{margin:0!important;padding:0 16px 12px;font:900 26px/1 var(--display);letter-spacing:-.01em;color:#18003e!important;transform:scaleX(1.06);transform-origin:left}
main .cs .lm .lm-row{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-top:1px solid #eee4de;font-size:14px;color:#18003e}
main .cs .lm .lm-row svg{width:18px;height:18px}
main .cs .lm .lm-ch{margin:0!important;padding:14px 16px 6px;border-top:1px solid #eee4de;font-size:13px;font-weight:600;color:#18003e}
main .cs .lm ul.lm-cats{flex:1}
main .cs .lm ul.lm-cats>li{padding:8px 16px!important;background:#faf7f5;border-bottom:0}
main .cs .lm ul.lm-cats>li span{flex:1;font-size:14px;color:#18003e}
main .cs .lm ul.lm-cats>li svg{width:18px;height:18px;color:#18003e}
main .cs .lm img.lm-ct{flex:none;width:40px!important;height:40px!important;margin:0!important;border:0!important;border-radius:4px!important;box-shadow:none!important;object-fit:cover}
main .cs .lm .lm-nav{background:#faf7f5}
main .cs .lm .lm-choco .lm-nav span.on{color:#18003e}
main .cs .lm .lm-wl .lm-nav span.on{color:var(--wl-p)}
main .cs .lm .lm-brand,main .cs .lm .lm-chips,main .cs .lm .lm-prods,main .cs .lm .lm-sups,main .cs .lm .lm-top,main .cs .lm .lm-h,main .cs .lm .lm-note{display:none}

/* mirror and cart switches get the same sliding pill as the other Before/After switches */
main .cs .lm[data-mode="wl"] .ba-pill .ab-thumb,main .cs .cc[data-mode="after"] .ba-pill .ab-thumb{transform:translateX(100%)}
main .cs .lm .ba-pill button,main .cs .cc .ba-pill button{white-space:nowrap}

/* Choco ordering Outcome: four key numbers */
main .cs .ot .ot-box{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
main .cs .ot .ot-t{display:flex;flex-direction:column;justify-content:space-between;gap:28px;min-height:150px;padding:22px;border-radius:var(--radius);background:#3867ff;color:#fff}
main .cs .ot .ot-t b{font:700 clamp(36px,4.4vw,52px)/1 var(--display);letter-spacing:-.02em;font-variant-numeric:tabular-nums}
main .cs .ot .ot-t span{font:500 14px/1.4 var(--sans,Inter),system-ui,sans-serif;color:rgba(255,255,255,.85)}
@media (max-width:520px){main .cs .ot .ot-box{grid-template-columns:1fr}main .cs .ot .ot-t{min-height:0}}

/* Choco ordering Outcome: two calm groups. Only the After bar uses the accent fill. */
main .cs .live-ui.ot{display:grid;gap:48px}
main .cs .ot .ot-ot,main .cs .ot .ot-box{display:none}
main .cs .ot .ot-h{margin:0 0 16px!important;font:500 12px/1 var(--mono,ui-monospace),monospace;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
main .cs .ot figure.ot-bars[class][class]{margin:0 0 12px!important;padding:24px;border:1px solid var(--line);border-radius:var(--radius);background:var(--soft)}
main .cs .ot .ot-k{margin:0!important;font:500 14px/1.3 var(--sans,Inter),system-ui,sans-serif;color:var(--muted)}
main .cs .ot .ot-big{margin:6px 0 22px!important;font:700 clamp(30px,4vw,44px)/1.05 var(--display);letter-spacing:-.02em;color:var(--fg);font-variant-numeric:tabular-nums}
main .cs .ot .ot-row{display:grid;grid-template-columns:56px minmax(0,1fr) auto;align-items:center;gap:12px;margin-top:10px}
main .cs .ot .ot-l,main .cs .ot .ot-v{font:500 13px/1.2 var(--sans,Inter),system-ui,sans-serif;color:var(--fg)}
main .cs .ot .ot-v{color:var(--muted);font-variant-numeric:tabular-nums}
main .cs .ot .ot-track{display:block;height:14px}
main .cs .ot .ot-b{display:block;height:100%;border-radius:0 4px 4px 0}
main .cs .ot .ot-before{background:color-mix(in srgb,var(--muted) 45%,transparent)}
main .cs .ot .ot-after{background:var(--accent)}
main .cs .ot figure.ot-bars figcaption{margin:18px 0 0!important;text-align:left}
main .cs .ot .ot-stats{display:grid;gap:12px}
main .cs .ot .ot-2{grid-template-columns:repeat(2,minmax(0,1fr))}
main .cs .ot .ot-3{grid-template-columns:repeat(3,minmax(0,1fr))}
main .cs .ot .ot-s{display:flex;flex-direction:column;gap:10px;padding:20px;border:1px solid var(--line);border-radius:var(--radius);background:var(--soft)}
main .cs .ot .ot-s b{font:700 clamp(24px,2.8vw,32px)/1.05 var(--display);letter-spacing:-.02em;color:var(--fg);font-variant-numeric:tabular-nums}
main .cs .ot .ot-s span{font:400 14px/1.45 var(--sans,Inter),system-ui,sans-serif;color:var(--muted)}
@media (max-width:768px){main .cs .ot .ot-3{grid-template-columns:1fr}}
@media (max-width:420px){main .cs .ot .ot-2{grid-template-columns:1fr}main .cs .ot figure.ot-bars[class][class]{padding:18px}}
/* small label above a chapter heading */
main .cs .cs-main .sec-eb{margin:0 0 10px!important;font:500 12px/1 var(--mono,ui-monospace),monospace;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}

/* Choco ordering Goals: four quiet groups */
main .cs .gl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:8px 0 0}
main .cs .gl-g{padding:22px;border:1px solid var(--line);border-radius:var(--radius);background:var(--soft)}
main .cs .gl-h{margin:0 0 14px!important;font:500 12px/1 var(--mono,ui-monospace),monospace;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
main .cs .gl-i+.gl-i{margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}
main .cs .gl-i p{margin:0!important;font-size:15px;line-height:1.5}
main .cs .gl-i p.gl-m{margin-top:6px!important;font-size:13px;color:var(--muted)}
@media (max-width:600px){main .cs .gl{grid-template-columns:1fr}}
main .cs .ot .ot-1{grid-template-columns:minmax(0,1fr)}
/* Choco ordering Outcome: Goal and Result table */
main .cs .ot2 table.gr{width:100%;margin:0;border-collapse:collapse;background:none;font:400 17px/1.5 var(--sans,Inter),system-ui,sans-serif;color:var(--fg)}
main .cs .ot2 .gr caption.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
main .cs .ot2 .gr th,main .cs .ot2 .gr td{padding:18px 16px 18px 0;border:0;border-bottom:1px solid var(--line);background:none;text-align:left;vertical-align:top}
main .cs .ot2 .gr thead th{padding-top:0;padding-bottom:12px;font:500 12px/1 var(--mono,ui-monospace),monospace;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
main .cs .ot2 .gr tbody th{width:42%;font-weight:500;color:var(--fg)}
main .cs .ot2 .gr td b{font-weight:700;font-variant-numeric:tabular-nums;color:var(--fg)}
main .cs .ot2 .ot-not{margin:24px 0 0!important;color:var(--muted)}
@media (max-width:420px){
 main .cs .ot2 .gr thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
 main .cs .ot2 .gr tr{display:block;padding:16px 0;border-bottom:1px solid var(--line)}
 main .cs .ot2 .gr tbody th,main .cs .ot2 .gr td{display:block;width:auto;padding:0;border:0}
 main .cs .ot2 .gr tbody th{margin-bottom:6px;font-size:14px;line-height:1.35;color:var(--muted)}
}
/* Up next after the last article: Contact, same card without an image */
.next .post-next.post-contact{grid-template-columns:1fr}
/* Home quotes: no LinkedIn link, so the person line is plain text */
#hq-h~.quotes .who{cursor:default}
/* Home quotes: names sit at the bottom of each card so they line up across a row */
.quotes.hq{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
.quotes.hq .quote{justify-content:space-between}
.quote .who .ini{display:grid;place-items:center;width:44px;height:44px;flex:none;border-radius:50%;background:color-mix(in srgb,var(--fg) 8%,transparent);font:600 14px/1 var(--sans,Inter),system-ui,sans-serif;color:var(--fg)!important;letter-spacing:.02em}
@media (max-width:1100px){.quotes.hq{grid-template-columns:1fr;max-width:680px}}
/* Quotes: LinkedIn icon sits on the bottom line, level with the role */
.quote .who .li{align-self:flex-end;margin-bottom:2px}

/* Home tiles: Leaf laptop further left; Tax savings with a bigger hand and the meta on one line */
@media (min-width:821px){.pcard.big .pc-media.code-leaf:not(.corner) img{left:40%!important}}

/* Leaf home tile: laptop a bit higher, and the same drifting colors as the Leaf hero */
@media (min-width:821px){.pcard.big .pc-media.code-leaf:not(.corner) img{top:6px!important}}
.pc-glow{position:absolute;inset:0;z-index:-3;pointer-events:none;overflow:hidden}
.pc-glow::before,.pc-glow::after{content:"";position:absolute;border-radius:50%;filter:blur(50px);will-change:transform}
.pc-glow::before{width:70%;aspect-ratio:1;left:-12%;top:20%;background:radial-gradient(circle,color-mix(in srgb,#3fd28a 34%,transparent) 0%,transparent 66%);animation:leaf-drift-a 18s ease-in-out infinite alternate}
.pc-glow::after{width:62%;aspect-ratio:1;right:-10%;top:-30%;background:radial-gradient(circle,color-mix(in srgb,#7cc8ff 30%,transparent) 0%,transparent 66%);animation:leaf-drift-b 22s ease-in-out infinite alternate}
/* Leaf hero colors drift further and a little faster */
@keyframes leaf-drift-a{0%{transform:translate3d(0,0,0) scale(1)}50%{transform:translate3d(24vw,-14%,0) scale(1.18)}100%{transform:translate3d(40vw,10%,0) scale(.9)}}
@keyframes leaf-drift-b{0%{transform:translate3d(0,0,0) scale(1)}50%{transform:translate3d(-26vw,22%,0) scale(1.12)}100%{transform:translate3d(-14vw,38%,0) scale(1.2)}}
.cs-hero-full.code-leaf .hf-media.code::before{animation-duration:18s}
.cs-hero-full.code-leaf .hf-media.code::after{animation-duration:22s}
@media (prefers-reduced-motion:reduce){.pc-glow::before,.pc-glow::after{animation:none}}

/* Tax savings tile: the full photo, phone further left (dark theme shows the light photo) */
[data-theme=dark] .projects a.pcard[href*="work/tr-joint"] .pc-media img{content:url(img/site-thumb/tr-joint-account-light-card2.jpg)}
/* Web Terminal tile: monitor a little lower, and a bit larger, growing to the left */
.projects a.pcard[href*="work/tr-web"] .pc-media img{transform:translateY(3%) scale(1.08);transform-origin:100% 55%}
.projects a.pcard[href*="work/tr-web"]:hover .pc-media img{transform:translateY(3%) scale(1.11)}
/* Leaf tile: laptop back down a little so the hover zoom keeps it inside */
@media (min-width:821px){.pcard.big .pc-media.code-leaf:not(.corner) img{top:8px!important}}
/* Choco tiles: hover zoom works again, and drifting colors like the Leaf tile */
a.pcard:hover .pc-media img:is([src*="web-hero2"],[src*="mob-hero2"]){transform:scale(1.04)!important;transform-origin:60% 100%}
.pc-glow.choco::before{background:radial-gradient(circle,color-mix(in srgb,#b9c6ff 40%,transparent) 0%,transparent 66%)}
.pc-glow.choco::after{background:radial-gradient(circle,color-mix(in srgb,#1b2fa8 55%,transparent) 0%,transparent 66%)}
/* Home tiles: hover zoom eases in and back out smoothly (slower on the way out); Choco tiles keep one zoom anchor so nothing snaps on mouse out */
html.js .pc-media img{transition:opacity .6s ease,transform .9s cubic-bezier(.25,.1,.25,1)}
html.js a.pcard:hover .pc-media img{transition:opacity .6s ease,transform .6s cubic-bezier(.25,.1,.25,1)}
.pc-media img:is([src*="web-hero2"],[src*="mob-hero2"]){transform-origin:60% 100%}

/* LOX mirror v3: a real phone with three screens (catalog, order guide, cart), Choco or white label */
main .cs .lx{--p:#3867ff;--ink:#18003e;--sub:#7a7385;--ln:#eee4de;--bgp:#faf7f5}
main .cs .lx[data-mode="wl"]{--p:var(--wl-p)}
main .cs .lx .lx-box{display:flex;justify-content:center;width:100%;padding:clamp(28px,4vw,48px) 16px;border-radius:var(--radius);background:#3867ff}
main .cs .lx .lx-dev{position:relative;width:min(300px,100%);aspect-ratio:300/620;padding:10px;border-radius:50px;background:#0c0c10;box-shadow:inset 0 0 0 2px #2a2a33,0 30px 60px -24px rgba(8,18,70,.7)}
main .cs .lx .lx-screen{position:relative;height:100%;border-radius:40px;overflow:hidden;background:var(--bgp);color:var(--ink);font-family:Inter,system-ui,sans-serif;display:flex;flex-direction:column}
main .cs .lx .lx-status{position:relative;flex:none;display:flex;align-items:center;justify-content:space-between;height:44px;padding:0 26px 0 30px}
main .cs .lx .lx-status b{font:600 14px/1 Inter,system-ui,sans-serif;color:#000}
main .cs .lx .lx-status i{width:46px;height:11px;background:linear-gradient(90deg,#000 0 16px,transparent 16px 20px,#000 20px 30px,transparent 30px 33px,#000 33px);border-radius:3px;opacity:.9}
main .cs .lx .lx-island{position:absolute;left:50%;top:10px;width:86px;height:25px;margin-left:-43px;border-radius:99px;background:#000}
main .cs .lx .lx-home{position:absolute;left:50%;bottom:7px;width:104px;height:4px;margin-left:-52px;border-radius:99px;background:#000;z-index:3}
main .cs .lx .lx-body{position:relative;flex:1;min-height:0}
main .cs .lx .lx-s{position:absolute;inset:0;overflow:hidden;opacity:0;pointer-events:none;transition:opacity .25s ease}
main .cs .lx[data-s="catalog"] .lx-s[data-s="catalog"],main .cs .lx[data-s="guide"] .lx-s[data-s="guide"],main .cs .lx[data-s="cart"] .lx-s[data-s="cart"]{opacity:1;pointer-events:auto}
main .cs .lx[data-mode="choco"] .lx-w,main .cs .lx[data-mode="wl"] .lx-c{display:none!important}
main .cs .lx svg{display:block;width:20px;height:20px;flex:none}
main .cs .lx img{display:block;margin:0!important;border:0!important;box-shadow:none!important;max-width:none}
main .cs .lx ul{margin:0!important;padding:0!important;list-style:none!important}
main .cs .lx li{margin:0!important;padding-left:0;list-style:none!important}
main .cs .lx li::before,main .cs .lx li::marker{content:none!important}
main .cs .lx p,main .cs .lx h4{margin:0!important}
main .cs .lx button{font-family:inherit;cursor:pointer}
/* bars */
main .cs .lx .lx-bar{display:flex;align-items:center;gap:10px;height:46px;padding:0 14px;border-bottom:1px solid var(--ln)}
main .cs .lx .lx-bar b{flex:1;font-size:16px;font-weight:600}
main .cs .lx .lx-bar i{display:grid;place-items:center;color:var(--ink)}
main .cs .lx img.lx-logo{width:28px!important;height:28px!important;border-radius:50%!important}
main .cs .lx .lx-bar.lx-w{border-bottom:0;height:54px;padding:6px 16px 0}
main .cs .lx .lx-bar h4{flex:1;font:900 24px/1 var(--display);letter-spacing:-.01em;text-transform:uppercase;color:var(--ink)!important}
main .cs .lx .lx-search{display:flex;align-items:center;gap:8px;margin:12px 14px 4px;padding:9px 12px;border-radius:10px;background:#efebe8;color:var(--sub);font-size:14px}
main .cs .lx .lx-search svg{width:16px;height:16px}
/* catalog */
main .cs .lx .lx-hero{position:relative;height:118px;margin-bottom:40px}
main .cs .lx img.lx-photo{width:100%!important;height:118px!important;object-fit:cover;border-radius:0!important}
main .cs .lx img.lx-blogo{position:absolute;left:16px;bottom:-32px;width:64px!important;height:64px!important;border:3px solid var(--bgp)!important;border-radius:50%!important}
main .cs .lx .lx-name{padding:0 16px 10px;font:900 26px/1 var(--display);letter-spacing:-.01em;color:var(--ink)!important}
main .cs .lx .lx-row{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-top:1px solid var(--ln);font-size:14px}
main .cs .lx .lx-row svg{width:18px;height:18px}
main .cs .lx .lx-ch{padding:14px 16px 6px;border-top:1px solid var(--ln);font-size:13px;font-weight:600}
main .cs .lx .lx-cats li{display:flex;align-items:center;gap:12px;padding:7px 16px!important}
main .cs .lx .lx-cats span{flex:1;font-size:14px}
main .cs .lx .lx-cats svg{width:18px;height:18px}
main .cs .lx img.lx-ct{width:40px!important;height:40px!important;border-radius:6px!important;object-fit:cover}
/* order guide */
main .cs .lx .lx-tabs{display:flex;gap:18px;padding:0 16px;border-bottom:1px solid var(--ln);font-size:13px;font-weight:500;color:var(--sub);white-space:nowrap;overflow:hidden}
main .cs .lx .lx-tabs span{padding:10px 0 9px;border-bottom:2px solid transparent}
main .cs .lx .lx-tabs span.on{color:var(--ink);border-color:var(--p)}
main .cs .lx .lx-p{display:grid;grid-template-columns:56px 1fr auto;gap:4px 12px;padding:12px 16px!important;border-bottom:1px solid var(--ln)}
main .cs .lx img.lx-pi{width:56px!important;height:56px!important;border-radius:8px!important;object-fit:cover}
main .cs .lx .lx-pt{display:flex;flex-direction:column;gap:2px;min-width:0}
main .cs .lx .lx-pt b{font-size:14px;font-weight:600;line-height:1.25}
main .cs .lx .lx-pt small{font-size:12px;color:var(--sub)}
main .cs .lx .lx-pt strong{margin-top:2px;font-size:14px;font-weight:600}
main .cs .lx .lx-star{color:var(--p);opacity:.35;transition:opacity .2s}
main .cs .lx .lx-star svg{width:18px;height:18px}
main .cs .lx .lx-ed{grid-column:1/-1;display:flex;align-items:center;gap:6px;font-size:11.5px;color:var(--sub)}
main .cs .lx .lx-ed svg{width:14px;height:14px;color:#d9822b}
main .cs .lx .lx-pick{grid-column:1/-1;display:flex;align-items:center;gap:8px;margin-top:4px}
main .cs .lx .lx-q{display:grid;place-items:center;width:52px;height:34px;border:1px solid #ddd5cf;border-radius:8px;font-size:14px;font-variant-numeric:tabular-nums;background:#fff}
main .cs .lx .lx-p.in .lx-q{border-color:var(--p);color:var(--p);font-weight:600}
main .cs .lx .lx-u{display:flex;align-items:center;gap:4px;height:34px;padding:0 10px;border:1px solid #ddd5cf;border-radius:8px;font-size:13px;color:var(--p);background:#fff}
main .cs .lx .lx-u svg{width:14px;height:14px}
main .cs .lx .lx-add{display:grid;place-items:center;width:36px;height:36px;margin-left:auto;padding:0;border:0;border-radius:50%;background:var(--p);color:#fff;transition:background .25s}
main .cs .lx .lx-add svg{width:18px;height:18px}
main .cs .lx .lx-add.pop{animation:lx-pop .3s ease}
@keyframes lx-pop{50%{transform:scale(1.18)}}
/* cart */
main .cs .lx .lx-line{display:flex;align-items:center;gap:12px;padding:11px 16px;border-bottom:1px solid var(--ln);font-size:14px}
main .cs .lx .lx-line>svg:first-child{color:var(--p)}
main .cs .lx .lx-line span{flex:1;display:flex;flex-direction:column;gap:2px}
main .cs .lx .lx-line small{font-size:12px;color:var(--sub)}
main .cs .lx .lx-line>svg:last-child{width:18px;height:18px;color:var(--sub)}
main .cs .lx .lx-ih{display:flex;align-items:center;justify-content:space-between;padding:14px 16px 6px}
main .cs .lx .lx-ih b{font-size:15px;font-weight:600}
main .cs .lx .lx-clear{padding:0;border:0;background:none;font-size:13px;font-weight:500;color:var(--p)}
main .cs .lx .lx-items li{display:flex;align-items:center;gap:12px;padding:9px 16px!important;border-bottom:1px solid var(--ln)}
main .cs .lx .lx-iq{display:grid;place-items:center;width:40px;height:40px;flex:none;border:1px solid #ddd5cf;border-radius:50%;font-size:15px;background:#fff}
main .cs .lx .lx-it{flex:1;display:flex;flex-direction:column;gap:1px;min-width:0}
main .cs .lx .lx-it small{font-size:11.5px;color:var(--sub)}
main .cs .lx .lx-it b{font-size:13.5px;font-weight:600}
main .cs .lx .lx-it strong{font-size:13.5px;font-weight:600}
main .cs .lx .lx-items img{width:44px!important;height:44px!important;border-radius:6px!important;object-fit:cover}
main .cs .lx .lx-empty{display:none;padding:18px 16px;font-size:13px;color:var(--sub)}
main .cs .lx.lx-none .lx-empty{display:block}
main .cs .lx .lx-foot{position:absolute;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-top:1px solid var(--ln);background:var(--bgp)}
main .cs .lx .lx-foot span{display:flex;flex-direction:column;gap:2px}
main .cs .lx .lx-foot small{font-size:12px;color:var(--sub)}
main .cs .lx .lx-foot b{font-size:17px;font-weight:700;font-variant-numeric:tabular-nums}
main .cs .lx .lx-go{padding:12px 18px;border:0;border-radius:99px;background:var(--p);color:#fff;font-size:13px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;transition:background .25s}
main .cs .lx.lx-none .lx-go{opacity:.4;pointer-events:none}
/* bottom nav */
main .cs .lx .lx-nav{flex:none;display:grid;grid-template-columns:repeat(3,1fr);height:66px;padding-bottom:14px;border-top:1px solid var(--ln);background:var(--bgp)}
main .cs .lx .lx-nav button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:0;border:0;background:none;color:#9a93a3}
main .cs .lx .lx-nav button.on{color:var(--p)}
main .cs .lx .lx-nav small{font-size:11px;font-weight:500}
main .cs .lx .lx-badge{position:absolute;top:6px;left:calc(50% + 6px);min-width:17px;height:17px;padding:0 4px;border-radius:99px;background:var(--p);color:#fff;font:600 10.5px/17px Inter,system-ui,sans-serif;font-style:normal;text-align:center}
main .cs .lx .lx-badge[hidden]{display:none}
@media (prefers-reduced-motion:reduce){main .cs .lx .lx-s,main .cs .lx .lx-add{transition:none;animation:none}}
/* v3 fixes: beat the article list and text styles inside the phone */
main .cs .lx .lx-screen :is(p,li,b,strong,small,span,h4,em){color:inherit;font-family:inherit}
main .cs .lx .lx-screen li{background:none!important;border-radius:0!important;box-shadow:none!important}
main .cs .lx .lx-p{display:grid!important;grid-template-columns:56px minmax(0,1fr) auto!important;align-items:start}
main .cs .lx .lx-cats li,main .cs .lx .lx-items li{display:flex!important}
main .cs .lx .lx-ch{color:var(--ink)!important}
main .cs .lx .lx-pt small,main .cs .lx .lx-it small,main .cs .lx .lx-line small,main .cs .lx .lx-foot small,main .cs .lx .lx-ed,main .cs .lx .lx-empty{color:var(--sub)!important}
main .cs .lx .lx-cats svg,main .cs .lx .lx-row svg{color:var(--ink)}
main .cs .lx .lx-p.in .lx-q{color:var(--p)!important}
main .cs .lx .lx-u{color:var(--p)!important}
main .cs .lx .lx-nav button small{color:inherit!important}
main .cs .lx .lx-badge{color:#fff!important}
main .cs .lx .lx-s{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none}
main .cs .lx .lx-s::-webkit-scrollbar{display:none}
main .cs .lx .lx-s[data-s="cart"]{display:flex;flex-direction:column}
main .cs .lx .lx-s[data-s="cart"]>*{flex:none}
main .cs .lx .lx-s[data-s="cart"] .lx-foot{position:sticky;top:auto;bottom:0;margin-top:auto}
main .cs .cs-muted{color:var(--muted)}
main .cs .cs-muted.cs-small{font-size:14px;line-height:1.5}
.cs-hero-full.code-leaf .hf-text .hf-scale{color:var(--leaf-ink-soft)}
.cs-hero-full.code-leaf .hf-text .hf-scale b{color:var(--leaf-ink-soft);opacity:.8}

/* Choco case heroes: the same drifting lights as the Choco home tiles */
.cs-hero-full .hf-media.fit:has(img:is([src*="web-hero2"],[src*="mob-hero2"])){overflow:hidden;isolation:isolate}
.cs-hero-full .hf-media.fit:has(img:is([src*="web-hero2"],[src*="mob-hero2"]))>img{z-index:1}
.cs-hero-full .hf-media.fit:has(img:is([src*="web-hero2"],[src*="mob-hero2"]))::before,
.cs-hero-full .hf-media.fit:has(img:is([src*="web-hero2"],[src*="mob-hero2"]))::after{content:"";position:absolute;z-index:0;pointer-events:none;border-radius:50%;filter:blur(60px);will-change:transform}
.cs-hero-full .hf-media.fit:has(img:is([src*="web-hero2"],[src*="mob-hero2"]))::before{width:62vw;height:62vw;left:-14vw;top:18%;background:radial-gradient(circle,color-mix(in srgb,#b9c6ff 40%,transparent) 0%,transparent 66%);animation:leaf-drift-a 18s ease-in-out infinite alternate}
.cs-hero-full .hf-media.fit:has(img:is([src*="web-hero2"],[src*="mob-hero2"]))::after{width:56vw;height:56vw;right:-12vw;top:-22%;background:radial-gradient(circle,color-mix(in srgb,#1b2fa8 55%,transparent) 0%,transparent 66%);animation:leaf-drift-b 22s ease-in-out infinite alternate}
@media (prefers-reduced-motion:reduce){.cs-hero-full .hf-media.fit::before,.cs-hero-full .hf-media.fit::after{animation:none}}

/* Choco lights: dark behind the white text on the left, light on the right by the mockups; each stays on its own side */
@keyframes choco-dark{0%{transform:translate3d(0,0,0) scale(1)}50%{transform:translate3d(6vw,-8%,0) scale(1.1)}100%{transform:translate3d(10vw,8%,0) scale(.95)}}
@keyframes choco-light{0%{transform:translate3d(0,0,0) scale(1)}50%{transform:translate3d(-6vw,12%,0) scale(1.12)}100%{transform:translate3d(-2vw,24%,0) scale(1.05)}}
.cs-hero-full .hf-media.fit:has(img:is([src*="web-hero2"],[src*="mob-hero2"]))::before{background:radial-gradient(circle,color-mix(in srgb,#1b2fa8 55%,transparent) 0%,transparent 66%);animation:choco-dark 18s ease-in-out infinite alternate}
.cs-hero-full .hf-media.fit:has(img:is([src*="web-hero2"],[src*="mob-hero2"]))::after{width:50vw;height:50vw;right:-8vw;top:-10%;background:radial-gradient(circle,color-mix(in srgb,#b9c6ff 45%,transparent) 0%,transparent 66%);animation:choco-light 22s ease-in-out infinite alternate}
.pc-glow.choco::before{background:radial-gradient(circle,color-mix(in srgb,#1b2fa8 55%,transparent) 0%,transparent 66%);animation-name:choco-dark}
.pc-glow.choco::after{right:-14%;top:-20%;background:radial-gradient(circle,color-mix(in srgb,#b9c6ff 45%,transparent) 0%,transparent 66%);animation-name:choco-light}

/* All Home and Up next cards: one size for every title, meta on one line */
:is(.projects,.next,main) a.pcard[class] .pc-bottom .pc-title{font-size:clamp(20px,1.6vw,24px)!important;line-height:1.15!important;max-width:13em!important;white-space:normal!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
:is(.projects,.next,main) a.pcard[class] .pc-bottom .pc-meta{display:block!important;max-width:100%!important;font-size:13px!important;white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis}
:is(.projects,.next,main) a.pcard[class] .pc-bottom .pc-meta .rt,:is(.projects,.next,main) a.pcard[class] .pc-bottom .pc-meta .dot{display:inline!important}
/* Choco ordering card: one white label phone, top right, bleeding off the top and right, never in the bottom 40% */
a.pcard .pc-media img[src*="choco-wl-store-phone"]{position:absolute!important;inset:auto!important;top:-9%!important;right:-4%!important;bottom:auto!important;left:auto!important;width:auto!important;height:69%!important;max-width:none!important;object-fit:contain!important;transform:none!important;transform-origin:100% 0;z-index:-2;filter:drop-shadow(0 24px 30px rgba(8,18,70,.35))}
a.pcard:hover .pc-media img[src*="choco-wl-store-phone"]{transform:scale(1.04)!important}
/* Home Choco tiles: lights a little smaller */
.projects .pc-glow.choco::before{width:58%;left:-8%;top:28%}
.projects .pc-glow.choco::after{width:50%;right:-10%;top:-16%}
/* Tax savings card: photo shifted right so the hand stays clear of the one line meta; the hand bleeds off the right edge */
.projects a.pcard[href*="work/tr-joint"] .pc-media img,.next a.pcard[href*="work/tr-joint"] .pc-media img{transform:none!important;-webkit-mask-image:none;mask-image:none}
.projects a.pcard[href*="work/tr-joint"]:hover .pc-media img,.next a.pcard[href*="work/tr-joint"]:hover .pc-media img{transform:scale(1.03)!important;transform-origin:100% 100%!important}
/* Web Terminal card on stacked layouts: monitor smaller, up in the top right, clear of the title */
@media (max-width:900px){.projects a.pcard[href*="work/tr-web"] .pc-media img,.next a.pcard[href*="work/tr-web"] .pc-media img{transform:translateY(-4%) scale(.8)!important;transform-origin:100% 0!important}
 .projects a.pcard[href*="work/tr-web"]:hover .pc-media img,.next a.pcard[href*="work/tr-web"]:hover .pc-media img{transform:translateY(-4%) scale(.83)!important}}
@media (max-width:900px){
 .projects a.pcard[href*="work/tr-web"] .pc-media img,.next a.pcard[href*="work/tr-web"] .pc-media img{-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 16%),linear-gradient(180deg,#000 82%,transparent 100%);-webkit-mask-composite:source-in;mask-image:linear-gradient(90deg,transparent 0,#000 16%),linear-gradient(180deg,#000 82%,transparent 100%);mask-composite:intersect}
 .projects .pcard.big .pc-media.code-leaf:not(.corner) img{transform:scale(.82)!important;transform-origin:100% 0!important}
}
/* Phone widths: every mockup stays in the top right, clear of the title and meta */
@media (max-width:600px){
 .projects a.pcard .pc-media img[src*="web-hero2"],.next a.pcard .pc-media img[src*="web-hero2"]{top:13%!important;bottom:auto!important;left:auto!important;right:-16%!important;width:60%!important;height:auto!important;transform:none!important}
 a.pcard .pc-media img[src*="choco-wl-store-phone"]{top:-22%!important;height:82%!important}
 .projects .pcard.big .pc-media.code-leaf:not(.corner) img{transform:scale(.68)!important;transform-origin:100% 0!important}
 .projects a.pcard[href*="work/tr-web"] .pc-media img,.next a.pcard[href*="work/tr-web"] .pc-media img{transform:translateY(8%) scale(.7)!important}
}
/* Choco ordering hero: the phones from the old site, kept right of the text */
@media (min-width:901px){.cs-hero-full .hf-media.fit>img[src*="choco-lox-phones"]{height:78%!important;bottom:7%!important;top:auto!important;right:calc(max(0px,(100vw - 1392px)/2) - 48px)!important;-webkit-mask-image:none!important;mask-image:none!important}}
/* Choco ordering card on phones: the whole picture, phones smaller in the top right, clear of the label */
@media (max-width:820px){a.pcard .pc-media img[src*="choco-lox-card"]{object-fit:contain!important;object-position:100% 30%!important}}

/* Card hover, one calm motion for every Home and Up next card: each image keeps its own resting position (--t0, --o),
   hover only adds the same small zoom from a fixed point, so nothing jumps sideways. The id inside :is() lifts this above older card rules. */
a.pcard:is(#_,[href]) .pc-media img{transform:var(--t0,translate3d(0,var(--py,0px),0) scale(1.08)) scale(var(--z,1))!important;transform-origin:var(--o,50% 50%)!important}
html.js a.pcard:is(#_,[href]) .pc-media img{transition:opacity .6s ease,transform .7s cubic-bezier(.2,.7,.2,1)!important}
a.pcard:is(#_,[href]):hover .pc-media img{--z:1.03}
a.pcard .pc-media img[src*="web-hero2"]{--t0:translate(0,0);--o:70% 100%}
a.pcard .pc-media img:is([src*="choco-wl-store-phone"],[src*="choco-lox-phones"]){--t0:translate(0,0);--o:100% 0}
a.pcard[href*="work/tr-joint"] .pc-media img{--t0:translate(0,0);--o:100% 100%}
a.pcard[href*="work/tr-web"] .pc-media img{--t0:translateY(3%) scale(1.08);--o:100% 55%}
.pcard.big .pc-media.code-leaf:not(.corner) img{--o:60% 40%}
@media (max-width:900px){
 a.pcard[href*="work/tr-web"] .pc-media img{--t0:translateY(-4%) scale(.8);--o:100% 0}
 .pcard.big .pc-media.code-leaf:not(.corner) img{--t0:scale(.82);--o:100% 0}
}
@media (max-width:600px){
 a.pcard[href*="work/tr-web"] .pc-media img{--t0:translateY(8%) scale(.7)}
 .pcard.big .pc-media.code-leaf:not(.corner) img{--t0:scale(.68)}
}
@media (prefers-reduced-motion:reduce){a.pcard:is(#_,[href]):hover .pc-media img{--z:1}}
@media (min-width:821px){.pcard.big .pc-media.code-leaf:not(.corner) img{top:-12px!important}}  /* Leaf home tile: laptop higher, base clear of the bottom edge */
/* Leaf hero, light only: a muted gray green drift and a gray one, instead of bright green and blue */
.cs-hero-full.code-leaf .sub{text-wrap:pretty}  /* Leaf hero intro: no single word left on the last line */
@media (min-width:761px){.s4 .pc-media img[src*="web-hero2"]{right:-18%!important}}  /* Web ordering home tile: laptop far enough right that the cut off column title on its right edge stays hidden */

/* TR and Leaf case heroes: the same in light mode as in dark mode, like the Choco heroes */
html:not([data-theme=dark]) .cs-hero-full.code-leaf{--leaf-a:#1a5876;--leaf-b:#0e344a;--leaf-grid:rgba(255,255,255,.05);--leaf-ink:#fff;--leaf-ink-soft:rgba(255,255,255,.82)}

/* Choco ordering: three phones (splash, chat, catalog) in the case hero and on its home tile.
   Calm and symmetric: straight phones, chat in front and a little bigger, a slow, small float. */
.hf-trio,.pc-trio{aspect-ratio:.96}
:is(.hf-trio,.pc-trio) .tp{position:absolute;aspect-ratio:720/1477;background:center/contain no-repeat;animation:trio-float 9s ease-in-out infinite}
:is(.hf-trio,.pc-trio) .tp0{left:0;top:9%;height:82%;z-index:1;animation-delay:-2s}
:is(.hf-trio,.pc-trio) .tp1{left:26.5%;top:0;height:96%;z-index:3;animation-delay:-5s}
:is(.hf-trio,.pc-trio) .tp2{right:0;top:9%;height:82%;z-index:2;animation-delay:-7s}
@keyframes trio-float{0%,100%{translate:0 0}50%{translate:0 -6px}}
.hf-trio .tp{filter:drop-shadow(0 28px 36px rgba(10,16,70,.32)) drop-shadow(0 6px 12px rgba(10,16,70,.2))}
.pc-trio .tp{filter:drop-shadow(0 16px 22px rgba(10,16,70,.3)) drop-shadow(0 4px 8px rgba(10,16,70,.18))}
@media (prefers-reduced-motion:reduce){:is(.hf-trio,.pc-trio) .tp{animation:none}}

.cs-hero-full .hf-media.trio{overflow:visible}
.cs-hero-full .hf-trio{position:absolute;z-index:1;right:max(24px,calc((100vw - 1192px)/2));top:50%;height:min(70%,640px);translate:0 -46%}
/* the same calm tilt as the old Choco image: all three phones on one plane */
:is(.hf-trio,.pc-trio){transform:perspective(2200px) rotateX(11deg) rotateY(-5deg) rotateZ(-2deg)}
@media (min-width:901px) and (max-width:1279px){
  .cs-hero-full:has(.hf-media.trio) .hf-text :is(h1,.sub){max-width:min(46vw,620px)}
  .cs-hero-full .hf-trio{height:min(62%,38vw);right:56px}
}
@media (max-width:900px){
  .cs-hero-full .hf-trio{position:relative;right:auto;top:auto;translate:none;height:auto;width:min(78%,380px);margin:20px auto 0}
  .cs-hero-full .hf-media.trio{padding-bottom:40px}
}

.pc-media .pc-trio{position:absolute;z-index:0;top:17%;right:10%;height:49%;transition:scale .7s cubic-bezier(.2,.7,.2,1);transform-origin:60% 40%}
a.pcard:hover .pc-media .pc-trio{scale:1.03}
@media (prefers-reduced-motion:reduce){a.pcard:hover .pc-media .pc-trio{scale:1}}

/* Choco heroes (web and mobile), desktop: text and asset centered in the hero the same way as Leaf. TR keeps its own layout. */
@media (min-width:901px){
  .cs-hero-full.tall:not(.tr):not(.code-leaf) .hf-text{top:calc(50% + 32px);bottom:auto;translate:0 -50%}
  .cs-hero-full .hf-media.fit img[src*="web-hero2"]{top:calc(50% + 32px)!important}
}
@media (max-width:760px){.pc-media .pc-trio{top:25.5%;right:7%;height:33%}}  /* phones: the short tile keeps the three phones between the label and the title */
@media (min-width:901px){.cs-hero-full.tall.tr .hf-vid.v0{right:max(16px,calc((100vw - 1192px)/2 - 112px))}.cs-hero-full.tall.tr .hf-vid.v1{right:calc(max(16px,calc((100vw - 1192px)/2 - 112px)) + 170px)}}  /* Web Terminal: both clips 40px further right, never closer than 16px to the edge */
@media (min-width:901px){.cs-hero-full.tall.tr .hf-media.fit>img{right:calc(max(24px,(100vw - 1192px)/2) - 130px)!important}}  /* Tax savings: hand 40px further right */

/* Home MOB card, as in Figma (Card/Mobile ordering 136:13269): the phones at their real size, Figma blue, dark arrow */
a.pcard[href*="choco-ordering-platform"] .pc-media{background:#3867ff!important}
a.pcard .pc-media img[src*="choco-mob-card"]{--t0:translate(0,0);--o:100% 50%}
a.pcard[href*="choco-ordering-platform"] .pc-media .go{background:#e4e4e7;color:#16161c;box-shadow:none}
a.pcard[href*="choco-ordering-platform"]:hover .pc-media .go{background:#fff;color:#0d0d12;box-shadow:none}
a.pcard[href*="choco-ordering-platform"] .pc-media::after{background:linear-gradient(180deg,rgba(0,0,0,0) 0%,rgba(0,0,0,0) 55%,rgba(0,0,0,.38) 100%)!important}
/* Home Choco tiles share one light: each card's glow layer spans the whole row (offset set in site.js), so both show slices of the same slowly drifting colors */
.projects a.pcard .pc-glow.choco{inset:0 auto 0 auto;left:calc(-1 * var(--gx,0px));width:var(--gw,100%)}
.projects a.pcard .pc-glow.choco::before{width:34%;left:-4%;top:30%}
.projects a.pcard .pc-glow.choco::after{width:36%;right:14%;top:-22%}
@media (min-width:901px){.cs-hero-full .hf-trio{translate:72px -46%}}  /* Mobile ordering hero: the three phones further right */
/* Choco: the dark drifting shade a little softer (55% → 30%), on the home tiles and both case heroes */
.pc-glow.choco::before{background:radial-gradient(circle,color-mix(in srgb,#1b2fa8 30%,transparent) 0%,transparent 66%)!important}
.cs-hero-full .hf-media.fit:has(img:is([src*="web-hero2"],[src*="mob-hero2"]))::before{background:radial-gradient(circle,color-mix(in srgb,#1b2fa8 30%,transparent) 0%,transparent 66%)!important}
/* Tax savings card: the hand zoom felt late, since it grew from the bottom right corner where the hand sits. It now grows from the middle and a little faster */
a.pcard[href*="work/tr-joint"] .pc-media img{--o:50% 50%}
html.js a.pcard:is(#_,[href])[href*="work/tr-joint"] .pc-media img{transition:opacity .6s ease,transform .45s cubic-bezier(.2,.7,.2,1)!important}
/* case study password page */


/* Choco web: text, then the switch, then the blue box */
main .cs .live-ui.ab .ab-seg,main .cs .tour .tr-tabs.ab-seg{margin:0 auto 56px!important}
main .cs .cs-main figure.live-ui.ab[class][class],main .cs .cs-main figure.tour[class][class]{margin-top:48px!important}
/* Choco web, Three directions v5: cards hold number, title and wireframe; the panel under them compares the hovered one */
main .cs .cc-list>li .cc-txt{padding:4px 4px 16px}
main .cs .cv{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:clamp(20px,4vw,48px);align-items:center;margin:24px 12px 0;padding:22px 0 4px;border-top:1px solid rgba(255,255,255,.25);color:#fff}
main .cs .cv-lines{display:grid}
main .cs .cv-line{grid-area:1/1;margin:0!important;opacity:0;transition:opacity .3s;font:400 15px/1.5 var(--sans,Inter),system-ui,sans-serif!important;color:rgba(255,255,255,.88)!important}
main .cs .cv-line.on{opacity:1}
main .cs .cv-line b{display:block;margin-bottom:4px;font-weight:600;color:#fff}
main .cs .cv-bars{display:grid;gap:12px}
main .cs .cv-row{display:grid;grid-template-columns:minmax(0,1fr) 3.4em;gap:6px 12px;align-items:center}main .cs .cv-k{grid-column:1/-1}
main .cs .cv-k{font:500 13.5px/1.3 var(--sans,Inter),system-ui,sans-serif;color:rgba(255,255,255,.82)}
main .cs .cv-v{font:600 13px/1 var(--sans,Inter),system-ui,sans-serif;color:#fff}
main .cs .cv-track{position:relative;height:10px;border-radius:5px;background:linear-gradient(90deg,transparent calc(33.333% - 1px),#3867ff calc(33.333% - 1px) calc(33.333% + 1px),transparent calc(33.333% + 1px) calc(66.666% - 1px),#3867ff calc(66.666% - 1px) calc(66.666% + 1px),transparent calc(66.666% + 1px)),rgba(255,255,255,.2)}
main .cs .cv-bar{position:absolute;inset:0 auto 0 0;width:calc(var(--v,1) / 3 * 100%);border-radius:5px;background:rgba(255,255,255,.5);transition:width .5s cubic-bezier(.2,.7,.2,1),background-color .3s}
main .cs .cv.chosen .cv-bar{background:#fff}
@media (max-width:760px){main .cs .cv{grid-template-columns:1fr;gap:18px;margin:18px 4px 0}main .cs .cv-k{font-size:13px}}
@media (prefers-reduced-motion:reduce){main .cs .cv-bar,main .cs .cv-line{transition:none}}
/* Three directions v6: the line sits in each card above the wireframe; the panel below holds only the bars */
main .cs .cc-list>li .cc-txt p.cc-line{display:block!important;margin:8px 0 0!important;max-height:none!important;opacity:1!important;position:static!important;padding:0!important;background:none!important;font:400 14px/1.45 var(--sans,Inter),system-ui,sans-serif!important;color:rgba(255,255,255,.85)!important}
main .cs .cc-list>li{display:flex;flex-direction:column}
main .cs .cc-list>li .cc-txt{display:block;flex:1;order:0}
main .cs .cc-list>li .cc-img{display:block;order:1}
main .cs .cv{display:block;padding-top:24px}
main .cs .cv-bars{grid-template-columns:1fr;gap:12px}
@media (min-width:761px){main .cs .cv-row{grid-template-columns:15em minmax(0,1fr) 3.4em;gap:16px}main .cs .cv-k{grid-column:auto}}
@media (max-width:760px){main .cs .cv-bars{grid-template-columns:1fr}main .cs .cc-list>li .cc-txt{padding-bottom:14px}main .cs .cc-txt b{margin-bottom:0!important}}
/* Three directions: selection by click only; hover is a quiet hint on the other cards, nothing moves */
main .cs .cc-list:hover>li:not(:hover):not(.on){opacity:.6}
main .cs .cc-list>li:not(.on):hover{opacity:.85}
main .cs .cc-list>li .cc-img,main .cs .cc-list>li.on .cc-img{transform:none!important}
main .cs .cc-list>li.on .cc-img{box-shadow:0 18px 36px -18px rgba(8,18,70,.6)}
main .cs .cc-list>li{transition:background-color .3s,opacity .3s!important}
main .cs .cc-list>li:focus-visible{box-shadow:0 0 0 2px #fff}
main .cs .live-ui.concepts .cc-list>li{padding-bottom:12px!important}
/* Listen: while the first clip loads, the play icon turns into a small spinning ring */
.tts-btn.is-loading .tts-ico svg,.tts-bar.is-loading .tts-pp svg{opacity:0}
.tts-btn .tts-ico,.tts-bar .tts-pp{position:relative}
.tts-btn.is-loading .tts-ico::after,.tts-bar.is-loading .tts-pp::after{content:"";position:absolute;inset:0;margin:auto;width:14px;height:14px;border-radius:50%;border:2px solid currentColor;border-right-color:transparent;animation:ttsSpin .7s linear infinite}
@keyframes ttsSpin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.tts-btn.is-loading .tts-ico::after,.tts-bar.is-loading .tts-pp::after{animation-duration:2s}}
/* End of every case: one line and the Get in touch button, right before Up next */
.cs-more{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px 24px;margin:0 0 56px;padding:28px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.cs-more p{margin:0!important;font:600 clamp(19px,2.2vw,22px)/1.3 var(--display,var(--sans,Inter)),system-ui,sans-serif;color:var(--fg)}
@media (max-width:600px){.cs-more{flex-direction:column;align-items:flex-start;margin-bottom:40px}}
/* the case page link colour must not tint the Get in touch button: white on the purple, like Home and About */
main .cs .next .cs-more a.hb-touch,main .cs .next .cs-more a.hb-touch .hb-roll{color:#fff!important}
main .cs .next .cs-more a.hb-touch:hover,main .cs .next .cs-more a.hb-touch:focus-visible,main .cs .next .cs-more a.hb-touch:hover .hb-roll,main .cs .next .cs-more a.hb-touch:focus-visible .hb-roll{color:#5b3df5!important}
/* image error and full photo: a 1px outline in the gray of the error icon, drawn on top so the photo can't cover it (white photos stay without) */
main .cs .prow.imgerr .pr-img::after,main .cs .prow[data-img="fill"]:not(.imgerr) .pr-img::after{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 0 0 1px #ccc;pointer-events:none}
main .cs .prow.imgerr .pr-img{box-shadow:none!important}
/* Product row: Reset next to Shuffle, quiet outline, appears once something changed */
main .cs .prow .pr-top{gap:8px}
main .cs .prow .pr-reset{display:inline-flex;align-items:center;gap:7px;margin:0!important;padding:8px 14px!important;border:1px solid var(--line)!important;border-radius:999px;background:none!important;color:var(--fg);font:600 13px/1 var(--sans,Inter),system-ui,sans-serif;cursor:pointer}
main .cs .prow .pr-reset svg{width:15px;height:15px}
main .cs .prow .pr-reset:hover{border-color:var(--fg)!important}
main .cs .prow .pr-reset:active{transform:scale(.95)}
main .cs .prow .pr-foot{display:flex;justify-content:flex-end;margin-top:16px}
main .cs .prow .pr-reset:disabled{opacity:.4;cursor:default;transform:none}
main .cs .prow .pr-reset:disabled:hover{border-color:var(--line)!important}
/* ===== Decision 4: one app, two brands (LOX Figma, White label template). Only these tokens change between brands and modes ===== */
main .cs .bd{--bd-pri:#3867ff;--bd-bg:#faf7f5;--bd-card:#fff;--bd-line:#eee4de;--bd-fg:#18003e;--bd-weak:#8a8a8a;--bd-name:var(--bd-pri);--bd-sys:#000;display:flex;flex-direction:column;align-items:center}
main .cs .bd[data-brand="veg"]{--bd-pri:#1f7a4d}
main .cs .bd[data-mode="dark"]{--bd-bg:#18003f;--bd-card:#220a57;--bd-line:#1a0d78;--bd-fg:#fff;--bd-weak:rgba(255,255,255,.5);--bd-name:#c0d5ff;--bd-sys:#fff}
main .cs .bd[data-brand="veg"][data-mode="dark"]{--bd-bg:#0c1f16;--bd-card:#143323;--bd-line:#1d4632;--bd-name:#bde8cf}
main .cs .bd .b-veg,main .cs .bd[data-brand="veg"] .b-choco{display:none!important}
main .cs .bd[data-brand="veg"] .b-veg{display:block!important}
main .cs .bd[data-brand="veg"] .bd-name .b-veg{display:inline!important}
/* switches above the phone */
main .cs .bd-ctl{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin:0 0 20px}
main .cs .bd-seg{position:relative;display:grid;grid-template-columns:1fr 1fr;min-width:220px;padding:4px;border-radius:99px;background:var(--soft);box-shadow:inset 0 0 0 1px var(--line)}
main .cs .bd-seg button{position:relative;z-index:1;margin:0!important;padding:9px 16px!important;border:0!important;border-radius:99px;background:none!important;color:var(--muted);font:600 14px/1 var(--sans,Inter),system-ui,sans-serif;cursor:pointer;transition:color .25s}
main .cs .bd-seg button:hover{color:var(--fg)}
main .cs .bd-seg button[aria-pressed="true"]{color:#fff}
main .cs .bd-thumb{position:absolute;top:4px;bottom:4px;left:4px;width:calc(50% - 4px);border-radius:99px;background:var(--accent);transition:transform .35s cubic-bezier(.2,.7,.2,1)}
main .cs .bd-seg[data-i="1"] .bd-thumb{transform:translateX(100%)}
/* phone */
main .cs .bd-box{display:flex;justify-content:center;width:100%;padding:clamp(28px,4vw,48px) 16px;border-radius:var(--radius);background:#3867ff;transition:background-color .4s}
main .cs .bd[data-brand="veg"] .bd-box{background:#1f7a4d}
main .cs .bd-dev{position:relative;width:min(300px,100%);aspect-ratio:300/620;padding:10px;border-radius:50px;background:#0c0c10;box-shadow:inset 0 0 0 2px #2a2a33,0 30px 60px -24px rgba(8,18,70,.7)}
main .cs .bd-screen{position:relative;height:100%;border-radius:40px;overflow:hidden;display:flex;flex-direction:column;background:var(--bd-bg);color:var(--bd-fg);font-family:Inter,system-ui,sans-serif;transition:background-color .35s,color .35s}
main .cs .bd-screen *{box-sizing:border-box}
main .cs .bd-screen :is(p,li,b,strong,small,span,h4,em){margin:0;color:inherit;font-family:inherit;letter-spacing:normal}
main .cs .bd-screen :is(ul,li){margin:0!important;padding:0!important;list-style:none!important;background:none;box-shadow:none}
main .cs .bd-screen li::before{content:none!important}
main .cs .bd-screen img{display:block;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;max-width:none}
main .cs .bd-screen svg{display:block;width:18px;height:18px;flex:none}
main .cs .bd-screen button{font:inherit;color:inherit;cursor:pointer;margin:0!important}
main .cs .bd-status{position:absolute;inset:0 0 auto;z-index:4;display:flex;align-items:center;justify-content:space-between;height:44px;padding:0 26px 0 30px;pointer-events:none}
main .cs .bd-status b{font:600 14px/1 Inter,system-ui,sans-serif;color:var(--bd-sys)}
main .cs .bd[data-s="catalog"] .bd-status b{color:#fff}
main .cs .bd-status i{width:46px;height:11px;background:linear-gradient(90deg,currentColor 0 16px,transparent 16px 20px,currentColor 20px 30px,transparent 30px 33px,currentColor 33px);border-radius:3px;color:var(--bd-sys);opacity:.9}
main .cs .bd[data-s="catalog"] .bd-status i{color:#fff}
main .cs .bd-island{position:absolute;left:50%;top:10px;width:86px;height:25px;margin-left:-43px;border-radius:99px;background:#000}
main .cs .bd-home{position:absolute;left:50%;bottom:7px;width:104px;height:4px;margin-left:-52px;border-radius:99px;background:var(--bd-fg);z-index:3}
main .cs .bd-body{position:relative;flex:1;min-height:0}
main .cs .bd-s{position:absolute;inset:0;overflow:hidden auto;scrollbar-width:none;opacity:0;visibility:hidden;transition:opacity .25s,visibility 0s .25s}
main .cs .bd-s::-webkit-scrollbar{display:none}
main .cs .bd[data-s="catalog"] .bd-s[data-s="catalog"],main .cs .bd[data-s="guide"] .bd-s[data-s="guide"],main .cs .bd[data-s="cart"] .bd-s[data-s="cart"]{opacity:1;visibility:visible;transition:opacity .25s}
/* catalog, as in the Figma screen (375 wide, scaled to the 280 px screen) */
main .cs .bd-hero{position:relative;height:166px}
main .cs .bd-photo{width:100%!important;height:150px!important;object-fit:cover}
main .cs .bd-float{position:absolute;left:0;right:0;top:44px;display:flex;align-items:center;gap:6px;padding:0 11px}
main .cs .bd-float i,main .cs .bd-float span{display:flex;align-items:center;justify-content:center;height:34px;border-radius:99px;background:rgba(0,0,0,.5);color:#fff}
main .cs .bd-float i{width:34px;flex:none}
main .cs .bd-float span{flex:1;justify-content:flex-start;gap:6px;padding:0 12px;font-size:12px}
main .cs .bd-float svg{width:17px;height:17px}
main .cs .bd-logo{position:absolute;left:11px;top:122px;display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:50%;overflow:hidden;background:var(--bd-pri);box-shadow:0 0 0 2px var(--bd-line)}
main .cs .bd-logo img{width:34px!important;height:auto!important}
main .cs .bd-logo.b-veg img{width:100%!important;height:100%!important;object-fit:cover}
main .cs .bd[data-brand="veg"] .bd-logo.b-veg{display:flex!important;background:#fff}
main .cs .bd-name{padding:10px 12px 0;font:700 18px/1.15 Helvetica,Arial,sans-serif!important;text-transform:uppercase;letter-spacing:.2px!important;color:var(--bd-name)!important;transition:color .35s}
main .cs .bd-info{display:grid;gap:6px;padding:12px}
main .cs .bd-info p{font-size:12px!important;line-height:16px!important;color:var(--bd-fg)!important}
main .cs .bd-info b{font-weight:700}
main .cs .bd-acc{display:flex;align-items:center;justify-content:space-between;height:43px;padding:0 12px;border-top:1px solid var(--bd-line);font-size:12px;font-weight:600}
main .cs .bd-ch{padding:18px 12px 4px;font-size:11px!important;font-weight:500;border-top:1px solid var(--bd-line)}
main .cs .bd-cats li{display:grid;grid-template-columns:54px 1fr 40px;align-items:center;height:57px}
main .cs .bd-ct{display:flex;justify-content:center}
main .cs .bd-ct img{width:30px!important;height:30px!important;object-fit:cover;box-shadow:0 0 0 1px var(--bd-line)!important}
main .cs .bd-cn{align-self:stretch;display:flex;align-items:center;border-bottom:1px solid var(--bd-line);font-size:12px}
main .cs .bd-cats li>svg{justify-self:stretch;height:100%;padding:0 11px;width:40px;border-bottom:1px solid var(--bd-line);box-sizing:border-box}
/* order guide and cart bars */
main .cs .bd-bar{display:flex;align-items:center;justify-content:space-between;padding:52px 14px 10px}
main .cs .bd-bar h4{font:700 19px/1.2 Inter,system-ui,sans-serif!important;color:var(--bd-fg)!important}
main .cs .bd-tabs{display:flex;gap:6px;padding:0 14px 12px;overflow:hidden}
main .cs .bd-tabs span{flex:none;padding:6px 11px;border-radius:99px;border:1px solid var(--bd-line);font-size:11px;font-weight:500}
main .cs .bd-tabs span.on{background:var(--bd-pri);border-color:var(--bd-pri);color:#fff}
/* product cell, the same as Decision 1 (After), scaled to the phone */
main .cs .bd-cells{display:grid;gap:10px;padding:0 12px 16px!important}
main .cs .bd-cell{display:grid!important;grid-template-columns:56px minmax(0,1fr) 30px;grid-template-areas:"img info star" "pick pick cart";gap:10px;padding:10px!important;border-radius:12px!important;background:var(--bd-card)!important;box-shadow:0 0 0 1px var(--bd-line)!important;transition:background-color .35s}
main .cs .bd-ci{grid-area:img;width:56px;height:56px;border-radius:6px;overflow:hidden;background:#fff}
main .cs .bd-ci img{width:100%!important;height:100%!important;object-fit:contain}
main .cs .bd-cinfo{grid-area:info;display:flex;flex-direction:column;min-width:0}
main .cs .bd-cinfo b{font-size:12.5px;font-weight:400;line-height:1.25;color:var(--bd-fg)}
main .cs .bd-cinfo small{font-size:10.5px;line-height:1.6;color:var(--bd-weak)}
main .cs .bd-cinfo strong{font-size:12.5px;font-weight:700;line-height:1.5}
main .cs .bd-star{grid-area:star;align-self:start;display:flex;justify-content:center;width:30px;height:30px;padding:2px!important;border:0!important;background:none!important;color:#cfcfcf}
main .cs .bd-star svg{width:24px;height:24px}
main .cs .bd-star[aria-pressed="true"]{color:var(--bd-pri)}
main .cs .bd-star[aria-pressed="true"] svg path{fill:currentColor}
main .cs .bd-pick{grid-area:pick;display:grid;grid-template-columns:1fr 1fr;height:34px;border:1px solid var(--bd-line);border-radius:2px}
main .cs .bd-q{display:flex;align-items:center;justify-content:center;font-size:12.5px;font-weight:700;border-right:1px solid var(--bd-line)}
main .cs .bd-u{display:flex;align-items:center;justify-content:center;gap:4px;font-size:12.5px}
main .cs .bd-u svg{width:14px;height:14px}
main .cs .bd-add{grid-area:cart;display:flex;align-items:center;justify-content:center;width:34px;height:34px;padding:0!important;border:0!important;border-radius:50%;background:var(--bd-pri)!important;color:#fff!important;transition:background-color .35s}
main .cs .bd-add svg{width:17px;height:17px}
main .cs .bd-add.pop{animation:bdPop .3s ease}
@keyframes bdPop{50%{transform:scale(.86)}}
/* cart */
main .cs .bd-line{display:grid;grid-template-columns:20px 1fr 18px;align-items:center;gap:10px;padding:10px 14px;border-top:1px solid var(--bd-line);font-size:12px}
main .cs .bd-line small{display:block;font-size:10px;color:var(--bd-weak)}
main .cs .bd-ih{display:flex;align-items:center;justify-content:space-between;padding:14px 14px 6px;border-top:1px solid var(--bd-line)}
main .cs .bd-ih b{font-size:12px}
main .cs .bd-clear{padding:0!important;border:0!important;background:none!important;color:var(--bd-pri)!important;font-size:11px!important;font-weight:600}
main .cs .bd-items li{display:grid!important;grid-template-columns:36px 1fr auto;align-items:center;gap:10px;padding:8px 14px!important;border-bottom:1px solid var(--bd-line)}
main .cs .bd-items img{width:36px!important;height:36px!important;border-radius:4px!important;background:#fff;object-fit:contain}
main .cs .bd-it{display:flex;flex-direction:column;min-width:0}
main .cs .bd-it b{font-size:11.5px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
main .cs .bd-it small{font-size:10px;color:var(--bd-weak)}
main .cs .bd-items strong{font-size:11.5px;font-weight:700}
main .cs .bd-empty{display:none;padding:18px 14px;font-size:11.5px!important;color:var(--bd-weak)!important}
main .cs .bd.bd-none .bd-empty{display:block}
main .cs .bd-foot{position:sticky;bottom:0;display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-top:1px solid var(--bd-line);background:var(--bd-bg)}
main .cs .bd-foot small{display:block;font-size:10px;color:var(--bd-weak)}
main .cs .bd-foot b{font-size:15px;font-weight:700}
main .cs .bd-go{padding:10px 16px!important;border:0!important;border-radius:99px;background:var(--bd-pri)!important;color:#fff!important;font-size:12px!important;font-weight:600}
main .cs .bd.bd-none .bd-go{opacity:.4}
/* tab bar, as in the Figma: the active tab in the light brand tone */
main .cs .bd-nav{flex:none;display:grid;grid-template-columns:repeat(3,1fr);height:60px;padding-bottom:14px;border-top:1px solid var(--bd-line);background:var(--bd-bg)}
main .cs .bd-nav button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:0!important;border:0!important;background:none!important;color:var(--bd-weak)!important}
main .cs .bd-nav button.on{color:var(--bd-pri)!important}
main .cs .bd[data-mode="dark"] .bd-nav button.on{color:var(--bd-name)!important}
main .cs .bd-nav small{font-size:10px;font-weight:500;color:inherit!important}
main .cs .bd-nav svg{width:19px;height:19px}
main .cs .bd-badge{position:absolute;top:2px;left:calc(50% + 4px);min-width:16px;height:16px;padding:0 4px;border-radius:99px;background:var(--bd-pri);color:#fff!important;font:700 9px/16px Inter,sans-serif;font-style:normal;text-align:center}
main .cs .bd figcaption{margin-top:18px!important}
@media (prefers-reduced-motion:reduce){main .cs .bd *{transition:none!important;animation:none!important}}
/* the screen reset above zeroes list padding; the cells, lists and cart rows get theirs back here */
main .cs .bd-screen ul.bd-cells{padding:0 12px 16px!important}
main .cs .bd-screen li.bd-cell{padding:10px!important}
main .cs .bd-screen .bd-items li{padding:8px 14px!important}
html.js main .cs .bd figure img,html.js main .cs .bd img{opacity:1}
/* Decision 4 fixes: centered island, iOS status icons, light dividers in dark, native list rows, brand picker, underline tabs */
main .cs .bd-screen .bd-island{left:50%!important;margin:0!important;transform:translateX(-50%)}
main .cs .bd-status{height:45px;padding:0 22px 0 30px}
main .cs .bd-sys{display:flex!important;align-items:center;gap:5px;color:var(--bd-sys)}
main .cs .bd[data-s="catalog"] .bd-sys{color:#fff}
main .cs .bd-screen .bd-sys svg{display:block;height:11px;width:auto;fill:currentColor}
main .cs .bd-screen .bd-sys .bd-bat{height:12px}
main .cs .bd[data-mode="dark"],main .cs .bd[data-brand="veg"][data-mode="dark"]{--bd-line:rgba(255,255,255,.12)}
main .cs .bd-logo{box-shadow:0 0 0 2px var(--bd-bg)}
main .cs .bd-logo.b-choco{background:#fff}
main .cs .bd-logo.b-choco img{width:100%!important;height:100%!important;object-fit:cover}
main .cs .bd-screen ul.bd-cells{display:block;padding:0!important;border-top:1px solid var(--bd-line)}
main .cs .bd-screen li.bd-cell{gap:10px 10px;padding:12px 14px!important;border-radius:0!important;background:none!important;box-shadow:none!important;border-bottom:1px solid var(--bd-line)}
main .cs .bd-ed{display:block;margin-top:2px!important;font-size:10px!important;line-height:1.4!important;color:#c2410c!important}
main .cs .bd[data-mode="dark"] .bd-ed{color:#ffb38a!important}
main .cs .bd-pick{border-color:var(--bd-pri);color:var(--bd-pri)}
main .cs .bd-q{border-right-color:var(--bd-pri)}
main .cs .bd[data-mode="dark"] .bd-pick{border-color:var(--bd-name);color:var(--bd-name)}
main .cs .bd[data-mode="dark"] .bd-q{border-right-color:var(--bd-name)}
main .cs .bd-tabs{gap:16px;padding:0 14px;border-bottom:1px solid var(--bd-line)}
main .cs .bd-tabs span{padding:8px 0 9px;border:0;border-radius:0;margin-bottom:-1px!important;border-bottom:2px solid transparent;font-size:11.5px;color:var(--bd-weak)}
main .cs .bd-tabs span.on{background:none;border-color:transparent;border-bottom-color:var(--bd-pri);color:var(--bd-fg)}
main .cs .bd[data-mode="dark"] .bd-tabs span.on{border-bottom-color:var(--bd-name)}
/* light and dark: the header's round toggle, top right of the blue box */
main .cs .bd-box{position:relative}
main .cs .bd-mode{position:absolute;top:16px;right:16px;z-index:2;display:grid;place-items:center;width:44px;height:44px;margin:0!important;padding:0!important;border:1px solid rgba(255,255,255,.35)!important;border-radius:50%;background:rgba(255,255,255,.08)!important;color:#fff!important;cursor:pointer;transition:background-color .2s,border-color .2s}
main .cs .bd-mode:hover{background:rgba(255,255,255,.18)!important;border-color:rgba(255,255,255,.6)!important}
main .cs .bd-mode svg{width:20px;height:20px}
main .cs .bd-mode .bd-moon,main .cs .bd[data-mode="dark"] .bd-mode .bd-sun{display:none}
main .cs .bd[data-mode="dark"] .bd-mode .bd-moon{display:block}
@media (max-width:600px){main .cs .bd-mode{top:10px;right:10px;width:38px;height:38px}}
/* Decision 4: Before (old app screenshots) and After (brand colors, light and dark) */
main .cs .bd{--bd-pri:#3867ff}
main .cs .bd[data-brand="veg"]{--bd-pri:inherit}
main .cs .bd[data-brand="veg"][data-mode="dark"]{--bd-bg:color-mix(in srgb,var(--bd-pri) 16%,#06070a);--bd-card:color-mix(in srgb,var(--bd-pri) 24%,#06070a);--bd-name:color-mix(in srgb,var(--bd-pri) 40%,#fff)}
main .cs .bd[data-brand="veg"] .bd-box{background:var(--bd-pri)}
main .cs .bd-box{transition:background-color .4s}
main .cs .bd[data-ver="before"] .bd-box{background:#3867ff}
main .cs .bd[data-ver="before"] :is(.bd-dev,.bd-mode,.bd-sw),main .cs .bd[data-ver="after"] .bd-old{display:none!important}
main .cs .bd-old{position:relative;width:min(300px,100%)}
main .cs .bd-old img{display:none;width:100%!important;height:auto!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;opacity:1!important}
main .cs .bd-old img.on{display:block}
main .cs .bd-dots{display:flex;justify-content:center;gap:8px;margin-top:16px}
main .cs .bd-dots button{width:9px;height:9px;margin:0!important;padding:0!important;border:0!important;border-radius:50%;background:rgba(255,255,255,.45)!important;cursor:pointer}
main .cs .bd-dots button[aria-pressed="true"]{background:#fff!important;transform:scale(1.15)}
main .cs .bd-sw{position:absolute;right:16px;bottom:16px;z-index:2;display:flex;gap:8px;padding:7px;border-radius:99px;background:rgba(255,255,255,.12);box-shadow:inset 0 0 0 1px rgba(255,255,255,.3)}
main .cs .bd-c{width:26px;height:26px;margin:0!important;padding:0!important;border:2px solid rgba(255,255,255,.9)!important;border-radius:50%;background:var(--c)!important;cursor:pointer;transition:transform .2s,box-shadow .2s}
main .cs .bd-c:hover{transform:scale(1.08)}
main .cs .bd-c[aria-pressed="true"]{box-shadow:0 0 0 2px var(--c),0 0 0 4px #fff}
@media (max-width:600px){main .cs .bd-sw{right:10px;bottom:10px;gap:6px;padding:5px}main .cs .bd-c{width:22px;height:22px}main .cs .bd-box{padding-bottom:64px}}
main .cs .bd[data-ver="before"] .bd-box{background:#3e38f5}
main .cs .bd-old img{cursor:pointer}
main .cs .bd-dev{margin-bottom:34px}
main .cs .bd-ndots{position:absolute;left:0;right:0;bottom:-30px;margin:0}
/* status bar, to iPhone measurements scaled to the 280 px screen (375 pt × 0.747): island 125 × 37 pt at 11 pt from the top,
   time 17 pt semibold centered in the left ear, signal, Wi Fi and battery centered in the right ear, all on the island's middle line */
main .cs .bd-status{display:grid!important;grid-template-columns:1fr 94px 1fr;align-items:center;height:44px;padding:0!important;top:0}
main .cs .bd-status b{justify-self:center;margin-top:0!important;font:600 12.7px/1 -apple-system,"SF Pro Text",Inter,system-ui,sans-serif!important;letter-spacing:-.2px!important;transform:translateY(-.5px)}
main .cs .bd-screen .bd-island{position:absolute;top:8px!important;width:93px!important;height:28px!important;border-radius:99px}
main .cs .bd-sys{grid-column:3;justify-self:center;gap:4px!important}
main .cs .bd-screen .bd-sys svg{height:8.2px!important}
main .cs .bd-screen .bd-sys .bd-wifi{height:8.2px!important}
main .cs .bd-screen .bd-sys .bd-bat{height:9.6px!important}
/* home indicator centered (the screen reset had zeroed its margin) */
main .cs .bd-screen .bd-home{left:50%!important;margin:0!important;transform:translateX(-50%)}
main .cs .bd-hero::before{content:"";position:absolute;inset:0 0 auto;height:96px;z-index:1;background:linear-gradient(rgba(0,0,0,.45),rgba(0,0,0,0));pointer-events:none}
main .cs .bd-float{z-index:2}
/* Before: the screenshots' own blue corners are clipped to the phone shape, and the box color switches at once, so no corner shows */
main .cs .bd-old img{border-radius:13.5% / 6.6%!important}
main .cs .bd[data-ver="before"] .bd-box{transition:none}
/* brand color dots, simpler: plain dots, no pill behind them, one white ring on the chosen one */
main .cs .bd-sw{gap:10px;padding:0;background:none;box-shadow:none}
main .cs .bd-c{width:24px;height:24px;border:0!important;box-shadow:none}
main .cs .bd-c[aria-pressed="true"]{box-shadow:0 0 0 2px var(--c),0 0 0 4px #fff}
@media (max-width:600px){main .cs .bd-c{width:22px;height:22px}}
/* three stores: green BrauMeister (white label), blue Harbor Line (inside Choco), orange Northfield (white label) */
main .cs .bd .b-brau,main .cs .bd[data-brand="brau"] .b-choco,main .cs .bd[data-brand="brau"] .b-veg{display:none!important}
main .cs .bd[data-brand="brau"] .b-brau{display:block!important}
main .cs .bd[data-brand="brau"] .bd-name .b-brau{display:inline!important}
main .cs .bd[data-brand="brau"] .bd-logo.b-brau{display:flex!important;background:#fff}
main .cs .bd-logo.b-brau img,main .cs .bd-logo.b-veg img{width:100%!important;height:100%!important;object-fit:cover}
main .cs .bd[data-brand="brau"] .bd-box{background:var(--bd-pri)}
main .cs .bd[data-brand="brau"][data-mode="dark"]{--bd-bg:color-mix(in srgb,var(--bd-pri) 16%,#06070a);--bd-card:color-mix(in srgb,var(--bd-pri) 24%,#06070a);--bd-name:color-mix(in srgb,var(--bd-pri) 40%,#fff);--bd-line:rgba(255,255,255,.12)}
main .cs .bd[data-ver="before"] .bd-box{background:#3e38f5}
/* no per element color fades inside the demo: the whole demo cross fades at once (view transition in live.js) */
main .cs .bd-screen,main .cs .bd-name,main .cs .bd-cell,main .cs .bd-add,main .cs .bd-box,main .cs .bd[data-brand] .bd-box{transition:none!important}
::view-transition-old(bd-demo),::view-transition-new(bd-demo){animation-duration:.35s;animation-timing-function:ease}
/* tab bar icons: line when inactive, filled on the active tab */
main .cs .bd-nav .bd-ti{display:block}
main .cs .bd-nav .i-fill,main .cs .bd-nav button.on .i-line{display:none}
main .cs .bd-nav button.on .i-fill{display:block}
main .cs .bd-nav .bd-ti svg{width:19px;height:19px}
/* Before and After take exactly the same room, so the blue box never changes size */
main .cs .bd-old{aspect-ratio:300/620;margin-bottom:34px;display:flex;align-items:center}
main .cs .bd-old .bd-dots{position:absolute;left:0;right:0;bottom:-30px;margin:0}
/* cart: Total and Checkout sit on the bottom of the screen, above the tab bar, however few items there are */
main .cs .bd-s[data-s="cart"]{display:flex;flex-direction:column}
main .cs .bd-s[data-s="cart"] .bd-foot{margin-top:auto!important}
/* Order guide, as in the LOX reference: store header, underline tabs, full width rows with a pale star, gray picker with a brand chevron */
main .cs .bd-store{display:flex;align-items:center;gap:8px;padding:50px 12px 8px}
main .cs .bd-store i{display:flex;color:var(--bd-fg)}
main .cs .bd-store i svg{width:20px;height:20px}
main .cs .bd-store i:first-child{margin-right:2px}
main .cs .bd-slogo{display:none;width:28px;height:28px;flex:none;border-radius:50%;overflow:hidden;background:#fff}
main .cs .bd-slogo img{width:100%!important;height:100%!important;object-fit:cover}
main .cs .bd[data-brand="choco"] .bd-slogo.b-choco,main .cs .bd[data-brand="veg"] .bd-slogo.b-veg,main .cs .bd[data-brand="brau"] .bd-slogo.b-brau{display:block!important}
main .cs .bd-sname{flex:1;min-width:0;font-size:14.5px!important;font-weight:500!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--bd-fg)}
main .cs .bd-sname span{display:none}
main .cs .bd[data-brand="choco"] .bd-sname .b-choco,main .cs .bd[data-brand="veg"] .bd-sname .b-veg,main .cs .bd[data-brand="brau"] .bd-sname .b-brau{display:inline!important}
main .cs .bd-tabs{gap:18px;padding:0 14px;overflow:hidden;white-space:nowrap}
main .cs .bd-tabs span{font-size:12.5px;padding:9px 2px 10px;color:var(--bd-fg)}
main .cs .bd-tabs span.on{color:var(--bd-fg);font-weight:500}
main .cs .bd-screen li.bd-cell{grid-template-columns:62px minmax(0,1fr) 30px;grid-template-areas:"img info star" "ed ed ed" "pick . cart";gap:8px 12px;padding:14px 14px 12px!important;background:var(--bd-card)!important}
main .cs .bd-ci{width:62px;height:62px;background:none;border-radius:0}
main .cs .bd[data-mode="dark"] .bd-ci{background:#fff;border-radius:8px}
main .cs .bd-cinfo{min-height:62px}
main .cs .bd-cinfo b{font-size:13px}
main .cs .bd-cinfo small{font-size:11px;color:var(--bd-weak)}
main .cs .bd-cinfo strong{margin-top:auto!important;font-size:13px;font-weight:700}
main .cs .bd-star{color:color-mix(in srgb,var(--bd-pri) 35%,#fff)!important}
main .cs .bd-star[aria-pressed="false"]{color:#cfcfcf!important}
main .cs .bd-ed{grid-area:ed;display:flex;align-items:center;gap:6px;margin:0!important;font-size:10.5px!important;color:var(--bd-weak)!important}
main .cs .bd-ed svg{width:14px!important;height:14px!important;color:#e08a2e}
main .cs .bd-ed .bd-date{color:inherit}
main .cs .bd-pick,main .cs .bd[data-mode="dark"] .bd-pick{grid-area:pick;width:150px;height:32px;border:1px solid var(--bd-line)!important;color:var(--bd-fg)!important;border-radius:2px}
main .cs .bd-q,main .cs .bd[data-mode="dark"] .bd-q{border-right-color:var(--bd-line)!important;color:var(--bd-fg)!important;font-weight:700}
main .cs .bd-u{gap:6px;color:var(--bd-fg)}
main .cs .bd-u svg{color:var(--bd-pri)}
main .cs .bd[data-mode="dark"] .bd-u svg{color:var(--bd-name)}
main .cs .bd-add{align-self:center}
main .cs .bd-cells{border-top:0!important}
/* tab bar: the active tab in the text color, filled icon */
main .cs .bd-nav button.on,main .cs .bd[data-mode="dark"] .bd-nav button.on{color:var(--bd-fg)!important}
/* order guide star: filled when saved, an outline when not */
main .cs .bd-star span{display:flex}
main .cs .bd-star .st-fill,main .cs .bd-star[aria-pressed="true"] .st-line{display:none}
main .cs .bd-star[aria-pressed="true"] .st-fill{display:flex}
main .cs .bd-star[aria-pressed="false"]{color:var(--bd-weak)!important}
/* product details screen */
main .cs .bd[data-s="detail"] .bd-s[data-s="detail"]{opacity:1;visibility:visible;transition:opacity .25s}
main .cs .bd-s[data-s="detail"]{display:flex;flex-direction:column}
main .cs .bd-open{margin:0!important;padding:0!important;border:0!important;background:none!important;cursor:pointer;text-align:left}
main .cs .bd-cname{font-size:13px!important;font-weight:400!important;line-height:1.25!important;color:var(--bd-fg)!important}
main .cs .bd-cname:hover{text-decoration:underline}
main .cs .bd-dbar{display:flex;align-items:center;justify-content:space-between;padding:48px 10px 4px}
main .cs .bd-back{display:flex;padding:4px!important;border:0!important;background:none!important;color:var(--bd-fg)!important}
main .cs .bd-back svg{width:22px;height:22px}
main .cs .bd-dimg{display:flex;justify-content:center;margin:4px 14px 0;padding:10px;border-radius:12px;background:#fff}
main .cs .bd-dimg img{width:150px!important;height:150px!important;object-fit:contain}
main .cs .bd-dtxt{padding:14px 14px 6px}
main .cs .bd-dname{font:700 17px/1.25 Inter,system-ui,sans-serif!important;color:var(--bd-fg)!important}
main .cs .bd-ddesc{margin-top:6px!important;font-size:11.5px!important;line-height:1.45!important;color:var(--bd-weak)!important}
main .cs .bd-dprice{display:block;margin-top:8px;font-size:14px;font-weight:700}
main .cs .bd-dl{margin:6px 14px 0!important;padding:0!important}
main .cs .bd-dl div{display:flex;justify-content:space-between;padding:9px 0;border-top:1px solid var(--bd-line)}
main .cs .bd-dl dt{font-size:11.5px;color:var(--bd-weak)}
main .cs .bd-dl dd{margin:0!important;font-size:11.5px;font-weight:500;color:var(--bd-fg)}
main .cs .bd-dfoot{margin-top:auto!important;position:sticky;bottom:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-top:1px solid var(--bd-line);background:var(--bd-bg)}
main .cs .bd-dfoot .bd-pick{display:grid;grid-template-columns:1fr 1fr;flex:1;width:auto}
/* cart button, then − and + once the product is in the cart (as in the Decision 1 product cell) */
main .cs .bd-act{grid-area:cart;display:flex;align-items:center;justify-self:end;gap:6px}
main .cs .bd-step{display:none;align-items:center;justify-content:center;width:34px;height:34px;padding:0!important;border-radius:50%;font:500 20px/1 Inter,system-ui,sans-serif!important}
main .cs .bd-minus{border:1.5px solid var(--bd-pri)!important;background:none!important;color:var(--bd-pri)!important}
main .cs .bd[data-mode="dark"] .bd-minus{border-color:var(--bd-name)!important;color:var(--bd-name)!important}
main .cs .bd-plus{border:0!important;background:var(--bd-pri)!important;color:#fff!important}
main .cs .bd-act.in .bd-add{display:none}
main .cs .bd-act.in .bd-step{display:flex}
main .cs .bd-screen li.bd-cell{grid-template-columns:62px minmax(0,1fr) auto}
/* unselected star: a light outline */
main .cs .bd-star[aria-pressed="false"]{color:color-mix(in srgb,var(--bd-fg) 28%,transparent)!important}
/* the top of a row is one tap target for product details: no underline, a pointer over it */
main .cs .bd-cname:hover{text-decoration:none}
main .cs .bd-cell{cursor:pointer}
main .cs .bd-cell :is(.bd-pick,.bd-act){cursor:default}
main .cs .bd-cell :is(.bd-act button,.bd-star){cursor:pointer}
/* row never reflows: the star keeps a fixed column; − and + sit in the picker row, right aligned, a touch smaller than the cart button */
main .cs .bd-screen li.bd-cell{grid-template-columns:62px minmax(0,1fr) 30px;grid-template-areas:"img info star" "ed ed ed" "pick act act"}
main .cs .bd-act{grid-area:act}
main .cs .bd-step{width:30px;height:30px;font-size:18px!important}
main .cs .bd-act{min-height:34px}
/* cart items: each row is a full width card colored cell, like the order guide rows */
main .cs .bd-screen .bd-items li{background:var(--bd-card)!important}
main .cs .bd-items{border-top:1px solid var(--bd-line)}
/* theme and brand changes in the Decision 4 demo: nothing outside the demo moves (the page's own navigation transitions are switched off for it) */
html.bd-vt::view-transition-old(root),html.bd-vt::view-transition-new(root){animation:none!important}
html.bd-vt::view-transition-group(root){animation:none!important}
/* dark mode, calmer: softer text, brand tinted chevrons and active tab instead of pure white */
main .cs .bd[data-mode="dark"]{--bd-fg:rgba(255,255,255,.88);--bd-weak:rgba(255,255,255,.48)}
main .cs .bd[data-mode="dark"] .bd-info p{color:rgba(255,255,255,.74)!important}
main .cs .bd[data-mode="dark"] .bd-info b{color:rgba(255,255,255,.9)}
main .cs .bd[data-mode="dark"] :is(.bd-acc,.bd-cats li,.bd-line,.bd-u,.bd-store i)>svg,main .cs .bd[data-mode="dark"] .bd-u svg{color:var(--bd-name)!important;opacity:.85}
main .cs .bd[data-mode="dark"] .bd-cn{color:rgba(255,255,255,.82)}
main .cs .bd[data-mode="dark"] .bd-nav button{color:rgba(255,255,255,.42)!important}
main .cs .bd[data-mode="dark"] .bd-nav button.on{color:var(--bd-name)!important}
main .cs .bd[data-mode="dark"] .bd-home{background:rgba(255,255,255,.7)}
/* product photos: square corners everywhere in the demo */
main .cs .bd-ci,main .cs .bd[data-mode="dark"] .bd-ci,main .cs .bd-dimg,main .cs .bd-screen .bd-items img{border-radius:0!important}
main .cs .bd-tabs button{flex:none;margin:0 0 -1px!important;padding:9px 2px 10px!important;border:0!important;border-bottom:2px solid transparent!important;border-radius:0;background:none!important;font:400 12.5px/1 Inter,system-ui,sans-serif!important;color:var(--bd-fg)!important;cursor:pointer}
main .cs .bd-tabs button.on{font-weight:500!important;border-bottom-color:var(--bd-pri)!important}
main .cs .bd[data-mode="dark"] .bd-tabs button.on{border-bottom-color:var(--bd-name)!important}
main .cs .bd-screen li.bd-cell[hidden]{display:none!important}
main .cs .bd-cats li{cursor:pointer}
main .cs .bd-ct img[src*="wine-white"]{background:#fff;object-fit:contain!important}
/* cart button the same size as + and − */
main .cs .bd-add{width:30px!important;height:30px!important}
main .cs .bd-add svg{width:15px!important;height:15px!important}
main .cs .bd-act{min-height:30px}
/* tab underline: wider than the word and 1px thicker, on every tab */
main .cs .bd-tabs{gap:6px!important}
main .cs .bd-tabs button{padding:9px 8px 9px!important;border-bottom-width:3px!important}
/* a small note when something isn't part of the demo */
main .cs .bd-x{cursor:pointer}
main .cs .bd-toast{position:absolute;left:50%;bottom:12px;z-index:5;max-width:calc(100% - 28px);margin:0!important;padding:8px 12px;border-radius:10px;background:rgba(20,20,26,.92);color:#fff!important;font:500 11px/1.35 Inter,system-ui,sans-serif!important;text-align:center;white-space:nowrap;opacity:0;transform:translate(-50%,6px);transition:opacity .2s,transform .2s;pointer-events:none}
main .cs .bd-toast.on{opacity:1;transform:translate(-50%,0)}
main .cs .bd[data-mode="dark"] .bd-toast{background:rgba(255,255,255,.94);color:#14141a!important}
/* the X note: a small bubble right under the X, pointing at it */
main .cs .bd-toast{bottom:auto;left:0;top:0;width:190px;max-width:none;padding:10px 12px;border-radius:12px;font-size:12.5px!important;line-height:1.35!important;text-align:left;white-space:normal;transform:translateY(-4px);box-shadow:0 10px 24px -10px rgba(0,0,0,.45)}
main .cs .bd-toast.on{transform:none}
main .cs .bd-toast::before{content:"";position:absolute;top:-5px;left:calc(var(--ax,17px) - 6px);width:12px;height:12px;border-radius:2px;background:inherit;transform:rotate(45deg)}
/* product photos fill their square (no white background) */
main .cs .bd-ci img,main .cs .bd-screen .bd-items img{object-fit:cover!important;background:none!important}
main .cs .bd[data-mode="dark"] .bd-ci{background:none}
main .cs .bd-dimg{margin:4px 0 0;padding:0;background:none}
main .cs .bd-dimg img{width:100%!important;height:190px!important;object-fit:cover!important}
main .cs .bd-ct img[src*="beer-full"]{object-fit:cover!important;background:none}
/* the demo is an app, not a page: no text selection inside it */
main .cs .bd-box,main .cs .bd-ctl{-webkit-user-select:none;user-select:none}
/* dark mode: product rows and cart rows in the same color as the screen and tab bar, only hairlines between them */
main .cs .bd[data-mode="dark"] .bd-screen li.bd-cell,main .cs .bd[data-mode="dark"] .bd-screen .bd-items li{background:var(--bd-bg)!important}
/* dark mode: the bars (top of the order guide and cart, and the tab bar) a little darker than the rows */
main .cs .bd[data-mode="dark"]{--bd-bar:color-mix(in srgb,var(--bd-bg) 78%,#000)}
main .cs .bd[data-mode="dark"] :is(.bd-nav,.bd-store,.bd-tabs,.bd-bar){background:var(--bd-bar)!important}
main .cs .bd[data-mode="dark"] .bd-s[data-s="guide"],main .cs .bd[data-mode="dark"] .bd-s[data-s="cart"]{background:var(--bd-bg)}
/* earliest delivery: text and clock in one warning color */
main .cs .bd-ed,main .cs .bd-ed .bd-date,main .cs .bd-ed svg{color:#b45309!important}
main .cs .bd[data-mode="dark"] .bd-ed,main .cs .bd[data-mode="dark"] .bd-ed .bd-date,main .cs .bd[data-mode="dark"] .bd-ed svg{color:#f0a35e!important}
/* product details: the photo runs edge to edge from the top of the screen, back and star float on it (LOX reference) */
main .cs .bd-s[data-s="detail"]{position:absolute}
main .cs .bd-dbar{position:absolute;top:44px;left:0;right:0;z-index:2;padding:0 12px!important}
main .cs .bd-back,main .cs .bd-dstar{display:flex!important;align-items:center;justify-content:center;width:34px!important;height:34px!important;padding:0!important;border-radius:50%!important;background:rgba(0,0,0,.42)!important;color:#fff!important}
main .cs .bd-back svg{width:19px!important;height:19px!important}
main .cs .bd-dstar svg{width:19px;height:19px}
main .cs .bd-dstar[aria-pressed="false"]{color:#fff!important}
main .cs .bd-dstar[aria-pressed="true"]{color:#fff!important}
main .cs .bd-dimg{position:relative;margin:0!important;padding:0!important;height:230px;overflow:hidden}
main .cs .bd-dimg::before{content:"";position:absolute;inset:0 0 auto;height:96px;background:linear-gradient(rgba(0,0,0,.45),rgba(0,0,0,0));pointer-events:none}
main .cs .bd-dimg img{width:100%!important;height:100%!important;object-fit:cover!important}
main .cs .bd[data-s="detail"] .bd-status b,main .cs .bd[data-s="detail"] .bd-sys{color:#fff!important}
/* brand colors top left, light and dark top right */
main .cs .bd-sw{top:22px;left:16px;right:auto;bottom:auto}
@media (max-width:600px){main .cs .bd-sw{top:16px;left:10px}main .cs .bd-box{padding-bottom:clamp(28px,4vw,48px)}}
/* brand colors: back in the bottom right corner, stacked vertically */
main .cs .bd-sw{top:auto;left:auto;right:16px;bottom:16px;flex-direction:column}
@media (max-width:600px){main .cs .bd-sw{top:auto;left:auto;right:10px;bottom:10px}}
main .cs .bd-sw{flex-direction:row}
/* Cutoff times accordion (LOX reference) */
main .cs .bd-acc-cut{width:100%;margin:0!important;border:0!important;border-top:1px solid var(--bd-line)!important;background:none!important;color:var(--bd-fg)!important;font:600 12px/1 Inter,system-ui,sans-serif!important;text-align:left;cursor:pointer}
main .cs .bd-acc-cut svg{transition:transform .25s}
main .cs .bd-acc-cut[aria-expanded="true"] svg{transform:rotate(180deg)}
main .cs .bd-cut{padding:0 0 4px 12px;border-top:1px solid var(--bd-line)}
main .cs .bd-cut[hidden]{display:none}
main .cs .bd-cuth,main .cs .bd-cut li{display:flex!important;justify-content:space-between;padding:10px 12px 10px 0!important;border-bottom:1px solid var(--bd-line)}
main .cs .bd-cuth span{font-size:10.5px;color:var(--bd-weak)}
main .cs .bd-cut li span{font-size:11.5px;color:var(--bd-fg)}
main .cs .bd-cut li span:last-child{font-variant-numeric:tabular-nums}
main .cs .bd-dot{margin:0 4px;opacity:.7}
/* cutoff table header in the normal text color, not grayed out */
main .cs .bd-cuth span{color:var(--bd-fg)!important;font-weight:600}
/* product details footer (LOX reference): pill stepper on the left, Add to cart on the right; no tab bar on this screen */
main .cs .bd[data-s="detail"] .bd-nav{display:none}
main .cs .bd-dfoot{gap:12px;padding:12px 14px 26px!important}
main .cs .bd-dqty{display:flex;align-items:center;gap:4px;padding:3px;border:1px solid var(--bd-line);border-radius:99px}
main .cs .bd-dqty button{display:flex;align-items:center;justify-content:center;width:30px;height:30px;margin:0!important;padding:0!important;border-radius:50%;font:500 19px/1 Inter,system-ui,sans-serif!important;cursor:pointer}
main .cs .bd-dminus{border:1.5px solid var(--bd-pri)!important;background:none!important;color:var(--bd-pri)!important}
main .cs .bd-dminus:disabled{opacity:.35;cursor:default}
main .cs .bd-dplus{border:0!important;background:var(--bd-pri)!important;color:#fff!important}
main .cs .bd[data-mode="dark"] .bd-dminus{border-color:var(--bd-name)!important;color:var(--bd-name)!important}
main .cs .bd-dn{min-width:30px;text-align:center;font-size:14px;font-weight:600;color:var(--bd-fg)}
main .cs .bd-dcta{flex:1;height:38px;margin:0!important;padding:0 12px!important;border:0!important;border-radius:99px;background:var(--bd-pri)!important;color:#fff!important;font:600 11.5px/1 Inter,system-ui,sans-serif!important;letter-spacing:.06em;text-transform:uppercase;cursor:pointer;transition:filter .2s}
main .cs .bd-dcta.done{filter:brightness(.9)}
main .cs .bd-dcta.rm{background:#d93636!important}
main .cs .bd-dminus:disabled{opacity:.35}
/* − and + drawn as centered icons, not text, so they sit in the middle of their circles */
main .cs .bd-screen :is(.bd-step,.bd-dqty button) svg{display:block;width:16px!important;height:16px!important}
/* cart rows: the same space above and below the photo as at the sides */
main .cs .bd-screen .bd-items li{padding:14px!important}
/* order sent splash (LOX Mob file): full screen photo, YOUR / ORDER / WAS / SENT! growing and indented, line by line */
main .cs .bd-sent{position:absolute;inset:0;z-index:6;overflow:hidden;background:#111;opacity:0;transition:opacity .3s;cursor:pointer}
main .cs .bd-sent[hidden]{display:none}
main .cs .bd-sent.on{opacity:1}
main .cs .bd-sent>img{position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:cover;filter:brightness(.8);opacity:1!important}
main .cs .bd-sent-t{position:absolute;left:12px;top:36%;margin:0!important;display:flex;flex-direction:column;color:#fff!important;font-family:"Space Grotesk",Inter,system-ui,sans-serif!important;font-weight:800;text-transform:uppercase;line-height:.9!important;letter-spacing:-.02em}
main .cs .bd-sent{z-index:3}
main .cs .bd.bd-sending .bd-status b,main .cs .bd.bd-sending .bd-sys{color:#fff!important}
main .cs .bd.bd-sending .bd-home{background:#fff;z-index:4}

/* order sent splash: the four lines are the TriadeChoco lettering from the LOX Figma file, placed as in the 190 x 412 frame */
main .cs .bd-sent-t{inset:0;left:0;top:0;display:block;font-size:0}
main .cs .bd-sent-t img{position:absolute;inset:auto;padding:0!important;background:none!important;border-radius:0!important;height:auto!important;filter:none}
main .cs .bd-sent-t .l1{left:3.57%;top:32.78%;width:29.93%!important}
main .cs .bd-sent-t .l2{left:6.79%;top:37.25%;width:46.74%!important}
main .cs .bd-sent-t .l3{left:9.83%;top:43.02%;width:48.84%!important}
main .cs .bd-sent-t .l4{left:15.57%;top:51.71%;width:81.39%!important}
[data-live="brand"] img{-webkit-user-drag:none;user-select:none;-webkit-user-select:none}

/* splash lines: one keyframe each, nothing else fading them (the site's image fade made them stutter) */
main .cs .bd-sent{transition:opacity .18s ease}
main .cs .bd-sent-t img{opacity:0;transform:translate3d(0,8px,0);transition:none!important;will-change:transform,opacity;backface-visibility:hidden}
main .cs .bd-sent.on .bd-sent-t img{animation:bdSentIn .5s cubic-bezier(.22,1,.36,1) both}
main .cs .bd-sent.on .bd-sent-t .l1{animation-delay:.08s}
main .cs .bd-sent.on .bd-sent-t .l2{animation-delay:.22s}
main .cs .bd-sent.on .bd-sent-t .l3{animation-delay:.36s}
main .cs .bd-sent.on .bd-sent-t .l4{animation-delay:.5s}
@keyframes bdSentIn{from{opacity:0;transform:translate3d(0,8px,0)}to{opacity:1;transform:translate3d(0,0,0)}}
@media (prefers-reduced-motion:reduce){main .cs .bd-sent.on .bd-sent-t img{animation-duration:.01s}}

/* More actions drawer (LOX node 6227:184973): scrim over the screen, a sheet from the bottom */
main .cs .bd-more{cursor:pointer}
main .cs .bd-drawer{position:absolute;inset:0;z-index:5}
main .cs .bd-drawer[hidden]{display:none}
main .cs .bd-scrim{position:absolute;inset:0;background:rgba(0,0,0,.4);opacity:0;transition:opacity .26s ease}
main .cs .bd-sheet{position:absolute;left:0;right:0;bottom:0;padding:6px 0 26px;border-radius:16px 16px 0 0;background:var(--bd-bg);color:var(--bd-fg);transform:translate3d(0,100%,0);transition:transform .3s cubic-bezier(.22,1,.36,1);touch-action:none}
main .cs .bd-drawer.on .bd-scrim{opacity:1}
main .cs .bd-drawer.on .bd-sheet{transform:none}
main .cs .bd-grab{display:block;width:42px;height:4px;margin:0 auto 10px;border-radius:2px;background:var(--bd-weak);opacity:.6}
main .cs .bd-shead{display:flex;align-items:center;justify-content:space-between;padding:0 12px 6px 12px}
main .cs .bd-shead h4{margin:0!important;font:700 17px/1.15 Helvetica,Arial,sans-serif!important;text-transform:uppercase;letter-spacing:.2px!important;color:var(--bd-name)!important}
main .cs .bd-sclose{display:flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:0;border-radius:50%;background:var(--bd-line);color:var(--bd-name);cursor:pointer}
main .cs .bd-sclose svg{width:15px;height:15px}
main .cs .bd-acts{list-style:none;margin:0!important;padding:0 0 0 12px!important}
main .cs .bd-acts li{margin:0!important;padding:0!important}
main .cs .bd-acts li::before{display:none!important}
main .cs .bd-acts button{display:grid;grid-template-columns:28px 1fr 18px;align-items:center;gap:12px;width:100%;min-height:43px;padding:7px 12px 7px 0;border:0;border-bottom:1px solid var(--bd-line);background:none;color:inherit;font:inherit;font-size:12px;text-align:left;cursor:pointer}
main .cs .bd-acts button>svg:first-child{width:18px;height:18px;justify-self:center;color:var(--bd-pri)}
main .cs .bd[data-mode="dark"] .bd-acts button>svg:first-child{color:var(--bd-name)}
main .cs .bd-acts button>svg:last-child{width:14px;height:14px}
main .cs .bd-acts span{display:flex;flex-direction:column;gap:1px}
main .cs .bd-acts small{font-size:10.5px;color:var(--bd-weak)}
@media (prefers-reduced-motion:reduce){main .cs .bd-scrim,main .cs .bd-sheet{transition:none}}
main .cs .bd-sent.out{opacity:0;transition:opacity .4s ease;pointer-events:none}
main .cs .bd-sheet{padding-top:20px}
main .cs .bd-grab{position:absolute;left:50%;top:7px;width:36px;height:4px;margin:0!important;transform:translateX(-50%);border-radius:2px;background:var(--bd-weak);opacity:.5}
main .cs .bd-shead{padding:0 14px 6px 16px}
main .cs .bd-acts{padding:0 0 0 16px!important}
main .cs .bd-acts button{grid-template-columns:20px 1fr 16px;gap:14px;padding:7px 14px 7px 2px}
main .cs .bd-sheet .bd-acts>li{margin:0 0 0 16px!important;padding:0!important}

/* Actions drawer: title, icons and dividers on one left line; the X sits over the chevrons */
main .cs .bd-shead{padding:0 16px 6px 16px}
main .cs .bd-sheet .bd-acts>li{margin:0 0 0 16px!important}
main .cs .bd-acts button{grid-template-columns:18px 1fr 28px;gap:14px;padding:7px 16px 7px 0}
main .cs .bd-acts button>svg:first-child{justify-self:start}
main .cs .bd-acts button>svg:last-child{justify-self:center}
/* search (LOX node 265:53419) */
main .cs .bd[data-s="search"] .bd-s[data-s="search"]{opacity:1;visibility:visible;transition:opacity .25s}
main .cs .bd-s[data-s="search"]{display:flex;flex-direction:column;overflow:hidden}
main .cs .bd[data-s="search"] .bd-nav{display:none}
main .cs .bd-sbar{display:flex;align-items:center;gap:8px;height:44px;padding:0 12px;border-bottom:1px solid var(--bd-line);flex:none}
main .cs .bd-sback{display:flex;align-items:center;justify-content:center;width:26px;height:26px;padding:0;border:0;background:none;color:var(--bd-fg);cursor:pointer}
main .cs .bd-sback svg{width:20px;height:20px}
main .cs .bd-sin{flex:1;min-width:0;height:32px;padding:0;border:0;background:none;color:var(--bd-fg);font:400 13px Inter,system-ui,sans-serif;outline:none;caret-color:var(--bd-pri);-webkit-appearance:none;appearance:none}
main .cs .bd-sin::placeholder{color:var(--bd-weak)}
main .cs .bd-sin::-webkit-search-cancel-button{display:none}
main .cs .bd-sscroll{flex:1;min-height:0;overflow:hidden auto;scrollbar-width:none}
main .cs .bd-s[data-s="search"] .bd-ch{border-top:0}
main .cs .bd-rlist{list-style:none;margin:0!important;padding:0 12px!important}
main .cs .bd-rlist li{margin:0!important;padding:0!important}
main .cs .bd-rlist li::before{display:none!important}
main .cs .bd-rlist button{display:grid;grid-template-columns:36px 1fr auto;align-items:center;gap:10px;width:100%;padding:8px 0;border:0;border-bottom:1px solid var(--bd-line);background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
main .cs .bd-rlist img{width:36px!important;height:36px!important;object-fit:cover;opacity:1!important;border-radius:0!important}
main .cs .bd-rlist span{display:flex;flex-direction:column;gap:1px;min-width:0}
main .cs .bd-rlist b{font-size:12px;font-weight:400}
main .cs .bd-rlist small{font-size:10.5px;color:var(--bd-weak)}
main .cs .bd-rlist strong{font-size:12px;font-weight:600}
main .cs .bd-snone{padding:4px 12px;font-size:12px!important;color:var(--bd-weak)}
/* the keyboard: iOS light keys, Done bar on top; Done or Go puts it away, a tap on the field brings it back */
main .cs .bd-kb{flex:none;padding:0 3px 26px;background:#d1d4db;font-family:-apple-system,"SF Pro Text",Inter,system-ui,sans-serif;transition:margin-bottom .25s ease}
main .cs .bd-kboff .bd-kb{margin-bottom:-260px}
main .cs .bd-kbd{display:flex;justify-content:flex-end;margin:0 -3px 6px;padding:0 12px;height:32px;align-items:center;background:var(--bd-bg);border-top:1px solid var(--bd-line)}
main .cs .bd-kdone{padding:0;border:0;background:none;color:#0a84ff;font:600 13px -apple-system,Inter,system-ui,sans-serif;cursor:pointer}
main .cs .bd-krow{display:flex;justify-content:center;gap:4px;margin-bottom:8px}
main .cs .bd-kr2{padding:0 12px}
main .cs .bd-krow button{flex:1;min-width:0;height:32px;padding:0;border:0;border-radius:5px;background:#fff;color:#000;font-size:16px;line-height:1;box-shadow:0 1px 0 rgba(0,0,0,.3);cursor:pointer;touch-action:manipulation}
main .cs .bd-krow button:active{background:#aeb3be}
main .cs .bd-s[data-s="search"]:not(.bd-up) .bd-krow [data-k]{text-transform:lowercase}
main .cs .bd-krow .bd-kfn{flex:1.4;background:#abb0bc;font-size:12px}
main .cs .bd-krow .bd-kfn svg{width:16px;height:16px;margin:auto;display:block}
main .cs .bd-up .bd-kshift{background:#fff}
main .cs .bd-krow .bd-kspace{flex:4.6;font-size:12px;text-transform:none!important}
main .cs .bd-krow .bd-k123,main .cs .bd-krow .bd-kgo{flex:2.3}
main .cs .bd[data-mode="dark"] .bd-kb{background:#2b2b2f}
main .cs .bd[data-mode="dark"] .bd-krow button{background:#6b6b70;color:#fff;box-shadow:0 1px 0 rgba(0,0,0,.5)}
main .cs .bd[data-mode="dark"] .bd-krow .bd-kfn{background:#46464b}
main .cs .bd[data-mode="dark"] .bd-up .bd-kshift{background:#6b6b70}
main .cs .bd[data-mode="dark"] .bd-kdone{color:#4ea1ff}
main .cs .bd[data-s="search"] .bd-home{z-index:4;background:#000}
main .cs .bd[data-mode="dark"][data-s="search"] .bd-home{background:#fff}
@media (prefers-reduced-motion:reduce){main .cs .bd-kb{transition:none}}
main .cs .bd-toast{width:max-content;max-width:calc(100% - 16px);white-space:nowrap}
/* details slide in from the right over the screen they came from, covering the nav instead of removing it (no jump) */
main .cs .bd[data-s="detail"] .bd-nav,main .cs .bd[data-s="search"] .bd-nav{display:grid}
main .cs .bd-s[data-s="detail"],main .cs .bd-s[data-s="search"]{bottom:-60px;z-index:3}
main .cs .bd-s[data-s="detail"]{opacity:1;transform:translate3d(100%,0,0);transition:transform .34s cubic-bezier(.32,.72,0,1),visibility 0s .34s;box-shadow:-8px 0 24px -12px rgba(0,0,0,.35)}
main .cs .bd[data-s="detail"] .bd-s[data-s="detail"]{transform:translate3d(0,0,0);visibility:visible;transition:transform .34s cubic-bezier(.32,.72,0,1)}
main .cs .bd[data-s="detail"][data-under="guide"] .bd-s[data-s="guide"],main .cs .bd[data-s="detail"][data-under="search"] .bd-s[data-s="search"]{opacity:1;visibility:visible;transition:none}
main .cs .bd-status{z-index:4}
main .cs .bd-status b,main .cs .bd-sys{transition:color .3s ease}
main .cs .bd-s .bd-rlist{padding:0!important}
main .cs .bd-s .bd-rlist>li{margin:0 12px!important}
@media (prefers-reduced-motion:reduce){main .cs .bd-s[data-s="detail"],main .cs .bd[data-s="detail"] .bd-s[data-s="detail"]{transition:none}}
main .cs .bd-s[data-s="detail"]{background:var(--bd-bg)}
/* search bar sits under the status bar, the same height as the store header */
main .cs .bd-sbar{height:86px;padding:44px 12px 0;box-sizing:border-box}
/* Create: the outlined pill from the LOX search (92 x 32 at 375 wide) */
main .cs .bd-toast{z-index:7}
main .cs .bd-body{z-index:auto}

/* order guide: more room between − and + */
main .cs .bd-act{gap:14px}
/* cart (LOX Checkout) */
main .cs .bd-cstore{border-bottom:0}
main .cs .bd-cl{display:grid;grid-template-columns:20px 1fr 14px;align-items:center;gap:14px;width:100%;min-height:40px;padding:6px 14px 6px 12px;border:0;background:linear-gradient(var(--bd-line),var(--bd-line)) no-repeat 46px 100%/calc(100% - 46px) 1px;color:var(--bd-fg);font:inherit;font-size:12px;text-align:left;cursor:pointer}
main .cs .bd-cl>svg:first-child{width:18px;height:18px;color:var(--bd-pri)}
main .cs .bd[data-mode="dark"] .bd-cl>svg:first-child{color:var(--bd-name)}
main .cs .bd-cl>svg:last-child{width:13px;height:13px}
main .cs .bd-cl small{display:block;font-size:10px;color:var(--bd-weak)}
main .cs .bd-cl small[hidden]{display:none}
main .cs .bd-cl .bd-clv{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
main .cs .bd-s[data-s="cart"] .bd-ih{padding:16px 14px 8px;border-top:0}
main .cs .bd-s[data-s="cart"] .bd-ih b{font-size:13px;font-weight:500}
main .cs .bd-clear{padding:0!important;border:0!important;background:none!important;color:var(--bd-pri)!important;font:600 11.5px Inter,system-ui,sans-serif!important;cursor:pointer}
main .cs .bd[data-mode="dark"] .bd-clear{color:var(--bd-name)!important}
main .cs .bd-citems{list-style:none;margin:0!important;padding:0!important;border-top:1px solid var(--bd-line)}
main .cs .bd-citems>li{display:grid!important;grid-template-columns:auto 1fr 44px;align-items:center;gap:12px;margin:0!important;padding:10px 14px!important;background:var(--bd-card);border-bottom:1px solid var(--bd-line)}
main .cs .bd-citems>li::before{display:none!important}
main .cs .bd-amt{display:flex;align-items:center;justify-content:center;height:34px;min-width:58px;border:1px solid var(--bd-line);border-radius:99px;background:var(--bd-card);transition:min-width .2s ease}
main .cs .bd-amt .bd-am{display:none;align-items:center;justify-content:center;width:26px;height:26px;margin:0 3px;padding:0;border-radius:50%;cursor:pointer}
main .cs .bd-amt .bd-am svg{width:14px;height:14px}
main .cs .bd-amt .bd-am[data-d="-1"]{border:1.5px solid var(--bd-pri);background:none;color:var(--bd-pri)}
main .cs .bd-amt .bd-am[data-d="1"]{border:0;background:var(--bd-pri);color:#fff}
main .cs .bd-citems .open .bd-amt{min-width:104px;justify-content:space-between}
main .cs .bd-citems .open .bd-am{display:flex}
main .cs .bd-av{flex:1;min-width:30px;height:100%;padding:0 12px;border:0;background:none;color:var(--bd-fg);font:600 13px Inter,system-ui,sans-serif;cursor:pointer}
main .cs .bd-citems .open .bd-av{padding:0 4px}
main .cs .bd-citems .bd-it{display:flex;flex-direction:column;gap:1px;min-width:0}
main .cs .bd-citems .bd-it small{font-size:10px;color:var(--bd-weak)}
main .cs .bd-citems .bd-it b{font-size:12px;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
main .cs .bd-citems .bd-it strong{font-size:12px;font-weight:700}
main .cs .bd-citems img{width:44px!important;height:44px!important;object-fit:cover;border-radius:0!important;opacity:1!important}
main .cs .bd-s[data-s="cart"] .bd-foot{padding:10px 12px 10px 14px}
main .cs .bd-go{display:flex!important;align-items:center;gap:8px;height:36px;padding:0 16px 0 20px!important;text-transform:uppercase;letter-spacing:.06em;font-size:11.5px!important;font-weight:600!important}
main .cs .bd-go svg{width:16px;height:16px}
/* review order (LOX node 2942:79780): slides in over the cart like the details */
main .cs .bd-s[data-s="review"]{bottom:-60px;z-index:3;display:flex;flex-direction:column;background:var(--bd-bg);opacity:1;transform:translate3d(100%,0,0);transition:transform .34s cubic-bezier(.32,.72,0,1),visibility 0s .34s;box-shadow:-8px 0 24px -12px rgba(0,0,0,.35)}
main .cs .bd[data-s="review"] .bd-s[data-s="review"]{transform:translate3d(0,0,0);visibility:visible;transition:transform .34s cubic-bezier(.32,.72,0,1)}
main .cs .bd[data-s="review"][data-under="cart"] .bd-s[data-s="cart"]{opacity:1;visibility:visible;transition:none}
main .cs .bd[data-s="review"] .bd-nav{display:grid}
main .cs .bd-rtop{flex:none;height:80px;padding:44px 10px 0;box-sizing:border-box}
main .cs .bd-rback{display:flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;border:0;background:none;color:var(--bd-fg);cursor:pointer}
main .cs .bd-rback svg{width:20px;height:20px}
main .cs .bd-rtitle{margin:0!important;padding:2px 14px 8px;font:700 18px/1.15 Helvetica,Arial,sans-serif!important;text-transform:uppercase;letter-spacing:.2px!important;color:var(--bd-name)!important}
main .cs .bd-rl{display:grid;grid-template-columns:20px 1fr;align-items:center;gap:14px;min-height:46px;padding:7px 14px 7px 12px;background:linear-gradient(var(--bd-line),var(--bd-line)) no-repeat 46px 100%/calc(100% - 46px) 1px;font-size:12px}
main .cs .bd-rl svg{width:18px;height:18px;color:var(--bd-pri)}
main .cs .bd[data-mode="dark"] .bd-rl svg{color:var(--bd-name)}
main .cs .bd-rl small{display:block;font-size:10px;color:var(--bd-weak)}
main .cs .bd-rsum{margin:0!important;padding:18px 14px 6px;font-size:13px!important;font-weight:500}
main .cs .bd-ritems{display:flex;align-items:center;justify-content:space-between;width:100%;height:38px;padding:0 14px;border:0;border-bottom:1px solid var(--bd-line);background:none;color:var(--bd-fg);font:400 12px Inter,system-ui,sans-serif;cursor:pointer}
main .cs .bd-ritems svg{width:14px;height:14px;transition:transform .2s}
main .cs .bd-ritems[aria-expanded="true"] svg{transform:rotate(180deg)}
main .cs .bd-rlist2{list-style:none;margin:0!important;padding:4px 0!important;border-bottom:1px solid var(--bd-line)}
main .cs .bd-rlist2[hidden]{display:none}
main .cs .bd-rlist2 li{display:flex;justify-content:space-between;gap:10px;margin:0!important;padding:6px 14px!important;font-size:11.5px}
main .cs .bd-rlist2 li::before{display:none!important}
main .cs .bd-rlist2 small{display:block;font-size:10px;color:var(--bd-weak)}
main .cs .bd-rrow{display:flex;justify-content:space-between;padding:11px 14px;border-bottom:1px solid var(--bd-line);font-size:12px}
main .cs .bd-rtot{display:flex;justify-content:space-between;gap:12px;padding:12px 14px}
main .cs .bd-rtot b{font-size:13px;font-weight:700}
main .cs .bd-rtot small{display:block;margin-top:3px;font-size:9.5px;line-height:1.3;color:var(--bd-weak)}
main .cs .bd-s[data-s="review"]>*{flex-shrink:0}
main .cs .bd-rfoot{margin-top:auto;padding:10px 12px 30px;border-top:1px solid var(--bd-line)}
main .cs .bd-order{width:100%;height:38px;border:0;border-radius:99px;background:var(--bd-pri);color:#fff;font:600 11.5px Inter,system-ui,sans-serif;letter-spacing:.08em;text-transform:uppercase;cursor:pointer}
@media (prefers-reduced-motion:reduce){main .cs .bd-s[data-s="review"],main .cs .bd[data-s="review"] .bd-s[data-s="review"]{transition:none}}
/* delivery date calendar (LOX Datepicker) */
main .cs .bd-dcal .bd-sheet{top:44px;padding-top:16px}
main .cs .bd-calh{display:flex;align-items:center;justify-content:space-between;padding:8px 14px 4px 16px}
main .cs .bd-calm{font-size:13px;font-weight:600;white-space:pre}
main .cs .bd-calh span{display:flex;gap:6px}
main .cs .bd-calh button{display:flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:0;background:none;color:var(--bd-pri);cursor:pointer}
main .cs .bd[data-mode="dark"] .bd-calh button{color:var(--bd-name)}
main .cs .bd-calh button:disabled{opacity:.3;cursor:default}
main .cs .bd-calh svg{width:17px;height:17px}
main .cs .bd-calw,main .cs .bd-cald{display:grid;grid-template-columns:repeat(7,1fr);padding:0 8px}
main .cs .bd-calw{padding-top:10px;padding-bottom:4px}
main .cs .bd-calw span{text-align:center;font-size:9.5px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--bd-weak)}
main .cs .bd-cald>*{display:flex;align-items:center;justify-content:center;width:32px;height:32px;margin:4px auto;padding:0;border:0;border-radius:50%;background:none;color:var(--bd-fg);font:400 12.5px Inter,system-ui,sans-serif}
main .cs .bd-cald button{cursor:pointer}
main .cs .bd-cald button:hover{background:var(--bd-line)}
main .cs .bd-cald button.sel{background:var(--bd-pri);color:#fff;font-weight:600}
main .cs .bd-cald .off{color:var(--bd-weak);text-decoration:line-through;opacity:.7}
main .cs .bd-cald .today{background:var(--bd-line)}
/* supplier comment */
main .cs .bd-comin{display:block;width:calc(100% - 32px);margin:6px 16px 0;padding:10px 12px;box-sizing:border-box;border:1px solid var(--bd-line);border-radius:10px;background:var(--bd-card);color:var(--bd-fg);font:400 12.5px/1.4 Inter,system-ui,sans-serif;resize:none;outline:none}
main .cs .bd-comin:focus{border-color:var(--bd-pri)}
main .cs .bd-comsave{display:block;width:calc(100% - 32px);height:36px;margin:12px 16px 0;border:0;border-radius:99px;background:var(--bd-pri);color:#fff;font:600 12px Inter,system-ui,sans-serif;cursor:pointer}
main .cs .bd-cl{font:400 12px/1.3 Inter,system-ui,sans-serif!important}
main .cs .bd-cl small{font-size:10px!important}
main .cs .bd-ritems{font:400 12px/1 Inter,system-ui,sans-serif!important}
main .cs .bd-order{font:600 11.5px/1 Inter,system-ui,sans-serif!important;letter-spacing:.08em!important}
main .cs .bd-comsave{font:600 12px/1 Inter,system-ui,sans-serif!important}
main .cs .bd-cald>*{font:400 12.5px/1 Inter,system-ui,sans-serif!important}
main .cs .bd-av{font:600 13px/1 Inter,system-ui,sans-serif!important}
/* cart pill open: narrower, and the name column may shrink so the photo always stays */
main .cs .bd-citems>li{grid-template-columns:auto minmax(0,1fr) 44px}
main .cs .bd-citems .open .bd-amt{min-width:86px}
main .cs .bd-amt .bd-am{width:24px;height:24px;margin:0 3px}
main .cs .bd-amt .bd-am svg{width:13px;height:13px}
main .cs .bd-citems .open .bd-av{min-width:22px;padding:0 2px}
main .cs .bd-clear:disabled{opacity:.35;cursor:default}
/* supplier comment sheet: one padded column, field and button the same width */
main .cs .bd-dcom .bd-sheet{display:flex;flex-direction:column;gap:12px;padding:20px 16px 34px}
main .cs .bd-dcom .bd-shead{padding:0}
main .cs .bd-dcom .bd-comin{width:100%;margin:0}
/* primary buttons (Save comment, Order now, Checkout): brand fill, white uppercase text */
main .cs .bd-comsave,main .cs .bd-order{display:flex;align-items:center;justify-content:center;width:100%;height:38px;margin:0;padding:0!important;border:0!important;border-radius:99px!important;background:var(--bd-pri)!important;color:#fff!important;font:600 11.5px/1 Inter,system-ui,sans-serif!important;letter-spacing:.08em!important;text-transform:uppercase}
main .cs .bd-go{color:#fff!important}
main .cs .bd-comsave:hover,main .cs .bd-order:hover,main .cs .bd-go:hover{color:#fff!important;filter:brightness(1.08)}
main .cs .bd-act{gap:9px}
/* long values end in … inside the screen (cart); on Review the comment wraps */
main .cs .bd-cl{grid-template-columns:20px minmax(0,1fr) 14px}
main .cs .bd-cl>span{min-width:0}
main .cs .bd-rl{grid-template-columns:20px minmax(0,1fr)}
main .cs .bd-rl>span{min-width:0;overflow-wrap:anywhere}
/* order guide: after Add, the − grows out to the left of + instead of popping in; + and the cart button swap with a small pop */
main .cs .bd-act .bd-minus{display:flex;width:0;min-width:0;opacity:0;transform:scale(.4);margin-right:-9px;overflow:hidden;pointer-events:none;transition:width .28s cubic-bezier(.22,1,.36,1),margin .28s cubic-bezier(.22,1,.36,1),opacity .2s ease,transform .28s cubic-bezier(.22,1,.36,1)}
main .cs .bd-act.in .bd-minus{width:30px;opacity:1;transform:none;margin-right:0;pointer-events:auto}
main .cs .bd-act.in .bd-plus,main .cs .bd-act:not(.in) .bd-add{animation:bdPop .26s cubic-bezier(.22,1,.36,1)}
@keyframes bdPop{from{transform:scale(.7);opacity:.4}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){main .cs .bd-act .bd-minus{transition:none}main .cs .bd-act.in .bd-plus,main .cs .bd-act:not(.in) .bd-add{animation:none}}
main .cs .bd.bd-instant .bd-s{transition:none!important}
main .cs .bd-dcal .bd-sheet{display:flex;flex-direction:column}
main .cs .bd-calclear{display:flex;align-items:center;justify-content:center;width:calc(100% - 32px);height:38px;margin:auto 16px 0;padding:0!important;border:1.5px solid var(--bd-pri)!important;border-radius:99px!important;background:none!important;color:var(--bd-pri)!important;font:600 11.5px/1 Inter,system-ui,sans-serif!important;letter-spacing:.08em!important;text-transform:uppercase;cursor:pointer}
main .cs .bd[data-mode="dark"] .bd-calclear{border-color:var(--bd-name)!important;color:var(--bd-name)!important}
main .cs .bd-calclear:disabled{opacity:.35;cursor:default}
main .cs .bd-calclear{margin:auto 16px 0!important}
main .cs .bd-screen .bd-calclear{margin:auto 16px 30px!important}
/* calendar button lower; the home indicator stays on top of every sheet */
main .cs .bd-screen .bd-calclear{margin:auto 16px 4px!important}
main .cs .bd-home{z-index:6}
main .cs .bd[data-mode="dark"] .bd-home{background:#fff}
main .cs .bd-calclear[hidden]{display:none!important}
/* remove confirmation (LOX) */
main .cs .bd-dlg{position:absolute;inset:0;z-index:7;display:flex;align-items:center;justify-content:center;padding:0 24px}
main .cs .bd-dlg[hidden]{display:none}
main .cs .bd-dscrim{position:absolute;inset:0;background:rgba(0,0,0,.4);opacity:0;transition:opacity .2s ease}
main .cs .bd-dbox{position:relative;width:100%;padding:18px 18px 14px;background:var(--bd-card);color:var(--bd-fg);box-shadow:0 12px 30px -12px rgba(0,0,0,.5);opacity:0;transform:scale(.94);transition:opacity .2s ease,transform .22s cubic-bezier(.22,1,.36,1)}
main .cs .bd-dlg.on .bd-dscrim{opacity:1}
main .cs .bd-dlg.on .bd-dbox{opacity:1;transform:none}
main .cs .bd-dq{margin:0 0 14px!important;font:400 14px/1.3 Inter,system-ui,sans-serif!important;color:var(--bd-fg)!important}
main .cs .bd-dbtns{display:flex;justify-content:flex-end;gap:10px}
main .cs .bd-screen .bd-dbtns button{height:26px;padding:0 14px!important;border-radius:99px!important;font:600 10.5px/1 Inter,system-ui,sans-serif!important;letter-spacing:.08em!important;text-transform:uppercase;cursor:pointer}
main .cs .bd-dno{border:1.2px solid var(--bd-pri)!important;background:none!important;color:var(--bd-pri)!important}
main .cs .bd[data-mode="dark"] .bd-dno{border-color:var(--bd-name)!important;color:var(--bd-name)!important}
main .cs .bd-dyes{border:0!important;background:#f25a43!important;color:#fff!important}
@media (prefers-reduced-motion:reduce){main .cs .bd-dscrim,main .cs .bd-dbox{transition:none}}
/* order guide: the cart button and + stay in the same spot; the − waits under + and slides out to the left (like the product cell above) */
main .cs .bd-act{position:relative}
main .cs .bd-act .bd-minus{position:absolute;right:0;top:calc(50% - 15px);width:30px;height:30px;margin:0!important;z-index:0;opacity:0;transform:translateX(0) scale(.7);pointer-events:none;overflow:visible;transition:transform .32s cubic-bezier(.22,1,.36,1),opacity .2s ease}
main .cs .bd-act.in .bd-minus{width:30px;margin:0!important;opacity:1;transform:translateX(-39px);pointer-events:auto}
main .cs .bd-act .bd-plus,main .cs .bd-act .bd-add{position:relative;z-index:1}
@media (prefers-reduced-motion:reduce){main .cs .bd-act .bd-minus{transition:none}}
/* unit sheet */
main .cs .bd-u{cursor:pointer}
main .cs .bd-uname{margin:0!important;padding:0 16px 6px;font-size:11px!important;color:var(--bd-weak)!important}
main .cs .bd-screen .bd-units{padding:0 0 0 16px!important}
main .cs .bd-screen .bd-units>li{margin:0!important}
main .cs .bd-units button{display:grid;grid-template-columns:minmax(0,1fr) auto 28px;align-items:center;gap:10px;width:100%;min-height:46px;padding:7px 16px 7px 0!important;border:0;border-bottom:1px solid var(--bd-line);background:none;color:var(--bd-fg);font:400 12px Inter,system-ui,sans-serif!important;text-align:left;cursor:pointer}
main .cs .bd-units span{display:flex;flex-direction:column;gap:1px;min-width:0}
main .cs .bd-units b{font-size:12.5px;font-weight:500}
main .cs .bd-units small{font-size:10.5px;color:var(--bd-weak)}
main .cs .bd-units strong{font-size:12px;font-weight:600}
main .cs .bd-units i{display:flex;justify-content:center;color:var(--bd-pri);opacity:0;transform:scale(.6);transition:opacity .15s,transform .2s cubic-bezier(.22,1,.36,1)}
main .cs .bd[data-mode="dark"] .bd-units i{color:var(--bd-name)}
main .cs .bd-units i svg{width:17px;height:17px}
main .cs .bd-units [aria-pressed="true"] i{opacity:1;transform:none}
main .cs .bd-amt .bd-am[data-d="-1"]{border-width:1px!important;border-style:solid!important}

/* user roles (Choco mobile, team orders) */
main .cs .ur{--ur-ok:#1f8a4c;--ur-no:#d12f2f;margin:32px 0;padding:22px;border:1px solid var(--line);border-radius:18px;background:var(--surface)}
:root[data-theme=dark] main .cs .ur{--ur-ok:#4cc985;--ur-no:#ff6b6b}
main .cs .ur-seg{position:relative;display:inline-flex;padding:4px;border-radius:99px;background:var(--soft)}
main .cs .ur-seg button{position:relative;z-index:1;margin:0!important;padding:9px 16px!important;border:0!important;border-radius:99px;background:none!important;color:var(--muted)!important;font:600 14px/1 var(--body)!important;cursor:pointer;transition:color .2s}
main .cs .ur-seg button[aria-checked="true"]{color:var(--on-fg)!important}
main .cs .ur-thumb{position:absolute;top:4px;bottom:4px;left:0;border-radius:99px;background:var(--fg);transition:transform .3s cubic-bezier(.22,1,.36,1),width .3s cubic-bezier(.22,1,.36,1)}
main .cs .ur-count{margin:16px 0 4px!important;font-size:14px!important;color:var(--muted)!important}
main .cs .ur-count b{color:var(--fg);font-variant-numeric:tabular-nums}
main .cs .ur-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 28px}
main .cs .ur-g{min-width:0}
main .cs .ur-gh{margin:16px 0 4px!important;font:600 11px/1.2 var(--body)!important;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)!important}
main .cs .ur-list ul{list-style:none;margin:0!important;padding:0!important}
main .cs .ur-list li{display:grid;grid-template-columns:22px minmax(0,1fr) auto;align-items:center;gap:10px;margin:0!important;padding:9px 0!important;border-bottom:1px solid var(--line);font-size:15px;line-height:1.35}
main .cs .ur-list li::before{display:none!important}
main .cs .ur-i{position:relative;display:flex;width:22px;height:22px;border-radius:50%;background:color-mix(in srgb,var(--ur-ok) 14%,transparent);color:var(--ur-ok);transition:background .25s,color .25s}
main .cs .ur-i svg{position:absolute;inset:4px;width:14px;height:14px;transition:opacity .2s,transform .25s cubic-bezier(.22,1,.36,1)}
main .cs .ur-n{opacity:0;transform:scale(.5)}
main .cs .ur-list li.no .ur-i{background:color-mix(in srgb,var(--ur-no) 12%,transparent);color:var(--ur-no)}
main .cs .ur-list li.no .ur-y{opacity:0;transform:scale(.5)}
main .cs .ur-list li.no .ur-n{opacity:1;transform:none}
main .cs .ur-a{color:var(--fg);transition:color .25s}
main .cs .ur-list li.no .ur-a{color:var(--muted)}
main .cs .ur-s{font-size:12px;color:var(--muted)}
@media (max-width:640px){main .cs .ur{padding:16px}main .cs .ur-list{grid-template-columns:1fr}main .cs .ur-s{display:none}main .cs .ur-seg button{padding:8px 12px!important;font-size:13px!important}}
@media (prefers-reduced-motion:reduce){main .cs .ur-thumb,main .cs .ur-i svg{transition:none}}
main .cs .ur-list{grid-template-columns:1fr}
/* roles: the switch sits outside, centered above the box, like Before / After */
main .cs .ur{display:flex;flex-direction:column;align-items:center;padding:0;border:0;background:none}
main .cs .ur-seg{display:grid;grid-template-columns:repeat(3,1fr);min-width:330px;margin-bottom:20px;background:var(--soft);box-shadow:inset 0 0 0 1px var(--line)}
main .cs .ur-seg button{padding:9px 16px!important}
main .cs .ur-seg button:hover{color:var(--fg)!important}
main .cs .ur-seg button[aria-checked="true"],main .cs .ur-seg button[aria-checked="true"]:hover{color:#fff!important}
main .cs .ur-thumb{background:var(--accent)}
main .cs .ur-box{align-self:stretch;padding:22px;border:1px solid var(--line);border-radius:18px;background:var(--surface)}
main .cs .ur-box .ur-count{margin-top:0!important}
main .cs .ur figcaption{align-self:stretch}
@media (max-width:640px){main .cs .ur{padding:0}main .cs .ur-seg{min-width:0;width:100%}main .cs .ur-box{padding:16px}}
/* cart rows: content slides over a red Remove layer */
main .cs .bd-citems>li{position:relative;display:block!important;padding:0!important;overflow:hidden;background:#f25a43!important;transition:height .24s ease}
main .cs .bd-citems>li.bye{border-bottom-width:0}
main .cs .bd-swbg{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;gap:3px;padding:0 16px;color:#fff;font:500 11.5px Inter,system-ui,sans-serif}
main .cs .bd-swbg svg{width:18px;height:18px}
main .cs .bd-row{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr) 44px;align-items:center;gap:12px;padding:10px 14px;background:var(--bd-card);touch-action:pan-y;transition:transform .22s cubic-bezier(.22,1,.36,1);user-select:none;-webkit-user-select:none}
main .cs .bd-citems>li.swiping .bd-row{transition:none}
@media (prefers-reduced-motion:reduce){main .cs .bd-row,main .cs .bd-citems>li{transition:none}}
/* empty states: the crate from LOX, in the store color */
main .cs .bd-crate{display:block;width:150px;height:150px;margin:0 auto -6px;color:var(--bd-pri)}
main .cs .bd-empty{flex-direction:column;align-items:center;margin:auto 0;padding:10px 24px 30px!important;text-align:center}
main .cs .bd.bd-none .bd-empty{display:flex!important}
main .cs .bd-empty b,main .cs .bd-snone b{display:block;font-size:13.5px;font-weight:600;color:var(--bd-name)}
main .cs .bd-empty span,main .cs .bd-snone span{display:block;margin-top:3px;font-size:11.5px;line-height:1.4;color:var(--bd-weak)}
main .cs .bd.bd-none .bd-s[data-s="cart"] .bd-ih,main .cs .bd.bd-none .bd-s[data-s="cart"] .bd-foot,main .cs .bd.bd-none .bd-citems{display:none!important}
main .cs .bd-snone{display:flex;flex-direction:column;align-items:center;padding:40px 24px 20px;text-align:center}
main .cs .bd-snone[hidden]{display:none}
main .cs .bd-sh[hidden]{display:none}
/* search: clear the field */
main .cs .bd-sclr{display:flex;align-items:center;justify-content:center;width:26px;height:26px;padding:0;border:0;background:none;color:var(--bd-fg);cursor:pointer}
main .cs .bd-sclr[hidden]{display:none}
main .cs .bd-sclr svg{width:16px;height:16px}
main .cs .bd-crate{width:200px;height:200px;margin:0 auto -14px}
/* swipe left: the red Remove is attached to the row's right edge; icon and label centered together */
main .cs .bd-citems>li{background:var(--bd-card)!important}
main .cs .bd-row{overflow:visible}
main .cs .bd-swbg{position:absolute;inset:0 auto 0 100%;width:100%;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;padding:0;background:#f25a43;color:#fff}
main .cs .bd-swbg span{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:84px;font:500 11.5px/1 Inter,system-ui,sans-serif;text-align:center}
main .cs .bd-swbg svg{display:block;width:18px;height:18px}
main .cs .bd-screen svg.bd-crate{display:block!important;flex:none;width:200px!important;height:200px!important;max-width:none!important;margin:0 auto -14px!important}
/* order guide star: the burst from the product cell (ring, dots, star pops in), in the store color */
main .cs .bd-star{position:relative;overflow:visible!important}
main .cs .bd-star .st-line,main .cs .bd-star .st-fill{position:relative;z-index:1}
main .cs .bd-star .ps-ring{position:absolute;left:50%;top:50%;width:30px;height:30px;margin:-15px 0 0 -15px;border-radius:50%;border:15px solid color-mix(in srgb,var(--bd-pri) 40%,transparent);box-sizing:border-box;transform:scale(0);pointer-events:none}
main .cs .bd-star .ps-dots{position:absolute;left:50%;top:50%;width:0;height:0;pointer-events:none}
main .cs .bd-star .ps-dots i{position:absolute;left:calc(var(--s) / -2);top:calc(var(--s) / -2);width:var(--s);height:var(--s);border-radius:50%;background:var(--bd-pri);opacity:0;transform:rotate(var(--a)) translateY(0)}
main .cs .bd-star .ps-dots i:nth-child(1){--a:-90deg;--r:22px;--s:3.5px}
main .cs .bd-star .ps-dots i:nth-child(2){--a:-74deg;--r:17px;--s:2.5px}
main .cs .bd-star .ps-dots i:nth-child(3){--a:-39deg;--r:22px;--s:3.5px}
main .cs .bd-star .ps-dots i:nth-child(4){--a:-23deg;--r:17px;--s:2.5px}
main .cs .bd-star .ps-dots i:nth-child(5){--a:13deg;--r:22px;--s:3.5px}
main .cs .bd-star .ps-dots i:nth-child(6){--a:29deg;--r:17px;--s:2.5px}
main .cs .bd-star .ps-dots i:nth-child(7){--a:64deg;--r:22px;--s:3.5px}
main .cs .bd-star .ps-dots i:nth-child(8){--a:80deg;--r:17px;--s:2.5px}
main .cs .bd-star .ps-dots i:nth-child(9){--a:116deg;--r:22px;--s:3.5px}
main .cs .bd-star .ps-dots i:nth-child(10){--a:132deg;--r:17px;--s:2.5px}
main .cs .bd-star .ps-dots i:nth-child(11){--a:167deg;--r:22px;--s:3.5px}
main .cs .bd-star .ps-dots i:nth-child(12){--a:183deg;--r:17px;--s:2.5px}
main .cs .bd-star .ps-dots i:nth-child(13){--a:219deg;--r:22px;--s:3.5px}
main .cs .bd-star .ps-dots i:nth-child(14){--a:235deg;--r:17px;--s:2.5px}
main .cs .bd-star.pop .ps-ring{animation:psRing .3s ease-out forwards}
main .cs .bd-star.pop .ps-dots i{animation:psDot .5s .12s cubic-bezier(.2,.7,.3,1) forwards}
main .cs .bd-star.pop .st-fill{animation:psStar .5s .1s cubic-bezier(.3,1.6,.5,1) backwards}
main .cs .bd-dstar .ps-ring{border-color:rgba(255,255,255,.45)}
main .cs .bd-dstar .ps-dots i{background:#fff}
@media (prefers-reduced-motion:reduce){main .cs .bd-star.pop .ps-ring,main .cs .bd-star.pop .ps-dots i,main .cs .bd-star.pop .st-fill{animation:none}}
/* unit sheet as in LOX: product with Clear, units with checkboxes, Save */
main .cs .bd-dunit .bd-sheet{display:flex;flex-direction:column;padding-bottom:30px}
main .cs .bd-dunit .bd-shead{align-items:flex-start;gap:12px}
main .cs .bd-dunit .bd-shead h4{font-size:16px!important;line-height:1.1!important}
main .cs .bd-uprod{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:4px 0 0 16px;padding:8px 16px 10px 0;border-bottom:1px solid var(--bd-line)}
main .cs .bd-uprod span{display:flex;flex-direction:column;gap:2px;min-width:0}
main .cs .bd-uprod small{font-size:10.5px;color:var(--bd-weak)}
main .cs .bd-uprod b{font-size:12.5px;font-weight:400}
main .cs .bd-screen .bd-uclear{flex:none;padding:0!important;border:0!important;background:none!important;color:var(--bd-pri)!important;font:600 12px/1 Inter,system-ui,sans-serif!important;cursor:pointer}
main .cs .bd[data-mode="dark"] .bd-uclear{color:var(--bd-name)!important}
main .cs .bd-units button{grid-template-columns:minmax(0,1fr) 28px!important}
main .cs .bd-units button:disabled{cursor:default}
main .cs .bd-units button:disabled b{color:var(--bd-weak)}
main .cs .bd-units i{display:flex;align-items:center;justify-content:center;justify-self:center;width:17px;height:17px;border:1.5px solid var(--bd-weak);border-radius:3px;opacity:1!important;transform:none!important;color:#fff;transition:background .15s,border-color .15s}
main .cs .bd-units i svg{width:13px!important;height:13px!important;opacity:0;transform:scale(.6);transition:opacity .15s,transform .2s cubic-bezier(.22,1,.36,1)}
main .cs .bd-units [aria-checked="true"] i{background:var(--bd-pri);border-color:var(--bd-pri)}
main .cs .bd-units [aria-checked="true"] i svg{opacity:1;transform:none}
main .cs .bd-units button:disabled i{opacity:.35!important}
main .cs .bd-usave{display:flex;align-items:center;justify-content:center;width:auto;height:38px;margin:16px 16px 0!important;padding:0!important;border:0!important;border-radius:99px!important;background:var(--bd-pri)!important;color:#fff!important;font:600 11.5px/1 Inter,system-ui,sans-serif!important;letter-spacing:.08em!important;text-transform:uppercase;cursor:pointer}
main .cs .bd-usave:disabled{opacity:.4;cursor:default}
/* unit menu under the row's picker */
main .cs .bd-umenu{position:absolute;z-index:4;display:flex;flex-direction:column;padding:4px;border-radius:10px;background:var(--bd-card);box-shadow:0 0 0 1px var(--bd-line),0 12px 28px -10px rgba(0,0,0,.35);opacity:0;transform:translateY(-4px) scale(.98);transform-origin:top left;transition:opacity .15s ease,transform .18s cubic-bezier(.22,1,.36,1)}
main .cs .bd-umenu[hidden]{display:none}
main .cs .bd-umenu.on{opacity:1;transform:none}
main .cs .bd-screen .bd-umenu button{display:flex;align-items:center;justify-content:space-between;gap:16px;height:32px;padding:0 10px!important;border:0!important;border-radius:6px!important;background:none!important;color:var(--bd-fg)!important;font:400 12px/1 Inter,system-ui,sans-serif!important;text-align:left;cursor:pointer}
main .cs .bd-umenu button:hover{background:var(--bd-line)!important}
main .cs .bd-umenu button[aria-checked="true"]{font-weight:600!important;color:var(--bd-pri)!important}
main .cs .bd[data-mode="dark"] .bd-umenu button[aria-checked="true"]{color:var(--bd-name)!important}
main .cs .bd-umenu small{font-size:11px;color:var(--bd-weak)}
main .cs .bd-screen .bd-umenu .bd-uedit{margin-top:4px!important;border-top:1px solid var(--bd-line)!important;border-radius:0 0 6px 6px!important;color:var(--bd-pri)!important;font-weight:500!important}
main .cs .bd[data-mode="dark"] .bd-umenu .bd-uedit{color:var(--bd-name)!important}
@media (prefers-reduced-motion:reduce){main .cs .bd-umenu{transition:none}}
/* order guide −: thinner outline */
main .cs .bd-act .bd-minus{border-width:1px!important}
/* unit sheet: Save inside the margins, with room above it */
main .cs .bd-screen .bd-usave{align-self:center;width:calc(100% - 32px)!important;max-width:calc(100% - 32px);margin:22px 16px 0!important;box-sizing:border-box}
/* a product taken out of the order guide folds away */
main .cs .bd-cell.bd-out{overflow:hidden;opacity:0;height:0!important;padding-top:0!important;padding-bottom:0!important;margin:0!important;box-shadow:none!important;transition:height .3s ease,opacity .2s ease,padding .3s ease}
main .cs .bd-cell.gone{display:none!important}
main .cs .bd-uprod span{align-items:flex-start;text-align:left}
main .cs .bd-uprod b{display:block;margin:0!important;padding:0!important;text-align:left;font-size:13px;font-weight:500}
main .cs .bd-uprod b{color:var(--bd-fg)!important}
main .cs .bd-cell.one .bd-u{cursor:default}
main .cs .bd-cell.one .bd-u svg{display:none}
/* details: units in the order guide, a row that opens the unit sheet */
main .cs .bd-screen .bd-dunits{display:grid;grid-template-columns:minmax(0,1fr) 14px;align-items:center;gap:10px;width:calc(100% - 28px);margin:6px 14px 4px!important;padding:9px 0!important;border:0!important;border-top:1px solid var(--bd-line)!important;border-bottom:1px solid var(--bd-line)!important;background:none!important;color:var(--bd-fg)!important;font:400 12px/1.3 Inter,system-ui,sans-serif!important;text-align:left;cursor:pointer}
main .cs .bd-dunits small{display:block;font-size:10px;color:var(--bd-weak)}
main .cs .bd-dunits .bd-duv{display:block;color:var(--bd-fg)}
main .cs .bd-dunits svg{width:13px;height:13px}
main .cs .bd-sclose{flex:none!important;width:28px!important;min-width:28px;height:28px!important}
main .cs .bd-dunit .bd-shead{align-items:center}main .cs .bd-dunit .bd-shead h4{font-size:17px!important}
main .cs .bd-gempty{display:flex;flex-direction:column;align-items:center;padding:30px 24px;text-align:center}
main .cs .bd-gempty[hidden]{display:none}
main .cs .bd-gempty b{display:block;font-size:13.5px;font-weight:600;color:var(--bd-name)}
main .cs .bd-gempty span{display:block;margin-top:3px;font-size:11.5px;line-height:1.4;color:var(--bd-weak)}
/* star burst: a light tint of the store color, like the product cell's light blue */
main .cs .bd-star .ps-ring{border-color:color-mix(in srgb,var(--bd-pri) 22%,#fff)}
main .cs .bd-star .ps-dots i{background:color-mix(in srgb,var(--bd-pri) 38%,#fff)}
main .cs .bd[data-mode="dark"] .bd-star .ps-ring{border-color:color-mix(in srgb,var(--bd-name) 35%,transparent)}
main .cs .bd[data-mode="dark"] .bd-star .ps-dots i{background:var(--bd-name)}
main .cs .bd-star[aria-pressed="false"].pop .st-line{animation:psStar .5s .1s cubic-bezier(.3,1.6,.5,1) backwards}
@media (prefers-reduced-motion:reduce){main .cs .bd-star.pop .st-line{animation:none}}
main .cs .bd-star.bd-dstar .ps-ring{border-color:rgba(255,255,255,.45)}main .cs .bd-star.bd-dstar .ps-dots i{background:#fff}
/* catalog list: products outside the order guide still show, with an outline star */
main .cs .bd.bd-cat .bd-cell.gone:not([hidden]){display:grid!important}
main .cs .bd-tabs button[hidden]{display:none!important}
/* crate: shadow and outlines are dark shades of the store color, so a white label never shows Choco navy */
main .cs .bd-crate{--bd-crate-sh:color-mix(in srgb,var(--bd-pri) 30%,#05060a);--bd-crate-ln:color-mix(in srgb,var(--bd-pri) 45%,#000)}
main .cs .bd[data-mode="dark"] .bd-crate{--bd-crate-sh:color-mix(in srgb,var(--bd-pri) 25%,#000)}

/* Before: the old Choco app as a working demo (old blue, cream background, the old controls) */
main .cs .bd-old{display:flex;justify-content:center;width:min(300px,100%);aspect-ratio:auto;margin-bottom:34px}
main .cs .od-dev{margin:0!important}
main .cs .bd-old .od-screen img{display:block!important;cursor:default;border-radius:0!important}
main .cs .od-screen{--bd-bg:#faf8f6;--bd-fg:#141414;--bd-sys:#000;--bd-line:#e7e3de;--bd-card:#fff;--bd-weak:#8a8a8a;--od:#3867ff;--od-ink:#18003e;background:#faf8f6!important;color:#141414!important}
main .cs .od-screen .bd-status b,main .cs .od-screen .bd-sys{color:#000!important}
main .cs .od-screen .bd-home{background:#000!important}
main .cs .od-body{position:relative;flex:1;min-height:0}
main .cs .od-s{position:absolute;inset:0;display:none;overflow:hidden auto;padding-top:44px;scrollbar-width:none;-webkit-user-select:none;user-select:none}
main .cs .od-s::-webkit-scrollbar{display:none}
main .cs .od-screen[data-s="guide"] .od-s[data-s="guide"],main .cs .od-screen[data-s="cats"] .od-s[data-s="cats"],main .cs .od-screen[data-s="cat"] .od-s[data-s="cat"],main .cs .od-screen[data-s="det"] .od-s[data-s="det"],main .cs .od-screen[data-s="fin"] .od-s[data-s="fin"]{display:block}
main .cs .od-bar{display:flex;align-items:center;justify-content:space-between;height:40px;padding:0 10px}
main .cs .od-nb{display:flex;align-items:center;gap:8px}
main .cs .od-nb b{font-size:14px;font-weight:600}
main .cs .od-back{display:flex;align-items:center;justify-content:center;width:26px;height:26px;padding:0!important;border:0!important;background:none!important;color:var(--od)!important;cursor:pointer}
main .cs .od-back svg{width:19px;height:19px}
main .cs .bd-screen .od-edit{padding:0!important;border:0!important;background:none!important;color:var(--od)!important;font:400 13px/1 Inter,system-ui,sans-serif!important;cursor:pointer}
main .cs .od-search{display:flex;align-items:center;gap:6px;height:30px;margin:4px 12px 10px;padding:0 9px;border-radius:8px;background:#eceae6;color:#8a8a8a;cursor:text}
main .cs .od-search svg{width:15px;height:15px;flex:none}
main .cs .od-search input{flex:1;min-width:0;height:100%;padding:0;border:0;background:none;color:#141414;font:400 12.5px Inter,system-ui,sans-serif;outline:none;-webkit-appearance:none;appearance:none}
main .cs .od-search input::placeholder{color:#8a8a8a}
main .cs .od-search input::-webkit-search-cancel-button{display:none}
main .cs .bd-screen .od-link{display:flex;align-items:center;justify-content:space-between;width:100%;height:40px;padding:0 12px!important;border:0!important;border-top:1px solid var(--bd-line)!important;border-bottom:1px solid var(--bd-line)!important;background:none!important;color:var(--od)!important;font:600 10.5px/1 Inter,system-ui,sans-serif!important;letter-spacing:.05em;text-transform:uppercase;cursor:pointer}
main .cs .od-link svg{width:13px;height:13px}
main .cs .od-chips{display:flex;gap:6px;padding:10px 12px;overflow-x:auto;scrollbar-width:none}
main .cs .bd-screen .od-chips button,main .cs .bd-screen .od-units button{flex:none;height:30px;padding:0 13px!important;border:1px solid var(--bd-line)!important;border-radius:99px!important;background:#fff!important;color:#444!important;font:400 12px/1 Inter,system-ui,sans-serif!important;cursor:pointer}
main .cs .bd-screen .od-chips button.on,main .cs .bd-screen .od-units button.on{border-color:var(--od)!important;background:var(--od)!important;color:#fff!important}
main .cs .bd-screen .od-list{border-top:1px solid var(--bd-line)}
main .cs .bd-screen .od-list>li{display:grid!important;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"name step" "pack step" "price step";align-items:start;column-gap:10px;padding:10px 12px!important;border-bottom:1px solid var(--bd-line);background:#fff!important}
main .cs .od-list>li[hidden]{display:none!important}
main .cs .od-list>li::before,main .cs .od-clist>li::before,main .cs .od-flist>li::before,main .cs .od-catlist>li::before{display:none!important}
main .cs .bd-screen .od-name{grid-area:name;padding:0!important;border:0!important;background:none!important;color:#141414!important;font:400 12.5px/1.3 Inter,system-ui,sans-serif!important;text-align:left;cursor:pointer}
main .cs .od-list>li>small{grid-area:pack;font-size:10px;color:var(--bd-weak)}
main .cs .od-price{grid-area:price;justify-self:start;margin-top:5px;padding:2px 7px;border-radius:99px;background:#f0eeea;color:#8a8a8a;font-size:10px}
main .cs .od-step{grid-area:step;align-self:center;display:grid;grid-template-columns:26px 44px 26px;height:40px;border:1px solid var(--bd-line);border-radius:4px;background:#fff}
main .cs .bd-screen .od-step>button{display:flex;align-items:center;justify-content:center;padding:0!important;border:0!important;background:none!important;color:#b9b9b9!important;font:300 18px/1 Inter,system-ui,sans-serif!important;cursor:pointer}
main .cs .bd-screen .od-step .od-plus{color:var(--od)!important}
main .cs .od-list>li.has .od-minus{color:var(--od)!important}
main .cs .od-q{display:flex;flex-direction:column;align-items:center;justify-content:center;border-left:1px solid var(--bd-line);border-right:1px solid var(--bd-line)}
main .cs .od-q b{font-size:12.5px;font-weight:600;color:#141414}
main .cs .od-q small{font-size:9px;color:var(--bd-weak)}
main .cs .od-none{padding:24px 12px;font-size:12px!important;color:var(--bd-weak)!important;text-align:center}
main .cs .bd-screen .od-fab{position:sticky;bottom:26px;display:flex;align-items:center;justify-content:center;width:46px;height:46px;margin:-30px 14px 26px auto!important;padding:0!important;border:0!important;border-radius:50%!important;background:var(--od)!important;color:#fff!important;box-shadow:0 8px 18px -6px rgba(61,107,255,.6);cursor:pointer}
main .cs .od-fab svg{width:22px;height:22px}
main .cs .od-title{margin:0!important;padding:2px 12px 10px;font:900 20px/1.05 Helvetica,Arial,sans-serif!important;letter-spacing:-.01em!important;text-transform:uppercase;color:var(--od-ink)!important}
main .cs .bd-screen .od-catlist button{display:flex;align-items:center;justify-content:space-between;width:100%;height:44px;padding:0 12px!important;border:0!important;border-bottom:1px solid var(--bd-line)!important;background:#fff!important;color:#141414!important;font:400 13px/1 Inter,system-ui,sans-serif!important;cursor:pointer}
main .cs .od-catlist{border-top:1px solid var(--bd-line)}
main .cs .od-catlist svg{width:13px;height:13px;color:var(--bd-weak)}
main .cs .bd-screen .od-clist>li{display:grid!important;grid-template-columns:minmax(0,1fr) 62px 26px;align-items:center;gap:10px;padding:10px 12px!important;border-bottom:1px solid var(--bd-line)}
main .cs .od-ci{display:flex;flex-direction:column;align-items:flex-start;gap:1px;min-width:0}
main .cs .od-ci b{font-size:12.5px;font-weight:400}
main .cs .od-ci small{font-size:11.5px;color:#444}
main .cs .bd-screen .od-det{padding:0!important;border:0!important;background:none!important;color:var(--od)!important;font:400 11.5px/1.4 Inter,system-ui,sans-serif!important;cursor:pointer}
main .cs .od-clist img{width:62px!important;height:62px!important;object-fit:cover;opacity:1!important}
main .cs .bd-screen .od-add{display:flex;align-items:center;justify-content:center;width:26px;height:26px;padding:0!important;border:0!important;background:none!important;color:var(--od)!important;cursor:pointer}
main .cs .od-add svg{width:21px;height:21px}
main .cs .bd-screen .od-trash{display:flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0!important;border:0!important;background:none!important;color:#141414!important;cursor:pointer}
main .cs .od-trash[hidden]{display:none}
main .cs .od-trash svg{width:20px;height:20px}
main .cs .od-s[data-s="det"] .od-back{color:#141414!important}
main .cs .od-dname{margin:14px 0 0!important;padding:0 14px;font:600 17px/1.2 Inter,system-ui,sans-serif!important;color:var(--od-ink)!important}
main .cs .od-ddesc{margin:4px 0 0!important;padding:0 14px;font-size:12px!important;line-height:1.4!important;color:#141414!important}
main .cs .bd-screen .od-more{margin:0 14px!important;padding:0!important;border:0!important;background:none!important;color:var(--od)!important;font:400 12px/1.5 Inter,system-ui,sans-serif!important;cursor:pointer}
main .cs .od-h{margin:16px 0 0!important;padding:0 14px;font-size:14px!important;font-weight:600;color:var(--od-ink)!important}
main .cs .od-sub{margin:2px 0 0!important;padding:0 14px;font-size:10.5px!important;line-height:1.4!important;color:var(--bd-weak)!important}
main .cs .od-units{display:flex;gap:8px;padding:10px 14px 0}
main .cs .od-dl{margin:8px 14px 24px!important;padding:0 12px;border:1px solid var(--bd-line);background:#fff}
main .cs .od-dl div{padding:8px 0;border-bottom:1px solid var(--bd-line)}
main .cs .od-dl div:last-child{border-bottom:0}
main .cs .od-dl dt{font-size:10.5px;color:var(--bd-weak)}
main .cs .od-dl dd{margin:1px 0 0!important;font-size:12.5px;color:#141414}
main .cs .od-s[data-s="fin"]{padding-bottom:0}
main .cs .od-label{margin:14px 0 0!important;padding:0 14px;font-size:12px!important;font-weight:600;color:#141414!important}
main .cs .od-date{position:relative;display:flex;align-items:center;justify-content:space-between;height:38px;margin:6px 14px 0;padding:0 10px;border:1px solid var(--bd-line);background:#fff;color:var(--bd-weak);font-size:12.5px;cursor:pointer}
main .cs .od-date.set{color:#141414}
main .cs .od-date.bad{border-color:#e5484d}
main .cs .od-date svg{width:19px;height:19px;color:var(--od)}
main .cs .od-date input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
main .cs .od-err{margin:4px 0 0!important;padding:0 14px;font-size:10.5px!important;color:#e5484d!important}
main .cs .od-err[hidden]{display:none}
main .cs .od-com{display:block;width:calc(100% - 28px);margin:6px 14px 0;padding:9px 10px;box-sizing:border-box;border:1px solid var(--bd-line);border-radius:0;background:#fff;color:#141414;font:400 12px/1.4 Inter,system-ui,sans-serif;resize:none;outline:none}
main .cs .od-com:focus{border-color:var(--od)}
main .cs .bd-screen .od-team{display:inline-flex;align-items:center;height:28px;margin:14px 14px 0!important;padding:0 14px!important;border:1.5px solid var(--od)!important;border-radius:99px!important;background:none!important;color:var(--od)!important;font:600 10px/1 Inter,system-ui,sans-serif!important;letter-spacing:.06em;text-transform:uppercase;cursor:pointer}
main .cs .od-ph{margin:18px 0 6px!important;padding:0 14px;font-size:15px!important;font-weight:400;color:#141414!important}
main .cs .od-prow{display:flex;align-items:center;justify-content:space-between;padding:0 14px 6px}
main .cs .bd-screen .od-prow button{display:inline-flex;align-items:center;gap:5px;padding:0!important;border:0!important;background:none!important;color:var(--od)!important;font:600 11px/1 Inter,system-ui,sans-serif!important;letter-spacing:.05em;text-transform:uppercase;cursor:pointer}
main .cs .od-prow svg{width:16px;height:16px}
main .cs .bd-screen .od-flist>li{display:grid!important;grid-template-columns:22px minmax(0,1fr) auto;gap:8px;align-items:start;padding:9px 14px!important;border-bottom:1px solid var(--bd-line);font-size:12px}
main .cs .od-flist b{font-size:12.5px;text-align:right}
main .cs .od-flist small{display:block;font-size:10.5px;color:var(--bd-weak)}
main .cs .bd-screen .od-flist>li.od-empty{display:block!important;color:var(--bd-weak)}
main .cs .bd-screen .od-order{position:sticky;bottom:24px;display:flex;align-items:center;justify-content:center;width:calc(100% - 28px);height:40px;margin:18px 14px 24px!important;padding:0!important;border:0!important;border-radius:99px!important;background:var(--od)!important;color:#fff!important;font:600 11.5px/1 Inter,system-ui,sans-serif!important;letter-spacing:.06em;text-transform:uppercase;box-shadow:0 8px 18px -8px rgba(61,107,255,.6);cursor:pointer}
main .cs .bd-screen .od-order:disabled{opacity:.45;cursor:default;box-shadow:none}
main .cs .od-toast{position:absolute;left:50%;bottom:70px;z-index:6;width:max-content;max-width:calc(100% - 24px);margin:0!important;padding:8px 12px;border-radius:10px;background:rgba(20,20,26,.92);color:#fff!important;font:500 11.5px/1.35 Inter,system-ui,sans-serif!important;text-align:center;opacity:0;transform:translate(-50%,6px);transition:opacity .2s,transform .2s;pointer-events:none}
main .cs .od-toast.on{opacity:1;transform:translate(-50%,0)}
main .cs .od-alert{position:absolute;inset:0;z-index:8;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.35)}
main .cs .od-alert[hidden]{display:none}
main .cs .od-abox{display:flex;flex-direction:column;width:220px;padding-top:16px;border-radius:13px;background:rgba(242,242,242,.98);text-align:center}
main .cs .od-at{padding:0 14px;font-size:13.5px;font-weight:600;color:#000}
main .cs .od-am{margin:3px 14px 14px;font-size:11.5px;line-height:1.35;color:#222}
main .cs .od-ab{display:flex;border-top:1px solid #cfcfcf}
main .cs .bd-screen .od-ab button{flex:1;height:40px;padding:0!important;border:0!important;background:none!important;color:#0a84ff!important;font:400 14px/1 -apple-system,Inter,system-ui,sans-serif!important;cursor:pointer}
main .cs .bd-screen .od-ab button+button{border-left:1px solid #cfcfcf!important}
main .cs .bd-screen .od-ab .od-red{color:#ff3b30!important;font-weight:600!important}
main .cs .bd[data-ver="before"] .bd-old .od-dev{display:block!important}
/* After: the screen dots sit halfway between the phone and the bottom edge of the box */
main .cs .bd-dev .bd-ndots{bottom:calc(-.5 * (34px + clamp(28px,4vw,48px)) - 4.5px)!important}
@media (max-width:600px){main .cs .bd-dev .bd-ndots{bottom:calc(-.5 * (34px + 64px) - 4.5px)!important}}
/* old app: the checkout arrow always floats in the bottom right corner of New order */
main .cs .bd-screen .od-fab{position:absolute;right:14px;bottom:26px;z-index:5;margin:0!important}
main .cs .od-screen:not([data-s="guide"]) .od-fab{display:none}
main .cs .od-s[data-s="guide"]{padding-bottom:80px}
main .cs .bd-screen .od-team[aria-pressed="true"]{gap:5px;background:var(--od)!important;color:#fff!important}
main .cs .od-team svg{width:13px;height:13px}
/* old app: Team order with a circled check; the old Order sent splash */
main .cs .od-team svg{width:14px!important;height:14px!important}
main .cs .od-sent{position:absolute;inset:0;z-index:7;background:#1e0f78;opacity:0;transition:opacity .25s ease;cursor:pointer}
main .cs .od-sent[hidden]{display:none}
main .cs .od-sent.on{opacity:1}
main .cs .od-sent.out{opacity:0;transition:opacity .35s ease}
main .cs .od-sent img{display:block!important;width:100%!important;height:100%!important;object-fit:cover;opacity:1!important}
/* old app calendar: the After sheet, in old Choco blue */
main .cs .od-screen{--bd-pri:#3867ff;--bd-name:#18003e}
main .cs .od-cal .bd-sheet{top:44px;padding-top:16px;display:flex;flex-direction:column}
main .cs .od-date input{pointer-events:none}
main .cs .od-q small{display:none}
/* old app alerts: the same dialog as Remove in After (white box, outlined Cancel, red action) */
main .cs .od-alert{padding:0 22px}
main .cs .od-abox{width:100%;padding:18px 18px 14px;border-radius:0;background:#fff;text-align:left;box-shadow:0 12px 30px -12px rgba(0,0,0,.5)}
main .cs .od-at{padding:0;font-size:14px;font-weight:600;line-height:1.3;color:#141414}
main .cs .od-am{margin:4px 0 14px;font-size:11.5px;line-height:1.4;color:#555}
main .cs .od-ab{justify-content:flex-end;gap:10px;border-top:0}
main .cs .bd-screen .od-ab button{flex:none;height:26px;padding:0 14px!important;border:1.2px solid var(--od)!important;border-radius:99px!important;background:none!important;color:var(--od)!important;font:600 10.5px/1 Inter,system-ui,sans-serif!important;letter-spacing:.08em;text-transform:uppercase}
main .cs .bd-screen .od-ab button+button{border-left:1.2px solid var(--od)!important}
main .cs .bd-screen .od-ab .od-red{border-color:#f25a43!important;background:#f25a43!important;color:#fff!important;font-weight:600!important}
/* old catalog: rows on the cream background, thin grey chevrons like the old app */
main .cs .bd-screen .od-catlist button{background:none!important;height:46px}
main .cs .od-catlist svg{width:15px!important;height:15px!important;color:#a3a3a3}
main .cs .od-catlist svg path,main .cs .od-link svg path{stroke-width:1.7}
main .cs .od-link svg{width:15px!important;height:15px!important}
main .cs .od-title{font-size:17px!important}
/* old app: nothing found shows the crate from After, in old Choco blue */
main .cs .od-none{display:flex;flex-direction:column;align-items:center;padding:16px 24px 24px!important;text-align:center}
main .cs .od-none[hidden]{display:none}
main .cs .od-none b{display:block;font-size:13.5px;font-weight:600;color:var(--od-ink)}
main .cs .od-none span{display:block;margin-top:3px;font-size:11.5px;line-height:1.4;color:var(--bd-weak)}
main .cs .od-catlist li[hidden]{display:none}
main .cs .od-clist>li{cursor:pointer}
/* old app: clear the search */
main .cs .bd-screen .od-sx{display:flex;align-items:center;justify-content:center;flex:none;width:18px;height:18px;padding:0!important;border:0!important;background:none!important;color:#b5b5b5!important;cursor:pointer}
main .cs .od-sx[hidden]{display:none}
main .cs .od-sx svg{width:16px;height:16px}
main .cs .bd-screen .od-order[hidden]{display:none!important}
main .cs .bd-screen .od-flist>li.od-empty{border-bottom:0}
main .cs .bd-screen .od-addlink{padding:0!important;border:0!important;background:none!important;color:var(--od)!important;font:500 12.5px/1.4 Inter,system-ui,sans-serif!important;cursor:pointer}
/* Choco mobile: no divider under "Much more behind the scenes" */
main .cs .csec:has(a[href*="writing/error-handling"]) + .csec{border-top:0}

/* roles: Allowed / Not allowed as green and red badges, a stronger icon, and one line on what the role is for */
main .cs .ur-desc{margin:2px 0 6px!important;font-size:15px!important;line-height:1.45;color:var(--fg)!important}
main .cs .ur-i{background:color-mix(in srgb,var(--ur-ok) 24%,transparent)}
main .cs .ur-list li.no .ur-i{background:color-mix(in srgb,var(--ur-no) 20%,transparent)}
main .cs .ur-s{padding:3px 9px;border-radius:99px;background:color-mix(in srgb,var(--ur-ok) 16%,transparent);color:var(--ur-ok);font-weight:600;transition:background .25s,color .25s}
main .cs .ur-list li.no .ur-s{background:color-mix(in srgb,var(--ur-no) 14%,transparent);color:var(--ur-no)}

/* roles in two groups: Restaurant and Supplier, each its own switch with a label; only the active group's thumb shows */
main .cs .ur{--ur-part:#b7791f}
:root[data-theme=dark] main .cs .ur{--ur-part:#f2b84b}
main .cs .ur-tabs{display:flex;flex-wrap:wrap;justify-content:center;align-items:flex-end;gap:14px 20px;margin-bottom:20px}
main .cs .ur-grp{display:flex;flex-direction:column;align-items:center;gap:8px}
main .cs .ur-gl{margin:0!important;font:600 11px/1.2 var(--body)!important;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)!important}
main .cs .ur-tabs .ur-seg{display:grid;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:1fr;min-width:0;margin-bottom:0}
main .cs .ur-seg .ur-thumb{opacity:0;transition:transform .3s cubic-bezier(.22,1,.36,1),width .3s cubic-bezier(.22,1,.36,1),opacity .2s}
main .cs .ur-seg.on .ur-thumb{opacity:1}
main .cs .ur-p{opacity:0;transform:scale(.5)}
main .cs .ur-list li.part .ur-i{background:color-mix(in srgb,var(--ur-part) 22%,transparent);color:var(--ur-part)}
main .cs .ur-list li.part .ur-y{opacity:0;transform:scale(.5)}
main .cs .ur-list li.part .ur-p{opacity:1;transform:none}
main .cs .ur-list li.part .ur-s{background:color-mix(in srgb,var(--ur-part) 16%,transparent);color:var(--ur-part)}
main .cs .ur-note{display:block;font-size:12.5px;line-height:1.35;color:var(--muted)}
main .cs .ur-note:empty{display:none}
@media (max-width:640px){main .cs .ur-grp{width:100%}main .cs .ur-tabs .ur-seg{width:100%}}
main .cs .ur-box .ur-desc{margin:0 0 4px!important}
main .cs .ur-box .ur-count{margin:0 0 4px!important}
main .cs .ur-list ul>li:last-child{border-bottom:0}

/* Leaf opportunity board: Try it / Walkthrough, without the Choco blue box */
main .cs .lo-tour{-webkit-user-select:none;user-select:none}
main .cs .lo-tour .tr-box{padding:0;background:none;border-radius:0}
main .cs .lo-tour .tr-stage{box-shadow:none;border-radius:8px}
main .cs .lo-tour .tr-screen{border:1px solid var(--line);border-radius:8px}
main .cs .lo-tour .tr-screen>img{margin:0;border:0;border-radius:0;max-width:none;width:100%}
/* walkthrough: the same map as the demo, every route drawn */
main .cs .lo-map{position:absolute;left:63.125%;top:17.284%;width:36.875%;height:82.716%;pointer-events:none}
main .cs .lo-map::before{content:"";position:absolute;left:0;top:0;bottom:0;width:1px;background:#e0e0e0}
main .cs .lo-map img{display:block;width:100%;height:100%;margin:0;border:0;border-radius:0;max-width:none}
main .cs .lo-map svg{position:absolute;inset:0;width:100%;height:100%}
main .cs .lo-map path{fill:none;stroke:#3b82e6;stroke-width:2.6;stroke-linecap:round}
main .cs .lo-map circle{fill:#7db5f8;stroke:#fff;stroke-width:1.2}
main .cs .lo-tour .live-ui.lb{margin:0!important;padding:0!important;background:none!important;border-radius:0}
.tour.lo-tour[data-k="try"] .ab-thumb{transform:translateX(100%)}
/* Leaf board (Try it): a 1440x810 canvas scaled to fit; tabs, hover actions, favorites, trip modal, quotes */
main .cs .lb-fit{position:relative;aspect-ratio:1440/810;overflow:hidden}
main .cs .lb-c{position:absolute;top:0;left:0;width:1440px;height:810px;transform-origin:0 0;transform:scale(var(--k,.5));font-family:"Avenir Next",Avenir,"Nunito Sans",system-ui,sans-serif;color:rgba(0,0,0,.87)}
main .cs .lb-c img{margin:0;border:0;border-radius:0;max-width:none}
main .cs .lb-shell{position:absolute;inset:0;width:1440px;height:810px}
main .cs .lb-tabs{position:absolute;left:70px;top:71px;height:70px;display:flex}
main .cs .lb-tabs button{position:relative;width:130px;height:70px;margin:0;padding:0;border:0;background:none;font-weight:500;font-size:12px;line-height:16px;font-family:inherit;letter-spacing:.4px;text-transform:uppercase;color:rgba(0,0,0,.38);cursor:pointer;transition:color .2s}
main .cs .lb-tabs button:hover{color:rgba(0,0,0,.6)}
main .cs .lb-tabs button[aria-selected="true"]{color:#183b5a}
main .cs .lb-tabs button:focus-visible{outline:2px solid #183b5a;outline-offset:-4px}
main .cs .lb-n{position:absolute;top:18px;margin-left:4px;min-width:16px;height:16px;padding:0 4px;border-radius:8px;background:#183b5a;color:#fff;font-weight:600;font-size:10px;line-height:16px;font-family:inherit;font-style:normal;letter-spacing:0;display:none;transform-origin:0 50%}
main .cs .lb-n.has{display:inline-block}
main .cs .lb-n.pop{animation:lb-pop .45s ease}
@keyframes lb-pop{40%{transform:scale(1.35)}}
main .cs .lb-ink{position:absolute;left:0;top:68px;width:130px;height:2px;background:#183b5a;transition:transform .3s cubic-bezier(.4,0,.2,1)}
main .cs .lb[data-tab="fav"] .lb-ink{transform:translateX(130px)}
main .cs .lb[data-tab="quotes"] .lb-ink{transform:translateX(260px)}
main .cs .lb-map{position:absolute;left:909px;top:140px;width:531px;height:670px;opacity:0;transition:opacity .25s ease;pointer-events:none}
main .cs .lb.map .lb-map{opacity:1}
main .cs .lb-map img{display:block;width:531px;height:670px}
main .cs .lb-map::before{content:"";position:absolute;left:0;top:0;bottom:0;z-index:1;width:1px;background:#e0e0e0}
main .cs .lb-map svg{position:absolute;inset:0;width:100%;height:100%}
main .cs .lb-map g{opacity:0}
main .cs .lb-map path{fill:none;stroke:#3b82e6;stroke-width:2.6;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:1}
main .cs .lb-map circle{fill:#7db5f8;stroke:#fff;stroke-width:1.2;opacity:0;transition:opacity .2s ease}
main .cs .lb-map g.g1 path{stroke:#3e8c40}main .cs .lb-map g.g2 path{stroke:#7bc67c}main .cs .lb-map g.g1 circle{fill:#6fb071}main .cs .lb-map g.g2 circle{fill:#a9dcaa}main .cs .lb-map path.g1{stroke:#3e8c40}main .cs .lb-map path.g2{stroke:#7bc67c}main .cs .lb-map circle.g1{fill:#6fb071}main .cs .lb-map circle.g2{fill:#a9dcaa}
main .cs .lb-map g.on{opacity:1}
main .cs .lb-map g.on path{stroke-dashoffset:0;transition:stroke-dashoffset .9s cubic-bezier(.4,0,.2,1)}
main .cs .lb-map g.on circle{opacity:1;transition-delay:.15s}
main .cs .lb-list{position:absolute;left:70px;top:206px;width:839px;height:604px;padding:16px;box-sizing:border-box;display:flex;flex-direction:column;gap:12px;overflow:hidden auto;overscroll-behavior:contain;scrollbar-width:thin}
main .cs .lb-card{position:relative;flex:none;width:808px;height:100px;border-radius:4px;cursor:pointer;outline:none}
main .cs .lb-card>img{position:absolute;left:-6px;top:-4px;width:820px;height:110px;pointer-events:none}
main .cs .lb-card:focus-visible{box-shadow:0 0 0 2px #183b5a}
main .cs .lb-tint{position:absolute;inset:0;border-radius:4px;background:#f5f5f5;mix-blend-mode:multiply;opacity:0}
main .cs .lb-q,main .cs .lb-acts{position:absolute;left:560px;top:4px;width:210px;height:92px;display:none;align-items:center}
main .cs .lb-q{background:#fff;flex-direction:column;align-items:flex-start;justify-content:center;gap:8px;padding-left:24px;box-sizing:border-box}
main .cs .lb-card.quoted .lb-q{display:flex}
main .cs .lb-chip{display:inline-flex;align-items:center;gap:6px;font-size:12px;line-height:16px}
main .cs .lb-chip svg{width:16px;height:16px;fill:#4a90e2}
main .cs .lb-qs{font-size:14px;color:rgba(0,0,0,.6)}
main .cs .lb-acts{background:#f5f5f5;gap:8px;padding-left:53px;box-sizing:border-box}
main .cs .lb-card:hover .lb-tint,main .cs .lb-card:has(:focus-visible) .lb-tint,main .cs .lb-card:focus-visible .lb-tint{opacity:1}
main .cs .lb-card:hover .lb-acts,main .cs .lb-card:has(:focus-visible) .lb-acts,main .cs .lb-card:focus-visible .lb-acts{display:flex}
main .cs .lb-a{position:relative;width:40px;height:40px;margin:0;padding:0;border:0;border-radius:30px;background:#e5e5e5;display:grid;place-items:center;cursor:pointer;transition:background .15s}
main .cs .lb-a svg{width:16px;height:16px;fill:rgba(0,0,0,.54);transition:fill .15s}
main .cs .lb-a:hover,main .cs .lb-a:focus-visible{background:#fff;outline:none}
main .cs .lb-star:hover svg,main .cs .lb-star:focus-visible svg,main .cs .lb-card.fav .lb-star svg{fill:#ff9800}
main .cs .lb-tip{position:absolute;left:50%;bottom:calc(100% + 11px);transform:translateX(-50%);padding:8px 16px;border-radius:4px;background:#183b5a;color:#fff;font-size:12px;line-height:16px;white-space:nowrap;pointer-events:none;opacity:0;transition:opacity .15s}
main .cs .lb-tip::after{content:"";position:absolute;left:50%;top:100%;margin-left:-4px;border:4px solid transparent;border-top-color:#183b5a}
main .cs .lb-a:hover .lb-tip,main .cs .lb-a:focus-visible .lb-tip,main .cs .lb-tb:hover .lb-tip,main .cs .lb-tb:focus-visible .lb-tip{opacity:1}
main .cs .lb-na{position:absolute;z-index:2;border-radius:4px;cursor:default;outline:none}
main .cs .lb-na.tip .lb-tip,main .cs .lb-na:focus-visible .lb-tip{opacity:1}
main .cs .lb-na:focus-visible{box-shadow:0 0 0 2px #29b5e8}
main .cs .lb-tip.rt{left:calc(100% + 6px);bottom:auto;top:50%;transform:translateY(-50%)}
main .cs .lb-tip.rt::after{left:auto;right:100%;top:50%;margin:-4px 0 0;border-top-color:transparent;border-right-color:#183b5a}
main .cs .lb-tip.dn{bottom:auto;top:calc(100% + 11px)}
main .cs .lb-tip.dn::after{top:auto;bottom:100%;border-top-color:transparent;border-bottom-color:#183b5a}
main .cs .lb-tb{position:absolute;top:158px;width:48px;height:30px;margin:0;padding:0;border:0;border-radius:4px;background:transparent;cursor:pointer;transition:background .15s}
main .cs .lb-tb:hover{background:rgba(24,59,90,.06)}
main .cs .lb-tb:focus-visible{outline:2px solid #183b5a;outline-offset:2px}
main .cs .lb[data-tab="fav"] .lb-card:not(.fav),main .cs .lb[data-tab="quotes"] .lb-card:not(.quoted){display:none}
main .cs .lb-empty{display:none;margin:200px auto 0!important;text-align:center;font-size:14px!important;line-height:1.5!important;color:rgba(0,0,0,.54)!important}
main .cs .lb-empty b{display:block;margin-bottom:4px;font-size:16px;font-weight:600;color:#183b5a}
main .cs .lb-empty.on{display:block}
/* Quotes tab: quote cards from Figma (opportunity on top, the quote row under it) */
main .cs .lb:not([data-tab="quotes"]) .lb-qc{display:none}
main .cs .lb-card.lb-qc{height:154px}
main .cs .lb-qa{position:absolute;left:0;right:0;top:100px;height:54px;box-sizing:border-box;background:#fff;border-top:1px solid #eee;border-radius:0 0 4px 4px;box-shadow:0 2px 3px rgba(0,0,0,.12);font-size:13px;line-height:16px;color:rgba(0,0,0,.87)}
main .cs .lb-qa>span{position:absolute;top:50%;transform:translateY(-50%);display:flex;align-items:center;gap:8px}
main .cs .lb-qa-st{left:22px}
main .cs .lb-qa-st svg{width:16px;height:16px;fill:#4a90e2;flex:none}
main .cs .lb-qa-st small{display:block;margin-top:2px;font-size:10px;line-height:12px;color:rgba(0,0,0,.54)}
main .cs .lb-qa-c{left:165px}
main .cs .lb-qa-c i{width:12px;height:12px;border-radius:1px;background:#3e8c40}
main .cs .lb-qa-c i.g2{background:#7bc67c}
main .cs .lb-qa-r{left:354px;font-size:12px;font-weight:500}
main .cs .lb-qa-r b{font-size:14px;font-weight:400}
main .cs .lb-qa-ch{left:569px}
main .cs .lb-qa-ch.no{color:rgba(0,0,0,.38)}
main .cs .lb-qx{right:18px;height:36px;padding:0 20px 0 14px;border-radius:18px;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.2);gap:8px!important;cursor:default;outline:none}
main .cs .lb-qx svg{width:18px;height:18px;fill:rgba(0,0,0,.54)}
main .cs .lb-qx .lb-tip{bottom:calc(100% + 11px);left:auto;right:0;transform:none}main .cs .lb-qx .lb-tip::after{left:auto;right:44px}
main .cs .lb-qx.tip .lb-tip,main .cs .lb-qx:hover .lb-tip,main .cs .lb-qx:focus-visible .lb-tip{opacity:1}
main .cs .lb-qx:focus-visible{box-shadow:0 0 0 2px #29b5e8}

main .cs .lb-modal{position:absolute;inset:0;z-index:5;display:flex;align-items:center;justify-content:center;background:rgba(10,20,35,.45);animation:lb-fade .2s ease}
main .cs .lb-modal[hidden]{display:none}
@keyframes lb-fade{from{opacity:0}}
main .cs .lb-dlg{width:940px;border-radius:8px;background:#fff;box-shadow:0 24px 60px -20px rgba(0,0,0,.5);overflow:hidden;animation:lb-up .25s ease}
@keyframes lb-up{from{transform:translateY(12px)}}
main .cs .lb-mh{display:flex;align-items:center;justify-content:space-between;height:56px;padding:0 12px 0 24px;border-bottom:1px solid #e5e5e5}
main .cs .lb-mh b{font-size:16px;font-weight:600;color:#183b5a}
main .cs .lb-x{width:40px;height:40px;margin:0;padding:0;border:0;border-radius:20px;background:none;font-size:26px;line-height:1;color:rgba(0,0,0,.54);cursor:pointer}
main .cs .lb-x:hover{background:#f5f5f5}
main .cs .lb-mb{position:relative;height:646px;color:rgba(0,0,0,.87)}
main .cs .lt2-tabs{position:absolute;left:0;top:0;z-index:2;width:380px;height:56px;display:flex;background:#fff;border-bottom:1px solid #e5e5e5;box-sizing:border-box;box-shadow:1px 0 0 #d6d6d6,4px 0 10px -4px rgba(0,0,0,.14)}
main .cs .lt2-tabs button{flex:1;margin:0;padding:0;border:0;background:none;font-family:inherit;font-size:12px;font-weight:500;letter-spacing:.4px;text-transform:uppercase;color:rgba(0,0,0,.38);cursor:pointer}
main .cs .lt2-tabs button:hover{color:rgba(0,0,0,.6)}
main .cs .lt2-tabs button[aria-selected="true"]{color:#183b5a}
main .cs .lt2-tabs button:focus-visible{outline:2px solid #183b5a;outline-offset:-4px}
main .cs .lt2-ink{position:absolute;left:0;bottom:-1px;width:33.333%;height:2px;background:#183b5a;transition:transform .25s ease}
main .cs .lb-dlg[data-t="schedule"] .lt2-ink{transform:translateX(100%)}
main .cs .lb-dlg[data-t="details"] .lt2-ink{transform:translateX(200%)}
main .cs .lt2{display:grid;grid-template-columns:380px 560px;height:646px}
main .cs .lt2[hidden]{display:none}
main .cs .lt2-l{position:relative;z-index:1;padding-top:72px!important;box-shadow:1px 0 0 #d6d6d6,4px 0 10px -4px rgba(0,0,0,.14);padding:56px 20px 0;background:#f7f7f7;display:flex;flex-direction:column;overflow:visible}
main .cs .lt2-leg{flex:none;height:130px;box-sizing:border-box;display:grid;grid-template-columns:24px 1fr 44px;gap:14px;padding:14px 16px 14px 14px;border-radius:4px;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.12)}
main .cs .lt2-rail{display:flex;flex-direction:column;align-items:center}
main .cs .lt2-n{width:22px;height:22px;border-radius:50%;box-shadow:0 0 0 2px #fff,0 1px 3px rgba(0,0,0,.25);color:#fff;font-size:12px;font-weight:700;line-height:22px;text-align:center}
main .cs .lt2-rl{position:relative;flex:1;width:4px;margin:6px 0;border-radius:2px;background:var(--c);opacity:.75}
main .cs .lt2-rl.pl{width:10px;border-radius:0;opacity:1;background:linear-gradient(90deg,var(--p,var(--c)) 0 2px,#fff 2px 4px,var(--p,var(--c)) 4px 6px,#fff 6px 8px,var(--p,var(--c)) 8px)}
main .cs .lt2-sw{position:absolute;left:50%;top:50%;z-index:3;width:22px;height:22px;margin:-11px 0 0 -11px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);display:grid;place-items:center;cursor:default;outline:none}
main .cs .lt2-sw>svg{width:14px;height:14px;max-width:none;margin:0;fill:#555}
main .cs .lt2-sw:hover,main .cs .lt2-sw:focus-visible{box-shadow:0 0 0 2px #29b5e8}
main .cs .lt2-pop{position:absolute;left:32px;top:50%;transform:translateY(-50%);width:max-content;padding:10px 14px;border-radius:4px;background:#183b5a;color:#fff;font-size:12px;line-height:18px;display:flex;flex-direction:column;opacity:0;visibility:hidden;transition:opacity .15s,visibility 0s .15s;pointer-events:none;box-shadow:0 8px 24px -8px rgba(0,0,0,.4)}
main .cs .lt2-pop b{margin-bottom:4px;font-size:12px;font-weight:600;color:#9fdcf5}
main .cs .lt2-pop::before{content:"";position:absolute;right:100%;top:50%;margin-top:-5px;border:5px solid transparent;border-right-color:#183b5a}
main .cs .lt2-sw:hover .lt2-pop,main .cs .lt2-sw:focus-visible .lt2-pop{opacity:1;visibility:visible;transition:opacity .15s}
main .cs .lt2-tx{display:flex;flex-direction:column;justify-content:space-between;min-width:0}
main .cs .lt2-tx b{font-size:15px;font-weight:500;line-height:20px;white-space:nowrap}
main .cs .lt2-s{display:flex;align-items:center;gap:6px;font-size:12px;line-height:16px;color:rgba(0,0,0,.6)}
main .cs .lt2-s svg{width:14px;height:14px;fill:currentColor}
main .cs .lt2-mi{display:flex;align-items:center;gap:12px;font-size:12px;color:rgba(0,0,0,.4)}
main .cs .lt2-mi i{font-style:normal;font-size:13px;color:#2a8fd0}
main .cs .lt2-mi em{flex:1;height:1px;background:#e0e0e0}
main .cs .lt2-dh{flex:none;height:40px;margin:0!important;font-size:12px!important;line-height:40px!important;text-align:center;color:rgba(0,0,0,.54)!important}
main .cs .lt2-tot{flex:none;height:64px;margin:auto -20px 0;box-sizing:border-box;border-top:1px solid #e5e5e5;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}
main .cs .lt2-tot b{font-size:12px;font-weight:600;letter-spacing:.6px;text-transform:uppercase;color:#183b5a}
main .cs .lt2-tot span{font-size:13px;color:rgba(0,0,0,.7)}
main .cs .lt2-tr.lt2-ft{height:64px;margin-top:auto;border-top:1px solid #e5e5e5;border-bottom:0;font-weight:400}
main .cs .lt2-co{position:relative;align-self:center;width:44px;height:44px;border-radius:50%;cursor:default;outline:none}
main .cs .lt2-co>svg{display:block;width:44px;height:44px;max-width:none;margin:0;font-family:inherit;filter:grayscale(.8) opacity(.75);transition:filter .2s}
main .cs .lt2-co:hover>svg,main .cs .lt2-co:focus-visible>svg{filter:none}
main .cs .lt2-co:hover>svg,main .cs .lt2-co:focus-visible>svg{box-shadow:0 0 0 3px rgba(24,59,90,.15);border-radius:50%}
main .cs .lt2-cot{position:absolute;left:50%;transform:translateX(-50%);bottom:calc(100% + 9px);padding:6px 12px;border-radius:4px;background:#183b5a;color:#fff;font-size:12px;line-height:16px;white-space:nowrap;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .15s,visibility 0s .15s;z-index:3}
main .cs .lt2-cot::after{content:"";position:absolute;left:50%;margin-left:-4px;top:100%;border:4px solid transparent;border-top-color:#183b5a}
main .cs .lt2-co:hover .lt2-cot,main .cs .lt2-co:focus-visible .lt2-cot{opacity:1;visibility:visible;transition:opacity .15s}
main .cs .lt2-bld{align-self:center;width:44px;height:44px;border-radius:50%;background:#bdbdbd;display:grid;place-items:center}
main .cs .lt2-bld svg{width:22px;height:22px;fill:#f5f5f5}
main .cs .lt2-r{position:relative;overflow:hidden}
main .cs .lt2-p{display:none;height:100%}
main .cs .lb-dlg[data-t="route"] .lt2-p[data-t="route"],main .cs .lb-dlg[data-t="schedule"] .lt2-p[data-t="schedule"],main .cs .lb-dlg[data-t="details"] .lt2-p[data-t="details"]{display:block}
main .cs .lt2-map{display:block;width:560px;height:646px;margin:0}
main .cs .lt2-lab{fill:#333;font-family:inherit;font-weight:500}
main .cs .lt2-grid{height:100%;overflow:auto;background:#fafafa;display:flex;flex-direction:column}
main .cs .lt2-tr{flex:none;min-width:calc(var(--n) * 104px);display:grid;grid-template-columns:repeat(var(--n),minmax(104px,1fr));height:170px;border-bottom:1px solid #eee;box-sizing:border-box}
main .cs .lt2-hd{position:sticky;top:0;z-index:1;height:56px;background:#fff;border-bottom:1px solid #e5e5e5}
main .cs .lt2-th,main .cs .lt2-td{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;border-left:1px solid #eee}
main .cs .lt2-th:first-child,main .cs .lt2-td:first-child{border-left:0}
main .cs .lt2-th{gap:2px}
main .cs .lt2-th b{font-size:14px;line-height:18px;font-weight:500}
main .cs .lt2-th span{font-size:12px;line-height:15px;color:rgba(0,0,0,.54)}
main .cs .lt2-td{font-size:15px}
main .cs .lt2-day{width:40px;height:40px;border-radius:50%;background:#e8f1fb;color:#4a90e2;font-size:14px;line-height:40px;text-align:center}
main .cs .lt2-vol{width:20px;height:20px}
main .cs .lt2-pin{width:24px;height:24px;fill:#90c2f0;color:#ef5350}
main .cs .lt2-pin.out{fill:#ef5350}
main .cs .lb-mf{display:flex;justify-content:flex-end;padding:12px 24px;border-top:1px solid #e5e5e5}
main .cs .lb-quote{height:40px;margin:0;padding:0 24px;border:0;border-radius:4px;background:#183b5a;color:#fff;font-weight:600;font-size:13px;line-height:40px;font-family:inherit;letter-spacing:.4px;text-transform:uppercase;cursor:pointer}
main .cs .lb-quote:disabled{background:#e5e5e5;color:rgba(0,0,0,.54);cursor:default}
@media (prefers-reduced-motion:reduce){main .cs .lb-map g.on path,main .cs .lb-ink{transition:none}main .cs .lb-modal,main .cs .lb-dlg,main .cs .lb-n.pop{animation:none}}

/* Leaf trip view on its own (shared language section), the same component as the demo's trip details */
main .cs .live-ui.lt-solo{margin:32px 0!important;padding:0!important;background:none!important;-webkit-user-select:none;user-select:none}
main .cs .lt-fit{position:relative;aspect-ratio:940/646}
main .cs .lt-fit>.lb-dlg{position:absolute;left:0;top:0;transform-origin:0 0;transform:scale(var(--k,.6));animation:none;box-shadow:0 1px 3px rgba(0,0,0,.12),0 12px 32px -16px rgba(0,0,0,.35)}
main .cs .lt-legend{display:flex;flex-wrap:wrap;gap:8px 28px;margin:16px 0 0!important;padding:0!important;list-style:none}
main .cs .lt-legend li{display:flex;align-items:center;gap:8px;margin:0!important;padding:0!important;font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
main .cs .lt-legend li::before{content:none!important}
main .cs .lt-legend svg{width:18px;height:18px;fill:currentColor;flex:none}
main .cs .lo-admin figcaption [data-k]{display:none}
main .cs .lo-admin[data-k="groups"] figcaption [data-k="groups"],main .cs .lo-admin[data-k="contract"] figcaption [data-k="contract"]{display:inline}
.tour.lo-tour[data-k="contract"] .ab-thumb{transform:translateX(100%)}
main .cs .lb-qt{position:relative;width:130px;height:70px;display:flex;align-items:center;justify-content:center;font-weight:500;font-size:12px;line-height:16px;letter-spacing:.4px;text-transform:uppercase;color:rgba(0,0,0,.38);cursor:default}
main .cs .lb-quote{position:relative;display:inline-block;cursor:default}
main .cs .lb-quote .lb-tip{text-transform:none;letter-spacing:0;font-weight:400}
main .cs .lb-quote.tip .lb-tip,main .cs .lb-quote:focus-visible .lb-tip{opacity:1}

/* TR tiles: clean cut outs (phone in hand pinned to the bottom so the wrist runs off the edge; terminal with its stand at its own length, pinned to the bottom so the neck never stretches) on the flat tile colour, no baked in gray shading */
html a.pcard:is(#_,[href*="work/tr-joint"]) .pc-media img{content:url(img/site-thumb/tr-hand-clean.webp)!important;inset:auto!important;left:41.3%!important;top:auto!important;bottom:-5.5%!important;width:73.6%!important;height:auto!important;object-fit:contain!important;transform:none!important}
html a.pcard:is(#_,[href*="work/tr-web"]) .pc-media img{content:url(img/site-thumb/tr-web-terminal-studio.webp)!important;inset:auto!important;left:50.1%!important;top:auto!important;bottom:-7.5%!important;width:49.9%!important;height:auto!important;object-fit:contain!important;transform:none!important;-webkit-mask-image:none!important;mask-image:none!important}
/* card titles and roles: the short phone versions */
.pc-media .pm-m{display:none}
@media (max-width:820px){
  .pc-media .pm-d{display:none}.pc-media .pm-m{display:inline}
  .pc-meta{opacity:.8}
  /* image positions from Figma (Home, "Mobile cards"), in % of the 4:3 phone tile */
  html a.pcard:is(#_,[href*="work/choco-web"]) .pc-media img{inset:auto!important;left:53.8%!important;top:30.8%!important;width:107.6%!important;height:auto!important;max-width:none!important;object-fit:contain!important;transform:none!important}
  html a.pcard:is(#_,[href*="work/tr-joint"]) .pc-media img{left:44.4%!important;top:auto!important;bottom:-7.5%!important;width:55.8%!important}
  html a.pcard:is(#_,[href*="work/tr-web"]) .pc-media img{left:59.8%!important;top:auto!important;bottom:-7.5%!important;width:70.3%!important}
  html a.pcard:is(#_,[href*="work/leaf-platform"]) .pc-media.code-leaf img{inset:auto!important;left:39.9%!important;top:15.5%!important;width:96%!important;height:auto!important;max-width:none!important;transform:none!important}
  html a.pcard:is(#_,[href*="work/choco-web"]) .pc-media .go{background:rgba(255,255,255,.2)}
  [data-theme=dark] a.pcard[href*="work/tr-"] .pc-media .go{background:rgba(22,22,28,.1)}
  html a.pcard:is(#_,[href*="work/leaf-platform"]) .pc-media .go{background:rgba(255,255,255,.1)}
}

/* mobile menu footer: © 2026, Impressum and Datenschutz spread across the width */
.dr-foot{justify-content:space-between;align-items:center;padding-right:24px}
.dr-foot>span{font-size:14px;color:var(--muted)}

/* Filters drawer (Leaf design system, Filter master): 450px panel from the right over a scrim */
main .cs .lb-drw{position:absolute;inset:0;z-index:20}
main .cs .lb-drw[hidden]{display:none}
main .cs .lb-drw-s{position:absolute;inset:0;background:rgba(0,0,0,.32);opacity:0;transition:opacity .25s ease}
main .cs .lb-drw-p{position:absolute;top:0;right:0;bottom:0;width:450px;display:flex;flex-direction:column;background:#fff;box-shadow:0 8px 10px -5px rgba(0,0,0,.2),0 16px 24px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12);transform:translateX(100%);transition:transform .25s cubic-bezier(.4,0,.2,1)}
main .cs .lb-drw.on .lb-drw-s{opacity:1}
main .cs .lb-drw.on .lb-drw-p{transform:none}
main .cs .lb-drw svg{width:24px;height:24px;fill:rgba(0,0,0,.54);flex:none}
main .cs .lb-drw-h{flex:none;height:70px;display:flex;align-items:center;justify-content:space-between;padding:0 12px 0 24px;border-bottom:1px solid #e0e0e0;box-sizing:border-box}
main .cs .lb-drw-h b{font-size:16px;font-weight:500;color:#333}
main .cs .lb-drw-x{width:48px;height:48px;margin:0;padding:0;border:0;border-radius:50%;background:none;display:grid;place-items:center;cursor:pointer}
main .cs .lb-drw-x:hover,main .cs .lb-drw-x:focus-visible{background:rgba(0,0,0,.06);outline:none}
main .cs .lb-drw-b{flex:1;overflow:hidden auto;overscroll-behavior:contain;scrollbar-width:thin;padding:0 24px}
main .cs .lf-sec{padding:24px 0 26px;border-bottom:1px solid #e0e0e0}
main .cs .lf-sec:last-child{border-bottom:0}
main .cs .lf-sec h4{display:flex;align-items:center;justify-content:space-between;margin:0 0 10px;font-size:14px;line-height:20px;font-weight:500;letter-spacing:.15px;text-transform:uppercase;color:rgba(0,0,0,.87)}
main .cs .lf-l{margin:14px 0 8px!important;font-size:14px!important;line-height:20px!important;letter-spacing:.15px;color:rgba(0,0,0,.87)!important;max-width:none!important}
main .cs .lf-in{display:flex;align-items:center;gap:10px;height:40px;padding:0 8px 0 12px;border:1px solid rgba(0,0,0,.23);border-radius:4px;box-sizing:border-box;font-size:14px;letter-spacing:.15px;color:rgba(0,0,0,.54)}
main .cs .lf-in svg{width:20px;height:20px}
main .cs .lf-in>span{flex:1;white-space:nowrap}
main .cs .lf-row{display:flex;gap:16px}
main .cs .lf-row>div{flex:1}
main .cs .lf-row>.lf-r{flex:0 0 100px}
main .cs .lf-2{display:grid;grid-template-columns:205px 1fr}
main .cs .lf-ck{display:flex;align-items:center;gap:10px;height:32px;font-size:14px;letter-spacing:.15px;color:rgba(0,0,0,.54);cursor:pointer}
main .cs .lb-drw-p{color-scheme:light}
main .cs .lf-ck input{appearance:none;-webkit-appearance:none;flex:none;width:18px;height:18px;margin:0 0 0 1px;border:2px solid rgba(0,0,0,.54);border-radius:2px;background:#fff center/14px no-repeat;box-sizing:border-box;cursor:pointer;transition:background-color .12s,border-color .12s}
main .cs .lf-ck input:checked{border-color:#183b5a;background-color:#183b5a;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z' fill='%23fff'/%3E%3C/svg%3E")}
main .cs .lf-ck input[type=radio]{border-radius:50%;background-image:none}
main .cs .lf-ck input[type=radio]:checked{border-color:#4a90e2;background:radial-gradient(circle,#4a90e2 0 4px,#fff 4.5px)}
main .cs .lf-ck input:focus-visible{outline:2px solid #29b5e8;outline-offset:2px}
main .cs .lf-ck input:checked+span{color:rgba(0,0,0,.87)}
main .cs .lb-drw-f{flex:none;height:70px;display:flex;align-items:center;justify-content:space-between;padding:0 24px;border-top:1px solid #e0e0e0;box-sizing:border-box;font-size:14px;letter-spacing:.15px;color:rgba(0,0,0,.38)}
main .cs .lb-drw-go{height:36px;margin:0;padding:0 44px;border:0;border-radius:4px;background:#183b5a;color:#fff;font:inherit;font-size:14px;font-weight:500;letter-spacing:.3px;text-transform:uppercase;line-height:36px;cursor:pointer;transition:background .15s,color .15s}
main .cs .lb-drw-go:disabled{background:rgba(0,0,0,.12);color:rgba(0,0,0,.26);cursor:default}
main .cs .lb-drw-rm{margin:0;padding:0;border:0;background:none;font:inherit;font-size:14px;letter-spacing:.15px;color:#4a90e2;cursor:pointer}
main .cs .lb-drw-rm:disabled{color:rgba(0,0,0,.38);cursor:default}
main .cs .lb-drw-go:focus-visible,main .cs .lb-drw-rm:focus-visible{outline:2px solid #29b5e8;outline-offset:2px}
@media (prefers-reduced-motion:reduce){main .cs .lb-drw-s,main .cs .lb-drw-p{transition:none}}

/* Tablets (600 to 1100px): two tiles per row at 4:3, the shape of the phone tiles, so the Figma phone positions and short texts apply;
   Leaf runs the full row at 2:1 with the laptop on the right */
@media (min-width:600px) and (max-width:1100px){
  .projects>.pcard:not(.big){grid-column:span 3!important}
  .projects>.pcard.big{grid-column:1/-1!important}
  .projects .pcard .pc-media{min-height:0!important;height:auto!important;aspect-ratio:4/3}
  .projects .pcard.big .pc-media{aspect-ratio:2/1}
  .projects .pc-media .pm-d{display:none}.projects .pc-media .pm-m{display:inline}
  .projects .pcard .pc-title{max-width:none}
  html .projects a.pcard:is(#_,[href*="work/choco-web"]) .pc-media img{inset:auto!important;left:53.8%!important;top:30.8%!important;width:107.6%!important;height:auto!important;max-width:none!important;object-fit:contain!important;transform:none!important}
  html .projects a.pcard:is(#_,[href*="work/tr-joint"]) .pc-media img{left:44.4%!important;top:auto!important;bottom:-7.5%!important;width:55.8%!important}
  html .projects a.pcard:is(#_,[href*="work/tr-web"]) .pc-media img{left:59.8%!important;top:auto!important;bottom:-7.5%!important;width:70.3%!important}
  html .projects a.pcard:is(#_,[href*="work/leaf-platform"]) .pc-media.code-leaf img{inset:auto!important;left:39.6%!important;top:3.5%!important;width:68%!important;height:auto!important;max-width:none!important;transform:none!important}
}

/* TR and Choco mobile tiles: the short role at every width (the picture sits next to the meta line) */
a.pcard:is([href*="work/tr-joint-account"],[href*="work/choco-ordering-platform"]) .pc-meta .pm-d{display:none}
a.pcard:is([href*="work/tr-joint-account"],[href*="work/choco-ordering-platform"]) .pc-meta .pm-m{display:inline}

/* Leaf home tile on desktop: the laptop a size smaller, centred in the height, same right edge */
@media (min-width:1101px){
  html .projects a.pcard:is(#_,[href*="work/leaf-platform"]) .pc-media.code-leaf img{inset:auto!important;left:40.2%!important;top:-3.7%!important;width:62%!important;height:auto!important;max-width:none!important;transform:none!important}
}

/* Web Terminal: order states table (three columns, the Outcome table style); stacks on phones with the column names */
main .cs .os3{margin:32px 0}
main .cs .os3 .gr tbody th{width:26%}
main .cs .os3 .gr td:last-child{width:26%}
main .cs .os3 figcaption{margin-top:14px}
@media (max-width:640px){
  main .cs .os3 .gr tbody th{width:auto;margin-bottom:10px;font-size:16px;color:var(--fg)}
  main .cs .os3 .gr td{width:auto!important}
  main .cs .os3 .gr td+td{margin-top:8px}
  main .cs .os3 .gr td::before{content:attr(data-l);display:block;margin-bottom:2px;font:500 11px/1.3 var(--mono,ui-monospace),monospace;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
}

/* Web Terminal, Screeners: comparison (two columns) and the derivatives flow (three steps); site colours, both themes */
main .cs .sc2,main .cs .df3{margin:32px 0}
main .cs .sc-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
main .cs .sc-col{padding:24px;border:1px solid var(--line);border-radius:var(--radius);background:var(--soft)}
main .cs .sc-col.us{border-color:color-mix(in srgb,var(--accent) 45%,var(--line))}
main .cs .sc-h{margin:0 0 14px!important;font:500 12px/1.3 var(--mono,ui-monospace),monospace!important;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)!important}
main .cs .sc-col.us .sc-h{color:var(--accent)!important}
main .cs .sc-col ul{margin:0;padding:0;list-style:none;display:grid;gap:12px}
main .cs .sc-col li{position:relative;margin:0;padding-left:18px;font-size:16px;line-height:1.5;color:var(--fg)}
main .cs .sc-col li::before{content:"";position:absolute;left:0;top:.62em;width:6px;height:6px;border-radius:50%;background:var(--muted)}
main .cs .sc-col.us li::before{background:var(--accent)}
main .cs .df-row{display:flex;align-items:stretch;gap:0;margin:0;padding:0;list-style:none}
main .cs .df-st{flex:1;min-width:0;margin:0;padding:22px 20px;border:1px solid var(--line);border-radius:var(--radius);background:var(--soft)}
main .cs .df-n{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--fg);color:var(--bg);font:600 13px/1 var(--display,inherit)}
main .cs .df-h{margin:12px 0 10px!important;font-size:17px!important;font-weight:600;color:var(--fg)!important}
main .cs .df-ch{display:flex;flex-wrap:wrap;gap:6px;margin:0!important}
main .cs .df-ch span{padding:4px 10px;border:1px solid var(--line);border-radius:999px;font-size:13px;line-height:1.4;color:var(--fg);background:var(--bg,transparent)}
main .cs .df-note{margin:10px 0 0!important;font-size:13px!important;color:var(--muted)!important}
main .cs .df-ar{flex:none;display:grid;place-items:center;width:36px;color:var(--muted)}
main .cs .df-ar svg{width:20px;height:20px}
@media (max-width:720px){
  main .cs .sc-grid{grid-template-columns:1fr}
  main .cs .df-row{flex-direction:column}
  main .cs .df-ar{width:auto;height:32px}
  main .cs .df-ar svg{transform:rotate(90deg)}
}

/* Leaf trip view: trip type switch above it (page colours, like the other switches) */
main .cs .lt-seg{position:relative;display:grid;grid-template-columns:repeat(4,1fr);width:min(520px,100%);margin:0 auto 20px;padding:4px;border-radius:99px;background:var(--soft);box-shadow:inset 0 0 0 1px var(--line);box-sizing:border-box}
main .cs .lt-seg button{position:relative;z-index:1;margin:0;padding:9px 10px;border:0;border-radius:99px;background:none;color:var(--muted);font:600 14px/1 var(--sans,Inter),system-ui,sans-serif;white-space:nowrap;cursor:pointer;transition:color .25s}
main .cs .lt-seg button:hover{color:var(--fg)}
main .cs .lt-seg button[aria-checked="true"]{color:#fff}
main .cs .lt-seg button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
main .cs .lt-thumb{position:absolute;top:4px;bottom:4px;left:4px;width:calc((100% - 8px)/4);border-radius:99px;background:var(--accent);transform:translateX(calc(var(--n,0)*100%));transition:transform .35s cubic-bezier(.2,.7,.2,1)}
@media (max-width:480px){main .cs .lt-seg button{padding:9px 4px;font-size:12.5px}}
@media (prefers-reduced-motion:reduce){main .cs .lt-thumb{transition:none}}

/* Leaf trip view: the hovered leg stays, the others fade (card and map, both ways) */
main .cs .lt2 [data-leg]{transition:opacity .2s ease}
main .cs .lt2.hl [data-leg]:not(.on){opacity:.22}
main .cs .lt2-map .lt2-hit{pointer-events:stroke}
main .cs .lt2-map g[data-leg]{cursor:default}
@media (prefers-reduced-motion:reduce){main .cs .lt2 [data-leg]{transition:none}}
main .cs .lt2-leg{cursor:pointer}
main .cs .lt2-map g[data-leg]{cursor:pointer}
main .cs .lt2-leg.pin{box-shadow:0 0 0 2px #183b5a,0 1px 3px rgba(0,0,0,.12)}
main .cs .lt2-halo{fill:rgba(0,0,0,.14);opacity:0;transition:opacity .15s ease;pointer-events:none}
main .cs .lt2-halo.stop-on{opacity:1}
main .cs .lt2-n.stop-on{box-shadow:0 0 0 2px #fff,0 0 0 7px rgba(0,0,0,.14)}

/* Leaf trip view: callouts for a pinned card, the power lane and empty miles toggles */
main .cs .lt2-call{display:none;pointer-events:none}
main .cs .lt2-call.pin{display:inline}
main .cs .lt2 .pl-off{display:none}
main .cs .no-pl .lt2 .pl-on{display:none}
main .cs .no-pl .lt2 .pl-off{display:inline}
main .cs .no-pl .lt2-rl.pl{width:4px;border-radius:2px;opacity:.75;background:var(--c)}
main .cs .no-pl .lt2-sw,main .cs .no-pl .lt2-mi i{display:none}
main .cs .no-dead .lt2-dead{display:none}
main .cs .lt-opts{display:flex;justify-content:center;gap:40px;margin:32px 0 0}
main .cs .lt-opt{display:inline-flex;align-items:center;gap:10px;font-size:14px;color:var(--fg);cursor:pointer;-webkit-user-select:none;user-select:none}
main .cs .lt-opt input{position:absolute;opacity:0;width:1px;height:1px}
main .cs .lt-sw{position:relative;width:34px;height:20px;border-radius:99px;background:var(--line);transition:background .2s}
main .cs .lt-sw::after{content:"";position:absolute;left:3px;top:3px;width:14px;height:14px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.25);transition:transform .2s}
main .cs .lt-opt input:checked+.lt-sw{background:var(--accent)}
main .cs .lt-opt input:checked+.lt-sw::after{transform:translateX(14px)}
main .cs .lt-opt input:focus-visible+.lt-sw{outline:2px solid var(--accent);outline-offset:2px}
main .cs .lt-opt.off{opacity:.4;cursor:default}
main .cs .lt2-p[data-t="route"]{position:relative}
main .cs .lt2-zoom{position:absolute;top:16px;right:16px;z-index:2;display:flex;flex-direction:column;width:32px;border-radius:4px;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.2);overflow:hidden;cursor:default}
main .cs .lt2-zoom span{display:grid;place-items:center;height:32px;font-size:20px;line-height:1;font-weight:300;color:rgba(0,0,0,.6)}
main .cs .lt2-zoom span+span{border-top:1px solid #e5e5e5}
main .cs .lt-solo:not(.no-pl) .lt2-n.plc{background:#29b5e8!important}
main .cs .lt-solo:not(.no-pl) .lt2-map circle.plc{fill:#29b5e8}
/* the trip view breathes: more room around it, and between the switch, the view and the toggles */
main .cs .lt-solo{margin:64px 0 72px!important}
main .cs .lt-seg{margin-bottom:32px!important}

/* Leaf trip view: more controls (live unload, hours of service, weekly volume, trips per week) */
main .cs .lt-opts{flex-wrap:wrap;row-gap:16px;column-gap:32px}
main .cs .lt-per{display:inline-flex;align-items:center;gap:12px;font-size:14px;color:var(--fg)}
main .cs .lt-per input{width:120px;accent-color:var(--accent)}
main .cs .lt-per output{min-width:12px;font-weight:600;font-variant-numeric:tabular-nums}
main .cs .dk-l{display:none}
main .cs .live-del .dk-l{display:inline}
main .cs .live-del .dk-d{display:none}
main .cs .lt2-hos,main .cs .lvol,main .cs .lvol-l{display:none}
main .cs .hos-on .lt2-hos,main .cs .vol-on .lvol,main .cs .vol-on .lvol-l{display:inline}
main .cs .vol-on .lt2 .lnorm,main .cs .vol-on .lt2 .pl-on,main .cs .vol-on .lt2 .pl-off{display:none!important}
main .cs .lt2-td b{font-size:13px;font-weight:500;line-height:16px}
main .cs .lt2-td small{font-size:11.5px;line-height:15px;color:rgba(0,0,0,.54);text-align:center;padding:0 6px}
main .cs .lt2-td{gap:6px}
main .cs .lt2-swm{position:absolute;width:30px;height:30px;margin:-15px 0 0 -15px;border-radius:50%;background:transparent;box-shadow:none}
main .cs .lt2-swm:hover,main .cs .lt2-swm:focus-visible{box-shadow:0 0 0 2px #29b5e8}
main .cs .vol-on .lt2-swm{display:none!important}
main .cs .lt2-lab{cursor:default}
main .cs .lt-seg button{display:inline-flex;align-items:center;justify-content:center;gap:7px}
main .cs .lt-seg button svg{width:16px;height:16px;fill:currentColor;flex:none}
@media (max-width:560px){main .cs .lt-seg button svg{display:none}}
main .cs .lt-per{gap:10px}
main .cs .lt-per span{color:var(--muted)}
main .cs .lt-per select{appearance:none;-webkit-appearance:none;margin:0;padding:7px 34px 7px 14px;border:1px solid var(--line);border-radius:99px;background:var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%238a8f98' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center/16px;color:var(--fg);font:500 14px/1.2 var(--sans,Inter),system-ui,sans-serif;cursor:pointer}
main .cs .lt-per select:hover{border-color:var(--muted)}
main .cs .lt-per select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
/* trip view: room above and below, so it does not crowd the text */
main .cs .live-ui.lt-solo{margin:88px 0 96px!important}
/* trip view controls: two groups in one quiet panel */
main .cs .lt-opts{display:grid!important;grid-template-columns:1.6fr 1fr;gap:20px 40px!important;justify-content:stretch!important;margin:28px 0 0!important;padding:22px 26px;border:1px solid var(--line);border-radius:12px;background:var(--soft)}
main .cs .lt-gh{margin:0 0 14px!important;font:500 11.5px/1.3 var(--mono,ui-monospace),monospace!important;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)!important}
main .cs .lt-gi{display:flex;flex-direction:column;align-items:flex-start;gap:14px}
main .cs .lt-gi.lt-g2{display:grid;grid-template-columns:repeat(2,max-content);gap:14px 40px}
main .cs .lt-grp+.lt-grp{padding-left:40px;border-left:1px solid var(--line)}
@media (max-width:700px){main .cs .lt-opts{grid-template-columns:1fr}main .cs .lt-grp+.lt-grp{padding:20px 0 0;border-left:0;border-top:1px solid var(--line)}main .cs .lt-gi.lt-g2{grid-template-columns:1fr 1fr;column-gap:20px}}
/* schedule: wider plan columns; from five plans it scrolls sideways, with a thin scrollbar and a fade while more is to the right */
main .cs .lt2-p[data-t="schedule"] .lt2-tr{min-width:calc(var(--n) * 140px);grid-template-columns:repeat(var(--n),minmax(140px,1fr))}
main .cs .lt2-p[data-t="schedule"] .lt2-grid{scrollbar-width:thin;scrollbar-color:rgba(0,0,0,.25) transparent}
main .cs .lt2-p[data-t="schedule"]{position:relative}
main .cs .lt2-p[data-t="schedule"]::after{content:"";position:absolute;top:0;right:0;bottom:0;width:36px;background:linear-gradient(90deg,rgba(250,250,250,0),#fafafa);pointer-events:none;opacity:0;transition:opacity .2s}
main .cs .lt2-p[data-t="schedule"].more::after{opacity:1}
/* trip view controls: six in three even columns, no group labels */
main .cs .lt-opts{grid-template-columns:repeat(3,1fr)!important;gap:16px 24px!important;align-items:center;padding:20px 28px}
main .cs .lt-per{display:inline-flex;align-items:center;gap:10px;font-size:14px;color:var(--fg)}
main .cs .lt-per span{color:var(--fg)}
main .cs .lt-per button{width:26px;height:26px;margin:0;padding:0;border:1px solid var(--line);border-radius:50%;background:transparent;color:var(--fg);font:400 16px/1 var(--sans,Inter),system-ui,sans-serif;display:grid;place-items:center;cursor:pointer}
main .cs .lt-per button:hover:not(:disabled){border-color:var(--muted)}
main .cs .lt-per button:disabled{opacity:.35;cursor:default}
main .cs .lt-per button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
main .cs .lt-per output{min-width:14px;text-align:center;font-weight:600;font-variant-numeric:tabular-nums}
@media (max-width:700px){main .cs .lt-opts{grid-template-columns:1fr 1fr!important}}
/* trip view: Shuffle trip above on the right, Reset below on the right, as in the Choco product demo */
main .cs .lt-top{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px;margin:0 0 32px}
main .cs .lt-top .lt-seg{margin:0!important}
main .cs .lt-shuf{justify-self:end;display:inline-flex;align-items:center;gap:6px;margin:0;padding:4px 2px;border:0;border-radius:6px;background:none;color:var(--muted);font:500 13px/1.2 var(--sans,Inter),system-ui,sans-serif;cursor:pointer;transition:color .15s}
main .cs .lt-shuf:hover{color:var(--fg)}
main .cs .lt-shuf:active{transform:scale(.96)}
main .cs .lt-shuf:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
main .cs .lt-shuf svg{width:14px;height:14px;color:var(--accent)}
main .cs .lt-foot{display:flex;justify-content:flex-end;margin-top:16px}
main .cs .lt-reset{display:inline-flex;align-items:center;gap:7px;margin:0;padding:8px 14px;border:1px solid var(--line);border-radius:999px;background:none;color:var(--fg);font:600 13px/1 var(--sans,Inter),system-ui,sans-serif;cursor:pointer}
main .cs .lt-reset svg{width:15px;height:15px}
main .cs .lt-reset:hover:not(:disabled){border-color:var(--fg)}
main .cs .lt-reset:active:not(:disabled){transform:scale(.95)}
main .cs .lt-reset:disabled{opacity:.4;cursor:default}
@media (max-width:760px){main .cs .lt-top{grid-template-columns:1fr}main .cs .lt-top>span{display:none}main .cs .lt-shuf{justify-self:end;order:-1}}
/* trip type switch on the left, Shuffle on the right */
main .cs .lt-top{display:flex!important;justify-content:space-between;align-items:center}
main .cs .lt-top>span{display:none}
main .cs .lt-top .lt-seg{margin:0!important}
/* trips a week: the number first, in a small picker with a chevron, then the words */
main .cs .lt-per{gap:10px}
main .cs .lt-per select{appearance:none;-webkit-appearance:none;margin:0;padding:6px 28px 6px 12px;border:1px solid var(--line);border-radius:99px;background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%238a8f98' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 8px center/15px;color:var(--fg);font:600 14px/1.2 var(--sans,Inter),system-ui,sans-serif;font-variant-numeric:tabular-nums;cursor:pointer}
main .cs .lt-per select:hover{border-color:var(--muted)}
main .cs .lt-per select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
main .cs .lt-per select option{color:#16161c}
/* the picker takes the same space as a switch: 20px high, about as wide, the same gap before its label */
main .cs .lt-per{gap:10px!important}
main .cs .lt-per select{box-sizing:border-box;width:38px;height:20px;padding:0 14px 0 8px!important;border-radius:99px;font:600 12px/18px var(--sans,Inter),system-ui,sans-serif!important;background-position:right 4px center!important;background-size:11px!important}
main .cs .lt-per span{font-size:14px}
main .cs .lt-per select{width:34px;padding:0 12px 0 7px!important;background-position:right 3px center!important;background-size:10px!important}
main .cs .lt2-p[data-t="schedule"] .lt2-grid{cursor:grab}
main .cs .lt2-p[data-t="schedule"] .lt2-grid.drag{cursor:grabbing}
main .cs .lt2-p[data-t="schedule"] .lt2-grid::-webkit-scrollbar{height:8px;width:8px}
main .cs .lt2-p[data-t="schedule"] .lt2-grid::-webkit-scrollbar-thumb{background:rgba(0,0,0,.22);border-radius:8px;border:2px solid #fafafa}
main .cs .lt2-p[data-t="schedule"] .lt2-grid::-webkit-scrollbar-track{background:transparent}
main .cs .lt2-p[data-t="schedule"] .lt2-grid{scrollbar-width:auto;scrollbar-color:auto}
/* plain cursor on the schedule; dragging still works, it just does not announce itself */
main .cs .lt2-p[data-t="schedule"] .lt2-grid,main .cs .lt2-p[data-t="schedule"] .lt2-grid.drag{cursor:default}
main .cs .lt2-p[data-t="schedule"] .lt2-grid.can{cursor:grab}
main .cs .lt2-p[data-t="schedule"] .lt2-grid.can.drag{cursor:grabbing}
/* no scrollbar in the schedule: it took height and pushed the totals row out of line with the left column; drag, wheel and the fade do the job */
main .cs .lt2-p[data-t="schedule"] .lt2-grid{scrollbar-width:none!important}
main .cs .lt2-p[data-t="schedule"] .lt2-grid::-webkit-scrollbar{display:none!important;height:0!important}
main .cs .lt2-co>img{display:block;width:44px;height:44px;max-width:none;margin:0;border-radius:50%}
main .cs .lt2-co:hover>img,main .cs .lt2-co:focus-visible>img{filter:none;box-shadow:0 0 0 3px rgba(24,59,90,.15)}
main .cs .lt2-tabs{clip-path:inset(0 -16px 0 0)}  /* keep the side shadow, no shadow bleeding up over the header line */
/* TR board: screenshot with numbered dots, the key beside it as a list; a dot shows on hover of its row, or all with the switch */
main .cs .live-ui.tb .tb-row{display:grid;grid-template-columns:minmax(0,1fr) 168px;gap:28px;align-items:start}
main .cs .live-ui.tb .tb-img{position:relative;border-radius:12px;overflow:hidden}
main .cs .live-ui.tb .tb-img img{display:block;width:100%;height:auto}
main .cs .live-ui.tb .tb-dot{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;background:#fff;color:#111;font-size:11px;font-weight:600;line-height:1;flex:none}
main .cs .live-ui.tb .tb-img .tb-dot{position:absolute;transform:translate(-50%,-50%) scale(.6);box-shadow:0 0 0 4px rgba(255,255,255,.25),0 2px 6px rgba(0,0,0,.5);opacity:0;transition:opacity .18s,transform .18s}
main .cs .live-ui.tb .tb-side{display:flex;flex-direction:column;gap:18px}
main .cs .live-ui.tb .tb-key{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
main .cs .live-ui.tb .tb-key li{display:flex;align-items:center;gap:10px;margin:0;padding:5px 8px;margin-left:-8px;border-radius:8px;font-size:14px;line-height:20px;cursor:default;transition:background .15s}
main .cs .live-ui.tb .tb-key li:hover{background:var(--soft,rgba(255,255,255,.06))}
main .cs .live-ui.tb .tb-key .tb-dot{background:var(--line);color:var(--fg)}
main .cs .live-ui.tb:has(.tb-key li:nth-child(1):hover) .tb-img .tb-dot:nth-of-type(1){opacity:1;transform:translate(-50%,-50%) scale(1.15)}
main .cs .live-ui.tb:has(.tb-key li:nth-child(2):hover) .tb-img .tb-dot:nth-of-type(2){opacity:1;transform:translate(-50%,-50%) scale(1.15)}
main .cs .live-ui.tb:has(.tb-key li:nth-child(3):hover) .tb-img .tb-dot:nth-of-type(3){opacity:1;transform:translate(-50%,-50%) scale(1.15)}
main .cs .live-ui.tb:has(.tb-key li:nth-child(4):hover) .tb-img .tb-dot:nth-of-type(4){opacity:1;transform:translate(-50%,-50%) scale(1.15)}
main .cs .live-ui.tb:has(.tb-key li:nth-child(5):hover) .tb-img .tb-dot:nth-of-type(5){opacity:1;transform:translate(-50%,-50%) scale(1.15)}
main .cs .live-ui.tb:has(.tb-key li:nth-child(6):hover) .tb-img .tb-dot:nth-of-type(6){opacity:1;transform:translate(-50%,-50%) scale(1.15)}
main .cs .live-ui.tb .tb-key li:hover .tb-dot{background:var(--fg);color:var(--bg)}
@media (max-width:820px){main .cs .live-ui.tb .tb-row{grid-template-columns:1fr;gap:20px}main .cs .live-ui.tb .tb-key{display:grid;grid-template-columns:1fr 1fr}main .cs .live-ui.tb .tb-img .tb-dot{width:18px;height:18px;font-size:10px}}
html a.pcard:is(#_,[href]):hover .pc-media img{transform:scale(1.03)!important}  /* home tiles: the placed thumbnails set transform:none, so the hover zoom needs its own rule */
@media (prefers-reduced-motion:reduce){html a.pcard:is(#_,[href]):hover .pc-media img{transform:none!important}}

/* TR board key: rows divided by lines, one button above them */
main .cs .live-ui.tb .tb-side{gap:6px}
main .cs .live-ui.tb .tb-key{gap:0}
main .cs .live-ui.tb .tb-key li{margin:0;padding:10px 4px;border-radius:0;border-bottom:1px solid var(--line)}
main .cs .live-ui.tb .tb-key li:first-child{border-top:1px solid var(--line)}

/* TR board templates: a neutral pill switch (not blue, keeps to the TR look) and one stage per template */
main .cs .live-ui.tb .tb-seg{position:relative;display:grid;grid-template-columns:repeat(4,1fr);width:min(520px,100%);margin:0 auto 28px;padding:4px;border-radius:99px;background:rgba(255,255,255,.1)}
main .cs .live-ui.tb .tb-seg label{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;padding:9px 12px;border-radius:99px;font:600 14px/1 var(--sans,Inter),system-ui,sans-serif;color:var(--fg);cursor:pointer;transition:color .25s;-webkit-user-select:none;user-select:none;white-space:nowrap}
main .cs .live-ui.tb .tb-seg input{position:absolute;opacity:0;width:1px;height:1px}
main .cs .live-ui.tb .tb-seg label:has(input:focus-visible){outline:2px solid var(--fg);outline-offset:2px}
main .cs .live-ui.tb .tb-seg label:has(input:checked){color:#0d0d12}
main .cs .live-ui.tb .tb-thumb{position:absolute;top:4px;bottom:4px;left:4px;width:calc(25% - 2px);border-radius:99px;background:#fff;box-shadow:0 6px 16px -6px rgba(0,0,0,.6);transition:transform .35s cubic-bezier(.2,.7,.2,1)}
main .cs .live-ui.tb .tb-stage{display:grid}
main .cs .live-ui.tb .tb-stage>.tb-img{grid-area:1/1;opacity:0;visibility:hidden;transition:opacity .3s,visibility 0s .3s}
main .cs .live-ui.tb .tb-side>.tb-key{display:none}
@media (prefers-reduced-motion:reduce){main .cs .live-ui.tb .tb-thumb,main .cs .live-ui.tb .tb-stage>.tb-img{transition:none}}
@media (max-width:560px){main .cs .live-ui.tb .tb-seg label{padding:9px 6px;font-size:12px}}
main .cs .live-ui.tb:has(.tb-seg input[value="0"]:checked) .tb-stage>.tb-img[data-k="0"]{opacity:1;visibility:visible;transition:opacity .3s}
main .cs .live-ui.tb:has(.tb-seg input[value="0"]:checked) .tb-side>.tb-key[data-k="0"]{display:flex}
main .cs .live-ui.tb:has(.tb-seg input[value="0"]:checked) .tb-thumb{transform:translateX(0%)}
main .cs .live-ui.tb:has(.tb-seg input[value="1"]:checked) .tb-stage>.tb-img[data-k="1"]{opacity:1;visibility:visible;transition:opacity .3s}
main .cs .live-ui.tb:has(.tb-seg input[value="1"]:checked) .tb-side>.tb-key[data-k="1"]{display:flex}
main .cs .live-ui.tb:has(.tb-seg input[value="1"]:checked) .tb-thumb{transform:translateX(100%)}
main .cs .live-ui.tb:has(.tb-seg input[value="2"]:checked) .tb-stage>.tb-img[data-k="2"]{opacity:1;visibility:visible;transition:opacity .3s}
main .cs .live-ui.tb:has(.tb-seg input[value="2"]:checked) .tb-side>.tb-key[data-k="2"]{display:flex}
main .cs .live-ui.tb:has(.tb-seg input[value="2"]:checked) .tb-thumb{transform:translateX(200%)}
main .cs .live-ui.tb:has(.tb-seg input[value="3"]:checked) .tb-stage>.tb-img[data-k="3"]{opacity:1;visibility:visible;transition:opacity .3s}
main .cs .live-ui.tb:has(.tb-seg input[value="3"]:checked) .tb-side>.tb-key[data-k="3"]{display:flex}
main .cs .live-ui.tb:has(.tb-seg input[value="3"]:checked) .tb-thumb{transform:translateX(300%)}
html .projects a.pcard:is(#_,[href]):hover .pc-media.code-leaf img{transform:scale(1.03)!important}  /* the Leaf tile places its laptop with a stronger rule, so its hover zoom needs one too */
@media (prefers-reduced-motion:reduce){html .projects a.pcard:is(#_,[href]):hover .pc-media.code-leaf img{transform:none!important}}
/* the pill switch sits over the image column, centered on the image; the key starts level with the image */
main .cs .live-ui.tb .tb-seg{margin:0 auto 24px}

/* TR board notes: rows are buttons, the picked row opens its note, its number stays on the image */
main .cs .live-ui.tb .tb-key li{display:block;padding:0}
main .cs .live-ui.tb .tb-b{display:flex;align-items:center;gap:10px;width:100%;margin:0;padding:10px 4px;border:0;background:none;font:inherit;font-size:14px;line-height:20px;color:var(--fg);text-align:left;cursor:pointer}
main .cs .live-ui.tb .tb-b:focus-visible{outline:2px solid var(--fg);outline-offset:-2px;border-radius:6px}
main .cs .live-ui.tb .tb-d{display:none;margin:-4px 0 0;padding:0 4px 12px 36px;font-size:13px;line-height:19px;color:var(--muted,rgba(255,255,255,.6))}
main .cs .live-ui.tb .tb-key li.sel .tb-dot{background:var(--fg);color:var(--bg)}
main .cs .live-ui.tb .tb-img .tb-dot{border:0;padding:0;font-family:inherit;pointer-events:none;cursor:pointer}
main .cs .live-ui.tb .tb-img .tb-dot.sel{opacity:1;transform:translate(-50%,-50%) scale(1.15)}

/* TR board note: a small card beside the picked number, on the image */
main .cs .live-ui.tb .tb-note{position:absolute;z-index:3;width:min(240px,46%);margin:0;padding:10px 12px;border-radius:10px;background:#fff;color:#16161c;box-shadow:0 10px 30px -10px rgba(0,0,0,.7);font-size:12.5px;line-height:17px;transform:translate(18px,-14px);display:flex;flex-direction:column;gap:3px;pointer-events:auto;animation:tbn .18s ease-out}
main .cs .live-ui.tb .tb-note b{font-size:13px;font-weight:600}
main .cs .live-ui.tb .tb-note span{color:rgba(22,22,28,.72)}
main .cs .live-ui.tb .tb-note.l{transform:translate(calc(-100% - 18px),-14px)}
main .cs .live-ui.tb .tb-note.up{transform:translate(18px,calc(-100% + 14px))}
main .cs .live-ui.tb .tb-note.l.up{transform:translate(calc(-100% - 18px),calc(-100% + 14px))}
@keyframes tbn{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){main .cs .live-ui.tb .tb-note{animation:none}}
main .cs .live-ui.tb .tb-img{overflow:visible}
main .cs .live-ui.tb .tb-img img{border-radius:12px}

/* TR board: no switch, every number shows while the pointer is over the image or the list */
main .cs .live-ui.tb:has(:is(.tb-stage,.tb-side):hover) .tb-img .tb-dot{opacity:1;transform:translate(-50%,-50%);pointer-events:auto}
main .cs .live-ui.tb:has(:is(.tb-stage,.tb-side):hover) .tb-img .tb-dot.sel{transform:translate(-50%,-50%) scale(1.15)}
main .cs .live-ui.tb:has(.tb-key li:nth-child(1):hover) .tb-img .tb-dot:nth-of-type(1),main .cs .live-ui.tb:has(.tb-key li:nth-child(2):hover) .tb-img .tb-dot:nth-of-type(2),main .cs .live-ui.tb:has(.tb-key li:nth-child(3):hover) .tb-img .tb-dot:nth-of-type(3),main .cs .live-ui.tb:has(.tb-key li:nth-child(4):hover) .tb-img .tb-dot:nth-of-type(4),main .cs .live-ui.tb:has(.tb-key li:nth-child(5):hover) .tb-img .tb-dot:nth-of-type(5),main .cs .live-ui.tb:has(.tb-key li:nth-child(6):hover) .tb-img .tb-dot:nth-of-type(6){transform:translate(-50%,-50%) scale(1.15)}
/* hovering a row in the list dims every other number on the image, so the one meant stands out */
main .cs .live-ui.tb:has(.tb-key li:hover) .tb-img .tb-dot{opacity:.25}
main .cs .live-ui.tb:has(.tb-key li:nth-child(1):hover) .tb-img .tb-dot:nth-of-type(1),main .cs .live-ui.tb:has(.tb-key li:nth-child(2):hover) .tb-img .tb-dot:nth-of-type(2),main .cs .live-ui.tb:has(.tb-key li:nth-child(3):hover) .tb-img .tb-dot:nth-of-type(3),main .cs .live-ui.tb:has(.tb-key li:nth-child(4):hover) .tb-img .tb-dot:nth-of-type(4),main .cs .live-ui.tb:has(.tb-key li:nth-child(5):hover) .tb-img .tb-dot:nth-of-type(5),main .cs .live-ui.tb:has(.tb-key li:nth-child(6):hover) .tb-img .tb-dot:nth-of-type(6){opacity:1}
/* TR board: the list back beside the image, narrower so the image keeps more width; the tabs are compact */
main .cs .live-ui.tb .tb-row{grid-template-columns:minmax(0,1fr) 124px;gap:20px}
main .cs .live-ui.tb .tb-b{font-size:13px;gap:8px;padding:9px 0}
@media (max-width:820px){main .cs .live-ui.tb .tb-row{grid-template-columns:1fr}}
main .cs .live-ui.tb .tb-seg{width:auto;justify-self:center;grid-template-columns:repeat(4,96px);margin:0 auto 16px;padding:3px}
main .cs .live-ui.tb .tb-seg label{padding:7px 8px;font-size:13px}
main .cs .live-ui.tb .tb-thumb{top:3px;bottom:3px;left:3px;width:96px}
@media (max-width:560px){main .cs .live-ui.tb:has(.tb-seg input[value="0"]:checked) .tb-side>.tb-key[data-k="0"],main .cs .live-ui.tb:has(.tb-seg input[value="1"]:checked) .tb-side>.tb-key[data-k="1"],main .cs .live-ui.tb:has(.tb-seg input[value="2"]:checked) .tb-side>.tb-key[data-k="2"],main .cs .live-ui.tb:has(.tb-seg input[value="3"]:checked) .tb-side>.tb-key[data-k="3"]{grid-template-columns:1fr 1fr}main .cs .live-ui.tb .tb-key li:nth-child(3){border-top:0}main .cs .live-ui.tb .tb-seg{grid-template-columns:repeat(4,78px)}main .cs .live-ui.tb .tb-thumb{width:78px}main .cs .live-ui.tb .tb-seg label{font-size:12px;padding:7px 4px}}
/* TR board tabs, smaller still */
main .cs .live-ui.tb .tb-seg{grid-template-columns:repeat(4,78px);padding:2px}
main .cs .live-ui.tb .tb-seg label{padding:5px 6px;font-size:12px}
main .cs .live-ui.tb .tb-thumb{top:2px;bottom:2px;left:2px;width:78px}
@media (min-width:821px){main .cs .live-ui.tb .tb-side{padding-top:42px}}
/* TR board tabs: plain tabs with a line under them, not a pill; the picked one gets a bar on the line */
main .cs .live-ui.tb .tb-seg{width:100%;justify-content:center;grid-template-columns:repeat(4,96px);margin:0 0 16px;padding:0;border-radius:0;background:none;border-bottom:1px solid var(--line)}
main .cs .live-ui.tb .tb-seg label{padding:10px 6px 11px;border-radius:0;font-size:14px;font-weight:500;color:var(--muted,rgba(255,255,255,.6))}
main .cs .live-ui.tb .tb-seg label:hover,main .cs .live-ui.tb .tb-seg label:has(input:checked){color:var(--fg)}
main .cs .live-ui.tb .tb-thumb{top:auto;bottom:-1px;left:calc(50% - 192px);width:96px;height:2px;border-radius:0;background:var(--fg);box-shadow:none}
@media (max-width:560px){main .cs .live-ui.tb .tb-seg{grid-template-columns:repeat(4,78px)}main .cs .live-ui.tb .tb-thumb{left:calc(50% - 156px);width:78px}main .cs .live-ui.tb .tb-seg label{font-size:13px}}
@media (min-width:821px){main .cs .live-ui.tb .tb-side{padding-top:52px}}
/* TR board tabs: left aligned, more room above the image */
main .cs .live-ui.tb .tb-seg{justify-content:start;margin-bottom:28px}
main .cs .live-ui.tb .tb-thumb{left:0}
@media (max-width:560px){main .cs .live-ui.tb .tb-thumb{left:0}}
@media (min-width:821px){main .cs .live-ui.tb .tb-side{padding-top:64px}}
/* TR board: the tab line runs on to the right edge, over the list too; the list has no line above its first row */
@media (min-width:821px){main .cs .live-ui.tb .tb-seg{width:calc(100% + 144px);align-self:flex-start;justify-self:start}}
main .cs .live-ui.tb .tb-key li:first-child{border-top:0}
/* TR board: a fifth tab, the empty board */
main .cs .live-ui.tb .tb-seg{grid-template-columns:repeat(5,96px)}
main .cs .live-ui.tb:has(.tb-seg input[value="4"]:checked) .tb-stage>.tb-img[data-k="4"]{opacity:1;visibility:visible;transition:opacity .3s}
main .cs .live-ui.tb:has(.tb-seg input[value="4"]:checked) .tb-side>.tb-key[data-k="4"]{display:flex!important}
main .cs .live-ui.tb:has(.tb-seg input[value="4"]:checked) .tb-thumb{transform:translateX(400%)}
@media (max-width:560px){main .cs .live-ui.tb .tb-seg{grid-template-columns:repeat(5,minmax(0,1fr))}main .cs .live-ui.tb .tb-thumb{width:20%}main .cs .live-ui.tb .tb-seg label{font-size:12px;padding:10px 2px 11px}}
/* TR board tabs: more room around each label */
@media (min-width:561px){main .cs .live-ui.tb .tb-seg{grid-template-columns:repeat(5,120px)}main .cs .live-ui.tb .tb-thumb{width:120px}main .cs .live-ui.tb .tb-seg label{padding:12px 8px 13px}}
@media (min-width:821px){main .cs .live-ui.tb .tb-side{padding-top:68px}}
/* TR board: seven tabs (Research and Trading boards added) */
@media (min-width:561px){main .cs .live-ui.tb .tb-seg{grid-template-columns:repeat(7,112px)}main .cs .live-ui.tb .tb-thumb{width:112px}}
@media (max-width:560px){main .cs .live-ui.tb .tb-seg{grid-template-columns:repeat(7,92px);overflow-x:auto;scrollbar-width:none}main .cs .live-ui.tb .tb-thumb{width:92px}}
main .cs .live-ui.tb:has(.tb-seg input[value="5"]:checked) .tb-stage>.tb-img[data-k="5"]{opacity:1;visibility:visible;transition:opacity .3s}
main .cs .live-ui.tb:has(.tb-seg input[value="5"]:checked) .tb-side>.tb-key[data-k="5"]{display:flex!important}
main .cs .live-ui.tb:has(.tb-seg input[value="5"]:checked) .tb-thumb{transform:translateX(500%)}
main .cs .live-ui.tb:has(.tb-seg input[value="6"]:checked) .tb-stage>.tb-img[data-k="6"]{opacity:1;visibility:visible;transition:opacity .3s}
main .cs .live-ui.tb:has(.tb-seg input[value="6"]:checked) .tb-side>.tb-key[data-k="6"]{display:flex!important}
main .cs .live-ui.tb:has(.tb-seg input[value="6"]:checked) .tb-thumb{transform:translateX(600%)}
/* TR board tabs: spread across the full width, more room above the image */
@media (min-width:561px){main .cs .live-ui.tb .tb-seg{grid-template-columns:repeat(7,minmax(0,1fr))}main .cs .live-ui.tb .tb-thumb{width:calc(100%/7)}}
main .cs .live-ui.tb .tb-seg{margin-bottom:44px}
@media (min-width:821px){main .cs .live-ui.tb .tb-side{padding-top:84px}}
/* order widget tabs: four steps instead of seven boards */
@media (min-width:561px){main .cs .live-ui.tb.tb6 .tb-seg{grid-template-columns:repeat(6,minmax(0,1fr))}main .cs .live-ui.tb.tb6 .tb-thumb{width:calc(100%/6)}}
@media (max-width:560px){main .cs .live-ui.tb.tb6 .tb-seg{grid-template-columns:repeat(6,92px)}main .cs .live-ui.tb.tb6 .tb-thumb{width:92px}}
/* a demo that opens its section sits as close to the title as text does */
main .cs .cs-main .part.txt .blk-t>figure.live-ui.tb:first-child[class][class]{margin-top:0!important}
/* order widget: a dark aurora behind the transparent screens, drifting very slowly */
main .cs .live-ui.tb.tb6 .tb-img{isolation:isolate;background:#0c0b09;border-radius:12px}
main .cs .live-ui.tb.tb6 .tb-img::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;
  background:radial-gradient(38% 46% at 22% 18%,rgba(120,78,36,.42),transparent 70%),
             radial-gradient(34% 40% at 82% 78%,rgba(92,58,30,.38),transparent 70%),
             radial-gradient(30% 36% at 70% 22%,rgba(58,44,30,.40),transparent 70%),
             radial-gradient(40% 44% at 30% 86%,rgba(70,46,24,.30),transparent 70%);
  background-size:160% 160%;background-position:0% 0%;animation:tbAurora 36s ease-in-out infinite alternate}
main .cs .live-ui.tb.tb6 .tb-img img{position:relative;z-index:0;background:none!important;box-shadow:none!important}
@keyframes tbAurora{0%{background-position:0% 0%}33%{background-position:60% 30%}66%{background-position:30% 80%}100%{background-position:100% 50%}}
@media (prefers-reduced-motion:reduce){main .cs .live-ui.tb.tb6 .tb-img::before{animation:none}}
/* the states table stays in the page for screen readers and no JS, out of sight */
.tb-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
@media (min-width:821px){main .cs .live-ui.tb.tb6 .tb-row{grid-template-columns:minmax(0,1fr) 156px}main .cs .live-ui.tb.tb6 .tb-seg{width:calc(100% + 176px)}}
/* phones: the tab row scrolls inside its column instead of widening the page */
@media (max-width:820px){main .cs .live-ui.tb .tb-row{grid-template-columns:minmax(0,1fr)}main .cs .live-ui.tb .tb-main{min-width:0}main .cs .live-ui.tb .tb-seg{max-width:100%;width:100%!important}}
/* Order figure: one pattern on every tab. A list on the right, a detail card under it. */
@media (min-width:821px){main .cs .live-ui.tb.tb6 .tb-row{grid-template-columns:minmax(0,1fr) 220px}main .cs .live-ui.tb.tb6 .tb-seg{width:calc(100% + 240px)}}
main .cs .live-ui.tb.tb6 .tb-key.tb-pk{flex-direction:column;gap:24px}
main .cs .live-ui.tb.tb6 .tb-pk-list{display:flex;flex-direction:column}
main .cs .live-ui.tb.tb6 .tb-pk-b{display:flex;align-items:center;gap:10px;width:100%;padding:9px 0;border:0;border-top:1px solid var(--line);background:none;color:var(--muted);font:500 13px/1.3 var(--sans,Inter),system-ui,sans-serif;text-align:left;cursor:pointer}
main .cs .live-ui.tb.tb6 .tb-pk-b:first-child{border-top:0}
main .cs .live-ui.tb.tb6 .tb-pk-b:hover,main .cs .live-ui.tb.tb6 .tb-pk-b[aria-selected="true"]{color:var(--fg)}
main .cs .live-ui.tb.tb6 .tb-pk-b[aria-selected="true"]{font-weight:600}
main .cs .live-ui.tb.tb6 .tb-pk-b:focus-visible{outline:2px solid var(--fg);outline-offset:2px;border-radius:6px}
main .cs .live-ui.tb.tb6 .tb-pk-n{display:grid;place-items:center;flex:none;width:20px;height:20px;border-radius:50%;background:var(--soft);box-shadow:inset 0 0 0 1px var(--line);font:600 11px/1 var(--sans,Inter),system-ui,sans-serif;color:var(--muted)}
main .cs .live-ui.tb.tb6 .tb-pk-b[aria-selected="true"] .tb-pk-n{background:var(--fg);color:var(--bg);box-shadow:none}
main .cs .live-ui.tb.tb6 .tb-sd{flex:none;width:8px;height:8px;margin:0 6px 0 2px;border-radius:50%}
main .cs .live-ui.tb.tb6 [data-a="no"]{--st:#e5534b}main .cs .live-ui.tb.tb6 [data-a="warn"]{--st:#d9a441}
main .cs .live-ui.tb.tb6 [data-a="yes"]{--st:#3fb97a}main .cs .live-ui.tb.tb6 [data-a="one"]{--st:#8a8782}
main .cs .live-ui.tb.tb6 .tb-sd{background:var(--st)}
main .cs .live-ui.tb.tb6 .tb-card{padding:20px;border:1px solid var(--line);border-radius:12px;background:var(--soft)}
main .cs .live-ui.tb.tb6 .tb-card p{margin:0;max-width:none}
main .cs .live-ui.tb.tb6 .tb-card .tb-card-t{margin:0 0 8px;font:500 18px/1.3 var(--sans,Inter),system-ui,sans-serif;color:var(--fg);text-transform:none;letter-spacing:0}
main .cs .live-ui.tb.tb6 .tb-card .tb-card-d{font:400 14px/1.5 var(--sans,Inter),system-ui,sans-serif;color:var(--fg)}
main .cs .live-ui.tb.tb6 .tb-card .tb-card-r{display:flex;flex-direction:column;gap:4px;margin-top:12px}
main .cs .live-ui.tb.tb6 .tb-card-l{font:400 12px/1.2 var(--sans,Inter),system-ui,sans-serif;color:var(--muted)}
main .cs .live-ui.tb.tb6 .tb-card-v{font:400 14px/1.45 var(--sans,Inter),system-ui,sans-serif;color:var(--fg)}
main .cs .live-ui.tb.tb6 .tb-pill{align-self:flex-start;padding:4px 10px;border-radius:99px;font:600 12px/1.2 var(--sans,Inter),system-ui,sans-serif;color:var(--st);background:color-mix(in srgb,var(--st) 16%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--st) 35%,transparent)}
/* hotspots: always shown on this figure, the selected one stands out */
main .cs .live-ui.tb.tb6 .tb-stage .tb-img .tb-dot{opacity:.45!important;transform:translate(-50%,-50%)!important;pointer-events:auto!important;cursor:pointer}
main .cs .live-ui.tb.tb6 .tb-stage .tb-img .tb-dot.on{opacity:1!important;transform:translate(-50%,-50%) scale(1.2)!important}
/* market states: one screen per state; no screen means a short line, never a mismatched image */
main .cs .live-ui.tb.tb6 .tb-states{aspect-ratio:6/5}
main .cs .live-ui.tb.tb6 .tb-states img{position:absolute!important;inset:0;width:100%;height:100%;opacity:0;visibility:hidden}
main .cs .live-ui.tb.tb6 .tb-states img.on{opacity:1;visibility:visible}
main .cs .live-ui.tb.tb6 .tb-none{display:none;position:absolute;inset:0;margin:0;place-items:center;font:400 14px/1.4 var(--sans,Inter),system-ui,sans-serif;color:var(--muted)}
main .cs .live-ui.tb.tb6 .tb-none.on{display:grid}
/* phones: the list becomes chips above the image, the card goes under it */
@media (max-width:820px){
  main .cs .live-ui.tb.tb6 .tb-row{display:flex;flex-direction:column;gap:16px}
  main .cs .live-ui.tb.tb6 .tb-main,main .cs .live-ui.tb.tb6 .tb-side{display:contents}
  main .cs .live-ui.tb.tb6 .tb-seg{order:1;margin-bottom:0}
  main .cs .live-ui.tb.tb6 .tb-stage{order:3}
  main .cs .live-ui.tb.tb6 figcaption{order:5}
  main .cs .live-ui.tb.tb6 .tb-side>.tb-key.tb-pk{display:none!important}
  main .cs .live-ui.tb.tb6:has(.tb-seg input[value="0"]:checked) .tb-side>.tb-key.tb-pk[data-k="0"],
  main .cs .live-ui.tb.tb6:has(.tb-seg input[value="1"]:checked) .tb-side>.tb-key.tb-pk[data-k="1"],
  main .cs .live-ui.tb.tb6:has(.tb-seg input[value="2"]:checked) .tb-side>.tb-key.tb-pk[data-k="2"],
  main .cs .live-ui.tb.tb6:has(.tb-seg input[value="3"]:checked) .tb-side>.tb-key.tb-pk[data-k="3"],
  main .cs .live-ui.tb.tb6:has(.tb-seg input[value="4"]:checked) .tb-side>.tb-key.tb-pk[data-k="4"],
  main .cs .live-ui.tb.tb6:has(.tb-seg input[value="5"]:checked) .tb-side>.tb-key.tb-pk[data-k="5"]{display:contents!important}
  main .cs .live-ui.tb.tb6 .tb-pk-list{order:2;flex-direction:row;gap:8px;overflow-x:auto;scrollbar-width:none;padding:2px}
  main .cs .live-ui.tb.tb6 .tb-pk-list::-webkit-scrollbar{display:none}
  main .cs .live-ui.tb.tb6 .tb-pk-b{flex:none;width:auto;gap:8px;padding:7px 12px;border:0;border-radius:99px;box-shadow:inset 0 0 0 1px var(--line);white-space:nowrap}
  main .cs .live-ui.tb.tb6 .tb-pk-b[aria-selected="true"]{box-shadow:inset 0 0 0 1px var(--fg)}
  main .cs .live-ui.tb.tb6 .tb-pk-n{width:18px;height:18px;font-size:10px}
  main .cs .live-ui.tb.tb6 .tb-card{order:4}
}
@media (max-width:820px){main .cs .live-ui.tb.tb6 .tb-row{align-items:stretch}main .cs .live-ui.tb.tb6 .tb-pk-list,main .cs .live-ui.tb.tb6 .tb-card,main .cs .live-ui.tb.tb6 .tb-stage,main .cs .live-ui.tb.tb6 figcaption{width:100%;min-width:0;max-width:100%;box-sizing:border-box;align-self:stretch}}
/* order figure with four tabs */
main .cs .live-ui.tb.tb6.tb3 .tb-seg{grid-template-columns:repeat(4,minmax(0,1fr))!important}
main .cs .live-ui.tb.tb6.tb3 .tb-thumb{width:25%!important}
main .cs .live-ui.tb.tb6.tb3 .tb-pk-b:not(:has(.tb-sd))::before{content:"";flex:none;width:6px;height:6px;margin:0 4px 0 1px;border-radius:50%;background:currentColor;opacity:.3}
main .cs .live-ui.tb.tb6.tb3 .tb-pk-b[aria-selected="true"]:not(:has(.tb-sd))::before{opacity:1}
@media (max-width:820px){main .cs .live-ui.tb.tb6.tb3 .tb-pk-b::before{display:none}}
/* order figure: tabs span only the image; the card is smaller and sits level with the image bottom */
@media (min-width:821px){
  main .cs .live-ui.tb.tb6.tb3 .tb-seg{width:100%!important}
  main .cs .live-ui.tb.tb6.tb3 .tb-row{align-items:stretch}
  main .cs .live-ui.tb.tb6.tb3 .tb-side{align-self:stretch;padding-bottom:var(--tb3-cap,41px)}
  main .cs .live-ui.tb.tb6.tb3 .tb-side>.tb-key.tb-pk{flex:1}
  main .cs .live-ui.tb.tb6.tb3 .tb-card{margin-top:auto}
}
main .cs .live-ui.tb.tb6.tb3 .tb-card{padding:14px 16px;border-radius:10px}
main .cs .live-ui.tb.tb6.tb3 .tb-card .tb-card-t{margin:0 0 4px;font-size:14px;line-height:1.3}
main .cs .live-ui.tb.tb6.tb3 .tb-card .tb-card-d,main .cs .live-ui.tb.tb6.tb3 .tb-card-v{font-size:13px;line-height:1.45;color:var(--muted)}
main .cs .live-ui.tb.tb6.tb3 .tb-card .tb-card-r{margin-top:8px}
main .cs .live-ui.tb.tb6.tb3 .tb-card-l{font-size:11px}
main .cs .live-ui.tb.tb6.tb3 .tb-pill{font-size:11px;padding:3px 9px}
/* market states: dots stay neutral like the other lists, and take their color only when selected */
main .cs .live-ui.tb.tb6.tb3 .tb-pk-b .tb-sd{width:6px;height:6px;margin:0 4px 0 1px;background:currentColor;opacity:.3}
main .cs .live-ui.tb.tb6.tb3 .tb-pk-b[aria-selected="true"] .tb-sd{width:8px;height:8px;margin:0 3px 0 0;background:var(--st);opacity:1}
/* order figure: soft crossfade between screens, no blink */
main .cs .live-ui.tb.tb6.tb3 .tb-states img{transition:opacity .35s ease,visibility 0s linear .35s}
main .cs .live-ui.tb.tb6.tb3 .tb-states img.on{transition:opacity .35s ease,visibility 0s}
@media (prefers-reduced-motion:reduce){main .cs .live-ui.tb.tb6.tb3 .tb-states img{transition:none}}
/* Checks tab: group labels, step numbers, Previous and Next */
main .cs .live-ui.tb.tb6.tb3 .tb-pk-g{margin:14px 0 4px;font:500 11px/1.2 var(--sans,Inter),system-ui,sans-serif;color:var(--muted);letter-spacing:.02em;max-width:none}
main .cs .live-ui.tb.tb6.tb3 .tb-pk-g:first-child{margin-top:0}
main .cs .live-ui.tb.tb6.tb3 .tb-pk-g+.tb-pk-b{border-top:0}
main .cs .live-ui.tb.tb6.tb3 .tb-pk-b:has(.tb-pk-n)::before{display:none}
main .cs .live-ui.tb.tb6.tb3 .tb-pk-n{width:18px;height:18px;font-size:10px}
main .cs .live-ui.tb.tb6.tb3 .tb-card .tb-card-nav{display:flex;justify-content:space-between;margin:12px 0 0}
main .cs .live-ui.tb.tb6.tb3 .tb-card .tb-card-nav[hidden]{display:none}
main .cs .live-ui.tb.tb6.tb3 .tb-card-nav button{padding:0;border:0;background:none;font:600 12px/1.2 var(--sans,Inter),system-ui,sans-serif;color:var(--fg);cursor:pointer}
main .cs .live-ui.tb.tb6.tb3 .tb-card-nav button:disabled{color:var(--muted);opacity:.5;cursor:default}
main .cs .live-ui.tb.tb6.tb3 .tb-card-nav button:focus-visible{outline:2px solid var(--fg);outline-offset:3px;border-radius:4px}
/* desktop: the right column never makes the row taller than the image, so switching never moves the page */
@media (min-width:821px){main .cs .live-ui.tb.tb6.tb3 .tb-side{height:0;min-height:100%;box-sizing:border-box}}
@media (max-width:820px){main .cs .live-ui.tb.tb6.tb3 .tb-pk-g{display:none}}
@media (max-width:820px){main .cs .live-ui.tb.tb6.tb3 .tb-pk-b{height:32px;box-sizing:border-box;padding-top:0;padding-bottom:0}}
/* the card keeps one height; Can order sits on its bottom edge so it never moves */
main .cs .live-ui.tb.tb6.tb3 .tb-card{display:flex;flex-direction:column}
main .cs .live-ui.tb.tb6.tb3 .tb-card .tb-card-r:has([data-o="can"]){margin-top:auto;padding-top:10px}
/* screener figure: two tabs */
main .cs .live-ui.tb.tb6.tb3.tb2 .tb-seg{grid-template-columns:repeat(2,minmax(0,1fr))!important}
main .cs .live-ui.tb.tb6.tb3.tb2 .tb-thumb{width:50%!important}
/* order figure, four tabs on a phone: room for Knowledge check */
@media (max-width:560px){main .cs .live-ui.tb.tb6.tb3:not(.tb2) .tb-seg label{display:flex;align-items:center;justify-content:center;font-size:12px;line-height:1.2;padding:6px 2px;white-space:normal;text-align:center}main .cs .live-ui.tb.tb6.tb3:not(.tb2) .tb-seg label span{white-space:normal}}
/* Visual system: the two chart screens sit on the same moving background as the figures */
main .cs .gallery:has(img[src*="tr-chart-"]){position:relative;isolation:isolate;overflow:hidden;background:#0c0b09!important;border-radius:12px}
main .cs .gallery:has(img[src*="tr-chart-"])::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:radial-gradient(38% 46% at 22% 18%,rgba(120,78,36,.42),transparent 70%),
             radial-gradient(34% 40% at 82% 78%,rgba(92,58,30,.38),transparent 70%),
             radial-gradient(30% 36% at 70% 22%,rgba(58,44,30,.40),transparent 70%),
             radial-gradient(40% 44% at 30% 86%,rgba(70,46,24,.30),transparent 70%);
  background-size:160% 160%;background-position:0% 0%;animation:tbAurora 36s ease-in-out infinite alternate}
main .cs .gallery:has(img[src*="tr-chart-"]) figure{background:none!important;box-shadow:none!important}
main .cs .gallery:has(img[src*="tr-chart-"]) img{position:relative;z-index:0;background:none!important;box-shadow:none!important;border:0!important;border-radius:0!important}
@media (prefers-reduced-motion:reduce){main .cs .gallery:has(img[src*="tr-chart-"])::before{animation:none}}
/* TR figures: screens in two themes on the slow aurora, a dark one and a light one */
main .cs .live-ui.tb.tb6 .tb-states picture{display:contents}
main .cs .live-ui.tb.tb6 .tb-img{background:#0c0b09!important}
:root[data-theme="light"] main .cs .live-ui.tb.tb6 .tb-img{background:#F2F2F2!important}
:root[data-theme="light"] main .cs .live-ui.tb.tb6 .tb-img::before,
:root[data-theme="light"] main .cs .live-ui.tb-chart picture::before{content:none;display:none;animation:none}
main .cs .live-ui.tb .tb-img > picture{display:contents}
/* Visual system: one chart screen that follows the site theme */
main .cs .live-ui.tb-chart{margin:32px 0 0}
main .cs .live-ui.tb-chart picture{display:block;position:relative;isolation:isolate;overflow:hidden;border-radius:12px;background:#0c0b09}
:root[data-theme="light"] main .cs .live-ui.tb-chart picture{background:#F2F2F2}
main .cs .live-ui.tb-chart picture::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:radial-gradient(38% 46% at 22% 18%,rgba(120,78,36,.42),transparent 70%),
             radial-gradient(34% 40% at 82% 78%,rgba(92,58,30,.38),transparent 70%),
             radial-gradient(30% 36% at 70% 22%,rgba(58,44,30,.40),transparent 70%),
             radial-gradient(40% 44% at 30% 86%,rgba(70,46,24,.30),transparent 70%);
  background-size:160% 160%;background-position:0% 0%;animation:tbAurora 36s ease-in-out infinite alternate}
@media (prefers-reduced-motion:reduce){main .cs .live-ui.tb-chart picture::before{animation:none}}
main .cs .live-ui.tb-chart img{display:block;width:100%;height:auto;aspect-ratio:6/5;position:relative;z-index:0;background:none}
main .cs .live-ui.tb-chart figcaption{margin-top:12px;text-align:center;font-family:var(--serif,Georgia,serif);font-style:italic;font-size:14px;color:var(--muted)}

/* Joint tax case: the three phone screens in one row, stacked on phones. Design files, kept as they are in both themes */
.tj-choices{margin:32px 0}
.tj-choices .tj-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:24px;border-radius:16px;background:#1e1e1e}
.tj-choices img{display:block;width:100%;height:auto;border-radius:0;background:#1e1e1e}
/* every image of this case sits on the decision boards' dark canvas (#1e1e1e), in light and dark, at full width */
main .cs figure img[src*="/tr-joint-account/img/"]{background:#1e1e1e!important}
main .cs figure:not(.tj-choices) img[src*="/tr-joint-account/img/"]{width:100%!important;max-width:100%!important;max-height:none!important;height:auto!important}
@media (max-width:640px){.tj-choices .tj-row{grid-template-columns:1fr;padding:16px}}

/* TR tax case: the boards carry their own dark background, so no box around them; caption below, outside the picture, like the decision board */
.cs-wide .cs-main .part.one figure.portrait:has(img[src*="/tr-joint-account/"]){display:block!important;padding:0!important;background:none!important;border-radius:0}
.cs-wide .cs-main .part.one figure.portrait:has(img[src*="/tr-joint-account/"]) img{display:block;width:100%;max-width:100%;max-height:none;height:auto;margin:0}
.cs-wide .cs-main .part.one figure.portrait:has(img[src*="/tr-joint-account/"]) figcaption{max-width:60ch;margin-top:18px!important;text-align:center!important;font-size:16px!important;color:var(--muted)!important}
.unlock-form{max-width:420px;padding-bottom:48px}
.unlock-ask{margin:4px 0 0;font-size:15px;color:var(--muted)}
/* Lock icon at the start of the category line on protected case cards: same size and color as the text, centered on it */
.pc-media small .pc-lock-wrap{position:relative;display:inline-block;margin-right:.5em}
.pc-media small .pc-lock{display:inline-block;width:1em;height:1em;vertical-align:-.15em;fill:currentColor}
/* "Password required" appears right away when the lock is hovered. Colors flip with the TR card: black on the light card (dark theme), white on the dark card (light theme) */
.pc-media small .pc-lock-wrap::after{content:attr(data-tip);position:absolute;left:-6px;top:calc(100% + 8px);z-index:5;white-space:nowrap;padding:6px 9px;border-radius:7px;background:var(--tr-fg);color:var(--tr-bg);font:500 12px/1.2 Inter,system-ui,sans-serif;letter-spacing:0;text-transform:none;box-shadow:0 4px 16px rgba(0,0,0,.28);opacity:0;transform:translateY(-2px);pointer-events:none;transition:opacity .15s,transform .15s}
.pc-media small .pc-lock-wrap:hover::after{opacity:1;transform:none}
/* Bigger hover area around the lock (about 36 x 36 px) without moving anything */
.pc-media small .pc-lock-wrap::before{content:"";position:absolute;left:-12px;right:-12px;top:-12px;bottom:-12px}
/* Figure captions in every case study and article: centered, wrapping in a readable width. One rule for the whole site;
   the second line also covers the caption beside portrait images on wide screens, which used to be left aligned. */
main :is(.cs,.cs-wide) figcaption,main .live-ui figcaption{text-align:center!important;max-width:60ch;margin-left:auto!important;margin-right:auto!important;text-wrap:balance}
@media (min-width:761px){.cs-wide .cs-main .part.one figure:is(.portrait,.square,.phone):has(figcaption) figcaption{text-align:center!important}}
/* Images can't be dragged out of the page, neither the pictures nor the cards and links around them (site.js does the same for Firefox) */
img,video,.pcard,a:has(img),a:has(video){-webkit-user-drag:none}
img{-webkit-user-select:none;user-select:none}
/* Open hero of a password protected case (work/<slug>/locked.html): password field and Request access where Listen would be.
   The Trade Republic hero is dark in both themes, so the field is light on dark. */
.hf-unlock{margin-top:28px;max-width:340px}
.hf-unlock-row{position:relative}
/* "Password protected" above the field, the same style as the category line on the home cards */
.hf-unlock-tag{display:flex;align-items:center;gap:8px;margin:0 0 12px;font:500 12px var(--mono);text-transform:uppercase;letter-spacing:.08em;color:rgba(255,255,255,.82)}
.hf-unlock-tag svg{width:12px;height:12px;flex:none;fill:currentColor}
.hf-unlock-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.hf-unlock input{display:block;width:100%;height:52px;padding:0 60px 0 20px;border-radius:999px;border:1px solid rgba(255,255,255,.28);background:rgba(255,255,255,.08);color:#fff;font:400 16px Inter,system-ui,sans-serif}
.hf-unlock input::placeholder{color:rgba(255,255,255,.6)}
.hf-unlock input:focus,.hf-unlock input:focus-visible{outline:none!important;box-shadow:none!important;border-color:rgba(255,255,255,.85);background:rgba(255,255,255,.12)}
.hf-unlock input[aria-invalid=true]{border-color:#ff8a80}
/* round arrow button inside the password pill */
.hf-unlock-btn{position:absolute;right:6px;top:6px;width:40px;height:40px;display:grid;place-items:center;padding:0;border:0;border-radius:50%;background:#fff;color:#141418;cursor:pointer;transition:opacity .15s}
.hf-unlock-btn:hover{opacity:.85}
.hf-unlock-btn:focus-visible{outline:2px solid #fff;outline-offset:3px}
.hf-unlock-err{min-height:1.3em;margin:8px 0 0 18px;font-size:14px;color:#ff8a80}
.hf-unlock-err:empty{min-height:0;margin:0}
.hf-unlock-ask{margin:10px 0 0 18px;font-size:15px;color:rgba(255,255,255,.82)}
.hf-unlock-ask a{color:#fff;font-weight:600;text-decoration:none}
.hf-unlock-ask a:hover{text-decoration:underline;text-underline-offset:3px}
/* Below the open hero: the chapters of the locked case (no links) and Up next to a public case */
.locked-more{display:grid;grid-template-columns:280px minmax(0,1fr);gap:64px;align-items:start;padding-top:72px;padding-bottom:96px}  /* same columns as a case page: navigation 280px, gap 64px */
.locked-more .eyebrow{display:flex;align-items:center;gap:8px;margin:0 0 16px;color:var(--muted)}
.locked-more .eyebrow svg{flex:none;fill:currentColor}
.lm-toc{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
.lm-toc li{display:flex;gap:14px;align-items:baseline;padding:12px 0;border-bottom:1px solid var(--line);font-size:16px;color:var(--muted)}
.lm-toc .n{flex:none;font:500 12px var(--mono);letter-spacing:.06em;opacity:.7}
.locked-more .next{margin:0!important;max-width:none!important}
@media (max-width:900px){.locked-more{grid-template-columns:1fr;gap:48px;padding-top:56px;padding-bottom:72px}}
/* Hero description a step quieter on the dark heroes (TR, Leaf), so the title, and on locked pages the password field, lead.
   Choco's blue hero is left as it is: its text is already below the AA contrast minimum there. */
.cs-hero-full.tr .hf-text .sub,.cs-hero-full.code-leaf .hf-text .sub{color:rgba(255,255,255,.54)!important}

/* Articles: Listen sits on the bottom left of the cover image, light on a dark glass pill */
.art-top .cover{position:relative}
.art-top .cover .tts-btn.on-cover{position:absolute;left:20px;bottom:20px;margin:0!important;color:#fff!important;background:rgba(16,16,20,.5);border-color:rgba(255,255,255,.3)}
.art-top .cover .tts-btn.on-cover:hover{background:rgba(16,16,20,.66)}
@media (max-width:600px){.art-top .cover .tts-btn.on-cover{left:12px;bottom:12px}}

/* Article cards: a little room between the cover image and the title */
.post div{padding-top:6px}
/* Article titles use the full column, so they stay on one line wherever it fits (the 16ch limit is for case study heroes) */
.art-head h1{max-width:none}
/* On phones the article title scales with the screen so it stays on one line (sized for the longest, "UX error handling at Choco") */
@media (max-width:767px){main .cs .art-top .cs-hero h1{font-size:min(34px,calc((100vw - 48px) / 13.6))!important;white-space:nowrap}}
/* Choco pages: the switches (A/B, Order mode / Edit mode, Before / After) closer to what they switch */
main.co-choco .cs .live-ui.ab .ab-seg,main.co-choco .cs .tour .tr-tabs.ab-seg{margin-bottom:24px!important}
/* Leaf trip type: tabs like the Trade Republic board tabs (thin line under the row, the active tab underlined), keeping the icons */
main .cs .lt-seg{padding:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;border-bottom:1px solid var(--line)}
main .cs .lt-seg button{border-radius:0;padding:12px 12px 13px;font-weight:500;color:var(--muted)}
main .cs .lt-seg button:hover,main .cs .lt-seg button[aria-checked="true"]{color:var(--fg)}
main .cs .lt-thumb{top:auto;bottom:-1px;left:0;width:25%;height:2px;border-radius:0;background:var(--fg)}
@media (max-width:760px){
  main .cs .lt-top{flex-wrap:wrap;row-gap:12px}
  main .cs .lt-top .lt-seg{flex:1 1 100%;width:100%;grid-template-columns:repeat(4,minmax(0,1fr))}
  main .cs .lt-top .lt-shuf{margin-left:auto}
  main .cs .lt-seg button{padding:12px 2px 13px;font-size:13px}
}
@media (max-width:380px){main .cs .lt-seg button{font-size:12px}}
/* One tab style for every switch on the site (Choco, Leaf, like the Trade Republic board tabs):
   no pill, a thin line under the row, the active tab in full colour and underlined. The underline still slides. */
main .cs :is(.ab-seg,.ba-tabs.ba-pill,.oa-seg):not(#_){padding:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;border-bottom:1px solid var(--line)!important;width:min(360px,100%)!important}
main .cs :is(.ab-seg,.ba-tabs.ba-pill,.oa-seg):not(#_) button{border-radius:0!important;padding:12px 12px 13px!important;font-weight:500!important;color:var(--muted)!important;background:none!important}
main .cs :is(.ab-seg,.ba-tabs.ba-pill,.oa-seg):not(#_) button:hover,main .cs :is(.ab-seg,.ba-tabs.ba-pill,.oa-seg):not(#_) button[aria-selected="true"]{color:var(--fg)!important}
main .cs :is(.ab-seg,.ba-tabs.ba-pill,.oa-seg):not(#_) .ab-thumb{top:auto!important;bottom:-1px!important;left:0!important;width:50%!important;height:2px!important;border-radius:0!important;background:var(--fg)!important;box-shadow:none!important}
/* About, Outside of work: the ÆN logo in white on a black panel, where the band photo was (same shape and corners) */
.outside .aen-panel{display:grid;place-items:center;aspect-ratio:3/2;margin:0;border-radius:var(--radius);background:#000}
.outside .aen-panel .aen-logo{width:min(34%,200px);color:#fff}
/* Skills: only the Tools card splits its list into two columns (the 7+ items rule now also matched Leadership and Research) */
.skills>li:has(.sk-list li:nth-child(7)) .sk-list{columns:1}
.skills>li.sk-tools .sk-list{columns:2!important;column-gap:28px}
/* Brand block Before / After: same underline tabs as the other demos (role pills stay pills) */
main .cs .bd-seg:not(#_){min-width:0!important;width:min(360px,100%)!important;flex:0 1 auto;padding:0;border-radius:0;background:none;box-shadow:none;border-bottom:1px solid var(--line)}
main .cs .bd-seg:not(#_) button{border-radius:0;padding:12px 12px 13px!important;font-weight:500;color:var(--muted)}
main .cs .bd-seg:not(#_) button:hover,main .cs .bd-seg:not(#_) button[aria-pressed="true"]{color:var(--fg)}
main .cs .bd-seg:not(#_) .bd-thumb{top:auto;bottom:-1px;left:0;width:50%;height:2px;border-radius:0;background:var(--fg)}
main .cs .bd-ctl:not(#_){align-self:stretch}
@media (min-width:821px){.next-card .pc-media.code-leaf:not(.corner) img:not(#_){top:30px!important}}  /* Up next Leaf card: laptop a little higher */
main .cs.legal-text:not(#_){margin-left:0!important;margin-right:auto!important}  /* Impressum, Datenschutz: text starts under the title */
/* Cookie consent (only on the page when GA_ID is set) */
.ckb{position:fixed;left:24px;bottom:24px;z-index:90;width:min(380px,calc(100vw - 32px));padding:20px;border-radius:16px;background:var(--bg);color:var(--fg);box-shadow:0 0 0 1px var(--line),0 18px 50px rgba(0,0,0,.28);font:15px/1.5 var(--sans,Inter),system-ui,sans-serif}
.ckb-t{margin:0 0 6px!important;font-weight:600;font-size:16px}
.ckb-d{margin:0 0 16px!important;color:var(--muted);font-size:14px}
.ckb-d a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.ckb-b{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ckb-b button{margin:0;padding:11px 14px;border-radius:99px;border:0;font:600 14px/1 var(--sans,Inter),system-ui,sans-serif;cursor:pointer;background:var(--soft);color:var(--fg);box-shadow:inset 0 0 0 1px var(--line)}
.ckb-b button:hover{box-shadow:inset 0 0 0 1px var(--muted)}
.ckb-b button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media (max-width:600px){.ckb{left:16px;right:16px;bottom:16px;width:auto}}
/* iPad/iPhone in Low Power Mode block autoplay and draw a big play button over hero clips: hide it, the first frame stays as a still */
.cs-hero-full video::-webkit-media-controls-start-playback-button{display:none!important;-webkit-appearance:none}
.cs-hero-full video::-webkit-media-controls{display:none!important}
/* Home intro: seniority line, and company names that read as links before hover */
.hero .intro a.intro-co:not(#_){font-weight:700;color:var(--fg);text-decoration:none;border:0;background:none;white-space:nowrap;cursor:pointer;transition:color .2s}
.hero .intro a.intro-co:not(#_):hover{color:var(--accent)}
.hero .intro a.intro-co:not(#_):focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:3px;text-decoration:none}
@media (prefers-reduced-motion:reduce){.hero .intro a.intro-co:not(#_){transition:none}}
/* Card label period (one source with the case eyebrow): full on wide cards, years only on narrow cards */
.pcard{container-type:inline-size;container-name:pcard}
.pcard .pc-per-s{display:none}
@container pcard (max-width: 560px){.pcard .pc-per-l{display:none}.pcard .pc-per-s{display:inline}}

/* Annotated mockups (assets/annot.js): numbered dots on the image, numbered legend beside it.
   Wide: side by side, the image sticks while the legend scrolls. Narrow: a fixed note under the image, legend folded. */
main .cs .live-ui.an figcaption{margin:12px 0 0!important;text-align:center!important;font:400 14px/1.5 var(--sans,Inter),system-ui,sans-serif!important;color:var(--muted)!important}
main .cs .live-ui.an .oa-box,main .cs .live-ui.an .tb-stage{position:relative}
.an-pop{position:absolute;z-index:6;left:0;top:0;width:max-content;max-width:min(260px,calc(100% - 16px));padding:10px 12px;border-radius:10px;background:#fff;color:#16161c;box-shadow:0 12px 30px -10px rgba(0,0,0,.6);font:400 13px/1.4 var(--sans,Inter),system-ui,sans-serif;text-align:left;display:flex;flex-direction:column;gap:3px;pointer-events:none;opacity:0;visibility:hidden;transition:opacity .15s,visibility 0s .15s}
.an-pop.vis{opacity:1;visibility:visible;transition:opacity .15s}
.an-pop b{font-weight:600;font-size:13.5px;line-height:1.3}
.an-pop span{color:rgba(22,22,28,.72)}
.an-pop span:empty{display:none}
.an-detail,.an-toggle{display:none}
/* touch targets of at least 44px around every dot, without making the dot bigger */
main .cs .live-ui.an :is(.fd-dot,.oa-dot,.tb-img .tb-dot)::after{content:"";position:absolute;left:calc(50% - 22px);top:calc(50% - 22px);width:44px;height:44px;border-radius:50%}
main .cs .live-ui.an :is(.fd-dot,.oa-dot,.tb-img .tb-dot):focus-visible{outline:3px solid #fff;outline-offset:2px;box-shadow:0 0 0 6px #14163a}
main .cs .live-ui.an :is(.fd-list button,.tb-b,.an-toggle):focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:8px}
/* TR board: the selected number stays on, the others dim; on touch every number is always there */
main .cs .live-ui.tb.an:has(.tb-img .tb-dot.sel) .tb-img .tb-dot,
main .cs .live-ui.tb.an:has(.tb-img .tb-dot:focus-visible) .tb-img .tb-dot{opacity:1;transform:translate(-50%,-50%);pointer-events:auto}
main .cs .live-ui.tb.an:has(.tb-img .tb-dot.sel) .tb-img .tb-dot:not(.sel){opacity:.4}
main .cs .live-ui.tb.an .tb-img .tb-dot.sel{opacity:1;transform:translate(-50%,-50%) scale(1.15)}
@media (hover:none){main .cs .live-ui.tb.an .tb-img .tb-dot{opacity:1;transform:translate(-50%,-50%);pointer-events:auto}main .cs .live-ui.tb.an:has(.tb-img .tb-dot.sel) .tb-img .tb-dot:not(.sel){opacity:.4}}
main .cs .live-ui.tb.an .tb-key li.sel .tb-b{font-weight:600}
main .cs .live-ui.tb.an:has(.tb-key li.sel) .tb-key li:not(.sel){opacity:.55}

/* wide: side by side */
main .cs .live-ui.an.an-split .an-main,main .cs .live-ui.tb.an.an-split .tb-main{position:sticky;top:84px;align-self:start;min-width:0}
main .cs .live-ui.found.an.an-split{display:grid!important;grid-template-columns:minmax(0,63fr) minmax(0,37fr);column-gap:28px;align-items:start}
main .cs .live-ui.found.an.an-split .fd-box{padding:16px}
main .cs .live-ui.found.an.an-split>.fd-list{margin:0!important;border-top:1px solid var(--line)}
main .cs .live-ui.found.an.an-split .fd-list button{padding:12px 8px!important}
main .cs .live-ui.found.an.an-split .fd-t{grid-template-columns:1fr!important;gap:3px!important}
main .cs .live-ui.found.an.an-split .fd-t small{font-size:14px!important}
main .cs .live-ui.oa3.an.an-split{display:grid!important;grid-template-columns:minmax(0,60fr) minmax(0,40fr)!important;column-gap:36px!important;align-items:start!important}
main .cs .live-ui.oa3.an.an-split>.oa-mt{grid-column:1;grid-row:1}
main .cs .live-ui.oa3.an.an-split>.an-main{grid-column:1;grid-row:2}
main .cs .live-ui.oa3.an.an-split>.oa-side{grid-column:2!important;grid-row:1/3!important;margin-top:0!important}
main .cs .live-ui.tb.an.an-split .tb-row{grid-template-columns:minmax(0,63fr) minmax(0,37fr)!important;gap:28px!important;align-items:start}

/* narrow: the selected note under the image, the full legend behind a toggle */
main .cs .live-ui.an:not(.an-split) .an-detail{display:flex;gap:12px;align-items:flex-start;min-height:72px;margin:12px 0 0;padding:12px 14px;border:1px solid var(--line);border-radius:12px;text-align:left;box-sizing:border-box}
main .cs .live-ui.an .an-detail:not(.has){display:none!important}
main .cs .live-ui.an .an-detail .an-n{flex:none;display:flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:var(--accent);color:#fff;font:700 12px/1 var(--sans,Inter),system-ui,sans-serif;font-variant-numeric:tabular-nums}
main .cs .live-ui.an .an-detail .an-n:empty{display:none}
main .cs .live-ui.an .an-detail b{display:block;font:600 15px/1.35 var(--sans,Inter),system-ui,sans-serif;color:var(--fg)}
main .cs .live-ui.an .an-detail p{margin:3px 0 0!important;font:400 14px/1.45 var(--sans,Inter),system-ui,sans-serif!important;color:var(--muted)!important}
main .cs .live-ui.an .an-detail p:empty{display:none}
main .cs .live-ui.an:not(.an-split) .an-toggle{display:flex;align-items:center;justify-content:center;width:100%;min-height:44px;margin:14px 0 0;padding:10px 14px;border:1px solid var(--line);border-radius:12px;background:none;color:var(--fg);font:500 14px/1.2 var(--sans,Inter),system-ui,sans-serif;cursor:pointer}
main .cs .live-ui.found.an:not(.an-split):not(.an-open)>.fd-list,
main .cs .live-ui.oa3.an:not(.an-split):not(.an-open) .oa-side>.oa-mode,
main .cs .live-ui.tb.an:not(.an-split):not(.an-open) .tb-side>.tb-key{display:none!important}
main .cs .live-ui.found.an:not(.an-split) .fd-list{margin-top:12px!important}
@media (prefers-reduced-motion:reduce){.an-pop,.an-pop.vis{transition:none}main .cs .live-ui.an :is(.fd-dot,.oa-dot,.tb-img .tb-dot,.fd-area){transition:none!important}}
@media (hover:hover){main .cs .live-ui.oa2.oa3.an[data-active] .oa-ph.on .oa-dot{opacity:.4!important;pointer-events:auto}main .cs .live-ui.oa2.oa3.an[data-active] .oa-ph.on .oa-dot.on{opacity:1!important}}

/* periods never split across lines: on narrow screens the whole date moves to the next line */
.cs-hero-full .eyebrow .hf-per,.pcard .pc-per-l,.pcard .pc-per-s{white-space:nowrap}
/* Choco mobile card: the period gets its own line, so it stays clear of the phone image */
.pcard[href*="choco-ordering-platform"] .pc-per{display:block}
.pcard[href*="choco-ordering-platform"] .pc-dot{display:none}
/* annotated mockups, wide: titles only in the legend (the full note shows on the image), a narrower legend and a bigger mockup */
main .cs .live-ui.found.an.an-split{grid-template-columns:minmax(0,1fr) 200px;column-gap:24px}
main .cs .live-ui.found.an.an-split .fd-t small{display:none!important}
main .cs .live-ui.found.an.an-split .fd-list button{padding:10px 6px!important;align-items:center}
main .cs .live-ui.found.an.an-split .fd-list .n{margin-top:0}
main .cs .live-ui.tb.an.an-split .tb-row{grid-template-columns:minmax(0,1fr) 180px!important;gap:24px!important}.cs-hero-full .eyebrow .hf-per,.pcard .pc-per{white-space:nowrap}
@media (max-width:600px){.cs-hero-full .eyebrow .hf-per{display:block}.cs-hero-full .eyebrow .hf-dot{display:none}}
@container pcard (max-width: 560px){.pcard .pc-per{display:block}.pcard .pc-dot{display:none}}

.hero .intro + .intro{margin-top:12px}/* the note on annotated mockups matches the dark blue note used elsewhere in the cases (.tr-pop) */
.an-pop{padding:14px 16px 15px;border-radius:12px;background:#14163a;color:#fff;box-shadow:0 18px 40px -12px rgba(8,18,70,.6)}
.an-pop b{font-size:14.5px;line-height:1.25;margin:0 0 2px}
.an-pop span{font-size:13.5px;line-height:1.45;color:rgba(255,255,255,.82)}

/* Choco product cell: one line that explains the toggles */
main .cs .prow .pr-hint{margin:20px 0 0!important;font-size:14px!important;line-height:1.5!important;color:var(--muted)!important}
main .cs .prow .pr-hint+.pr-ctl{margin-top:10px}
/* side Previous / Next buttons: only the visible 48px circle reacts, the title tip floats beside it without its own hit area */
.cs-side-btn{width:48px;height:48px;gap:0}
.cs-side-tip{position:absolute;top:50%;width:max-content;translate:0 -50%}
.cs-side-btn.is-next .cs-side-tip{right:calc(100% + 12px)}
.cs-side-btn.is-prev .cs-side-tip{left:calc(100% + 12px)}body.cs-side-on .cs-side-btn.cs-side-off{opacity:0;pointer-events:none}

@container pcard (max-width: 560px){.pcard[href*="tr-joint-account"] .pc-per{display:inline}.pcard[href*="tr-joint-account"] .pc-dot{display:inline}}
.pcard[href*="tr-joint-account"] .pc-per{white-space:normal}

/* home hero subtitle under the headline: regular sans, a little larger and brighter than the intro, closer to the headline than to the intro *//* home hero: even rhythm, headline to intro to buttons the same, twice that before the work grid */
.hero h1 + .intro{margin-top:32px}
.hero .intro + .hero-cta{margin-top:32px}
.hero:has(.hero-cta){padding-bottom:64px}
@media (max-width:820px){.hero h1 + .intro{margin-top:24px}.hero .intro + .hero-cta{margin-top:24px}.hero:has(.hero-cta){padding-bottom:48px}}
/* home hero on phones: both buttons in one row, sharing the width */
@media (max-width:600px) and (min-width:360px){
  .hero .hero-cta.hb-pair{flex-wrap:nowrap;gap:10px}
  .hero .hero-cta.hb-pair .hb{flex:0 1 auto;min-width:0;justify-content:center;padding:0 14px;font-size:15px;white-space:nowrap}
}

/* a little more room between the intro and the buttons */
.hero .intro + .hero-cta{margin-top:40px}
@media (max-width:820px){.hero .intro + .hero-cta{margin-top:32px}}
/* card label: when the period has its own line, a little room above it */
.pcard .pc-per{margin-top:3px}
.pcard[href*="tr-joint-account"] .pc-media small{line-height:1.5}
main .cs figure.tour:not([data-k="order"]):is([data-k]) figcaption [data-k="order"]{display:none}
/* case hero: keep the Listen button's place from the first frame (listen.js adds it after load), then fade it in */
body:has(script[src*="/listen.js"]) .cs-hero-full .hf-text:not(:has(> .tts-btn))::after{content:"";display:block;height:84px}
.cs-hero-full .hf-text > .tts-btn{animation:tts-in .5s cubic-bezier(.2,.7,.2,1) both}
@keyframes tts-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.cs-hero-full .hf-text > .tts-btn{animation:none}}
/* theme switch (site.js setTheme): no element fades on its own while the theme changes; the page cross-fades once */
html.theme-switch *,html.theme-switch *::before,html.theme-switch *::after{transition:none!important}
html.theme-switch body{transition:none!important}
html.vt-theme::view-transition-group(*){animation-duration:.28s;animation-timing-function:ease}
html.vt-theme::view-transition-old(*){animation:vt-theme-out .28s ease both}
html.vt-theme::view-transition-new(*){animation:vt-theme-in .28s ease both}
@keyframes vt-theme-out{to{opacity:0}}
@keyframes vt-theme-in{from{opacity:0}}
/* narrow screens: the sticky chapter bar sits right under the header (site.js sets --hdr-h), so its top padding is not hidden */
@media (max-width:900px){
  .cs-toc{top:var(--hdr-h,73px);padding-top:0!important;padding-bottom:0!important}
  .cs-toc ol{align-items:stretch}
  .cs-toc ol>li{margin:0!important}
  /* tabs: every chapter is as tall as the bar, the current one has a line under it, sitting on the bar's bottom border */
  .cs-toc a{padding:13px 0 11px!important;margin-bottom:-1px;border-bottom:2px solid transparent!important}
  .cs-toc a.on{border-bottom-color:var(--fg)!important}
}
/* A/B stats: numbers on one line and labels starting on one line, even when a label wraps on phones */
main .cs .ab-stats>div{justify-content:flex-end}
/* lazy images fade in when they arrive (site.js); the animation ends at the image's own opacity, so hidden variants stay hidden */
img.img-wait{opacity:0!important}
img.img-in{animation:img-in .45s ease-out}
@keyframes img-in{from{opacity:0}}
@media (prefers-reduced-motion:reduce){img.img-in{animation:none}}
/* mobile menu, lighter for phones: the panel covers the screen at once (no full-screen fade over a heavy page),
   only the menu items slide in; once open, the page underneath stops painting; closing is a short fade */
.dr-panel{opacity:1;transition:none}
.drawer .dr-panel>nav,.drawer .dr-foot{opacity:0;transform:translateY(12px);transition:opacity .26s ease,transform .26s cubic-bezier(.2,.7,.2,1);will-change:opacity,transform}
.drawer.open .dr-panel>nav,.drawer.open .dr-foot{opacity:1;transform:none}
.drawer.open .dr-foot{transition-delay:.04s}
.drawer.closing .dr-panel{opacity:0;transition:opacity .18s ease}
html.dr-shown main,html.dr-shown footer,html.dr-shown .site-header{visibility:hidden}
@media (prefers-reduced-motion:reduce){.drawer .dr-panel>nav,.drawer .dr-foot,.drawer.closing .dr-panel{transition:none}}
/* brand demo: say it is interactive at first glance */
main .cs .bd-demo{position:absolute;top:16px;left:16px;z-index:2;display:inline-flex;align-items:center;gap:6px;padding:6px 12px 6px 9px;border-radius:99px;background:rgba(255,255,255,.16);box-shadow:inset 0 0 0 1px rgba(255,255,255,.35);color:#fff;font:600 12px/1 var(--body);letter-spacing:.01em;pointer-events:none}
main .cs .bd-demo svg{width:15px;height:15px}
main .cs .bd-sw{align-items:center}
main .cs .bd-sw-l{margin-right:4px;color:#fff;font:600 12px/1 var(--body);white-space:nowrap;text-shadow:0 1px 6px rgba(0,0,0,.25)}
main .cs .bd:not(.bd-used) .bd-c{animation:bd-pulse 1.8s ease-out infinite}
main .cs .bd:not(.bd-used) .bd-c:nth-of-type(2){animation-delay:.25s}
main .cs .bd:not(.bd-used) .bd-c:nth-of-type(3){animation-delay:.5s}
@keyframes bd-pulse{0%{box-shadow:0 0 0 0 rgba(255,255,255,.55)}70%,100%{box-shadow:0 0 0 9px rgba(255,255,255,0)}}
@media (max-width:600px){main .cs .bd-demo{top:10px;left:10px}main .cs .bd-box{padding-top:56px}main .cs .bd-sw-l{font-size:11px}}
@media (prefers-reduced-motion:reduce){main .cs .bd:not(.bd-used) .bd-c{animation:none}}
@media (max-width:600px){main .cs .bd-sw-l{display:none}}
