:root {
  color-scheme: light;
  --ink: #16202a;
  --muted: #66717f;
  --line: #dfe5ec;
  --surface: #ffffff;
  --soft: #f5f7fa;
  --brand: #0f766e;
  --brand-dark: #115e59;
  --accent: #b45309;
  --danger: #b91c1c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f6f8fb;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

.shell {
  min-height: 100vh;
}

.topbar {
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 16px 28px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  display: flex;
  gap: 12px;
  font-weight: 800;
}

.logo {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: white;
  display: inline-flex;
  font-size: 14px;
  height: 36px;
  justify-content: center;
  letter-spacing: 0;
  width: 54px;
}

.brand-logo {
  height: 44px;
  object-fit: contain;
  width: auto;
}

.main-brand-logo {
  height: 58px;
  max-width: 150px;
}

.brand-script {
  color: #c15a77;
  font-family: "Bradley Hand", "Segoe Script", "Comic Sans MS", cursive;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  max-width: 290px;
}

.nav {
  display: flex;
  gap: 8px;
}

.nav a,
.button,
button {
  align-items: center;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 6px;
  color: white;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 700;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
}

.nav a.secondary,
.button.secondary,
button.secondary {
  background: white;
  color: var(--ink);
}

.button.ghost,
button.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.page {
  margin: 0 auto;
  max-width: 1220px;
  padding: 28px;
}

.section {
  margin-bottom: 28px;
}

.section-head {
  align-items: end;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 16px;
}

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1.15;
  margin: 0;
}

h1 {
  font-size: clamp(28px, 4vw, 44px);
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 18px;
}

p {
  color: var(--muted);
  margin: 6px 0 0;
}

.toolbar {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 1.5fr repeat(3, minmax(140px, 220px));
  margin: 20px 0;
}

input,
select,
textarea {
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  min-height: 40px;
  padding: 9px 10px;
  width: 100%;
}

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

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.candidate-card,
.panel,
.table-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.candidate-card {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  overflow: hidden;
}

.photo {
  align-items: center;
  background: linear-gradient(135deg, #e8eef4, #f8fafc);
  color: var(--muted);
  display: flex;
  font-weight: 800;
  height: 230px;
  justify-content: center;
  overflow: hidden;
}

.photo img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.meta {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  gap: 8px;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill {
  background: #edf7f5;
  border: 1px solid #cce7e2;
  border-radius: 999px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
}

.status {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 8px;
}

.status.available {
  background: #dcfce7;
  color: #166534;
}

.status.in_progress {
  background: #dbeafe;
  color: #1d4ed8;
}

.status.cooldown {
  background: #fee2e2;
  color: #991b1b;
}

.status.waiting {
  background: #fef3c7;
  color: #92400e;
}

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

.panel {
  padding: 18px;
}

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

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

.form-grid .wide {
  grid-column: 1 / -1;
}

.checkbox-row {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  font-weight: 800;
  gap: 8px;
  min-height: 42px;
  padding: 10px 12px;
}

.checkbox-row input {
  min-height: auto;
  width: auto;
}

.table-panel {
  overflow: auto;
}

.compact-table-panel {
  max-height: 420px;
}

table {
  border-collapse: collapse;
  min-width: 900px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 11px 12px;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.notice {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  color: #9a3412;
  padding: 12px;
}

.notice a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.referral-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.75fr);
  margin-bottom: 18px;
}

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

.inline-result {
  color: var(--muted);
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  margin-left: 10px;
  vertical-align: middle;
}

.referral-table-panel {
  margin-top: 18px;
}

.admin-wide-table {
  min-width: 1180px;
}

.compact-cell {
  font-size: 13px;
  max-width: 220px;
}

.action-cell {
  white-space: nowrap;
}

.selected-row td {
  background: #f0fdfa;
}

.referral-audit-panel {
  margin-top: 18px;
}

.audit-content {
  margin-top: 12px;
}

.audit-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.audit-grid h4 {
  margin: 0 0 10px;
}

.audit-item {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 10px;
  padding: 10px 12px;
}

.status.referral-process-applied,
.status.referral-reward-pending_review {
  background: #fef3c7;
  color: #92400e;
}

.status.referral-process-eligibility_review,
.status.referral-process-screening,
.status.referral-process-matched {
  background: #e0f2fe;
  color: #075985;
}

.status.referral-process-project_started,
.status.referral-reward-approved {
  background: #dcfce7;
  color: #166534;
}

.status.referral-process-completed,
.status.referral-reward-settled {
  background: #ede9fe;
  color: #5b21b6;
}

.status.referral-process-exception,
.status.referral-reward-rejected {
  background: #fee2e2;
  color: #991b1b;
}

.status.referral-process-cancelled,
.status.referral-reward-cancelled {
  background: #e5e7eb;
  color: #374151;
}

.ops-dashboard {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

.ops-kpi-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.ops-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.ops-card span,
.ops-card small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 700;
}

.ops-card strong {
  color: var(--ink);
  display: block;
  font-size: 28px;
  line-height: 1.1;
  margin: 5px 0;
}

.ops-layout,
.ops-lower-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
}

.ops-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.ops-item,
.ops-empty {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.ops-empty {
  color: var(--muted);
  font-size: 14px;
}

.ops-item-head {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.ops-item-head strong,
.ops-item-head span {
  display: block;
}

.ops-item-head > div > span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}

.ops-meta,
.ops-actions,
.ops-tags,
.ops-stage-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ops-meta {
  color: var(--muted);
  font-size: 12px;
  margin-top: 10px;
}

.ops-actions {
  margin-top: 10px;
}

.ops-note {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
  margin-top: 10px;
}

.ops-stage-strip {
  margin-top: 10px;
}

.ops-stage-pill,
.ops-tag {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 5px;
  padding: 4px 8px;
}

.ops-stage-pill.pending {
  background: #f3f4f6;
  color: #4b5563;
}

.ops-stage-pill.active {
  background: #dbeafe;
  color: #1d4ed8;
}

.ops-stage-pill.done {
  background: #dcfce7;
  color: #166534;
}

.ops-stage-pill.risk,
.ops-tag {
  background: #fee2e2;
  color: #991b1b;
}

.donor-site {
  --ink: #102b3a;
  --muted: #556773;
  --line: #e4ddd1;
  --surface: #fbf7ef;
  --soft: #f4efe5;
  --brand: #102b3a;
  --brand-dark: #0f2533;
  --accent: #b99043;
  background: #fbf7ef;
  overflow-x: hidden;
}

.donor-shell {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.76), rgba(251,247,239,0.96)),
    #fbf7ef;
}

.donor-topbar {
  background:
    linear-gradient(90deg, rgba(251, 247, 239, 0.98), rgba(246, 237, 220, 0.92) 58%, rgba(251, 247, 239, 0.82)),
    #fbf7ef;
  backdrop-filter: blur(18px);
  border-bottom-color: rgba(185, 144, 67, 0.18);
  box-shadow: 0 16px 38px rgba(15, 37, 51, 0.07);
  padding: 12px max(28px, calc((100vw - 1220px) / 2));
}

.donor-site .main-brand-logo {
  display: block;
  height: auto;
  max-width: min(460px, 46vw);
  width: clamp(320px, 31vw, 460px);
}

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

.donor-download-button {
  white-space: nowrap;
}

.donor-actions > .button[href="/donor/apply"] {
  border-radius: 8px;
  font-size: 16px;
  font-weight: 900;
  min-height: 50px;
  padding: 12px 20px;
  white-space: nowrap;
}

.donor-hero {
  align-items: center;
  display: grid;
  min-height: calc(100vh - 76px);
  padding: 54px 28px 36px;
}

.premium-hero {
  background: #0f2533;
  display: block;
  isolation: isolate;
  margin: 0;
  max-width: none;
  min-height: min(740px, calc(100vh - 126px));
  overflow: hidden;
  padding: 0;
  position: relative;
}

.premium-hero-copy {
  left: max(42px, calc((100vw - 1220px) / 2));
  max-width: min(440px, 36vw);
  padding: 0;
  position: absolute;
  top: 98px;
  z-index: 1;
}

.premium-hero-copy h1 {
  color: #102b3a;
  font-family: Georgia, "Times New Roman", "Noto Serif", serif;
  font-size: clamp(38px, 3.5vw, 54px);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.02;
  max-width: 440px;
  text-shadow: 0 1px 0 rgba(251, 247, 239, 0.42);
}

.premium-hero-copy p {
  color: #556773;
  font-size: 15px;
  line-height: 1.66;
  margin-left: 0;
  margin-right: 0;
  max-width: 410px;
}

.premium-hero-copy .microcopy {
  color: #5d6f7b;
  font-size: 12px !important;
  line-height: 1.5;
  margin: 14px 0 0;
  max-width: 360px;
}

.premium-hero-media {
  inset: 0;
  overflow: hidden;
  position: absolute;
  z-index: 0;
}

.premium-hero-media img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  width: 100%;
}

.premium-hero::after {
  background:
    linear-gradient(90deg, rgba(251, 247, 239, 0.82) 0%, rgba(251, 247, 239, 0.52) 32%, rgba(251, 247, 239, 0.12) 58%, rgba(15, 37, 51, 0.2) 100%),
    linear-gradient(0deg, rgba(15, 37, 51, 0.14), rgba(15, 37, 51, 0) 54%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: 0;
}

.hero-trust-panel {
  background: rgba(251, 247, 239, 0.88);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(251, 247, 239, 0.82);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(15, 37, 51, 0.18);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  bottom: 28px;
  margin: 0;
  max-width: 680px;
  position: absolute;
  right: max(28px, calc((100vw - 1220px) / 2));
  z-index: 1;
}

.hero-trust-panel div {
  border-right: 1px solid rgba(16, 43, 58, 0.1);
  padding: 18px 20px;
}

.hero-trust-panel div:last-child {
  border-right: 0;
}

.hero-trust-panel strong {
  color: #102b3a;
  display: block;
  font-size: 14px;
  margin-bottom: 5px;
}

.hero-trust-panel span {
  color: #556773;
  display: block;
  font-size: 12px;
  line-height: 1.5;
}

.eyebrow {
  color: var(--accent) !important;
  font-size: 13px !important;
  font-weight: 900;
  letter-spacing: 0.16em;
  margin-bottom: 12px !important;
  text-transform: uppercase;
}

.donor-hero-copy {
  margin: 0 auto;
  max-width: 900px;
  text-align: center;
}

.hero-logo {
  height: 132px;
  margin-bottom: 20px;
  object-fit: contain;
  max-width: min(420px, 90vw);
  width: auto;
}

.donor-hero h1 {
  color: #102b3a;
  font-size: clamp(36px, 6vw, 72px);
  margin: 0 auto;
  max-width: 920px;
}

.donor-hero p {
  color: #556773;
  font-size: 18px;
  margin: 18px auto 0;
  max-width: 720px;
}

.premium-hero .premium-hero-copy h1 {
  color: #102b3a;
  font-size: clamp(38px, 3.15vw, 50px);
  margin: 0;
  max-width: 440px;
}

.premium-hero .premium-hero-copy > p[data-i18n="heroText"] {
  color: #556773;
  font-size: 14px;
  line-height: 1.66;
  margin: 16px 0 0;
  max-width: 360px;
}

.premium-hero .hero-actions {
  justify-content: flex-start;
}

.donor-actions .button,
.hero-actions .button,
.donor-site .primary-submit {
  background: linear-gradient(135deg, #102b3a, #0f2533);
  border-color: #0f2533;
  box-shadow: 0 14px 34px rgba(15, 37, 51, 0.22);
}

.donor-actions .donor-download-button {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(185, 144, 67, 0.52);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.36), 0 10px 24px rgba(15, 37, 51, 0.08);
  color: #7b5c25;
  font-size: 14px;
  font-weight: 900;
  min-height: 42px;
  padding: 9px 13px;
}

.donor-mobile-actions .donor-download-button {
  background: linear-gradient(135deg, #c69b46, #8a6b31);
  border-color: #9d7733;
  box-shadow: 0 16px 36px rgba(138, 107, 49, 0.24);
  color: #fffaf0;
}

.hero-actions {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.donor-form-brand {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(251,247,239,0.98), rgba(246,237,220,0.84)),
    #fbf7ef;
  border: 1px solid rgba(185, 144, 67, 0.24);
  border-radius: 8px;
  box-shadow: 0 22px 58px rgba(16, 43, 58, 0.08);
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
  padding: 18px;
}

.donor-form-brand img {
  display: block;
  height: auto;
  max-width: min(560px, 100%);
  width: 48vw;
}

.microcopy {
  font-size: 14px !important;
}

.donor-section {
  padding-bottom: 48px;
}

.donor-download-section {
  padding-top: 28px;
  scroll-margin-top: 110px;
}

.donor-mobile-panel {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(16, 43, 58, 0.96), rgba(21, 55, 62, 0.94)),
    #102b3a;
  border: 1px solid rgba(198, 155, 70, 0.34);
  border-radius: 8px;
  box-shadow: 0 22px 58px rgba(15, 37, 51, 0.18);
  color: white;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 180px;
  overflow: hidden;
  padding: 28px 32px;
  position: relative;
}

.donor-mobile-panel > * {
  min-width: 0;
}

.donor-mobile-panel::after {
  background: linear-gradient(135deg, rgba(198, 155, 70, 0.22), rgba(255, 255, 255, 0));
  content: "";
  inset: 0 0 0 auto;
  pointer-events: none;
  position: absolute;
  width: 34%;
}

.section-kicker {
  color: #d9b96a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.donor-mobile-panel h2 {
  color: white;
  font-size: clamp(28px, 3vw, 42px);
  margin: 0;
}

.donor-mobile-panel p:not(.section-kicker) {
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 1.65;
  margin: 12px 0 0;
  max-width: 780px;
}

.donor-mobile-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.donor-mobile-actions span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 700;
  max-width: 360px;
  overflow-wrap: anywhere;
}

.download-phone-mock {
  align-items: stretch;
  background: linear-gradient(180deg, #fbf7ef, #efe3ce);
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 28px;
  box-shadow: inset 0 0 0 7px #102b3a, 0 22px 48px rgba(0, 0, 0, 0.22);
  display: grid;
  gap: 10px;
  justify-self: end;
  min-height: 230px;
  padding: 30px 20px 22px;
  position: relative;
  width: 142px;
  z-index: 1;
}

.download-phone-mock span {
  background: #102b3a;
  border-radius: 999px;
  height: 5px;
  left: 50%;
  position: absolute;
  top: 14px;
  transform: translateX(-50%);
  width: 46px;
}

.download-phone-mock strong {
  color: #102b3a;
  font-family: Georgia, "Times New Roman", "Noto Serif", serif;
  font-size: 22px;
  line-height: 1.05;
}

.download-phone-mock i {
  background: rgba(16, 43, 58, 0.13);
  border-radius: 8px;
  display: block;
}

.download-phone-mock i:nth-of-type(1) {
  height: 42px;
}

.download-phone-mock i:nth-of-type(2) {
  height: 34px;
}

.download-phone-mock i:nth-of-type(3) {
  background: linear-gradient(135deg, #c69b46, #8a6b31);
  height: 38px;
}

.process-grid .panel {
  min-height: 180px;
}

.image-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 52px rgba(16, 43, 58, 0.08);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
}

.image-card img {
  aspect-ratio: 4 / 3;
  background: #f4efe5;
  display: block;
  object-fit: cover;
  width: 100%;
}

.image-card div {
  padding: 16px;
}

.image-card h3 {
  color: #102b3a;
}

.clinic-carousel-card {
  min-height: 100%;
}

.clinic-carousel-viewport {
  background: #f4efe5;
  overflow: hidden;
  padding: 0 !important;
  position: relative;
}

.clinic-carousel-viewport img {
  aspect-ratio: 4 / 3;
  display: block;
  height: auto;
  object-fit: cover;
  transition: opacity 0.18s ease;
  width: 100%;
}

.carousel-button {
  align-items: center;
  background: rgba(251, 247, 239, 0.88);
  border: 1px solid rgba(16, 43, 58, 0.12);
  border-radius: 999px;
  color: #102b3a;
  display: inline-flex;
  font-size: 24px;
  height: 34px;
  justify-content: center;
  min-height: 34px;
  padding: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  z-index: 1;
}

.carousel-button:hover {
  background: #fbf7ef;
}

.carousel-button-prev {
  left: 10px;
}

.carousel-button-next {
  right: 10px;
}

.clinic-carousel-dots {
  align-items: center;
  bottom: 10px;
  display: flex;
  gap: 6px;
  justify-content: center;
  left: 0;
  padding: 0 !important;
  position: absolute;
  right: 0;
  z-index: 1;
}

.clinic-carousel-dots button {
  background: rgba(251, 247, 239, 0.72);
  border: 1px solid rgba(16, 43, 58, 0.12);
  border-radius: 999px;
  height: 8px;
  min-height: 8px;
  padding: 0;
  width: 8px;
}

.clinic-carousel-dots button.active {
  background: #102b3a;
  border-color: #102b3a;
  width: 22px;
}

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

.travel-grid,
.clinic-grid,
.talent-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.talent-card img {
  aspect-ratio: 16 / 9;
}

.wide-story {
  grid-column: span 1;
}

.step-number {
  color: var(--brand);
  display: block;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 12px;
}

.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.faq-list details,
.country-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.faq-list summary,
.country-card summary {
  cursor: pointer;
  font-weight: 800;
}

.country-cards {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 14px;
}

.country-card label {
  align-items: center;
  display: flex;
  gap: 8px;
}

.country-card input {
  min-height: auto;
  width: auto;
}

small {
  color: var(--muted);
  display: block;
  margin-top: 4px;
}

.language-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.language-switcher button {
  background: white;
  border-color: var(--line);
  color: var(--ink);
  min-height: 34px;
  padding: 6px 10px;
}

.language-switcher button.active {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}

.language-select {
  align-items: flex-start;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.9), rgba(251,247,239,0.78)),
    #fbf7ef;
  border: 1px solid rgba(185, 144, 67, 0.24);
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(15, 37, 51, 0.08);
  display: inline-grid;
  gap: 2px;
  justify-items: start;
  min-height: 50px;
  max-width: 100%;
  padding: 7px 10px 6px;
}

.language-select-kicker {
  color: #8a6b31;
  display: block;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.language-select-control {
  align-items: center;
  display: inline-flex;
  gap: 7px;
  min-width: 0;
}

.language-select-icon {
  color: #102b3a;
  font-size: 16px;
  line-height: 1;
}

.language-select select {
  background: transparent;
  border: 0;
  color: #102b3a;
  font-weight: 800;
  min-width: 0;
  min-height: 26px;
  padding: 1px 25px 1px 0;
}

.donor-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: 260px minmax(0, 1fr);
}

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

.side-nav a {
  border-radius: 6px;
  color: var(--ink);
  padding: 9px 10px;
}

.side-nav a.active {
  background: #f6eddc;
  color: var(--brand-dark);
  font-weight: 800;
}

.apply-panel {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(251,247,239,0.9)),
    #fbf7ef;
}

.form-section,
.media-module,
.content-section {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.9), rgba(246,237,220,0.74)),
    #f6eddc;
  border: 1px solid rgba(185, 144, 67, 0.24);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(16, 43, 58, 0.06);
  padding: 18px;
}

.form-section-head {
  align-items: flex-start;
  display: flex;
  gap: 14px;
}

.form-section-head h2,
.form-section-head h3 {
  color: #102b3a;
  margin: 0;
}

.form-section-head p {
  margin-top: 5px;
}

.form-section-number {
  align-items: center;
  background: #102b3a;
  border-radius: 999px;
  color: white;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.media-module {
  display: grid;
  gap: 16px;
}

.media-requirement-copy {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.media-requirement-copy strong {
  color: #102b3a;
}

.media-module blockquote {
  background: rgba(255,255,255,0.82);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  color: var(--ink);
  margin: 0;
  padding: 12px 14px;
}

.media-slots {
  display: grid;
  gap: 16px;
}

.media-slot-group {
  display: grid;
  gap: 10px;
}

.media-slot-head {
  align-items: center;
  color: #102b3a;
  display: flex;
  justify-content: space-between;
}

.media-slot-head span {
  background: #f6eddc;
  border-radius: 999px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
  padding: 4px 9px;
}

.media-slot-grid {
  display: grid;
  gap: 10px;
}

.media-slot-grid.photos {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.media-slot-grid.videos {
  grid-template-columns: minmax(180px, 1fr);
}

.media-slot {
  align-items: center;
  aspect-ratio: 4 / 5;
  background: rgba(255,255,255,0.72);
  border: 1px dashed rgba(102, 113, 127, 0.4);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
  width: 100%;
}

.media-slot.video {
  aspect-ratio: 16 / 9;
  max-width: 360px;
}

.media-slot.filled {
  border-style: solid;
  box-shadow: 0 14px 28px rgba(16, 43, 58, 0.1);
}

.media-slot img,
.media-slot video {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.media-slot-empty {
  align-items: center;
  color: var(--muted);
  display: grid;
  gap: 6px;
  justify-items: center;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 10px;
  text-align: center;
}

.media-slot-empty span {
  align-items: center;
  background: rgba(185, 144, 67, 0.14);
  border-radius: 999px;
  color: var(--accent);
  display: inline-flex;
  font-size: 20px;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.media-upload-button {
  align-items: center;
  background: #102b3a;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  width: fit-content;
}

.media-upload-button input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.field-label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

.segmented-control {
  background: #f6eddc;
  border: 1px solid #dfc895;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
  padding: 8px;
}

.segmented-control label {
  cursor: pointer;
}

.segmented-control input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.segmented-control span {
  align-items: center;
  background: white;
  border: 2px solid transparent;
  border-radius: 6px;
  color: var(--ink);
  display: flex;
  font-size: 17px;
  font-weight: 800;
  justify-content: center;
  min-height: 52px;
}

.segmented-control input:checked + span {
  background: linear-gradient(135deg, #102b3a, #0f2533);
  border-color: #0f2533;
  box-shadow: 0 10px 24px rgba(16, 43, 58, 0.2);
  color: white;
}

.question-placeholder {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 16px;
}

.compact-notice {
  margin-top: 10px;
  padding: 10px;
}

.profile-summary,
.requirement-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.profile-summary p {
  margin: 0;
}

.donor-referral-panel {
  margin-bottom: 18px;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.donor-referral-panel .panel-head p {
  color: var(--muted);
  margin: 6px 0 0;
}

.donor-referral-invite {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 14px;
  padding: 14px;
}

.donor-referral-invite label {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
}

.copy-row {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.copy-row input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  min-width: 0;
}

.inline-help {
  color: var(--muted);
  font-size: 13px;
  margin: 8px 0 0;
}

.donor-referral-stats {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 14px;
}

.donor-referral-stat {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.donor-referral-stat strong {
  color: var(--brand);
  display: block;
  font-size: 24px;
  line-height: 1;
}

.donor-referral-stat span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-top: 7px;
}

.donor-referral-records {
  margin-top: 14px;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.table-scroll {
  display: block;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

.donor-referral-table {
  min-width: 760px;
  width: 100%;
}

.donor-referral-table td strong,
.donor-referral-table td span {
  display: block;
}

.donor-referral-table td span:not(.status) {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.donor-referral-cards {
  display: none;
}

.donor-referral-empty {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
  padding: 12px;
}

.donor-referral-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 12px;
}

.donor-referral-card-head {
  display: grid;
  gap: 4px;
}

.donor-referral-card-head span,
.donor-referral-card-grid dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.donor-referral-card-head strong {
  color: var(--text);
  font-size: 16px;
}

.donor-referral-card-head small {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.donor-referral-card-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.donor-referral-card-grid div {
  min-width: 0;
}

.donor-referral-card-grid dt,
.donor-referral-card-grid dd {
  margin: 0;
}

.donor-referral-card-grid dd {
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.requirement-item {
  align-items: center;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  color: #7c2d12;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px;
}

.requirement-item.done {
  background: #ecfdf5;
  border-color: #bbf7d0;
  color: #166534;
}

.submit-panel {
  background: #f6eddc;
  border: 1px solid #dfc895;
  border-radius: 8px;
  margin-top: 8px;
  padding: 18px;
  text-align: center;
}

.primary-submit {
  background: linear-gradient(135deg, #102b3a, #0f2533);
  border-color: #0f2533;
  box-shadow: 0 14px 32px rgba(16, 43, 58, 0.22);
  font-size: 18px;
  justify-content: center;
  min-height: 56px;
  width: 100%;
}

.primary-submit:hover {
  transform: translateY(-1px);
}

.donor-auth-card {
  box-shadow: 0 24px 70px rgba(16, 43, 58, 0.1);
}

:lang(en) .premium-hero-copy h1,
:lang(ja) .premium-hero-copy h1 {
  font-size: clamp(36px, 3vw, 46px);
  line-height: 1.04;
}

:lang(ru) .premium-hero-copy h1 {
  font-size: clamp(34px, 2.85vw, 44px);
  line-height: 1.04;
  max-width: 430px;
}

:lang(ru) .premium-hero-copy p,
:lang(ja) .premium-hero-copy p {
  font-size: 14px;
  line-height: 1.68;
}

.poster-page {
  background: #edf1f5;
  min-height: 100vh;
  padding: 28px;
}

.review-shell {
  background: #eef2f7;
}

.review-topbar {
  position: static;
}

.review-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: calc(100vh - 91px);
  padding: 16px;
}

.review-tools {
  align-self: start;
  display: grid;
  gap: 14px;
  position: sticky;
  top: 16px;
}

.review-tool-row {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}

.review-preview {
  min-width: 0;
}

.review-stage {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 620px;
  overflow: hidden;
  position: relative;
}

.review-stage iframe,
.review-stage canvas {
  border: 0;
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.review-stage canvas {
  cursor: crosshair;
  z-index: 2;
}

.annotation-canvas {
  left: 0;
  position: absolute;
  top: 0;
  z-index: 9998;
}

.annotation-toolbar {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(72px, auto));
  max-width: min(620px, calc(100vw - 24px));
  padding: 10px;
  position: fixed;
  right: 12px;
  top: 12px;
  z-index: 9999;
}

.annotation-toolbar strong,
.annotation-toolbar textarea,
.annotation-toolbar p {
  grid-column: 1 / -1;
}

.annotation-toolbar textarea {
  min-height: 54px;
}

.annotation-toolbar label {
  color: var(--muted);
  font-size: 13px;
}

.annotation-toolbar input[type="color"],
.annotation-toolbar input[type="range"] {
  min-height: 34px;
}

.annotation-toolbar button {
  min-height: 34px;
  padding: 6px 9px;
}

.annotation-toolbar button.active {
  background: var(--brand);
  border-color: var(--brand);
}

.annotation-toolbar p {
  font-size: 12px;
  margin: 0;
}

.poster {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  display: grid;
  gap: 0;
  grid-template-columns: 44% 56%;
  margin: 0 auto;
  max-width: 900px;
  min-height: 620px;
  overflow: hidden;
}

.poster-photo {
  background: #dfe7ee;
  min-height: 620px;
}

.poster-photo img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.poster-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 34px;
}

.poster-code {
  color: var(--brand-dark);
  font-size: 18px;
  font-weight: 900;
}

.poster-facts {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
}

.fact {
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.fact strong {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.footer-note {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  margin-top: auto;
  padding-top: 14px;
}

.client-site {
  background:
    radial-gradient(circle at 10% 8%, rgba(15, 118, 110, 0.12), transparent 30%),
    radial-gradient(circle at 90% 4%, rgba(180, 83, 9, 0.12), transparent 28%),
    #f7f4ee;
}

.client-shell {
  color: #18232d;
}

.client-topbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(24, 35, 45, 0.08);
  padding: 14px 30px;
}

.client-brand-line {
  color: #6b4f40;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.client-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.client-nav-group {
  position: relative;
}

.client-nav-group > summary {
  align-items: center;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(24, 35, 45, 0.12);
  border-radius: 999px;
  color: #1f2a33;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  min-height: 36px;
  padding: 8px 14px;
  user-select: none;
  white-space: nowrap;
}

.client-nav-group > summary::-webkit-details-marker {
  display: none;
}

.client-nav-group > summary::after {
  content: "⌄";
  font-size: 14px;
  margin-left: 7px;
}

.client-menu {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(24, 35, 45, 0.1);
  border-radius: 8px;
  box-shadow: 0 22px 54px rgba(24, 35, 45, 0.16);
  display: grid;
  gap: 4px;
  left: 0;
  min-width: 172px;
  opacity: 0;
  padding: 8px;
  pointer-events: none;
  position: absolute;
  top: calc(100% + 8px);
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 40;
}

.client-menu-wide {
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  min-width: 320px;
  right: 0;
  left: auto;
}

.client-nav-group:hover .client-menu,
.client-nav-group:focus-within .client-menu,
.client-nav-group[open] .client-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.client-menu a {
  border-radius: 6px;
  color: #2c3a45;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 10px;
}

.client-menu a:hover,
.client-menu a:focus {
  background: #f1ebe1;
}

.client-hero {
  align-items: center;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.55fr);
  margin: 0 auto;
  max-width: 1220px;
  min-height: 520px;
  padding: 64px 28px 36px;
}

.client-hero-copy {
  max-width: 760px;
}

.client-hero-copy h1 {
  color: #17242d;
  font-size: clamp(36px, 5vw, 66px);
  max-width: 860px;
}

.client-hero-copy p {
  color: #59636d;
  font-size: 18px;
  max-width: 680px;
}

.eyebrow {
  color: #0f766e;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.client-hero-panel {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(24, 35, 45, 0.08);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(24, 35, 45, 0.12);
  display: grid;
  gap: 0;
  overflow: hidden;
}

.client-hero-panel div {
  padding: 26px;
}

.client-hero-panel div + div {
  border-top: 1px solid rgba(24, 35, 45, 0.08);
}

.client-hero-panel strong,
.client-detail-stat strong {
  color: #0f766e;
  display: block;
  font-size: 34px;
  line-height: 1;
}

.client-hero-panel span,
.client-detail-stat span {
  color: #5f6870;
  display: block;
  font-weight: 800;
  margin-top: 8px;
}

.client-section {
  padding-bottom: 42px;
  padding-top: 42px;
}

.client-section .section-head p {
  max-width: 720px;
}

.client-category-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.client-category-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(24, 35, 45, 0.1);
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(24, 35, 45, 0.08);
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 24px;
}

.client-category-card span {
  color: #b45309;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.client-category-card h3 {
  font-size: 24px;
  margin-top: 30px;
}

.client-category-card p {
  color: #5f6870;
  margin-top: 12px;
}

.client-category-card small {
  color: #0f766e;
  display: block;
  font-weight: 900;
  margin-top: auto;
  padding-top: 22px;
}

.client-proof-band {
  align-items: center;
  background: #17313a;
  border-radius: 8px;
  color: white;
  display: flex;
  gap: 22px;
  justify-content: space-between;
  margin-bottom: 56px;
  padding: 32px;
}

.client-proof-band p {
  color: rgba(255, 255, 255, 0.76);
  max-width: 820px;
}

.client-detail-page {
  padding-bottom: 60px;
}

.client-detail-hero {
  align-items: stretch;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(24, 35, 45, 0.1);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(24, 35, 45, 0.1);
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) 260px;
  margin-bottom: 18px;
  padding: 34px;
}

.client-detail-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
}

.client-detail-hero p {
  font-size: 17px;
  max-width: 780px;
}

.client-detail-stat {
  align-self: stretch;
  background: #f1ebe1;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
}

.client-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.client-subnav a {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(24, 35, 45, 0.12);
  border-radius: 999px;
  color: #2c3a45;
  font-size: 14px;
  font-weight: 800;
  padding: 8px 12px;
}

.client-subnav a.active {
  background: #17313a;
  border-color: #17313a;
  color: white;
}

.client-detail-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.client-detail-card {
  min-height: 210px;
  padding: 22px;
}

.client-detail-card span {
  color: #b45309;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.client-detail-card h3 {
  margin-top: 22px;
}

.client-register-panel {
  margin-top: 16px;
  padding: 24px;
}

@media (max-width: 820px) {
  .topbar,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .brand {
    align-items: flex-start;
  }

  .main-brand-logo {
    height: 50px;
    max-width: 130px;
  }

  .donor-site .main-brand-logo {
    height: auto;
    max-width: 280px;
    width: min(280px, 74vw);
  }

  .brand-script {
    font-size: 18px;
    max-width: 210px;
  }

  .donor-actions {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: flex-start;
    width: 100%;
  }

  .donor-actions .button {
    justify-content: center;
    min-height: 42px;
    padding: 8px 10px;
    text-align: center;
    white-space: normal;
  }

  .donor-actions .donor-download-button {
    order: 2;
    white-space: normal;
  }

  .donor-actions .button[href="/donor/apply"] {
    order: 3;
  }

  .donor-actions .language-select {
    grid-column: 1 / -1;
    width: 100%;
  }

  .donor-actions .language-select-control,
  .donor-actions .language-select select {
    width: 100%;
  }

  .donor-hero {
    min-height: auto;
    padding-top: 38px;
  }

  .premium-hero {
    background: #0f2533;
    display: block;
    min-height: min(760px, calc(100svh - 196px));
    padding: 0;
  }

  .premium-hero-copy {
    background:
      linear-gradient(180deg, rgba(251, 247, 239, 0.86), rgba(251, 247, 239, 0.78));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.64);
    border-radius: 8px;
    bottom: 86px;
    box-shadow: 0 24px 70px rgba(15, 37, 51, 0.24);
    left: 14px;
    max-width: min(340px, calc(100% - 28px));
    padding: 16px 18px;
    position: absolute;
    top: auto;
    z-index: 2;
  }

  .premium-hero .premium-hero-copy h1 {
    font-size: clamp(27px, 7.2vw, 34px);
    line-height: 1.1;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .premium-hero .premium-hero-copy > p[data-i18n="heroText"] {
    display: none;
  }

  .premium-hero-copy .microcopy {
    display: none;
  }

  .premium-hero .hero-actions {
    margin-top: 13px;
  }

  .premium-hero .hero-actions .button {
    min-height: 40px;
    padding: 8px 13px;
  }

  .donor-download-section {
    padding-top: 20px;
  }

  .donor-mobile-panel {
    gap: 18px;
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .donor-mobile-panel::after {
    width: 100%;
  }

  .donor-mobile-panel h2 {
    font-size: clamp(26px, 8vw, 34px);
  }

  .donor-mobile-panel p:not(.section-kicker) {
    font-size: 14px;
  }

  .donor-mobile-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .donor-mobile-actions .button {
    justify-content: center;
    width: 100%;
  }

  .download-phone-mock {
    display: none;
  }

  .hero-trust-panel {
    align-self: stretch;
    backdrop-filter: blur(18px);
    bottom: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-self: stretch;
    left: 16px;
    margin: 0;
    max-width: none;
    position: absolute;
    right: auto;
    width: calc(100% - 32px);
    z-index: 2;
  }

  .hero-trust-panel div {
    border-bottom: 0;
    border-right: 1px solid rgba(16, 43, 58, 0.1);
    padding: 11px 10px;
  }

  .hero-trust-panel div:last-child {
    border-right: 0;
  }

  .hero-trust-panel strong {
    font-size: 11.5px;
    margin-bottom: 0;
    text-align: center;
  }

  .hero-trust-panel span {
    display: none;
  }

  .premium-hero-media {
    bottom: 0;
    height: auto;
    left: 0;
    padding: 0;
    right: 0;
    top: 0;
  }

  .premium-hero-media img {
    object-fit: cover;
    object-position: 58% center;
  }

  .premium-hero::after {
    background:
      linear-gradient(180deg, rgba(15, 37, 51, 0.02) 0%, rgba(15, 37, 51, 0.04) 46%, rgba(15, 37, 51, 0.36) 100%),
      linear-gradient(90deg, rgba(251,247,239,0.2) 0%, rgba(251,247,239,0.06) 36%, rgba(251,247,239,0) 72%);
    z-index: 1;
  }

  .donor-form-brand {
    justify-content: flex-start;
    padding: 14px;
  }

  .donor-form-brand img {
    max-width: 306px;
    width: 84vw;
  }

  .hero-logo {
    height: 104px;
  }

  .toolbar,
  .two-column,
  .story-grid,
  .travel-grid,
  .clinic-grid,
  .talent-grid,
  .media-requirement-copy,
  .form-grid,
  .donor-layout,
  .review-layout,
  .poster {
    grid-template-columns: 1fr;
  }

  .review-tools {
    position: static;
  }

  .review-stage {
    min-height: 520px;
  }

  .poster-photo {
    min-height: 360px;
  }

  .media-slot-grid.photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .media-slot {
    aspect-ratio: 4 / 3;
  }

  .media-slot.video {
    aspect-ratio: 16 / 10;
    max-width: none;
  }

  .media-upload-button {
    width: 100%;
  }

  .client-topbar {
    padding: 14px 18px;
  }

  .client-nav {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .client-nav-group > summary {
    justify-content: space-between;
    width: 100%;
  }

  .client-menu,
  .client-menu-wide {
    box-shadow: none;
    display: grid;
    grid-template-columns: 1fr;
    left: auto;
    min-width: 0;
    opacity: 0;
    padding: 6px 0 0;
    pointer-events: none;
    position: static;
    right: auto;
    transform: none;
  }

  .client-nav-group:not([open]) .client-menu {
    display: none;
  }

  .client-nav-group[open] .client-menu {
    display: grid;
    opacity: 1;
    pointer-events: auto;
  }

  .client-menu a {
    background: rgba(255, 255, 255, 0.72);
  }

  .client-hero,
  .client-detail-hero,
  .client-category-grid,
  .client-detail-grid {
    grid-template-columns: 1fr;
  }

  .client-hero {
    min-height: auto;
    padding: 34px 18px 26px;
  }

  .client-hero-copy h1 {
    font-size: clamp(32px, 10vw, 44px);
  }

  .client-hero-copy p,
  .client-detail-hero p {
    font-size: 16px;
  }

  .client-proof-band {
    align-items: stretch;
    flex-direction: column;
  }

  .client-detail-hero {
    padding: 24px;
  }

  .client-detail-stat {
    min-height: 150px;
  }
}

.client-site {
  background: #061824;
  color: #10202b;
}

.client-main {
  background: #f7f3ea;
  overflow: hidden;
}

.client-topbar {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(12, 31, 44, 0.1);
  box-shadow: 0 10px 34px rgba(6, 24, 36, 0.08);
  gap: 18px;
  padding: 12px 32px;
  z-index: 80;
}

.client-topbar .brand {
  flex: 0 0 auto;
}

.client-brand-line {
  color: #664c36;
  font-size: 12px;
  max-width: 260px;
}

.client-nav {
  flex: 1 1 auto;
}

.client-download-cta {
  align-items: center;
  background: #d6aa62;
  border: 1px solid #c7974e;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(184, 126, 39, 0.18);
  color: #071a25;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 900;
  min-height: 38px;
  padding: 8px 16px;
  white-space: nowrap;
}

.client-download-cta:hover,
.client-download-cta:focus {
  background: #e4be78;
}

.client-nav-group > summary {
  background: #f7f3ea;
  border-color: rgba(6, 24, 36, 0.1);
  color: #0d2431;
  font-size: 14px;
  min-height: 38px;
  padding: 8px 15px;
}

.client-nav-group > summary:hover {
  background: #efe6d5;
}

.client-menu {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(6, 24, 36, 0.12);
  box-shadow: 0 24px 72px rgba(6, 24, 36, 0.2);
}

.client-menu a {
  color: #15303e;
}

.client-top-cta {
  align-items: center;
  background: #092534;
  border: 1px solid #092534;
  border-radius: 999px;
  color: white;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 900;
  min-height: 38px;
  padding: 8px 16px;
  white-space: nowrap;
}

.client-hero-showcase {
  background:
    radial-gradient(circle at 78% 18%, rgba(55, 129, 140, 0.18), transparent 32%),
    linear-gradient(135deg, #03101f 0%, #061b31 44%, #0a3145 100%);
  display: block;
  gap: 0;
  overflow: hidden;
  margin: 0;
  max-width: none;
  isolation: isolate;
  min-height: min(780px, calc(100vh - 84px));
  padding: 0;
  position: relative;
  width: 100%;
}

.client-hero-bg,
.client-hero-shade {
  inset: 0;
  position: absolute;
}

.client-hero-bg {
  display: block;
  overflow: hidden;
  z-index: 0;
}

.client-hero-bg img {
  display: block;
  filter: saturate(0.96) contrast(1.01) brightness(0.98);
  height: 100%;
  object-fit: cover;
  object-position: 52% center;
  width: 100%;
}

.client-hero-showcase::after {
  background:
    radial-gradient(ellipse at 40% 21%, rgba(148, 203, 214, 0.18), transparent 34%),
    radial-gradient(circle at 48% 15%, rgba(214, 170, 98, 0.18), transparent 16%),
    radial-gradient(ellipse at 32% 26%, rgba(255, 255, 255, 0.1), transparent 29%),
    radial-gradient(ellipse at 54% 36%, rgba(97, 202, 187, 0.1), transparent 28%);
  content: "";
  inset: 0;
  mix-blend-mode: soft-light;
  opacity: 0.66;
  pointer-events: none;
  position: absolute;
  z-index: 2;
  -webkit-mask-image: radial-gradient(ellipse at 43% 24%, #000 0%, #000 38%, transparent 64%);
  mask-image: radial-gradient(ellipse at 43% 24%, #000 0%, #000 38%, transparent 64%);
}

.client-hero-shade {
  background:
    radial-gradient(circle at 82% 20%, rgba(214, 170, 98, 0.16), transparent 28%),
    radial-gradient(ellipse at 38% 24%, rgba(97, 202, 187, 0.12), transparent 34%),
    linear-gradient(90deg, rgba(3, 15, 29, 0.88) 0%, rgba(5, 27, 48, 0.68) 30%, rgba(8, 47, 67, 0.08) 56%, rgba(8, 47, 67, 0.01) 100%),
    linear-gradient(180deg, rgba(3, 15, 29, 0.02) 0%, rgba(3, 15, 29, 0.1) 56%, rgba(3, 15, 29, 0.5) 100%);
  z-index: 1;
}

.client-hero-network {
  height: min(28vw, 300px);
  left: min(18vw, 250px);
  opacity: 0.68;
  pointer-events: none;
  position: absolute;
  top: 30%;
  width: min(37vw, 520px);
  z-index: 3;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 46%, rgba(0, 0, 0, 0.42) 68%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 46%, rgba(0, 0, 0, 0.42) 68%, transparent 100%);
}

.client-hero-network svg {
  display: block;
  height: 100%;
  overflow: visible;
  width: 100%;
}

.network-rail {
  opacity: 0.42;
  stroke: url(#clientNetworkRail);
  stroke-width: 12;
}

.network-path {
  opacity: 0.5;
  stroke-dasharray: 3 12;
  stroke-width: 1.6;
}

.network-path-strong {
  opacity: 0.98;
  stroke-dasharray: none;
  stroke-width: 2.7;
}

.network-path-soft {
  opacity: 0.34;
  stroke-dasharray: 1.5 14;
}

.network-node {
  fill: #f3dfaa;
  opacity: 0.95;
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 1.6;
}

.network-node-main {
  fill: #f3dfaa;
  stroke: rgba(97, 202, 187, 0.9);
  stroke-width: 2.5;
}

.network-icon {
  opacity: 0.82;
  stroke-width: 1.8;
}

.network-icon-small {
  opacity: 0.78;
}

.client-hero-inner {
  align-items: center;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(590px, 0.44fr) minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1320px;
  min-height: min(780px, calc(100vh - 84px));
  padding: 54px 34px 46px;
  position: relative;
  z-index: 4;
}

.client-hero-copy {
  grid-column: 1;
  grid-row: 1;
  max-width: 640px;
  min-width: 0;
}

.client-hero-copy .eyebrow,
.client-proof-band .eyebrow {
  color: #d6aa62;
}

.client-hero-copy .eyebrow {
  max-width: min(100%, 640px);
  overflow-wrap: anywhere;
}

.client-hero-copy h1 {
  color: #ffffff;
  font-size: clamp(38px, 3.2vw, 48px);
  line-height: 1.08;
  max-width: 640px;
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

.client-hero-copy h1 span {
  display: block;
}

.client-hero-copy p {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(17px, 1.42vw, 21px);
  line-height: 1.75;
  margin-top: 20px;
  max-width: 640px;
}

.client-hero-copy .client-hero-intro {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(16px, 1.18vw, 18px);
  line-height: 1.72;
  margin-top: 18px;
  max-width: 600px;
}

.client-hero-services {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 22px 0 0;
  max-width: 560px;
  padding: 0;
  width: 100%;
}

.client-hero-services li {
  align-items: center;
  background: rgba(5, 22, 34, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
  display: inline-flex;
  gap: 8px;
  padding: 7px 12px;
}

.client-hero-services span {
  color: #d6aa62;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0;
}

.client-hero-services strong {
  color: #ffffff;
  display: inline;
  font-size: 14px;
  line-height: 1.2;
}

.client-hero-services em {
  display: none;
}

.client-primary-action {
  background: #d6aa62;
  border-color: #d6aa62;
  color: #071a25;
}

.client-light-action {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.34);
  color: white;
}

.client-hero-actions {
  justify-content: flex-start;
  margin-top: 20px;
}

.client-hero-actions .button {
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
}

.client-hero-actions .client-primary-action {
  background: #d6aa62;
  border-color: #d6aa62;
  color: #071a25;
}

.client-hero-actions .client-light-action {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.36);
  color: #ffffff;
}

.client-hero-copy .client-hero-note {
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.62;
  margin-top: 10px;
  max-width: 560px;
}

.client-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.client-hero-tags span {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 800;
  padding: 7px 11px;
}

.client-hero-metrics {
  align-self: start;
  background: rgba(5, 22, 34, 0.62);
  border: 1px solid rgba(122, 214, 204, 0.26);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  display: grid;
  grid-column: 1;
  grid-row: 2;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 4px;
  max-width: 590px;
  overflow: hidden;
}

.client-hero-metrics div {
  align-items: center;
  column-gap: 12px;
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr);
  min-height: 96px;
  padding: 12px 12px;
  position: relative;
}

.client-hero-metrics div::before {
  background: linear-gradient(180deg, #61cabb, #d6aa62);
  border-radius: 999px;
  content: "";
  grid-row: 1 / span 2;
  height: 48px;
}

.client-hero-metrics div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 0;
}

.client-hero-metrics strong {
  color: #61cabb;
  display: block;
  font-size: clamp(29px, 2.2vw, 36px);
  grid-column: 2;
  line-height: 1;
  min-width: 0;
  white-space: nowrap;
}

.client-hero-metrics span {
  color: rgba(255, 255, 255, 0.78);
  display: block;
  font-size: 12.5px;
  font-weight: 900;
  grid-column: 2;
  line-height: 1.42;
  margin-top: 0;
}

.client-flow-bar {
  background: #ffffff;
  border-bottom: 1px solid rgba(9, 37, 52, 0.08);
  padding: 0 28px;
}

.client-flow-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1260px;
}

.client-flow-inner div {
  border-left: 1px solid rgba(9, 37, 52, 0.08);
  min-height: 150px;
  padding: 26px 22px 24px;
}

.client-flow-inner div:last-child {
  border-right: 1px solid rgba(9, 37, 52, 0.08);
}

.client-flow-inner span {
  color: #b9873f;
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}

.client-flow-inner strong {
  color: #092534;
  display: block;
  font-size: 18px;
}

.client-flow-inner p {
  color: #61707b;
  font-size: 14px;
  line-height: 1.65;
  margin: 10px 0 0;
}

.client-section {
  padding: 84px 28px;
}

.client-section-inner {
  margin: 0 auto;
  max-width: 1260px;
}

.client-section-head {
  max-width: 860px;
}

.client-section-head h2,
.client-capability-copy h2,
.client-proof-band h2 {
  color: #092534;
  font-size: clamp(30px, 3vw, 46px);
}

.client-section-head p,
.client-capability-copy p {
  color: #62707b;
  font-size: 17px;
  max-width: 820px;
}

.client-audience-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), transparent 34%),
    #f7f3ea;
}

.client-audience-inner {
  display: grid;
  gap: 30px;
}

.client-audience-head {
  align-items: center;
  border-bottom: 1px solid rgba(9, 37, 52, 0.08);
  display: grid;
  gap: 26px;
  grid-template-columns: 126px minmax(0, 820px) minmax(80px, 1fr);
  max-width: none;
  padding-bottom: 28px;
}

.client-audience-head::after {
  background: linear-gradient(90deg, #d6aa62, rgba(97, 202, 187, 0.72));
  border-radius: 999px;
  content: "";
  height: 2px;
  width: 100%;
}

.client-audience-head span {
  align-items: center;
  color: #b9873f;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  gap: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.client-audience-head span::before {
  background: linear-gradient(180deg, #d6aa62, #61cabb);
  border-radius: 999px;
  content: "";
  height: 52px;
  width: 4px;
}

.client-audience-head h2 {
  line-height: 1.12;
  margin: 0;
  max-width: 820px;
}

.client-audience-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 0;
}

.client-audience-card {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(9, 37, 52, 0.09);
  border-top-color: rgba(214, 170, 98, 0.34);
  border-radius: 8px;
  box-shadow: 0 20px 58px rgba(9, 37, 52, 0.07);
  min-height: 210px;
  padding: 22px;
}

.client-audience-card span,
.client-entry-card span,
.client-detail-card span {
  color: #b9873f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.client-audience-card h3 {
  color: #092534;
  font-size: 22px;
  margin-top: 34px;
}

.client-audience-card p {
  color: #61707b;
  margin-top: 12px;
}

.client-download-page {
  align-items: center;
  background:
    radial-gradient(circle at 18% 18%, rgba(214, 170, 98, 0.18), transparent 30%),
    radial-gradient(circle at 82% 12%, rgba(97, 202, 187, 0.18), transparent 28%),
    #f7f3ea;
  display: flex;
  min-height: 100vh;
  padding: 28px;
}

.client-download-panel {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(9, 37, 52, 0.1);
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(9, 37, 52, 0.12);
  margin: 0 auto;
  max-width: 980px;
  padding: 36px;
  width: 100%;
}

.client-download-panel p {
  color: #b9873f;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin-top: 28px;
  text-transform: uppercase;
}

.client-download-panel h1 {
  color: #092534;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.12;
}

.client-download-panel span {
  color: #61707b;
  display: block;
  font-size: 16px;
  line-height: 1.75;
  margin-top: 18px;
  max-width: 600px;
}

.client-download-layout {
  align-items: center;
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 1fr) 260px;
}

.client-phone-preview {
  display: flex;
  justify-content: center;
}

.client-phone-frame {
  background: #071a25;
  border: 1px solid rgba(9, 37, 52, 0.14);
  border-radius: 38px;
  box-shadow: 0 30px 70px rgba(9, 37, 52, 0.18);
  height: 460px;
  padding: 14px;
  position: relative;
  width: 224px;
}

.client-phone-speaker {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  height: 5px;
  left: 50%;
  position: absolute;
  top: 20px;
  transform: translateX(-50%);
  width: 54px;
  z-index: 2;
}

.client-phone-screen {
  background:
    linear-gradient(180deg, #eff7f5 0%, #ffffff 48%, #f4efe3 100%);
  border-radius: 28px;
  display: grid;
  gap: 11px;
  height: 100%;
  overflow: hidden;
  padding: 58px 18px 18px;
}

.client-phone-screen strong {
  color: #092534;
  font-size: 24px;
}

.client-phone-screen small {
  color: #b9873f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.client-phone-screen i {
  background: rgba(9, 37, 52, 0.08);
  border-radius: 999px;
  display: block;
  height: 12px;
}

.client-phone-screen i:nth-of-type(1) {
  width: 86%;
}

.client-phone-screen i:nth-of-type(2) {
  width: 66%;
}

.client-phone-screen i:nth-of-type(3) {
  width: 76%;
}

.client-phone-screen b {
  background: #ffffff;
  border: 1px solid rgba(9, 37, 52, 0.08);
  border-radius: 8px;
  color: #092534;
  display: block;
  font-size: 13px;
  padding: 12px;
}

.client-download-panel .hero-actions .client-primary-action {
  background: #d6aa62;
  border-color: #d6aa62;
  color: #071a25;
}

.client-download-panel .hero-actions .button.secondary {
  background: #ffffff;
  border-color: rgba(9, 37, 52, 0.16);
  color: #092534;
}

.client-capability-section {
  background: #092534;
  color: white;
}

.client-capability-layout {
  align-items: start;
  display: grid;
  gap: 38px;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1fr);
}

.client-capability-copy h2,
.client-proof-band h2 {
  color: white;
}

.client-capability-copy h2 span {
  display: block;
}

.client-capability-copy p,
.client-proof-band p {
  color: rgba(255, 255, 255, 0.72);
}

.client-capability-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.client-capability-grid article {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  min-height: 200px;
  padding: 22px;
}

.client-capability-grid strong {
  color: #61cabb;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.client-capability-grid h3 {
  color: white;
  font-size: 24px;
  margin-top: 34px;
}

.client-capability-grid p {
  color: rgba(255, 255, 255, 0.7);
}

.client-entry-section {
  background: #ffffff;
}

.client-entry-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 30px;
}

.client-entry-card {
  background: #061824;
  border: 1px solid rgba(9, 37, 52, 0.12);
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(6, 24, 36, 0.14);
  color: white;
  display: grid;
  grid-template-rows: 300px 1fr;
  isolation: isolate;
  min-height: 520px;
  overflow: hidden;
  position: relative;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.client-entry-card::before {
  background:
    linear-gradient(180deg, rgba(6, 24, 36, 0) 0%, rgba(6, 24, 36, 0.14) 46%, rgba(6, 24, 36, 0.5) 100%),
    linear-gradient(90deg, rgba(6, 24, 36, 0.16), rgba(6, 24, 36, 0));
  content: "";
  height: 300px;
  inset: 0 0 auto;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.client-entry-card:hover,
.client-entry-card:focus {
  box-shadow: 0 32px 86px rgba(6, 24, 36, 0.2);
  transform: translateY(-3px);
}

.client-entry-card img {
  filter: saturate(0.94) contrast(1.04);
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.client-entry-card--library img {
  filter: saturate(0.98) contrast(1);
  object-position: center;
}

.client-entry-card--solutions img {
  filter: saturate(0.92) contrast(0.98) brightness(1.02);
  object-position: 55% center;
}

.client-entry-card--transfer img {
  filter: saturate(0.86) contrast(0.96) brightness(1.02);
  object-position: 72% center;
}

.client-entry-card div {
  background: linear-gradient(180deg, #092534 0%, #061824 100%);
  border-top: 1px solid rgba(214, 170, 98, 0.2);
  padding: 24px;
  position: relative;
  z-index: 2;
}

.client-entry-card h3 {
  color: white;
  font-size: 28px;
  margin-top: 18px;
}

.client-entry-card p {
  color: rgba(255, 255, 255, 0.72);
}

.client-proof-band {
  background:
    linear-gradient(120deg, rgba(9, 37, 52, 0.94), rgba(7, 77, 83, 0.88)),
    #092534;
  border-radius: 0;
  color: white;
  display: block;
  margin: 0;
  padding: 92px 28px;
}

.client-proof-content {
  margin: 0 auto;
  max-width: 980px;
}

.client-detail-page {
  background: #f7f3ea;
  max-width: none;
  padding: 42px 28px 86px;
}

.client-detail-hero,
.client-subnav,
.client-detail-grid,
.client-register-panel {
  margin-left: auto;
  margin-right: auto;
  max-width: 1260px;
}

.client-detail-hero {
  align-items: stretch;
  background: #092534;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(6, 24, 36, 0.16);
  color: white;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.72fr);
  overflow: hidden;
  padding: 0;
}

.client-detail-hero > div:first-child {
  padding: 42px;
}

.client-detail-hero h1 {
  color: white;
}

.client-detail-hero p {
  color: rgba(255, 255, 255, 0.72);
}

.client-detail-visual {
  min-height: 390px;
}

.client-detail-visual img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.client-detail-visual--library {
  background: linear-gradient(135deg, #eef6f4, #f7f3ea);
}

.client-detail-visual--library img {
  object-fit: contain;
  padding: 18px;
}

.client-detail-visual--solutions img {
  object-position: 52% center;
}

.client-subnav {
  margin-top: 22px;
}

.client-detail-tools {
  display: flex;
  justify-content: flex-end;
  margin: 18px auto 0;
  max-width: 1260px;
}

.client-country-switcher {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(9, 37, 52, 0.1);
  border-radius: 999px;
  box-shadow: 0 14px 38px rgba(9, 37, 52, 0.08);
  color: #092534;
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  gap: 10px;
  padding: 8px 12px 8px 16px;
}

.client-country-switcher select {
  appearance: auto;
  background: #f7f3ea;
  border: 1px solid rgba(9, 37, 52, 0.12);
  border-radius: 999px;
  color: #092534;
  font: inherit;
  min-height: 34px;
  padding: 4px 28px 4px 12px;
}

.client-subnav a {
  background: rgba(255, 255, 255, 0.86);
}

.client-subnav a.active {
  background: #092534;
  border-color: #092534;
}

.client-detail-grid {
  margin-top: 22px;
}

.client-detail-card {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(9, 37, 52, 0.1);
  box-shadow: 0 18px 54px rgba(9, 37, 52, 0.08);
  min-height: 230px;
  padding: 24px;
}

.client-detail-card h3 {
  color: #092534;
  font-size: 23px;
  margin-top: 30px;
}

.client-register-panel {
  background: #ffffff;
  border-color: rgba(9, 37, 52, 0.1);
  box-shadow: 0 18px 54px rgba(9, 37, 52, 0.08);
  margin-top: 18px;
  padding: 28px;
}

@media (max-width: 1040px) {
  .client-topbar {
    align-items: stretch;
  }

  .client-top-cta {
    justify-content: center;
  }

  .client-hero-inner,
  .client-capability-layout,
  .client-detail-hero {
    grid-template-columns: 1fr;
  }

  .client-hero-inner {
    align-items: center;
    min-height: 720px;
  }

  .client-hero-network {
    left: 28%;
    opacity: 0.66;
    top: 30%;
    width: 48vw;
  }

  .client-hero-metrics {
    grid-template-columns: 1fr;
  }

  .client-hero-metrics div + div {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .client-audience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .client-flow-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .client-flow-inner div:nth-child(2) {
    border-right: 1px solid rgba(9, 37, 52, 0.08);
  }

  .client-flow-inner div:nth-child(n + 3) {
    border-top: 1px solid rgba(9, 37, 52, 0.08);
  }

  .client-entry-grid,
  .client-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .client-topbar {
    align-items: center;
    display: grid;
    gap: 10px 12px;
    grid-template-columns: auto minmax(0, 1fr);
    overflow: hidden;
    padding: 10px 14px;
  }

  .client-topbar .brand {
    align-items: center;
    min-width: 0;
  }

  .client-topbar .main-brand-logo {
    height: 38px;
    max-width: 92px;
  }

  .client-brand-line {
    display: none;
  }

  .client-nav {
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    justify-content: flex-start;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  .client-nav::-webkit-scrollbar {
    display: none;
  }

  .client-nav-group {
    flex: 0 0 auto;
  }

  .client-nav-group > summary {
    font-size: 11px;
    justify-content: center;
    min-height: 28px;
    padding: 5px 7px;
    width: auto;
  }

  .client-nav-group > summary::after {
    font-size: 11px;
    margin-left: 4px;
  }

  .client-menu,
  .client-menu-wide {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(9, 37, 52, 0.12);
    box-shadow: 0 18px 46px rgba(6, 24, 36, 0.18);
    display: grid;
    grid-template-columns: 1fr;
    left: auto;
    min-width: 156px;
    opacity: 0;
    padding: 8px;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    transform: translateY(6px);
  }

  .client-nav-group:first-child .client-menu {
    left: 0;
    right: auto;
  }

  .client-nav-group:not([open]) .client-menu {
    display: grid;
  }

  .client-nav-group[open] .client-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .client-menu a {
    background: transparent;
    font-size: 13px;
    padding: 8px 9px;
  }

  .client-download-cta {
    font-size: 11px;
    min-height: 28px;
    padding: 5px 8px;
  }

  .client-top-cta {
    display: none;
  }

  .client-hero-showcase,
  .client-hero-inner {
    min-height: min(720px, calc(100vh - 64px));
  }

  .client-hero-bg {
    height: 100%;
    position: absolute;
  }

  .client-hero-bg img {
    object-position: 68% center;
  }

  .client-hero-showcase {
    background: #061824;
    display: block;
  }

  .client-hero-shade {
    background:
      linear-gradient(180deg, rgba(6, 24, 36, 0.08) 0%, rgba(6, 24, 36, 0.3) 31%, rgba(6, 24, 36, 0.96) 76%, #061824 100%),
      linear-gradient(90deg, rgba(6, 24, 36, 0.86) 0%, rgba(6, 24, 36, 0.4) 58%, rgba(6, 24, 36, 0.16) 100%);
    bottom: 0;
    height: auto;
  }

  .client-hero-network {
    display: none;
  }

  .client-hero-inner {
    display: grid;
    align-items: end;
    padding: 330px 18px 26px;
  }

  .client-hero-copy h1 {
    font-size: clamp(26px, 6.7vw, 34px);
    line-height: 1.14;
    max-width: 430px;
    overflow-wrap: anywhere;
  }

  .client-section-head h2,
  .client-capability-copy h2,
  .client-proof-band h2 {
    font-size: clamp(27px, 7vw, 34px);
    overflow-wrap: anywhere;
  }

  .client-hero-copy p {
    font-size: 16px;
  }

  .client-hero-copy .client-hero-intro {
    font-size: 15px;
  }

  .client-hero-actions .button {
    min-height: 44px;
  }

  .client-hero-services {
    gap: 7px;
    margin-top: 18px;
    max-width: 100%;
    width: 100%;
  }

  .client-hero-services li {
    min-height: 38px;
    padding: 7px 10px;
  }

  .client-hero-services strong {
    font-size: 13px;
  }

  .client-hero-services em {
    display: none;
  }

  .client-hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 100%;
    width: 100%;
  }

  .client-hero-metrics div {
    column-gap: 6px;
    grid-template-columns: 3px minmax(0, 1fr);
    min-height: 82px;
    padding: 12px 6px;
  }

  .client-hero-metrics strong {
    line-height: 1.05;
    font-size: 23px;
  }

  .client-hero-metrics span {
    font-size: 9px;
    line-height: 1.35;
  }

  .client-hero-metrics div + div {
    border-left: 1px solid rgba(255, 255, 255, 0.14);
    border-top: 0;
  }

  .client-section {
    padding: 58px 18px;
  }

  .client-flow-bar {
    padding: 0 18px;
  }

  .client-flow-inner {
    grid-template-columns: 1fr;
  }

  .client-flow-inner div,
  .client-flow-inner div:nth-child(2),
  .client-flow-inner div:last-child {
    border-left: 0;
    border-right: 0;
  }

  .client-flow-inner div {
    min-height: auto;
    padding: 20px 0;
  }

  .client-flow-inner div + div,
  .client-flow-inner div:nth-child(n + 3) {
    border-top: 1px solid rgba(9, 37, 52, 0.08);
  }

  .client-flow-inner span {
    margin-bottom: 10px;
  }

  .client-audience-grid,
  .client-capability-grid {
    grid-template-columns: 1fr;
  }

  .client-audience-head {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
    padding-bottom: 20px;
  }

  .client-audience-head::after {
    display: block;
    width: 150px;
  }

  .client-audience-head span::before {
    height: 28px;
  }

  .client-audience-card {
    min-height: auto;
  }

  .client-entry-card {
    grid-template-rows: 240px 1fr;
    min-height: auto;
  }

  .client-entry-card::before {
    height: 240px;
  }

  .client-proof-band {
    padding: 62px 18px;
  }

  .client-detail-page {
    padding: 24px 18px 58px;
  }

  .client-detail-hero > div:first-child,
  .client-register-panel {
    padding: 24px;
  }

  .client-detail-visual {
    min-height: 260px;
  }

  .client-detail-visual--library img {
    padding: 10px;
  }

  .client-detail-tools {
    justify-content: stretch;
  }

  .client-country-switcher {
    border-radius: 8px;
    justify-content: space-between;
    width: 100%;
  }

  .client-country-switcher select {
    max-width: 58%;
  }
}

@media (max-width: 560px) {
  .client-topbar {
    gap: 8px;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 8px 10px;
  }

  .client-topbar .main-brand-logo {
    max-width: 72px;
  }

  .client-nav {
    gap: 3px;
  }

  .client-nav-group > summary {
    font-size: 10px;
    min-height: 27px;
    padding: 4px 5px;
  }

  .client-download-cta {
    font-size: 10px;
    min-height: 27px;
    padding: 4px 7px;
  }

  .client-nav-group > summary::after {
    font-size: 10px;
    margin-left: 2px;
  }

  .client-hero-inner {
    padding-inline: 14px;
  }

  .client-hero-copy h1 {
    font-size: clamp(24px, 6.3vw, 29px);
  }

  .client-hero-copy .eyebrow {
    font-size: 10px !important;
    letter-spacing: 0.08em;
    line-height: 1.55;
    max-width: 320px;
  }

  .client-hero-copy p {
    font-size: 14px;
  }

  .client-hero-copy .client-hero-intro {
    font-size: 13.5px;
    line-height: 1.58;
    margin-top: 14px;
  }

  .client-hero-services {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 16px;
    max-width: calc(100vw - 28px);
  }

  .client-hero-services li {
    min-width: 0;
    padding: 6px 9px;
  }

  .client-hero-services span {
    font-size: 10px;
    margin-bottom: 0;
  }

  .client-hero-services strong {
    display: block;
    font-size: 11px;
    min-width: 0;
    white-space: normal;
  }

  .client-hero-services em {
    display: none;
  }

  .client-hero-actions {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr;
    margin-top: 14px;
    max-width: calc(100vw - 28px);
  }

  .client-hero-actions .button {
    font-size: 13px;
    min-height: 40px;
    padding: 8px 12px;
    width: 100%;
  }

  .client-hero-copy .client-hero-note {
    display: none;
  }

  .client-hero-tags span {
    font-size: 11px;
    padding: 6px 9px;
  }

  .client-hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .client-hero-metrics div {
    column-gap: 4px;
    grid-template-columns: 3px minmax(0, 1fr);
    min-height: 74px;
    padding: 9px 5px;
  }

  .client-hero-metrics strong {
    font-size: 20px;
  }

  .client-hero-metrics span {
    font-size: 8.5px;
    line-height: 1.34;
  }

  .client-hero-metrics div + div {
    border-left: 1px solid rgba(255, 255, 255, 0.14);
    border-top: 0;
  }

  .client-download-panel {
    padding: 24px;
  }

  .client-download-layout {
    grid-template-columns: 1fr;
  }

  .client-phone-preview {
    display: none;
  }
}

[hidden] {
  display: none !important;
}

.hero-options-page {
  background: #f7f3ea;
  min-height: 100vh;
  padding: 28px;
}

.hero-options-head {
  align-items: center;
  display: flex;
  gap: 24px;
  margin: 0 auto 28px;
  max-width: 1280px;
}

.hero-options-head h1 {
  color: #092534;
  font-size: clamp(28px, 3vw, 44px);
  margin-top: 4px;
}

.hero-options-grid {
  display: grid;
  gap: 24px;
  margin: 0 auto;
  max-width: 1280px;
}

.hero-options-grid figure {
  background: #071a25;
  border: 1px solid rgba(9, 37, 52, 0.12);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(9, 37, 52, 0.14);
  margin: 0;
  overflow: hidden;
}

.hero-options-grid img {
  aspect-ratio: 2 / 1;
  display: block;
  object-fit: cover;
  width: 100%;
}

.hero-options-grid figcaption {
  color: white;
  font-size: 18px;
  font-weight: 900;
  padding: 16px 18px;
}

.client-portal-site {
  background: #eef3f6;
}

.portal-main {
  background: #eef3f6;
  min-height: calc(100vh - 70px);
}

.portal-topbar .client-top-cta {
  border-radius: 6px;
}

.portal-gate {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(6, 24, 36, 0.92), rgba(6, 24, 36, 0.66) 50%, rgba(6, 24, 36, 0.26)),
    url("/assets/client-donor-library-home-browsing.png") center / cover no-repeat;
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  min-height: calc(100vh - 70px);
  padding: 42px max(28px, calc((100vw - 1260px) / 2));
}

.portal-gate-copy {
  max-width: 700px;
}

.portal-gate-copy h1 {
  color: white;
  font-size: clamp(40px, 5.5vw, 68px);
  line-height: 1.08;
  max-width: 680px;
}

.portal-gate-copy p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.74;
  max-width: 560px;
}

.portal-gate-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  max-width: 640px;
}

.portal-gate-points span {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 900;
  padding: 7px 11px;
}

.portal-login-panel {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: 0 26px 82px rgba(6, 24, 36, 0.28);
  display: grid;
  gap: 14px;
  padding: 24px;
}

.portal-form-head {
  border-bottom: 1px solid rgba(9, 37, 52, 0.1);
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
}

.portal-form-head strong {
  color: #092534;
  font-size: 20px;
  line-height: 1.2;
}

.portal-form-head p,
.portal-form-note {
  color: #63717e;
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

.portal-login-panel .field-label {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.portal-login-panel .field-label small {
  color: #8a6a32;
  font-size: 11px;
  font-weight: 900;
}

.portal-login-panel button {
  justify-content: center;
  min-height: 48px;
}

.portal-login-panel button:disabled {
  cursor: progress;
  opacity: 0.72;
}

.portal-message {
  color: var(--danger);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
  margin: 0;
  min-height: 20px;
}

.portal-message:empty {
  display: none;
}

.portal-message.is-loading {
  color: #8a6a32;
}

.portal-message.is-success {
  color: #0f766e;
}

.portal-app {
  display: grid;
  gap: 18px;
  padding: 26px max(18px, calc((100vw - 1320px) / 2)) 72px;
}

.portal-hero {
  align-items: stretch;
  background: #092534;
  border-radius: 8px;
  color: white;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  overflow: hidden;
  padding: 30px;
}

.portal-hero h1 {
  color: white;
  font-size: clamp(30px, 4vw, 52px);
  max-width: 860px;
}

.portal-hero p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  max-width: 720px;
}

.portal-stats {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
}

.portal-stats div {
  padding: 20px;
}

.portal-stats div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.portal-stats strong {
  color: #61cabb;
  display: block;
  font-size: 34px;
  line-height: 1;
}

.portal-stats span {
  color: rgba(255, 255, 255, 0.78);
  display: block;
  font-weight: 900;
  margin-top: 8px;
}

.portal-access-strip {
  background: white;
  border: 1px solid rgba(9, 37, 52, 0.1);
  border-radius: 8px;
  box-shadow: 0 14px 42px rgba(9, 37, 52, 0.07);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
}

.portal-access-strip div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 15px 16px;
}

.portal-access-strip div + div {
  border-left: 1px solid var(--line);
}

.portal-access-strip span,
.portal-policy-note span,
.portal-package-meta span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.portal-access-strip strong {
  color: #092534;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.portal-workspace {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: 300px minmax(0, 1fr) 280px;
}

.portal-filter-panel,
.portal-results-panel,
.portal-selection-panel,
.portal-package-card,
.portal-detail-head,
.portal-detail-gallery,
.portal-detail-info,
.portal-wechat-panel {
  background: white;
  border: 1px solid rgba(9, 37, 52, 0.1);
  border-radius: 8px;
  box-shadow: 0 18px 54px rgba(9, 37, 52, 0.08);
}

.portal-filter-panel,
.portal-results-panel,
.portal-selection-panel {
  padding: 16px;
}

.portal-filter-panel,
.portal-selection-panel {
  position: sticky;
  top: 86px;
}

.portal-panel-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.portal-panel-head h2 {
  color: #092534;
  font-size: 21px;
}

.portal-panel-head p {
  font-size: 14px;
}

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

.portal-filter-grid .wide {
  grid-column: 1 / -1;
}

.portal-filter-grid input,
.portal-filter-grid select {
  min-height: 38px;
}

.portal-tag-filter {
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
  padding-top: 14px;
}

.portal-tag-filter > span {
  color: var(--muted);
  flex: 0 0 100%;
  font-size: 13px;
  font-weight: 800;
}

.portal-tag-chip {
  background: #f4f7f8;
  border-color: #dce5e8;
  color: #23343e;
  font-size: 12px;
  min-height: 30px;
  padding: 5px 8px;
}

.portal-tag-chip.active {
  background: #0f766e;
  border-color: #0f766e;
  color: white;
}

.portal-policy-note {
  background: #f8fbfc;
  border: 1px solid #e0e7ea;
  border-radius: 8px;
  display: grid;
  gap: 5px;
  margin-top: 14px;
  padding: 12px;
}

.portal-policy-note strong {
  color: #092534;
  font-size: 13px;
}

.portal-similarity-panel {
  background: #f7fafb;
  border: 1px solid #dce5e8;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
}

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

.portal-similarity-head strong {
  color: #092534;
  font-size: 14px;
}

.portal-similarity-head span,
.portal-similarity-preview span,
.portal-similarity-panel p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.portal-similarity-upload {
  align-items: center;
  background: white;
  border: 1px dashed #b9c9d1;
  border-radius: 8px;
  color: #115e59;
  cursor: pointer;
  display: flex;
  font-weight: 900;
  justify-content: center;
  min-height: 42px;
  padding: 9px;
}

.portal-similarity-upload input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.portal-similarity-preview {
  align-items: center;
  background: white;
  border: 1px solid #e0e7ea;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 54px minmax(0, 1fr);
  padding: 8px;
}

.portal-similarity-preview img {
  aspect-ratio: 1;
  background: #dfe7ec;
  border-radius: 6px;
  object-fit: cover;
  width: 54px;
}

.portal-similarity-preview strong {
  color: #092534;
  display: block;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-similarity-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.portal-similarity-actions .button {
  justify-content: center;
  min-height: 38px;
}

.portal-similarity-panel p {
  margin: 0;
}

.portal-filter-summary {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.portal-filter-token,
.portal-filter-clear {
  align-items: center;
  background: #f4f7f8;
  border: 1px solid #dce5e8;
  border-radius: 999px;
  display: inline-flex;
  gap: 6px;
  min-height: 32px;
  padding: 5px 10px;
}

.portal-filter-token span,
.portal-filter-empty {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.portal-filter-token strong {
  color: #092534;
  font-size: 12px;
}

.portal-filter-clear {
  background: #fff7ed;
  border-color: #f4d7af;
  color: #9a5a15;
  font-size: 12px;
  font-weight: 900;
}

.portal-candidate-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(252px, 1fr));
}

.portal-candidate-card {
  background: #ffffff;
  border: 1px solid rgba(9, 37, 52, 0.1);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  min-height: 500px;
  overflow: hidden;
  position: relative;
}

.portal-candidate-card.selected {
  border-color: rgba(15, 118, 110, 0.42);
  box-shadow: 0 18px 54px rgba(15, 118, 110, 0.14);
}

.portal-select-box {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(9, 37, 52, 0.12);
  border-radius: 999px;
  display: flex;
  gap: 6px;
  left: 10px;
  padding: 6px 10px;
  position: absolute;
  top: 10px;
  z-index: 1;
}

.portal-select-box input {
  min-height: auto;
  width: auto;
}

.portal-select-box span {
  color: #092534;
  font-size: 12px;
  font-weight: 900;
}

.portal-candidate-card.selected .portal-select-box {
  background: #0f766e;
  border-color: #0f766e;
}

.portal-candidate-card.selected .portal-select-box span {
  color: white;
}

.portal-card-photo {
  align-items: center;
  aspect-ratio: 4 / 3;
  background: #dfe7ec;
  color: #789;
  display: flex;
  font-size: 28px;
  font-weight: 900;
  justify-content: center;
  overflow: hidden;
}

.portal-card-photo img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.portal-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
}

.portal-card-title {
  align-items: start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.portal-card-title h3 {
  color: #092534;
  font-size: 19px;
}

.portal-card-title p {
  font-size: 13px;
  margin-top: 4px;
}

.portal-card-badges {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.portal-similarity-score {
  background: #fff7ed;
  border: 1px solid #f4d7af;
  border-radius: 999px;
  color: #9a5a15;
  font-size: 12px;
  font-weight: 900;
  padding: 4px 8px;
  white-space: nowrap;
}

.portal-fact-row {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 6px 10px;
}

.portal-fact-row span {
  background: #f4f7f8;
  border-radius: 999px;
  padding: 3px 7px;
}

.portal-card-countries {
  background: #fff7ed;
  border: 1px solid #f4d7af;
  border-radius: 8px;
  color: #8a5a1e;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 10px;
}

.portal-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.portal-selection-panel {
  display: grid;
  gap: 12px;
}

.portal-selection-panel button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

#portalSelectionBadge,
.portal-selection-panel .portal-panel-head span {
  align-items: center;
  background: #edf7f5;
  border-radius: 999px;
  color: #0f766e;
  display: inline-flex;
  font-weight: 900;
  min-height: 28px;
  min-width: 28px;
  justify-content: center;
  padding: 3px 8px;
}

.portal-selection-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
}

.portal-selection-item {
  align-items: start;
  background: #f7fafb;
  border: 1px solid #e0e7ea;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: 28px minmax(0, 1fr);
  padding: 9px;
}

.portal-selection-item button {
  background: white;
  border-color: #dce5e8;
  color: #52616c;
  min-height: 28px;
  padding: 0;
}

.portal-selection-item strong,
.portal-selection-item span {
  display: block;
}

.portal-selection-item span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.portal-empty {
  background: white;
  border: 1px dashed #cbd5dc;
  border-radius: 8px;
  color: var(--muted);
  padding: 24px;
  text-align: center;
}

.portal-detail {
  background: #eef3f6;
  min-height: calc(100vh - 70px);
  padding: 24px max(18px, calc((100vw - 1320px) / 2)) 72px;
}

.portal-detail-head {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin-bottom: 16px;
  padding: 16px;
}

.portal-detail-head h1 {
  color: #092534;
  font-size: clamp(26px, 4vw, 42px);
}

.portal-detail-layout {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1fr) minmax(300px, 0.72fr);
}

.portal-detail-gallery,
.portal-detail-info,
.portal-wechat-panel {
  padding: 16px;
}

.portal-detail-photo {
  align-items: center;
  aspect-ratio: 4 / 5;
  background: #dfe7ec;
  border-radius: 8px;
  color: #789;
  display: flex;
  font-size: 32px;
  font-weight: 900;
  justify-content: center;
  overflow: hidden;
}

.portal-detail-photo img,
.portal-photo-strip img,
.portal-wechat-photo img,
.portal-package-photo img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.portal-photo-strip {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 10px;
}

.portal-photo-strip img {
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
}

.portal-video-list {
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
}

.portal-media-note {
  background: #f7fafb;
  border: 1px solid #dce5e8;
  border-radius: 8px;
  color: #52616c;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
  margin-top: 12px;
  padding: 10px 12px;
}

.portal-video-list h3 {
  flex: 0 0 100%;
}

.portal-video-list a {
  background: #edf7f5;
  border: 1px solid #cce7e2;
  border-radius: 999px;
  color: #115e59;
  font-weight: 800;
  padding: 6px 10px;
}

.portal-video-restricted {
  background: #f4f7f8;
  border: 1px solid #dce5e8;
  border-radius: 999px;
  color: #52616c;
  font-size: 13px;
  font-weight: 800;
  padding: 6px 10px;
}

.portal-detail-info {
  display: grid;
  gap: 16px;
}

.portal-detail-section h2 {
  color: #092534;
  font-size: clamp(28px, 4vw, 44px);
}

.portal-detail-access {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portal-detail-access div {
  background: #fff7ed;
  border: 1px solid #f4d7af;
  border-radius: 8px;
  padding: 10px;
}

.portal-detail-access strong {
  color: #8a5a1e;
  display: block;
  font-size: 12px;
}

.portal-detail-access span {
  color: #263947;
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

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

.portal-detail-facts div {
  background: #f7fafb;
  border: 1px solid #e0e7ea;
  border-radius: 8px;
  padding: 12px;
}

.portal-detail-facts strong {
  color: var(--muted);
  display: block;
  font-size: 12px;
}

.portal-detail-facts span {
  color: #092534;
  display: block;
  font-weight: 900;
  margin-top: 5px;
}

.portal-wechat-panel {
  display: grid;
  gap: 12px;
}

.portal-wechat-card {
  background: #fffaf1;
  border: 1px solid #ead8b9;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.portal-wechat-card::after {
  color: rgba(137, 91, 30, 0.08);
  content: "lovbaby";
  font-size: 64px;
  font-weight: 900;
  left: 50%;
  pointer-events: none;
  position: absolute;
  top: 44%;
  transform: translate(-50%, -50%) rotate(-24deg);
  z-index: 2;
}

.portal-wechat-watermark {
  background: rgba(9, 37, 52, 0.88);
  color: rgba(255, 255, 255, 0.78);
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 900;
  gap: 5px 10px;
  justify-content: space-between;
  left: 0;
  letter-spacing: 0;
  padding: 7px 10px;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 3;
}

.portal-wechat-stamp {
  background: rgba(255, 250, 241, 0.92);
  border: 1px solid rgba(234, 216, 185, 0.88);
  border-radius: 999px;
  color: #8a5a1e;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
  position: absolute;
  right: 10px;
  top: 42px;
  z-index: 3;
}

.portal-wechat-photo {
  align-items: center;
  aspect-ratio: 4 / 3;
  background: #dfe7ec;
  color: #789;
  display: flex;
  font-weight: 900;
  justify-content: center;
  overflow: hidden;
}

.portal-wechat-body {
  display: grid;
  gap: 10px;
  padding: 16px;
  position: relative;
  z-index: 3;
}

.portal-wechat-body > span {
  color: #b9873f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.portal-wechat-body h2 {
  color: #092534;
  font-size: 28px;
}

.portal-wechat-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.portal-wechat-facts span {
  background: white;
  border: 1px solid #ead8b9;
  border-radius: 999px;
  color: #263947;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 8px;
}

.portal-wechat-actions,
.portal-package-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portal-package-panel {
  scroll-margin-top: 92px;
}

.portal-package-card {
  padding: 18px;
}

.portal-package-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.portal-package-meta span {
  background: #f8fbfc;
  border: 1px solid #e0e7ea;
  border-radius: 999px;
  padding: 6px 10px;
}

.portal-package-list {
  display: grid;
  gap: 12px;
}

.portal-package-item {
  align-items: start;
  background: #f8fbfc;
  border: 1px solid #e0e7ea;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 42px 120px minmax(0, 1fr);
  padding: 12px;
}

.portal-package-item > span {
  color: #b9873f;
  font-size: 13px;
  font-weight: 900;
}

.portal-package-photo {
  align-items: center;
  aspect-ratio: 1;
  background: #dfe7ec;
  border-radius: 8px;
  color: #789;
  display: flex;
  font-weight: 900;
  justify-content: center;
  overflow: hidden;
}

.portal-copy-source {
  margin-top: 14px;
  min-height: 160px;
}

.portal-mobile-package-bar {
  display: none;
}

.partner-site {
  background: #f7f3ea;
}

.partner-intro-hero,
.partner-unavailable {
  align-items: center;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
  margin: 0 auto;
  max-width: 1260px;
  min-height: calc(100vh - 78px);
  padding: 72px 28px;
}

.partner-unavailable {
  grid-template-columns: minmax(0, 760px);
}

.partner-intro-copy h1,
.partner-unavailable h1 {
  color: #092534;
  font-size: clamp(34px, 4.5vw, 62px);
  line-height: 1.08;
  margin: 0;
}

.partner-intro-copy p,
.partner-unavailable p {
  color: #536470;
  font-size: 18px;
  line-height: 1.75;
  max-width: 760px;
}

.partner-intro-preview {
  background: #ffffff;
  border: 1px solid rgba(9, 37, 52, 0.1);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(9, 37, 52, 0.12);
  overflow: hidden;
}

.partner-preview-brand {
  align-items: center;
  background: #092534;
  color: white;
  display: flex;
  justify-content: space-between;
  padding: 18px;
}

.partner-preview-brand span {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  font-weight: 900;
  padding: 12px 14px;
}

.partner-preview-brand strong {
  color: #f3dfaa;
  font-size: 13px;
}

.partner-preview-body {
  padding: 24px;
}

.partner-preview-body h2,
.partner-preview-body p {
  color: #092534;
}

.partner-feature-grid,
.partner-service-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.partner-feature-grid article,
.partner-service-grid article {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(9, 37, 52, 0.1);
  border-radius: 8px;
  min-height: 210px;
  padding: 22px;
}

.partner-feature-grid strong,
.partner-service-grid strong {
  color: #b9873f;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.partner-feature-grid h3,
.partner-service-grid h3 {
  color: #092534;
  font-size: 22px;
  margin-top: 28px;
}

.partner-feature-grid p,
.partner-service-grid p {
  color: #61707b;
  line-height: 1.65;
}

.partner-hero {
  color: white;
  min-height: 680px;
  overflow: hidden;
  position: relative;
}

.partner-hero-bg,
.partner-hero-shade {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.partner-hero-bg {
  object-fit: cover;
}

.partner-hero-shade {
  background: linear-gradient(90deg, rgba(7, 26, 37, 0.92) 0%, rgba(7, 26, 37, 0.78) 42%, rgba(7, 26, 37, 0.24) 100%);
}

.partner-hero-content {
  align-items: end;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 0.76fr);
  margin: 0 auto;
  max-width: 1260px;
  min-height: 680px;
  padding: 92px 28px 72px;
  position: relative;
  z-index: 1;
}

.partner-brand-card {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  display: flex;
  gap: 18px;
  padding: 18px;
}

.partner-logo-frame {
  align-items: center;
  background: #ffffff;
  border-radius: 8px;
  color: #092534;
  display: flex;
  flex: 0 0 128px;
  height: 92px;
  justify-content: center;
  overflow: hidden;
  padding: 12px;
}

.partner-logo-frame img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.partner-logo-frame span {
  font-size: 15px;
  font-weight: 900;
  text-align: center;
}

.partner-brand-card p,
.partner-brand-card span {
  color: rgba(255, 255, 255, 0.72);
  display: block;
  margin: 0;
}

.partner-brand-card h1 {
  color: white;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.06;
  margin: 8px 0 10px;
}

.partner-hero-copy h2 {
  color: white;
  font-size: clamp(30px, 3.4vw, 52px);
  line-height: 1.1;
  margin: 0;
}

.partner-hero-copy p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.72;
}

.partner-flow {
  border-top: 1px solid rgba(9, 37, 52, 0.08);
}

.partner-service-section {
  background: #ffffff;
}

.partner-consult-section {
  background: #092534;
  color: white;
}

.partner-consult-layout {
  align-items: start;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 0.72fr);
}

.partner-consult-layout h2 {
  color: white;
  font-size: clamp(30px, 3.5vw, 48px);
  line-height: 1.12;
}

.partner-consult-layout p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 17px;
  line-height: 1.7;
}

.partner-consult-form {
  background: white;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.16);
  display: grid;
  gap: 14px;
  padding: 22px;
}

.partner-consult-form textarea {
  min-height: 120px;
}

.partner-message {
  color: #61707b;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.6;
  margin: 0;
}

.partner-contact-modal {
  inset: 0;
  min-height: 100vh;
  position: fixed;
  z-index: 60;
}

.partner-contact-modal[hidden] {
  display: none;
}

.partner-contact-modal:not([hidden]) {
  display: block;
}

.partner-contact-backdrop {
  background: rgba(7, 26, 37, 0.62);
  inset: 0;
  position: absolute;
  z-index: 0;
}

.partner-contact-dialog {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(7, 26, 37, 0.28);
  left: 50%;
  max-height: calc(100vh - 40px);
  max-width: 440px;
  overflow: auto;
  padding: 26px;
  position: fixed;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100vw - 32px);
  z-index: 1;
}

.partner-modal-close {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  color: #092534;
  display: flex;
  font-size: 24px;
  height: 38px;
  justify-content: center;
  min-height: 38px;
  padding: 0;
  position: absolute;
  right: 16px;
  top: 16px;
  width: 38px;
}

.partner-contact-dialog h2 {
  color: #092534;
  font-size: 28px;
  margin: 6px 0 16px;
}

.partner-contact-body {
  display: grid;
  gap: 14px;
}

.partner-contact-body img {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  max-height: 320px;
  object-fit: contain;
  width: 100%;
}

.partner-wechat-id {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.partner-wechat-id span {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.partner-wechat-id strong {
  color: #092534;
  font-size: 22px;
  overflow-wrap: anywhere;
}

.staff-library-site {
  background: #eef3f6;
}

.staff-library-hero {
  background: #12343f;
}

.staff-client-brief {
  background: white;
  border: 1px solid rgba(9, 37, 52, 0.1);
  border-radius: 8px;
  box-shadow: 0 18px 54px rgba(9, 37, 52, 0.08);
  padding: 18px;
}

.staff-workbench-grid {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 0.72fr);
}

.staff-workbench-panel {
  background: white;
  border: 1px solid rgba(9, 37, 52, 0.1);
  border-radius: 8px;
  box-shadow: 0 18px 54px rgba(9, 37, 52, 0.08);
  padding: 18px;
}

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

.staff-brief-grid .wide {
  grid-column: span 2;
}

.staff-brief-grid textarea,
.staff-batch-grid textarea {
  min-height: 86px;
}

.staff-batch-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.staff-batch-grid .wide {
  grid-column: 1 / -1;
}

.staff-toggle-field {
  align-items: center;
  align-self: end;
  background: #f7fafb;
  border: 1px solid #e0e7ea;
  border-radius: 8px;
  display: flex;
  gap: 9px;
  min-height: 40px;
  padding: 9px 10px;
}

.staff-toggle-field input {
  min-height: auto;
  width: auto;
}

.staff-toggle-field span {
  color: #092534;
  font-weight: 800;
}

.staff-stage-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.staff-stage-row {
  background: #f7fafb;
  border: 1px solid #e0e7ea;
  border-radius: 8px;
  display: grid;
  gap: 7px;
  padding: 10px;
}

.staff-stage-row span {
  color: #092534;
  font-size: 13px;
  font-weight: 900;
}

.staff-stage-row select {
  min-height: 34px;
  padding: 6px 8px;
}

.staff-library-workspace {
  grid-template-columns: 310px minmax(0, 1fr) 300px;
}

.staff-candidate-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.staff-candidate-card {
  min-height: 0;
}

.staff-internal-note {
  background: #f7fafb;
  border: 1px solid #e0e7ea;
  border-radius: 8px;
  display: grid;
  gap: 5px;
  padding: 10px;
}

.staff-internal-note strong {
  color: #092534;
  font-size: 13px;
}

.staff-internal-note span {
  color: var(--muted);
  font-size: 13px;
}

.muted-pill {
  background: #f7fafb;
  color: #52616c;
}

.staff-detail-drawer {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  padding-top: 12px;
}

.staff-detail-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.staff-video-list {
  margin-top: 0;
}

.staff-redaction-check {
  background: #f7fafb;
  border: 1px solid #e0e7ea;
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 10px;
}

.staff-redaction-check strong {
  color: #092534;
  flex: 0 0 100%;
  font-size: 13px;
}

.staff-redaction-check span {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  color: #9a3412;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 7px;
}

.staff-package-card .notice {
  margin-bottom: 14px;
}

.staff-package-summary {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-bottom: 14px;
}

.staff-package-summary h3 {
  color: #092534;
  font-size: 16px;
  margin-bottom: 10px;
}

.staff-summary-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 10px;
}

.staff-summary-grid div {
  background: #f7fafb;
  border: 1px solid #e0e7ea;
  border-radius: 8px;
  padding: 9px;
}

.staff-summary-grid strong {
  color: var(--muted);
  display: block;
  font-size: 12px;
}

.staff-summary-grid span {
  color: #092534;
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.staff-stage-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.staff-stage-pill {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  padding: 4px 8px;
}

.staff-stage-pill.pending {
  background: #eef2f4;
  color: #52616c;
}

.staff-stage-pill.active {
  background: #dbeafe;
  color: #1d4ed8;
}

.staff-stage-pill.done {
  background: #dcfce7;
  color: #166534;
}

.staff-stage-pill.risk {
  background: #fee2e2;
  color: #991b1b;
}

@media (max-width: 1180px) {
  .portal-workspace,
  .portal-detail-layout,
  .portal-hero {
    grid-template-columns: 1fr;
  }

  .portal-filter-panel,
  .portal-selection-panel {
    position: static;
  }

  .portal-stats {
    max-width: 520px;
  }

  .portal-access-strip,
  .portal-detail-access {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-access-strip div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .portal-access-strip div:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .portal-selection-list {
    max-height: none;
  }

  .staff-library-workspace,
  .staff-workbench-grid,
  .staff-package-summary,
  .staff-brief-grid,
  .referral-layout,
  .partner-intro-hero,
  .partner-hero-content,
  .partner-consult-layout,
  .ops-layout,
  .ops-lower-grid,
  .audit-grid {
    grid-template-columns: 1fr;
  }

  .partner-feature-grid,
  .partner-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ops-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .donor-referral-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .staff-brief-grid .wide {
    grid-column: auto;
  }
}

@media (max-width: 820px) {
  .donor-referral-records .table-scroll {
    display: none;
  }

  .donor-referral-cards {
    display: grid;
    gap: 10px;
  }

  .donor-referral-card-grid {
    grid-template-columns: 1fr;
  }

  .portal-gate {
    align-items: stretch;
    background-position: 58% center;
    gap: 18px;
    grid-template-columns: 1fr;
    min-height: calc(100vh - 58px);
    padding: 210px 18px 24px;
  }

  .portal-gate-copy h1 {
    font-size: clamp(32px, 9vw, 48px);
    max-width: 560px;
  }

  .portal-gate-copy p {
    font-size: 16px;
  }

  .portal-gate-points {
    gap: 6px;
    margin-top: 16px;
  }

  .portal-gate-points span {
    font-size: 12px;
    padding: 6px 9px;
  }

  .portal-login-panel {
    padding: 18px;
  }

  .portal-app,
  .portal-detail {
    padding: 16px 14px 96px;
  }

  .portal-hero {
    padding: 22px;
  }

  .portal-panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .portal-panel-head .button,
  .portal-panel-head button {
    justify-content: center;
    width: 100%;
  }

  .portal-stats,
  .portal-access-strip,
  .portal-detail-access,
  .portal-detail-facts,
  .portal-filter-grid,
  .partner-feature-grid,
  .partner-service-grid,
  .ops-kpi-grid,
  .donor-referral-stats,
  .copy-row,
  .compact-form,
  .staff-batch-grid,
  .staff-stage-list,
  .staff-summary-grid {
    grid-template-columns: 1fr;
  }

  .portal-stats div + div {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .portal-access-strip div + div,
  .portal-access-strip div:nth-child(3),
  .portal-access-strip div:nth-child(4) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .ops-item-head {
    align-items: stretch;
    flex-direction: column;
  }

  .portal-filter-grid .wide {
    grid-column: auto;
  }

  .portal-detail-head {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

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

  .portal-candidate-card {
    min-height: 0;
  }

  .portal-card-actions .button,
  .portal-similarity-actions .button,
  .portal-wechat-actions .button,
  .portal-package-actions .button {
    justify-content: center;
    width: 100%;
  }

  .copy-row .secondary {
    justify-content: center;
    width: 100%;
  }

  .portal-similarity-actions {
    grid-template-columns: 1fr;
  }

  .portal-package-item {
    grid-template-columns: 32px 82px minmax(0, 1fr);
  }

  .portal-mobile-package-bar:not([hidden]) {
    align-items: center;
    background: rgba(9, 37, 52, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    bottom: 12px;
    box-shadow: 0 16px 42px rgba(9, 37, 52, 0.24);
    color: white;
    display: flex;
    gap: 10px;
    left: 12px;
    padding: 10px;
    position: fixed;
    right: 12px;
    z-index: 30;
  }

  .portal-mobile-package-bar span {
    flex: 1;
    font-size: 13px;
    font-weight: 900;
  }

  .portal-mobile-package-bar .button {
    flex: 0 0 auto;
    min-height: 42px;
  }

  .partner-intro-hero,
  .partner-unavailable {
    min-height: auto;
    padding: 42px 18px;
  }

  .partner-intro-copy h1,
  .partner-unavailable h1 {
    font-size: clamp(31px, 8.5vw, 44px);
  }

  .partner-preview-brand {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .partner-hero,
  .partner-hero-content {
    min-height: auto;
  }

  .partner-hero-bg {
    object-position: 64% center;
  }

  .partner-hero-shade {
    background: linear-gradient(180deg, rgba(7, 26, 37, 0.78) 0%, rgba(7, 26, 37, 0.92) 100%);
  }

  .partner-hero-content {
    align-items: start;
    padding: 46px 18px;
  }

  .partner-brand-card {
    align-items: stretch;
    flex-direction: column;
  }

  .partner-logo-frame {
    flex-basis: auto;
    height: 84px;
    width: 132px;
  }

  .partner-hero-copy h2,
  .partner-consult-layout h2 {
    font-size: clamp(29px, 8vw, 42px);
  }

  .partner-consult-form {
    padding: 18px;
  }
}

@media (max-width: 520px) {
  .portal-gate {
    background-position: 62% center;
    padding: 170px 14px 18px;
  }

  .portal-gate-copy h1 {
    font-size: clamp(29px, 8.6vw, 38px);
  }

  .portal-gate-copy p,
  .portal-form-head p,
  .portal-form-note {
    font-size: 13px;
  }

  .portal-login-panel .field-label {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .portal-package-item {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .portal-package-photo {
    grid-column: 2;
    width: 96px;
  }
}

@media print {
  .topbar,
  .print-hide {
    display: none;
  }

  .poster-page {
    background: white;
    padding: 0;
  }

  .poster {
    border: 0;
    box-shadow: none;
  }

  .portal-main,
  .portal-detail,
  .client-portal-site {
    background: white;
  }

  .portal-app,
  .portal-detail {
    padding: 0;
  }

  .portal-filter-panel,
  .portal-selection-panel,
  .portal-results-panel {
    display: none;
  }

  .portal-package-card,
  .portal-wechat-panel,
  .portal-detail-gallery,
  .portal-detail-info {
    box-shadow: none;
  }
}
