.forms {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.addForm {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: var(--space-3);
}

.keywordInput {
  flex: 0 1 320px;
}

.ipInput {
  flex: 0 1 220px;
}

.userInput {
  flex: 0 1 280px;
}

.tableGroup {
  display: grid;
  min-width: 0;
  gap: var(--space-3);
}

.tableGroup + .tableGroup {
  margin-top: var(--space-5);
}

.tableTitle {
  margin: 0;
  color: var(--text-primary);
  font-size: var(--admin-font-size-lg);
  font-weight: 700;
}

.keywordCell {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.keyword {
  overflow: hidden;
  color: var(--text-primary);
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meta {
  color: var(--text-tertiary);
  font-size: var(--admin-font-size);
}

.whitelistDialogPaper {
  max-height: min(720px, calc(100dvh - 48px));
  overflow: hidden;
}

.whitelistDialogTitle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 750;
}

.whitelistDialogTitle small {
  color: var(--text-tertiary);
  font-size: var(--admin-font-size);
  font-weight: 650;
}

.whitelistDialogContent {
  display: flex;
  min-height: 320px;
  padding: 0 !important;
}

.whitelistDialogContent :global(.table-frame) {
  flex: 1;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.whitelistDialogContent :global(.table-scroll) {
  overflow: auto;
}

.whitelistDialogActions {
  border-top: 1px solid var(--border);
}

@media (max-width: 760px) {
  .forms {
    align-items: stretch;
    flex-direction: column;
  }

  .addForm {
    align-items: stretch;
    flex-direction: column;
  }

  .keywordInput,
  .ipInput,
  .userInput {
    flex: 1 1 auto;
    width: 100%;
  }
}
