.client-portal-mode #screen-client {
  --client-copy-size: 15px;
  --client-meta-size: 13px;
  --client-label-size: 12px;
}

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

.client-portal-mode #screen-client .client-home-welcome p,
.client-portal-mode #screen-client .client-agreement-alert p,
.client-portal-mode #screen-client .client-command-summary-head p,
.client-portal-mode #screen-client .client-action-copy em,
.client-portal-mode #screen-client .client-shortlist-card p,
.client-portal-mode #screen-client .client-hiring-journey-head > em {
  font-size: var(--client-copy-size);
  line-height: 1.55;
}

.client-portal-mode #screen-client .client-home-welcome > div:first-child > span,
.client-portal-mode #screen-client .client-action-inbox-head span,
.client-portal-mode #screen-client .client-command-summary-head > div > span,
.client-portal-mode #screen-client .client-home-metrics span,
.client-portal-mode #screen-client .client-premium-panel-head span,
.client-portal-mode #screen-client .client-hiring-journey-head > div > span {
  font-size: var(--client-label-size);
  line-height: 1.35;
}

.client-portal-mode #screen-client .client-action-copy strong,
.client-portal-mode #screen-client .client-home-activity-feed strong,
.client-portal-mode #screen-client .client-hiring-stage > strong,
.client-portal-mode #screen-client .client-shortlist-card li {
  font-size: var(--client-meta-size);
  line-height: 1.45;
}

.client-portal-mode #screen-client .client-action-copy small,
.client-portal-mode #screen-client .client-home-metrics em,
.client-portal-mode #screen-client .client-home-activity-feed time,
.client-portal-mode #screen-client .client-hiring-stage > em,
.client-portal-mode #screen-client .client-premium-empty span {
  font-size: 12px;
  line-height: 1.45;
}

.client-portal-mode #screen-client button:focus-visible,
.client-portal-mode #screen-client a:focus-visible,
.client-portal-mode #screen-client summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* Client experience layer: calm hierarchy, human ownership and visible trust. */
.client-portal-mode #screen-client .client-premium-masthead {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  align-items: center;
  min-height: 230px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 88% 18%, rgba(184, 160, 106, .2), transparent 29%),
    linear-gradient(132deg, rgba(184, 160, 106, .14), transparent 54%),
    var(--surface2);
}

.client-portal-mode #screen-client .client-premium-masthead::after {
  position: absolute;
  z-index: -1;
  right: -76px;
  bottom: -138px;
  width: 310px;
  height: 310px;
  border: 1px solid rgba(184, 160, 106, .2);
  border-radius: 50%;
  content: "";
}

.client-portal-mode #screen-client .client-premium-masthead h1 {
  max-width: 850px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.02;
}

.client-portal-mode #screen-client .client-premium-masthead p {
  max-width: 790px;
  margin-top: .8rem;
  color: var(--ivory-mid);
}

.client-service-reassurance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .045);
}

.client-service-promise {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: .8rem;
  align-items: start;
  min-height: 122px;
  padding: 1.1rem 1.15rem;
  background: var(--surface2);
}

.client-service-promise > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(184, 160, 106, .38);
  border-radius: 50%;
  color: var(--gold);
  font: 600 10px/1 var(--fm);
}

.client-service-promise strong,
.client-service-promise em {
  display: block;
}

.client-service-promise strong {
  color: var(--ivory);
  font-size: 14px;
  line-height: 1.35;
}

.client-service-promise em {
  margin-top: .35rem;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.5;
}

.client-service-contact {
  grid-template-columns: 34px minmax(0, 1fr);
}

.client-service-contact button {
  grid-column: 2;
  justify-self: start;
  padding: 0 0 .2rem;
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  color: var(--gold);
  cursor: pointer;
  font: 600 11px/1.3 var(--fm);
}

.client-service-contact button:hover {
  border-bottom-color: currentColor;
}

.client-portal-mode #screen-client .client-agreement-alert,
.client-portal-mode #screen-client .client-action-inbox,
.client-portal-mode #screen-client .client-command-summary,
.client-portal-mode #screen-client .client-hiring-journey,
.client-portal-mode #screen-client .client-premium-panel {
  border-radius: 12px;
}

.client-portal-mode #screen-client .client-action-inbox-head {
  padding: 1.35rem 1.5rem;
}

.client-portal-mode #screen-client .client-action-inbox-head strong {
  font-size: clamp(27px, 3vw, 36px);
}

.client-portal-mode #screen-client .client-action-primary {
  min-height: 154px;
  padding: 1.35rem 1.5rem;
  background: linear-gradient(90deg, rgba(184, 160, 106, .055), transparent 72%);
  transition: background .18s ease, transform .18s ease;
}

.client-portal-mode #screen-client .client-action-primary:hover {
  background: linear-gradient(90deg, rgba(184, 160, 106, .12), transparent 78%);
}

.client-portal-mode #screen-client .client-action-number {
  width: 38px;
  height: 38px;
  background: rgba(184, 160, 106, .08);
  font-size: 12px;
}

.client-portal-mode #screen-client .client-home-metrics {
  border-radius: 12px;
}

.client-portal-mode #screen-client .client-home-metrics button {
  min-height: 128px;
  transition: background .18s ease, transform .18s ease;
}

.client-portal-mode #screen-client .client-home-metrics button:hover {
  position: relative;
  z-index: 1;
  transform: translateY(-2px);
}

.client-portal-mode #screen-client .client-accountability-panel {
  gap: 1rem;
  margin-top: 1rem;
}

.client-portal-mode #screen-client .client-accountability-column {
  padding: 1.15rem;
  border-radius: 12px;
}

.client-portal-mode #screen-client .client-accountability-item {
  min-height: 88px;
  padding: .9rem 1rem;
  border-radius: 9px;
}

.client-portal-mode #screen-client .client-accountability-title {
  font-size: 11px;
}

.client-portal-mode #screen-client .cp-panel {
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .055);
}

.client-portal-mode #screen-client .cp-panel-head {
  padding: 1.4rem 1.5rem;
  background: linear-gradient(105deg, rgba(184, 160, 106, .08), transparent 56%);
}

.client-portal-mode #screen-client .cp-panel-title {
  color: var(--ivory);
  font-size: clamp(27px, 3vw, 36px);
  font-weight: 400;
}

.client-portal-mode #screen-client .cp-panel-note,
.client-portal-mode #screen-client .candidate-review-copy,
.client-portal-mode #screen-client .message-body {
  font-size: var(--client-copy-size);
  line-height: 1.6;
}

.client-portal-mode #screen-client .candidate-review-hero {
  margin: 1.25rem 1.5rem 0;
  padding: 1.25rem;
  border-radius: 12px;
  background:
    linear-gradient(130deg, rgba(184, 160, 106, .12), rgba(54, 82, 87, .07)),
    var(--surface);
}

.client-portal-mode #screen-client .candidate-review-title {
  font-size: clamp(25px, 2.8vw, 34px);
}

.client-portal-mode #screen-client .candidate-review-deadline {
  padding: .42rem .65rem;
  font-size: 10px;
  letter-spacing: .025em;
  text-transform: none;
}

.client-portal-mode #screen-client .candidate-card,
.client-portal-mode #screen-client .message-card,
.client-portal-mode #screen-client .conversation-status-card {
  border-radius: 10px;
}

.client-portal-mode #screen-client .message-card.from-verovian {
  border-left: 4px solid var(--gold-dim);
}

.client-portal-mode #screen-client .message-card.from-client {
  border-left: 4px solid color-mix(in srgb, var(--info-col, #4b8c96) 70%, var(--border));
}

.client-portal-mode #screen-client .message-form {
  padding: 1.35rem 1.5rem 1.5rem;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}

.client-portal-mode #screen-client .message-form textarea {
  min-height: 150px;
}

.client-appointment-panel {
  margin-top: 1rem;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--gold) 55%, var(--border));
  border-left: 5px solid var(--gold);
  border-radius: 6px;
  background: linear-gradient(115deg, rgba(184, 160, 106, .14), transparent 54%), var(--surface2);
  box-shadow: 0 16px 45px rgba(0, 0, 0, .08);
}

.client-appointment-panel.is-empty {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.35rem 1.5rem;
  border-left-color: var(--border-strong, var(--gold-dim));
}

.client-appointment-panel h2 {
  margin: .3rem 0 0;
  color: var(--ivory);
  font: 500 clamp(25px, 2.8vw, 36px)/1.08 var(--fd);
}

.client-appointment-panel.is-empty p {
  max-width: 720px;
  margin: .55rem 0 0;
  color: var(--muted);
  font-size: var(--client-copy-size, 15px);
  line-height: 1.55;
}

.client-appointment-eyebrow,
.client-next-appointment-time > span {
  color: var(--gold-dim);
  font: 600 var(--client-label-size, 12px)/1.3 var(--fm);
  letter-spacing: .11em;
  text-transform: uppercase;
}

.client-appointment-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.client-appointment-confirmed,
.client-appointment-state {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: .4rem .7rem;
  border: 1px solid var(--success-bdr);
  border-radius: 999px;
  background: var(--success-bg);
  color: var(--success-col);
  font: 600 12px/1 var(--fm);
}

.client-next-appointment {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.35rem 1.5rem 1.5rem;
}

.client-next-appointment-time time {
  display: block;
  margin-top: .45rem;
  color: var(--ivory);
  font: 500 clamp(21px, 2.6vw, 31px)/1.15 var(--fd);
}

.client-next-appointment-time p {
  margin: .45rem 0 0;
  color: var(--muted);
  font-size: var(--client-meta-size, 13px);
}

.client-next-appointment-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .65rem;
}

.client-appointment-join { min-height: 44px; }

.client-appointment-more {
  border-top: 1px solid var(--border);
}

.client-appointment-more > summary {
  padding: .9rem 1.5rem;
  color: var(--gold-dim);
  cursor: pointer;
  font-size: var(--client-meta-size, 13px);
  font-weight: 500;
}

.client-appointment-more[open] > summary {
  border-bottom: 1px solid var(--border);
}

.client-appointment-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-soft);
}

.client-appointment-list article:last-child { border-bottom: 0; }

.client-appointment-list strong {
  display: block;
  color: var(--ivory);
  font-size: 15px;
}

.client-appointment-list time,
.client-appointment-list span {
  display: block;
  margin-top: .25rem;
  color: var(--muted);
  font-size: var(--client-meta-size, 13px);
  line-height: 1.4;
}

.client-appointment-link {
  color: var(--gold);
  font-size: var(--client-meta-size, 13px);
  font-weight: 500;
  text-underline-offset: 3px;
}

@media (max-width: 760px) {
  .client-portal-mode #screen-client .client-home-welcome {
    padding: 1.25rem;
  }

  .client-service-reassurance {
    grid-template-columns: 1fr;
  }

  .client-service-promise {
    min-height: 0;
  }

  .client-portal-mode #screen-client .client-home-actions,
  .client-next-appointment-actions {
    width: 100%;
  }

  .client-portal-mode #screen-client .client-home-actions > *,
  .client-next-appointment-actions > * {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .client-portal-mode #screen-client .cp-section-tabs {
    scroll-padding-inline: .8rem;
    scroll-snap-type: x proximity;
  }

  .client-portal-mode #screen-client .cp-section-tab {
    min-height: 48px;
    scroll-snap-align: start;
  }

  .client-appointment-panel.is-empty,
  .client-next-appointment,
  .client-appointment-list article {
    grid-template-columns: 1fr;
  }

  .client-appointment-panel.is-empty,
  .client-appointment-heading,
  .client-next-appointment,
  .client-appointment-list article {
    padding-right: 1.1rem;
    padding-left: 1.1rem;
  }

  .client-appointment-heading {
    align-items: flex-start;
  }

  .client-appointment-confirmed {
    flex: 0 0 auto;
  }

  .client-hiring-journey-track {
    max-height: 360px;
    overflow-y: auto;
  }

  .client-portal-mode #screen-client .candidate-review-hero {
    margin-right: 1rem;
    margin-left: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .client-portal-mode #screen-client * {
    scroll-behavior: auto !important;
  }
}

.client-prospect-value,
.client-onboarding-panel {
  margin: 0 0 1.25rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(184, 160, 106, .12), rgba(255, 255, 255, .02));
}

.client-prospect-value {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
  gap: 2rem;
  align-items: center;
}

.client-prospect-value-copy > span,
.client-onboarding-head span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.client-prospect-value h2,
.client-onboarding-head h2 {
  margin: .45rem 0 .65rem;
  color: var(--ivory);
  font: 500 clamp(22px, 3vw, 31px) var(--fd);
}

.client-prospect-value p,
.client-onboarding-head p {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.65;
}

.client-prospect-value-steps { display: grid; gap: .7rem; }
.client-prospect-value-steps > div {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: .15rem .75rem;
  padding: .85rem;
  border: 1px solid var(--border-soft);
  border-radius: 7px;
  background: var(--surface);
}
.client-prospect-value-steps span {
  grid-row: 1 / 3;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: #18130b;
  font-weight: 700;
}
.client-prospect-value-steps strong { color: var(--ivory); font-size: 14px; }
.client-prospect-value-steps em { color: var(--muted); font-size: 12px; font-style: normal; line-height: 1.45; }

.client-onboarding-head {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
}
.client-onboarding-head > strong { color: var(--gold); font: 500 30px var(--fd); }
.client-onboarding-checks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .65rem;
  margin: .5rem 0 1.25rem;
}
.client-onboarding-checks > div {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-height: 48px;
  padding: .7rem;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  color: var(--muted);
}
.client-onboarding-checks span {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
}
.client-onboarding-checks .complete { color: var(--ivory); }
.client-onboarding-checks .complete span { border-color: var(--gold); background: var(--gold); color: #18130b; }
.client-onboarding-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: .75rem;
  align-items: end;
  padding-top: 1rem;
  border-top: 1px solid var(--border-soft);
}
.client-onboarding-contact label { display: block; margin-bottom: .35rem; color: var(--muted); font-size: 11px; }
.client-onboarding-contact input { width: 100%; min-height: 44px; }
.client-onboarding-contact [role="status"] { grid-column: 1 / -1; color: var(--danger); font-size: 12px; }
.client-onboarding-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; }

@media (max-width: 760px) {
  .client-prospect-value { grid-template-columns: 1fr; gap: 1.25rem; }
  .client-onboarding-head { align-items: flex-start; }
  .client-onboarding-checks,
  .client-onboarding-contact { grid-template-columns: 1fr; }
  .client-onboarding-contact button,
  .client-onboarding-actions > *,
  .client-prospect-value .btn-o { width: 100%; min-height: 48px; justify-content: center; }
  .client-onboarding-contact [role="status"] { grid-column: 1; }
  .agreement-room-progress { overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x proximity; }
  .agreement-room-step { min-width: 112px; min-height: 48px; scroll-snap-align: start; }
  .agreement-room-actions,
  .agreement-room-actions > div,
  .sign-acts,
  .sign-btns { align-items: stretch; flex-direction: column; }
  .agreement-room-actions button,
  .agreement-room-actions a,
  .sign-btns button { width: 100%; min-height: 48px; justify-content: center; }
  .sig-box { min-height: 170px; touch-action: none; }
  .client-password-required .modal { width: min(100%, 560px); max-height: calc(100dvh - 1rem); overflow-y: auto; }
  .client-password-required .mb form > div:last-child { align-items: stretch !important; flex-direction: column-reverse; }
  .client-password-required .mb form > div:last-child button { width: 100%; min-height: 48px; }
}
