*{box-sizing:border-box}body{margin:0;background:#f3f5f8;color:#19222e;font:16px system-ui,-apple-system,Arial}header{background:#101820;color:#e7c16d;display:flex;align-items:center;gap:12px;padding:13px 16px;position:sticky;top:0;z-index:2}header img{width:42px;height:42px;object-fit:cover;border-radius:9px}header small{display:block;color:#c7d1dd;font-size:10px;letter-spacing:.6px}header b{font-size:14px}header button{margin-left:auto;width:auto;padding:8px}main{max-width:580px;margin:auto;padding:20px 15px 70px}section#login,section#form-page,section#tickets-page,section#detail-page{background:#fff;border-radius:17px;padding:20px;box-shadow:0 2px 16px #18253612}h1{font-size:24px;margin:0 0 6px}h2{font-size:21px}p{line-height:1.45;color:#586579}label{display:block;font-size:14px;font-weight:650;margin:14px 0 8px}input,select,textarea{display:block;width:100%;margin-top:7px;border:1px solid #c9d1db;border-radius:10px;font:inherit;padding:12px;background:#fff;color:#17202b}input[type=file]{padding:10px;font-size:13px}button{font:inherit;border:0;background:#d8b35f;color:#101820;border-radius:12px;padding:14px 16px;font-weight:750;cursor:pointer;width:100%;margin-top:12px}button:disabled{opacity:.5}button.link,.back{background:transparent;color:#26394f;text-align:left;padding:8px 0}.outline{background:#fff;border:1px solid #d1d8df;text-align:left}.welcome{margin-bottom:16px}.tiles{display:grid;grid-template-columns:1fr 1fr;gap:11px}.tiles button{margin:0;min-height:157px;background:#202f40;color:#f5d37f;text-align:left;font-size:28px;padding:17px;display:flex;flex-direction:column;gap:9px}.tiles button:first-child{background:#d8b35f;color:#17202b}.tiles b{font-size:15px}.tiles small{font-size:12px;font-weight:400;color:inherit;opacity:.9}.install,.muted{font-size:12px;color:#697687}.two{display:grid;grid-template-columns:1fr 1fr;gap:10px}.two label{min-width:0}#notice:not(:empty){background:#fff1c5;border:1px solid #d6af48;border-radius:10px;padding:12px;margin-bottom:14px}#notice.error{background:#ffe3e3;border-color:#d86c6c}.ticket{background:#fff;border:1px solid #dce2e8;border-radius:12px;padding:15px;margin:12px 0;cursor:pointer}.ticket small{display:block;color:#6a7787;margin-top:5px}.tag{background:#eef2f7;padding:4px 8px;border-radius:8px;font-size:12px}.contact{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:15px}.contact a{background:#e8edf4;color:#213247;text-align:center;padding:13px;border-radius:10px;text-decoration:none}.file-link{display:block;padding:8px 0;word-break:break-word}.msg{padding:10px;background:#f0f3f7;border-radius:9px;margin:8px 0}#logout{background:#293747;color:#fff;font-size:13px}
/* Identidad visual MD Remote Connect */
:root{--md-ink:#101820;--md-gold:#d8b35f;--md-gold-light:#f0d992;--md-muted:#657287}
body{background:linear-gradient(180deg,#edf0f4 0%,#f6f7f9 55%,#eef1f5 100%);min-height:100vh}
header{box-shadow:0 3px 18px #10182020;border-bottom:2px solid #d8b35f;min-height:76px}
header img{width:52px;height:52px;object-fit:cover;border-radius:13px;border:1px solid #d8b35f55}
header b{font-size:15px;letter-spacing:.45px}
main{min-height:calc(100vh - 240px);max-width:650px;padding-top:25px}
#login{max-width:490px;margin:0 auto;padding:25px 23px 30px!important}
.login-brand{text-align:center;margin-bottom:22px}
.login-brand img{width:140px;height:140px;object-fit:contain;display:block;margin:0 auto 12px;border-radius:22px}
.login-brand span,.eyebrow{display:block;color:#94752f;letter-spacing:1.8px;font-size:10px;font-weight:800}
#login h1{font-size:24px;letter-spacing:-.6px}
#login p{font-size:14px}
#portal .welcome{padding:8px 3px 6px}
.welcome h1{font-size:26px;letter-spacing:-.65px;margin-top:6px}
.tiles button{border:1px solid #d8b35f44;box-shadow:0 5px 15px #10182013;transition:transform .15s ease,box-shadow .15s ease;border-radius:16px}
.tiles button:active{transform:scale(.98)}
.tiles button:focus-visible,button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #d8b35f;outline-offset:3px}
.tiles button:first-child{background:linear-gradient(145deg,#f0d992,#d8b35f);border-color:#c29c49}
.tiles button:not(:first-child){background:linear-gradient(145deg,#28394c,#152333)}
button:not(.link):not(.back){transition:filter .15s ease}button:hover{filter:brightness(1.04)}
.site-footer{max-width:650px;margin:15px auto 0;padding:25px 18px 35px;text-align:center;border-top:1px solid #d5dce5;display:flex;flex-direction:column;align-items:center;gap:6px;color:#647184;font-size:11px;line-height:1.45}
.site-footer img{width:42px;height:42px;object-fit:cover;border-radius:11px;margin-bottom:4px}
.site-footer strong{color:#273343;font-size:12px;letter-spacing:.6px}
.site-footer a{color:#5a6678;text-underline-offset:2px}
@media(max-width:360px){.tiles{gap:8px}.tiles button{min-height:150px;padding:13px}.tiles b{font-size:14px}.tiles small{font-size:11px}}
@media(min-width:700px){main{padding-top:35px}.tiles button{min-height:172px}}

.tiles button[data-service="Recogida de filtros"]{background:linear-gradient(145deg,#2b3843,#17242f);border:1px solid #d8b35f88}
.tiles button[data-service="Recogida de filtros"] b{color:#f3d68e}

.service-help{border:1px solid #c6a04b;border-radius:12px;background:#fff8e8;padding:12px 14px;margin:14px 0;color:#1b2632}.service-help summary{font-weight:700;cursor:pointer;list-style:none;display:block}.service-help summary::-webkit-details-marker{display:none}.service-help p{font-size:.94rem;line-height:1.5;margin:10px 0 2px}

/* V5.9.2: cita sincronizada con el ticket de MD Manager */
.appointment-card{border:2px solid #d7b15e;background:#fff6dd;color:#1c2935;border-radius:15px;padding:16px;margin:14px 0}.appointment-card strong{display:block;font-size:1.05rem}.appointment-card p{font-weight:750;font-size:1.15rem;margin:10px 0}.appointment-card small{display:block;margin-top:6px;color:#4c596a}.appointment-list{color:#775211;font-weight:700}#refresh-appointment{margin:5px 0 14px;width:100%;min-height:44px}

.brand-home{background:transparent;border:0;padding:0;cursor:pointer;display:flex;align-items:center;flex:0 0 auto}.brand-home img{width:inherit;max-height:64px}.ticket-actions{display:grid;gap:10px;margin:18px 0}.ticket-actions button{width:100%}
header .brand-home img{width:48px;height:48px;object-fit:contain}

.tag.tag-cancelado{background:#ffe0e0;color:#9d1717;border:1px solid #e69b9b}.tag.tag-finalizado{background:#d9f7e2;color:#12652f;border:1px solid #85c99a}.ticket:has(.tag-cancelado){border-left:5px solid #c42c35}.ticket:has(.tag-finalizado){border-left:5px solid #278b4d}

/* V5.9.8: consentimiento legal obligatorio */
.md-legal-overlay[hidden]{display:none!important}.md-legal-overlay{position:fixed;inset:0;z-index:99999;background:rgba(0,0,0,.8);display:flex;align-items:center;justify-content:center;padding:12px}.md-legal-panel{box-sizing:border-box;width:min(820px,100%);max-height:95dvh;overflow:auto;background:#16232c;color:#fff;border:1px solid #bba16a;border-radius:14px;padding:20px}.md-legal-panel h2{margin:0 0 8px}.md-legal-scroll{height:min(47dvh,420px);overflow:auto;overscroll-behavior:contain;background:#fff;color:#111;border-radius:8px;border:2px solid #d5b566;padding:18px}.md-legal-scroll pre{font:14px/1.55 system-ui,sans-serif;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.md-legal-check{display:flex!important;align-items:flex-start;gap:12px;margin:12px 0;line-height:1.5}.md-legal-check input{flex:none;margin-top:5px;width:19px;height:19px}.md-legal-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}.md-legal-actions button{width:auto;min-height:45px}.md-legal-panel button:disabled{opacity:.45;cursor:not-allowed}#legal-error{color:#ffb2b2}

/* V5.10.2 PWA: acceso directo y safe area en móviles. */
.pwa-install{margin:22px 0 5px;background:#fff;border:1px solid #e5d4a1;border-radius:17px;padding:15px;box-shadow:0 2px 10px #1018200a}
.pwa-install[hidden]{display:none!important}
.pwa-install-top{display:flex;align-items:center;gap:13px}
.pwa-install-top img{flex:0 0 58px;width:58px;height:58px;border-radius:14px}
.pwa-install-top strong{font-size:14px;color:#172232}
.pwa-install-top p{font-size:12px;margin:4px 0 0;line-height:1.45}
#pwa-install-button{margin:12px 0 0}
@media (display-mode:standalone){header{padding-top:calc(13px + env(safe-area-inset-top))}.site-footer{padding-bottom:calc(35px + env(safe-area-inset-bottom))}}

/* V5.10.7 preview: configuracion privada de cuenta del taller */
.header-actions{display:flex;align-items:center;gap:8px;margin-left:auto;flex:0 0 auto}
.header-actions button{margin:0;width:auto;white-space:nowrap}
#remote-account{display:flex;align-items:center;gap:4px;padding:10px;border:1px solid #d8b35f80;background:#253749;color:#f4d27f;font-size:12px}
#remote-account[hidden]{display:none!important}
#account-page{background:#fff;border-radius:17px;padding:20px;box-shadow:0 2px 16px #18253612}
.remote-account-form{border-bottom:1px solid #dae0e7;padding-bottom:24px}
.remote-push-section{margin-top:22px}
#md-push-settings{max-width:100%}
#md-push-settings button{width:auto;margin:0;text-align:center}
#md-push-settings small{color:#3e4c5e;line-height:1.4}
@media(max-width:390px){header{gap:8px;padding:10px}header b{font-size:12px}header small{font-size:9px}.header-actions{gap:5px}.header-actions button{padding:8px;font-size:12px}#remote-account span{display:none}}

.service-help-links{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}.service-help-links a,.service-help-links button{display:inline-block;border:1px solid #c6a04b;color:#19293b;background:white;padding:9px 12px;border-radius:8px;text-decoration:none;font-weight:600}

/* V5.10.11 - subtle press response in MD Remote; no change to forms or API. */
button.md-press-flash:not(:disabled),a.btn.md-press-flash{background:#8b6328!important;color:#fff8e8!important;border-color:#e7c579!important;box-shadow:inset 0 2px 6px #1115,0 0 0 2px #e6c37266!important;transform:scale(.988)}
button.outline.md-press-flash:not(:disabled),button.link.md-press-flash:not(:disabled),button.back.md-press-flash:not(:disabled){background:#25364a!important;color:#fff1cc!important;border-color:#d9b96b!important}

/* V5.10.14 — mensajería de voz y coordinación Quick Assist. */
.md-voice-composer{border:1px solid #d9c184;background:#fffaf0;border-radius:13px;padding:13px;margin:15px 0}
.md-voice-composer strong{display:block;font-size:14px;color:#604915}
.md-voice-hint,.md-voice-status,.md-remote-assist-note{font-size:12px;color:#546276;line-height:1.5;margin:7px 0}
.md-voice-buttons{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0}
.md-voice-buttons button{width:auto;flex:1 1 96px;margin:0;padding:10px 7px;font-size:13px;border:1px solid #c5a154;border-radius:9px}
.md-voice-buttons button:disabled{opacity:.4}
.md-voice-file{font-size:12px;font-weight:500;color:#526175}
.md-voice-input{font-size:12px;padding:8px}
.md-voice-preview,.md-voice-playback{display:block;width:100%;max-width:100%;margin:10px 0;min-height:44px}
.md-voice-preview[hidden]{display:none}
.md-remote-assist-card{border:1px solid #d6b866;border-radius:13px;padding:14px;margin:18px 0;background:#fff9eb}
.md-remote-assist-card h3{font-size:17px;color:#5e4614;margin:0 0 7px}
.md-remote-assist-info{font-size:13px;color:#45546a;line-height:1.5}
.md-remote-assist-code{font-size:27px;letter-spacing:.15em;color:#143047;background:#fff;border-radius:9px;border:1px solid #d1b56d;padding:12px;display:inline-block;font-weight:800}
.md-remote-assist-actions{display:grid;grid-template-columns:1fr;gap:8px;margin:13px 0}
.md-remote-assist-actions button{width:100%;margin:0;padding:11px}
.md-remote-assist-actions button.md-remote-secondary{background:white;color:#26364a;border:1px solid #bcc5ce}
.md-remote-assist-link{padding:12px;background:#23374d;color:#f4e0ae;text-align:center;text-decoration:none;border-radius:8px;font-size:13px;font-weight:650}
.md-remote-assist-error{font-size:12px;color:#ab3030}
#attached .md-voice-playback{margin-bottom:18px}


/* V5.10.15 · doble validacion del Xhorse Smart Cloud; cronometro privado. */
.md-sc-card{border:1px solid #4b4540;border-radius:13px;padding:16px;background:linear-gradient(145deg,rgba(217,185,107,.09),rgba(18,21,26,.94) 55%);color:#f4f2ed;min-width:0;margin:14px 0}
.md-sc-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
.md-sc-head h3{font-size:16px;line-height:1.35;margin:0}
.md-sc-caption{font-size:11px;color:#bcc0c5;margin:9px 0 14px;line-height:1.5}
.md-sc-badge,.md-sc-indicator{display:inline-flex;align-items:center;max-width:100%;border-radius:8px;border:1px solid currentColor;padding:6px 9px;font-size:11px;font-weight:750;line-height:1.3}
.md-sc-green{background:rgba(42,143,96,.21);border-color:#59b388;color:#a9efd0}
.md-sc-red{background:rgba(173,57,58,.16);border-color:#b06a6b;color:#f5b2b2}
.md-sc-amber{background:rgba(178,128,49,.16);border-color:#b59255;color:#efd49b}
.md-sc-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.md-sc-step{min-width:0;border-radius:11px;border:1px solid #444a51;background:rgba(14,18,22,.6);padding:12px;display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.md-sc-step-name{font-size:12px;font-weight:800;color:#dfc787}
.md-sc-step p{font-size:12px;line-height:1.55;color:#cdd2d6;margin:0}
.md-sc-step .md-sc-warning{padding:11px;border-left:3px solid #dfa85e;border-radius:5px;background:#4f3724;color:#fff3dc;font-weight:750}
.md-sc-button,.md-sc-refresh{border-radius:9px;border:1px solid #d2ba78;padding:9px 11px;font:inherit;font-weight:750;cursor:pointer;transition:background .15s ease,color .15s ease;line-height:1.4}
.md-sc-button{margin-top:auto;width:100%}
.md-sc-ready{background:#287b4e;color:white;border-color:#75bf8d}
.md-sc-unready{background:#653435;color:#ffe7e7;border-color:#cb7a7d}
.md-sc-button:disabled{opacity:.4;cursor:not-allowed}
.md-sc-button:active:not(:disabled),.md-sc-refresh:active{filter:brightness(1.25);transform:translateY(1px)}
.md-sc-private{margin-top:13px;padding:12px;border-radius:10px;border:1px solid rgba(217,185,107,.35);background:rgba(0,0,0,.23)}
.md-sc-private-label{display:block;font-size:11px;color:#dbbd72;font-weight:800}
.md-sc-private strong{display:block;font-variant-numeric:tabular-nums;font-feature-settings:'tnum';font-size:30px;letter-spacing:.065em;margin-top:5px}
.md-sc-private small{display:block;color:#aeb2b6;font-size:11px;margin-top:3px}
.md-sc-foot{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:12px;font-size:11px}
.md-sc-refresh{background:transparent;color:#f0dfb7;border-color:#686355;padding:6px 10px}
.md-sc-error{color:#ffb7b2;overflow-wrap:anywhere}
@media(max-width:730px){.md-sc-card{padding:12px}.md-sc-steps{grid-template-columns:1fr}.md-sc-head h3{font-size:14px}.md-sc-step{padding:12px}.md-sc-private strong{font-size:27px}}

/* V5.10.16: Smart Cloud legible and truly high-visibility at any screen in Remote. */
.md-sc-card{background:#151c27!important;color:#f5f6f9!important;border:2px solid #c9a85b!important;box-shadow:0 8px 18px #0002}
.md-sc-card h3,.md-sc-card .md-sc-caption,.md-sc-card .md-sc-step-name{color:#f7e3ad!important}
.md-sc-card .md-sc-caption{color:#dbe1eb!important}
.md-sc-card .md-sc-step{background:#101720!important;border-color:#516070!important}
.md-sc-card .md-sc-step p{color:#f0f3f7!important}
.md-sc-card .md-sc-refresh{color:#fff!important;border-color:#dcba67!important}
.md-sc-global-live{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:9999;width:min(570px,calc(100vw - 26px));max-height:calc(100dvh - 32px);overflow-y:auto;box-shadow:0 17px 65px #000a,0 0 0 6px #ffcf38a0;border:4px solid #ffe667;border-radius:20px;background:linear-gradient(145deg,#a82024,#77191e);color:#fff!important;padding:20px 18px;text-align:center;animation:md-sc-live-pulse 2.4s ease-in-out infinite}
.md-sc-live-head{display:flex;justify-content:center;align-items:center;gap:12px;font-size:clamp(18px,4.6vw,25px);line-height:1.2;color:#fff!important}
.md-sc-live-light{width:21px;height:21px;border-radius:50%;background:#ffe66d;box-shadow:0 0 0 5px #fff3,0 0 22px #ffdc62;flex-shrink:0}
.md-sc-live-ticket{font-weight:800;color:#fff7d2!important;margin:12px 0 8px;overflow-wrap:anywhere}
.md-sc-live-command{background:#ffdf5b;color:#271005!important;font-size:clamp(14px,3.7vw,19px);font-weight:900;border-radius:10px;padding:11px 8px;margin:12px 0!important;line-height:1.25}
.md-sc-live-explain{font-weight:650;color:#fff!important;font-size:14px;line-height:1.45}
.md-sc-global-live button{cursor:pointer;font-size:13px;font-weight:800;border-radius:10px;border:2px solid #ffeb94;color:#482020;background:#fff6d5;min-height:44px;padding:9px 14px;width:100%;margin:5px 0 0}
.md-sc-live-expand[hidden]{display:none!important}
.md-sc-global-live.md-sc-live-compact{top:auto;bottom:calc(17px + env(safe-area-inset-bottom));transform:translateX(-50%);max-width:min(520px,calc(100vw - 20px));padding:9px 11px;animation:md-sc-live-compact 3s ease-in-out infinite;border-width:2px}
.md-sc-live-compact .md-sc-live-head,.md-sc-live-compact .md-sc-live-body,.md-sc-live-compact .md-sc-live-ack{display:none}
.md-sc-live-compact .md-sc-live-expand{display:block;color:#23130b;background:#ffe05c;border:0;margin:0;font-size:14px}
@keyframes md-sc-live-pulse{0%,100%{box-shadow:0 17px 65px #000a,0 0 0 4px #ffd44755}50%{box-shadow:0 17px 65px #000a,0 0 0 10px #ffd44788}}
@keyframes md-sc-live-compact{0%,100%{box-shadow:0 8px 30px #0008,0 0 0 3px #ffd44744}50%{box-shadow:0 8px 30px #0008,0 0 0 6px #ffd44788}}
.md-voice-playback-status,.md-voice-download{font-size:12px;color:#4b5b6a;display:block;margin:6px 0;line-height:1.35}
@media (prefers-reduced-motion:reduce){.md-sc-global-live,.md-sc-global-live.md-sc-live-compact{animation:none!important}}

/* V5.10.18: header refresh fits iPhone/Android without hiding account or logout. */
#remote-refresh{width:38px;min-width:38px;height:40px;display:inline-flex;align-items:center;justify-content:center;padding:0;margin:0;border:1px solid #d1ad68;background:#20334a;color:#f7d78e;border-radius:10px;font-size:27px;font-weight:750;line-height:1;cursor:pointer}
#remote-refresh[hidden]{display:none!important}
#remote-refresh:disabled{opacity:.48;cursor:progress}
@media(max-width:420px){header{gap:6px}.header-actions{gap:5px}#remote-refresh{width:35px;min-width:35px;height:36px;font-size:24px}}

/* V5.10.19 · Notas de voz en su posicion cronologica de la conversacion. */
.md-conversation-entry{padding:11px 13px;border:1px solid var(--stroke,#d5dbe3);border-radius:12px;background:var(--surface2,#eff2f6);overflow-wrap:anywhere;min-width:0}
.md-conversation-entry .md-conversation-text{margin:0 0 8px;white-space:pre-wrap}
.md-conversation-entry .md-conversation-time{display:block;margin-top:7px;font-size:11px;opacity:.8}
.md-conversation-voice{display:flex;align-items:center;min-width:0}
.md-voice-inline-trigger{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;max-width:100%;border-radius:25px;padding:9px 16px;background:#d9b96b;color:#151515;border:1px solid #d9b96b;font-weight:700;cursor:pointer}
.md-voice-inline-trigger:focus-visible{outline:2px solid #ba9150;outline-offset:3px}
.md-conversation-entry .md-voice-playback{width:100%;max-width:100%;margin:9px 0 0}
.md-conversation-entry .md-voice-playback-status{font-size:12px;margin:5px 0 0}
.md-conversation-empty{padding:12px;opacity:.8}

#messages{display:grid;gap:9px;margin-bottom:18px}
#messages .md-conversation-entry{background:#eef2f7;color:#1e2b39;border-color:#d4dbe4}
#messages .md-conversation-entry .md-conversation-time{color:#607083}

/* V5.10.22 · taller: editor sencillo de máquinas de diagnosis dentro de Cuenta. */
.md-remote-account-equipment{margin:18px 0;background:white;border:1px solid #d6dce2;border-radius:15px;padding:15px}
.md-remote-account-equipment h3{color:#263748}

/* V5.10.28: seleccionar ficha tecnica en iOS / Android sin forzar la camara */
.md-remote-tech-picker{display:block;box-sizing:border-box;min-width:0;max-width:100%;margin:12px 0;color:#17202a}
.md-remote-tech-picker>strong{font-size:1.03rem}.md-remote-tech-picker>p{font-size:.88rem;color:#536174;line-height:1.45;margin:7px 0}
.md-tech-picker-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.md-tech-picker-actions button{min-width:0;max-width:100%;box-sizing:border-box;min-height:52px;padding:9px 5px;font-size:.88rem;line-height:1.25;border:1px solid #d4b365;background:#252a35;color:#f9e3a9;border-radius:11px;cursor:pointer}
.md-tech-picker-name{overflow-wrap:anywhere;background:#eef1f5;border:1px solid #cbd3dd;padding:11px;border-radius:9px;color:#27384d!important}
@media(max-width:390px){.md-tech-picker-actions{grid-template-columns:1fr 1fr}.md-tech-picker-actions button:last-child{grid-column:1/-1}}


/* V5.10.41 · titulo sobre los controles, por debajo de la zona de degradado iOS; logo MD sigue siendo Inicio. */
.remote-topbar{display:flex;flex-direction:column;align-items:stretch;gap:8px;min-height:0;padding:16px 12px 10px;position:sticky;top:0;z-index:60;background:#101820;border-bottom:2px solid #d8b35f}
.remote-topbar .remote-header-row{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-width:0}
.remote-topbar .brand-home{width:44px;height:44px;min-width:44px;padding:0;margin:0;flex:0 0 44px;display:flex;align-items:center;justify-content:center;background:transparent;border:0;border-radius:10px}
.remote-topbar .brand-home img{width:44px;height:44px;max-height:none;object-fit:contain;border-radius:10px}
.remote-topbar .header-actions{display:flex;flex:1 1 auto;min-width:0;align-items:center;justify-content:space-evenly;gap:6px;margin-left:0}
.remote-topbar .header-actions button{margin:0!important;width:42px!important;min-width:42px!important;height:42px!important;min-height:42px!important;max-width:42px!important;padding:0!important;border-radius:11px!important;display:inline-flex;align-items:center;justify-content:center;position:relative;flex:0 0 42px;line-height:1!important;font-size:25px!important}
.remote-topbar .header-actions button[hidden]{display:none!important}
.remote-topbar #md-bell{background:#fff7df!important;border:1px solid #cba954!important;color:#202020!important}
.remote-topbar #remote-refresh{background:#20334a;color:#f7d78e;border:1px solid #d1ad68;font-size:27px!important}
.remote-topbar #remote-obd{background:#3c3118;color:#ffd36b;border:2px solid #ffce54;box-shadow:inset 0 0 0 2px #8e652c5c;cursor:pointer}
.remote-topbar #remote-obd.md-obd-working{background:#0f3d26;border-color:#56d48c;color:#a1f0be;box-shadow:0 0 0 2px #56d48c26}
.remote-topbar #remote-obd svg{display:block;width:28px;height:23px}
.remote-topbar #remote-account{background:#253749;color:#f4d27f;border:1px solid #d8b35f80}
.remote-topbar #logout{background:#293747;color:#fff;border:1px solid #5c6673}
.remote-topbar .remote-action-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.remote-topbar .remote-header-title{align-self:center;width:100%;text-align:center;color:#e6c36d;font-size:13px;font-weight:850;line-height:1.35;letter-spacing:1.15px;white-space:nowrap;padding:0 6px}
.remote-topbar button:focus-visible{outline:3px solid #e9cd83;outline-offset:2px}
@media(max-width:390px){.remote-topbar{padding-left:8px;padding-right:8px;gap:7px}.remote-topbar .header-actions{gap:4px}.remote-topbar .brand-home{width:40px;min-width:40px;height:40px;flex-basis:40px}.remote-topbar .brand-home img{width:40px;height:40px}.remote-topbar .header-actions button{width:39px!important;min-width:39px!important;height:40px!important;min-height:40px!important;max-width:39px!important;flex-basis:39px}.remote-topbar .remote-header-row{gap:4px}}
@media(max-width:330px){.remote-topbar .header-actions{gap:3px}.remote-topbar .header-actions button{width:36px!important;min-width:36px!important;max-width:36px!important;flex-basis:36px}}
/* iOS/Android PWA: keep the title and controls below the translucent system-status gradient. */
@media(display-mode:standalone){.remote-topbar{padding-top:calc(25px + env(safe-area-inset-top))}}
@supports(padding-top:env(safe-area-inset-top)){
  @media(display-mode:standalone){.remote-topbar .remote-header-title{position:relative;z-index:1}}
}
/* Dialogo de confirmacion Smart Cloud desde la cabecera: amarillo=desconectar; verde=aviso. */
.md-obd-modal[hidden],.md-obd-modal [hidden]{display:none!important}
.md-obd-modal{position:fixed;inset:0;z-index:10050;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(4,10,18,.80)}
.md-obd-dialog{width:min(440px,100%);max-height:calc(100dvh - 36px);overflow:auto;background:#141e29;color:#f2f4f7;border:2px solid #d8b35f;border-radius:17px;padding:21px;box-shadow:0 15px 70px #000b}
.md-obd-dialog h2{margin:0 0 9px;font-size:21px;color:#e9ca83}
.md-obd-dialog p{color:#e1e5ea;line-height:1.45;font-size:15px;margin:9px 0 15px}
.md-obd-dialog .md-obd-warning{color:#ffe9a2;background:#663522;border:1px solid #cf976a;border-radius:10px;padding:12px;font-weight:750}
.md-obd-dialog label{display:block;color:#e9ca83;margin:8px 0;font-size:13px}
.md-obd-dialog select{color:#101820;background:#fff;width:100%;margin-top:6px}
.md-obd-dialog .md-obd-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:15px}
.md-obd-dialog button{font-size:14px;min-height:46px;margin:0;padding:10px}
.md-obd-dialog .md-obd-cancel{color:#f1f2f4;background:#263849;border:1px solid #607182}
.md-obd-dialog .md-obd-confirm{color:#22180d;background:#e9c267}
.md-obd-dialog .md-obd-message{font-size:13px;color:#ffccbf;margin:8px 0 0}
.md-obd-dialog .md-obd-only-ok{grid-column:1/-1}


/* V5.10.42 | Cabecera MD Remote en escritorio.
   Mantenemos el logo a la izquierda y los iconos en un grupo compacto a la
   derecha. La distribucion validada de movil / apaisado no se modifica. */
@media (min-width: 1024px) {
  .remote-topbar .remote-header-row {
    justify-content: space-between;
  }
  .remote-topbar .header-actions {
    flex: 0 0 auto;
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
    gap: 12px;
  }
}
