/* Composite app v3.15 — make the core action unmistakable. */
.dashboard-grid .dash-card--composite{grid-column:1/-1;background:#181817;color:#fff;border-color:#181817;min-height:128px;position:relative;padding-right:110px}
.dashboard-grid .dash-card--composite h2{font:700 clamp(24px,3vw,32px)/1 Georgia,serif;margin-bottom:8px}
.dashboard-grid .dash-card--composite p{color:#d7d2cb;max-width:560px;margin-bottom:0}
.dashboard-grid .dash-card--composite .status{position:absolute;right:24px;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;min-width:72px;min-height:40px;padding:0 14px;border-radius:999px;background:#fff;color:#181817;font-weight:800}
.dashboard-grid .dash-card--composite:hover{transform:translateY(-1px);box-shadow:0 12px 28px rgba(0,0,0,.12)}
@media(max-width:720px){.dashboard-grid .dash-card--composite{padding-right:22px;padding-bottom:72px}.dashboard-grid .dash-card--composite .status{left:22px;right:auto;top:auto;bottom:20px;transform:none}}

/* V3.16.2 auth clarity: password visibility control */
.password-input-wrap{position:relative;width:100%}
.password-input-wrap input{padding-right:3.35rem}
.password-toggle{position:absolute;right:.55rem;top:50%;transform:translateY(-50%);width:2.55rem;height:2.55rem;min-height:0;border:0;border-radius:999px;background:transparent;color:var(--ink,#171717);display:grid;place-items:center;cursor:pointer;padding:0}
.password-toggle:hover,.password-toggle:focus-visible{background:rgba(23,23,23,.06);outline:none}
.password-toggle:focus-visible{box-shadow:0 0 0 2px #171717}
.password-toggle svg{width:1.35rem;height:1.35rem;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.password-toggle[aria-pressed="true"] svg{opacity:.72}
.password-toggle[aria-pressed="true"]::after{content:"";position:absolute;width:1.55rem;height:2px;background:currentColor;transform:rotate(-45deg);border-radius:2px}

/* V3.16.5 — save protection: persistent save affordance + draft status */
.draft-save-row{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:22px;padding:13px 14px;border:1px solid var(--line);border-radius:14px;background:#f7f5f1}
.draft-save-status{font-size:13px;line-height:1.4;color:var(--muted);font-weight:650}
.persistent-save-bar{position:fixed;left:50%;bottom:max(12px,env(safe-area-inset-bottom));transform:translateX(-50%);z-index:1100;width:min(720px,calc(100% - 24px));display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 14px 13px 18px;border:1px solid rgba(23,23,23,.14);border-radius:18px;background:rgba(255,255,255,.96);box-shadow:0 18px 48px rgba(0,0,0,.18);backdrop-filter:blur(12px)}
.persistent-save-bar>div{min-width:0;display:grid;gap:2px}.persistent-save-bar strong{font-size:14px;line-height:1.25}.persistent-save-bar small{font-size:11px;line-height:1.35;color:var(--muted)}
#editorView,#mediaView{padding-bottom:112px}
#editorSaveBtn,#saveMediaBtn{flex:0 0 auto;min-width:150px}
@media(max-width:720px){.draft-save-row{align-items:stretch;flex-direction:column}.draft-save-row .button{width:100%}.persistent-save-bar{width:calc(100% - 16px);bottom:max(8px,env(safe-area-inset-bottom));padding:12px;border-radius:16px}.persistent-save-bar small{display:none}.persistent-save-bar .button{min-width:138px;padding:13px 16px}#editorView,#mediaView{padding-bottom:104px}}

/* V4 Composite Studio */
.tc-composite-library{max-width:1180px;margin:0 auto;padding:28px 20px 80px}.tc-composite-library .editor-head{align-items:flex-start}.tc-composite-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px;margin-top:24px}.tc-composite-card{border:1px solid #dedbd5;border-radius:18px;background:#fff;padding:18px;text-align:left;box-shadow:0 8px 30px rgba(30,25,20,.04)}.tc-composite-card-preview{aspect-ratio:1/1.414;background:#f2f0ec;border-radius:10px;overflow:hidden;margin-bottom:14px;display:grid;grid-template-columns:1.3fr 1fr;gap:3px}.tc-composite-card-preview span{background:#d8d3cb;background-size:cover;background-position:center}.tc-composite-card h2{font-size:18px;margin:0 0 5px}.tc-composite-card small{color:#777}.tc-composite-card-actions{display:flex;gap:8px;margin-top:14px;flex-wrap:wrap}.tc-composite-card-actions button{border:1px solid #ddd8cf;background:#fff;border-radius:999px;padding:7px 11px}.tc-title-row{display:flex;align-items:center;gap:10px}.tc-title-edit{border:0;background:transparent;text-decoration:underline;color:#68635b}.tc-save-status{margin:2px 0 0!important;font-size:12px!important;color:#65705f!important}.tc-save-status.is-saving{color:#8a6d3b!important}.tc-save-status.is-error{color:#9b3a31!important}.tc-photo-tools{display:flex!important;gap:4px;flex-wrap:wrap}.tc-photo-tools button{font-size:11px!important;padding:5px 7px!important}.tc-photo-tile{position:relative}.tc-photo-badge{z-index:3}.tc-photo-picker{position:fixed;inset:0;background:rgba(20,18,15,.52);z-index:9999;display:flex;align-items:flex-end;justify-content:center}.tc-photo-picker-panel{background:#fff;width:min(760px,100%);max-height:82vh;border-radius:22px 22px 0 0;padding:18px;overflow:auto}.tc-photo-picker-head{display:flex;justify-content:space-between;align-items:center;position:sticky;top:-18px;background:#fff;padding:10px 0;z-index:2}.tc-photo-picker-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.tc-photo-picker-grid button{border:2px solid transparent;background:#eee;padding:0;aspect-ratio:3/4;border-radius:10px;overflow:hidden}.tc-photo-picker-grid button.selected{border-color:#111;opacity:.45}.tc-photo-picker-grid img{width:100%;height:100%;object-fit:cover}.talent-card-sheet.template-editorial .talent-card-primary{grid-column:1/8!important}.talent-card-sheet.template-editorial .talent-card-meta{background:#151515!important;color:#fff!important}.talent-card-sheet.template-editorial .talent-card-photo-strip{grid-template-columns:repeat(2,1fr)!important}.talent-card-sheet.template-classic{--tc-accent:#111}.talent-card-sheet.template-classic .talent-card-meta{border-left:8px solid #111!important}.talent-card-sheet.template-casting .talent-card-meta{background:#f0eee9!important}.talent-card-sheet[data-photo-count="3"] .talent-card-photo-strip{grid-template-columns:repeat(2,1fr)!important}.talent-card-sheet[data-photo-count="4"] .talent-card-photo-strip{grid-template-columns:repeat(3,1fr)!important}.talent-card-sheet[data-photo-count="5"] .talent-card-photo-strip,.talent-card-sheet[data-photo-count="6"] .talent-card-photo-strip{grid-template-columns:repeat(2,1fr)!important}
@media(max-width:620px){.tc-composite-library{padding:18px 14px 70px}.tc-composite-library .editor-head{display:grid;grid-template-columns:1fr auto}.tc-composite-library .editor-head>div{grid-column:1/-1;grid-row:2}.tc-composite-list{grid-template-columns:1fr 1fr;gap:10px}.tc-composite-card{padding:10px;border-radius:14px}.tc-composite-card-actions{gap:5px}.tc-composite-card-actions button{font-size:11px;padding:6px 8px}.tc-photo-picker-grid{grid-template-columns:repeat(3,1fr)}.tc-studio-topbar p.tc-save-status{display:block!important}.tc-title-edit{font-size:12px}.tc-mobile-steps{grid-template-columns:repeat(3,1fr)!important}}
.tc-studio-detail{position:relative;padding-right:58px}.tc-detail-toggle{position:absolute;right:0;top:50%;transform:translateY(-50%);border:0;background:transparent;text-decoration:underline;font-size:11px;color:#6d685f}.tc-studio-detail.is-hidden{opacity:.42}
/* V4.1 user-first pass */
.tc-photo-edit{position:absolute;right:7px;bottom:7px;z-index:4;border:0!important;border-radius:999px!important;background:rgba(255,255,255,.94)!important;color:#171715!important;padding:7px 11px!important;font:700 11px/1 system-ui,sans-serif!important;box-shadow:0 2px 12px rgba(0,0,0,.12)}
.tc-photo-action-sheet{position:fixed;inset:0;z-index:10020;background:rgba(18,17,15,.45);display:flex;align-items:flex-end;justify-content:center}.tc-photo-action-panel{width:min(520px,100%);background:#fff;border-radius:22px 22px 0 0;padding:10px 14px calc(14px + env(safe-area-inset-bottom));box-shadow:0 -20px 60px rgba(0,0,0,.18)}.tc-photo-action-head{display:flex;align-items:center;justify-content:space-between;padding:7px 2px 12px}.tc-photo-action-head strong{font-size:15px}.tc-photo-action-head button{border:0;background:transparent;padding:9px}.tc-photo-action-panel>button{width:100%;min-height:48px;text-align:left;border:0;border-top:1px solid #ece9e3;background:#fff;padding:12px 4px;font:650 14px/1.2 system-ui,sans-serif}.tc-photo-action-panel>button:disabled{opacity:.32}.tc-photo-action-panel>button.danger-light{color:#8b312b}
@media(max-width:620px){.tc-mobile-steps{grid-template-columns:.75fr .75fr 1.5fr!important}.tc-mobile-steps button{font-size:9px!important;text-transform:none!important;letter-spacing:0!important}.tc-photo-tools{display:none!important}.tc-photo-edit{font-size:10px!important;padding:7px 9px!important}.tc-composite-list{grid-template-columns:1fr!important}.tc-composite-card{display:grid;grid-template-columns:92px 1fr;column-gap:13px;align-items:start}.tc-composite-card-preview{grid-row:1/4;margin:0}.tc-composite-card-actions{margin-top:8px}.tc-composite-card-actions button{min-height:38px}.tc-section-note-inline{display:none!important}}
/* V4.1 art-direction: preserve the user's photo set in every family. */
.talent-card-sheet.template-editorial .talent-card-photo-strip{display:grid!important;grid-template-columns:2fr 1fr 1fr!important;gap:0!important;margin:0!important;padding:0!important;min-height:210px!important;background:#151515}
.talent-card-sheet.template-editorial .talent-card-photo-strip img{width:100%!important;height:210px!important;aspect-ratio:auto!important;border-radius:0!important;object-fit:cover!important}
.talent-card-sheet.template-editorial .talent-card-photo-strip img:first-child{height:210px!important}
.talent-card-sheet.template-editorial[data-photo-count="3"] .talent-card-photo-strip{grid-template-columns:1.55fr 1fr!important}
.talent-card-sheet.template-editorial[data-photo-count="4"] .talent-card-photo-strip{grid-template-columns:1.5fr 1fr 1fr!important}
.talent-card-sheet.template-editorial[data-photo-count="5"] .talent-card-photo-strip,.talent-card-sheet.template-editorial[data-photo-count="6"] .talent-card-photo-strip{grid-template-columns:2fr 1fr 1fr 1fr!important}
.talent-card-sheet.template-classic .talent-card-photo-strip{gap:6px!important}.talent-card-sheet.template-classic .talent-card-photo-strip img{border-radius:0!important}
.talent-card-sheet.template-casting .talent-card-photo-strip{border-top:1px solid #171715;padding-top:12px!important}.talent-card-sheet.template-casting .talent-card-photo-strip img{border-radius:0!important}

@media(max-width:620px){
#talentCardView[data-mobile-step="photos"] .tc-studio-workspace,#talentCardView[data-mobile-step="style"] .tc-studio-workspace{display:flex!important;flex-direction:column!important}
#talentCardView[data-mobile-step="photos"] .tc-live-panel,#talentCardView[data-mobile-step="style"] .tc-live-panel{display:block!important;order:-1!important;padding:8px 8px 0!important}
#talentCardView[data-mobile-step="photos"] .tc-live-panel .tc-export-section,#talentCardView[data-mobile-step="style"] .tc-live-panel .tc-export-section{display:none!important}
#talentCardView[data-mobile-step="photos"] .tc-live-panel .tc-preview-stage,#talentCardView[data-mobile-step="style"] .tc-live-panel .tc-preview-stage{max-height:46dvh!important;overflow:hidden!important}
#talentCardView[data-mobile-step="photos"] .tc-live-panel .tc-live-head,#talentCardView[data-mobile-step="style"] .tc-live-panel .tc-live-head{display:flex!important}
#talentCardView[data-mobile-step="photos"] .tc-studio-editor,#talentCardView[data-mobile-step="style"] .tc-studio-editor{display:block!important;order:2!important}
#talentCardView[data-mobile-step="photos"] .tc-work-section,#talentCardView[data-mobile-step="style"] .tc-work-section{min-height:auto!important}
}
