/* Leash: overrides on top of the base stylesheet */
html:root{--font-mona:'Instrument Sans',ui-sans-serif,system-ui,sans-serif;--font-martian:'JetBrains Mono',ui-monospace,monospace}
:root{--bg:#FBFAF6;--bg-band:#F3F1EA;--surface-1:#fff;--surface-2:#F4F2EC;--surface-3:#E9E6DD;--well:#F1EFE8;
 --hover:#1a160d0a;--hover-strong:#1a160d14;--line:#1a160d17;--line-strong:#1a160d29;
 --text-1:#17150F;--text-2:#55514A;--text-3:#7A756B;--text-4:#BDB8AD;
 --ice:#4E7A0E;--ice-soft:#4E7A0E1a;--ice-mid:#C6FF3D;--ice-deep:#F2F9DD;--line-ice:#4E7A0E57;--ice-wash:#4E7A0E0d;--route:#4E7A0E;
 --cta:#17150F;--cta-hover:#2E2A22;--on-cta:#FBFAF6;--redact:#17150F;
 --light-top:radial-gradient(55% 60% at 50% 0%,#C6FF3D33,transparent 70%);
 --bezel-line:linear-gradient(90deg,transparent,#1a160d26 50%,transparent)}
.theme-dark{--bg:#0B0B0C;--bg-band:#0F0F10;--surface-1:#141416;--surface-2:#1A1A1D;--surface-3:#232327;--well:#0000004d;
 --line:#ECEAE414;--line-strong:#ECEAE426;--text-1:#ECEAE4;--text-2:#A4A29B;--text-3:#7E7C75;--text-4:#46453F;
 --ice:#C6FF3D;--ice-soft:#C6FF3D24;--ice-mid:#5D7A1A;--ice-deep:#1C2608;--line-ice:#C6FF3D52;--ice-wash:#C6FF3D0d;--route:#C6FF3D;
 --glow-ice:0 0 8px #C6FF3D99;--cta:#C6FF3D;--cta-hover:#D7FF6E;--on-cta:#0B0B0C;--ok:#C6FF3D;--fail:#FF7A7A;
 --light-top:radial-gradient(50% 60% at 50% 0%,#C6FF3D2e,#5D7A1A14 40%,transparent 70%);
 --bezel-line:linear-gradient(90deg,transparent,#C6FF3D 50%,transparent)}
/* code colours */
.text-\[\#C9D3DD\]{color:#E4DFD2!important}.text-\[\#8FA3B8\]{color:#A7B28A!important}.text-\[\#BDF1FF\]{color:#E3FF9E!important}
/* tighter, squarer shapes */
.rounded-\[22px\],.rounded-\[24px\]{border-radius:12px!important}
.rounded-\[16px\],.rounded-\[18px\],.rounded-\[20px\]{border-radius:10px!important}
.rounded-\[14px\]{border-radius:8px!important}
a.rounded-full.font-\[500\],span.rounded-full.bg-cta{border-radius:9px!important}
p.type-label>span.size-1\.5.rounded-full{border-radius:1px;transform:rotate(45deg);width:7px;height:7px}
h1,h2,.type-h1,.type-h2{letter-spacing:-.035em!important;font-weight:600!important}
#problem-title{font-weight:600!important}
/* hero: left-aligned, icons only on the right */
.lx-hero{position:relative;display:flex;flex-direction:column;align-items:flex-start;text-align:left;max-width:760px}
.lx-hero .justify-center{justify-content:flex-start!important}
.lx-hero h1{line-height:.98}
.lx-hidden{display:none!important}
/* pieces that had cool tints baked in */
.lx-phone{background:linear-gradient(180deg,#F2F9DD 0%,#F8F7F1 55%,#fff 100%)}
.lx-hl{background:linear-gradient(180deg,#C6FF3D1f,#C6FF3D05)}
/* rules file: 2 x 2 instead of a row of 4 */
@media (min-width:1024px){.lx-grid2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.lx-grid2>figure{height:360px!important}}

.lxd{width:100%;max-width:100%;min-width:0;margin-top:8px;border-radius:14px;background:var(--bg);color:var(--text-1);box-shadow:0 0 0 1px var(--line-strong),0 40px 90px -30px #0009;overflow:hidden;text-align:left}
.lxd-top{display:flex;align-items:center;gap:16px;padding:12px 16px;border-bottom:1px solid var(--line)}
.lxd-dots{display:flex;gap:6px}.lxd-dots i{width:10px;height:10px;border-radius:50%;background:var(--surface-3)}
.lxd-steps{display:flex;gap:6px;margin:0 auto;padding:0;list-style:none;flex-wrap:wrap;justify-content:center}
.lxd-steps li{display:flex;align-items:center;gap:7px;height:28px;padding:0 11px 0 5px;border-radius:7px;font-size:12.5px;color:var(--text-3);transition:color .3s,background .3s}
.lxd-steps b{display:grid;place-items:center;width:18px;height:18px;border-radius:5px;font:500 10.5px var(--font-martian);background:var(--surface-2);color:var(--text-3);transition:inherit}
.lxd-steps li.on{color:var(--text-1);background:var(--surface-2)}.lxd-steps li.on b{background:var(--ice);color:#0B0B0C}
.lxd-steps li.done b{color:var(--ice)}
.lxd-live{display:flex;align-items:center;gap:6px;font:500 10.5px var(--font-martian);text-transform:uppercase;letter-spacing:.12em;color:var(--text-3)}
.lxd-live i{width:6px;height:6px;border-radius:50%;background:var(--ice);animation:lxdpulse 1.6s infinite}
@keyframes lxdpulse{50%{opacity:.25}}
.lxd-grid{display:grid;grid-template-columns:minmax(0,1fr) 44px minmax(0,1fr) 44px minmax(0,1fr);min-height:400px}
.lxd-pane{padding:18px 18px 20px;display:flex;flex-direction:column;min-width:0}
.lxd-h{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:0 0 14px;font-size:13px;font-weight:600}
.lxd-h span{display:inline-flex;align-items:center;gap:5px;font:400 10.5px var(--font-martian);color:var(--text-3);white-space:nowrap}
.lxd-ico{width:12px;height:12px}
.lxd-term{flex:1;font:12px/1.65 var(--font-martian);color:var(--text-2);display:flex;flex-direction:column;gap:8px}
.lxd-term .me{align-self:flex-end;max-width:92%;background:var(--surface-3);color:var(--text-1);border-radius:10px 10px 3px 10px;padding:9px 11px;font:13px/1.45 var(--font-mona)}
.lxd-term .me.issue{background:#FF7A7A14;box-shadow:inset 0 0 0 1px #FF7A7A40}
.lxd-term .me small{display:block;font:10.5px var(--font-martian);color:#FF9A9A;margin-bottom:3px}
.lxd-term .ln{opacity:0;transform:translateY(4px);transition:.35s}.lxd-term .ln.in{opacity:1;transform:none}
.lxd-term .k{color:var(--ice)}.lxd-term .bad{color:#FF8A8A}.lxd-term .wait{color:#F4B860}
.lxd-caret{display:inline-block;width:7px;height:14px;background:var(--text-1);vertical-align:-2px;margin-left:1px;animation:lxdpulse 1s steps(1) infinite}
.lxd-wire{position:relative;display:flex;align-items:center}
.lxd-wire:before{content:"";position:absolute;left:0;right:0;top:50%;border-top:1px dashed var(--line-strong)}
.lxd-wire span{position:absolute;left:0;top:50%;width:9px;height:9px;margin-top:-4px;border-radius:50%;background:var(--ice);box-shadow:0 0 12px var(--ice);opacity:0}
.lxd-wire.go span{animation:lxdrun .7s cubic-bezier(.65,0,.35,1) forwards}
.lxd-wire.red span{background:#FF7A7A;box-shadow:0 0 12px #FF7A7A;animation:lxdhit .7s forwards}
@keyframes lxdrun{0%{left:0;opacity:1}100%{left:calc(100% - 9px);opacity:1}}
@keyframes lxdhit{0%{left:0;opacity:1}60%{left:40%;opacity:1}100%{left:40%;opacity:0;transform:scale(2.4)}}
.lxd-rules{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px;font:11.5px/1.4 var(--font-martian);color:var(--text-2)}
.lxd-rules li{padding:9px 10px;border-radius:8px;background:var(--surface-1);box-shadow:inset 0 0 0 1px var(--line);transition:background .25s,box-shadow .25s,color .25s,opacity .25s}
.lxd-rules code{font:inherit;font-weight:500;color:var(--text-1);margin-right:6px}
.lxd-rules li.scan{background:var(--surface-2);box-shadow:inset 0 0 0 1px var(--line-strong)}
.lxd-rules li.dim{opacity:.4}
.lxd-rules li.ok{background:#C6FF3D14;box-shadow:inset 0 0 0 1px #C6FF3D80;color:var(--text-1)}
.lxd-rules li.ask{background:#F4B86014;box-shadow:inset 0 0 0 1px #F4B86080;color:var(--text-1)}
.lxd-rules li.no{background:#FF7A7A14;box-shadow:inset 0 0 0 1px #FF7A7A80;color:var(--text-1)}
.lxd-verdict{margin-top:auto;padding-top:14px;min-height:64px}
.lxd-verdict div{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:9px;font-size:13px;animation:lxdstamp .45s cubic-bezier(.2,1.6,.4,1)}
.lxd-verdict b{font:600 11px var(--font-martian);letter-spacing:.12em;padding:4px 7px;border-radius:5px}
.lxd-verdict .ok{background:#C6FF3D12}.lxd-verdict .ok b{background:#C6FF3D;color:#0B0B0C}
.lxd-verdict .ask{background:#F4B86012}.lxd-verdict .ask b{background:#F4B860;color:#0B0B0C}
.lxd-verdict .no{background:#FF7A7A12}.lxd-verdict .no b{background:#FF7A7A;color:#0B0B0C}
@keyframes lxdstamp{0%{transform:scale(1.25);opacity:0}100%{transform:none;opacity:1}}
.lxd-flow{list-style:none;margin:0 0 12px;padding:0;display:flex;flex-direction:column;gap:7px;font-size:12.5px;min-height:96px}
.lxd-flow li{display:flex;align-items:center;gap:8px;opacity:0;transform:translateY(4px);transition:.35s}
.lxd-flow li.in{opacity:1;transform:none}
.lxd-flow li i{width:16px;height:16px;border-radius:50%;flex:none;display:grid;place-items:center;font:600 9px var(--font-martian);background:#C6FF3D;color:#0B0B0C}
.lxd-flow li.w i{background:#F4B860}.lxd-flow li.x i{background:#FF7A7A}
.lxd-flow li span{margin-left:auto;font:10.5px var(--font-martian);color:var(--text-3)}
.lxd-flow button{margin-left:auto;height:26px;padding:0 10px;border:0;border-radius:6px;background:#F4B860;color:#0B0B0C;font:600 11.5px var(--font-mona);transition:transform .15s}
.lxd-flow button.press{transform:scale(.9)}
.lxd-phone{margin-top:auto;border-radius:12px;padding:14px 12px 14px;background:linear-gradient(180deg,#F2F9DD,#F8F7F1 60%,#fff);color:#17150F;min-height:132px}
.lxd-clock{margin:0 0 10px;text-align:center;font:500 30px/1 var(--font-mona);letter-spacing:-.04em}
.lxd-note{display:flex;gap:9px;align-items:flex-start;padding:9px;border-radius:10px;background:#fff;box-shadow:0 8px 24px -10px #0004,0 0 0 1px #0000000d;animation:lxdin .5s cubic-bezier(.16,1,.3,1)}
.lxd-note p{margin:0;font-size:12px;line-height:1.4}.lxd-note small{color:#6b6760}
.lxd-note .t{display:flex;justify-content:space-between;font-weight:600}
.lxd-none{text-align:center;font-size:12px;color:#7a756b;padding:8px;animation:lxdin .5s}
@keyframes lxdin{0%{transform:translateY(-10px);opacity:0}100%{transform:none;opacity:1}}
.lxd-cases{display:flex;border-top:1px solid var(--line)}
.lxd-cases button{flex:1;position:relative;padding:12px 10px 13px;border:0;background:none;color:var(--text-3);font:13px var(--font-mona);text-align:left;cursor:pointer;border-right:1px solid var(--line)}
.lxd-cases button:last-child{border-right:0}
.lxd-cases button em{display:block;font:normal 10.5px var(--font-martian);text-transform:uppercase;letter-spacing:.1em;margin-bottom:2px}
.lxd-cases button.on{color:var(--text-1);background:var(--surface-1)}
.lxd-cases button i{position:absolute;left:0;bottom:0;height:2px;width:0;background:var(--ice)}
.lxd-cases button.on i{animation:lxdbar var(--d) linear forwards}
@keyframes lxdbar{to{width:100%}}
@media (max-width:900px){.lxd-grid{grid-template-columns:minmax(0,1fr)}.lxd-pane{padding:16px 14px}.lxd-h span{white-space:normal;text-align:right}.lxd-rules{font-size:11px}.lxd-term .me{max-width:100%}.lxd-wire{height:26px;justify-content:center}
 .lxd-wire:before{left:50%;right:auto;top:0;bottom:0;border-top:0;border-left:1px dashed var(--line-strong)}
 .lxd-wire span{left:50%!important;margin-left:-4px;top:0;animation:none!important;opacity:0!important}
 .lxd-steps{display:none}.lxd-cases{flex-wrap:wrap}.lxd-cases button{flex:1 1 50%;border-bottom:1px solid var(--line)}}
@media (prefers-reduced-motion:reduce){.lxd *{animation-duration:.01ms!important;transition-duration:.01ms!important}}

.lx-page{max-width:780px;margin:0 auto;padding:72px 24px 104px;color:var(--text-2);font-size:16px;line-height:1.65}
.lx-page h1{color:var(--text-1);font-size:clamp(2.4rem,1.6rem + 3vw,3.6rem)!important;line-height:1.02!important;letter-spacing:-.035em;font-weight:600;margin:0 0 20px!important}
.lx-page h2{color:var(--text-1);font-size:26px!important;letter-spacing:-.025em;font-weight:600;margin:56px 0 12px;scroll-margin-top:90px}
.lx-page h3{color:var(--text-1);font-size:18px!important;font-weight:600;margin:32px 0 8px}
.lx-page p,.lx-page ul,.lx-page ol{margin:0 0 16px}.lx-page li{margin:6px 0}
.lx-page ul{list-style:disc!important;padding-left:22px!important}.lx-page ol{list-style:decimal!important;padding-left:22px!important}
.lx-page ul.lx-toc{list-style:none!important;padding:0!important}.lx-page li::marker{color:var(--text-4)}
.lx-page strong{color:var(--text-1);font-weight:600}
.lx-page a{color:var(--ice);text-decoration:underline;text-underline-offset:3px}
.lx-page blockquote{margin:24px 0;padding:14px 18px;border-left:3px solid var(--ice);background:var(--surface-2);border-radius:0 8px 8px 0;color:var(--text-1)}
.lx-page blockquote p{margin:0}
.lx-page code{font:13.5px var(--font-martian);background:var(--surface-2);padding:2px 6px;border-radius:5px;color:var(--text-1)}
.lx-page pre{background:#0B0B0C;color:#ECEAE4;padding:18px 20px;border-radius:10px;overflow-x:auto;margin:0 0 20px}
.lx-page pre code{background:none;padding:0;color:inherit;font-size:13px;line-height:1.7}
.lx-page table{width:100%;border-collapse:collapse;margin:0 0 20px;font-size:14.5px;display:block;overflow-x:auto}
.lx-page th,.lx-page td{text-align:left;padding:10px 12px;border-bottom:1px solid var(--line);vertical-align:top}
.lx-page th{color:var(--text-1);font-weight:600}
.lx-page em{color:var(--text-3)}
.lx-crumb{font:500 11px var(--font-martian);letter-spacing:.14em;text-transform:uppercase;color:var(--ice);margin:0 0 18px;display:flex;gap:8px;align-items:center}
.lx-crumb:before{content:"";width:7px;height:7px;border-radius:1px;transform:rotate(45deg);background:var(--ice)}
.lx-toc{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 8px;padding:0;list-style:none}
.lx-toc a{display:inline-flex;height:30px;align-items:center;padding:0 11px;border-radius:7px;background:var(--surface-2);color:var(--text-1)!important;text-decoration:none!important;font-size:13px}

.lx-page.lxa{max-width:920px}
.lxa-lead{font-size:17px;color:var(--text-2);max-width:62ch}
.lxa-card{background:var(--surface-1);border-radius:12px;box-shadow:var(--shadow-card-v);padding:22px 22px 18px;margin:0 0 18px}
.lxa-card h2{margin:0 0 12px!important;font-size:20px!important}
.lxa-card.done{box-shadow:inset 0 0 0 1px var(--line-ice),var(--shadow-card-v)}
.lxa-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
.lxa-bar{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;align-items:center;margin:0 0 18px;font-size:14px}
.lxa-btn{display:inline-flex;align-items:center;justify-content:center;height:42px;padding:0 18px;border:0;border-radius:9px;background:var(--cta);color:var(--on-cta);font:500 14.5px var(--font-mona);cursor:pointer}
.lxa-btn:hover{background:var(--cta-hover)}.lxa-btn:disabled{opacity:.55;cursor:wait}
.lxa-btn.sm{height:32px;padding:0 12px;font-size:13px}
.lxa-btn.ghost{background:transparent;color:var(--text-1);box-shadow:inset 0 0 0 1px var(--line-strong)}.lxa-btn.ghost:hover{background:var(--hover)}
.lxa-muted{color:var(--text-3);font-size:14px}
.lxa-ok{color:var(--ok);font-weight:500}.lxa-bad{color:var(--fail);font-weight:500}
.lxa-form{display:flex;flex-direction:column;gap:14px;margin:6px 0 0}
.lxa-form label{display:flex;flex-direction:column;gap:6px;font-size:14px;color:var(--text-1)}
.lxa-form input[type=text],.lxa-form input:not([type]),.lxa-form input[name=ref],.lxa-inline input{height:40px;border-radius:8px;border:0;box-shadow:inset 0 0 0 1px var(--line-strong);background:var(--bg);padding:0 12px;font:15px var(--font-mona);color:var(--text-1)}
.lxa-inline{display:inline-flex;align-items:center;gap:8px;font-size:14px;margin:4px 0 12px}.lxa-inline input{width:80px}
.lxa-form fieldset{border:0;padding:0;margin:0}.lxa-form legend{font-size:14px;margin:0 0 8px}
.lxa-chips{display:flex;flex-wrap:wrap;gap:6px}
.lxa-chips label{flex-direction:row;align-items:center;gap:6px;height:32px;padding:0 10px;border-radius:7px;background:var(--surface-2);font-size:13px;cursor:pointer}
.lxa-job{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 0;border-top:1px solid var(--line);font-size:15px}
.lxa-job.col{flex-direction:column;align-items:stretch}
.lxa-state{font:500 11px var(--font-martian);text-transform:uppercase;letter-spacing:.08em;padding:3px 7px;border-radius:5px;background:var(--surface-2)}
.lxa-state.s-funded,.lxa-state.s-paid{background:var(--ice-soft);color:var(--ice)}.lxa-state.s-disputed{background:#d930361a;color:var(--fail)}
.lxa-pay{margin-top:10px;padding:14px 16px;border-radius:10px;background:var(--surface-2)}
.lxa-pay dl,.lxa-slot dl{display:grid;grid-template-columns:max-content 1fr;gap:6px 16px;margin:8px 0 14px;font-size:14px}
.lxa-pay dt,.lxa-slot dt{color:var(--text-3)}.lxa-pay dd,.lxa-slot dd{margin:0}
.lxa-row{display:flex;flex-wrap:wrap;gap:8px}
.lxa-shot{max-width:100%;max-height:420px;border-radius:8px;margin:0 0 12px;box-shadow:var(--shadow-card-v)}
.lxa-toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:60;max-width:min(560px,calc(100vw - 32px));padding:12px 16px;border-radius:10px;background:var(--cta);color:var(--on-cta);font-size:14px;box-shadow:var(--shadow-float-v)}
.lxa-toast.bad{background:var(--fail);color:#fff}
