/* HACKERWEB V91.2 · Cámara nativa mínima; se conserva corrección de navegación V91.1. */
#v48-phone-overlay[data-phone-state="app"] #v48-phone-screen .v51-app-view:has(.hw58-app){padding:0!important;display:flex;flex-direction:column;overflow:hidden;background:#f7f7fa!important}
#v48-phone-overlay[data-phone-state="app"] #v48-phone-screen .v51-app-view:has(.hw58-app)>.v51-app-back,#v48-phone-overlay[data-phone-state="app"] #v48-phone-screen .v51-app-view:has(.hw58-app)>.v51-app-title{display:none!important}
#v48-phone-overlay[data-phone-state="app"] #v48-phone-screen .v51-app-view:has(.hw58-app)>.v51-ios-status{z-index:9;color:#141820;text-shadow:none;pointer-events:none}
#v48-phone-screen .v51-app-view .v51-app-content:has(.hw58-app){flex:1;min-height:0;width:100%;margin:0;padding:0!important;overflow:hidden;display:flex;line-height:1.25}
#v48-phone-screen .hw58-app{--ink:#151820;--sub:#777984;--bg:#f7f7fa;--card:#fff;--line:#e7e8ed;--blue:#1478ef;--glass:#fff8;flex:1;min-width:0;min-height:0;width:100%;height:100%;display:flex;flex-direction:column;overflow:hidden;position:relative;background:var(--bg);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,'Helvetica Neue',sans-serif;font-size:clamp(9px,1.2vw,13px);line-height:1.3;isolation:isolate}
#v48-phone-screen .hw58-app[data-theme="dark"]{--ink:#f4f4f7;--sub:#b8bcc8;--bg:#17191e;--card:#292c33;--line:#363942;--blue:#60a5fa;--glass:#292d35d9}
#v48-phone-screen .hw58-app button,#v48-phone-screen .hw58-app input{font-family:inherit;font-size:inherit;touch-action:manipulation}
#v48-phone-screen .hw58-app button{cursor:pointer;-webkit-tap-highlight-color:transparent}
#v48-phone-screen .hw58-app button:focus-visible{outline:2px solid var(--blue);outline-offset:1px}
#v48-phone-screen .hw58-app button:disabled{opacity:.33;cursor:default}
#v48-phone-screen .hw58-top{height:12%;min-height:48px;padding:19% 5% 2%;box-sizing:border-box;flex-shrink:0;display:flex;justify-content:space-between;align-items:center;gap:5px;font-size:clamp(8px,1vw,12px);color:var(--ink)}
#v48-phone-screen .hw58-top>span:nth-child(2){font-weight:700}
#v48-phone-screen .hw58-home{border:0;color:var(--blue);background:none;padding:4px 0;text-align:left;white-space:nowrap}
#v48-phone-screen .hw58-top-dot{color:var(--blue);font-size:7px}
/* Defensa adicional: un panel APP nunca debe tapar HOME, LOCK, VIDEO o TABLE.
   No se fuerza display:flex en estados ajenos a APP. */
#v48-phone-overlay:not([data-phone-state="app"]) #v48-phone-screen .v51-app-view{display:none!important}
/* CÁMARA 91.2: viewport nativo bajo permiso; nada de Cocina ni galería */
#v48-phone-screen .hw58-camera{background:#09090b;color:#fff;--ink:#fff;--sub:#c2c6ce;--blue:#b2d6ff}
#v48-phone-screen .hw58-camera .hw58-top{color:white;height:10%;min-height:36px}
#v48-phone-screen .hw58-camera-preview{position:relative;flex:1;min-height:0;background:radial-gradient(circle at 50% 40%,#20252d,#0b0d10 75%);overflow:hidden;display:flex;align-items:center;justify-content:center}
#v48-phone-screen .hw912-camera-video,#v48-phone-screen .hw912-camera-shot{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#050608}
#v48-phone-screen .hw912-camera-video[hidden],#v48-phone-screen .hw912-camera-shot[hidden],#v48-phone-screen .hw912-camera-bottom [hidden]{display:none!important}
#v48-phone-screen .hw912-camera-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:10px;width:100%;height:100%;padding:10% 9%;box-sizing:border-box;color:#eef3fb}
#v48-phone-screen .hw912-camera-empty[hidden]{display:none!important}
#v48-phone-screen .hw912-camera-lens{font-size:clamp(28px,4.5vw,52px);font-weight:250;line-height:1;color:#bfc7d5}
#v48-phone-screen .hw912-camera-empty strong{font-size:clamp(14px,1.7vw,19px)}
#v48-phone-screen .hw912-camera-empty>span:not(.hw912-camera-lens){font-size:clamp(8px,.95vw,12px);line-height:1.35;color:#c0c6d3}
#v48-phone-screen .hw912-camera-empty button{color:#fff;background:#2367b7;border:1px solid #7aaded;border-radius:16px;padding:8px 12px;font-weight:600;max-width:90%}
#v48-phone-screen .hw912-camera-empty button:disabled{opacity:.6}
#v48-phone-screen .hw912-camera-flash{position:absolute;inset:0;background:white;opacity:0;pointer-events:none}
#v48-phone-screen .hw912-camera-flash.hw912-flashing{animation:hw912flash .33s ease-out}
@keyframes hw912flash{0%{opacity:0}25%{opacity:.8}100%{opacity:0}}
#v48-phone-screen .hw912-camera-bottom{flex:0 0 16%;min-height:54px;display:flex;align-items:center;justify-content:space-around;gap:8px;background:#09090b}
#v48-phone-screen .hw912-camera-control{background:#20242b;border:1px solid #444b55;border-radius:14px;padding:8px 10px;color:#fff;font-weight:600}
#v48-phone-screen .hw58-shutter{width:clamp(36px,4.8vw,58px);height:clamp(36px,4.8vw,58px);aspect-ratio:1;border:2px solid white;border-radius:50%;padding:4px;background:transparent;display:grid;place-items:center;flex-shrink:0}
#v48-phone-screen .hw58-shutter span{width:100%;height:100%;border-radius:50%;background:white}
#v48-phone-screen .hw912-camera-footer{font-size:clamp(7px,.76vw,10px);text-align:center;color:#a6aebd;background:#09090b;padding:3px 5% 7px}
#v48-phone-screen .hw58-camera .hw58-toast{position:absolute;bottom:24%;left:6%;right:6%;pointer-events:none;text-align:center;color:#fff;text-shadow:0 1px 4px black;font-weight:600;background:#0007;border-radius:5px}
#v48-phone-screen .hw58-camera .hw58-toast:empty{display:none}
@media(prefers-reduced-motion:reduce){#v48-phone-screen .hw912-camera-flash.hw912-flashing{animation:none}}
/* MENSAJES */
#v48-phone-screen .hw58-messages{background:var(--bg)}
#v48-phone-screen .hw58-msg-heading{font-size:clamp(17px,2.2vw,27px);font-weight:750;padding:3% 7% 2%}
#v48-phone-screen .hw58-msg-heading span{font-size:.56em;background:#e6e9f0;color:#4d5968;border-radius:50%;padding:2px 5px;vertical-align:middle}
#v48-phone-screen .hw58-msg-search{padding:0 7% 3%}
#v48-phone-screen .hw58-msg-search input{width:100%;border:0;border-radius:8px;background:var(--line);padding:6px 9px;color:var(--ink);outline:none}
#v48-phone-screen .hw58-msg-list{flex:1;min-height:0;overflow-y:auto;background:var(--card)}
#v48-phone-screen .hw58-msg-row{width:100%;display:grid;grid-template-columns:22% 1fr 7%;align-items:center;text-align:left;min-height:57px;border:0;border-bottom:1px solid var(--line);padding:6px 4%;background:var(--card);color:var(--ink);gap:4px}
#v48-phone-screen .hw58-msg-row[hidden]{display:none!important}
#v48-phone-screen .hw58-avatar{display:grid;place-items:center;color:white;border-radius:50%;width:clamp(26px,4vw,44px);height:clamp(26px,4vw,44px);font-size:clamp(13px,1.5vw,20px);font-weight:650}
#v48-phone-screen .hw58-msg-row span:nth-child(2){min-width:0;display:flex;flex-direction:column;gap:3px}
#v48-phone-screen .hw58-msg-row strong{font-size:clamp(9px,1.1vw,13px)}
#v48-phone-screen .hw58-msg-row small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--sub);font-size:clamp(7px,.85vw,11px)}
#v48-phone-screen .hw58-msg-row>b{font-size:15px;color:var(--sub);font-weight:300}
#v48-phone-screen .hw58-msg-foot{padding:6px;text-align:center;font-size:clamp(8px,.95vw,12px);color:#12b977}
#v48-phone-screen .hw58-chat-head{display:flex;align-items:center;gap:6px;padding:5px 4%;border-bottom:1px solid var(--line);min-height:35px;background:var(--card)}
#v48-phone-screen .hw58-chat-head button{border:0;background:none;color:var(--blue);font-size:18px}
#v48-phone-screen .hw58-chat-head .hw58-avatar{width:25px;height:25px;font-size:12px}
#v48-phone-screen .hw58-chat-head strong{font-size:clamp(9px,1vw,13px)}
#v48-phone-screen .hw58-chat-bubbles{flex:1;min-height:0;display:flex;flex-direction:column;align-items:flex-start;overflow:auto;gap:8px;padding:12px 7%;scrollbar-width:thin}
#v48-phone-screen .hw58-bubble{padding:7px 10px;border-radius:13px;max-width:84%;font-size:clamp(8px,.95vw,12px);line-height:1.35;overflow-wrap:anywhere}
#v48-phone-screen .hw58-bubble.theirs{background:var(--line);color:var(--ink);border-bottom-left-radius:3px}
#v48-phone-screen .hw58-bubble.mine{align-self:flex-end;background:#1384ff;color:#fff;border-bottom-right-radius:3px}
#v48-phone-screen .hw58-typing{letter-spacing:3px}
#v48-phone-screen .hw58-msg-quick{display:flex;gap:3px;padding:3px;overflow-x:auto;white-space:nowrap;max-height:36px}
#v48-phone-screen .hw58-msg-quick button{border:1px solid #96b5e4;background:var(--card);color:var(--blue);padding:4px 6px;border-radius:16px;flex:none;font-size:clamp(7px,.75vw,10px)}
#v48-phone-screen .hw58-msg-form{display:flex;gap:5px;padding:5px 5% 8%;background:var(--card);border-top:1px solid var(--line)}
#v48-phone-screen .hw58-msg-form input{flex:1;min-width:0;border:1px solid var(--line);border-radius:20px;background:var(--bg);padding:5px 8px;color:var(--ink)}
#v48-phone-screen .hw58-msg-form button{border:0;background:#1384ff;color:white;border-radius:50%;width:23px;height:23px;font-weight:800}
/* SAFARI */
#v48-phone-screen .hw58-safari{background:var(--bg)}
#v48-phone-screen .hw58-safari-content{flex:1;min-height:0;overflow:auto;background:var(--bg);padding:7%}
#v48-phone-screen .hw58-safari-landing .hw58-safari-compass{display:grid;place-items:center;margin:2% auto 4%;font-size:30px;color:#fff;background:#368bef;border-radius:16px;width:48px;height:48px}
#v48-phone-screen .hw58-safari-landing h2{font-size:clamp(15px,1.9vw,23px)}
#v48-phone-screen .hw58-safari-bookmarks{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-bottom:17px}
#v48-phone-screen .hw58-safari-bookmarks button{border:0;background:transparent;display:flex;align-items:center;flex-direction:column;gap:4px;color:var(--ink);min-width:0;padding:0}
#v48-phone-screen .hw58-safari-bookmarks span{background:var(--blue);color:#fff;display:grid;place-items:center;width:clamp(22px,3.4vw,40px);height:clamp(22px,3.4vw,40px);border-radius:10px;font-weight:750;font-size:15px}
#v48-phone-screen .hw58-safari-bookmarks small{font-size:clamp(6px,.72vw,9px);text-align:center;line-height:1.1}
#v48-phone-screen .hw58-safari-landing h3{font-size:12px;margin:0 0 4px}
#v48-phone-screen .hw58-safari-landing p{color:var(--sub)}
#v48-phone-screen .hw58-address{margin:0 3% 5px;display:flex;align-items:center;gap:3px;background:var(--line);border-radius:10px;padding:4px 8px;min-height:20px}
#v48-phone-screen .hw58-address input{flex:1;min-width:0;background:transparent;border:0;outline:0;color:var(--ink);text-align:center;font-size:clamp(8px,.9vw,11px)}
#v48-phone-screen .hw58-address>span{font-size:17px;color:var(--sub)}
#v48-phone-screen .hw58-address button{border:0;background:none;color:var(--blue)}
#v48-phone-screen .hw58-safari-toolbar{background:var(--card);display:flex;justify-content:space-around;min-height:34px;align-items:center;border-top:1px solid var(--line);padding-bottom:4px}
#v48-phone-screen .hw58-safari-toolbar button{border:0;background:transparent;color:var(--blue);font-size:20px;position:relative}
#v48-phone-screen .hw58-safari-toolbar small{position:absolute;font-size:6px;top:10px;left:11px}
#v48-phone-screen .hw58-safari-article>small{color:var(--blue);font-size:8px}
#v48-phone-screen .hw58-safari-article h2{font-size:clamp(18px,2.3vw,29px);line-height:1.05;margin:10px 0 5px}
#v48-phone-screen .hw58-safari-article h3{font-size:clamp(11px,1.2vw,15px);color:var(--sub);margin:0 0 12px;font-weight:450}
#v48-phone-screen .hw58-safari-article p{font-size:clamp(10px,1.05vw,13px);line-height:1.5}
#v48-phone-screen .hw58-safari-related{display:flex;flex-direction:column;margin-top:14px;border-top:1px solid var(--line)}
#v48-phone-screen .hw58-safari-related strong{margin:8px 0}
#v48-phone-screen .hw58-safari-related button{background:var(--card);border:0;border-bottom:1px solid var(--line);padding:7px;text-align:left;color:var(--ink);display:flex;justify-content:space-between}
#v48-phone-screen .hw58-safari-related button span{color:var(--blue)}
#v48-phone-screen .hw58-safari-results h2{font-size:14px}
#v48-phone-screen .hw58-safari-results button{display:flex;flex-direction:column;text-align:left;border:0;border-bottom:1px solid var(--line);background:transparent;padding:7px 0;gap:3px;width:100%;color:var(--ink)}
#v48-phone-screen .hw58-safari-results button small{color:var(--sub)}
#v48-phone-screen .hw58-safari-results button b{color:var(--blue)}
#v48-phone-screen .hw58-tabs-page h2{font-size:18px}
#v48-phone-screen .hw58-tabcards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#v48-phone-screen .hw58-tabcards>div{position:relative;border:1px solid var(--line);border-radius:10px;background:var(--card);min-height:77px;overflow:hidden}
#v48-phone-screen .hw58-tabcards>div button:first-child{border:0;background:transparent;color:var(--ink);height:100%;width:100%;text-align:left;display:flex;flex-direction:column;justify-content:center;gap:4px;padding:12px}
#v48-phone-screen .hw58-tabcards small{color:var(--sub)}
#v48-phone-screen .hw58-tabcards>div button:last-child{position:absolute;top:0;right:0;border:0;background:#aab2bd70;padding:1px 5px;border-radius:0 0 0 8px}
#v48-phone-screen .hw58-tabs-page>button{margin-top:12px;background:var(--blue);border:0;color:#fff;border-radius:8px;padding:7px 12px}
/* AJUSTES */
#v48-phone-screen .hw58-settings-scroll{flex:1;min-height:0;overflow:auto;padding:0 6% 8%}
#v48-phone-screen .hw58-settings-scroll h2{font-size:clamp(17px,2.3vw,29px);margin:7% 0 7%;line-height:1}
#v48-phone-screen .hw58-settings-profile{background:var(--card);border-radius:9px;padding:9px 8px;display:flex;gap:10px;align-items:center;margin-bottom:12px}
#v48-phone-screen .hw58-settings-profile>span{display:grid;place-items:center;background:#ca733d;color:white;width:29px;height:29px;border-radius:50%;font-size:15px}
#v48-phone-screen .hw58-settings-profile div{display:flex;flex-direction:column;gap:2px;flex:1}
#v48-phone-screen .hw58-settings-profile small{color:var(--sub)}
#v48-phone-screen .hw58-settings-profile>strong{font-weight:400;color:var(--sub)}
#v48-phone-screen .hw58-settings-group{background:var(--card);border-radius:9px;overflow:hidden;margin-bottom:10px}
#v48-phone-screen .hw58-setting-row{width:100%;background:transparent;border:0;border-bottom:1px solid var(--line);min-height:38px;padding:8px 10px;display:flex;align-items:center;gap:6px;text-align:left;justify-content:space-between;color:var(--ink)}
#v48-phone-screen .hw58-setting-row:last-child{border-bottom:0}
#v48-phone-screen .hw58-setting-row span:first-child{display:flex;flex-direction:column;gap:2px}
#v48-phone-screen .hw58-setting-row small{color:var(--sub);font-size:clamp(7px,.78vw,10px)}
#v48-phone-screen .hw58-setting-row>b{color:var(--sub);font-weight:450;text-align:right;font-size:clamp(8px,.9vw,12px)}
#v48-phone-screen .hw58-switch{width:clamp(21px,2.7vw,31px);height:clamp(12px,1.5vw,18px);border-radius:12px;background:#aab0bb;padding:2px;flex:none;box-sizing:border-box;transition:background .2s}
#v48-phone-screen .hw58-switch.on{background:#31c46c}
#v48-phone-screen .hw58-switch i{display:block;background:#fff;border-radius:50%;height:100%;aspect-ratio:1;transition:transform .2s}
#v48-phone-screen .hw58-switch.on i{transform:translateX(clamp(9px,1.2vw,13px))}
#v48-phone-screen .hw58-settings-footer{text-align:center;color:var(--sub);font-size:clamp(7px,.83vw,10px);margin-top:12px}
#v48-phone-screen .hw58-settings-back{border:0;background:transparent;color:var(--blue);margin-top:8px;padding:4px 0}
#v48-phone-screen .hw58-slider-label{display:flex;flex-direction:column;gap:6px;padding:10px}
#v48-phone-screen .hw58-slider-label b{align-self:flex-end;margin-top:-16px}
#v48-phone-screen .hw58-slider-label input{width:100%;accent-color:var(--blue)}
#v48-phone-screen .hw58-settings-preview{margin:7px;border-radius:9px;background:linear-gradient(130deg,#4ca8ec,#cba6ca);color:white;min-height:55px;display:flex;align-items:center;justify-content:center;gap:6px;text-shadow:0 2px 6px #0008}
#v48-phone-screen .hw58-settings-preview span{font-size:25px}
#v48-phone-screen .hw58-wallpapers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#v48-phone-screen .hw58-wallpapers button{border:0;background:none;color:var(--ink);display:flex;flex-direction:column;align-items:center;gap:5px}
#v48-phone-screen .hw58-wallpapers button span{background:radial-gradient(circle at 30% 20%,#fff5,var(--wall) 60%);width:100%;height:62px;border-radius:9px}
