.catalog-select[hidden] { display: none !important; }
.role-picker { min-width: 0; }
.role-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.role-chips:not(:empty) { margin-bottom: 8px; }
.role-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 5px 9px; border: 1px solid #d9e4f7; border-radius: 7px; background: #edf3ff; color: #294b80; font-size: 13px; }
.role-chip span { overflow-wrap: anywhere; }
.role-chip button { flex-shrink: 0; border: 0; background: transparent; color: inherit; font-size: 20px; line-height: 1; padding: 2px 4px; border-radius: 4px; }
.role-chip button:hover { background: #d9e4f7; }
.role-dropdown { border: 1px solid #dce3ed; border-radius: 7px; background: white; }
.role-dropdown summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; cursor: pointer; color: #40516c; font-size: 14px; list-style: none; }
.role-dropdown summary::-webkit-details-marker { display: none; }
.role-dropdown[open] { border-color: #849bc4; }
.role-dropdown[open] summary { border-bottom: 1px solid #e6ebf2; }
.role-dropdown[open] summary i { transform: rotate(180deg); }
.role-panel { padding: 10px; }
.role-search { width: 100%; padding: 9px 11px; border: 1px solid #dce3ed; border-radius: 6px; font: inherit; font-size: 14px; }
.role-options { max-height: 230px; overflow-y: auto; margin: 8px 0; overscroll-behavior: contain; }
.role-option { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-radius: 5px; cursor: default; font-size: 14px; color: #34435b; }
.role-option[hidden] { display: none; }
.role-option:hover, .role-option.is-selected { background: #edf3ff; }
.role-option input { width: 17px; height: 17px; flex-shrink: 0; accent-color: #345d9d; cursor: pointer; }
.role-empty { padding: 14px 8px; color: #6b778b; font-size: 13px; }
.role-done { display: block; margin-left: auto; border: 0; border-radius: 5px; padding: 7px 18px; background: #edf3ff; color: #294b80; font-weight: 600; }
.role-picker :focus-visible { outline: 2px solid #587eb8; outline-offset: 2px; }
.role-picker.is-disabled summary { cursor: default; background: #f1f4f8; }
.role-picker button:disabled { opacity: .5; cursor: default; }

.compose-file-control { display: flex; align-items: center; gap: 8px; min-width: 0; }
.compose-file-native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.compose-file-picker {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: 0 0 auto;
  min-height: 38px; padding: 7px 12px; border: 1px solid #c0223a; border-radius: 6px;
  background: #fff5f6; color: #b42334; font-size: 13px; font-weight: 600; cursor: pointer;
  box-shadow: 0 2px 6px rgba(192, 34, 58, .1);
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.compose-file-picker:hover { background: #c0223a; color: #fff; box-shadow: 0 5px 12px rgba(192, 34, 58, .2); transform: translateY(-1px); }
.compose-file-picker:active { transform: translateY(0); box-shadow: 0 2px 5px rgba(192, 34, 58, .16); }
.compose-file-picker i { font-size: 17px; animation: compose-upload-float 1.8s ease-in-out infinite; }
@keyframes compose-upload-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  .compose-file-picker { transition: none; }
  .compose-file-picker i { animation: none; }
}
.compose-file-control:has(.compose-file-native:disabled) .compose-file-picker { opacity: .55; cursor: default; }
.file-status {
  display: flex; align-items: center; min-width: 0; min-height: 38px; flex: 1 1 auto;
  padding: 7px 10px; border: 1px solid #e1e6ee; border-radius: 6px;
  background: #f8fafc; color: #53627a; font-size: 13px;
}
.file-status.is-empty { color: #8a96a8; }
.file-status > i { flex: 0 0 auto; margin-right: 7px; font-size: 17px; }
.compose-file-link {
  display: inline-flex; align-items: center; gap: 7px; min-width: 0; max-width: 100%;
  padding: 0; border: 0; background: transparent; color: #2458a6; font: inherit; cursor: pointer;
}
.compose-file-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compose-file-clear {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 38px; height: 38px; padding: 0; border: 1px solid #efc4ca; border-radius: 6px;
  background: #fff; color: #b42334;
}
.compose-file-clear:hover { background: #fff1f2; }
.compose-file-clear i { font-size: 18px; }
.compose-file-clear[hidden] { display: none; }
@media (max-width: 575.98px) {
  .compose-file-control { flex-wrap: wrap; }
  .file-status { order: 3; flex-basis: 100%; }
}
