/* Shared native HTML presentation. Media, forms, permissions and handlers stay native. */
html[data-dm-theme]{--dm-route-bg:#09090c;--dm-route-card:#111116;--dm-route-raised:#18181f;--dm-route-text:#f5f5f5;--dm-route-muted:#b7b4bd;--dm-route-accent:#f5f5f5;--dm-route-line:#ffffff26;color-scheme:dark;background:var(--dm-route-bg)!important}
html[data-dm-theme="code-black"]{--dm-route-bg:#000000;--dm-route-card:#0d0f11;--dm-route-raised:#171a1d;--dm-route-accent:#f5f5f5;--dm-route-muted:#b4b7bc}
html[data-dm-theme] body{background:var(--dm-route-bg)!important;color:var(--dm-route-text)!important;font-family:'DM Sans','Segoe UI',Arial,sans-serif!important}
html[data-dm-theme="code-black"] body.dm-entrance,html[data-dm-theme="code-black"] body.dm-auth-ready{--dm-ink:#000000;--dm-panel:#0d0f11;--dm-accent:#f5f5f5}
html[data-dm-theme="code-black"] body.dm-creator{--dmc-bg:#000000;--dmc-card:#0d0f11;--dmc-accent:#f5f5f5;--dmc-line:#ffffff26}
html[data-dm-theme="code-black"] .dm-stage{background:radial-gradient(ellipse at 80% 10%,#f5f5f513,transparent 55%),#060708}
html[data-dm-theme] a{color:var(--dm-route-accent)}
html[data-dm-theme] .panel,html[data-dm-theme] .panel-body,html[data-dm-theme] .panel-heading,html[data-dm-theme] .well,html[data-dm-theme] .list-group-item,html[data-dm-theme] .modal-content,html[data-dm-theme] .dropdown-menu,html[data-dm-theme] .popover,html[data-dm-theme] .popover-content,html[data-dm-theme] .card,html[data-dm-theme] .card-body,html[data-dm-theme] .bg-white,html[data-dm-theme] .bg-light,html[data-dm-theme] .bgWhite,html[data-dm-theme] .pagination>li>a,html[data-dm-theme] .pagination>li>span{background:var(--dm-route-card)!important;color:var(--dm-route-text)!important;border-color:var(--dm-route-line)!important}
html[data-dm-theme] .navbar,html[data-dm-theme] .navbar-default,html[data-dm-theme] .footer,html[data-dm-theme] #footer{background:var(--dm-route-card)!important;color:var(--dm-route-muted)!important;border-color:var(--dm-route-line)!important}
html[data-dm-theme] .navbar-default .navbar-nav>li>a,html[data-dm-theme] .dropdown-menu>li>a{color:var(--dm-route-text)!important}
html[data-dm-theme] .navbar-default .navbar-nav>li>a:hover,html[data-dm-theme] .dropdown-menu>li>a:hover{background:var(--dm-route-raised)!important;color:var(--dm-route-accent)!important}
html[data-dm-theme] .form-control,html[data-dm-theme] input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=submit]):not([type=button]),html[data-dm-theme] select,html[data-dm-theme] textarea,html[data-dm-theme] .input-group-addon{background:var(--dm-route-raised)!important;color:var(--dm-route-text)!important;border-color:var(--dm-route-line)!important;box-shadow:none}
html[data-dm-theme] input::placeholder,html[data-dm-theme] textarea::placeholder{color:#a9aab2!important;opacity:1}
html[data-dm-theme] .btn-default,html[data-dm-theme] .btn-light{background:var(--dm-route-raised)!important;border-color:var(--dm-route-line)!important;color:var(--dm-route-text)!important}
html[data-dm-theme] .btn-primary,html[data-dm-theme] .btn-success{background:var(--dm-route-accent)!important;color:#101010!important;border-color:var(--dm-route-accent)!important}
html[data-dm-theme] .table{color:var(--dm-route-text)!important;background:var(--dm-route-card)}
html[data-dm-theme] .table>thead>tr>th,html[data-dm-theme] .table>tbody>tr>td,html[data-dm-theme] .table>tbody>tr>th{border-color:var(--dm-route-line)!important}
html[data-dm-theme] .table-striped>tbody>tr:nth-of-type(odd),html[data-dm-theme] .table-hover>tbody>tr:hover{background:var(--dm-route-raised)!important}
html[data-dm-theme] .text-muted,html[data-dm-theme] .help-block{color:var(--dm-route-muted)!important}
html[data-dm-theme] .alert{color:var(--dm-route-text)!important;border-color:var(--dm-route-line)!important;background:#212024!important}
html[data-dm-theme] .alert-danger{background:#391d21!important;color:#f5f5f5!important}
html[data-dm-theme] .alert-warning{background:#292929!important;color:#f5f5f5!important}
html[data-dm-theme] .alert-success{background:#182b22!important;color:#d3eedf!important}
html[data-dm-theme] .nav-tabs{border-color:var(--dm-route-line)!important}
html[data-dm-theme] .nav-tabs>li.active>a,html[data-dm-theme] .nav-tabs>li>a:hover{color:var(--dm-route-accent)!important;background:var(--dm-route-raised)!important;border-color:var(--dm-route-line)!important}
html[data-dm-theme] .modal-header,html[data-dm-theme] .modal-footer{border-color:var(--dm-route-line)!important}
html[data-dm-theme] .close{color:var(--dm-route-text)!important;text-shadow:none;opacity:.85}
html[data-dm-theme] .label-default{background:#3c3d43}
html[data-dm-theme] :is(button,a,input,select,textarea):focus-visible{outline:2px solid var(--dm-route-accent)!important;outline-offset:3px}
.dm-route-header{box-sizing:border-box;position:relative;z-index:1031;margin:16px clamp(14px,3vw,48px) 22px;padding:15px 22px;min-height:68px;display:flex;align-items:center;justify-content:space-between;gap:24px;border:1px solid var(--dm-route-line);border-radius:15px;background:linear-gradient(120deg,#ffffff09,#ffffff02),var(--dm-route-card);box-shadow:0 10px 45px #0003}
.dm-route-brand{display:flex;align-items:center;gap:12px;text-decoration:none!important;white-space:nowrap;color:#f5f5f5!important;flex-shrink:0}.dm-route-brand span{font:500 12px 'Manrope','Segoe UI',sans-serif;letter-spacing:.24em;color:#f5f5f5}.dm-route-brand img{display:block;border:0;object-fit:contain}
.dm-route-header nav{display:flex;align-items:center;gap:22px;flex-wrap:wrap;font-size:12px}.dm-route-header nav a{color:var(--dm-route-text)!important;text-decoration:none!important}.dm-route-header nav a:hover{color:var(--dm-route-accent)!important}
.dm-route-tools,.dm-route-existing-tools{display:flex;align-items:center;gap:12px}.dm-route-existing-tools{margin-left:8px;flex-shrink:0}
.dm-route-picker{margin:0;display:inline-flex;flex-shrink:0}.dm-route-picker select{font:500 12px 'DM Sans','Segoe UI',sans-serif;border:1px solid var(--dm-route-line)!important;border-radius:999px;padding:9px 25px 9px 12px!important;max-width:135px;min-height:37px;cursor:pointer}
.dm-route-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
body.dm-route-shell{padding-top:0!important}.dm-route-shell #mainNavBar,.dm-route-shell #mainNavbar,.dm-route-shell body>nav.navbar,.dm-route-shell .navbar-fixed-top{position:relative!important;top:auto!important;margin-bottom:18px}
.dm-route-native-mark{width:34px!important;height:34px!important;object-fit:contain!important}
.dm-route-branded .container,.dm-route-branded .container-fluid{max-width:100%}.dm-route-branded h1,.dm-route-branded h2,.dm-route-branded h3{overflow-wrap:anywhere}
@media(max-width:900px){.dm-route-header{flex-wrap:wrap;gap:17px;padding:15px 18px}.dm-route-header nav{order:3;flex-basis:100%;gap:18px;font-size:12px;border-top:1px solid var(--dm-route-line);padding-top:15px}.dm-route-tools{margin-left:auto}.dm-header{flex-wrap:wrap}.dm-header nav{gap:18px}.dmc-header{flex-wrap:wrap}.dm-route-existing-tools{margin-left:auto}}
@media(max-width:480px){.dm-route-header{margin:12px 12px 20px;padding:13px;gap:12px}.dm-route-brand{gap:9px}.dm-route-brand span{font-size:10px;letter-spacing:.15em}.dm-route-brand img{width:29px;height:29px}.dm-route-picker select{font-size:11px;padding:8px 17px 8px 10px!important;max-width:112px}.dm-route-header nav{gap:14px;line-height:1.8;font-size:11px}.dm-header,.dmc-header{gap:18px}.dm-route-existing-tools{margin-left:0}.dm-auth-back,.dmc-watch{font-size:11px}.dm-route-branded .modal-dialog{max-width:calc(100vw - 20px)}.dm-route-branded table{max-width:100%}}
@media(prefers-reduced-motion:reduce){.dm-route-branded *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
html[data-dm-theme] .panel-footer,html[data-dm-theme] .thumbnail,html[data-dm-theme] footer:not(.dm-footer):not(.dmc-footer),html[data-dm-theme] .input-group{background:var(--dm-route-card)!important;color:var(--dm-route-muted)!important;border-color:var(--dm-route-line)!important}
html[data-dm-theme="code-black"] .dm-brand>span,html[data-dm-theme="code-black"] .dmc-brand>span{font-family:'Manrope','Segoe UI',sans-serif;font-weight:500}
.dm-route-shell>.row,.dm-route-shell>.container-fluid>.row{margin-left:0!important;margin-right:0!important}
html[data-dm-theme="code-black"] :is(.dm-route-brand,.dm-brand,.dmc-brand,.navbar-brand) img{filter:grayscale(.5) sepia(.2) brightness(1.1)}
.dm-route-shell>.container>.row{margin-left:0!important;margin-right:0!important}
.dm-route-branded .gallery>.row{margin-left:0!important;margin-right:0!important}

/* Native SweetAlert dialogs keep account/access messages readable in both themes. */
html[data-dm-theme] .swal-modal,html[data-dm-theme] .swal2-popup{background:var(--dm-route-card)!important;color:var(--dm-route-text)!important;border:1px solid var(--dm-route-line)}
html[data-dm-theme] .swal-title,html[data-dm-theme] .swal-text,html[data-dm-theme] .swal2-title,html[data-dm-theme] .swal2-html-container{color:var(--dm-route-text)!important}
html[data-dm-theme] .swal-button,html[data-dm-theme] .swal2-confirm{background:var(--dm-route-accent)!important;color:#101010!important}
html[data-dm-theme] .swal-icon--success__hide-corners,html[data-dm-theme] .swal-icon--success:before,html[data-dm-theme] .swal-icon--success:after{background:var(--dm-route-card)!important}

.dm-route-branded .row.mainArea{margin-left:0!important;margin-right:0!important}
.dm-route-live-intro{max-width:1240px;margin:26px auto 14px;padding:0 22px;color:var(--dm-route-text)}
.dm-route-live-intro h1{font-family:'Manrope','Segoe UI',sans-serif;font-size:clamp(26px,4vw,42px);font-weight:500;letter-spacing:-.035em;margin:0 0 12px}
.dm-route-live-intro p{color:var(--dm-route-muted);line-height:1.6;margin:0}
/* Code Black shared glass surfaces. Cozy retains only explicit Divine yellow accents. */
html[data-dm-theme]{--dm-route-bg:#000;--dm-route-card:#141619;--dm-route-raised:#191c21;--dm-route-text:#f5f5f7;--dm-route-muted:#b3b6bd;--dm-route-accent:#f5f5f7;--dm-route-line:#ffffff24;--dm-native-shadow:0 14px 40px #0005,inset 0 1px #ffffff08}
html[data-dm-theme] body:is(.dm-entrance,.dm-auth-ready){--dm-ink:#000;--dm-panel:#141619;--dm-accent:#f5f5f7;--dm-white:#f5f5f7;--dm-muted:#b3b6bd}
html[data-dm-theme] body.dm-creator{--dmc-bg:#000;--dmc-card:#141619;--dmc-accent:#f5f5f7;--dmc-line:#ffffff24}
html[data-dm-theme] :is(h1,h2,h3,.dm-route-brand,.dm-route-brand span,.dm-brand,.dmc-brand){color:var(--dm-route-text)!important}
html[data-dm-theme] :is(.dm-eyebrow,.dmc-eyebrow,.dm-stage-label,.dm-stage-caption,.dm-route-live-intro p){color:var(--dm-route-muted)!important}
html[data-dm-theme] :is(.dm-route-brand,.dm-brand,.dmc-brand,.navbar-brand) img{filter:none!important;content:url('/divine-shell/mark.svg?v=34-glass-1')}
html[data-dm-theme] :is(.btn,.swal-button,.swal2-confirm,.dm-primary,.dmc-tabs a[aria-current]){background:#14171bd9!important;color:var(--dm-route-text)!important;border:1px solid var(--dm-route-line)!important;box-shadow:var(--dm-native-shadow);text-shadow:none}
html[data-dm-theme] :is(.btn-primary,.btn-success,.btn-warning,.swal-button,.swal2-confirm,.dm-primary):hover{background:#24262b!important;color:#fff!important;border-color:#ffffff50!important;transform:none}
html[data-dm-theme] :is(.dm-route-header,.dm-header,.dmc-header,.dm-auth-card,.dmc-native,.dmc-tabs,.dm-creator #drop,.dm-creator #upload,.dm-creator-connect #loginForm){background:var(--dm-route-card)!important;border-color:var(--dm-route-line)!important;box-shadow:var(--dm-native-shadow);border-radius:14px}
html[data-dm-theme] .dm-stage{background:linear-gradient(145deg,#15181c,#030405)!important;border-color:var(--dm-route-line)}
html[data-dm-theme] .dm-stage-monogram{font-size:0!important;width:70%;height:70%;top:50%;left:50%;transform:translate(-50%,-50%);background:url('/divine-shell/mark.svg?v=34-glass-1') center/contain no-repeat;text-shadow:none!important}
html[data-dm-theme] .dm-stage-monogram>span{display:none}
html[data-dm-theme] :is(.dm-hero h1 em,.dm-auth-story h1 em){color:var(--dm-route-text);font-family:'DM Sans','Segoe UI',sans-serif;font-style:normal;font-weight:500}
html[data-dm-theme] :is(.alert,.alert-danger,.alert-warning,.alert-success,.label-warning){background:#191c21!important;border-color:#ffffff35!important;color:#e4e6eb!important}
html[data-dm-theme] :is(.progress-bar,.vjs-play-progress,.vjs-volume-level,.irs-bar){background:#e4e6eb!important}
html[data-dm-theme] :is(input[type=range],progress,input[type=checkbox],input[type=radio]){accent-color:#e4e6eb}
html[data-dm-theme] :is(.dm-primary svg,.dmc-upload-icon svg,.btn .fa,.btn .fas,.btn .glyphicon){color:#80d9ff;filter:drop-shadow(0 1px 1px #0006)}
html[data-dm-theme] .dmc-upload-icon svg{stroke:#80d9ff}.dm-primary svg{fill:currentColor}
html[data-dm-theme] :is(.fa-heart,.fa-bell){color:#ee93ce}html[data-dm-theme] :is(.fa-music,.fa-headphones){color:#bb9aff}html[data-dm-theme] :is(.fa-upload,.fa-check){color:#75edbd}
html[data-dm-theme] :is(button,a,input,select,textarea):focus-visible{outline:2px solid #fff!important;outline-offset:4px}
html[data-dm-theme] :is(.form-control,input,select,textarea):focus{border-color:#ffffff70!important;box-shadow:0 0 0 2px #ffffff15!important}
html[data-dm-theme] :is(.dm-route-header,.dm-header,.dmc-header,.dm-auth-card,.dropdown-menu,.modal-content,.swal-modal,.swal2-popup){scrollbar-width:thin;scrollbar-color:#ffffff38 transparent}
html[data-dm-theme] body{scrollbar-width:thin;scrollbar-color:#ffffff38 transparent}
html[data-dm-theme] input:autofill{-webkit-text-fill-color:#f5f5f7;box-shadow:0 0 0 1000px #191c21 inset!important}
html[data-dm-theme="default"]{--dm-route-accent:#ffcc2f}
html[data-dm-theme="default"] body:is(.dm-entrance,.dm-auth-ready){--dm-accent:#ffcc2f}
html[data-dm-theme="default"] body.dm-creator{--dmc-accent:#ffcc2f}
html[data-dm-theme="default"] :is(.btn-primary,.btn-success,.swal2-confirm,.dm-primary,.dmc-tabs a[aria-current]){background:#ffcc2fed!important;color:#0b0d10!important;border-color:#ffcc2f80!important}
html[data-dm-theme="default"] .dm-primary svg{color:#0b0d10;fill:#0b0d10;filter:none}
html[data-dm-theme="default"] :is(.progress-bar,.vjs-play-progress,.vjs-volume-level){background:#ffcc2f!important}
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
 html[data-dm-theme] :is(.dm-route-header,.dm-header,.dmc-header,.dm-auth-card,.panel,.well,.card,.modal-content,.dropdown-menu,.popover,.swal-modal,.swal2-popup,.dmc-tabs){background:#101215e8!important;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
}
@media(prefers-reduced-motion:reduce){html[data-dm-theme] *,html[data-dm-theme] *:before,html[data-dm-theme] *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

html[data-dm-theme] .btn-link{background:transparent!important;border-color:transparent!important;box-shadow:none}
html[data-dm-theme="code-black"] :is(.text-warning,.text-yellow,.text-gold){color:var(--dm-route-muted)!important}
