:host { display: block; }

.form-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* Duplicate panel */
.duplicate-panel {
  margin-top: 20px;
  border: 1px solid #fbbf24;
  border-radius: 8px;
  background: #fffbeb;
}

.panel-title-warn {
  color: #b45309;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;

  mat-icon { color: #d97706; }
}

.dup-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 8px;

  th {
    text-align: left;
    padding: 6px 10px;
    background: #fef3c7;
    color: #78350f;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 1px solid #fde68a;
  }

  td {
    padding: 8px 10px;
    border-bottom: 1px solid #fef3c7;
    vertical-align: top;
    color: #44403c;
  }

  tr:last-child td { border-bottom: none; }
}

.score-bar-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 120px;
}

.score-bar {
  height: 6px;
  border-radius: 3px;
  background: #10b981;
  flex-shrink: 0;

  &.score-red    { background: #ef4444; }
  &.score-amber  { background: #f59e0b; }
}

.score-val {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  min-width: 24px;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;

  &.badge-red   { background: #fee2e2; color: #b91c1c; }
  &.badge-amber { background: #fef3c7; color: #92400e; }
  &.badge-teal  { background: #d1fae5; color: #065f46; }
}

.suggest-text {
  font-size: 12px;
  line-height: 1.5;
  color: #6b7280;
  max-width: 320px;
}
