:root {
  color-scheme: dark;
  --ink: #eceef0;
  --muted: #9b9fa5;
  --line: #303338;
  --surface: #1b1d20;
  --wash: #131517;
  --navy: #e7ece8;
  --navy-2: #f5f7f5;
  --teal: #62d6a5;
  --teal-soft: #1d3028;
  --green: #62d6a5;
  --green2: #44bd8c;
  --deep: #f0f2f0;
  --pale: #1d3028;
  --gold: #e7bd70;
  --gold-soft: #30291d;
  --danger: #ff8f88;
  --danger-soft: #382324;
  --bg: #131517;
  --shadow: 0 18px 44px rgb(0 0 0 / 24%);
  --portal-sidebar-width: 256px;
  --portal-bg: #131517;
  --portal-sidebar-bg: #101214;
  --portal-raised: #1b1d20;
  --portal-border: #303338;
  --portal-accent: #62d6a5;
}

html {
  min-width: 320px;
  background: var(--portal-bg);
  scroll-padding-top: 100px;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--portal-bg);
  color-scheme: dark;
}

.portal-shell {
  display: grid;
  grid-template-columns: var(--portal-sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
  background: var(--portal-bg);
}

.portal-sidebar {
  position: fixed;
  z-index: 40;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--portal-sidebar-width);
  flex-direction: column;
  padding: 18px 13px 15px;
  border-right: 1px solid #272a2e;
  color: var(--ink);
  background: var(--portal-sidebar-bg);
}

.portal-brand {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 11px;
  padding: 8px 7px 21px;
  color: inherit;
  text-decoration: none;
}

.portal-brand-mark {
  display: grid;
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  place-items: center;
}

.portal-brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.portal-brand-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
  padding-top: 1px;
}

.portal-brand-copy strong {
  color: #f1f3f2;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.portal-brand-copy small {
  color: #9b9fa5;
  font: 11px/1.35 "Times New Roman", serif;
  overflow-wrap: anywhere;
}

.portal-sidebar-rule {
  height: 1px;
  margin: 0 7px 22px;
  background: #292c30;
}

.portal-sidebar-label {
  margin: 0 10px 8px;
  color: #767b82;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.portal-nav a {
  display: flex;
  min-width: 0;
  min-height: 42px;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #b4b8bd;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.portal-nav a:hover {
  color: #fff;
  background: #1a1d20;
}

.portal-nav a.is-active,
.portal-nav a[aria-current="page"] {
  border-color: #2b3932;
  color: #e9f8ef;
  background: #1b2922;
}

.portal-nav-icon {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border: 1px solid #393d42;
  border-radius: 7px;
  color: #adb3b0;
  font: 700 10px/1 Arial, sans-serif;
}

.portal-nav a.is-active .portal-nav-icon,
.portal-nav a[aria-current="page"] .portal-nav-icon {
  border-color: #39624c;
  color: var(--portal-accent);
  background: #21392d;
}

.portal-sidebar-foot {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding: 13px 8px 4px;
  border-top: 1px solid #292c30;
  color: #82878e;
  font-size: 10px;
  line-height: 1.45;
}

.portal-status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--portal-accent);
  box-shadow: 0 0 10px rgb(98 214 165 / 30%);
}

.portal-main {
  grid-column: 2;
  min-width: 0;
  padding: 0 34px 44px;
}

.portal-content {
  width: min(100%, 1460px);
  min-width: 0;
  margin: 0 auto;
}

.portal-content.page-shell,
.portal-content.form-admin-shell {
  width: min(100%, 1460px);
  margin: 0 auto;
  padding: 0 0 42px;
}

.portal-topbar {
  position: sticky;
  z-index: 15;
  top: 0;
  display: flex;
  min-height: 99px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 25px;
  padding: 18px 0;
  border-bottom: 1px solid var(--portal-border);
  background: rgb(19 21 23 / 95%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.portal-heading {
  min-width: 0;
}

.portal-eyebrow {
  margin: 0 0 6px;
  color: var(--portal-accent);
  font: 700 10px/1.3 Arial, sans-serif;
  letter-spacing: 0.14em;
}

.portal-heading h1 {
  margin: 0;
  color: #f0f2f1;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.portal-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.portal-shell :where(h1, h2, h3, p, label, legend, span, small, strong, td, th) {
  overflow-wrap: anywhere;
}

.portal-shell input,
.portal-shell select,
.portal-shell textarea {
  border-color: #3a3e44;
  color: #e8ebed;
  background: #141619;
}

.portal-shell input::placeholder,
.portal-shell textarea::placeholder {
  color: #767d84;
}

.portal-shell input:disabled,
.portal-shell select:disabled,
.portal-shell textarea:disabled {
  border-color: #303338;
  color: #737980;
  background: #191b1e;
}

.portal-shell :where(button, .button, input, select, textarea, a):focus-visible {
  outline: 2px solid rgb(98 214 165 / 65%);
  outline-offset: 2px;
}

.portal-shell button,
.portal-shell .button {
  border-color: #3a3e44;
  color: #e5e9e6;
  background: #222529;
}

.portal-shell button:hover,
.portal-shell .button:hover {
  border-color: #526158;
  color: #fff;
  background: #292e30;
  box-shadow: none;
}

.portal-shell .button.ghost,
.portal-shell .form-admin-actions .button {
  border-color: #383c41;
  color: #bec4c0;
  background: #1b1e21;
}

.portal-shell .button.primary,
.portal-shell button.primary,
.portal-shell button[type="submit"] {
  border-color: #3ea979;
  color: #0c1a13;
  background: var(--portal-accent);
}

.portal-shell .button.teal,
.portal-shell button.teal {
  border-color: #338f6a;
  color: #0c1912;
  background: #58c997;
}

.portal-shell .button.danger,
.portal-shell button.danger {
  border-color: #704144;
  color: #ffaaa4;
  background: #302124;
}

.portal-shell .panel,
.portal-shell .section-card,
.portal-shell .member-card,
.portal-shell .document-group,
.portal-shell .review-box,
.portal-shell .form-admin-stats article,
.portal-shell .form-admin-panel,
.portal-shell .form-card,
.portal-shell .form-detail-section {
  border-color: var(--portal-border);
  border-radius: 12px;
  color: var(--ink);
  background: var(--portal-raised);
  box-shadow: none;
}

.portal-shell .section-card,
.portal-shell .form-admin-panel {
  padding: clamp(20px, 2.7vw, 32px);
}

.portal-shell .section-heading h2,
.portal-shell .form-admin-toolbar h2,
.portal-shell .form-card h3,
.portal-shell .form-dialog .dialog-head h2 {
  color: #eef1ef;
}

.portal-shell .section-heading p,
.portal-shell .help,
.portal-shell .subtitle,
.portal-shell .form-card .english-name,
.portal-shell .form-card-meta,
.portal-shell .form-search span,
.portal-shell .footer-note {
  color: var(--muted);
}

.portal-shell .section-number,
.portal-shell .feature-icon,
.portal-shell .file-type {
  color: var(--portal-accent);
  background: #20352b;
}

.portal-shell .hero {
  margin: -7px 0 18px;
}

.portal-shell .form-number {
  border-color: #34483d;
  color: #a8eac7;
  background: #1a2921;
}

.portal-shell .notice,
.portal-shell .info-note,
.portal-shell .switch-row {
  border-color: #55482d;
  color: #dbc99e;
  background: #29241a;
}

.portal-shell .notice strong {
  color: #f0dcae;
}

.portal-shell .step-nav span {
  border-color: #34383d;
  border-radius: 8px;
  color: #a0a5ab;
  background: #191b1e;
}

.portal-shell .step-nav [aria-current="step"] {
  border-color: #395a49;
  color: #a7edc8;
  background: #20352a;
}

.portal-shell .name-option,
.portal-shell .choice,
.portal-shell .check-choice,
.portal-shell .role-status span {
  border-color: #393d42;
  color: #d6dad7;
  background: #17191c;
}

.portal-shell .choice:has(input:checked),
.portal-shell .check-choice:has(input:checked) {
  border-color: #3d7659;
  color: #c2f0d5;
  background: #1d3027;
}

.portal-shell .member-card {
  background: #191b1e;
}

.portal-shell .add-member {
  border-color: #3d7659;
  color: #9ee7bf;
  background: #1a2922;
}

.portal-shell .remove-member {
  border-color: #684044;
  color: #ffaaa4;
  background: #2c2022;
}

.portal-shell .role-status .complete,
.portal-shell .exempt-note {
  color: #9be5ba;
  background: #1d3027;
}

.portal-shell .status.error,
.portal-shell .error {
  border-color: #704144;
  color: #ffaaa4;
  background: #302124;
}

.portal-shell .review-summary,
.portal-shell .empty-form-list {
  border-color: #363a40;
  color: #aeb3b8;
  background: #17191c;
}

.portal-shell .form-admin-hero {
  margin-bottom: 16px;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--portal-border);
  border-radius: 12px;
  color: var(--ink);
  background: #1b1e21;
  box-shadow: none;
}

.portal-shell .form-admin-hero::after,
.portal-shell .form-admin-hero-mark {
  display: none;
}

.portal-shell .form-admin-hero .eyebrow {
  color: var(--portal-accent);
}

.portal-shell .form-admin-hero h1 {
  color: #eef1ef;
  font-size: clamp(24px, 2.4vw, 32px);
}

.portal-shell .form-admin-hero p:last-child {
  color: #a9afb4;
}

.portal-shell .form-admin-stats {
  gap: 12px;
  margin-bottom: 16px;
}

.portal-shell .form-admin-stats article {
  border-radius: 10px;
  background: #1a1c1f;
}

.portal-shell .form-admin-stats span {
  color: #a3a8ae;
}

.portal-shell .form-admin-stats strong {
  color: var(--portal-accent);
}

.portal-shell .form-admin-toolbar .eyebrow {
  color: var(--portal-accent);
}

.portal-shell .secondary-button,
.portal-shell .password-toggle {
  border-color: #383c41;
  color: #d4d9d6;
  background: #222529;
}

.portal-shell .password-toggle:hover {
  color: var(--portal-accent);
  background: #26312b;
}

.portal-shell .form-card {
  border-radius: 9px;
  background: #17191c;
}

.portal-shell .form-card .business-nature,
.portal-shell .form-detail-section a {
  color: #8be0b3;
}

.portal-shell .form-card-status {
  color: #f0d28c;
  background: #352d1d;
}

.portal-shell .form-card-status.done {
  color: #a4e9c2;
  background: #20352a;
}

.form-dialog {
  border: 1px solid #41454b;
  border-radius: 12px;
  color: var(--ink);
  background: #17191c;
  box-shadow: 0 28px 100px rgb(0 0 0 / 65%);
}

.form-dialog::backdrop {
  background: rgb(0 0 0 / 72%);
}

.form-detail-section {
  border-color: var(--portal-border);
  background: var(--portal-raised);
}

.form-dialog .dialog-head {
  border-color: #34383d;
  background: #1b1d20;
}

.form-detail-section h3 {
  color: #a4e8c1;
  background: #20342a;
}

.form-detail-section th,
.form-detail-section td {
  border-color: #34383d;
}

.form-detail-section th {
  color: #a4a9af;
}

.portal-shell .login-panel {
  width: min(100%, 560px);
  max-width: 560px;
  margin: clamp(64px, 11vh, 118px) auto 0;
  padding: clamp(26px, 4vw, 42px);
}

.portal-shell .login-panel h1 {
  color: #f0f2f1;
}

.portal-shell .login-panel label {
  color: #d5d9d6;
}

.portal-shell .login-panel form {
  gap: 9px;
}

.portal-shell .login-panel form > button[type="submit"] {
  margin-top: 9px;
}

.portal-shell .footer-note {
  max-width: 850px;
  margin: 24px auto 0;
  text-align: left;
}

.toast {
  border-color: #3a5748;
  color: #d7f4e2;
  background: #1e3027;
}

@media (max-width: 980px) {
  :root {
    --portal-sidebar-width: 232px;
  }

  .portal-main {
    padding-inline: 24px;
  }

  .portal-topbar {
    gap: 16px;
  }

  .portal-actions {
    gap: 6px;
  }
}

@media (max-width: 760px) {
  .portal-shell {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
  }

  .portal-sidebar {
    position: sticky;
    z-index: 40;
    inset: 0 auto auto;
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 16px;
    padding: 8px 18px 10px;
    border-right: 0;
    border-bottom: 1px solid #292c30;
  }

  .portal-brand {
    align-items: center;
    gap: 9px;
    padding: 0;
  }

  .portal-brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .portal-brand-copy {
    gap: 1px;
  }

  .portal-brand-copy strong {
    font-size: 11px;
  }

  .portal-brand-copy small {
    font-size: 10px;
  }

  .portal-sidebar-rule,
  .portal-sidebar-label,
  .portal-sidebar-foot {
    display: none;
  }

  .portal-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
  }

  .portal-nav a {
    min-height: 36px;
    gap: 6px;
    padding: 6px 8px;
    font-size: 11px;
    white-space: nowrap;
  }

  .portal-nav-icon {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }

  .portal-main {
    grid-column: auto;
    padding: 0 22px 30px;
  }

  .portal-topbar {
    min-height: 82px;
    margin-bottom: 20px;
    padding: 14px 0;
  }

  .portal-shell .login-panel {
    margin-top: 54px;
  }
}

@media (max-width: 560px) {
  .portal-sidebar {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding-inline: 14px;
  }

  .portal-brand-copy strong {
    font-size: 10.5px;
  }

  .portal-brand-copy small {
    font-size: 9px;
  }

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

  .portal-nav a {
    min-width: 0;
    justify-content: center;
    white-space: normal;
  }

  .portal-main {
    padding-inline: 14px;
  }

  .portal-topbar,
  .form-admin-header.portal-topbar {
    position: relative;
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .portal-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .portal-actions .button,
  .portal-actions button {
    min-height: 39px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .portal-shell .section-card,
  .portal-shell .form-admin-panel {
    padding: 18px 14px;
  }

  .portal-shell .form-admin-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .portal-shell .form-admin-stats article {
    padding: 11px 9px;
  }

  .portal-shell .form-admin-stats span {
    display: block;
    min-height: 2.8em;
    font-size: 10px;
  }

  .portal-shell .form-admin-stats strong {
    font-size: 20px;
  }

  .portal-shell .form-admin-toolbar,
  .portal-shell .form-card {
    align-items: stretch;
  }
}

@media print {
  :root {
    color-scheme: light;
    --ink: #172522;
    --muted: #697670;
    --line: #dce4e1;
    --surface: #fff;
    --wash: #fff;
  }

  body,
  .portal-shell {
    display: block;
    color: #172522;
    background: #fff;
  }

  .portal-sidebar,
  .portal-actions {
    display: none !important;
  }

  .portal-main {
    padding: 0;
  }

  .portal-content.page-shell,
  .portal-content.form-admin-shell {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .portal-topbar {
    position: static;
    border: 0;
    color: #172522;
    background: #fff;
    backdrop-filter: none;
  }

  .portal-heading h1,
  .portal-shell .section-heading h2 {
    color: #172522;
  }

  .portal-shell .section-card,
  .portal-shell .member-card {
    border-color: #dce4e1;
    color: #172522;
    background: #fff;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-shell *,
  .portal-shell *::before,
  .portal-shell *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Shared light workspace theme for the registration and administration pages. */
:root {
  color-scheme: light;
  --ink: #172522;
  --muted: #697670;
  --line: #dce4e1;
  --surface: #fff;
  --wash: #f4f6f5;
  --navy: #17392d;
  --navy-2: #1d5038;
  --teal: #287850;
  --teal-soft: #edf5ef;
  --green: #287850;
  --green2: #1d6341;
  --deep: #17392d;
  --pale: #edf5ef;
  --gold: #946415;
  --gold-soft: #fff5df;
  --danger: #a52d2d;
  --danger-soft: #fff0ee;
  --bg: #f4f6f5;
  --shadow: 0 16px 42px rgb(27 55 39 / 8%);
  --portal-bg: #f4f6f5;
  --portal-sidebar-bg: #fff;
  --portal-raised: #fff;
  --portal-border: #dce4e1;
  --portal-accent: #287850;
}

html,
body,
.portal-shell {
  color-scheme: light;
  color: var(--ink);
  background: var(--portal-bg);
}

.portal-sidebar {
  border-color: #e3e9e5;
  color: var(--ink);
  background: #fff;
}

.portal-brand {
  align-items: center;
  gap: 7px;
  padding: 10px 8px 19px;
}

.portal-brand-mark {
  width: 50px;
  height: 50px;
  flex-basis: 50px;
}

.portal-brand-mark img {
  transform: scale(1.32);
  transform-origin: center;
}

.portal-brand-copy {
  align-self: center;
  justify-content: center;
  gap: 3px;
  padding-top: 0;
}

.portal-brand-copy strong {
  color: #17392d;
  font-size: 11px;
  letter-spacing: -0.05em;
  line-height: 1.3;
  white-space: nowrap;
  overflow-wrap: normal;
}

.portal-brand-copy small {
  color: #697670;
  font-size: 10.5px;
  line-height: 1.25;
}

.portal-sidebar-rule,
.portal-sidebar-foot {
  border-color: #e3e9e5;
}

.portal-sidebar-rule {
  background: #e3e9e5;
}

.portal-shell .portal-sidebar-label {
  color: #87918b;
}

.portal-nav a {
  color: #53635a;
}

.portal-nav a:hover {
  color: #17392d;
  background: #f3f6f4;
}

.portal-nav a.is-active,
.portal-nav a[aria-current="page"] {
  border-color: #d1e2d6;
  color: #1d5038;
  background: #edf5ef;
}

.portal-nav-icon {
  border-color: #dce4e1;
  color: #617168;
  background: #fff;
}

.portal-nav a.is-active .portal-nav-icon,
.portal-nav a[aria-current="page"] .portal-nav-icon {
  border-color: #c7ddce;
  color: #287850;
  background: #fff;
}

.portal-sidebar-foot {
  color: #697670;
}

.portal-topbar,
.portal-shell--admin .portal-topbar {
  background: rgb(244 246 245 / 95%);
}

.portal-shell .portal-eyebrow {
  color: #287850;
}

.portal-heading h1,
.portal-shell .section-heading h2,
.portal-shell .form-admin-toolbar h2,
.portal-shell .form-card h3,
.portal-shell .form-dialog .dialog-head h2,
.portal-shell .form-admin-hero h1,
.portal-shell .login-panel h1 {
  color: #17392d;
}

.portal-shell input,
.portal-shell select,
.portal-shell textarea {
  border-color: #cbd6d0;
  color: #172522;
  background: #fff;
}

.portal-shell input::placeholder,
.portal-shell textarea::placeholder {
  color: #89948d;
}

.portal-shell input:disabled,
.portal-shell select:disabled,
.portal-shell textarea:disabled {
  border-color: #dce4e1;
  color: #89948d;
  background: #f0f3f1;
}

.portal-shell :where(button, .button, input, select, textarea, a):focus-visible {
  outline-color: rgb(40 120 80 / 55%);
}

.portal-shell button,
.portal-shell .button {
  border-color: #d3ddd7;
  color: #284137;
  background: #f6f8f7;
}

.portal-shell button:hover,
.portal-shell .button:hover {
  border-color: #c2d5c9;
  color: #17392d;
  background: #edf5ef;
}

.portal-shell .button.ghost,
.portal-shell .form-admin-actions .button,
.portal-shell .secondary-button,
.portal-shell .password-toggle {
  border-color: #d3ddd7;
  color: #40564a;
  background: #fff;
}

.portal-shell .button.primary,
.portal-shell button.primary,
.portal-shell button[type="submit"] {
  border-color: #287850;
  color: #fff;
  background: #287850;
}

.portal-shell .button.primary:hover,
.portal-shell button.primary:hover,
.portal-shell button[type="submit"]:hover {
  border-color: #1d6341;
  color: #fff;
  background: #1d6341;
}

.portal-shell .button.teal,
.portal-shell button.teal {
  border-color: #287850;
  color: #fff;
  background: #287850;
}

.portal-shell .button.danger,
.portal-shell button.danger {
  border-color: #efc8c5;
  color: #a52d2d;
  background: #fff0ee;
}

.portal-shell .panel,
.portal-shell .section-card,
.portal-shell .member-card,
.portal-shell .document-group,
.portal-shell .review-box,
.portal-shell .form-admin-stats article,
.portal-shell .form-admin-panel,
.portal-shell .form-card,
.portal-shell .form-detail-section {
  border-color: #dce4e1;
  color: #172522;
  background: #fff;
  box-shadow: 0 8px 26px rgb(27 55 39 / 5%);
}

.portal-shell .section-heading p,
.portal-shell .help,
.portal-shell .subtitle,
.portal-shell .form-card .english-name,
.portal-shell .form-card-meta,
.portal-shell .form-search span,
.portal-shell .footer-note {
  color: #697670;
}

.portal-shell .section-number,
.portal-shell .feature-icon,
.portal-shell .file-type {
  color: #287850;
  background: #edf5ef;
}

.portal-shell .form-number {
  border-color: #d1e2d6;
  color: #1d6341;
  background: #edf5ef;
}

.portal-shell .notice,
.portal-shell .info-note,
.portal-shell .switch-row {
  border-color: #ead8ad;
  color: #6d4b13;
  background: #fff5df;
}

.portal-shell .notice strong {
  color: #55390a;
}

.portal-shell .step-nav span {
  border-color: #dce4e1;
  color: #697670;
  background: #fff;
}

.portal-shell .step-nav [aria-current="step"] {
  border-color: #c7ddce;
  color: #1d6341;
  background: #edf5ef;
}

.portal-shell .name-option,
.portal-shell .choice,
.portal-shell .check-choice,
.portal-shell .role-status span {
  border-color: #dce4e1;
  color: #40564a;
  background: #fff;
}

.portal-shell .choice:has(input:checked),
.portal-shell .check-choice:has(input:checked) {
  border-color: #a8cdb0;
  color: #1d5038;
  background: #edf5ef;
}

.portal-shell .member-card {
  background: #fff;
}

.portal-shell .add-member {
  border-color: #a8cdb0;
  color: #1d6341;
  background: #edf5ef;
}

.portal-shell .remove-member {
  border-color: #efc8c5;
  color: #a52d2d;
  background: #fff0ee;
}

.portal-shell .role-status .complete,
.portal-shell .exempt-note {
  color: #1d6341;
  background: #edf5ef;
}

.portal-shell .status.error,
.portal-shell .error {
  border-color: #efc8c5;
  color: #a52d2d;
  background: #fff0ee;
}

.portal-shell .review-summary,
.portal-shell .empty-form-list {
  border-color: #dce4e1;
  color: #697670;
  background: #f7f9f8;
}

.portal-shell .form-admin-hero {
  color: #172522;
  background: #fff;
  box-shadow: 0 8px 26px rgb(27 55 39 / 5%);
}

.portal-shell .form-admin-hero .eyebrow,
.portal-shell .form-admin-toolbar .eyebrow {
  color: #287850;
}

.portal-shell .form-admin-hero p:last-child,
.portal-shell .form-admin-stats span {
  color: #697670;
}

.portal-shell .form-admin-stats article {
  background: #fff;
}

.portal-shell .form-admin-stats strong {
  color: #287850;
}

.portal-shell .password-toggle:hover {
  color: #1d6341;
  background: #edf5ef;
}

.portal-shell .form-card {
  background: #fff;
}

.portal-shell .form-card .business-nature,
.portal-shell .form-detail-section a {
  color: #1d6341;
}

.portal-shell .form-card-status {
  color: #946415;
  background: #fff5df;
}

.portal-shell .form-card-status.done {
  color: #1d6341;
  background: #edf5ef;
}

.portal-shell .login-panel label {
  color: #40564a;
}

.form-dialog {
  border-color: #dce4e1;
  color: #172522;
  background: #fff;
  box-shadow: 0 28px 100px rgb(18 38 27 / 20%);
}

.form-dialog::backdrop {
  background: rgb(20 35 27 / 38%);
}

.form-dialog .dialog-head {
  border-color: #dce4e1;
  background: #f7f9f8;
}

.form-dialog .dialog-head h2 {
  color: #17392d;
}

.form-detail-section h3 {
  color: #1d6341;
  background: #edf5ef;
}

.form-detail-section th,
.form-detail-section td {
  border-color: #dce4e1;
}

.form-detail-section th {
  color: #40564a;
}

.toast {
  border-color: #c7ddce;
  color: #1d5038;
  background: #edf5ef;
}

@media (max-width: 760px) {
  .portal-sidebar {
    border-bottom-color: #e3e9e5;
  }

  .portal-brand {
    gap: 9px;
    padding: 0;
  }

  .portal-brand-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .portal-brand-copy {
    gap: 1px;
  }

  .portal-brand-copy strong {
    font-size: 10.5px;
  }

  .portal-brand-copy small {
    font-size: 9.5px;
  }
}

.portal-shell--form .portal-topbar {
  margin-bottom: 16px;
}

.portal-shell--form .form-language-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid #dce4e1;
  border-radius: 999px;
  background: #fff;
}

.portal-shell--form .form-language-switch button {
  min-height: 30px;
  padding: 5px 9px;
  border: 0;
  border-radius: 999px;
  color: #697670;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}

.portal-shell--form .form-language-switch button:hover,
.portal-shell--form .form-language-switch button[aria-pressed="true"] {
  color: #fff;
  background: #287850;
}

.portal-shell--form .form-number-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.portal-shell--form .form-actions-inline {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.portal-shell--form .form-actions-inline .button {
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 700px) {
  .portal-shell--form .form-number-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-shell--form .form-actions-inline {
    width: 100%;
    justify-content: flex-start;
  }
}
