/* Shared geometry and motion only. The existing theme and page features stay intact. */
/* Active tabs own their surface. No measured moving layer can collapse on Back/BFCache. */
html .nav-ind{display:none!important}
html .nav-links a.active{background-color:var(--accent,#d9733c);background-image:linear-gradient(180deg,rgba(255,255,255,.2),rgba(0,0,0,.12)),var(--grad,linear-gradient(140deg,#ef8a3d,#d35b2e));color:#fff!important;border-radius:999px;box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 1px 3px rgba(0,0,0,.15)}
/* Hide only scrollbar chrome. Keep native overflow, touch, wheel and keyboard scrolling. */
html,body,*{scrollbar-width:none!important;-ms-overflow-style:none!important}
*::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
@media(max-width:760px){
  :root{--m-nav:64px;--m-nav-gap:10px;--m-1:4px;--m-3:12px;--m-t-lbl:10px}
  .mnav{
    box-sizing:border-box!important;
    left:calc(12px + env(safe-area-inset-left,0px))!important;
    right:auto!important;
    width:calc(100vw - 24px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px))!important;
    max-width:none!important;height:64px!important;
    bottom:calc(10px + env(safe-area-inset-bottom,0px))!important;
    padding:0 4px!important;
    grid-template-columns:repeat(5,minmax(0,1fr));grid-auto-flow:row!important;
    transition:none!important;animation:none!important;
  }
  .mnav .mtab{height:62px!important;box-sizing:border-box;min-width:0;gap:3px!important}
  .mnav .mt-i{flex:none;width:38px!important;height:26px!important}
  .mnav .mt-i i{width:20px;height:20px;font-size:19px!important;line-height:20px!important;text-align:center}
  .mnav .mtab b{font-size:10px!important;line-height:11px!important;min-height:11px;letter-spacing:0!important}
  .mnav .mt-i img,.mnav .mt-i .fb{width:21px!important;height:21px!important;flex:none}
  /* ตัวอักษรแรกของชื่อเป็นวงกลมส้มเต็ม ไม่ใช่ตัวเล็ก ๆ ลอย ๆ ที่ดูเหมือนรูปเสีย */
  .mnav .mt-i .fb{border-radius:50%;background:linear-gradient(140deg,#ef8a3d,#d35b2e);color:#fff!important;font-size:10px;font-weight:700;line-height:21px;text-align:center}
}
/* Keep the whole bar fixed, not an animated width/position morph between documents. */
/* Native cross-document snapshots can retain an old active tab on Back. */
@view-transition{navigation:none}
.mnav{view-transition-name:mnav}
#navInd,.fab-dock{view-transition-name:none!important}
::view-transition-group(root),::view-transition-group(mnav){animation:none!important}
::view-transition-old(root),::view-transition-old(mnav){animation:none!important;opacity:0}
::view-transition-new(root){animation:cendon-page-ready .12s ease-out both!important;mix-blend-mode:normal}
::view-transition-new(mnav){animation:none!important;opacity:1;mix-blend-mode:normal}
@keyframes cendon-page-ready{from{opacity:.96}to{opacity:1}}
@media(prefers-reduced-motion:reduce){
  @view-transition{navigation:none}
  ::view-transition-new(root){animation:none!important}
}
/* ช่องติ๊กทั้งแอป = วงกลมสีขาว (ทุกหน้า ทุกธีม) · ติ๊กแล้ว = เครื่องหมายถูกสีดำ ขอบเข้ม — ขาวดำนิ่ง ดูน่าเชื่อถือ
   ไม่แตะสวิตช์เปิด/ปิด (.switch / .lx-sw) ที่ใช้ช่องติ๊กซ่อนอยู่ข้างใน */
input[type=checkbox]:not(.switch input):not(.lx-sw input){
  -webkit-appearance:none!important;appearance:none!important;box-sizing:border-box;
  width:22px!important;height:22px!important;min-width:22px;min-height:22px;flex:none;margin:0;padding:0;
  border-radius:50%!important;border:1.5px solid rgba(9,9,11,.24)!important;
  background:#fff center/15px 15px no-repeat!important;box-shadow:0 1px 2px rgba(9,9,11,.1);
  cursor:pointer;vertical-align:middle;transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}
input[type=checkbox]:not(.switch input):not(.lx-sw input):checked{
  border:2px solid #09090B!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2309090B' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12.5l4.2 4.2 8.8-9.4'/%3E%3C/svg%3E")!important}
html[data-theme="dark"] input[type=checkbox]:not(.switch input):not(.lx-sw input){border-color:rgba(255,255,255,.35)!important;box-shadow:none}
html[data-theme="dark"] input[type=checkbox]:not(.switch input):not(.lx-sw input):checked{border-color:#fff!important;box-shadow:0 0 0 3px rgba(255,255,255,.14)}
input[type=checkbox]:not(.switch input):not(.lx-sw input):active{transform:scale(.92)}
input[type=checkbox]:not(.switch input):not(.lx-sw input):focus-visible{outline:none;box-shadow:0 0 0 3px rgba(233,104,42,.38)}
input[type=checkbox]:not(.switch input):not(.lx-sw input):disabled{opacity:.45;cursor:not-allowed}

/* แอปไม่ซูม: แตะสองครั้งไม่ขยายหน้า (viewport กันการถ่างนิ้วอยู่แล้ว) · ปุ่มตอบสนองทันทีไม่ต้องรอดูว่าจะแตะซ้ำไหม */
html{touch-action:manipulation}
