:root{--fb-bg:#fff;--fb-secondary-bg:#f1f2f6;--fb-section-bg:#fff;--fb-text:#111418;--fb-hint:#6b7280;--fb-link:#2481cc;--fb-button:#2481cc;--fb-button-text:#fff;--fb-destructive:#d83b3b;--fb-separator:#e3e5ea;--fb-ok:#1f9d55;--fb-warn:#b7791f;--fb-info:#2481cc;--fb-code-bg:#f5f6f8;--bg:var(--tg-theme-bg-color,var(--fb-bg));--secondary-bg:var(--tg-theme-secondary-bg-color,var(--fb-secondary-bg));--section-bg:var(--tg-theme-section-bg-color,var(--fb-section-bg));--text:var(--tg-theme-text-color,var(--fb-text));--hint:var(--tg-theme-hint-color,var(--fb-hint));--subtitle:var(--tg-theme-subtitle-text-color,var(--hint));--link:var(--tg-theme-link-color,var(--fb-link));--accent:var(--tg-theme-accent-text-color,var(--link));--button:var(--tg-theme-button-color,var(--fb-button));--button-text:var(--tg-theme-button-text-color,var(--fb-button-text));--destructive:var(--tg-theme-destructive-text-color,var(--fb-destructive));--separator:var(--tg-theme-section-separator-color,var(--fb-separator));--header-bg:var(--tg-theme-header-bg-color,var(--bg));--section-header:var(--tg-theme-section-header-text-color,var(--hint));--ok:var(--fb-ok);--warn:var(--fb-warn);--info:var(--accent);--code-bg:var(--fb-code-bg);--radius:14px;--radius-small:10px;--gap:12px;--pad:16px;--font:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--mono:ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--fb-bg:#17212b;--fb-secondary-bg:#0e1621;--fb-section-bg:#17212b;--fb-text:#f5f5f5;--fb-hint:#8b98a5;--fb-link:#6ab3f3;--fb-button:#5288c1;--fb-separator:#26323e;--fb-ok:#4cc38a;--fb-warn:#e0a84a;--fb-destructive:#ec5f5f;--fb-code-bg:#0f1923}}*,:before,:after{box-sizing:border-box}html{-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%}body{background:var(--secondary-bg);color:var(--text);font:16px/1.45 var(--font);-webkit-font-smoothing:antialiased;overflow-anchor:auto;margin:0}body.sheet-open{overflow:hidden}button,textarea,input{font:inherit;color:inherit}a{color:var(--link)}h2,h3,p{margin:0}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}[tabindex="-1"]:focus{outline:none}.visually-hidden{clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.app{max-width:640px;min-height:100vh;flex-direction:column;min-height:100dvh;margin:0 auto;display:flex}.demo-banner{padding:6px var(--pad);padding-top:max(6px, env(safe-area-inset-top));text-align:center;color:var(--hint);background:var(--secondary-bg);border-bottom:1px solid var(--separator);font-size:12px}.boot{color:var(--hint);flex:1;place-content:center;justify-items:center;gap:12px;display:grid}.spinner{border:3px solid var(--separator);border-top-color:var(--accent);border-radius:50%;width:28px;height:28px;animation:.9s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.page{flex-direction:column;flex:1;display:flex}.page-header{z-index:5;background:var(--header-bg);border-bottom:1px solid var(--separator);align-items:center;gap:8px;min-height:56px;padding:8px 12px;display:flex;position:sticky;top:0}.page-title{flex:1;min-width:0}.page-title h2{text-overflow:ellipsis;white-space:nowrap;font-size:19px;font-weight:650;line-height:1.25;overflow:hidden}.subtitle{color:var(--subtitle);text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.page-actions{gap:4px;display:flex}.page-body{gap:var(--gap);padding:var(--pad);flex-direction:column;flex:1;display:flex}.page-footer{z-index:5;padding:12px var(--pad);padding-bottom:max(12px, env(safe-area-inset-bottom));background:var(--bg);border-top:1px solid var(--separator);position:sticky;bottom:0}.stack{flex-direction:column;gap:8px;display:flex}.button{border-radius:var(--radius-small);cursor:pointer;-webkit-tap-highlight-color:transparent;border:0;justify-content:center;align-items:center;gap:8px;min-height:46px;padding:10px 18px;font-weight:600;text-decoration:none;transition:opacity .15s;display:inline-flex}.button:disabled{opacity:.45;cursor:default}.button[aria-busy=true]{cursor:progress}.button-primary{background:var(--button);color:var(--button-text)}.button-secondary{background:color-mix(in srgb, var(--text) 9%, var(--section-bg));color:var(--text)}.button-destructive{background:var(--destructive);color:#fff}.button-destructive-outline{color:var(--destructive);box-shadow:inset 0 0 0 1.5px var(--destructive);background:0 0}.button-ghost{color:var(--link);background:0 0}.button-small{min-height:36px;padding:6px 12px;font-size:14px}.button-block{width:100%}.button-row{gap:10px;display:flex}.button-row>.button{flex:1}.icon-button{width:44px;height:44px;color:var(--accent);cursor:pointer;background:0 0;border:0;border-radius:50%;place-items:center;padding:0;display:inline-grid}.chip{white-space:nowrap;background:color-mix(in srgb, var(--chip) 14%, transparent);color:var(--chip);border-radius:999px;align-items:center;gap:6px;padding:2px 10px 2px 8px;font-size:13px;font-weight:600;line-height:20px;display:inline-flex}.chip-label{display:inline-block}.chip-label:first-letter{text-transform:uppercase}.chip-ok{--chip:var(--ok)}.chip-info{--chip:var(--info)}.chip-warn{--chip:var(--warn)}.chip-bad{--chip:var(--destructive)}.chip-neutral{--chip:var(--hint)}.dot{background:currentColor;border-radius:50%;flex:none;width:8px;height:8px}.dot-pulse{animation:1.4s ease-in-out infinite pulse}@keyframes pulse{50%{opacity:.3}}@media (prefers-reduced-motion:reduce){.dot-pulse,.spinner{animation:none}}.card-list{flex-direction:column;gap:10px;margin:0;padding:0;list-style:none;display:flex}.card{background:var(--section-bg);border-radius:var(--radius);box-shadow:0 0 0 1px var(--separator);align-items:center;gap:4px;display:flex}.card-attention{box-shadow:0 0 0 1.5px var(--warn)}.card-main{min-width:0;padding:14px var(--pad);text-align:left;cursor:pointer;color:inherit;border-radius:var(--radius);background:0 0;border:0;flex-direction:column;flex:1;align-items:stretch;gap:4px;text-decoration:none;display:flex}.card-title-row{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;display:flex}.card-title{overflow-wrap:anywhere;min-width:0;font-weight:600}.card-meta{color:var(--hint);font-size:14px}.attention{color:var(--warn);font-weight:600}.computer-row{padding:10px var(--pad) 10px 12px;background:var(--section-bg);border-radius:var(--radius);box-shadow:0 0 0 1px var(--separator);cursor:pointer;align-items:center;gap:12px;display:flex}.computer-icon{border-radius:11px;flex:none;width:48px;height:48px}.computer-row-main{min-width:0;min-height:48px;color:inherit;text-align:left;cursor:pointer;border-radius:var(--radius-small);background:0 0;border:0;flex-direction:column;flex:1;justify-content:center;align-items:flex-start;gap:2px;padding:0;display:flex}.computer-name{text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-weight:600;overflow:hidden}.computer-id{max-width:100%;color:var(--hint);text-overflow:ellipsis;white-space:nowrap;font-size:14px;overflow:hidden}.button-pill{letter-spacing:.04em;border-radius:999px;flex:none;min-height:34px;padding:6px 18px;font-size:14px;font-weight:700}.forget-button{color:var(--destructive);align-self:center}.clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.mono{font-family:var(--mono);overflow-wrap:anywhere;font-size:13px}.plain{white-space:pre-wrap;overflow-wrap:anywhere}.hint{color:var(--hint);font-size:14px}.hint-bad,.error-text{color:var(--destructive)}.steps,.bullets{flex-direction:column;gap:6px;margin:0;padding-left:22px;display:flex}.plain-list{margin:0;padding:0;list-style:none}.section{flex-direction:column;gap:10px;display:flex}.section-head{justify-content:space-between;align-items:center;gap:8px;min-height:28px;padding:0 4px;display:flex}.section-head h3{text-transform:uppercase;letter-spacing:.04em;color:var(--section-header);font-size:13px;font-weight:600}.notice{border-radius:var(--radius-small);background:color-mix(in srgb, var(--tone) 10%, var(--section-bg));box-shadow:inset 3px 0 0 var(--tone);flex-direction:column;gap:8px;padding:12px 14px;display:flex}.notice-body{flex-direction:column;gap:8px;display:flex}.notice-title{font-weight:650}.notice-ok{--tone:var(--ok)}.notice-info{--tone:var(--info)}.notice-warn{--tone:var(--warn)}.notice-bad{--tone:var(--destructive)}.notice-neutral{--tone:var(--hint)}.notice .button{align-self:flex-start}.empty{padding:28px var(--pad);text-align:left;background:var(--section-bg);border-radius:var(--radius);box-shadow:0 0 0 1px var(--separator);flex-direction:column;gap:10px;display:flex}.empty-title{font-size:17px;font-weight:650}.empty-body{color:var(--hint)}.skeleton-list{flex-direction:column;gap:10px;display:flex}.skeleton-row{border-radius:var(--radius);background:linear-gradient(90deg, var(--section-bg) 0%, var(--secondary-bg) 50%, var(--section-bg) 100%);height:72px;box-shadow:0 0 0 1px var(--separator);background-size:200% 100%;animation:1.4s ease-in-out infinite shimmer}@keyframes shimmer{0%{background-position:100% 0}to{background-position:-100% 0}}.hero{padding:28px var(--pad);text-align:center;background:var(--section-bg);border-radius:var(--radius);flex-direction:column;align-items:center;gap:10px;display:flex}.hero-bad{color:var(--destructive)}.hero-bad p:not(.hero-title){color:var(--text)}.hero-title{font-size:19px;font-weight:650}.form{flex-direction:column;gap:16px;display:flex}.field{border:0;flex-direction:column;gap:6px;min-width:0;margin:0;padding:0;display:flex}.field label,.field legend{margin-bottom:6px;padding:0;font-weight:600}textarea{border:1px solid var(--separator);border-radius:var(--radius-small);background:var(--section-bg);resize:vertical;width:100%;min-height:120px;padding:12px;line-height:1.4}textarea[aria-invalid=true]{border-color:var(--destructive)}#invitation{font-family:var(--mono);font-size:13px}.choice{border-radius:var(--radius-small);background:var(--section-bg);box-shadow:0 0 0 1px var(--separator);cursor:pointer;align-items:flex-start;gap:12px;margin-bottom:6px;padding:12px 14px;display:flex}.choice:has(input:checked){box-shadow:0 0 0 2px var(--accent)}.choice input{accent-color:var(--accent);margin-top:4px}.choice-disabled{opacity:.75}.choice-text{flex-direction:column;display:flex}.choice-title{font-weight:600}.facts{background:var(--section-bg);border-radius:var(--radius-small);box-shadow:0 0 0 1px var(--separator);flex-direction:column;gap:2px;margin:0;padding:12px 14px;display:flex}.facts dt{color:var(--hint);margin-top:8px;font-size:13px}.facts dt:first-child{margin-top:0}.facts dd{overflow-wrap:anywhere;margin:0}.facts-inline{grid-template-columns:minmax(110px,auto) 1fr;align-items:center;gap:10px 12px;display:grid}.facts-inline dt{margin:0}.connection{padding:14px var(--pad);border-radius:var(--radius);background:var(--section-bg);box-shadow:0 0 0 1px var(--separator);flex-direction:column;gap:10px;min-height:132px;display:flex}.connection-detail{min-height:2.9em}.progress{gap:6px;margin:0;padding:0;list-style:none;display:flex}.progress-step{color:var(--hint);flex-direction:column;flex:1;gap:6px;font-size:12px;display:flex}.progress-dot{background:var(--separator);border-radius:2px;height:4px}.progress-done .progress-dot{background:var(--ok)}.progress-current .progress-dot{background:var(--accent);animation:1.4s ease-in-out infinite pulse}.progress-current{color:var(--text);font-weight:600}.task-status{padding:14px var(--pad);border-radius:var(--radius);background:var(--section-bg);box-shadow:0 0 0 1px var(--separator);flex-direction:column;gap:8px;display:flex}.task-status-row{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;display:flex}.task-status-detail{min-height:2.9em}.attention-row{border-top:1px solid var(--separator);color:var(--warn);justify-content:space-between;align-items:center;gap:10px;padding-top:10px;font-weight:600;display:flex}.keep-running{padding:0 4px}.timeline{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.event{border-radius:var(--radius-small);background:var(--section-bg);box-shadow:0 0 0 1px var(--separator);flex-direction:column;gap:4px;padding:10px 14px;animation:.2s ease-out appear;display:flex}@keyframes appear{0%{opacity:0}}@media (prefers-reduced-motion:reduce){.event{animation:none}}.event-state{box-shadow:none;background:0 0;padding:4px 14px}.event-error{box-shadow:inset 3px 0 0 var(--destructive), 0 0 0 1px var(--separator)}.event-approval_requested{box-shadow:inset 3px 0 0 var(--warn), 0 0 0 1px var(--separator)}.event-head{color:var(--hint);justify-content:space-between;gap:8px;font-size:12px;display:flex}.event-who{text-transform:uppercase;letter-spacing:.04em;font-weight:600}.event-time{font-variant-numeric:tabular-nums}.event-command{flex-direction:column;gap:6px;display:flex}.code{background:var(--code-bg);font-family:var(--mono);white-space:pre-wrap;overflow-wrap:anywhere;border-radius:8px;margin:0;padding:8px 10px;font-size:13px;line-height:1.45}.code-output{color:var(--hint);max-height:180px;overflow:auto}.diffstat{font-family:var(--mono);white-space:nowrap;font-size:13px}.add{color:var(--ok)}.del{color:var(--destructive)}.output{border-radius:var(--radius-small);background:var(--section-bg);box-shadow:0 0 0 1px var(--separator);padding:14px}.file-list{border-radius:var(--radius-small);background:var(--section-bg);box-shadow:0 0 0 1px var(--separator);flex-direction:column;margin:0;padding:0;list-style:none;display:flex}.file-list li{justify-content:space-between;gap:12px;padding:10px 14px;display:flex}.file-list li+li{border-top:1px solid var(--separator)}.diff{white-space:pre;overflow-wrap:normal;max-height:360px;overflow-x:auto}.diff-line{min-width:max-content;display:block}.diff-add{background:color-mix(in srgb, var(--ok) 16%, transparent)}.diff-del{background:color-mix(in srgb, var(--destructive) 16%, transparent)}.diff-hunk{color:var(--accent)}.sheet-backdrop{z-index:20;background:#00000073;justify-content:center;align-items:flex-end;animation:.15s ease-out fade;display:flex;position:fixed;inset:0}@keyframes fade{0%{opacity:0}}.sheet{width:100%;max-width:640px;max-height:88vh;background:var(--bg);border-radius:18px 18px 0 0;flex-direction:column;max-height:88dvh;animation:.2s ease-out rise;display:flex;box-shadow:0 -8px 32px #0000002e}@keyframes rise{0%{transform:translateY(24px)}}@media (prefers-reduced-motion:reduce){.sheet,.sheet-backdrop{animation:none}}.sheet-grip{background:var(--separator);border-radius:3px;width:36px;height:5px;margin:8px auto 0}.sheet-title{padding:12px var(--pad) 4px;font-size:19px;font-weight:650}.sheet-body{padding:8px var(--pad) 12px;flex-direction:column;gap:12px;display:flex;overflow-y:auto}.sheet-footer{padding:10px var(--pad);padding-bottom:max(12px, env(safe-area-inset-bottom));border-top:1px solid var(--separator);flex-direction:column;gap:6px;display:flex}
