/* === tryit-source-control.css === */
/* ── Source Control panel ───────────────────────────────────────────── */
.source-control-panel {
  width: 280px;
  min-width: 244px;
  display: none;
  flex-direction: column;
  background: #141922;
  border-right: 1px solid rgba(255,255,255,.08);
  color: #d7deea;
  overflow: hidden;
  flex-shrink: 0;
}
.source-control-panel.active { display: flex; }
.source-control-head {
  height: 38px;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px 0 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: #141922;
}
.source-control-head h4 {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255,255,255,.7);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.source-control-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  overflow: auto;
}
.sc-icon-btn {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #98a4b5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.sc-icon-btn:hover { background: rgba(255,255,255,.08); color: #ffffff; }
.sc-branch-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.sc-repository-row { display: flex; align-items: center; gap: 5px; margin-bottom: 7px; }
.sc-repository-select {
  flex: 1; min-width: 0; height: 28px; padding: 0 7px; color: #d4d4d4;
  background: #252526; border: 1px solid rgba(255,255,255,.16); border-radius: 4px;
  font: 12px/1.2 inherit;
}
.sc-repository-select:focus-visible { outline: 2px solid #58a6ff; outline-offset: 1px; }
.sc-repository-row .sc-icon-btn { flex: 0 0 auto; width: 28px; font-size: 11px; font-weight: 700; }
.sc-repository-row .sc-team-btn { width: 38px; font-size: 9px; }
.sc-repository-row .sc-release-btn { width: 30px; font-size: 9px; }
.sc-sync-status { margin: -1px 0 7px; color: rgba(255,255,255,.56); font-size: 10.5px; line-height: 1.35; }
.sc-sync-status.error { color: #ff9b93; }
.sc-sync-status.busy { color: #79c0ff; }
.sc-branch-btn,
.sc-btn,
.sc-mini-btn {
  border: 1px solid rgba(255,255,255,.11);
  background: rgba(255,255,255,.045);
  color: #d7deea;
  border-radius: 6px;
  cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
}
.sc-branch-btn {
  min-width: 0;
  flex: 1 1 auto;
  height: 32px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
}
.sc-branch-btn span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sc-branch-btn:hover,
.sc-btn:hover,
.sc-mini-btn:hover {
  background: rgba(79,140,255,.13);
  border-color: rgba(79,140,255,.38);
  color: #ffffff;
}
.sc-commit-input {
  width: 100%;
  min-height: 66px;
  resize: vertical;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 6px;
  background: #0f151d;
  color: #e5ecf7;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.45;
  outline: none;
}
.sc-commit-input:focus {
  border-color: rgba(79,140,255,.65);
  box-shadow: 0 0 0 3px rgba(79,140,255,.16);
}
.sc-btn-row {
  display: flex;
  gap: 7px;
  min-width: 0;
}
.sc-btn {
  height: 30px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}
.sc-btn.primary {
  flex: 1 1 auto;
  background: #238636;
  border-color: rgba(255,255,255,.12);
  color: #ffffff;
}
.sc-btn.primary:hover { background: #2ea043; }
.sc-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #b7c2d2;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.sc-count {
  min-width: 20px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  background: rgba(79,140,255,.16);
  color: #bfdbfe;
  font-size: 10px;
  font-weight: 800;
}
.sc-changes-list,
.sc-pull-request-list,
.sc-commit-list {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sc-pr-card { padding: 8px; border-bottom: 1px solid rgba(255,255,255,.07); }
.sc-pr-title { color: #e6edf3; font-size: 12px; font-weight: 650; line-height: 1.35; }
.sc-pr-meta { margin-top: 3px; color: rgba(255,255,255,.52); font-size: 10px; line-height: 1.35; }
.sc-pr-actions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.sc-pr-actions .sc-btn { min-height: 24px; padding: 2px 7px; font-size: 10px; }
.sc-pr-actions .sc-btn.merge { color: #fff; background: #238636; border-color: #2ea043; }
.sc-empty {
  padding: 14px 10px;
  border: 1px dashed rgba(255,255,255,.12);
  border-radius: 6px;
  color: rgba(215,222,234,.62);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}
.sc-change-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 6px 7px;
  border-radius: 6px;
  background: rgba(255,255,255,.035);
  border: 1px solid transparent;
}
.sc-change-row:hover {
  background: rgba(255,255,255,.065);
  border-color: rgba(255,255,255,.08);
}
.sc-change-status {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Consolas, "Fira Code", monospace;
  font-size: 11px;
  font-weight: 900;
}
.sc-status-added { color: #7ee787; background: rgba(46,160,67,.14); }
.sc-status-modified { color: #79c0ff; background: rgba(56,139,253,.14); }
.sc-status-deleted { color: #ff7b72; background: rgba(248,81,73,.14); }
.sc-change-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sc-change-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #f0f6fc;
  font-size: 12px;
  font-weight: 700;
}
.sc-change-meta {
  color: #8b949e;
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sc-change-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: .65;
}
.sc-change-row:hover .sc-change-actions { opacity: 1; }
.sc-mini-btn {
  width: 28px;
  height: 26px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #aab7c7;
}
.sc-commit-card {
  padding: 8px;
  border-radius: 6px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.06);
}
.sc-commit-card.server-commit { position: relative; padding-left: 19px; }
.sc-commit-card.server-commit::before { content: ''; position: absolute; left: 7px; top: 0; bottom: 0; width: 2px; background: rgba(88,166,255,.28); }
.sc-commit-card.server-commit::after { content: ''; position: absolute; left: 4px; top: 13px; width: 8px; height: 8px; border-radius: 50%; background: #58a6ff; box-shadow: 0 0 0 2px #20242b; }
.sc-commit-card.server-commit.merge::after { background: #a371f7; }
.sc-commit-message {
  color: #f0f6fc;
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sc-commit-meta {
  margin-top: 3px;
  color: #8b949e;
  font-size: 10.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 700px) {
  .source-control-panel {
    width: 100% !important;
    min-width: 0 !important;
    max-height: min(34dvh, 210px) !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
  }
  .source-control-body {
    padding: 8px !important;
    gap: 8px !important;
  }
  .sc-commit-input { min-height: 50px; }
  .sc-commit-list { display: none; }
}

/* ── Active folder highlight ─────────────────────────────────────────── */


