:root {
  color: #f5f7fb;
  background: #0a0d12;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 85% 0%, #172338 0, transparent 32rem), #0a0d12; }
button, input, select { font: inherit; }
button { border: 0; border-radius: .65rem; padding: .75rem 1rem; background: #ff5a36; color: white; font-weight: 750; cursor: pointer; }
button:hover { background: #ff7355; }
button:disabled { cursor: wait; opacity: .55; }
button.secondary { background: #202938; color: #e8edf5; }
.action-link { display: inline-flex; align-items: center; justify-content: center; border-radius: .65rem; padding: .75rem 1rem; background: #ff5a36; color: white; font-weight: 750; text-decoration: none; }
.action-link:hover { background: #ff7355; }
.action-link.secondary { background: #202938; color: #e8edf5; }
input, select { width: 100%; border: 1px solid #303a4a; border-radius: .65rem; background: #10151d; color: #f5f7fb; padding: .75rem; }
label { display: grid; gap: .45rem; color: #c9d1de; font-size: .9rem; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(1.75rem, 4vw, 2.6rem); }
h2 { margin-bottom: .5rem; }
.shell { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: 2rem 0 4rem; }
.topbar, .section-heading, .inline-form, .secret-box > div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.api-access, .api-links { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.api-access > div > p:last-child { margin-bottom: 0; }
.api-links { flex-wrap: wrap; }
.topbar { margin-bottom: 2rem; }
.eyebrow { margin-bottom: .35rem; color: #ff7659; font-size: .7rem; font-weight: 850; letter-spacing: .14em; }
.muted { color: #929cab; line-height: 1.6; }
.panel, .metric { border: 1px solid #242d3a; border-radius: 1rem; background: rgba(17, 22, 30, .94); box-shadow: 0 1.2rem 3rem rgba(0,0,0,.22); }
.panel { margin-bottom: 1rem; padding: 1.4rem; }
.auth-panel { max-width: 780px; margin: 8vh auto; display: grid; grid-template-columns: 1.15fr 1fr; gap: 2rem; }
form { display: grid; gap: 1rem; }
.form-grid { max-width: 480px; }
.inline-form { display: flex; min-width: min(100%, 460px); }
.inline-form input { flex: 1; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1rem; }
.metric { padding: 1.2rem; }
.metric span { display: block; color: #929cab; font-size: .85rem; }
.metric strong { display: block; margin-top: .55rem; font-size: 1.7rem; }
.notice { margin-bottom: 1rem; border-radius: .75rem; padding: .9rem 1rem; background: #263348; }
.notice.error { background: #4a1f25; color: #ffd8dd; }
.secret-box { margin: 1rem 0; padding: 1rem; border: 1px solid #77592b; border-radius: .75rem; background: #302817; }
.secret-box code { display: block; overflow-wrap: anywhere; color: #ffd892; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .85rem .7rem; border-bottom: 1px solid #252e3b; text-align: left; white-space: nowrap; }
th { color: #929cab; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
td { font-size: .88rem; }
td.path { max-width: 360px; overflow: hidden; text-overflow: ellipsis; }
.status-active { color: #69d89a; }
.status-revoked, .status-error { color: #ff8999; }
.hidden { display: none !important; }
@media (max-width: 760px) {
  .auth-panel { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr; }
  .section-heading, .inline-form { align-items: stretch; flex-direction: column; }
  .api-access, .api-links { align-items: stretch; flex-direction: column; }
}
