/* Load after portal.css. The existing application owns content and UI state. */
:root {
  color-scheme: light;
  --ink: #16181d;
  --muted: #626873;
  --blue: #194ce6;
  --blue-hover: #123bc0;
  --blue-wash: #edf2ff;
  --green: var(--blue);
  --line: #dfe3eb;
  --wash: #f7f9fd;
  --red: #a23434;
  --amber: #805519;
  --control-line: #aeb7c6;
}

html {
  scroll-padding-top: 126px;
}

body[data-portal-page] {
  background: #fff;
  color: var(--ink);
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.75;
  letter-spacing: 0;
}

:where(button, input, select, textarea) {
  letter-spacing: 0;
}

.wrap {
  width: min(1184px, calc(100% - 48px));
  margin-inline: auto;
}

.page {
  padding-block: 40px 72px;
}

.page.home-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.home-page > #page-message {
  width: min(1184px, calc(100% - 48px));
  margin-inline: auto;
}

:where(.header-inner, .section-top, .project-row, .two-column, .join-layout,
  .audience-grid, .network-facts, .home-process, .home-faq, .footer-main) > * {
  min-width: 0;
}

h1, h2, h3, h4 {
  color: var(--ink);
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h1 {
  font-size: 32px;
  line-height: 1.35;
  font-weight: 650;
}

h2 {
  font-size: 22px;
  line-height: 1.45;
}

a {
  color: var(--blue);
}

a:hover {
  text-decoration-thickness: 2px;
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.skip {
  z-index: 100;
  border: 1px solid var(--blue);
  border-radius: 6px;
}

.icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

.button, button {
  min-height: 44px;
  max-width: 100%;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--control-line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 550;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover, button:enabled:hover {
  border-color: var(--blue);
  background: var(--blue-wash);
  color: var(--blue);
  text-decoration: none;
}

.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.primary:hover, button.primary:enabled:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
  color: #fff;
}

.plain {
  min-height: 44px;
  padding-inline: 0;
  border-color: transparent;
  background: transparent;
  color: var(--blue);
  text-decoration: underline;
}

.plain:hover, button.plain:enabled:hover {
  border-color: transparent;
  background: transparent;
  text-decoration: underline;
}

.danger {
  color: var(--red);
  border-color: #dbb9b9;
}

.danger:hover, button.danger:enabled:hover {
  color: var(--red);
  border-color: var(--red);
  background: #fff4f4;
}

button:disabled, .button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .6;
}

/* Navigation rules are deliberately scoped away from .admin-nav. */
.utility-bar {
  min-height: 30px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.utility-bar > .wrap {
  min-height: 29px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0 20px;
}

.utility-bar a {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  color: var(--muted);
  text-decoration: none;
  gap: 6px;
}

.utility-bar .icon {
  width: 12px;
  height: 12px;
  flex-basis: 12px;
}

.utility-bar a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 75px;
  gap: 24px;
  padding-block: 0;
}

.brand {
  gap: 10px;
  color: var(--ink);
}

.brand img {
  width: 56px;
  height: 36px;
  flex-shrink: 0;
  object-fit: contain;
}

.brand strong {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
}

.brand small {
  font-size: 9px;
  line-height: 1.6;
  color: var(--muted);
}

#primary-nav {
  display: flex;
  width: auto;
  min-width: 0;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 22px;
}

#primary-nav > a,
#primary-nav .nav-group > button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  min-height: 44px;
  padding: 10px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
  text-decoration: none;
}

#primary-nav > a:hover,
#primary-nav a[aria-current="page"],
#primary-nav .nav-group > button:hover,
#primary-nav .nav-group > button[aria-expanded="true"] {
  color: var(--blue);
  background: transparent;
  box-shadow: none;
}

#primary-nav .nav-group {
  position: relative;
  min-width: 0;
}

#primary-nav [data-nav-toggle] > .icon {
  width: 14px;
  height: 14px;
  flex-basis: 14px;
  transition: transform 160ms ease;
}

#primary-nav [data-nav-toggle][aria-expanded="true"] > .icon {
  transform: rotate(180deg);
}

#primary-nav .nav-dropdown {
  position: absolute;
  top: calc(100% + 15px);
  left: -18px;
  z-index: 1;
  display: grid;
  width: 296px;
  max-width: calc(100vw - 32px);
  gap: 4px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 10px 24px rgb(22 24 29 / 10%);
  list-style: none;
}

#primary-nav .nav-group:last-child .nav-dropdown {
  right: -18px;
  left: auto;
}

#primary-nav .nav-dropdown a {
  display: block;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 4px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
  white-space: normal;
  overflow-wrap: anywhere;
  text-decoration: none;
}

#primary-nav .nav-dropdown a:hover,
#primary-nav .nav-dropdown a:focus-visible {
  background: var(--wash);
  color: var(--blue);
}

#primary-nav .nav-dropdown > p {
  margin: 4px 12px 6px;
  color: var(--muted);
  font-size: 12px;
}

#primary-nav .nav-dropdown a:has(> .icon) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#primary-nav .nav-dropdown strong,
#primary-nav .nav-dropdown small {
  display: block;
}

#primary-nav .nav-dropdown small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.header-actions .button {
  padding-inline: 16px;
  white-space: nowrap;
}

#menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
}

/* The approved artwork remains visible until the animated layer is ready. */
.network-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 650px;
  padding: 72px 24px;
  background: var(--blue) url("/network-hero.webp") center / cover no-repeat;
  color: #fff;
  text-align: center;
}

.network-hero > img,
.network-hero > canvas,
.network-hero > picture,
.network-hero > picture > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 920px;
  min-width: 0;
  margin-inline: auto;
}

.hero-inner.wrap {
  width: 100%;
}

.hero-kicker {
  margin: 0 0 22px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}

.hero-title {
  margin: 0 0 24px;
  color: #fff;
  font-size: 64px;
  font-weight: 650;
  line-height: 1.25;
  text-wrap: balance;
  word-break: normal;
}

.hero-rotator {
  display: block;
  height: 1.25em;
  min-width: 0;
  max-width: 100%;
  margin-inline: auto;
  line-height: 1.25;
  text-align: center;
  text-wrap: wrap;
  word-break: keep-all;
}

.hero-word {
  display: inline-block;
  width: 4em;
  max-width: 100%;
  line-height: 1.25;
  vertical-align: bottom;
  white-space: nowrap;
  transition: opacity 200ms ease, transform 200ms ease;
}

.hero-word[aria-hidden="true"] {
  visibility: hidden;
}

.hero-word.is-changing {
  opacity: 0;
  transform: translateY(8px);
}

.hero-copy {
  max-width: 660px;
  margin: 0 auto;
  color: #fff;
  font-size: 18px;
  line-height: 1.85;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-actions .button,
.network-cta .button {
  min-height: 48px;
  padding: 12px 24px;
  background: transparent;
  border-color: rgb(255 255 255 / 75%);
  color: #fff;
}

.hero-actions .primary,
.hero-actions .hero-white,
.network-cta .primary,
.network-cta .hero-white {
  border-color: #fff;
  background: #fff;
  color: var(--blue);
}

.hero-actions .button:hover,
.network-cta .button:hover {
  border-color: #fff;
  background: var(--blue-wash);
  color: var(--blue-hover);
}

.hero-caption {
  margin: 22px auto 0;
  color: #edf2ff;
  font-size: 12px;
  line-height: 1.75;
}

.network-hero :focus-visible,
.network-cta :focus-visible,
.join-aside :focus-visible {
  outline-color: #fff;
}

.home-overview,
.home-process,
.home-faq {
  padding-block: 88px;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.eyebrow {
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
}

.section-heading h2,
.section-top h2,
.home-process > :first-child h2,
.home-faq > :first-child h2,
.network-cta h2 {
  margin-bottom: 16px;
  font-size: 34px;
  line-height: 1.4;
  font-weight: 650;
  text-wrap: balance;
}

.section-heading > p:not(.eyebrow),
.section-top > div > p:not(.eyebrow) {
  color: var(--muted);
}

.audience-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px;
}

.audience-grid::before {
  content: "";
  position: absolute;
  top: 22px;
  right: 0;
  left: 0;
  border-top: 1px dotted #aebbd9;
}

.audience-item {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.audience-index {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  margin-bottom: 26px;
  padding-right: 12px;
  background: #fff;
  color: var(--blue);
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.audience-item h3 {
  margin-bottom: 12px;
  font-size: 23px;
  line-height: 1.4;
}

.audience-item p {
  color: var(--muted);
}

.audience-item ul {
  margin: 8px 0 26px;
  padding-left: 20px;
}

.audience-item li {
  margin-bottom: 9px;
  padding-left: 2px;
}

.audience-item li::marker {
  color: var(--blue);
}

.audience-item .button {
  margin-top: auto;
  border-color: var(--blue);
  color: var(--blue);
}

.audience-item .primary {
  color: #fff;
}

.network-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 64px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
}

.network-facts > div + div {
  border-left: 1px solid var(--line);
  padding-left: 24px;
}

.network-facts dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.network-facts dd {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 550;
  overflow-wrap: anywhere;
}

.home-catalog {
  width: 100%;
  padding-block: 80px;
  background: var(--wash);
  border-block: 1px solid var(--line);
}

.section-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.section-top > a {
  flex-shrink: 0;
}

.section-top .actions {
  margin-top: 0;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 550;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.home-catalog #search-form {
  margin-bottom: 28px;
}

.search-bar {
  gap: 12px;
  margin-bottom: 18px;
}

.search-bar label {
  min-width: 0;
}

.search-bar button {
  min-height: 46px;
  flex-shrink: 0;
}

.filter-row {
  gap: 16px;
}

.catalog-head {
  min-height: 58px;
  color: var(--muted);
  font-size: 13px;
}

.project-row {
  grid-template-columns: 112px minmax(0, 1fr) 132px;
  align-items: start;
  gap: 28px;
  padding-block: 28px;
  border-color: var(--line);
}

.project-row:last-child {
  border-bottom: 1px solid var(--line);
}

.project-row h2 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.5;
}

.project-row h2 a {
  color: var(--ink);
}

.project-row h2 a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.project-row p {
  max-width: 720px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.reference {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  font-variant-numeric: tabular-nums;
}

.project-row > .reference {
  padding-top: 6px;
}

.row-end {
  min-width: 0;
}

.project-row .row-end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  max-width: none;
}

.project-row .row-end .meta {
  margin: 0;
  font-size: 12px;
}

.project-row .row-end a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  border-radius: 6px;
  text-decoration: none;
}

.project-row .row-end a:hover {
  background: var(--blue-wash);
}

.badge {
  max-width: 100%;
  padding: 3px 9px;
  border-radius: 3px;
  background: var(--blue-wash);
  color: #2447a8;
  font-size: 12px;
  line-height: 1.6;
  white-space: normal;
}

.badge.paused {
  background: #fbf2df;
  color: var(--amber);
}

.badge.closed {
  background: #edf0f4;
  color: #5c626d;
}

.tags {
  gap: 6px 16px;
}

.tags span {
  color: var(--muted);
}

.tags span + span::before {
  content: none;
}

.tags span + span {
  border-left: 1px solid #c9cfd9;
  padding-left: 16px;
}

.home-process {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 80px;
}

.home-process .section-heading,
.home-faq .section-heading {
  margin: 0;
  text-align: left;
}

.process-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.process-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.process-list li > span {
  flex: 0 0 32px;
  color: var(--blue);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.process-list li > div {
  min-width: 0;
}

.process-list h3 {
  font-size: 19px;
}

.process-list p {
  color: var(--muted);
  font-size: 14px;
}

.home-faq {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 80px;
  border-top: 1px solid var(--line);
}

.faq-list details {
  padding: 0;
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding-block: 20px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 550;
  line-height: 1.6;
  overflow-wrap: anywhere;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary > .icon {
  color: var(--blue);
  transition: transform 160ms ease;
}

.faq-list details[open] summary > .icon {
  transform: rotate(180deg);
}

.faq-list details[open] summary {
  margin-bottom: 0;
  color: var(--blue);
}

.faq-list details > :not(summary) {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 14px;
}

.network-cta {
  padding: 72px 24px;
  background: var(--blue);
  color: #fff;
  text-align: center;
}

.network-cta h2,
.network-cta .eyebrow {
  color: #fff;
}

.network-cta p {
  max-width: 640px;
  margin-inline: auto;
  color: #edf2ff;
}

.network-cta .actions {
  justify-content: center;
  margin-top: 24px;
}

.network-cta > .button,
.network-cta .wrap > .button {
  margin-top: 20px;
}

/* Membership is a split page, not a stack of nested cards. */
.membership-intro {
  max-width: 760px;
  margin-bottom: 36px;
}

.membership-intro h1 {
  font-size: 36px;
}

.membership-intro > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 16px;
}

.join-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 64px;
  margin-bottom: 40px;
}

.join-flow {
  min-width: 0;
  padding-block: 12px;
}

.join-flow h2 {
  font-size: 22px;
}

.role-buttons, #role-selection {
  display: grid;
  gap: 12px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

#selected-role {
  margin-block: 24px;
  padding-block: 24px;
  border-block: 1px solid var(--line);
}

.selected-role-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
}

.membership-note {
  margin-top: 24px;
}

.role-option {
  display: grid;
  width: 100%;
  grid-template-columns: 24px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 16px;
  min-height: 96px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
}

.role-option > * {
  min-width: 0;
}

.role-option > .icon {
  color: var(--blue);
}

.role-option strong,
.role-option small {
  display: block;
}

.role-option strong {
  margin-bottom: 3px;
  font-size: 16px;
  font-weight: 600;
}

.role-option small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
}

.role-option:hover,
.role-option[aria-pressed="true"],
.role-option[aria-selected="true"] {
  border-color: var(--blue);
  background: var(--wash);
  color: var(--blue);
  text-decoration: none;
}

.join-aside {
  min-width: 0;
  padding: 44px;
  border: 0;
  border-radius: 0;
  background: var(--blue);
  color: #fff;
}

.join-aside h2,
.join-aside h3,
.join-aside .eyebrow,
.join-aside a {
  color: #fff;
}

.join-aside h2 {
  font-size: 28px;
  line-height: 1.5;
}

.join-aside .muted,
.join-aside .meta {
  color: #edf2ff;
}

.join-aside ul {
  margin: 28px 0;
  padding-left: 20px;
}

.join-aside li {
  margin-bottom: 18px;
  padding-left: 6px;
}

.join-aside .join-benefits {
  padding: 0;
  list-style: none;
}

.join-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 0;
  padding: 22px 0;
  border-top: 1px solid rgb(255 255 255 / 35%);
}

.join-benefits li > span {
  flex: 0 0 28px;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.join-benefits li > div {
  min-width: 0;
}

.join-benefits h3 {
  font-size: 17px;
}

.join-benefits p {
  color: #edf2ff;
  font-size: 14px;
}

.join-aside .band {
  border-color: rgb(255 255 255 / 35%);
}

/* Operational pages keep their compact hierarchy and existing form labels. */
.page-top {
  margin-bottom: 32px;
}

.two-column {
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 48px;
  align-items: start;
}

.project-detail-header {
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.project-detail-header .reference,
.project-detail-header .badge {
  display: inline-block;
  margin: 0 12px 14px 0;
  vertical-align: middle;
}

.project-detail-header h1 {
  max-width: 880px;
  margin-bottom: 14px;
  font-size: 32px;
}

.project-detail-header p {
  max-width: 780px;
}

.detail-outline {
  padding-block: 4px 24px;
}

.detail-outline .facts {
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px 24px;
}

.sidebar {
  min-width: 0;
  border-color: var(--line);
  padding-left: 28px;
  overflow-wrap: anywhere;
}

.sidebar h2 {
  font-size: 21px;
}

.sidebar .actions > * {
  max-width: 100%;
}

.facts dt, .facts dd,
.request-row > *, .contact-links a > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

label, legend {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

label {
  line-height: 1.6;
}

input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  min-height: 46px;
  max-width: 100%;
  border-color: var(--control-line);
  border-radius: 6px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}

textarea {
  min-height: 128px;
}

input::placeholder, textarea::placeholder {
  color: #6c7280;
  opacity: 1;
}

input:disabled, select:disabled, textarea:disabled,
input[readonly], textarea[readonly] {
  background: #f0f2f6;
  color: #5c626d;
}

input[type="checkbox"], input[type="radio"] {
  display: inline-block;
  width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  margin: 4px 0 0;
  accent-color: var(--blue);
  flex-shrink: 0;
}

.check {
  min-height: 44px;
  align-items: flex-start;
}

.check span {
  min-width: 0;
}

.field-note {
  color: var(--muted);
  font-weight: 400;
}

.notice {
  border-left-color: #94a8dc;
  background: var(--wash);
}

.notice.success {
  border-color: var(--blue);
  background: var(--blue-wash);
  color: #2447a8;
}

.notice.error {
  border-color: var(--red);
  background: #fff4f4;
  color: #8b3030;
}

.summary-box {
  background: var(--wash);
  border-radius: 0;
}

.auth {
  max-width: 480px;
  margin-block: 24px 64px;
}

.login-dialog, .admin-confirm-dialog {
  border-color: var(--line);
  border-radius: 6px;
  box-shadow: 0 20px 64px rgb(22 24 29 / 18%);
  overscroll-behavior: contain;
}

.login-dialog::backdrop, .admin-confirm-dialog::backdrop {
  background: rgb(22 24 29 / 48%);
}

.dialog-close {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 28px;
}

.admin-table th {
  background: var(--wash);
}

.admin-table :where(input, select, textarea) {
  max-width: 100%;
}

.admin-metrics dd {
  color: var(--ink);
}

.pager {
  flex-wrap: wrap;
}

.site-footer {
  padding: 0;
  background: #fff;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  gap: 64px;
  padding-block: 56px;
}

.footer-main .brand {
  margin-bottom: 18px;
}

.footer-main p {
  max-width: 360px;
}

.footer-main h2, .footer-main h3, .footer-main h4 {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 600;
}

.footer-main ul {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-main > div > a:not(.brand) {
  display: flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 32px;
  padding-block: 4px;
  margin-bottom: 4px;
}

.footer-main nav, .footer-main .footer-links {
  display: flex;
  width: auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
}

.footer-main a:not(.brand), .footer-bottom a {
  color: var(--muted);
  font-size: 13px;
  white-space: normal;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.footer-main a:hover, .footer-bottom a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-block: 22px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom .footer-links {
  gap: 8px 20px;
  margin: 0;
}

.footer-bottom a {
  font-size: 12px;
}

.record {
  min-width: 0;
}

.record img {
  flex-shrink: 0;
}

.site-footer > .footer-inner:not(.footer-main) {
  padding-block: 32px;
}

@media (min-width: 900px) {
  .sidebar {
    position: sticky;
    top: 126px;
    max-height: calc(100vh - 150px);
    max-height: calc(100dvh - 150px);
    overflow: auto;
    padding-right: 8px;
    scrollbar-gutter: stable;
  }
}

@media (min-width: 900px) and (max-height: 780px) {
  .network-hero {
    min-height: calc(100vh - 110px);
    min-height: calc(100svh - 110px);
    padding-block: 48px;
  }
}

@media (min-width: 900px) and (max-height: 600px) {
  .sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }
}

@media (min-width: 900px) and (max-width: 1199px) {
  .header-inner {
    gap: 16px;
  }

  .brand strong {
    font-size: 20px;
  }

  #primary-nav {
    gap: 12px;
  }

  #primary-nav > a, #primary-nav .nav-group > button {
    font-size: 13px;
  }

  .header-actions {
    gap: 8px;
  }

  .header-actions .button {
    padding-inline: 12px;
    font-size: 13px;
  }

  .home-process, .home-faq, .join-layout {
    gap: 40px;
  }
}

@media (max-width: 899px) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 0 16px;
    min-height: 75px;
    padding-block: 12px;
  }

  .header-inner > .brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  #menu-toggle {
    display: inline-flex;
    grid-column: 2;
    grid-row: 1;
  }

  #primary-nav {
    display: none;
    grid-column: 1 / -1;
    grid-row: 2;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px solid var(--line);
  }

  .header-actions {
    display: none;
    grid-column: 1 / -1;
    grid-row: 3;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 0 4px;
    margin-top: 12px;
    border-top: 1px solid var(--line);
  }

  .header-inner:has(#menu-toggle[aria-expanded="true"]) #primary-nav,
  .header-inner:has(#menu-toggle[aria-expanded="true"]) .header-actions {
    display: flex;
  }

  .site-header:has(#menu-toggle[aria-expanded="true"]) {
    max-height: 100vh;
    max-height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  #primary-nav > a, #primary-nav .nav-group > button {
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    padding: 12px 4px;
    font-size: 15px;
    white-space: normal;
  }

  #primary-nav .nav-dropdown,
  #primary-nav .nav-group:last-child .nav-dropdown {
    position: static;
    width: 100%;
    max-width: none;
    margin: 0 0 8px;
    padding: 4px 8px;
    border: 0;
    border-left: 2px solid var(--line);
    border-radius: 0;
    box-shadow: none;
  }

  .header-actions .button {
    flex: 1 1 120px;
    white-space: normal;
  }

  .network-hero {
    min-height: 600px;
    padding-block: 64px;
  }

  .hero-title {
    font-size: 54px;
  }

  .home-overview, .home-process, .home-faq {
    padding-block: 64px;
  }

  .audience-grid {
    gap: 24px;
  }

  .audience-item h3 {
    font-size: 20px;
  }

  .audience-item .button {
    padding-inline: 14px;
  }

  .home-catalog {
    padding-block: 64px;
  }

  .home-process {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 32px;
  }

  .home-faq {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 32px;
  }

  .join-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .two-column {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .sidebar {
    position: static;
    max-height: none;
    margin-top: 0;
    padding: 28px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    overflow: visible;
  }

  .footer-main {
    gap: 32px;
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .wrap, .home-page > #page-message {
    width: calc(100% - 32px);
  }

  .page {
    padding-block: 28px 48px;
  }

  .page.home-page {
    width: 100%;
    padding: 0;
  }

  h1, .project-detail-header h1 {
    font-size: 27px;
  }

  h2 {
    font-size: 20px;
  }

  .utility-bar > .wrap {
    gap: 0 14px;
  }

  .brand strong {
    font-size: 21px;
  }

  .network-hero {
    min-height: 580px;
    min-height: min(620px, calc(100svh - 114px));
    padding: 52px 20px;
  }

  .hero-kicker {
    margin-bottom: 20px;
    font-size: 12px;
  }

  .hero-title {
    font-size: 42px;
    line-height: 1.3;
    margin-bottom: 22px;
  }

  .hero-rotator {
    height: 1.3em;
    line-height: 1.3;
  }

  .hero-word {
    line-height: 1.3;
  }

  .hero-copy {
    font-size: 16px;
    line-height: 1.8;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 26px;
  }

  .hero-actions .button {
    padding-inline: 18px;
  }

  .hero-caption {
    max-width: 300px;
    font-size: 11px;
  }

  .home-overview, .home-process, .home-faq {
    padding-block: 52px;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .section-heading h2,
  .section-top h2,
  .home-process > :first-child h2,
  .home-faq > :first-child h2,
  .network-cta h2 {
    font-size: 28px;
  }

  .audience-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .audience-grid::before {
    content: none;
  }

  .audience-item + .audience-item {
    padding-top: 28px;
    border-top: 1px dotted #aebbd9;
  }

  .audience-index {
    height: 32px;
    margin-bottom: 14px;
    justify-content: flex-start;
  }

  .audience-item h3 {
    font-size: 22px;
  }

  .audience-item ul {
    margin-bottom: 20px;
  }

  .network-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 20px;
    margin-top: 40px;
    padding-top: 24px;
  }

  .network-facts > div + div {
    padding-left: 0;
    border-left: 0;
  }

  .network-facts > div:nth-child(even) {
    padding-left: 20px;
    border-left: 1px solid var(--line);
  }

  .network-facts dd {
    font-size: 15px;
  }

  .home-catalog {
    padding-block: 48px;
  }

  .section-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
  }

  .filter-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
  }

  .filter-row button {
    justify-self: stretch;
    min-height: 46px;
  }

  .project-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding-block: 24px;
  }

  .project-row > .reference {
    grid-column: auto;
    padding: 0;
  }

  .project-row h2 {
    font-size: 19px;
  }

  .project-row .row-end {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    width: 100%;
    padding-top: 8px;
    text-align: left;
  }

  .project-row .row-end a {
    margin-left: auto;
  }

  .home-process, .home-faq {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .home-process .section-heading, .home-faq .section-heading {
    width: 100%;
    max-width: none;
  }

  .process-list {
    padding-left: 0;
  }

  .process-list li {
    padding-left: 0;
    gap: 16px;
  }

  .network-cta {
    padding: 52px 20px;
  }

  .membership-intro h1 {
    font-size: 30px;
  }

  .join-layout {
    gap: 28px;
    margin-bottom: 16px;
  }

  .join-aside {
    padding: 28px 24px;
  }

  .join-aside h2 {
    font-size: 24px;
  }

  .role-option {
    gap: 12px;
    padding: 16px;
  }

  .detail-outline .facts {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
  }

  .project-detail-header {
    margin-bottom: 20px;
    padding-bottom: 20px;
  }

  .request-row {
    flex-wrap: wrap;
    gap: 12px;
  }

  .request-row .row-end {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 100%;
    text-align: left;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    padding-block: 40px;
  }

  .footer-main > :first-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    align-items: flex-start;
    gap: 16px;
  }

  .footer-bottom .footer-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  /* Reserve two lines: the fixed five-character lead, then the rotating word. */
  .hero-rotator {
    width: 5em;
    height: 2.6em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .network-hero > canvas {
    display: none;
  }
  html {
    scroll-behavior: auto;
  }

  body[data-portal-page] *,
  body[data-portal-page] *::before,
  body[data-portal-page] *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  .hero-word.is-changing {
    opacity: 1;
    transform: none;
  }
}

/* Customer task surfaces. Admin retains its existing layout and density. */
body.customer-interface {
  --ink: #192633;
  --muted: #626d79;
  --line: #dce3e9;
  --wash: #f5f7f9;
  --teal: #007e87;
  background: #fff;
}
.customer-interface .header-inner { min-height: 80px; gap: 20px; }
.customer-interface #primary-nav { gap: 24px; }
.customer-interface #primary-nav > a { display: inline-flex; align-items: center; gap: 7px; }
.customer-interface #primary-nav > a .icon { width: 17px; height: 17px; flex-basis: 17px; }
.customer-interface #primary-nav > a[aria-current] { box-shadow: inset 0 -2px var(--blue); }
.customer-interface #primary-nav .nav-group > button { color: var(--muted); font-size: 13px; }
.customer-interface .brand { gap: 10px; }
.customer-interface .brand strong { font-size: 21px; }
.customer-interface .brand small { font-size: 8px; }
.customer-interface .utility-bar { background: var(--wash); }
.customer-interface .header-actions .button { min-width: 98px; }
.customer-interface .network-hero { min-height: 600px; padding: 56px 24px; }
.customer-interface .hero-rotator { height: auto; min-height: 1.25em; }
.customer-interface .hero-inner { max-width: 900px; }
.customer-interface .hero-title { font-size: 56px; margin-bottom: 24px; }
.customer-interface .hero-kicker { font-size: 12px; margin-bottom: 18px; }
.customer-interface .hero-copy { font-size: 16px; }
.customer-interface #hero-search { max-width: 680px; margin: 32px auto 0; }
.customer-interface .hero-search-box { display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 20px; background: #fff; border: 1px solid #fff; border-radius: 6px; color: var(--muted); box-shadow: 0 8px 24px #00255a24; }
.customer-interface .hero-search-box > .icon { width: 24px; height: 24px; flex-basis: 24px; }
.customer-interface .hero-search-box input { flex: 1; width: 0; min-height: 48px; margin: 0; padding: 8px 0; border: 0; background: #fff; font-size: 16px; }
.customer-interface .hero-search-box input:focus-visible { outline-offset: 0; }
.customer-interface .hero-search-box button { flex: 0 0 auto; min-height: 48px; padding-inline: 22px; }
.customer-interface .hero-actions { margin-top: 22px; gap: 24px; }
.customer-interface .hero-browse { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; color: #fff; text-decoration: none; }
.customer-interface .hero-browse:hover { text-decoration: underline; }
.customer-interface .hero-divider { width: 1px; height: 16px; background: #ffffff69; }
.customer-interface .hero-caption { margin-top: 20px; color: #e0eaff; font-size: 12px; }
.customer-interface .home-catalog { padding: 52px 0 64px; background: #fff; }
.customer-interface .section-top { margin-bottom: 28px; align-items: center; }
.customer-interface .section-top h2 { font-size: 28px; margin-bottom: 6px; }
.customer-interface .page-top { padding-bottom: 24px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.customer-interface .page-top h1 { font-size: 32px; }
.customer-interface .page-top .intro { font-size: 15px; }
.customer-interface .eyebrow { color: var(--teal); font-size: 11px; font-weight: 600; }
.customer-interface #search-form { scroll-margin-top: 100px; padding: 24px; background: var(--wash); border-block: 1px solid var(--line); margin-bottom: 20px; }
.customer-interface .search-bar { margin: 0 0 18px; }
.customer-interface .search-bar label { font-size: 12px; color: var(--muted); }
.customer-interface .search-bar input { padding-left: 16px; min-height: 48px; background: #fff; }
.customer-interface .search-bar button { min-height: 48px; min-width: 104px; }
.customer-interface .filter-row { margin-bottom: 0; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 16px; }
.customer-interface .filter-row label { font-size: 12px; color: var(--muted); }
.customer-interface .filter-row label { position: relative; }
.customer-interface .filter-row select { font-size: 14px; background-color: #fff; appearance: none; padding-right: 36px; }
.customer-interface .filter-row label > .icon { position: absolute; right: 12px; bottom: 14px; width: 18px; height: 18px; pointer-events: none; color: var(--ink); }
.customer-interface .active-filters { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 16px; }
.customer-interface .active-filters button { min-height: 36px; padding: 6px 10px; font-size: 12px; color: #153fab; background: #e8efff; border-color: #b8c9f6; }
.customer-interface .active-filters .icon { width: 14px; height: 14px; flex-basis: 14px; }
.customer-interface .catalog-head { border: 0; padding: 12px 0 16px; }
.customer-interface .catalog-head > span:first-child { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.customer-interface .catalog-head .icon { color: var(--teal); }
.customer-interface .catalog-columns { display: grid; grid-template-columns: 148px minmax(0, 1fr) 180px; gap: 28px; padding: 10px 20px; border-block: 1px solid var(--line); background: var(--wash); color: var(--muted); font-size: 12px; }
.customer-interface .catalog-columns > :last-child { text-align: right; }
.customer-interface .project-row { grid-template-columns: 148px minmax(0, 1fr) 180px; gap: 28px; padding: 24px 20px; margin: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: #fff; box-shadow: none; scroll-margin-top: 108px; transition: background-color 150ms; }
.customer-interface .project-row:hover, .customer-interface .project-row:focus-within { background: #f7faff; }
.customer-interface .project-row > .reference { padding-top: 2px; font-size: 20px; font-weight: 600; color: #184677; }
.customer-interface .project-row h2 { font-size: 18px; margin: 0 0 8px; line-height: 1.5; }
.customer-interface .project-row h2 a { color: var(--ink); }
.customer-interface .project-row h2 a:hover { color: var(--blue); text-decoration: underline; }
.customer-interface .project-row-body > p { color: var(--muted); font-size: 14px; }
.customer-interface .project-row .row-end { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 8px; max-width: none; }
.customer-interface .project-row .row-end .meta { font-size: 11px; margin: 0; }
.customer-interface .project-row .row-end .row-detail { display: inline-flex; gap: 10px; min-height: 36px; padding: 6px 0; border: 0; font-size: 13px; }
.customer-interface .tags { gap: 6px; margin-top: 14px; }
.customer-interface .tags span { background: #f0f3f6; border: 0; border-radius: 3px; padding: 3px 8px; font-size: 11px; color: #566472; }
.customer-interface .tags span + span { border: 0; padding-left: 8px; }
.customer-interface .badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 3px; padding: 4px 8px; background: #e8f4f2; color: #16675f; }
.customer-interface .badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.customer-interface .badge.paused, .customer-interface .badge.directed { background: #faf1e0; color: #7a561c; }
.customer-interface .badge.closed { background: #eef0f3; color: #606b76; }
.customer-interface .preview-gate { margin: 0; background: var(--wash); border: 0; padding: 24px; }
.customer-interface .pager { justify-content: space-between; padding-block: 16px; margin: 0; }
.customer-interface .pager .actions { margin: 0; gap: 16px; }
.customer-interface .pager button { min-width: 44px; padding: 10px; }
.customer-interface .project-detail-header { padding: 8px 0 32px; border-bottom: 1px solid var(--line); }
.customer-interface .project-detail-header .reference { font-size: 21px; color: var(--teal); margin-bottom: 14px; }
.customer-interface .project-detail-header h1 { font-size: 32px; }
.customer-interface .breadcrumbs a { display: inline-flex; align-items: center; gap: 8px; }
.customer-interface .two-column { grid-template-columns: minmax(0, 1fr) 328px; gap: 48px; }
.customer-interface .sidebar { padding: 24px 0 24px 28px; align-self: start; position: sticky; top: 108px; border-left: 1px solid var(--line); max-height: none; overflow: visible; }
.customer-interface .sidebar h2 { font-size: 20px; }
.customer-interface .sidebar p { font-size: 14px; }
.customer-interface .sidebar .actions .button { width: 100%; }
.customer-interface .detail-outline .facts { grid-template-columns: 112px minmax(0, 1fr); padding: 20px; background: var(--wash); gap: 14px 20px; border: 0; }
.customer-interface .detail-outline > .band { padding: 28px 0; }
.customer-interface .summary-box { padding: 24px; border-left: 3px solid var(--teal); background: #f0f7f7; }
.customer-interface .summary-box .reference { font-size: 18px; color: var(--teal); }
.customer-interface .summary-box h2 { font-size: 21px; }
.customer-interface :is(#request-form, #profile-form) { padding-block: 8px 20px; }
.customer-interface .form-section-title { font-size: 17px; padding-top: 24px; margin: 12px 0 16px; border-top: 1px solid var(--line); }
.customer-interface :is(#request-form, #profile-form) label { color: #3d4a57; font-size: 13px; }
.customer-interface :is(input, select, textarea):focus { border-color: var(--blue); }
.customer-interface :is(input, textarea):user-invalid { border-color: var(--red); }
.customer-interface .field-error { display: block; font-size: 12px; color: var(--red); margin: 6px 0 0; }
.customer-interface .check { padding: 14px 0; }
.customer-interface .account-summary { align-items: center; padding: 10px 0; }
.customer-interface .account-summary h2 { display: flex; align-items: center; gap: 10px; }
.customer-interface .account-summary h2::before { content: ''; width: 8px; height: 8px; background: var(--teal); border-radius: 50%; }
.customer-interface .history-list { padding: 0; }
.customer-interface .request-row { padding: 24px 8px; }
.customer-interface .request-row h3 { font-size: 18px; }
.customer-interface .request-row .reference { color: #184677; font-size: 13px; }
.customer-interface .timeline { margin-top: 20px; padding-left: 8px; }
.customer-interface .timeline li { position: relative; padding: 0 0 28px 28px; border: 0; border-left: 1px solid #bacbd9; }
.customer-interface .timeline li:last-child { padding-bottom: 8px; border-color: transparent; }
.customer-interface .timeline li::before { content: ''; position: absolute; left: -5px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px #fff; }
.customer-interface .timeline .meta { margin-top: 0; font: 12px/1.6 ui-monospace, Consolas, monospace; }
.customer-interface .login-dialog { padding: 32px; border: 0; border-top: 4px solid var(--blue); border-radius: 6px; box-shadow: 0 16px 64px #12254133; }
.customer-interface .login-dialog::backdrop { background: #0d203b73; backdrop-filter: blur(3px); }
.customer-interface .login-dialog h2 { font-size: 24px; }
.customer-interface .login-dialog .dialog-close { width: 44px; height: 44px; }
.customer-interface .auth { border-top: 4px solid var(--blue); padding: 28px 0; }
.customer-interface .join-aside { background: #f0f7f7; border: 0; color: var(--ink); padding: 32px; }
.customer-interface .join-aside :is(h2, h3, p, li) { color: var(--ink); }
.customer-interface .join-aside .eyebrow { color: var(--teal); }
.customer-interface .role-option { border: 1px solid var(--line); box-shadow: none; border-radius: 4px; }
.customer-interface .role-option:hover { border-color: var(--blue); }
.customer-interface .contact-panel { margin-top: 24px; min-width: 0; }
.customer-interface .contact-tabs { display: flex; flex-wrap: nowrap; gap: 0; border-bottom: 1px solid var(--line); }
.customer-interface .contact-tabs button { flex: 1; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; font-size: 13px; min-width: 0; padding: 12px 8px; }
.customer-interface .contact-tabs button[aria-selected=true] { border-color: var(--teal); color: var(--teal); background: #f0f7f7; }
.customer-interface .qr-panel { text-align: center; padding: 24px 0 18px; }
.customer-interface .qr-viewport { width: min(224px, 100%); aspect-ratio: 1; position: relative; overflow: hidden; margin: 0 auto 16px; background: #fff; }
.customer-interface .qr-image { position: absolute; max-width: none; height: auto; }
.customer-interface .qr-image.wechat { width: 142.86%; left: -21.43%; top: -64.29%; }
.customer-interface .qr-image.wecom { width: 333.33%; left: -211%; top: -409%; }
.customer-interface .qr-caption { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.customer-interface .qr-actions { display: flex; justify-content: center; gap: 20px; }
.customer-interface .qr-actions a { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; font-size: 12px; text-decoration: none; }
.customer-interface .qr-actions .icon { width: 15px; height: 15px; flex-basis: 15px; }
.customer-interface .contact-links { gap: 0; margin: 12px 0 0; }
.customer-interface .contact-method { display: grid; grid-template-columns: 32px minmax(0, 1fr) 36px; gap: 10px; padding: 16px 0; border-top: 1px solid var(--line); align-items: center; }
.customer-interface .contact-links .contact-method a { display: flex; flex-direction: column; gap: 2px; border: 0; padding: 0; font-size: 12px; min-width: 0; }
.customer-interface .contact-links .contact-method strong { font: 600 20px/1.5 ui-monospace, Consolas, monospace; color: var(--ink); }
.customer-interface .contact-symbol { display: inline-flex; align-items: center; justify-content: center; color: var(--teal); }
.customer-interface .icon-button { padding: 6px; width: 36px; min-height: 44px; border: 0; background: transparent; }
.customer-interface .contact-locked { display: grid; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.customer-interface .contact-locked > .contact-symbol { justify-content: flex-start; }
.customer-interface .contact-context { padding-top: 24px; }
.customer-interface .contact-page .contact-panel { max-width: 520px; margin-top: 0; }
.customer-interface .document-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; }
.customer-interface .document-nav { display: flex; flex-direction: column; align-items: stretch; gap: 4px; position: sticky; top: 108px; align-self: start; }
.customer-interface .document-nav a { padding: 12px 16px; white-space: normal; border-left: 2px solid var(--line); }
.customer-interface .document-nav a:hover { background: var(--wash); border-color: var(--blue); }
.customer-interface .document-layout section { scroll-margin-top: 108px; }
.customer-interface .home-process, .customer-interface .home-faq { padding-block: 64px; gap: 64px; }
.customer-interface .network-cta { padding: 40px 24px; text-align: left; background: #f0f7f7; color: var(--ink); }
.customer-interface .network-cta .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.customer-interface .network-cta :is(.eyebrow, p) { display: none; }
.customer-interface .network-cta h2 { color: var(--ink); font-size: 24px; margin: 0; flex: 1; }
.customer-interface .network-cta .button { background: var(--blue); color: #fff; border-color: var(--blue); margin: 0; }
@media (min-width: 1280px) and (max-height: 850px) {
  .customer-interface .network-hero { min-height: 560px; padding-block: 40px; }
}
@media (max-width: 1100px) and (min-width: 901px) {
  .customer-interface #primary-nav { gap: 12px; }
  .customer-interface .brand small { display: none; }
  .customer-interface .brand strong { font-size: 18px; }
  .customer-interface #primary-nav > a .icon { display: none; }
}
@media (max-width: 900px) {
  .customer-interface .header-inner { min-height: 72px; gap: 12px; }
  .customer-interface #primary-nav { gap: 0; }
  .customer-interface #primary-nav > a { min-height: 48px; width: 100%; padding: 12px; }
  .customer-interface .two-column { grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; }
  .customer-interface .sidebar { padding-left: 20px; }
  .customer-interface .catalog-columns, .customer-interface .project-row { grid-template-columns: 120px minmax(0, 1fr) 140px; gap: 18px; padding-inline: 12px; }
  .customer-interface .project-row > .reference { font-size: 17px; }
  .customer-interface .document-layout { grid-template-columns: 160px minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 700px) {
  .customer-interface .wrap { width: calc(100% - 32px); }
  .customer-interface .header-inner { gap: 8px; }
  .customer-interface .brand small { display: none; }
  .customer-interface .brand strong { font-size: 19px; }
  .customer-interface .header-actions .button { min-width: 0; padding-inline: 12px; }
  .customer-interface .header-actions .icon { display: none; }
  .customer-interface .network-hero { min-height: 600px; padding: 44px 16px; }
  .customer-interface .hero-rotator { height: auto; min-height: 2.6em; }
  .customer-interface .hero-inner.wrap { width: 100%; }
  .customer-interface .hero-title { font-size: 36px; }
  .customer-interface .hero-copy { max-width: 290px; font-size: 14px; }
  .customer-interface .hero-search-box { gap: 8px; padding: 6px 6px 6px 12px; }
  .customer-interface .hero-search-box > .icon { width: 18px; height: 18px; flex-basis: 18px; }
  .customer-interface .hero-search-box input { font-size: 14px; min-height: 44px; }
  .customer-interface .hero-search-box button { padding: 10px 12px; min-height: 44px; font-size: 13px; }
  .customer-interface .hero-search-box button .icon { display: none; }
  .customer-interface .hero-actions { gap: 16px; }
  .customer-interface .home-catalog { padding: 36px 0; }
  .customer-interface .section-top { display: block; }
  .customer-interface .section-top h2 { font-size: 23px; }
  .customer-interface .section-top > a { margin-top: 16px; }
  .customer-interface .page-top h1 { font-size: 27px; }
  .customer-interface #search-form { padding: 16px; }
  .customer-interface .filter-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .customer-interface .filter-row button { justify-self: end; }
  .customer-interface .catalog-columns { display: none; }
  .customer-interface .project-row { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 24px 0; }
  .customer-interface .project-row > .reference { grid-column: auto; font-size: 20px; }
  .customer-interface .project-row .row-end { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
  .customer-interface .project-row .row-end .meta { display: none; }
  .customer-interface .tags { margin-top: 12px; }
  .customer-interface .pager { gap: 8px; font-size: 12px; }
  .customer-interface .pager .meta { font-size: 11px; }
  .customer-interface .two-column { display: block; }
  .customer-interface .sidebar { position: static; border-left: 0; padding: 24px 0; }
  .customer-interface .project-detail-header h1 { font-size: 27px; }
  .customer-interface .project-primary-action { position: fixed; z-index: 20; bottom: 0; left: 0; right: 0; padding: 12px 16px max(12px, env(safe-area-inset-bottom)); background: #fffffffa; border-top: 1px solid var(--line); margin: 0; }
  .customer-interface[data-portal-page=project]:has(.project-primary-action) { padding-bottom: 84px; }
  .customer-interface .document-layout { display: block; }
  .customer-interface .document-nav { position: static; flex-direction: row; gap: 8px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
  .customer-interface .document-nav a { padding: 8px 10px; font-size: 12px; border-left: 0; }
  .customer-interface .contact-panel { max-width: 520px; }
  .customer-interface .contact-method { grid-template-columns: 32px minmax(0, 1fr) 44px; }
  .customer-interface .icon-button { width: 44px; }
  .customer-interface .login-dialog { padding: 28px 20px; }
  .customer-interface .home-process, .customer-interface .home-faq { gap: 28px; padding-block: 40px; }
  .customer-interface .join-aside { padding: 24px; }
  .customer-interface .network-cta { padding: 32px 0; }
  .customer-interface .network-cta h2 { flex-basis: 100%; font-size: 22px; }
}
