/* Ajustes de distribución. Se conserva la paleta y los motores de v6.23. */
/* El orden móvil heredado no debe ocupar la primera columna en escritorio. */
@media(min-width:1000px){
 .dash>.col-left{grid-column:1!important;grid-row:1;order:0!important;min-width:0}
 .dash>.col-center{grid-column:2!important;grid-row:1;order:0!important;min-width:0}
 .dash>.col-right{grid-column:3!important;grid-row:1;order:0!important;min-width:0}
}
#sonyPrimaryExtras{display:grid;gap:10px;margin-top:10px;min-width:0}
#sonyPrimaryExtras>.panel{margin:0;min-width:0}
body[data-public-brand=xbox][data-public-mode=calibrate] #vibCard{display:none!important}
body[data-public-brand=playstation][data-public-mode=test] #sonyPrimaryExtras{display:none!important}
body:not([data-public-brand=xbox]) #vibCard{display:none!important}
#psMotorCard .prow{gap:6px;margin:5px 0;flex-wrap:wrap}
#psMotorCard .prow label{flex:0 0 100%;width:auto;font-size:12px}
#psMotorCard .prow input{flex:1;min-width:0}
#psMotorCard .prow output{font-size:12px;min-width:44px;text-align:right}
#psMotorCard .cal-btnrow{gap:6px;margin:5px 0;flex-wrap:wrap}
#psMotorCard .btn{padding:7px 9px;font-size:12px}
#psMotorCard #psMotorStatus:empty{display:none}
#faqWinusb{display:none!important}

/* El touchpad y el IMU permanecen en la columna de entrada en vivo. */
body[data-public-brand=playstation] #psTouchCard{margin-top:8px;padding:8px 10px!important}
#psTouchCard .ext-touchwrap{width:min(100%,340px);margin:0 auto}
#psTouchCard #extTouchCv{display:block;width:100%;height:auto;aspect-ratio:16/9}
#psTouchCard .cal-btnrow{gap:5px;margin-top:6px;flex-wrap:wrap}
#psTouchCard .ext-chip,#psTouchCard .btn{padding:4px 7px;font-size:12px}
#psTouchCard .restnote:empty,#psImuCard .restnote:empty{display:none}
body[data-public-brand=playstation] #psImuCard{margin-top:8px;padding:8px 10px!important}
#psImuCard .imu-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#psImuCard .ext-imugroup{min-width:0;margin-top:2px}
#psImuCard .ext-sidehead{font-size:12px;margin-bottom:4px}
#psImuCard .ext-imurow{gap:5px;margin:3px 0;min-width:0;font-size:12px}
#psImuCard .ext-imulab{width:40px;font-size:12px}
#psImuCard .ext-imuval{min-width:43px;font-size:12px}
#psImuCard .ext-imubar{min-width:20px;height:7px}
#psImuCard .ext-imudot{width:6px;height:6px}
#psImuCard .ext-imurow:last-child .restnote{font-size:12px;line-height:1.25}
#psImuCard .cal-btnrow{margin:4px 0 0}
#psImuCard .cal-btnrow .btn{padding:5px 8px;font-size:12px}
@media(max-width:560px){
 #psTouchCard .ext-touchwrap{width:min(100%,290px)}
 #psImuCard .imu-columns{gap:8px}
 #psImuCard .ext-imulab{width:30px;font-size:12px}
 #psImuCard .ext-imuval{min-width:35px;font-size:12px}
 #psImuCard .ext-imurow{gap:3px}
 #psImuCard .ext-imurow:last-child{flex-wrap:wrap}
}
@media(max-width:350px){#psImuCard .imu-columns{grid-template-columns:1fr}}

/* Dialog nativo: centrado en la ventana, fuera de cualquier contenedor. */
#imgWelcome{position:fixed;inset:0;margin:auto;padding:0;width:min(620px,calc(100vw - 24px));max-width:none;height:min(810px,calc(100vh - 24px));height:min(810px,calc(100dvh - 24px));max-height:calc(100dvh - 24px);border:1px solid var(--line2,#33463a);border-radius:16px;background:var(--panel,#101711);color:var(--txt,#f1f6f1);box-shadow:0 24px 90px #0009;overflow:hidden}
#imgWelcome::backdrop{background:rgba(0,0,0,.72)}
#imgWelcome[open]{display:flex;flex-direction:column}
#imgWelcome .support-head{flex:none;padding:14px 48px 10px 18px;position:relative}
#imgWelcome h2{margin:0 0 5px;font-size:18px;line-height:1.25;color:var(--txt,#fff)}
#imgWelcome .support-head p{margin:0;font-size:12px;line-height:1.4;color:var(--mut,#b9c7bd)}
#imgWelcome .support-dismiss{position:absolute;right:10px;top:10px;width:30px;height:30px;border:1px solid var(--line2,#33463a);border-radius:8px;background:transparent;color:inherit;font-size:22px;line-height:1;cursor:pointer}
#imgWelcome .support-frame{display:block;flex:1 1 auto;width:calc(100% - 24px);min-height:0;margin:0 12px;border:0;border-radius:10px;background:#fff}
#imgWelcome .support-footer{flex:none;padding:10px 12px 12px}
#imgWelcomeClose{display:block;width:100%;margin:0;padding:10px;font-size:13px}
body.support-modal-open{overflow:hidden}
#imgVideoRow{margin-top:8px;gap:6px;flex-wrap:wrap}
#imgVideoRow .btn{font-size:12px;padding:5px 8px}
@media(max-height:620px){
 #imgWelcome .support-head{padding-top:9px;padding-bottom:7px}
 #imgWelcome h2{font-size:16px;margin-bottom:3px}
 #imgWelcome .support-head p{font-size:12px}
 #imgWelcome .support-footer{padding-top:7px;padding-bottom:8px}
 #imgWelcomeClose{padding:7px}
}

footer.public-footer{display:flex;flex-direction:column;align-items:center;text-align:center}
footer .footer-socials{justify-content:center;gap:10px 22px}
footer .footer-socials a{min-height:32px}

body:not([data-public-brand="xbox"]) #firmwareCard{display:none!important}
#firmwareCard p{font-size:12px;line-height:1.5;overflow-wrap:anywhere}

/* Production readability, without removing technical values. */
#psMotorCard .btn,#psTouchCard .btn,#psImuCard .btn{font-size:13px;min-height:36px}
#psImuCard .ext-imuval{min-width:58px;font-variant-numeric:tabular-nums;white-space:nowrap}
#psImuCard .ext-imulab{min-width:36px}
#firmwareCard .btn{font-size:13px;min-height:40px}
#firmwareCard p{font-size:13px;line-height:1.5;font-variant-numeric:tabular-nums}
#fVid,#fPid,#fSerial,#fModel{overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.compatibility-notice{padding:10px 12px;border:1px solid #d98b36;border-radius:10px;color:#ffd180;font-size:14px;line-height:1.5}
.brand-logo{width:25px;height:25px;flex:none}
#tutorialLink{display:inline-flex;align-items:center;justify-content:center;font-size:13px;min-height:34px;text-decoration:none}
