.ui-chip {

  display: inline-flex;
  align-items: center;

  height: 24px;

  border-radius: 12px;

  background:  #cac9c9;;

  border-radius: 15px;

  overflow: hidden;

  backdrop-filter: blur(6px);

  font-family: inherit;

  color: rgba(255,255,255,0.92);

  user-select: none;
  width: fit-content;

}

.ui-chip-label {

 display: flex;
  align-items: center;
  justify-content: center;

  height: 100%;

  padding: 0 10px;

  background:  #373737;

  border-radius: 20px;

  font-size: 10px;
  font-weight: 500;

  letter-spacing: 0.02em;

  white-space: nowrap;

}

.ui-chip-value {

  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  height: 100%;
  padding: 0 7px;

  font-size: 10px;
  font-weight: 400;

  color:  #373737;

  width: fit-content;

  max-width: 180px;
  flex-shrink: 1;
  white-space: nowrap;

}

.ui-chip-arrow {

  width: 7px;
  height: 7px;

  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;

  transform: rotate(45deg);

  opacity: 0.7;

  margin-top: -3px;

}

.node-style-panel {

  position: fixed;

  display: flex;
  flex-direction: column;

  gap: 10px;

  z-index: 99999;

  pointer-events: auto;
}

.shape-dropdown {

  display: flex;
  flex-direction: column;

  gap: 2px;

  padding: 6px;

  border-radius: 14px;

  background: rgba(30,30,36,0.72);

  min-width: 140px;
}

.shape-dropdown.hidden {
  display: none;
}

.shape-option {

  padding: 4px 12px;

  border-radius: 100px;

  font-size: 11px;

  color: rgba(255,255,255,0.82);

  cursor: pointer;

  transition: background 0.15s;
}

.shape-option:hover {

  background: rgba(255,255,255,0.08);
  border-radius: 999px;

}

.graph-badge {

  transition:
    opacity 0.18s,
    transform 0.18s,
    filter 0.18s;
  position: absolute;

}

.graph-badge.dimmed {

  opacity: 0.18 !important;

  filter: grayscale(0.3);

}

.graph-badge.active {

  opacity: 0.82 !important;

  filter:
    brightness(1.08);

    

}

.ui-color-swatch {

  width: 15px;
  height: 15px;

  border-radius: 50%;
  flex-shrink: 0;
}

.ui-chip-alpha {

  font-size: 12px;

  color: #555;

  white-space: nowrap;
}

.color-dropdown {

  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

  gap: 8px;

  padding: 10px;

  border-radius: 14px;

  background:
    rgba(30,30,36,.92);

}

.color-dropdown.hidden {

  display: none;

}

/* ─── UNIFIED COLOR PICKER ──────────────────────────────────────── */

.color-picker-popup {
  position: fixed;
  z-index: 999999;
  background: rgba(30, 30, 36, .92);
  border-radius: 14px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cp-row {
  display: flex;
  gap: 6px;
  align-items: center;
}

.cp-active {
  outline: 2px solid rgba(255,255,255,0.75);
  outline-offset: 2px;
}

.cp-custom {
  position: relative;
  overflow: hidden;
  border: 1.5px dashed rgba(255,255,255,0.35) !important;
  cursor: pointer;
}

.cp-native-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  padding: 0;
  border: none;
}

.cp-plus-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  pointer-events: none;
}

.cp-alpha-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 4px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.cp-alpha-lbl {
  font-size: 9px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.5px;
}

/* ─── CONCEPT PANEL ─────────────────────────────────────────────── */

.concept-panel {
  position: fixed;
  z-index: 99999;
  background: rgba(30,30,36,0.72);
  border-radius: 14px;
  padding: 10px 12px;
  width: 200px;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cp-header {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-bottom: 2px;
}

.cp-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 180px;
  overflow-y: auto;
}

.cp-empty {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  padding: 4px 0;
}

.cp-row {
  display: grid;
  grid-template-columns: 12px 1fr 16px 16px;
  align-items: center;
  gap: 6px;
  padding: 3px 4px;
  border-radius: 8px;
}

.cp-row:hover {
  background: rgba(255,255,255,0.05);
}

.cp-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cp-name {
  font-size: 11px;
  color: rgba(255,255,255,0.88);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cp-comment {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cp-toggle {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.3);
  cursor: pointer;
  flex-shrink: 0;
}

.cp-toggle--on {
  background: rgba(255,255,255,0.82);
  border-color: rgba(255,255,255,0.82);
}

.cp-del {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
  cursor: pointer;
  text-align: center;
  line-height: 1;
  flex-shrink: 0;
}

.cp-del:hover {
  color: rgba(255,80,80,0.8);
}

.cp-sep {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 2px 0;
}

.cp-form {
  display: grid;
  grid-template-columns: 18px 1fr 20px;
  align-items: center;
  gap: 6px;
  padding: 3px 4px;
}

.cp-form-color {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
}

.cp-color-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.cp-form-name,
.cp-form-comment {
  background: rgba(255,255,255,0.08);
  border: none;
  border-radius: 6px;
  color: rgba(255,255,255,0.82);
  font-size: 11px;
  font-family: inherit;
  padding: 3px 7px;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.cp-form-name::placeholder,
.cp-form-comment::placeholder {
  color: rgba(255,255,255,0.25);
}

.cp-form-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.82);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.cp-form-btn:hover {
  background: rgba(255,255,255,0.22);
}

