* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: #17212b;
  background: #eef2f5;
  font-family: Arial, Helvetica, sans-serif;
}

.shell {
  width: min(960px, calc(100vw - 32px));
  margin: 32px auto;
}

.topbar,
.panel {
  background: #ffffff;
  border: 1px solid #d8e0e7;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 16px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

h1,
h2,
p {
  margin-top: 0;
}

.token-display {
  display: grid;
  gap: 6px;
  max-width: min(720px, calc(100vw - 72px));
  margin-top: 12px;
}

.token-display span {
  color: #51606f;
  font-size: 0.85rem;
  font-weight: 700;
}

.token-display code {
  display: block;
  overflow-wrap: anywhere;
  border: 1px solid #d8e0e7;
  border-radius: 4px;
  background: #f6f8fa;
  color: #17212b;
  padding: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.35;
}

label {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  font-weight: 700;
}

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

input,
select,
textarea {
  width: 100%;
  border: 1px solid #b9c6d1;
  border-radius: 4px;
  padding: 10px;
}

textarea,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

pre {
  min-height: 160px;
  overflow: auto;
  background: #101820;
  color: #e8f0f7;
  border-radius: 4px;
  padding: 14px;
}

button {
  border: 0;
  border-radius: 4px;
  background: #1967d2;
  color: #ffffff;
  padding: 10px 14px;
  cursor: pointer;
}

button:disabled {
  background: #8fa4ba;
  cursor: not-allowed;
}

.actions,
.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.row > label {
  flex: 1 1 220px;
}

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