:root {
  color-scheme: dark;
  --page: #09111f;
  --surface: #101c2e;
  --surface-2: #142238;
  --surface-3: #091727;
  --stroke: #263852;
  --stroke-light: #324761;
  --text: #eef5ff;
  --muted: #9badc2;
  --muted-dim: #7488a2;
  --okta: #78a8ff;
  --proxy: #5ee4c2;
  --danger: #ff9ca3;
  --warning: #f6ce75;
  --success: #82e3b4;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(ellipse at 7% 0%, #172b4c 0, transparent 32rem), radial-gradient(ellipse at 100% 12%, #0e3b3a 0, transparent 35rem), var(--page);
  color: var(--text);
  line-height: 1.5;
}
button, textarea, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .58; }
button:focus-visible, textarea:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--proxy);
  outline-offset: 3px;
}
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; }
pre { margin: 0; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.18; letter-spacing: -.035em; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.wrap-anywhere { overflow-wrap: anywhere; }

.page-shell { width: min(1680px, calc(100% - 64px)); margin: 0 auto; }
.masthead {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  padding: 58px 0 39px;
}
.masthead-copy { max-width: 820px; }
.eyebrow { color: #aec2dc; font-size: .7rem; font-weight: 750; letter-spacing: .145em; line-height: 1.2; text-transform: uppercase; }
.masthead .eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; color: var(--proxy); }
.signal-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--proxy); box-shadow: 0 0 0 5px #5ee4c21c, 0 0 16px #5ee4c299; }
h1 { margin-bottom: 15px; font-size: clamp(2.3rem, 4.7vw, 4.35rem); font-weight: 760; }
.masthead p { max-width: 810px; margin-bottom: 0; color: #b4c4da; font-size: 1.08rem; }
.management-link { display: inline-flex; gap: 8px; align-items: center; margin-top: 17px; color: var(--proxy); font-size: .83rem; font-weight: 720; text-decoration: none; }
.management-link:hover { color: #a4f7e3; text-decoration: underline; text-underline-offset: 4px; }
.session-note {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  width: min(330px, 100%);
  flex: none;
  padding: 16px 18px;
  border: 1px solid #445272;
  border-radius: 14px;
  background: #1e2941bd;
  box-shadow: 0 8px 30px #0000001c;
}
.session-icon { color: var(--warning); font-size: 1.35rem; line-height: 1; }
.session-note strong, .session-note div > span { display: block; }
.session-note strong { color: #fff2cf; font-size: .88rem; }
.session-note div > span { color: #c8d2e1; font-size: .81rem; }
.logout-button { margin-top: 10px; padding: 0; border: 0; background: transparent; color: var(--proxy); font-size: .77rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.logout-button:hover { color: #a4f7e3; }
.global-message {
  padding: 13px 17px;
  margin-bottom: 22px;
  border: 1px solid #52715c;
  border-radius: 11px;
  background: #143125;
  color: #c8f3d9;
  font-size: .88rem;
}
.global-message.is-error { border-color: #985b65; background: #371e2a; color: #ffd8dc; }

.environment { margin-bottom: 70px; }
.environment-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.environment-heading .muted { font-size: .79rem; }
.oauth-server-picker { display: flex; flex-wrap: wrap; align-items: end; gap: 13px 20px; margin: 0 0 18px; padding: 16px 18px; border: 1px solid var(--stroke); border-radius: 12px; background: #0d1b2d; }
.oauth-server-picker .field { flex: 0 1 340px; }
.oauth-server-picker > span { flex: 1 1 290px; padding-bottom: 4px; font-size: .77rem; }
.provider-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.environment-card, .provider-panel, .comparison-panel {
  min-width: 0;
  border: 1px solid var(--stroke);
  border-radius: 17px;
  background: linear-gradient(135deg, #142239 0%, #0e1a2b 70%);
  box-shadow: 0 16px 40px #020b171c;
}
.environment-card { padding: 21px 24px 23px; border-top-width: 3px; }
.okta-accent { border-top-color: var(--okta); }
.proxy-accent { border-top-color: var(--proxy); }
.provider-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; font-size: 1rem; font-weight: 720; }
.provider-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; font-size: .86rem; font-weight: 830; }
.okta-mark { background: #78a8ff25; color: var(--okta); }
.proxy-mark { background: #5ee4c225; color: var(--proxy); }
.meta-label { margin: 12px 0 3px; color: var(--muted-dim); font-size: .64rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.environment-card code { color: #dceaff; font-size: .81rem; }

.work-section { margin: 0 0 85px; }
.section-topline { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; }
.section-index { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #3d516d; border-radius: 9px; color: var(--proxy); font-size: .71rem; font-weight: 800; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 23px; }
h2 { margin-bottom: 8px; font-size: clamp(1.7rem, 2.7vw, 2.45rem); font-weight: 740; }
.section-heading p { max-width: 780px; margin-bottom: 0; color: var(--muted); font-size: .95rem; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 41px;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  white-space: nowrap;
  font-size: .81rem;
  font-weight: 750;
  transition: background .15s, transform .15s, border-color .15s;
}
.button:not(:disabled):hover { transform: translateY(-1px); }
.button-primary { background: var(--proxy); color: #082021; }
.button-primary:not(:disabled):hover { background: #8df2d8; }
.button-secondary { background: #1c2c44; border-color: #3b506e; color: #dceaff; }
.button-secondary:not(:disabled):hover { background: #263a55; border-color: #5d789d; }
.resource-tabs, .comparison-toolbar { display: flex; flex-wrap: wrap; gap: 7px; }
.resource-tabs { margin-bottom: 17px; padding: 5px; width: fit-content; max-width: 100%; border: 1px solid var(--stroke); border-radius: 12px; background: #0d1829; }
.resource-tab, .comparison-tab { border: 1px solid transparent; border-radius: 8px; background: transparent; color: #a8bbd2; font-size: .82rem; font-weight: 680; }
.resource-tab { min-height: 36px; padding: 7px 15px; }
.resource-tab:hover, .comparison-tab:hover { color: var(--text); background: #223550; }
.resource-tab.is-active, .comparison-tab.is-active { border-color: #435a76; background: #263b56; color: #fff; }

.response-grid { align-items: start; }
.provider-panel { overflow: hidden; border-top-width: 3px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 21px 22px 17px; }
.panel-head h3 { margin: 5px 0 0; font-size: 1.28rem; }
.panel-head .eyebrow { color: var(--muted-dim); }
.request-line, .callback-line { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 12px 22px; border-top: 1px solid var(--stroke); border-bottom: 1px solid var(--stroke); background: #0d1b2d; }
.request-line code, .callback-line code { color: #d1e3fa; font-size: .73rem; line-height: 1.5; }
.method { flex: none; padding: 2px 6px; border-radius: 4px; background: #234b43; color: #9affd4; font-family: ui-monospace, monospace; font-size: .65rem; font-weight: 800; }
.response-state { min-height: 37px; padding: 10px 22px 0; font-size: .78rem; }
.response-state.is-error { color: var(--danger); }
.response-state.is-loading { color: var(--warning); }
.response-content { padding: 15px 22px 22px; }
.response-caption { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; font-size: .85rem; font-weight: 720; }
.status-badge { padding: 3px 9px; border-radius: 6px; font-family: ui-monospace, monospace; font-size: .73rem; font-weight: 750; }
.status-badge.neutral { background: #263750; color: #a9bfd9; }
.status-badge.success { background: #1b4639; color: #a4f2cb; }
.status-badge.failure { background: #572a36; color: #ffbcc3; }
.headers-detail { margin-bottom: 13px; }
.headers-detail summary { width: fit-content; color: #b6cce3; font-size: .77rem; font-weight: 680; }
.headers-detail .code-block { margin-top: 9px; }
.raw-detail { margin: 12px 0 0; }
.code-label { margin: 16px 0 7px; color: #9badc2; font-size: .67rem; font-weight: 780; letter-spacing: .09em; text-transform: uppercase; }
.code-block {
  max-width: 100%;
  padding: 14px 15px;
  border: 1px solid #263c56;
  border-radius: 9px;
  background: #081523;
  color: #d4e5f8;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: .73rem;
  line-height: 1.58;
  tab-size: 2;
}
.body-block { min-height: 240px; max-height: 510px; }
.token-body { min-height: 180px; max-height: 400px; }
.claims-block { min-height: 74px; max-height: 330px; }

.comparison-panel { margin-top: 17px; padding: 22px; }
.refresh-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 35px 0 17px; }
.refresh-heading h3 { margin: 7px 0 8px; font-size: 1.45rem; }
.refresh-heading p { max-width: 780px; margin-bottom: 0; color: var(--muted); font-size: .84rem; }
.comparison-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; }
.comparison-head h3 { margin: 6px 0 0; font-size: 1.15rem; }
.comparison-counts { color: #a9c2df; font-size: .75rem; text-align: right; }
.comparison-hint { margin: 11px 0 16px; color: var(--muted); font-size: .78rem; }
.comparison-content { min-height: 44px; font-size: .84rem; }
.comparison-toolbar { margin: 18px 0 2px; }
.comparison-tab { padding: 7px 11px; font-size: .75rem; }
.comparison-table-wrap { max-height: 520px; overflow: auto; border: 1px solid var(--stroke); border-radius: 9px; }
.comparison-table { width: 100%; border-collapse: collapse; font-size: .73rem; }
.comparison-table th { position: sticky; top: 0; z-index: 1; background: #1b2b42; color: #a8bfdb; font-size: .66rem; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.comparison-table th, .comparison-table td { padding: 9px 11px; border-bottom: 1px solid #263951; vertical-align: top; }
.comparison-table tr:last-child td { border-bottom: 0; }
.comparison-table tbody tr:nth-child(2n) { background: #13223996; }
.comparison-table td:first-child { width: 22%; color: #d5e4f6; font-family: ui-monospace, monospace; overflow-wrap: anywhere; }
.comparison-table td:nth-child(2), .comparison-table td:nth-child(3) { width: 31%; color: #bdcee1; font-family: ui-monospace, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.comparison-table td:last-child { width: 16%; min-width: 100px; }
.diff-label { display: inline-block; padding: 3px 7px; border-radius: 5px; font-size: .66rem; font-weight: 750; white-space: nowrap; }
.diff-label.match { background: #214b3c; color: #a5f2cc; }
.diff-label.expected { background: #233f62; color: #b2d4ff; }
.diff-label.different { background: #604824; color: #ffe0a3; }
.diff-label.missing { background: #4e3447; color: #f1bdd6; }

.request-options { display: grid; grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr) minmax(140px, .6fr); gap: 15px; margin: 18px 0 13px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; color: #cad9eb; font-size: .76rem; font-weight: 730; }
.field small { color: var(--muted-dim); font-size: .71rem; font-weight: 550; }
.field-profile { grid-column: 1 / -1; }
.field textarea, .field input, .field select { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid #3a506d; border-radius: 9px; background: #0c1a2b; color: #eef6ff; font-size: .8rem; font-weight: 500; }
.proxy-authenticator-option { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 18px; padding: 14px 22px; border-top: 1px solid var(--stroke); background: #0d1b2d; }
.proxy-authenticator-option .field { flex: 0 1 240px; }
.proxy-authenticator-option > span { flex: 1 1 180px; padding-bottom: 4px; font-size: .75rem; }
#managed-auth-client { display: flex; flex: 1 1 100%; flex-wrap: wrap; align-items: end; gap: 12px 18px; }
#managed-auth-client .field { flex: 0 1 340px; }
#managed-auth-client > span { flex: 1 1 240px; padding-bottom: 4px; font-size: .75rem; }
#managed-service-client { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
#managed-service-client > span { grid-column: 1 / -1; font-size: .75rem; }
.proxy-email-options { display: flex; flex: 1 1 100%; flex-wrap: wrap; align-items: end; gap: 12px 18px; }
.proxy-email-options .field { flex: 1 1 220px; }
.proxy-email-options > span { flex: 1 1 100%; font-size: .75rem; }
.field textarea { min-height: 46px; height: 46px; resize: vertical; line-height: 1.45; }
.field textarea::placeholder, .field input::placeholder { color: #7187a1; }
.tex-subject-field { grid-column: span 2; }
.tex-stage + .tex-stage { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--stroke-light); }
.policy-summary { margin: 0 0 15px; padding: 12px 14px; border: 1px solid var(--stroke); border-radius: 9px; background: #0d1b2d; }
.policy-summary .eyebrow { display: block; margin-bottom: 5px; color: var(--muted-dim); }
.policy-summary p { margin: 0; color: #c7d8e8; font-size: .79rem; }
.flow-note { display: flex; gap: 11px; align-items: center; margin-bottom: 17px; padding: 11px 14px; border: 1px solid #375e5d; border-radius: 9px; background: #112d32; color: #c2e7e3; font-size: .79rem; }
.flow-note-icon { color: var(--proxy); font-size: 1.12rem; }
.callback-line { gap: 12px; }
.callback-line > span { color: var(--muted-dim); font-size: .69rem; font-weight: 750; text-transform: uppercase; letter-spacing: .1em; }
.decoded-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--stroke); font-size: .92rem; font-weight: 750; }
.decoded-heading span { color: var(--muted-dim); font-size: .67rem; font-weight: 520; }

footer { padding: 24px 0 48px; border-top: 1px solid var(--stroke); color: #768ba4; font-size: .73rem; }
footer span { padding: 0 8px; }

.login-page { min-height: 100vh; display: grid; place-items: center; }
.login-shell { width: min(470px, calc(100% - 32px)); padding: 36px 0; }
.login-shell > .eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 19px; color: var(--proxy); }
.login-card { padding: 30px; border: 1px solid var(--stroke-light); border-top: 3px solid var(--proxy); border-radius: 17px; background: linear-gradient(135deg, #142239, #0e1a2b); box-shadow: 0 22px 60px #020b1740; }
.login-card .section-index { margin-bottom: 22px; }
.login-card h1 { margin-bottom: 11px; font-size: 2.15rem; }
.login-card p { margin-bottom: 22px; color: var(--muted); font-size: .91rem; }
.login-card .global-message { margin-bottom: 18px; }
.login-card form { display: grid; gap: 20px; }
.login-card form .button { width: 100%; }
.login-footnote { margin: 18px 3px 0; color: var(--muted-dim); font-size: .74rem; text-align: center; }

@media (max-width: 1050px) {
  .page-shell { width: min(100% - 36px, 1680px); }
  .masthead { align-items: flex-start; }
  .session-note { width: 250px; }
  .request-options { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .field-scope { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .page-shell { width: min(100% - 28px, 1680px); }
  .masthead { display: block; padding-top: 35px; }
  .session-note { width: 100%; margin-top: 23px; }
  .provider-grid { grid-template-columns: 1fr; }
  .environment { margin-bottom: 57px; }
  .section-heading { align-items: stretch; flex-direction: column; gap: 16px; }
  .section-heading > .button { align-self: flex-start; }
  .comparison-head { align-items: flex-start; flex-direction: column; gap: 7px; }
  .refresh-heading { align-items: flex-start; flex-direction: column; }
  .comparison-counts { text-align: left; }
  .comparison-table { min-width: 610px; }
  .work-section { margin-bottom: 65px; }
}
@media (max-width: 520px) {
  .request-options { grid-template-columns: 1fr; }
  .field-scope, .field-profile { grid-column: auto; }
  .tex-subject-field { grid-column: auto; }
  #managed-service-client { grid-template-columns: 1fr; }
  .resource-tabs { width: 100%; }
  .resource-tab { flex: 1 1 125px; }
  .panel-head { align-items: flex-start; flex-direction: column; }
  .panel-head .button { width: 100%; }
  .environment-card, .comparison-panel { padding: 18px; }
  .response-content { padding: 14px 18px 18px; }
  .request-line, .callback-line, .response-state { padding-left: 18px; padding-right: 18px; }
  .decoded-heading { display: block; }
  .decoded-heading span { display: block; margin-top: 3px; }
}
