:root {
  --portal-navy: #17231e;
  --portal-green: #263c32;
  --portal-orange: #ef5a28;
  --portal-sand: #f2ede3;
  --portal-cream: #fbfaf6;
  --portal-line: #d9d5cb;
  --portal-text: #3e3e40;
  --portal-muted: #686b65;
  --portal-danger: #a33220;
  --portal-success: #245f43;
  --portal-warning: #b56b16;
  --portal-blue: #315e78;
  --portal-sidebar-width: 286px;
}

.portal-designation-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(16rem, 0.55fr);
  gap: 32px;
  align-items: center;
  margin-bottom: 24px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg, #0b2a22 0%, #123f32 100%);
  box-shadow: 0 20px 48px rgb(11 42 34 / 16%);
}

.portal-designation-hero h2 {
  max-width: 21ch;
  margin: 4px 0 12px;
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.55rem);
}

.portal-designation-hero p {
  max-width: 64ch;
  margin: 0;
  color: rgb(255 255 255 / 80%);
}

.portal-designation-hero__status {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 16px;
  background: rgb(255 255 255 / 8%);
}

.portal-designation-hero__status span {
  color: #ff7144;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portal-designation-hero__status strong {
  font-size: 1.15rem;
  line-height: 1.35;
}

.portal-designation-hero__status small {
  color: rgb(255 255 255 / 68%);
  line-height: 1.5;
}

.portal-designation-checks {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.portal-designation-checks li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--portal-line);
  border-radius: 14px;
  background: #fff;
}

.portal-designation-checks li > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  font-weight: 900;
}

.portal-designation-checks .is-complete > span {
  color: #fff;
  background: var(--portal-success);
}

.portal-designation-checks .is-outstanding > span {
  color: #9b3f24;
  background: #fff0e9;
}

.portal-designation-checks h3,
.portal-designation-checks p {
  margin: 0;
}

.portal-designation-checks h3 {
  margin-bottom: 3px;
  font-size: 1rem;
}

.portal-designation-checks p {
  color: var(--portal-muted);
  font-size: 0.9rem;
}

.portal-designation-checks a {
  color: var(--portal-green);
  font-size: 0.86rem;
  font-weight: 750;
  white-space: nowrap;
}

.portal-designation-portfolio {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.portal-designation-portfolio article {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  padding: 20px;
  border-radius: 16px;
  background: #f7f4ed;
}

.portal-designation-portfolio article > span {
  color: var(--portal-orange);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.portal-designation-portfolio h3,
.portal-designation-portfolio p {
  margin: 0;
}

.portal-designation-portfolio h3 {
  margin-bottom: 7px;
  font-size: 1rem;
}

.portal-designation-portfolio p {
  color: var(--portal-muted);
  font-size: 0.9rem;
}

.portal-designation-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
}

.portal-designation-links a {
  color: var(--portal-green);
  font-weight: 750;
}

@media (max-width: 760px) {
  .portal-designation-hero,
  .portal-designation-portfolio {
    grid-template-columns: 1fr;
  }

  .portal-designation-checks li {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .portal-designation-checks a {
    grid-column: 2;
  }
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.portal-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  display: flex;
  width: var(--portal-sidebar-width);
  flex-direction: column;
  padding: 26px 18px 20px;
  overflow-y: auto;
  background: #111d18;
  color: #fff;
  box-shadow: 12px 0 40px rgb(14 27 21 / 12%);
}

.portal-sidebar__brand {
  display: block;
  padding: 0 12px 24px;
  border-bottom: 1px solid rgb(255 255 255 / 12%);
}

.portal-sidebar__brand img {
  width: 192px;
}

.portal-sidebar__account {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  margin: 18px 0 12px;
  padding: 14px 12px;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 12px;
  background: rgb(255 255 255 / 4%);
}

.portal-sidebar__account div,
.portal-sidebar__account strong,
.portal-sidebar__account span:not(.portal-avatar) {
  display: block;
  min-width: 0;
}

.portal-sidebar__account small,
.portal-sidebar__account span:not(.portal-avatar) {
  color: #aab8b1;
  font-size: 0.72rem;
}

.portal-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--portal-orange);
  font-weight: 900;
}

.portal-sidebar__nav {
  display: grid;
  gap: 4px;
}

.portal-sidebar__label {
  margin: 19px 12px 5px;
  color: #788b81;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portal-sidebar__label:first-child {
  margin-top: 0;
}

.portal-sidebar__nav a {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 9px;
  color: #dce5e0;
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
}

.portal-nav-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #aebcb5;
  font-size: 1rem;
  font-weight: 900;
}

.portal-sidebar__nav a:hover,
.portal-sidebar__nav a:focus-visible,
.portal-sidebar__nav a[aria-current="page"] {
  background: rgb(255 255 255 / 10%);
  color: #fff;
}

.portal-sidebar__nav a[aria-current="page"] {
  box-shadow: inset 3px 0 var(--portal-orange);
}

.portal-sidebar__note {
  display: grid;
  gap: 3px;
  margin: auto 12px 0;
  padding-top: 24px;
  color: #87968e;
  font-size: 0.7rem;
}

.portal-sidebar__note strong {
  color: #d9e1dd;
  font-size: 0.76rem;
}

.portal-has-shell .portal-header,
.portal-has-shell .portal-main,
.portal-has-shell .site-footer {
  margin-left: var(--portal-sidebar-width);
}

.portal-has-shell .portal-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--portal-line);
  background: rgb(255 255 255 / 96%);
  color: var(--portal-text);
  backdrop-filter: blur(12px);
}

.portal-has-shell .portal-header__inner {
  width: calc(100% - 64px);
  max-width: 1320px;
}

.portal-has-shell .portal-nav a,
.portal-has-shell .portal-link-button {
  color: var(--portal-text);
}

.portal-topbar-heading {
  display: grid;
  margin-right: auto;
}

.portal-has-shell .portal-nav .portal-verification-notice {
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff0e7;
  color: #8a3519;
  font-weight: 700;
  white-space: nowrap;
}

#notifications,
#provider-verifications,
#provider-feedback {
  scroll-margin-top: 110px;
}

.portal-topbar-heading small {
  color: var(--portal-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.portal-topbar-heading strong {
  font-size: 0.98rem;
}

.portal-topbar-title {
  margin-right: auto;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.portal-menu-button,
.portal-sidebar-backdrop {
  display: none;
}

.portal-has-shell .portal-main {
  width: auto;
  max-width: 1320px;
  margin-right: auto;
  padding-right: 32px;
  padding-left: 32px;
}

.portal-body {
  min-height: 100vh;
  background: var(--portal-cream);
  color: var(--portal-text);
}

.portal-header {
  background: var(--portal-navy);
  color: #fff;
}

.portal-header__inner {
  width: min(1120px, calc(100% - 40px));
  min-height: 76px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.portal-brand img {
  width: 180px;
}

.portal-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.portal-topbar-action {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--portal-line);
  border-radius: 9px;
  background: #fff;
}

.portal-topbar-account {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.portal-avatar--small {
  width: 34px;
  height: 34px;
  color: #fff;
  font-size: 0.72rem;
}

.portal-nav a,
.portal-link-button {
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
}

.portal-link-button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.portal-main {
  width: min(1120px, calc(100% - 40px));
  min-height: 62vh;
  margin-inline: auto;
  padding-top: 52px;
  padding-bottom: 88px;
}

.portal-main--narrow {
  width: min(640px, calc(100% - 40px));
}

.portal-main--form {
  width: min(860px, calc(100% - 40px));
}

.portal-main--application-start {
  width: min(1060px, calc(100% - 40px));
}

.portal-eyebrow {
  margin: 0 0 8px;
  color: var(--portal-orange);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.portal-title {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.portal-lead {
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--portal-muted);
  font-size: 1.1rem;
}

.portal-card {
  margin-top: 36px;
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid var(--portal-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 34px rgb(23 35 30 / 6%);
}

.portal-card h2 {
  margin: 0 0 8px;
  font-size: 1.7rem;
}

.portal-form {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}

.portal-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.portal-form__row--password {
  align-items: start;
}

.portal-field {
  display: grid;
  gap: 7px;
}

.portal-field label {
  font-weight: 800;
}

.portal-field input,
.portal-field select,
.portal-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #aaa99f;
  border-radius: 9px;
  background: #fff;
  color: var(--portal-text);
  font: inherit;
}

.portal-field textarea {
  resize: vertical;
}

.portal-field input:focus,
.portal-field select:focus,
.portal-field textarea:focus {
  border-color: var(--portal-orange);
  outline: 3px solid rgb(239 90 40 / 20%);
}

.portal-subsection {
  display: grid;
  gap: 18px;
  padding-top: 8px;
}

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

.portal-subsection h3 {
  margin: 0;
  font-size: 1.25rem;
}

.portal-corporate-application {
  gap: 28px;
}

.portal-corporate-block {
  display: grid;
  gap: 18px;
  padding-top: 26px;
  border-top: 1px solid var(--portal-line);
}

.portal-code-acceptance {
  background: #fffaf6;
  border: 1px solid var(--portal-line);
  border-left: 4px solid var(--portal-orange);
  border-radius: 14px;
  margin-top: 28px;
  padding: 24px;
  scroll-margin-top: 90px;
}

.portal-code-acceptance > p { margin: 0; }

.portal-code-acceptance__actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.portal-code-acceptance__actions .portal-button { width: auto; }

.portal-code-acceptance .portal-check span {
  display: grid;
  gap: 4px;
}

.portal-code-acceptance .portal-check small {
  color: var(--portal-muted);
  font-size: 0.86rem;
  font-weight: 500;
}

.portal-signed-date {
  background: #e8f2ec;
  border-radius: 10px;
  color: #174f35;
  padding: 12px 14px;
}

.portal-inline-evidence-slot {
  display: grid;
  gap: 13px;
  padding: 18px;
  border: 1px solid var(--portal-line);
  border-left: 4px solid var(--portal-orange);
  border-radius: 12px;
  background: #fffaf6;
  scroll-margin-top: 90px;
}

.portal-inline-evidence-slot h4,
.portal-inline-evidence-slot p {
  margin: 0;
}

.portal-inline-evidence-slot h4 {
  font-size: 0.98rem;
}

.portal-inline-evidence-slot p,
.portal-inline-evidence-slot small {
  color: var(--portal-muted);
  font-size: 0.8rem;
}

.portal-inline-evidence-slot__files {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.portal-inline-evidence-slot__files li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 8px;
  background: #edf4ef;
  font-size: 0.82rem;
}

.portal-file-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.portal-text-button--danger {
  color: var(--portal-danger);
}

.portal-replacement-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid #ed9f83;
  border-radius: 10px;
  background: #fff5ef;
}

.portal-replacement-notice[hidden] {
  display: none;
}

.portal-replacement-notice > div {
  display: grid;
  gap: 2px;
}

.portal-replacement-notice span {
  color: var(--portal-muted);
  font-size: 0.8rem;
}

.portal-inline-evidence-form {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(150px, 0.45fr) auto;
  gap: 12px;
  align-items: end;
}

.portal-inline-evidence-form .portal-field {
  gap: 5px;
}

.portal-inline-evidence-form .portal-field label {
  font-size: 0.78rem;
}

.portal-inline-evidence-form .portal-button {
  min-height: 48px;
}

.portal-save-state {
  color: var(--portal-muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.portal-save-state.is-unsaved {
  color: #8a4f20;
}

fieldset.portal-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

fieldset.portal-field legend {
  margin-bottom: 7px;
  font-weight: 800;
}

.portal-inline-choices,
.portal-checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.portal-inline-choices label,
.portal-checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid var(--portal-line);
  border-radius: 10px;
  background: #fff;
  font-weight: 700;
}

.portal-inline-choices input,
.portal-checkbox-grid input {
  width: auto;
  min-height: auto;
  margin: 0;
}

.portal-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-checkbox-grid .portal-checkbox-option {
  align-items: flex-start;
}

.portal-checkbox-option > input {
  margin-top: 3px;
}

.portal-checkbox-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
  line-height: 1.35;
}

.portal-checkbox-copy strong {
  font: inherit;
}

.portal-activity-selector {
  display: grid;
  gap: 10px;
}

.portal-activity-group {
  background: #fff;
  border: 1px solid var(--portal-line);
  border-radius: 12px;
  overflow: clip;
}

.portal-activity-group summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-weight: 800;
  justify-content: space-between;
  list-style: none;
  padding: 14px 16px;
}

.portal-activity-group summary::-webkit-details-marker { display: none; }
.portal-activity-group summary::after { content: "+"; font-size: 1.25rem; }
.portal-activity-group[open] summary::after { content: "−"; }
.portal-activity-group summary span { color: var(--portal-muted); font-size: 0.8rem; margin-left: auto; margin-right: 12px; }
.portal-activity-group .portal-checkbox-grid { border-top: 1px solid var(--portal-line); padding: 14px; }

.portal-checkbox-copy small {
  color: var(--portal-muted);
  font-size: 0.86rem;
  font-weight: 500;
}

.portal-application-start-heading > div {
  max-width: 800px;
}

.portal-application-start-card > .portal-section-heading h2 {
  margin: 7px 0 5px;
  font-size: clamp(1.55rem, 3vw, 2rem);
}

.portal-application-start-card > .portal-section-heading p:last-child {
  max-width: 700px;
  margin: 0;
  color: var(--portal-muted);
  line-height: 1.5;
}

.portal-category-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  border: 0;
}

.portal-category-picker label {
  position: relative;
  display: block;
  cursor: pointer;
}

.portal-category-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.portal-category-picker label > span {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 205px;
  padding: 25px 25px 23px;
  border: 1px solid var(--portal-line);
  border-radius: 15px;
  background: #fff;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.portal-category-picker label > span::after {
  position: absolute;
  top: 21px;
  right: 21px;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 2px solid #aaa99f;
  border-radius: 50%;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
  content: "";
}

.portal-category-picker label:hover > span {
  border-color: #b8afa2;
  transform: translateY(-2px);
}

.portal-category-picker input:focus-visible + span {
  outline: 3px solid rgb(239 90 40 / 25%);
  outline-offset: 2px;
}

.portal-category-picker input:checked + span {
  border-color: var(--portal-orange);
  background: #fffaf7;
  box-shadow: 0 10px 26px rgb(239 90 40 / 11%);
}

.portal-category-picker input:checked + span::after {
  border-color: var(--portal-orange);
  background: var(--portal-orange);
  content: "✓";
}

.portal-category-picker strong {
  max-width: calc(100% - 38px);
  font-size: 1.25rem;
}

.portal-category-picker small {
  color: var(--portal-muted);
  font-size: 0.91rem;
  line-height: 1.5;
}

.portal-category-picker em {
  align-self: end;
  margin-top: 10px;
  padding-top: 13px;
  border-top: 1px solid var(--portal-line);
  color: var(--portal-green);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 850;
}

.portal-category-select-fallback {
  display: none;
}

.portal-selected-category {
  position: relative;
  display: grid;
  gap: 5px;
  margin: 22px 0 6px;
  padding: 20px 22px 20px 26px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--portal-navy);
  color: #fff;
}

.portal-selected-category::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--portal-orange);
  content: "";
}

.portal-selected-category > span {
  color: #ff9b76;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.portal-selected-category > strong {
  font-size: 1.1rem;
}

.portal-selected-category > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.5;
}

.portal-process-note {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-left: 4px solid var(--portal-orange);
  background: var(--portal-sand);
  color: var(--portal-muted);
  font-size: 0.9rem;
}

.portal-process-note strong {
  color: var(--portal-text);
}

.portal-form-section-heading {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-top: 10px;
}

.portal-form-section-heading > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--portal-green);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 900;
}

.portal-form-section-heading h3,
.portal-form-section-heading p {
  margin: 0;
}

.portal-form-section-heading p {
  margin-top: 4px;
  color: var(--portal-muted);
  font-size: 0.9rem;
}

.portal-role-summary {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  overflow: hidden;
  border: 1px solid rgb(38 60 50 / 22%);
  border-radius: 12px;
  background: #f2f6f3;
}

.portal-role-summary::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--portal-orange);
  content: "";
}

.portal-role-summary > span {
  color: var(--portal-success);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-role-summary > strong {
  font-size: 1.15rem;
}

.portal-role-summary p {
  margin: 0;
  color: var(--portal-muted);
  font-size: 0.9rem;
}

.portal-conditional-panel {
  display: grid;
  gap: 20px;
  margin-top: 8px;
  padding: 24px;
  border: 1px solid var(--portal-line);
  border-radius: 14px;
  background: #fbfaf7;
}

.portal-conditional-panel--always {
  background: #fffaf5;
}

.portal-inline-evidence-status {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #e8f3ed;
  color: #174f35;
  font-weight: 700;
}

.portal-scope-builder {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.portal-scope-row--builder {
  background: #fff;
}

.portal-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 700;
}

.portal-check input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.portal-hint {
  color: var(--portal-muted);
  font-size: 0.84rem;
}

.portal-file-feedback {
  color: var(--portal-muted);
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.45;
  margin-top: 7px;
}

.portal-file-feedback:empty { display: none; }
.portal-file-feedback.is-error { color: #a92f17; }
.portal-file-feedback.is-success { color: #1e6249; }

.portal-profile-context {
  background: #f1f6f3;
  border-left: 4px solid var(--portal-green);
  border-radius: 10px;
  color: var(--portal-text);
  line-height: 1.55;
  margin: 16px 0;
  padding: 14px 16px;
}

.portal-profile-savebar {
  position: sticky;
  top: 12px;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 15px 16px;
  border: 1px solid #c9d8d1;
  border-radius: 12px;
  background: #f3f8f5;
  box-shadow: 0 8px 22px rgb(18 43 35 / 10%);
}

.portal-profile-savebar > div {
  display: grid;
  gap: 3px;
}

.portal-profile-savebar.is-unsaved {
  border-color: #d8a980;
  background: #fff7ef;
}

.portal-button--small {
  min-height: 42px;
  padding: 10px 16px;
  white-space: nowrap;
}

.portal-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 6px;
}

@media (max-width: 700px) {
  .portal-profile-savebar {
    position: static;
    align-items: stretch;
    flex-direction: column;
  }

  .portal-profile-savebar .portal-button {
    width: 100%;
  }
}

.portal-inline-draft-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 14px 0 26px;
  padding: 16px 18px;
  border: 1px solid var(--portal-border);
  border-left: 4px solid var(--portal-orange);
  border-radius: 12px;
  background: var(--portal-cream);
}

.portal-inline-draft-action > div {
  display: grid;
  gap: 4px;
}

.portal-inline-draft-action span {
  color: var(--portal-muted);
  line-height: 1.45;
}

.portal-inline-draft-action .portal-button {
  flex: 0 0 auto;
}

@media (max-width: 700px) {
  .portal-inline-draft-action {
    align-items: stretch;
    flex-direction: column;
  }

  .portal-inline-draft-action .portal-button {
    width: 100%;
  }
}

.portal-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid var(--portal-orange);
  border-radius: 999px;
  background: var(--portal-orange);
  color: #fff;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.portal-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.portal-button--secondary {
  border-color: var(--portal-text);
  background: transparent;
  color: var(--portal-text);
}

.portal-button--danger {
  border-color: var(--portal-danger);
  background: var(--portal-danger);
}

.portal-message {
  display: none;
  margin: 20px 0 0;
  padding: 14px 16px;
  border-left: 4px solid currentColor;
  background: var(--portal-sand);
}

.portal-message.is-visible {
  display: block;
}

.portal-message.is-error {
  color: var(--portal-danger);
}

.portal-message.is-success {
  color: var(--portal-success);
}

.portal-message.is-warning {
  color: #7a4b0b;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.portal-summary-card {
  min-height: 210px;
  padding: 30px;
  border: 1px solid var(--portal-line);
  border-radius: 18px;
  background: #fff;
}

.portal-summary-card h2 {
  margin: 8px 0 10px;
  font-size: 1.5rem;
}

.portal-summary-card p {
  color: var(--portal-muted);
}

.portal-status {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--portal-sand);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.portal-empty {
  color: var(--portal-muted);
  font-style: italic;
}

.portal-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.portal-record-list {
  display: grid;
  gap: 0;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.portal-record,
.portal-evidence-review {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--portal-line);
}

.portal-record:first-child,
.portal-evidence-review:first-child {
  border-top: 1px solid var(--portal-line);
}

.portal-record div,
.portal-evidence-review > div:first-child {
  display: grid;
  gap: 3px;
}

.portal-record span,
.portal-evidence-review span,
.portal-timeline span {
  color: var(--portal-muted);
}

.portal-record .portal-record__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.portal-record--membership {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.portal-record--membership > .portal-status {
  justify-self: start;
}

.portal-record--membership > div {
  min-width: 0;
  overflow-wrap: anywhere;
}

.portal-record--membership .portal-record__actions {
  grid-column: 1 / -1;
  justify-content: flex-start;
}

.portal-professional-standing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  gap: 32px;
  align-items: center;
  margin-bottom: 24px;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 18px;
  background: var(--portal-navy);
  color: #fff;
  box-shadow: 0 14px 34px rgb(23 35 30 / 16%);
}

.portal-professional-standing h2,
.portal-professional-standing p {
  color: inherit;
}

.portal-professional-standing h2 {
  margin: 5px 0 8px;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
}

.portal-professional-standing > div > p:last-child {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.portal-professional-standing dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
}

.portal-professional-standing dl > div {
  padding: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.portal-professional-standing dl > div:last-child {
  border-right: 0;
}

.portal-professional-standing dt {
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-professional-standing dd {
  margin: 0;
  font-weight: 700;
}

.portal-professional-standing a {
  color: #fff;
}

.portal-professional-title-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.portal-professional-title-card {
  padding: 24px;
  border: 1px solid var(--portal-line);
  border-radius: 14px;
  background: #fff;
}

.portal-professional-title-card.is-expired {
  background: #f8f5f2;
}

.portal-professional-title-card__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.portal-professional-title-card h3 {
  margin: 4px 0 18px;
  font-size: 1.35rem;
}

.portal-professional-title-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  margin: 0 0 20px;
}

.portal-professional-title-card dt {
  color: var(--portal-muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.portal-professional-title-card dd {
  margin: 3px 0 0;
  font-weight: 650;
}

.portal-professional-scopes {
  padding-top: 18px;
  border-top: 1px solid var(--portal-line);
}

.portal-professional-scopes ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.portal-professional-scopes li {
  display: grid;
  gap: 2px;
  padding: 9px 12px;
  border: 1px solid #b9d2c4;
  border-radius: 10px;
  background: #f1f7f3;
}

.portal-professional-scopes li.is-expired {
  border-color: #e2b7a8;
  background: #fff3ef;
}

.portal-professional-scopes small,
.portal-muted-copy {
  color: var(--portal-muted);
}

.portal-guidance-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1fr);
  gap: 40px;
  margin-top: 24px;
  padding: clamp(24px, 4vw, 40px);
  border-left: 4px solid var(--portal-orange);
  background: #f4f0e9;
}

.portal-guidance-card h2,
.portal-guidance-card p {
  margin: 0;
}

.portal-guidance-card h2 {
  margin-top: 6px;
}

.portal-guidance-card > p {
  color: var(--portal-muted);
  line-height: 1.7;
}

.portal-public-profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 24px;
  align-items: start;
  margin-top: 32px;
}

.portal-public-editor {
  margin-top: 0;
}

.portal-public-editor .portal-section-heading {
  margin-bottom: 6px;
}

.portal-public-information-heading {
  margin-top: 30px;
}

.portal-photo-editor {
  display: grid;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--portal-line);
  border-radius: 14px;
  background: #fbfaf7;
}

.portal-photo-editor__current {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.portal-photo-editor__current p,
.portal-photo-cropper > p {
  margin: 10px 0 0;
  color: var(--portal-muted);
  font-size: 0.84rem;
}

.portal-photo-preview-frame,
.portal-public-preview__photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 16px;
  background: #263a32;
}

.portal-photo-preview-frame img,
.portal-public-preview__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portal-photo-preview-frame span,
.portal-public-preview__photo span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 850;
}

.portal-photo-cropper {
  display: grid;
  gap: 14px;
}

.portal-photo-cropper[hidden] {
  display: none;
}

.portal-photo-cropper canvas {
  width: min(100%, 420px);
  height: auto;
  border-radius: 16px;
  cursor: grab;
  touch-action: none;
}

.portal-photo-cropper canvas:active {
  cursor: grabbing;
}

.portal-photo-cropper label {
  display: grid;
  gap: 8px;
  width: min(100%, 420px);
  font-weight: 800;
}

.portal-photo-cropper input[type="range"] {
  width: 100%;
  accent-color: var(--portal-orange);
}

.portal-photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.portal-photo-remove {
  width: fit-content;
  color: #a1382b;
  text-decoration: underline;
}

.portal-public-editor > .portal-button {
  width: fit-content;
  min-width: 210px;
}

.portal-public-consent {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid #d8cfc2;
  border-radius: 12px;
  background: #f8f3eb;
}

.portal-checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
}

.portal-checkbox input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--portal-orange);
}

.portal-checkbox span {
  display: grid;
  gap: 4px;
  color: var(--portal-muted);
  line-height: 1.5;
}

.portal-checkbox strong {
  color: var(--portal-text);
}

.portal-public-consent > p {
  margin: 0 0 0 32px;
  color: var(--portal-muted);
  font-size: 0.82rem;
}

.portal-public-preview {
  position: sticky;
  top: 96px;
  min-width: 0;
  padding: clamp(28px, 4vw, 40px);
  border-radius: 18px;
  background: var(--portal-navy);
  color: #fff;
  box-shadow: 0 16px 36px rgb(23 35 30 / 16%);
}

.portal-public-preview h2,
.portal-public-preview h3,
.portal-public-preview p {
  color: inherit;
}

.portal-public-preview__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.portal-public-preview__topline .portal-step {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
}

.portal-public-preview .portal-status {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.portal-public-preview > h2 {
  margin: 5px 0 12px;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
}

.portal-public-preview__photo {
  width: min(168px, 46%);
  margin: 0 0 22px;
  background: rgba(255, 255, 255, 0.12);
}

.portal-public-preview__photo span {
  font-size: 2.2rem;
}

.portal-public-preview__biography {
  margin: 0;
  color: rgba(255, 255, 255, 0.72) !important;
  line-height: 1.65;
  white-space: pre-line;
}

.portal-public-preview__contact {
  display: inline-block;
  margin-top: 18px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #ff9b76;
  font-weight: 750;
}

.portal-public-preview__contact[hidden] {
  display: none;
}

.portal-public-preview__record {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.portal-public-preview__record .portal-section-heading h3 {
  margin: 0;
}

.portal-public-preview__record .portal-section-heading p,
.portal-public-preview .portal-empty {
  color: rgba(255, 255, 255, 0.62);
}

.portal-public-record-section + .portal-public-record-section {
  margin-top: 24px;
}

.portal-public-record-label {
  margin: 0 0 10px;
  color: #ff9b76;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.portal-public-designation {
  padding: 18px;
  border: 1px solid rgba(255, 155, 118, 0.42);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(247, 86, 37, 0.18), rgba(255, 255, 255, 0.06));
}

.portal-public-designation + .portal-public-designation {
  margin-top: 10px;
}

.portal-public-designation span {
  color: #ff9b76;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-public-designation h3 {
  margin: 6px 0;
  color: #fff;
  font-size: 1.05rem;
}

.portal-public-designation p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.84rem;
}

.portal-public-preview .portal-claim-review {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: none;
}

.portal-public-preview .portal-claim-review p {
  color: rgba(255, 255, 255, 0.7);
}

.portal-readiness-panel {
  margin-top: 26px;
  padding: 20px;
  border-radius: 12px;
  background: #f4efe5;
  color: var(--portal-text);
}

.portal-readiness-panel.is-ready {
  background: #e7f1eb;
}

.portal-readiness-panel h3 {
  margin: 0;
  color: inherit;
  font-size: 1rem;
}

.portal-readiness-panel ul {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.portal-readiness-panel li {
  position: relative;
  padding-left: 24px;
  line-height: 1.45;
}

.portal-readiness-panel li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--portal-orange);
  font-weight: 900;
  content: "○";
}

.portal-readiness-panel.is-ready li::before {
  color: var(--portal-success);
  content: "✓";
}

.portal-public-admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  gap: 24px;
  align-items: start;
  margin-top: 32px;
}

.portal-public-admin-review {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.portal-public-admin-review > .portal-card {
  margin-top: 0;
}

.portal-public-admin-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-public-admin-facts > div:last-child {
  grid-column: 1 / -1;
}

.portal-public-admin-facts a {
  color: var(--portal-orange);
  font-weight: 750;
}

.portal-public-admin-actions {
  display: grid;
  gap: 20px;
}

.portal-public-admin-actions > div > h2,
.portal-public-admin-actions > div > p {
  margin: 5px 0 0;
}

.portal-public-admin-actions > div > p {
  color: var(--portal-muted);
}

.portal-public-admin-actions .portal-decision-panel {
  display: grid;
  gap: 16px;
}

.portal-public-admin-actions .portal-decision-panel > div:first-child p {
  margin-top: 4px;
  color: var(--portal-muted);
  font-size: 0.88rem;
}

.portal-public-unpublish {
  border-color: #e2c0ba;
  background: #fff7f5;
}

.portal-public-admin-titles {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.portal-public-admin-titles .portal-claim-review {
  margin-top: 0;
}

.portal-public-organisation-contact {
  display: grid;
  gap: 10px;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.portal-public-organisation-contact a {
  width: fit-content;
  color: #ff9b76;
  font-weight: 750;
}

.portal-public-organisation-contact [hidden] {
  display: none;
}

.portal-organisation-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 34px 0 24px;
  padding: 0;
  border: 1px solid var(--portal-line);
  border-radius: 16px;
  background: var(--portal-line);
}

.portal-organisation-summary article {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 138px;
  padding: 24px;
  background: #fff;
}

.portal-organisation-summary span {
  color: var(--portal-orange);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-organisation-summary strong {
  font-size: 1.35rem;
}

.portal-organisation-summary small {
  color: var(--portal-muted);
  line-height: 1.45;
}

.portal-organisations-heading {
  align-items: flex-end;
}

.portal-organisations-heading > div {
  max-width: 820px;
}

.portal-organisations-heading .portal-button {
  flex: 0 0 auto;
}

.portal-organisations-overview {
  margin-bottom: 0;
}

.portal-pending-invitations {
  margin-top: clamp(42px, 6vw, 68px);
}

.portal-invitation-guidance {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.portal-invitation-guidance article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--portal-line);
  border-radius: 14px;
  background: #fff;
}

.portal-invitation-guidance article > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--portal-navy);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
}

.portal-invitation-guidance strong {
  font-size: 1rem;
}

.portal-invitation-guidance p {
  margin: 5px 0 0;
  color: var(--portal-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.portal-invitation-list {
  gap: 14px;
  margin-top: 0;
}

.portal-invitation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 26px;
  border: 1px solid var(--portal-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgb(23 35 30 / 7%);
}

.portal-invitation__identity h3 {
  margin: 13px 0 5px;
  font-size: 1.35rem;
}

.portal-invitation__identity p {
  max-width: 720px;
  margin: 0 0 9px;
  color: var(--portal-muted);
  line-height: 1.5;
}

.portal-invitation__identity small {
  color: var(--portal-muted);
}

.portal-status--highlight {
  background: #ffe6dc;
  color: #a73711;
}

.portal-invitation__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.portal-invitation__actions .portal-button {
  white-space: nowrap;
}

.portal-organisation-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.portal-organisation-card {
  display: grid;
  gap: 32px;
  min-height: 285px;
  padding: 28px;
  border: 1px solid var(--portal-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgb(23 35 30 / 7%);
}

.portal-organisation-card__topline,
.portal-organisation-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.portal-organisation-card__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--portal-navy);
  color: #fff;
  font-weight: 900;
}

.portal-organisation-card h3 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.portal-organisation-card > div:nth-child(2) p {
  margin: 7px 0 0;
  color: var(--portal-muted);
}

.portal-organisation-card__footer {
  align-self: end;
  padding-top: 20px;
  border-top: 1px solid var(--portal-line);
}

.portal-organisation-card__footer > span {
  color: var(--portal-muted);
  font-size: 0.82rem;
}

.portal-organisation-card__footer a {
  flex: 0 0 auto;
  color: var(--portal-text);
  font-weight: 850;
}

.portal-empty-workspace {
  grid-column: 1 / -1;
  padding: clamp(28px, 5vw, 50px);
  border: 1px dashed #c9c1b6;
  border-radius: 18px;
  background: var(--portal-sand);
  text-align: center;
}

.portal-empty-workspace > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--portal-navy);
  color: #fff;
  font-weight: 900;
}

.portal-empty-workspace h3 {
  margin: 0 0 6px;
  font-size: 1.25rem;
}

.portal-empty-workspace p {
  max-width: 560px;
  margin: 0 auto 22px;
  color: var(--portal-muted);
  line-height: 1.5;
}

.portal-empty-workspace--compact {
  padding: 30px;
}

.portal-empty-workspace--compact p {
  margin-bottom: 0;
}

.portal-relationship-boundary {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 32px;
  align-items: center;
  margin-top: clamp(52px, 7vw, 82px);
  padding: clamp(26px, 5vw, 46px);
  border-radius: 18px;
  background: var(--portal-navy);
  color: #fff;
}

.portal-relationship-boundary h2 {
  margin: 7px 0 0;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.portal-relationship-boundary > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.65;
}

.portal-account-heading > div {
  max-width: 820px;
}

.portal-account-boundary {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 32px;
  align-items: center;
  margin: 34px 0 24px;
  padding: clamp(26px, 5vw, 42px);
  border-radius: 18px;
  background: var(--portal-navy);
  color: #fff;
  box-shadow: 0 14px 34px rgb(23 35 30 / 16%);
}

.portal-account-boundary h2 {
  margin: 12px 0 0;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.portal-account-boundary > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.65;
}

.portal-account-boundary .portal-status {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.portal-account-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 24px;
  align-items: start;
}

.portal-account-form {
  margin-top: 0;
  padding: clamp(26px, 4vw, 42px);
}

.portal-account-form .portal-section-heading h2 {
  margin: 7px 0 5px;
  font-size: 1.65rem;
}

.portal-account-form .portal-section-heading p:last-child {
  margin: 0;
  color: var(--portal-muted);
}

.portal-form-section {
  display: grid;
  gap: 18px;
  margin: 30px 0 0;
  padding: 28px 0 0;
  border: 0;
  border-top: 1px solid var(--portal-line);
}

.portal-form-section legend {
  padding: 0;
  font-size: 1.1rem;
  font-weight: 900;
}

.portal-form-section .portal-field > small {
  color: var(--portal-muted);
  line-height: 1.45;
}

.portal-account-save {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid var(--portal-line);
}

.portal-account-save > span {
  color: var(--portal-muted);
  font-size: 0.82rem;
}

.portal-account-sidebar {
  display: grid;
  gap: 18px;
}

.portal-account-sidebar .portal-card {
  margin-top: 0;
  padding: 26px;
}

.portal-account-sidebar h2 {
  margin: 8px 0;
  font-size: 1.3rem;
}

.portal-account-sidebar p:not(.portal-step) {
  margin: 0 0 18px;
  color: var(--portal-muted);
  line-height: 1.55;
}

.portal-account-sidebar a {
  color: var(--portal-text);
  font-weight: 850;
}

.portal-account-sidebar .portal-account-security {
  border-color: var(--portal-navy);
  background: var(--portal-navy);
  color: #fff;
}

.portal-account-security .portal-status {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.portal-account-sidebar .portal-account-security p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.7);
}

.portal-notification-centre .portal-section-heading > div:first-child > p:last-child {
  max-width: 520px;
  margin: 5px 0 0;
  color: var(--portal-muted);
}

.portal-notification-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.portal-notification-tools label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--portal-muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.portal-notification-tools select {
  min-height: 38px;
  padding: 7px 32px 7px 10px;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  background: #fff;
  color: var(--portal-text);
  font: inherit;
}

.portal-notification-list {
  gap: 12px;
}

.portal-notification-record {
  display: grid;
  gap: 15px;
  padding: 20px;
  border: 1px solid var(--portal-line);
  border-radius: 14px;
  background: #fff;
}

.portal-notification-record.is-unread {
  border-left: 4px solid var(--portal-orange);
  background: #fffaf7;
}

.portal-notification-record.is-historical {
  background: #faf9f7;
}

.portal-notification-record__heading,
.portal-notification-record__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.portal-notification-record__heading time {
  color: var(--portal-muted);
  font-size: 0.78rem;
}

.portal-notification-record__body strong {
  font-size: 1.05rem;
}

.portal-notification-record__body p {
  margin: 5px 0 0;
  color: var(--portal-muted);
  line-height: 1.5;
}

.portal-notification-record__actions {
  padding-top: 13px;
  border-top: 1px solid var(--portal-line);
}

.portal-notification-record__actions a {
  color: var(--portal-text);
  font-weight: 850;
}

.portal-notification-tools .portal-text-button:disabled {
  cursor: default;
  opacity: 0.45;
}

.portal-organisation-details-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}

.portal-organisation-details-grid .portal-card {
  margin-top: 0;
}

.portal-organisation-people-card .portal-record-list {
  margin-top: 18px;
}

.portal-organisation-person {
  grid-template-columns: minmax(0, 1fr) auto;
}

.portal-organisation-person > div small {
  color: var(--portal-orange);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.portal-organisation-person .portal-text-button {
  grid-column: 1 / -1;
  width: fit-content;
}

.portal-representative-note {
  margin-top: 20px;
  padding: 16px;
  border-radius: 10px;
  background: var(--portal-sand);
  color: var(--portal-muted);
}

.portal-section-block {
  margin-top: clamp(52px, 7vw, 82px);
  padding: 0;
}

.portal-section-heading--intro {
  margin-bottom: 26px;
}

.portal-section-heading--intro h2 {
  max-width: 800px;
  margin: 8px 0;
  font-size: clamp(1.75rem, 3.5vw, 2.65rem);
}

.portal-section-heading--intro p:last-child {
  max-width: 760px;
  margin: 0;
  color: var(--portal-muted);
}

.portal-organisation-publication .portal-public-profile-layout {
  margin-top: 0;
}

.portal-organisation-publication .portal-public-editor {
  margin-top: 0;
}

.portal-organisation-publication .portal-public-editor > h3 {
  margin: 7px 0 4px;
  font-size: 1.55rem;
}

.portal-organisation-publication .portal-public-editor > p:not(.portal-step) {
  margin-top: 0;
  color: var(--portal-muted);
}

.portal-consent-card {
  padding: 22px;
  border: 1px solid #d8cfc2;
  border-radius: 14px;
  background: #fffaf5;
}

.portal-consent-card > p {
  margin: 12px 0 0 32px;
  color: var(--portal-muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.portal-organisation-relationships .portal-card {
  margin-top: 0;
}

.portal-invitation-card > h3,
.portal-allocation-card > h3,
.portal-invitation-history-card h3 {
  margin: 7px 0;
  font-size: 1.4rem;
}

.portal-invitation-card > p:not(.portal-step),
.portal-allocation-card > p:not(.portal-step),
.portal-invitation-history-card .portal-section-heading p:not(.portal-step) {
  margin-top: 0;
  color: var(--portal-muted);
}

.portal-invitation-card .portal-form {
  margin-top: 24px;
}

.portal-invitation-card .portal-hint {
  margin: -5px 0 0;
  line-height: 1.5;
}

.portal-allocation {
  display: grid;
  gap: 9px;
  margin-top: 26px;
  padding: 22px;
  border: 1px solid #c8dfd2;
  border-radius: 14px;
  background: #f2f8f4;
}

.portal-allocation--empty {
  border-color: var(--portal-line);
  background: #fbfaf7;
}

.portal-allocation .portal-status {
  width: fit-content;
}

.portal-allocation > strong {
  margin-top: 4px;
  font-size: 1.18rem;
}

.portal-allocation > span:not(.portal-status),
.portal-allocation > p {
  color: var(--portal-muted);
}

.portal-allocation > p {
  margin: 5px 0 8px;
  line-height: 1.5;
}

.portal-allocation .portal-button {
  width: fit-content;
}

.portal-invitation-history-card {
  margin-top: 24px !important;
}

.portal-record--resubmitted {
  margin: 3px 0;
  padding-right: 12px;
  padding-left: 12px;
  border: 1px solid #ed9f83;
  border-radius: 10px;
  background: #fffaf7;
}

.portal-queue-label {
  width: fit-content;
  margin-top: 4px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #f9e6de;
  color: var(--portal-danger) !important;
  font-size: 0.62rem !important;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.portal-review-queue .portal-record > div:first-child > small:not(.portal-queue-label) {
  margin-top: 2px;
  color: var(--portal-muted);
  font-size: 0.7rem;
}

.portal-queue-filter {
  display: grid;
  min-width: 140px;
  gap: 3px;
}

.portal-queue-filter label {
  color: var(--portal-muted);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.portal-queue-filter select {
  min-height: 38px;
  padding: 6px 30px 6px 10px;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  background: #fff;
  color: var(--portal-text);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
}

.is-historical {
  opacity: 0.62;
}

.portal-correction-workspace {
  margin-top: 28px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #edc4b6;
  border-radius: 16px;
  background: #fffaf7;
  box-shadow: 0 12px 28px rgb(80 48 34 / 8%);
}

.portal-correction-workspace__intro {
  padding: 24px 28px;
  border-bottom: 1px solid #edc4b6;
  background: #f9e6de;
}

.portal-correction-workspace h2,
.portal-correction-workspace h3,
.portal-correction-workspace p {
  margin: 0;
}

.portal-correction-workspace h2 {
  margin-top: 4px;
  font-size: 1.45rem;
}

.portal-correction-workspace__intro > p:last-child {
  margin-top: 8px;
  color: #68493e;
  white-space: pre-line;
}

.portal-correction-workspace__body {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 0;
}

.portal-correction-workspace__body > div {
  padding: 24px 28px;
}

.portal-correction-workspace__body > div + div {
  border-left: 1px solid #edc4b6;
  background: #fff;
}

.portal-correction-workspace h3 {
  margin-bottom: 14px;
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.portal-correction-list,
.portal-correction-summary {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.portal-correction-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 11px 13px;
  border: 1px solid #edc4b6;
  border-radius: 10px;
  background: #fff;
}

.portal-correction-list li > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #f9e6de;
  color: var(--portal-danger);
  font-weight: 900;
}

.portal-correction-list li > div {
  display: grid;
  gap: 2px;
}

.portal-correction-list a {
  color: var(--portal-orange);
  font-size: 0.78rem;
  font-weight: 800;
}

.portal-correction-list small {
  color: var(--portal-danger);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.portal-correction-list li.is-updated {
  border-color: #b8d5c4;
}

.portal-correction-list li.is-updated > span {
  background: #e2f1e8;
  color: var(--portal-success);
}

.portal-correction-list li.is-updated small {
  color: var(--portal-success);
}

.portal-correction-list li.is-review > span {
  background: var(--portal-sand);
  color: var(--portal-text);
}

.portal-correction-list li.is-review small {
  color: var(--portal-muted);
}

.portal-correction-summary li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px;
  color: var(--portal-success);
  font-size: 0.82rem;
}

.portal-correction-summary li.is-empty {
  display: block;
  color: var(--portal-muted);
  line-height: 1.55;
}

.portal-change-marker {
  width: fit-content;
  margin-bottom: 7px;
  padding: 4px 7px;
  border-radius: 999px;
  background: #f9e6de;
  color: var(--portal-danger) !important;
  font-size: 0.62rem !important;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.portal-change-marker.is-updated {
  background: #e2f1e8;
  color: var(--portal-success) !important;
}

.portal-upload {
  grid-template-columns: minmax(220px, 1fr) minmax(240px, 1fr) auto;
  align-items: end;
}

.portal-upload .portal-button {
  margin-bottom: 1px;
}

.portal-timeline {
  display: grid;
  gap: 18px;
  margin: 24px 0 0;
  padding-left: 24px;
}

.portal-actions--end {
  margin-top: 34px;
}

.portal-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.portal-application-history-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.portal-admin-grid .portal-card,
.portal-application-history-grid .portal-card {
  min-width: 0;
}

.portal-admin-specialist-queues {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.portal-admin-specialist-queues .portal-card {
  min-width: 0;
  margin: 0;
}

.portal-definition-list {
  display: grid;
  gap: 16px;
  margin: 26px 0 0;
}

.portal-definition-list div {
  display: grid;
  gap: 4px;
}

.portal-definition-list dt {
  color: var(--portal-muted);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.portal-definition-list dd {
  margin: 0;
  white-space: pre-line;
}

.portal-evidence-review {
  grid-template-columns: minmax(0, 1fr) auto;
}

.portal-inline-actions {
  display: flex !important;
  flex-direction: row;
  gap: 12px !important;
}

.portal-text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--portal-orange);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.portal-text-button:disabled {
  color: var(--portal-muted);
  cursor: default;
}

.portal-revisions {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.portal-revisions details {
  overflow: hidden;
  border: 1px solid var(--portal-line);
  border-radius: 9px;
}

.portal-revisions summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  cursor: pointer;
  font-weight: 800;
}

.portal-revisions summary small {
  color: var(--portal-muted);
  font-weight: 500;
}

.portal-revision-archive__content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  padding: 16px;
  border-top: 1px solid var(--portal-line);
  background: #fbfaf7;
}

.portal-revision-archive__content p {
  margin: 0;
  color: var(--portal-muted);
  font-size: 0.82rem;
}

.portal-revision-archive__content p strong {
  color: var(--portal-text);
}

.portal-revision-archive__content ul {
  grid-column: 1 / -1;
  margin: 0;
  padding-left: 18px;
}

.portal-revisions pre {
  max-height: 420px;
  overflow: auto;
  white-space: pre-wrap;
}

.portal-scope-row,
.portal-claim-review {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--portal-line);
  border-radius: 12px;
  background: #fbfaf7;
}

.portal-scope-row {
  display: grid;
  gap: 14px;
}

.portal-claim-review h3,
.portal-claim-review h4 {
  margin: 0;
}

.portal-application-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.portal-application-sections {
  display: flex;
  gap: 8px;
  margin-top: 28px;
  padding: 9px;
  overflow-x: auto;
  border: 1px solid var(--portal-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgb(23 35 30 / 6%);
  scrollbar-width: thin;
}

.portal-application-sections a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 9px;
  color: var(--portal-text);
  font-size: 0.8rem;
  font-weight: 850;
  text-decoration: none;
}

.portal-application-sections a:hover,
.portal-application-sections a:focus-visible {
  background: var(--portal-sand);
}

.portal-application-sections a > span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--portal-navy);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 900;
}

#application-checklist,
#professional-summary,
#professional-titles,
#supporting-evidence,
#application-history {
  scroll-margin-top: 90px;
}

.portal-status--large {
  flex: 0 0 auto;
  padding: 9px 14px;
  background: #e8eee9;
  color: var(--portal-success);
  font-size: 0.78rem;
}

.portal-progress-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(320px, 1.25fr);
  gap: 34px;
  align-items: center;
  margin-top: 32px;
  padding: 28px 32px;
  border-radius: 16px;
  background: var(--portal-navy);
  color: #fff;
  box-shadow: 0 14px 34px rgb(23 35 30 / 16%);
}

.portal-progress-card__summary {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 18px;
  align-items: center;
}

.portal-progress-card h2,
.portal-progress-card p {
  margin: 0;
}

.portal-progress-card h2 {
  font-size: 1.3rem;
}

.portal-progress-card [data-progress-description] {
  margin-top: 5px;
  color: #b8c5bf;
  font-size: 0.83rem;
}

.portal-progress-ring {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border: 5px solid rgb(255 255 255 / 18%);
  border-top-color: var(--portal-orange);
  border-radius: 50%;
  font-weight: 900;
}

.portal-progress-ring.is-complete {
  border-color: #67b487;
}

.portal-checklist {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.portal-checklist li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  color: #f4c3b3;
  font-size: 0.84rem;
}

.portal-checklist li.is-complete {
  color: #b9d9c7;
}

.portal-checklist a {
  color: inherit;
  text-decoration-color: rgb(255 255 255 / 25%);
}

.portal-step {
  margin: 0 0 7px;
  color: var(--portal-orange);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.portal-section-heading > div > p:last-child {
  margin: 4px 0 0;
  color: var(--portal-muted);
}

.portal-subsection--flush {
  padding-top: 0;
}

.portal-choice-panel {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 12px;
  background: var(--portal-sand);
}

.portal-choice-panel .portal-check span,
.portal-choice-panel .portal-check small {
  display: block;
}

.portal-choice-panel .portal-check small {
  margin-top: 3px;
  color: var(--portal-muted);
  font-weight: 500;
}

.portal-claim-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.portal-empty-state {
  display: grid;
  gap: 5px;
  padding: 22px;
  border: 1px dashed #aaa99f;
  border-radius: 12px;
  color: var(--portal-muted);
  text-align: center;
}

.portal-empty-state strong {
  color: var(--portal-text);
}

.portal-member-claim {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--portal-line);
  border-left: 4px solid var(--portal-orange);
  border-radius: 12px;
  background: #fbfaf7;
}

.portal-member-claim.is-requested {
  border-color: #ed9f83;
  box-shadow: 0 0 0 3px rgb(239 90 40 / 9%);
}

.portal-member-claim__header,
.portal-claim-review__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.portal-member-claim h3,
.portal-claim-review__header h3 {
  margin: 0 0 4px;
  font-size: 1.3rem;
}

.portal-member-claim__header > div > span,
.portal-claim-review__header > div > span {
  color: var(--portal-muted);
  font-size: 0.84rem;
}

.portal-member-claim__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}

.portal-member-claim__facts dt {
  color: var(--portal-muted);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.portal-member-claim__facts dd {
  margin: 4px 0 0;
  font-size: 0.9rem;
}

.portal-scope-chips {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.portal-scope-chips > strong {
  width: 100%;
  font-size: 0.78rem;
}

.portal-scope-chips > span {
  display: grid;
  gap: 2px;
  padding: 8px 11px;
  border-radius: 9px;
  background: #e8eee9;
  font-size: 0.82rem;
  font-weight: 800;
}

.portal-scope-chips small {
  color: var(--portal-muted);
  font-weight: 500;
}

.portal-claim-builder,
.portal-upload-panel {
  margin-top: 24px;
  border: 1px solid var(--portal-line);
  border-radius: 14px;
  background: #fff;
}

.portal-claim-builder > summary,
.portal-upload-panel > summary {
  display: grid;
  gap: 3px;
  padding: 20px 22px;
  cursor: pointer;
  color: var(--portal-orange);
  font-weight: 900;
  list-style: none;
}

.portal-claim-builder > summary::-webkit-details-marker,
.portal-upload-panel > summary::-webkit-details-marker {
  display: none;
}

.portal-claim-builder > summary small {
  color: var(--portal-muted);
  font-weight: 500;
}

.portal-claim-builder > .portal-form,
.portal-upload-panel > .portal-form {
  margin: 0;
  padding: 4px 22px 24px;
  border-top: 1px solid var(--portal-line);
}

.portal-evidence-picker {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 1fr);
  gap: 20px;
  align-items: center;
  padding: 18px;
  border-radius: 12px;
  background: #eef3ef;
}

.portal-evidence-picker strong,
.portal-evidence-picker span {
  display: block;
}

.portal-evidence-picker span {
  margin-top: 3px;
  color: var(--portal-muted);
  font-size: 0.82rem;
}

.portal-scope-chips > span.is-requested {
  outline: 2px solid #ed9f83;
  background: #fff1eb;
}

.portal-guide-panel {
  padding: 22px;
  border: 1px solid rgb(239 90 40 / 35%);
  border-radius: 12px;
  background: #fff9f6;
}

.portal-guide-panel > legend {
  padding: 0 8px;
  color: var(--portal-orange);
  font-size: 1.1rem;
  font-weight: 900;
}

.portal-guide-panel > p {
  margin: 0;
  color: var(--portal-muted);
}

.portal-private-label {
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--portal-sand);
  color: var(--portal-muted);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-evidence-groups,
.portal-admin-evidence-groups {
  display: grid;
  gap: 24px;
  margin-top: 28px;
}

.portal-evidence-group,
.portal-admin-evidence-group {
  display: grid;
  gap: 0;
  padding: 0;
}

.portal-evidence-group__heading,
.portal-admin-evidence-group > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.portal-evidence-group h3,
.portal-admin-evidence-group h3 {
  margin: 0;
  font-size: 1rem;
}

.portal-evidence-group__heading > span,
.portal-admin-evidence-group > div:first-child > span {
  color: var(--portal-muted);
  font-size: 0.76rem;
}

.portal-document,
.portal-admin-document {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--portal-line);
}

.portal-document {
  grid-template-columns: auto minmax(0, 1fr) minmax(190px, auto);
}

.portal-document__icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #e2f1e8;
  color: var(--portal-success);
  font-weight: 900;
}

.portal-document.is-expired .portal-document__icon {
  background: #f7dfda;
  color: var(--portal-danger);
}

.portal-document.is-requested {
  margin: 3px 0;
  padding-right: 12px;
  padding-left: 12px;
  border: 1px solid #ed9f83;
  border-radius: 10px;
  background: #fffaf7;
}

.portal-document > div:nth-child(2),
.portal-admin-document > div:first-child {
  display: grid;
  gap: 2px;
}

.portal-document span,
.portal-document small,
.portal-admin-document span,
.portal-admin-document small {
  color: var(--portal-muted);
}

.portal-document small,
.portal-admin-document small {
  font-size: 0.76rem;
}

.portal-review-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 30px;
  padding: 22px 26px;
  border-radius: 14px;
  background: var(--portal-navy);
  color: #fff;
}

.portal-review-overview > div:first-child {
  display: flex;
  gap: 14px;
  align-items: center;
}

.portal-review-overview h2,
.portal-review-overview p {
  margin: 0;
}

.portal-review-overview h2 {
  font-size: 1.2rem;
}

.portal-review-overview [data-applicant-contact],
.portal-review-overview [data-admin-readiness-description] {
  display: block;
  margin-top: 4px;
  color: #b8c5bf;
  font-size: 0.82rem;
}

.portal-readiness-list {
  display: grid;
  gap: 5px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.78rem;
}

.portal-readiness-list li {
  display: flex;
  gap: 8px;
  align-items: center;
}

.portal-readiness-list li span {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-weight: 900;
}

.portal-readiness-list .is-complete {
  color: #d7e8df;
}

.portal-readiness-list .is-complete span {
  background: #d7e8df;
  color: var(--portal-success);
}

.portal-readiness-list .is-outstanding {
  color: #ffd0bc;
}

.portal-readiness-list .is-outstanding span {
  background: var(--portal-orange);
  color: #fff;
}

.portal-activation-outcome {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) minmax(280px, auto);
  gap: 20px;
  align-items: center;
  margin-top: 24px;
  padding: 24px 28px;
  border: 1px solid #b9cfc3;
  border-radius: 16px;
  background: linear-gradient(120deg, #edf6f0, #fff);
}

.portal-activation-outcome__mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--portal-success);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 900;
}

.portal-activation-outcome h2,
.portal-activation-outcome p,
.portal-activation-outcome dl,
.portal-activation-outcome dd {
  margin: 0;
}

.portal-payment-confirmation {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(240px, 1.4fr) repeat(4, minmax(130px, 1fr)) auto;
  gap: 14px;
  align-items: end;
  padding-top: 20px;
  border-top: 1px solid #cdded3;
}

.portal-payment-confirmation h3,
.portal-payment-confirmation p {
  margin: 0;
}

.portal-payment-confirmation > div:first-child > p:last-child {
  margin-top: 4px;
  color: var(--portal-muted);
  font-size: 0.8rem;
}

.portal-payment-confirmation .portal-field {
  gap: 5px;
}

.portal-policy-note {
  margin: 28px 0;
  padding: 20px 24px;
  border-left: 4px solid var(--portal-orange);
  border-radius: 0 12px 12px 0;
  background: #fff1e9;
}

.portal-policy-note p {
  margin: 4px 0 0;
  color: var(--portal-muted);
}

.portal-requirement-toolbar {
  margin: 34px 0 18px;
}

.portal-new-requirement {
  border: 1px solid var(--portal-line);
  border-radius: 14px;
  background: #fff;
}

.portal-new-requirement summary {
  padding: 18px 22px;
  color: var(--portal-orange);
  cursor: pointer;
  font-weight: 900;
}

.portal-new-requirement[open] summary {
  border-bottom: 1px solid var(--portal-line);
}

.portal-new-requirement .portal-form {
  margin: 0;
  padding: 24px;
}

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

.portal-register-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0;
}

.portal-register-export-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(360px, 1.25fr);
  gap: 28px;
  align-items: center;
  margin-top: 28px;
  padding: 26px;
  border-radius: 16px;
  background: var(--portal-navy);
  color: #fff;
}

.portal-register-export-panel h2,
.portal-register-export-panel p {
  margin: 0;
}

.portal-register-export-panel h2 {
  margin-top: 5px;
}

.portal-register-export-panel p:last-child {
  margin-top: 10px;
  color: #cbd8d2;
  line-height: 1.55;
}

.portal-register-export-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.portal-register-export-panel .portal-button--secondary {
  border-color: rgb(255 255 255 / 34%);
  color: #fff;
}

.portal-import-notice {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin: 28px 0 20px;
  padding: 22px;
  border: 1px solid #bcd2c8;
  border-radius: 14px;
  background: #eef6f2;
}

.portal-import-notice > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: var(--portal-navy);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 900;
}

.portal-import-notice h2,
.portal-import-notice p {
  margin: 0;
}

.portal-import-notice h2 {
  font-size: 1.08rem;
}

.portal-import-notice p {
  margin-top: 5px;
  color: var(--portal-muted);
  line-height: 1.5;
}

.portal-import-workspace {
  overflow: hidden;
  border: 1px solid var(--portal-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 32px rgb(13 40 32 / 7%);
}

.portal-import-workspace__intro {
  padding: 24px 26px;
  background: var(--portal-navy);
  color: #fff;
}

.portal-import-workspace__intro h2,
.portal-import-workspace__intro p {
  margin: 0;
}

.portal-import-workspace__intro h2 {
  margin-top: 4px;
}

.portal-import-workspace__intro p:last-child {
  max-width: 760px;
  margin-top: 8px;
  color: #cbd8d2;
}

.portal-import-form {
  margin: 0;
  padding: 26px;
}

.portal-import-template {
  justify-content: end;
}

.portal-import-template > span {
  color: var(--portal-text);
  font-size: 0.78rem;
  font-weight: 850;
}

.portal-import-template .portal-button {
  width: fit-content;
}

.portal-import-progress {
  color: var(--portal-muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.portal-import-results {
  margin-top: 38px;
}

.portal-import-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.portal-import-summary article {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--portal-line);
  border-top: 4px solid var(--portal-navy);
  border-radius: 10px;
  background: #fff;
}

.portal-import-summary article.is-ready { border-top-color: #32805f; }
.portal-import-summary article.has-errors { border-top-color: #b53b2a; }
.portal-import-summary article.has-warnings { border-top-color: #c17b17; }

.portal-import-summary span {
  color: var(--portal-muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.portal-import-summary strong {
  font-size: 2rem;
}

.portal-import-legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin: 18px 0 12px;
  color: var(--portal-muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.portal-import-legend span {
  display: flex;
  gap: 7px;
  align-items: center;
}

.portal-import-legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #b53b2a;
}

.portal-import-legend i.is-warning { background: #c17b17; }

.portal-import-row-list {
  display: grid;
  gap: 10px;
}

.portal-import-row {
  display: grid;
  grid-template-columns: 70px minmax(230px, 0.8fr) max-content minmax(280px, 1.2fr);
  gap: 18px;
  align-items: center;
  padding: 17px 18px;
  border: 1px solid var(--portal-line);
  border-left: 4px solid #32805f;
  border-radius: 10px;
  background: #fff;
}

.portal-import-row.has-errors { border-left-color: #b53b2a; }
.portal-import-row.has-warnings { border-left-color: #c17b17; }

.portal-import-row__number,
.portal-import-row__identity {
  display: grid;
  gap: 3px;
}

.portal-import-row__number span,
.portal-import-row__identity small {
  color: var(--portal-muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.portal-import-row__number strong {
  font-size: 1.35rem;
}

.portal-import-row__identity span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
}

.portal-import-row__issues:empty::after {
  content: "No validation issues found.";
  color: #32705a;
  font-size: 0.82rem;
  font-weight: 750;
}

.portal-import-issues {
  margin: 0;
  padding-left: 18px;
  color: #8f2e20;
  font-size: 0.82rem;
}

.portal-import-issues--warning {
  margin-top: 5px;
  color: #80510c;
}

.portal-register-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin: 36px 0 15px;
}

.portal-register-section-heading h2,
.portal-register-section-heading p {
  margin: 0;
}

.portal-register-section-heading h2 {
  margin-top: 4px;
}

.portal-register-section-heading p:last-child:not(.portal-eyebrow) {
  margin-top: 7px;
  color: var(--portal-muted);
}

.portal-register-summary article {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--portal-line);
  border-radius: 12px;
  background: #fff;
}

.portal-register-summary span {
  color: var(--portal-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.portal-register-summary strong {
  font-size: 2rem;
}

.portal-register-tools {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) repeat(4, minmax(145px, 1fr));
  gap: 14px;
  padding: 20px;
  border-radius: 14px;
  background: var(--portal-navy);
}

.portal-register-tools--designation {
  grid-template-columns: minmax(280px, 1.6fr) repeat(2, minmax(190px, 0.6fr));
}

.portal-register-tools label {
  color: #d6e0db;
}

.portal-register-result-heading,
.portal-register-card__actions,
.portal-register-card__badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.portal-register-result-heading {
  justify-content: space-between;
  margin: 22px 0 12px;
}

.portal-register-result-heading p {
  margin: 0;
}

.portal-membership-register {
  display: grid;
  gap: 14px;
}

.portal-register-card {
  display: grid;
  grid-template-columns: minmax(270px, 1.2fr) minmax(220px, 0.8fr);
  gap: 20px 28px;
  padding: 24px;
  border: 1px solid var(--portal-line);
  border-radius: 14px;
  background: #fff;
}

.portal-register-card__identity {
  display: flex;
  gap: 14px;
  align-items: center;
}

.portal-register-card__identity h2,
.portal-register-card__identity p {
  margin: 0;
}

.portal-register-card__identity h2 {
  margin: 3px 0;
  font-size: 1.25rem;
}

.portal-register-card__identity > div > span {
  color: var(--portal-muted);
  font-size: 0.82rem;
}

.portal-register-card__badges {
  justify-content: flex-end;
}

.portal-register-card__facts {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 16px 0;
  border-top: 1px solid var(--portal-line);
  border-bottom: 1px solid var(--portal-line);
}

.portal-register-card__facts dt {
  color: var(--portal-muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.portal-register-card__facts dd {
  margin: 4px 0 0;
  font-size: 0.84rem;
  font-weight: 750;
}

.portal-register-card__actions {
  grid-column: 1 / -1;
  justify-content: flex-start;
}

.portal-register-card__actions a {
  font-weight: 850;
}

.portal-membership-number-form {
  display: flex;
  align-items: end;
  gap: 8px;
  margin-right: auto;
}

.portal-membership-number-form label {
  display: grid;
  gap: 5px;
  color: var(--portal-muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.portal-membership-number-form input {
  width: min(230px, 52vw);
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  background: #fff;
  color: var(--portal-ink);
  font: inherit;
  font-size: 0.85rem;
}

.portal-register-designations {
  display: flex;
  grid-column: 1 / -1;
  gap: 8px;
  flex-wrap: wrap;
}

.portal-register-designation {
  display: grid;
  gap: 2px;
  padding: 9px 12px;
  border: 1px solid rgb(246 85 35 / 22%);
  border-radius: 9px;
  background: rgb(246 85 35 / 6%);
}

.portal-register-designation strong {
  font-size: 0.78rem;
}

.portal-register-designation small {
  color: var(--portal-muted);
}

.portal-designation-register {
  margin-top: 54px;
  padding-top: 1px;
  border-top: 2px solid var(--portal-line);
}

.portal-designation-register-list {
  display: grid;
  gap: 10px;
}

.portal-designation-register-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(300px, 1.3fr) auto;
  gap: 22px;
  align-items: center;
  padding: 20px 22px;
  border: 1px solid var(--portal-line);
  border-radius: 12px;
  background: #fff;
}

.portal-designation-register-row h3,
.portal-designation-register-row p {
  margin: 0;
}

.portal-designation-register-row h3 {
  margin: 3px 0;
  font-size: 1rem;
}

.portal-designation-register-row > div:nth-child(2) {
  display: grid;
  gap: 3px;
}

.portal-designation-register-row span,
.portal-designation-register-row small {
  color: var(--portal-muted);
  font-size: 0.78rem;
}

.portal-designation-register-row__states {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}

.portal-designation-register-row__states .portal-status {
  color: inherit;
}

.portal-register-pending-rule {
  margin-top: 18px;
  padding: 17px 19px;
  border-left: 4px solid var(--portal-orange);
  border-radius: 0 10px 10px 0;
  background: #f4f1e9;
}

.portal-register-pending-rule p {
  margin: 5px 0 0;
  color: var(--portal-muted);
  line-height: 1.5;
}

.portal-member-record-contact {
  margin-bottom: 24px;
}

.portal-member-record-facts {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.portal-member-record-facts dd,
.portal-member-record-facts a {
  overflow-wrap: anywhere;
}

.portal-member-record-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 24px 0;
}

.portal-member-record-columns .portal-card {
  min-width: 0;
}

.portal-member-record-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.portal-member-record-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--portal-line);
  border-radius: 11px;
  background: #fff;
}

.portal-member-record-item h3,
.portal-member-record-item p,
.portal-member-evidence h3,
.portal-member-evidence p {
  margin: 0;
}

.portal-member-record-item h3,
.portal-member-evidence h3 {
  margin: 3px 0;
  font-size: 1rem;
}

.portal-member-record-item span,
.portal-member-record-item small,
.portal-member-evidence span,
.portal-member-evidence small {
  color: var(--portal-muted);
  font-size: 0.78rem;
}

.portal-member-record-item > a,
.portal-member-evidence a {
  font-size: 0.8rem;
  font-weight: 850;
}

.portal-member-record-item__states {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
}

.portal-member-record-item--stacked {
  align-items: start;
}

.portal-member-record-scopes {
  display: flex;
  grid-column: 1 / -1;
  gap: 7px;
  flex-wrap: wrap;
}

.portal-member-record-scopes > span {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--portal-warm);
}

.portal-member-record-evidence {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.portal-member-evidence {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) minmax(330px, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 17px;
  border: 1px solid var(--portal-line);
  border-radius: 11px;
  background: #fff;
}

.portal-member-evidence.is-historical {
  background: #f4f1e9;
  opacity: 0.82;
}

.portal-member-evidence dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.portal-member-evidence dt {
  color: var(--portal-muted);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.portal-member-evidence dd {
  margin: 3px 0 0;
  font-size: 0.78rem;
  font-weight: 750;
}

.portal-member-evidence > div:first-child > span,
.portal-member-evidence > div:first-child > small {
  display: block;
}

.portal-member-evidence > div:first-child > small {
  margin-top: 4px;
}

.portal-member-evidence__actions {
  display: grid;
  gap: 7px;
  justify-items: start;
}

@media (max-width: 1050px) {
  .portal-register-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-register-tools .portal-field:first-child {
    grid-column: 1 / -1;
  }

  .portal-register-export-panel,
  .portal-import-row,
  .portal-designation-register-row,
  .portal-member-evidence {
    grid-template-columns: 1fr;
  }

  .portal-member-record-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .portal-member-evidence__actions {
    grid-template-columns: repeat(2, max-content);
  }

  .portal-register-export-actions,
  .portal-designation-register-row__states {
    justify-content: flex-start;
  }
}

@media (max-width: 650px) {
  .portal-register-tools,
  .portal-register-tools--designation,
  .portal-register-summary,
  .portal-import-summary,
  .portal-member-record-columns,
  .portal-member-record-facts,
  .portal-member-evidence dl {
    grid-template-columns: 1fr;
  }

  .portal-member-record-item {
    grid-template-columns: 1fr;
  }

  .portal-register-tools .portal-field:first-child {
    grid-column: auto;
  }

  .portal-import-notice {
    grid-template-columns: 1fr;
  }

  .portal-import-form,
  .portal-import-workspace__intro {
    padding: 20px;
  }

  .portal-import-template {
    justify-content: start;
  }

  .portal-membership-number-form {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .portal-membership-number-form input {
    width: 100%;
  }
}

.portal-status--renewalgrace,
.portal-status--expiringsoon {
  background: rgb(181 107 22 / 13%);
  color: #8b4f0e;
}

.portal-status--historical,
.portal-status--expired {
  background: #ece9e2;
  color: #5f5d58;
}

.portal-requirement-list {
  display: grid;
  gap: 18px;
}

.portal-requirement-card {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--portal-line);
  border-radius: 14px;
  background: #fff;
}

.portal-requirement-card.is-inactive {
  border-style: dashed;
  background: #f4f3ef;
  opacity: 0.78;
}

.portal-requirement-card__heading,
.portal-requirement-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.portal-requirement-card__heading h3 {
  margin: 9px 0 2px;
  font-size: 1.35rem;
}

.portal-requirement-card__heading code {
  color: var(--portal-muted);
  font-size: 0.75rem;
}

.portal-switch,
.portal-requirement-options label {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-weight: 750;
}

.portal-requirement-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 18px;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--portal-line);
  border-radius: 10px;
}

.portal-requirement-options legend {
  padding: 0 7px;
  font-weight: 900;
}

.portal-requirement-card__actions {
  padding-top: 14px;
  border-top: 1px solid var(--portal-line);
}

.portal-requirement-card__actions span {
  color: var(--portal-muted);
  font-size: 0.82rem;
}

.portal-activation-outcome > div > p:last-child {
  margin-top: 4px;
  color: var(--portal-muted);
}

.portal-activation-outcome dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  gap: 18px;
}

.portal-activation-outcome dt {
  color: var(--portal-muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.portal-activation-outcome dd {
  margin-top: 4px;
  font-size: 0.86rem;
  font-weight: 800;
}

.portal-revision-comparison {
  margin-top: 24px;
  padding: 28px;
  border: 1px solid #b9cfc3;
  border-radius: 16px;
  background: linear-gradient(130deg, #f1f7f3 0%, #fff 75%);
  box-shadow: 0 10px 28px rgb(23 35 30 / 7%);
}

.portal-revision-comparison__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.portal-revision-comparison__heading h2,
.portal-revision-comparison__heading p {
  margin: 0;
}

.portal-revision-comparison__heading h2 {
  font-size: 1.55rem;
}

.portal-revision-comparison__heading > div > p:last-child {
  margin-top: 5px;
  color: var(--portal-muted);
}

.portal-revision-badge {
  flex: 0 0 auto;
  padding: 8px 11px;
  border-radius: 999px;
  background: var(--portal-green);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.portal-revision-change-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.portal-revision-change {
  padding: 17px;
  border: 1px solid var(--portal-line);
  border-radius: 12px;
  background: #fff;
}

.portal-revision-change > span {
  color: var(--portal-orange);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.portal-revision-change h3,
.portal-revision-change > p {
  margin: 0;
}

.portal-revision-change h3 {
  margin-top: 4px;
  font-size: 1rem;
}

.portal-revision-change > p {
  margin-top: 9px;
  color: var(--portal-muted);
  font-size: 0.8rem;
}

.portal-revision-before-after {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.portal-revision-before-after > div {
  min-width: 0;
  padding: 9px;
  border-radius: 8px;
  background: var(--portal-sand);
}

.portal-revision-before-after > div:last-child {
  background: #e8f2eb;
}

.portal-revision-before-after small {
  display: block;
  color: var(--portal-muted);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.portal-revision-before-after p,
.portal-revision-before-after a {
  display: block;
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-size: 0.78rem;
}

.portal-admin-grid--review {
  align-items: start;
}

.portal-admin-document {
  grid-template-columns: minmax(0, 1fr) auto;
}

.portal-admin-document.is-revision-update {
  margin: 4px 0;
  padding: 14px;
  border: 1px solid #9fc4ae;
  border-radius: 10px;
  background: #f4faf6;
}

.portal-admin-document.is-historical {
  opacity: 1;
  background: #faf9f7;
}

.portal-admin-document.is-decision-updated {
  border-radius: 8px;
  background: #eef8f1;
  box-shadow: 0 0 0 4px rgb(36 95 67 / 10%);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.portal-admin-document > .portal-file-actions,
.portal-admin-document > .portal-inline-actions {
  grid-column: 1 / -1;
  justify-content: flex-start;
}

.portal-decision-recorded {
  align-self: center;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.portal-text-button--danger {
  color: var(--portal-danger);
}

.portal-claim-review {
  padding: 26px;
  background: #fff;
  box-shadow: 0 8px 24px rgb(23 35 30 / 5%);
}

.portal-claim-review.is-revision-update {
  border-color: #9fc4ae;
  box-shadow: 0 0 0 3px rgb(36 95 67 / 8%);
}

.portal-claim-review__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
}

.portal-claim-review__grid > div {
  padding: 18px;
  border-radius: 10px;
  background: #f7f5ef;
}

.portal-claim-review__grid p,
.portal-claim-review__grid strong,
.portal-claim-review__grid span {
  display: block;
}

.portal-claim-review__grid p {
  margin: 14px 0 0;
}

.portal-claim-review__grid strong {
  color: var(--portal-muted);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.portal-claim-review__grid span {
  margin-top: 4px;
}

.portal-verification-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--portal-line);
}

.portal-verification-actions > span {
  margin-right: auto;
  color: var(--portal-muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.portal-button--small {
  min-height: 36px;
  padding: 7px 14px;
  font-size: 0.8rem;
}

.portal-scope-review {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}

.portal-scope-review > article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 10px;
  background: #eef3ef;
}

.portal-scope-review > article > div:first-child,
.portal-scope-review > article > div:first-child span,
.portal-scope-review > article > div:first-child a {
  display: block;
}

.portal-scope-review > article > div:first-child span,
.portal-scope-review > article > div:first-child a {
  margin-top: 3px;
  font-size: 0.8rem;
}

.portal-decision-card {
  border-top: 4px solid var(--portal-orange);
}

.portal-decision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 24px;
}

.portal-decision-panel {
  align-content: start;
  margin: 0;
  padding: 22px;
  border: 1px solid var(--portal-line);
  border-radius: 12px;
  background: #fbfaf7;
}

.portal-decision-panel--approve {
  background: #f1f7f3;
}

.portal-decision-panel h3,
.portal-decision-panel p,
.portal-reject-panel h3,
.portal-reject-panel p {
  margin: 0;
}

.portal-decision-panel > p,
.portal-reject-panel p {
  color: var(--portal-muted);
  font-size: 0.84rem;
}

.portal-request-options {
  margin: 0;
  padding: 0;
  border: 0;
}

.portal-request-options legend {
  margin-bottom: 9px;
  font-weight: 800;
}

.portal-request-options > div {
  display: grid;
  gap: 7px;
  max-height: 230px;
  padding: 12px;
  overflow-y: auto;
  border: 1px solid var(--portal-line);
  border-radius: 9px;
  background: #fff;
}

.portal-request-option {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  align-items: start;
  font-size: 0.83rem;
}

.portal-request-option input {
  width: 16px;
  height: 16px;
}

.portal-reject-panel {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border: 1px solid #e2c0ba;
  border-radius: 12px;
}

.portal-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.portal-section-heading p {
  margin: 4px 0 0;
  color: var(--portal-muted);
}

.portal-page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.portal-page-heading .portal-button {
  flex: 0 0 auto;
}

.portal-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-top: 36px;
}

.portal-metric-card {
  position: relative;
  display: grid;
  min-height: 210px;
  grid-template-rows: auto auto 1fr auto;
  gap: 10px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--portal-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgb(23 35 30 / 5%);
}

.portal-metric-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--portal-green);
  content: "";
}

.portal-metric-card--membership::before {
  background: var(--portal-orange);
}

.portal-metric-card--attention::before {
  background: #c89227;
}

.portal-expiry-record.is-expired {
  margin: 3px 0;
  padding-right: 14px;
  padding-left: 14px;
  border: 1px solid #e2c0ba;
  border-radius: 10px;
  background: #fff8f5;
}

.portal-expiry-record__state {
  justify-items: end;
  max-width: 250px;
  text-align: right;
}

.portal-expiry-record__state small {
  color: var(--portal-muted);
  font-size: 0.72rem;
}

.portal-metric-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--portal-muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.portal-metric-card > strong {
  font-size: 1.55rem;
  line-height: 1.1;
}

.portal-metric-card > span {
  color: var(--portal-muted);
  font-size: 0.9rem;
}

.portal-metric-card > a {
  color: var(--portal-orange);
  font-size: 0.84rem;
  font-weight: 850;
  text-decoration: none;
}

.portal-metric-icon {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 50%;
  background: var(--portal-sand);
  color: var(--portal-green);
}

.portal-action-centre {
  padding: 30px 34px;
}

.portal-action-list {
  display: grid;
  gap: 0;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.portal-action {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--portal-line);
}

.portal-action__marker {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--portal-blue);
}

.portal-action--urgent .portal-action__marker {
  background: var(--portal-danger);
  box-shadow: 0 0 0 5px rgb(163 50 32 / 10%);
}

.portal-action--upcoming .portal-action__marker {
  background: var(--portal-warning);
}

.portal-action--review .portal-action__marker {
  background: var(--portal-orange);
}

.portal-action--clear .portal-action__marker {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  background: rgb(36 95 67 / 12%);
  color: var(--portal-success);
  font-size: 0.75rem;
  font-weight: 900;
}

.portal-action--clear {
  grid-template-columns: 26px 1fr;
}

.portal-action__label {
  display: block;
  margin-bottom: 3px;
  color: var(--portal-orange);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-action strong {
  display: block;
}

.portal-action p {
  margin: 3px 0 0;
  color: var(--portal-muted);
  font-size: 0.88rem;
}

.portal-action > a {
  color: var(--portal-orange);
  font-size: 0.84rem;
  font-weight: 850;
  text-decoration: none;
}

.portal-dashboard-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.portal-dashboard-columns .portal-card {
  min-width: 0;
}

.portal-card > p,
.portal-relationship-card p {
  color: var(--portal-muted);
}

.portal-relationship-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: linear-gradient(110deg, #fff 0%, #f4efe5 100%);
}

.portal-relationship-card h2 {
  margin-top: 10px;
}

.portal-relationship-card p {
  margin-bottom: 0;
}

.portal-status--active,
.portal-status--current,
.portal-status--noexpiry,
.portal-status--approved {
  background: rgb(36 95 67 / 12%);
  color: var(--portal-success);
}

.portal-status--expired,
.portal-status--rejected,
.portal-status--changesrequested {
  background: rgb(163 50 32 / 12%);
  color: var(--portal-danger);
}

.portal-status--expiringsoon,
.portal-status--underreview,
.portal-status--submitted {
  background: rgb(181 107 22 / 13%);
  color: #8b4f0e;
}

.portal-body .site-footer {
  margin-top: 0;
}

.portal-credential-explainer {
  border-left: 5px solid var(--portal-orange);
  background: linear-gradient(120deg, #fff 70%, #f6eee6);
}

.portal-process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 24px 0;
}

.portal-process-steps div {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 15px;
  border-radius: 11px;
  background: var(--portal-sand);
  font-weight: 800;
}

.portal-process-steps strong {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--portal-green);
  color: #fff;
}

.portal-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 34px;
  align-items: center;
}

.portal-detail-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
  margin: 24px 0;
}

.portal-detail-list div {
  padding: 12px 0;
  border-bottom: 1px solid var(--portal-line);
}

.portal-detail-list dt {
  color: var(--portal-muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.portal-detail-list dd {
  margin: 4px 0 0;
  font-weight: 800;
}

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

.portal-document-grid .portal-document {
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 14px;
  border: 1px solid var(--portal-line);
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
}

.portal-review-note {
  margin-top: 20px;
  padding: 16px 18px;
  border-left: 4px solid var(--portal-orange);
  background: var(--portal-sand);
}

.portal-review-note p {
  margin: 5px 0 0;
}

.portal-logbook-heading { align-items: flex-end; }

.portal-logbook-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.portal-logbook-summary article {
  display: grid;
  gap: 5px;
  min-height: 150px;
  padding: 24px;
  border: 1px solid var(--portal-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 26px rgb(23 35 30 / 5%);
}

.portal-logbook-summary article:first-child { background: var(--portal-navy); color: #fff; }
.portal-logbook-summary span { font-size: 0.74rem; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; }
.portal-logbook-summary strong { align-self: end; font-size: 2.6rem; line-height: 1; }
.portal-logbook-summary small { color: var(--portal-muted); }
.portal-logbook-summary article:first-child small { color: rgb(255 255 255 / 65%); }

.portal-logbook-tools {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 0.35fr);
  gap: 14px;
  margin-top: 24px;
  padding: 18px;
  border-radius: 12px;
  background: var(--portal-sand);
}

.portal-logbook-tools .portal-field { gap: 4px; }
.portal-logbook-tools .portal-field span { font-size: 0.74rem; font-weight: 850; text-transform: uppercase; }
.portal-logbook-entries { display: grid; margin-top: 18px; }

.portal-logbook-entry {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--portal-line);
}

.portal-logbook-entry:first-child { border-top: 1px solid var(--portal-line); }
.portal-logbook-entry__date, .portal-logbook-entry__main { display: grid; gap: 4px; }
.portal-logbook-entry__date span, .portal-logbook-entry__main p, .portal-logbook-entry__main small { margin: 0; color: var(--portal-muted); }
.portal-logbook-entry__main h3 { margin: 4px 0 0; font-size: 1.15rem; }
.portal-logbook-entry__main > div { display: flex; gap: 8px; align-items: center; }
.portal-logbook-reference { color: var(--portal-muted); font-size: 0.76rem; font-weight: 800; }
.portal-logbook-status--verified { background: #dff2e7; color: #17613b; }
.portal-logbook-status--active { background: #dff2e7; color: #17613b; }
.portal-logbook-status--submitted, .portal-logbook-status--underreview { background: #e4eef8; color: #24577f; }
.portal-logbook-status--changesrequested { background: #fff0d2; color: #87540b; }
.portal-logbook-status--lapsed { background: #fff0d2; color: #87540b; }
.portal-logbook-status--rejected, .portal-logbook-status--withdrawn,
.portal-logbook-status--suspended, .portal-logbook-status--revoked { background: #f8e5e3; color: var(--portal-danger); }

.portal-logbook-details { border: 1px solid var(--portal-line); border-radius: 12px; background: #fff; }
.portal-logbook-details summary { display: flex; justify-content: space-between; gap: 16px; padding: 17px 19px; cursor: pointer; font-weight: 850; }
.portal-logbook-details summary span { color: var(--portal-muted); font-size: 0.78rem; text-transform: uppercase; }
.portal-logbook-details__body { display: grid; gap: 18px; padding: 4px 19px 20px; }

.portal-logbook-attachments {
  display: grid;
  grid-template-columns: minmax(0, 0.65fr) minmax(260px, 0.35fr);
  gap: 24px;
  padding: 24px;
  border-radius: 14px;
  background: var(--portal-sand);
}

.portal-logbook-attachments h3, .portal-logbook-attachments p { margin: 0 0 6px; }
.portal-logbook-attachments ul { grid-column: 1 / -1; margin: 0; padding: 0; list-style: none; }
.portal-logbook-attachments li { display: flex; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--portal-line); }
.portal-logbook-attachments li span { margin-left: auto; color: var(--portal-muted); }

.portal-logbook-review-note { padding: 18px 20px; border-left: 4px solid var(--portal-orange); background: #fff0d2; }
.portal-logbook-review-note p { margin: 5px 0 0; }

.portal-logbook-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; margin: 26px 0; }
.portal-logbook-facts > div { padding: 13px 0; border-bottom: 1px solid var(--portal-line); }
.portal-logbook-facts dt { color: var(--portal-muted); font-size: 0.73rem; font-weight: 850; text-transform: uppercase; }
.portal-logbook-facts dd { margin: 4px 0 0; font-weight: 800; }
.portal-logbook-review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.portal-logbook-review-grid section { padding: 22px; border: 1px solid var(--portal-line); border-radius: 12px; }
.portal-logbook-review-grid h3, .portal-logbook-review-grid p { margin: 0 0 10px; }
.portal-logbook-history { margin: 28px 0; }
.portal-logbook-history ol { display: grid; gap: 0; margin: 14px 0; padding: 0; list-style: none; }
.portal-logbook-history li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 5px 18px; padding: 13px 0; border-top: 1px solid var(--portal-line); }
.portal-logbook-history li span { color: var(--portal-muted); }
.portal-logbook-history li p { grid-column: 2; margin: 0; }

.portal-designation-application .portal-inline-form,
.portal-designation-workspace .portal-inline-form {
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: end;
}

.portal-designation-workspace {
  display: grid;
  gap: 24px;
  margin-top: 28px;
}

.portal-designation-workspace > .portal-card { margin-top: 0; }

.portal-designation-workspace__heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  padding: 30px;
  border-radius: 16px;
  background: var(--portal-navy);
  color: #fff;
}

.portal-designation-workspace__heading h2 { margin: 6px 0 0; font-size: clamp(1.6rem, 3vw, 2.35rem); }
.portal-designation-workspace__heading p:last-child { max-width: 740px; margin: 10px 0 0; color: #ffd9c8; }
.portal-designation-statuses { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.portal-designation-award-admin { margin-top: 30px; }
.portal-designation-award-management { align-items: start; }
.portal-designation-award-management > .portal-logbook-history { margin: 0; }

.portal-designation-document-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.portal-designation-document-card { display: grid; align-content: start; gap: 18px; padding: 22px; border: 1px solid var(--portal-line); border-radius: 14px; background: #fbfaf7; }
.portal-designation-document-card h3 { margin: 12px 0 5px; font-size: 1.15rem; }
.portal-designation-document-card p { margin: 0; color: var(--portal-muted); line-height: 1.5; }
.portal-designation-document-card ul,
.portal-designation-admin-logbooks { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.portal-designation-document-card li,
.portal-designation-admin-logbooks li { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--portal-line); }
.portal-designation-document-card li > span,
.portal-designation-admin-logbooks li > span { color: var(--portal-muted); font-size: 0.8rem; }
.portal-designation-document-card li > span { margin-left: auto; }
.portal-designation-document-card .portal-upload { display: flex; gap: 9px; align-items: center; }
.portal-designation-document-card input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }

.portal-designation-logbook-tools { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin: 18px 0 8px; }
.portal-designation-logbook-tools a { color: var(--portal-text); font-weight: 850; }
.portal-designation-logbook-list { max-height: 500px; overflow: auto; border: 1px solid var(--portal-line); border-radius: 12px; }
.portal-designation-logbook-option { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 13px 16px; border-top: 1px solid var(--portal-line); cursor: pointer; }
.portal-designation-logbook-option:first-child { border-top: 0; }
.portal-designation-logbook-option:hover { background: #fffaf7; }
.portal-designation-logbook-option > span:nth-child(2) { display: grid; gap: 3px; }
.portal-designation-logbook-option small { color: var(--portal-muted); }
.portal-designation-counter { color: var(--portal-orange); }
.portal-designation-counter.is-complete { color: #17613b; }
.portal-designation-submit-card { display: flex; justify-content: space-between; gap: 28px; align-items: center; background: var(--portal-sand); }
.portal-designation-submit-card h2 { margin: 6px 0; }
.portal-designation-submit-card p:last-child { margin: 0; color: var(--portal-muted); }
.portal-designation-admin-logbooks { max-height: 420px; overflow: auto; }
.portal-designation-admin-logbooks li { display: grid; gap: 4px; }
.portal-text-button--danger { color: var(--portal-danger); }
.portal-print-logbook { display: none; }

@media (max-width: 1450px) {
  .portal-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .portal-public-profile-layout,
  .portal-public-admin-layout,
  .portal-organisation-details-grid,
  .portal-relationship-boundary,
  .portal-account-boundary,
  .portal-account-layout {
    grid-template-columns: 1fr;
  }

  .portal-public-preview {
    position: static;
  }
}

@media (max-width: 700px) {
  .portal-organisation-summary {
    grid-template-columns: 1fr;
  }

  .portal-organisation-summary article {
    min-height: 0;
  }

  .portal-invitation-guidance,
  .portal-organisation-card-grid,
  .portal-invitation,
  .portal-category-picker {
    grid-template-columns: 1fr;
  }

  .portal-category-picker label > span {
    min-height: 0;
  }

  .portal-invitation__actions {
    justify-content: flex-start;
  }

  .portal-invitation__actions .portal-button {
    width: 100%;
  }

  .portal-organisation-card {
    min-height: 0;
  }

  .portal-organisation-card__footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-account-save {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-account-save .portal-button {
    width: 100%;
  }

  .portal-notification-tools,
  .portal-notification-record__actions {
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
  }

  .portal-process-steps,
  .portal-detail-list {
    grid-template-columns: 1fr;
  }
  .portal-sidebar {
    width: min(300px, 86vw);
    visibility: hidden;
    transform: translateX(-105%);
    transition: transform 180ms ease, visibility 180ms;
  }

  .portal-menu-open .portal-sidebar {
    visibility: visible;
    transform: translateX(0);
  }

  .portal-has-shell .portal-header,
  .portal-has-shell .portal-main,
  .portal-has-shell .site-footer {
    margin-left: 0;
  }

  .portal-has-shell .portal-main {
    width: min(100% - 32px, 1120px);
  }

  .portal-menu-button {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--portal-line);
    border-radius: 9px;
    background: #fff;
    font: inherit;
  }

  .portal-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 35;
    border: 0;
    background: rgb(8 17 13 / 55%);
  }

  .portal-menu-open .portal-sidebar-backdrop {
    display: block;
  }

  .portal-topbar-title,
  .portal-topbar-heading {
    display: none;
  }

  .portal-header__inner {
    min-height: 68px;
    padding: 12px 0;
    flex-wrap: wrap;
    gap: 10px;
  }

  .portal-brand img {
    width: 145px;
  }

  .portal-user-name {
    display: none;
  }

  .portal-nav {
    width: auto;
    gap: 12px;
    font-size: 0.82rem;
  }

  .portal-topbar-account span:last-child,
  .portal-topbar-action {
    display: none;
  }

  .portal-main {
    padding: 48px 0 68px;
  }

  .portal-form__row,
  .portal-grid,
  .portal-metric-grid,
  .portal-dashboard-columns,
  .portal-admin-grid,
  .portal-application-history-grid,
  .portal-admin-specialist-queues,
  .portal-upload,
  .portal-progress-card,
  .portal-correction-workspace__body,
  .portal-review-overview,
  .portal-revision-change-list,
  .portal-revision-before-after,
  .portal-revision-archive__content,
  .portal-evidence-picker,
  .portal-member-claim__facts,
  .portal-claim-review__grid,
  .portal-decision-grid,
  .portal-public-profile-layout,
  .portal-checkbox-grid {
    grid-template-columns: 1fr;
  }

  .portal-activation-outcome,
  .portal-activation-outcome dl,
  .portal-payment-confirmation {
    grid-template-columns: 1fr;
  }

  .portal-page-heading,
  .portal-section-heading,
  .portal-relationship-card,
  .portal-application-heading,
  .portal-revision-comparison__heading,
  .portal-member-claim__header,
  .portal-claim-review__header,
  .portal-reject-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-requirement-options {
    grid-template-columns: 1fr;
  }

  .portal-heading-actions,
  .portal-heading-actions .portal-button {
    width: 100%;
  }

  .portal-register-summary,
  .portal-register-tools,
  .portal-register-card,
  .portal-register-card__facts {
    grid-template-columns: 1fr;
  }

  .portal-register-card__badges {
    justify-content: flex-start;
  }

  .portal-requirement-card__heading,
  .portal-requirement-card__actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-progress-card {
    padding: 24px;
  }

  .portal-revision-comparison {
    padding: 22px;
  }

  .portal-correction-workspace__intro,
  .portal-correction-workspace__body > div {
    padding: 21px;
  }

  .portal-correction-workspace__body > div + div {
    border-top: 1px solid #edc4b6;
    border-left: 0;
  }

  .portal-correction-list li {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .portal-correction-list small {
    grid-column: 2;
  }

  .portal-progress-card__summary {
    grid-template-columns: 54px 1fr;
  }

  .portal-progress-ring {
    width: 54px;
    height: 54px;
  }

  .portal-document,
  .portal-admin-document,
  .portal-scope-review > article {
    grid-template-columns: 1fr;
  }

  .portal-document__icon {
    display: none;
  }

  .portal-verification-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-verification-actions > span {
    margin-right: 0;
  }

  .portal-page-heading .portal-button,
  .portal-relationship-card .portal-button {
    width: 100%;
  }

  .portal-public-preview {
    position: static;
  }

  .portal-public-editor > .portal-button {
    width: 100%;
  }

  .portal-action {
    grid-template-columns: 10px minmax(0, 1fr);
  }

  .portal-action > a {
    grid-column: 2;
  }

  .portal-record,
  .portal-evidence-review {
    grid-template-columns: 1fr;
  }

  .portal-record .portal-record__actions {
    justify-content: flex-start;
  }

  .portal-professional-standing,
  .portal-professional-title-grid,
  .portal-guidance-card {
    grid-template-columns: 1fr;
  }

  .portal-professional-standing dl {
    grid-template-columns: 1fr;
  }

  .portal-professional-standing dl > div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .portal-professional-standing dl > div:last-child {
    border-bottom: 0;
  }

  .portal-expiry-record__state {
    justify-items: start;
    max-width: none;
    text-align: left;
  }

  .portal-actions .portal-button {
    width: 100%;
  }
}

@media (max-width: 1100px) {
  .portal-logbook-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .portal-logbook-summary,
  .portal-logbook-tools,
  .portal-logbook-entry,
  .portal-logbook-attachments,
  .portal-logbook-facts,
  .portal-logbook-review-grid { grid-template-columns: 1fr; }
  .portal-logbook-entry { gap: 12px; }
  .portal-logbook-history li { grid-template-columns: 1fr; }
  .portal-logbook-history li p { grid-column: 1; }
  .portal-designation-workspace__heading,
  .portal-designation-submit-card,
  .portal-designation-logbook-tools { align-items: flex-start; flex-direction: column; }
  .portal-designation-statuses { justify-content: flex-start; }
  .portal-designation-document-grid,
  .portal-designation-application .portal-inline-form,
  .portal-designation-workspace .portal-inline-form { grid-template-columns: 1fr; }
  .portal-designation-logbook-option { grid-template-columns: auto minmax(0, 1fr); }
  .portal-designation-logbook-option > .portal-status { grid-column: 2; width: fit-content; }
}

.portal-provider-entry,
.portal-provider-overview,
.portal-provider-workspace-heading,
.portal-provider-submit {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

.portal-provider-entry > div:last-child,
.portal-provider-overview__actions,
.portal-provider-workspace-heading > div:last-child,
.portal-provider-submit > div {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.portal-process-strip {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 28px;
  overflow: hidden;
  border-radius: 18px;
}

.portal-process-strip article {
  background: #102d28;
  color: #fff;
  display: grid;
  gap: 5px;
  padding: 22px;
}

.portal-process-strip article > span {
  color: #ef5a28;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.portal-process-strip small { color: rgba(255, 255, 255, 0.7); }

.portal-provider-award {
  align-items: center;
  display: flex;
  gap: 16px;
  max-width: 560px;
}

.portal-provider-award.is-inactive { opacity: 0.55; }
.portal-provider-award img { height: 105px; object-fit: contain; width: 100px; }
.portal-provider-award span,
.portal-provider-award small { display: block; }
.portal-provider-badge-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.portal-provider-badge-links a { font-size: 0.78rem; }
.portal-provider-compliance { border-top: 1px solid var(--portal-line); display: grid; gap: 14px; margin-top: 22px; padding-top: 22px; }
.portal-provider-compliance p { margin: 5px 0 0; }
.portal-provider-register { overflow-x: auto; }
.portal-provider-register__head,
.portal-provider-register__row { align-items: center; display: grid; gap: 16px; grid-template-columns: minmax(190px, 1.5fr) minmax(170px, 1fr) minmax(120px, 0.7fr) minmax(120px, 0.7fr); min-width: 720px; padding: 13px 16px; }
.portal-provider-register__head { background: #102d28; border-radius: 10px 10px 0 0; color: #fff; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.portal-provider-register__row { border-bottom: 1px solid var(--portal-line); color: var(--portal-text); text-decoration: none; }
.portal-provider-register__row:hover { background: #f7f5f0; }

.portal-provider-workspace-heading { margin: 42px 0 18px; }
.portal-provider-submit { align-items: stretch; flex-direction: column; }
.portal-provider-submit > * { width: 100%; }
.portal-provider-response-grid,
.portal-provider-upload-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.portal-provider-contexts { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 22px; }
.portal-provider-contexts label { align-items: center; background: #f6f3ed; border-radius: 10px; display: flex; gap: 9px; padding: 12px; }
.portal-provider-uploader { background: #f7f5f0; border: 1px solid #ddd7cc; border-radius: 14px; display: grid; gap: 10px; padding: 16px; }
.portal-provider-uploader label { display: grid; gap: 6px; font-size: 0.84rem; }
.portal-provider-optional-evidence { border-top: 1px solid var(--portal-line); grid-column: 1 / -1; padding-top: 18px; }
.portal-provider-optional-evidence > summary { align-items: center; cursor: pointer; display: flex; font-weight: 800; gap: 10px; list-style: none; }
.portal-provider-optional-evidence > summary::-webkit-details-marker { display: none; }
.portal-provider-optional-evidence > summary::after { content: "+"; font-size: 1.4rem; }
.portal-provider-optional-evidence[open] > summary::after { content: "−"; }
.portal-provider-optional-evidence > summary span { background: #eee9df; border-radius: 999px; color: var(--portal-muted); font-size: 0.7rem; letter-spacing: 0.08em; margin-left: auto; padding: 5px 9px; text-transform: uppercase; }
.portal-provider-optional-evidence > p { color: var(--portal-muted); margin: 8px 0 18px; }
.portal-provider-readiness { background: #f7f5f0; border: 1px solid var(--portal-line); border-radius: 14px; display: grid; gap: 18px; grid-template-columns: minmax(180px, 0.65fr) minmax(280px, 1.35fr); padding: 18px; }
.portal-provider-readiness p { color: var(--portal-muted); margin: 5px 0 0; }
.portal-provider-readiness ul { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.portal-provider-readiness li { align-items: start; display: grid; gap: 9px; grid-template-columns: 20px minmax(0, 1fr); }
.portal-provider-readiness li > span:first-child { color: #a33d1c; font-weight: 900; }
.portal-provider-readiness li.is-complete > span:first-child { color: #187052; }
.portal-provider-readiness li strong,
.portal-provider-readiness li small { display: block; }
.portal-provider-readiness li small { color: var(--portal-muted); margin-top: 2px; }
.portal-provider-review-responses { display: grid; gap: 18px; margin: 0; }
.portal-provider-review-responses div { border-bottom: 1px solid #e6e0d7; padding-bottom: 16px; }
.portal-provider-review-responses dt { font-weight: 800; margin-bottom: 6px; }
.portal-provider-review-responses dd { margin: 0; white-space: pre-wrap; }
.portal-provider-admin-actions { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.portal-admin-action-intro { background: #f7f5f0; border-left: 4px solid var(--portal-orange); border-radius: 12px; grid-column: 1 / -1; padding: 16px 18px; }
.portal-admin-action-intro p,
.portal-admin-stage-guidance p { margin: 5px 0 0; }
.portal-admin-stage-guidance { background: #edf4f1; border-radius: 14px; margin-bottom: 18px; padding: 16px 18px; }
.portal-action-help { color: #a33d1c; display: block; font-weight: 700; margin-top: 8px; }
.portal-decision-panel :disabled { cursor: not-allowed; opacity: 0.58; }
.portal-alert-copy { color: #a33d1c; font-weight: 700; }
.portal-assessment__notice { background: #f7f5f0; border-left: 4px solid var(--portal-orange); border-radius: 12px; display: grid; gap: 12px; margin-bottom: 22px; padding: 18px; }
.portal-assessment__notice p { margin: 0; }
.portal-assessment-grid { border-top: 1px solid var(--portal-line); display: grid; margin-bottom: 24px; }
.portal-assessment-row { align-items: start; border-bottom: 1px solid var(--portal-line); display: grid; gap: 18px; grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1.2fr); padding: 18px 0; }
.portal-assessment-row > div { display: grid; gap: 10px; }
.portal-assessment-row .portal-field { margin: 0; }
.portal-assessment .portal-field--wide { grid-column: 1 / -1; }
.portal-assessment .portal-meta { color: var(--portal-muted); font-size: 0.85rem; }
.portal-provider-print { display: none; }
.portal-verification-certificate,
.portal-verification-report { color: #262626; font-family: Arial, Helvetica, sans-serif; margin: 0 auto; max-width: 900px; }
.portal-verification-certificate { align-items: center; border: 6px solid #102d28; display: flex; flex-direction: column; min-height: 92vh; padding: 56px; text-align: center; }
.portal-verification-certificate__logo { height: 72px; margin-bottom: 48px; width: auto; }
.portal-verification-certificate h1 { color: #ef5a28; font-size: 44pt; margin: 18px 0 28px; }
.portal-verification-certificate h2 { font-size: 26pt; margin: 8px 0 18px; }
.portal-verification-certificate__lead { margin: 0; }
.portal-verification-certificate__badge { height: 220px; margin: 22px 0; width: 210px; }
.portal-verification-certificate dl,
.portal-verification-report > dl { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
.portal-verification-certificate dl div,
.portal-verification-report > dl div { border-top: 1px solid #bbb; padding-top: 10px; }
.portal-verification-certificate dt,
.portal-verification-report dt { font-size: 9pt; font-weight: 800; text-transform: uppercase; }
.portal-verification-certificate dd,
.portal-verification-report dd { margin: 5px 0 0; white-space: pre-wrap; }
.portal-verification-certificate small { margin-top: auto; max-width: 720px; }
.portal-verification-report > img { height: 58px; width: auto; }
.portal-verification-report h1 { color: #ef5a28; font-size: 30pt; }
.portal-verification-report section { break-inside: avoid; margin-top: 28px; }
.portal-verification-report table { border-collapse: collapse; font-size: 9pt; width: 100%; }
.portal-verification-report th,
.portal-verification-report td { border: 1px solid #bbb; padding: 7px; text-align: left; vertical-align: top; }
.portal-verification-report section dl { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.portal-verification-report section dl div { border-left: 3px solid #ef5a28; padding-left: 10px; }

.portal-stage-note {
  background: #f5f1e9;
  border-left: 4px solid var(--portal-orange);
  border-radius: 12px;
  margin-top: 22px;
  padding: 20px;
}

.portal-stage-note h3,
.portal-stage-note p { margin-top: 0; }
.portal-stage-note .portal-button { margin-top: 8px; }

.portal-logo-editor {
  align-items: center;
  background: #f7f5f0;
  border: 1px solid var(--portal-line);
  border-radius: 14px;
  display: grid;
  gap: 18px;
  grid-template-columns: 112px minmax(0, 1fr);
  margin: 18px 0;
  padding: 16px;
}

.portal-logo-editor__preview,
.portal-public-preview__organisation-logo {
  align-items: center;
  aspect-ratio: 1;
  background: #fff;
  border: 1px solid var(--portal-line);
  border-radius: 14px;
  color: var(--portal-muted);
  display: flex;
  font-size: 0.75rem;
  font-weight: 800;
  justify-content: center;
  object-fit: contain;
  padding: 10px;
  width: 100%;
}

.portal-logo-editor > div:last-child { min-width: 0; }
.portal-logo-editor input[type="file"] { box-sizing: border-box; max-width: 100%; width: 100%; }
.portal-public-preview__organisation-logo { margin: 14px 0 20px; max-width: 150px; }
.portal-public-preview__type { color: var(--portal-muted); font-weight: 700; margin: -8px 0 12px; }
.portal-public-preview__services { border-top: 1px solid var(--portal-line); margin-top: 18px; padding-top: 18px; }
.portal-public-preview__services p { white-space: pre-wrap; }
.portal-inline-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

@media (max-width: 900px) {
  .portal-process-strip,
  .portal-provider-response-grid,
  .portal-provider-upload-grid,
  .portal-provider-admin-actions { grid-template-columns: 1fr 1fr; }
  .portal-provider-contexts { grid-template-columns: 1fr 1fr; }
  .portal-assessment-row { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .portal-inline-evidence-form { grid-template-columns: 1fr; }
  .portal-provider-entry,
  .portal-provider-overview,
  .portal-provider-workspace-heading,
  .portal-provider-submit { align-items: flex-start; flex-direction: column; }
  .portal-process-strip,
  .portal-provider-response-grid,
  .portal-provider-upload-grid,
  .portal-provider-contexts,
  .portal-provider-admin-actions { grid-template-columns: 1fr; }
  .portal-provider-award { align-items: flex-start; }
  .portal-provider-readiness { grid-template-columns: 1fr; }
  .portal-logo-editor { grid-template-columns: 88px minmax(0, 1fr); }
}

/* The visit guide can be used a section at a time on a phone during the visit. */
.portal-visit-shortcuts { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.portal-visit-section { margin: 18px 0; border: 1px solid var(--portal-border, #d9e1e5); border-radius: 10px; padding: 18px; min-width: 0; }
.portal-visit-section > summary { cursor: pointer; font-weight: 750; padding: 6px 0; }
.portal-visit-section[open] > summary { margin-bottom: 18px; }
.portal-visit-section .portal-field, [data-provider-report-draft] .portal-field { margin: 18px 0; }
.portal-assessment-save { position: sticky; bottom: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px; background: #fff; border: 1px solid #d9e1e5; border-radius: 10px; z-index: 2; }
[id^="provider-assessment-"], #provider-next-action, #provider-report-draft, #provider-reports, [data-report-preview] { scroll-margin-top: 110px; }
.portal-issued-report { color: #1e2b34; background: white; padding: 24px; overflow-wrap: anywhere; }
.portal-issued-report h2 { margin-top: 14px; }
.portal-issued-report h3 { margin-bottom: 10px; }
.portal-issued-report section p, .portal-report-note { white-space: pre-wrap; }
.portal-issued-report section { break-inside: auto; padding: 0; margin: 24px 0; }
.portal-issued-report section h3 { break-after: avoid; }
@media (max-width: 600px) {
  .portal-issued-report { padding: 12px 0; }
  .portal-issued-report > dl { grid-template-columns: 1fr; }
}

@media print {
  body.portal-body > * { display: none !important; }
  body.portal-body main.portal-main,
  body.portal-body [data-logbook-content],
  body.portal-body .portal-print-logbook { display: block !important; }
  body.portal-body main.portal-main { width: 100%; margin: 0; padding: 0; }
  body.portal-body [data-logbook-content] > *:not(.portal-print-logbook) { display: none !important; }
  .portal-print-logbook article { break-inside: avoid; padding: 18px 0; border-top: 1px solid #bbb; }
  .portal-print-logbook h1 { font-size: 24pt; }
  .portal-print-logbook h2 { margin-bottom: 4px; font-size: 15pt; }
  .portal-print-logbook p { margin: 5px 0; }
  body.portal-body[data-provider-print] main.portal-main > *:not(.portal-provider-print) { display: none !important; }
  body.portal-body[data-provider-print] .portal-provider-print { display: block !important; }
}

/* Keep the student questionnaire within the card on narrow screens. */
[data-student-questions],
[data-student-questions] .portal-field,
[data-student-questions] .portal-choice-panel {
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
}

[data-student-questions] .portal-choice-panel {
  margin-inline: 0;
}

[data-student-questions] input,
[data-student-questions] select,
[data-student-questions] textarea {
  min-width: 0;
  max-width: 100%;
}

[data-student-questions] legend {
  max-width: 100%;
  font-weight: 700;
}

/* Membership cancellation requests and decisions. */
.portal-cancellation-card {
  margin-block: 24px;
}

.portal-cancellation-card h2 {
  overflow-wrap: anywhere;
}

.portal-cancellation-history {
  border-top: 1px solid #ddd;
  margin-top: 24px;
  padding-top: 20px;
}

.portal-cancellation-note {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Office account controls share the portal's form and button styles. */
.portal-office-list {
  padding: 0;
  list-style: none;
}

.portal-office-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--portal-line);
}

.portal-office-list li > div {
  min-width: 0;
  overflow-wrap: anywhere;
}

.portal-office-list strong,
.portal-office-list span {
  display: block;
}
