:root{color-scheme:light;--blue:#086bea;--ink:#163149;--muted:#52677b;--line:#dce6ee;--page:#f5f8fc;font:16px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;background:var(--page);color:var(--ink);padding:env(safe-area-inset-top,0px) max(0px,env(safe-area-inset-right)) max(32px,env(safe-area-inset-bottom)) max(0px,env(safe-area-inset-left))}.top{display:flex;justify-content:space-between;gap:16px;max-width:1100px;margin:auto;padding:18px 24px}.top a{color:#075cb9;text-decoration:none;font-size:14px;font-weight:650}.help{font-weight:500!important}main{max-width:1060px;margin:auto;padding:0 24px 32px}.hero{display:flex;gap:16px;align-items:center;padding:22px 0 28px}.hero img{flex:0 0 60px}.eyebrow{font-size:10px;letter-spacing:1.6px;font-weight:750;color:var(--muted)}h1{font-size:32px;letter-spacing:-1px;line-height:1.15;margin:4px 0 6px}.hero p{margin:0;color:var(--muted);font-size:15px}.badge{margin-left:auto;color:#075cb9;background:#e4f0ff;border:1px solid #cce2ff;border-radius:30px;padding:7px 12px;font-size:12px;white-space:nowrap}.tools{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.tools button{padding:14px 8px;background:white;border:1px solid var(--line);color:var(--ink);font-size:13px;font-weight:600;display:grid;justify-items:center;gap:8px;border-radius:16px}.tools button span{font-size:23px;color:var(--blue);line-height:1.2}.tools button[aria-pressed=true]{background:#eaf3ff;border-color:#479afa;box-shadow:0 2px 12px #0575ee0c}.panel{background:white;border:1px solid var(--line);border-radius:20px;margin:16px 0;padding:24px;box-shadow:0 5px 22px #17324d04}.panelHead{display:flex;gap:16px;justify-content:space-between;align-items:flex-start;margin-bottom:18px}h2{font-size:20px;line-height:1.3;letter-spacing:-.4px;margin:0 0 6px}.panelHead p{font-size:14px;color:var(--muted);margin:0}.smallBadge{font-size:11px;color:#536a7e;background:#f2f6fa;border-radius:20px;padding:6px 10px;white-space:nowrap}button,select,input,textarea{font:inherit}button{cursor:pointer;border:0;border-radius:11px;background:var(--blue);color:white;padding:11px 16px;min-height:44px;font-weight:650;touch-action:manipulation}button:disabled{opacity:.5;cursor:not-allowed}.quiet,.secondary{background:#edf3f9;color:#235077}.quiet{font-size:12px;padding:8px 12px}.actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.actions .note{flex-basis:100%}label{display:grid;gap:7px;font-size:13px;font-weight:650;color:#304b62}input,textarea,select{width:100%;border:1px solid #cbd9e5;background:#fff;color:var(--ink);border-radius:10px;padding:11px;font-size:16px;max-width:100%}textarea{resize:vertical;min-height:86px}input[type=file]{font-size:13px}input[type=checkbox]{width:19px;height:19px;margin:0;flex:none}.choice{display:flex;align-items:flex-start;gap:10px;margin:16px 0 8px;font-weight:450}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #459efd;outline-offset:3px}.modelSettings{background:#f6f9fd;border:1px solid #e0eaf4;border-radius:13px;padding:14px;margin-bottom:18px}.modelSettings summary{cursor:pointer;font-weight:700;font-size:14px;color:#225b97}.modelSettings p{font-size:13px;color:#4c6175}.modelSettings label:not(.choice){max-width:400px}.note{font-size:12px!important;color:#597084;line-height:1.5}.modelSettings progress{display:block;width:100%;margin-top:16px;accent-color:var(--blue)}.messages{max-height:480px;overflow:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:12px;padding:4px 0 18px}.welcome{font-size:14px;color:#678094;margin:14px 0 6px}.bubble{font-size:15px;white-space:pre-wrap;overflow-wrap:anywhere;border-radius:14px;padding:14px 16px;max-width:95%;margin:0}.bubble.user{align-self:flex-end;background:#e8f2ff;color:#0d4678}.bubble.assistant{align-self:flex-start;background:#f2f5f8;max-width:100%}.composeActions{display:flex;gap:16px;align-items:center;justify-content:space-between;margin-top:10px}.composeActions small{font-size:11px;color:#5a7084}.composeActions button{min-width:92px}.fields{display:grid;gap:16px}.fields label{max-width:100%}.mediaGrid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start}canvas{display:block;width:100%;height:auto;border-radius:16px;background:#086bea}.notice{font-size:13px;color:#586b7c;background:#f2f6fa;padding:12px 14px;border-radius:10px;margin-bottom:20px}iframe{display:block;width:100%;height:540px;border:1px solid var(--line);border-radius:12px;background:white}.cvPrint{margin-top:24px;border-top:1px solid var(--line);padding-top:24px}.cvPrint h1{font-size:30px}.cvPrint h2{font-size:16px;margin-top:24px;color:#0870d6}.cvPrint p{white-space:pre-wrap;overflow-wrap:anywhere}.foot{font-size:12px;color:#698095;text-align:center;margin-top:24px}.foot span{display:block;margin:7px}.foot a{color:#2466a3}.srOnly{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}#globalStatus{font-size:14px;color:#265d94}#globalStatus:empty{display:none}#mediaStatus{font-size:13px;color:#375c7d}
@media(max-width:680px){main{padding:0 14px 24px}.top{padding:16px 14px}.hero{padding:14px 0 22px;gap:12px;flex-wrap:wrap}.hero img{width:52px;height:52px;flex-basis:52px}h1{font-size:29px}.badge{font-size:10px;padding:5px 8px;margin-left:64px;margin-top:-7px}.tools{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.tools button{font-size:12px;padding:12px 6px;gap:5px}.panel{padding:18px 14px;border-radius:16px}.panelHead{flex-wrap:wrap;gap:10px}h2{font-size:19px}.mediaGrid{grid-template-columns:1fr}canvas{max-width:420px;margin:auto}.messages{max-height:340px}.composeActions small{max-width:190px}.smallBadge{font-size:10px}iframe{height:420px}}
@media print{body{background:white;color:#153149}body>*:not(main),main>*:not(#cvPanel),#cvPanel>*:not(#cvPrint){display:none!important}main,#cvPanel,#cvPrint{display:block!important;margin:0;padding:0;border:0;box-shadow:none}#cvPrint{font:12pt/1.5 Arial,sans-serif}#cvPrint section{break-inside:avoid}@page{size:A4;margin:18mm}}

/* Native WebViews need a top inset even when env() reports zero. */
:root{--vobix-safe-top:env(safe-area-inset-top,0px);--vobix-safe-bottom:env(safe-area-inset-bottom,0px)}
html.vobixInstalled{--vobix-safe-top:max(env(safe-area-inset-top,0px),28px);--vobix-safe-bottom:max(env(safe-area-inset-bottom,0px),48px)}
body{padding-top:0;padding-bottom:max(32px,var(--vobix-safe-bottom))}
.top{padding-top:calc(12px + var(--vobix-safe-top));align-items:center;flex-wrap:wrap}
.top a{display:inline-flex;align-items:center;min-height:44px;overflow-wrap:anywhere}


/* Direct Vobix IA experience: one centered task, no dashboard feeling. */
main{max-width:760px}
.hero{justify-content:center;text-align:left;padding:8px 0 16px;position:relative}
.hero>div{min-width:0}
.hero h1{font-size:clamp(25px,5.4vw,38px);max-width:560px;margin:1px 0 3px}
.hero p{font-size:14px}
.hero .badge{position:absolute;right:0;top:9px}
.tools{
  display:flex;
  gap:8px;
  overflow-x:auto;
  padding:3px 1px 8px;
  scrollbar-width:none;
  scroll-snap-type:x proximity;
}
.tools::-webkit-scrollbar{display:none}
.tools button{
  flex:0 0 auto;
  min-width:92px;
  min-height:48px;
  padding:8px 12px;
  display:flex;
  flex-direction:row;
  gap:7px;
  justify-content:center;
  border-radius:999px;
  scroll-snap-align:start;
}
.tools button span{font-size:18px}
.directChat{display:flex;flex-direction:column;padding:18px}
.directChat .panelHead{order:0;margin-bottom:8px}
.directChat #messages{order:1;min-height:130px;max-height:46dvh}
.directChat #chatForm{order:2;position:sticky;bottom:calc(6px + var(--vobix-safe-bottom));z-index:3;padding:9px;border:1px solid #d7e5ef;border-radius:18px;background:rgba(255,255,255,.96);box-shadow:0 10px 28px rgba(20,67,101,.12)}
.directChat #question{min-height:58px;border:0;background:#f2f7fb;resize:none}
.directChat #codeActions{order:3}
.directChat #cloudSettings{order:4;margin-top:16px}
.directChat #modelSettings{order:5}
.directChat #memorySettings{order:6}
details.modelSettings:not([open]){padding:12px 14px}
details.modelSettings:not([open])>:not(summary){display:none}
.mediaOptions{border:1px solid #dce6ee;border-radius:12px;padding:11px}
.mediaOptions summary{cursor:pointer;font-weight:700;color:#225b97}
.mediaOptions label{margin-top:12px}
#globalStatus{max-width:680px;margin:8px auto;padding:8px 12px;border-radius:12px;background:#eef6fc}
@media(max-width:680px){
  .top{padding-bottom:8px}
  .hero{justify-content:flex-start;padding-top:2px;padding-right:56px}
  .hero img{width:42px;height:42px;flex-basis:42px}
  .hero .badge{right:0;top:5px}
  .tools{margin:0 -14px;padding-inline:14px}
  .tools button{min-width:82px;font-size:13px}
  .directChat{margin-top:8px;padding:14px 10px}
  .directChat .panelHead .quiet{font-size:0;width:44px;padding:0}
  .directChat .panelHead .quiet::after{content:"Borrar";font-size:11px}
  .composeActions small{display:none}
  .composeActions{justify-content:flex-end}
}


/* The IA entry is a full-height 1:1 conversation, with no tool menu. */
body.privateChat{position:fixed;top:var(--vobix-menu-top,0px);left:0;right:0;height:100dvh;height:var(--vobix-menu-height,100dvh);display:flex;flex-direction:column;overflow:hidden;padding:0}
/* Reserve the title's space even on a 320px screen or with enlarged text. */
.privateChat .top{flex:none;display:grid;grid-template-columns:44px 36px minmax(0,1fr) 44px 44px;align-items:center;width:100%;max-width:760px;padding:calc(8px + var(--vobix-safe-top)) max(8px,env(safe-area-inset-right,0px)) 8px max(8px,env(safe-area-inset-left,0px));gap:4px;border-bottom:1px solid var(--line);background:white}
body.privateChat .top .back{width:44px!important;min-width:44px!important;justify-self:center}
.privateChat .top img{width:36px;height:36px;object-fit:contain}
.privateChat .chatIdentity{min-width:0;padding-inline:4px}
.privateChat .chatIdentity h1{font-size:max(18px,var(--vobix-readable-font,16px));line-height:1.3;letter-spacing:0;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.privateChat .chatIdentity span{display:block;font-size:max(12px,calc(var(--vobix-readable-font,16px) - 4px));line-height:1.4;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.privateChat .top :is(#openMemorySettings,#clearChat){display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border-radius:50%;background:transparent;color:#235077}
.privateChat .top :is(#openMemorySettings,#clearChat) svg{display:block;width:21px;height:21px;pointer-events:none}
.privateChat .top :is(#openMemorySettings,#clearChat):is(:hover,:active){background:#edf3f9}
.privateChat main{display:flex;flex-direction:column;flex:1;min-height:0;width:100%;padding:0;overflow:hidden}
.privateChat #globalStatus{flex:none;margin:0;padding:7px 14px;font-size:13px;max-width:none;border-radius:0}
.privateChat .directChat{flex:1;min-height:0;overflow:hidden;margin:0;padding:0;border:0;border-radius:0;background:#f1f6fb;box-shadow:none}
.privateChat .directChat #messages{order:0;flex:1;min-height:0;max-height:none;overflow-y:auto;padding:18px 14px;scroll-behavior:smooth}
.privateChat .welcome{align-self:center;text-align:center;max-width:320px;background:white;padding:12px 16px;border-radius:14px}
.privateChat .bubble{max-width:88%;padding:10px 14px;font-size:16px;border-radius:16px;box-shadow:0 1px 2px #17324d12}.privateChat .bubble.assistant{background:white}.privateChat .bubble.user{background:#ddecff}
.privateChat .directChat #chatForm{order:4;position:static;flex:none;display:flex;gap:8px;align-items:flex-end;margin:8px 10px 0;padding:7px;border-radius:24px;box-shadow:none;background:white}
.privateChat .directChat #question{min-height:40px;height:40px;max-height:110px;flex:1;min-width:0;border-radius:18px;padding:9px 12px;background:white;line-height:22px}
.privateChat .composeActions{margin:0;gap:6px;flex:none}.privateChat .composeActions button{min-width:44px;padding:10px 12px;border-radius:22px}
.privateChat .directChat #cloudSettings,.privateChat .directChat #modelSettings{order:2;flex:none;max-height:34%;overflow-y:auto;margin:0 12px 6px;padding:8px 12px;border-radius:14px;background:white}
.privateChat .modelSettings .choice{font-size:12px;margin:6px 0}.privateChat .modelSettings p{margin:4px 0}
.privateChat .rememberChoice{order:5;flex:none;display:flex;align-items:center;justify-content:center;gap:7px;font-size:11px;font-weight:400;padding:6px 12px calc(8px + var(--vobix-safe-bottom));color:var(--muted)}
.privateChat #codeActions{order:3;flex:none;margin:4px 12px}.privateChat #codeActions .note{display:none}
.privateChat #previewPanel{max-height:45dvh;overflow:auto;flex:none;margin:0;padding:12px}

.privateChat .welcome{white-space:pre-line}.privateChat .bubble small{display:block;font-size:11px;color:var(--muted);margin-top:8px}

.privateChat .generatedImage{display:block;max-width:100%;max-height:55dvh;object-fit:contain;border-radius:12px;margin-bottom:8px}

/* The existing viewport bridge reports Android IME and browser keyboard bounds. */
html.vobixMenuKeyboardOpen .privateChat .rememberChoice{display:none}
html.vobixMenuKeyboardOpen .privateChat #chatForm{margin-bottom:8px}
html.vobixMenuKeyboardOpen .privateChat #question{max-height:min(110px,25vh)}
html.vobixMenuKeyboardOpen .privateChat #cloudSettings,html.vobixMenuKeyboardOpen .privateChat #modelSettings{max-height:25%}
html.vobixMenuKeyboardOpen .privateChat #previewPanel{max-height:20%;min-height:0;flex-shrink:1}

/* One-line input and small circular action, above the keyboard. */
.privateChat .directChat #chatForm{align-items:flex-end;padding:5px;gap:4px;border-radius:27px;margin-inline:8px}
.privateChat .directChat #question{flex:1 1 0;width:0;min-width:0;min-height:40px;height:40px;padding:9px 10px;border-radius:20px;overflow-y:auto;outline:none;box-shadow:none;font-size:16px}
.privateChat .directChat #chatForm:focus-within{border-color:#479afa}
.privateChat .composeActions{display:flex;align-items:center;gap:4px}
.privateChat .composeActions #attachPhoto{width:40px;height:40px;min-width:40px;min-height:40px;padding:0;background:transparent;font-size:24px}
.privateChat .composeActions #send{display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;flex:none;border-radius:50%;padding:0}
.privateChat .composeActions #send[aria-pressed=true]{background:#2567be}
.privateChat .composeActions #stopReply{min-width:44px;max-width:75px;padding:8px;font-size:14px}


.generatedImage[role=button]{cursor:zoom-in}.bubble>button{margin:4px 6px 4px 0;font-size:14px;padding:8px 12px}
.iaPhotoViewer{position:fixed;inset:0;width:100%;max-width:none;height:100%;max-height:none;margin:0;padding:0;border:0;background:#09121c;color:white;display:flex;flex-direction:column;overflow:hidden}.iaPhotoViewer::backdrop{background:#09121c}.iaPhotoToolbar{display:flex;flex-wrap:wrap;gap:6px;padding:calc(8px + env(safe-area-inset-top,0px)) 10px 8px;flex:none}.iaPhotoToolbar button{font-size:14px;padding:8px 12px;min-width:44px}.iaPhotoStage{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden;touch-action:none;user-select:none}.iaPhotoStage img{max-width:100%;max-height:100%;object-fit:contain;will-change:transform}.iaPhotoNotice{flex:none;margin:0;padding:8px 12px calc(12px + env(safe-area-inset-bottom,0px));font-size:13px;min-height:44px;color:#dce9f5}
.privateChat #rememberPrompt[hidden]{display:none!important}
.privateChat.iaMemoryEnabled #chatForm{margin-bottom:calc(8px + var(--vobix-safe-bottom))}
.privateChat #memorySettings:not([hidden]){order:1;flex:none;max-height:45%;overflow-y:auto;margin:0 12px 6px;padding:12px;border-radius:14px;background:white}

