/* Approved compact directory: gradient hero, native-ratio video and adaptive square tiles. */
.portrait-home .intro h1{font-family:Arial,sans-serif;font-weight:800;line-height:1.06;letter-spacing:-.045em}
.portrait-home .intro h1 .hero-gradient{display:table;width:max-content;max-width:100%;color:#a91eff;background:linear-gradient(90deg,#a91eff 0%,#e12bcd 50%,#ff246f 100%);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;padding:.04em 0 .08em}
.portrait-home .hero-actions{display:flex;align-items:center;flex-wrap:wrap;gap:16px 24px;margin-top:24px}
.portrait-home .hero-actions .button{background:#f26727;color:#fff;border-color:#f26727;min-height:46px;padding:12px 22px}
.portrait-home .hero-actions .text-button{color:#183c29;text-decoration:underline;text-underline-offset:4px}
.portrait-home .header .mobile-menu-toggle{display:none}
.portrait-home .directory-main>.filter-toggle{display:none}

.portrait-home .creator-card .card-languages{display:flex;flex-direction:column;gap:7px;min-width:0;--language-value-size:12px;font-size:var(--language-value-size);line-height:1.4}
.portrait-home .creator-card .card-language-group{min-width:0}
.portrait-home .creator-card .card-language-group h4{margin:0 0 4px;font-size:11px;line-height:1.3;font-weight:700;letter-spacing:0;text-transform:none;color:#183c29}
.portrait-home .creator-card .card-language-group p{margin:0;white-space:normal;overflow-wrap:break-word;word-break:normal;color:#314437}
.portrait-home .creator-card .dialect-summary{display:flex;align-items:center;flex-wrap:wrap;gap:4px;min-width:0}
.portrait-home .creator-card .dialect-summary-mobile{display:none}
.portrait-home .creator-card .dialect-tag{font-size:var(--language-value-size);font-weight:400;line-height:1.4;padding:3px 6px;background:#fff0e5;color:#a54a16;overflow-wrap:break-word;word-break:normal}
.portrait-home .creator-card .dialect-language{font-size:inherit;font-weight:inherit;color:inherit}
.portrait-home .dialect-more{display:inline-flex;align-items:center;justify-content:center;min-width:26px;min-height:25px;padding:2px 5px;border:1px solid #ed915f;border-radius:6px;background:#fff0e5;color:#a54a16;font-size:inherit;line-height:1.3;font-weight:700;white-space:nowrap}
#dialect-details{position:fixed;inset:auto;margin:0;padding:18px;border:1px solid #d6e0d8;border-radius:14px;background:#fff;color:#183c29;box-shadow:0 12px 40px #183c2924;overflow:auto;overscroll-behavior:contain;max-width:calc(var(--screen-width,100vw) - 16px);font:14px/1.5 Arial,sans-serif}
#dialect-details::backdrop{background:#16352214}
.dialect-details-top{display:flex;justify-content:space-between;align-items:center;gap:12px;position:sticky;top:-18px;background:#fff;padding:4px 0 10px;z-index:1}
.dialect-details-top h2{font-size:19px;line-height:1.3;margin:0}
.dialect-details-top button{display:grid;place-items:center;width:34px;height:34px;flex:none;font-size:25px;border:0;border-radius:50%;color:#31563c;background:#f1f5ee}
#dialect-details .dialect-creator-name{margin:0 0 14px;color:#687b6d;font-size:12px}
#dialect-details dl{margin:0;display:flex;flex-direction:column;gap:14px}
#dialect-details dl>div{min-width:0}
#dialect-details dt{font-weight:700;margin-bottom:6px}
#dialect-details dd{display:flex;flex-wrap:wrap;gap:6px;margin:0}
#dialect-details .dialect-tag{font-size:14px;background:#fff0e5;color:#a54a16;overflow-wrap:break-word;word-break:normal}
#dialect-details .dialect-unspecified{font-size:12px;color:#768279}

/* A fixed video stage sets the height; only the social mosaic adapts. */
.portrait-home .creator-card .mixed-work[data-video-count="1"] .work-socials[data-social-count]{display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;width:100%;height:var(--card-preview-height);max-width:calc((var(--card-preview-height) - var(--mix-gap) * (var(--mosaic-shape) - 1)) / var(--mosaic-shape));gap:var(--mix-gap);grid-template-columns:none;grid-template-rows:none;min-width:0}
.portrait-home .creator-card .mixed-work .social-mosaic-row{display:grid;grid-template-columns:repeat(var(--row-squares),minmax(0,1fr));gap:var(--mix-gap);width:100%;flex:none;min-width:0}
.portrait-home .creator-card .mixed-work .work-socials[data-social-count] .social-mosaic-row .work-social{grid-column:auto;width:100%;height:auto;min-height:0;aspect-ratio:1;padding:4px;align-self:start}
.portrait-home .creator-card .mixed-work .social-mosaic-row .social-platform-icon{width:56%;height:auto;max-width:54px;max-height:none;aspect-ratio:1}
.portrait-home .creator-card .mixed-work .work-preview video{object-fit:contain;background:transparent}

@media(max-width:600px){
 .portrait-home .header{display:flex;align-items:center;flex-wrap:wrap;padding:14px 16px;gap:12px;min-height:65px;height:auto}
 .portrait-home .header .logo{margin-right:auto;flex:none}
 .portrait-home .header .mobile-menu-toggle{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:40px;height:40px;padding:8px;border:1px solid #dce5df;border-radius:8px;background:#fff;color:#183c29;order:2}
 .portrait-home .mobile-menu-toggle span{width:19px;height:2px;background:currentColor;border-radius:1px}
 .portrait-home .header nav{display:none;order:4;flex-basis:100%;justify-content:flex-start;gap:18px;margin:0;padding:10px 0 0}
 .portrait-home .header #account-nav{display:flex;order:1;width:auto;flex-basis:auto;flex-grow:0;gap:7px;margin:0;padding:0}
 .portrait-home .header:not(.menu-open) #account-nav>:not(.notification-bell){display:none}
 .portrait-home .header.menu-open nav{display:flex}
 .portrait-home .header.menu-open #account-nav{order:5;width:100%;flex-basis:100%;justify-content:flex-start;padding-top:3px;flex-wrap:wrap}
 .portrait-home .header.menu-open .mobile-menu-toggle{border-color:#f26727}
 .portrait-home .intro{padding:26px 18px 20px;gap:20px;min-height:0}
 .portrait-home .intro h1{font-size:clamp(35px,10vw,54px);letter-spacing:-.045em;margin-top:10px}
 .portrait-home .intro .hero-slogan{font-size:15px;line-height:1.5;max-width:340px;margin-top:12px}
 .portrait-home .hero-actions{gap:13px;margin-top:20px;flex-direction:column;align-items:stretch}
 .portrait-home .hero-actions .button{width:100%;min-height:46px;font-size:15px}
 .portrait-home .hero-actions .text-button{align-self:center;font-size:13px}
 .portrait-home .hero-featured{max-width:280px;padding:7px 6px;width:100%;align-self:center}
 .portrait-home .directory-main>.filter-toggle{display:flex;width:100%;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:12px 15px;border:1px solid #e1e4d9;border-radius:12px;background:#faf7ef;color:#183c29;text-align:left;font-size:14px;font-weight:700;margin-bottom:12px}
 .portrait-home .directory-controls{display:none}
 .portrait-home .filters-open .directory-controls{display:block}
 .portrait-home .creator-card .card-languages{gap:6px;--language-value-size:11px}
 .portrait-home .creator-card .card-language-group h4{font-size:10px;letter-spacing:0;margin-bottom:3px}
 .portrait-home .creator-card .dialect-summary-desktop{display:none}
 .portrait-home .creator-card .dialect-summary-mobile{display:flex}
 .portrait-home .creator-card .dialect-tag{font-size:var(--language-value-size);padding:3px 5px}
 .portrait-home .creator-card .dialect-language{font-size:inherit}
 #dialect-details{border-radius:18px 18px 12px 12px;padding:18px}
 #dialect-details::before{content:'';display:block;width:35px;height:4px;margin:-8px auto 12px;border-radius:6px;background:#d4dbd3}
 #dialect-details::backdrop{background:#14321f55}
}
@media(forced-colors:active){.portrait-home .intro h1 .hero-gradient{background:none;-webkit-text-fill-color:CanvasText;color:CanvasText}}

/* All directory controls stay visible; identity replaces language summaries. */
.portrait-home .directory-controls{display:block!important}
.portrait-home .primary-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 16px}
.portrait-home .primary-filters>*{min-width:0;max-width:100%}
.portrait-home .primary-filters>div>span{display:block;font-size:11px;color:#4d6254;margin-bottom:7px}
.portrait-home .primary-filters .range-inputs{min-width:0}
.portrait-home .primary-filters .range-inputs input{min-width:0;width:100%}
.portrait-home .filter-toolbar{margin-top:14px}
.portrait-home .filter-toolbar .reset{margin-left:auto}
.portrait-home .card-identity{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 10px;margin:0 0 8px;min-width:0}
.portrait-home .card-identity>div{min-width:0}
.portrait-home .card-identity dt{font-size:11px;font-weight:700;color:#183c29;margin-bottom:3px}
.portrait-home .card-identity dd{font-size:12px;line-height:1.4;color:#526457;margin:0;overflow-wrap:break-word;word-break:normal}
.profile-identity-fields{padding:12px;border:1px solid #f5c9a8;border-radius:10px;background:#fffaf5;min-width:0}
.profile-identity-fields .helper{margin:10px 0 0}
@media(max-width:800px){.portrait-home .primary-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.portrait-home .primary-filters>.budget-field,.portrait-home .primary-filters>.filter-onsite{grid-column:1/-1}.portrait-home .primary-filters .choice-trigger,.portrait-home .primary-filters input,.portrait-home .primary-filters select{font-size:16px;min-height:42px}.portrait-home .card-identity{gap:6px}.portrait-home .card-identity dd{font-size:11px}}
@media(max-width:420px){.portrait-home .card-identity{grid-template-columns:minmax(0,1fr)}.profile-identity-fields .form-grid{grid-template-columns:minmax(0,1fr)}}

@media(max-width:800px){
.portrait-home .primary-filters>.filter-country{order:1}.portrait-home .primary-filters>.filter-city{order:2}.portrait-home .primary-filters>.filter-service{order:3}.portrait-home .primary-filters>.filter-category{order:4}.portrait-home .primary-filters>.filter-nationality{order:5}.portrait-home .primary-filters>.filter-ethnicity{order:6}.portrait-home .primary-filters>.filter-onsite{order:7}.portrait-home .primary-filters>.budget-field{order:8}.portrait-home .primary-filters>.filter-gender{order:9}.portrait-home .primary-filters>div:has([name=ageMin]){order:10}.portrait-home .primary-filters>div:has([name=heightMin]){order:11}.portrait-home .primary-filters>div:has([name=weightMin]){order:12}
}

/* Keep identity fields readable without changing saved identities. */
.profile-identity-fields{grid-column:1/-1}
.profile-identity-fields h4{margin:0 0 6px;font-size:16px;color:#183c29}
.profile-identity-fields .identity-example{margin:0 0 14px;font-size:13px;line-height:1.5;color:#526457}
.profile-identity-fields .identity-field-help{display:block;margin-top:7px;font-size:12px;line-height:1.5;font-weight:400;color:#526457}
.profile-identity-fields .identity-selection-note{padding:10px 12px;margin:12px 0 0;border-left:3px solid #ce702c;background:#fff0e5;font-size:13px;line-height:1.5;color:#783e1c}
.choice-menu .choice-identity-help{margin:0 0 8px;padding:6px;font-size:12px;line-height:1.45;color:#526457;white-space:normal;text-transform:none;letter-spacing:normal;font-weight:400}

/* Owner controls are separate from public navigation and fit narrow cards. */
.owner-edit-slot:empty{display:none}.owner-edit-slot{display:inline-flex;max-width:100%;margin:4px 0}.marketplace .owner-edit-button{font-size:14px!important;line-height:1.3!important;min-height:36px;padding:7px 11px!important;white-space:normal;overflow-wrap:anywhere}.owner-editor-notice{background:#fff0e5;color:#8a3e16;padding:12px;border-radius:10px;font-size:14px}/* A stable photo frame in guest and owner views; sibling edit buttons never size the image. */
.portrait-home .hero-creator-frame{position:relative;width:34%;flex:1 1 0;max-width:210px;min-width:0;}
.portrait-home .hero-creator-frame:nth-child(2){margin-left:-9px;z-index:1}
.portrait-home .hero-creator-frame:nth-child(3){margin-left:-9px}
.portrait-home .hero-creator-frame:hover,.portrait-home .hero-creator-frame:focus-within{z-index:3}
.portrait-home .hero-creator-frame .hero-creator{display:block;width:100%;max-width:none;height:auto;flex:none;aspect-ratio:4/5;transform:none;margin:0;box-sizing:border-box;transform:rotate(-7deg)}
.portrait-home .hero-creator-frame:nth-child(2) .hero-creator{transform:translateY(-12px)}
.portrait-home .hero-creator-frame:nth-child(3) .hero-creator{transform:rotate(7deg)}
.portrait-home .hero-creator-frame .hero-creator:hover,.portrait-home .hero-creator-frame .hero-creator:focus-visible{transform:translateY(-18px)}
.portrait-home .hero-creator-frame .owner-edit-slot{display:flex;justify-content:center;position:relative;width:calc(100% - 16px);margin:8px auto 0}
.portrait-home .hero-creator-frame .owner-edit-slot:empty{display:none}
.portrait-home .hero-creator-frame .owner-edit-button{max-width:100%;min-height:44px}
.profile-heading .owner-edit-slot{flex:none}
