/* vcs-web runtime layout helpers.
   Zero literal colors or sizes: every value references tokens from design/system/tokens.css
   and builds directly on design/system/components/bundle.css + design/vcs/components/bundle.css. */

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
}

.vcs-shell {
  min-height: 100dvh;
  height: auto;
}

.vcs-body {
  overflow: auto;
}

.vcs-page-wide {
  max-width: var(--dialog-max);
}

.vcs-rail-wide {
  width: var(--panel-max);
  gap: var(--space-12);
}

.vcs-stack-sm {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.vcs-stack-md {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.vcs-stack-lg {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.vcs-inline-actions {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.vcs-clone-anchor {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.vcs-clone-popover {
  position: absolute;
  right: 0;
  top: calc(100% + var(--space-6));
  z-index: var(--z-popover);
}

.vcs-status-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: var(--space-24) var(--space-28);
  background: var(--bg-sidebar);
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  align-items: flex-start;
}

.vcs-status-panel h2 {
  margin: 0;
  font: var(--font-block-title);
  color: var(--text);
}

.vcs-status-panel p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.vcs-lang-segmented {
  display: inline-flex;
  gap: var(--space-4);
  padding: var(--space-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-sidebar);
}

.vcs-lang-segmented button {
  min-height: var(--control-xs);
  padding: 0 var(--space-10);
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
}

.vcs-lang-segmented button[aria-checked="true"] {
  background: var(--bg);
  color: var(--text);
  font-weight: 500;
}

.vcs-secret-box {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  padding: var(--space-12);
  border: 1px solid var(--highlight-line);
  border-radius: var(--radius-lg);
  background: var(--highlight);
}

.vcs-mobile-drawer {
  min-height: 100dvh;
}

@media (max-width: 767px) {
  .vcs-page {
    padding: var(--space-16) var(--space-20) var(--space-24);
  }
  .vcs-with-rail,
  .vcs-split,
  .vcs-profile {
    flex-direction: column;
  }
  .vcs-rail,
  .vcs-rail-wide,
  .vcs-tree,
  .vcs-jobs,
  .vcs-profile-side {
    width: 100%;
  }
  .vcs-cards {
    grid-template-columns: 1fr;
  }
  .vcs-heat-wrap {
    overflow-x: auto;
  }
}
