/*!**************************************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js!./pages/claude-remote/src/styles.css ***!
  \**************************************************************************************/
:root {
  --bg: #0d1117;
  --bg-panel: #161b22;
  --bg-raised: #21262d;
  --border: #30363d;
  --text: #e6edf3;
  --text-dim: #8b949e;
  --accent: #2f81f7;
  --link: #58a6ff;
  --danger: #f85149;
  --ok: #3fb950;
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  height: 100%;
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a,
a:visited {
  color: var(--link);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

.app,
.main-view,
.settings-page {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.center-screen {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

/* ---------- Forms ---------- */

input,
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
}

textarea {
  font-family: monospace;
  font-size: 12px;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
}

label {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text-dim);
}

label input,
label select,
label textarea {
  margin-top: 4px;
}

button {
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

button:disabled {
  opacity: 0.5;
}

button.secondary {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  color: var(--text);
}

button.danger {
  background: transparent;
  border: 1px solid var(--danger);
  color: var(--danger);
}

button.small {
  padding: 6px 10px;
  font-size: 13px;
}

.error {
  color: var(--danger);
  font-size: 13px;
  margin-bottom: 10px;
}

.saved {
  color: var(--ok);
  font-size: 13px;
  margin-bottom: 10px;
}

/* ---------- Auth ---------- */

.auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.auth-card h1 {
  margin: 0 0 4px;
  font-size: 20px;
}

.auth-sub {
  color: var(--text-dim);
  font-size: 13px;
  margin: 0 0 20px;
}

.auth-card button {
  width: 100%;
  margin-top: 8px;
}

/* ---------- Top bar ---------- */

.topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  padding-top: calc(8px + env(safe-area-inset-top));
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.topbar-title {
  flex: 1;
  font-weight: 600;
  font-size: 15px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 20px;
  padding: 6px 10px;
  line-height: 1;
}

.icon-btn.small {
  font-size: 15px;
  padding: 2px 6px;
}

/* ---------- Main layout ---------- */

.main-body {
  flex: 1;
  display: flex;
  min-height: 0;
  position: relative;
}

.nav-panel {
  width: 260px;
  background: var(--bg-panel);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.nav-scroll {
  overflow-y: auto;
  padding: 12px;
  flex: 1;
}

.nav-empty {
  color: var(--text-dim);
  font-size: 13px;
}

.nav-project {
  margin-bottom: 16px;
}

.nav-project-name {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.nav-command {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  color: var(--text);
  margin-bottom: 6px;
  font-weight: 500;
}

.nav-command:active {
  background: var(--accent);
}

.nav-command-empty {
  border-style: dashed;
  color: var(--text-dim);
  font-weight: 400;
  font-size: 13px;
}

/* Mobile: nav becomes a slide-in drawer */
@media (max-width: 768px) {
  .nav-panel {
    position: absolute;
    inset: 0 auto 0 0;
    z-index: 20;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    width: min(280px, 85vw);
  }

  .nav-panel.open {
    transform: translateX(0);
  }

  .nav-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10;
  }
}

/* ---------- Terminal area ---------- */

.terminal-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.tab-bar {
  display: flex;
  overflow-x: auto;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  -webkit-overflow-scrolling: touch;
}

.tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 8px 8px 14px;
  border-right: 1px solid var(--border);
  color: var(--text-dim);
  cursor: pointer;
  white-space: nowrap;
  font-size: 13px;
}

.tab.active {
  color: var(--text);
  background: var(--bg);
  box-shadow: inset 0 2px 0 var(--accent);
}

.tab.exited .tab-title {
  text-decoration: line-through;
  opacity: 0.6;
}

.tab-close {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 16px;
  padding: 0 6px;
  line-height: 1;
}

.tab-close:active {
  color: var(--danger);
}

.terminal-stack {
  flex: 1;
  min-height: 0;
  position: relative;
  background: var(--bg);
}

.terminal-container {
  position: absolute;
  inset: 0;
  padding: 4px;
}

/* On touch devices, suppress the native long-press callout/selection so our
   tap-and-hold Paste bubble is what comes up instead. */
@media (pointer: coarse) {
  .terminal-stack {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
  }
}

.paste-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 500;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  color: var(--text-dim);
  opacity: 0.85;
}

.paste-btn:active {
  color: var(--text);
  border-color: var(--accent);
}

.paste-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.paste-menu {
  position: fixed;
  z-index: 41;
  transform: translate(-50%, -130%);
  padding: 8px 18px;
  font-size: 14px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.paste-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 16px 16px;
}

.paste-box {
  width: 100%;
  max-width: 480px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}

.paste-hint {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.paste-box textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: Menlo, Monaco, 'Courier New', monospace;
  font-size: 13px;
  padding: 8px;
  resize: vertical;
}

.paste-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.not-connected {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 17px;
}

/* ---------- Claude widget ---------- */

.claude-widget {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 4px;
}

.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.widget-note {
  color: var(--text-dim);
  font-size: 13px;
}

.claude-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.claude-list li {
  display: flex;
  gap: 8px;
  font-size: 12px;
  font-family: monospace;
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.claude-list li.attachable {
  cursor: pointer;
}

.claude-list li.attachable:hover {
  background: rgba(255, 255, 255, 0.06);
}

.claude-list .pid {
  color: var(--accent);
  flex-shrink: 0;
}

.claude-list .uptime {
  color: var(--text-dim);
  flex-shrink: 0;
}

.claude-list .cmd {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Repo picker ---------- */

.repo-picker {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.repo-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 260px;
  overflow-y: auto;
}

.repo-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 8px 4px;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

.repo-item:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.06);
}

.repo-item:disabled {
  opacity: 0.5;
  cursor: default;
}

.repo-name {
  font-weight: 600;
  font-size: 13px;
}

.repo-desc {
  font-size: 12px;
  color: var(--text-dim);
}

.clone-output-error {
  color: var(--danger);
}

.clone-output {
  font-size: 11px;
  font-family: monospace;
  white-space: pre-wrap;
  background: rgba(0, 0, 0, 0.3);
  padding: 8px;
  border-radius: 6px;
  max-height: 140px;
  overflow-y: auto;
  margin: 0;
}

/* ---------- Project preview panel ---------- */

.preview-panel {
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  background: var(--bg-panel);
  display: flex;
  flex-direction: column;
}

/* Hidden state: collapse to nothing but keep the iframes mounted so their
   page state, navigation, and scroll position survive. */
.preview-panel.preview-hidden {
  border-top: none;
}

.preview-drag-handle {
  height: 14px;
  cursor: ns-resize;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
}

.preview-drag-handle::after {
  content: '';
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
}

.preview-bar {
  display: flex;
  align-items: stretch;
}

.preview-toggle {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
  padding: 8px;
  flex: 1;
}

.preview-refresh {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 15px;
  padding: 8px 14px;
}

.preview-refresh:active {
  color: var(--text);
}

.preview-frames {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.preview-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  border: none;
  background: #fff;
}

/* ---------- Settings ---------- */

.settings-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
}

.settings-section {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.settings-section h2 {
  font-size: 16px;
  margin: 0 0 14px;
}

.settings-section h2:not(:first-child) {
  margin-top: 22px;
}

.project-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
}

.project-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.row-btns {
  display: flex;
  gap: 6px;
}

.command-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
}

.command-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.command-name {
  font-weight: 500;
  font-size: 14px;
}

.command-detail {
  font-size: 12px;
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.command-detail code {
  background: var(--bg);
  padding: 1px 5px;
  border-radius: 4px;
}

/* Claude instance details modal (reuses .paste-overlay/.paste-box layout) */
.instance-modal h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.instance-row {
  font-size: 13px;
  margin-bottom: 6px;
}

.instance-label {
  display: inline-block;
  min-width: 70px;
  color: var(--text-dim);
  font-size: 12px;
}

.instance-cmd {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px;
  margin: 0 0 8px;
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 30vh;
  overflow-y: auto;
}

.git-username {
  font-weight: 400;
  color: var(--text-dim);
}

.token-invalid {
  color: var(--danger);
}

.cmd-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  margin: 8px 0;
}

.cmd-label {
  margin-bottom: 4px;
}

.cmd-hint {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 3px;
}

.cmd-step {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.cmd-step input {
  flex: 1;
  font-family: monospace;
  font-size: 13px;
}

.cmd-step-num {
  color: var(--text-dim);
  font-size: 12px;
  width: 18px;
  text-align: right;
  flex-shrink: 0;
}

.cmd-form > .secondary.small {
  align-self: flex-start;
}

.add-project {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.add-project input {
  flex: 1;
  min-width: 160px;
}

.add-project button {
  flex-shrink: 0;
}

.project-title {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.project-url {
  font-size: 12px;
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/*!*******************************************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js!./node_modules/@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.
 */

/**
 *  Default styles for xterm.js
 */

.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;
    /**
     * The z-index of the helpers must be higher than the canvases in order for
     * IMEs to appear on top.
     */
    z-index: 5;
}

.xterm .xterm-helper-textarea {
    padding: 0;
    border: 0;
    margin: 0;
    /* Move textarea out of the screen to the far left, so that the cursor is not visible */
    position: absolute;
    opacity: 0;
    left: -9999em;
    top: 0;
    width: 0;
    height: 0;
    z-index: -5;
    /** Prevent wrapping so the IME appears against the textarea at the correct position */
    white-space: nowrap;
    overflow: hidden;
    resize: none;
}

.xterm .composition-view {
    /* TODO: Composition position got messed up somewhere */
    background: #000;
    color: #FFF;
    display: none;
    position: absolute;
    white-space: nowrap;
    z-index: 1;
}

.xterm .composition-view.active {
    display: block;
}

.xterm .xterm-viewport {
    /* On OS X this is required in order for the scroll bar to appear fully opaque */
    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 .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 {
    /* When mouse events are enabled (eg. tmux), revert to the standard pointer cursor */
    cursor: default;
}

.xterm.xterm-cursor-pointer,
.xterm .xterm-cursor-pointer {
    cursor: pointer;
}

.xterm.column-select.focus {
    /* Column selection mode */
    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 {
  user-select: text;
  white-space: pre;
}

.xterm .live-region {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.xterm-dim {
    /* Dim should not apply to background, so the opacity of the foreground color is applied
     * explicitly in the generated class and reset to 1 here */
    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;
}


/*# sourceMappingURL=bundle.css.map*/