.family-params-editor-root {
  margin: 8px 0 12px;
}

.fpe-editor {
  border: 2px solid #c7d2fe;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.fpe-template-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 12px 14px;
  background: linear-gradient(180deg, #eef2ff, #e0e7ff);
  border-bottom: 1px solid #c7d2fe;
}

.fpe-template-label {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
}

.fpe-template-select {
  flex: 1 1 200px;
  min-width: 0;
  font-size: 14px;
  padding: 9px 12px;
  border: 1px solid #a5b4fc;
  border-radius: 8px;
  background: #fff;
}

.fpe-intro {
  margin: 0;
  padding: 10px 14px;
  font-size: 13px;
  color: #475569;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.fpe-panel {
  border-bottom: 1px solid #e2e8f0;
}

.fpe-panel:last-child {
  border-bottom: none;
}

.fpe-panel-summary {
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
  list-style: none;
  background: #f8fafc;
}

.fpe-panel-summary::-webkit-details-marker {
  display: none;
}

.fpe-panel-summary::before {
  content: '▸ ';
  color: #6366f1;
}

.fpe-panel[open] .fpe-panel-summary::before {
  content: '▾ ';
}

.fpe-panel-body {
  padding: 0 10px 12px;
}

.fpe-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.fpe-table th {
  padding: 8px 6px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
}

.fpe-table th.fpe-check-col {
  text-align: center;
  text-transform: lowercase;
  width: 110px;
}

.fpe-table th.fpe-action-col {
  width: 40px;
}

.fpe-row td {
  padding: 6px;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
}

.fpe-label {
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
}

.fpe-value,
.fpe-custom-label {
  width: 100%;
  min-width: 0;
  font-size: 13px;
  font-family: inherit;
  padding: 8px 10px;
  border: 1px solid #d8dce2;
  border-radius: 8px;
  background: #fff;
}

.fpe-check-col {
  text-align: center;
  width: 110px;
}

.fpe-parametric-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  cursor: pointer;
}

.fpe-parametric {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.fpe-parametric-mark {
  width: 24px;
  height: 24px;
  border: 2px solid #cbd5e1;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.fpe-parametric:checked + .fpe-parametric-mark {
  border-color: #2563eb;
  background: #2563eb;
}

.fpe-parametric:checked + .fpe-parametric-mark::after {
  content: '✓';
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.fpe-remove {
  width: 32px;
  height: 32px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  color: #9ca3af;
  font-size: 18px;
  cursor: pointer;
}

.fpe-remove:hover {
  color: #dc2626;
  border-color: #fecaca;
  background: #fef2f2;
}

.fpe-add-custom {
  margin-top: 10px;
}

@media (max-width: 640px) {
  .fpe-template-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .fpe-table th.fpe-action-col,
  .fpe-action-col {
    width: 36px;
  }
}
