.beta-admin-page__inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: min(1180px, calc(100vw - 48px));
  margin: 0 auto;
  height: 100%;
  min-height: 0;
  padding: 24px;
  overflow: hidden;
}

.beta-admin-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.beta-admin-toolbar span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}

.beta-admin-toolbar h1 {
  margin: 4px 0;
  color: var(--text-primary);
  font-size: 22px;
}

.beta-admin-toolbar p {
  max-width: 620px;
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
}

.beta-admin-toolbar button,
.beta-admin-status-tabs button,
.beta-admin-actions button,
.beta-admin-access button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--surface-elevated);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.beta-admin-toolbar button {
  min-height: 36px;
  padding: 0 14px;
}

.beta-admin-toolbar button:disabled,
.beta-admin-actions button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.beta-admin-status-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.beta-admin-status-tabs button {
  min-height: 34px;
  padding: 0 14px;
  color: var(--text-muted);
}

.beta-admin-status-tabs button.is-active {
  border-color: rgba(var(--accent-rgb), 0.45);
  background: rgba(var(--accent-rgb), 0.14);
  color: var(--accent);
}

.beta-admin-error {
  margin: 0;
  color: var(--error, #ef4444);
  font-size: 13px;
  font-weight: 700;
}

.beta-admin-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 16px;
  flex: 1;
  min-height: 0;
  align-items: start;
}

.beta-admin-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 100%;
  overflow: auto;
  padding-right: 4px;
}

.beta-admin-list__item {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 13px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--surface-card);
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
}

.beta-admin-list__item.is-active {
  border-color: rgba(var(--accent-rgb), 0.52);
  background: rgba(var(--accent-rgb), 0.1);
}

.beta-admin-list__item strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.beta-admin-list__item small {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.beta-admin-list__empty,
.beta-admin-detail--empty {
  display: grid;
  min-height: 180px;
  place-items: center;
  border: 1px dashed var(--border-subtle);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 13px;
}

.beta-admin-status {
  width: fit-content;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.beta-admin-status--pending {
  background: rgba(245, 158, 11, 0.16);
  color: #f59e0b;
}

.beta-admin-status--approved {
  background: rgba(16, 185, 129, 0.16);
  color: #10b981;
}

.beta-admin-status--rejected {
  background: rgba(239, 68, 68, 0.16);
  color: #ef4444;
}

.beta-admin-detail {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  max-height: 100%;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.beta-admin-detail__header,
.beta-admin-form-card,
.beta-admin-review-box {
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--surface-card);
}

.beta-admin-detail__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
}

.beta-admin-detail__header span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}

.beta-admin-detail__header h2 {
  margin: 5px 0 8px;
  color: var(--text-primary);
  font-size: 20px;
}

.beta-admin-detail__header p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.beta-admin-code {
  flex-shrink: 0;
  padding: 8px 10px;
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  border-radius: 8px;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
  font-size: 13px;
}

.beta-admin-form-card {
  padding: 16px;
}

.beta-admin-form-card h3 {
  margin: 0 0 12px;
  color: var(--text-primary);
  font-size: 15px;
}

.beta-admin-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.beta-admin-field {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  background: var(--surface-elevated);
}

.beta-admin-field--wide {
  grid-column: 1 / -1;
}

.beta-admin-field span {
  display: block;
  margin-bottom: 4px;
  color: var(--text-muted);
  font-size: 12px;
}

.beta-admin-field strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.beta-admin-statement {
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  background: var(--surface-elevated);
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
}

.beta-admin-review-box {
  padding: 16px;
}

.beta-admin-review-box label {
  display: grid;
  gap: 8px;
}

.beta-admin-review-box label span {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 850;
}

.beta-admin-review-box textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--surface-elevated);
  color: var(--text-primary);
  font: inherit;
  font-size: 13px;
  line-height: 1.7;
  outline: none;
  padding: 10px;
}

.beta-admin-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.beta-admin-actions button {
  min-height: 38px;
  padding: 0 16px;
}

.beta-admin-actions button:first-child {
  border-color: rgba(239, 68, 68, 0.35);
  color: #ef4444;
}

.beta-admin-actions button:last-child {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.14);
  color: #10b981;
}

.beta-admin-access {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 420px;
  color: var(--text-muted);
  text-align: center;
}

.beta-admin-access svg {
  color: var(--accent);
  font-size: 28px;
}

.beta-admin-access h1 {
  margin: 0;
  color: var(--text-primary);
  font-size: 20px;
}

.beta-admin-access p {
  margin: 0;
  font-size: 13px;
}

.beta-admin-access button {
  min-height: 38px;
  padding: 0 18px;
  border-color: rgba(var(--accent-rgb), 0.38);
  background: rgba(var(--accent-rgb), 0.14);
  color: var(--accent);
}

@media (max-width: 900px) {
  .beta-admin-page__inner {
    width: min(100%, calc(100vw - 24px));
    padding: 16px 12px;
    overflow: auto;
  }

  .beta-admin-toolbar,
  .beta-admin-detail__header {
    flex-direction: column;
  }

  .beta-admin-layout {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .beta-admin-list {
    max-height: none;
  }

  .beta-admin-detail {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}

@media (max-width: 640px) {
  .beta-admin-field-grid {
    grid-template-columns: 1fr;
  }

  .beta-admin-actions {
    flex-direction: column;
  }
}
