/* KB_VIEWSWAP: force PC↔mobile layout from footer toggle (pref: localStorage/cookie kb_view) */
html.kb-view-mobile{background:#e2e8f0}
html.kb-view-mobile body{
  max-width:430px;margin:0 auto;background:#fff;
  box-shadow:0 0 0 1px #cbd5e1,0 24px 60px rgba(15,23,42,.14);
  min-height:100vh;position:relative;
}
/* Phone chrome on a wide window */
html.kb-view-mobile .nav-burger{display:inline-flex!important}
html.kb-view-mobile .main-nav,
html.kb-view-mobile .main-nav.open{display:none!important}
html.kb-view-mobile .nav-btn-t,
html.kb-view-mobile .kbd{display:none!important}
html.kb-view-mobile .nav-call{margin-inline-start:4px}
html.kb-view-mobile .nav-login{min-height:36px;padding:0 10px;margin-inline-start:4px;font-size:.8rem}
html.kb-view-mobile .hero-kbd{display:none!important}
html.kb-view-mobile .foot-call-d{display:none!important}
html.kb-view-mobile .foot-bottom{line-height:1.45;font-size:.78rem}
html.kb-view-mobile .wrap{padding-inline:16px}
/* Bottom tab bar (mirrors nav2.css ≤640px), pinned to the phone column */
html.kb-view-mobile{--kbt-h:64px}
html.kb-view-mobile .kbt{
  display:grid!important;grid-template-columns:repeat(4,1fr);
  position:fixed;left:50%;right:auto;bottom:0;z-index:57;
  width:100%;max-width:430px;transform:translateX(-50%);
  background:rgba(255,255,255,.96);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  border-top:1px solid var(--line,#e5e7eb);padding:4px 6px calc(4px + env(safe-area-inset-bottom,0px));
  transition:transform .2s ease;box-shadow:0 -6px 20px -14px rgba(15,23,42,.3);
}
html.kb-view-mobile .kbt.kbt-5{grid-template-columns:repeat(5,1fr)}
html.kb-view-mobile .kbt.is-typing{transform:translate(-50%,110%)}
html.kb-view-mobile .kbt-i{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;
  min-height:52px;padding:4px 2px;border:0;background:none;border-radius:12px;
  color:var(--muted,#64748b);font:600 .7rem/1.15 var(--font,inherit);cursor:pointer;text-align:center;min-width:0;
}
html.kb-view-mobile .kbt.kbt-5 .kbt-i{font-size:.62rem;min-height:50px;padding:3px 1px}
html.kb-view-mobile body.has-kbt{padding-bottom:calc(var(--kbt-h) + env(safe-area-inset-bottom,0px))}
html.kb-view-mobile body.has-kbt .foot{
  margin-bottom:calc(-1 * (var(--kbt-h) + env(safe-area-inset-bottom,0px)));
  padding-bottom:calc(20px + var(--kbt-h) + env(safe-area-inset-bottom,0px));
}
html.kb-view-mobile body.has-kbt .kb-asst-btn{/* keep */}
html.kb-view-mobile body.has-kbt.kbt-ask .kb-asst-btn{display:none!important}
html.kb-view-mobile body.has-kbt #kb-consent,
html.kb-view-mobile body.has-kbt .lang-suggest{bottom:calc(var(--kbt-h) + env(safe-area-inset-bottom,0px))}
html.kb-view-mobile body.modal-open .kbt{display:none!important}
/* Kill desktop-only home mega-grid while forced mobile */
html.kb-view-mobile .pcv .pc-only{display:none!important}
html.kb-view-mobile .pcv-w3>.wrap{
  display:block!important;grid-template-columns:none!important;grid-template-areas:none!important;
}
html.kb-view-mobile body:has(.pcv) .wrap.wrap{max-width:430px!important;padding-inline:16px!important}
html.kb-view-mobile .pcv-w3 .hg-grid.hg-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
html.kb-view-mobile .pcv-w3 .pc3-card{display:contents!important}
html.kb-view-mobile .pcv-w3 .pc3-top,html.kb-view-mobile .pcv-w3 .pc3-all{display:none!important}
html.kb-view-mobile .pcv-w3 .g2-ban h1{font-size:1.7rem}
html.kb-view-mobile .pcv-w3 .dch.dch{align-items:center;text-align:center}
/* Forced desktop on a narrow device: hide phone tab bar (viewport is also set to 1280) */
html.kb-view-desktop .kbt{display:none!important}
html.kb-view-desktop body.has-kbt{padding-bottom:0!important}
html.kb-view-desktop body.has-kbt .foot{margin-bottom:0;padding-bottom:20px}
/* Footer toggle link – tiny, sits in the slim footer row */
.kb-view-swap{margin-inline-start:.15em}
.kb-view-swap[hidden]{display:none!important}

#kb-view-swap-wrap[hidden]{display:none!important}
