:root{color-scheme:light dark;--bg:light-dark(#f4f4f5,#09090b);--surface:light-dark(#fff,#18181b);--surface-2:light-dark(#f4f4f5,#27272a);--text:light-dark(#18181b,#f4f4f5);--muted:light-dark(#52525b,#a1a1aa);--line:light-dark(#d4d4d8,#3f3f46);--accent:light-dark(#1d4ed8,#60a5fa);--accent-text:light-dark(#fff,#09090b);--danger:light-dark(#b91c1c,#f87171);--danger-bg:light-dark(#fef2f2,#2a1215);--success:light-dark(#15803d,#4ade80);--success-bg:light-dark(#f0fdf4,#0f2a19);--warning-bg:light-dark(#fff7ed,#2a1a0e);--warning-line:light-dark(#ea580c,#fb923c);--radius:8px;--font:system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;--mono:ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;--palette-0:#0fb5ae;--palette-1:#4046ca;--palette-2:#f68511;--palette-3:#de3d82;--palette-4:#7e84fa;--palette-5:#72e06a;--palette-6:#147af3;--palette-7:#9a4dff;--palette-8:#e8c600;--palette-9:#cb5d00;--palette-10:#008f5d;--palette-11:#bce931}:root[data-theme=dark]{color-scheme:dark}:root[data-theme=light]{color-scheme:light}*,:before,:after{box-sizing:border-box}html,body{min-height:100%;margin:0}body{background:var(--bg);color:var(--text);font:16px/1.5 var(--font)}h1{letter-spacing:-.015em;margin:0 0 16px;font-size:1.6rem;line-height:1.25}h1:focus{outline:none}h2{margin:0 0 12px;font-size:1.15rem}h3{margin:12px 0 8px;font-size:1rem}a{color:var(--accent)}code{font-family:var(--mono);overflow-wrap:anywhere;font-size:.9em}.muted{color:var(--muted)}.sr-only{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);width:100%;padding:24px}.card h1{margin:0 0 12px;font-size:1.5rem}.card p{margin:0 0 16px}.subnav a{color:var(--text);border-radius:var(--radius);padding:6px 10px;text-decoration:none}.subnav a[aria-current=page]{background:var(--surface-2);font-weight:600}.status{align-items:center;gap:6px;display:inline-flex}.dot{background:var(--muted);border-radius:50%;width:10px;height:10px}.dot-connected{background:var(--success)}.dot-reconnecting{background:var(--warning-line)}.dot-failed{background:var(--danger)}main#content{padding:24px}.page-wide{max-width:1100px;margin:0 auto}.page-narrow{max-width:640px;margin:0 auto}.stack{flex-direction:column;gap:16px;display:flex}.grid-2{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:16px;display:grid}.subnav{flex-wrap:wrap;gap:4px;margin-bottom:16px;display:flex}.breadcrumb{color:var(--muted);margin:0 0 8px}form{flex-direction:column;display:flex}.field{flex-direction:column;margin-bottom:12px;display:flex}label{margin-bottom:6px;font-weight:600}.hint{margin:4px 0 0;font-size:.875rem}input,textarea,select{width:100%;font:inherit;color:inherit;background:var(--bg);border:1px solid var(--line);border-radius:var(--radius);padding:9px 12px}input[type=radio]{width:auto}textarea{resize:vertical}fieldset{border:none;margin:0;padding:0}.radios label{align-items:center;gap:8px;font-weight:400;display:flex}input:focus-visible,textarea:focus-visible,select:focus-visible,button:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:8px;display:flex}button,a.button{font:inherit;color:var(--text);border:1px solid var(--line);border-radius:var(--radius);cursor:pointer;background:0 0;padding:9px 16px;font-weight:600;text-decoration:none;display:inline-block}button.primary,a.button.primary{color:var(--accent-text);background:var(--accent);border-color:var(--accent)}button.danger,a.button.danger{color:var(--danger);border-color:var(--danger)}button.link{color:var(--accent);border-color:#0000;padding:2px 6px}button:disabled{opacity:.5;cursor:not-allowed}.error{color:var(--danger);background:var(--danger-bg);border-radius:var(--radius);padding:10px 12px}.alert{border:1px solid var(--line);border-radius:var(--radius);flex-direction:column;gap:4px;margin-bottom:16px;padding:12px 14px;display:flex}.alert-warning{background:var(--warning-bg);border-color:var(--warning-line)}.alert-danger{color:var(--danger);background:var(--danger-bg);border-color:var(--danger)}.badge{border:1px solid var(--line);border-radius:999px;padding:1px 8px;font-size:.8rem;font-weight:600;display:inline-block}.badge-good{color:var(--success);background:var(--success-bg);border-color:var(--success)}.badge-bad{color:var(--danger);background:var(--danger-bg);border-color:var(--danger)}.facts{margin:0 0 16px}.facts dt{color:var(--muted);font-size:.875rem}.facts dd{overflow-wrap:anywhere;margin:0 0 8px}.pending{color:var(--muted);align-items:center;gap:10px;display:flex}.spinner{border:2px solid var(--line);border-top-color:var(--accent);border-radius:50%;width:18px;height:18px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.live-note{margin:0 0 8px;font-size:.875rem}.amount{font-variant-numeric:tabular-nums;white-space:nowrap}.amount-lg{font-size:2rem;font-weight:700}.amount-extra{color:var(--muted);font-size:.75em}.boxed{border:1px solid var(--line);border-radius:var(--radius);padding:10px 12px}.checklist{margin:0 0 16px;padding:0;list-style:none}.check-valid{color:var(--success)}.check-invalid{color:var(--danger)}[role=tablist]{border-bottom:1px solid var(--line);gap:4px;margin-bottom:16px;display:flex}[role=tab]{border:none;border-bottom:2px solid #0000;border-radius:0}[role=tab][aria-selected=true]{border-bottom-color:var(--accent)}dialog{max-width:min(560px,100vw - 32px);color:var(--text);background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:24px}dialog::backdrop{background:#00000080}.toasts{z-index:20;flex-direction:column;gap:8px;max-width:calc(100vw - 32px);display:flex;position:fixed;bottom:16px;right:16px}.toast{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);align-items:start;gap:8px;padding:10px 14px;display:flex}.toast p{margin:0}.toast-destructive{border-color:var(--danger)}.masked{flex-wrap:wrap;align-items:center;gap:4px;display:inline-flex}.table-scroll{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:.9rem}th,td{text-align:left;vertical-align:top;border-bottom:1px solid var(--line);padding:6px 10px}th{color:var(--muted);font-weight:600}.is-pending{opacity:.6}.is-voided{opacity:.5;text-decoration:line-through}.split{grid-template-columns:220px minmax(0,1fr);gap:16px;display:grid}.table-list,.cells,.sessions,.tokens,.bootstrap-list,.node-group ul{margin:0;padding:0;list-style:none}.sessions li,.tokens li,.bootstrap-list li{border-bottom:1px solid var(--line);padding:12px 0}.node-group li{padding:4px 0}.distance{min-width:2em;font-family:var(--mono);color:var(--muted);display:inline-block}.cap-inputs{grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:12px;display:grid}meter{vertical-align:middle;width:120px}.graph-card{padding:8px}.network-graph{width:100%;height:420px;display:block}.graph-link{stroke:var(--line);stroke-width:1.5px;transition:stroke .4s,stroke-width .4s}.graph-link.active{stroke:var(--accent);stroke-width:3px;transition:none}.graph-node-group{cursor:pointer}.graph-node-group:focus-visible{outline:2px solid var(--accent)}.graph-node{stroke:var(--surface);stroke-width:2px}.graph-node.selected{stroke:var(--text);stroke-width:3px}.graph-label{fill:var(--muted);text-anchor:middle;font-size:10px}.seed-0{fill:var(--palette-0);color:var(--palette-0)}.seed-1{fill:var(--palette-1);color:var(--palette-1)}.seed-2{fill:var(--palette-2);color:var(--palette-2)}.seed-3{fill:var(--palette-3);color:var(--palette-3)}.seed-4{fill:var(--palette-4);color:var(--palette-4)}.seed-5{fill:var(--palette-5);color:var(--palette-5)}.seed-6{fill:var(--palette-6);color:var(--palette-6)}.seed-7{fill:var(--palette-7);color:var(--palette-7)}.seed-8{fill:var(--palette-8);color:var(--palette-8)}.seed-9{fill:var(--palette-9);color:var(--palette-9)}.seed-10{fill:var(--palette-10);color:var(--palette-10)}.seed-11{fill:var(--palette-11);color:var(--palette-11)}.log-controls{flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:8px;display:flex}.log-controls input{flex:1;min-width:160px}.log-controls select{width:auto}.log-controls label{margin:0}.log-viewport{height:60vh;font:12px/20px var(--mono);background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow-y:auto}.log-spacer{position:relative}.log-row{white-space:nowrap;gap:8px;height:20px;padding:0 8px;display:flex;overflow:hidden}.log-time,.log-fields{color:var(--muted)}.log-level{width:3.5em}.log-source{flex:none;width:3.5em}.log-source a,.log-message a{color:inherit}.log-debug{color:#7e84fa}.log-info{color:#147af3}.log-warn{color:#e8c600}.log-error{color:#de3d82}.log-message{text-overflow:ellipsis;overflow:hidden}pre{background:var(--surface-2);border-radius:var(--radius);padding:8px;overflow-x:auto}@media (prefers-reduced-motion:reduce){.spinner{animation-duration:3s}}@media (width<=720px){main#content{padding:16px}.grid-2,.split,.cap-inputs{grid-template-columns:minmax(0,1fr)}.network-graph{height:320px}}.site-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 24px;max-width:1100px;margin:0 auto;padding:16px;display:flex}.brand{color:var(--text);align-items:center;gap:10px;font-size:1.15rem;font-weight:700;text-decoration:none;display:inline-flex}.brand img{background:#fff;border-radius:6px}.site-header nav{flex-wrap:wrap;gap:4px;display:flex}.site-header nav a{color:var(--text);border-radius:var(--radius);padding:6px 10px;text-decoration:none}.site-header nav a:hover,.site-header nav a[aria-current=page]{background:var(--surface-2)}.site-header nav a[aria-current=page]{font-weight:600}.site-main{max-width:1100px;margin:0 auto;padding:16px 16px 48px}.site-footer{max-width:1100px;color:var(--muted);border-top:1px solid var(--line);margin:0 auto;padding:24px 16px 40px}.site-footer p{margin:0}.hero{grid-template-columns:minmax(0,3fr) minmax(0,2fr);align-items:center;gap:32px;padding:32px 0;display:grid}.hero h1{font-size:clamp(2.2rem,6vw,3.4rem)}.tagline{color:var(--muted);margin:0 0 24px;font-size:1.25rem}.hero-actions{flex-wrap:wrap;gap:8px;display:flex}.hero-image{justify-self:center;width:100%;max-width:360px;height:auto}.tip{background:var(--surface);border:1px solid var(--line);border-left:4px solid var(--accent);border-radius:var(--radius);margin:0 0 32px;padding:14px 16px}.cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px;display:grid}.cards .card p{margin:0}@media (width<=700px){.hero{grid-template-columns:minmax(0,1fr);padding:8px 0 24px}.hero-image{grid-row:1;max-width:220px}}.doc{max-width:760px}.doc h1{margin-top:16px;font-size:2.2rem}.doc h2{margin-top:36px;font-size:1.4rem}.doc li{margin-bottom:4px}pre{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);margin:0 0 16px;padding:12px 14px;overflow-x:auto}pre code{overflow-wrap:normal;white-space:pre;font-size:.875rem}.toy .lede{max-width:760px;color:var(--muted)}.toy-settings{grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:16px;margin-bottom:16px;display:grid}.toy-settings .card h2{margin-bottom:16px}.toy-controls{z-index:1;background:var(--bg);border-bottom:1px solid var(--line);flex-wrap:wrap;align-items:center;gap:8px 16px;margin:0 -16px 16px;padding:12px 16px;display:flex;position:sticky;top:0}.toy-controls .buttons{flex-wrap:wrap;gap:8px;display:flex}.toy-status{font-variant-numeric:tabular-nums;flex-wrap:wrap;gap:4px 16px;display:flex}.toy-progress{background:var(--surface-2);border-radius:3px;width:100%;height:6px;overflow:hidden}.toy-progress-bar{background:var(--success);height:100%;transition:width .15s}.packet-ends{justify-content:space-between;gap:16px;margin-bottom:8px;display:flex}.packet-ends div:last-child{text-align:right}.packet-ends strong{display:block}.packets{flex-direction:column;gap:6px;margin-bottom:24px;display:flex}.packet{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.packet-head{text-align:left;border:none;border-radius:0;flex-wrap:wrap;align-items:center;gap:4px 12px;width:100%;padding:8px 12px;font-weight:400;display:flex}.packet-head:hover{background:var(--surface-2)}.packet.from-receiver .packet-head{text-align:right;flex-direction:row-reverse}.packet-arrow{text-align:center;width:1.6em;color:var(--muted);flex:none;font-weight:700}.packet.fulfilled .packet-arrow{color:var(--success)}.packet.rejected .packet-arrow{color:var(--danger)}.packet-outcome{font-weight:600}.packet-code{color:var(--danger);white-space:nowrap}.packet-amount,.packet-time{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:.875rem}.packet-time{color:var(--muted);margin-left:auto}.packet.from-receiver .packet-time{margin-left:0;margin-right:auto}.packet-details{border-top:1px solid var(--line);grid-template-columns:max-content max-content minmax(0,1fr);gap:4px 16px;padding:12px;font-size:.875rem;display:grid}.packet-details>h3{grid-column:1;margin:0;font-size:.875rem}.packet-details dl{grid-column:2/4;grid-template-columns:subgrid;gap:4px 16px;margin:0 0 8px;display:grid}.packet-details dt{color:var(--muted)}.packet-details dd{overflow-wrap:anywhere;margin:0}.packet-details .error{grid-column:2/4;margin-bottom:8px;padding:4px 8px}.frames{background:var(--surface-2);border-radius:var(--radius);flex-direction:column;gap:6px;margin:0;padding:8px;list-style:none;display:flex}.frames li{flex-wrap:wrap;align-items:baseline;gap:8px;display:flex}.frame-kind{color:var(--muted);background:var(--surface);border-radius:999px;padding:1px 8px;font-size:.75rem}@media (width<=700px){.packet-details{grid-template-columns:max-content minmax(0,1fr)}.packet-details>h3,.packet-details dl,.packet-details .error{grid-column:1/3}}:root{--sub-interfaces:light-dark(#2d6cae,#6ea6e4);--sub-node:light-dark(#23866a,#55c39b);--sub-money:light-dark(#a86c12,#e0a54a);--sub-protocols:light-dark(#7d4bb5,#b18be6);--sub-tooling:light-dark(#bb3f55,#ec7f90);--edge:light-dark(#71717a,#8a8a93)}.sub-interfaces{--c:var(--sub-interfaces)}.sub-node{--c:var(--sub-node)}.sub-money{--c:var(--sub-money)}.sub-protocols{--c:var(--sub-protocols)}.sub-tooling{--c:var(--sub-tooling)}.site-main.architecture,body:has(>.site-main.architecture) .site-header,body:has(>.site-main.architecture) .site-footer{max-width:1380px}.architecture{font-size:1.0625rem;line-height:1.6}.architecture h1{margin:16px 0 12px;font-size:clamp(2rem,5vw,2.6rem)}.architecture p{margin:0}.architecture code{font-family:var(--mono);white-space:nowrap;background:var(--surface-2);border-radius:4px;padding:1px 4px;font-size:.9em}.architecture .muted{color:var(--muted)}.architecture .intro{gap:12px;max-width:68ch;font-size:1.125rem;display:grid}.architecture .toolbar{flex-wrap:wrap;align-items:center;gap:8px;margin:32px 0 14px;font-size:.9375rem;display:flex}.architecture .toolbar .label{color:var(--muted)}.architecture .journey{background:var(--surface);border-radius:999px;padding:7px 14px;font-weight:500}.architecture .journey[aria-pressed=true]{color:var(--bg);background:var(--text);border-color:var(--text)}.architecture .clear{color:var(--muted);border:0;padding:7px 4px;font-weight:400;text-decoration:underline}.architecture .every{color:var(--muted);cursor:pointer;align-items:center;gap:8px;margin:0 0 0 auto;font-weight:400;display:inline-flex}.architecture .every input{width:auto}@media (width<=620px){.architecture .every{margin-left:0}}.architecture .stage{grid-template-columns:minmax(0,1fr) clamp(320px,26vw,380px);align-items:start;gap:18px;display:grid}.architecture .mapbox{background:var(--surface);border:1px solid var(--line);border-radius:10px;min-width:0;overflow-x:auto}.architecture .mapbox>svg{width:100%;min-width:860px;height:auto;font-family:var(--font);display:block}.architecture .panel{background:var(--surface);border:1px solid var(--line);border-radius:10px;gap:16px;min-width:0;max-height:calc(100vh - 24px);padding:20px;font-size:1rem;display:grid;position:sticky;top:12px;overflow-y:auto}.architecture .panel h2{margin:0;font-size:1.375rem;line-height:1.3}.architecture .panel h3{margin:0 0 6px;font-size:1rem}@media (width<=1180px){.architecture .stage{grid-template-columns:minmax(0,1fr)}.architecture .panel{max-height:none;position:static}}.architecture .band{fill:var(--surface-2)}.architecture .bandt{paint-order:stroke;stroke:var(--surface-2);stroke-width:6px;stroke-linejoin:round}.architecture .bandl{fill:var(--text);letter-spacing:.06em;text-transform:uppercase;font-size:13px;font-weight:700}.architecture .bands{fill:var(--muted);font-size:14px}.architecture .note{fill:var(--muted);paint-order:stroke;stroke:var(--surface-2);stroke-width:6px;stroke-linejoin:round;font-size:14px;font-style:italic}.architecture .box{cursor:pointer;transition:opacity .18s}.architecture .box:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.architecture .bx{fill:color-mix(in srgb, var(--c) 10%, var(--surface));stroke:var(--c);stroke-width:1.5px;transition:stroke-width .15s}.architecture .box:hover .bx{stroke-width:2.5px}.architecture .box.sel .bx{stroke-width:3.5px}.architecture .box.dim{opacity:.22}.architecture .nm{fill:var(--text);font:600 16px var(--mono)}.architecture .lb{fill:var(--muted);font-size:14px}.architecture .step circle{fill:var(--text)}.architecture .step text{fill:var(--surface);font-size:13px;font-weight:700}.architecture .edge{fill:none;stroke:var(--edge);stroke-width:1.4px;transition:opacity .18s}.architecture .edge.talks{stroke-dasharray:2 3}.architecture .edge.wasm{stroke-dasharray:7 4}.architecture .edge.runs{stroke-dasharray:10 3 2 3}.architecture .edge.off{opacity:0}.architecture .edge.dim{opacity:.1}.architecture .edge.hi{stroke:var(--text);stroke-width:2.2px;opacity:1}.architecture .arrow{fill:var(--edge)}.architecture .arrow-hi{fill:var(--text)}.architecture .pname{font-family:var(--mono);word-break:break-all}.architecture .tag{background:color-mix(in srgb, var(--c) 14%, var(--surface));border:1px solid color-mix(in srgb, var(--c) 50%, var(--surface));border-radius:999px;margin-bottom:6px;padding:1px 8px;font-size:.875rem;font-weight:600;display:inline-block}.architecture .chips{flex-wrap:wrap;gap:6px;display:flex}.architecture .chipbtn{font-family:var(--mono);background:color-mix(in srgb, var(--c,var(--muted)) 10%, var(--surface));border-color:color-mix(in srgb, var(--c,var(--muted)) 50%, var(--surface));border-radius:6px;padding:4px 10px;font-size:.875rem;font-weight:500}.architecture .chipbtn:hover{border-color:var(--c,var(--text))}.architecture .panel ul{gap:6px;margin:0;padding-left:20px;display:grid}.architecture .panel ol{counter-reset:step;gap:16px;margin:0;padding:0;list-style:none;display:grid}.architecture .panel ol li{grid-template-columns:26px minmax(0,1fr);gap:10px;display:grid}.architecture .panel ol li:before{counter-increment:step;content:counter(step);width:26px;height:26px;color:var(--surface);background:var(--text);border-radius:50%;place-items:center;font-size:.875rem;font-weight:700;display:grid}.architecture .panel ol .chips{margin-bottom:6px}.architecture .panel .legend{gap:10px;padding:0;list-style:none;display:grid}.architecture .legend li{align-items:baseline;gap:10px;display:flex}.architecture .legend.lines li{align-items:center}.architecture .legend svg{flex:none}.architecture .sw{background:color-mix(in srgb, var(--c) 10%, var(--surface));border:1.5px solid var(--c);border-radius:3px;flex:none;width:22px;height:14px;transform:translateY(2px)}.architecture .more{gap:18px;margin-top:56px;display:grid}.architecture .more h2{margin:0;font-size:1.6rem}.architecture .lead{max-width:68ch}.architecture .tests{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:14px;display:grid}.architecture .tcard{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);align-content:start;gap:8px;padding:18px 20px;display:grid}.architecture .tcard h3{margin:0;font-size:1.125rem}.architecture .ev{font-family:var(--mono);color:var(--muted);overflow-wrap:anywhere;font-size:.875rem}.architecture .releases{border-top:1px solid var(--line);max-width:76ch;display:grid}.architecture .release{border-bottom:1px solid var(--line);padding:18px 0}.architecture .release h3{font-family:var(--mono);flex-wrap:wrap;align-items:baseline;gap:4px 14px;margin:0 0 8px;font-size:1.25rem;display:flex}.architecture .release time{font-family:var(--font);color:var(--muted);font-size:1rem;font-weight:400}.architecture .release ul{gap:6px;margin:0;padding-left:22px;display:grid}.architecture .foot{max-width:68ch;color:var(--muted);margin-top:48px}@media (prefers-reduced-motion:reduce){.architecture .box,.architecture .bx,.architecture .edge{transition:none}}
