/* node_modules/@xterm/xterm/css/xterm.css */
.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;
  right: 0;
  left: 0;
  top: 0;
  bottom: 0;
}
.xterm .xterm-screen {
  position: relative;
}
.xterm .xterm-screen canvas {
  position: absolute;
  left: 0;
  top: 0;
}
.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;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  z-index: 10;
  color: transparent;
  pointer-events: none;
}
.xterm .xterm-accessibility-tree:not(.debug) *::selection {
  color: transparent;
}
.xterm .xterm-accessibility-tree {
  font-family: monospace;
  user-select: text;
  white-space: pre;
}
.xterm .xterm-accessibility-tree > div {
  transform-origin: left;
  width: fit-content;
}
.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;
}
.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;
  background: rgba(0, 0, 0, 0);
  transition: opacity 100ms linear;
  z-index: 11;
}
.xterm .xterm-scrollable-element > .invisible {
  opacity: 0;
  pointer-events: none;
}
.xterm .xterm-scrollable-element > .invisible.fade {
  transition: opacity 800ms linear;
}
.xterm .xterm-scrollable-element > .shadow {
  position: absolute;
  display: none;
}
.xterm .xterm-scrollable-element > .shadow.top {
  display: block;
  top: 0;
  left: 3px;
  height: 3px;
  width: 100%;
  box-shadow: var(--vscode-scrollbar-shadow, #000) 0 6px 6px -6px inset;
}
.xterm .xterm-scrollable-element > .shadow.left {
  display: block;
  top: 3px;
  left: 0;
  height: 100%;
  width: 3px;
  box-shadow: var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset;
}
.xterm .xterm-scrollable-element > .shadow.top-left-corner {
  display: block;
  top: 0;
  left: 0;
  height: 3px;
  width: 3px;
}
.xterm .xterm-scrollable-element > .shadow.top.left {
  box-shadow: var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset;
}

/* web/src/styles.css */
:root {
  color-scheme: light;
  --bg: #f5f4ee;
  --panel: #ffffff;
  --panel-strong: #ebe7dc;
  --ink: #1d211f;
  --muted: #66706c;
  --line: #d7d1c4;
  --accent: #2b6f61;
  --accent-ink: #ffffff;
  --danger: #a23830;
  --terminal: #101716;
  --terminal-edge: #2b3431;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html,
body,
#app {
  height: 100%;
  margin: 0;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}
#app {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  min-height: 100vh;
}
button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
button:hover {
  border-color: #aeb7b2;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
input,
select {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  padding: 0 10px;
}
.auth-screen {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 20px;
}
.auth-card {
  display: grid;
  width: min(760px, 100%);
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  padding: 20px;
}
.auth-card > h1,
.auth-card > p,
.auth-error {
  grid-column: 1 / -1;
}
.auth-card h1,
.auth-form h2 {
  margin: 0;
}
.auth-form {
  display: grid;
  align-content: start;
  gap: 10px;
}
.auth-error {
  border: 1px solid #d8b0ac;
  border-radius: 6px;
  background: #fff0ee;
  color: var(--danger);
  font-size: 13px;
  padding: 10px;
}
.sidebar {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
  border-right: 1px solid var(--line);
  background: var(--panel-strong);
  padding: 18px;
}
.brand {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.brand h1 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}
.brand p,
.muted {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.pill {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffaf0;
  color: #5b5141;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 700;
}
.pill.running {
  border-color: #95c4b3;
  background: #e5f3eb;
  color: #215c4e;
}
.pill.ready {
  border-color: #95c4b3;
  background: #e5f3eb;
  color: #215c4e;
}
.pill.starting {
  border-color: #d9c489;
  background: #fff7d7;
  color: #735b10;
}
.pill.stopped {
  border-color: #e0bbb7;
  background: #fff0ee;
  color: #8a3029;
}
.pill.error {
  border-color: #d8b0ac;
  background: #fff0ee;
  color: var(--danger);
}
.button-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.danger {
  border-color: #d8b0ac;
  color: var(--danger);
}
.vm-panel {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.5);
  padding: 10px;
}
.vm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}
.vm-row span {
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
}
.vm-row strong {
  color: var(--ink);
  font-size: 13px;
}
.telegram-panel {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.5);
  padding: 10px;
}
.admin-panel {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.5);
  padding: 10px;
}
.invite-form {
  display: grid;
  gap: 8px;
}
.invite-list {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}
.telegram-setup {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.setup-step {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.setup-step strong {
  font-size: 13px;
}
.setup-step span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
code {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f8f7f2;
  color: #27312e;
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    "Courier New",
    monospace;
  font-size: 11px;
  line-height: 1.35;
}
.setup-step > code {
  display: block;
  overflow-x: auto;
  padding: 8px;
  white-space: pre;
}
.main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  padding: 12px 16px;
}
.topbar-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}
.session-title {
  overflow: hidden;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.terminal-shell {
  min-width: 0;
  min-height: 0;
  padding: 12px;
}
.terminal-host {
  width: 100%;
  height: 100%;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid var(--terminal-edge);
  border-radius: 8px;
  background: var(--terminal);
  padding: 10px;
}
.terminal-placeholder {
  display: grid;
  height: 100%;
  min-height: 220px;
  place-content: center;
  gap: 8px;
  color: #e8dcc8;
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    "Courier New",
    monospace;
  text-align: center;
}
.terminal-placeholder strong {
  font-size: 16px;
}
.terminal-placeholder span {
  max-width: 420px;
  color: #aeb7b2;
  font-size: 13px;
  line-height: 1.4;
}
.xterm {
  height: 100%;
}
.xterm-viewport {
  background: transparent !important;
}
@media (max-width: 760px) {
  .auth-card {
    grid-template-columns: 1fr;
  }
  #app {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }
  .sidebar {
    max-height: 46vh;
    overflow: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .topbar {
    align-items: stretch;
    flex-direction: column;
  }
  .topbar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}
/*! Bundled license information:

@xterm/xterm/css/xterm.css:
  (**
   * 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.
   *)
*/
