/* admin-glass.css v2 — Liquid Glass (iOS 26) · สีเว็บ: ดำ/แดง #ff0001 · ไม่แตะโครงสร้างเดิม */
:root{--gf:rgba(255,255,255,.06);--gf2:rgba(255,255,255,.13);--ge:rgba(255,255,255,.17);--gh:rgba(255,255,255,.42);--gr:rgba(255,0,1,.6);--sp:cubic-bezier(.22,1,.36,1);--sp2:cubic-bezier(.3,1.2,.5,1);--out:cubic-bezier(.16,1,.3,1)}
html{scroll-behavior:smooth}
body{background:radial-gradient(130% 70% at 50% -15%,#220005,#000 62%) fixed,#000}
.wrap{padding-top:calc(10px + env(safe-area-inset-top,0px));padding-bottom:calc(130px + env(safe-area-inset-bottom,0px))}
/* ฉากหลัง: ออโรราแดง + จุดแสงตามนิ้ว */
body .ambient-glow .orb{filter:none;opacity:.6;animation:gDrift 28s ease-in-out infinite alternate;will-change:transform}
body .ambient-glow .orb-navy{animation-duration:27s;animation-delay:-8s}
body .ambient-glow .orb-gold-soft{animation-duration:33s;animation-delay:-15s}
@keyframes gDrift{to{transform:translate3d(-30px,50px,0)}}
.g-spot{position:fixed;left:0;top:0;width:520px;height:520px;margin:-260px 0 0 -260px;border-radius:50%;pointer-events:none;z-index:1;background:radial-gradient(closest-side,rgba(255,70,70,.2),rgba(255,0,1,.07) 55%,transparent);mix-blend-mode:screen;opacity:0;transition:opacity .5s;will-change:transform}
.g-spot.on{opacity:1}
/* กระจกเหลว: พื้นผิวร่วม */
body :is(.mt-card,.ops-chip,.d2-kpi,.d2-sum-card,.d2-challenge-card,.d2-attn,.d2-fn-card,.login-card,.g-chip){
 position:relative;
 background:radial-gradient(240px circle at var(--gx,50%) var(--gy,0%),rgba(255,255,255,calc(var(--go,0)*.2)),transparent 64%),linear-gradient(140deg,rgba(255,255,255,.17),rgba(255,255,255,.02) 40%,rgba(255,0,1,.05)),rgba(16,7,9,.8);
 border:1px solid var(--ge);border-radius:26px;
 box-shadow:inset 1.5px 1.5px 0 var(--gh),inset -1px -1px 0 rgba(255,255,255,.1),inset 0 -14px 24px rgba(255,255,255,.03),0 22px 44px -18px rgba(0,0,0,.9),0 0 0 .5px rgba(255,0,1,.1);
 transition:transform .4s var(--sp),border-color .3s,box-shadow .3s}
body .is-tilting{transform:perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));transition:transform .08s linear}
body :is(.d2-fn-card,.d2-kpi,.g-chip):active{transform:scale(.97)}
body .d2-fn-card:hover{border-color:var(--gr)}
body .ops-chip{border-radius:22px}
/* หัวข้อ: ยุบเล็กลงเมื่อเลื่อน */
body .back-row{position:sticky;top:calc(6px + env(safe-area-inset-top,0px));z-index:30;padding:10px 14px;margin:0 0 16px;border-radius:99px;
 background:linear-gradient(140deg,rgba(255,255,255,.17),rgba(255,255,255,.04));
 border:1px solid var(--ge);box-shadow:inset 1.5px 1.5px 0 var(--gh),0 16px 34px -12px rgba(0,0,0,.95);transition:transform .35s var(--out);transform-origin:50% 0;overflow:hidden}
body .back-row::after{content:"";position:absolute;inset:0;background:linear-gradient(100deg,transparent 35%,rgba(255,255,255,.28) 50%,transparent 65%);transform:translateX(-120%);animation:gSweep 1.6s .5s var(--out) 1 forwards;pointer-events:none}
@keyframes gSweep{to{transform:translateX(120%)}}
body .back-row.scrolled{transform:scale(.94)}
body .page-title{font-size:17px}
body .icon-btn{width:38px;height:38px;border-radius:50%;background:var(--gf2);border:1px solid var(--ge);box-shadow:inset 1px 1px 0 var(--gh);color:#fff;transition:transform .45s var(--sp)}
body .icon-btn:active{transform:scale(.8)}
/* สถานะเว็บ */
body .mt-card.is-open{border-color:rgba(46,204,113,.42);box-shadow:inset 1.5px 1.5px 0 var(--gh),0 22px 44px -18px #000,0 0 46px -14px rgba(46,204,113,.55)}
body .mt-card.is-closed{background:linear-gradient(140deg,rgba(255,0,1,.24),rgba(255,0,1,.04)),var(--gf);box-shadow:inset 1.5px 1.5px 0 var(--gh),0 0 50px -10px rgba(255,0,1,.65)}
body .mt-dot{animation:gPing 2.2s infinite}
@keyframes gPing{0%{outline:0 solid rgba(255,255,255,.4);outline-offset:0}70%,100%{outline:11px solid transparent;outline-offset:2px}}
body .mt-btn{border-radius:99px;padding:14px 18px;background:linear-gradient(140deg,#ff3234,#bf0001);box-shadow:inset 1.5px 1.5px 0 rgba(255,255,255,.5),0 12px 28px -8px rgba(255,0,1,.75);transition:transform .45s var(--sp)}
body .mt-btn.is-open-action{background:linear-gradient(140deg,#3ddc88,#14994f);box-shadow:inset 1.5px 1.5px 0 rgba(255,255,255,.5),0 12px 28px -8px rgba(46,204,113,.75)}
body .mt-btn:active:not(:disabled){transform:scale(.93)}
/* ทางลัดด่วน (ใหม่) */
.g-quick{display:flex;gap:10px;overflow-x:auto;margin:0 -16px 16px;padding:4px 16px 8px;scrollbar-width:none;scroll-snap-type:x proximity}
.g-quick::-webkit-scrollbar{display:none}
body .g-chip{flex:none;display:flex;align-items:center;gap:9px;padding:10px 16px 10px 11px;border-radius:99px;color:#fff;font:600 13px/1 'Noto Sans Lao',sans-serif;cursor:pointer;scroll-snap-align:start}
.g-chip i{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(140deg,#ff3234,#990001);box-shadow:inset 1px 1px 0 rgba(255,255,255,.5),0 6px 14px -4px rgba(255,0,1,.7)}
.g-chip svg,.g-dock svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
/* ตัวเลข / ปุ่ม / หมวด */
body :is(.d2-kpi-num,.d2-sum-value){font-family:var(--gx-font);font-variant-numeric:tabular-nums;text-shadow:0 2px 16px rgba(255,0,1,.4);display:block}
body .d2-sum-card{overflow:hidden}
body .d2-sum-card::after{content:"";position:absolute;inset:0;background:linear-gradient(105deg,transparent 40%,rgba(255,255,255,.16) 50%,transparent 60%);transform:translateX(-130%);animation:gSweep 1.8s 1s var(--out) 1 both;pointer-events:none}
body .d2-attn{border-color:rgba(232,179,74,.34)}
body .d2-challenge-card{border-color:rgba(124,92,255,.42)}
body :is(.d2-ch-arrow,.d2-ch-recheck-btn){background:var(--gf2);border:1px solid var(--ge);border-radius:99px;color:#fff;box-shadow:inset 1px 1px 0 var(--gh);transition:transform .45s var(--sp)}
body .d2-ch-recheck-btn{background:linear-gradient(140deg,rgba(255,0,1,.6),rgba(124,92,255,.42))}
body :is(.d2-ch-arrow,.d2-ch-recheck-btn):active{transform:scale(.88)}
body .d2-cat-name{font-family:var(--gx-font);letter-spacing:.3px}
body :is(.d2-cat-swatch,.d2-fn-icon){border-radius:17px;box-shadow:inset 1.5px 1.5px 0 rgba(255,255,255,.45),0 10px 20px -8px rgba(0,0,0,.85)}
body .d2-fn-arrow{transition:transform .45s var(--sp)}
body .d2-fn-card:hover .d2-fn-arrow{transform:translateX(3px)}
/* แผงพับ — ไม่ใส่ blur/transform เพราะข้างในมี modal แบบ fixed */
body .switch{background:linear-gradient(140deg,rgba(255,255,255,.11),rgba(255,255,255,.025) 45%),rgba(14,6,8,.64);border:1px solid var(--ge);border-radius:28px;box-shadow:inset 1.5px 1.5px 0 var(--gh),0 22px 44px -18px #000}
body .switch.open{border-color:var(--gr);box-shadow:inset 1.5px 1.5px 0 var(--gh),0 0 46px -14px rgba(255,0,1,.6),0 22px 44px -18px #000}
body :is(.switch-icon,.switch-chevron){background:var(--gf2);border:1px solid var(--ge);box-shadow:inset 1px 1px 0 var(--gh)}
body .switch.open .switch-icon{background:linear-gradient(140deg,#ff3234,#990001);box-shadow:0 0 0 4px rgba(255,0,1,.18),inset 1.5px 1.5px 0 rgba(255,255,255,.5)}
body .switch-chevron{transition:transform .6s var(--sp),color .3s}
body .switch-body{transition:max-height .45s var(--out)}
body .switch-body-inner{border-top:1px solid rgba(255,255,255,.1)}
body .switch.open .switch-body-inner{animation:gOpen .45s .08s both var(--out)}
@keyframes gOpen{from{opacity:0;transform:translate3d(0,10px,0)}}
body :is(.switch-body-inner,.login-card) :is(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]),select,textarea){background:rgba(255,255,255,.06);border:1px solid var(--ge);border-radius:17px;color:#fff;box-shadow:inset 0 2px 7px rgba(0,0,0,.4);transition:border-color .3s,box-shadow .3s,background .3s}
body :is(.switch-body-inner,.login-card) :is(input,select,textarea):focus{outline:none;background:rgba(255,255,255,.1);border-color:rgba(255,0,1,.8);box-shadow:0 0 0 4px rgba(255,0,1,.22),inset 0 2px 7px rgba(0,0,0,.3)}
body :is(.btn-block,.btn-primary){border-radius:99px;background:linear-gradient(140deg,#ff3234,#bf0001);box-shadow:inset 1.5px 1.5px 0 rgba(255,255,255,.5),0 14px 30px -10px rgba(255,0,1,.8);transition:transform .45s var(--sp)}
body :is(.btn-block.secondary,.btn-ghost){background:var(--gf2);border:1px solid var(--ge);box-shadow:inset 1.5px 1.5px 0 var(--gh)}
body :is(.btn-block,.btn-primary):active{transform:scale(.94)}
body .agent-acc-row{border-radius:22px}
body .toast{background:linear-gradient(140deg,rgba(255,255,255,.18),rgba(255,255,255,.05)),rgba(20,8,12,.55);border:1px solid var(--ge);border-radius:99px;box-shadow:inset 1.5px 1.5px 0 var(--gh),0 20px 44px -10px #000;bottom:calc(104px + env(safe-area-inset-bottom,0px))}
body .toast.show{animation:gToast .6s var(--sp)}
@keyframes gToast{from{transform:translate(-50%,14px) scale(.96);opacity:0}}
/* แท็บลอย (ใหม่) — เลนส์กระจกเลื่อนตามแบบของเหลว */
.g-dock{position:fixed;left:0;right:0;bottom:0;z-index:40;padding:0 16px calc(12px + env(safe-area-inset-bottom,0px));pointer-events:none;transition:transform .5s var(--sp);will-change:transform}
.g-dock.hide{transform:translateY(130%)}
.g-dock nav{pointer-events:auto;position:relative;max-width:430px;margin:0 auto;display:grid;grid-template-columns:repeat(6,1fr);padding:7px;border-radius:99px;
 background:linear-gradient(140deg,rgba(255,255,255,.2),rgba(255,255,255,.04) 50%,rgba(255,0,1,.07)),rgba(18,8,10,.5);
 border:1px solid var(--ge);box-shadow:inset 1.5px 1.5px 0 var(--gh),inset -1px -1px 0 rgba(255,255,255,.1),0 28px 56px -12px #000,0 0 0 .5px rgba(255,0,1,.18)}
.g-lens{position:absolute;top:7px;bottom:7px;left:7px;width:calc((100% - 14px)/6);border-radius:99px;background:linear-gradient(140deg,rgba(255,255,255,.34),rgba(255,255,255,.08) 55%,rgba(255,0,1,.2));border:1px solid rgba(255,255,255,.3);box-shadow:inset 1.5px 1.5px 0 rgba(255,255,255,.55),0 8px 22px -6px rgba(255,0,1,.65);transition:transform .5s var(--sp2);will-change:transform}
.g-lens.go{animation:gStretch .7s var(--out)}
@keyframes gStretch{40%{scale:1.1 .95}100%{scale:1 1}}
.g-dock button{position:relative;border:0;background:none;color:rgba(255,255,255,.62);font:600 10.5px/1 'Noto Sans Lao',sans-serif;padding:9px 0 8px;display:flex;flex-direction:column;align-items:center;gap:5px;cursor:pointer;transition:color .3s,transform .5s var(--sp)}
.g-dock button svg{width:22px;height:22px;transition:transform .6s var(--sp)}
.g-dock button.on{color:#fff}
.g-dock button.on svg{transform:scale(1.08)}
.g-dock button:active{transform:scale(.86)}
/* เข้าฉากนุ่ม ๆ — ใช้ keyframe แบบ backwards เท่านั้น ถ้าอนิเมชันไม่ทำงานเนื้อหาก็ยังเห็นครบ */
body :is(.d2-board>*,.deck>.switch){animation:gIn .55s var(--out) backwards}
body .d2-board>*:nth-child(2){animation-delay:.05s}body .d2-board>*:nth-child(3){animation-delay:.1s}body .d2-board>*:nth-child(4){animation-delay:.15s}body .d2-board>*:nth-child(n+5){animation-delay:.2s}
@keyframes gIn{from{opacity:0;transform:translateY(14px)}}
/* แยกหน้า */
.g-off{display:none!important}
.g-it{animation:gIn .5s var(--out) backwards}
.g-pagehead{display:flex;align-items:center;gap:14px;padding:6px 4px 18px}
.g-pagehead i{width:52px;height:52px;flex:none;border-radius:19px;display:grid;place-items:center;color:#fff;background:linear-gradient(140deg,#ff3234,#990001);box-shadow:inset 1.5px 1.5px 0 rgba(255,255,255,.5),0 14px 28px -10px rgba(255,0,1,.75)}
.g-pagehead svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.g-pagehead b{display:block;font:700 22px/1.2 var(--gx-font);letter-spacing:.2px}
.g-pagehead span{display:block;margin-top:2px;font-size:12.5px;line-height:1.5;color:rgba(255,255,255,.62)}
@media (prefers-reduced-motion:reduce){body *,body *::before,body *::after{animation-duration:.01s!important;animation-delay:0s!important;transition-duration:.01s!important}.g-spot{display:none}}

/* ===== ล็อกหน้าจอ: ไม่ล้นขอบ ไม่ซูม ไม่เลื่อนข้าง ===== */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;width:100%;max-width:100%}
html body{width:100%;max-width:100%;overflow-x:clip;overscroll-behavior-x:none;touch-action:pan-y;position:relative}
.wrap{width:100%;max-width:480px;margin-left:auto;margin-right:auto;overflow-x:clip;overflow-wrap:break-word}
.wrap :is(img,video,canvas,svg){max-width:100%}
.wrap :is(input,select,textarea,button){max-width:100%}
.wrap :is(pre,code){white-space:pre-wrap;word-break:break-word}
.wrap table{max-width:100%}
.wrap :is(.switch,.switch-body,.switch-body-inner,.d2-board,.deck){max-width:100%;min-width:0}
body .g-quick{margin-left:0;margin-right:0;padding-left:2px;padding-right:2px;max-width:100%;touch-action:pan-x pan-y}
.g-dock nav{width:100%}
button,a,[role=button],.d2-fn-card,.d2-attn-row,.switch-head,.g-chip{touch-action:manipulation}

/* ===== เว้นขอบซ้าย-ขวาให้พอดี ไม่ติดขอบจอ (เผื่อรอยเว้าของ iPhone ด้วย) ===== */
.wrap{box-sizing:border-box;padding-left:calc(16px + env(safe-area-inset-left,0px));padding-right:calc(16px + env(safe-area-inset-right,0px))}
@media (max-width:360px){.wrap{padding-left:calc(12px + env(safe-area-inset-left,0px));padding-right:calc(12px + env(safe-area-inset-right,0px))}}

/* ===== แก้เลย์เอาต์รายการตัวแทน/คีย์บนจอแคบ + ให้หัวข้อกับแท็บทึบพอ ไม่ให้เนื้อหาทะลุ ===== */
body .agent-acc-row{flex-direction:column;align-items:stretch;flex-wrap:nowrap;gap:12px}
body .agent-acc-main{min-width:0;width:100%}
body .agent-acc-right{flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:8px;width:100%}
body .agent-acc-right>*{flex:0 0 auto}
body .agent-key-row{align-items:flex-start}
body .agent-key-main{flex:1 1 100%;min-width:0;overflow-wrap:anywhere}
body .agent-key-right{flex-wrap:wrap;gap:8px}
body .agent-acc-progress{max-width:100%}
body .agent-acc-meta{line-height:1.7}
body .back-row{background:linear-gradient(140deg,rgba(255,255,255,.16),rgba(255,255,255,.05)),rgba(14,6,8,.86)}
.g-dock nav{background:linear-gradient(140deg,rgba(255,255,255,.18),rgba(255,255,255,.04) 50%,rgba(255,0,1,.08)),rgba(14,6,8,.88)}
body .toast{background:linear-gradient(140deg,rgba(255,255,255,.16),rgba(255,255,255,.05)),rgba(16,7,10,.9)}

/* ===== v3: เว้นขอบซ้อนหลายชั้นให้น้อยลง (เดิมรวม ~68px/ข้าง -> ~32px/ข้าง) + ลื่นขึ้น ===== */
.wrap{padding-left:calc(10px + env(safe-area-inset-left,0px));padding-right:calc(10px + env(safe-area-inset-right,0px))}
@media (max-width:360px){.wrap{padding-left:calc(8px + env(safe-area-inset-left,0px));padding-right:calc(8px + env(safe-area-inset-right,0px))}}
body .switch-body-inner{margin:0 6px;padding:12px 4px 16px}
body .stat-panel{padding:14px 10px;border-radius:20px}
body .cat-field-group{padding:12px 10px 10px}
body .g-pagehead{padding-left:2px;padding-right:2px}
/* เลื่อนลื่น: ไม่ให้ iOS ยืดหน้า/กระตุกตอนแตะ */
html{-webkit-tap-highlight-color:transparent}
body .d2-board>*,body .deck>.switch,.g-it{will-change:auto}
@media (hover:none){body .is-tilting{transform:none}}

/* ===== ຟອມເພີ່ມໄລຍະເວລາ (ຈຳນວນ / ໜ່ວຍ / ລາຄາ / +) — ຈັດໃຫ້ເປັນລະບຽບ ===== */
.dur-add-inline{
  display:grid;
  grid-template-columns:minmax(0,1fr) 112px;
  gap:8px;
  margin:10px 0 12px;
  align-items:center;
}
.dur-add-inline .dur-add-qty{ grid-column:1; }
.dur-add-inline .dur-add-unit{ grid-column:2; }
.dur-add-inline .dur-add-price{ grid-column:1; }
.dur-add-inline .dur-add-btn{ grid-column:2; }
.dur-add-inline input,
.dur-add-inline select{
  width:100%; min-width:0; box-sizing:border-box; height:42px;
  padding:0 14px; border-radius:12px;
  border:1px solid rgba(255,0,1,.28);
  background:rgba(255,255,255,.06); color:#fff;
  font-size:.9rem; font-family:inherit;
  box-shadow:inset 0 2px 6px rgba(0,0,0,.35);
  -webkit-appearance:none; appearance:none;
}
.dur-add-inline select{
  padding-right:30px; cursor:pointer;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat:no-repeat; background-position:right 12px center;
}
.dur-add-inline select option{ background:#14090c; color:#fff; }
.dur-add-inline input::placeholder{ color:rgba(255,255,255,.45); }
.dur-add-inline input:focus,
.dur-add-inline select:focus{
  outline:none; border-color:rgba(255,0,1,.8);
  box-shadow:0 0 0 3px rgba(255,0,1,.2), inset 0 2px 6px rgba(0,0,0,.3);
}
.dur-add-inline .dur-add-btn{
  width:100%; height:42px; border-radius:12px;
  border:1px solid rgba(255,0,1,.5); background:rgba(255,0,1,.16);
  color:#ff4d57; font-size:22px; font-weight:700; line-height:1; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition:background .15s ease, transform .1s ease;
}
.dur-add-inline .dur-add-btn:hover{ background:rgba(255,0,1,.3); }
.dur-add-inline .dur-add-btn:active{ transform:scale(.97); }
.dur-add-inline .dur-add-btn:disabled{ opacity:.5; }

/* ປຸ່ມລຶບໄລຍະເວລາໃນ chip */
.prod-duration-chip .pdc-del-btn{
  width:16px;height:16px;border-radius:50%;flex-shrink:0;
  border:none;background:rgba(232,57,90,.22);color:#ff6b78;
  font-size:12px;line-height:1;cursor:pointer;padding:0;
  display:inline-flex;align-items:center;justify-content:center;
}
.prod-duration-chip .pdc-del-btn:hover{ background:rgba(232,57,90,.45); }

/* ===== v4: การ์ดฟังก์ชันขยายเต็ม (shared-element) · ปุ่ม X มุมบนซ้าย · หดกลับที่เดิม ===== */
html.xp-lock,html.xp-lock body{overflow:hidden}
.xp{position:fixed;inset:0;z-index:50;--xp-r:30px}
.xp-scrim{position:absolute;inset:0;touch-action:none;background:radial-gradient(120% 70% at 50% 0,rgba(70,0,10,.55),rgba(0,0,0,.8))}
.xp-card{position:absolute;overflow:hidden;
 top:calc(env(safe-area-inset-top,0px) + 8px);
 left:max(8px,calc(50% - 260px));
 width:min(calc(100% - 16px),520px);
 height:calc(100% - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 16px);
 border-radius:var(--xp-r);
 background:linear-gradient(140deg,rgba(255,255,255,.17),rgba(255,255,255,.02) 40%,rgba(255,0,1,.05)),#0b0508;
 box-shadow:inset 1.5px 1.5px 0 var(--gh),inset -1px -1px 0 rgba(255,255,255,.1),inset 0 -14px 24px rgba(255,255,255,.03),0 22px 44px -18px rgba(0,0,0,.9),0 0 0 .5px rgba(255,0,1,.1)}
.xp-card::after{content:"";position:absolute;inset:0;border-radius:inherit;border:1px solid var(--ge);pointer-events:none;z-index:3}
.xp-inner{position:absolute;left:0;top:0;width:100%;height:100%;display:flex;flex-direction:column}
.xp-anim .xp-inner{contain:layout style}
.xp-head{flex:none;display:flex;align-items:center;gap:12px;padding:12px 16px 12px 12px;border-bottom:1px solid rgba(255,255,255,.09)}
.xp-x{flex:none;width:42px;height:42px;border-radius:50%;display:grid;place-items:center;padding:0;cursor:pointer;color:#fff;
 background:var(--gf2);border:1px solid var(--ge);box-shadow:inset 1px 1px 0 var(--gh);transition:transform .35s var(--sp),background .2s}
.xp-x:active{transform:scale(.86);background:rgba(255,0,1,.35)}
.xp-x svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.xp-head .d2-fn-icon{flex:none}
.xp-ttl{min-width:0;flex:1}
.xp-ttl b{display:block;font:700 15px/1.3 var(--gx-font,'Noto Sans Lao',sans-serif);color:#fff}
.xp-ttl span{display:block;margin-top:2px;font-size:11.5px;line-height:1.4;color:rgba(255,255,255,.62)}
.xp-scroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;
 padding:12px 8px calc(22px + env(safe-area-inset-bottom,0px))}
/* หน้าการ์ดเดิม (สำเนา) ไว้ครอสเฟด */
.xp .xp-face{position:absolute!important;left:0;top:0;margin:0!important;box-sizing:border-box;pointer-events:none;z-index:2;
 background:none!important;border-color:transparent!important;box-shadow:none!important;animation:none!important;transform:none!important}
/* เนื้อหาจริงที่ย้ายเข้ามา: ตัดกรอบ/พื้นหลังของ accordion เดิมออก ให้การ์ดใหญ่เป็นกรอบเดียว */
.xp .switch{display:block!important;margin:0;background:none!important;border:0!important;box-shadow:none!important;border-radius:0;
 animation:none!important;transform:none!important;transition:none}
.xp .switch-body{max-height:none!important;overflow:visible;transition:none}
.xp .switch-body-inner{margin:0;padding:0;border-top:0;animation:none!important}
.xp .stat-panel{background:none;border:0;box-shadow:none;padding:4px 2px;margin:0}
.xp .stat-panel>h3:not(:has(button)){display:none}
@media (prefers-reduced-motion:reduce){.xp-x{transition:none}}
