@ulm0/gonogo 0.1.1 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -11
- package/dist/client/assets/index-DxUnpGbS.js +52 -0
- package/dist/client/assets/index-tpcmltjw.css +1 -0
- package/dist/client/index.html +2 -2
- package/dist/server/audited.js +156 -0
- package/dist/server/blackbox.js +261 -0
- package/dist/server/board.js +123 -0
- package/dist/server/cleanroom.js +7 -51
- package/dist/server/clearance.js +158 -0
- package/dist/server/cli.js +229 -28
- package/dist/server/constants.js +54 -3
- package/dist/server/hangar.js +311 -0
- package/dist/server/home.js +41 -2
- package/dist/server/hub.js +280 -29
- package/dist/server/launcher.js +25 -13
- package/dist/server/logchart.js +58 -0
- package/dist/server/massbudget.js +169 -0
- package/dist/server/mcp.js +73 -2
- package/dist/server/migrate.js +7 -3
- package/dist/server/missionlog.js +2 -0
- package/dist/server/missions.js +310 -0
- package/dist/server/models.js +73 -0
- package/dist/server/phone.js +122 -0
- package/dist/server/phonetag.js +47 -0
- package/dist/server/prices.js +112 -0
- package/dist/server/propellant.js +243 -16
- package/dist/server/providers.js +123 -9
- package/dist/server/recorder.js +176 -0
- package/dist/server/relay.js +53 -7
- package/dist/server/relaykinds.js +11 -1
- package/dist/server/relief.js +226 -0
- package/dist/server/remotecontrol.js +15 -0
- package/dist/server/rollout.js +172 -0
- package/dist/server/tasks.js +44 -8
- package/dist/server/telemetry.js +110 -0
- package/dist/server/uplinks.js +7 -0
- package/dist/server/web.js +310 -10
- package/dist/server/worktree.js +137 -0
- package/dist/shared/fuel.js +8 -0
- package/dist/shared/livery.js +1 -1
- package/dist/shared/positions.js +1 -1
- package/dist/shared/prices.js +75 -0
- package/dist/shared/protocol.js +61 -15
- package/package.json +1 -1
- package/dist/client/assets/index-B6MsSoeo.css +0 -1
- package/dist/client/assets/index-DRtiRh1Y.js +0 -31
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@font-face{font-family:Doto;font-style:normal;font-display:swap;font-weight:900;src:url(data:font/woff2;base64,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)format("woff2"),url(./doto-latin-900-normal-D1bF_x6I.woff)format("woff")}@font-face{font-family:Geist;font-style:normal;font-display:swap;font-weight:400;src:url(./geist-latin-400-normal-B40WzpMT.woff2)format("woff2"),url(./geist-latin-400-normal-akEymXtG.woff)format("woff")}@font-face{font-family:Geist;font-style:normal;font-display:swap;font-weight:500;src:url(./geist-latin-500-normal-CTWBw9NS.woff2)format("woff2"),url(./geist-latin-500-normal-BDXIbFrL.woff)format("woff")}@font-face{font-family:Geist;font-style:normal;font-display:swap;font-weight:600;src:url(./geist-latin-600-normal-CSETrqM2.woff2)format("woff2"),url(./geist-latin-600-normal-DsPlZH-9.woff)format("woff")}@font-face{font-family:Geist Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./geist-mono-latin-400-normal-DTRLJnHl.woff2)format("woff2"),url(./geist-mono-latin-400-normal-B2yvC1Cq.woff)format("woff")}@font-face{font-family:Geist Mono;font-style:normal;font-display:swap;font-weight:500;src:url(./geist-mono-latin-500-normal-YINYabwD.woff2)format("woff2"),url(./geist-mono-latin-500-normal-D-GG86Jb.woff)format("woff")}@font-face{font-family:Geist Mono;font-style:normal;font-display:swap;font-weight:600;src:url(./geist-mono-latin-600-normal-V-KvD_pi.woff2)format("woff2"),url(./geist-mono-latin-600-normal-bZn07FKM.woff)format("woff")}:root,[data-livery=instrument]{--body:#e4e2dc;--panel:#f1f0ec;--key:#faf9f6;--well:#e9e7e1;--edge:#c9c6be;--edge-2:#b1aea6;--text:#26272b;--text-2:#44463f;--muted:#61605b;--lcd:#2b2f2a;--lcd-text:#cfe6c9;--lcd-dim:#9fb79b;--lcd-warm:#f1d79a;--work:#4a5bd4;--you:#e0a93a;--you-tint:#f4e3b7;--you-edge:#d9b45a;--you-ink:#5c4a1c;--you-key:#b8933f;--go:#5e9e73;--go-tint:#d7e8da;--go-ink:#2c5a3a;--go-lit:#7cc493;--nogo:#c2414b;--nogo-text:#a8323c;--nogo-tint:#f5d9da;--track:#d6d3cb;--seq-base:#e2dfd7}:root{--font-ui:"Geist", system-ui, sans-serif;--font-mono:"Geist Mono", ui-monospace, monospace;--font-lcd:"Doto", "Geist Mono", ui-monospace, monospace;--radius:10px;--radius-key:8px;--radius-module:12px}[data-livery=instrument],[data-livery=low-ink],[data-livery=high-contrast]{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}[data-livery=night-shift]{--body:#16181d;--panel:#1e2127;--key:#272b33;--well:#121418;--edge:#353a44;--edge-2:#4a5160;--text:#e8e9ec;--text-2:#c5c8cf;--muted:#9ba1ac;--lcd:#0b0e0d;--lcd-text:#a9ecd4;--lcd-dim:#6fb8a0;--lcd-warm:#f4cf80;--work:#93a0ff;--you:#e5b04c;--you-tint:#3a2f15;--you-edge:#8d6f27;--you-ink:#f6d890;--you-key:#b8933f;--go:#5cbf86;--go-tint:#17352a;--go-ink:#a3e6bf;--go-lit:#7bd9a0;--nogo:#e5606b;--nogo-text:#ff9ea6;--nogo-tint:#43191f;--track:#353a44;--seq-base:#2a2e36;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}[data-livery=low-ink]{--body:#f7f6f2;--panel:#fbfaf7;--key:#fff;--well:#efede7;--edge:#bdb9af;--edge-2:#8c887d;--text:#141414;--text-2:#333330;--muted:#55524b;--lcd:#2a2a2a;--lcd-text:#f0f0ea;--lcd-dim:#b8b8b0;--lcd-warm:#f2d98e;--work:#2f3fa8;--you:#b77a05;--you-tint:#fcf4dc;--you-edge:#d2b25a;--you-ink:#4f3b08;--you-key:#a07a1a;--go:#2f7d52;--go-tint:#e8f3ec;--go-ink:#1f4d33;--go-lit:#7cc493;--nogo:#b3261e;--nogo-text:#96211a;--nogo-tint:#fbe9e7;--track:#cfcbc1;--seq-base:#e6e3db}[data-livery=high-contrast]{--body:#fff;--panel:#fff;--key:#fff;--well:#ebebeb;--edge:#1a1a1a;--edge-2:#555;--text:#000;--text-2:#111;--muted:#2e2e2e;--lcd:#000;--lcd-text:#fff;--lcd-dim:#cfcfcf;--lcd-warm:#ffe27a;--work:#0b1bb3;--you:#8a5a00;--you-tint:#ffeeb0;--you-edge:#5c3d00;--you-ink:#2e1d00;--you-key:#5c3d00;--go:#00692f;--go-tint:#cdf2da;--go-ink:#00290f;--go-lit:#5be08c;--nogo:#b00020;--nogo-text:#7d0017;--nogo-tint:#ffd6dc;--track:#6b6b6b;--seq-base:#c4c4c4}:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}*,:before,:after{box-sizing:border-box}html,body{background:var(--body);color:var(--text);font-family:var(--font-ui);margin:0;font-size:13px;line-height:1.4}h1,h2,h3,p{margin:0}a{color:inherit}:focus-visible{outline:2px solid var(--text);outline-offset:2px}.sr-only{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}.label{font-family:var(--font-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-size:10.5px;font-weight:400}.legend{font-family:var(--font-mono);letter-spacing:.04em;text-transform:uppercase;font-size:11.5px;font-weight:600}.disp{font-family:var(--font-ui);letter-spacing:-.02em;font-weight:600;line-height:1.05}.muted{color:var(--muted)}.lcd{border-radius:var(--radius-key);background:var(--lcd);color:var(--lcd-text);font-family:var(--font-mono);box-shadow:inset 0 2px 6px #00000059}.lcd-num{font-family:var(--font-lcd);letter-spacing:.02em;font-variant-numeric:tabular-nums;font-weight:900;line-height:1}.module{border:1px solid var(--edge);border-radius:var(--radius-module);background:var(--panel)}.led{background:var(--led,var(--edge));border-radius:50%;flex:none;width:8px;height:8px;display:inline-block}.led[data-on=true]{box-shadow:0 0 0 3px color-mix(in srgb, var(--led) 22%, transparent)}.led[data-blink=true]{animation:1.5s ease-in-out infinite ins-led}.flood{border:1px solid var(--edge);border-radius:var(--radius-module)}.flood[data-tone=lit]{background:var(--key)}.flood[data-tone=amber]{border-color:var(--you-edge);background:var(--you-tint);--led:var(--you)}.flood[data-tone=go]{border-color:var(--go);background:var(--go-tint);--led:var(--go)}.flood[data-tone=nogo]{border-color:var(--nogo);background:var(--nogo-tint);--led:var(--nogo)}.ink{color:var(--text)}.btn{appearance:none;border:1px solid var(--edge);border-radius:var(--radius-key);background:var(--key);min-height:44px;color:var(--text);font-family:var(--font-mono);letter-spacing:.06em;text-transform:uppercase;cursor:pointer;border-bottom-width:3px;justify-content:center;align-items:center;gap:8px;padding:0 16px;font-size:11.5px;text-decoration:none;display:inline-flex}.btn:active:not(:disabled,[aria-disabled=true]){border-bottom-width:1px;transform:translateY(2px)}.btn[data-kind=primary]{border-color:var(--text);background:var(--text);color:var(--panel)}.btn[data-kind=quiet]{color:var(--text-2)}.btn[data-kind=danger]{color:var(--nogo-text)}.btn[data-size=big]{border-radius:var(--radius);border-bottom-width:4px;min-height:56px;font-size:13px;font-weight:600}.btn[data-shape=round]{border-radius:50%;width:44px;padding:0;font-size:16px}.btn:disabled,.btn[aria-disabled=true]{border-style:dashed;border-bottom-width:1px;border-color:var(--edge-2);color:var(--muted);cursor:not-allowed;background:0 0}.field{flex-direction:column;gap:6px;min-width:0;display:flex}.field>label,.field>legend{font-family:var(--font-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--text-2);font-size:10.5px}.input,.textarea{border:1px solid var(--edge);border-radius:var(--radius-key);background:var(--key);width:100%;min-width:0;color:var(--text);font-family:var(--font-ui);padding:0 14px;font-size:14px}.input{height:46px}.textarea{font-family:var(--font-mono);resize:vertical;padding:12px 14px;font-size:12.5px;line-height:1.5}.input[aria-invalid=true],.textarea[aria-invalid=true]{border:2px solid var(--nogo)}.input:read-only{background:var(--well);color:var(--muted)}.hint{color:var(--muted);font-size:12px;line-height:1.45}.error{border:1px solid var(--nogo);border-radius:var(--radius-key);background:var(--nogo-tint);color:var(--nogo-text);padding:8px 10px;font-size:12.5px;font-weight:600}.chip{font-family:var(--font-mono);letter-spacing:.06em;text-transform:uppercase;white-space:nowrap;border:1px solid #0000;border-radius:999px;padding:3px 8px;font-size:10px;font-weight:500;display:inline-block}.chip[data-tone=lit]{border-color:var(--work);color:var(--work)}.chip[data-tone=amber]{background:var(--you-tint);color:var(--you-ink)}.chip[data-tone=go]{background:var(--go-tint);color:var(--go-ink)}.chip[data-tone=nogo]{background:var(--nogo-tint);color:var(--nogo-text)}.chip[data-tone=quiet]{border-color:var(--edge);color:var(--muted)}.chip[data-tone=ink]{background:var(--text);color:var(--panel)}.tile{appearance:none;border:1px solid var(--edge);border-radius:var(--radius);background:var(--key);min-width:0;color:var(--text);font-family:var(--font-ui);text-align:left;cursor:pointer;--led:var(--go);--tile-sub:var(--text-2);border-bottom-width:3px;flex-direction:column;justify-content:space-between;gap:6px;padding:9px 10px 8px;display:flex}.tile-legend{font-family:var(--font-mono);letter-spacing:.04em;text-transform:uppercase;font-size:11.5px;font-weight:600}.tile-sub{color:var(--tile-sub);white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.tile-state{font-family:var(--font-mono);letter-spacing:.04em;text-transform:uppercase;color:var(--text-2);font-size:9.5px}.tile[data-kind=working]{--led:var(--work)}.tile[data-kind=needs]{border-color:var(--you-edge);background:var(--you-tint);--led:var(--you);--tile-sub:var(--you-ink)}.tile[data-kind=starting]{--led:var(--work);border-style:dashed;border-bottom-width:1px}.tile[data-kind=stopped]{background:var(--well);color:var(--muted);--led:var(--edge);--tile-sub:var(--muted);border-bottom-width:1px}.tile[data-kind=open]{border:1px dashed var(--edge-2);color:var(--muted);--led:transparent;--tile-sub:var(--muted);background:0 0}.tile[aria-pressed=true],.tile[data-selected=true]{outline:2px solid var(--text);outline-offset:2px}.room-tile{min-height:96px}.tile-head{align-items:center;gap:7px;display:flex}.tile-num{color:var(--muted);font-family:var(--font-mono);margin-left:auto;font-size:9.5px}.tile-lcd{background:var(--well);min-height:39px;color:var(--text-2);font-family:var(--font-mono);border-radius:5px;flex-direction:column;gap:1px;padding:5px 7px;font-size:10px;line-height:1.45;display:flex}.tile-lcd .tile-sub{color:inherit}.room-tile[data-kind=working] .tile-lcd{background:var(--lcd);color:var(--lcd-text)}.room-tile[data-kind=needs] .tile-lcd{background:var(--lcd);color:var(--lcd-warm)}.room-tile[data-kind=stopped] .tile-lcd{background:var(--body);color:var(--muted)}.room-tile[data-kind=open] .tile-lcd{color:var(--muted);background:0 0}.tile-foot{white-space:nowrap;justify-content:space-between;gap:6px;display:flex}.room-tile .tile-state{text-overflow:ellipsis;min-width:0;overflow:hidden}@keyframes ins-led{50%{opacity:.35}}@keyframes ins-step{0%,to{opacity:.25}33%{opacity:1}}@keyframes ins-blink{50%{opacity:0}}.led[data-kind=working],.led[data-kind=starting]{--led:var(--work)}.led[data-kind=needs]{--led:var(--you)}.led[data-kind=idle]{--led:var(--go)}.led[data-kind=stopped]{--led:var(--edge-2)}.led[data-kind=open]{--led:transparent}.flood .label{color:var(--text-2)}.lamp{color:var(--text-2);font-family:var(--font-mono);letter-spacing:.08em;align-items:center;gap:7px;font-size:10.5px;display:flex}.lamp[data-link=up] .led{--led:var(--go)}.lamp[data-link=wait] .led{--led:var(--you)}.lamp[data-link=down] .led{--led:var(--nogo)}@media (prefers-reduced-motion:reduce){.led[data-blink=true]{animation:none}}.loop{flex-direction:column;flex:1 0 auto;gap:12px;padding:16px 24px 20px;display:flex}.loop-head{flex-wrap:wrap;align-items:center;gap:10px 16px;padding:2px 2px 0;display:flex}.loop-title{flex:280px;font-size:28px}.loop-filters{flex-wrap:wrap;gap:6px;display:flex}.btn.loop-filter,.btn.loop-room{font-size:11px}.loop-count{font-family:var(--font-lcd);letter-spacing:.02em;font-variant-numeric:tabular-nums;margin-left:4px;font-size:16px;font-weight:900}.loop-scroll{flex:auto;min-height:0;padding:0 14px;overflow:auto}.loop-list{min-width:720px;margin:0;padding:0;list-style:none}.loop-row+.loop-row{border-top:1px solid var(--edge)}.loop-row-btn{appearance:none;width:100%;color:inherit;font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:0;grid-template-columns:56px 210px minmax(0,1fr) 150px;grid-template-areas:"time route text chip";align-items:start;gap:18px;padding:12px 0;display:grid}.loop-row-btn:hover{background:color-mix(in srgb, var(--well) 60%, transparent)}.loop-row-btn:focus-visible{outline-offset:-2px}.loop-time{color:var(--muted);font-family:var(--font-mono);grid-area:time;padding-top:2px;font-size:11.5px}.loop-route{font-family:var(--font-mono);letter-spacing:.04em;grid-area:route;font-size:11px;font-weight:600;line-height:1.5}.loop-text{flex-direction:column;grid-area:text;gap:3px;min-width:0;display:flex}.loop-subject{overflow-wrap:anywhere;font-size:14px;font-weight:600}.loop-note{color:var(--muted);font-size:12.5px;line-height:1.5}.loop-chip{grid-area:chip;justify-self:end}.loop-open{border:1px solid var(--edge);border-radius:var(--radius);background:var(--key);flex-direction:column;align-items:flex-start;gap:12px;margin:0 168px 12px 292px;padding:12px 14px;display:flex}.loop-body{white-space:pre-wrap;overflow-wrap:anywhere;align-self:stretch;font-size:13.5px;line-height:1.55}.loop-reply{flex-wrap:wrap;align-self:stretch;align-items:center;gap:8px;display:flex}.loop-reply-input{flex:200px;width:auto;height:44px;padding:0 12px;font-size:13.5px}.loop-result{flex-basis:100%}.loop-result:empty{display:none}.loop-empty{color:var(--muted);padding:18px 0}.loop-foot{padding:12px 14px}.loop-traffic{padding:4px var(--panel-pad,14px) 6px;border-top:1px solid var(--edge);flex-direction:column;gap:2px;display:flex}.loop-traffic-head{justify-content:space-between;align-items:center;gap:10px;display:flex}.btn.loop-link{min-height:44px;padding:0 12px;font-size:10.5px}.loop-traffic-list{margin:0;padding:0;list-style:none}.loop-traffic-row{grid-template-columns:40px 150px minmax(0,1fr) auto;grid-template-areas:"time route text chip";align-items:center;gap:10px;padding:7px 0;font-size:12px;display:grid}.loop-traffic-row+.loop-traffic-row{border-top:1px solid var(--edge)}.loop-traffic-row .loop-time{padding-top:0;font-size:11px}.loop-traffic-row .loop-route{font-size:9.5px}.loop-traffic-subject{white-space:nowrap;text-overflow:ellipsis;grid-area:text;overflow:hidden}.loop-traffic-empty{color:var(--muted);padding:4px 0 8px;font-size:12px}.brief{flex-wrap:wrap;align-items:center;gap:10px;margin:0;display:flex}.brief-label{font-family:var(--font-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--text-2);font-size:10.5px}.brief-input{min-height:46px;max-height:160px;font-family:var(--font-ui);resize:none;field-sizing:content;flex:240px;padding:11px 14px;font-size:14px;line-height:1.5}.brief-input:disabled{background:var(--well);color:var(--muted);cursor:not-allowed}.btn.brief-send{min-height:46px;padding:0 22px}.btn.brief-mission{min-height:46px}.brief-note{flex-basis:100%}.brief-note:empty{display:none}@media (width<=699px){.loop{gap:10px;padding:10px 12px 0}.loop-head{gap:10px 8px;padding:0 0 0 2px}.loop-title{flex:1 1 0;min-width:0;font-size:22px}.loop-filters{flex-basis:100%;order:3;gap:5px}.btn.loop-filter{padding:0 10px;font-size:10px}.loop-count{margin-left:3px;font-size:14px}.btn.loop-room{padding:0 12px;font-size:10.5px}.loop-scroll{padding:0 12px}.loop-list{min-width:0}.loop-row-btn{grid-template-columns:minmax(0,1fr) auto auto;grid-template-areas:"route chip time""text text text";align-items:center;gap:4px 8px;padding:11px 0}.loop-time{padding-top:0;font-size:11px}.loop-route{font-size:10px}.loop-chip{justify-self:auto}.loop-subject{font-size:14px;line-height:1.3}.loop-note{font-size:11.5px;line-height:1.4}.loop-row[data-to-you]{background:var(--key);box-shadow:inset 3px 0 0 var(--work);margin:0 -12px;padding:0 12px}.loop-open{margin:0 0 12px}.loop-empty{padding:18px 0}.loop-foot{bottom:var(--bottom-bar,0px);background:var(--body);border-width:1px 0 0;border-radius:0;margin:0 -12px;padding:10px 12px;position:sticky}.brief{gap:6px}.brief-label{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.brief-input{flex:1 1 0;padding:11px 12px}.btn.brief-send{flex:none;padding:0 16px}.loop-traffic-row{grid-template-columns:40px minmax(0,1fr) auto;grid-template-areas:"time route chip""time text text";gap:2px 10px}}.rec{flex-direction:column;flex:1 0 auto;gap:12px;max-width:960px;padding:16px 24px 20px;display:flex}.topbar-glyph{fill:none;stroke:currentColor;stroke-width:1.4px;stroke-linecap:round;stroke-linejoin:round;width:18px;height:18px}.rec-heading:focus-visible{outline:none}.rec-lead{color:var(--text-2);margin:0;font-size:13.5px;line-height:1.5}.rec-form{flex-direction:column;gap:12px;min-width:0;padding:14px;display:flex}.rec-text{overflow-wrap:anywhere;min-height:320px}.rec-actions{flex-wrap:wrap;gap:8px;display:flex}.rec-stale,.rec-git{margin:0;padding:10px 12px;font-size:13px;line-height:1.45}.rec-command{border:1px solid var(--edge);width:100%;min-width:0;height:46px;padding:0 14px;font-size:12.5px}.rec-events{flex-direction:column;margin:0;padding:0 14px;list-style:none;display:flex}.rec-event{border-top:1px solid var(--edge);grid-template-columns:auto auto minmax(0,1fr);align-items:baseline;gap:4px 12px;padding:10px 0;display:grid}.rec-event:first-child{border-top:0}.rec-kind{justify-self:start}.rec-when{color:var(--text-2);font-family:var(--font-mono);font-variant-numeric:tabular-nums;font-size:11.5px}.rec-text-line{overflow-wrap:anywhere;font-size:13.5px;line-height:1.4}@media (width<=699px){.rec{gap:10px;padding:10px 12px 12px}.rec-text{min-height:240px}.rec-event{grid-template-columns:auto minmax(0,1fr)}.rec-text-line{grid-column:1/-1}.rec-actions .btn{flex:1 1 0}}.dl{flex-direction:column;flex:1 0 auto;gap:12px;padding:16px 24px 20px;display:flex}.dl-heading:focus-visible{outline:none}.dl-keys{margin:0}.dl-scroll{padding:0 14px}.dl-list{margin:0;padding:0;list-style:none}.dl-row+.dl-row{border-top:1px solid var(--edge)}.dl-item{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"head actions""open open";align-items:start;gap:8px 14px;padding:10px 0;display:grid}.dl-item[data-unread]{background:var(--key);box-shadow:inset 3px 0 0 var(--work);margin:0 -14px;padding:10px 14px}.dl-item[data-unread] .led{--led:var(--work)}.dl-head{appearance:none;width:100%;color:inherit;font:inherit;text-align:left;background:0 0;border:0;border-radius:0;grid-area:head;grid-template-columns:14px 96px 150px minmax(0,1fr);grid-template-areas:"led when who text";align-items:start;gap:14px;padding:2px 0;display:grid}button.dl-head{cursor:pointer;min-height:44px}.dl-head .led{grid-area:led;margin-top:5px}.dl-when{color:var(--muted);font-family:var(--font-mono);grid-area:when;padding-top:2px;font-size:11.5px}.dl-who{font-family:var(--font-mono);letter-spacing:.04em;grid-area:who;justify-self:start;font-size:11px;font-weight:600;line-height:1.5}.dl-text{overflow-wrap:anywhere;grid-area:text;min-width:0;font-size:14px}.dl-item[data-unread] .dl-text{font-weight:600}.dl-open{border:1px solid var(--edge);border-radius:var(--radius);background:var(--panel);flex-direction:column;grid-area:open;align-items:flex-start;gap:12px;margin:0 0 0 28px;padding:12px 14px;display:flex}.dl-actions{flex-wrap:wrap;grid-area:actions;gap:8px;display:flex}.dl-actions .btn{font-size:11px}.dl-more{padding:10px 0}@media (width<=699px){.dl{gap:10px;padding:10px 12px 12px}.dl-keys{display:none}.dl-scroll{padding:0 12px}.dl-item[data-unread]{margin:0 -12px;padding:10px 12px}.dl-head{grid-template-columns:14px minmax(0,1fr) auto;grid-template-areas:"led who when""text text text";align-items:center;gap:4px 10px}.dl-head .led{margin-top:0}.dl-when{padding-top:0;font-size:11px}.dl-item{grid-template-columns:minmax(0,1fr);grid-template-areas:"head""open""actions"}.dl-open{margin-left:0}}.win{flex-direction:column;flex:1 0 auto;gap:12px;padding:16px 24px 20px;display:flex}.win-title:focus-visible{outline:none}.win-zone{padding:0 2px}.win-form{flex-direction:column;gap:12px;max-width:640px;padding:14px;display:flex}.win-fields{border:0;flex-direction:column;gap:14px;min-width:0;margin:0;padding:0;display:flex}.win-form .input:is(select){background:var(--key);color:var(--text)}.win-body{font-family:var(--font-ui);font-size:14px}.win-rule-input{font-family:var(--font-mono);font-size:13px}.win-problem{color:var(--nogo-text)}.win-times{flex-wrap:wrap;gap:6px;margin:4px 0 0;padding:0;list-style:none;display:flex}.win-time{white-space:nowrap;padding:7px 10px;font-size:12px}.win-check{align-items:center;gap:12px;min-height:44px;display:flex}.win-check input{width:22px;height:22px;accent-color:var(--go-ink);flex:none;margin:0}.win-check label{flex:1;align-self:stretch;align-items:center;font-size:13px;font-weight:500;display:flex}.win-actions{gap:8px;display:flex}.win-actions .btn{flex:1 1 0}.win-list{padding:0 14px}.win-rows{margin:0;padding:0;list-style:none}.win-row{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);grid-template-areas:"main next""last last""buttons buttons""confirm confirm""error error";align-items:start;gap:8px 18px;padding:14px 0;display:grid}.win-row+.win-row{border-top:1px solid var(--edge)}.win-main{grid-area:main;min-width:0}.win-name{overflow-wrap:anywhere;font-size:14px;font-weight:600}.win-row[data-off] .win-name{color:var(--text-2)}.win-to{color:var(--muted);font-family:var(--font-mono);letter-spacing:.04em;font-size:11px}.win-rule{font-family:var(--font-mono);overflow-wrap:anywhere;margin-top:4px;font-size:12.5px}.win-next{grid-area:next;justify-self:start;padding:8px 12px;font-size:12.5px}.win-next[data-off]{color:var(--lcd-dim)}.win-last{color:var(--muted);overflow-wrap:anywhere;grid-area:last;font-size:12.5px;line-height:1.5}.win-buttons{flex-wrap:wrap;grid-area:buttons;align-items:center;gap:8px;display:flex}.win-confirm{flex-wrap:wrap;grid-area:confirm;align-items:center;gap:8px 10px;padding:10px 12px;display:flex}.win-confirm p{flex:200px}.win-error{grid-area:error}.win-switch{min-height:44px;font-family:var(--font-mono);letter-spacing:.06em;text-transform:uppercase;cursor:pointer;align-items:center;gap:8px;padding-right:6px;font-size:11.5px;display:inline-flex}.win-switch input{appearance:none;border:1px solid var(--muted);background:var(--well);cursor:pointer;border-radius:13px;flex:none;width:44px;height:26px;margin:0;position:relative}.win-switch input:after{content:"";background:var(--muted);border-radius:50%;width:18px;height:18px;transition:transform .15s;position:absolute;top:3px;left:3px}.win-switch input:checked{border-color:var(--go-ink);background:var(--go-ink)}.win-switch input:checked:after{background:var(--key);transform:translate(18px)}@media (width>=700px){.win-row{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) auto;grid-template-areas:"main next buttons""last last buttons""confirm confirm confirm""error error error"}.win-buttons{justify-content:flex-end}}@media (width<=699px){.win{gap:10px;padding:10px 12px 12px}.win-list{padding:0 12px}.win-row{grid-template-columns:minmax(0,1fr);grid-template-areas:"main""next""last""buttons""confirm""error"}.win-form{max-width:none}}.up{flex-direction:column;gap:12px;margin-top:8px;display:flex}.up-title{font-size:22px}.input.up-value:read-only{background:var(--key);color:var(--text);font-family:var(--font-mono);font-size:12.5px}.up-secret{flex-direction:column;gap:10px;max-width:640px;padding:12px 14px;display:flex}.up-keys{flex-wrap:wrap;gap:8px;display:flex}.up-notice:empty{display:none}.up-row{grid-template-columns:minmax(0,1fr);grid-template-areas:"main""url""last""log""buttons""confirm""error";align-items:start;gap:8px 18px;padding:14px 0;display:grid}.up-row+.up-row{border-top:1px solid var(--edge)}.up-row[data-off] .win-name{color:var(--text-2)}.up-url{grid-area:url;align-items:center;gap:8px;min-width:0;display:flex}.up-log{grid-area:log;min-width:0}.up-log summary{min-height:44px;color:var(--text-2);font-family:var(--font-mono);letter-spacing:.06em;text-transform:uppercase;cursor:pointer;align-items:center;font-size:11.5px;list-style:none;display:flex}.up-log summary::-webkit-details-marker{display:none}.up-log summary:before{content:"+" / "";width:18px}.up-log[open] summary:before{content:"−" / ""}.up-deliveries{flex-direction:column;gap:6px;margin:0;padding:0 0 6px;list-style:none;display:flex}.up-deliveries li{flex-wrap:wrap;align-items:baseline;gap:4px 10px;font-size:12.5px;display:flex}.up-at{color:var(--muted);font-family:var(--font-mono);font-size:11.5px}.up-note{overflow-wrap:anywhere;flex:200px;min-width:0}@media (width>=700px){.up-row{grid-template-columns:minmax(0,1.3fr) minmax(0,1.7fr) auto;grid-template-areas:"main url buttons""last last buttons""log log log""confirm confirm confirm""error error error"}.up-row .win-buttons{justify-content:flex-end}}@media (width<=699px){.up-secret{max-width:none}}.dk{flex-direction:column;gap:12px;margin-top:8px;display:flex}.dk-station{color:var(--muted);margin:0;font-size:12.5px;line-height:1.5}.dk-station strong{color:var(--text)}.dk-agents{flex-direction:column;gap:6px;margin:0;padding:0 0 6px;list-style:none;display:flex}.dk-agents li{flex-wrap:wrap;align-items:baseline;gap:4px 10px;font-size:12.5px;display:flex}.dk-agents .dk-name{font-family:var(--font-mono);font-weight:600}.dk-agents .dk-role{min-width:0;color:var(--muted);overflow-wrap:anywhere;flex:200px}.dk-code{flex-direction:column;gap:10px;max-width:640px;padding:12px 14px;display:flex}.dk-handoff{flex-wrap:wrap;align-items:flex-end;gap:8px;display:flex}.dk-handoff .field{flex:140px;min-width:0}.dk-handed{align-self:flex-start}@media (prefers-reduced-motion:reduce){.dk *{transition:none;animation:none}}.dk-hint{flex-basis:100%;margin:0}.mass{flex-direction:column;gap:4px;margin:0;display:flex}.mass-row{flex-wrap:wrap;align-items:center;gap:4px 10px;display:flex}.mass-size{min-width:0;color:var(--text-2);overflow-wrap:anywhere;flex:auto;margin:0;font-size:12px}.mass-size code{font-family:var(--font-mono);font-size:11.5px}.mass-over{border-radius:var(--radius-key);background:var(--you-tint);color:var(--you-ink);overflow-wrap:anywhere;margin:0;padding:6px 10px;font-size:12px;line-height:1.4}.mass .hint,.mass .error{margin:0}.phone-console .mass{padding:0 14px 8px}.xterm{cursor:text;-webkit-user-select:none;user-select:none;position:relative}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{z-index:5;position:absolute;top:0}.xterm .xterm-helper-textarea{opacity:0;z-index:-5;white-space:nowrap;resize:none;border:0;width:0;height:0;margin:0;padding:0;position:absolute;top:0;left:-9999em;overflow:hidden}.xterm .composition-view{color:#fff;white-space:nowrap;z-index:1;background:#000;display:none;position:absolute}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{cursor:default;background-color:#000;position:absolute;inset:0;overflow-y:scroll}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;top:0;left:0}.xterm-char-measure-element{visibility:hidden;line-height:normal;display:inline-block;position:absolute;top:0;left:-9999em}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility:not(.debug),.xterm .xterm-message{z-index:10;color:#0000;pointer-events:none;position:absolute;inset:0}.xterm .xterm-accessibility-tree:not(.debug) ::selection{color:#0000}.xterm .xterm-accessibility-tree{-webkit-user-select:text;user-select:text;white-space:pre;font-family:monospace}.xterm .xterm-accessibility-tree>div{transform-origin:0;width:fit-content}.xterm .live-region{width:1px;height:1px;position:absolute;left:-9999px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{-webkit-text-decoration:underline double;text-decoration:underline double}.xterm-underline-3{-webkit-text-decoration:underline wavy;text-decoration:underline wavy}.xterm-underline-4{-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.xterm-underline-5{-webkit-text-decoration:underline dashed;text-decoration:underline dashed}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:underline overline}.xterm-overline.xterm-underline-2{-webkit-text-decoration:overline double underline;text-decoration:overline double underline}.xterm-overline.xterm-underline-3{-webkit-text-decoration:overline wavy underline;text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{-webkit-text-decoration:overline dotted underline;text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{-webkit-text-decoration:overline dashed underline;text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;pointer-events:none;position:absolute;top:0;right:0}.xterm-decoration-top{z-index:2;position:relative}.xterm .xterm-scrollable-element>.scrollbar{cursor:default}.xterm .xterm-scrollable-element>.scrollbar>.scra{cursor:pointer;font-size:11px!important}.xterm .xterm-scrollable-element>.visible{opacity:1;z-index:11;background:0 0;transition:opacity .1s linear}.xterm .xterm-scrollable-element>.invisible{opacity:0;pointer-events:none}.xterm .xterm-scrollable-element>.invisible.fade{transition:opacity .8s linear}.xterm .xterm-scrollable-element>.shadow{display:none;position:absolute}.xterm .xterm-scrollable-element>.shadow.top{width:100%;height:3px;box-shadow:var(--vscode-scrollbar-shadow,#000) 0 6px 6px -6px inset;display:block;top:0;left:3px}.xterm .xterm-scrollable-element>.shadow.left{width:3px;height:100%;box-shadow:var(--vscode-scrollbar-shadow,#000) 6px 0 6px -6px inset;display:block;top:3px;left:0}.xterm .xterm-scrollable-element>.shadow.top-left-corner{width:3px;height:3px;display:block;top:0;left:0}.xterm .xterm-scrollable-element>.shadow.top.left{box-shadow:var(--vscode-scrollbar-shadow,#000) 6px 0 6px -6px inset}.plan{flex-direction:column;flex:1 0 auto;gap:12px;padding:16px 24px 20px;display:flex}.plan-heading:focus-visible{outline:none}.plan-form{flex-direction:column;gap:12px;max-width:640px;padding:14px;display:flex}.plan-fields{border:0;flex-direction:column;gap:14px;min-width:0;margin:0;padding:0;display:flex}.plan-detail-input{font-family:var(--font-ui);font-size:14px}.plan-actions{gap:8px;display:flex}.plan-actions .btn{flex:1 1 0}.plan .input:is(select){background:var(--key);color:var(--text)}.plan-board{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));align-items:start;gap:12px;display:grid}.plan-col{flex-direction:column;gap:10px;min-width:0;padding:12px;display:flex}.plan-col-head{justify-content:space-between;align-items:baseline;gap:8px;display:flex}.plan-n{font-family:var(--font-lcd);letter-spacing:.02em;font-variant-numeric:tabular-nums;color:var(--text);font-size:16px;font-weight:900}.plan-none{padding:4px 0 2px}.plan-cards{flex-direction:column;gap:10px;margin:0;padding:0;list-style:none;display:flex}.plan-card{border:1px solid var(--edge);border-radius:var(--radius-key);background:var(--key);border-bottom-width:3px;flex-direction:column;gap:8px;padding:10px 12px 12px;display:flex}.plan-top{justify-content:space-between;align-items:center;gap:8px;display:flex}.plan-id{color:var(--muted);font-family:var(--font-mono);letter-spacing:.06em;font-size:11px}.plan-who{min-width:0;color:var(--text-2);align-items:center;gap:6px;display:inline-flex}.plan-who .legend{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.plan-title{overflow-wrap:anywhere;font-size:14px;font-weight:600;line-height:1.3}.plan-more>summary{min-height:44px;color:var(--text-2);font-family:var(--font-mono);letter-spacing:.06em;text-transform:uppercase;cursor:pointer;align-items:center;gap:6px;font-size:10.5px;display:flex}.plan-count{font-variant-numeric:tabular-nums;color:var(--muted)}.plan-detail{white-space:pre-wrap;overflow-wrap:anywhere;margin-bottom:6px}.plan-notes{color:var(--text-2);font-family:var(--font-mono);overflow-wrap:anywhere;flex-direction:column;gap:4px;margin:6px 0 0;padding:0 0 0 18px;font-size:11px;line-height:1.45;display:flex}.plan-moves{flex-wrap:wrap;gap:6px;display:flex}.plan-moves .btn{flex:auto;padding:0 10px;font-size:10.5px}.plan-assign{gap:4px}.plan-remove{align-self:flex-start;font-size:10.5px}.plan-confirm{flex-wrap:wrap;align-items:center;gap:8px 10px;padding:10px 12px;display:flex}.plan-confirm p{flex:140px}@media (width<=699px){.plan{gap:10px;padding:10px 12px 12px}.plan-form{max-width:none}.plan-col{padding:10px}}.mis{flex-direction:column;flex:1 0 auto;gap:12px;padding:16px 24px 20px;display:flex}.mis-heading:focus-visible{outline:none}.mis-list{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.mis-row{width:100%;min-height:44px;font:inherit;color:var(--text);text-align:left;cursor:pointer;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:10px;padding:10px 14px;display:grid}.mis-row-name{overflow-wrap:anywhere;font-weight:600}.mis-progress{font-variant-numeric:tabular-nums;color:var(--text-2)}.mis-detail,.mis-form{flex-direction:column;gap:10px;max-width:720px;padding:14px;display:flex}.mis-fields{border:0;flex-direction:column;gap:14px;min-width:0;margin:0;padding:0;display:flex}.mis-top{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.mis-id{font-family:var(--font-mono);color:var(--text-2)}.mis-name{overflow-wrap:anywhere;margin:0;font-size:20px}.mis-goal{white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.mis-keys,.mis-actions{flex-wrap:wrap;gap:8px;display:flex}.mis-tasks{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.mis-task{text-align:left;overflow-wrap:anywhere;justify-content:flex-start;width:100%}.plan-mission{cursor:pointer;align-self:flex-start}.wall-missions-key{margin-left:auto}@media (width<=480px){.mis{padding:12px 16px 16px}.mis-row{grid-template-columns:auto minmax(0,1fr) auto}.mis-row-lead{display:none}}.hg{flex-direction:column;flex:1 0 auto;gap:12px;padding:16px 24px 20px;display:flex}.hg-title:focus-visible{outline:none}.hg-agent{flex:0 220px;min-width:160px}.hg-tabs{gap:6px;display:flex}.hg-empty{margin:0;padding:12px 2px}.hg-cols{grid-template-columns:minmax(240px,320px) minmax(0,1fr);align-items:start;gap:12px;display:grid}.hg-side{flex-direction:column;gap:10px;min-width:0;padding:12px;display:flex}.hg-tools{flex-wrap:wrap;gap:6px;display:flex}.hg-new{flex-direction:column;align-items:flex-start;gap:8px;display:flex}.hg-new .field{align-self:stretch}.hg-list{margin:0;padding:0;list-style:none}.hg-root{max-height:70vh;overflow:auto}.hg-item{appearance:none;border-radius:var(--radius-key);width:100%;min-height:44px;color:var(--text);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;align-items:center;gap:8px;padding-right:10px;font-size:13px;display:flex}.hg-item:hover{background:var(--well)}.hg-item[aria-current=true]{background:var(--well);box-shadow:inset 3px 0 0 var(--work);font-weight:600}.hg-link{color:var(--muted);cursor:default}.hg-link:hover{background:0 0}.hg-mark{width:12px;color:var(--muted);flex:none}.hg-name{overflow-wrap:anywhere;flex:auto;min-width:0}.hg-size{color:var(--muted);font-family:var(--font-mono);flex:none;font-size:11px}.hg-note{margin:0;padding:8px 10px;list-style:none}.hg-editor{flex-direction:column;gap:10px;min-width:0;padding:12px;display:flex}.hg-bar{flex-wrap:wrap;align-items:center;gap:8px 10px;display:flex}.hg-path{min-width:0;font-family:var(--font-mono);overflow-wrap:anywhere;flex:200px;margin:0;font-size:13px;font-weight:600}.hg-ask,.hg-problem{flex-direction:column;align-items:flex-start;gap:8px;padding:10px 12px;display:flex}.hg-ask p,.hg-problem p{margin:0}.hg-row{flex-wrap:wrap;gap:8px;display:flex}.hg-ed{border:1px solid var(--edge);border-radius:var(--radius-key);background:var(--key);height:min(70vh,640px);min-height:320px;display:flex;overflow:hidden}.hg-gutter{box-sizing:content-box;width:calc(var(--digits) * 1ch + 8px);background:var(--well);color:var(--muted);font-family:var(--font-mono);text-align:right;-webkit-user-select:none;user-select:none;flex:none;margin:0;padding:10px 8px 30px 0;font-size:13px;line-height:20px;overflow:hidden}.hg-text{min-width:0;color:var(--text);font-family:var(--font-mono);resize:none;tab-size:4;white-space:pre;background:0 0;border:0;border-radius:0;flex:auto;margin:0;padding:10px 12px;font-size:13px;line-height:20px;overflow:auto}.hg-text:read-only{background:var(--well)}.hg-text:focus-visible{outline:none}.hg-ed:has(.hg-text:focus-visible){outline:2px solid var(--text);outline-offset:2px}@media (width<=899px){.hg{padding:12px 16px 20px}.hg-cols{grid-template-columns:minmax(0,1fr)}.hg-root{max-height:260px}.hg-ed{height:60vh;min-height:260px}}@media (width<=699px){.hg-gutter,.hg-text{font-size:16px;line-height:24px}}.staff{flex-direction:column;flex:1 0 auto;gap:14px;padding:16px 24px 24px;display:flex}.staff-head{flex-wrap:wrap;align-items:center;gap:10px 16px;padding:2px 2px 0;display:flex}.staff-title{flex:280px;font-size:28px}.staff-title:focus-visible{outline:none}.staff-count{color:var(--text-2);align-items:center;gap:8px;font-size:12.5px;display:flex}.staff-lcd{justify-content:flex-end;align-items:center;min-width:36px;padding:5px 9px 4px;display:inline-flex}.staff-lcd .lcd-num{font-size:19px}.staff-body{flex-wrap:wrap;flex-grow:1;gap:14px;display:flex}.staff-pick,.staff-form{flex-direction:column;gap:12px;min-width:0;margin:0;padding:14px;display:flex}.staff-pick{flex:1.35 560px}.staff-form{flex:420px}.staff-form[data-edit]{max-width:640px}.input::placeholder,.textarea::placeholder{color:var(--muted);opacity:1}.staff-tile-head{align-items:center;gap:7px;min-width:0;display:flex}.staff-tile-num{color:var(--muted);font-family:var(--font-mono);margin-left:auto;font-size:9.5px}.staff-matrix-scroll{overflow-x:auto}.staff-matrix{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;min-width:600px;padding:3px;display:grid}.staff .tile.staff-pos{gap:6px;min-height:96px}.staff .tile.staff-pos:disabled{cursor:not-allowed}.staff-pos-short{background:var(--well);min-height:30px;font-family:var(--font-mono);white-space:normal;overflow-wrap:anywhere;border-radius:5px;padding:5px 7px;font-size:10px;line-height:1.45;display:block}.staff .tile.staff-pos[data-kind=open] .staff-pos-short,.staff .tile.staff-pos[data-kind=stopped] .staff-pos-short{background:0 0;padding-left:0}.staff-pos-tag{font-size:9.5px}.staff-wide-row{flex-wrap:wrap;gap:8px;display:flex}.staff .tile.staff-wide{border:1px dashed var(--edge-2);--tile-sub:var(--muted);background:0 0;flex:240px;justify-content:center;gap:4px;min-height:64px;padding:10px 14px}.staff .tile.staff-wide[aria-pressed=false]{--led:var(--edge)}.staff .tile.staff-wide[aria-pressed=true]{border-style:solid;border-color:var(--edge);background:var(--key);--tile-sub:var(--text-2);border-bottom-width:3px}.staff .tile.staff-wide .tile-sub{white-space:normal;font-size:11px}.staff-picked{--led:var(--work);flex-wrap:wrap;align-items:center;gap:4px 10px;margin-top:2px;padding:12px 14px;display:flex}.staff-picked-name{font-size:22px}.staff-picked-title{font-size:13px;font-weight:600}.staff-picked-text{color:var(--text-2);flex:100%;font-size:13px;line-height:1.45}.staff-notice{border:1px solid var(--edge);border-radius:var(--radius-key);background:var(--well);color:var(--text-2);gap:10px;padding:10px 12px;font-size:12.5px;line-height:1.4;display:flex}.staff-notice[data-lit]{border-color:var(--work);background:var(--key);color:var(--text);--led:var(--work)}.staff-notice .led{margin-top:5px}.staff-fields{border:0;flex-direction:column;gap:14px;min-width:0;margin:0;padding:0;display:flex}.staff .field[data-invalid]>label{color:var(--nogo-text)}.staff-block{margin-top:4px;display:block}.staff .input.staff-engine{background:var(--key);color:var(--text)}.staff-role{height:150px;font-family:var(--font-ui);font-size:13.5px}.staff-fold>summary{cursor:pointer;min-height:44px;padding:12px 0}.staff-fold-body{flex-direction:column;gap:14px;padding-bottom:4px;display:flex}.staff-servers{height:180px}.staff-skills{height:90px}.staff-engine-note{flex-direction:column;gap:8px;margin-top:-6px;display:flex}.staff-engine-state,.staff-engine-note .hint{color:var(--text-2);align-items:flex-start;gap:8px;margin:0;font-size:12.5px;line-height:1.4;display:flex}.staff-engine-note .hint{display:block}.staff-engine-state .led{flex:none;margin-top:4px}.staff-engine-note a{color:var(--text);text-decoration:underline}.staff-install{flex-wrap:wrap;align-items:center;gap:6px 10px;display:flex}.staff-install .label{flex:100%}.staff-install .input{min-width:0;min-height:44px;font-family:var(--font-mono);flex:220px;font-size:12.5px}.staff .staff-install .input:read-only{background:var(--key);color:var(--text)}.staff-install .btn,.staff-keys .btn,.staff-key-row .btn{min-height:44px}.staff-keys{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.staff-keys li{flex-wrap:wrap;align-items:center;gap:6px 12px;display:flex}.staff-keys code{overflow-wrap:anywhere;min-width:0;font-family:var(--font-mono);flex:160px;font-size:12.5px}.staff-key-row{flex-wrap:wrap;align-items:flex-end;gap:8px 10px;display:flex}.staff-key-row .field{flex:180px;min-width:0}.staff-key-row .input{min-height:44px}.staff-clean{flex-direction:column;gap:2px;display:flex}.staff-clean .staff-check input{accent-color:var(--work)}.staff-clean .hint{margin:0}.staff-modes{border:0;min-width:0;margin:0;padding:0}.staff-modes>legend{margin-bottom:8px;padding:0}.staff-mode-tiles{grid-template-columns:repeat(auto-fit,minmax(min(120px,100%),1fr));gap:8px;display:grid}.staff .tile.staff-mode{justify-content:flex-start;gap:6px;min-height:76px}.staff .tile.staff-mode[aria-pressed=false]{--led:var(--edge)}.staff .tile.staff-mode[aria-pressed=true]{--led:var(--work)}.staff-mode-hint{white-space:normal;font-size:11px;line-height:1.35}.staff .tile.staff-mode[data-danger]{border-color:var(--nogo);color:var(--nogo-text);--tile-sub:var(--nogo-text)}.staff .tile.staff-mode[data-danger][aria-pressed=true]{background:var(--nogo-tint);--led:var(--nogo)}.staff-confirm{flex-direction:column;align-items:flex-start;gap:12px;padding:14px 16px;display:flex}.staff-confirm h2{color:var(--nogo-text);align-items:center;gap:10px;font-size:18px;line-height:1.15;display:flex}.staff-confirm p{font-size:13px;line-height:1.5}.staff-confirm .error{background:var(--key);align-self:stretch}.staff-check{align-items:center;gap:12px;min-height:44px;display:flex}.staff-check input{width:22px;height:22px;accent-color:var(--nogo);flex:none;margin:0}.staff-check label{flex:1;align-self:stretch;align-items:center;font-size:13px;font-weight:500;display:flex}.staff-foot{flex-direction:column;gap:10px;margin-top:auto;display:flex}.staff .btn.staff-go{text-align:center;width:100%;padding:8px 16px;line-height:1.3}.staff .btn.staff-go[data-tone=nogo]:not([aria-disabled=true]){border-color:var(--nogo);background:var(--nogo-tint);color:var(--nogo-text)}.staff-actions{gap:8px;display:flex}.staff-actions .btn{flex:1 1 0}.staff-actions .btn:last-child:not(:first-child){flex-grow:1.6}.staff-full{border-style:dashed;border-color:var(--edge-2);max-width:560px;color:var(--text-2);--led:var(--nogo);background:0 0;flex-direction:column;gap:8px;padding:16px 18px;display:flex}.staff-full h2{color:var(--text);align-items:center;gap:10px;font-size:22px;display:flex}.staff-full p{font-size:13px;line-height:1.5}@media (width<=699px){.staff{gap:10px;padding:10px 12px 12px}.staff-head{flex-wrap:nowrap;gap:10px;padding:0 0 0 2px}.staff-title{flex:1 1 0;min-width:0;font-size:22px}.staff-count{display:none}.staff-body{flex-flow:column;gap:10px}.staff-pick,.staff-form{flex:none;gap:10px;padding:12px}.staff-matrix{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;min-width:0;padding:3px 3px 0}.staff .tile.staff-pos{gap:4px;min-height:56px;padding:6px 8px}.staff .tile-legend{letter-spacing:.02em;font-size:10.5px}.staff-pos-short{white-space:nowrap;text-overflow:ellipsis;min-height:0;padding:2px 5px;font-size:9.5px;overflow:hidden}.staff-pos-tag,.staff-mode-hint{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.staff-wide-row{gap:6px}.staff .tile.staff-wide{flex-basis:150px;min-height:56px;padding:6px 8px}.staff .tile.staff-wide .tile-legend{font-size:10px}.staff .tile.staff-wide .tile-sub{white-space:nowrap;text-overflow:ellipsis;font-size:9.5px;overflow:hidden}.staff-picked{gap:2px 8px;margin-top:0;padding:10px 12px}.staff-picked-name{font-size:20px}.staff-picked-title{display:none}.staff-picked-text{flex:1 1 0;min-width:0;font-size:11.5px;font-weight:500;line-height:1.4}.staff-fields{gap:10px}.staff-role{height:96px}.staff-mode-tiles{gap:5px;display:flex}.staff .tile.staff-mode{flex:1 1 0;justify-content:center;align-items:center;min-height:46px;padding:0 6px}.staff-mode .tile-legend{letter-spacing:.04em;font-size:9.5px}.staff .tile.staff-mode:nth-child(2){flex-grow:1.5}.staff-confirm{padding:12px}.staff-foot{border-top:1px solid var(--edge);border-radius:0 0 var(--radius-module) var(--radius-module);background:var(--panel);margin:0 -12px -12px;padding:8px 12px 12px;position:sticky;bottom:0}}.rl{flex-direction:column;gap:12px;margin-top:16px;display:flex}.rl-forward{flex-direction:column;gap:4px;min-width:0;margin:0;padding:12px 14px;display:flex}.rl-forward legend{padding:0}.rl-cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,440px),1fr));align-items:start;gap:12px;display:grid}.rl-card{flex-direction:column;gap:12px;min-width:0;padding:14px;display:flex}.rl-target{flex-direction:column;gap:12px;min-width:0;display:flex}.rl-keys{flex-wrap:wrap;gap:8px;display:flex}.rl-steps ol{flex-direction:column;gap:8px;margin:0;padding:0 0 6px 22px;font-size:13px;line-height:1.5;display:flex}.rl-steps code{font-family:var(--font-mono);overflow-wrap:anywhere;font-size:12px}.rl-uplinks{flex-direction:column;gap:12px;margin:0;padding:0;list-style:none;display:flex}.rl-uplinks li{flex-direction:column;gap:6px;min-width:0;display:flex}.rl-make{align-self:flex-start}.liv{flex-direction:column;flex:1 0 auto;gap:12px;padding:16px 24px 20px;display:flex}.livery-mark{background:linear-gradient(90deg,currentColor 50%,#0000 50%);border:2px solid;border-radius:50%;width:18px;height:18px}.liv-title:focus-visible{outline:none}.liv-list{flex-direction:column;gap:8px;max-width:720px;margin:0;padding:0;list-style:none;display:flex}.liv-row{grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px 16px;padding:12px 14px;display:grid}.liv-row[data-current=true]{border-color:var(--go);box-shadow:inset 3px 0 0 var(--go)}.liv-swatch{border:1px solid var(--edge);border-radius:var(--radius-key);background:var(--key);grid-template-columns:repeat(4,18px);grid-auto-rows:18px;gap:2px;padding:2px;display:grid}.liv-swatch span{border-radius:3px;box-shadow:inset 0 0 0 1px #0000001f}.liv-text{flex-direction:column;gap:3px;min-width:0;display:flex}.liv-name{overflow-wrap:anywhere;margin:0;font-size:15px;font-weight:600}.liv-desc{color:var(--text-2);overflow-wrap:anywhere;font-size:12.5px;line-height:1.45}.liv-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.liv-confirm{flex-wrap:wrap;flex:100%;align-items:center;gap:8px 10px;padding:10px 12px;display:flex}.liv-confirm p{flex:140px}.liv-design{flex-direction:column;gap:14px;max-width:720px;padding:14px;display:flex}.liv-notice{min-height:1.45em;padding:0 2px}@media (width<=699px){.liv{gap:10px;padding:10px 12px 12px}.liv-row{grid-template-columns:auto minmax(0,1fr)}.liv-actions{grid-column:1/-1}.liv-actions .btn{flex:1 1 0}.liv-design{padding:12px}}.chart{flex-direction:column;gap:8px;min-width:0;padding:10px;display:flex}.chart-svg{border:1px solid var(--edge);border-radius:var(--radius-key);background:var(--key);width:100%;height:auto;display:block}.chart-edge{stroke:var(--muted);stroke-width:1px;stroke-opacity:.7}.chart-edge[data-kind=mention]{stroke:var(--work);stroke-width:1.75px;stroke-opacity:.9}.chart-edge[data-kind=cooccur]{stroke-dasharray:4 3}.chart-edge[data-dim],.chart-node[data-dim]{opacity:.3}.chart-arrow{fill:var(--work)}.chart-node{cursor:pointer}.chart-node:focus,.chart-node:focus-visible{outline:none}.chart-shape{stroke:var(--text-2);stroke-width:1.5px}.chart-node[data-kind=entry] .chart-shape{fill:var(--work)}.chart-node[data-kind=tag] .chart-shape{fill:var(--go-tint)}.chart-node[data-kind=author] .chart-shape{fill:var(--you-tint)}.chart-hit{fill:#0000;stroke:#0000;stroke-width:2px}.chart-node[aria-pressed=true] .chart-hit{stroke:var(--text)}.chart-node:focus-visible .chart-hit{stroke:var(--text);stroke-dasharray:3 2;fill:var(--you-tint)}.chart-label{fill:var(--text);font-family:var(--font-mono);paint-order:stroke;stroke:var(--key);stroke-width:3px;stroke-linejoin:round;pointer-events:none;font-size:11px}.chart-label:not([data-show]){display:none}.chart-node:hover .chart-label:not([data-show]),.chart-node:focus-visible .chart-label:not([data-show]),.chart-node[aria-pressed=true] .chart-label:not([data-show]){display:inline}.chart-status,.chart-key{margin:0}.chart-links{flex-direction:column;gap:14px;min-width:0;display:flex}.chart-links>section{flex-direction:column;gap:6px;display:flex}.chart-list{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.chart-list li{flex-direction:column;gap:4px;min-width:0;display:flex}.chart-group{border:1px solid var(--edge);border-radius:var(--radius-key);background:var(--key);padding:8px 10px}.chart-name{overflow-wrap:anywhere;margin:0;font-size:13.5px;font-weight:600}.chart-rel{color:var(--text-2);overflow-wrap:anywhere;flex-wrap:wrap;align-items:center;gap:4px 6px;margin:0;font-size:12px;line-height:1.4;display:flex}.chart-ids{flex-wrap:wrap;gap:4px;margin:0;display:flex}.chart-ref{text-transform:none;min-width:44px;padding:0 10px}.chart-ref[aria-current=true]{border-color:var(--work)}.chart-lens{gap:4px;display:flex}.chart-lens .btn[aria-pressed=true]{border-color:var(--text);background:var(--text);color:var(--panel)}@media (width<=699px){.chart-lens{flex:100%;order:3}.chart-lens .btn{flex:1 1 0;padding:0 8px}}.log-cols[data-lens=chart],.log-cols[data-lens=links]{grid-template-columns:minmax(0,1.5fr) minmax(260px,1fr)}@media (width<=899px){.log-cols[data-lens=chart],.log-cols[data-lens=links]{grid-template-columns:minmax(0,1fr)}}.log{flex-direction:column;flex:1 0 auto;gap:12px;padding:16px 24px 20px;display:flex}.log-heading:focus-visible,.log-entry-title:focus-visible{outline:none}.log-cols{grid-template-columns:minmax(260px,380px) minmax(0,1fr);align-items:start;gap:12px;display:grid}.log-list,.log-side{flex-direction:column;gap:10px;min-width:0;display:flex}.log-search{flex-direction:column;gap:6px;padding:12px;display:flex}.log-rows{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.log-row{appearance:none;border:1px solid var(--edge);border-radius:var(--radius-key);background:var(--key);width:100%;min-height:44px;color:inherit;font:inherit;text-align:left;cursor:pointer;border-bottom-width:3px;flex-direction:column;align-items:stretch;gap:4px;padding:10px 12px 12px;display:flex}.log-row[aria-current=true]{border-color:var(--work);box-shadow:inset 3px 0 0 var(--work)}.log-row-top{color:var(--muted);font-family:var(--font-mono);letter-spacing:.06em;align-items:baseline;gap:10px;font-size:11px;display:flex}.log-who{min-width:0;color:var(--text-2);text-overflow:ellipsis;white-space:nowrap;flex:auto;overflow:hidden}.log-row-title{overflow-wrap:anywhere;font-size:14px;font-weight:600;line-height:1.3}.log-snippet{color:var(--text-2);overflow-wrap:anywhere;font-size:12.5px;line-height:1.4}.log-tags{flex-wrap:wrap;gap:4px;display:flex}.log-entry,.log-form{flex-direction:column;gap:12px;min-width:0;padding:14px;display:flex}.log-entry-title{overflow-wrap:anywhere;font-size:20px;font-weight:600;line-height:1.25}.log-meta{color:var(--text-2);font-family:var(--font-mono);letter-spacing:.04em;flex-wrap:wrap;align-items:center;gap:6px 12px;margin:0;font-size:11px;display:flex}.log-id{color:var(--muted)}.log-body{border:1px solid var(--edge);border-radius:var(--radius-key);background:var(--key);max-height:60vh;color:var(--text);font-family:var(--font-mono);white-space:pre-wrap;overflow-wrap:anywhere;margin:0;padding:12px;font-size:12.5px;line-height:1.5;overflow:auto}.log-actions{flex-wrap:wrap;gap:8px;display:flex}.log-confirm{flex-wrap:wrap;flex:100%;align-items:center;gap:8px 10px;padding:10px 12px;display:flex}.log-confirm p{flex:140px}.log-form{max-width:720px}.log-fields{border:0;flex-direction:column;gap:14px;min-width:0;margin:0;padding:0;display:flex}.log-body-input{font-family:var(--font-mono);font-size:13px}.log-form .log-actions .btn{flex:1 1 0}@media (width<=899px){.log-cols{grid-template-columns:minmax(0,1fr)}.log[data-open] .log-list,.log-pick{display:none}}@media (width<=699px){.log{gap:10px;padding:10px 12px 12px}.log-form{max-width:none}.log-body{max-height:none}}.rc-cols{grid-template-columns:minmax(280px,400px) minmax(0,1fr)}.rc-side,.rc-main{flex-direction:column;gap:12px;min-width:0;display:flex}.rc-box{flex-direction:column;gap:10px;min-width:0;padding:12px;display:flex}.rc-head{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.rc-head .label{overflow-wrap:anywhere;flex:120px;min-width:0;margin:0}.rc-author{color:var(--text-2);overflow-wrap:anywhere;margin:0;font-size:12.5px}.rc-files{flex-direction:column;gap:6px;max-height:360px;margin:0;padding:0;list-style:none;display:flex;overflow:auto}.rc-file{appearance:none;border:1px solid var(--edge);border-radius:var(--radius-key);background:var(--key);width:100%;min-height:44px;color:var(--text);font:inherit;text-align:left;cursor:pointer;border-bottom-width:3px;flex-direction:column;align-items:flex-start;gap:4px;padding:8px 12px;font-size:13px;display:flex}.rc-file[aria-pressed=true]{border-color:var(--work);box-shadow:inset 3px 0 0 var(--work)}.rc-path{font-family:var(--font-mono);overflow-wrap:anywhere;font-size:12.5px}.rc-labels{flex-wrap:wrap;gap:4px;display:flex}.rc-scope{border:0;margin:0;padding:0}.rc-scope>.rc-radio{min-height:44px;color:var(--text);font-family:var(--font-ui);letter-spacing:0;text-transform:none;align-items:center;gap:10px;font-size:13px;display:flex}.rc-radio input{width:20px;height:20px;accent-color:var(--work);flex:none;margin:0}.rc-commit .btn,.rc-retry .btn{align-self:flex-start}.rc-commit .hint{margin:0}.rc-made{overflow-wrap:anywhere;text-transform:none;align-self:flex-start;margin:0}.rc-diff{tab-size:4;white-space:pre;max-height:60vh;margin:0;padding:10px 12px;font-size:12px;line-height:1.5;overflow:auto}.rc-diff [data-kind=ctx],.rc-diff [data-kind=meta]{color:var(--lcd-dim)}.rc-diff [data-kind=meta],.rc-diff [data-kind=hunk]{font-weight:600}.rc-diff [data-kind=add],.rc-diff [data-kind=hunk]{color:var(--lcd-text)}.rc-diff [data-kind=del]{color:var(--lcd-warm)}.rc-log{flex-direction:column;max-height:360px;margin:0;padding:0;list-style:none;display:flex;overflow:auto}.rc-log li{border-top:1px solid var(--edge);grid-template-columns:64px minmax(0,1fr);gap:2px 10px;padding:8px 0;display:grid}.rc-hash{color:var(--text-2);font-family:var(--font-mono);font-size:12px}.rc-subject{overflow-wrap:anywhere;font-size:13px}.rc-by{color:var(--muted);grid-column:2;font-size:11.5px}@media (width<=899px){.rc-cols{grid-template-columns:minmax(0,1fr)}}.patch{width:min(560px,100vw - 24px);max-height:min(70vh,560px);color:var(--text);flex-direction:column;gap:10px;margin:10vh auto auto;padding:14px}.patch[open]{display:flex}.patch::backdrop{background:#00000059}.patch-head{justify-content:space-between;align-items:center;gap:12px;display:flex}.patch-title{margin:0}.patch-list{flex:auto;min-height:0;margin:0;padding:0;list-style:none;overflow-y:auto}.patch-option{border-radius:var(--radius-key);cursor:pointer;align-items:center;gap:12px;min-height:44px;padding:0 12px;display:flex}.patch-option[aria-selected=true]{background:var(--key);box-shadow:inset 3px 0 0 var(--work), 0 0 0 1px var(--edge)}.patch-label{overflow-wrap:anywhere;flex:auto;min-width:0}.patch-group{font-family:var(--font-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--muted);flex:none;font-size:10.5px}.patch-foot{margin:0}.patch-mark{background:radial-gradient(circle,currentColor 2px,#0000 2.5px) 0 0/33.3% 33.3%;width:16px;height:16px}@media (width<=699px){.patch{max-height:calc(100dvh - 24px);margin-top:12px}}.rules{flex-direction:column;flex:1 0 auto;gap:12px;padding:16px 24px 20px;display:flex}.rules-title:focus-visible{outline:none}.rules-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;display:grid}.rules-block{flex-direction:column;align-items:flex-start;gap:10px;padding:14px;display:flex}.rules-block>.label,.rules-block>.hint,.rules-value{margin:0}.rules-value{font-size:18px;font-weight:600}.rules-consoles{flex-direction:column;align-self:stretch;gap:6px;margin:0;padding:0;list-style:none;display:flex}.rules-consoles li{align-items:center;gap:12px;display:flex}.rules-call{font-family:var(--font-mono);font-weight:600}.rules-name{overflow-wrap:anywhere;flex:auto;min-width:0}.rules-mark{background:linear-gradient(currentColor,currentColor) 0 1px/100% 2px no-repeat,linear-gradient(currentColor,currentColor) 0 6px/100% 2px no-repeat,linear-gradient(currentColor,currentColor) 0 11px/100% 2px no-repeat,radial-gradient(circle,currentColor 2.5px,#0000 3px) 2px -1px/6px 6px no-repeat,radial-gradient(circle,currentColor 2.5px,#0000 3px) 9px 4px/6px 6px no-repeat,radial-gradient(circle,currentColor 2.5px,#0000 3px) 4px 9px/6px 6px no-repeat;width:16px;height:14px}.commission{flex-direction:column;gap:10px;padding:14px;display:flex}.commission-head{flex-wrap:wrap;align-items:center;gap:6px 12px;display:flex}.commission-head .label{margin:0}.commission-head .btn{margin-left:auto}.commission-steps{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.commission-steps li{grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px 12px;display:grid}.commission-text{min-width:0}.commission-title{margin:0;font-size:14px;font-weight:600}.commission-steps li[data-done] .commission-title{color:var(--text-2);text-decoration:line-through}.commission-text .hint,.commission-note p{margin:2px 0 0}.commission-note summary{cursor:pointer;align-items:center;min-height:44px;font-size:13px;text-decoration:underline;display:flex}.commission-note p{font-size:13px;line-height:1.5}@media (width<=699px){.room-phone>.commission{margin:10px 12px 0}.rules .wall-fuel{display:flex}.rules .wall-block.module:not(.flood){border:1px solid var(--edge);font-size:inherit;padding:14px}.rules{gap:10px;padding:10px 12px 12px}.commission-steps li{grid-template-columns:auto minmax(0,1fr)}.commission-steps li>.btn{grid-column:2;justify-self:start}}.rules-models{width:100%}.rules-model-list{gap:8px;width:100%;margin:0;padding:0;list-style:none;display:grid}.rules-model{grid-template-columns:minmax(96px,150px) minmax(0,1fr) auto;align-items:center;gap:8px;display:grid}.rules-model .error{grid-column:1/-1;margin:0}@media (width<=480px){.rules-model{grid-template-columns:minmax(0,1fr) auto}.rules-model>label{grid-column:1/-1}}.rules-notify{flex-direction:column;align-items:flex-start;gap:8px;margin-bottom:12px;display:flex}.rules-notify>.label,.rules-notify>.hint{margin:0}.commission-extra{margin:8px 0 0}.pl{flex-direction:column;flex:1 0 auto;gap:12px;padding:16px 24px 20px;display:flex}.pl-heading:focus-visible{outline:none}.pl-scroll{padding:0 14px}.pl-list{margin:0;padding:0;list-style:none}.pl-row+.pl-row{border-top:1px solid var(--edge)}.pl-head{appearance:none;width:100%;min-height:44px;color:inherit;font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:0;grid-template-columns:96px 220px minmax(0,1fr) auto;grid-template-areas:"time route text chip";align-items:start;gap:18px;padding:12px 0;display:grid}.pl-head:hover{background:color-mix(in srgb, var(--well) 60%, transparent)}.pl-head:focus-visible{outline-offset:-2px}.pl-text{flex-direction:column;grid-area:text;gap:3px;min-width:0;display:flex}.pl-chip{grid-area:chip;justify-self:end}.pl-head .loop-route{overflow-wrap:anywhere}.pl-open{border:1px solid var(--edge);border-radius:var(--radius);background:var(--key);flex-direction:column;gap:14px;margin:0 0 12px;padding:12px 14px;display:flex}.pl-msgs{flex-direction:column;gap:12px;margin:0;padding:0;list-style:none;display:flex}.pl-msg{border-left:3px solid var(--edge);flex-direction:column;gap:4px;padding-left:10px;display:flex}.pl-msg[data-from-you]{border-left-color:var(--work)}.pl-msg-head{flex-wrap:wrap;align-items:center;gap:4px 12px;display:flex}.pl-msg-head .loop-time{padding-top:0}.pl-answer{border-top:1px solid var(--edge);flex-direction:column;gap:10px;padding-top:12px;display:flex}.pl-to{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.pl .input:is(select){background:var(--key);width:auto;min-width:160px;color:var(--text)}.pl-more{padding:10px 0}@media (width<=699px){.pl{gap:10px;padding:10px 12px 12px}.pl-scroll{padding:0 12px}.pl-head{grid-template-columns:minmax(0,1fr) auto auto;grid-template-areas:"route chip time""text text text";align-items:center;gap:4px 8px;padding:11px 0}.pl-chip{justify-self:auto}.pl-open{padding:10px 12px}}.app{flex-direction:column;min-height:100dvh;display:flex}.link{appearance:none;min-height:44px;color:inherit;font:inherit;cursor:pointer;background:0 0;border:0;align-items:center;padding:0;font-size:12.5px;text-decoration:underline;display:flex}.topbar{flex-wrap:wrap;align-items:center;gap:8px;min-height:64px;padding:20px 24px 0;display:flex}.mark{align-items:center;gap:10px;margin:0;display:flex}.mark-name{width:auto;height:26px;display:block}:root[data-scheme=dark] .mark-name{filter:invert()hue-rotate(180deg)}@media (width>=700px) and (width<=1399px){.mark-unit-long{display:none}}.topbar-dir{min-width:0;max-width:24ch;color:var(--muted);font-family:var(--font-mono);text-overflow:ellipsis;white-space:nowrap;flex:6ch;font-size:11.5px;overflow:hidden}.topbar-grow{flex-grow:1}.topbar .chip{margin-left:2px}.gone-strip{color:var(--you-ink);flex-wrap:wrap;align-items:center;gap:8px 12px;margin:12px 24px 0;padding:6px 14px;font-size:12px;display:flex}.rollout-strip{border:1px solid var(--edge);border-radius:var(--radius-key);background:var(--well);color:var(--text-2);flex-wrap:wrap;align-items:center;gap:4px 12px;margin:12px 24px 0;padding:2px 8px 2px 14px;font-size:12px;display:flex}.rollout-strip code{overflow-wrap:anywhere;min-width:0;color:var(--text);font-family:var(--font-mono);font-size:12px}.wall{grid-template-columns:minmax(0,1.35fr) minmax(0,1.15fr) minmax(0,1.1fr) minmax(0,.8fr) minmax(0,1fr);gap:12px;margin:16px 24px 0;display:grid}.wall-block{flex-direction:column;gap:10px;min-width:0;padding:14px;display:flex}.wall-block>.label,.wall-head .label{margin:0}.wall-lcd{flex-direction:column;gap:6px;padding:14px 16px 12px;display:flex;container-type:inline-size}.wall-mission-text{color:var(--lcd-dim);font-family:var(--font-mono);overflow-wrap:anywhere;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:12px;display:-webkit-box;overflow:hidden}.wall-clock{color:var(--lcd-text);white-space:nowrap;font-size:min(64px,19cqw);line-height:.95}.wall-clock[data-ghost=true]{color:var(--lcd-dim)}.wall-clock-label{font-size:10.5px}.wall-head{flex-wrap:wrap;align-items:center;gap:6px 12px;display:flex}.wall-head .label{margin-right:auto}.seq-key{color:var(--muted);font-family:var(--font-mono);align-items:center;gap:5px;font-size:10px;display:flex}.seq-swatch{background:var(--work);border-radius:2px;width:10px;height:4px}.seq-swatch[data-kind=needs]{background:var(--you);height:8px}.seq-tracks{flex-direction:column;flex-grow:1;justify-content:center;gap:6px;display:flex}.seq-tracks[data-dense=true]{gap:2px}.seq-row{align-items:center;gap:8px;display:flex}.seq-call{width:58px;color:var(--text-2);font-family:var(--font-mono);text-overflow:ellipsis;white-space:nowrap;flex:none;font-size:10px;overflow:hidden}.seq-track{flex:1 1 0;height:8px;position:relative}.seq-track:before{background:var(--seq-base);content:"";border-radius:2px;position:absolute;inset:2px 0}.seq-span{background:var(--work);border-radius:2px;position:absolute;top:2px;bottom:2px}.seq-span[data-kind=custom]{background:var(--muted)}.seq-span[data-kind=needs]{background:var(--you);top:0;bottom:0}.seq-axis{color:var(--muted);font-family:var(--font-mono);justify-content:space-between;padding-left:66px;font-size:9.5px;display:flex}.wall-word{flex-wrap:wrap;align-items:baseline;gap:0 12px;display:flex}.wall-word .disp{font-size:30px;line-height:1.1}.wall-word .disp[data-ghost=true]{color:var(--muted)}.wall-count{font-size:22px}.wall-note{color:var(--text-2);overflow-wrap:anywhere;-webkit-line-clamp:3;-webkit-box-orient:vertical;font-size:12px;display:-webkit-box;overflow:hidden}.vote-chips{flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none;display:flex}.vote-chip{border:1px solid var(--edge);border-radius:var(--radius-key);background:var(--key);border-bottom-width:3px;flex-direction:column;flex:52px;align-items:center;gap:5px;min-width:0;max-width:84px;padding:8px 2px 7px;display:flex}.vote-chip .led{--led:var(--track);width:9px;height:9px}.vote-chip[data-verdict=GO] .led{--led:var(--go)}.vote-chip[data-verdict=NO-GO] .led{--led:var(--nogo)}.vote-call{max-width:100%;font-family:var(--font-mono);letter-spacing:.02em;text-overflow:ellipsis;font-size:10px;font-weight:600;overflow:hidden}.vote-verdict{color:var(--muted);font-family:var(--font-mono);font-size:9.5px}.wall-actions{gap:6px;margin-top:auto;display:flex}.wall-actions .btn{flex:1 1 0;padding:0 10px;font-size:11px}.wall-fire{flex-wrap:wrap;gap:6px;display:flex}.wall-fire .input{flex:120px;height:44px}.wall-fire .btn{flex:none;padding:0 10px;font-size:11px}.wall-fire .hint{flex:100%}.wall-maxq{align-items:center;gap:8px}.wall-maxq>.label{align-self:flex-start}.knob{--fill:0deg;background:conic-gradient(from 225deg, var(--work) 0deg var(--fill), var(--track) var(--fill) 270deg, transparent 270deg 360deg);border-radius:50%;flex:none;place-items:center;width:104px;height:104px;display:grid}.wall-limit{border:1px solid var(--edge);background:var(--key);width:80px;height:80px;box-shadow:0 3px 0 var(--edge);border-radius:50%;justify-content:center;align-items:center;margin:0;font-size:30px;display:flex}.wall-maxq-note{color:var(--muted);font-family:var(--font-mono);letter-spacing:.02em;text-align:center;text-transform:uppercase;font-size:10px}.stepper{flex-wrap:wrap;justify-content:center;gap:6px;margin-top:auto;display:flex}.stepper-off{padding:0 12px;font-size:10.5px}.fuel{--fuel:var(--go);flex-direction:column;gap:8px;min-width:0;display:flex}.fuel[data-level=warn]{--fuel:var(--you)}.fuel[data-level=over]{--fuel:var(--nogo)}.fuel-windows{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;display:grid}.fuel-units{grid-template-columns:repeat(2,minmax(0,1fr))}.fuel-fold{margin-top:8px}.fuel-fold>summary{cursor:pointer;min-height:44px;padding:12px 0}.fuel-chart{border-bottom:1px solid var(--edge);width:100%;height:80px}.fuel-legend{flex-wrap:wrap;gap:4px 12px;margin:6px 0;padding:0;font-size:11px;list-style:none;display:flex}.fuel-swatch{width:9px;height:9px;margin-right:5px;display:inline-block}.fuel-table{border-collapse:collapse;width:100%;font-family:var(--font-mono);font-size:11px}.fuel-table th,.fuel-table td{text-align:left;overflow-wrap:anywhere;padding:4px 6px}.fuel-prices-form{flex-wrap:wrap}.fuel-price-field{flex:80px;min-width:0}.fuel-price-field .fuel-input{width:100%}.fuel-window{min-height:32px;padding:0 4px;font-size:10px}.fuel-window[aria-pressed=true]{border-color:var(--text);color:var(--text)}.fuel-lcd{align-items:baseline;gap:8px;padding:10px 12px;display:flex}.fuel-lcd .led{align-self:center}.fuel-used{font-size:26px}.fuel-limit{color:var(--lcd-dim);letter-spacing:.06em;text-overflow:ellipsis;white-space:nowrap;font-size:11px;overflow:hidden}.fuel-bar{background:var(--track);border-radius:3px;height:6px;overflow:hidden}.fuel-bar>span{background:var(--fuel);height:100%;display:block}.fuel-form{gap:6px;display:flex}.fuel-input{height:44px;font-family:var(--font-mono);flex:auto;font-size:12.5px}.fuel-form .btn{padding:0 10px}.panel-fuel>summary{cursor:pointer;min-height:44px;padding:12px 0}.telemetry{max-height:320px;margin:0 0 12px;padding:8px 10px;font-size:12px;list-style:none;overflow-y:auto}.telemetry-row{border-bottom:1px solid #ffffff14;grid-template-columns:auto minmax(0,1fr) auto;gap:2px 10px;padding:6px 0;display:grid}.telemetry-row:last-child{border-bottom:0}.telemetry-time,.telemetry-ms{color:var(--lcd-dim);font-variant-numeric:tabular-nums}.telemetry-tool{text-overflow:ellipsis;white-space:nowrap;font-weight:600;overflow:hidden}.telemetry-ms[data-failed]{color:var(--lcd-warm)}.telemetry-bar{background:#ffffff0f;border-radius:2px;grid-column:1/-1;height:3px}.telemetry-bar>span{background:var(--lcd-dim);border-radius:2px;height:100%;display:block}.telemetry-detail{color:var(--lcd-text);text-overflow:ellipsis;white-space:nowrap;grid-column:1/-1;overflow:hidden}.room{flex-wrap:wrap;flex-grow:1;align-items:stretch;gap:16px;padding:16px 24px 24px;display:flex}.room-main{flex-direction:column;flex:999 640px;gap:14px;min-width:0;display:flex}.operations{flex-direction:column;gap:12px;padding:14px;display:flex}.operations-head{flex-wrap:wrap;align-items:baseline;gap:4px 12px;display:flex}.operations-head .label{margin:0}.matrix{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;padding:2px 2px 4px;display:grid}.tile-state-vote{display:none}.tile-chip{padding:1px 6px;font-size:8.5px}.your-console,.needs{flex-direction:column;gap:12px;display:flex}.needs-dock{z-index:5;max-height:55vh;position:sticky;bottom:12px;overflow-y:auto}.need{flex-wrap:wrap;align-items:center;gap:8px 14px;padding:12px 14px;display:flex}.need-led{width:10px;height:10px}.need-text{flex-direction:column;flex:260px;gap:2px;min-width:0;display:flex}.need-title,.foot-ask .disp{letter-spacing:.01em;overflow-wrap:anywhere;font-size:15px;line-height:1.2}.need-detail{color:var(--you-ink);font-family:var(--font-mono);overflow-wrap:anywhere;font-size:11.5px}.need-error{flex:100%}.go-buttons{gap:8px;display:flex}.flood[data-tone=amber] .btn:not([data-kind=primary]){border-color:var(--you-key)}.need .btn[data-size=big],.foot-ask .btn{border-radius:var(--radius-key);border-bottom-width:3px;min-height:48px;padding:0 20px;font-size:12px}.need .btn[data-kind=primary][data-size=big]{padding:0 30px}.relief-rows{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:2px 16px;margin:4px 0 0;display:grid}.relief-failed{color:var(--you-ink);font-family:var(--font-mono);overflow-wrap:anywhere;margin:0;font-size:11.5px}.relief-row{min-width:0;color:var(--you-ink);font-family:var(--font-mono);gap:6px;font-size:11.5px;display:flex}.relief-row dt{flex:none;font-weight:600}.relief-row dt:after{content:":"}.relief-row dd{overflow-wrap:anywhere;min-width:0;margin:0}.relief-role-label{color:var(--you-ink);font-family:var(--font-mono);margin:6px 0 0;font-size:11.5px;font-weight:600}.relief-role{border:1px solid var(--you-key);border-radius:var(--radius-key);max-height:11em;color:var(--you-ink);font-family:var(--font-mono);overflow-wrap:anywhere;white-space:pre-wrap;margin:0;padding:4px 8px;font-size:11.5px;line-height:1.4;overflow:auto}.panel{--panel-pad:0px;flex-direction:column;flex:440px;gap:10px;min-width:0;padding:14px;display:flex}.panel-empty{min-height:240px}.panel-head{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.panel-id{flex-direction:column;flex:200px;gap:4px;min-width:0;display:flex}.panel-title{flex-wrap:wrap;align-items:center;gap:6px 10px;display:flex}.panel-title .led{width:10px;height:10px}.panel-legend{font-family:var(--font-mono);letter-spacing:.02em;overflow-wrap:anywhere;font-size:18px;font-weight:600;line-height:1.1}.panel-sub{color:var(--muted);overflow-wrap:anywhere;font-size:12px}.panel-actions{flex-wrap:wrap;gap:6px;display:flex}.panel-actions .btn{padding:0 12px;font-size:10.5px}.panel[data-mode=ask],.panel[data-mode=needs]{border-color:var(--you-edge)}.panel[data-mode=ask] .panel-head,.panel[data-mode=needs] .panel-head{border-bottom:1px solid var(--you-edge);background:var(--you-tint);border-radius:11px 11px 0 0;margin:-14px -14px 0;padding:14px}.panel[data-mode=ask] .panel-sub,.panel[data-mode=needs] .panel-sub{color:var(--you-ink)}.panel[data-mode=stopped]{background:var(--well)}.panel[data-mode=stopped] .panel-legend{color:var(--muted)}.panel[data-mode=starting]{border-style:dashed}.panel-details{color:var(--text-2);font-size:12px}.panel-clean{color:var(--text-2);overflow-wrap:anywhere;margin:0;font-size:12px}.panel-clean code{font-family:var(--font-mono);font-size:11.5px}.pane{flex-direction:column;flex:auto;gap:6px;min-height:0;display:flex}.pane-status{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.pane-notice{min-width:0;color:var(--you-ink);font-size:12px;font-weight:600}.pane-notice:empty{display:none}.term-wrap{border-radius:var(--radius-key);background:var(--lcd);flex:auto;min-height:360px;position:relative;overflow:hidden}.term-wrap:before{z-index:9;border-radius:inherit;content:"";pointer-events:none;position:absolute;inset:0;box-shadow:inset 0 2px 8px #00000059}.term-host{position:absolute;inset:0;overflow:hidden}.term-host[data-scroll=true]{overflow:auto}.term-host[data-dim=true]{opacity:.6}.term-host .xterm{padding:12px 14px 8px}.term-host .xterm .xterm-viewport{background-color:var(--lcd)}.term-wrap:has(.term-host:focus-within):after{z-index:10;border:2px solid var(--lcd-text);border-radius:inherit;content:"";pointer-events:none;position:absolute;inset:0}.pane-empty{color:var(--lcd-dim);font-family:var(--font-mono);pointer-events:none;place-items:center;font-size:12px;display:grid;position:absolute;inset:0}.pane-hint{color:var(--muted);font-family:var(--font-mono);font-size:10.5px}.foot{flex-direction:column;gap:10px;display:flex}.foot-exit{color:var(--text-2);overflow-wrap:anywhere;font-size:12px}.foot-command{border:1px solid var(--edge);border-radius:var(--radius-key);background:var(--key);font-family:var(--font-mono);overflow-wrap:anywhere;padding:8px 10px;font-size:11.5px}.foot-ask{flex-direction:column;gap:8px;padding:12px 14px;display:flex}.foot-ask .disp{align-items:center;gap:8px;display:flex}.foot-ask .go-buttons .btn{flex:1 1 0}.foot-ask .btn[data-kind=primary]{flex:1.4 1 0}.remove{flex-direction:column;gap:10px;padding:14px 16px;display:flex}.remove .disp{font-size:20px;line-height:1.1}.remove p{font-size:13px;line-height:1.5}.remove-buttons{gap:8px;display:flex}.remove-buttons .btn{flex:1 1 0;font-size:12px}.remove-buttons .btn:first-child{flex:1.4 1 0}.system{flex:1;justify-content:center;align-items:flex-start;padding:32px 24px;display:flex}.system-slab{flex-direction:column;flex:auto;gap:12px;width:100%;min-width:0;max-width:640px;padding:26px 28px;display:flex}.system-label{align-items:center;gap:8px;display:flex}.system-word{font-size:clamp(40px,8vw,64px);line-height:1}.system-word[data-ghost=true]{color:var(--muted)}.system-lead{font-size:17px;font-weight:600;line-height:1.3}.system-text{font-size:13.5px;line-height:1.5}.system-address{overflow-wrap:anywhere;padding:12px 14px;font-size:13px}.system-steps{gap:8px;display:flex}.system-steps span{background:var(--work);border-radius:50%;width:10px;height:10px;animation:1.5s ease-in-out infinite ins-step}.system-steps span:nth-child(2){animation-delay:.5s}.system-steps span:nth-child(3){animation-delay:1s}@media (width>=700px) and (width<=999px){.topbar{padding:16px 20px 0}.wall{grid-template-columns:repeat(2,minmax(0,1fr));margin:12px 20px 0}.wall-fuel{grid-column:1/-1}.room{padding:12px 20px 20px}.gone-strip{margin:12px 20px 0}}.topbar-plus{flex:none;width:44px;padding:0;font-size:18px}.phone-bar{background:var(--body);gap:3px;margin-top:auto;padding:8px 6px 12px;display:flex;position:sticky;bottom:0}.phone-bar .btn{letter-spacing:0;border-radius:9px;flex:1 1 0;min-height:48px;padding:0 1px;font-size:11px;position:relative}.phone-bar .chip{margin:0;padding:1px 6px;position:absolute;top:-7px;right:-3px}.phone-console{flex-direction:column;height:100dvh;display:flex;overflow:hidden}.phone-head{flex:none;align-items:center;gap:10px;min-height:52px;padding:2px 14px 2px 6px;display:flex}.phone-back{min-height:44px;padding:0 12px}.phone-legend{font-family:var(--font-mono);letter-spacing:.02em;flex-grow:1;margin:0;font-size:18px;font-weight:600;line-height:1}.phone-sub{flex:none;align-items:center;gap:8px;padding:0 14px 8px;display:flex}.phone-sub .panel-sub{text-overflow:ellipsis;white-space:nowrap;flex:1 1 0;min-width:0;overflow:hidden}.phone-sub .btn{padding:0 12px;font-size:10.5px}.phone-console .panel-actions,.phone-console .panel-clean{flex:none;padding:0 14px 8px}.phone-console .pane{flex:1 1 0;margin:0 12px 8px}.phone-console .term-wrap{min-height:120px}.phone-console .pane-hint{display:none}.phone-console .panel-error,.phone-console>.error{margin:0 12px 8px}.phone-console .remove{flex:none;margin:0 12px 8px;padding:12px 14px}.phone-console .foot{flex:none;padding:8px 12px 0}.phone-traffic{flex:none;max-height:132px;overflow-y:auto}.phone-traffic .panel-fuel{padding:0 12px}.phone-traffic .telemetry{max-height:none}.phone-keys{flex:none;gap:5px;padding:8px 12px 0;display:flex}.phone-key{flex:1 1 0;min-height:46px;padding:0;font-size:15px}.phone-key[data-kind=primary]{flex:1.4 1 0}.phone-type{flex:none;gap:6px;padding:8px 12px 14px;display:flex}.phone-type .input{flex:1 1 0;height:46px;font-size:16px}.phone-type .btn{height:46px;padding:0 14px;font-size:10.5px}.phone-go{flex-direction:column;gap:12px;min-height:100dvh;padding:0 14px 16px;display:flex}.phone-go-head{justify-content:space-between;align-items:center;gap:10px;height:52px;margin:0 -6px;display:flex}.phone-go-head .phone-back{background:0 0;border:0}.phone-go-card{border-radius:14px;flex-direction:column;gap:14px;padding:16px;display:flex}.phone-go-call{align-items:center;gap:10px;font-size:13px;display:flex}.phone-go-call .led{--led:var(--you);width:12px;height:12px}.phone-go-call .led[data-on=true]{box-shadow:0 0 0 5px color-mix(in srgb, var(--led) 25%, transparent)}.phone-go-title{font-size:34px;line-height:1.05}.phone-go-what{flex-direction:column;gap:4px;padding:12px 14px;display:flex}.phone-go-tool{color:var(--lcd-dim);letter-spacing:.08em;text-transform:uppercase;font-size:10px}.phone-go-detail{color:var(--lcd-text);overflow-wrap:anywhere;font-size:16px}.phone-go-dir{color:var(--lcd-dim);overflow-wrap:anywhere;font-size:11px}.phone-go-held{color:var(--text-2);font-size:13px;line-height:1.45}.phone-go-buttons{gap:10px;margin-top:auto;padding-top:8px;display:flex}.phone-go-buttons .btn{letter-spacing:.08em;border-bottom-width:5px;border-radius:16px;flex-direction:column;flex:1 1 0;gap:10px;height:120px;font-size:15px}.phone-go-buttons .phone-go-yes{flex-grow:1.4}.phone-go-buttons .led{width:12px;height:12px}.phone-go-no .led{--led:var(--nogo)}.phone-go-yes .led{--led:var(--go-lit)}.phone-go-link{align-self:flex-end}@media (width<=699px){.app{--bottom-bar:68px}.topbar{flex-wrap:nowrap;gap:10px;min-height:52px;padding:4px 8px 4px 14px}.mark-name{height:22px}.mark-unit{font-size:9.5px}.mark-unit-long,.label-letter{display:none}.gone-strip{margin:6px 12px 0}.rollout-strip{margin:6px 12px}.wall{border:1px solid var(--edge);border-radius:var(--radius-module);background:var(--panel);flex-direction:column;gap:10px;margin:0 12px;padding:12px;display:flex}.wall-sequence,.wall-fuel{display:none}.wall-block.module:not(.flood){background:0 0;border:0;padding:0}.wall-block{gap:8px}.wall-block.flood{padding:10px}.wall-mission>.label,.wall-clock-label{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.wall-lcd{gap:2px;padding:10px 12px}.wall-mission-text{-webkit-line-clamp:1;font-size:10.5px}.wall-clock{font-size:min(40px,19cqw)}.wall-tminus{flex-flow:wrap;align-items:center;gap:6px 8px}.wall-tminus .wall-note,.wall-tminus .error{-webkit-line-clamp:2;flex:100%;order:5}.wall-tminus>.label{font-size:10px}.wall-fire{flex:100%;order:6}.wall-word{flex-wrap:nowrap;gap:8px}.wall-word .disp{font-size:16px}.wall-count{font-size:18px}.vote-chips{gap:4px}.vote-chip{background:0 0;border:0;flex:none;padding:0}.vote-call,.vote-verdict{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.wall-actions{margin:0 0 0 auto}.wall-actions .btn{flex:none;padding:0 12px;font-size:10.5px}.wall-maxq{flex-flow:wrap;gap:6px 10px}.wall-maxq>.label{align-self:center;font-size:10px}.knob{width:40px;height:40px}.wall-limit{width:30px;height:30px;box-shadow:0 2px 0 var(--edge);font-size:12px}.wall-maxq-note{text-align:left;-webkit-line-clamp:2;flex:60px;min-width:0;font-size:9.5px}.stepper{margin:0 0 0 auto}.room-phone{flex-flow:column;flex:auto;gap:0;min-width:0;padding:0;display:flex}.room-phone>*{min-width:0}.needs{gap:8px;margin:10px 12px 0}.need{flex-wrap:nowrap;padding:8px 12px}.need-text{flex:1 1 0}.need-title{font-size:14px}.need-detail{text-overflow:ellipsis;white-space:nowrap;font-size:11px;overflow:hidden}.need .btn{flex:none;min-height:44px;padding:0 14px;font-size:11px}.relief-need{flex-wrap:wrap}.relief-need .need-text,.relief-need .go-buttons{flex:100%}.relief-need .go-buttons .btn{flex:1;padding:0}.operations{background:0 0;border:0;border-radius:0;gap:0;padding:12px 12px 8px}.operations-head{display:none}.matrix{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:2px 0}.room-tile{border-radius:9px;height:64px;min-height:0;padding:7px 8px 6px}.tile-head{gap:6px}.tile-num,.tile-right{display:none}.room-tile .tile-legend{letter-spacing:.02em;font-size:10.5px}.room-tile[data-kind] .tile-lcd{min-height:0;color:inherit;background:0 0;padding:0;font-size:9.5px;line-height:1.4}.tile-lcd .tile-sub:nth-child(2){display:none}.tile-foot{justify-content:flex-start;gap:4px}.tile-state-vote{display:inline}.room-tile .tile-state{font-size:9px}.system{padding:14px}.system-slab{padding:20px 18px}}
|
package/dist/client/index.html
CHANGED
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
<link rel="icon" href="./favicon.svg" type="image/svg+xml" />
|
|
11
11
|
<link rel="apple-touch-icon" href="./apple-touch-icon.png" />
|
|
12
12
|
<title>gonogo</title>
|
|
13
|
-
<script type="module" crossorigin src="./assets/index-
|
|
14
|
-
<link rel="stylesheet" crossorigin href="./assets/index-
|
|
13
|
+
<script type="module" crossorigin src="./assets/index-DxUnpGbS.js"></script>
|
|
14
|
+
<link rel="stylesheet" crossorigin href="./assets/index-tpcmltjw.css">
|
|
15
15
|
</head>
|
|
16
16
|
<body>
|
|
17
17
|
<div id="root"></div>
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import { MISSION_STATUSES, TASK_STATUSES } from '../shared/protocol.js';
|
|
2
|
+
import { isRecord } from './hooks.js';
|
|
3
|
+
/** A name or an id: letters, digits, dots, dashes, underscores and an at sign, at most 64. */
|
|
4
|
+
const PLAIN = /^[A-Za-z0-9][A-Za-z0-9._@-]{0,63}$/;
|
|
5
|
+
const plain = (value) => (typeof value === 'string' && PLAIN.test(value) ? value : null);
|
|
6
|
+
/** The first argument that is a plain name or id, else the id or the name of the answer. */
|
|
7
|
+
function subjectOf(args, result) {
|
|
8
|
+
for (const arg of args) {
|
|
9
|
+
const found = plain(arg);
|
|
10
|
+
if (found !== null)
|
|
11
|
+
return found;
|
|
12
|
+
}
|
|
13
|
+
return isRecord(result) ? (plain(result.id) ?? plain(result.name)) : null;
|
|
14
|
+
}
|
|
15
|
+
export function audited(store, record, table) {
|
|
16
|
+
const out = { ...store };
|
|
17
|
+
for (const [method, [kind, words]] of Object.entries(table)) {
|
|
18
|
+
const original = store[method];
|
|
19
|
+
if (typeof original !== 'function')
|
|
20
|
+
throw new Error(`audited: no method ${method}`);
|
|
21
|
+
out[method] = (...args) => {
|
|
22
|
+
const done = (result) => {
|
|
23
|
+
let text;
|
|
24
|
+
try {
|
|
25
|
+
text = typeof words === 'string' ? [words, subjectOf(args, result)].filter(Boolean).join(' ') : words(args, result);
|
|
26
|
+
}
|
|
27
|
+
catch {
|
|
28
|
+
text = null;
|
|
29
|
+
}
|
|
30
|
+
if (text !== null)
|
|
31
|
+
record(kind, text);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
const result = original.apply(store, args);
|
|
35
|
+
return result instanceof Promise ? result.then(done) : done(result);
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
return out;
|
|
39
|
+
}
|
|
40
|
+
/** The fields an edit names: the names of the fields only, never their values. */
|
|
41
|
+
const EDIT_FIELDS = ['name', 'role', 'dir', 'mode', 'position', 'command', 'payload', 'cleanRoom', 'worktree', 'remoteControl'];
|
|
42
|
+
const fieldsOf = (value, allowed) => (isRecord(value) ? Object.keys(value).filter((key) => allowed.includes(key) && value[key] !== undefined) : []);
|
|
43
|
+
const actorName = (actor) => {
|
|
44
|
+
if (!isRecord(actor))
|
|
45
|
+
return 'Director';
|
|
46
|
+
if (actor.kind === 'agent')
|
|
47
|
+
return plain(actor.name) ?? 'an agent';
|
|
48
|
+
return actor.kind === 'dock' ? `Director of ${plain(actor.station) ?? 'a station'}` : 'Director';
|
|
49
|
+
};
|
|
50
|
+
/** What the Director does to the room through the hub (the browser routes use this copy of it). */
|
|
51
|
+
export const HUB_AUDIT = {
|
|
52
|
+
hire: ['crew', 'Director hired'],
|
|
53
|
+
restart: ['crew', 'Director restarted'],
|
|
54
|
+
stop: ['crew', 'Director stopped'],
|
|
55
|
+
remove: ['crew', 'Director removed'],
|
|
56
|
+
edit: ['config', (args) => `Director edited ${plain(args[0]) ?? 'an agent'}: ${fieldsOf(args[1], EDIT_FIELDS).join(', ') || 'nothing'}`],
|
|
57
|
+
hold: ['redline', (args) => `Director put ${plain(args[0]) ?? 'an agent'} on hold`],
|
|
58
|
+
resume: ['redline', 'Director resumed'],
|
|
59
|
+
answer: ['answer', (args) => `Director answered ${plain(args[0]) ?? 'an agent'}: ${isRecord(args[1]) && args[1].go === true ? 'go' : 'no-go'}`],
|
|
60
|
+
startPoll: ['poll', 'Director started a T-minus poll'],
|
|
61
|
+
holdPoll: ['poll', 'Director held the poll'],
|
|
62
|
+
abortPoll: ['poll', 'Director aborted the poll'],
|
|
63
|
+
clearPoll: ['poll', 'Director cleared the poll'],
|
|
64
|
+
setGovernor: ['config', (_args, result) => `Director set Max Q to ${isRecord(result) && typeof result.limit === 'number' ? `${result.limit} working` : 'no limit'}`],
|
|
65
|
+
};
|
|
66
|
+
/** Relief: the Director's go or no-go to a hire request, by the request's id (never the name, role, directory or text of the request). */
|
|
67
|
+
export const RELIEF_AUDIT = {
|
|
68
|
+
decide: ['answer', (args) => `Director answered hire request ${plain(args[0]) ?? '?'}: ${args[1] === 'go' ? 'go' : 'no-go'}`],
|
|
69
|
+
};
|
|
70
|
+
/** Missions: who made or changed a mission, and what kind of change (the status, never a name, goal or note). */
|
|
71
|
+
export const MISSIONS_AUDIT = {
|
|
72
|
+
create: ['plan', (args, result) => `${actorName(args[0])} created mission ${isRecord(result) ? (plain(result.id) ?? '?') : '?'}`],
|
|
73
|
+
update: [
|
|
74
|
+
'plan',
|
|
75
|
+
(args) => {
|
|
76
|
+
const input = isRecord(args[2]) ? args[2] : {};
|
|
77
|
+
const status = MISSION_STATUSES.includes(input.status) ? ` status ${String(input.status)}` : '';
|
|
78
|
+
const other = ['name', 'goal', 'lead', 'note'].filter((k) => input[k] !== undefined).join(' ');
|
|
79
|
+
return `${actorName(args[0])} updated mission ${plain(args[1]) ?? '?'}:${status}${other === '' ? '' : ` ${other}`}`;
|
|
80
|
+
},
|
|
81
|
+
],
|
|
82
|
+
remove: ['plan', (args) => `Director removed mission ${plain(args[0]) ?? '?'}${args[1] === true ? ' and unlinked its tasks' : ''}`],
|
|
83
|
+
};
|
|
84
|
+
/** Flight Plan: who made or changed a task, and what kind of change (the status and the assignee, never a title, detail or note). */
|
|
85
|
+
export const TASKS_AUDIT = {
|
|
86
|
+
create: ['plan', (args, result) => `${actorName(args[0])} created task ${isRecord(result) ? (plain(result.id) ?? '?') : '?'}`],
|
|
87
|
+
update: [
|
|
88
|
+
'plan',
|
|
89
|
+
(args) => {
|
|
90
|
+
const input = isRecord(args[2]) ? args[2] : {};
|
|
91
|
+
const status = TASK_STATUSES.includes(input.status) ? ` status ${String(input.status)}` : '';
|
|
92
|
+
const assignee = input.assignee === null ? ' unassigned' : plain(input.assignee) !== null ? ` assignee ${String(input.assignee)}` : '';
|
|
93
|
+
return `${actorName(args[0])} updated task ${plain(args[1]) ?? '?'}:${status}${assignee}${typeof input.note === 'string' ? ' note' : ''}`;
|
|
94
|
+
},
|
|
95
|
+
],
|
|
96
|
+
remove: ['plan', 'Director removed task'],
|
|
97
|
+
handOff: ['plan', (args) => `Director handed off task ${plain(args[0]) ?? '?'} to ${plain(args[1]) ?? 'a station'}`],
|
|
98
|
+
};
|
|
99
|
+
/** Plot Board: who wrote it and how long it is; the text is in board.md and not here. */
|
|
100
|
+
export const BOARD_AUDIT = {
|
|
101
|
+
write: [
|
|
102
|
+
'plan',
|
|
103
|
+
(args, result) => {
|
|
104
|
+
const view = isRecord(result) ? result : {};
|
|
105
|
+
const sent = isRecord(args[1]) ? args[1] : {};
|
|
106
|
+
// the same text again made no revision
|
|
107
|
+
if (typeof view.revision !== 'number' || view.revision === sent.revision)
|
|
108
|
+
return null;
|
|
109
|
+
return `${args[0] === 'user' ? 'Director' : (plain(args[0]) ?? 'an agent')} wrote the Plot Board: revision ${view.revision}, ${typeof view.text === 'string' ? view.text.length : 0} characters`;
|
|
110
|
+
},
|
|
111
|
+
],
|
|
112
|
+
};
|
|
113
|
+
/** Uplink: a delivery that made a message, and what the Director does to the list. */
|
|
114
|
+
export const UPLINKS_AUDIT = {
|
|
115
|
+
deliver: [
|
|
116
|
+
'uplink',
|
|
117
|
+
(args, result) => (isRecord(result) && typeof result.id === 'string' ? `Uplink ${plain(args[0]) ?? '?'} delivered message ${plain(result.id) ?? '?'}` : null),
|
|
118
|
+
],
|
|
119
|
+
create: ['config', 'Director made an uplink'],
|
|
120
|
+
update: ['config', 'Director changed uplink'],
|
|
121
|
+
remove: ['config', 'Director removed uplink'],
|
|
122
|
+
rotate: ['config', 'Director rotated the secret of uplink'],
|
|
123
|
+
};
|
|
124
|
+
/** The rest of what the Director configures from the browser. */
|
|
125
|
+
export const SCHEDULES_AUDIT = {
|
|
126
|
+
create: ['config', 'Director made a schedule'],
|
|
127
|
+
update: ['config', 'Director changed schedule'],
|
|
128
|
+
remove: ['config', 'Director removed schedule'],
|
|
129
|
+
run: ['config', 'Director ran schedule'],
|
|
130
|
+
};
|
|
131
|
+
export const PROPELLANT_AUDIT = {
|
|
132
|
+
setLimits: ['config', 'Director changed the Propellant limits'],
|
|
133
|
+
setBudget: ['config', 'Director changed the Propellant budget'],
|
|
134
|
+
};
|
|
135
|
+
export const PRICES_AUDIT = { replace: ['config', 'Director changed the model prices'], remove: ['config', 'Director removed a model price'] };
|
|
136
|
+
export const RELAY_AUDIT = {
|
|
137
|
+
set: ['config', 'Director set up Relay target'],
|
|
138
|
+
remove: ['config', 'Director removed Relay target'],
|
|
139
|
+
forward: ['config', 'Director changed what Relay forwards'],
|
|
140
|
+
};
|
|
141
|
+
export const LIVERIES_AUDIT = { select: ['config', 'Director chose a livery'], remove: ['config', 'Director removed livery'] };
|
|
142
|
+
export const DOCKING_AUDIT = {
|
|
143
|
+
createCode: ['config', 'Director made a docking code'],
|
|
144
|
+
pair: ['config', 'Director paired a station'],
|
|
145
|
+
undock: ['config', 'Director undocked'],
|
|
146
|
+
};
|
|
147
|
+
/** What a Redline trip says to the Downlink is "<name>: <reason>", and the reason can hold a command line: the Black Box keeps the name and the rule. */
|
|
148
|
+
const TRIP_RULES = ['loop', 'error storm', 'ping-pong', 'out of propellant', 'room out of propellant'];
|
|
149
|
+
export function tripText(text) {
|
|
150
|
+
const at = text.indexOf(': ');
|
|
151
|
+
const reason = at < 0 ? '' : text.slice(at + 2);
|
|
152
|
+
const rule = TRIP_RULES.find((candidate) => reason === candidate || reason.startsWith(`${candidate}:`)) ?? 'another rule';
|
|
153
|
+
return `${(at < 0 ? null : plain(text.slice(0, at))) ?? 'An agent'} tripped the Redline: ${rule}`;
|
|
154
|
+
}
|
|
155
|
+
/** A T-minus result is "<STATUS>: <note>", and the note is made of agent names and fixed words (hub.ts pollNote), never of a vote's reason. */
|
|
156
|
+
export const pollText = (text) => `T-minus poll ${text}`;
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Black Box: an append-only record of what happened in the room, in a git repository of its own, with the server as the only
|
|
3
|
+
* committer (docs/black-box-spec.md).
|
|
4
|
+
*
|
|
5
|
+
* `<home>/black-box/` holds one file for each UTC day, `YYYY-MM-DD.jsonl`, a line for each event: { at, kind, text }. A text is made of
|
|
6
|
+
* names, ids and words of the server, never of a message, a title or anything somebody typed (the callers see to that, audited.ts
|
|
7
|
+
* lists them), and it is cut to one clean line. A line is appended at once; the commit is batched, at most once in BLACKBOX_COMMIT_MS,
|
|
8
|
+
* and at shutdown. Git runs through execFile with an argument array, a timeout and a scrubbed environment: the identity is passed
|
|
9
|
+
* with -c, so that no git config of the user is read or written, and the repository's own hooks, signing and fsmonitor are switched
|
|
10
|
+
* off. Without git, or when git fails, the room goes on: events are still written to the files and shown, and the view says why they
|
|
11
|
+
* are not committed; the next batch commits whatever is waiting.
|
|
12
|
+
*
|
|
13
|
+
* shortcut: a rate cap (BLACKBOX_RATE_MAX a minute) drops the rest of a burst and says so in the log; raise it or batch the burst
|
|
14
|
+
* if a real room ever hits it. shortcut: the files are plain files, so anything that can write the home (an agent in bypassPermissions)
|
|
15
|
+
* can change them; git history makes that visible, it does not prevent it.
|
|
16
|
+
*/
|
|
17
|
+
import { execFile } from 'node:child_process';
|
|
18
|
+
import { constants } from 'node:fs';
|
|
19
|
+
import { appendFile, lstat, mkdir, open, readdir, rm } from 'node:fs/promises';
|
|
20
|
+
import { join, resolve } from 'node:path';
|
|
21
|
+
import { AUDIT_KINDS, AUDIT_TEXT_MAX_CHARS } from '../shared/protocol.js';
|
|
22
|
+
import { BLACKBOX_COMMIT_MS, BLACKBOX_DIR, BLACKBOX_GIT_TIMEOUT_MS, BLACKBOX_RATE_MAX, BLACKBOX_RATE_WINDOW_MS, BLACKBOX_RECENT_MAX, BLACKBOX_TAIL_BYTES, DIR_MODE, FILE_MODE } from './constants.js';
|
|
23
|
+
// C0, DEL, C1 and bidi controls: an event is one clean line.
|
|
24
|
+
const UNSAFE_IN_TEXT = /[\u0000-\u001f\u007f-\u009f--]/g;
|
|
25
|
+
const DAY_FILE = /^\d{4}-\d{2}-\d{2}\.jsonl$/;
|
|
26
|
+
/** The identity and the switches of every git call: nothing of the user's git setup applies, and nothing in the repository runs. */
|
|
27
|
+
const GIT_FIXED = ['-c', 'user.name=gonogo', '-c', 'user.email=gonogo@localhost', '-c', 'commit.gpgsign=false', '-c', 'core.hooksPath=/dev/null', '-c', 'core.fsmonitor=false'];
|
|
28
|
+
/** The real runner: execFile (no shell), the repository as GIT_DIR and GIT_WORK_TREE so that no other repository is found above it, no config file read. */
|
|
29
|
+
export function execGit(repo, path = process.env.PATH, timeoutMs = BLACKBOX_GIT_TIMEOUT_MS) {
|
|
30
|
+
const env = {
|
|
31
|
+
...(path === undefined ? {} : { PATH: path }),
|
|
32
|
+
GIT_DIR: join(repo, '.git'),
|
|
33
|
+
GIT_WORK_TREE: repo,
|
|
34
|
+
GIT_CONFIG_GLOBAL: '/dev/null',
|
|
35
|
+
GIT_CONFIG_NOSYSTEM: '1',
|
|
36
|
+
GIT_TERMINAL_PROMPT: '0',
|
|
37
|
+
LC_ALL: 'C',
|
|
38
|
+
};
|
|
39
|
+
return (args) => new Promise((done, fail) => {
|
|
40
|
+
execFile('git', [...GIT_FIXED, ...args], { cwd: repo, env, timeout: timeoutMs, maxBuffer: 1_048_576, windowsHide: true, killSignal: 'SIGKILL' }, (error, stdout, stderr) => {
|
|
41
|
+
const code = error?.code;
|
|
42
|
+
if (error === null)
|
|
43
|
+
done({ code: 0, stdout, stderr });
|
|
44
|
+
else if (typeof code === 'number')
|
|
45
|
+
done({ code, stdout, stderr });
|
|
46
|
+
// a git that was killed leaves its index.lock, and only the server runs git here: without this every later commit fails until somebody deletes it
|
|
47
|
+
else if (error.killed === true)
|
|
48
|
+
void rm(join(repo, '.git', 'index.lock'), { force: true }).catch(() => undefined).then(() => fail(error));
|
|
49
|
+
else
|
|
50
|
+
fail(error);
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
/** At most `max` characters, never half of a surrogate pair. */
|
|
55
|
+
const cutText = (text, max) => (text.length <= max ? text : text.slice(0, /[\ud800-\udbff]/.test(text.charAt(max - 1)) ? max - 1 : max));
|
|
56
|
+
/** A path as one word of a POSIX shell, to paste in a terminal. */
|
|
57
|
+
export const shellWord = (text) => `'${text.replace(/'/g, `'\\''`)}'`;
|
|
58
|
+
const firstLine = (text) => cutText((text.trim().split('\n')[0] ?? '').replace(UNSAFE_IN_TEXT, ' ').trim(), 200);
|
|
59
|
+
const dayFile = (at) => `${new Date(at).toISOString().slice(0, 10)}.jsonl`;
|
|
60
|
+
/** The events of a text file, oldest first: a line that is not an event is skipped. */
|
|
61
|
+
function parseLines(text) {
|
|
62
|
+
const found = [];
|
|
63
|
+
for (const line of text.split('\n')) {
|
|
64
|
+
try {
|
|
65
|
+
const value = JSON.parse(line);
|
|
66
|
+
const at = typeof value.at === 'string' ? Date.parse(value.at) : Number.NaN;
|
|
67
|
+
if (!Number.isNaN(at) && AUDIT_KINDS.includes(value.kind) && typeof value.text === 'string') {
|
|
68
|
+
found.push({ at, kind: value.kind, text: cutText(value.text, AUDIT_TEXT_MAX_CHARS) });
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
catch {
|
|
72
|
+
// an empty line, the cut start of the tail, or a hand edit: not an event
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
return found;
|
|
76
|
+
}
|
|
77
|
+
/** The newest events of the day files, newest first: only the end of each file is read, so a big day costs no more than a small one. */
|
|
78
|
+
async function readRecent(repo) {
|
|
79
|
+
const names = (await readdir(repo)).filter((name) => DAY_FILE.test(name)).sort().reverse();
|
|
80
|
+
const found = [];
|
|
81
|
+
for (const name of names.slice(0, 7)) {
|
|
82
|
+
const path = join(repo, name);
|
|
83
|
+
if (!(await lstat(path)).isFile())
|
|
84
|
+
continue;
|
|
85
|
+
const handle = await open(path, 'r');
|
|
86
|
+
try {
|
|
87
|
+
const { size } = await handle.stat();
|
|
88
|
+
const start = Math.max(0, size - BLACKBOX_TAIL_BYTES);
|
|
89
|
+
const buffer = Buffer.alloc(size - start);
|
|
90
|
+
await handle.read(buffer, 0, buffer.length, start);
|
|
91
|
+
const text = buffer.toString('utf8');
|
|
92
|
+
// a tail starts in the middle of a line: drop that line
|
|
93
|
+
found.push(...parseLines(start > 0 ? text.slice(text.indexOf('\n') + 1) : text).reverse());
|
|
94
|
+
}
|
|
95
|
+
finally {
|
|
96
|
+
await handle.close();
|
|
97
|
+
}
|
|
98
|
+
if (found.length >= BLACKBOX_RECENT_MAX)
|
|
99
|
+
break;
|
|
100
|
+
}
|
|
101
|
+
return found.slice(0, BLACKBOX_RECENT_MAX);
|
|
102
|
+
}
|
|
103
|
+
export function createBlackBox(options) {
|
|
104
|
+
const { now, log } = options;
|
|
105
|
+
const repo = resolve(options.dir, BLACKBOX_DIR);
|
|
106
|
+
const git = options.git ?? execGit(repo, options.path);
|
|
107
|
+
/** Newest first. */
|
|
108
|
+
let recent = [];
|
|
109
|
+
// load() says otherwise at once when git is not usable
|
|
110
|
+
let state = 'ok';
|
|
111
|
+
let note = '';
|
|
112
|
+
/** The folder can take files: false when it is not a plain folder. */
|
|
113
|
+
let writable = false;
|
|
114
|
+
/** Git was found and the repository is there: false until load says so, and for good when it could not. */
|
|
115
|
+
let canCommit = false;
|
|
116
|
+
let waiting = 0;
|
|
117
|
+
let dropped = 0;
|
|
118
|
+
let windowStart = 0;
|
|
119
|
+
let inWindow = 0;
|
|
120
|
+
let timer = null;
|
|
121
|
+
let closed = false;
|
|
122
|
+
let chain = Promise.resolve();
|
|
123
|
+
const setGit = (next, why) => {
|
|
124
|
+
if (next !== state || why !== note) {
|
|
125
|
+
if (next === 'ok')
|
|
126
|
+
log.info('the Black Box commits again');
|
|
127
|
+
else
|
|
128
|
+
log.warn(`the Black Box does not commit: ${why}`);
|
|
129
|
+
}
|
|
130
|
+
state = next;
|
|
131
|
+
note = why;
|
|
132
|
+
};
|
|
133
|
+
/** Adds what the log needs of the batch: files first, so a commit sees every line that was recorded before it. */
|
|
134
|
+
const later = (fn) => {
|
|
135
|
+
chain = chain.then(fn).catch((error) => log.warn('the Black Box could not write', error instanceof Error ? error.message : String(error)));
|
|
136
|
+
};
|
|
137
|
+
const commit = async () => {
|
|
138
|
+
if (!canCommit)
|
|
139
|
+
return;
|
|
140
|
+
const count = waiting;
|
|
141
|
+
waiting = 0;
|
|
142
|
+
try {
|
|
143
|
+
const steps = [
|
|
144
|
+
[['add', '-A', '--', '.'], [0]],
|
|
145
|
+
[['diff', '--cached', '--quiet'], [0, 1]],
|
|
146
|
+
];
|
|
147
|
+
let changed = false;
|
|
148
|
+
for (const [args, accepted] of steps) {
|
|
149
|
+
const done = await git(args);
|
|
150
|
+
if (!accepted.includes(done.code))
|
|
151
|
+
throw new Error(firstLine(done.stderr) || `git ${args[0]} exited with ${done.code}`);
|
|
152
|
+
changed = done.code === 1;
|
|
153
|
+
}
|
|
154
|
+
if (changed) {
|
|
155
|
+
const done = await git(['commit', '-q', '-m', count > 0 ? `audit: ${count} event${count === 1 ? '' : 's'}` : 'audit: earlier events']);
|
|
156
|
+
if (done.code !== 0)
|
|
157
|
+
throw new Error(firstLine(done.stderr) || `git commit exited with ${done.code}`);
|
|
158
|
+
}
|
|
159
|
+
setGit('ok', '');
|
|
160
|
+
}
|
|
161
|
+
catch (error) {
|
|
162
|
+
waiting += count;
|
|
163
|
+
setGit('error', error instanceof Error && error.killed ? `git took more than ${BLACKBOX_GIT_TIMEOUT_MS / 1000} seconds` : firstLine(error instanceof Error ? error.message : String(error)));
|
|
164
|
+
arm();
|
|
165
|
+
}
|
|
166
|
+
};
|
|
167
|
+
/** One timer for a batch: the first event of a batch starts it, and events that come later join it. */
|
|
168
|
+
const arm = () => {
|
|
169
|
+
if (timer !== null || closed || !canCommit)
|
|
170
|
+
return;
|
|
171
|
+
timer = options.setTimer(() => {
|
|
172
|
+
timer = null;
|
|
173
|
+
later(commit);
|
|
174
|
+
}, BLACKBOX_COMMIT_MS);
|
|
175
|
+
};
|
|
176
|
+
const droppedText = () => `${dropped} events were not recorded: more than ${BLACKBOX_RATE_MAX} in a minute`;
|
|
177
|
+
const add = (kind, text, at) => {
|
|
178
|
+
const event = { at, kind, text };
|
|
179
|
+
recent = [event, ...recent].slice(0, BLACKBOX_RECENT_MAX);
|
|
180
|
+
if (!writable)
|
|
181
|
+
return;
|
|
182
|
+
waiting += 1;
|
|
183
|
+
// O_NOFOLLOW: a link where the day's file goes must not send the line somewhere else (the folder itself is checked in load)
|
|
184
|
+
const flag = constants.O_WRONLY | constants.O_APPEND | constants.O_CREAT | constants.O_NOFOLLOW;
|
|
185
|
+
later(() => appendFile(join(repo, dayFile(at)), `${JSON.stringify({ ...event, at: new Date(at).toISOString() })}\n`, { mode: FILE_MODE, flag }));
|
|
186
|
+
arm();
|
|
187
|
+
};
|
|
188
|
+
return {
|
|
189
|
+
async load() {
|
|
190
|
+
try {
|
|
191
|
+
await mkdir(repo, { recursive: true, mode: DIR_MODE });
|
|
192
|
+
// a link in its place would send the files and the repository somewhere else
|
|
193
|
+
if (!(await lstat(repo)).isDirectory())
|
|
194
|
+
throw new Error(`${BLACKBOX_DIR} is not a plain folder`);
|
|
195
|
+
writable = true;
|
|
196
|
+
recent = await readRecent(repo);
|
|
197
|
+
}
|
|
198
|
+
catch (error) {
|
|
199
|
+
setGit('error', firstLine(error instanceof Error ? error.message : String(error)));
|
|
200
|
+
return;
|
|
201
|
+
}
|
|
202
|
+
try {
|
|
203
|
+
await git(['--version']);
|
|
204
|
+
}
|
|
205
|
+
catch (error) {
|
|
206
|
+
// not found is the usual reason; a git that cannot start for another reason is the same to the room
|
|
207
|
+
setGit('missing', error.code === 'ENOENT' ? 'git was not found on the PATH' : firstLine(error instanceof Error ? error.message : String(error)));
|
|
208
|
+
return;
|
|
209
|
+
}
|
|
210
|
+
try {
|
|
211
|
+
const missing = await lstat(join(repo, '.git')).then(() => false, () => true);
|
|
212
|
+
if (missing) {
|
|
213
|
+
const done = await git(['init', '-q']);
|
|
214
|
+
if (done.code !== 0)
|
|
215
|
+
throw new Error(firstLine(done.stderr) || `git init exited with ${done.code}`);
|
|
216
|
+
}
|
|
217
|
+
canCommit = true;
|
|
218
|
+
setGit('ok', '');
|
|
219
|
+
// whatever a crash left uncommitted goes in the first batch
|
|
220
|
+
arm();
|
|
221
|
+
}
|
|
222
|
+
catch (error) {
|
|
223
|
+
setGit('error', firstLine(error instanceof Error ? error.message : String(error)));
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
record(kind, text) {
|
|
227
|
+
if (closed)
|
|
228
|
+
return;
|
|
229
|
+
const line = cutText(text.replace(UNSAFE_IN_TEXT, ' ').replace(/\s+/g, ' ').trim(), AUDIT_TEXT_MAX_CHARS);
|
|
230
|
+
if (line === '' || !AUDIT_KINDS.includes(kind))
|
|
231
|
+
return;
|
|
232
|
+
const at = now();
|
|
233
|
+
if (at - windowStart >= BLACKBOX_RATE_WINDOW_MS || at < windowStart) {
|
|
234
|
+
windowStart = at;
|
|
235
|
+
inWindow = 0;
|
|
236
|
+
if (dropped > 0) {
|
|
237
|
+
add('audit', droppedText(), at);
|
|
238
|
+
dropped = 0;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
if (inWindow >= BLACKBOX_RATE_MAX) {
|
|
242
|
+
dropped += 1;
|
|
243
|
+
return;
|
|
244
|
+
}
|
|
245
|
+
inWindow += 1;
|
|
246
|
+
add(kind, line, at);
|
|
247
|
+
},
|
|
248
|
+
view: () => ({ git: state, note, dir: repo, command: `git -C ${shellWord(repo)} log -p`, events: [...recent] }),
|
|
249
|
+
close() {
|
|
250
|
+
if (dropped > 0)
|
|
251
|
+
add('audit', droppedText(), now());
|
|
252
|
+
dropped = 0;
|
|
253
|
+
closed = true;
|
|
254
|
+
if (timer !== null)
|
|
255
|
+
options.clearTimer(timer);
|
|
256
|
+
timer = null;
|
|
257
|
+
later(commit);
|
|
258
|
+
return chain.then(() => undefined);
|
|
259
|
+
},
|
|
260
|
+
};
|
|
261
|
+
}
|