/*
 * Profile Studio product polish.
 *
 * This intentionally loads after the historical quiet-editorial owner. It
 * keeps the older accessibility and lifecycle work intact while restoring the
 * rounded, calm 16Faces product language for the paid result and its coach.
 */

/* I2170: fixed fictional artwork; no extra tint or face/shoulder placeholders. */
.profile-studio-page .profile-studio-sample-portrait-illustrated{
  isolation: isolate; background: #eaf2ff;
}
.profile-studio-page .profile-studio-sample-portrait-illustrated::before{ content: none; }
.profile-studio-page .profile-studio-sample-portrait-illustrated > .profile-studio-sample-illustration{
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  margin: 0;
  border: 0;
}

/* I2169: show the outcome and choice first, without changing payment gates. */
.profile-studio-page .profile-studio-value-options{
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 20px 0;
}
.profile-studio-page .profile-studio-value-option{
  min-width: 0; padding: 16px 18px; border: 1px solid var(--line);
  border-radius: 16px; background: var(--surface-soft, #f7f8fa);
}
.profile-studio-page .profile-studio-value-option-paid{
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); background: var(--brand-soft, #eaf2ff);
}
.profile-studio-page .profile-studio-value-option-title{
  margin: 0 0 6px; color: var(--text); font-size: .94rem;
  line-height: 1.45; font-weight: 780;
}
.profile-studio-page .profile-studio-value-option-body,
.profile-studio-page .profile-studio-value-boundary,
.profile-studio-page .profile-studio-value-sample-disclaimer{
  margin: 0; color: var(--text-soft); font-size: .86rem;
  line-height: 1.6; overflow-wrap: anywhere;
}
.profile-studio-page .profile-studio-offer-value-layout{
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start;
  gap: 22px; margin: 22px 0;
}
.profile-studio-page .profile-studio-offer-value-layout > .profile-studio-sample{
  min-width: 0; padding: 20px; border: 1px solid var(--line);
  border-radius: 20px; background: var(--surface, #fff);
}
.profile-studio-page .profile-studio-offer-purchase{ min-width: 0; }
.profile-studio-page .profile-studio-offer-purchase .profile-studio-offer-checkout-summary{ margin-top: 0; }
.profile-studio-page .profile-studio-offer-purchase .profile-studio-offer-checkout-row{
  grid-template-columns: minmax(80px, .7fr) minmax(0, 1.3fr); gap: 12px;
}
.profile-studio-page .profile-studio-offer-purchase .profile-studio-value-boundary{ margin: 12px 4px 0; }
.profile-studio-page .profile-studio-offer-purchase .profile-studio-offer-actions{
  display: flex; flex-direction: column; align-items: stretch; gap: 10px;
}
.profile-studio-page .profile-studio-offer-purchase .profile-studio-offer-actions .profile-studio-button{
  flex: 0 1 auto; width: 100%; min-height: 48px; white-space: normal;
}
.profile-studio-page .profile-studio-value-sample-disclaimer{
  margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-soft, #f7f8fa);
}
.profile-studio-page .profile-studio-sample-completed{
  margin-top: 16px; padding-top: 16px;
}
.profile-studio-page .profile-studio-value-sample-reason{
  margin: 10px 0 0; color: var(--text); font-size: .9rem; line-height: 1.6;
}
.profile-studio-page .profile-studio-offer-value-layout .profile-studio-sample-preview-grid,
.profile-studio-page .profile-studio-entry-sample .profile-studio-sample-preview-grid{
  grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px;
}
.profile-studio-page .profile-studio-offer-value-layout .profile-studio-sample-preview,
.profile-studio-page .profile-studio-entry-sample .profile-studio-sample-preview{
  min-width: 0; margin: 0;
}
.profile-studio-page .profile-studio-offer-value-layout .profile-studio-sample-preview .profile-studio-sample-portrait,
.profile-studio-page .profile-studio-entry-sample .profile-studio-sample-preview .profile-studio-sample-portrait{
  width: min(100%, 128px); margin-inline: auto;
}
.profile-studio-page .profile-studio-value-sample-more,
.profile-studio-page .profile-studio-value-included{
  margin-top: 16px; border-top: 1px solid var(--line);
}
.profile-studio-page .profile-studio-value-sample-more > summary,
.profile-studio-page .profile-studio-value-included > summary{
  min-height: 44px;
  padding: 13px 0;
  color: var(--brand-strong, var(--brand));
  cursor: pointer;
  font-size: .88rem;
  line-height: 1.55;
  font-weight: 740;
}
.profile-studio-page .profile-studio-value-included .profile-studio-offer-deliverables{ margin-top: 0; }
.profile-studio-page .profile-studio-value-result{
  display: grid;
  grid-template-columns: minmax(140px, .55fr) minmax(0, 1.45fr);
  gap: 24px;
  align-items: start;
  margin: 20px 0 24px;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid color-mix(in srgb, var(--brand) 40%, var(--line));
  border-radius: 22px;
  background: linear-gradient(135deg, var(--brand-soft, #eaf2ff), var(--surface, #fff) 75%);
}
.profile-studio-page .profile-studio-value-result__media{
  position: relative; min-width: 0; margin: 0;
}
.profile-studio-page .profile-studio-value-result__image{
  display: block;
  width: 100%;
  max-height: 280px;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 16px;
  background: var(--surface-soft, #f7f8fa);
}
.profile-studio-page .profile-studio-value-result__body{ min-width: 0; }
.profile-studio-page .profile-studio-value-result__body:only-child{ grid-column: 1 / -1; }
.profile-studio-page .profile-studio-value-result__reasons{
  margin: 12px 0; padding-left: 20px; color: var(--text);
  font-size: 1rem; line-height: 1.65;
}
.profile-studio-page .profile-studio-value-result__selection{
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  margin: 12px 0;
  color: var(--text-soft);
  line-height: 1.55;
}
.profile-studio-page .profile-studio-paid-result .profile-studio-paid-result-header .profile-studio-title{
  font-size: clamp(1.75rem, 3.5vw, 2.6rem); line-height: 1.2; letter-spacing: -.035em;
  word-break: keep-all; overflow-wrap: break-word;
}
.profile-studio-page .profile-studio-value-result__primary{
  width: 100%; min-height: 48px; white-space: normal;
}
.profile-studio-page .profile-studio-value-result-followup{ margin-top: 24px; }
@media(max-width: 700px){
  .profile-studio-page .profile-studio-offer-value-layout,
.profile-studio-page .profile-studio-value-options{ grid-template-columns: minmax(0, 1fr); }
.profile-studio-page .profile-studio-value-result{
  grid-template-columns: minmax(0, 1fr); gap: 16px;
}
.profile-studio-page .profile-studio-value-result__media{
  width: min(100%, 240px); margin-inline: auto;
}
.profile-studio-page .profile-studio-value-sample-more .profile-studio-sample-candidate-grid{ grid-template-columns: minmax(0, 1fr); }
}

/* I2172: keep the first action ahead of optional explanation on mobile. */
.profile-studio-page .profile-studio-app[data-profile-studio-state="landing"]{ width: min(100%, 940px); }

.profile-studio-page .profile-studio-screen-landing .profile-studio-title{
  max-width: 900px;
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  line-height: 1.1;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: balance;
}

.profile-studio-page .profile-studio-screen-landing .profile-studio-lead{
  max-width: 760px; text-wrap: pretty;
}

.profile-studio-page .profile-studio-screen-landing .profile-studio-entry-actions{ margin-top: 20px; }
.profile-studio-page .profile-studio-entry-price-note{
  margin: 14px 0 0; color: var(--text-soft); font-size: .88rem; line-height: 1.6;
}
.profile-studio-page .profile-studio-entry-sample{
  margin-top: 18px; min-width: 0; border-top: 1px solid var(--line);
}
.profile-studio-page .profile-studio-entry-sample > summary{
  min-height: 44px;
  padding: 13px 0;
  color: var(--brand-strong, var(--brand));
  cursor: pointer;
  font-size: .94rem;
  line-height: 1.5;
  font-weight: 700;
}
.profile-studio-page .profile-studio-entry-sample > .profile-studio-sample{ margin-top: 8px; }
.profile-studio-page .profile-studio-screen-purpose .profile-studio-entry-form{
  margin-top: 24px; gap: 24px;
}

/* Korean has reliable word spaces, so never split a Hangul word merely to
   fill the final few pixels. Japanese and Chinese intentionally keep the
   normal CJK line-breaking algorithm from the rule above. */
.profile-studio-page .profile-studio-screen-landing .profile-studio-title:lang(ko){ word-break: keep-all; }

@media (max-width: 700px){
.profile-studio-page .profile-studio-screen-landing .profile-studio-title{
  font-size: clamp(1.85rem, 8vw, 2.5rem); line-height: 1.18;
}
.profile-studio-page .profile-studio-screen-landing .profile-studio-entry-actions{
  display: flex; flex-direction: column; gap: 10px;
}
.profile-studio-page .profile-studio-screen-landing .profile-studio-entry-actions .profile-studio-button{
  order: 0; min-height: 50px;
}
  .profile-studio-page .profile-studio-screen-intake .profile-studio-title,
.profile-studio-page .profile-studio-screen-purpose .profile-studio-title{
  font-size: clamp(1.75rem, 7.5vw, 2.2rem); line-height: 1.2;
}
.profile-studio-page .profile-studio-screen-purpose .profile-studio-entry-form{
  margin-top: 20px; gap: 20px;
}
.profile-studio-page .profile-studio-screen-purpose .profile-studio-choice-grid{ gap: 8px; }
.profile-studio-page .profile-studio-screen-purpose .profile-studio-choice-card{
  min-height: 44px; padding: 10px 12px; gap: 3px;
}
.profile-studio-page .profile-studio-screen-purpose .profile-studio-choice-label{
  font-size: .95rem; line-height: 1.4;
}
.profile-studio-page .profile-studio-screen-purpose .profile-studio-choice-description{
  font-size: .875rem; line-height: 1.45;
}
  .profile-studio-page .profile-studio-screen-intake .profile-studio-title:lang(ko),
.profile-studio-page .profile-studio-screen-purpose .profile-studio-title:lang(ko){
  word-break: keep-all; overflow-wrap: break-word; text-wrap: pretty;
}
.profile-studio-page .profile-studio-entry-sample .profile-studio-sample-candidate-grid{ grid-template-columns: minmax(0, 1fr); }
}

.profile-studio-page .profile-studio-paid-result{ width: min(100%, 980px); }

.profile-studio-page .profile-studio-paid-result-header{
  max-width: 720px; gap: 10px; margin: 0 0 18px;
}

.profile-studio-page .profile-studio-paid-result-header .profile-studio-lead{ max-width: 62ch; }

.profile-studio-page .profile-studio-paid-live-status{
  width: fit-content;
  min-height: 0;
  margin: 10px 0 16px;
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text-soft);
  line-height: 1.45;
}

.profile-studio-page .profile-studio-paid-live-status:empty{ display: none; }

.profile-studio-page .profile-studio-paid-decision{
  gap: 10px;
  margin-top: 14px;
  padding: clamp(18px, 3vw, 26px);
  border-color: color-mix(in srgb, var(--brand) 46%, var(--line));
  border-radius: 22px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand-soft) 74%, var(--surface)) 0%, var(--surface) 72%);
  box-shadow: 0 16px 38px rgba(13, 35, 77, .08);
}

.profile-studio-page .profile-studio-paid-decision .profile-studio-paid-section-title{
  color: var(--brand-strong, var(--brand)); font-size: .82rem; font-weight: 820; letter-spacing: .02em;
}

.profile-studio-page .profile-studio-paid-decision-headline{
  display: block;
  color: var(--text);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 850;
  line-height: 1.28;
  letter-spacing: -.025em;
}

.profile-studio-page .profile-studio-paid-decision-description,
.profile-studio-page .profile-studio-paid-decision-reason-title,
.profile-studio-page .profile-studio-paid-next-step{
  margin: 0; color: var(--text-soft); line-height: 1.62;
}

.profile-studio-page .profile-studio-paid-decision-reason-title{
  margin-top: 4px; color: var(--text); font-size: .88rem; font-weight: 780;
}

.profile-studio-page .profile-studio-paid-decision-reasons{
  display: grid; gap: 7px; margin: 0;
  padding: 0; list-style: none;
}

.profile-studio-page .profile-studio-paid-decision-reasons li{
  position: relative; padding-left: 18px; color: var(--text); line-height: 1.5;
}

.profile-studio-page .profile-studio-paid-decision-reasons li::before{
  position: absolute;
  top: .6em;
  left: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  content: '';
}

.profile-studio-page .profile-studio-paid-candidate-grid{
  grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 18px 0 22px;
}

.profile-studio-page .profile-studio-paid-candidate{
  position: relative;
  gap: 7px;
  padding: 9px;
  border-radius: 17px;
  box-shadow: 0 7px 20px rgba(13, 35, 77, .045);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.profile-studio-page button.profile-studio-paid-candidate{
  width: 100%;
  appearance: none;
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
}

@media (hover: hover){
.profile-studio-page button.profile-studio-paid-candidate:hover{
  border-color: color-mix(in srgb, var(--brand) 54%, var(--line)); transform: translateY(-2px);
}
}

.profile-studio-page button.profile-studio-paid-candidate:focus-visible{
  outline: 3px solid var(--brand-soft); outline-offset: 3px; border-color: var(--brand);
}

.profile-studio-page .profile-studio-paid-candidate[data-recommended="true"]{
  border-color: color-mix(in srgb, var(--brand) 72%, var(--line)); box-shadow: 0 10px 28px color-mix(in srgb, var(--brand) 14%, transparent);
}

.profile-studio-page .profile-studio-paid-candidate[data-selected="true"]{
  border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft), 0 10px 28px rgba(13, 35, 77, .08);
}

.profile-studio-page .profile-studio-paid-candidate[data-pending="true"]{
  border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft), 0 10px 28px rgba(13, 35, 77, .08);
}

.profile-studio-page .profile-studio-paid-candidate img{ border-radius: 12px; }

.profile-studio-page .profile-studio-paid-candidate > strong{
  font-size: .96rem; line-height: 1.35;
}

.profile-studio-page .profile-studio-paid-selected{
  width: fit-content;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--brand-soft);
  font-size: .72rem;
  line-height: 1.2;
}

.profile-studio-page .profile-studio-paid-form{
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  padding: 18px;
  border-radius: 18px;
  background: var(--surface-soft);
}

.profile-studio-page .profile-studio-paid-form > .profile-studio-paid-section-title,
.profile-studio-page .profile-studio-paid-form > .profile-studio-paid-form-lead{ grid-column: 1 / -1; }

.profile-studio-page .profile-studio-paid-redo-form{ grid-template-columns: repeat(2, minmax(0, 1fr)); }

.profile-studio-page .profile-studio-paid-redo-actions{
  grid-column: 1 / -1; flex-wrap: wrap; align-items: flex-start;
}

.profile-studio-page .profile-studio-paid-form-lead{
  margin: -3px 0 2px; color: var(--text-soft); font-size: .88rem; line-height: 1.5;
}

.profile-studio-page .profile-studio-paid-form select{
  border-color: var(--line-strong); border-radius: 12px; background: var(--surface);
}

.profile-studio-page .profile-studio-paid-field{
  display: grid; gap: 6px; min-width: 0;
}

.profile-studio-page .profile-studio-paid-field-label{
  color: var(--text); font-size: .82rem; font-weight: 760;
}

.profile-studio-page .profile-studio-paid-form select:focus-visible{
  outline: 3px solid var(--brand-soft); outline-offset: 2px; border-color: var(--brand);
}

.profile-studio-page .profile-studio-paid-next-step{
  margin-top: 18px; padding-left: 14px; border-left: 3px solid var(--brand);
}

.profile-studio-page .profile-studio-paid-primary-actions{
  display: grid; grid-template-columns: minmax(220px, 1fr); max-width: 620px; margin-top: 12px;
}

.profile-studio-page .profile-studio-paid-primary-actions .profile-studio-button-primary{
  min-height: 54px; font-size: 1rem;
}

.profile-studio-page .profile-studio-paid-primary-actions > [data-profile-studio-paid-action="refresh"]{
  justify-self: start; width: auto; max-width: 100%;
}

.profile-studio-page .profile-studio-paid-utility-actions{
  justify-content: flex-end; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line);
}

.profile-studio-page .profile-studio-paid-utility-actions .profile-studio-button{
  min-height: 40px; padding: 8px 12px; font-size: .82rem;
}

.profile-studio-page .profile-studio-coach{
  width: min(100%, 780px);
  grid-template-rows: auto;
  gap: 16px;
  margin: 34px auto 0;
  padding: clamp(16px, 3vw, 24px);
  border-color: var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 18px 44px rgba(13, 35, 77, .08);
  overflow: visible;
}

.profile-studio-page .profile-studio-coach-scroll{
  max-height: min(58vh, 560px);
  gap: 16px;
  padding: 1px;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-padding-block: 14px;
}

.profile-studio-page .profile-studio-coach-header{
  gap: 12px; padding: 16px; border: 0;
  border-radius: 18px; background: linear-gradient(135deg, var(--brand-soft), var(--surface-soft));
}

.profile-studio-page .profile-studio-coach-heading-group{ gap: 6px; }

.profile-studio-page .profile-studio-coach-title{
  font-size: clamp(1.16rem, 2.6vw, 1.42rem); line-height: 1.3;
}

.profile-studio-page .profile-studio-coach-lead{
  max-width: 58ch; color: var(--text-soft); font-size: .92rem; line-height: 1.58;
}

.profile-studio-page .profile-studio-coach-private-line{
  padding: 0 3px; font-size: .78rem; line-height: 1.5;
}

.profile-studio-page .profile-studio-coach-balance{
  min-height: 32px;
  padding: 5px 9px;
  border-color: color-mix(in srgb, var(--brand) 32%, var(--line));
  background: var(--surface);
  font-size: .74rem;
  box-shadow: none;
}

.profile-studio-page .profile-studio-coach-status:not(:empty){
  width: fit-content;
  margin: 0;
  padding: 8px 11px;
  border: 0;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text-soft);
  font-size: .8rem;
  line-height: 1.4;
}

.profile-studio-page .profile-studio-coach-status[data-profile-studio-coach-status-kind="persisted"]{ display: none; }

/* A real pending reply lives beside the conversation, not in its saved history. */
.profile-studio-page .profile-studio-coach[data-profile-studio-coach-pending-visible="true"] .profile-studio-coach-status:is([data-profile-studio-coach-status-kind="generating"], [data-profile-studio-coach-status-kind="provider-delay"]){ display: none; }

.profile-studio-page .profile-studio-coach .profile-studio-coach-message.profile-studio-coach-pending{
  display: flex;
  /* History bubbles contain inline size; this fit-content status needs its text. */
  contain: none;
  align-items: center;
  justify-self: start;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface-soft);
  box-shadow: none;
}

.profile-studio-page .profile-studio-coach .profile-studio-coach-pending[hidden]{ display: none !important; }

.profile-studio-page .profile-studio-coach-pending-dots{
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  width: 29px;
  gap: 4px;
  min-height: 20px;
  color: var(--brand);
}

.profile-studio-page .profile-studio-coach-pending-dots > span{
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: .45;
  animation: profile-studio-reply-dot 1.35s ease-in-out infinite;
}

.profile-studio-page .profile-studio-coach-pending-dots > span:nth-child(2){ animation-delay: .16s; }
.profile-studio-page .profile-studio-coach-pending-dots > span:nth-child(3){ animation-delay: .32s; }

.profile-studio-page .profile-studio-coach-pending-label{
  min-width: 0;
  color: var(--text-soft);
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

@keyframes profile-studio-reply-dot{
  0%, 60%, 100%{ opacity: .45; transform: translateY(0); }
  30%{ opacity: 1; transform: translateY(-3px); }
}

.profile-studio-page .profile-studio-coach-messages{
  gap: 12px; padding: 0; border: 0;
  border-radius: 0; background: transparent;
}

.profile-studio-page .profile-studio-coach-message{
  width: min(88%, 640px);
  gap: 5px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface-soft);
  box-shadow: 0 6px 18px rgba(13, 35, 77, .045);
}

.profile-studio-page .profile-studio-coach-message:last-child{ border-block-end: 1px solid var(--line); }

.profile-studio-page .profile-studio-coach-message.is-assistant{
  justify-self: start; padding-inline-end: 15px; background: var(--surface-soft);
}

.profile-studio-page .profile-studio-coach-message.is-user{
  width: min(82%, 560px);
  justify-self: end;
  padding-inline-start: 15px;
  border: 1px solid color-mix(in srgb, var(--brand) 50%, var(--line));
  border-radius: 17px;
  background: var(--brand-soft);
}

.profile-studio-page .profile-studio-coach-message-meta{
  font-size: .72rem; letter-spacing: 0;
}

.profile-studio-page .profile-studio-coach-message-text{
  max-width: 100%;
  color: var(--text);
  font-size: clamp(.95rem, 1.6vw, 1rem);
  line-height: 1.68;
  letter-spacing: -.006em;
  white-space: pre-wrap;
}

.profile-studio-page .profile-studio-coach-empty{
  margin: 0;
  padding: 13px 15px;
  border: 1px dashed var(--line-strong);
  border-radius: 15px;
  background: var(--surface-soft);
  color: var(--text-soft);
  line-height: 1.6;
  white-space: pre-line;
}

.profile-studio-page .profile-studio-coach-composer{
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
  box-shadow: none;
}

.profile-studio-page .profile-studio-coach-composer:focus-within{
  border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); box-shadow: 0 0 0 3px var(--brand-soft);
}

.profile-studio-page .profile-studio-coach-composer-label{
  gap: 7px; font-size: .86rem;
}

.profile-studio-page .profile-studio-coach-textarea{
  height: 78px;
  min-height: 78px;
  max-height: 180px;
  padding: 11px 12px;
  border-color: var(--line-strong);
  border-radius: 13px;
  background: var(--surface);
  line-height: 1.55;
  resize: vertical;
}

.profile-studio-page .profile-studio-coach-character-count{ font-size: .7rem; }

.profile-studio-page .profile-studio-coach-photo-area{ align-items: center; }

.profile-studio-page .profile-studio-coach-composer-controls{ justify-content: flex-end; }

.profile-studio-page .profile-studio-coach-composer-controls .profile-studio-button-primary{ min-width: 112px; }

/* Account save is an optional action until the server confirms it is saved. */
.profile-studio-page .profile-studio-account-claim,
.profile-studio-page .profile-studio-account-claim:is([data-profile-studio-account-claim-state="saving"], [data-profile-studio-account-claim-state="saved"], [data-profile-studio-account-claim-state="unavailable"]){
  width: min(100%, 780px);
  box-sizing: border-box;
  gap: 8px;
  margin: 20px auto 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 6px 20px rgba(13, 35, 77, .04);
}

.profile-studio-page .profile-studio-account-claim[data-profile-studio-account-claim-state="saved"]{
  border-color: color-mix(in srgb, var(--brand) 25%, var(--line)); background: color-mix(in srgb, var(--brand-soft) 35%, var(--surface));
}

.profile-studio-page .profile-studio-account-claim .profile-studio-account-claim-title{
  display: flex;
  align-items: center;
  gap: 10px;
  max-inline-size: none;
  margin: 0;
  font-size: .98rem;
  line-height: 1.4;
}

.profile-studio-page .profile-studio-account-claim-saved-icon{
  display: inline-flex;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--brand-strong);
  background: var(--brand-soft);
  font-size: 16px;
  font-weight: 800;
}

.profile-studio-page .profile-studio-account-claim-lead,
.profile-studio-page .profile-studio-account-claim-status{
  margin: 0; max-inline-size: 64ch; font-size: .85rem; line-height: 1.6;
}

.profile-studio-page .profile-studio-account-claim :is(.profile-studio-account-claim-lead, .profile-studio-account-claim-status, .profile-studio-account-claim-controls, .profile-studio-account-claim-saved-icon)[hidden],
.profile-studio-page .profile-studio-account-claim :is(.profile-studio-account-claim-controls, .profile-studio-account-claim-status):empty{ display: none !important; }

.profile-studio-page .profile-studio-account-claim-controls{ margin-top: 6px; }

.profile-studio-page .profile-studio-account-claim-controls > .profile-studio-button{
  min-height: 44px;
  width: fit-content;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  text-align: center;
  text-decoration: none;
  font: inherit;
  font-size: .88rem;
  font-weight: 750;
  line-height: 1.4;
}

@media (max-width: 540px){
  .profile-studio-page .profile-studio-account-claim,
.profile-studio-page .profile-studio-account-claim:is([data-profile-studio-account-claim-state="saving"], [data-profile-studio-account-claim-state="saved"], [data-profile-studio-account-claim-state="unavailable"]){ padding: 15px; }

.profile-studio-page .profile-studio-account-claim-controls > .profile-studio-button{ width: 100%; }
}

@media (forced-colors: active){
  .profile-studio-page .profile-studio-account-claim,
.profile-studio-page .profile-studio-account-claim:is([data-profile-studio-account-claim-state="saving"], [data-profile-studio-account-claim-state="saved"], [data-profile-studio-account-claim-state="unavailable"]){
  border-color: CanvasText; background: Canvas; box-shadow: none;
}

.profile-studio-page .profile-studio-account-claim-saved-icon{
  border: 1px solid Highlight; color: Highlight; background: Canvas;
}

.profile-studio-page .profile-studio-coach-pending-dots{ color: CanvasText; }

.profile-studio-page .profile-studio-coach-pending-dots > span{ border: 1px solid CanvasText; }
}

.profile-studio-page :where([data-profile-studio-title], .profile-studio-coach-message):focus{ outline: none; }

.profile-studio-page :where([data-profile-studio-title], .profile-studio-coach-message):focus-visible{
  outline: 3px solid var(--brand-soft); outline-offset: 4px; border-radius: 10px;
}

@media (max-width: 820px){
.profile-studio-page .profile-studio-paid-candidate-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }

.profile-studio-page .profile-studio-paid-form{ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

.profile-studio-page .profile-studio-paid-form .profile-studio-button{ grid-column: 1 / -1; }
}

@media (max-width: 767px), (max-width: 900px) and (max-height: 520px){
  .profile-studio-page .profile-studio-coach{
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    grid-template-rows: auto;
    gap: 12px;
    margin-top: 24px;
    padding: 14px;
    border-radius: 18px;
    overflow: visible;
  }

.profile-studio-page .profile-studio-coach-scroll{
  max-height: min(54vh, 480px); gap: 12px; padding: 1px;
  overflow-x: hidden; overflow-y: auto;
}

.profile-studio-page .profile-studio-coach-header{ padding: 13px; }

  .profile-studio-page .profile-studio-coach-message,
.profile-studio-page .profile-studio-coach-message.is-user{ width: min(94%, 640px); }

.profile-studio-page .profile-studio-coach-composer{
  grid-template-columns: minmax(0, 1fr); gap: 9px; padding: 12px;
}

  .profile-studio-page .profile-studio-coach-composer-label,
  .profile-studio-page .profile-studio-coach-character-count,
  .profile-studio-page .profile-studio-coach-photo-area,
  .profile-studio-page .profile-studio-coach-photo-preview,
.profile-studio-page .profile-studio-coach-composer-controls{
  grid-column: 1; width: 100%;
}

.profile-studio-page .profile-studio-coach-photo-area{ display: flex; }

.profile-studio-page .profile-studio-coach-photo-area .profile-studio-button{ width: auto; }

.profile-studio-page .profile-studio-coach-composer-controls{ display: flex; }

.profile-studio-page .profile-studio-coach-composer-controls .profile-studio-button{
  width: auto; min-width: 112px;
}

  .profile-studio-page .profile-studio-coach-textarea,
.profile-studio-page .profile-studio-coach[data-profile-studio-coach-keyboard="true"] .profile-studio-coach-textarea{
  height: 76px; min-height: 76px; max-height: 150px;
}
}

@media (max-width: 540px){
.profile-studio-page .profile-studio-paid-candidate-grid{
  grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}

.profile-studio-page .profile-studio-paid-form{
  grid-template-columns: minmax(0, 1fr); padding: 14px;
}

  .profile-studio-page .profile-studio-paid-form > *,
.profile-studio-page .profile-studio-paid-form .profile-studio-button{ grid-column: 1; }

.profile-studio-page .profile-studio-paid-primary-actions{
  grid-template-columns: minmax(0, 1fr); max-width: none;
}

.profile-studio-page .profile-studio-paid-primary-actions .profile-studio-button-primary{ width: 100%; }

.profile-studio-page .profile-studio-coach-header{ grid-template-columns: minmax(0, 1fr); }

.profile-studio-page .profile-studio-coach-balance{ justify-self: start; }

  .profile-studio-page .profile-studio-coach-message,
.profile-studio-page .profile-studio-coach-message.is-user{ width: 100%; }
}

@media (prefers-reduced-motion: reduce){
.profile-studio-page .profile-studio-coach-pending-dots > span{
  animation: none !important; transform: none; opacity: .7;
}

  .profile-studio-page .profile-studio-paid-candidate,
.profile-studio-page button.profile-studio-paid-candidate:hover{
  transition: none; transform: none;
}
}

/* Keep the upload outcome prominent; file measurements are optional. */
.profile-studio-page .profile-studio-candidate-delivery{
  margin: 10px 0 4px; font-size: 15px; line-height: 1.7;
  overflow-wrap: anywhere;
}
.profile-studio-page .profile-studio-candidate-delivery-details{
  margin: 0 0 8px; max-width: 100%; min-width: 0; color: #526178;
}
.profile-studio-page .profile-studio-candidate-delivery-details > summary{
  box-sizing: border-box; min-height: 44px; padding: 10px 0;
  font-size: 13px; line-height: 24px; cursor: pointer;
  white-space: normal; overflow-wrap: anywhere;
}
.profile-studio-page .profile-studio-candidate-delivery-details > summary:focus-visible{
  outline: 3px solid var(--brand, #185bd8); outline-offset: 3px;
}
.profile-studio-page .profile-studio-candidate-delivery-details > p{
  margin: 0 0 8px; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere;
}

/* I2198: explain comparison, recommendation and saving in the same order. */
.profile-studio-page .profile-studio-sample-explained{ font-family: inherit; }
.profile-studio-page .profile-studio-sample-explained .profile-studio-value-sample-disclaimer{
  display: block; padding: 0; background: none; font-size: 12px; line-height: 1.6;
}
.profile-studio-page .profile-studio-sample-steps{
  list-style: none; counter-reset: sample-step; padding: 0; margin: 22px 0 0;
  display: grid; gap: 22px;
}
.profile-studio-page .profile-studio-sample-step{
  min-width: 0; counter-increment: sample-step; padding-top: 20px; border-top: 1px solid #e2e8f0;
}
.profile-studio-page .profile-studio-sample-step-title{
  margin: 0; display: flex; align-items: baseline; gap: 10px;
  min-width: 0; overflow-wrap: anywhere;
  color: #172b4d; font-size: 17px; line-height: 1.55; font-weight: 750;
}
.profile-studio-page .profile-studio-sample-step-title::before{
  content: counter(sample-step); flex: 0 0 26px; text-align: center;
  border-radius: 50%; background: #e7f1ff; color: #0755c9; font-size: 14px; line-height: 26px;
}
.profile-studio-page .profile-studio-sample-step-body{
  color: #526178; margin: 7px 0 15px; font-size: 14px; line-height: 1.65;
}
.profile-studio-page .profile-studio-sample-explained .profile-studio-sample-candidate-grid{
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
}
.profile-studio-page .profile-studio-sample-explained .profile-studio-sample-candidate{
  display: grid; grid-template-columns: 1fr; align-content: start; gap: 10px;
  padding: 14px; border: 1px solid #dce4ef; border-radius: 14px; background: #fff; min-width: 0;
}
.profile-studio-page .profile-studio-sample-explained .profile-studio-sample-candidate .profile-studio-sample-portrait{
  width: 72px; height: 72px; min-height: 0; max-width: 100%; margin: 0 auto;
}
.profile-studio-page .profile-studio-sample-explained .profile-studio-sample-candidate-copy{ min-width: 0; }
.profile-studio-page .profile-studio-sample-explained .profile-studio-sample-candidate-label{
  display: block; color: #172b4d; font-size: 14px; line-height: 1.6;
}
.profile-studio-page .profile-studio-sample-explained .profile-studio-sample-candidate-status{
  display: block; margin: 3px 0 5px; color: #0755c9; font-size: 13px; line-height: 1.6;
}
.profile-studio-page .profile-studio-sample-explained .profile-studio-sample-candidate-reason{
  margin: 0; font-size: 13px; line-height: 1.65; color: #526178; overflow-wrap: anywhere;
}
.profile-studio-page .profile-studio-sample-recommendation-title{ font-size: 15px; line-height: 1.6; }
.profile-studio-page .profile-studio-sample-explained .profile-studio-value-sample-reason{
  margin: 10px 0; padding: 15px 17px; border: 0; border-radius: 12px;
  background: #edf4ff; color: #172b4d; font-size: 15px; line-height: 1.75;
}
.profile-studio-page .profile-studio-sample-explained .profile-studio-sample-final-body{
  font-size: 13px; line-height: 1.65; color: #526178;
}
.profile-studio-page .profile-studio-sample-explained .profile-studio-sample-completed{
  margin: 0; padding: 0; border: 0;
}
.profile-studio-page .profile-studio-sample-explained .profile-studio-sample-preview .profile-studio-sample-portrait{
  width: 96px; height: 96px;
}
.profile-studio-page .profile-studio-sample-explained .profile-studio-sample-preview-label{
  font-size: 13px; line-height: 1.6; overflow-wrap: anywhere;
}
.profile-studio-page .profile-studio-sample-explained .profile-studio-sample-file{
  padding: 10px 0 0; border: 0; background: none; font-size: 12px; gap: 8px; flex-wrap: wrap;
}
@media (max-width: 700px){
  .profile-studio-page .profile-studio-sample-explained .profile-studio-sample-candidate-grid{ grid-template-columns: 1fr; }
  .profile-studio-page .profile-studio-sample-explained .profile-studio-sample-candidate{
    grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 12px;
  }
  .profile-studio-page .profile-studio-sample-explained .profile-studio-sample-candidate .profile-studio-sample-portrait{ width: 56px; height: 56px; }
  .profile-studio-page .profile-studio-sample-explained .profile-studio-sample-preview-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-studio-page .profile-studio-sample-explained .profile-studio-sample-preview{ padding: 12px 8px; }
  .profile-studio-page .profile-studio-sample-explained .profile-studio-sample-preview .profile-studio-sample-portrait{ width: 72px; height: 72px; }
}

/* I2183 mobile owned-UI contract. These are authored safeguards, not a claim
 * that a browser screenshot or native touch target has been measured. */
@media (max-width: 430px){
.profile-studio-page :where(.profile-studio-screen, .profile-studio-actions, .profile-studio-entry-form, .profile-studio-paid-result, .profile-studio-coach, .profile-studio-account-claim){
  box-sizing: border-box; min-width: 0; min-inline-size: 0;
  max-width: 100%; max-inline-size: 100%;
}
  .profile-studio-page :where(h1, h2, h3, p, legend, label, .profile-studio-button){
    min-inline-size: 0;
    max-inline-size: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    text-overflow: clip;
    -webkit-line-clamp: unset;
    overflow: visible;
    height: auto;
    block-size: auto;
    max-height: none;
    max-block-size: none;
  }
.profile-studio-page :where(button, .profile-studio-button, .profile-studio-language-link){
  box-sizing: border-box; min-height: 44px; min-block-size: 44px; height: auto;
}
.profile-studio-page :where(input, textarea, select){
  box-sizing: border-box; min-width: 0; max-width: 100%;
}
}
.profile-studio-page :where(button, a, input, textarea, select, [tabindex]):focus-visible{
  outline: 3px solid var(--brand, #185bd8); outline-offset: 3px;
}
.profile-studio-page .profile-studio-payment-actions .profile-studio-button{
  min-height: 44px;
  height: auto;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.profile-studio-page .profile-studio-payment-separate-job-note{
  margin: 12px 0 0; color: #526178; font-size: 14px;
  line-height: 1.7; overflow-wrap: anywhere;
}
@media (prefers-reduced-motion: reduce){
.profile-studio-page :where(button, a, input, textarea, select, .profile-studio-coach-pending-dots > span){
  animation: none !important; transition: none !important; scroll-behavior: auto;
}
}
