/* Developers screen (public/developers.js): API keys, webhooks, usage. */

.dev-keys-table { margin: 0.5rem 0 1.5rem; }
.dev-key-cell { font-family: monospace; font-size: 0.85rem; }
.dev-actions { text-align: right; white-space: nowrap; }

.dev-key-create { margin: 1.5rem 0; }
.dev-key-create h2 { margin-top: 0; }
.dev-key-create input[type="text"],
.dev-key-create input[type="email"] {
  width: 100%; font: inherit; min-height: 48px; padding: 10px 14px;
  border: 1.5px solid #9d94ad; border-radius: 10px; background: #fff; color: var(--ink);
}
.dev-key-create input[type="text"]:focus-visible,
.dev-key-create input[type="email"]:focus-visible { border-color: var(--brand); }

#dev-key-authority {
  margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid #ddd;
}
#dev-key-authority legend { font-weight: 600; margin-bottom: 0.75rem; }
#dev-key-authority ul { margin: 0.75rem 0 1.5rem; padding-left: 1.5rem; }
#dev-key-authority li { margin-bottom: 0.5rem; }

.dev-webhook-url { display: block; overflow-wrap: anywhere; font-size: 0.85rem; }
.dev-webhooks-table { margin: 0.5rem 0 1.5rem; }
.dev-webhook-actions { text-align: right; }
.dev-webhook-actions .btn { margin: 0 0 0.25rem 0.25rem; }
.dev-webhooks-table { width: 100%; }
.dev-mode-note { margin: 0.5rem 0 1rem 2rem; }
.dev-event-list { margin-left: 2rem; }
#dev-key-authority[hidden] { display: none; }

.dev-webhook-create { margin: 1.5rem 0; }
.dev-webhook-create h2 { margin-top: 0; }
.dev-webhook-create input[type="url"],
.dev-webhook-create input[type="text"] {
  width: 100%; font: inherit; min-height: 48px; padding: 10px 14px;
  border: 1.5px solid #9d94ad; border-radius: 10px; background: #fff; color: var(--ink);
}
.dev-webhook-create input[type="url"]:focus-visible,
.dev-webhook-create input[type="text"]:focus-visible { border-color: var(--brand); }

.dev-webhook-create [name="dev-webhook-events-all"] { margin-right: 0.5rem; }
.dev-webhook-create [name="dev-webhook-events"] { margin-right: 0.5rem; }

.dev-deliveries-table { margin: 1rem 0; }
.dev-deliveries-table { font-size: 0.9rem; }

/* Secret modal */
.dev-secret-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5); display: flex; align-items: center; justify-content: center;
  z-index: 1000;
}

.dev-secret-modal {
  background: white; border-radius: 12px; padding: 2rem; max-width: 500px; width: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.dev-secret-modal h2 { margin-top: 0; margin-bottom: 0.5rem; }
.dev-secret-modal > p { margin: 0.5rem 0; }
.dev-secret { margin: 1.5rem 0; }
.dev-secret code {
  display: block; background: #f5f5f5; padding: 12px; border-radius: 8px; overflow-wrap: break-word;
  word-break: break-all; font-family: monospace; font-size: 0.85rem; line-height: 1.4;
}

/* Responsive: phones */
@media (max-width: 640px) {
  .dev-actions { text-align: left; white-space: normal; }
  .dev-webhook-actions { text-align: left; white-space: normal; }
  .dev-secret-modal { padding: 1.5rem; width: 95%; }
}

/* API package chooser and package card (billing.css supplies .plan-grid, .plan-card, .usage-row, .meter) */
.dev-package-name { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.dev-package-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.dev-chooser { margin: 1.5rem 0; }
.api-plan-card .plan-list { margin-bottom: 0; }
.api-plan-card .plan-list li { overflow-wrap: anywhere; }
.api-plan-card .plan-cta .badge { display: inline-block; }
.plan-api { margin-top: 2.5rem; }
.api-plan-grid { max-width: none; }

@media (max-width: 640px) {
  .dev-package-actions .btn { width: 100%; justify-content: center; }
}
