/* v50: home, media loading and project navigation. */
html.direct-brand body.direct-discover #direct-home,
html.direct-brand body #de-home .film-journey,
html.direct-brand body #de-home .film-stage{border:0!important;box-shadow:none!important;border-radius:0!important;background:#0b0b0f}
html.direct-brand body #de-home #journey-video{border:0!important;outline:0;box-shadow:none!important;border-radius:0;mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent),linear-gradient(180deg,transparent,#000 6%,#000 82%,transparent);mask-composite:intersect;-webkit-mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent),linear-gradient(180deg,transparent,#000 6%,#000 82%,transparent);-webkit-mask-composite:source-in}
#de-home .dm-panel:not(.on){opacity:0;filter:none;transform:translateY(25px) scale(.97);pointer-events:none}
#de-home .dm-panel.on{pointer-events:auto}
#de-home .ds-scanner{opacity:1}

/* The existing brand mark sits behind media, never a random demo poster. */
html.direct-brand body :is(.history-entry .visual,.creator-work-card .visual,.element-preview,.media-library-card,.live-result,.de-media-surface){background-color:#111115!important;background-image:linear-gradient(#111115e8,#111115e8),url('/assets/brand-live-v27/directeo-favicon-v3.svg')!important;background-size:100% 100%,82px 82px!important;background-position:center!important;background-repeat:no-repeat!important}
html.direct-brand body .live-result .result-art{display:none!important}
html.direct-brand body .de-media-pending{opacity:0!important}
html.direct-brand body .de-media-ready{opacity:1;transition:opacity .24s ease}
html.direct-brand body .de-media-error{opacity:0!important}

@media(min-width:701px){
 html.direct-brand body .sidebar{padding-bottom:28px!important;min-height:0}
 html.direct-brand body .sidebar>.nav-btn,html.direct-brand body .sidebar>.side-title{flex-shrink:0}
 html.direct-brand body .sidebar #project-nav{flex:1 1 auto;min-height:42px;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#ffffff1a transparent;padding-bottom:10px}
 html.direct-brand body .sidebar .side-bottom{flex:0 0 auto;margin-top:14px;padding:20px 10px 14px!important}
 html.direct-brand body.de-sidebar-collapsed .sidebar .side-bottom{display:none}
}
html.direct-brand body .sidebar .folder-bar{gap:3px;align-items:center}
html.direct-brand body .sidebar button.project-icon-action,
html.direct-brand body .sidebar .folder-add-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 26px;width:26px;height:26px;min-width:26px;padding:0!important;border:0!important;border-radius:7px!important;background:transparent!important;box-shadow:none!important;color:#97959f}
html.direct-brand body .sidebar .folder-add-icon{flex-basis:20px;width:20px;min-width:20px}
html.direct-brand body .sidebar .folder-add-row{gap:9px;background:transparent!important;border:0!important;box-shadow:none!important}
html.direct-brand body .sidebar button.project-icon-action:hover{color:#fff;background:transparent!important}
html.direct-brand body .sidebar button.project-icon-action:focus-visible{outline:1px solid #7C5CFF;outline-offset:2px}
@media(hover:hover){html.direct-brand body .sidebar .folder-bar>.project-icon-action{opacity:0;transition:opacity .15s}html.direct-brand body .sidebar .folder-bar:hover>.project-icon-action,html.direct-brand body .sidebar .folder-bar:focus-within>.project-icon-action{opacity:1}}

html.direct-brand body :is(#direct-sync,#direct-dub) .sync-head{isolation:isolate;overflow:hidden;min-height:345px;padding-right:40%;border-bottom:0}
html.direct-brand body :is(#direct-sync,#direct-dub) .sync-muse{position:absolute;z-index:-1;right:-4%;top:0;width:66%;height:100%;object-fit:cover;object-position:70% center;pointer-events:none;mask-image:linear-gradient(90deg,transparent,#000 30%,#000 90%,transparent),linear-gradient(180deg,#000 65%,transparent);mask-composite:intersect;-webkit-mask-image:linear-gradient(90deg,transparent,#000 30%,#000 90%,transparent),linear-gradient(180deg,#000 65%,transparent);-webkit-mask-composite:source-in}
html.direct-brand body :is(#direct-sync,#direct-dub) .sync-head h1{font-size:clamp(38px,4.4vw,72px)}
html.direct-brand body :is(#direct-sync,#direct-dub) .sync-upload-trigger{width:60px;height:60px;display:grid;place-items:center;border:1px solid #ffffff20!important;border-radius:18px;background:#ffffff05!important;box-shadow:none!important;color:#ccc6da;cursor:pointer;padding:0;margin:0 0 4px}
html.direct-brand body :is(#direct-sync,#direct-dub) .sync-upload-trigger:hover{color:#fff;border-color:#7C5CFF80!important}
html.direct-brand body :is(#direct-sync,#direct-dub) .sync-upload-trigger:focus-visible{outline:2px solid #7C5CFF;outline-offset:4px}
@media(max-width:900px){html.direct-brand body :is(#direct-sync,#direct-dub) .sync-head{padding-right:25%}html.direct-brand body :is(#direct-sync,#direct-dub) .sync-muse{right:-12%;opacity:.55}html.direct-brand body :is(#direct-sync,#direct-dub) .sync-switch{flex-wrap:wrap}}
@media(max-width:600px){html.direct-brand body :is(#direct-sync,#direct-dub) .sync-head{padding-right:0;min-height:320px}html.direct-brand body :is(#direct-sync,#direct-dub) .sync-muse{width:100%;right:-25%;opacity:.25}html.direct-brand body :is(#direct-sync,#direct-dub) .sync-head h1{font-size:44px}}
@media(prefers-reduced-motion:reduce){#de-home .dm-panel,html.direct-brand body .de-media-ready{transition:none!important}#de-home .ds-front img{animation:none!important}}

/* Translation hero: keep the complete flag and statue visible. */
html.direct-brand body #direct-dub .sync-muse{right:-2%;width:62%;object-fit:contain;object-position:right center;mask-image:linear-gradient(90deg,transparent,#000 12%),linear-gradient(180deg,#000 82%,transparent);-webkit-mask-image:linear-gradient(90deg,transparent,#000 12%),linear-gradient(180deg,#000 82%,transparent)}
@media(max-width:900px){html.direct-brand body #direct-dub .sync-muse{right:-8%;width:75%}}
@media(max-width:600px){html.direct-brand body #direct-dub .sync-muse{right:-12%;width:100%;object-position:right top}}

html.direct-brand body #direct-sync .sync-muse{object-fit:contain;object-position:right center;right:0;width:62%}
@media(max-width:900px){html.direct-brand body #direct-sync .sync-muse{right:-8%;width:75%}}
@media(max-width:600px){html.direct-brand body #direct-sync .sync-muse{right:-12%;width:100%;object-position:right top}}
