/* PageWeave "alive" layer: obsidian + flame theme, rope pipeline tracker, mascot states, rope-towed cards.
   Loaded after app.css and pipeline.css. No inline styles anywhere (page CSP is style-src 'self'). */
:root{
  --bg:#0B0A0E;--rail:#100E15;--surface:#17151F;--surface-2:#1D1A27;--line:rgba(255,255,255,.07);
  --cta:#F06428;--cta-hi:#D94E18;--coral:#FF8A47;
  --flame:linear-gradient(135deg,#FF8A47 0%,#F06428 50%,#D94E18 100%);--flame-glow:0 8px 28px -4px rgba(244,123,56,.45);
  --cream:#F5E6D3;--espresso:#1A1512;--espresso-2:#6B594B;
  --spring:cubic-bezier(.34,1.56,.64,1);--dir:1;
  --serif:var(--sans);
}
:root[dir=rtl]{--dir:-1}
.top h1,.sub-head h2,.panel h3,.pp-head h1,.head h1,.hero h2,.setup h3,.sec-title h3,.empty h2,.bar h2,.room-empty h3,.plan-name,.account-dialog h2{font-weight:750;letter-spacing:-.02em}
.mstat .n,.stat .n,.pct{font-weight:750;font-variant-numeric:tabular-nums lining-nums}
.btn.primary{background:var(--flame);box-shadow:var(--flame-glow)}

/* ---- Mascot ---- */
.bot{position:relative;display:inline-block;flex:none;width:var(--bw,84px);line-height:0;isolation:isolate}
.bot::before{content:"";position:absolute;inset:8% -6% 4%;z-index:-1;border-radius:50%;background:radial-gradient(closest-side,rgba(244,123,56,.5),rgba(244,123,56,0));filter:blur(6px);animation:bot-glow 3s ease-in-out infinite}
.bot img{display:block;width:100%;height:auto}
.bot-in{display:block;position:relative;animation:bot-bob 3s ease-in-out infinite}
.bot .eye{position:absolute;top:22.5%;width:6.4%;height:10.5%;border-radius:99px;background:#FFD9A0;box-shadow:0 0 8px 2px rgba(255,176,90,.85);animation:bot-blink 4.6s infinite;transform-origin:50% 50%}
.bot .eye.l{left:35%}.bot .eye.r{left:59%}
.bot.happy .eye{top:23.5%;width:9%;height:6%;background:none;border:3px solid #FFD9A0;border-bottom:0;border-radius:99px 99px 0 0;box-shadow:none;filter:drop-shadow(0 0 5px rgba(255,176,90,.9));animation:none}
.bot.happy .eye.l{left:33.5%}.bot.happy .eye.r{left:57.5%}
.bot .headset{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.bot-pull .bot-in{animation:bot-tug 1.5s ease-in-out infinite;transform-origin:50% 100%}
.bot{--lean:calc(var(--dir) * -1)}.bot.flip{--lean:var(--dir)}
.bot-pull img{transform:scaleX(var(--dir))}.bot-pull.flip img{transform:scaleX(calc(var(--dir) * -1))}
@keyframes bot-bob{50%{transform:translateY(-4px)}}
@keyframes bot-glow{50%{opacity:.55}}
@keyframes bot-blink{0%,45%,49%,100%{transform:scaleY(1)}47%{transform:scaleY(.1)}}
@keyframes bot-tug{0%,100%{transform:rotate(0)}35%{transform:rotate(calc(var(--lean) * 7deg)) translateX(calc(var(--lean) * 3px))}55%{transform:rotate(calc(var(--lean) * 3deg))}75%{transform:rotate(calc(var(--lean) * 8deg)) translateX(calc(var(--lean) * 4px))}}

/* ---- Rope pipeline tracker ---- */
.pipe-bar{background:color-mix(in srgb,var(--bg) 90%,transparent)}
.rt{--bh:74px;--rg:clamp(24px,3vw,48px);position:relative;max-width:1760px;margin:0 auto;padding:16px clamp(22px,4vw,56px) 12px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px var(--rg);align-items:center}
/* left block: eyebrow, title, the real percentage and the project picker, set off from the journey by a hairline */
.rt-head{position:relative;display:grid;gap:4px;min-width:176px;grid-area:1/1;align-content:center}
.rt-head::after{content:"";position:absolute;inset-block:6px;inset-inline-end:calc(var(--rg) / -2);width:1px;background:linear-gradient(transparent,rgba(244,232,218,.17) 22%,rgba(244,232,218,.17) 78%,transparent)}
.rt-pctrow{display:flex;align-items:center;margin-block:2px 6px}
.rt-head .eyebrow{margin:0;font-size:10.5px;letter-spacing:.15em}
.rt-pct{font:750 34px/1 var(--sans);letter-spacing:-.035em;font-variant-numeric:tabular-nums;background:var(--flame);-webkit-background-clip:text;background-clip:text;color:transparent}
.rt-head .pp-pick{max-width:200px;height:38px;border-radius:12px;padding-inline:13px;background:rgba(255,255,255,.045);border-color:rgba(244,232,218,.17);transition:border-color .2s,background .2s}
.rt-head .pp-pick:hover{border-color:rgba(255,138,71,.55);background:rgba(255,255,255,.07)}
.rt-head .pp-pick:focus-visible{outline:2px solid #FF8A47;outline-offset:2px}
@media (min-width:1280px){.rt-head .pp-pick{max-width:260px}}
/* the bell is the last thing on the row: far top corner of the header (left corner in RTL), clear of the journey */
.rt{--pathY:114px}
#pipeBar{container:rt/inline-size}
/* right column: the bell on the far edge, the next-step button under it, level with the route line, both on the same edge */
.rt-acts{--bell:40px;--btn:48px;display:grid;justify-items:end;align-content:start;grid-area:1/3;align-self:stretch;justify-self:end}
.rt-acts .pp-bellwrap{grid-row:1}
.rt-acts .rt-pull,.rt-acts .rt-busy{grid-row:2;min-height:var(--btn);margin-top:calc(var(--pathY) - var(--bell) - var(--btn) / 2)}
body:has(.page.pp>.cc-hero) #pipeBar .rt-pull{display:none}
.rt-acts .pp-bell{width:40px;height:40px;background:rgba(255,255,255,.045);border-color:rgba(244,232,218,.17);transition:border-color .2s,background .2s,transform .2s}
.rt-acts .pp-bell:hover{border-color:rgba(255,138,71,.55);background:rgba(255,138,71,.1)}
.rt-acts .pp-bell:focus-visible{outline:2px solid #FF8A47;outline-offset:2px}
.rt.swap .rt-track,.rt.swap .rt-head{animation:rt-swap .55s ease-out}
@keyframes rt-swap{from{opacity:.25}}
.rt-pull{white-space:nowrap}
.rt-pull small{display:block;font-size:11px;font-weight:600;opacity:.85;line-height:1.1}
.rt-pull span{display:grid;text-align:start;line-height:1.15}
.rt-head .dv-toph{font-size:15px;font-weight:700;letter-spacing:-.01em;color:var(--text)}
.rt-track{position:relative;height:176px;min-width:0;grid-area:1/2}
.rt-svg{position:absolute;left:0;top:0;overflow:visible;pointer-events:none;fill:none;stroke:none;-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent)}
.rt-meter{position:absolute;inset:0;pointer-events:none}
:root[dir=rtl] .rt-svg{transform:scaleX(-1)}
.rt-edge{fill:none;stroke:rgba(255,236,222,.32);stroke-width:1.2;stroke-linejoin:round}
.rt-edge.f{stroke:rgba(255,236,222,.19)}
.rt-edge.a{stroke:rgba(255,236,222,.17)}
.rt-rim{fill:none;stroke:rgba(255,150,90,.4);stroke-width:1.4;stroke-linecap:round}
.rt-glow{opacity:.38;transition:opacity 1.4s ease}
.rt-track.done .rt-glow{opacity:.85}
.rt-rest,.rt-rest-g,.rt-done,.rt-done-g,.rt-pulse,.rt-pole{fill:none;stroke-linecap:round;stroke-linejoin:round}
.rt-rest{stroke:rgba(244,232,218,.64);stroke-width:2.6;stroke-dasharray:.1 6.5}
.rt-rest-g{stroke:rgba(244,232,218,.08);stroke-width:10}
.rt-done{stroke:url(#rtg-d);stroke-width:3}
.rt-done-g{stroke:url(#rtg-d);stroke-width:7;opacity:.6}
.rt-pulse{stroke:#FFE2C8;stroke-width:3;opacity:0;filter:drop-shadow(0 0 3px rgba(255,170,110,.9))}
.rt-pole{stroke:rgba(244,232,218,.75);stroke-width:1.6}
.rt-cloth{fill:rgba(244,232,218,.55);transform-box:fill-box;transform-origin:0 50%;transition:fill .6s}
.rt-track.done .rt-cloth{fill:#F47B38}
.rt-track.won .rt-cloth{animation:rt-wave .9s ease-in-out 3}
@keyframes rt-wave{50%{transform:skewY(-9deg) scaleX(.86)}}
.rt-post{--r:11px;--pt:8px;position:absolute;z-index:1;display:grid;justify-items:center;padding:var(--pt) 4px 6px;border-radius:14px;text-align:center;text-decoration:none;color:inherit;transform:translate(-50%,calc(-1 * (var(--r) + var(--pt))));transition:background .2s}
.rt-post:hover{background:rgba(255,255,255,.06)}
.rt-post:hover b,.rt-post:hover small{color:#fff}
.rt-post:hover i{transform:scale(1.12);border-color:#FFB07F}
.rt-post:focus-visible{outline:2px solid #FF8A47;outline-offset:1px;background:rgba(255,138,71,.1)}
.rt-post i{width:calc(var(--r) * 2);height:calc(var(--r) * 2);border-radius:50%;background:#16151C;border:2px solid rgba(244,232,218,.72);display:grid;place-items:center;box-sizing:border-box;transition:background .35s,border-color .35s,box-shadow .35s,transform .2s var(--spring)}
.rt-post i svg{width:13px;height:13px;stroke:#fff;stroke-width:3.5;fill:none;opacity:0;transition:opacity .3s}
/* done: green with a check (only where the stage is really done). current: bigger orange ring with a dot and a soft halo. upcoming: empty neutral ring */
.rt-post.on i{background:#26B67A;border-color:#8CE8BE;box-shadow:0 0 0 4px rgba(38,182,122,.16),0 0 12px rgba(38,182,122,.45)}
.rt-post.on:hover i{border-color:#C7F6DF}
.rt-post.on i svg{opacity:1}
.rt-post.next:not(.on) i{border:3px solid #FF8A47;background:#2A1A12;animation:rt-ping 2.6s ease-out infinite}
.rt-post.next:not(.on) i::after{content:"";width:8px;height:8px;border-radius:50%;background:#FF8A47}
@keyframes rt-ping{0%{box-shadow:0 0 0 0 rgba(244,123,56,.5),0 0 14px 2px rgba(244,123,56,.38)}100%{box-shadow:0 0 0 14px rgba(244,123,56,0),0 0 14px 2px rgba(244,123,56,.12)}}
.rt-post.pop i{animation:rt-pop .85s var(--spring)}
@keyframes rt-pop{0%{transform:scale(.7);box-shadow:0 0 0 0 rgba(46,208,140,.75)}50%{transform:scale(1.28)}100%{transform:scale(1);box-shadow:0 0 0 18px rgba(46,208,140,0)}}
.rt-post b{margin-top:8px;font:700 13px/1.2 var(--sans);color:#E1E4EC;white-space:nowrap}
.rt-post small{font-size:12.5px;line-height:1.25;color:#BDC1CD;margin-top:2px;width:max-content;max-width:max(56px,calc(var(--gap,120) * 1px - 12px));text-wrap:balance;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}
.rt-post.on b,.rt-post.on small{color:#fff}
.rt-post.next b,.rt-post.next small{color:#FFA163}
.rt-post.next b{font-weight:800}
.rt-st,.rt-track.tight .rt-post small{position:absolute;width:1px;height:1px;margin:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.rt-track.tight .rt-post{padding-inline:2px}
.rt-track.tight .rt-post b{font-size:12px}
/* account stages (brand, social pages) never block the walk: a dashed ring until done */
.rt-post.acct:not(.on) i{border-style:dashed}
/* The walking robot: four stacked poses, one shown at a time (data-f); --flip turns it for RTL or walking back */
.rt-hiker{position:absolute;left:0;top:0;z-index:2;pointer-events:none;will-change:transform}
.rt-body{position:absolute;inset:0;transform:scaleX(var(--flip,1))}
.rt-body img{position:absolute;inset:0;width:100%;height:100%;opacity:0}
.rt-hiker[data-f=stand] .f-stand,.rt-hiker[data-f=walk-a] .f-walk-a,.rt-hiker[data-f=walk-b] .f-walk-b,.rt-hiker[data-f=cheer] .f-cheer{opacity:1}
.rt-disc{position:absolute;left:50%;bottom:-4px;width:86%;height:11px;transform:translateX(-50%);border-radius:50%;background:radial-gradient(closest-side,rgba(255,160,95,.85),rgba(240,100,40,.3) 55%,rgba(240,100,40,0))}
.rt-hiker.busy[data-f=stand] .f-stand{opacity:0}
.rt-hiker.busy[data-f=stand] .f-walk-a{animation:rt-step .76s steps(1,end) infinite}
.rt-hiker.busy[data-f=stand] .f-walk-b{animation:rt-step .76s steps(1,end) -.38s infinite}
@keyframes rt-step{0%{opacity:1}50%{opacity:0}}
.rt-embers{position:absolute;z-index:3;pointer-events:none}
.rt-embers i{position:absolute;left:-2px;top:-2px;width:4px;height:4px;border-radius:50%;background:#FFB27A;box-shadow:0 0 6px #F47B38;opacity:0;animation:rt-ember 1.3s ease-out forwards}
@keyframes rt-ember{0%{opacity:1;transform:translate(0,0) scale(1)}100%{opacity:0;transform:translate(var(--dx),var(--dy)) scale(.4)}}
.rope-a{fill:none;stroke:#E2601F;stroke-width:4.5;stroke-linecap:round}
.rope-b{fill:none;stroke:#F8E3C8;stroke-width:4.5;stroke-dasharray:3 5;stroke-linecap:butt}
.rt-busy{display:inline-flex;align-items:center;gap:8px;color:var(--coral);font-weight:700;font-size:13.5px}

/* ---- Rope icon + tug-to-generate buttons ---- */
.btn.tug{position:relative;overflow:hidden}
.btn.tug.tugging{cursor:progress}
.btn.tug.tugging::after{content:"";position:absolute;inset:auto 0 0;height:5px;background:repeating-linear-gradient(115deg,#FFE8CC 0 6px,#B8430F 6px 12px);background-size:28px 100%;animation:tug-bar .5s linear infinite}
.btn.tug.tugging svg{animation:tug-ic .5s ease-in-out infinite}
@keyframes tug-bar{to{background-position:calc(var(--dir) * 28px) 0}}
@keyframes tug-ic{50%{transform:translateX(calc(var(--dir) * 3px)) rotate(-8deg)}}

/* ---- Rope-towed cards ---- */
.tow{position:relative;overflow:visible;animation:tow-in .9s var(--spring) backwards,tow-pulse 1.5s ease-out .15s 1}
.tow-in{animation:tow-in .8s var(--spring) backwards;animation-delay:calc(var(--i,0) * 70ms)}
@keyframes tow-in{0%{opacity:0;transform:translateX(calc(var(--dir) * -44px)) rotate(calc(var(--dir) * -1.5deg))}60%{opacity:1}100%{opacity:1;transform:none}}
@keyframes tow-pulse{0%{box-shadow:0 0 0 0 rgba(244,123,56,.75)}100%{box-shadow:0 0 0 16px rgba(244,123,56,0)}}
.tow-rig{position:absolute;top:-38px;inset-inline-end:18px;display:flex;align-items:flex-end;pointer-events:none;animation:tow-rig 1.9s ease-in both;z-index:3}
.tow-rig .bot{--bw:54px}
.tow-rig .bot::before{display:none}
.tow-rig svg{width:38px;height:44px;margin-inline-end:-4px;overflow:visible}
:root[dir=rtl] .tow-rig svg{transform:scaleX(-1)}
@keyframes tow-rig{0%,70%{opacity:1}100%{opacity:0;transform:translateY(-6px)}}

/* ---- Sandstone summary cards ---- */
.pp .panel.cream{background:linear-gradient(160deg,#2B231D,#1E1E24 70%);color:var(--text);border-color:rgba(245,230,211,.16);box-shadow:0 18px 40px -18px rgba(0,0,0,.7),inset 0 1px 0 rgba(245,230,211,.08)}
.cream h3,.cream h4,.cream b,.cream .mstat .n,.cream p{color:var(--text)}
.pp .cream h4,.cream .muted,.cream .mstat .l,.cream small,.cream .eyebrow,.cream .pp-w-tx p{color:var(--ink-2)}
.cream .mstat{background:rgba(245,230,211,.05);border-color:rgba(245,230,211,.12)}
.cream .mstat.hot .n{color:#FF8A80}
.cream .pp-pack{color:var(--text)}.cream .pp-pack.bad,.cream .pp-g.bad{color:#FF8A80}.cream .pp-g.ok{color:#5EE0A8}
.cream .note,.cream .pp-guard{border-color:rgba(245,230,211,.14)}
.cream .btn:not(.primary){color:var(--text);border-color:rgba(245,230,211,.3);background:transparent}
.pp .panel.pp-worker.wk{grid-template-columns:auto minmax(0,1fr) auto;gap:20px;border-color:rgba(244,123,56,.3)}
.pp .panel.pp-worker.wk.cream{border-color:rgba(245,230,211,.16)}
.wk .bot{--bw:92px}
.wk-stats{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.wk-stat{display:inline-flex;align-items:baseline;gap:6px;padding:5px 11px;border-radius:99px;background:rgba(245,230,211,.07);font-size:12.5px;color:var(--ink-2)}
.wk-stat b{font:750 14px/1 var(--sans);font-variant-numeric:tabular-nums;color:var(--text)}
.wk:not(.cream) .wk-stat{background:var(--surface-2);color:var(--dim)}.wk:not(.cream) .wk-stat b{color:var(--text)}

/* ---- Command Center ---- */
.cc-hero{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px;align-items:center;padding:30px 34px;border-radius:var(--r);border:1px solid rgba(244,123,56,.28);background:radial-gradient(120% 140% at calc(50% + var(--dir) * 50%) 0%,rgba(244,123,56,.26),rgba(244,123,56,0) 55%),linear-gradient(135deg,#1D1A27,#17151F)}
.cc-hero h1{font:750 clamp(28px,3.2vw,44px)/1.06 var(--sans);letter-spacing:-.02em;margin:8px 0 0}
.cc-hero .sub{color:var(--dim);margin:10px 0 18px;max-width:58ch}
.cc-hero>.bot{--bw:148px;margin:0;justify-self:end;align-self:center}
.cc-hero>div{min-width:0}
.cc-hero .acts{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.kpi{display:grid;gap:10px;padding:18px 20px;border-radius:var(--r);background:var(--surface);border:1px solid var(--line);color:var(--text);text-decoration:none;transition:transform var(--ease),border-color var(--ease)}
.kpi:hover{transform:translateY(-3px);border-color:rgba(244,123,56,.4)}
.kpi-top{display:flex;align-items:center;gap:10px;color:var(--dim);font-size:13px;font-weight:600}
.kpi-ic{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;flex:none;background:rgba(244,123,56,.16);color:#FF8A47}
.kpi-ic svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.kpi.k2 .kpi-ic{background:rgba(139,92,246,.18);color:#A78BFA}.kpi.k3 .kpi-ic{background:#112E25;color:#10B981}.kpi.k4 .kpi-ic{background:rgba(59,130,246,.18);color:#60A5FA}
.kpi b{font:750 clamp(24px,2.2vw,32px)/1 var(--sans);letter-spacing:-.02em;font-variant-numeric:tabular-nums;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.kpi small{color:var(--dim);font-size:12.5px}
.mix{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px 28px;align-items:center}
.pp .panel.mix h3{grid-column:1/-1}
.mix-donut{position:relative;width:150px;height:150px}
.mix-donut svg{width:100%;height:100%}
.mix-donut circle{fill:none;stroke-width:13}
.mix-mid{position:absolute;inset:0;display:grid;place-content:center;text-align:center}
.mix-mid b{font:750 30px/1 var(--sans);font-variant-numeric:tabular-nums}.mix-mid small{color:var(--dim);font-size:11.5px}
.mix-legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 34px;margin:0;padding:0;list-style:none;max-width:520px}
.mix-legend li{display:flex;align-items:center;gap:9px;font-size:13.5px;color:var(--dim);min-width:0}
.mix-legend i{width:10px;height:10px;border-radius:3px;flex:none}
.mix-legend span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mix-legend b{margin-inline-start:auto;color:var(--text);font-variant-numeric:tabular-nums}
.c1{stroke:#F06428;background:#F06428}.c2{stroke:#8B5CF6;background:#8B5CF6}.c3{stroke:#3B82F6;background:#3B82F6}.c4{stroke:#10B981;background:#10B981}.c5{stroke:#F5B841;background:#F5B841}.c6{stroke:#F5E6D3;background:#F5E6D3}
.mix-ring{stroke:var(--surface-2)}

/* Command Center header controls: search, quote platform, period, account currency */
.cc-bar{position:relative;z-index:5;display:flex;flex-wrap:wrap;align-items:center;gap:12px 14px;padding:12px;border-radius:var(--r);background:var(--surface);border:1px solid var(--line)}
.cc-search{position:relative;flex:1 1 300px;min-width:0;display:flex;align-items:center}
.cc-search>svg{position:absolute;inset-inline-start:14px;width:18px;height:18px;fill:none;stroke:var(--dim);stroke-width:1.9;stroke-linecap:round;pointer-events:none}
.cc-search input{inline-size:100%;min-height:44px;padding-block:10px;padding-inline:42px 14px;border-radius:12px;border:1px solid var(--line);background:var(--surface-2);color:var(--text);font:500 14px/1.3 var(--sans)}
.cc-search input:focus-visible{outline:2px solid #FF8A47;outline-offset:1px;border-color:transparent}
.cc-results{position:absolute;inset-inline:0;inset-block-start:calc(100% + 6px);margin:0;padding:6px;list-style:none;border-radius:14px;background:#1D1A27;border:1px solid rgba(244,123,56,.3);box-shadow:0 18px 40px rgba(0,0,0,.5);max-block-size:360px;overflow:auto}
.cc-results[hidden]{display:none}
.cc-hit{display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:10px;color:var(--text);text-decoration:none;font-size:13.5px;min-width:0}
.cc-hit:hover,.cc-hit:focus-visible{background:rgba(244,123,56,.12);outline:none}
.cc-tx{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.cc-kind{flex:none;padding:3px 8px;border-radius:99px;font-size:11.5px;font-weight:650;background:rgba(244,123,56,.16);color:#FF8A47}
.cc-kind.k-quote,.cc-kind.k-word{background:rgba(139,92,246,.18);color:#A78BFA}.cc-kind.k-order{background:rgba(59,130,246,.18);color:#60A5FA}.cc-kind.k-pain,.cc-kind.k-gap{background:rgba(245,184,65,.16);color:#F5B841}
.cc-none{padding:10px;color:var(--dim);font-size:13px}
.cc-filters{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.cc-seg{display:inline-flex;gap:2px;padding:3px;border-radius:12px;background:var(--surface-2);border:1px solid var(--line)}
.cc-lab{align-self:center;padding-inline:8px 4px;color:var(--dim);font:700 10.5px/1 var(--sans);letter-spacing:.08em;text-transform:uppercase}
.cc-chip{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 11px;border:0;border-radius:9px;background:transparent;color:var(--dim);font:600 12.5px/1 var(--sans);cursor:pointer;white-space:nowrap;transition:background var(--ease),color var(--ease)}
.cc-chip b{font-weight:700;font-variant-numeric:tabular-nums;color:var(--text);opacity:.7}
.cc-chip:hover:not(:disabled){color:var(--text);background:rgba(255,255,255,.05)}
.cc-chip.on{background:var(--pw-flame,linear-gradient(135deg,#FF8A47,#F06428 50%,#D94E18));color:#fff}
.cc-chip.on b{color:#fff;opacity:.9}
.cc-chip:disabled{opacity:.4;cursor:default}
.cc-chip:focus-visible{outline:2px solid #FF8A47;outline-offset:1px}
.cc-market{display:inline-flex;align-items:center;gap:7px;min-height:42px;padding:0 13px;border-radius:12px;border:1px solid var(--line);background:var(--surface-2);color:var(--text);font:700 13px/1 var(--sans);text-decoration:none}
.cc-market svg{width:17px;height:17px;fill:none;stroke:#10B981;stroke-width:1.8;stroke-linecap:round}
.cc-market:hover{border-color:rgba(16,185,129,.5)}
@media(max-width:760px){
  .cc-bar{padding:10px}
  .cc-filters{flex-wrap:nowrap;overflow-x:auto;inline-size:100%;scrollbar-width:none;padding-block-end:2px}
  .cc-filters::-webkit-scrollbar{display:none}
  .cc-seg,.cc-market{flex:none}
}

/* ---- Sidebar ---- */
.nav-n{font-variant-numeric:tabular-nums;color:var(--coral);font-weight:700;margin-inline-end:5px}
.help-card{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 12px;align-items:center;padding:14px;border-radius:20px;border:1px solid rgba(244,123,56,.26);background:radial-gradient(120% 120% at 0% 0%,rgba(244,123,56,.2),rgba(244,123,56,0) 60%),var(--surface)}
.help-card .bot{--bw:54px;grid-row:1/3}
.help-card b{font-size:14px;align-self:end}
.help-card .btn{grid-column:2;justify-self:start;padding:7px 14px;font-size:12.5px;min-height:0}

@media(max-width:1180px){
  .kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
}
/* the header stacks (title row over the journey) when its own width is too small for head, journey and the action column side by side */
@container rt (max-width:1179px){
  .rt{grid-template-columns:minmax(0,1fr) auto;column-gap:12px}
  .rt-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-width:0}
  .rt-head .eyebrow{display:none}
  .rt-pctrow{display:contents}
  .rt-head .pp-pick{order:2}
  .rt-head::after{display:none}
  .rt-acts{display:flex;align-items:center;gap:12px;grid-area:1/2;align-self:center}
  .rt-acts .rt-pull,.rt-acts .rt-busy{margin-top:0}
  .rt-track{grid-area:2/1/auto/-1}
}
@container rt (max-width:1319px){
  body:not(:has(.page.pp>.cc-hero)) .rt{grid-template-columns:minmax(0,1fr) auto;column-gap:12px}
  body:not(:has(.page.pp>.cc-hero)) .rt-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-width:0}
  body:not(:has(.page.pp>.cc-hero)) .rt-head .eyebrow{display:none}
  body:not(:has(.page.pp>.cc-hero)) .rt-pctrow{display:contents}
  body:not(:has(.page.pp>.cc-hero)) .rt-head .pp-pick{order:2}
  body:not(:has(.page.pp>.cc-hero)) .rt-head::after{display:none}
  body:not(:has(.page.pp>.cc-hero)) .rt-acts{display:flex;align-items:center;gap:12px;grid-area:1/2;align-self:center}
  body:not(:has(.page.pp>.cc-hero)) .rt-acts .rt-pull,body:not(:has(.page.pp>.cc-hero)) .rt-acts .rt-busy{margin-top:0}
  body:not(:has(.page.pp>.cc-hero)) .rt-track{grid-area:2/1/auto/-1}
}
@media(max-width:720px){
  .rt{padding:12px 14px 6px;gap:6px 12px}
  .rt-pct{font-size:24px}
  .rt-pctrow{margin-block:0}
  .rt-acts .pp-bell{width:38px;height:38px}
  .rt-head .pp-pick{max-width:150px}
  .rt-pull span{display:none}.rt-pull{padding-inline:12px}
  /* phone: the stop shows its number; the stage name stays in the accessible name and the tooltip */
  .rt-post{--r:9px;--pt:6px;padding-inline:3px}
  .rt-post small{position:absolute;width:1px;height:1px;margin:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .rt-post b{margin-top:6px;font-size:11.5px}
  .rt-post i svg{width:11px;height:11px}
  .rt-post.next:not(.on) i{border-width:2.5px}
  .rt-post.next:not(.on) i::after{width:6px;height:6px}
  .cc-hero{grid-template-columns:1fr;padding:22px 20px}
  .cc-hero>.bot{--bw:88px;position:relative;grid-row:1;justify-self:end;margin:0}
  .cc-hero h1{padding-inline-end:0}
  .kpis{gap:10px}.kpi{padding:14px}
  .mix{grid-template-columns:1fr;justify-items:center}.mix-legend{width:100%;max-width:none}
  .pp .panel.pp-worker.wk{grid-template-columns:auto minmax(0,1fr);gap:14px}
  .wk .bot{--bw:64px}
}
@media(prefers-reduced-motion:reduce){
  .bot-in,.bot::before,.bot .eye,.rt-post.next i,.rt-hiker img,.rt-cloth,.rt-post.pop i,.rt.swap .rt-track,.rt.swap .rt-head,.btn.tug.tugging::after,.btn.tug.tugging svg{animation:none!important}
  .tow,.tow-in{animation:none!important}.tow-rig{display:none}
  .rt-glow,.rt-cloth,.rt-post i,.rt-post i svg{transition:none}.rt-embers{display:none}
  .rt-hiker.busy[data-f=stand] .f-stand{opacity:1}
}

/* crew board status pills and the narrow live-feed column */
.pp .pp-mate .pl{grid-column:1/-1;justify-self:start;width:max-content;max-width:100%;overflow:visible;white-space:nowrap}
.pp .pp-two .mstats.n4{grid-template-columns:repeat(2,minmax(0,1fr))}

/* Messaging setup belongs to the main Settings navigation, independent of billing. */
.messaging-connections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.messaging-connection{min-width:0}
.messaging-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
.messaging-heading h3{display:flex;align-items:center;gap:10px;margin:0}
.messaging-heading h3 svg{width:22px;height:22px;flex:none}
.messaging-connection p{color:var(--dim);line-height:1.6;overflow-wrap:anywhere}
.messaging-connection summary{cursor:pointer;font-weight:600;padding-block:10px}
.messaging-connection summary:focus-visible{outline:2px solid var(--coral);outline-offset:4px}
.plan-upgrade-note{max-width:60ch}
@media(max-width:760px){.messaging-connections{grid-template-columns:1fr}}


/* Branded merchant messaging channels. */
.messaging-connections{align-items:start}
.messaging-connection{position:relative;overflow:hidden;padding:24px 26px;padding-inline-start:29px;border-inline-start:0;background:linear-gradient(112deg,var(--surface) 0%,var(--channel-surface) 58%,var(--surface) 100%);transition:transform .18s ease,background .18s ease}
.messaging-connection:hover{border-inline-start-color:var(--channel-accent);transform:translateY(-2px)}
.messaging-identity{display:flex;align-items:center;gap:14px;min-width:0}
.messaging-identity h3{margin:0;overflow-wrap:anywhere}
.messaging-brand-icon{display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;border:0;border-radius:10px;background:transparent;color:#fff}
.social-brand-mark{display:block;width:24px;height:24px;fill:currentColor;stroke:none}
.messaging-connection--whatsapp{--channel-accent:#45d483;--channel-surface:color-mix(in srgb,#087846 70%,var(--surface));background:linear-gradient(118deg,var(--channel-surface),color-mix(in srgb,#075b39 82%,var(--surface)))}
.messaging-connection--whatsapp .messaging-brand-icon{color:#45d483}
.messaging-connection--messenger{--channel-accent:#91aaff;--channel-surface:color-mix(in srgb,#1555b8 64%,var(--surface));background:linear-gradient(120deg,var(--channel-surface),#283371 63%,#352659)}
[dir=rtl] .messaging-connection--messenger{background:linear-gradient(240deg,var(--channel-surface),#283371 63%,#352659)}
.messaging-connection--messenger .messaging-brand-icon{background:#172550}
.messaging-connection--instagram{--channel-accent:#f7a5cd;--channel-surface:#582366;background:radial-gradient(ellipse at 100% 100%,#ed863f65,transparent 62%),linear-gradient(120deg,var(--channel-surface),#712550 65%,#732d43)}
[dir=rtl] .messaging-connection--instagram{background:radial-gradient(ellipse at 0% 100%,#ed863f65,transparent 62%),linear-gradient(240deg,var(--channel-surface),#712550 65%,#732d43)}
.messaging-connection--instagram .messaging-brand-icon{background:radial-gradient(circle at 18% 102%,#ffce6c,#ee5664 39%,#c72caf 71%,#773bdf);color:#fff}
.messaging-connection .meta-live button:focus-visible{outline:2px solid #fff;outline-offset:3px}
.messaging-connection--tiktok{--channel-accent:#25f4ee;--channel-surface:color-mix(in srgb,#050609 96%,var(--surface));background:radial-gradient(ellipse at 95% 15%,color-mix(in srgb,#25f4ee 20%,transparent),transparent 52%),radial-gradient(ellipse at 5% 90%,color-mix(in srgb,#fe2c55 18%,transparent),transparent 55%),linear-gradient(112deg,var(--surface),var(--channel-surface) 58%,var(--surface))}
.messaging-connection--tiktok .messaging-brand-icon{color:#fff}
.messaging-connection--tiktok .messaging-brand-icon svg{filter:drop-shadow(-1.5px 0 #25f4ee) drop-shadow(1.5px 0 #fe2c55)}
.messaging-connection .messaging-description{margin:16px 0 10px;max-width:58ch}
.messaging-connection .meta-live{padding-top:12px;border-top:1px solid var(--line)}
.messaging-connection .messaging-description,.messaging-connection .meta-live,.messaging-connection details p{color:#d7e5ef}
.messaging-connection .meta-live .muted,.messaging-connection .meta-live .fine,.messaging-connection .meta-live .small,.messaging-connection .meta-live .meta-line{color:#d7e5ef}
.messaging-connection .meta-live{border-color:rgba(231,239,248,.28)}
.messaging-connection .meta-live .btn:not(.primary){color:#f4f7fa;border-color:rgba(231,239,248,.48);background:rgba(9,14,27,.18)}
.messaging-heading>.pl{flex:none}
.messaging-connection .messaging-heading>.pl{color:#f4f7fa;background:#18222a;border-color:#697782}
.messaging-connection .messaging-heading>.pl i{background:#c6d2dc}
.messaging-connection .meta-line>.pl.ok{color:#bdf9d9;background:#142d30;border-color:#638b81}
.messaging-connection details{border-top:1px solid var(--line);padding-top:4px}
.messaging-connection summary{min-height:44px;display:flex;align-items:center}
.messaging-connection:focus-within{outline:2px solid color-mix(in srgb,var(--channel-accent) 60%,transparent);outline-offset:2px}
@media(max-width:760px){.messaging-connection{padding:20px}.messaging-identity{gap:12px}.messaging-brand-icon{width:46px;height:46px;flex-basis:46px}}
@media(prefers-reduced-motion:reduce){.messaging-connection,.messaging-connection:hover{transition:none;transform:none}}
.messaging-connection:before{content:"";position:absolute;inset-block:14px;border-radius:4px;width:3px;background:var(--channel-accent);inset-inline-start:0}
.messaging-connection--tiktok:before{background:linear-gradient(180deg,#25f4ee,#fe2c55)}
.messaging-brand-icon img{display:block;object-fit:contain;width:34px;height:34px}
@media(max-width:760px){.messaging-connection{padding-inline-start:20px}}
/* Motion only where it shows progress or the path: a running AI job, the robot moving along the track, the next stop
   and the done line. Idle mascot loops (bob, glow, blink, idle tug) are decoration and stay still. */
.bot::before,.bot-in,.bot .eye,.bot.happy .eye,.bot-pull .bot-in{animation:none}
