/* partner-portal/styles.css */

:root {
  --bg: #f6f8fb;
  --card: #ffffff;
  --card-soft: #f9fbfd;
  --navy: #003366;
  --navy-soft: rgba(0, 51, 102, 0.08);
  --mint: #00d4aa;
  --mint-soft: rgba(0, 212, 170, 0.12);
  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.14);
  --danger: #ef4444;
  --danger-soft: rgba(239, 68, 68, 0.1);
  --text: #101828;
  --muted: #667085;
  --border: #e6eaf0;
  --shadow: 0 10px 28px rgba(16, 24, 40, 0.06);
  --shadow-soft: 0 1px 2px rgba(16, 24, 40, 0.04);
  --radius: 18px;
  --sidebar-width: 260px;
  --topbar-height: 72px;
  --content-max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 1180px;
  scroll-behavior: smooth;
}

body {
  min-width: 1180px;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.portal-console {
  min-height: 100vh;
  background: var(--bg);
}

/* Topbar */

.portal-topbar {
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 28px;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: sticky;
  top: 0;
  z-index: 50;
}

.portal-topbar,
.portal-topbar a,
.portal-brand-text strong,
.portal-brand-text span,
.portal-topbar-nav a {
  color: #ffffff;
}

.portal-topbar-brand,
.portal-topbar-actions,
.portal-brand-text,
.portal-org-switcher {
  display: flex;
  align-items: center;
}

.portal-topbar-brand {
  gap: 16px;
  min-width: 330px;
}

.portal-brand-logo {
  width: 185px;
  max-height: 48px;
  object-fit: contain;
  display: block;
}

.portal-topbar-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.18);
}

.portal-brand-text {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.portal-brand-text strong {
  color: #ffffff;
  font-size: 16px;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.portal-brand-text span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
}

.portal-topbar-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.portal-topbar-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

.portal-topbar-actions {
  gap: 12px;
}

.portal-icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 900;
}

.portal-org-switcher {
  flex-direction: column;
  align-items: flex-start;
  min-width: 178px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card-soft);
}

.portal-org-switcher span {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  font-weight: 850;
  font-size: 13px;
}

.portal-org-switcher small {
  color: var(--muted);
  font-size: 11px;
}

.portal-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #dbeafe;
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
}

.portal-profile-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.portal-avatar {
  border: 0;
}

.portal-profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 100;
  width: 240px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 18px 44px rgba(16, 24, 40, 0.16);
  padding: 8px;
  color: var(--text);
}

.portal-profile-dropdown[hidden] {
  display: none;
}

.portal-profile-dropdown-header {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
}

.portal-profile-dropdown-header strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 850;
}

.portal-profile-dropdown-header small {
  color: var(--muted);
  font-size: 12px;
}

.portal-profile-dropdown-divider {
  height: 1px;
  margin: 6px 0;
  background: var(--border);
}

.portal-profile-dropdown-item {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  padding: 10px 12px;
  text-align: left;
  font-size: 13px;
  font-weight: 850;
}

.portal-profile-dropdown-item:hover {
  background: var(--navy-soft);
}

.portal-profile-dropdown-item.danger {
  color: #b42318;
}

.portal-profile-dropdown-item.danger:hover {
  background: var(--danger-soft);
}

/* Shell */

.portal-console-body {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.portal-sidebar {
  height: auto;
  align-self: start;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 20px;
  background: var(--card);
  border-right: 1px solid var(--border);
  position: sticky;
  top: var(--topbar-height);
}

.portal-sidebar-section {
  min-width: 0;
}

.portal-sidebar-nav {
  display: grid;
  gap: 8px;
}

.portal-sidebar-item {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 14px;
  color: #1d2939;
  font-size: 14px;
  font-weight: 800;
}

.portal-sidebar-item:hover,
.portal-sidebar-item.is-active {
  background: #eef4ff;
  color: var(--navy);
}

.portal-sidebar-icon {
  width: 22px;
  display: inline-grid;
  place-items: center;
  color: currentColor;
  font-weight: 900;
}

.portal-sidebar-icon svg,
.portal-topbar-icon svg,
.portal-icon-button svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal-topbar-icon {
  display: inline-flex;
  align-items: center;
}

.portal-sidebar-footer {
  display: grid;
  gap: 16px;
}

.portal-help-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.portal-help-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 850;
}

.portal-help-card p {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.portal-help-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 850;
}

.portal-status-card {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 0 4px;
}

.portal-status-card strong {
  display: block;
  font-size: 13px;
  font-weight: 850;
}

.portal-status-card small {
  color: var(--muted);
  font-size: 12px;
}

.portal-status-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px var(--mint-soft);
}

.portal-main-content {
  min-width: 0;
  padding: 34px 30px 44px;
}

.portal-section-anchor {
  display: block;
}

.portal-overview-page,
.portal-onboarding-page,
.portal-kyb-page,
.portal-pilot-page,
.portal-corridors-page,
.portal-api-keys-page,
.portal-environments-page,
.portal-limits-page,
.portal-audit-log-page,
.portal-support-page,
.portal-developer-docs-page {
  max-width: var(--content-max);
  margin: 0 auto;
}

.portal-overview-page {
  max-width: none;
  margin: 0;
}

.portal-overview-page > .portal-page-header,
.portal-overview-page > .overview-progress-stepper,
.portal-overview-page > .overview-top-grid,
.portal-overview-page > .overview-metric-grid,
.portal-overview-page > .overview-two-column-grid {
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
}

.overview-bottom-bleed {
  margin-left: calc(-1 * var(--sidebar-width) - 30px);
  margin-right: -30px;
}

.overview-bottom-bleed > .overview-bottom-grid {
  max-width: none;
  margin: 0;
  padding: 0 30px;
}

/* Page + cards */

.portal-page-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.portal-eyebrow,
.portal-metric-label,
.portal-field-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-page-header h1 {
  margin: 6px 0 7px;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.portal-page-header p,
.portal-card-header p,
.portal-card p {
  color: var(--muted);
  line-height: 1.6;
}

.portal-card,
.portal-metric-card,
.overview-hero-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.portal-card {
  padding: 24px;
}

.portal-card-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.portal-card h2 {
  margin-bottom: 8px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.portal-card h3 {
  margin-bottom: 8px;
  font-size: 16px;
}

.portal-card-actions {
  flex: 0 0 auto;
}

/* Badges */

.portal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 5px 10px;
  background: #f2f4f7;
  color: #344054;
  font-size: 12px;
  font-weight: 850;
}

.portal-badge-success {
  background: var(--mint-soft);
  color: #027a63;
}

.portal-badge-warning {
  background: var(--amber-soft);
  color: #b45309;
}

.portal-badge-danger {
  background: var(--danger-soft);
  color: #b42318;
}

.portal-badge-neutral {
  background: #f2f4f7;
  color: #475467;
}

/* Stepper */

.overview-progress-stepper {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin: 0 0 30px;
  padding: 0 28px;
}

.overview-progress-stepper::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 92px;
  right: 92px;
  height: 2px;
  background: repeating-linear-gradient(
    to right,
    #cfd6e0 0,
    #cfd6e0 8px,
    transparent 8px,
    transparent 14px
  );
}

.overview-progress-stepper .overview-step {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.overview-progress-stepper .overview-step-marker {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 2px solid #cfd6e0;
  border-radius: 50%;
  background: var(--card);
  color: #344054;
  font-size: 15px;
  font-weight: 900;
}

.overview-progress-stepper .overview-step-copy {
  display: grid;
  gap: 4px;
}

.overview-progress-stepper .overview-step strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
}

.overview-progress-stepper .overview-step span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.overview-progress-stepper .overview-step-completed .overview-step-marker {
  border-color: var(--mint);
  background: var(--mint);
  color: #fff;
}

.overview-progress-stepper .overview-step-completed span {
  color: #029b78;
}

.overview-progress-stepper .overview-step-current .overview-step-marker {
  border-color: var(--amber);
  background: #fff7e6;
  color: #92400e;
}

.overview-progress-stepper .overview-step-current span {
  color: #b45309;
}

.overview-progress-stepper .overview-step-locked .overview-step-marker {
  background: #fff;
  color: #344054;
}

/* Overview layout */

.overview-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.72fr);
  gap: 20px;
  margin-bottom: 20px;
}

.overview-top-grid-single {
  grid-template-columns: minmax(0, 1fr);
}

.overview-top-grid-single .overview-hero-card {
  grid-template-columns: minmax(0, 0.75fr) minmax(360px, 1.25fr);
}

.overview-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.overview-two-column-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.98fr);
  gap: 20px;
  margin-bottom: 20px;
}

.overview-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.7fr);
  gap: 20px;
  margin-bottom: 0;
}

.portal-two-column-grid,
.kyb-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.85fr);
  gap: 20px;
  margin-bottom: 20px;
}

.overview-hero-card {
  min-height: 300px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
  align-items: stretch;
  gap: 24px;
  padding: 30px;
}

.overview-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.overview-hero-card h2 {
  margin: 14px 0 12px;
  max-width: 520px;
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.overview-hero-card p {
  max-width: 500px;
  margin-bottom: 18px;
  color: var(--muted);
  line-height: 1.65;
}

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

.portal-primary-link,
.portal-primary-button,
.portal-secondary-button {
  min-height: 42px;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 850;
}

.portal-primary-link,
.portal-primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #fff;
}

.portal-secondary-button {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--navy);
}

.overview-hero-visual {
  min-height: 240px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: transparent;
}

.overview-hero-illustration {
  width: 100%;
  max-width: 270px;
  height: auto;
  display: block;
  object-fit: contain;
}

.overview-orbit-card {
  width: 230px;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 24px 18px;
  border: 1px solid rgba(0, 51, 102, 0.1);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(16, 24, 40, 0.08);
  text-align: center;
}

.overview-orbit-card span {
  width: 54px;
  height: 54px;
  display: block;
  border-radius: 16px;
  background:
    radial-gradient(circle at 32% 30%, var(--mint), transparent 35%),
    var(--navy);
}

.overview-orbit-card strong {
  font-size: 16px;
}

.overview-orbit-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.overview-help-card {
  min-height: 300px;
}

.overview-help-card .portal-card-header {
  margin-bottom: 24px;
}

.overview-help-actions {
  display: grid;
  gap: 12px;
}

.overview-help-actions a {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  color: var(--navy);
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 850;
}

.overview-help-actions a::after {
  content: "↗";
  font-weight: 900;
}

/* Metrics */

.portal-metric-card {
  min-height: 152px;
  padding: 22px;
}

.portal-metric-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.portal-metric-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--navy-soft);
  color: var(--navy);
  font-weight: 900;
}

.portal-metric-card strong {
  display: block;
  margin-top: 8px;
  overflow-wrap: anywhere;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.portal-metric-card strong.metric-status {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.portal-metric-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.portal-metric-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.portal-metric-status-row p {
  margin: 0;
}

/* Timeline + activity */

.portal-timeline {
  display: grid;
  gap: 0;
}

.portal-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  padding: 0 0 20px;
}

.portal-timeline-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 16px;
  left: 6px;
  width: 1px;
  height: calc(100% - 12px);
  background: rgba(0, 212, 170, 0.35);
}

.portal-timeline-dot {
  width: 14px;
  height: 14px;
  margin-top: 4px;
  border-radius: 50%;
  background: #98a2b3;
  z-index: 1;
}

.portal-timeline-success,
.portal-timeline-completed {
  background: #0ea77f;
}

.portal-timeline-warning,
.portal-timeline-pending,
.portal-timeline-current {
  background: var(--amber);
}

.portal-timeline-danger,
.portal-timeline-failed {
  background: var(--danger);
}

.portal-timeline-item strong {
  display: block;
  font-size: 14px;
  font-weight: 850;
}

.portal-timeline-item p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 13px;
}

.portal-timeline-item small {
  color: #98a2b3;
  font-size: 12px;
}

.overview-activity-list {
  display: grid;
}

.overview-activity-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.overview-activity-item:first-child {
  padding-top: 0;
}

.overview-activity-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.overview-activity-item strong {
  font-size: 14px;
}

.overview-activity-item p,
.overview-activity-item small {
  color: var(--muted);
  font-size: 12px;
}

/* Operations + quick start */

.overview-quickstart-list {
  display: grid;
  gap: 14px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.overview-quickstart-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
}

.overview-quickstart-list li > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.overview-quickstart-list strong {
  display: block;
  font-size: 14px;
}

.overview-quickstart-list p {
  margin: 4px 0 0;
  font-size: 13px;
}

/* Empty states */

.portal-empty-state {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 8px;
  min-height: 160px;
  border: 1px solid #edf0f5;
  border-radius: 16px;
  background: var(--card-soft);
  padding: 24px;
}

.portal-empty-state.compact {
  min-height: 136px;
}

.portal-empty-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--navy-soft);
  color: var(--navy);
  font-weight: 900;
}

/* Forms */

.portal-form,
.two-column-form {
  display: grid;
  gap: 14px;
}

.two-column-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.two-column-form textarea,
.two-column-form .portal-form-actions {
  grid-column: 1 / -1;
}

.portal-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

input,
textarea,
select,
.country-select-trigger {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  padding: 12px 14px;
  outline: none;
}

input:focus,
textarea:focus,
select:focus,
.country-select-shell.is-open .country-select-trigger {
  border-color: rgba(0, 51, 102, 0.34);
  box-shadow: 0 0 0 4px var(--navy-soft);
}

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

input::placeholder,
textarea::placeholder {
  color: #98a2b3;
}

select {
  cursor: pointer;
}

.phone-field {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(145px, 190px) 1fr;
  gap: 10px;
}

.country-select-shell {
  position: relative;
  width: 100%;
}

.country-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.country-select-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-weight: 600;
}

.country-select-shell.has-value .country-select-value {
  color: var(--text);
}

.country-select-chevron {
  flex: 0 0 auto;
  color: var(--muted);
}

.country-select-menu {
  display: none;
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 8px;
}

.country-select-shell.is-open .country-select-menu {
  display: grid;
  gap: 4px;
}

.country-select-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  padding: 10px 12px;
  text-align: left;
  font-weight: 650;
}

.country-select-option:hover {
  background: var(--navy-soft);
}

.country-select-option input {
  width: auto;
  accent-color: var(--mint);
}

/* Detail blocks */

.portal-detail-list,
.kyb-summary-grid,
.onboarding-submitted-grid {
  display: grid;
  gap: 14px;
}

.kyb-summary-grid,
.onboarding-submitted-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-detail-list > div,
.kyb-summary-grid > div,
.onboarding-submitted-grid > div {
  display: grid;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card-soft);
  padding: 14px;
}

.portal-detail-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.portal-detail-list strong,
.kyb-summary-grid strong,
.onboarding-submitted-grid strong {
  overflow-wrap: anywhere;
  font-size: 14px;
}

/* Page-specific grids */

.onboarding-access-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 20px;
  margin-bottom: 20px;
}

.pilot-summary-grid,
.corridors-summary-grid,
.api-keys-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.pilot-corridor-grid,
.corridors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.pilot-corridor-card,
.corridor-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card-soft);
  padding: 14px;
}

/* Tables */

.portal-table-wrap {
  overflow-x: auto;
}

.portal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.portal-table th,
.portal-table td {
  border-bottom: 1px solid var(--border);
  padding: 13px 10px;
  text-align: left;
  vertical-align: middle;
}

.portal-table th {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Code + secret */

.portal-developer-docs-page .portal-code-block,
.portal-developer-docs-page .code-block,
.secret-code {
  overflow-x: auto;
  border: 1px solid #1f2937;
  border-radius: 14px;
  background: #0b1020;
  padding: 16px;
  color: #e5e7eb;
  font-size: 13px;
  line-height: 1.65;
}

.portal-developer-docs-page .portal-code-block code,
.portal-developer-docs-page .code-block code,
.secret-code {
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    monospace;
}

.secret-code {
  display: block;
  overflow-wrap: anywhere;
  color: var(--mint);
}

/* System */

.error-card {
  border-color: rgba(239, 68, 68, 0.25);
  background: #fff;
}

.pay-lite-footer {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 18px 30px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.pay-lite-footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pay-lite-footer a {
  color: var(--navy);
  font-weight: 850;
}

.pay-lite-footer .aria-hidden {
  color: var(--border);
}

