/* The work area absorbs each row's remaining height instead of a blank margin. */
.portrait-home .creator-card .card-body{container-type:inline-size;gap:9px}
.portrait-home .creator-card .card-work,.portrait-home .creator-card .compact-socials{display:flex;flex-direction:column;flex:1 0 auto;gap:0;margin:2px 0 0;min-width:0}
.portrait-home .creator-card .card-work h4,.portrait-home .creator-card .compact-socials h3{flex:none;margin:0 0 8px}
.portrait-home .creator-card .card-pricing{flex:none;margin:0;padding-top:0}
.portrait-home .creator-card .card-media-mix,.portrait-home .creator-card .card-media-mix.has-socials,.portrait-home .creator-card .mixed-work[data-video-count="1"] .card-media-mix.has-socials{display:grid;grid-template-columns:repeat(var(--work-columns),minmax(0,1fr));grid-template-rows:repeat(var(--work-rows),minmax(0,1fr));gap:6px;align-items:stretch;flex:1;min-height:clamp(150px,68cqi,220px);min-width:0}
.portrait-home .creator-card .mixed-work .work-strip,.portrait-home .creator-card .mixed-work .work-socials{display:contents}
.portrait-home .creator-card .mixed-work .work-preview{position:relative;display:block;aspect-ratio:auto;width:100%;height:100%;max-width:none;max-height:none;min-width:0;min-height:0;margin:0;border-radius:9px;background:#eef2eb;overflow:hidden}
.portrait-home .creator-card .mixed-work .work-preview video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:transparent}
.portrait-home .creator-card .work-social{aspect-ratio:auto;display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-height:36px;min-width:0;padding:8px;border:1px solid #dce5df;border-radius:9px;background:#f4f7f1}
.portrait-home .creator-card .work-social .social-platform-icon{width:clamp(22px,16cqi,48px);height:auto;max-width:100%;max-height:70%;aspect-ratio:1}
.portrait-home .creator-card .work-social.social-instagram,.portrait-home .creator-card .compact-socials .social-instagram{background:linear-gradient(145deg,#fff5ee,#fff0f6)}
.portrait-home .creator-card .work-social.social-tiktok,.portrait-home .creator-card .compact-socials .social-tiktok{background:#f1f5f4}
.portrait-home .creator-card .work-social.social-facebook,.portrait-home .creator-card .compact-socials .social-facebook{background:#edf4ff}
.portrait-home .creator-card .work-social.social-youtube,.portrait-home .creator-card .compact-socials .social-youtube{background:#fff2f2}
.portrait-home .creator-card .work-social.social-snapchat,.portrait-home .creator-card .compact-socials .social-snapchat{background:#fffde7}
.portrait-home .creator-card .work-social.social-website,.portrait-home .creator-card .compact-socials .social-website{background:#eef7fa}
.portrait-home .creator-card .compact-socials .social-links{display:grid;grid-template-columns:repeat(var(--social-columns,2),minmax(0,1fr));grid-auto-rows:minmax(0,1fr);align-items:stretch;gap:6px;flex:1;min-height:clamp(150px,68cqi,220px);height:auto;padding:0}
.portrait-home .creator-card .compact-socials .social-card,.portrait-home .creator-card .compact-socials .social-card:last-child:nth-child(odd){grid-column:auto;position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%;min-height:0;aspect-ratio:auto;padding:12px 6px;margin:0;border-radius:9px;gap:7px}
.portrait-home .creator-card .compact-socials .social-links[data-social-count="1"]{grid-template-columns:minmax(0,1fr)}
.portrait-home .creator-card .compact-socials .social-links:not([data-social-count="1"]) .social-card:last-child:nth-child(odd){grid-column:2 / span 2}
.portrait-home .creator-card .compact-socials .social-platform-icon{width:clamp(28px,21cqi,60px);height:auto;max-height:60%;aspect-ratio:1;flex:none}
.portrait-home .creator-card .compact-socials .social-platform-name{font-size:clamp(10px,5cqi,13px);white-space:nowrap;word-break:normal;overflow-wrap:normal}
.portrait-home .creator-card .more-work{flex:none;margin:6px 0 0;font-size:11px}
.portrait-home .creator-card .no-public-work{flex:1;display:grid;place-items:center;margin:0;padding:16px;border-radius:9px;background:#f4f7f1;min-height:150px}
.portrait-home .creator-card .mixed-work .work-play{width:30px;height:30px;font-size:12px}
.marketplace .video-upload-feedback[hidden]{display:none}
.marketplace .video-upload-feedback{display:flex;flex-direction:column;gap:12px;min-width:0;margin:12px 0;padding:15px;border:1px solid #ceded2;border-radius:12px;background:#f2f8f1;color:#214c31;font-size:13px;line-height:1.6}
.marketplace .video-upload-feedback[data-status=error]{border-color:#d75542;background:#fff3f0;color:#922e21}
.marketplace .video-upload-feedback[data-status=checking],.marketplace .video-upload-feedback[data-status=uploading]{background:#fff7ed;border-color:#f4c89a;color:#6f481d}
.marketplace .video-feedback-file{display:flex;align-items:center;gap:10px;padding-bottom:10px;border-bottom:1px solid #b5c6b780;min-width:0;color:#274534}
.marketplace .video-feedback-file>.market-icon{width:27px;height:27px;flex:none}
.marketplace .video-feedback-file>span{display:flex;flex-direction:column;min-width:0;gap:3px}
.marketplace .video-feedback-file strong{font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.marketplace .video-feedback-file span>span{font-size:12px}
.marketplace .video-feedback-message>strong{display:block;font-size:16px;line-height:1.4}
.marketplace .video-feedback-message ul{padding-left:18px;margin:9px 0}
.marketplace .video-feedback-message li{margin:5px 0;font-size:13px;line-height:1.65;overflow-wrap:break-word;word-break:normal}
.marketplace .video-feedback-message p{margin:7px 0 0;font-size:12px;line-height:1.6;color:inherit}
.marketplace .video-upload-feedback .button{align-self:flex-start;min-height:42px;font-size:13px;background:#f26727;border-color:#f26727;color:white;white-space:normal}
.marketplace .video-transfer-state{font-size:12px;border-top:1px solid #dec4bd;padding-top:9px}
.marketplace .video-feedback-message progress{display:block;width:100%;height:7px;margin-top:14px;accent-color:#f26727}
.marketplace #intro-format-help{font-size:13px;line-height:1.65;font-weight:700;color:#31513c}
.marketplace #intro-format-help>span{font-size:12px;font-weight:500}
@media(max-width:600px){
 .marketplace #modal[data-view=editor] .editor-media-grid{grid-template-columns:minmax(0,1fr);gap:18px}
 .portrait-home .creator-card .card-media-mix,.portrait-home .creator-card .card-media-mix.has-socials,.portrait-home .creator-card .mixed-work[data-video-count="1"] .card-media-mix.has-socials{gap:4px;min-height:clamp(130px,80cqi,200px)}
 .portrait-home .creator-card .compact-socials .social-links{min-height:clamp(130px,80cqi,200px);gap:4px}
 .portrait-home .creator-card .work-social{padding:4px;border-radius:7px;min-height:30px}
 .portrait-home .creator-card .compact-socials .social-card{padding:8px 4px}
 .portrait-home .creator-card .mixed-work .work-play{width:24px;height:24px;font-size:10px}
 .marketplace .video-upload-feedback{padding:13px;font-size:13px}
}

.portrait-home .creator-card .compact-socials .social-card-action>span{font-family:Arial,sans-serif}

/* Equal-height cards share a normal grid row. Media keeps its natural geometry. */
.portrait-home .grid{align-items:stretch;grid-auto-rows:auto}
.portrait-home .creator-card{display:flex;flex-direction:column;min-width:0}
.portrait-home .creator-card .portrait-button{flex:none}
.portrait-home .creator-card .card-body{flex:1 0 auto;gap:9px}
.portrait-home .creator-card .card-pricing{margin-top:auto}
.portrait-home .creator-card .mini-rate{min-height:40px}
.portrait-home .creator-card .card-name{display:block;line-height:1.4}
.portrait-home .creator-card .card-name h3{display:inline}
.portrait-home .creator-card .card-name h3 button{display:inline;text-align:left;white-space:normal}
.portrait-home .creator-card .card-name .verified-mark{display:inline-grid;vertical-align:baseline;margin-left:5px}
.portrait-home .creator-card .card-location{display:flex;flex-direction:row;flex-wrap:wrap;align-items:baseline;gap:3px 7px}
.portrait-home .creator-card .card-location .location-city:before{content:'·';margin-right:7px;color:#7d7066}
.portrait-home .creator-card .spoken-languages{flex-direction:row;flex-wrap:wrap;gap:3px 8px}
.portrait-home .creator-card .spoken-language+.spoken-language:before{content:'·';color:#6b735e}
.portrait-home .creator-card .card-tags{margin-bottom:0}
.portrait-home .creator-card .card-work,.portrait-home .creator-card .compact-socials{flex:0 0 auto;margin:0;min-height:0}
.portrait-home .creator-card .card-media-mix,
.portrait-home .creator-card .card-media-mix.has-socials,
.portrait-home .creator-card .mixed-work[data-video-count="1"] .card-media-mix.has-socials{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto;align-items:stretch;gap:7px;flex:none;min-height:0;height:auto}
.portrait-home .creator-card .card-media-mix.has-socials,
.portrait-home .creator-card .mixed-work[data-video-count="1"] .card-media-mix.has-socials{--mix-gap:7px;grid-template-columns:minmax(0,calc((100% - var(--mix-gap) * var(--social-shape)) * var(--video-share))) minmax(0,1fr)}
.portrait-home .creator-card .mixed-work .work-strip{display:contents}
.portrait-home .creator-card .mixed-work .work-preview{grid-column:1;grid-row:1;aspect-ratio:var(--preview-ratio,9 / 16);width:100%;height:auto;min-height:0;max-height:none;max-width:none;align-self:start;margin:0}
.portrait-home .creator-card .mixed-work .work-preview video{object-fit:contain;background:transparent}
.portrait-home .creator-card .mixed-work[data-video-count="1"] .work-socials{display:grid;grid-column:2;grid-row:1;grid-template-columns:repeat(calc(var(--tile-columns) * 2),minmax(0,1fr));grid-template-rows:none;grid-auto-rows:auto;align-content:start;align-items:start;gap:var(--mix-gap);min-width:0;min-height:0}
.portrait-home .creator-card .work-social{grid-column:span 2;width:100%;height:auto;min-height:0;aspect-ratio:1;box-sizing:border-box;align-self:start;padding:8px}
.portrait-home .creator-card .work-socials[data-social-count="5"] .work-social:last-child{grid-column:2 / span 2}
.portrait-home .creator-card .work-social .social-platform-icon{width:clamp(24px,18cqi,54px);max-height:70%;height:auto;min-height:0;flex:none}
.portrait-home .creator-card .more-videos-badge{position:absolute;top:7px;right:7px;max-width:calc(100% - 10px);border-radius:20px;padding:5px 8px;background:#15341fdc;color:#fff;font-size:12px;font-weight:700;line-height:1.2;white-space:nowrap;pointer-events:none}
.portrait-home .creator-card .compact-socials .social-links{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));flex:none;min-height:0;height:auto;grid-auto-rows:auto;align-items:start;gap:7px}
.portrait-home .creator-card .compact-socials .social-links[data-social-count="1"]{grid-template-columns:repeat(4,minmax(0,1fr))}
.portrait-home .creator-card .compact-socials .social-card,.portrait-home .creator-card .compact-socials .social-card:last-child:nth-child(odd){grid-column:span 2;width:100%;height:auto;min-height:0;aspect-ratio:1;box-sizing:border-box;align-self:start;padding:12px 6px}
.portrait-home .creator-card .compact-socials .social-links .social-card:last-child:nth-child(odd){grid-column:2 / span 2}
.portrait-home .creator-card .no-public-work{flex:none;min-height:90px}
.marketplace .uploaded-gallery-controls{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:14px 0}
.marketplace .uploaded-gallery-controls>span{font-size:13px;white-space:nowrap;font-variant-numeric:tabular-nums}
.marketplace .uploaded-gallery-controls .button.light{color:#254a36;background:#f4f7f1;border-color:#cedace}
.marketplace .uploaded-video-choices{display:flex;flex-wrap:wrap;justify-content:center;gap:7px;margin-bottom:12px}
.marketplace .uploaded-video-choices>button{min-width:36px;min-height:36px;border:1px solid #d9e2d8;border-radius:7px;background:#f4f7f1;color:#234d36;font-size:13px}
.marketplace .uploaded-video-choices>[aria-current=true]{background:#f26727;border-color:#f26727;color:#fff}
@media(max-width:600px){
 .portrait-home .creator-card .mini-rate{min-height:36px}
 .portrait-home .creator-card .card-media-mix,
 .portrait-home .creator-card .card-media-mix.has-socials,
 .portrait-home .creator-card .mixed-work[data-video-count="1"] .card-media-mix.has-socials,
 .portrait-home .creator-card .mixed-work .work-socials{gap:5px;--mix-gap:5px}
 .portrait-home .creator-card .card-media-mix.has-socials,.portrait-home .creator-card .mixed-work[data-video-count="1"] .card-media-mix.has-socials{--mix-gap:5px}
 .portrait-home .creator-card .work-social{padding:4px}
 .portrait-home .creator-card .more-videos-badge{top:5px;right:5px;padding:4px 6px;font-size:10px}
 .portrait-home .creator-card .compact-socials .social-card{min-height:0;padding:10px 4px}
 .marketplace .uploaded-gallery-controls .button{padding:10px 9px;font-size:12px;gap:4px}
}

/* Rate errors stay visible beside the edited fields and block both save actions. */
.marketplace #rates-section .rate-limit-feedback{padding:12px 14px;margin:0 0 12px;border:1px solid #db6858;border-radius:10px;background:#fff1ed;color:#922e21;font-size:13px;line-height:1.5;overflow-wrap:break-word}
.marketplace #rates-section .rate-limit-feedback[hidden]{display:none}
.marketplace #rates-section .rate-limit-feedback strong{display:block;font-size:14px}
.marketplace #rates-section .rate-limit-feedback p{margin:3px 0 0;font-size:13px}
.marketplace #rates-section .rate-too-high{border:1px solid #d75542;background:#fff5f2}
.marketplace #rates-section input[data-rate-limit-invalid]{border-color:#d75542;box-shadow:0 0 0 1px #d75542}
.marketplace #rates-section .rate-limit-error{display:block;color:#a43425;font-size:11px;line-height:1.4;white-space:normal;overflow-wrap:break-word;margin-top:4px}
.marketplace button[data-rate-blocked]{opacity:.5;cursor:not-allowed}

/* Fixed video stage; social squares adapt to the space beside it.
   Shared row tracks absorb metadata differences above the media, never below it. */
.portrait-home .grid{--card-preview-height:240px}
.portrait-home .creator-card .card-body{container-type:normal}
.portrait-home .creator-card .card-meta{display:flex;flex-direction:column;gap:9px;min-width:0}
.portrait-home .creator-card .card-pricing{margin-top:0}
.portrait-home .creator-card .card-work,.portrait-home .creator-card .compact-socials{align-self:start}
.portrait-home .creator-card .card-media-mix,
.portrait-home .creator-card .card-media-mix.has-socials,
.portrait-home .creator-card .mixed-work[data-video-count="1"] .card-media-mix.has-socials{height:var(--card-preview-height);grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);align-items:start}
.portrait-home .creator-card .card-media-mix.has-socials,
.portrait-home .creator-card .mixed-work[data-video-count="1"] .card-media-mix.has-socials{grid-template-columns:minmax(0,calc(var(--card-preview-height) * var(--preview-shape,.5625))) minmax(40px,1fr)}
.portrait-home .creator-card .mixed-work .work-preview{width:100%;height:var(--card-preview-height);aspect-ratio:auto;max-width:none;align-self:start}
.portrait-home .creator-card .card-media-mix:not(.has-socials) .work-preview{width:min(100%,calc(var(--card-preview-height) * var(--preview-shape,.5625)));justify-self:center}
.portrait-home .creator-card .mixed-work[data-video-count="1"] .work-socials{width:100%;max-width:calc((var(--card-preview-height) - var(--mix-gap) * (var(--tile-rows) - 1)) / var(--tile-rows) * var(--tile-columns) + var(--mix-gap) * (var(--tile-columns) - 1));justify-self:center;align-self:start}
.portrait-home .creator-card .mixed-work .work-preview video{object-fit:contain}
.portrait-home .creator-card .compact-socials .social-links{height:var(--card-preview-height);grid-template-rows:repeat(3,minmax(0,1fr));grid-template-columns:repeat(4,minmax(0,1fr));align-items:start;align-content:start}
.portrait-home .creator-card .compact-socials .social-links[data-social-count="1"],
.portrait-home .creator-card .compact-socials .social-links[data-social-count="2"]{grid-template-rows:minmax(0,1fr)}
.portrait-home .creator-card .compact-socials .social-links[data-social-count="3"],
.portrait-home .creator-card .compact-socials .social-links[data-social-count="4"]{grid-template-rows:repeat(2,minmax(0,1fr))}
.portrait-home .creator-card .compact-socials .social-card{max-height:100%;width:auto;max-width:100%;justify-self:center}
@supports(grid-template-rows:subgrid){
 .portrait-home .creator-card{display:grid;grid-row:span 5;grid-template-rows:subgrid;row-gap:0}
 .portrait-home .creator-card .card-body{display:grid;grid-row:span 4;grid-template-columns:minmax(0,1fr);grid-template-rows:subgrid;row-gap:9px;align-content:start}
 .portrait-home .creator-card .card-meta{align-self:start}
 .portrait-home .creator-card .card-pricing,.portrait-home .creator-card .whatsapp{align-self:start}
}

.portrait-home .creator-card .card-work h4,
.portrait-home .creator-card .compact-socials h3{height:20px;min-height:20px;font-size:12px;line-height:20px;margin:0 0 8px}
.portrait-home .creator-card .compact-socials .social-links,
.portrait-home .creator-card .compact-socials .social-links[data-social-count]{display:grid;grid-template-columns:repeat(calc(var(--square-columns,1) * 2),minmax(0,1fr));grid-template-rows:none;grid-auto-rows:max-content;width:calc(var(--square-size,100px) * var(--square-columns,1) + 7px * (var(--square-columns,1) - 1));max-width:100%;height:var(--card-preview-height);margin:0 auto;padding:0;gap:7px;align-content:start;justify-content:center}
.portrait-home .creator-card .compact-socials .social-card,
.portrait-home .creator-card .compact-socials .social-card:last-child:nth-child(odd){grid-column:span 2;width:var(--square-size,100px);height:var(--square-size,100px);max-height:none;max-width:100%;aspect-ratio:1;margin:0;justify-self:center}
.portrait-home .creator-card .compact-socials .social-card:last-child{grid-column:var(--last-square-column,span 2)}
.portrait-home .creator-card .compact-socials .social-links[data-social-count] .social-card:last-child:nth-child(odd){grid-column:var(--last-square-column,span 2)}
.portrait-home .creator-card .compact-socials .social-card{container-type:inline-size;padding:clamp(3px,2cqi,12px);gap:4px}
.portrait-home .creator-card .compact-socials .social-platform-icon{width:clamp(18px,40cqi,60px);height:auto;max-height:65%}
.portrait-home .creator-card .compact-socials .social-platform-name{font-size:clamp(8px,12cqi,12px);line-height:1.25}
@container(max-width:64px){.portrait-home .creator-card .compact-socials .social-platform-name{display:none}.portrait-home .creator-card .compact-socials .social-card-action{display:none}}

.marketplace .video-review-feedback{margin:12px 0;padding:14px;border:1px solid #df9e8e;border-radius:10px;background:#fff3ed;color:#7c3525;font-size:13px;line-height:1.5;min-width:0;overflow-wrap:anywhere}
.marketplace .video-review-feedback>strong{display:block;font-size:15px}
.marketplace .video-review-feedback p{margin:7px 0 0;white-space:pre-wrap}
.marketplace .rejected-video-note{margin-top:12px;padding-top:10px;border-top:1px solid #edc8bc}
.marketplace .rejected-video-note>span{font-size:12px;font-weight:700}
