:root {
  color-scheme: light;
  --ink: #172027;
  --muted: #5b6670;
  --line: #d8dee4;
  --panel: #ffffff;
  --page: #f3f6f8;
  --accent: #176c5f;
  --accent-strong: #0f554a;
  --field: #fbfcfd;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* SSO banner styling */
.sso-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: #fff;
  border-bottom: 1px solid var(--line, #d8dee4);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.sso-avatar {
  width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: #ddd;
}
.sso-name { font-weight: 600; font-size: 14px; }

.shell {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.panel,
.output {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(23, 32, 39, 0.08);
}

.panel {
  padding: 24px;
}

.mast {
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
  letter-spacing: 0;
}

.lede {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--field);
  color: var(--ink);
  font: inherit;
  padding: 11px 12px;
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 132px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(23, 108, 95, 0.16);
}

button {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

button:hover {
  background: var(--accent-strong);
}

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

.output {
  min-height: 560px;
  overflow: hidden;
}

.output-head {
  min-height: 64px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
}

#status {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

pre {
  margin: 0;
  min-height: 496px;
  padding: 18px;
  overflow: auto;
  color: #20303a;
  font: 0.9rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
}

@media (max-width: 760px) {
  .shell {
    grid-template-columns: 1fr;
    padding: 24px 0;
  }

  .output {
    min-height: 360px;
  }

  pre {
    min-height: 300px;
  }
}
