/* Diamond Studio workspace and editable campaign gallery */
:root{--studio-surface:#101623;--studio-border:#283645;--studio-gold:#edc985}
.showcase-page,.dashboard{max-width:1390px;margin-inline:auto}
.showcase-page{padding:clamp(14px,3vw,40px)}
.showcase-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 18px}
.showcase-heading p{margin-top:5px}
.showcase-heading h1,.showcase-heading h2{margin:0}
.showcase-heading h2{font-size:21px}
.featured-models{display:grid;gap:13px;margin-bottom:22px}
 .showcase-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;position:relative;isolation:isolate;overflow:hidden;min-height:320px;border:1px solid #32445c;border-radius:16px;background:radial-gradient(ellipse at 80% 50%,#18335a,#101727 62%);box-shadow:0 20px 60px #02050a88}
.showcase-stage{position:absolute;inset:0 0 0 43%;background:url("/models/hero.jpg") center/cover no-repeat}
.showcase-stage::after{position:absolute;content:"";inset:0;pointer-events:none;background:linear-gradient(90deg,#11192a,transparent 27%)}
.showcase-stage canvas{display:block;width:100%;height:100%;max-height:none;margin:0}
.showcase-toggle{position:absolute;z-index:1;bottom:12px;right:12px;min-height:36px;padding:6px 10px;background:#0b1321eb;border-color:#586983;font-size:12px}
.showcase-copy{position:relative;grid-column:1/-1;justify-self:start;z-index:1}
.showcase-copy h2{font-size:clamp(36px,4.3vw,68px);line-height:1.02;letter-spacing:-.055em;max-width:12ch}
.showcase-copy p{color:#cbd7e8;margin:13px 0 20px;max-width:38ch}
.showcase-library-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:12px 0 0}
.showcase-library-heading h2{font-size:clamp(16px,2vw,20px);letter-spacing:-.02em}
.showcase-library-heading a{color:#f0cf92;min-height:36px;display:inline-flex;align-items:center;gap:6px;font-size:13px}
.model-cover video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 39%;opacity:0;pointer-events:none}
.model-cover.is-playing video{opacity:1}
.model-card:focus-within{border-color:#7891ae}
.model-cover-play{box-shadow:0 3px 12px #03081180}
.model-card-copy{background:linear-gradient(125deg,#172031,#111722 65%)}
.showcase-copy{padding:clamp(20px,4vw,48px);max-width:690px}
.showcase-copy .button:not(.primary-action){background:#131f31e6}
.model-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:start}
.model-card{background:var(--studio-surface);border:1px solid var(--studio-border);border-radius:13px;overflow:hidden;min-width:0}
.model-card:hover{border-color:#6f8299}
.model-cover{position:relative;display:block;width:100%;aspect-ratio:16/10;padding:0;border:0;border-radius:0;overflow:hidden;background:#172335}
.model-cover:focus-visible{outline-offset:-3px}
.model-cover img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 38%;transition:transform .24s ease}
.model-cover:hover img{transform:scale(1.04)}
.model-cover-play{position:absolute;right:10px;bottom:10px;width:36px;height:36px;display:grid;place-items:center;border-radius:50%;border:1px solid #ffffff75;background:#090f19dc;color:white;font-size:12px}
.model-card-copy{padding:12px;display:grid;gap:5px}
.model-card h3{font-size:15px;line-height:1.25;margin:0}
.model-card p{font-size:12px}
.model-card .model-use{justify-self:start;border:0;background:none;color:var(--studio-gold);padding:3px 0;min-height:39px;font-weight:650}
.model-use:hover{text-decoration:underline}
.model-filters{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 18px}
.model-filters button[aria-pressed="true"],.model-scenes button[aria-pressed="true"]{color:#f0d89e;background:#30261c;border-color:#8c7146}
.model-dialog{box-sizing:border-box;width:min(480px,calc(100% - 22px));max-height:93dvh;overflow:auto;background:#101827;border:1px solid #435575;color:var(--text);border-radius:15px;padding:15px}
.model-dialog::backdrop{background:#04060bd9}
.model-dialog video{display:block;margin:auto;max-height:54dvh;width:100%;background:#080c13;border-radius:9px}
.model-dialog p{margin:10px 0}.model-dialog #model-preview-status:empty{display:none}
.model-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(270px,.56fr);gap:14px;align-items:start}
.model-viewer,.model-settings{background:var(--studio-surface);border:1px solid var(--studio-border);border-radius:13px;min-width:0;padding:12px}
.model-viewer canvas{display:block;margin:0 auto;width:auto;max-width:100%;height:min(52dvh,560px);border-radius:7px;aspect-ratio:9/16;object-fit:contain;background:#080c14}
.model-transport{display:flex;gap:9px;align-items:center;margin-top:10px}
.model-transport input{flex:1}.model-transport output{white-space:nowrap;font-size:12px;color:#c4d0e1}
.model-scenes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:9px}
.model-settings{display:grid;gap:12px;margin:0}.model-settings legend{padding:0 5px;color:var(--studio-gold);font-weight:680}
.model-settings label{display:grid;gap:5px;min-width:0}.model-settings input,.model-settings select{min-height:40px}
#model-status:not(:empty){padding-block:10px}.tools-state{min-height:280px;display:grid;place-content:center;justify-items:center;gap:12px;padding:20px;text-align:center}
.tools-state .actions{justify-content:center}
#creation,#library{max-width:1060px;margin-inline:auto;background:linear-gradient(135deg,#131e30,#101623 52%)}
#creation .creation-intro{margin:-10px 0 20px}
#creation-result{border:1px solid var(--studio-border);border-radius:10px;padding:12px;background:#0b111b}
#creation-result summary{cursor:pointer;color:var(--studio-gold)}
#creation-result label{margin:12px 0}
#library .library-upload{border:1px dashed #536885;border-radius:10px;padding:14px;margin-top:12px}
#media-list{grid-template-columns:repeat(auto-fill,minmax(min(230px,100%),1fr))}
#media-list li{display:grid;align-content:start;border:1px solid var(--studio-border);border-radius:12px;background:#0e1521;padding:10px}
#media-list img,#media-list video{width:100%;height:124px;object-fit:contain;background:#080d16;border-radius:6px;margin-bottom:7px}
#media-list audio{width:100%;margin-bottom:7px}
#media-list button{margin:0}
body[data-area="projects"] .featured-models+.dashboard-top{margin-top:6px}
@media(max-width:1050px){.model-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){
 .rail{grid-template-columns:repeat(5,minmax(0,1fr))}
 .rail a{min-height:54px;flex-direction:column;justify-content:center;gap:3px;font-size:10px;white-space:nowrap}
 .rail .studio-icon{height:16px;width:16px}
 .showcase-page{padding:10px 4px 20px}
 .app-shell{padding-bottom:calc(72px + env(safe-area-inset-bottom))}
 .showcase-hero{display:flex;align-items:stretch;flex-direction:column;background:#101727}
 .showcase-stage{position:relative;inset:auto;height:clamp(160px,50vw,225px);background-position:50% 40%}
 .showcase-stage canvas{object-fit:fill}
 .showcase-stage::after{background:linear-gradient(0deg,#101727,transparent 32%)}
 .showcase-toggle{bottom:8px;right:8px;min-height:44px}
 .showcase-copy{padding:5px 16px 17px;width:100%;margin-top:-8px}
 .showcase-copy h2{font-size:clamp(29px,8vw,40px);max-width:19ch}
 .showcase-copy p{font-size:13px;margin:8px 0 14px}
 .showcase-heading .button{flex:none}
 .model-grid{gap:8px}
 .model-cover{aspect-ratio:6/5}
 .model-card-copy{padding:8px;min-height:112px}
 .model-card h3{font-size:13px}
 .model-card p{font-size:11px}
 .model-card .model-use,.model-filters button{min-height:44px}
 .model-cover-play{width:30px;height:30px;right:6px;bottom:6px}
 .model-workspace{grid-template-columns:minmax(0,1fr)}
 .model-viewer canvas{height:min(45dvh,380px)}
 .model-settings input,.model-settings select,#project-form input,#project-form select,#project-form textarea{font-size:16px}
 .model-transport button,.model-scenes button{min-height:44px}
}
@media(max-width:370px){.rail a{font-size:9px}.showcase-hero .button{font-size:12px;padding-inline:9px}}
@media(prefers-reduced-motion:reduce){.model-cover img{transition:none}}

@media(min-width:681px){
 .model-cover img[src*="tipografia"]{object-position:50% 26%}
}
@media(max-width:680px){
 body[data-area="model-editor"] .aria-launcher{top:10px;right:10px;bottom:auto;min-height:40px;padding:3px}
 body[data-area="model-editor"] .aria-launcher>span:last-child{display:none}
 body[data-area="model-editor"] .aria-launcher .aria-face-frame{width:32px;height:32px}
 #model-editor .showcase-heading{align-items:flex-start}
 #model-editor .showcase-heading h1{font-size:clamp(20px,5.5vw,29px)}
 #model-editor .showcase-heading button{min-height:44px;white-space:nowrap;font-size:13px}
}

@media(max-width:370px){.showcase-library-heading a{font-size:12px}.model-card-copy{min-height:118px}}

@media(min-width:1100px){.showcase-copy h2{max-width:17ch}}
