/* I2123_PROFILE_STUDIO_FOUNDATION
   Byte-preserved shared tokens and element defaults required by the isolated route. */
/* =====================================================================
   H013 global token owner layer
   Owner: all active :root custom properties. Later historical theme
   token blocks are intentionally inert so DevTools exposes one source.
   ===================================================================== */
:root{
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --bg: #f0f4ff;
  --bg-soft: #e8effc;
  --surface: #fff;
  --surface-strong: #fff;
  --surface-soft: #f0f4ff;
  --surface-container-lowest: #fff;
  --surface-container-low: #f0f4ff;
  --surface-container: #e8effc;
  --surface-container-high: #dde5f4;
  --surface-container-highest: #d3dceb;
  --text: #1f1f1f;
  --text-soft: #444746;
  --text-faint: #74777f;
  --line: #dadce0;
  --line-strong: #74777f;
  --brand: #0b57d0;
  --brand-strong: #0842a0;
  --brand-soft: #c2d7f9;
  --tone-blue-strong: #0842a0;
  --tone-blue-soft: #c2d7f9;
  --mint: #fff;
  --tone-neutral: #fff;
  --blue: #0b57d0;
  --shadow: 0 1px 3px 0 rgba(0,0,0,0.12), 0 1px 2px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.04);
  --radius-xl: 28px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --transition: 300ms cubic-bezier(0.2, 0, 0, 1);
  --font-primary: system-ui, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", Roboto, Arial, sans-serif;
  --glass-blur: none;
  --btn-shadow: none;
  --special-fx-bg: none;
  --glass-bg: #fff;
  --btn-bg: #0b57d0;
  --border-style: 1px solid var(--line);
  --scan-glass: #0842a0;
  --scan-surface: #0b57d0;
  --scan-line: rgba(255, 255, 255, 0.14);
  --btn-text: #fff;
  --scan-surface-strong: #0842a0;
  --accent-soft: #c2d7f9;
  --accent-blue-soft: #c2d7f9;
  --accent-ink: #0842a0;
  --upgrade-bg: #0842a0;
  --bm-funnel-accent: #0b57d0;
  --bm-funnel-accent-strong: #0842a0;
  --bm-funnel-soft: #c2d7f9;
  --bm-funnel-warm: #c2d7f9;
  --bm-blue: #0b57d0;
  --bm-blue-strong: #0842a0;
  --bm-gray-900: #1f1f1f;
  --bm-gray-700: #444746;
  --bm-gray-600: #5f6368;
  --bm-gray-500: #9aa0a6;
  --bm-gray-300: #c4c7c5;
  --bm-gray-200: #e1e3e6;
  --bm-gray-100: #eef1f4;
  --bm-white: #fff;
  --global-menu-z: 2147483000;
  --my-page-modal-z: 2147483200;
  --legal-modal-z: calc(var(--my-page-modal-z, 2147483200) - 1);
  --premium-flow-escape-z: calc(var(--global-menu-z, 2147483000) - 2);
  --master-upload-modal-z: calc(var(--global-menu-z, 2147483000) - 4);
  --payment-recovery-modal-z: calc(var(--global-menu-z, 2147483000) - 3);
}

*,
*::before,
*::after{
  box-sizing: border-box; -webkit-tap-highlight-color: transparent;
}

html,
body{
  width: 100%;
  min-height: 100%;
  margin: 0;
  max-inline-size: 100%;
  overflow-x: hidden;
  background: var(--bg) !important;
  color: var(--text) !important;
  font-family: var(--font-primary) !important;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis-weight: none;
}

body{ overflow: hidden; }

button,
input,
textarea,
select{
  font: inherit;
  font-family: var(--font-primary);
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis-weight: none;
}

button{
  border: 0; cursor: pointer; background: none;
}

button:focus-visible,
input:focus-visible{
  outline: 2px solid var(--brand); outline-offset: 3px;
}

.hidden{ display: none !important; }

.noscript-seo-fallback{
  max-width: 720px;
  margin: 32px auto;
  padding: 24px;
  font-family: var(--font-primary);
  line-height: 1.7;
  color: #212529;
}

.is-hidden{
  opacity: 0 !important; visibility: hidden !important; pointer-events: none !important;
}

/* I1984_PROFILE_STUDIO_ENTRY_ROUTE */
body.profile-studio-page{
  min-height: 100dvh; overflow-x: hidden; overflow-y: auto; background: #f8fafd;
}

.profile-studio-page a{ color: var(--brand-strong); }

.profile-studio-page a:focus-visible,
.profile-studio-page button:focus-visible,
.profile-studio-page input:focus-visible + .profile-studio-choice-card{
  outline: 3px solid rgba(13, 110, 253, 0.28); outline-offset: 3px;
}

.profile-studio-header{
  position: relative; z-index: 1; width: 100%;
  border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.96);
}

.profile-studio-header-inner{
  width: min(100%, 1080px);
  min-height: 64px;
  margin: 0 auto;
  padding: 0 max(20px, var(--safe-right)) 0 max(20px, var(--safe-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.profile-studio-brand{
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

/* =====================================================================
   H007 language-switch base owner layer · visible language dropdown
   Owner: .top-language-switch-wrap and .page-language-* for top-bar language UI.
   Reused from main styles.css
   ===================================================================== */
.top-language-switch-wrap{
  position: relative;
  z-index: 90;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin-left: auto;
}

.page-language-dropdown{
  position: relative;
  isolation: isolate;
}

.page-language-dropdown summary{ list-style: none; }
.page-language-dropdown summary::-webkit-details-marker{ display: none; }

.page-language-trigger{
  min-height: 44px;
  min-block-size: 44px;
  padding: 6px 14px;
  line-height: 1.45;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.page-language-globe,
.page-language-caret{
  line-height: 1; color: var(--text-soft);
}

.page-language-current{
  display: inline-flex;
  align-items: center;
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  vertical-align: baseline;
  line-height: 1.45;
}

.page-language-menu{
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 120;
  min-width: 180px;
  width: max-content;
  max-width: min(230px, calc(100vw - 24px));
  display: grid;
  gap: 6px;
  padding: 8px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.page-language-dropdown[open] .page-language-menu{
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
}

.page-language-dropdown[open]::before{
  content: '';
  position: fixed;
  inset: 0;
  z-index: 119;
}

.page-language-option{
  min-height: 44px;
  min-block-size: 44px;
  padding: 7px 13px;
  line-height: 1.45;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border: 1px solid rgba(108, 117, 125, 0.75);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text-soft);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.page-language-option:hover,
.page-language-option:focus-visible{
  color: var(--text); border-color: rgba(13, 110, 253, 0.28); outline: none;
}

.page-language-option.is-active,
.page-language-option[aria-current="page"]{
  background: #c2d7f9; color: var(--brand-strong); border-color: rgba(13, 110, 253, 0.22);
}

@media (max-width: 560px){
.top-language-switch-wrap .page-language-trigger{
  padding-inline: 10px; gap: 6px; font-size: 12px;
}
.top-language-switch-wrap .page-language-menu{ min-width: 168px; }
}

@media (max-width: 390px){
.top-language-switch-wrap .page-language-globe{ display: none; }
}

.profile-studio-shell{
  width: min(100%, 1080px);
  min-height: calc(100dvh - 64px);
  margin: 0 auto;
  padding: clamp(32px, 7vw, 80px) max(20px, var(--safe-right)) calc(48px + var(--safe-bottom)) max(20px, var(--safe-left));
  display: grid;
  align-items: start;
}

.profile-studio-app{
  width: min(100%, 760px); margin: 0 auto;
}

.profile-studio-screen{
  width: 100%; min-width: 0;
}

.profile-studio-screen-loading,
.profile-studio-screen-disabled,
.profile-studio-screen-unavailable{
  max-width: 620px;
  margin: min(12vh, 96px) auto 0;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.profile-studio-hero{
  display: grid; gap: 0;
}

.profile-studio-kicker{
  margin: 0 0 12px; color: var(--brand-strong); font-size: 0.92rem;
  font-weight: 700; letter-spacing: -0.01em;
}

.profile-studio-title{
  max-width: 720px;
  margin: 0;
  color: var(--text);
  font-size: clamp(2rem, 7vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}

.profile-studio-screen-purpose .profile-studio-title,
.profile-studio-screen-intake .profile-studio-title,
.profile-studio-screen-loading .profile-studio-title,
.profile-studio-screen-disabled .profile-studio-title,
.profile-studio-screen-unavailable .profile-studio-title{ font-size: clamp(1.85rem, 5vw, 3rem); }

.profile-studio-lead{
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--text-soft);
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  line-height: 1.65;
  letter-spacing: -0.018em;
  overflow-wrap: anywhere;
}

.profile-studio-screen-loading .profile-studio-lead,
.profile-studio-screen-disabled .profile-studio-lead,
.profile-studio-screen-unavailable .profile-studio-lead{ margin-inline: auto; }

.profile-studio-steps{
  margin: clamp(30px, 5vw, 48px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
}

.profile-studio-step{
  min-width: 0;
  padding: 20px;
  display: grid;
  align-content: start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.profile-studio-step-number{
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 0.88rem;
  font-weight: 800;
}

.profile-studio-step-text{
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.52;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}

.profile-studio-method{
  margin: 18px 0 0; color: var(--text-soft); font-size: 0.94rem; line-height: 1.55;
}

.profile-studio-offer-note{
  margin-top: 24px;
  padding: 18px 20px;
  display: grid;
  gap: 6px;
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-md);
  background: var(--brand-soft);
}

.profile-studio-offer-title{
  color: var(--text); font-size: 1rem; line-height: 1.5;
}

.profile-studio-offer-price{
  color: var(--text-soft); font-size: 0.92rem; line-height: 1.5;
}

.profile-studio-button{
  min-height: 50px;
  padding: 13px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-weight: 750;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition), transform var(--transition);
}

.profile-studio-button:active{ transform: translateY(1px); }

.profile-studio-button:disabled{
  cursor: not-allowed; opacity: 0.48; transform: none;
}

.profile-studio-button-primary{
  border-color: var(--brand); background: var(--brand); color: #fff;
}

/* File delivery uses native links. Keep their primary label above the page's
   general link color, including hover/focus, without recoloring other links. */
.profile-studio-page .profile-studio-file-delivery a.profile-studio-button-primary{ color: #fff; }

.profile-studio-button-primary:hover:not(:disabled){
  border-color: var(--brand-strong); background: var(--brand-strong);
}

.profile-studio-button-secondary{
  border-color: var(--line-strong); background: var(--surface); color: var(--text);
}

.profile-studio-button-secondary:hover:not(:disabled){
  border-color: var(--brand); background: var(--brand-soft);
}

.profile-studio-hero > .profile-studio-button-primary{
  width: min(100%, 360px); min-height: 58px; margin-top: 28px; font-size: 1.05rem;
}

.profile-studio-entry-actions{
  margin-top: 28px; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 12px;
}

.profile-studio-entry-actions .profile-studio-button{
  width: 100%; min-height: 58px; padding-inline: 14px;
}

.profile-studio-photo-handling{
  margin: 14px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  color: var(--text-soft);
  font-size: 0.86rem;
  line-height: 1.5;
}

.profile-studio-photo-handling a{ font-weight: 650; }

.profile-studio-entry-form{
  margin-top: clamp(32px, 6vw, 52px); display: grid; gap: 36px;
}

.profile-studio-fieldset{
  min-width: 0; margin: 0; padding: 0; border: 0;
}

.profile-studio-legend{
  width: 100%;
  margin: 0 0 14px;
  padding: 0;
  color: var(--text);
  font-size: 1.16rem;
  font-weight: 780;
  letter-spacing: -0.02em;
}

.profile-studio-fieldset-lead{
  margin: -4px 0 16px; color: var(--text-soft); font-size: 0.94rem; line-height: 1.55;
}

.profile-studio-choice-grid{
  display: grid; gap: 12px;
}

.profile-studio-choice-grid-preference{ grid-template-columns: repeat(2, minmax(0, 1fr)); }

.profile-studio-choice{
  min-width: 0; display: block; cursor: pointer;
}

.profile-studio-choice-input{
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.profile-studio-choice-card{
  min-height: 100%;
  padding: 18px 20px;
  display: grid;
  align-content: start;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: background-color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.profile-studio-choice:hover .profile-studio-choice-card{ border-color: var(--tone-blue-strong); }

.profile-studio-choice-input:checked + .profile-studio-choice-card{
  border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand);
}

.profile-studio-choice-label{
  color: var(--text); font-size: 1rem; line-height: 1.45;
}

.profile-studio-choice-description{
  color: var(--text-soft); font-size: 0.9rem; line-height: 1.5; overflow-wrap: anywhere;
}

.profile-studio-actions{
  display: flex; justify-content: flex-end; gap: 12px;
}

.profile-studio-actions .profile-studio-button{ min-width: 132px; }

.profile-studio-actions-single{ justify-content: flex-start; }

.profile-studio-selection-summary{
  max-width: 560px;
  margin: 32px 0 0;
  padding: 20px;
  display: grid;
  grid-template-columns: minmax(110px, auto) minmax(0, 1fr);
  gap: 10px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.profile-studio-selection-summary dt{
  color: var(--text-soft); font-size: 0.9rem; font-weight: 650;
}

.profile-studio-selection-summary dd{
  min-width: 0;
  margin: 0;
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 720;
  overflow-wrap: anywhere;
}

.profile-studio-screen-intake .profile-studio-actions{ margin-top: 24px; }

.profile-studio-loading-indicator{
  width: 32px;
  height: 32px;
  margin: 24px auto 0;
  display: block;
  border: 3px solid var(--line);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: profile-studio-spin 800ms linear infinite;
}

@keyframes profile-studio-spin{
  to{ transform: rotate(360deg); }
}

@media (max-width: 700px){
.profile-studio-header-inner{
  min-height: 56px; padding-top: 8px; padding-bottom: 8px; align-items: center;
}

.profile-studio-shell{
  min-height: calc(100dvh - 56px); padding-top: 32px;
}

.profile-studio-title{ font-size: clamp(2.05rem, 11vw, 3.2rem); }

  .profile-studio-steps,
.profile-studio-choice-grid-preference{ grid-template-columns: 1fr; }

.profile-studio-step{
  grid-template-columns: auto minmax(0, 1fr); align-items: start; padding: 16px;
}

.profile-studio-actions{
  display: grid; grid-template-columns: 1fr;
}

.profile-studio-entry-actions{ grid-template-columns: 1fr; }

.profile-studio-entry-actions .profile-studio-button-primary{ order: -1; }

.profile-studio-actions .profile-studio-button{
  width: 100%; min-width: 0;
}

.profile-studio-actions .profile-studio-button-primary{ order: -1; }

.profile-studio-selection-summary{
  grid-template-columns: 1fr; gap: 4px;
}

.profile-studio-selection-summary dd + dt{ margin-top: 12px; }

  .profile-studio-screen-loading,
  .profile-studio-screen-disabled,
.profile-studio-screen-unavailable{
  margin-top: 24px; padding: 26px 20px;
}
}

@media (prefers-reduced-motion: reduce){
  .profile-studio-button,
.profile-studio-choice-card{ transition: none; }

.profile-studio-loading-indicator{ animation-duration: 1600ms; }
}

/* I1985_PROFILE_STUDIO_PHOTO_INTAKE */
.profile-studio-intake-mode-switch{
  margin-top: 28px;
  padding: 4px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.profile-studio-intake-mode-button{
  min-width: 0;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: calc(var(--radius-md) - 4px);
  background: transparent;
  color: var(--text-soft);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 720;
  line-height: 1.35;
  cursor: pointer;
}

.profile-studio-intake-mode-button[aria-pressed="true"]{
  border-color: var(--line); background: var(--surface); color: var(--text); box-shadow: var(--shadow);
}

.profile-studio-intake-mode-button:disabled{
  cursor: not-allowed; opacity: 0.5;
}

.profile-studio-intake-requirement{
  margin: 24px 0 0; color: var(--text); font-size: 1rem;
  font-weight: 720; line-height: 1.5;
}

.profile-studio-intake-progress{
  margin: 8px 0 0; color: var(--text-soft); font-size: 0.92rem; line-height: 1.5;
}

.profile-studio-intake-dropzone{
  margin-top: 18px;
  padding: clamp(18px, 4vw, 28px);
  display: grid;
  gap: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
  transition: border-color var(--transition), background-color var(--transition);
}

.profile-studio-intake-dropzone[data-profile-studio-drag-active="true"]{
  border-color: var(--brand); background: var(--brand-soft);
}

.profile-studio-intake-picker-actions{
  display: flex; flex-wrap: wrap; gap: 10px;
}

.profile-studio-intake-picker-button{
  min-width: 148px; gap: 8px;
}

.profile-studio-intake-action-icon{
  display: inline-grid; place-items: center; font-size: 1rem; line-height: 1;
}

.profile-studio-intake-file-hint{
  margin: 0; color: var(--text-soft); font-size: 0.88rem; line-height: 1.55;
}

.profile-studio-intake-file-input{
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.profile-studio-intake-candidates{
  margin: 18px 0 0; padding: 0; display: grid;
  gap: 12px; list-style: none;
}

.profile-studio-intake-empty{
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text-soft);
  font-size: 0.94rem;
  line-height: 1.5;
  text-align: center;
}

.profile-studio-intake-candidate{
  min-width: 0;
  padding: 14px;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.profile-studio-intake-candidate-error{ border-color: #664d03; }

.profile-studio-intake-preview{
  width: 112px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.profile-studio-intake-preview img{
  width: 100%; height: 100%; display: block; object-fit: cover;
}

.profile-studio-intake-preview-placeholder{
  color: var(--text-soft); font-size: 1.65rem; line-height: 1;
}

.profile-studio-intake-candidate-body{
  min-width: 0; display: grid; gap: 7px;
}

.profile-studio-intake-slot-label{
  color: var(--text); font-size: 0.98rem; line-height: 1.4;
}

.profile-studio-intake-candidate-status{
  color: var(--text-soft); font-size: 0.86rem; line-height: 1.45;
}

.profile-studio-intake-candidate-controls{
  margin-top: 4px; display: flex; flex-wrap: wrap;
  gap: 8px; align-items: center;
}

.profile-studio-intake-icon-button,
.profile-studio-intake-text-button{
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.profile-studio-intake-icon-button{
  width: 44px; padding: 0;
}

.profile-studio-intake-text-button{ padding: 8px 11px; }

.profile-studio-intake-icon-button:hover:not(:disabled),
.profile-studio-intake-text-button:hover:not(:disabled){
  border-color: var(--brand); background: var(--brand-soft);
}

.profile-studio-intake-icon-button:disabled,
.profile-studio-intake-text-button:disabled{
  cursor: not-allowed; opacity: 0.42;
}

.profile-studio-intake-error{
  min-width: 0;
  display: grid;
  gap: 3px;
  color: #664d03;
  font-size: 0.86rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.profile-studio-intake-error[hidden]{ display: none; }

.profile-studio-intake-global-error{
  margin-top: 14px; padding: 12px 14px; border: 1px solid #664d03;
  border-radius: var(--radius-md); background: #fff3cd;
}

.profile-studio-intake-error-title{ color: var(--text); }

.profile-studio-intake-utilities{
  margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px;
}

.profile-studio-intake-checkout-help{
  display: grid;
  gap: 12px;
  margin-top: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand, #126bfa);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  color: var(--text);
  font-size: .92rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.profile-studio-intake-checkout-help[hidden],
.profile-studio-intake-checkout-help button[hidden]{ display: none; }
.profile-studio-intake-checkout-help p{ margin: 6px 0 0; }
.profile-studio-intake-checkout-help .profile-studio-button{ justify-self: start; max-width: 100%; }

.profile-studio-button-quiet{
  min-height: 44px;
  padding: 8px 12px;
  border-color: transparent;
  background: transparent;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.profile-studio-button-quiet:hover:not(:disabled){
  border-color: var(--line); background: var(--surface-soft); color: var(--text);
}

.profile-studio-button-quiet[hidden]{ display: none; }

.profile-studio-intake-actions{ margin-top: 26px; }

@media (max-width: 700px){
.profile-studio-intake-mode-switch{ grid-template-columns: 1fr; }

.profile-studio-intake-picker-actions{
  display: grid; grid-template-columns: 1fr;
}

.profile-studio-intake-picker-button{
  width: 100%; min-width: 0;
}

.profile-studio-intake-candidate{
  grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 12px;
}

.profile-studio-intake-preview{ width: 84px; }
}

@media (max-width: 430px){
.profile-studio-intake-candidate{ grid-template-columns: 1fr; }

.profile-studio-intake-preview{
  width: 100%; max-height: 260px;
}
}

@media (prefers-reduced-motion: reduce){
.profile-studio-intake-dropzone{ transition: none; }
}

/* I1987_PROFILE_STUDIO_FREE_CHECK */
.profile-studio-screen-free-result{
  width: min(100%, 720px);
  margin: clamp(28px, 7vw, 72px) auto 0;
  padding: clamp(26px, 5vw, 46px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.profile-studio-free-result-hero{
  display: grid; gap: 10px;
}

.profile-studio-free-result-status{
  width: fit-content;
  margin: 2px 0 0;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1;
}

.profile-studio-free-result-status[data-profile-studio-free-result-status="ready"]{
  border-color: var(--brand); background: var(--brand-soft); color: var(--text);
}

.profile-studio-free-result-headline{
  max-width: 15ch; margin-top: 4px; font-size: clamp(2rem, 7vw, 3.6rem); line-height: 1.06;
}

.profile-studio-free-result-summary{ max-width: 54ch; }

.profile-studio-free-result-section,
.profile-studio-free-result-next-action{
  margin-top: 24px; padding: 20px; border: 1px solid var(--line);
  border-radius: var(--radius-lg); background: var(--surface-soft);
}

.profile-studio-free-result-section-title{
  margin: 0;
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 760;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.profile-studio-free-result-condition-list{
  margin: 14px 0 0; padding: 0; display: grid;
  gap: 12px; list-style: none;
}

.profile-studio-free-result-condition{
  min-width: 0;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.58;
}

.profile-studio-free-result-condition-marker{
  width: 9px;
  height: 9px;
  margin-top: 0.42em;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
}

.profile-studio-free-result-condition-positive .profile-studio-free-result-condition-marker{
  border-color: var(--brand); background: var(--brand);
}

.profile-studio-free-result-condition-limiting .profile-studio-free-result-condition-marker{
  border-radius: 2px; background: var(--text-soft);
}

.profile-studio-free-result-condition-neutral{
  grid-template-columns: 1fr; color: var(--text-soft);
}

.profile-studio-free-result-improvement{ background: var(--surface); }

.profile-studio-free-result-improvement-title{
  margin-top: 10px; display: block; color: var(--text);
  font-size: clamp(1.05rem, 3vw, 1.24rem); line-height: 1.42;
}

.profile-studio-free-result-improvement-body,
.profile-studio-free-result-next-action-text{
  margin: 8px 0 0; color: var(--text-soft); font-size: 0.95rem; line-height: 1.6;
}

.profile-studio-free-result-next-action{
  border-color: var(--brand); background: var(--brand-soft);
}

.profile-studio-free-result-next-action .profile-studio-free-result-section-title,
.profile-studio-free-result-next-action-text{ color: var(--text); }

.profile-studio-free-result-animal-mood{
  width: fit-content;
  max-width: 100%;
  margin-top: 18px;
  padding: 8px 11px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text-soft);
  font-size: 0.78rem;
  line-height: 1.35;
}

.profile-studio-free-result-animal-mood-label::after{
  content: "·"; margin-left: 6px;
}

.profile-studio-free-result-animal-mood-value{
  color: var(--text); font-weight: 720;
}

.profile-studio-free-result-method-note{
  margin: 18px 0 0; color: var(--text-soft); font-size: 0.82rem; line-height: 1.55;
}

.profile-studio-free-result-actions{ margin-top: 26px; }

.profile-studio-free-result-live-status{
  margin: 18px 0 0; color: var(--text-soft); font-size: 0.94rem; line-height: 1.55;
}

.profile-studio-free-result-loading-indicator{ margin-top: 22px; }

.profile-studio-free-result-loading-actions{ margin-top: 24px; }

.profile-studio-free-result-retry .profile-studio-lead[role="alert"]{ max-width: 50ch; }

@media (max-width: 700px){
.profile-studio-screen-free-result{
  margin-top: 22px; padding: 24px 18px; border-radius: var(--radius-lg);
}

  .profile-studio-free-result-section,
.profile-studio-free-result-next-action{ padding: 17px; }

.profile-studio-free-result-headline{ max-width: none; }
}

@media (prefers-reduced-motion: reduce){
.profile-studio-free-result-loading-indicator{ animation: none; }
}

/* I1988_PROFILE_STUDIO_CANDIDATE_COMPARISON */
.profile-studio-screen-comparison{
  width: min(100%, 1040px);
  margin: clamp(28px, 6vw, 68px) auto 0;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.profile-studio-comparison-hero{
  display: grid; gap: 10px;
}

.profile-studio-comparison-headline{
  max-width: 20ch; margin-top: 2px; font-size: clamp(1.9rem, 5.5vw, 3.3rem); line-height: 1.08;
}

.profile-studio-comparison-summary{ max-width: 62ch; }

.profile-studio-comparison-selection-summary{
  margin-top: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
}

.profile-studio-comparison-selection-item{
  min-width: 0;
  padding: 15px 16px;
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
}

.profile-studio-comparison-selection-label{
  color: var(--text-soft); font-size: 0.76rem; font-weight: 760; line-height: 1.35;
}

.profile-studio-comparison-selection-value{
  color: var(--text); font-size: 1rem; line-height: 1.45;
}

.profile-studio-comparison-override-note,
.profile-studio-comparison-tie-note,
.profile-studio-comparison-method-note{
  margin: 14px 0 0; color: var(--text-soft); font-size: 0.84rem; line-height: 1.58;
}

.profile-studio-comparison-tie-note{
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-md);
  background: var(--surface-soft); color: var(--text);
}

.profile-studio-comparison-board-section{ margin-top: 28px; }

.profile-studio-comparison-section-title{
  margin: 0; color: var(--text); font-size: clamp(1.1rem, 3vw, 1.35rem); line-height: 1.35;
}

.profile-studio-comparison-preference{
  margin: 8px 0 0; color: var(--text-soft); font-size: 0.88rem; line-height: 1.5;
}

.profile-studio-comparison-board{
  margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
}

.profile-studio-comparison-card{
  min-width: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(128px, 0.72fr) minmax(0, 1.28fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.profile-studio-comparison-card-selected{
  border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft);
}

.profile-studio-comparison-card-media{
  min-height: 210px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--surface-soft);
}

.profile-studio-comparison-card-image{
  width: 100%; height: 100%; min-height: 210px;
  display: block; object-fit: cover;
}

.profile-studio-comparison-card-placeholder{
  padding: 18px; color: var(--text-soft); font-size: 0.86rem; text-align: center;
}

.profile-studio-comparison-card-badges{
  position: absolute; inset: 10px 10px auto; display: flex;
  flex-wrap: wrap; gap: 6px;
}

.profile-studio-comparison-card-badge{
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 780;
  line-height: 1;
}

.profile-studio-comparison-card-badge-system,
.profile-studio-comparison-card-badge-selected{
  border-color: var(--brand); background: var(--brand-soft);
}

.profile-studio-comparison-card-body{
  min-width: 0; padding: 16px; display: flex;
  flex-direction: column; gap: 13px;
}

.profile-studio-comparison-card-header{
  display: flex; justify-content: space-between; gap: 10px; align-items: flex-start;
}

.profile-studio-comparison-card-title{
  margin: 0; color: var(--text); font-size: 1rem; line-height: 1.4;
}

.profile-studio-comparison-status{
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text-soft);
  font-size: 0.7rem;
  font-weight: 760;
  line-height: 1;
}

.profile-studio-comparison-status-choose{
  border-color: var(--brand); background: var(--brand-soft); color: var(--text);
}

.profile-studio-comparison-status-retake{ border-style: dashed; }

.profile-studio-comparison-card-section{
  display: grid; gap: 7px;
}

.profile-studio-comparison-card-section-title{
  margin: 0; color: var(--text-soft); font-size: 0.74rem;
  font-weight: 760; line-height: 1.35;
}

.profile-studio-comparison-evidence-list{
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 5px;
  color: var(--text);
  font-size: 0.84rem;
  line-height: 1.5;
}

.profile-studio-comparison-card-limitations .profile-studio-comparison-evidence-list,
.profile-studio-comparison-card-action-text{ color: var(--text-soft); }

.profile-studio-comparison-card-action-text{
  margin: 0; font-size: 0.83rem; line-height: 1.5;
}

.profile-studio-comparison-select-button{
  width: 100%; min-width: 0; margin-top: auto;
}

.profile-studio-comparison-actions,
.profile-studio-comparison-retry-actions{ margin-top: 26px; }

.profile-studio-comparison-loading-indicator{ margin-top: 22px; }

@media (max-width: 900px){
.profile-studio-comparison-board{ grid-template-columns: 1fr; }
}

@media (max-width: 700px){
.profile-studio-screen-comparison{
  margin-top: 22px; padding: 24px 18px; border-radius: var(--radius-lg);
}

.profile-studio-comparison-selection-summary{ grid-template-columns: 1fr; }

.profile-studio-comparison-headline{ max-width: none; }
}

@media (max-width: 500px){
.profile-studio-comparison-card{ grid-template-columns: 108px minmax(0, 1fr); }

  .profile-studio-comparison-card-media,
.profile-studio-comparison-card-image{ min-height: 188px; }
}

@media (max-width: 390px){
.profile-studio-comparison-card{ grid-template-columns: 1fr; }

  .profile-studio-comparison-card-media,
.profile-studio-comparison-card-image{
  min-height: 230px; max-height: 300px;
}
}

@media (prefers-reduced-motion: reduce){
.profile-studio-comparison-loading-indicator{ animation: none; }
}

/* I1989_PROFILE_STUDIO_RETAKE_WORKFLOW */
.profile-studio-retake-plan{
  min-width: 0;
  margin-top: 2px;
  padding-top: 14px;
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
}

.profile-studio-retake-heading-row{
  min-width: 0; display: flex; align-items: center;
  justify-content: space-between; gap: 10px;
}

.profile-studio-retake-kicker,
.profile-studio-retake-version,
.profile-studio-retake-title,
.profile-studio-retake-summary,
.profile-studio-retake-success-check,
.profile-studio-retake-progress{ margin: 0; }

.profile-studio-retake-kicker{
  color: var(--text-soft); font-size: 0.72rem; font-weight: 780; line-height: 1.35;
}

.profile-studio-retake-version{
  flex: 0 0 auto; color: var(--text-soft); font-size: 0.68rem; line-height: 1.35;
}

.profile-studio-retake-title{
  color: var(--text); font-size: 0.94rem; line-height: 1.42; overflow-wrap: anywhere;
}

.profile-studio-retake-summary,
.profile-studio-retake-success-check,
.profile-studio-retake-progress{
  color: var(--text-soft); font-size: 0.8rem; line-height: 1.5; overflow-wrap: anywhere;
}

.profile-studio-retake-actions-list{
  margin: 0; padding: 0; display: grid;
  gap: 8px; list-style: none;
}

.profile-studio-retake-action{
  min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr);
  align-items: start; gap: 8px;
}

.profile-studio-retake-action-category{
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text-soft);
  font-size: 0.66rem;
  font-weight: 760;
  line-height: 1.15;
  white-space: nowrap;
}

.profile-studio-retake-action-text{
  min-width: 0; color: var(--text); font-size: 0.8rem;
  line-height: 1.48; overflow-wrap: anywhere;
}

.profile-studio-retake-details{ min-width: 0; }

.profile-studio-retake-details > summary{
  width: fit-content;
  cursor: pointer;
  color: var(--text-soft);
  font-size: 0.76rem;
  font-weight: 720;
  line-height: 1.4;
}

.profile-studio-retake-actions-list-details{ margin-top: 9px; }

.profile-studio-retake-success-check strong{ color: var(--text); }

.profile-studio-retake-controls{
  min-width: 0; display: flex; flex-wrap: wrap; gap: 8px;
}

.profile-studio-retake-controls .profile-studio-button{
  min-width: 0; flex: 1 1 132px;
}

.profile-studio-retake-progress[hidden]{ display: none; }

.profile-studio-retake-plan[data-profile-studio-retake-phase="preparing"] .profile-studio-retake-progress,
.profile-studio-retake-plan[data-profile-studio-retake-phase="comparing"] .profile-studio-retake-progress{ color: var(--text); }

@media (max-width: 500px){
.profile-studio-retake-heading-row{ align-items: flex-start; }

.profile-studio-retake-action{
  grid-template-columns: 1fr; gap: 5px;
}

.profile-studio-retake-action-category{ width: fit-content; }
}

/* I1990_PROFILE_STUDIO_EXPORT_COMPLETION */
.profile-studio-screen-export{
  width: min(100%, 1040px); margin-inline: auto;
}

.profile-studio-export-crop-host,
.profile-studio-export-ready-previews{ margin-top: 24px; }

.profile-studio-crop-workspace,
.profile-studio-export-ready-previews{
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 0.72fr); gap: 22px; align-items: start;
}

.profile-studio-crop-editor-panel,
.profile-studio-circle-preview-panel,
.profile-studio-export-ready-figure,
.profile-studio-export-recovery-card{
  min-width: 0;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(20, 40, 76, 0.07);
}

.profile-studio-export-section-title{
  margin: 0; color: var(--text); font-size: 0.94rem; line-height: 1.42;
}

.profile-studio-crop-instruction,
.profile-studio-circle-preview-note,
.profile-studio-export-neutral-note,
.profile-studio-export-source-size,
.profile-studio-export-status{
  margin: 8px 0 0; color: var(--text-soft); font-size: 0.82rem;
  line-height: 1.55; overflow-wrap: anywhere;
}

.profile-studio-crop-stage{
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--line-strong, var(--line));
  border-radius: 14px;
  background: var(--surface-soft);
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.profile-studio-crop-stage-dragging{ cursor: grabbing; }

.profile-studio-crop-stage:focus-visible{
  outline: 3px solid var(--accent, #356fd6); outline-offset: 3px;
}

.profile-studio-crop-image{
  position: absolute; max-width: none; object-fit: fill;
  pointer-events: none; user-select: none;
}

.profile-studio-crop-grid{
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to right, transparent 33.1%, rgba(255,255,255,.66) 33.2%, rgba(255,255,255,.66) 33.55%, transparent 33.65%, transparent 66.35%, rgba(255,255,255,.66) 66.45%, rgba(255,255,255,.66) 66.8%, transparent 66.9%),
    linear-gradient(to bottom, transparent 33.1%, rgba(255,255,255,.66) 33.2%, rgba(255,255,255,.66) 33.55%, transparent 33.65%, transparent 66.35%, rgba(255,255,255,.66) 66.45%, rgba(255,255,255,.66) 66.8%, transparent 66.9%);
  box-shadow: inset 0 0 0 1px rgba(16, 34, 64, 0.1);
}

.profile-studio-crop-controls{
  display: flex; flex-wrap: wrap; align-items: end;
  gap: 12px; margin-top: 14px;
}

.profile-studio-crop-zoom-row{
  min-width: 0;
  flex: 1 1 220px;
  display: grid;
  grid-template-columns: auto minmax(100px, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.profile-studio-crop-control-label,
.profile-studio-crop-zoom-value{
  color: var(--text-soft); font-size: 0.78rem; font-weight: 720;
}

.profile-studio-crop-zoom{
  width: 100%; accent-color: var(--accent, #356fd6);
}

.profile-studio-crop-reset{ min-width: 116px; }

.profile-studio-circle-preview,
.profile-studio-export-ready-circle{
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 1;
  margin: 16px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-soft);
}

.profile-studio-circle-preview .profile-studio-crop-image,
.profile-studio-export-ready-circle img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.profile-studio-export-actions{ margin-top: 22px; }

.profile-studio-export-actions .profile-studio-button{
  min-width: 0; flex: 1 1 180px;
}

.profile-studio-export-ready-previews{ grid-template-columns: repeat(2, minmax(0, 1fr)); }

.profile-studio-export-ready-square{
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  object-fit: cover;
}

.profile-studio-export-ready-circle{
  width: 100%; margin-top: 0;
}

.profile-studio-export-preview-caption{
  margin-top: 10px; color: var(--text-soft); font-size: 0.78rem;
  font-weight: 720; text-align: center;
}

.profile-studio-export-file-details{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.profile-studio-export-version{
  color: var(--text); font-size: 0.86rem;
}

.profile-studio-export-file-format{
  color: var(--text-soft); font-size: 0.8rem;
}

.profile-studio-export-inline-error,
.profile-studio-export-inline-success{
  margin: 12px 0 0; padding: 10px 12px; border-radius: 10px;
  font-size: 0.8rem; line-height: 1.5;
}

.profile-studio-export-inline-error{
  border: 1px solid rgba(172, 50, 50, 0.26); background: rgba(172, 50, 50, 0.06); color: var(--text);
}

.profile-studio-export-inline-success{
  border: 1px solid var(--line); background: var(--surface-soft); color: var(--text);
}

.profile-studio-export-actions .profile-studio-export-delete-button{ flex: 0 1 auto; }

@media (max-width: 760px){
  .profile-studio-crop-workspace,
.profile-studio-export-ready-previews{ grid-template-columns: 1fr; }

.profile-studio-circle-preview{ width: min(100%, 320px); }
}

@media (max-width: 420px){
  .profile-studio-crop-editor-panel,
  .profile-studio-circle-preview-panel,
  .profile-studio-export-ready-figure,
.profile-studio-export-recovery-card{
  padding: 14px; border-radius: 14px;
}

  .profile-studio-crop-controls,
.profile-studio-export-actions{
  display: grid; grid-template-columns: 1fr;
}

.profile-studio-crop-zoom-row{ grid-template-columns: auto minmax(0, 1fr) auto; }

  .profile-studio-crop-reset,
.profile-studio-export-actions .profile-studio-button{ width: 100%; }
}

/* I1991_PROFILE_STUDIO_OFFER_AND_SAMPLE */
.profile-studio-screen-offer{
  width: min(100%, 920px); margin-inline: auto;
}

.profile-studio-screen-offer .profile-studio-title{ font-size: clamp(1.85rem, 5vw, 3rem); }

.profile-studio-offer-card{
  margin-top: 22px;
  padding: 20px;
  border: 1px solid var(--line-strong, var(--line));
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(20, 40, 76, 0.07);
}

.profile-studio-offer-card-heading{
  display: flex; align-items: flex-start; justify-content: space-between; gap: 18px;
}

.profile-studio-offer-card-heading-copy{
  min-width: 0; flex: 1 1 auto;
}

.profile-studio-offer-kicker,
.profile-studio-sample-badge{
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 760;
  line-height: 1.25;
}

.profile-studio-offer-card-title,
.profile-studio-sample-title,
.profile-studio-offer-section-title,
.profile-studio-sample-section-title{
  margin: 8px 0 0; color: var(--text); overflow-wrap: anywhere;
}

.profile-studio-offer-card-title{
  font-size: clamp(1.12rem, 2.4vw, 1.38rem); line-height: 1.35;
}

.profile-studio-offer-card-body,
.profile-studio-sample-lead,
.profile-studio-sample-final-body{
  margin: 8px 0 0; color: var(--text-soft); font-size: 0.86rem;
  line-height: 1.58; overflow-wrap: anywhere;
}

.profile-studio-offer-card-price{
  flex: 0 0 auto;
  display: grid;
  justify-items: end;
  gap: 3px;
  min-width: 112px;
  padding: 11px 13px;
  border-radius: 14px;
  background: var(--surface-soft);
}

.profile-studio-offer-price-value{
  color: var(--text); font-size: 1.08rem; line-height: 1.2; white-space: nowrap;
}

.profile-studio-offer-price-billing{
  color: var(--text-soft); font-size: 0.72rem; font-weight: 700;
}

.profile-studio-offer-highlight-list,
.profile-studio-offer-deliverable-list{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.profile-studio-offer-highlight-item,
.profile-studio-offer-deliverable{
  position: relative;
  min-width: 0;
  padding-left: 18px;
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.profile-studio-offer-highlight-item::before,
.profile-studio-offer-deliverable::before{
  content: "";
  position: absolute;
  left: 2px;
  top: 0.56em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent, #356fd6);
}

.profile-studio-offer-sample-details{
  margin-top: 18px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--surface-soft); overflow: clip;
}

.profile-studio-offer-sample-summary{
  padding: 13px 15px;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 760;
  cursor: pointer;
  user-select: none;
}

.profile-studio-offer-sample-details[open] > .profile-studio-offer-sample-summary{ border-bottom: 1px solid var(--line); }

.profile-studio-offer-sample-details-compact .profile-studio-sample{ padding: 14px; }

.profile-studio-offer-availability-title,
.profile-studio-offer-availability-body{
  display: block; margin: 14px 0 0; overflow-wrap: anywhere;
}

.profile-studio-offer-availability-title{
  color: var(--text); font-size: 0.86rem;
}

.profile-studio-offer-availability-body{
  color: var(--text-soft); font-size: 0.8rem; line-height: 1.5;
}

.profile-studio-offer-card-actions{ margin-top: 16px; }

.profile-studio-offer-deliverables,
.profile-studio-offer-checkout-summary{
  margin-top: 20px; padding: 18px; border: 1px solid var(--line);
  border-radius: 16px; background: var(--surface);
}

.profile-studio-offer-section-title{
  font-size: 0.98rem; line-height: 1.42;
}

.profile-studio-offer-checkout-summary dl{
  display: grid; gap: 0; margin: 0;
}

.profile-studio-offer-checkout-row{
  display: grid; grid-template-columns: minmax(120px, 0.75fr) minmax(0, 1.25fr); gap: 16px;
  padding: 11px 0; border-bottom: 1px solid var(--line);
}

.profile-studio-offer-checkout-row:first-child{ padding-top: 0; }

.profile-studio-offer-checkout-row:last-child{
  padding-bottom: 0; border-bottom: 0;
}

.profile-studio-offer-checkout-label,
.profile-studio-offer-checkout-value{
  margin: 0; overflow-wrap: anywhere;
}

.profile-studio-offer-checkout-label{
  color: var(--text-soft); font-size: 0.78rem; font-weight: 720;
}

.profile-studio-offer-checkout-value{
  color: var(--text); font-size: 0.88rem; font-weight: 760; text-align: right;
}

.profile-studio-offer-state{
  margin-top: 18px; padding: 13px 15px; border: 1px solid var(--line);
  border-radius: 14px; background: var(--surface-soft);
}

.profile-studio-offer-state-title,
.profile-studio-offer-state-body,
.profile-studio-offer-live-status{
  display: block; margin: 0; overflow-wrap: anywhere;
}

.profile-studio-offer-state-title{
  color: var(--text); font-size: 0.86rem;
}

.profile-studio-offer-state-body,
.profile-studio-offer-live-status{
  margin-top: 5px; color: var(--text-soft); font-size: 0.8rem; line-height: 1.5;
}

.profile-studio-offer-actions{ margin-top: 18px; }

.profile-studio-offer-actions .profile-studio-button{
  min-width: 0; flex: 1 1 210px;
}

.profile-studio-sample{
  padding: 18px; background: var(--surface);
}

.profile-studio-sample-header{
  display: grid; justify-items: start;
}

.profile-studio-sample-title{
  font-size: 1.02rem; line-height: 1.42;
}

.profile-studio-sample-section{
  margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line);
}

.profile-studio-sample-section-title{
  font-size: 0.88rem; line-height: 1.42;
}

.profile-studio-sample-candidate-grid{
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px;
}

.profile-studio-sample-candidate{
  min-width: 0; overflow: hidden; border: 1px solid var(--line);
  border-radius: 14px; background: var(--surface-soft);
}

.profile-studio-sample-candidate-recommend{ border-color: var(--accent, #356fd6); }

.profile-studio-sample-portrait{
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(145deg, var(--surface-soft), var(--line));
}

.profile-studio-sample-portrait::before{
  content: ""; position: absolute; inset: 0; opacity: 0.5;
}

.profile-studio-sample-portrait-a::before{ background: linear-gradient(145deg, rgba(53, 111, 214, 0.16), transparent 62%); }

.profile-studio-sample-portrait-b::before{ background: linear-gradient(215deg, rgba(218, 147, 69, 0.22), transparent 58%); }

.profile-studio-sample-portrait-c::before{ background: linear-gradient(145deg, rgba(105, 118, 140, 0.2), transparent 54%); }

.profile-studio-sample-portrait-head{
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 19%;
  width: 34%;
  aspect-ratio: 0.82;
  transform: translateX(-50%);
  border-radius: 46% 46% 43% 43%;
  background: var(--surface);
  box-shadow: inset 0 -8px 0 rgba(20, 40, 76, 0.05);
}

.profile-studio-sample-portrait-shoulders{
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: -8%;
  width: 72%;
  height: 43%;
  transform: translateX(-50%);
  border-radius: 50% 50% 18% 18%;
  background: var(--text-soft);
  opacity: 0.48;
}

.profile-studio-sample-portrait-circle{
  border-radius: 50%; box-shadow: inset 0 0 0 2px var(--surface), 0 0 0 1px var(--line);
}

.profile-studio-sample-candidate-copy{
  display: grid; gap: 4px; padding: 10px;
}

.profile-studio-sample-candidate-label,
.profile-studio-sample-candidate-status,
.profile-studio-sample-candidate-reason{
  min-width: 0; overflow-wrap: anywhere;
}

.profile-studio-sample-candidate-label{
  color: var(--text-soft); font-size: 0.7rem; font-weight: 720;
}

.profile-studio-sample-candidate-status{
  color: var(--text); font-size: 0.8rem;
}

.profile-studio-sample-candidate-reason{
  margin: 0; color: var(--text-soft); font-size: 0.72rem; line-height: 1.45;
}

.profile-studio-sample-retake-list{
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
  padding-left: 22px;
  color: var(--text);
  font-size: 0.78rem;
  line-height: 1.5;
}

.profile-studio-sample-retake-check{
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--text-soft);
  font-size: 0.76rem;
  line-height: 1.5;
}

.profile-studio-sample-completed-heading{
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}

.profile-studio-sample-selected-badge{
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--accent, #356fd6);
  color: var(--surface);
  font-size: 0.68rem;
  font-weight: 780;
}

.profile-studio-sample-preview-grid{
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px;
}

.profile-studio-sample-preview{
  min-width: 0;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.profile-studio-sample-preview .profile-studio-sample-portrait{ border-radius: 10px; }

.profile-studio-sample-preview-circle .profile-studio-sample-portrait{ border-radius: 50%; }

.profile-studio-sample-preview-label{
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 720;
  text-align: center;
  overflow-wrap: anywhere;
}

.profile-studio-sample-file,
.profile-studio-sample-service{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.profile-studio-sample-file-title,
.profile-studio-sample-service-title{
  color: var(--text-soft); font-size: 0.74rem; font-weight: 720;
}

.profile-studio-sample-file-state,
.profile-studio-sample-service-body{
  margin: 0;
  color: var(--text);
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: right;
  overflow-wrap: anywhere;
}

@media (max-width: 760px){
  .profile-studio-offer-highlight-list,
.profile-studio-offer-deliverable-list{ grid-template-columns: 1fr; }

.profile-studio-sample-candidate-grid{ grid-template-columns: 1fr; }

.profile-studio-sample-candidate{
  display: grid; grid-template-columns: 112px minmax(0, 1fr);
}

.profile-studio-sample-candidate .profile-studio-sample-portrait{
  height: 100%; min-height: 112px;
}
}

@media (max-width: 520px){
  .profile-studio-offer-card,
  .profile-studio-offer-deliverables,
.profile-studio-offer-checkout-summary{
  padding: 15px; border-radius: 15px;
}

.profile-studio-offer-card-heading{ display: grid; }

.profile-studio-offer-card-price{
  justify-items: start; width: 100%;
}

.profile-studio-offer-checkout-row{
  grid-template-columns: 1fr; gap: 4px;
}

.profile-studio-offer-checkout-value{ text-align: left; }

.profile-studio-offer-actions{
  display: grid; grid-template-columns: 1fr;
}

.profile-studio-offer-actions .profile-studio-button{ width: 100%; }

.profile-studio-sample{ padding: 14px; }

.profile-studio-sample-candidate{ grid-template-columns: 92px minmax(0, 1fr); }

.profile-studio-sample-candidate .profile-studio-sample-portrait{ min-height: 104px; }

.profile-studio-sample-preview-grid{ grid-template-columns: 1fr; }

  .profile-studio-sample-file,
.profile-studio-sample-service{
  align-items: flex-start; flex-direction: column;
}

  .profile-studio-sample-file-state,
.profile-studio-sample-service-body{ text-align: left; }
}

/* I1992_PROFILE_STUDIO_TOSS_PAYMENT */
.profile-studio-payment-step{ max-width: 720px; }

.profile-studio-payment-step[aria-busy="true"]::after{
  content: "";
  width: 30px;
  height: 30px;
  margin-top: 18px;
  border: 3px solid var(--line);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: profile-studio-spin 0.8s linear infinite;
}

.profile-studio-payment-lead{ max-width: 640px; }

.profile-studio-payment-identity{
  margin: 28px 0 0;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: minmax(90px, 0.55fr) minmax(0, 1.45fr);
  gap: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.profile-studio-payment-identity dt,
.profile-studio-payment-identity dd{
  min-width: 0; margin: 0; padding: 10px 0;
  border-bottom: 1px solid var(--line); overflow-wrap: anywhere;
}

.profile-studio-payment-identity dt{
  color: var(--text-soft); font-size: 0.86rem; font-weight: 680;
}

.profile-studio-payment-identity dd{
  color: var(--text); font-size: 0.92rem; font-weight: 760; text-align: right;
}

.profile-studio-payment-identity dt:nth-last-of-type(1),
.profile-studio-payment-identity dd:nth-last-of-type(1){ border-bottom: 0; }

.profile-studio-payment-recovery,
.profile-studio-comparison-progress{
  margin-top: 20px; padding: 18px 20px; border: 1px solid var(--line);
  border-radius: var(--radius-lg); background: var(--surface-soft);
}

.profile-studio-payment-recovery-error{
  border-color: #dc3545; background: #fff5f5;
}

.profile-studio-payment-recovery-title,
.profile-studio-comparison-progress-title{
  margin: 0; color: var(--text); font-size: 1rem; line-height: 1.45;
}

.profile-studio-progress-current{
  margin: 8px 0 0; color: var(--brand-strong); font-weight: 760; line-height: 1.5;
}

.profile-studio-payment-progress-list,
.profile-studio-comparison-progress-list{
  margin: 14px 0 0; padding: 0; display: grid;
  gap: 10px; list-style: none;
}

.profile-studio-payment-progress-item,
.profile-studio-comparison-progress-item{
  position: relative; min-height: 24px; padding-left: 32px;
  color: var(--text-soft); line-height: 1.5;
}

.profile-studio-payment-progress-item::before,
.profile-studio-comparison-progress-item::before{
  content: "";
  position: absolute;
  left: 2px;
  top: 3px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
}

.profile-studio-payment-progress-item[data-state="complete"],
.profile-studio-comparison-progress-item[data-state="complete"]{ color: var(--text); }

.profile-studio-payment-progress-item[data-state="complete"]::before,
.profile-studio-comparison-progress-item[data-state="complete"]::before{
  content: "✓";
  display: grid;
  place-items: center;
  border-color: #198754;
  background: #198754;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.profile-studio-payment-progress-item[data-state="active"],
.profile-studio-comparison-progress-item[data-state="active"]{
  color: var(--brand-strong); font-weight: 760;
}

.profile-studio-payment-progress-item[data-state="active"]::before,
.profile-studio-comparison-progress-item[data-state="active"]::before{
  border-color: var(--brand); border-top-color: transparent; animation: profile-studio-spin 0.8s linear infinite;
}

.profile-studio-payment-progress-item[data-state="error"]{
  color: #b02a37; font-weight: 760;
}

.profile-studio-payment-progress-item[data-state="error"]::before{
  content: "!";
  display: grid;
  place-items: center;
  border-color: #dc3545;
  background: #dc3545;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.profile-studio-payment-progress-elapsed,
.profile-studio-comparison-progress-elapsed{
  margin: 14px 0 0; color: var(--text-soft); font-size: 0.86rem; line-height: 1.5;
}

.profile-studio-payment-actions{ margin-top: 24px; }

.profile-studio-payment-actions .profile-studio-button{
  min-width: 0; flex: 1 1 220px;
}

@media (prefers-reduced-motion: reduce){
  .profile-studio-payment-progress-item[data-state="active"]::before,
.profile-studio-comparison-progress-item[data-state="active"]::before{ animation-duration: 1.8s; }
}

@media (max-width: 520px){
.profile-studio-payment-identity{
  grid-template-columns: 1fr; padding: 14px 16px;
}

.profile-studio-payment-identity dt{
  padding-bottom: 3px; border-bottom: 0;
}

.profile-studio-payment-identity dd{
  padding-top: 0; text-align: left;
}

.profile-studio-payment-actions{
  display: grid; grid-template-columns: 1fr;
}
}

/* I1993: private paid lifecycle, reopen, and account job rail */
/* State-owned hidden must win over authored grid/inline-flex presentation. */
.profile-studio-paid-result [hidden]{ display: none !important; }

.profile-studio-paid-result,
.profile-studio-reopen-state{
  width: min(100%, 760px); margin: 0 auto;
}

.profile-studio-paid-result-header{
  display: grid; gap: 8px; margin-bottom: 22px;
}

.profile-studio-paid-live-status{
  min-height: 1.5em; margin: 14px 0; color: var(--text-soft);
  font-size: .9rem; font-weight: 680;
}

.profile-studio-paid-candidate-grid{
  display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 12px; margin: 18px 0 24px;
}

.profile-studio-paid-candidate-item{
  display: grid; align-content: start; gap: 8px; min-width: 0;
}

.profile-studio-paid-candidate-delivery-group{
  display: grid;
  gap: 4px;
  min-width: 0;
  margin: 0;
  padding: 0 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.profile-studio-paid-candidate-delivery{
  margin: 0; color: var(--text-soft); font-size: .8rem;
  line-height: 1.5; overflow-wrap: anywhere;
}

.profile-studio-paid-candidate-delivery-details{
  min-width: 0;
  margin: 0;
  color: var(--text-soft);
  font-size: .78rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.profile-studio-paid-candidate-delivery-details > summary{
  padding-block: 8px; cursor: pointer;
}

.profile-studio-paid-candidate-delivery-details > p{ margin: 6px 0 0; }

.profile-studio-paid-candidate{
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.profile-studio-paid-candidate[data-selected="true"]{
  border-width: 2px; border-color: var(--brand);
}

.profile-studio-paid-candidate img{
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: calc(var(--radius-md) - 5px);
}

.profile-studio-paid-selected{
  color: var(--brand-strong, var(--brand)); font-size: .82rem; font-weight: 760;
}

.profile-studio-paid-section,
.profile-studio-paid-form,
.profile-studio-paid-delete-confirm{
  display: grid;
  gap: 12px;
  margin-top: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.profile-studio-paid-section-title{
  margin: 0; font-size: 1rem;
}

.profile-studio-paid-form select{
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
}

.profile-studio-paid-primary-actions,
.profile-studio-paid-utility-actions{ margin-top: 18px; }

.profile-studio-paid-utility-actions{
  display: flex; flex-wrap: wrap; align-items: flex-start;
}

.profile-studio-paid-utility-actions > .profile-studio-button{
  flex: 0 1 auto; align-self: flex-start; max-width: 100%;
}

.profile-studio-paid-utility-actions > .profile-studio-paid-delete-confirm{
  flex: 0 0 100%; width: 100%; min-width: 0; margin-top: 0;
}

.profile-studio-button-quiet{
  background: transparent; color: var(--text-soft);
}

.profile-studio-account-claim{
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.profile-studio-account-claim-lead,
.profile-studio-account-claim-status{
  margin: 0; color: var(--text-soft); font-size: .88rem; line-height: 1.55;
}

.profile-studio-account-claim-status:empty{ display: none; }

.profile-studio-account-claim-controls,
.profile-studio-account-claim-providers{
  display: flex; flex-wrap: wrap; gap: 8px;
}

.profile-studio-account-claim[data-profile-studio-account-claim-state="saved"]{ border-style: dashed; }

.my-page-profile-studio{
  display: grid; gap: 12px; margin: 18px 0 22px;
}

.my-page-profile-studio > h3{
  margin: 0; font-size: 1rem;
}

.my-page-profile-studio-card{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.my-page-profile-studio-card > div{
  display: grid; gap: 3px;
}

.my-page-profile-studio-card span,
.my-page-profile-studio-card p{
  margin: 0; color: var(--text-soft); font-size: .82rem;
}

.my-page-profile-studio-card .auth-chip-button{
  grid-column: 2; grid-row: 1 / span 2; text-decoration: none;
}

@media (max-width: 520px){
.profile-studio-paid-candidate-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }

.my-page-profile-studio-card{ grid-template-columns: 1fr; }

.my-page-profile-studio-card .auth-chip-button{
  grid-column: 1; grid-row: auto; width: 100%; text-align: center;
}
}

/* I2022: private Profile Coach conversation */
.profile-studio-page,
.profile-studio-shell,
.profile-studio-app,
.profile-studio-screen,
.profile-studio-coach,
.profile-studio-coach *{
  box-sizing: border-box; min-width: 0; max-width: 100%;
}

.profile-studio-coach{
  --profile-studio-coach-viewport-height: 100vh;
  --profile-studio-coach-viewport-width: 100vw;
  --profile-studio-coach-viewport-offset-top: 0;
  --profile-studio-coach-composer-height: 0;
  --profile-studio-coach-safe-top: env(safe-area-inset-top, 0px);
  --profile-studio-coach-safe-right: env(safe-area-inset-right, 0px);
  --profile-studio-coach-safe-bottom: env(safe-area-inset-bottom, 0px);
  --profile-studio-coach-safe-left: env(safe-area-inset-left, 0px);
  width: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow-x: hidden;
}

@supports (height: 100svh){
.profile-studio-coach{ --profile-studio-coach-viewport-height: 100svh; }
}

@supports (height: 100dvh){
.profile-studio-coach{ --profile-studio-coach-viewport-height: 100dvh; }
}

@supports (overflow: clip){
.profile-studio-coach{ overflow-x: clip; }
}

.profile-studio-coach [hidden]{ display: none; }

.profile-studio-coach :where(p, span, strong, label, button, figcaption){
  max-inline-size: 100%; overflow-wrap: anywhere; word-break: break-word;
}

.profile-studio-coach-scroll{
  width: 100%;
  min-height: 0;
  max-height: min(58vh, 560px);
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 1px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: auto;
  overflow-anchor: none;
  scroll-padding-block: 12px;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

@supports (overflow: clip){
.profile-studio-coach-scroll{ overflow-x: clip; }
}

.profile-studio-coach-scroll:focus-visible{
  outline: 3px solid var(--brand-soft); outline-offset: 2px;
}

.profile-studio-coach-header{
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start;
}

.profile-studio-coach-heading-group{
  display: grid; gap: 5px;
}

.profile-studio-coach-title,
.profile-studio-coach-lead,
.profile-studio-coach-private-line,
.profile-studio-coach-status,
.profile-studio-coach-empty,
.profile-studio-coach-boundary,
.profile-studio-coach-recharge-title,
.profile-studio-coach-recharge-price,
.profile-studio-coach-recharge-note,
.profile-studio-coach-message-meta,
.profile-studio-coach-message-text{
  margin: 0; overflow-wrap: anywhere;
}

.profile-studio-coach-title{
  color: var(--text); font-size: 1.15rem; line-height: 1.35;
}

.profile-studio-coach-lead{
  max-width: 58ch; color: var(--text); font-size: .94rem; line-height: 1.6;
}

.profile-studio-coach-private-line,
.profile-studio-coach-status,
.profile-studio-coach-empty{
  color: var(--text-soft); font-size: .86rem; line-height: 1.55;
}

.profile-studio-coach-status:empty,
.profile-studio-coach-photo-status:empty{ display: none; }

.profile-studio-coach-balance{
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--brand-strong, var(--brand));
  font-size: .83rem;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
}

.profile-studio-coach-scroll > [data-profile-studio-coach-action="refresh"]{ justify-self: start; }

.profile-studio-coach-messages{
  width: 100%;
  max-height: min(58vh, 560px);
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  list-style: none;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-padding-block: 12px;
}

.profile-studio-coach-scroll > .profile-studio-coach-messages{
  max-height: none; overflow: visible; overscroll-behavior: auto;
}

.profile-studio-coach-message{
  width: min(88%, 590px);
  max-width: 100%;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  contain: inline-size;
}

.profile-studio-coach-message.is-user{
  justify-self: end; border-color: var(--brand); background: var(--brand-soft);
}

.profile-studio-coach-message.is-assistant{ justify-self: start; }

.profile-studio-coach-message-meta{
  color: var(--text-soft); font-size: .75rem; font-weight: 760; line-height: 1.35;
}

.profile-studio-coach-message-text{
  color: var(--text);
  font-size: .92rem;
  line-height: 1.62;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.profile-studio-coach-message-attachment{
  color: var(--text-soft); font-size: .78rem; font-weight: 680;
}

.profile-studio-coach-boundary{
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  color: var(--text);
  font-size: .88rem;
  line-height: 1.55;
}

.profile-studio-coach-recharge{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.profile-studio-coach-recharge > div{
  display: grid; gap: 3px;
}

.profile-studio-coach-recharge-title{
  color: var(--text); font-size: .96rem; line-height: 1.4;
}

.profile-studio-coach-recharge-price,
.profile-studio-coach-recharge-note{
  color: var(--text-soft); font-size: .85rem; line-height: 1.4;
}

.profile-studio-coach-recharge-note{ font-size: .8rem; }

.profile-studio-coach-recharge-actions,
.profile-studio-coach-photo-actions,
.profile-studio-coach-composer-controls{
  display: flex; flex-wrap: wrap; gap: 8px;
}

.profile-studio-coach-composer{
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 11px;
  min-height: 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  scroll-margin-bottom: max(8px, var(--profile-studio-coach-safe-bottom));
}

.profile-studio-coach-composer-label{
  display: grid;
  gap: 7px;
  color: var(--text);
  font-size: .88rem;
  font-weight: 740;
  line-height: 1.45;
}

.profile-studio-coach-textarea{
  width: 100%;
  min-height: 112px;
  max-height: min(34vh, 260px);
  resize: vertical;
  padding: 12px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.profile-studio-coach-textarea:focus-visible,
.profile-studio-coach-photo-input:focus-visible + .profile-studio-button{
  outline: 3px solid var(--brand-soft); outline-offset: 2px; border-color: var(--brand);
}

.profile-studio-coach-character-count{
  justify-self: end; color: var(--text-soft); font-size: .76rem; font-variant-numeric: tabular-nums;
}

.profile-studio-coach-photo-area{
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}

.profile-studio-coach-photo-input{
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.profile-studio-coach-photo-progress{
  width: min(100%, 220px); height: 8px;
}

.profile-studio-coach-photo-status{
  flex: 1 1 180px;
  min-width: 0;
  color: var(--text-soft);
  font-size: .82rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.profile-studio-coach-photo-preview{
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.profile-studio-coach-photo-preview img{
  width: 76px;
  height: 76px;
  max-width: 100%;
  display: block;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.profile-studio-coach-photo-preview figcaption{
  display: grid; gap: 7px; color: var(--text);
  font-size: .84rem; line-height: 1.45;
}

.profile-studio-coach-composer-controls{ justify-content: flex-end; }

.profile-studio-coach .profile-studio-button{
  min-width: 44px; min-height: 44px; max-width: 100%;
  white-space: normal; overflow-wrap: anywhere;
}

.profile-studio-coach-photo-actions .profile-studio-button,
.profile-studio-coach-composer-controls .profile-studio-button{ min-height: 44px; }

@media (max-width: 767px), (max-width: 900px) and (max-height: 520px){
  .profile-studio-coach{
    width: 100%;
    height: calc(var(--profile-studio-coach-viewport-height, 100vh) - 8px);
    min-height: 0;
    max-height: calc(var(--profile-studio-coach-viewport-height, 100vh) - 8px);
    gap: 8px;
    margin-top: 16px;
    padding-top: max(12px, var(--profile-studio-coach-safe-top));
    padding-right: max(12px, var(--profile-studio-coach-safe-right));
    padding-bottom: max(10px, var(--profile-studio-coach-safe-bottom));
    padding-left: max(12px, var(--profile-studio-coach-safe-left));
    border-radius: var(--radius-md);
  }

  .profile-studio-coach-scroll{
    min-height: 0;
    max-height: none;
    gap: 12px;
    padding: 1px 1px max(12px, calc(var(--profile-studio-coach-composer-height) * .08));
    overflow-y: auto;
    overscroll-behavior-y: auto;
  }

.profile-studio-coach-header{
  grid-template-columns: minmax(0, 1fr) auto; gap: 8px;
}

.profile-studio-coach-balance{ align-self: start; }

.profile-studio-coach-messages{ padding: 10px; }

.profile-studio-coach-message{ width: min(94%, 590px); }

.profile-studio-coach-recharge{ grid-template-columns: minmax(0, 1fr); }

.profile-studio-coach-recharge-actions .profile-studio-button{ width: 100%; }

.profile-studio-coach-composer{
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; padding-top: 8px;
}

  .profile-studio-coach-composer-label,
  .profile-studio-coach-character-count,
.profile-studio-coach-photo-preview{ grid-column: 1 / -1; }

.profile-studio-coach-photo-area{
  grid-column: 1; display: grid; grid-template-columns: minmax(0, 1fr); align-content: end;
}

  .profile-studio-coach-photo-area .profile-studio-button,
  .profile-studio-coach-composer-controls,
.profile-studio-coach-composer-controls .profile-studio-button{ width: 100%; }

.profile-studio-coach-composer-controls{
  grid-column: 2; display: grid; grid-template-columns: repeat(auto-fit, minmax(44px, 1fr)); align-content: end;
}

.profile-studio-coach-textarea{
  min-height: 92px; max-height: min(28vh, 180px); resize: none;
}

.profile-studio-coach-photo-preview{
  grid-template-columns: 56px minmax(0, 1fr); gap: 8px; padding: 8px;
}

.profile-studio-coach-photo-preview img{
  width: 56px; height: 56px;
}

.profile-studio-coach[data-profile-studio-coach-keyboard="true"]{
  gap: 6px; padding-top: max(8px, var(--profile-studio-coach-safe-top)); padding-bottom: max(6px, var(--profile-studio-coach-safe-bottom));
}

.profile-studio-coach[data-profile-studio-coach-keyboard="true"] .profile-studio-coach-scroll{ gap: 8px; }

.profile-studio-coach[data-profile-studio-coach-keyboard="true"] .profile-studio-coach-composer{
  gap: 6px; padding-top: 6px;
}

.profile-studio-coach[data-profile-studio-coach-keyboard="true"] .profile-studio-coach-composer-label{
  gap: 4px; font-size: .8rem;
}

.profile-studio-coach[data-profile-studio-coach-keyboard="true"] .profile-studio-coach-textarea{
  min-height: 64px; max-height: 88px;
}

.profile-studio-coach[data-profile-studio-coach-keyboard="true"] .profile-studio-coach-photo-preview{
  grid-template-columns: 44px minmax(0, 1fr); padding: 6px;
}

.profile-studio-coach[data-profile-studio-coach-keyboard="true"] .profile-studio-coach-photo-preview img{
  width: 44px; height: 44px;
}
}

@media (max-width: 360px){
.profile-studio-coach-header{ grid-template-columns: minmax(0, 1fr); }

.profile-studio-coach-balance{ justify-self: start; }

.profile-studio-coach-message{ width: 100%; }
}

@media (max-height: 420px) and (orientation: landscape){
.profile-studio-coach-title{ font-size: 1rem; }

  .profile-studio-coach-lead,
.profile-studio-coach-private-line{
  font-size: .78rem; line-height: 1.4;
}

.profile-studio-coach-textarea{
  min-height: 64px; max-height: 82px;
}
}


