/* Code Always — web-versie: inlogscherm + telefoon/tablet-indeling */
html{-webkit-text-size-adjust:100%}
body.web{user-select:auto;-webkit-tap-highlight-color:transparent;padding-bottom:env(safe-area-inset-bottom)}
body.web .drag,body.web [data-view=home],body.web [data-view=code]{display:none!important}
html:has(body.web),body.web{overflow-x:clip;max-width:100vw}
body.web .dock-apps,body.web .dock .sep,body.web .dock-add{display:none!important}
body.web .dock{bottom:calc(10px + env(safe-area-inset-bottom))}

#weblogin{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;padding:20px;background:linear-gradient(160deg,#dff1ff,#b9dcff 55%,#8cc4f5);font-family:Outfit,system-ui,sans-serif;color:#0c2a48}
.wl-card{width:100%;max-width:380px;background:rgba(255,255,255,.82);backdrop-filter:blur(24px);border:1px solid #fff;border-radius:24px;padding:24px;box-shadow:0 20px 60px rgba(30,90,160,.25);display:flex;flex-direction:column;gap:12px}
.wl-logo{display:flex;gap:12px;align-items:center;margin-bottom:6px}
.wl-logo img{width:48px;height:48px;border-radius:14px}
.wl-logo b{display:block;font-size:20px;font-weight:600}
.wl-logo small{color:rgba(12,42,72,.6);font-size:13px}
.wl-card label{display:flex;flex-direction:column;gap:5px;font-size:13px;font-weight:500}
.wl-card input[type=email],.wl-card input[type=password]{font:16px Outfit,system-ui,sans-serif;padding:12px 13px;border-radius:12px;border:1px solid rgba(12,42,72,.15);background:#fff;color:#0c2a48;outline:0}
.wl-card input:focus{border-color:#38a8f5;box-shadow:0 0 0 3px rgba(56,168,245,.2)}
.wl-chk{flex-direction:row!important;align-items:center;gap:8px!important;font-weight:400!important}
.wl-chk input{width:18px;height:18px;accent-color:#38a8f5}
.wl-btn{font:600 16px Outfit,system-ui,sans-serif;padding:13px;border-radius:14px;border:0;background:#38a8f5;color:#fff;cursor:pointer;text-align:center;box-shadow:0 8px 20px rgba(56,168,245,.35)}
.wl-btn:disabled{opacity:.6}
.wl-err{color:#c0264b;font-size:13px;min-height:1em}
.wl-err:empty{display:none}
.wl-note{font-size:12px;color:rgba(12,42,72,.6);line-height:1.45}
.wl-stop{background:rgba(224,67,106,.1);color:#a8203f;padding:12px;border-radius:12px;font-size:14px;line-height:1.45}

/* auto-trader op afstand */
.bremote{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:12px 14px;border-radius:16px;background:var(--sunk);margin-bottom:12px;font-size:13px}
.bremote .ic{color:var(--acc);flex:none}
.bremote .grow{flex:1;min-width:180px}
.bremote b{font-weight:600}
.bremote .off{color:var(--red)}
body.web .bot-remote [data-bstart],body.web .bot-remote [data-bmode],body.web .bot-remote [data-breset],body.web .bot-remote [data-bclose],body.web .bot-remote [data-bunpause],body.web .bot-remote [data-bopt-run],body.web .bot-remote [data-bopt-apply],body.web .bot-remote [data-bscan]{pointer-events:none}
body.web .bot-remote [data-bstart],body.web .bot-remote [data-bmode],body.web .bot-remote [data-breset],body.web .bot-remote [data-bclose],body.web .bot-remote [data-bunpause],body.web .bot-remote [data-bopt-run]{display:none!important}

/* telefoon */
@media (max-width:760px){
  body.web{font-size:15px}
  body.web .desk{padding:12px 10px 110px}
  body.web .pagebox{padding:14px;border-radius:18px}
  body.web .glass{border-radius:18px}
  body.web .page-head{flex-wrap:wrap;gap:8px}
  body.web .page-head h2{font-size:22px;width:100%}
  body.web [class*="grid"],body.web .bot-grid,body.web .tdetail,body.web .kv{grid-template-columns:1fr!important}
  body.web .tgrid,body.web [data-tgrid]{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.web .seg{max-width:100%;overflow-x:auto;flex-wrap:nowrap!important;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  body.web .seg::-webkit-scrollbar{display:none}
  body.web .seg button{flex:none}
  body.web .pagebox,body.web .page{max-width:100%;overflow-x:clip}
  body.web svg{max-width:100%}
  body.web .mcard{padding:12px}
  body.web table{display:block;overflow-x:auto}
  body.web .btn{padding:10px 13px}
  body.web .ca-modal,body.web .modal{max-width:calc(100vw - 24px)}
  body.web input,body.web select,body.web textarea{font-size:16px}
}

/* tekstgrootte */
body.web.webzoom .desk{zoom:var(--webzoom,1)}

/* Home */
.whome .whero{display:flex;align-items:flex-end;gap:16px;flex-wrap:wrap;margin-bottom:14px}
.whome .whero .big{font-size:64px;font-weight:300;letter-spacing:-.04em;line-height:.95}
.whome .whero .date{font-size:15px;color:var(--mut);text-transform:capitalize}
.whome .whero .greet{font-size:18px;font-weight:500;margin-top:2px}
.qtiles{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-bottom:14px}
.qtile{display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 4px;border-radius:16px;background:var(--glass2);border:1px solid var(--edge);font-size:12px;font-weight:500;text-align:center;color:var(--txt)}
.qtile .ic{width:22px;height:22px;color:var(--acc)}
.hrows{display:flex;flex-direction:column;gap:2px;margin:6px 0}
.hrow{display:flex;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px solid var(--track);font-size:13px}
.hrow:last-child{border-bottom:0}
.hrow small{color:var(--mut)}
.hrow b{font-weight:600;text-align:right;display:flex;gap:5px;align-items:center}
.hrow b .ic{width:14px;height:14px;color:var(--green)}
.hpc-h{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.hpc-h small{color:var(--mut);width:100%;padding-left:18px;margin-top:-4px}
.hpc-h .dot{width:10px;height:10px;border-radius:50%;background:var(--red)}
.hpc-h .dot.on{background:var(--green);box-shadow:0 0 0 4px color-mix(in srgb,var(--green) 20%,transparent)}
.hbot{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 12px;border-radius:14px;background:var(--sunk);font-size:13px;margin-top:8px}
.hbot span{flex:1;display:flex;gap:6px;align-items:center;min-width:180px}
.hbot .ic{width:15px;height:15px;color:var(--acc)}
.whome .walls.page-grid{grid-template-columns:repeat(auto-fill,minmax(130px,1fr))!important;margin-bottom:10px}

/* Browser */
.bsearch{display:flex;gap:8px}
.bsearch input{flex:1;min-width:0;font:16px Outfit,system-ui,sans-serif;padding:12px 14px;border-radius:14px;border:1px solid var(--edge);background:var(--glass2);color:var(--txt);outline:0}
.bsearch input:focus{border-color:var(--acc)}
.bfavs{display:grid;grid-template-columns:repeat(auto-fill,minmax(135px,1fr));gap:8px}
.bfav{display:flex;align-items:center;border-radius:14px;background:var(--glass2);border:1px solid var(--edge);min-width:0}
.bfav>button:first-child{flex:1;display:flex;gap:9px;align-items:center;padding:9px;min-width:0;color:var(--txt)}
.bfav span{display:flex;flex-direction:column;min-width:0;font-weight:500;font-size:13px}
.bfav small{color:var(--dim);font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bfav .bfav-ic{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;background:var(--sunk);color:var(--acc);font-weight:700;flex:none}
.bfav .ibtn{opacity:.5;padding:6px}
.bfav.add{justify-content:center;gap:8px;padding:12px;border-style:dashed;color:var(--mut);font-size:13px}

@media (max-width:760px){
  body.web .dock{gap:3px;padding:6px;border-radius:20px}
  body.web .dock-nav>a{width:42px;height:42px;border-radius:13px}
  body.web .dock-nav>a:hover{transform:none}
  body.web .dock-nav>a span{display:none}
  body.web .qtiles{gap:6px}
  body.web .qtile{font-size:11px;padding:10px 2px}
  body.web .whome .whero .big{font-size:54px}
  body.web .vpn-opts{grid-template-columns:1fr!important}
  body.web .ipgrid{grid-template-columns:auto 1fr!important}
}
body.web .ipgrid>*{min-width:0}
body.web .secret{max-width:100%;min-width:0;overflow:hidden}
body.web .secret .sv{word-break:break-all;white-space:normal}
