.client-portal {
  --ink: #253930;
  --soft: #52655a;
  --green: #205842;
  --client-width: 724px;
  min-height: 100vh;
  background: radial-gradient(ellipse at top, #f0f2e8, transparent 42rem), #f8f7f2;
}
.client-portal .mast { border-bottom: 1px solid #dce0d5; background: #fafaf6; }
.client-portal .topline, .client-portal .client-shell {
  max-width: var(--client-width);
  padding-inline: clamp(16px, 4vw, 28px);
}
.client-portal .topline { min-height: 76px; }
.client-brand {
  --portrait-size: 48px;
  display: grid;
  grid-template-columns: var(--portrait-size) auto;
  align-items: center;
  gap: 2px 12px;
  padding-block: 6px;
  border-radius: 7px;
  color: var(--ink);
  text-decoration: none;
}
.client-portrait {
  grid-row: 1 / span 2;
  display: block;
  width: var(--portrait-size);
  height: var(--portrait-size);
  border-radius: 50%;
}
.client-brand-name { align-self: end; font: 500 1.45rem/1.06 Georgia, serif; letter-spacing: -.03em; }
.client-site-link {
  align-self: start; color: var(--green); font-size: .875rem; font-weight: 600; line-height: 1.3;
  text-decoration: underline; text-underline-offset: 3px;
}
.client-brand:hover .client-site-link { text-decoration-thickness: 2px; }
.client-portal .client-shell { padding-top: clamp(20px, 5vw, 60px); }
.client-portal .panel {
  margin: 0; padding: clamp(22px, 5vw, 45px); gap: 22px;
  background: #fffefa; border-color: #dce0d5; border-radius: 22px;
  box-shadow: 0 8px 30px #27382609;
}
.client-heading h1 { margin: 0; font-size: clamp(1.95rem, 4.2vw, 2.85rem); line-height: 1.12; }
.client-heading h1:focus { outline: none; }
.client-portal #feedback { color: var(--soft); line-height: 1.65; }
.client-portal form.stack, .client-portal #pay { gap: 18px; }
.client-portal .stack, .client-portal fieldset { min-width: 0; }
.client-portal fieldset legend { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.client-portal .pay-sum { font-size: 1.14rem; font-weight: 650; }
.client-portal .pay-step { font-size: 1.1rem; margin-top: 5px; }
.client-portal .pay-after { color: var(--soft); }
.booking-time { border-block: 1px solid #dce0d5; }
.booking-time summary {
  min-height: 46px; padding: 10px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  cursor: pointer; font-weight: 600; line-height: 1.4;
}
.booking-time summary::-webkit-details-marker { display: none; }
.booking-time summary::after {
  content: ""; flex: none; width: 8px; height: 8px; margin: 0 5px 4px;
  border: solid var(--soft); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg);
}
.booking-time[open] summary::after { transform: rotate(225deg); margin-top: 7px; }
.booking-time-fields { gap: 8px; padding-bottom: 14px; }
.client-portal .button, .client-portal #send { min-height: 46px; border-radius: 10px; }
.client-portal #send { padding-inline: 34px; }
.receipt-field { gap: 9px; }
.file-choice {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 19px; border: 1px dashed #8aa18e; border-radius: 12px;
  background: #f3f6ef; position: relative; min-width: 0;
}
.file-choice:hover { background: #ecf2e9; }
.file-choice:focus-within { outline: 3px solid var(--green); outline-offset: 3px; }
.file-choice input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-action { color: var(--green); border: 1px solid #a9bba9; background: #fffefa; border-radius: 7px; padding: 7px 13px; }
.file-name { color: var(--soft); font-weight: 450; font-size: .89rem; overflow-wrap: anywhere; }
.client-portal small { font-weight: 400; line-height: 1.5; }
.birth-field { display: grid; gap: 5px; min-width: 0; }
.birth-field > label, .photo-note .birth-field > label { margin: 0; }
.birth-entry { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 6px; }
.birth-digits { font-variant-numeric: tabular-nums; }
.birth-toggle { padding-inline: 10px; font-size: .91rem; }
.birth-error, .birth-digits[aria-invalid=true] { color: #8b3430; }
.birth-digits[aria-invalid=true] { border-color: #a54139; }
.birth-calendar {
  box-sizing: border-box; width: min(360px, calc(100% - 16px)); max-width: none;
  max-height: calc(100vh - 24px); overflow: auto; overscroll-behavior: contain;
  padding: 16px; border: 1px solid #9fb2a4; border-radius: 16px;
  background: #fffefa; color: #253930; box-shadow: 0 12px 46px #18372835;
}
.birth-calendar::backdrop { background: #172b2480; }
.birth-calendar.inline-calendar { display: block; position: static; width: 100%; margin: 6px 0; padding: 8px; }
.calendar-heading, .calendar-parts { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.calendar-heading strong { font-size: 1.18rem; }
.calendar-heading strong:focus { outline: 0; }
.calendar-close { min-height: 44px; padding: 6px 10px; }
.calendar-parts { display: grid; grid-template-columns: minmax(70px, .65fr) minmax(96px, 1fr); margin: 12px 0; }
.calendar-parts label { margin: 0; }
.calendar-days, .calendar-week { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); text-align: center; }
.calendar-week { color: #55695c; font-size: .8rem; margin: 4px 0; }
.calendar-days button { padding: 0; min-height: 42px; min-width: 0; color: #264636; border: 1px solid transparent; background: transparent; font-variant-numeric: tabular-nums; }
.calendar-days button:hover, .calendar-days button:focus-visible { background: #e8efe6; }
.calendar-days button[aria-current=date] { border-color: #8aa38f; }
.calendar-days button[aria-pressed=true] { background: #205842; color: white; }
.calendar-days button:disabled { color: #8b918c; cursor: default; }
.calendar-range { margin: 8px 0 0; }
.photo-note summary {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 4px; padding: 0 39px 4px 74px; list-style: none; color: var(--ink);
}
.photo-note summary::-webkit-details-marker { display: none; }
.photo-note .note-preview { font-size: .9rem; color: var(--soft); font-weight: 450; }
.photo-note .note-action, .fix-item .note-actions .caption-action {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 5px 11px; border: 1px solid #44745b; border-radius: 8px;
  background: #e6f0e6; color: #184630; font-size: .94rem; font-weight: 650;
}
.photo-note summary:hover .note-action, .photo-note summary:focus-visible .note-action { border-color: var(--green); background: #d9e9dc; }
.photo-note details[open] > summary { margin-bottom: 9px; }
#order-terms a { display: inline-block; font-weight: 600; }
#training-steps { border-bottom: 1px solid #dce0d5; padding-bottom: 14px; }
.face-guide { margin: 0; color: var(--ink); line-height: 1.45; font-weight: 550; }
#question-editor audio { width: 100%; }
#question-spoken .actions { align-items: center; }
#question-time { font-variant-numeric: tabular-nums; }
.privacy-note { border-top: 1px solid #e0e3d9; padding-top: 15px; font-size: .88rem; }
.privacy-note p { margin: 0 0 6px; }
.client-help { margin: 16px 4px 0; color: var(--soft); overflow-wrap: anywhere; }
.client-channels { margin: 15px 4px 0; }
.client-channels a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  color: var(--green); font-size: .95rem; font-weight: 600;
}
.client-portal .player :is(audio, video) { display: block; width: 100%; max-width: 100%; }
.client-portal .player .part + .part { border-top: 1px solid var(--line); padding-top: 16px; }
.success-mark {
  display: inline-grid; place-items: center; width: 56px; height: 56px;
  border-radius: 50%; background: #e4f1e3; color: #24643d; margin: 0 auto 20px;
}
.success-mark::before { content: ""; width: 19px; height: 10px; border: solid currentColor; border-width: 0 0 3px 3px; transform: translateY(-2px) rotate(-45deg); }
.client-portal .is-complete { text-align: center; padding-block: clamp(32px, 6vw, 58px); gap: 13px; }
.is-complete #feedback, .is-complete .status-message { max-width: 46ch; margin-inline: auto; }
.is-complete .sent-list { text-align: left; border-top: 1px solid #dde3d8; padding-top: 12px; margin-top: 8px; }
@media (max-width: 520px) {
  .client-portal .topline { min-height: 68px; }
  .client-brand { --portrait-size: 44px; column-gap: 10px; }
  .client-brand-name { font-size: 1.32rem; }
  .client-portal #send { justify-self: stretch; }
  .file-choice { padding: 13px; gap: 8px 12px; }
}
.agreement-text { white-space: pre-line; overflow-wrap: anywhere; }
