* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f5f6f8;
  color: #1d2733;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  background: #1b6ef3;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  padding: 0 16px;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

button.secondary {
  border: 1px solid #c7d0dc;
  background: #fff;
  color: #1d2733;
}

button.danger {
  background: #dc2626;
}

label {
  display: grid;
  gap: 7px;
  color: #4d5b6c;
  font-size: 14px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #c7d0dc;
  border-radius: 6px;
  background: #fff;
  color: #1d2733;
  padding: 11px 12px;
}

select {
  min-height: 44px;
}

textarea {
  min-height: 180px;
  resize: vertical;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.5;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(30px, 5vw, 48px);
  letter-spacing: 0;
}

h2 {
  font-size: 20px;
  letter-spacing: 0;
}

.app-shell {
  min-height: 100vh;
  padding: 32px;
}

.auth-view,
.blocked-view {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
}

.panel {
  width: min(100%, 460px);
  border: 1px solid #dde3ea;
  border-radius: 8px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 18px 45px rgba(29, 39, 51, 0.08);
}

.stack {
  display: grid;
  gap: 16px;
}

.eyebrow {
  color: #1b6ef3;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.muted {
  color: #647386;
  line-height: 1.5;
}

.api-target {
  color: #4d5b6c;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  margin-top: 8px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto 24px;
  max-width: 1120px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 0 auto;
  max-width: 1120px;
}

.grid .panel {
  width: 100%;
}

.endpoint-group {
  display: grid;
  gap: 16px;
  width: 100%;
  margin: 0 auto 20px;
  max-width: 1120px;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  background: #eef3f8;
  padding: 20px;
}

.group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.group-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
  align-items: stretch;
  gap: 20px;
}

.group-grid .panel {
  flex: 0 0 calc((100% - 60px) / 2);
  max-width: calc((100% - 60px) / 2);
  min-width: 0;
  width: auto;
  box-shadow: none;
}

.response {
  min-height: 96px;
  overflow: auto;
  border-radius: 6px;
  background: #111827;
  color: #d1fae5;
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
  padding: 12px;
  white-space: pre-wrap;
}

.status {
  position: fixed;
  right: 16px;
  bottom: 16px;
  max-width: min(420px, calc(100vw - 32px));
  border: 1px solid #dde3ea;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(29, 39, 51, 0.12);
  color: #4d5b6c;
  padding: 10px 12px;
}

.hidden {
  display: none;
}

@media (max-width: 1120px) {
  .group-grid .panel {
    flex-basis: calc((100% - 20px) / 2);
    max-width: calc((100% - 20px) / 2);
  }
}

@media (max-width: 760px) {
  .app-shell {
    padding: 20px;
  }

  .auth-view,
  .blocked-view {
    min-height: calc(100vh - 40px);
  }

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

  .grid {
    grid-template-columns: 1fr;
  }

  .group-grid {
    flex-direction: column;
  }

  .group-grid .panel {
    flex-basis: 100%;
    max-width: 100%;
  }
}
