/* Semantic script categories and the read-only upload handoff. */
.toolbar { flex-wrap: wrap; }
.toolbar > .filters { flex: 1 1 300px; min-width: 0; flex-wrap: wrap; }
.filters .filter-chip { min-width: 0; max-width: min(220px, 100%); }

.type-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px 18px;
  min-width: 0;
  max-width: 100%;
  margin: 0 0 20px;
  color: #6e6e73;
  font-size: 11px;
  line-height: 1.6;
}
.type-legend > span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.type-legend i { display: block; flex: 0 0 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--type-color, #8c929a); }

.card-await-admin,
.family-await-admin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #f3f4f6;
  color: #5f6168;
  font-size: 11px;
  font-weight: 500;
  line-height: 16px;
  text-align: center;
}
.card-await-admin { flex: 0 1 auto; min-height: 30px; padding: 6px 9px; }
.family-await-admin { flex: 1 1 auto; height: 36px; min-height: 36px; padding: 8px 10px; border-radius: 18px; font-size: 12px; line-height: 18px; }
.card-await-admin > svg,
.family-await-admin > svg { flex: 0 0 14px; width: 14px; height: 14px; }
.card-await-admin > span,
.family-await-admin > span { min-width: 0; overflow-wrap: anywhere; }

.form-type-note,
.form-field .form-type-note {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f5f5f7;
  color: #6e6e73;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.form-field input[readonly] { border-color: #dfe1e5; background: #f5f5f7; color: #5f6168; cursor: default; }
.form-field select { min-height: 43px; max-width: 100%; padding-right: 30px; background-color: #fff; cursor: pointer; }

@media (max-width: 480px) {
  .type-legend { gap: 8px 13px; font-size: 10px; }
  .card-await-admin { padding-inline: 8px; font-size: 10px; }
}

.script-card > .card-info,
.family-node > .card-info { box-shadow: inset 0 3px 0 var(--type-color, #8c929a); }

[data-file-export][draggable="true"] { cursor: grab; }
[data-file-export][draggable="true"]:active { cursor: grabbing; }
.current-script-file .file-drag-hint { color: #515157; font-size: 12px; }
.file-integrity { max-width: 100%; margin-top: 8px; color: #246c46; font-size: 11px; }
.file-integrity summary { cursor: pointer; }
.file-integrity code { display: block; margin-top: 7px; color: #5f6168; font-size: 10px; overflow-wrap: anywhere; }

#genre-filter.genre-filter-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  flex: 1 1 100%;
  gap: 8px 10px;
  min-width: 0;
  max-width: 100%;
  margin: 0 0 22px;
  padding: 0;
  overflow: visible;
}
.genre-filter-group .genre-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  min-height: 34px;
  padding: 8px 13px;
  border: 1px solid #dfe3e9;
  border-radius: 18px;
  background: #fff;
  color: #515157;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  white-space: normal;
}
.genre-filter-group .genre-chip:hover { border-color: #c3cdd9; background: #fafbfc; }
.genre-filter-group .genre-chip[aria-pressed="true"] { border-color: #aacced; background: #edf5ff; color: #005ab5; font-weight: 500; }
.genre-filter-group .genre-chip[aria-pressed="true"]:hover { border-color: #94bce6; background: #e5f0ff; }
.genre-filter-group .genre-chip i { display: block; flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--type-color, #8c929a); }
.genre-chip-label { min-width: 0; white-space: normal; overflow-wrap: anywhere; text-align: left; }
.genre-filter-group .genre-chip small { flex: 0 0 auto; margin-left: 2px; color: #6e6e73; font-size: 10px; font-weight: 400; line-height: 16px; }
.genre-filter-group .genre-chip[aria-pressed="true"] small { color: #356a9e; }

@media (max-width: 480px) {
  #genre-filter.genre-filter-group { gap: 7px 8px; }
  .genre-filter-group .genre-chip { gap: 5px; padding: 7px 10px; font-size: 11px; }
}
