/* The client review is one screen with one scrolling content area. */
html.client-open, body.client-open { overflow: hidden; }
.client-shell { height: 100vh; height: 100dvh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; background: #f3f0e8; }
.client-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; padding: 12px max(20px, calc((100vw - 800px) / 2)); background: #102b3c; color: #fff; }
.client-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.client-identity .brand { padding: 0; }
.client-identity .brand-logo-window { width: 184px; height: 29px; }
.client-identity .brand-wordmark { width: 198px; top: -18px; left: -7px; }
.client-identity .brand-subline { display: none; }
.client-identity .beta-badge { flex: none; color: #d8eaef; border-color: #597b8b; background: #24495a; }
.client-header-actions button { min-height: 44px; padding: 0 14px; border: 1px solid #6f91a1; border-radius: 10px; background: transparent; color: #fff; font-size: 14px; font-weight: 750; }
.client-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.client-demo { display: flex; align-items: center; gap: 8px; width: min(740px, calc(100% - 36px)); margin: 20px auto 0; padding: 11px 15px; border: 1px solid #e9dcb6; border-radius: 10px; background: #fff9ec; color: #745b36; font-size: 14px; line-height: 1.4; }
.client-demo svg { width: 18px; height: 18px; flex: none; }
.client-content { width: min(740px, calc(100% - 36px)); margin: 25px auto 0; }
.client-review-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.client-review-heading h1, .client-content > h1 { font-family: Manrope, sans-serif; font-size: clamp(26px, 3vw, 34px); line-height: 1.22; letter-spacing: -.05em; color: #102b3c; }
.client-review-heading p, .client-lead { margin-top: 5px; color: #58717c; font-size: 16px; }
.client-text-link { display: inline-flex; align-items: center; gap: 5px; flex: none; min-height: 44px; padding: 0 5px; border: 0; background: transparent; color: #245368; font-size: 15px; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.client-text-link svg { width: 16px; height: 16px; }
.client-post { overflow: hidden; padding: 24px; border: 1px solid #dce6e8; border-radius: 18px; background: #fff; box-shadow: 0 8px 32px rgba(16,43,60,.06); }
.client-post h2 { margin-bottom: 20px; font-family: Manrope, sans-serif; font-size: clamp(22px, 2.5vw, 28px); line-height: 1.3; letter-spacing: -.035em; color: #102b3c; }
.client-media { display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid #d9e4e6; border-radius: 12px; background: #e9eff0; }
.client-media img, .client-media video { display: block; width: auto; max-width: 100%; height: auto; max-height: none; margin: auto; object-fit: contain; }
.client-media video { width: 100%; }
.client-media .cover-fallback { width: 100%; min-height: 220px; display: grid; place-items: center; }
.client-carousel { margin-top: 18px; }
.client-image-count { display: block; margin-bottom: 10px; color: #315669; font-size: 17px; font-weight: 800; text-align: center; }
.client-carousel-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.client-carousel-buttons button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 56px; padding: 10px; border: 1px solid #bed1d8; border-radius: 11px; background: #f8fbfb; color: #173e50; font-size: 17px; font-weight: 800; }
.client-carousel-buttons button:hover { background: #edf5f6; }
.client-carousel-buttons button svg { width: 20px; height: 20px; flex: none; }
.client-carousel-buttons button:first-child svg { transform: rotate(180deg); }
.client-caption { margin-top: 26px; }
.client-caption h3, .client-feedback h3 { margin-bottom: 10px; color: #102b3c; font-size: 21px; font-weight: 800; }
.client-caption p { white-space: pre-wrap; overflow-wrap: anywhere; color: #284b5d; font-size: 18px; line-height: 1.65; }
.client-feedback { margin-top: 30px; padding-top: 25px; border-top: 1px solid #dce6e8; }
.client-feedback > p { margin-bottom: 18px; color: #58717c; font-size: 16px; line-height: 1.5; }
.client-feedback label { display: block; margin-bottom: 10px; color: #244e62; font-size: 18px; font-weight: 800; }
.client-feedback textarea { display: block; width: 100%; min-height: 190px; padding: 16px; border: 1px solid #b6cdd3; border-radius: 12px; background: #fff; color: #102b3c; font-size: 18px; line-height: 1.5; resize: vertical; }
.client-feedback textarea:focus { outline: 3px solid #cfe2e8; border-color: #517f95; }
.client-feedback details { margin-top: 18px; border: 1px solid #dce6e8; border-radius: 12px; }
.client-feedback summary { min-height: 56px; padding: 15px; color: #245368; font-size: 16px; font-weight: 750; cursor: pointer; }
.client-feedback details label { margin: 4px 15px 10px; font-size: 16px; }
.client-feedback details textarea { width: calc(100% - 30px); min-height: 140px; margin: 0 15px 15px; }
.client-check .review-note { padding: 15px 0; border-top: 1px solid #dce6e8; }
.client-check .review-note strong { display: block; margin-bottom: 7px; color: #244e62; font-size: 15px; }
.client-check .review-note p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 18px; line-height: 1.55; }
.client-downloads { margin-top: 26px; }
.client-secondary { width: min(740px, calc(100% - 36px)); margin: 22px auto 36px; }
.client-secondary button { min-height: 44px; padding: 0; border: 0; background: transparent; color: #315f74; font-size: 16px; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.client-actions { z-index: 2; padding: 13px max(18px, calc((100vw - 740px) / 2)) calc(13px + env(safe-area-inset-bottom)); border-top: 1px solid #dce6e8; background: #fff; box-shadow: 0 -5px 20px rgba(16,43,60,.06); }
.client-actions > p { margin-bottom: 11px; color: #496674; font-size: 14px; line-height: 1.35; text-align: center; }
.client-decision-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.client-large-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 12px 17px; border: 1px solid #102b3c; border-radius: 12px; font-size: 18px; font-weight: 800; line-height: 1.2; text-align: center; cursor: pointer; }
.client-large-button.primary { background: #102b3c; color: #fff; }
.client-large-button.secondary { background: #fff; color: #102b3c; }
.client-large-button:focus-visible, .client-carousel-buttons button:focus-visible, .client-text-link:focus-visible { outline: 3px solid #80adbd; outline-offset: 2px; }
.client-large-button svg { width: 20px; height: 20px; }
.client-actions > .client-large-button { width: calc(50% - 6px); }
.client-actions > .client-large-button + .client-large-button { margin-left: 12px; }
.client-resume { display: block; min-height: 35px; margin: -4px auto 8px; border: 0; background: transparent; color: #245368; font-size: 15px; font-weight: 750; text-decoration: underline; }
.client-result, .client-empty { padding: 55px 20px; text-align: center; }
.client-result-icon { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 50%; background: #dcebef; color: #245368; }
.client-result-icon svg { width: 30px; height: 30px; }
.client-result p, .client-empty p { max-width: 520px; margin: 12px auto 24px; color: #496674; font-size: 18px; line-height: 1.6; }
.client-result .client-large-button { width: min(300px, 100%); }
.client-approved-grid { display: grid; gap: 20px; margin-top: 22px; }
.client-approved-grid .card { cursor: pointer; }

/* Media keeps its own proportions on both owner cards and opened reviews. */
.card-cover { height: auto; min-height: 0; display: flex; align-items: center; justify-content: center; background: #e9eff0; }
.card-cover img, .card-cover video { display: block; width: 100%; height: auto; object-fit: contain; }
.card-cover .cover-fallback { min-height: 180px; }
.media-stage { display: flex; align-items: center; justify-content: center; height: auto; max-height: none; background: #e9eff0; }
.media-stage img, .media-stage video { display: block; width: auto; max-width: 100%; height: auto; max-height: none; object-fit: contain; }
.media-stage video { width: 100%; }

@media (max-width: 600px) {
  .client-header { min-height: 62px; padding: 10px 15px; }
  .client-identity .brand-logo-window { width: 155px; height: 25px; }
  .client-identity .brand-wordmark { width: 168px; top: -16px; left: -6px; }
  .client-identity { gap: 7px; }
  .client-header-actions button { padding: 0 8px; font-size: 12px; }
  .client-demo { width: calc(100% - 28px); margin-top: 12px; padding: 10px 12px; font-size: 13px; }
  .client-content, .client-secondary { width: calc(100% - 28px); }
  .client-content { margin-top: 19px; }
  .client-review-heading { align-items: flex-start; margin-bottom: 14px; }
  .client-review-heading h1 { font-size: 25px; }
  .client-review-heading p { font-size: 14px; }
  .client-review-heading .client-text-link { font-size: 13px; }
  .client-post { padding: 15px; border-radius: 14px; }
  .client-post h2 { font-size: 22px; margin-bottom: 14px; }
  .client-caption { margin-top: 20px; }
  .client-caption h3, .client-feedback h3 { font-size: 19px; }
  .client-caption p { font-size: 17px; }
  .client-carousel-buttons button { font-size: 15px; gap: 5px; }
  .client-actions { padding: 11px 14px calc(11px + env(safe-area-inset-bottom)); }
  .client-actions > p { font-size: 13px; }
  .client-decision-buttons { gap: 8px; }
  .client-large-button { min-height: 58px; padding: 10px 7px; font-size: 18px; }
  .client-actions > .client-large-button { width: calc(50% - 4px); }
  .client-actions > .client-large-button + .client-large-button { margin-left: 8px; }
}
@media (max-width: 380px) {
  .client-identity .brand-logo-window { width: 143px; }
  .client-identity .brand-wordmark { width: 155px; top: -15px; }
  .client-identity .beta-badge { font-size: 10px; padding: 3px 6px; }
  .client-carousel-buttons button { font-size: 14px; }
}
