* {
  box-sizing: border-box;
}
:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17213b;
  background: #f5f7fc;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #17213b;
  --muted: #68738d;
  --line: #e5e9f2;
  --indigo: #4f5bd5;
  --pale: #e9ecff;
}
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: #f5f7fc;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
.shell {
  width: min(100% - 40px, 1060px);
  margin: 0 auto;
}
.topbar {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(37, 50, 89, 0.08);
}
.brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  color: white;
  font-size: 15px;
  background: linear-gradient(145deg, #6674eb, #454fbf);
  box-shadow: 0 5px 12px #5461d43b;
}
.brand-light {
  color: #8992a7;
  font-weight: 500;
}
.top-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6b7690;
  font-size: 12px;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7d8bea;
  box-shadow: 0 0 0 4px #e7eaff;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 360px;
  align-items: center;
  min-height: 315px;
  padding: 38px 0 28px;
}
.eyebrow {
  margin: 0 0 14px;
  color: #6975c9;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.16em;
}
h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.16;
  letter-spacing: -0.055em;
}
h1 span {
  color: #6570d4;
}
.intro {
  max-width: 510px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}
.hero-art {
  position: relative;
  display: grid;
  width: 248px;
  height: 220px;
  margin: auto;
  place-items: center;
}
.orbit {
  position: absolute;
  border: 1px solid #dfe3f8;
  border-radius: 50%;
  transform: rotate(-25deg);
}
.orbit-one {
  width: 235px;
  height: 128px;
}
.orbit-two {
  width: 180px;
  height: 205px;
  transform: rotate(45deg);
}
.core-mark {
  z-index: 1;
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border: 1px solid #e4e7fb;
  border-radius: 28px;
  color: white;
  font-size: 40px;
  font-weight: 650;
  background: linear-gradient(145deg, #6b78e7, #4a54c3);
  box-shadow: 0 18px 40px #5965d53d;
  transform: rotate(-7deg);
}
.core-mark span {
  position: absolute;
  right: 13px;
  bottom: 13px;
  font-size: 13px;
  color: #dfe2ff;
}
.node {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 3px solid #f5f7fc;
  border-radius: 50%;
  background: #8490ea;
  box-shadow: 0 0 0 1px #d5daf7;
}
.node-one {
  top: 30px;
  right: 54px;
}
.node-two {
  bottom: 23px;
  left: 43px;
  width: 9px;
  height: 9px;
  background: #abb3f0;
}
.node-three {
  top: 97px;
  left: 5px;
  width: 7px;
  height: 7px;
  background: #abb3f0;
}
.panel {
  width: min(100%, 780px);
  min-height: 315px;
  margin: 0 auto;
  padding: 30px 34px;
  border: 1px solid #e7eaf3;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 50px #2e3a6a0b;
}
.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.panel-heading .eyebrow {
  margin-bottom: 7px;
  font-size: 9px;
}
h2 {
  margin: 0;
  color: var(--ink);
  font-size: 23px;
  letter-spacing: -0.04em;
}
.text-button {
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  color: #5360ca;
  background: transparent;
  font-size: 13px;
  font-weight: 650;
}
.text-button:hover {
  color: #313eaa;
}
form {
  display: grid;
  grid-template-columns: 1fr;
}
label {
  margin: 0 0 8px;
  color: #3e4964;
  font-size: 12px;
  font-weight: 650;
}
input {
  width: 100%;
  height: 46px;
  margin-bottom: 17px;
  padding: 0 13px;
  border: 1px solid #dfe4ef;
  border-radius: 9px;
  outline: none;
  color: var(--ink);
  background: #fcfdff;
  font-size: 16px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
input::placeholder {
  color: var(--muted);
}
input:focus-visible {
  border-color: #7480e1;
  box-shadow: 0 0 0 3px #6874dc24;
}
input[readonly] {
  color: #68738d;
  background: #f5f6fb;
}
.primary-button {
  min-height: 47px;
  margin-top: 2px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: #535fd0;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 7px 14px #515dce2a;
}
.primary-button:hover {
  background: #444fbd;
}
.primary-button:disabled,
.secondary-button:disabled {
  cursor: wait;
  opacity: 0.65;
}
.form-message {
  min-height: 18px;
  margin: -4px 0 8px;
  color: #bd4658;
  font-size: 12px;
  line-height: 1.6;
}
.form-message:empty {
  display: none;
}
.auth-links {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}
.pending-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.pending-actions .form-message {
  flex-basis: 100%;
  margin: 0;
  color: #5360a3;
}
.fine-print {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.workspace-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 2px;
}
.account-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 17px;
  border: 1px solid #e9ebf6;
  border-radius: 12px;
  background: #fafbff;
}
.avatar {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: #6874dc;
  font-weight: 700;
}
.account-card div {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.account-card strong {
  overflow: hidden;
  color: #29344f;
  font-size: 14px;
  text-overflow: ellipsis;
}
.small-label {
  color: var(--muted);
  font-size: 10px;
}
.setup-list {
  margin-top: 16px;
}
.setup-row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  border-bottom: 1px solid #edf0f5;
}
.setup-row:last-child {
  border-bottom: 0;
}
.step-number {
  color: #929bc4;
  font-size: 11px;
  font-weight: 700;
}
.setup-row strong {
  color: #35405b;
  font-size: 13px;
}
.setup-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.secondary-button {
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid #dce1f4;
  border-radius: 8px;
  color: #505dc6;
  background: #f9faff;
  font-size: 12px;
  font-weight: 650;
}
.secondary-button:hover {
  border-color: #bac2ef;
  background: #f1f3ff;
}
.status-label {
  color: #5964bc;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}
.service-row .step-number {
  font-size: 14px;
}
.service-row {
  border-top: 1px solid #edf0f5;
}
.workspace-message {
  min-height: 18px;
  margin: 8px 0 0;
  color: #68738d;
  font-size: 12px;
}
footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
  width: min(100%, 780px);
  margin: 22px auto 0;
  padding: 0 2px 28px;
  color: var(--muted);
  font-size: 10px;
}
.account-section {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid #edf0f5;
}
.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.section-heading h3,
.api-guide h3 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  letter-spacing: -0.02em;
}
.section-heading p,
.api-guide p,
.helper-note {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}
.record-list {
  display: grid;
  gap: 8px;
}
.record-list:empty {
  display: none;
}
.record-list > p {
  margin: 6px 0;
  color: var(--muted);
  font-size: 12px;
}
.record-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e9ebf6;
  border-radius: 10px;
  background: #fcfcff;
  min-width: 0;
}
.record-row > div {
  min-width: 0;
}
.record-row strong {
  color: #35405b;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.record-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
#codex-authorize {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  font-size: 12px;
  text-decoration: none;
}
.section-heading button {
  flex-shrink: 0;
  white-space: nowrap;
}
.inline-form {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 8px 12px;
  margin-top: 16px;
}
.inline-form label {
  grid-column: 1 / -1;
  margin: 0;
}
.inline-form input {
  margin: 0;
}
.helper-note {
  margin-top: 9px;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 7px 10px;
  border-bottom: 1px solid #edf0f5;
  color: #35405b;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.check-row input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--indigo);
}
.check-row span {
  min-width: 0;
  flex: 1;
}
.check-row small {
  color: var(--muted);
  white-space: nowrap;
}
.key-form {
  display: grid;
  gap: 8px;
}
.key-form input:not([type="checkbox"]) {
  margin: 0 0 8px;
}
.key-form .primary-button {
  margin-top: 8px;
}
.secret-card {
  display: grid;
  gap: 12px;
  margin: 16px 0;
  padding: 16px;
  border: 1px solid #cdd3ff;
  border-radius: 12px;
  background: #f6f7ff;
}
.secret-card strong {
  color: #3846a7;
  font-size: 13px;
}
.secret-card code {
  padding: 12px;
  border-radius: 8px;
  background: white;
  color: #263153;
  overflow-wrap: anywhere;
  user-select: all;
}
.secret-card .secondary-button {
  justify-self: start;
  margin-right: 6px;
}
.api-guide pre {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 14px;
  border: 1px solid #e5e9f2;
  border-radius: 9px;
  color: #303b59;
  background: #f8f9fd;
  font-size: 11px;
  line-height: 1.7;
}
.api-guide code {
  overflow-wrap: anywhere;
}
footer span:first-child {
  white-space: nowrap;
  letter-spacing: 0.12em;
  font-weight: 700;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid #5262d3;
  outline-offset: 3px;
}
@media (max-width: 700px) {
  .shell {
    width: calc(100% - 32px);
  }
  .topbar {
    height: 66px;
  }
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 38px 0 22px;
  }
  .hero-art {
    width: 190px;
    height: 150px;
    margin: 22px auto 0;
    transform: scale(0.8);
  }
  .intro {
    margin-top: 14px;
  }
  .panel {
    padding: 24px 20px;
    border-radius: 16px;
  }
  .inline-form {
    grid-template-columns: 1fr;
  }
  .setup-row {
    grid-template-columns: 25px 1fr;
    gap: 8px 12px;
    padding: 13px 0;
  }
  .setup-row .secondary-button,
  .setup-row .status-label {
    grid-column: 2;
    justify-self: start;
  }
  .panel-heading {
    flex-direction: column;
    gap: 8px;
  }
  .panel-heading > .text-button,
  .workspace-actions {
    align-self: flex-end;
  }
  .workspace-actions {
    flex-direction: row;
    gap: 2px;
  }
  footer {
    padding-bottom: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
