/* IDE Phase 15 Tier 4 — Co-change chip + panel. Theme variables only. */

/* ---------------------------------------------------------------------------
   Cross-change chip — anchored at the top-right of the editor pane.
   Positioned via .ide-editor-section which must be position:relative.
   --------------------------------------------------------------------------- */

.cochange-chip {
  position: absolute;
  top: 10px;
  right: 18px;
  z-index: 10;

  display: inline-flex;
  align-items: center;
  gap: 5px;

  padding: 3px 9px 3px 6px;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, var(--bg-surface));
  cursor: pointer;

  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--accent);
  user-select: none;
  white-space: nowrap;

  transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.cochange-chip:hover {
  background: color-mix(in srgb, var(--accent) 18%, var(--bg-surface));
  border-color: var(--accent);
}

.cochange-chip__icon {
  /* Hide the text-content placeholder; display as a small dot instead. */
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  font-size: 0;
  flex-shrink: 0;
}

.cochange-chip__label {
  line-height: 1;
}

/* ---------------------------------------------------------------------------
   Co-change sidebar panel
   --------------------------------------------------------------------------- */

.cochange-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.cochange-panel__list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
}

.cochange-panel__list::-webkit-scrollbar { width: 4px; }
.cochange-panel__list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.cochange-panel__row {
  transition: background 0.08s;
}

.cochange-panel__row:hover {
  background: color-mix(in srgb, var(--accent) 5%, transparent);
}

.cochange-panel__row:last-child {
  border-bottom: none !important;
}
