.bad-apple-ids-dialog {
  box-sizing: border-box;
  width: min(900px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: 88vh;
  overflow: auto;
  padding: 20px;
}
.bad-apple-ids-dialog h2 { font-size: 20px; letter-spacing: 0; }
.bad-apple-ids-dialog .resource-state-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bad-apple-ids-dialog textarea {
  box-sizing: border-box;
  display: block;
  width: 100%;
  margin-top: 6px;
  resize: vertical;
}
.bad-apple-ids-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; }
.bad-apple-ids-actions input { flex: 1; min-width: 100px; width: 100px; }
.bad-apple-ids-table { table-layout: fixed; width: 100%; min-width: 0; border-collapse: collapse; }
.bad-apple-ids-table-wrap { max-height: 34vh; overflow-y: auto; }
.bad-apple-ids-table thead { position: sticky; top: 0; background: #f4f6f8; }
.bad-apple-ids-table th, .bad-apple-ids-table td { white-space: normal; overflow-wrap: anywhere; vertical-align: top; padding: 10px 8px; }
.bad-apple-ids-table th:first-child { width: 42%; }
.bad-apple-ids-table th:nth-child(2) { width: 16%; }
.bad-apple-ids-table td div + div { margin-top: 4px; }
.bad-apple-ids-table td button { margin-top: 6px; }
.bad-apple-ids-pages { justify-content: flex-end; }
.bad-apple-ids-pages button { width: 36px; height: 32px; padding: 0; }
#badAppleIdsStatus { overflow-wrap: anywhere; min-height: 24px; margin: 12px 0; }
#badAppleIdsStatus.error { color: #b42318; }
.bad-apple-ids-dialog #badAppleIdsSearchForm { display: flex; padding: 0; gap: 8px; }
.bad-apple-ids-dialog .danger { color: #b42318; border-color: #d4a5a0; }
@media (max-width: 600px) {
  .bad-apple-ids-dialog { padding: 16px 10px; }
  .bad-apple-ids-table th, .bad-apple-ids-table td { padding: 8px 4px; font-size: 12px; }
  .bad-apple-ids-table th:first-child { width: 40%; }
  .bad-apple-ids-table th:nth-child(2) { width: 18%; }
}
