@import url("https://fonts.googleapis.com/css2?family=Cormorant:wght@400;500;600&family=Montserrat:wght@400;500;600&display=swap");

.family-portal-screen {
  --portal-paper: #f7f3ed;
  --portal-surface: #fffaf4;
  --portal-copper: #c3937c;
  --portal-copper-dark: #9d6f5d;
  --portal-ink: #3d3733;
  --portal-muted: #77736f;
  --portal-sage: #6f8f86;
  --portal-line: rgba(195, 147, 124, 0.3);
  --portal-shadow: 0 26px 70px rgba(82, 58, 47, 0.1);
  min-height: 100vh;
  padding: 0 0 80px;
  background: #f9f6f0;
  color: var(--portal-ink);
  font-family: "Montserrat", system-ui, sans-serif;
}

.family-portal-screen .portal-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  max-width: none;
  margin: 0;
  padding: 20px clamp(22px, 5vw, 72px);
  border-bottom: 1px solid rgba(195, 147, 124, 0.18);
  background: rgba(247, 243, 237, 0.94);
  backdrop-filter: blur(18px);
}

.family-portal-screen .portal-topbar .secondary-button {
  justify-self: start;
  min-height: 42px;
  border-color: var(--portal-line);
  border-radius: 999px;
  background: transparent;
  color: var(--portal-copper-dark);
}

.family-portal-screen .portal-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.family-portal-screen .portal-topbar-actions .portal-manage-button {
  display: grid;
  place-items: center;
  width: 42px;
  min-width: 42px;
  padding: 0;
}

@media (max-width: 720px) {
  .family-portal-screen .portal-topbar-actions { grid-column: 1; grid-row: 2; }
}

@media (max-width: 430px) {
  .family-portal-screen .portal-topbar-actions { grid-column: 1; grid-row: 2; width: 100%; }
  .family-portal-screen .portal-topbar-actions .secondary-button:first-child { flex: 1; }
  .family-portal-screen .portal-topbar-actions .portal-manage-button { flex: 0 0 42px; }
}

.portal-brand {
  display: grid;
  justify-items: center;
  gap: 1px;
  line-height: 1;
}

.portal-brand strong {
  color: var(--portal-copper);
  font-family: "Cormorant", Georgia, serif;
  font-size: 1.85rem;
  font-weight: 500;
  text-transform: uppercase;
}

.portal-brand span {
  color: var(--portal-muted);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.family-portal-screen .quiet-pill {
  justify-self: end;
  border: 1px solid var(--portal-line);
  background: rgba(255, 250, 244, 0.74);
  color: var(--portal-sage);
}

.family-portal-screen .family-portal {
  max-width: none;
  margin: 0;
}

.family-portal-screen .portal-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(470px, 0.95fr) minmax(500px, 1.05fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
  width: min(1320px, calc(100% - 44px));
  min-height: 650px;
  margin: 0 auto;
  padding: 68px 0 80px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.family-portal-screen .portal-hero.has-photo {
  --portal-hero-scene: url("./assets/portal-stille-natuur.png");
  grid-template-columns: minmax(0, 620px) minmax(0, 560px);
  justify-content: center;
  width: 100%;
  min-height: 680px;
  padding: 68px clamp(24px, 4vw, 72px) 88px;
  background-color: #f9f6f0;
  background-image:
    linear-gradient(180deg, transparent 68%, #f9f6f0 100%),
    linear-gradient(90deg, rgba(249, 246, 240, 0.94), rgba(249, 246, 240, 0.72) 38%, rgba(249, 246, 240, 0.08) 72%),
    var(--portal-hero-scene);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.family-portal-screen .portal-hero.has-photo.background-sky {
  --portal-hero-scene: url("./assets/portal-hemellicht.png");
}

.family-portal-screen .portal-hero.has-photo.background-evening {
  --portal-hero-scene: url("./assets/portal-avondlucht.png");
}

.family-portal-screen .portal-hero.has-photo.background-flowers {
  --portal-hero-scene: url("./assets/portal-bloementuin.jpg");
}

.family-portal-screen .portal-hero.has-photo.background-white-flowers {
  --portal-hero-scene: url("./assets/portal-witte-bloemen.png");
}

.family-portal-screen .portal-hero.has-photo.background-water {
  --portal-hero-scene: url("./assets/portal-waterkant.jpg");
}

.family-portal-screen .portal-hero.has-photo.background-none {
  background: transparent;
}

.family-portal-screen .portal-hero.has-photo::before,
.family-portal-screen .portal-hero.has-photo::after,
.family-portal-screen .portal-hero.has-photo .portal-hero-art::before {
  display: none;
}

.family-portal-screen .portal-hero::before,
.family-portal-screen .portal-hero::after {
  position: absolute;
  z-index: -1;
  width: 118px;
  height: 118px;
  content: "";
  pointer-events: none;
}

.family-portal-screen .portal-hero::before {
  top: 38px;
  left: -18px;
  border-top: 1px solid rgba(157, 111, 93, 0.4);
  border-left: 1px solid rgba(157, 111, 93, 0.4);
}

.family-portal-screen .portal-hero::after {
  right: -18px;
  bottom: 35px;
  border-right: 1px solid rgba(111, 143, 134, 0.48);
  border-bottom: 1px solid rgba(111, 143, 134, 0.48);
}

.family-portal-screen .portal-hero.no-photo {
  grid-template-columns: minmax(0, 760px);
  min-height: auto;
  padding-bottom: 22px;
}

.family-portal-screen .portal-hero.no-photo .portal-hero-copy {
  max-width: 760px;
}

.family-portal-screen .portal-hero.no-photo + .portal-status-section {
  padding-top: 34px;
}

.portal-hero-copy {
  position: relative;
  z-index: 3;
  max-width: 620px;
}

.family-portal-screen .eyebrow {
  margin: 0 0 16px;
  color: var(--portal-muted);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.55;
  text-transform: uppercase;
}

.family-portal-screen .portal-hero h1 {
  max-width: 660px;
  margin: 0;
  color: var(--portal-copper);
  font-family: "Cormorant", Georgia, serif;
  font-size: clamp(3rem, 4.3vw, 5.2rem);
  font-weight: 400;
  line-height: 0.9;
  text-transform: uppercase;
}

.family-portal-screen .portal-hero-copy > p:not(.eyebrow) {
  max-width: 560px;
  margin: 24px 0 0;
  color: var(--portal-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.portal-hero-details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--portal-line);
  color: var(--portal-copper-dark);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
}

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

.portal-photo-button,
.portal-photo-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid var(--portal-line);
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.76);
  color: var(--portal-copper-dark);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.portal-photo-button:hover,
.portal-photo-remove:hover {
  border-color: var(--portal-copper);
  background: var(--portal-surface);
}

.portal-photo-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.portal-photo-button .icon,
.portal-photo-remove .icon {
  width: 17px;
  height: 17px;
}

.portal-photo-error {
  margin: 10px 0 0;
  color: #9f4c45;
  font-size: 0.82rem;
}

.portal-hero-art {
  position: relative;
  justify-self: center;
  width: min(100%, 560px);
  height: 520px;
  min-height: 520px;
  isolation: isolate;
}

.portal-hero-art::before {
  position: absolute;
  inset: 0;
  border-radius: 46% 0 0 0;
  background: url("./assets/portal-stille-natuur.png") center / cover no-repeat;
  content: "";
}

.portal-hero-art.background-sky::before {
  background-image: url("./assets/portal-hemellicht.png");
}

.portal-hero-art.background-evening::before {
  background-image: url("./assets/portal-avondlucht.png");
}

.portal-hero-art.background-flowers::before {
  background-image: url("./assets/portal-bloementuin.jpg");
}

.portal-hero-art.background-white-flowers::before {
  background-image: url("./assets/portal-witte-bloemen.png");
}

.portal-hero-art.background-water::before {
  background-image: url("./assets/portal-waterkant.jpg");
}

.portal-hero-art .portal-portrait {
  position: absolute;
  z-index: 1;
  top: 6%;
  left: 19%;
  width: 62%;
  height: 72%;
  padding: 8px;
  overflow: hidden;
  border-radius: 48% 48% 2px 2px / 28% 28% 2px 2px;
  background: var(--portal-surface);
  box-shadow: 0 14px 36px rgba(39, 33, 28, 0.22);
}

.portal-portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: var(--portal-photo-x, 50%) var(--portal-photo-y, 32%);
  transform: scale(var(--portal-photo-zoom, 1));
  border-radius: inherit;
  will-change: transform, object-position;
}

.portal-portrait-caption {
  position: absolute;
  z-index: 2;
  right: 5%;
  bottom: 4%;
  left: 5%;
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  background: rgba(255, 250, 244, 0.94);
  color: var(--portal-copper-dark);
  text-align: center;
}

.portal-portrait-caption span {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portal-portrait-caption strong {
  font-family: "Cormorant", Georgia, serif;
  font-size: clamp(1.45rem, 2.4vw, 2.25rem);
  font-weight: 500;
  line-height: 1.05;
}

.portal-hero-art.frame-soft .portal-portrait {
  top: 2%;
  left: 2%;
  width: 96%;
  height: 96%;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -webkit-mask-image: radial-gradient(ellipse 43% 53% at center, #000 var(--portal-mask-core), rgba(0, 0, 0, 0.8) var(--portal-mask-mid), transparent var(--portal-mask-end));
  mask-image: radial-gradient(ellipse 43% 53% at center, #000 var(--portal-mask-core), rgba(0, 0, 0, 0.8) var(--portal-mask-mid), transparent var(--portal-mask-end));
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.portal-hero-art.frame-soft.shape-round .portal-portrait {
  -webkit-mask-image: radial-gradient(circle closest-side at center, #000 var(--portal-mask-core), rgba(0, 0, 0, 0.8) var(--portal-mask-mid), transparent var(--portal-mask-end));
  mask-image: radial-gradient(circle closest-side at center, #000 var(--portal-mask-core), rgba(0, 0, 0, 0.8) var(--portal-mask-mid), transparent var(--portal-mask-end));
}

.portal-hero-art.frame-soft.shape-wide .portal-portrait {
  -webkit-mask-image: radial-gradient(ellipse 53% 38% at center, #000 var(--portal-mask-core), rgba(0, 0, 0, 0.8) var(--portal-mask-mid), transparent var(--portal-mask-end));
  mask-image: radial-gradient(ellipse 53% 38% at center, #000 var(--portal-mask-core), rgba(0, 0, 0, 0.8) var(--portal-mask-mid), transparent var(--portal-mask-end));
}

.portal-hero-art.frame-soft .portal-portrait-caption {
  display: none;
}

.portal-hero-art.frame-line::before,
.portal-hero-art.frame-line .portal-portrait-caption {
  display: none;
}

.portal-hero-art.frame-line .portal-portrait {
  top: calc((100% - var(--portal-line-height, 90%)) / 2);
  left: calc((100% - var(--portal-line-width, 80%)) / 2);
  width: var(--portal-line-width, 80%);
  height: var(--portal-line-height, 90%);
  padding: 10px;
  border: var(--portal-line-thickness, 2px) solid var(--portal-line-color, #986f5e);
  border-radius: 0;
  background: var(--portal-surface);
  box-shadow: none;
}

.portal-hero-art.frame-line .portal-portrait img {
  border-radius: 0;
}

.portal-photo-settings-preview.portal-hero-art {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 3;
}

.portal-photo-settings-preview .portal-portrait {
  padding: 4px;
}

.portal-photo-settings-preview [data-portal-photo-drag] {
  cursor: grab;
  touch-action: none;
}

.portal-photo-settings-preview [data-portal-photo-drag].is-dragging {
  cursor: grabbing;
}

.portal-photo-settings-preview [data-portal-photo-drag]:focus-visible {
  outline: 3px solid var(--portal-teal);
  outline-offset: 3px;
}

.portal-photo-settings-preview [data-portal-photo-drag] img {
  pointer-events: none;
  user-select: none;
}

.portal-photo-drag-hint {
  position: absolute;
  z-index: 4;
  top: 10px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  background: rgba(31, 49, 49, 0.78);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 120ms ease;
}

.portal-photo-drag-hint .icon {
  width: 16px;
  height: 16px;
}

.portal-photo-settings-preview:has([data-portal-photo-drag].is-dragging) .portal-photo-drag-hint {
  opacity: 0;
}

.portal-photo-settings-preview .portal-portrait-caption {
  padding: 5px 8px;
  pointer-events: none;
}

.portal-photo-settings-preview .portal-portrait-caption span {
  font-size: 0.48rem;
}

.portal-photo-settings-preview .portal-portrait-caption strong {
  font-size: 1.2rem;
}

.portal-status-section {
  position: relative;
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 48px;
  align-items: center;
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: 74px 0 48px;
  border-top: 1px solid rgba(195, 147, 124, 0.24);
}

.portal-status-section::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: 84px;
  height: 2px;
  background: var(--portal-sage);
  content: "";
}

.portal-status-copy h2,
.family-portal-screen .portal-section-header h2,
.family-portal-screen .portal-music-header h2,
.family-portal-screen .portal-contact-card h2,
.family-portal-screen .portal-video-service h2 {
  margin: 0;
  color: var(--portal-copper);
  font-family: "Cormorant", Georgia, serif;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.portal-status-copy h2 {
  font-size: clamp(2.7rem, 4.5vw, 4.6rem);
}

.portal-status-copy > p:last-child {
  margin: 20px 0 0;
  color: var(--portal-muted);
  line-height: 1.75;
}

.portal-status-card {
  padding: 28px;
  border: 1px solid var(--portal-line);
  background: rgba(255, 250, 244, 0.8);
  box-shadow: var(--portal-shadow);
}

.portal-status-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--portal-line);
}

.portal-status-header > div {
  display: grid;
  gap: 3px;
}

.portal-status-header span,
.portal-status-grid span {
  color: var(--portal-muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-status-header strong {
  color: var(--portal-copper);
  font-family: "Cormorant", Georgia, serif;
  font-size: clamp(2.1rem, 3vw, 3.2rem);
  font-weight: 400;
  line-height: 1;
}

.portal-secure-pill {
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid var(--portal-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
}

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

.portal-status-grid article {
  display: grid;
  align-content: space-between;
  gap: 11px;
  min-height: 140px;
  padding: 17px;
  border: 1px solid var(--portal-line);
  background: rgba(255, 255, 255, 0.5);
}

.portal-status-grid strong {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
}

.portal-status-grid progress {
  width: 100%;
  height: 7px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: rgba(195, 147, 124, 0.16);
}

.portal-status-grid progress::-webkit-progress-bar {
  background: rgba(195, 147, 124, 0.16);
}

.portal-status-grid progress::-webkit-progress-value {
  background: var(--portal-copper);
}

.family-portal-screen .portal-workspace-grid {
  grid-template-columns: 1.08fr 0.92fr;
  gap: 18px;
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: 34px 0;
}

.family-portal-screen .portal-progress-card,
.family-portal-screen .portal-checklist-card,
.family-portal-screen .portal-documents-card,
.family-portal-screen .portal-upload-card,
.family-portal-screen .portal-contact-card,
.family-portal-screen .portal-insurance-card,
.family-portal-screen .portal-signature-card,
.family-portal-screen .portal-music-card,
.family-portal-screen .portal-video-service {
  border: 1px solid var(--portal-line);
  border-radius: 4px;
  background: rgba(255, 250, 244, 0.78);
  box-shadow: var(--portal-shadow);
}

.family-portal-screen .portal-upload-card {
  background-color: #fffaf4;
  background-position: center;
  background-size: cover;
}

.family-portal-screen .portal-upload-card.background-nature {
  background-image: linear-gradient(rgba(255, 250, 244, 0.68), rgba(255, 250, 244, 0.8)), url("./assets/portal-stille-natuur.png");
}

.family-portal-screen .portal-upload-card.background-sky {
  background-image: linear-gradient(rgba(255, 250, 244, 0.68), rgba(255, 250, 244, 0.8)), url("./assets/portal-hemellicht.png");
}

.family-portal-screen .portal-upload-card.background-evening {
  background-image: linear-gradient(rgba(255, 250, 244, 0.68), rgba(255, 250, 244, 0.8)), url("./assets/portal-avondlucht.png");
}

.family-portal-screen .portal-upload-card.background-flowers {
  background-image: linear-gradient(rgba(255, 250, 244, 0.68), rgba(255, 250, 244, 0.8)), url("./assets/portal-bloementuin.jpg");
}

.family-portal-screen .portal-upload-card.background-white-flowers {
  background-image: linear-gradient(rgba(255, 250, 244, 0.68), rgba(255, 250, 244, 0.8)), url("./assets/portal-witte-bloemen.png");
}

.family-portal-screen .portal-upload-card.background-water {
  background-image: linear-gradient(rgba(255, 250, 244, 0.68), rgba(255, 250, 244, 0.8)), url("./assets/portal-waterkant.jpg");
}

.family-portal-screen .portal-upload-card:not(.background-none) .portal-document-dropzone {
  border-color: rgba(157, 111, 93, 0.6);
  background: rgba(255, 250, 244, 0.86);
}

.family-portal-screen .portal-upload-card:not(.background-none) .portal-document-dropzone.is-dragging {
  background: rgba(239, 245, 241, 0.94);
}

.family-portal-screen .portal-progress-card,
.family-portal-screen .portal-documents-card {
  grid-column: auto;
}

.family-portal-screen .portal-contact-card,
.family-portal-screen .portal-insurance-card,
.family-portal-screen .portal-signature-card,
.family-portal-screen .portal-music-card {
  grid-column: 1 / -1;
}

.family-portal-screen .portal-progress-card,
.family-portal-screen .portal-checklist-card,
.family-portal-screen .portal-documents-card,
.family-portal-screen .portal-upload-card,
.family-portal-screen .portal-contact-card {
  padding: clamp(22px, 3vw, 38px);
}

.family-portal-screen .portal-insurance-card,
.family-portal-screen .portal-signature-card,
.family-portal-screen .portal-music-card,
.family-portal-screen .portal-video-service {
  padding: clamp(24px, 4vw, 44px);
}

.family-portal-screen .portal-progress-row,
.family-portal-screen .portal-document-row,
.family-portal-screen .portal-checklist-list label,
.family-portal-screen .portal-music-row,
.family-portal-screen .portal-insurance-row,
.family-portal-screen .portal-video-photo-row {
  border-color: var(--portal-line);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.58);
}

.family-portal-screen .portal-progress-row > span {
  background: rgba(195, 147, 124, 0.24);
}

.family-portal-screen .portal-progress-row.done > span {
  background: var(--portal-sage);
}

.family-portal-screen .portal-progress-row.current > span {
  background: var(--portal-copper);
  box-shadow: 0 0 0 4px rgba(195, 147, 124, 0.14);
}

.family-portal-screen .portal-progress-row strong,
.family-portal-screen .portal-document-row strong,
.family-portal-screen .portal-checklist-list span,
.family-portal-screen .portal-music-row strong,
.family-portal-screen .portal-insurance-row strong {
  color: var(--portal-ink);
}

.family-portal-screen .portal-progress-row small,
.family-portal-screen .portal-document-row small,
.family-portal-screen .portal-music-row small,
.family-portal-screen .portal-insurance-row small,
.family-portal-screen .portal-section-header p,
.family-portal-screen .portal-music-header p,
.family-portal-screen .portal-contact-card p {
  color: var(--portal-muted);
}

.family-portal-screen .portal-checklist-list input,
.family-portal-screen .portal-signature-check input,
.family-portal-screen .portal-video-toggle input {
  accent-color: var(--portal-copper);
}

.family-portal-screen .portal-document-row > span,
.family-portal-screen .portal-music-header > span,
.family-portal-screen .portal-section-header > span,
.family-portal-screen .portal-music-row em,
.family-portal-screen .portal-insurance-row em,
.family-portal-screen .video-credit-pill,
.family-portal-screen .portal-video-status {
  border: 1px solid var(--portal-line);
  background: rgba(195, 147, 124, 0.1);
  color: var(--portal-copper-dark);
}

.family-portal-screen .portal-document-dropzone,
.family-portal-screen .portal-ai-dropzone,
.family-portal-screen .portal-music-dropzone,
.family-portal-screen .portal-video-dropzone {
  border-color: rgba(195, 147, 124, 0.62);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.42);
}

.family-portal-screen .portal-document-dropzone strong,
.family-portal-screen .portal-ai-dropzone strong,
.family-portal-screen .portal-music-dropzone strong {
  color: var(--portal-copper-dark);
  font-family: "Cormorant", Georgia, serif;
  font-size: 1.75rem;
  font-weight: 500;
  text-transform: uppercase;
}

.family-portal-screen .portal-document-dropzone.is-dragging,
.family-portal-screen .portal-ai-dropzone.is-dragging,
.family-portal-screen .portal-video-dropzone.is-dragging {
  border-color: var(--portal-copper);
  background: rgba(195, 147, 124, 0.12);
}

.family-portal-screen .portal-signature-card.is-signed {
  border-color: rgba(111, 143, 134, 0.45);
  background: rgba(239, 245, 241, 0.9);
}

.family-portal-screen .portal-signed-state {
  background: rgba(111, 143, 134, 0.12);
}

.family-portal-screen .portal-signed-state strong {
  color: #496b62;
}

.family-portal-screen .portal-signature-form input,
.family-portal-screen .portal-music-form input,
.family-portal-screen .portal-music-form select {
  border-color: var(--portal-line);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--portal-ink);
}

.family-portal-screen .primary-button,
.family-portal-screen .portal-signature-form button {
  border-color: var(--portal-copper);
  background: var(--portal-copper);
  color: #fff;
}

.family-portal-screen .primary-button:hover,
.family-portal-screen .portal-signature-form button:hover {
  border-color: var(--portal-copper-dark);
  background: var(--portal-copper-dark);
}

.family-portal-screen .portal-video-service {
  width: min(1180px, calc(100% - 44px));
  margin: 18px auto 0;
}

.family-portal-screen .portal-video-variants {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
  margin: 2px 0;
  padding: 0;
  border: 1px solid var(--portal-line);
  border-radius: 4px;
}

.family-portal-screen .portal-video-variants legend {
  padding: 0 0 10px;
  color: var(--portal-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.family-portal-screen .portal-video-variant {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  min-width: 0;
  padding: 16px 18px;
  background: rgba(255, 250, 244, 0.6);
}

.family-portal-screen .portal-video-variant + .portal-video-variant {
  border-left: 1px solid var(--portal-line);
}

.family-portal-screen .portal-video-variant:has(input:checked) {
  background: rgba(239, 245, 241, 0.95);
  box-shadow: inset 0 3px var(--portal-sage);
}

.family-portal-screen .portal-video-variant label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--portal-ink);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.family-portal-screen .portal-video-variant input {
  flex: 0 0 auto;
  accent-color: var(--portal-sage);
}

.family-portal-screen .portal-video-variant a {
  color: var(--portal-copper-dark);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 980px) {
  .family-portal-screen .portal-hero,
  .portal-status-section {
    grid-template-columns: 1fr;
  }

  .family-portal-screen .portal-hero {
    gap: 44px;
    min-height: auto;
  }

  .family-portal-screen .portal-hero.has-photo {
    grid-template-columns: 1fr;
    background-image:
      linear-gradient(180deg, rgba(249, 246, 240, 0.9), rgba(249, 246, 240, 0.58) 46%, #f9f6f0 100%),
      var(--portal-hero-scene);
  }

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

  .portal-hero-art {
    height: 470px;
    min-height: 470px;
  }

  .portal-status-section {
    gap: 30px;
  }

  .family-portal-screen .portal-workspace-grid {
    grid-template-columns: 1fr;
  }

  .family-portal-screen .portal-contact-card,
  .family-portal-screen .portal-insurance-card,
  .family-portal-screen .portal-signature-card,
  .family-portal-screen .portal-music-card {
    grid-column: auto;
  }
}

@media (max-width: 600px) {
  .family-portal-screen .portal-video-variants { grid-template-columns: 1fr; }
  .family-portal-screen .portal-video-variant + .portal-video-variant {
    border-top: 1px solid var(--portal-line);
    border-left: 0;
  }
}

@media (max-width: 720px) {
  .family-portal-screen {
    padding-bottom: 48px;
  }

  .family-portal-screen .portal-hero::before {
    top: 18px;
    left: -6px;
    width: 64px;
    height: 64px;
  }

  .family-portal-screen .portal-hero::after {
    right: -6px;
    bottom: 14px;
    width: 64px;
    height: 64px;
  }

  .family-portal-screen .portal-topbar {
    position: static;
    grid-template-columns: 1fr auto;
    gap: 14px;
    padding: 16px;
  }

  .portal-brand {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .family-portal-screen .portal-topbar .secondary-button {
    grid-column: 1;
    grid-row: 2;
  }

  .family-portal-screen .quiet-pill {
    grid-column: 2;
    grid-row: 2;
    width: auto;
    max-width: 180px;
    justify-content: center;
    text-align: center;
  }

  .family-portal-screen .portal-hero,
  .portal-status-section,
  .family-portal-screen .portal-workspace-grid,
  .family-portal-screen .portal-video-service {
    width: min(100% - 32px, 1180px);
  }

  .family-portal-screen .portal-hero {
    gap: 32px;
    padding: 46px 0 56px;
  }

  .family-portal-screen .portal-hero.has-photo {
    width: 100%;
    padding: 46px 24px 56px;
  }

  .family-portal-screen .portal-hero h1 {
    font-size: clamp(2.8rem, 10.5vw, 4.2rem);
  }

  .portal-hero-details {
    display: grid;
    gap: 8px;
  }

  .portal-hero-art {
    height: 360px;
    min-height: 360px;
  }

  .portal-status-section {
    padding: 54px 0 28px;
  }

  .portal-status-grid {
    grid-template-columns: 1fr;
  }

  .portal-status-grid article {
    min-height: 112px;
  }

  .portal-status-header,
  .family-portal-screen .portal-section-header,
  .family-portal-screen .portal-music-header,
  .family-portal-screen .portal-video-service header {
    display: grid;
  }

  .portal-secure-pill,
  .family-portal-screen .portal-section-header > span,
  .family-portal-screen .portal-music-header > span {
    width: fit-content;
  }

  .family-portal-screen .portal-signature-form,
  .family-portal-screen .portal-music-form,
  .family-portal-screen .portal-insurance-row,
  .family-portal-screen .portal-insurance-row dl,
  .family-portal-screen .portal-signature-summary {
    grid-template-columns: 1fr;
  }

  .family-portal-screen .portal-music-form .wide-field {
    grid-column: auto;
  }
}

@media (max-width: 430px) {
  .family-portal-screen .portal-topbar {
    grid-template-columns: 1fr;
  }

  .portal-brand,
  .family-portal-screen .portal-topbar .secondary-button,
  .family-portal-screen .quiet-pill {
    grid-column: 1;
  }

  .family-portal-screen .portal-topbar .secondary-button,
  .family-portal-screen .quiet-pill {
    width: 100%;
    max-width: none;
  }

  .family-portal-screen .portal-topbar .secondary-button {
    grid-row: 2;
    justify-content: center;
  }

  .family-portal-screen .quiet-pill {
    grid-row: 3;
  }

  .family-portal-screen .portal-hero h1 {
    font-size: clamp(2.5rem, 11.5vw, 3.4rem);
  }

  .portal-hero-art {
    height: 320px;
    min-height: 320px;
  }

  .portal-portrait-caption strong {
    font-size: 1.5rem;
  }
}
