body {
  font-family: "Space Grotesk", system-ui, sans-serif;
  margin: 24px auto;
  max-width: 960px;
  background: #f8fafc;
  color: #1f2937;
  line-height: 1.5;
}

body.workbench-narrow {
  max-width: 720px;
}

h1 {
  color: #0f766e;
  margin-bottom: 8px;
}

h2 {
  font-size: 18px;
  margin-top: 0;
}

h3 {
  font-size: 15px;
  margin-bottom: 8px;
}

p {
  margin-top: 0;
}

.banner {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 14px;
  color: #065f46;
}

.card {
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 16px;
}

label {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  font-weight: 600;
  gap: 4px;
  margin-bottom: 12px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  font-weight: 400;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
}

button {
  background: #0f766e;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  margin-right: 8px;
}

button.secondary,
button.secondary-btn {
  background: #fff;
  color: #0f766e;
  border: 1px solid #99f6e4;
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.hidden {
  display: none;
}

.status {
  font-size: 14px;
  margin-top: 12px;
  white-space: pre-wrap;
}

.status.error {
  color: #b91c1c;
}

.status.ok {
  color: #065f46;
}

a {
  color: #0f766e;
}

.field-hint {
  font-size: 12px;
  font-weight: 400;
  color: #6b7280;
  line-height: 1.45;
  max-width: 42rem;
}

.tutorial-steps {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.6;
}

.tutorial-steps li {
  margin-bottom: 10px;
}

.tutorial-steps li:last-child {
  margin-bottom: 0;
}

.context-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.context-item,
.profile-item {
  background: #f9fafb;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
}

.context-item strong,
.profile-item strong {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 4px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.profile-console-link {
  margin-top: 16px;
}

.sandbox-cred-panel {
  margin-top: 20px;
}

.sandbox-cred-help {
  font-size: 14px;
  color: #4b5563;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 12px;
}

.copy-action-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}

.copy-action {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f9fafb;
}

.copy-action-text {
  flex: 1 1 auto;
}

.copy-action-text strong {
  display: block;
  font-size: 14px;
  color: #0f766e;
  margin-bottom: 4px;
}

.snippet-preview {
  width: 100%;
  box-sizing: border-box;
  display: block;
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  white-space: pre;
  overflow-x: auto;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #111827;
  color: #e5e7eb;
  resize: vertical;
  min-height: 4.5rem;
}

.copy-action .field-hint {
  display: block;
  margin-top: 4px;
}

.copy-action-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.copy-action button {
  flex: 0 0 auto;
  margin-right: 0;
}

.copy-status {
  font-size: 12px;
  color: #065f46;
  min-height: 1.2em;
}

.copy-status.error {
  color: #b91c1c;
}

.workbench-back-link {
  font-size: 13px;
  margin-bottom: 12px;
}

.workbench-back-link a {
  color: #0f766e;
  text-decoration: none;
  font-weight: 600;
}

.workbench-back-link a:hover {
  text-decoration: underline;
}

.workbench-footer-note {
  margin-top: 24px;
  font-size: 12px;
  color: #6b7280;
}

.path-links a {
  color: #0f766e;
  text-decoration: none;
  font-weight: 600;
}

.path-links a:hover {
  text-decoration: underline;
}

.path-links li {
  margin-bottom: 10px;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.inspector-panel pre,
#bootstrap-output {
  margin-top: 12px;
  padding: 12px;
  background: #111827;
  color: #e5e7eb;
  border-radius: 8px;
  font-size: 12px;
  overflow-x: auto;
  white-space: pre-wrap;
  min-height: 80px;
}

.inspector-empty {
  background: #f9fafb;
  color: #374151;
  border: 1px dashed #d1d5db;
}

.related-links {
  font-size: 13px;
  line-height: 1.6;
}

.related-links ul {
  margin: 0;
  padding-left: 20px;
}

.note-box {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: #92400e;
  margin-top: 12px;
}

.api-doc-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  background: #ecfdf5;
  border-bottom: 1px solid #6ee7b7;
  font-size: 13px;
}

.api-doc-toolbar a {
  font-weight: 600;
}

.workbench-noscript-fallback {
  margin: 16px;
}

#redoc-container {
  min-height: 60vh;
}
