/* Shared responsive layout. Keep content within its container, without masking overflow. */
html body[data-page] .site-header{display:grid;grid-template-columns:minmax(0,250px) minmax(0,1fr);height:auto;min-height:0;width:100%;max-width:100%;padding:14px 24px;gap:12px 24px;align-items:center;box-sizing:border-box}
html body[data-page] .site-header .brand{grid-column:1;grid-row:1;min-width:0;max-width:100%;gap:10px}
html body[data-page] .site-header .brand-crown{width:72px;height:72px;flex:0 0 72px;object-fit:contain}
html body[data-page] .site-header .brand-txt{font-size:18px;line-height:1.2;white-space:normal;letter-spacing:.04em}
html body[data-page] .site-header #nav-right{grid-column:2;grid-row:1;display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;min-width:0;max-width:100%;margin:0;gap:8px!important}
html body[data-page] .site-header #nav{grid-column:1/-1;grid-row:2;display:flex;position:static;flex-direction:row;flex-wrap:wrap;width:100%;max-width:100%;min-width:0;gap:4px 10px;justify-content:center;padding:6px 0 0;border-top:1px solid var(--line-soft);max-height:none;overflow:visible}
html body[data-page] .site-header #nav a{white-space:normal;overflow-wrap:anywhere;font-size:.8rem;line-height:1.4;padding:8px;text-decoration:none}
html body[data-page] .site-header #navToggle{display:none;position:static;transform:none}
html body[data-page] .site-header #nav .private-admin-shortcut{display:block}
html body[data-page] .site-header #nav-right .private-admin-shortcut{display:none}
.btn,button,input,select,textarea{box-sizing:border-box;max-width:100%;min-width:0}
.btn{white-space:normal;overflow-wrap:anywhere;line-height:1.4;text-align:center;justify-content:center;text-decoration:none}
button{font-family:inherit;white-space:normal;overflow-wrap:anywhere}
a.btn:hover,a.btn:focus{text-decoration:none}
.btn:focus-visible,button:focus-visible{outline:2px solid var(--pink-soft);outline-offset:3px}
main{box-sizing:border-box;min-width:0;width:100%}
main section,main article,.card,.hero>*,.home-grid>*,.two-col>*,.grid>*,.actions-row>*,.cta-row>*{min-width:0}
main h1,main h2,main h3,main p,label,.badge-official{overflow-wrap:anywhere}
.actions-row,.cta-row,.post-actions,.tabs,.form-nav,.app-actions{flex-wrap:wrap;max-width:100%}
.post-actions{gap:12px}
.actions-row .btn,.form-nav .btn{min-width:0;max-width:100%}
input[type=file]{padding:10px;font-size:.85rem}
footer .badge-official{white-space:normal;max-width:100%;line-height:1.5}
body[data-page="home"] .hero{grid-template-columns:minmax(0,1.15fr) minmax(0,.75fr) minmax(0,.8fr);gap:24px}
body[data-page="home"] .hero .cta-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
body[data-page="home"] .hero .cta-row .btn{width:100%;padding:12px 16px;margin:0}
body[data-page="home"] .hero .join-panel{padding:24px;max-width:100%}
body[data-page="home"] .hero h1 .mgm{letter-spacing:.22em}
.home-grid{min-width:0}
.two-col{grid-template-columns:minmax(0,340px) minmax(0,1fr)}
.grid,.models-grid{grid-template-columns:repeat(auto-fill,minmax(min(210px,100%),1fr))}
.choice-grid{grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr))}
.profile-details,.pro-infos,fieldset{min-width:0;max-width:100%}
.friend-row{flex-wrap:wrap}.friend-row>div{display:flex;flex-wrap:wrap;gap:8px;min-width:0}
@media(max-width:1280px){
 html body[data-page] .site-header{position:relative;grid-template-columns:minmax(0,1fr) 44px;padding:12px 20px;gap:10px 16px;flex-wrap:wrap!important}
 html body[data-page] .site-header .brand{max-width:290px}
 html body[data-page] .site-header #navToggle{display:grid;grid-column:2;grid-row:1;position:static;transform:none;width:42px;height:42px;place-items:center;justify-self:end}
 html body[data-page] .site-header #nav-right{grid-column:1/-1;grid-row:2;justify-content:flex-start}
 html body[data-page] .site-header #nav{display:none;position:absolute;top:100%;left:0;right:0;width:100%;grid-column:auto;grid-row:auto;flex-direction:column;flex-wrap:nowrap;justify-content:flex-start;gap:0;background:rgba(14,9,14,.99);border:1px solid var(--line);padding:8px 20px;max-height:65vh;overflow-y:auto;z-index:100}
 html body[data-page] .site-header #nav.open{display:flex}
 html body[data-page] .site-header #nav a{display:block;padding:12px 8px;border-bottom:1px solid var(--line-soft);flex-shrink:0}
 html body[data-page] .site-header #nav .nav-logout-m{display:block!important}
 html body[data-page] .site-header #logoutBtn{display:none}
 body[data-page="home"] .hero{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr)}
 body[data-page="home"] .hero .join-panel{grid-column:1/-1}
}
@media(max-width:900px){
 body[data-page="home"] .hero{grid-template-columns:minmax(0,1fr)}
 .two-col{grid-template-columns:minmax(0,1fr)}
 .home-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
 html body[data-page] .site-header{padding:10px 12px!important;gap:8px 12px}
 html body[data-page] .site-header .brand-crown{width:56px;height:56px;flex-basis:56px}
 html body[data-page] .site-header .brand-txt{font-size:16px}
 html body[data-page] .site-header #nav-right .btn{font-size:.76rem;padding:8px 12px}
 main{padding-left:14px;padding-right:14px}
 .home-grid{grid-template-columns:minmax(0,1fr)}
 body[data-page="home"] .hero .cta-row{grid-template-columns:minmax(0,1fr)}
 .section-title{flex-wrap:wrap;gap:10px}
 .checks{grid-template-columns:minmax(0,1fr)}
 .guarantees{grid-template-columns:repeat(2,minmax(0,1fr))}
 .form-card,.choice-card{padding:20px}
 table{display:block;max-width:100%;overflow-x:auto}
}

/* Compact directory portraits: existing member photo, no fabricated face. */
body[data-page="models"] main>.card{padding:20px;margin-bottom:20px!important}
body[data-page="models"] main>.card h1{font-size:clamp(1.5rem,3vw,2rem);line-height:1.2;margin-bottom:10px}
body[data-page="models"] main>.card p{font-size:.92rem;line-height:1.55;margin-bottom:12px;max-width:760px}
#models-list.models-grid{grid-template-columns:repeat(auto-fill,minmax(min(180px,100%),1fr));gap:16px}
#models-list .model-card{padding:0;text-decoration:none;display:flex;flex-direction:column}
#models-list .model-card>img{width:100%;height:240px;aspect-ratio:auto;object-fit:cover;object-position:center 22%;border-radius:12px 12px 0 0}
#models-list .model-card .meta{position:static;display:block;background:none;padding:12px;min-width:0}
#models-list .model-card .meta h3{font-size:1rem;line-height:1.35;overflow-wrap:anywhere}
#models-list .model-card .meta p{font-size:.8rem;line-height:1.5;letter-spacing:0;text-transform:none;overflow-wrap:anywhere;margin-top:5px}
.model-portrait-empty{min-height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:radial-gradient(ellipse at top,rgba(255,45,145,.14),transparent),#130c15;color:var(--muted)}
.model-portrait-empty>span{width:64px;height:64px;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center;font-size:1.6rem;color:var(--pink-soft)}
.model-portrait-empty small{font-size:.78rem}.carousel .model-portrait-empty{min-height:230px}
@media(max-width:600px){body[data-page="models"] main>.card{padding:16px}#models-list.models-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#models-list .model-card>img{height:200px}#models-list .model-card .meta{padding:10px}.model-portrait-empty{min-height:160px}#models-list .model-card .meta h3{font-size:.9rem}}

/* Account header: keep status text and real notification badge inside their controls. */
html body[data-page] .site-header>.badge-official{grid-column:1/-1;justify-self:start;white-space:normal;max-width:100%;box-sizing:border-box;line-height:1.5}
html body[data-page] #nav-right #notifBtn{position:relative;display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;border:1px solid var(--line);border-radius:50%;background:#110b14;color:var(--txt);cursor:pointer;flex:0 0 auto}
html body[data-page] #nav-right #notifBtn .notif-n{position:absolute;top:-3px;right:-4px;min-width:18px;min-height:18px;box-sizing:border-box;padding:1px 4px;border-radius:20px;background:var(--pink);color:#fff;font-size:11px;line-height:16px;text-align:center;white-space:nowrap}
html body[data-page] #nav-right #notifBtn .notif-n[hidden]{display:none}

/* Conversation buttons must inherit the dark theme rather than browser defaults. */
#convs button.conv-item{background:#160d18;color:#f8eef6;border:1px solid #593047;font:inherit;cursor:pointer;line-height:1.5}
#convs button.conv-item small{color:#d8c4d2}
#convs button.conv-item.on{background:#351128;border-color:#ff2d91}
#convs button.conv-item:hover{background:#2a1123}
#convs button.conv-item:focus-visible{outline:2px solid #ff80bd;outline-offset:2px}

.badge-official{display:inline-flex;align-items:center;gap:7px}
.badge-official::before{content:"✓";display:inline-flex;align-items:center;justify-content:center;flex:0 0 18px;width:18px;height:18px;border-radius:50%;background:#1687f8;color:white;font:bold 12px/1 Arial,sans-serif}
#admin-convs button.conv-item{display:block;width:100%;background:#160d18;color:#f8eef6;border:1px solid #593047;border-radius:12px;padding:12px;text-align:left;white-space:normal;overflow-wrap:anywhere;margin-bottom:8px;font:inherit}

/* Video identity and captions must remain separate and readable. */
.tt-info{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:0;max-width:calc(100% - 90px);padding:12px;box-sizing:border-box;background:linear-gradient(transparent,rgba(0,0,0,.8));border-radius:12px;max-height:40%;overflow-y:auto}
.tt-author{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap;max-width:100%;overflow-wrap:anywhere;line-height:1.5}
.tt-info .tt-caption{display:block;width:100%;min-width:0;margin:0;line-height:1.5}
.tt-info .tt-caption summary{white-space:normal;overflow-wrap:anywhere;cursor:pointer;line-height:1.5}
.tt-info .tt-caption summary>span{display:block;margin-top:5px;text-decoration:underline}
.tt-info .tt-caption .tt-cap{white-space:pre-wrap;overflow-wrap:anywhere}
.tt-info>a:not(.tt-author){display:block;max-width:100%;overflow-wrap:anywhere}
.tt-actions{max-height:calc(100% - 30px);overflow-y:auto;scrollbar-width:thin;gap:8px}
@media(max-width:600px){.tt-info{left:8px;bottom:12px;right:66px;max-width:calc(100% - 76px);padding:8px;font-size:.9rem}.tt-author{font-size:.95rem}.tt-actions{right:6px;bottom:16px}.tt-actions .tt-btn{width:42px;height:42px;flex-shrink:0}}

/* Reserve a separate row for metadata instead of drawing it over the video. */
.tt-slide{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto}
.tt-slide>video,.tt-slide>img{grid-area:1/1;width:100%;height:100%;min-height:0;object-fit:contain}
.tt-slide>.tt-info{grid-area:2/1;position:relative;left:auto;right:auto;bottom:auto;max-width:none;width:calc(100% - 76px);max-height:180px;margin:0;padding:12px 16px;background:#080508}
.tt-slide>.tt-grad{display:none}
.tt-slide>.tt-actions{z-index:3;bottom:12px}
@media(max-width:600px){.tt-slide>.tt-info{width:calc(100% - 60px);max-height:160px;padding:10px}}
