body {
  background: #f6f8fb;
}

.portal-shell {
  color: var(--cf-color-text);
}

.portal-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #eef8fd;
  color: #148ddf;
  font-size: 15px;
  font-weight: 900;
}

.portal-wordmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: auto;
  height: auto;
  padding: 0;
  margin-left: 0;
  background: none;
}

.portal-wordmark img {
  display: block;
  width: 88px;
  height: auto;
}

.cf-topbar__icon-link svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.cf-topbar__link--primary {
  min-width: 156px;
  justify-content: center;
  border-radius: 999px;
  padding: 0 22px;
  background: linear-gradient(135deg, #13b7de 0%, #5d8cff 100%);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(39, 128, 255, 0.2);
}

.cf-topbar__link--primary:hover,
.cf-topbar__link--primary:focus,
.cf-topbar__link--primary.is-active {
  color: #ffffff;
}

.cf-topbar__icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 42px;
  color: #006dff;
}

.cf-topbar__icon-link:hover,
.cf-topbar__icon-link:focus {
  color: #075382;
}

.cf-topbar__icon-link svg {
  width: 18px;
  height: 18px;
}

.cf-topbar--hidden {
  display: none;
}

.portal-auth-page .cf-page {
  max-width: none;
  padding: 0;
}

.portal-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.portal-hero,
.portal-login,
.portal-grid,
.portal-main-stack,
.portal-sidebar-stack,
.portal-form,
.portal-feature-list,
.portal-checklist,
.portal-page-header,
.portal-summary,
.portal-actions,
.portal-inline-form,
.portal-metadata,
.portal-pill-list {
  display: grid;
  gap: 14px;
}

.portal-hero {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  margin-bottom: 18px;
}

.portal-entry-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.68fr);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 18px;
}

.portal-entry-hero__content {
  display: grid;
  align-content: center;
  gap: 16px;
  min-height: 360px;
  border: 1px solid #d9e6f3;
  border-radius: var(--cf-radius-md);
  padding: 38px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 250, 255, 0.95) 58%, rgba(236, 246, 255, 0.9) 100%),
    linear-gradient(135deg, #ffffff 0%, #eaf5ff 100%);
  box-shadow: var(--cf-shadow-soft);
}

.portal-entry-hero__content h1 {
  max-width: 760px;
  color: #050b21;
  font-size: 46px;
  line-height: 1.04;
  font-weight: 900;
}

.portal-entry-hero__content p {
  max-width: 720px;
  color: #53637a;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.62;
}

.portal-entry-architecture {
  display: flex;
  min-height: 360px;
  padding: 0;
  background: transparent;
  overflow: visible;
}

.portal-entry-architecture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.portal-entry-band {
  margin-bottom: 18px;
  border: 1px solid #d9e6f3;
  border-radius: var(--cf-radius-md);
  padding: 16px 18px;
  background: #ffffff;
}

.portal-entry-band div {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.portal-entry-band strong {
  color: #075382;
  font-size: 13px;
  font-weight: 900;
}

.portal-entry-band span {
  color: var(--cf-color-text-muted);
  font-size: 13px;
  font-weight: 800;
}

.portal-hero__content {
  display: grid;
  gap: 12px;
  max-width: 900px;
  padding: 24px;
  border: 1px solid var(--cf-color-border);
  border-radius: var(--cf-radius-md);
  background: #ffffff;
  box-shadow: var(--cf-shadow-soft);
}

.portal-hero__content h1,
.portal-page-header h1,
.portal-login__intro h1 {
  color: var(--cf-color-heading);
  font-size: 30px;
  line-height: 1.08;
  font-weight: 900;
}

.portal-hero__content p,
.portal-copy,
.portal-card-stack p,
.portal-checklist p,
.portal-event-card p {
  color: var(--cf-color-text-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

.portal-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.portal-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  border-radius: 999px;
  padding: 4px 8px;
  background: #eef8fd;
  color: #075382;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.portal-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--cf-color-text-muted);
  font-size: 12px;
  font-weight: 800;
}

.portal-breadcrumbs a {
  color: #075382;
  font-weight: 900;
}

.portal-breadcrumbs a:hover,
.portal-breadcrumbs a:focus {
  color: #106b9d;
}

.portal-breadcrumbs span:last-child {
  color: var(--cf-color-text-soft);
}

.portal-feature-list {
  margin-top: 12px;
}

.portal-feature-list strong,
.portal-event-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--cf-color-heading);
  font-size: 13px;
  font-weight: 900;
}

.portal-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.portal-grid--sidebar {
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.75fr);
  align-items: start;
}

.portal-login {
  min-height: 100vh;
  display: block;
  background:
    radial-gradient(circle at 50% 3%, rgba(255, 255, 255, 0.98) 0, rgba(255, 255, 255, 0.72) 280px, rgba(255, 255, 255, 0) 620px),
    linear-gradient(135deg, #f5f9ff 0%, #eef5ff 45%, #e8f3ff 100%);
  color: #050b21;
  text-align: center;
}

.portal-login__card {
  position: relative;
  display: flex;
  min-height: calc(100vh - 72px);
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 52px 24px 44px;
}

.portal-login__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 0;
}

.portal-login--password .portal-login__intro {
  margin-top: 26px;
}

.portal-login__intro h1 {
  color: #000000;
  font-size: 40px;
  font-weight: 300;
  line-height: 1.12;
}

.portal-login__brand {
  display: inline-flex;
}

.portal-login__logo {
  display: block;
  width: 126px;
  height: auto;
}

.portal-login__intro p {
  color: #5d6685;
  font-size: 13px;
  line-height: 1.55;
}

.portal-login .portal-eyebrow {
  margin: 0 auto 4px;
  background: transparent;
  color: #5d6685;
}

.portal-login .portal-form {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-items: center;
  gap: 24px;
}

.portal-login__field {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  text-align: left;
}

.portal-login__field > span:first-child {
  position: absolute;
  top: 28.5px;
  left: 24px;
  z-index: 1;
  padding: 0 8px;
  background: transparent;
  color: #5d6685;
  font-size: 15px;
  line-height: 1;
  transform: translateY(-50%);
  transition: top 0.16s ease, left 0.16s ease, background-color 0.16s ease, font-size 0.16s ease;
  pointer-events: none;
}

.portal-login__field:focus-within > span:first-child,
.portal-login__field:has(input:not(:placeholder-shown)) > span:first-child {
  top: -8px;
  left: 17px;
  background: #f1f7ff;
  font-size: 13px;
  transform: none;
}

.portal-login__field input {
  height: 57px;
  width: 100%;
  padding: 0 24px;
  border: 1px solid #c6d0df;
  border-radius: 4px;
  background: rgba(232, 241, 252, 0.52);
  color: #050b21;
  font-size: 14px;
  font-weight: 400;
  outline: none;
}

.portal-login__field:has(.portal-login__password-toggle) input {
  padding-right: 56px;
}

.portal-login__field input:focus {
  border-color: #56a7ff;
  box-shadow: 0 0 0 3px rgba(80, 163, 255, 0.16);
}

.portal-login__password-toggle {
  position: absolute;
  top: 28.5px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #24304d;
  cursor: pointer;
  transform: translateY(-50%);
}

.portal-login__password-toggle:hover,
.portal-login__password-toggle:focus-visible {
  background: rgba(75, 163, 255, 0.12);
  color: #075382;
}

.portal-login__password-toggle:focus-visible {
  outline: 2px solid rgba(80, 163, 255, 0.55);
  outline-offset: 2px;
}

.portal-login__password-icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.portal-login__password-toggle[aria-pressed="false"] .portal-login__password-icon--hide,
.portal-login__password-toggle[aria-pressed="true"] .portal-login__password-icon--show {
  display: none;
}

.portal-login .cf-label {
  color: #5d6685;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.portal-login__submit {
  justify-self: center;
  min-width: 154px;
  height: 45px;
  margin-top: 0;
  border: 0;
  border-radius: 18px;
  background: #4ba3ff;
  color: #ffffff;
  box-shadow: none;
  font-size: 14px;
  font-weight: 700;
}

.portal-login__submit:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.portal-login__submit--password {
  min-width: 197px;
  margin-top: 5px;
}

.portal-login-options {
  display: flex;
  width: min(520px, 100%);
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.portal-login--password .portal-login-options {
  gap: 0;
}

.portal-login--password .portal-form {
  gap: 28px;
}

.portal-login--password .portal-login__links {
  gap: 18px;
  margin-top: 49px;
}

.portal-login-option {
  display: grid;
  width: 100%;
  gap: 22px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.portal-login-option--active {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.portal-login-option--sms > .portal-form:first-child {
  gap: 24px;
}

.portal-login-option--sms > .portal-form:first-child .cf-field {
  width: 100%;
}

.portal-login-option__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.portal-login-option__heading h2 {
  margin: 0;
  color: #050b21;
  font-size: 15px;
  font-weight: 800;
}

.portal-login .portal-form--compact {
  padding-top: 4px;
  border-top: 0;
}

.portal-code-input {
  letter-spacing: 0;
}

.portal-login__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 0;
  color: #000000;
  font-size: 13px;
  font-weight: 400;
}

.portal-login__links a,
.portal-login-link-panel summary {
  color: #006eff;
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
}

.portal-login__links p {
  margin: 0;
  color: #000000;
  font-size: 13px;
  line-height: 1;
}

.portal-login-link-panel {
  width: 100%;
  max-width: 520px;
}

.portal-login-link-panel summary {
  display: inline-flex;
  cursor: pointer;
  list-style: none;
}

.portal-login-link-panel summary::-webkit-details-marker {
  display: none;
}

.portal-login-link-panel summary span {
  margin-left: 4px;
}

.portal-login-link-panel[open] {
  display: grid;
  gap: 14px;
}

.portal-login-link-panel[open] summary {
  margin-bottom: 14px;
}

.portal-login-link-panel .portal-form {
  gap: 12px;
}

.portal-login-link-panel .cf-button {
  margin-top: 2px;
}

.portal-login__verify {
  justify-self: center;
  width: 100%;
  max-width: 520px;
  margin-top: 0;
}

.portal-login__verify--hidden {
  display: none;
}

.portal-login__help {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 0;
  color: #000000;
  font-size: 13px;
}

.portal-login__help a {
  color: #006eff;
  text-decoration: none;
}

.portal-page-header {
  gap: 8px;
  margin-bottom: 18px;
  padding: 24px;
  border: 1px solid var(--cf-color-border);
  border-radius: var(--cf-radius-md);
  background: #ffffff;
  box-shadow: var(--cf-shadow-soft);
}

.portal-form--spacious,
.portal-main-stack,
.portal-sidebar-stack {
  gap: 18px;
}

.portal-alert {
  margin-bottom: 16px;
  border: 1px solid var(--cf-color-border);
  border-radius: var(--cf-radius-md);
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 800;
}

.portal-alert--success {
  border-color: #b9e4d2;
  background: var(--cf-color-success-soft);
  color: var(--cf-color-success);
}

.portal-alert--error {
  border-color: rgba(199, 47, 60, 0.28);
  background: rgba(255, 245, 246, 0.9);
  color: #a51f2e;
}

.portal-validation {
  min-height: 18px;
  margin-top: 2px;
  color: #c72f3c;
  font-size: 12px;
  text-align: left;
}

.portal-validation:empty {
  display: none;
}

.portal-summary {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--cf-color-divider);
}

.portal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 4px 8px;
  background: #eef8fd;
  color: #075382;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.portal-metadata {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.portal-metadata div {
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid var(--cf-color-border);
  border-radius: var(--cf-radius-md);
  background: #f7fbfe;
}

.portal-metadata span {
  display: block;
  margin-bottom: 6px;
  color: var(--cf-color-text-soft);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.portal-metadata strong {
  color: var(--cf-color-heading);
  font-size: 13px;
  font-weight: 900;
  word-break: break-word;
}

.portal-note {
  border-left: 4px solid var(--cf-color-primary);
  padding: 10px 12px;
  background: #f5fbff;
  color: var(--cf-color-text-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}

.portal-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cf-color-text);
  font-size: 13px;
  font-weight: 800;
}

.portal-checkbox input,
.portal-event-card input {
  accent-color: var(--cf-color-primary);
}

.portal-event-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.portal-event-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-height: 72px;
  border: 1px solid #d8e7f4;
  border-radius: var(--cf-radius-md);
  padding: 12px 14px;
  background: #f7fbfe;
  color: #123653;
  transition: border-color 0.12s ease, background-color 0.12s ease, box-shadow 0.12s ease;
}

.portal-event-card:has(input:checked) {
  border-color: #075382;
  background: #e9f6ff;
  box-shadow: 0 8px 18px rgba(7, 83, 130, 0.15);
}

.portal-pill-list {
  grid-template-columns: repeat(auto-fit, minmax(220px, max-content));
  gap: 8px;
}

.portal-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 4px 8px;
  background: #eef8fd;
  color: #075382;
  font-size: 11px;
  font-weight: 900;
}

.portal-actions,
.portal-inline-form {
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  align-items: end;
  justify-content: start;
  gap: 10px;
}

.portal-inline-form__field {
  min-width: 320px;
}

.portal-inline-form--danger {
  margin-top: 8px;
}

.portal-code {
  overflow-x: auto;
  border-radius: var(--cf-radius-md);
  padding: 14px;
  background: #111827;
  color: #e5e7eb;
  font-size: 12px;
  line-height: 1.6;
}

.portal-error-page {
  display: grid;
  place-items: center;
  min-height: 60vh;
}

.portal-error-card {
  width: min(100%, 760px);
  display: grid;
  gap: 18px;
}

.portal-table-wrap {
  overflow-x: auto;
  border: 1px solid #e6ebf2;
  border-radius: var(--cf-radius-md);
  background: #ffffff;
}

.portal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.portal-table th,
.portal-table td {
  border-bottom: 1px solid var(--cf-color-divider);
  padding: 11px 12px;
  color: var(--cf-color-text-muted);
  text-align: left;
  vertical-align: top;
}

.portal-table th {
  background: #eef3f8;
  color: var(--cf-color-text-soft);
  font-weight: 900;
}

.portal-table tr:hover td {
  background: #f2f9fc;
}

.portal-card-stack--accent {
  position: relative;
  overflow: hidden;
}

.portal-landing-links .portal-link-card {
  display: grid;
  align-content: space-between;
  gap: 14px;
  min-height: 210px;
  background: #ffffff;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
}

.portal-landing-links .portal-link-card:hover {
  border-color: #bdddf4;
  box-shadow: var(--cf-shadow-soft);
  transform: translateY(-1px);
}

.portal-link-card--primary {
  border-color: #bdddf4;
  background: linear-gradient(180deg, #ffffff 0%, #f4fbff 100%);
}

.portal-link-card__eyebrow {
  color: var(--cf-color-text-soft);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.portal-topbar__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 100px;
}

.portal-topbar__actions:empty {
  display: none;
  min-width: 0;
}

.portal-topbar-auth {
  min-width: 100px;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 26px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(39, 128, 255, 0.26);
}

.portal-doc-header {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  padding: 24px;
  border: 1px solid var(--cf-color-border);
  border-radius: var(--cf-radius-md);
  background: #ffffff;
  box-shadow: var(--cf-shadow-soft);
}

.portal-doc-header h1 {
  font-size: 24px;
}

.docs-shell {
  display: grid;
  grid-template-columns: 370px minmax(0, 1fr);
  gap: 0;
  min-height: calc(100vh - 72px);
  margin: -24px -24px -80px;
  background: #f6f8fb;
}

.docs-sidebar {
  position: sticky;
  top: 72px;
  align-self: start;
  height: calc(100vh - 72px);
  overflow-y: auto;
  background: #ffffff;
}

.docs-sidebar {
  border-right: 1px solid #d8e3ef;
  padding: 22px 24px 32px;
}

.docs-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--cf-color-heading);
  font-weight: 900;
  margin-bottom: 22px;
}

.docs-search {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--cf-color-text-soft);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.docs-search input {
  width: 100%;
  min-height: 40px;
  border: 1px solid #d8e3ef;
  border-radius: var(--cf-radius-md);
  padding: 0 12px;
  background: #f8fafc;
  color: var(--cf-color-text);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-transform: none;
  outline: none;
}

.docs-search input:focus {
  border-color: var(--cf-color-primary);
  box-shadow: var(--cf-shadow-focus);
}

.docs-nav {
  display: grid;
  gap: 4px;
}

.docs-nav__label {
  display: block;
  margin: 18px 0 8px;
  color: var(--cf-color-text-soft);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.docs-nav a,
.docs-nav summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border-radius: var(--cf-radius-md);
  padding: 7px 9px;
  color: #4c5564;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.docs-nav a:hover,
.docs-nav summary:hover {
  background: #eef8fd;
  color: #0f6095;
}

.docs-nav summary {
  cursor: pointer;
  font-weight: 900;
}

.docs-nav details a {
  margin-left: 12px;
}

.docs-method {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 22px;
  border-radius: 999px;
  padding: 0 7px;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.docs-method--get,
.docs-method--post {
  background: #eef8fd;
  color: #075382;
}

.docs-method--put,
.docs-method--patch {
  background: #fff3ed;
  color: #d94b00;
}

.docs-method--delete {
  background: rgba(199, 47, 60, 0.1);
  color: #c72f3c;
}

.docs-main {
  min-width: 0;
  padding: 34px 34px 80px;
}

.docs-hero {
  display: grid;
  gap: 14px;
  max-width: 1040px;
  padding: 24px;
  border: 1px solid var(--cf-color-border);
  border-radius: var(--cf-radius-md);
  background: #ffffff;
  box-shadow: var(--cf-shadow-soft);
}

.docs-hero h1 {
  color: var(--cf-color-heading);
  font-size: 30px;
  line-height: 1.1;
}

.docs-hero p {
  max-width: 780px;
  color: var(--cf-color-text-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

.docs-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.docs-stats span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--cf-color-border);
  border-radius: var(--cf-radius-md);
  padding: 9px 12px;
  background: #f7fbfe;
  color: var(--cf-color-text-muted);
  font-size: 13px;
  font-weight: 800;
}

.docs-stats strong {
  color: var(--cf-color-heading);
  font-weight: 900;
}

.docs-group {
  display: grid;
  gap: 12px;
  padding-top: 24px;
}

.docs-group__header {
  display: grid;
  gap: 4px;
}

.docs-group__header span {
  color: var(--cf-color-text-soft);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.docs-group__header h2 {
  color: var(--cf-color-heading);
  font-size: 20px;
}

.docs-endpoint,
.docs-empty {
  display: grid;
  gap: 16px;
  border: 1px solid var(--cf-color-border);
  border-radius: var(--cf-radius-md);
  padding: 16px;
  background: #ffffff;
  box-shadow: none;
  scroll-margin-top: 96px;
}

.docs-endpoint[hidden] {
  display: none;
}

.docs-endpoint__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.docs-endpoint__header div {
  display: grid;
  gap: 8px;
}

.docs-endpoint__header h3 {
  color: var(--cf-color-heading);
  font-size: 16px;
  line-height: 1.3;
}

.docs-endpoint__header code {
  max-width: 420px;
  overflow-x: auto;
  border: 1px solid var(--cf-color-border-strong);
  border-radius: var(--cf-radius-md);
  padding: 8px 10px;
  background: #f8fafc;
  color: var(--cf-color-text);
  font-size: 12px;
  white-space: nowrap;
}

.docs-description {
  color: var(--cf-color-text-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

.docs-schema-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.docs-schema-row div {
  min-width: 0;
  border: 1px solid var(--cf-color-border);
  border-radius: var(--cf-radius-md);
  padding: 12px;
  background: #f7fbfe;
}

.docs-schema-row dt {
  margin-bottom: 6px;
  color: var(--cf-color-text-soft);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.docs-schema-row dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--cf-color-heading);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

.docs-table-wrap {
  overflow-x: auto;
  border: 1px solid #e6ebf2;
  border-radius: var(--cf-radius-md);
  background: #ffffff;
}

.docs-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.docs-table th,
.docs-table td {
  border-bottom: 1px solid var(--cf-color-divider);
  padding: 10px 12px;
  color: var(--cf-color-text-muted);
  font-size: 13px;
  text-align: left;
  vertical-align: top;
}

.docs-table th {
  background: #eef3f8;
  color: var(--cf-color-text-soft);
  font-weight: 900;
}

.docs-table tr:last-child td {
  border-bottom: 0;
}

.docs-table tr:hover td {
  background: #f2f9fc;
}

.docs-table code {
  color: var(--cf-color-heading);
  font-size: 12px;
}

.docs-code-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.docs-code-grid section,
.docs-panel-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #1f2a44;
  border-radius: var(--cf-radius-md);
  background: #111827;
}

.docs-code-heading,
.docs-panel-card__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 12px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 800;
}

.docs-code-heading span:last-child,
.docs-panel-card__heading strong {
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.docs-code-grid pre,
.docs-panel-card pre {
  margin: 0;
  overflow-x: auto;
  padding: 14px;
  color: #e5e7eb;
  font-size: 12px;
  line-height: 1.6;
}

.docs-code-grid code,
.docs-panel-card code {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.docs-panel-card {
  display: grid;
  gap: 0;
  margin-bottom: 14px;
}

.docs-panel-card > code {
  display: block;
  overflow-x: auto;
  padding: 14px;
  color: #e5e7eb;
  font-size: 12px;
}

.docs-panel-card--muted {
  border-color: var(--cf-color-border);
  background: #ffffff;
}

.docs-panel-card--muted .docs-panel-card__heading {
  border-bottom-color: var(--cf-color-divider);
  color: var(--cf-color-text-soft);
}

.docs-panel-card--muted .docs-panel-card__heading strong {
  color: var(--cf-color-heading);
}

.docs-panel-card--muted p {
  padding: 14px;
  color: var(--cf-color-text-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

@media (max-width: 1180px) {
  .docs-shell {
    grid-template-columns: 320px minmax(0, 1fr);
  }
}

@media (max-width: 1080px) {
  .cf-topbar {
    height: auto;
  }

  .cf-topbar__inner {
    height: auto;
    flex-wrap: wrap;
  }

  .cf-topbar__nav {
    flex: 1 1 auto;
  }

  .portal-entry-hero {
    grid-template-columns: 1fr;
  }

  .portal-grid--sidebar,
  .portal-grid--three {
    grid-template-columns: 1fr;
  }

  .portal-event-grid,
  .portal-metadata {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 880px) {
  .docs-shell {
    display: block;
    margin: -24px -16px -80px;
  }

  .docs-sidebar {
    position: static;
    height: auto;
  }

  .docs-sidebar {
    border-right: 0;
    border-bottom: 1px solid #d8e3ef;
  }

  .docs-main {
    padding: 24px 16px 72px;
  }

  .docs-hero h1 {
    font-size: 24px;
  }

  .docs-endpoint__header,
  .docs-schema-row,
  .docs-code-grid {
    grid-template-columns: 1fr;
  }

  .docs-endpoint__header code {
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  .cf-page {
    padding: 24px 16px 72px;
  }

  .portal-wordmark {
    width: 88px;
    height: 38px;
  }

  .portal-wordmark img {
    width: 84px;
  }

  .cf-topbar__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
  }

  .cf-topbar__link {
    min-height: 34px;
    padding: 0 8px;
  }

  .cf-topbar__link--primary,
  .portal-topbar-auth {
    min-width: auto;
    min-height: 38px;
    padding: 0 14px;
  }

  .cf-topbar__icon-link {
    height: 34px;
  }

  .portal-login {
    min-height: 100vh;
    padding: 40px 18px 32px;
  }

  .portal-login__intro h1 {
    font-size: 34px;
  }

  .portal-hero__content h1,
  .portal-entry-hero__content h1,
  .portal-page-header h1 {
    font-size: 24px;
  }

  .portal-entry-hero__content {
    min-height: auto;
    padding: 24px;
  }

  .portal-entry-architecture {
    min-height: auto;
  }

  .portal-actions,
  .portal-inline-form {
    grid-auto-flow: row;
    grid-auto-columns: 1fr;
  }

  .portal-inline-form__field {
    min-width: 0;
  }

  .portal-event-grid {
    grid-template-columns: 1fr;
  }
}
