body {
  background: #f3f6fa;
}
.portal-main {
  min-height: 65vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 90px 20px 80px;
}
.portal-card {
  width: 100%;
  max-width: 530px;
  padding: 44px;
  box-sizing: border-box;
  border: 1px solid #dfe6f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 38px #08162b12;
  color: #10243e;
}
.portal-card h1 {
  margin: 12px 0 16px;
  font-size: clamp(1.7rem, 4vw, 2rem);
  line-height: 1.2;
}
.portal-card p {
  line-height: 1.55;
}
.portal-intro {
  color: #51647a;
  margin-bottom: 24px;
}
.portal-form {
  display: grid;
  gap: 14px;
}
.form-field {
  display: grid;
  gap: 6px;
}
.form-field label {
  font-size: .92rem;
  font-weight: 650;
}
.input-wrap {
  position: relative;
}
.form-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 14px;
  border: 1px solid #acbacb;
  border-radius: 9px;
  font: inherit;
  background: #fff;
  color: #10243e;
}
.form-field input[type=password], .form-field input[data-visible-password] {
  padding-right: 76px;
}
.form-field input:focus {
  outline: 3px solid #a7ceff;
  outline-offset: 1px;
  border-color: #1269d3;
}
.form-field input[aria-invalid=true] {
  border-color: #b42318;
}
.password-toggle {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #1269d3;
  padding: 8px;
  font: inherit;
  font-size: .85rem;
  font-weight: 650;
  cursor: pointer;
}
.field-error {
  color: #a42119;
  font-size: .83rem;
}
.field-error:empty {
  display: none;
}
.field-hint {
  margin: -9px 0 0;
  color: #617085;
  font-size: .82rem;
}
.primary-action {
  margin-top: 6px;
  padding: 15px;
  border: 0;
  border-radius: 9px;
  background: #1269d3;
  color: white;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.primary-action:hover {
  background: #0955b0;
}
.portal-notice {
  padding: 13px 15px;
  border: 1px solid #c9dbf3;
  border-radius: 8px;
  background: #f0f6ff;
  margin-bottom: 18px;
}
.portal-nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
.portal-nav a {
  color: inherit;
  text-decoration: none;
}
.logout-form {
  display: inline;
  margin: 0;
}
.nav-logout {
  border: 0;
  padding: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.portal-footnote {
  margin-top: 22px;
  font-size: .9rem;
  color: #56657a;
}
.portal-card a {
  color: #1269d3;
}
@media (max-width: 640px) {
  .portal-card {
    padding: 26px 22px;
  }
  .portal-main {
    padding-top: 48px;
  }
  .portal-nav {
    gap: 10px;
    font-size: .8rem;
    flex-wrap: wrap;
  }
}
/* Accessible validation, action states, and status messages. */
.primary-action:disabled {
  background: #a8b7c9;
  color: #f7f9fc;
  cursor: not-allowed;
  opacity: .85;
}
.primary-action:disabled:hover {
  background: #a8b7c9;
}
.portal-notice--error {
  border-color: #e5a6a6;
  background: #fff1f1;
  color: #8f1d1d;
}
.portal-notice--error strong {
  display: block;
  margin-bottom: 4px;
}
.portal-notice--error p {
  margin: 0;
}
.portal-notice--success {
  border-color: #9acdb3;
  background: #effaf3;
  color: #155b37;
}
/* v1.1.5b: account actions in the shared public-site shell. */
.developer-logout-form {
  display: inline-flex;
  margin: 0;
}
.developer-logout-button {
  font: inherit;
  cursor: pointer;
  border: 0;
}
.developer-logout-button:focus-visible {
  outline: 3px solid #7eb9ff;
  outline-offset: 3px;
}
/* The public header is styled exclusively by ../assets/styles.css. */
.portal-legal-check {
  display: block;
  margin: 1.1rem 0;
  line-height: 1.6;
}
.portal-legal-check input {
  margin-right: .5rem;
}
.legal-draft {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  line-height: 1.6;
  max-height: 70vh;
  overflow: auto;
}
.portal-legal-check + .field-error {
  display: block;
  margin: 5px 0 8px;
}
/* v1.3.1 SDK Release Center */
.portal-card:has(.sdk-intro) {
  max-width: 960px;
}
.sdk-intro {
  margin-bottom: 22px;
}
.sdk-dev-note {
  color: #586b82;
  font-size: .88rem;
}
.sdk-license-status {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 17px 19px;
  border: 1px solid #cce5d7;
  border-radius: 12px;
  background: #f2faf5;
  color: #1a563b;
  margin: 20px 0 30px;
}
.sdk-license-status div div {
  margin-top: 4px;
  font-size: .9rem;
}
.sdk-status-dot {
  width: 10px;
  height: 10px;
  background: #279565;
  border-radius: 50%;
  flex-shrink: 0;
}
.sdk-expired {
  background: #fff6f1;
  border-color: #f0c5a8;
  color: #84451f;
  display: block;
}
.sdk-section-title {
  font-size: 1.45rem;
  margin: 0 0 16px;
}
.sdk-releases {
  display: grid;
  gap: 18px;
}
.sdk-release-card {
  border: 1px solid #dbe4ef;
  border-radius: 15px;
  padding: 26px;
  background: #fff;
}
.sdk-release-featured {
  border-color: #91b8f4;
  box-shadow: 0 4px 24px #135cc014;
}
.sdk-release-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.sdk-product {
  color: #566b83;
  font-size: .88rem;
  font-weight: 650;
}
.sdk-release-head h3 {
  margin: 3px 0 8px;
  font-size: 1.45rem;
}
.sdk-latest {
  background: #e7f1ff;
  color: #125ab5;
  font-size: .8rem;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 100px;
}
.sdk-summary {
  color: #51647a;
  margin: 6px 0 16px;
}
.sdk-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.sdk-platform {
  background: #f0f4f9;
  border: 1px solid #e1e8f1;
  border-radius: 7px;
  padding: 6px 10px;
  color: #314d6b;
  font-size: .83rem;
}
.sdk-release-date {
  color: #687c92;
  font-size: .83rem;
}
.sdk-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 18px;
}
.sdk-actions form {
  margin: 0;
}
.sdk-actions .primary-action {
  margin: 0;
  padding: 12px 17px;
}
.sdk-secondary-action {
  font-weight: 650;
  text-decoration: none;
  padding: 11px 0;
}
.sdk-checksum {
  margin-top: 20px;
  font-size: .82rem;
  color: #53677e;
}
.sdk-checksum code {
  display: block;
  overflow-wrap: anywhere;
  padding-top: 10px;
}
@media (max-width:640px) {
  .sdk-release-card {
    padding: 18px;
  }
  .sdk-release-head {
    flex-wrap: wrap;
  }
}
/* v1.3.2 Developer dashboard */
.portal-card:has(.dev-dashboard) {
  max-width: 960px;
}
.dev-dashboard {
  display: grid;
  gap: 24px;
}
.dev-dashboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.dev-eyebrow {
  margin: 0 0 5px;
  font-size: .75rem;
  letter-spacing: .12em;
  font-weight: 750;
  color: #1269d3;
}
.dev-dashboard-head .portal-intro {
  margin: 0;
}
.dev-account-badge {
  flex-shrink: 0;
  padding: 7px 12px;
  border-radius: 100px;
  background: #eef8f2;
  color: #176044;
  font-size: .82rem;
  font-weight: 700;
}
.dev-eval-panel {
  padding: 23px 25px;
  border: 1px solid #dce6f0;
  border-radius: 14px;
  background: #f7f9fc;
}
.dev-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.dev-status {
  padding: 5px 11px;
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 700;
}
.dev-status-active {
  background: #e1f4e9;
  color: #176044;
}
.dev-status-pending {
  background: #e8eef6;
  color: #445e78;
}
.dev-status-expired {
  background: #fff0e6;
  color: #8c491f;
}
.dev-time-left {
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 750;
  margin: 17px 0 12px;
}
.dev-progress {
  width: 100%;
  height: 7px;
  background: #dce6f1;
  border-radius: 20px;
  overflow: hidden;
}
.dev-progress span {
  display: block;
  height: 100%;
  background: #1269d3;
  border-radius: 20px;
}
.dev-expiry {
  margin: 11px 0 0;
  font-size: .85rem;
  color: #52677f;
}
.dev-panel-link {
  font-weight: 650;
}
.dev-resource-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 16px;
}
.dev-resource {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 24px;
  border: 1px solid #dce6f0;
  border-radius: 14px;
  text-decoration: none;
  background: #fff;
  min-height: 190px;
  box-sizing: border-box;
}
.dev-resource:hover {
  border-color: #8eb7ec;
  box-shadow: 0 6px 22px #0e4c9a0c;
}
.dev-resource strong {
  color: #10243e;
  font-size: 1.15rem;
}
.dev-resource > span:not(.dev-resource-icon):not(.dev-resource-action) {
  color: #52677f;
  line-height: 1.45;
  font-size: .93rem;
}
.dev-resource-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: #edf4ff;
  color: #1269d3;
  border-radius: 10px;
  font-size: 1.4rem;
}
.dev-resource-action {
  margin-top: auto;
  font-size: .9rem;
  font-weight: 700;
  color: #1269d3;
}
.dev-support-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  border: 1px solid #dce6f0;
  border-radius: 14px;
  padding: 21px 24px;
}
.dev-support-panel p {
  margin: 6px 0 0;
  color: #52677f;
  font-size: .92rem;
}
.dev-support-panel a {
  font-weight: 650;
  white-space: nowrap;
}
@media (max-width:640px) {
  .dev-dashboard-head,.dev-support-panel {
    flex-direction: column;
    align-items: flex-start;
  }
  .dev-resource-grid {
    grid-template-columns: 1fr;
  }
  .dev-resource {
    min-height: 0;
  }
  .dev-eval-panel {
    padding: 19px;
  }
}
/* v1.3.2a: visual polish only */
.dev-resource > span:not(.dev-resource-icon):not(.dev-resource-action),
.dev-resource-action {
  letter-spacing: normal;
  text-transform: none;
}
.dev-progress-label {
  margin: 8px 0 0;
  color: #52677f;
  font-size: .78rem;
}
/* v1.3.2b: clearer, larger resource icons; preserve existing header layout. */
.dev-resource-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  flex-shrink: 0;
}
.dev-resource-icon svg {
  width: 28px;
  height: 28px;
  display: block;
}
.dev-resource > span:not(.dev-resource-icon):not(.dev-resource-action) {
  font-weight: 400;
  letter-spacing: normal;
}
.dev-resource-action {
  letter-spacing: normal;
}
/* v1.3.2c: sticky two-tier navigation on developer pages.
   Header height is measured rather than assuming a fixed desktop/mobile size. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}
.developer-account-bar {
  position: sticky;
  top: var(--developer-site-header-height, 76px);
  z-index: 99;
}
/* Focused anchors should remain visible below both sticky rows. */
html {
  scroll-padding-top: calc(var(--developer-site-header-height, 76px) + 64px);
}
/* Public developer support */
.portal-card:has(.support-intro) {
  max-width: 790px;
}
.support-intro {
  margin-bottom: 20px;
}
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.support-field {
  display: grid;
  gap: 6px;
}
.support-field label {
  font-weight: 650;
  font-size: .92rem;
}
.support-field input,.support-field select,.support-field textarea {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid #acbacb;
  border-radius: 9px;
  padding: 12px 14px;
  background: #fff;
  color: #10243e;
  font: inherit;
}
.support-field textarea {
  min-height: 170px;
  resize: vertical;
}
.support-field input:focus,.support-field select:focus,.support-field textarea:focus {
  outline: 3px solid #a7ceff;
  outline-offset: 1px;
}
.support-field small {
  color: #5a6c81;
}
.support-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
@media(max-width:640px) {
  .support-grid {
    grid-template-columns: 1fr;
  }
}
/* Support form: read-only identity and removable drag-and-drop attachments */
.support-field input[readonly] {
  background: #f1f5fa;
  color: #43566b;
  cursor: default;
}
.support-dropzone {
  border: 2px dashed #b0c5dc;
  border-radius: 12px;
  padding: 16px;
  background: #f8fbff;
  transition: border-color .15s,background .15s;
}
.support-dropzone.is-dragover {
  border-color: #266ac2;
  background: #e9f3ff;
}
.support-dropzone input[type=file] {
  border: 0;
  padding: 5px 0;
  background: transparent;
}
.support-dropzone p {
  margin: 8px 0 0;
  color: #52677f;
  font-size: .88rem;
}
.support-file-list {
  list-style: none;
  margin: 8px 0;
  padding: 0;
  display: grid;
  gap: 7px;
}
.support-file-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid #dce6f0;
  border-radius: 8px;
  overflow-wrap: anywhere;
}
.support-file-list button {
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #b3c3d5;
  border-radius: 6px;
  padding: 5px 10px;
  cursor: pointer;
}
.support-file-list button:hover {
  background: #edf4fc;
}
/* Support confirmation */
.support-confirmation {
  max-width: 680px;
}
.support-confirmation-ticket {
  padding: 1.1rem 1.4rem;
  border: 1px solid #b9cbe2;
  border-radius: 12px;
  background: #f5f8fd;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
.support-confirmation-ticket span {
  color: #526681;
  font-weight: 600;
}
.support-confirmation-ticket strong {
  font-size: 1.6rem;
  letter-spacing: .06em;
}
.support-confirmation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 1.8rem;
}
.support-confirmation-actions .primary-action {
  display: inline-flex;
  text-decoration: none;
  width: auto;
  padding: .85rem 1.2rem;
}
.support-form input[readonly] {
  background: #f3f6fa;
  color: #344b68;
  cursor: default;
}
/* Support confirmation: explicit link contrast, spacing and copy control. */
.portal-card .support-confirmation-actions a.primary-action {
  color: #fff;
  background: #1269d3;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.portal-card .support-confirmation-actions a.primary-action:hover {
  color: #fff;
  background: #0955b0;
}
.support-attachment-count {
  margin: 1.15rem 0 1.5rem;
}
.support-copy-ticket {
  border: 1px solid #a8bdd9;
  background: #fff;
  border-radius: 8px;
  padding: .45rem .7rem;
  color: #1260bd;
  font: inherit;
  cursor: pointer;
}
.support-copy-ticket:hover {
  background: #e8f1fc;
}
.support-copy-ticket:focus-visible {
  outline: 3px solid #7eb9ff;
  outline-offset: 2px;
}

