:root {
  color-scheme: dark;
  --bg: #0c0d0c;
  --sidebar-bg: #0f110e;
  --panel: #121411;
  --panel-2: #171a15;
  --panel-hover: #1c2019;
  --line: #2a2e27;
  --line-strong: #343a30;
  --text: #e8ebe4;
  --muted: #899084;
  --dim: #666e62;
  --green: #d4f68a;
  --green-soft: rgba(212, 246, 138, 0.12);
  --green-deep: #1d2915;
  --orange: #e9b47a;
  --orange-soft: rgba(233, 180, 122, 0.12);
  --red: #df8b79;
  --red-soft: rgba(223, 139, 121, 0.12);
  --blue: #8fb8cf;
  --sidebar-w: 228px;
  --mono: "SFMono-Regular", "Cascadia Code", Consolas, "Liberation Mono", Menlo, monospace;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
code, pre { font-family: var(--mono); }

/* ================= App Shell (Left Sidebar + Main) ================= */
.vs-shell {
  display: flex;
  min-height: 100vh;
}

.vs-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 20px 14px 16px;
  z-index: 40;
  transition: transform 0.2s ease;
}

.vs-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.6px;
  color: var(--text);
}
.brand-mark {
  color: var(--green);
  font: 800 17px var(--mono);
}

.vs-tag {
  color: var(--orange);
  border: 1px solid #51432f;
  border-radius: 3px;
  padding: 2px 6px;
  font: 600 9px var(--mono);
  letter-spacing: 0.9px;
  text-transform: uppercase;
}

.vs-nav-section {
  color: var(--dim);
  font: 600 9px var(--mono);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 8px 10px 6px;
}

.vs-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.vs-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 5px;
  font-size: 13px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.vs-nav a .vs-nav-ico {
  font: 600 11px var(--mono);
  color: var(--dim);
  width: 18px;
  text-align: center;
}

.vs-nav a:hover {
  color: var(--text);
  background: var(--panel);
  border-color: var(--line);
}

.vs-nav a.active {
  color: var(--green);
  background: var(--green-deep);
  border-color: #344a27;
}
.vs-nav a.active .vs-nav-ico {
  color: var(--green);
}

.vs-sidebar-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vs-user-link,
.vs-logout-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 5px;
  font-size: 12px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}
.vs-user-link:hover,
.vs-logout-btn:hover {
  color: var(--text);
  background: var(--panel);
  border-color: var(--line);
}
.vs-user-link.active {
  color: var(--green);
  background: var(--green-deep);
  border-color: #344a27;
}
/* Fixed-width leading slot so the profile dot and logout icon line up
   with each other and with the nav glyphs above. */
.vs-foot-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--dim);
}
.vs-user-link.active .vs-foot-ico {
  color: var(--green);
}
.vs-logout-btn:hover .vs-foot-ico {
  color: var(--text);
}
.vs-user-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
.vs-user-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vs-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #0c0e0c;
}
.vs-lang-switch a {
  padding: 3px 7px;
  border-radius: 3px;
  font: 600 10px var(--mono);
  color: var(--muted);
  transition: all 0.15s ease;
}
.vs-lang-switch a:hover {
  color: var(--text);
  background: var(--panel-2);
}
.vs-lang-switch a.active {
  color: #0e130b;
  background: var(--green);
}

.vs-mobile-bar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 35;
  height: 54px;
  padding: 0 16px;
  background: var(--sidebar-bg);
  border-bottom: 1px solid var(--line);
  align-items: center;
  justify-content: space-between;
}

.vs-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 38;
}

.vs-main {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-width: 0;
  padding: 32px 34px 56px;
}

.vs-main.vs-main-flush {
  padding: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ================= Fullscreen Multi-Tab Terminal (macOS Terminal style) ================= */
.vs-term-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  background: #0c0e0c;
  overflow: hidden;
}

.vs-tabbar {
  height: 44px;
  background: #141712;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  padding: 0 10px 0 8px;
  gap: 8px;
  flex-shrink: 0;
  user-select: none;
}

.vs-tabs-scroll {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  flex: 1;
  min-width: 0;
  padding-top: 6px;
  scrollbar-width: none;
}
.vs-tabs-scroll::-webkit-scrollbar { display: none; }

.vs-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 37px;
  max-width: 220px;
  min-width: 120px;
  padding: 0 10px 0 12px;
  border-radius: 6px 6px 0 0;
  border: 1px solid transparent;
  border-bottom: none;
  background: transparent;
  color: var(--muted);
  font: 500 12px var(--mono);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.14s ease, color 0.14s ease;
}
.vs-tab:hover {
  background: #1a1e18;
  color: var(--text);
}
.vs-tab.active {
  background: #0c0e0c;
  color: var(--text);
  border-color: var(--line);
  position: relative;
}
.vs-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #0c0e0c;
}

.vs-tab-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5c6357;
  flex-shrink: 0;
}
.vs-tab-dot.booting { background: var(--orange); }
.vs-tab-dot.running { background: var(--green); box-shadow: 0 0 0 3px rgba(212, 246, 138, 0.14); }
.vs-tab-dot.error { background: var(--red); }

.vs-tab-title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vs-tab-input {
  flex: 1;
  min-width: 60px;
  background: #171a15;
  border: 1px solid var(--green);
  border-radius: 3px;
  color: var(--text);
  font: 500 12px var(--mono);
  padding: 1px 5px;
  outline: none;
}

.vs-tab-close {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: var(--dim);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.vs-tab-close:hover {
  background: #2a2f27;
  color: var(--text);
}

.vs-tab-add {
  align-self: center;
  width: 28px;
  height: 28px;
  margin-left: 2px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: #171a15;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 600 16px var(--mono);
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.14s ease;
}
.vs-tab-add:hover {
  border-color: #4a5f3c;
  color: var(--green);
  background: var(--green-deep);
}

.vs-tabbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.vs-term-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  background: #0c0e0c;
}

.vs-btn-danger-ghost:hover:not(:disabled) {
  border-color: #6b3b34;
  color: #df8b79;
  background: #291614;
}

.vs-menu-wrap {
  position: relative;
}

.vs-menu-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 24px;
  padding: 0;
}

.vs-menu-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 210px;
  background: #141713;
  border: 1px solid #2e342a;
  border-radius: 7px;
  padding: 5px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vs-menu-header {
  padding: 6px 10px 4px;
  font: 11px var(--mono);
  color: #899084;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vs-menu-panel.hidden {
  display: none;
}

.vs-menu-item {
  appearance: none;
  border: 0;
  background: transparent;
  color: #cfd6c8;
  font-size: 12px;
  text-align: left;
  padding: 7px 10px;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
  transition: background 0.12s ease, color 0.12s ease;
}

.vs-menu-item:hover:not(:disabled) {
  background: #21261e;
  color: #f3f7ee;
}

.vs-menu-item:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.vs-menu-item-danger {
  color: #df8b79;
}

.vs-menu-item-danger:hover:not(:disabled) {
  background: #2b1815;
  color: #f2a291;
}

.vs-menu-sep {
  height: 1px;
  background: #262b23;
  margin: 4px 6px;
}

.vs-drop-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: rgba(12, 14, 12, 0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.vs-drop-overlay.hidden {
  opacity: 0;
  display: none;
}

.vs-drop-box {
  border: 1.5px dashed #d4f68a;
  background: rgba(29, 41, 21, 0.55);
  border-radius: 10px;
  padding: 28px 44px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vs-drop-box strong {
  color: #e8ebe4;
  font-size: 14px;
  font-weight: 550;
}

.vs-drop-box span {
  color: #d4f68a;
  font: 12px var(--mono);
}

.vs-term-pane {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  padding: 10px 12px;
  box-sizing: border-box;
}
.vs-term-pane.active {
  display: flex;
}

.vs-term-mount {
  flex: 1;
  min-height: 0;
  min-width: 0;
  width: 100%;
  padding: 0;
  overflow: hidden;
}
.vs-term-mount .xterm {
  height: 100%;
}

.vs-idle-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at 50% 35%, rgba(212, 246, 138, 0.05), transparent 55%), #0c0e0c;
  z-index: 3;
}
.vs-idle-stage.hidden {
  display: none;
}

.vs-idle-card {
  width: min(460px, 100%);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 28px 26px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}
.vs-idle-card h2 {
  margin: 10px 0 10px;
  font-size: 20px;
  font-weight: 620;
  letter-spacing: -0.5px;
}
.vs-idle-card p {
  margin: 0 0 22px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}
.vs-idle-meta {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
  font: 10.5px var(--mono);
  color: var(--dim);
}

.vs-term-statusbar {
  height: 28px;
  padding: 0 14px;
  background: #121510;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 10.5px var(--mono);
  color: var(--dim);
  flex-shrink: 0;
}
.vs-term-statusbar span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.vs-container {
  max-width: 1180px;
  margin: 0 auto;
}
.vs-container-narrow {
  max-width: 820px;
  margin: 0 auto;
}

/* ================= Typography & Page Headers ================= */
.eyebrow {
  color: var(--green);
  font: 600 10px var(--mono);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.vs-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.vs-page-head h1 {
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -1px;
  margin: 8px 0 6px;
  font-weight: 630;
  line-height: 1.15;
}

.vs-lead {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
  max-width: 660px;
}
.vs-lead code {
  color: var(--orange);
  font-size: 12px;
}

/* ================= Cards, Grids & Stats ================= */
.vs-stack { display: flex; flex-direction: column; gap: 20px; }
.vs-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.vs-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.vs-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

.vs-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}
.vs-card-highlight {
  border-color: #4a613a;
  box-shadow: 0 0 0 1px rgba(212, 246, 138, 0.14);
}
.vs-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
}
.vs-card-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.vs-card-body {
  padding: 18px;
}

.vs-stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 16px 18px;
}
.vs-stat-label {
  font: 600 10px var(--mono);
  color: var(--dim);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.vs-stat-value {
  font: 600 22px var(--mono);
  color: var(--text);
  margin: 8px 0 4px;
  letter-spacing: -0.5px;
}
.vs-stat-value.accent { color: var(--green); }
.vs-stat-desc {
  font-size: 11px;
  color: var(--muted);
}

.vs-meter {
  width: 100%;
  height: 5px;
  background: #1f241c;
  border-radius: 999px;
  overflow: hidden;
  margin: 8px 0 6px;
}
.vs-meter > i {
  display: block;
  height: 100%;
  background: var(--green);
  border-radius: 999px;
  transition: width 0.25s ease;
}
.vs-meter > i.warn { background: var(--orange); }
.vs-meter > i.full { background: var(--red); }

.vs-amount-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.vs-pill {
  padding: 6px 14px;
  border-radius: 5px;
  border: 1px solid var(--line-strong);
  background: #141712;
  color: var(--text);
  font: 600 12px var(--mono);
  cursor: pointer;
  transition: all 0.14s ease;
}
.vs-pill:hover,
.vs-pill.active {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-deep);
}

/* ================= Buttons ================= */
.vs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line-strong);
  background: #161914;
  color: #cfd6c8;
  border-radius: 5px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.vs-btn:hover:not(:disabled) {
  border-color: #4f6343;
  color: var(--green);
  background: #1a2117;
}
.vs-btn:disabled,
.vs-btn.is-disabled {
  opacity: 0.42;
  cursor: not-allowed;
  pointer-events: none;
}

.vs-btn-primary {
  background: var(--green);
  border-color: var(--green);
  color: #0e130b;
  font-weight: 600;
}
.vs-btn-primary:hover:not(:disabled) {
  background: #e1faaa;
  border-color: #e1faaa;
  color: #0c0d0c;
}

.vs-btn-danger {
  border-color: #54322b;
  color: var(--red);
  background: #1b1210;
}
.vs-btn-danger:hover:not(:disabled) {
  border-color: var(--red);
  color: #ffd0c4;
  background: #291815;
}

.vs-btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
.vs-btn-ghost:hover:not(:disabled) {
  background: var(--panel-2);
  border-color: var(--line);
  color: var(--text);
}

.vs-btn-sm { padding: 5px 10px; font-size: 11px; }
.vs-btn-xs { padding: 3px 8px; font-size: 11px; }

/* ================= Forms ================= */
.vs-form { display: flex; flex-direction: column; gap: 14px; }
.vs-field { display: flex; flex-direction: column; gap: 6px; }
.vs-label {
  font: 600 10px var(--mono);
  color: var(--muted);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.vs-input,
.vs-textarea,
.vs-select {
  width: 100%;
  background: #0c0e0c;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  padding: 9px 12px;
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s ease;
}
.vs-input:focus,
.vs-textarea:focus,
.vs-select:focus {
  border-color: var(--green);
}
.vs-input:disabled,
.vs-input[readonly] {
  opacity: 0.65;
  cursor: not-allowed;
}
.vs-textarea {
  resize: vertical;
  min-height: 110px;
  font-family: var(--mono);
  font-size: 12.5px;
}
.vs-input-group {
  display: flex;
  gap: 8px;
}
.vs-input-group .vs-input { flex: 1; }

/* ================= Tables ================= */
.vs-table-wrap { overflow-x: auto; }
.vs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.vs-table th {
  text-align: left;
  padding: 10px 12px;
  font: 600 10px var(--mono);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--dim);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.vs-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #1e221c;
  color: var(--text);
  vertical-align: middle;
}
.vs-table tbody tr:hover {
  background: #151813;
}
.vs-table tbody tr:last-child td { border-bottom: none; }
.vs-table code {
  color: var(--orange);
  font-size: 11.5px;
  background: #181b16;
  padding: 2px 5px;
  border-radius: 3px;
}

/* ================= Badges & Alerts ================= */
.vs-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  border-radius: 3px;
  font: 600 10px var(--mono);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--muted);
}
.vs-badge-green {
  color: var(--green);
  background: var(--green-deep);
  border-color: #344a27;
}
.vs-badge-orange {
  color: var(--orange);
  background: var(--orange-soft);
  border-color: #51432f;
}
.vs-badge-red {
  color: var(--red);
  background: var(--red-soft);
  border-color: #54322b;
}

.vs-alert {
  padding: 12px 15px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  font-size: 13px;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.vs-alert-success { border-color: #385229; background: #141e10; color: var(--green); }
.vs-alert-error { border-color: #5a342c; background: #1f1311; color: var(--red); }
.vs-alert-warning { border-color: #57452c; background: #1d1810; color: var(--orange); }
.vs-alert-info { border-color: #2f434f; background: #11181c; color: var(--blue); }
.hidden { display: none !important; }

/* ================= Code Blocks & Modals ================= */
.vs-pre {
  background: #0b0c0b;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 12px 14px;
  margin: 0;
  font-size: 11.5px;
  line-height: 1.55;
  color: #cfd6c8;
  overflow-x: auto;
}

dialog.vs-modal {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0;
  width: min(460px, 92vw);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.75);
}
dialog.vs-modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(2px);
}
.vs-modal-head {
  padding: 15px 18px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  font-size: 14px;
}
.vs-modal-body { padding: 18px; }
.vs-modal-foot {
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* ================= Toast ================= */
.vs-toast-container {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 380px;
}
.vs-toast {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 12.5px;
  border: 1px solid var(--line-strong);
  background: var(--panel-2);
  color: var(--text);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.vs-toast-success { border-color: #385229; color: var(--green); }
.vs-toast-error { border-color: #5a342c; color: var(--red); }
.vs-toast-warning { border-color: #57452c; color: var(--orange); }
.vs-toast-info { border-color: #2f434f; color: var(--blue); }

/* ================= Browser VM / Terminal Styles (from sandbox) ================= */
.intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 24px; }
.intro h1 { font-size: clamp(26px, 3.4vw, 42px); letter-spacing: -1.5px; margin: 10px 0 10px; font-weight: 630; line-height: 1.1; }
.intro p { max-width: 640px; color: var(--muted); font-size: 13px; line-height: 1.65; margin: 0; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(105px, 1fr)); gap: 16px 24px; min-width: 240px; }
.facts div { display: flex; flex-direction: column; gap: 4px; }
.facts span { color: var(--dim); font: 600 9px var(--mono); letter-spacing: 1px; }
.facts strong { color: #c4cabf; font-size: 12px; font-weight: 500; }

.terminal-window { border: 1px solid #32382e; background: #0c0e0c; border-radius: 7px; overflow: hidden; box-shadow: 0 24px 70px #0008; }
.terminal-toolbar { height: 44px; background: #171a15; border-bottom: 1px solid #2a2f27; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; }
.window-title { display: flex; gap: 10px; align-items: center; font: 11px var(--mono); color: #9ba292; }
.window-title .dot { width: 7px; height: 7px; border-radius: 50%; background: #84a160; }
.window-title b { margin-left: 6px; font-size: 9px; letter-spacing: .7px; color: var(--green); background: #1b2815; padding: 3px 6px; border-radius: 3px; }
.toolbar-actions { display: flex; gap: 7px; }
.toolbar-actions button { font-size: 11px; border: 1px solid #333a30; background: transparent; border-radius: 4px; padding: 4px 10px; color: #a5ac9d; cursor: pointer; }
.toolbar-actions button:hover { color: #fff; background: #242920; }
.terminal-wrap { height: clamp(420px, 58vh, 660px); position: relative; padding: 13px; }
#terminal { height: 100%; width: 100%; }
#terminal .xterm { height: 100%; }
.overlay { position: absolute; inset: 0; background: #0c0e0cee; display: flex; align-items: center; justify-content: center; flex-direction: column; z-index: 2; transition: opacity .25s; }
.overlay.hidden { opacity: 0; pointer-events: none; }
.overlay strong { font-size: 13px; font-weight: 520; margin-bottom: 8px; }
.overlay > span { color: #7f8779; font: 10px var(--mono); }
.spinner { width: 26px; height: 26px; border: 2px solid #293021; border-top-color: var(--green); border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 18px; }
.progress { width: 200px; height: 2px; margin-top: 18px; background: #2b3027; }
.progress i { display: block; height: 100%; width: 3%; background: var(--green); transition: width .2s; }
.terminal-footer { height: 32px; padding: 0 14px; border-top: 1px solid #262b23; display: flex; align-items: center; justify-content: space-between; color: #70786a; font: 10px var(--mono); }
.terminal-footer span { display: flex; align-items: center; gap: 7px; }
.led { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #777f70; }
.led.online { background: var(--green); box-shadow: 0 0 0 3px #d4f68a16; }

.actions { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; margin-top: 22px; }
.actions button { margin-right: 7px; margin-top: 12px; border: 1px solid var(--line); background: #141712; color: #bcc3b5; border-radius: 4px; padding: 8px 12px; font-size: 11.5px; cursor: pointer; }
.actions button:hover:not(:disabled) { border-color: #4a5940; color: var(--green); }
.actions button:disabled { opacity: .35; cursor: not-allowed; }
.note { border-left: 1px solid var(--line); padding-left: 22px; }
.note strong { font-size: 12px; font-weight: 550; color: #bfc6b9; }
.note p { color: #7d8576; font-size: 11.5px; line-height: 1.65; margin: 8px 0 0; }
.note code { font: 10.5px var(--mono); color: var(--orange); }
.support { border-top: 1px solid #242820; padding-top: 9px; margin-top: 12px !important; }
.support.ok { color: #8ca97a; }
.support.bad { color: #dc8b76; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ================= Markdown / Community ================= */
.vs-markdown { line-height: 1.75; color: var(--text); font-size: 14px; }
.vs-markdown h1, .vs-markdown h2, .vs-markdown h3 { color: var(--text); margin-top: 1.4em; letter-spacing: -0.4px; }
.vs-markdown a { color: var(--green); text-decoration: underline; }
.vs-markdown pre { background: #0b0c0b; border: 1px solid var(--line); border-radius: 5px; padding: 12px; overflow-x: auto; }
.vs-markdown code { color: var(--orange); font-size: 12.5px; }
.vs-markdown pre code { color: #cfd6c8; }
.vs-markdown blockquote { border-left: 3px solid var(--green); margin: 12px 0; padding-left: 14px; color: var(--muted); }
.vs-markdown table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.vs-markdown th, .vs-markdown td { border: 1px solid var(--line); padding: 7px 10px; }

/* ================= Public Pages (Home / Login / Error) ================= */
.vs-public-header {
  height: 68px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.vs-public-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12.5px;
  color: var(--muted);
}
.vs-public-nav a:hover { color: var(--green); }

.vs-center-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* ================= Responsive ================= */
@media (max-width: 960px) {
  .vs-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vs-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intro { flex-direction: column; align-items: flex-start; }
  .facts { grid-template-columns: repeat(4, 1fr); width: 100%; min-width: 0; }
  .actions { grid-template-columns: 1fr; gap: 20px; }
  .note { border-left: 0; border-top: 1px solid var(--line); padding: 16px 0 0; }
}

@media (max-width: 780px) {
  .vs-mobile-bar { display: flex; }
  .vs-sidebar { transform: translateX(-100%); }
  .vs-sidebar.open { transform: translateX(0); }
  .vs-sidebar-backdrop.open { display: block; }
  .vs-main { margin-left: 0; padding: 20px 16px 40px; }
  .vs-grid-2, .vs-grid-3, .vs-grid-4 { grid-template-columns: 1fr; }
  .terminal-wrap { height: 440px; padding: 8px; }
}
