.voice-assets-workbench {
  display: grid;
  gap: 14px;
}

.voice-assets-header {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.voice-assets-header h3 {
  font-size: 18px;
  margin: 0 0 4px;
}

.voice-assets-header p,
.voice-asset-card p {
  color: #667085;
  margin: 0;
}

.voice-assets-actions,
.voice-asset-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.voice-assets-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.voice-asset-card {
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.voice-asset-card div,
.voice-asset-card footer {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.voice-asset-card span {
  color: #667085;
  font-size: 12px;
}

.voice-assets-empty {
  border: 1px dashed #d0d5dd;
  border-radius: 8px;
  color: #667085;
  margin: 0;
  padding: 16px;
}

.voice-character-binding,
.voice-asset-form {
  display: grid;
  gap: 10px;
}

.voice-character-binding label,
.voice-asset-form label {
  display: grid;
  gap: 6px;
}

.voice-character-binding span,
.voice-asset-form span {
  color: #344054;
  font-size: 12px;
  font-weight: 600;
}

.voice-character-binding select,
.voice-asset-form input,
.voice-asset-form select,
.voice-asset-form textarea {
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  font: inherit;
  min-height: 34px;
  padding: 7px 9px;
}

.voice-asset-form [hidden] { display: none; }
.voice-form-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.voice-form-grid > * { min-width: 0; }
.voice-profile-section { border-top: 1px solid #e4e7ec; padding-top: 16px; display: grid; gap: 12px; }
.voice-profile-section h3 { margin: 0; font-size: 15px; }
.voice-form-help { color: #667085; font-size: 12px; line-height: 1.6; margin: 0; font-weight: 400; }
.voice-asset-form { gap: 16px; }
.voice-asset-form textarea { resize: vertical; line-height: 1.6; }
.voice-asset-form input, .voice-asset-form textarea, .voice-asset-form select { width: 100%; box-sizing: border-box; }
.voice-asset-form [data-voice-slot-picker] { display: grid; gap: 10px; }
.voice-asset-form [data-voice-slot-picker][hidden] { display: none; }
.voice-asset-form button, .voice-character-binding button, .voice-asset-card button, .voice-assets-actions button { border: 1px solid #d0d5dd; background: #fff; color: #344054; border-radius: 6px; padding: 8px 12px; cursor: pointer; font: inherit; font-size: 12px; }
.voice-asset-form button:hover, .voice-character-binding button:hover, .voice-asset-card button:hover { background: #f2f4f7; }
.voice-asset-form button:disabled { opacity: .6; cursor: wait; }
.voice-asset-form-actions { padding: 12px 0; }
.voice-profile-details { font-size: 12px; line-height: 1.6; }
.voice-profile-details summary { cursor: pointer; color: #344054; font-weight: 600; }
.voice-profile-details dl { margin: 8px 0 0; }
.voice-profile-details dt { color: #344054; font-weight: 600; }
.voice-profile-details dd { color: #667085; margin: 2px 0 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.voice-asset-card .voice-profile-empty { font-size: 12px; }
.voice-asset-card footer { flex-wrap: wrap; }
.voice-asset-card footer > span:first-child { overflow-wrap: anywhere; width: 100%; }
.voice-character-binding { margin-bottom: 20px; }
.voice-assets-header {
  padding: 24px;
  border: 1px solid #f0d8cb;
  border-radius: 16px;
  background: linear-gradient(120deg, #fff7f0, #fff);
  gap: 28px;
}
.voice-assets-header h3 { font-size: 24px; }
.voice-assets-header p { max-width: 420px; line-height: 1.7; font-size: 13px; }
.voice-design-primary,
.voice-character-binding .voice-design-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #d9644b;
  border-radius: 12px;
  background: #d9644b;
  color: #fff;
  min-height: 58px;
  padding: 16px 28px;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 7px 18px rgba(184, 74, 50, .2);
}
.voice-design-primary:hover,
.voice-character-binding .voice-design-primary:hover { background: #c9533a; border-color: #c9533a; }
.voice-design-primary:focus-visible { outline: 3px solid #a9422d; outline-offset: 4px; }
.voice-assets-header .voice-design-primary { display: grid; grid-template-columns: 34px 1fr; gap: 3px 14px; min-width: 292px; min-height: 88px; text-align: left; flex-shrink: 0; }
.voice-assets-header .voice-design-primary > span { grid-row: 1 / 3; font-size: 32px; font-weight: 400; }
.voice-assets-header .voice-design-primary > strong { font-size: 22px; }
.voice-assets-header .voice-design-primary > small { font-size: 12px; font-weight: 400; opacity: .94; }
.voice-catalog-section { border: 1px solid #e4e7ec; border-radius: 14px; padding: 22px; display: grid; gap: 18px; background: #fff; }
.voice-catalog-section[data-voice-catalog="custom"] { border-color: #e9ccb8; }
.voice-catalog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.voice-catalog-heading h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; margin: 0 0 6px; }
.voice-catalog-heading p { color: #667085; font-size: 12px; line-height: 1.7; margin: 0; }
.voice-catalog-count { border-radius: 20px; background: #f2f4f7; color: #475467; padding: 2px 8px; font-size: 12px; font-weight: 500; }
.voice-import-button { border: 1px solid #b9c1ce; border-radius: 7px; padding: 10px 14px; background: #fff; color: #344054; cursor: pointer; font: inherit; font-size: 13px; white-space: nowrap; }
.voice-import-button:hover { background: #f9fafb; }
.voice-catalog-sync { align-items: center; padding-bottom: 14px; border-bottom: 1px solid #f0f1f4; }
.voice-catalog-sync > span { margin-right: 4px; color: #667085; font-size: 12px; }
.voice-catalog-section[data-voice-catalog="official"] .voice-assets-grid { max-height: 620px; overflow: auto; align-content: start; padding: 2px; }
.voice-source-label { display: grid; gap: 8px; align-content: start; }
.voice-source-label strong { padding: 9px 12px; border: 1px solid #e4e7ec; border-radius: 6px; background: #f9fafb; font-size: 13px; font-weight: 500; }
.voice-assets-workbench > [data-voice-slots], .voice-slots { min-width: 0; }
.voice-slots { gap: 16px; }
.voice-slot-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) repeat(2, minmax(150px, 1.5fr)); gap: 10px; }
.voice-slot-metrics > div { display: grid; gap: 8px; padding: 14px; border: 1px solid #e4e7ec; border-radius: 10px; background: #f9fafb; }
.voice-slot-metrics span { color: #667085; font-size: 12px; line-height: 1.5; }
.voice-slot-metrics strong { color: #344054; font-size: 25px; line-height: 1.2; }
.voice-slot-metrics small { margin-left: 5px; font-size: 12px; font-weight: 400; }
.voice-slot-table-wrap { min-width: 0; overflow-x: auto; }
.voice-slot-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; line-height: 1.6; }
.voice-slot-table caption { text-align: left; padding-bottom: 10px; }
.voice-slot-table th { color: #667085; background: #f9fafb; font-weight: 500; white-space: nowrap; }
.voice-slot-table th, .voice-slot-table td { padding: 12px 10px; border-bottom: 1px solid #eaecf0; vertical-align: top; }
.voice-slot-table code { font-size: 12px; white-space: nowrap; }
.voice-slot-table td:nth-child(2) { min-width: 105px; max-width: 220px; overflow-wrap: anywhere; }
.voice-slot-table td:nth-child(3) { min-width: 90px; max-width: 250px; }
.voice-slot-table td:nth-child(5) { min-width: 128px; color: #667085; }
.voice-slot-table button { white-space: nowrap; }
.voice-slots button { border: 1px solid #d0d5dd; border-radius: 6px; padding: 8px 12px; color: #344054; background: #fff; cursor: pointer; font: inherit; font-size: 12px; }
.voice-slots button:hover { background: #f9fafb; }
.voice-slots button:disabled { opacity: .55; cursor: wait; }
.voice-slots button:focus-visible, .voice-slot-register summary:focus-visible { outline: 2px solid #a9422d; outline-offset: 3px; }
.voice-slot-status { display: inline-block; border-radius: 20px; padding: 2px 8px; background: #f2f4f7; color: #475467; white-space: nowrap; }
.voice-slot-status[data-status="empty"] { background: #eef4ff; color: #3538cd; }
.voice-slot-status[data-status="ready"] { background: #ecfdf3; color: #027a48; }
.voice-slot-status[data-status="needs_review"], .voice-slot-status[data-status="unknown"] { background: #fffaeb; color: #93370d; }
.voice-slot-status[data-status="failed"] { background: #fef3f2; color: #b42318; }
.voice-slot-status[data-status="training"] { background: #f4f3ff; color: #6938ef; }
.voice-slot-error { display: block; color: #93370d; margin-top: 6px; overflow-wrap: anywhere; }
.voice-slot-notice { margin: 0; padding: 12px; border: 1px solid #fedf89; border-radius: 8px; color: #93370d; background: #fffaeb; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.voice-slot-register { border-top: 1px solid #eaecf0; padding-top: 14px; }
.voice-slot-register summary { cursor: pointer; color: #475467; font-size: 13px; }
.voice-slot-register label { display: grid; gap: 8px; margin: 14px 0 10px; color: #667085; font-size: 12px; }
.voice-slot-register textarea { width: 100%; box-sizing: border-box; border: 1px solid #d0d5dd; border-radius: 6px; padding: 10px; font: inherit; font-size: 13px; line-height: 1.6; resize: vertical; }
.voice-slot-register .voice-assets-actions { align-items: center; }
.wb-voice-actions { align-items: center; flex-wrap: wrap; gap: 10px; }
.wb-voice-actions .voice-design-primary { min-height: 54px; margin-right: 8px; }
@media (max-width: 1100px) {
  .voice-slot-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .voice-form-grid { grid-template-columns: minmax(0, 1fr); }
  .voice-assets-header { align-items: flex-start; flex-direction: column; }
  .voice-assets-header { padding: 18px; }
  .voice-assets-header .voice-design-primary { min-width: 0; width: 100%; }
  .voice-catalog-section { padding: 16px; }
  .voice-catalog-heading { align-items: flex-start; flex-direction: column; }
  .voice-catalog-section[data-voice-catalog="official"] .voice-assets-grid { max-height: 540px; }
  .wb-voice-actions .voice-design-primary { width: 100%; margin-right: 0; }
  .voice-slot-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .voice-slot-metrics > div { padding: 12px; }
}
