:root{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Noto Sans,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:dark;color:#e6edf3;background-color:#0d1117;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:#0d1117;color:#e6edf3}#root{min-height:100vh;display:flex;flex-direction:column}a{font-weight:500;color:#58a6ff;text-decoration:none}a:hover{color:#79c0ff;text-decoration:underline}button{font-family:inherit;cursor:pointer;transition:all .2s ease;border:none;outline:none}button:focus-visible{outline:2px solid #1f6feb;outline-offset:2px}input{font-family:inherit;outline:none}input:focus-visible{outline:2px solid #1f6feb;outline-offset:2px}h1,h2,h3,h4,h5,h6{color:#f0f6fc;font-weight:600;line-height:1.25;margin:0}p{margin:0;line-height:1.5}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:#161b22}::-webkit-scrollbar-thumb{background:#30363d;border-radius:4px}::-webkit-scrollbar-thumb:hover{background:#484f58}html{scrollbar-width:thin;scrollbar-color:#30363d #161b22}/**
* Copyright (c) 2014 The xterm.js authors. All rights reserved.
* Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
* https://github.com/chjj/term.js
* @license MIT
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*
* Originally forked from (with the author's permission):
*   Fabrice Bellard's javascript vt100 for jslinux:
*   http://bellard.org/jslinux/
*   Copyright (c) 2011 Fabrice Bellard
*   The original design remains. The terminal itself
*   has been extended to include xterm CSI codes, among
*   other features.
*/.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;inset:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.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{position:absolute;inset:0;z-index:10;color:transparent;pointer-events:none}.xterm .xterm-accessibility-tree:not(.debug) *::selection{color:transparent}.xterm .xterm-accessibility-tree{-webkit-user-select:text;user-select:text;white-space:pre}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{text-decoration:double underline}.xterm-underline-3{text-decoration:wavy underline}.xterm-underline-4{text-decoration:dotted underline}.xterm-underline-5{text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{text-decoration:overline double underline}.xterm-overline.xterm-underline-3{text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{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;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}.session-timeline{display:flex;flex-direction:column;background:#1a1a1a;border:1px solid #333;border-radius:8px;padding:16px;margin:12px 0;font-family:Fira Code,Cascadia Code,JetBrains Mono,Consolas,monospace}.session-timeline.loading,.session-timeline.empty{justify-content:center;align-items:center;min-height:80px;color:#888}.timeline-controls{display:flex;align-items:center;gap:16px;margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid #333}.play-button{background:#2563eb;border:none;border-radius:6px;padding:8px 12px;color:#fff;cursor:pointer;font-size:16px;transition:background-color .2s}.play-button:hover:not(:disabled){background:#1d4ed8}.play-button:disabled{background:#374151;cursor:not-allowed;opacity:.6}.time-display{display:flex;align-items:center;gap:4px;color:#e5e7eb;font-size:14px;font-weight:500}.separator{color:#6b7280}.speed-controls{display:flex;align-items:center;gap:8px}.speed-controls label{color:#9ca3af;font-size:12px;text-transform:uppercase;font-weight:600}.speed-button{background:#374151;border:1px solid #4b5563;border-radius:4px;padding:4px 8px;color:#d1d5db;cursor:pointer;font-size:12px;transition:all .2s}.speed-button:hover:not(:disabled){background:#4b5563;border-color:#6b7280}.speed-button.active{background:#2563eb;border-color:#2563eb;color:#fff}.speed-button:disabled{opacity:.5;cursor:not-allowed}.bookmark-button{background:#374151;border:1px solid #4b5563;border-radius:4px;padding:6px 12px;color:#d1d5db;cursor:pointer;font-size:12px;transition:all .2s;display:flex;align-items:center;gap:4px}.bookmark-button:hover:not(:disabled){background:#4b5563;border-color:#6b7280}.bookmark-button:disabled{opacity:.5;cursor:not-allowed}.live-indicator{display:flex;align-items:center;gap:6px;color:#ef4444;font-size:12px;font-weight:600;margin-left:auto}.live-dot{width:8px;height:8px;background:#ef4444;border-radius:50%;animation:pulse 2s infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.timeline-track-container{position:relative}.timeline-track{position:relative;height:60px;background:#111;border:1px solid #333;border-radius:6px;cursor:pointer;overflow:hidden;margin-bottom:8px}.timeline-track:hover{border-color:#2563eb}.timeline-background{position:absolute;inset:0;background:linear-gradient(90deg,#1f2937,#374151)}.timeline-activity{position:absolute;inset:0;display:flex;align-items:flex-end}.activity-bar{position:absolute;bottom:0;width:2px;background:linear-gradient(to top,#10b981,#34d399);opacity:.7;transition:opacity .2s}.timeline-track:hover .activity-bar{opacity:1}.timeline-snapshots{position:absolute;inset:0}.snapshot-marker{position:absolute;top:8px;width:3px;height:44px;cursor:pointer;border-radius:2px;transition:all .2s}.snapshot-marker.timer{background:#6366f1}.snapshot-marker.command_complete{background:#f59e0b;height:50px;top:5px}.snapshot-marker.size_change{background:#ec4899}.snapshot-marker.manual{background:#8b5cf6}.snapshot-marker:hover{transform:scaleX(1.5);z-index:10}.timeline-bookmarks{position:absolute;inset:0}.bookmark-marker{position:absolute;top:2px;width:3px;height:56px;cursor:pointer;z-index:15}.bookmark-flag{width:16px;height:12px;background:var(--bookmark-color, #3b82f6);position:relative;border-radius:2px 2px 2px 0;box-shadow:0 2px 4px #0000004d;transition:all .2s}.bookmark-flag:after{content:"";position:absolute;right:0;top:100%;width:0;height:0;border-left:8px solid var(--bookmark-color, #3b82f6);border-right:8px solid transparent;border-top:6px solid var(--bookmark-color, #3b82f6);border-bottom:6px solid transparent}.bookmark-marker:hover .bookmark-flag{transform:scale(1.2);filter:brightness(1.1)}.timeline-position{position:absolute;top:0;bottom:0;width:2px;z-index:20;pointer-events:none;transform:translate(-1px)}.position-handle{position:absolute;top:-4px;left:-6px;width:14px;height:14px;background:#2563eb;border:2px solid white;border-radius:50%;cursor:ew-resize;pointer-events:all;transition:all .2s}.position-handle:hover{transform:scale(1.2);box-shadow:0 0 8px #2563eb80}.position-line{position:absolute;top:10px;bottom:0;left:0;width:2px;background:#2563eb;box-shadow:0 0 4px #2563eb4d}.timeline-labels{display:flex;justify-content:space-between;color:#6b7280;font-size:11px;padding:0 4px}@media (max-width: 768px){.timeline-controls{flex-wrap:wrap;gap:12px}.speed-controls{order:3;flex-basis:100%}.live-indicator{margin-left:0}.timeline-track{height:50px}.snapshot-marker{height:34px;top:8px}.snapshot-marker.command_complete{height:38px;top:6px}}@media (prefers-reduced-motion: reduce){.live-dot{animation:none}.activity-bar,.snapshot-marker,.position-handle{transition:none}}.bookmark-dialog-overlay{position:fixed;inset:0;background:#000000b3;display:flex;align-items:center;justify-content:center;z-index:1000}.bookmark-dialog{background:#1f2937;border:1px solid #374151;border-radius:8px;padding:24px;max-width:400px;width:90%;color:#e5e7eb}.bookmark-dialog h3{margin:0 0 8px;color:#f9fafb;font-size:18px}.bookmark-dialog p{margin:0 0 20px;color:#9ca3af;font-size:14px}.bookmark-form{display:flex;flex-direction:column;gap:16px}.form-group{display:flex;flex-direction:column;gap:6px}.form-group label{font-size:14px;font-weight:500;color:#d1d5db}.form-group input,.form-group textarea{background:#111827;border:1px solid #4b5563;border-radius:6px;padding:8px 12px;color:#e5e7eb;font-size:14px;font-family:inherit;transition:border-color .2s}.form-group input:focus,.form-group textarea:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1a}.form-group textarea{resize:vertical;min-height:60px}.form-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:8px}.cancel-button,.add-button{padding:8px 16px;border:none;border-radius:6px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s}.cancel-button{background:#374151;color:#d1d5db}.cancel-button:hover{background:#4b5563}.add-button{background:#2563eb;color:#fff}.add-button:hover{background:#1d4ed8}.bookmark-list{margin-top:16px;background:#111827;border:1px solid #374151;border-radius:6px;padding:16px}.bookmark-list h4{margin:0 0 12px;color:#f9fafb;font-size:14px;font-weight:600}.bookmark-items{display:flex;flex-direction:column;gap:8px}.bookmark-item{display:flex;align-items:center;gap:12px;padding:8px 12px;background:#1f2937;border:1px solid #374151;border-radius:6px;cursor:pointer;transition:all .2s}.bookmark-item:hover{background:#374151;border-color:#4b5563}.bookmark-color{width:12px;height:12px;border-radius:50%;flex-shrink:0}.bookmark-info{flex:1;min-width:0}.bookmark-title{font-size:14px;font-weight:500;color:#e5e7eb;margin-bottom:2px}.bookmark-time{font-size:12px;color:#9ca3af;font-family:SFMono-Regular,Consolas,monospace}.bookmark-description{font-size:12px;color:#6b7280;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bookmark-remove{background:none;border:none;color:#6b7280;cursor:pointer;padding:4px;border-radius:4px;transition:all .2s;flex-shrink:0}.bookmark-remove:hover{background:#374151;color:#ef4444}.play-button:focus,.speed-button:focus,.bookmark-button:focus{outline:2px solid #2563eb;outline-offset:2px}.timeline-track:focus{outline:2px solid #2563eb;outline-offset:2px}.app{min-height:100vh;background:#0d1117;color:#e6edf3;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Noto Sans,Helvetica,Arial,sans-serif}.app-header{background:#161b22;border-bottom:1px solid #30363d;padding:1rem 2rem;box-shadow:0 1px 3px #0000001f}.app-header h1{margin:0;font-size:1.5rem;font-weight:600;color:#f0f6fc}.app-main{flex:1;min-height:calc(100vh - 80px)}.home-page{display:flex;align-items:center;justify-content:center;min-height:calc(100vh - 80px);padding:2rem}.home-container{max-width:600px;width:100%;text-align:center}.hero-section h2{font-size:2.5rem;margin:0 0 1rem;color:#f0f6fc;font-weight:700}.hero-section p{font-size:1.2rem;color:#8b949e;margin:0 0 3rem;line-height:1.5}.join-form{margin:2rem 0}.input-group{display:flex;gap:1rem;margin-bottom:1rem}.session-input{flex:1;padding:.75rem 1rem;border:1px solid #30363d;border-radius:6px;background:#0d1117;color:#e6edf3;font-size:1rem;transition:all .2s ease}.session-input:focus{outline:none;border-color:#1f6feb;box-shadow:0 0 0 3px #1f6feb1a}.session-input.error{border-color:#f85149;box-shadow:0 0 0 3px #f851491a}.session-input::placeholder{color:#656d76}.join-button{padding:.75rem 1.5rem;background:#238636;color:#fff;border:none;border-radius:6px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .2s ease;white-space:nowrap}.join-button:hover:not(:disabled){background:#2ea043}.join-button:disabled{background:#21262d;color:#656d76;cursor:not-allowed}.error-message{color:#f85149;font-size:.9rem;text-align:left;margin-top:.5rem}.info-section{margin-top:3rem;padding:2rem;background:#161b22;border:1px solid #30363d;border-radius:12px;text-align:left}.info-section h3{margin:0 0 1rem;color:#f0f6fc}.info-section ol{margin:0;padding-left:1.5rem;color:#8b949e;line-height:1.6}.info-section li{margin-bottom:.5rem}.session-view{height:100vh;display:flex;flex-direction:column}.session-view.loading,.session-view.error{align-items:center;justify-content:center}.loading-spinner{font-size:1.2rem;color:#8b949e}.error-container{text-align:center;max-width:500px;padding:2rem}.error-container h2{color:#f85149;margin:0 0 1rem}.error-container p{color:#8b949e;margin:0 0 2rem}.back-button{padding:.75rem 1.5rem;background:#21262d;color:#e6edf3;border:1px solid #30363d;border-radius:6px;cursor:pointer;transition:all .2s ease}.back-button:hover{background:#30363d}.session-header{display:flex;justify-content:space-between;align-items:center;padding:1rem 2rem;background:#161b22;border-bottom:1px solid #30363d;flex-shrink:0}.session-info h2{margin:0 0 .5rem;color:#f0f6fc;font-size:1.5rem;line-height:1.2}.session-description{color:#8b949e;font-size:.95rem}.session-meta{display:flex;gap:1rem;font-size:.85rem}.status{padding:.25rem .5rem;border-radius:4px;font-weight:600;text-transform:uppercase;font-size:.75rem}.status.live{background:#238636;color:#fff}.status.initializing{background:#fd7e14;color:#fff}.status.ended{background:#656d76;color:#fff}.viewer-count{color:#8b949e;font-size:.9rem;white-space:nowrap}.session-id{color:#656d76;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace}.session-controls{display:flex;align-items:center;gap:1rem;margin-top:.25rem}.leave-button{padding:.5rem 1rem;background:#da3633;color:#fff;border:none;border-radius:6px;cursor:pointer;transition:background .2s ease}.leave-button:hover{background:#e5484d}.timeline-toggle{padding:.5rem 1rem;background:#21262d;color:#e6edf3;border:1px solid #30363d;border-radius:6px;cursor:pointer;transition:all .2s ease;font-size:.85rem;display:flex;align-items:center;gap:.5rem}.timeline-toggle:hover{background:#30363d;border-color:#424a53}.timeline-toggle.active{background:#1f6feb;border-color:#1f6feb;color:#fff}.timeline-toggle.active:hover{background:#0969da;border-color:#0969da}.session-content{flex:1;display:flex;flex-direction:column;overflow:hidden}.terminal-container{flex:1;display:flex;flex-direction:column;background:#0d1117}.connection-status{display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;border-radius:6px;font-size:.85rem;font-weight:500;position:relative}.connection-status.green{background:#2386361a;color:#3fb950;border:1px solid rgba(35,134,54,.2)}.connection-status.orange{background:#fd7e141a;color:#fd7e14;border:1px solid rgba(253,126,20,.2)}.connection-status.red{background:#f851491a;color:#f85149;border:1px solid rgba(248,81,73,.2)}.status-icon{font-size:.75rem}.connection-status:before{content:attr(data-tooltip);position:absolute;bottom:100%;left:50%;transform:translate(-50%);background:#161b22;color:#f0f6fc;padding:.5rem .75rem;border-radius:6px;font-size:.75rem;font-weight:500;white-space:nowrap;opacity:0;visibility:hidden;transition:opacity .2s,visibility .2s;z-index:1000;border:1px solid #30363d;box-shadow:0 8px 24px #00000080;margin-bottom:.5rem}.connection-status:after{content:"";position:absolute;bottom:100%;left:50%;transform:translate(-50%);border:5px solid transparent;border-top-color:#161b22;opacity:0;visibility:hidden;transition:opacity .2s,visibility .2s;z-index:1000;margin-bottom:-5px}.connection-status:hover:before,.connection-status:hover:after{opacity:1;visibility:visible}.terminal-component{flex:1;display:flex;flex-direction:column;background:#0d1117;margin:1rem;border:1px solid #30363d;border-radius:8px;overflow:hidden}.terminal-header{display:flex;justify-content:space-between;align-items:center;padding:.75rem 1rem;background:#161b22;border-bottom:1px solid #30363d}.terminal-title{display:flex;align-items:center;gap:.5rem;color:#f0f6fc;font-size:.9rem;font-weight:600}.terminal-icon{font-size:1rem}.terminal-controls{display:flex;gap:.5rem}.terminal-button{width:12px;height:12px;border-radius:50%}.terminal-button.red{background:#ff5f56}.terminal-button.yellow{background:#ffbd2e}.terminal-button.green{background:#27ca3f}.terminal-content{flex:1;background:#0d1117;overflow:hidden}@media (max-width: 768px){.app-header{padding:1rem}.session-header{flex-direction:column;gap:1rem;padding:1rem}.session-meta{flex-direction:column;gap:.5rem}.input-group{flex-direction:column}.hero-section h2{font-size:2rem}.terminal-component{margin:.5rem}}
