/* ============================================================
   FACE BLUR PRO — panels.css
   Styling for the right-hand contextual panel: hints, buttons,
   toggle rows, face-count chip. Shares brand tokens from base.css.
   ============================================================ */

.panel__hint{
  font-size: 12.5px;
  font-weight: 500;
  color: var(--fb-ink-soft);
  line-height: 1.55;
  margin: 0 0 14px;
}

.toggle-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
}
.toggle-row__label{ font-size: 12.5px; font-weight: 600; color: var(--fb-ink); }

.switch{ position: relative; width: 36px; height: 21px; flex-shrink: 0; }
.switch input{ position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch__track{
  position: absolute; inset: 0;
  background: var(--fb-line);
  border-radius: 9999px;
  transition: background .15s ease;
}
.switch__track::after{
  content: "";
  position: absolute;
  top: 2.5px; left: 2.5px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(26,26,34,0.3);
  transition: transform .15s ease;
}
.switch input:checked + .switch__track{ background: var(--fb-brand); }
.switch input:checked + .switch__track::after{ transform: translateX(15px); }

.panel__rule{ height: 1px; background: var(--fb-line); margin: 16px 0; border: none; }

.face-chip{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  background: var(--fb-success-soft);
  color: var(--fb-success);
  margin-bottom: 12px;
}
.face-chip[data-empty="true"]{
  background: var(--fb-bg);
  color: var(--fb-ink-soft);
}

/* Segmented control — e.g. Rectangle / Circle shape picker */
.segmented{
  display: flex;
  background: var(--fb-bg);
  border-radius: 9999px;
  padding: 3px;
  gap: 3px;
}
.segmented__btn{
  flex: 1;
  border: none;
  background: transparent;
  color: var(--fb-ink-soft);
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 9999px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.segmented__btn[data-active="true"]{
  background: var(--fb-card);
  color: var(--fb-brand-dark);
  box-shadow: 0 1px 4px rgba(26,26,34,0.12);
}

.btn--danger{
  color: var(--fb-error);
  border-color: var(--fb-error-soft);
  background: var(--fb-error-soft);
  margin-top: 16px;
}
.btn--danger:hover{ background: #f7d9d5; border-color: var(--fb-error); }
