* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: #f8fafc;
  color: #0f172a;
}

h1 {
  font-size: 28px;
  margin: 4px 0 0;
}

h2 {
  font-size: 20px;
  margin: 0 0 16px;
}

label {
  font-weight: 600;
  font-size: 14px;
}

input,
textarea,
select {
  font: inherit;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5f5;
  background: #f8fafc;
  color: #0f172a;
}

textarea {
  resize: vertical;
}

button {
  font: inherit;
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  background: #2563eb;
  color: #ffffff;
  cursor: pointer;
  font-weight: 600;
}

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

.button-secondary {
  background: #1e293b;
}

.session-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.session-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.session-tab {
  background: #e2e8f0;
  color: #1e293b;
  border-radius: 999px;
  border: none;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.session-tab.active {
  background: #2563eb;
  color: #ffffff;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px 40px;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
  margin: 0;
}

.page-toggle {
  display: flex;
  background: #e2e8f0;
  padding: 4px;
  border-radius: 999px;
  gap: 4px;
}

.toggle-link {
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  color: #1e293b;
  font-weight: 600;
  font-size: 14px;
}

.toggle-link.active {
  background: #2563eb;
  color: #ffffff;
}

.content {
  display: block;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.card-wide {
  grid-column: 1 / -1;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status {
  font-size: 13px;
  color: #475569;
}

.hint {
  margin: 0;
  color: #64748b;
  font-size: 12px;
}

.response {
  background: #0f172a;
  color: #e2e8f0;
  padding: 16px;
  border-radius: 10px;
  min-height: 160px;
  overflow-x: auto;
  white-space: pre-wrap;
}

.terminal {
  background: #0b1220;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 280px;
}

.terminal-output {
  flex: 1;
  margin: 0;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
  color: #e2e8f0;
  white-space: pre-wrap;
  overflow-y: auto;
}

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-prompt {
  color: #38bdf8;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.terminal-input {
  flex: 1;
  background: #111827;
  border: 1px solid #334155;
  color: #e2e8f0;
}

.site-footer {
  margin-top: 28px;
  text-align: center;
  color: #64748b;
  font-size: 12px;
}

@media (max-width: 640px) {
  h1 {
    font-size: 24px;
  }

  .page-toggle {
    width: 100%;
    justify-content: center;
  }
}
