
/* ===== page ===== */
/* ================= HR-SYSTEM PAGE (/th/hr-system, prefix .hx-) =================
   Sections: hero (+ TOC, facts) · คืออะไร (data-flow toggle + terms table) · ทำอะไรได้บ้าง (module tabs) · กี่ประเภท
   · 8 ข้อเลือก · ลองเล่น (blueprint + package) · ราคา (tiles) · เริ่มใช้ · FAQ (core) · CTA bar (kit/cta.css).
   Shared pieces come from kit/core.css (glass, seg, h-sec, need-grid, field/range, faq, crumb, hero2).
   Colours are core tokens; the site build snaps any hex to the CI palette and keeps content pages light. */

.hx-sprite{position:absolute;width:0;height:0;overflow:hidden}
main svg:has(> use){fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
main p,main li,main dd,main small,main .lead{text-wrap:pretty}
main h1,main h2,main h3,main summary,main .h-sec{text-wrap:balance}
html{scroll-padding-top:96px}

/* compact rhythm (MKT 2026-10): smaller section padding and headings than core .sec / .h-sec */
.hx-sec{position:relative;padding-block:clamp(40px,4.6vw,64px)}
.hx-sec .h-sec{font-size:clamp(28px,3.7vw,46px);max-width:24ch;margin-top:12px}
.hx-sec .lead{margin-top:12px;max-width:62ch}
.hx-sec .sec-head{margin-bottom:clamp(20px,2.6vw,32px)}
.hx-sec .sec-head .more{margin-top:0}

/* ---------- HERO: breadcrumb + H1 only, like the live page; the heading carries the motion ---------- */
.hx-hero{padding-block:clamp(20px,2.8vw,40px) clamp(4px,1vw,12px);overflow:clip}
.hx-hero h1{font-size:clamp(34px,4.4vw,58px);line-height:1.18;max-width:20ch;margin-top:14px}
.hx-hero h1 em{display:block}
.hx-hero h1::after{content:"";display:block;width:clamp(64px,8vw,104px);height:5px;margin-top:clamp(14px,1.6vw,20px);border-radius:999px !important;background:linear-gradient(90deg,#008CFF,#008CFF 55%,#FF6100);transform-origin:0 50%;animation:hxBar 1.1s var(--spring) .25s both}
.hx-hero h1{animation:hxIn .8s var(--ease) both}
.hx-hero h1 em{animation:hxIn .8s var(--ease) .12s both,sheen 5s linear 1s infinite}
@keyframes hxBar{from{transform:scaleX(0)}}
/* the answer-first section follows the H1 closely (live order: H1 → H2 ระบบ HR คืออะไร) */
.hx-hero + #what{padding-top:clamp(12px,1.6vw,24px)}

/* ---------- สารบัญ (before the terms table, as on the live page) ---------- */
.hx-toc{margin-top:clamp(24px,3vw,40px)}
.hx-toc-box{padding:clamp(18px,2.2vw,26px);border-radius:28px !important}
.hx-toc-t{display:flex;align-items:center;gap:8px;font-size:clamp(18px,1.6vw,21px);font-weight:700;color:var(--ink)}
.hx-toc-t svg{width:22px;height:22px;fill:none;stroke:var(--blue);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.hx-toc ol{list-style:none;margin:12px 0 0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 18px;counter-reset:none}
.hx-toc a{position:relative;display:flex;align-items:center;gap:12px;min-height:46px;padding:6px 40px 6px 8px;border-radius:14px !important;color:var(--ink);text-decoration:none;font-weight:500;line-height:1.4;transition:background-color .25s,color .25s}
.hx-toc a b{flex:none;width:34px;height:34px;border-radius:50% !important;display:grid;place-items:center;font-size:13px;font-weight:700;color:var(--blue);background:var(--blue-l);transition:background-color .25s,color .25s,transform .4s var(--spring)}
.hx-toc a::after{content:"→";position:absolute;right:14px;top:50%;translate:0 -50%;color:var(--blue);opacity:0;transition:opacity .25s,transform .35s var(--spring)}
.hx-toc a:hover,.hx-toc a:focus-visible{background:color-mix(in srgb,var(--blue) 8%,transparent)}
.hx-toc a:hover::after,.hx-toc a:focus-visible::after{opacity:1;transform:translateX(4px)}
.hx-toc a:hover b{transform:scale(1.08)}
.hx-toc a[aria-current="true"]{color:var(--blue-2)}
.hx-toc a[aria-current="true"] b{background:var(--blue);color:#fff}
/* headings the TOC jumps to clear the floating header */
#what h2[id],#modules h2[id],#types h2[id],#choose h2[id],#price h2[id],#setup h2[id],#faq h2[id]{scroll-margin-top:120px}
@media (max-width:760px){.hx-toc ol{grid-template-columns:1fr}}
@media (prefers-reduced-motion:reduce){.hx-toc a,.hx-toc a b,.hx-toc a::after{transition:none}}

/* ---------- ทำอะไรได้บ้าง: 6 cards (live copy) + infographic per group ---------- */
.hx-mgrid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(14px,1.6vw,20px)}
.hx-mc{display:flex;flex-direction:column;padding:10px;border-radius:28px !important;transition:transform .45s var(--spring),box-shadow .45s}
.hx-mgrid > .rv:nth-child(3n+2){transition-delay:.08s}.hx-mgrid > .rv:nth-child(3n){transition-delay:.16s}
.hx-mc-b{padding:12px 10px 8px}
.hx-mc-h{display:flex;align-items:center;gap:10px}
.hx-mc-h img{width:38px;height:38px;padding:5px;border-radius:12px !important;background:var(--blue-l)}
.hx-mc-n{font-size:13px;font-weight:700;color:var(--orange);font-variant-numeric:tabular-nums}
.hx-mc h3{margin-top:10px;font-size:clamp(18px,1.5vw,20px);font-weight:700;line-height:1.35;letter-spacing:-.01em}
.hx-mc p{margin-top:6px;color:var(--mid);font-size:15px;line-height:1.65}
.hx-mc p a{color:var(--blue-2);font-weight:600;white-space:nowrap;text-decoration:none}
.hx-mc p a:hover{text-decoration:underline;text-underline-offset:3px}
@media (hover:hover){.hx-mc:hover{transform:translateY(-4px);box-shadow:0 26px 48px -30px rgba(0,90,180,.5)}}
/* infographic canvas (SVG 320×170); colours come from the theme tokens so dark mode works */
.hx-ig{position:relative;margin:0;aspect-ratio:320/170;border-radius:20px !important;overflow:hidden;background:linear-gradient(160deg,color-mix(in srgb,var(--blue) 10%,var(--card)),var(--card) 70%)}
.hx-ig::after{content:"Illustration";position:absolute;right:10px;bottom:8px;font-size:10px;color:var(--muted)}
.hx-ig svg{display:block;width:100%;height:100%;font-family:inherit;stroke:none}   /* core gives svg:has(> use) a 2px stroke */
.hx-ig .ig-card{fill:var(--card);stroke:color-mix(in srgb,var(--blue) 24%,transparent);stroke-width:1}
.hx-ig .ig-bl{fill:var(--blue-l)}.hx-ig .ig-bl2{fill:color-mix(in srgb,var(--blue) 28%,var(--card))}.hx-ig .ig-b{fill:var(--blue)}
.hx-ig .ig-ol{fill:var(--orange-l)}.hx-ig .ig-o{fill:var(--orange)}
.hx-ig .ig-av circle{fill:color-mix(in srgb,var(--blue) 70%,var(--card))}
.hx-ig text{font-size:12px;font-weight:600;fill:var(--ink)}
.hx-ig .ig-sm{font-size:11px}.hx-ig .ig-tb{fill:var(--blue-2)}.hx-ig .ig-to{fill:var(--orange)}
.hx-ig use{fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.hx-ig .ig-ib{color:var(--blue)}.hx-ig .ig-io{color:var(--orange)}.hx-ig .ig-iw{color:#fff}
.hx-ig .ig-ln{fill:none;stroke:color-mix(in srgb,var(--blue) 45%,transparent);stroke-width:1.6;stroke-dasharray:4 5;stroke-linecap:round}
.hx-ig .ig-hand{fill:none;stroke:var(--blue);stroke-width:3;stroke-linecap:round;transform-box:view-box;transform-origin:160px 80px}
.hx-ig .ig-hand2{stroke:var(--orange);stroke-width:2.4}
.hx-ig .ig-chip rect{fill:var(--card);stroke:#289FFF}   /* solid: animating to a transparent color-mix interpolates through green */
.hx-ig .ig-chip text{fill:var(--ink)}
@media (prefers-reduced-motion:no-preference){
  :is(.hx-mc,.hx-anim):not(.in) .ig-pop,:is(.hx-mc,.hx-anim):not(.in) .ig-bar{opacity:0}
  .hx-ig .ig-pop,.hx-ig .ig-bar{transform-box:fill-box;transform-origin:center}
  :is(.hx-mc,.hx-anim).in .ig-pop{animation:igPop .55s var(--spring) both}
  .hx-ig .ig-bar{transform-origin:50% 100%}
  :is(.hx-mc,.hx-anim).in .ig-bar{animation:igGrow .8s var(--spring) both}
  :is(.hx-mc,.hx-anim).in .d1{animation-delay:.15s}:is(.hx-mc,.hx-anim).in .d2{animation-delay:.3s}:is(.hx-mc,.hx-anim).in .d3{animation-delay:.45s}
  :is(.hx-mc,.hx-anim).in .d4{animation-delay:.6s}:is(.hx-mc,.hx-anim).in .d5{animation-delay:.75s}:is(.hx-mc,.hx-anim).in .d6{animation-delay:.9s}
  :is(.hx-mc,.hx-anim).in .ig-flow{animation:igFlow 1.1s linear infinite}
  :is(.hx-mc,.hx-anim).in .ig-hand{animation:igSpin 6s linear infinite}:is(.hx-mc,.hx-anim).in .ig-hand2{animation-duration:36s}
  :is(.hx-mc,.hx-anim).in .ig-chip rect{animation:igChip 6s ease-in-out infinite}:is(.hx-mc,.hx-anim).in .ig-chip text{animation:igChipT 6s ease-in-out infinite}
  :is(.hx-mc,.hx-anim).in .c1 *{animation-delay:1s}:is(.hx-mc,.hx-anim).in .c2 *{animation-delay:2s}:is(.hx-mc,.hx-anim).in .c3 *{animation-delay:3s}:is(.hx-mc,.hx-anim).in .c4 *{animation-delay:4s}:is(.hx-mc,.hx-anim).in .c5 *{animation-delay:5s}
  :is(.hx-mc,.hx-anim).in .ig-move{animation:igMove 4.2s var(--ease) infinite}
  :is(.hx-mc,.hx-anim).in .ig-pulse{transform-box:fill-box;transform-origin:center;animation:igPulse 2.4s ease-in-out infinite}
  .hx-ig .ig-orbit{transform-box:view-box;transform-origin:160px 85px}
  :is(.hx-mc,.hx-anim).in .ig-orbit{animation:igSpin 7s linear infinite}
  .hx-ig .ig-ping{transform-box:fill-box;transform-origin:center}
  :is(.hx-mc,.hx-anim).in .ig-ping{animation:igPing 1.8s ease-out infinite}
}
@keyframes igPop{from{opacity:0;transform:translateY(8px) scale(.85)}}
@keyframes igGrow{from{transform:scaleY(0)}}
@keyframes igFlow{to{stroke-dashoffset:-18}}
@keyframes igSpin{to{transform:rotate(360deg)}}
@keyframes igChip{0%,14%{fill:var(--blue);stroke:var(--blue)}20%,100%{fill:var(--card);stroke:#289FFF}}
@keyframes igChipT{0%,14%{fill:#fff}20%,100%{fill:var(--ink)}}
@keyframes igMove{0%{transform:translateX(0);opacity:0}8%{opacity:1}40%,55%{transform:translateX(120px)}90%{transform:translateX(240px);opacity:1}100%{transform:translateX(240px);opacity:0}}
@keyframes igPulse{50%{transform:scale(1.08)}}
@keyframes igPing{from{transform:scale(1);opacity:.7}to{transform:scale(3.2);opacity:0}}
@media (max-width:1100px){.hx-mgrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.hx-mgrid{grid-template-columns:1fr}}

/* ---------- เลือกอย่างไร: 8 criteria as one quick-scan table (shares .hx-tbl; phones get one card per row) ---------- */
.hx-ctbl-wrap{margin-top:0}
.hx-ctbl tbody th{width:40%;white-space:normal}
.hx-cn{display:inline-grid;place-items:center;width:26px;height:26px;margin-right:10px;border-radius:50% !important;background:var(--blue-l);color:var(--blue-2);font-size:13px;font-weight:700;font-variant-numeric:tabular-nums;vertical-align:1px}
.hx-ctbl tbody tr{transition:background-color .2s}
@media (hover:hover){.hx-ctbl tbody tr:hover{background:color-mix(in srgb,var(--blue) 4%,transparent)}}
.hx-crit-sum{margin-top:14px;max-width:90ch;color:var(--mid);line-height:1.7}
.hx-crit-sum b{color:var(--ink)}

/* ---------- เริ่มใช้: timeline + 4 step cards (live wording) + free-setup note ---------- */
.hx-tl{position:relative;margin:4px 0 clamp(18px,2.4vw,28px);padding:18px clamp(16px,2vw,24px) 6px}
.hx-tl-track{position:absolute;left:clamp(26px,3vw,40px);right:clamp(26px,3vw,40px);top:27px;height:6px;border-radius:6px !important;background:var(--line)}
.hx-tl-track i{position:absolute;inset:0;border-radius:inherit !important;background:linear-gradient(90deg,var(--blue),#008CFF 55%,var(--orange));transform-origin:0 50%}
.hx-tl ol{position:relative;list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.hx-tl li{display:flex;flex-direction:column;align-items:center;text-align:center;gap:2px;padding-top:36px;position:relative}
.hx-tl li::before{content:"";position:absolute;top:0;left:50%;width:24px;height:24px;margin-left:-12px;border-radius:50% !important;background:var(--card);border:4px solid var(--blue);box-shadow:0 6px 14px -6px rgba(0,90,180,.6)}
.hx-tl li:first-child{align-items:flex-start;text-align:left}.hx-tl li:first-child::before{left:0;margin-left:0}
.hx-tl li:last-child{align-items:flex-end;text-align:right}.hx-tl li:last-child::before{left:auto;right:0;margin-left:0}
.hx-tl li.o::before{border-color:var(--orange)}
.hx-tl b{font-size:clamp(16px,1.5vw,19px);color:var(--ink)}.hx-tl li.o b{color:var(--orange)}
.hx-tl small{font-size:13px;color:var(--mid)}
.hx-sgrid{grid-template-columns:repeat(4,minmax(0,1fr))}
.hx-sn{display:inline-block;padding:3px 10px;border-radius:999px !important;background:var(--blue-l);color:var(--blue-2);font-size:12.5px;font-weight:700}
.hx-sgrid > li:last-child .hx-sn{background:var(--orange-l);color:var(--orange)}
.hx-sgrid .hx-ig::after,.hx-freenote .hx-ig::after{right:auto;bottom:auto;left:12px;top:8px}
.hx-st{margin-top:8px;font-size:16px;font-weight:600;line-height:1.5;color:var(--ink)}
.hx-freenote{display:grid;grid-template-columns:minmax(0,280px) minmax(0,1fr);gap:clamp(14px,2vw,24px);align-items:center;margin-top:clamp(14px,1.6vw,20px);padding:10px clamp(14px,2vw,22px) 10px 10px;border-radius:28px !important}
.hx-freenote p{font-size:16px;line-height:1.7;color:var(--mid)}.hx-freenote b{color:var(--ink)}
/* step infographics */
.hx-ig .ig-cb{fill:var(--card);stroke:color-mix(in srgb,var(--blue) 45%,var(--card));stroke-width:1.5}
.hx-ig .ig-ln0{fill:none;stroke:color-mix(in srgb,var(--blue) 30%,var(--card));stroke-width:1}
.hx-ig .ig-tw{fill:#fff;font-weight:700}.hx-ig .ig-w{fill:#fff}
.hx-ig .ig-tg-t{fill:#E4EEF8}   /* solid: animating from a color-mix to blue passes through green */.hx-ig .ig-tg-k{fill:#fff;stroke:color-mix(in srgb,var(--blue) 30%,var(--card))}
.hx-ig .ig-prog{transform-box:fill-box;transform-origin:0 50%}
@media (prefers-reduced-motion:no-preference){
  .hx-anim:not(.in) .hx-tl-track i,.hx-tl:not(.in) .hx-tl-track i{transform:scaleX(0)}
  .hx-tl.in .hx-tl-track i{animation:hxBar 1.6s var(--ease) .2s both}
  .hx-tl li::before{transition:transform .5s var(--spring)}
  .hx-tl:not(.in) li::before{transform:scale(0)}
  .hx-tl.in li:nth-child(2)::before{transition-delay:.7s}.hx-tl.in li:nth-child(3)::before{transition-delay:1.3s}
  .hx-ig .ig-tg-k{transform-box:fill-box;transform-origin:center}
  :is(.hx-mc,.hx-anim).in .ig-tg .ig-tg-k{animation:igKnob .5s var(--spring) both}
  :is(.hx-mc,.hx-anim).in .ig-tg .ig-tg-t{animation:igTrack .5s var(--ease) both}
  :is(.hx-mc,.hx-anim).in .ig-tg.d2 *{animation-delay:.5s}:is(.hx-mc,.hx-anim).in .ig-tg.d3 *{animation-delay:.9s}:is(.hx-mc,.hx-anim).in .ig-tg.d1 *{animation-delay:.1s}
  .hx-ig .ig-gear{transform-box:fill-box;transform-origin:center}
  :is(.hx-mc,.hx-anim).in .ig-gear{animation:igSpin 8s linear infinite}
  :is(.hx-mc,.hx-anim).in .ig-prog{animation:igProg 3.2s ease-in-out infinite}
  .hx-ig .ig-xls{transform-box:fill-box}
  :is(.hx-mc,.hx-anim).in .ig-xls{animation:igBob 3s ease-in-out infinite}
  :is(.hx-mc,.hx-anim).in .ig-move2{animation:igMove2 2.6s var(--ease) infinite}
}
@media (prefers-reduced-motion:reduce){.hx-tl-track i{transform:none}}
@keyframes igKnob{to{transform:translateX(18px);fill:#fff}}
@keyframes igTrack{to{fill:var(--blue)}}
@keyframes igProg{0%{transform:scaleX(0)}70%,100%{transform:scaleX(1)}}
@keyframes igBob{50%{transform:translateY(-6px)}}
@keyframes igMove2{0%{transform:translateX(-10px);opacity:0}15%{opacity:1}80%{transform:translateX(48px);opacity:1}100%{transform:translateX(56px);opacity:0}}
@media (max-width:1100px){.hx-sgrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:760px){.hx-freenote{grid-template-columns:1fr;padding:10px 10px 16px}.hx-freenote p{padding:0 8px}}
@media (max-width:640px){.hx-sgrid{grid-template-columns:1fr}.hx-tl small{display:none}.hx-tl b{font-size:14px}}

/* ---------- calls to action → /th/registration (inline button + strip banner) ---------- */
.hx-cta-in{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;margin-top:20px}
.hx-cta-in small{font-size:13.5px;color:var(--mid)}
.hx-cta-c{justify-content:center;text-align:center}
.hx-cta-in .btn svg,.hx-cta-strip .btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;transition:transform .35s var(--spring)}
.hx-cta-in .btn:hover svg,.hx-cta-strip .btn:hover svg{transform:translateX(4px)}
.hx-cta-strip{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px 24px;margin-top:clamp(16px,2vw,24px);padding:18px 18px 18px clamp(18px,2.4vw,28px);border-radius:26px !important;background:linear-gradient(120deg,#0072F3,#008CFF);box-shadow:0 22px 44px -28px rgba(0,90,200,.8);overflow:hidden;position:relative}
.hx-cta-strip::after{content:"";position:absolute;inset:0;background:linear-gradient(110deg,transparent 35%,rgba(255,255,255,.22) 50%,transparent 65%);transform:translateX(-120%);pointer-events:none}
.hx-cta-strip.in::after{animation:hxSweep 1.6s var(--ease) .4s 1}
.hx-cta-strip p{position:relative;z-index:1;font-size:clamp(17px,1.6vw,20px);font-weight:700;line-height:1.4;color:#fff}
.hx-cta-strip small{display:block;margin-top:2px;font-size:13.5px;font-weight:500;color:rgba(255,255,255,.88)}
.hx-cta-strip .btn{position:relative;z-index:1;flex:none}
.hx-cta-strip.o{background:linear-gradient(120deg,#FF6100,#FF8100);box-shadow:0 22px 44px -28px rgba(255,97,0,.8)}
.hx-cta-strip.o .btn{background:#fff;border-color:#fff;color:#FF6100}
@keyframes hxSweep{to{transform:translateX(120%)}}
@media (max-width:640px){.hx-cta-strip{padding:18px}.hx-cta-strip .btn{width:100%}.hx-cta-in .btn{width:100%}}
@media (prefers-reduced-motion:reduce){.hx-cta-strip::after{animation:none}.hx-cta-in .btn svg,.hx-cta-strip .btn svg{transition:none}}

/* ---------- "คุณสงสัยไหม" chips → AI (same look as home .hm-tq; kit request: promote to core) ---------- */
.hx-tq{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:clamp(18px,2.2vw,28px);padding-top:14px;border-top:1px dashed var(--line)}
.hx-tq-l{flex:none;display:inline-flex;align-items:center;gap:8px;font-size:clamp(15px,1.4vw,18px);font-weight:700;color:var(--orange);white-space:nowrap}
.hx-tq-l i{position:relative;width:10px;height:10px;border-radius:50% !important;background:var(--orange)}
.hx-tq-l i::after{content:"";position:absolute;inset:-5px;border-radius:50% !important;border:2px solid var(--orange);animation:hxPulse 1.8s ease-out infinite}
.hx-tq-l b{display:inline-block;animation:hxNudge 1.4s var(--ease) infinite}
.hx-tq-q{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:5px 14px 5px 6px;border-radius:999px !important;border:1px solid var(--line);background:var(--card);color:var(--ink);font:500 14px/1.35 var(--f);text-align:left;cursor:pointer;max-width:100%;transition:transform .3s var(--spring),border-color .2s,box-shadow .2s}
.hx-tq-q span{flex:none;width:26px;height:26px;border-radius:50% !important;display:grid;place-items:center;background:var(--blue);color:#fff;font-weight:700;font-size:13px;transition:transform .5s var(--spring)}
.hx-tq-q:hover{transform:translateY(-2px);border-color:var(--blue);box-shadow:0 10px 22px -14px rgba(0,114,243,.6)}
.hx-tq-q:hover span{transform:rotate(360deg)}

/* ---------- คืออะไร ---------- */
.hx-what{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.02fr);gap:clamp(24px,4vw,56px);align-items:center}
.hx-what-copy p{margin-top:12px;color:var(--mid);max-width:60ch}
.hx-what-copy p b{color:var(--ink)}
.hx-what-copy .h-sec + p{margin-top:16px}

.hx-flow{border-radius:var(--r-l) !important;padding:clamp(18px,2.4vw,28px)}
.hx-flow-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px}
.hx-flow-t{font-weight:700;font-size:17px;color:var(--ink)}
.hx-flow-t small{margin-left:6px;font-size:12px;font-weight:600;color:var(--mid);background:var(--blue-l);padding:2px 8px;border-radius:999px !important}
.hx-flow-seg button{font-size:14px;padding:8px 14px;min-height:40px}
.hx-flow-list{list-style:none;padding:0;margin:20px 0 0;display:grid;gap:14px}
.hx-flow-list li{position:relative;display:grid;grid-template-columns:48px minmax(0,1fr);gap:14px;align-items:start;opacity:.5;transition:opacity .45s var(--ease)}
.hx-flow-list li:not(:last-child)::before{content:"";position:absolute;left:23px;top:50px;bottom:-14px;width:2px;border-radius:2px !important;background:linear-gradient(var(--blue),var(--blue-sky));transform-origin:top;transform:scaleY(0);transition:transform .7s var(--ease)}
.hx-flow-list li.lit{opacity:1}
.hx-flow-list li.lit:not(:last-child)::before{transform:scaleY(1)}
.hx-fi{width:48px;height:48px;border-radius:16px !important;display:grid;place-items:center;background:var(--blue-l);color:var(--blue);transition:background .4s,color .4s,transform .5s var(--spring)}
.hx-fi svg{width:24px;height:24px}
.hx-flow-list li.lit .hx-fi{background:linear-gradient(135deg,var(--blue),var(--blue-sky));color:#fff;transform:scale(1.04)}
.hx-flow-list b{display:block;font-size:16px;color:var(--ink)}
.hx-flow-list span{display:block;font-size:14.5px;line-height:1.5;color:var(--mid)}
.hx-flow .hx-x{display:none}
/* separate files: every step stays visible, links break and need re-keying */
.hx-flow[data-mode=xls] li{opacity:1}
.hx-flow[data-mode=xls] .hx-s{display:none}
.hx-flow[data-mode=xls] .hx-x{display:block}
.hx-flow[data-mode=xls] .hx-fi{background:var(--orange-l);color:var(--orange)}
.hx-flow[data-mode=xls] li:not(:last-child)::before{transform:scaleY(1);background:repeating-linear-gradient(var(--orange) 0 5px,transparent 5px 10px)}
.hx-flow[data-mode=xls] li:not(:last-child)::after{content:"Re-keying";position:absolute;left:52px;bottom:-15px;font-size:11px;font-weight:700;line-height:1;padding:3px 7px;border-radius:999px !important;background:var(--orange);color:#fff}
.hx-flow-sum{display:flex;align-items:center;gap:10px;margin-top:20px;padding:12px 16px;border-radius:16px !important;background:var(--blue-l);color:var(--ink);font-weight:600;font-size:15px;line-height:1.45}
.hx-flow-sum svg{flex:none;width:22px;height:22px;color:var(--blue)}
.hx-flow[data-mode=xls] .hx-flow-sum{background:var(--orange-l)}
.hx-flow[data-mode=xls] .hx-flow-sum svg{color:var(--orange)}

.hx-terms{margin-top:clamp(32px,4vw,52px)}
.hx-terms h2{font-size:clamp(20px,2vw,26px);font-weight:700;letter-spacing:-.02em;line-height:1.3}
.hx-terms h2 span{display:block;font-size:15px;font-weight:500;color:var(--mid);letter-spacing:0;margin-top:2px}
.hx-tbl-wrap{margin-top:14px;border-radius:var(--r) !important;border:1px solid var(--line);background:var(--card);overflow:hidden}
.hx-tbl{width:100%;border-collapse:collapse;font-size:15px;line-height:1.55}
.hx-tbl th,.hx-tbl td{text-align:left;vertical-align:top;padding:14px 18px;border-top:1px solid var(--line)}
.hx-tbl thead th{border-top:0;background:var(--blue-l);font-size:14px;font-weight:700;color:var(--blue-2)}
.hx-tbl tbody th{width:19%;font-weight:700;color:var(--ink);white-space:nowrap}
.hx-tbl td{color:var(--mid)}
.hx-tbl td:last-child{width:30%}
.hx-tbl .hx-hl th{color:var(--blue-2)}
.hx-terms-note{margin-top:14px;color:var(--mid);max-width:80ch}
.hx-terms-note b{color:var(--ink)}
.hx-terms-note .more{margin:0 0 0 4px}

/* ---------- ทำอะไรได้บ้าง: module tabs ---------- */

/* ---------- กี่ประเภท ---------- */
.hx-types{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.hx-types > li{position:relative;border-radius:var(--r) !important;padding:10px 10px 20px;display:flex;flex-direction:column;overflow:hidden;transition:transform .45s var(--spring),box-shadow .3s}
/* card header: the type itself (icon + name) on a tinted band */
.hx-th{display:flex;align-items:center;gap:12px;padding:14px 14px 16px;border-radius:calc(var(--r) - 6px) !important;background:linear-gradient(150deg,color-mix(in srgb,var(--blue) 14%,var(--card)),color-mix(in srgb,var(--blue) 4%,var(--card)));min-height:5.4em}
.hx-ti{position:relative;flex:none;width:48px;height:48px;border-radius:15px !important;display:grid;place-items:center;background:var(--card);box-shadow:0 8px 18px -10px rgba(0,90,180,.55);color:var(--blue);transition:transform .45s var(--spring)}
.hx-ti svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.hx-ti .hx-tsub{position:absolute;right:-6px;bottom:-6px;width:22px;height:22px;padding:3px;border-radius:50% !important;background:var(--orange);color:#fff;stroke-width:2.2}
.hx-tt{font-size:17px;font-weight:700;line-height:1.35;color:var(--ink)}
.hx-types dl{padding:0 10px}
.hx-types-more{margin-top:14px}
@media (hover:hover){.hx-types > li:hover .hx-ti{transform:translateY(-3px) rotate(-6deg)}}
.hx-types dl{margin:12px 0 0;display:grid;gap:10px}
.hx-types dl div{display:grid;gap:2px}
.hx-types dt{justify-self:start;font-size:12px;font-weight:700;line-height:1;padding:4px 9px;border-radius:999px !important}
.hx-types dd{margin:0;font-size:14.5px;line-height:1.5;color:var(--mid)}
.hx-pro dt{background:var(--blue-l);color:var(--blue-2)}
.hx-con dt{background:var(--orange-l);color:var(--orange)}
.hx-fit dt{background:var(--ink);color:var(--ground)}
.hx-fit dd{color:var(--ink);font-weight:500}

/* ---------- 8 ข้อเลือก ---------- */

/* ---------- ลองเล่น ---------- */
/* the whole chip is the checkbox (≥44px target); .hx-ck draws the tick */

.hx-perk{margin-top:12px;padding:10px 14px;border-radius:16px !important;background:var(--orange-l);font-size:14px;line-height:1.5;color:var(--ink)}
.hx-perk b{color:var(--orange)}
.hx-fine{margin-top:12px;font-size:12.5px;line-height:1.5;color:var(--mid)}

/* ---------- ราคา ---------- */
.hx-h-price{max-width:26ch!important}
.hx-calc{border-radius:var(--r-l) !important;padding:clamp(18px,2.4vw,28px)}
.hx-range{max-width:640px}
.hx-range label{font-weight:600}
.hx-ticks{display:flex;justify-content:space-between;font-size:12px;color:var(--mid);padding:0 4px}
.hx-pks{list-style:none;padding:0;margin:18px 0 0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.hx-pks li{position:relative;display:flex;flex-direction:column;gap:2px;padding:18px 18px 16px;border-radius:22px !important;transition:transform .45s var(--spring),box-shadow .3s}
.hx-pks li.on{box-shadow:0 0 0 2px var(--orange),var(--glass-shadow)}
.hx-pk-tag{position:absolute;top:-11px;left:16px;font-size:11.5px;font-weight:700;line-height:1;padding:5px 10px;border-radius:999px !important}
.hx-pk-tag{background:var(--blue-l);color:var(--blue-2)}
.hx-pk-n{font-size:15px;font-weight:700;letter-spacing:.02em;color:var(--blue-2)}
.hx-pk-d{font-size:13.5px;line-height:1.45;color:var(--mid);min-height:2.9em}
.hx-pk-p{display:flex;align-items:baseline;gap:2px;margin-top:6px;line-height:1.1;color:var(--ink)}
.hx-pk-p span{font-size:17px;font-weight:700}
.hx-pk-p b{font-size:clamp(26px,2.6vw,34px);font-weight:700;letter-spacing:-.03em}
.hx-pk-p small{font-size:13px;color:var(--mid)}
.hx-pk-q{font-size:19px;font-weight:700}
.hx-pk-y{font-size:13px;color:var(--mid)}
a.hx-pk-y{color:var(--blue-2);font-weight:600;min-height:32px;display:inline-flex;align-items:center}
.hx-free{display:flex;gap:8px;align-items:flex-start}
.hx-free svg{flex:none;width:18px;height:18px;margin-top:2px;color:var(--orange);stroke-width:3}

/* ---------- เริ่มใช้ ---------- */

/* ---------- FAQ: tighter than core ---------- */
#faq .faq-wrap{gap:clamp(20px,3vw,40px)}
#faq .faq details p + p{margin-top:-10px}

/* ---------- hover lift (pointer devices) ---------- */

/* ---------- motion ---------- */
@keyframes hxSpin{to{transform:rotate(360deg)}}
@keyframes hxIn{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes hxPulse{0%{transform:scale(.6);opacity:1}100%{transform:scale(1.6);opacity:0}}
@keyframes hxNudge{0%,100%{transform:none}50%{transform:translateX(4px)}}

/* ---------- responsive ---------- */
@media (max-width:1100px){
  .hx-types{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:22px}
  .hx-th{min-height:0}
  .hx-pks{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:20px}
}
@media (max-width:900px){
  .hx-what{grid-template-columns:1fr}
}
@media (max-width:700px){
  .hx-tbl-wrap{border:0;background:none;border-radius:0 !important}
  .hx-tbl,.hx-tbl tbody,.hx-tbl tr,.hx-tbl th,.hx-tbl td{display:block;width:auto!important}
  .hx-tbl thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .hx-tbl tr{margin-top:10px;border:1px solid var(--line);border-radius:20px !important;background:var(--card);overflow:hidden}
  .hx-tbl tbody th{padding:12px 16px 4px;border:0;font-size:17px;white-space:normal}
  .hx-tbl td{padding:4px 16px 10px;border:0}
  .hx-tbl td::before{content:attr(data-l);display:block;font-size:12px;font-weight:700;color:var(--blue-2)}
}
@media (max-width:640px){
  .hx-types{grid-template-columns:1fr}
}
@media (max-width:560px){
  .hx-tq{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding-bottom:4px;margin-inline:calc(-1 * clamp(16px,4vw,40px));padding-inline:clamp(16px,4vw,40px)}
  .hx-tq::-webkit-scrollbar{display:none}
  .hx-tq-q{flex:none;max-width:78vw}
  .hx-pk-d{min-height:0}
  .hx-pks li{padding:16px 14px 14px}
}
@media (max-width:340px){.hx-pks{grid-template-columns:1fr}}

@media (prefers-reduced-motion:reduce){
  .hx-flow-list li,.hx-flow-list li::before,.hx-fi,.hx-tq-q,.hx-tq-q span{transition:none}
  .hx-hero h1,.hx-hero h1 em,.hx-hero h1::after,.hx-tq-l i::after,.hx-tq-l b{animation:none}
}

/* ================= สรุปแบบหน้าเดียว (#onepage, before FAQ) + extra Register CTAs — shared block (same look as /th/compare/payroll-software) =================
   Recap of this page's own content only; no heading tags (live H-outline unchanged). Plays once when revealed; still in reduced motion. */
.op-sprite{position:absolute;width:0;height:0;overflow:hidden}
.op-sec{position:relative;padding-block:clamp(30px,3.6vw,48px) clamp(10px,1.4vw,20px)}
.op{position:relative;padding:clamp(16px,2vw,24px);border-radius:var(--r-l) !important;background:var(--card);border:1px solid var(--line);box-shadow:0 30px 60px -40px rgba(0,60,140,.45)}
.op svg,.op-cta-in svg,.op-cta-strip svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.op-head{position:relative;overflow:hidden;padding:clamp(18px,2.2vw,26px) clamp(18px,2.4vw,30px);border-radius:24px !important;background:linear-gradient(120deg,#0072F3,#008CFF);color:#fff}
.op-head::after{content:"";position:absolute;inset:0;background:linear-gradient(110deg,transparent 35%,rgba(255,255,255,.22) 50%,transparent 65%);transform:translateX(-120%);pointer-events:none}
.op-k{font-size:13.5px;font-weight:600;color:rgba(255,255,255,.88)}
.op-t{margin-top:4px;font-size:clamp(22px,2.6vw,32px);font-weight:800;line-height:1.25;color:#fff;text-wrap:balance}
.op-sub{display:block;font-size:.62em;font-weight:600;color:rgba(255,255,255,.92)}
.op-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr) minmax(0,1fr);gap:14px;margin-top:14px}
.op-box{padding:18px 18px 16px;border-radius:22px !important;background:var(--blue-xl);border:1px solid var(--line)}
.op-h{display:flex;align-items:center;gap:10px;font-size:16px;font-weight:700;color:var(--ink);line-height:1.35}
.op-h b{flex:none;width:28px;height:28px;border-radius:50% !important;display:grid;place-items:center;background:var(--blue);color:#fff;font-size:13.5px}
.op ul,.op ol{list-style:none;margin:12px 0 0;padding:0}
.op-ic{flex:none;width:36px;height:36px;border-radius:12px !important;display:grid;place-items:center;background:var(--card);color:var(--blue);border:1px solid #E4EEF8}
.op-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.op-tiles li{display:flex;flex-direction:column;gap:8px;padding:12px;border-radius:16px !important;background:var(--card)}
.op-tiles b{display:block;font-size:14px;line-height:1.4;color:var(--ink)}
.op-tiles small{display:block;margin-top:2px;font-size:12.5px;line-height:1.45;color:var(--mid)}
.op-chk{display:grid;gap:6px}
.op-chk li{display:flex;align-items:flex-start;gap:10px;padding:8px 10px;border-radius:12px !important;background:var(--card);font-size:14px;line-height:1.45;color:var(--ink)}
.op-tick{flex:none;width:22px;height:22px;border-radius:50% !important;display:grid;place-items:center;background:var(--blue);color:#fff;margin-top:1px}
.op-tick svg{width:13px;height:13px;stroke-width:3}
.op-neg .op-tick{background:var(--ground-2);color:var(--mid)}
.op-lad{display:grid;gap:10px}
.op-lad li{display:grid;grid-template-columns:44px minmax(0,1fr);gap:12px;align-items:end;padding:10px 12px;border-radius:14px !important;background:var(--card);font-size:13.5px;line-height:1.45;color:var(--mid)}
.op-lad li b{display:block;font-size:14.5px;color:var(--ink)}
.op-bar{display:flex;align-items:flex-end;height:46px;border-radius:8px !important;background:#E4EEF8;overflow:hidden}
.op-bar i{display:block;width:100%;border-radius:8px 8px 0 0 !important;transform-origin:50% 100%}
.op-lad .z1 .op-bar i{height:34%;background:var(--blue-sky)}.op-lad .z2 .op-bar i{height:66%;background:var(--blue)}.op-lad .z3 .op-bar i{height:100%;background:var(--orange)}
.op-wide{margin-top:14px}
.op-wide ul{display:grid;grid-template-columns:repeat(var(--n),minmax(0,1fr));gap:8px}
.op-wide li{display:flex;flex-direction:column;gap:6px;padding:12px;border-radius:16px !important;background:var(--card)}
.op-wide li b{font-size:14px;line-height:1.35;color:var(--ink)}
.op-wide li small{font-size:13px;line-height:1.45;color:var(--mid)}
.op-hs{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px 18px;margin-top:14px;padding:16px 18px;border-radius:22px !important;background:var(--orange-l);border:1px solid var(--line)}
.op-hs .op-h{grid-column:1/-1}.op-hs .op-h b{background:var(--orange)}
.op-hs ul{margin:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.op-hs li{display:flex;flex-direction:column;padding:8px 12px;border-radius:14px !important;background:var(--card);line-height:1.3}
.op-hs li small{font-size:12px;color:var(--mid)}
.op-hs li b{font-size:16px;color:var(--orange)}
.op-act{display:flex;flex-direction:column;gap:8px}
.op-act .btn{justify-content:center;white-space:nowrap}
.op-note{margin-top:12px;font-size:13px;line-height:1.6;color:var(--mid)}
.op-note b{color:var(--ink)}
@media (prefers-reduced-motion:no-preference){
  .op:not(.in) li{opacity:0}
  .op.in .op-head::after{animation:opSweep 1.6s var(--ease) .3s 1}
  .op.in .op-tiles li{animation:opPop .5s var(--spring) both;animation-delay:calc(.25s + var(--i) * .1s)}
  .op.in .op-chk li{animation:opRise .45s var(--ease) both;animation-delay:calc(.4s + var(--i) * .1s)}
  .op.in .op-tick{animation:opPop .45s var(--spring) both;animation-delay:calc(.6s + var(--i) * .1s)}
  .op.in .op-lad li{animation:opRise .45s var(--ease) both;animation-delay:calc(.5s + var(--i) * .15s)}
  .op.in .op-bar i{animation:opGrow .9s var(--ease) both;animation-delay:calc(.7s + var(--i) * .15s)}
  .op.in .op-wide li{animation:opRise .45s var(--ease) both;animation-delay:calc(.9s + var(--i) * .08s)}
  .op.in .op-hs li{animation:opPop .45s var(--spring) both;animation-delay:calc(1.2s + var(--i) * .08s)}
  .op-cta-strip.in::after{animation:opSweep 1.6s var(--ease) .4s 1}
}
@keyframes opPop{from{opacity:0;transform:translateY(8px) scale(.85)}}
@keyframes opRise{from{opacity:0;transform:translateY(10px)}}
@keyframes opGrow{from{transform:scaleY(0)}}
@keyframes opSweep{to{transform:translateX(120%)}}
@media (max-width:1100px){.op-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.op-grid > .op-box:last-child{grid-column:1/-1}.op-wide ul{grid-template-columns:repeat(3,minmax(0,1fr))}.op-hs{grid-template-columns:minmax(0,1fr)}.op-hs ul{grid-template-columns:repeat(3,minmax(0,1fr))}.op-act{flex-direction:row;flex-wrap:wrap}}
@media (max-width:700px){.op-grid{grid-template-columns:minmax(0,1fr)}.op-wide ul,.op-hs ul{grid-template-columns:repeat(2,minmax(0,1fr))}.op-tiles li,.op-wide li{padding:10px}.op-ic{width:32px;height:32px;border-radius:10px !important}.op-act .btn{flex:1}}
/* extra Register CTAs inside content sections */
.op-cta-in{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;margin-top:20px}
.op-cta-in small{font-size:13.5px;color:var(--mid)}
.op-cta-in .btn svg,.op-cta-strip .btn svg{width:18px;height:18px;stroke-width:2.2;transition:transform .35s var(--spring)}
.op-cta-in .btn:hover svg,.op-cta-strip .btn:hover svg{transform:translateX(4px)}
.op-cta-strip{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px 24px;margin-top:clamp(16px,2vw,24px);padding:18px 18px 18px clamp(18px,2.4vw,28px);border-radius:26px !important;background:linear-gradient(120deg,#0072F3,#008CFF);box-shadow:0 22px 44px -28px rgba(0,90,200,.8)}
.op-cta-strip::after{content:"";position:absolute;inset:0;background:linear-gradient(110deg,transparent 35%,rgba(255,255,255,.22) 50%,transparent 65%);transform:translateX(-120%);pointer-events:none}
.op-cta-strip p{position:relative;z-index:1;font-size:clamp(17px,1.6vw,20px);font-weight:700;line-height:1.4;color:#fff}
.op-cta-strip small{display:block;margin-top:2px;font-size:13.5px;font-weight:500;color:rgba(255,255,255,.88)}
.op-cta-strip .btn{position:relative;z-index:1;flex:none;background:#fff;border-color:#fff;color:var(--blue-2)}
.op-cta-strip.o{background:linear-gradient(120deg,#FF6100,#FF8100);box-shadow:0 22px 44px -28px rgba(255,97,0,.8)}
.op-cta-strip.o .btn{color:#FF6100}
@media (max-width:560px){.op-cta-strip .btn{width:100%;justify-content:center}}
@media (max-width:420px){.op-act{flex-direction:column}}
/* ===== Shared CTA bar (every page): slim bar floats above the bottom of the screen while scrolling,
   then docks as a full-width band just above the footer. Markup: kit/COMPONENTS.md §15 ===== */
.hm-cb-wrap{position:sticky;bottom:calc(14px + env(safe-area-inset-bottom,0px));z-index:60;margin:48px 0 40px;padding-inline:16px;pointer-events:none;transition:transform .5s var(--spring),opacity .35s}
.hm-cb-wrap.is-hidden{transform:translateY(calc(100% + 40px));opacity:0}
.hm-cb{pointer-events:auto;max-width:min(1080px,calc(100vw - 200px));margin-inline:auto;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:12px 12px 12px 28px;border-radius:999px !important;
  background:linear-gradient(135deg,#0072F3,#00A2FF)!important;border:0;box-shadow:0 20px 44px -18px rgba(0,114,243,.7);color:#fff;transition:box-shadow .4s,max-width .5s var(--ease)}
.hm-cb-wrap.is-docked .hm-cb{box-shadow:0 10px 28px -20px rgba(0,114,243,.6);max-width:min(1200px,calc(100vw - 32px))}
.hm-cb-txt{display:flex;flex-direction:column;min-width:0}
.hm-cb-txt h2{font-size:clamp(17px,1.7vw,22px);line-height:1.3;font-weight:600;color:#fff;margin:0}
.hm-cb-txt h2 b{font-weight:700}
.hm-cb-txt > span{font-size:13px;color:#fff;opacity:.9}
.hm-cb-act{display:flex;gap:8px;flex:none}
.hm-cb .btn{min-height:46px;padding:0 22px}
.hm-cb .btn.primary{background:#fff!important;border-color:#fff!important;color:#008CFF!important}
.hm-cb .hm-cb-sales{background:transparent!important;border:1.5px solid rgba(255,255,255,.8)!important;color:#fff!important;box-shadow:none!important}
.hm-cb-end{height:1px}
@media (max-width:1100px){.hm-cb{max-width:calc(100vw - 112px)}}
@media (max-width:760px){
  .hm-cb-wrap{bottom:calc(80px + env(safe-area-inset-bottom,0px));padding-inline:10px}
  .hm-cb{max-width:none;padding:8px 8px 8px 18px;gap:10px}
  .hm-cb-txt > span,.hm-cb-sales,.hm-cb-pre{display:none}
  .hm-cb-txt h2{font-size:15px}
  .hm-cb .btn{min-height:44px;padding:0 16px;font-size:14px}
}

.hm-cb-wrap.is-docked{padding-inline:0;margin-bottom:0}
.hm-cb{transition:max-width .6s var(--ease),border-radius .6s var(--ease),padding .6s var(--ease),box-shadow .4s}
.hm-cb-wrap.is-docked .hm-cb{max-width:100%!important;border-radius:0 !important;padding:30px max(24px,calc((100vw - 1200px)/2));box-shadow:none}
.hm-cb-wrap.is-docked .hm-cb-txt h2{font-size:clamp(20px,2.2vw,28px)}
/* leave room for the docked AI panel on wide screens */
/* the floating AI window covers the bottom-right corner: the bar slides left of it while it is open */
@media (min-width:1024px){html.ai-open .hm-cb-wrap:not(.is-docked){padding-right:430px}html.ai-open .hm-cb-wrap:not(.is-docked) .hm-cb{max-width:none}}
@media (max-width:760px){.hm-cb-x .hm-cb-a{display:none}.hm-cb-x .hm-cb-pre{display:inline}}
/* tablet: the floating dock sits on the right edge, so the bar keeps clear of it */
@media (min-width:621px) and (max-width:1100px){.hm-cb-wrap:not(.is-docked){padding-right:100px}.hm-cb-wrap:not(.is-docked) .hm-cb{max-width:none}}
/* ===== HumanSoft CI layer (HumanSoft-CI.pdf, dev summary 14/10/2026 — pending Marketing sign-off) =====
   Loaded after page CSS on every page. Colours: Deep Blue #008CFF (headings, borders, buttons), Light Blue #289FFF,
   Vivid Orange #FF6100 / Light Orange #FF8100 (accent only), Pale Blue #E4EEF8 (cards), White, Black,
   gradient #0072F3 → #00A2FF at −45°. Text colours limited to black / white / blue / orange. No green/red.
   Content pages stay light (no full dark pages) → dark mode is switched off. Font: Anuphan only.
   Hard-coded hex colours in page CSS/JS are snapped to this palette at build time (kit/build.py ci_map). */
:root,:root[data-theme="dark"],:root:not([data-theme="light"]){
  color-scheme:light;
  --blue:#008CFF; --blue-2:#008CFF; --blue-sky:#289FFF; --blue-l:#E4EEF8; --blue-xl:#E4EEF8;
  --orange:#FF6100; --orange-2:#FF6100; --orange-3:#FF8100; --orange-l:#FFF1E8;
  --ink:#000000; --mid:#000000; --muted:#000000; --line:#E4EEF8;
  --ground:#FFFFFF; --ground-2:#E4EEF8; --card:#FFFFFF;
  --green:#008CFF; --green-l:#E4EEF8; --red:#FF6100; --red-l:#FFF1E8;
  --glass-bg:rgba(255,255,255,.88); --glass-bg-2:rgba(255,255,255,.74); --glass-edge:rgba(255,255,255,.9); --glass-rim:rgba(0,114,243,.10);
  --glass-shadow:0 18px 50px -22px rgba(0,114,243,.35); --spec:rgba(255,255,255,.9);
  --blob-a:rgba(0,140,255,.24); --blob-b:rgba(255,97,0,.12); --blob-c:rgba(40,159,255,.30);
  --night:#0072F3; --night-2:#00A2FF; --on-night:#FFFFFF; --on-night-2:#FFFFFF;
  --ci-grad:linear-gradient(135deg,#0072F3 0%,#00A2FF 100%);
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){color-scheme:light}}

/* secondary text: black (CI) with hierarchy from size/weight instead of grey */
.lead,.note,.crumb,small,.plabel{color:#000}

/* blue bands use the CI gradient (−45°: dark top-left → light bottom-right) with white text */
.night{background:var(--ci-grad)!important;color:#fff}
.night .lead,.night p,.night small,.night .plabel,.night li{color:#fff}
.night .h-sec em,.night h2 em,.night h1 em{background:none!important;-webkit-text-fill-color:#fff!important;color:#fff!important}
.night .kick{color:#fff}
.glow{display:none}

/* buttons: Deep Blue is the button colour; orange is accent only */
.btn.primary,.btn.blue{background:#008CFF!important;border-color:#008CFF!important;color:#fff!important;box-shadow:0 14px 34px -14px rgba(0,140,255,.7)!important}
.btn.primary:hover,.btn.blue:hover{background:#0072F3!important;border-color:#0072F3!important}
.night .btn.primary,.night .btn.blue{background:#fff!important;border-color:#fff!important;color:#008CFF!important}
.dock a.try-free{background:#FF6100!important}

/* headline accents: blue only (orange stays for numbers / warnings) */
.h-sec em,.hero .display .ln:nth-child(2) > span{background-image:linear-gradient(90deg,#0072F3,#00A2FF,#0072F3)!important}
h1 em{background:none!important;-webkit-text-fill-color:#008CFF!important;color:#008CFF!important}
.night h1 em{-webkit-text-fill-color:#fff!important;color:#fff!important}
.kick b{background:#FF6100;color:#fff}
.kick{color:#008CFF}

/* free-trial calls to action (ทดลองใช้ฟรี 30 วัน / เริ่มใช้งานฟรี / ทดลองใช้งานฟรี) are orange — Marketing decision 25/10/2026 */
a.btn[href*="/registration"]:not(#_){background:#FF6100!important;border-color:#FF6100!important;color:#fff!important;box-shadow:0 14px 34px -14px rgba(255,97,0,.75)!important}
a.btn[href*="/registration"]:not(#_):hover{background:#FF8100!important;border-color:#FF8100!important}
.msheet a[href*="/registration"]:not(.btn){color:#FF6100}
/* ===== HumanSoft AI assistant: floating chat widget (bottom-right) with LINE / phone as secondary contact options =====
   Launcher .ai-fab = one "ถาม AI" button · panel floats over the page (never pushes content) · LINE / โทร 1537 sit inside it.
   The old shell dock (#dock) is kept in the DOM for page scripts that read it, but hidden: its LINE/contact moved here. */
#dock{display:none!important}

.ai-fab{position:fixed;z-index:72;right:max(16px,env(safe-area-inset-right,0px));bottom:calc(18px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;align-items:center;gap:10px;transition:opacity .3s,transform .45s var(--spring)}
html.ai-open .ai-fab{opacity:0;pointer-events:none;transform:translateY(16px) scale(.9)}
/* main launcher: the emphasised one */
.ai-tab{position:relative;width:72px;height:72px;border:0;border-radius:24px !important;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;
  background:linear-gradient(135deg,#0072F3,#00A2FF);color:#fff;font:700 12.5px/1.1 var(--f);cursor:pointer;box-shadow:0 18px 36px -14px rgba(0,114,243,.75);isolation:isolate;transition:transform .45s var(--spring)}
.ai-tab svg{width:26px;height:26px}
.ai-tab:hover{transform:translateY(-3px) scale(1.04)}
.ai-tab .ai-dot{position:absolute;top:-3px;right:-3px;width:14px;height:14px;border-radius:50% !important;background:#FF6100;box-shadow:0 0 0 3px #fff}

.ai-panel{position:fixed;z-index:73;right:max(16px,env(safe-area-inset-right,0px));bottom:calc(18px + env(safe-area-inset-bottom,0px));width:390px;max-width:calc(100vw - 32px);height:min(640px,calc(100vh - 110px));
  display:flex;flex-direction:column;border-radius:26px !important;overflow:hidden;background:#fff;border:1px solid #E4EEF8;box-shadow:0 34px 80px -30px rgba(0,58,140,.5);
  transform-origin:100% 100%;transform:translateY(16px) scale(.92);opacity:0;visibility:hidden;transition:transform .45s var(--spring),opacity .25s,visibility 0s .45s}
html.ai-open .ai-panel{transform:none;opacity:1;visibility:visible;transition:transform .45s var(--spring),opacity .25s,visibility 0s}
.ai-head{display:flex;align-items:center;gap:12px;padding:14px 14px 14px 18px;background:linear-gradient(135deg,#0072F3,#00A2FF);color:#fff}
.ai-ava{width:40px;height:40px;border-radius:14px !important;background:rgba(255,255,255,.18);display:grid;place-items:center;flex:none}
.ai-ava svg{width:24px;height:24px}
.ai-head b{display:block;font-size:16px}
.ai-head small{font-size:12px;color:#fff;opacity:.9}
.ai-head .ai-x{margin-left:auto;width:38px;height:38px;border-radius:50% !important;border:0;background:rgba(255,255,255,.18);color:#fff;display:grid;place-items:center;cursor:pointer}
.ai-head .ai-x:hover{background:rgba(255,255,255,.3)}
.ai-log{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:10px;background:#E4EEF8;overscroll-behavior:contain}
.ai-msg{max-width:88%;padding:11px 14px;border-radius:18px !important;font-size:15px;line-height:1.6;color:#000;white-space:pre-line;animation:aiIn .35s var(--ease)}
.ai-msg.bot{align-self:flex-start;background:#fff;border:1px solid #E4EEF8;border-bottom-left-radius:6px !important}
.ai-msg.me{align-self:flex-end;background:#008CFF;color:#fff;border-bottom-right-radius:6px !important}
.ai-msg a{color:#008CFF;font-weight:600}
.ai-msg .ai-src{display:block;margin-top:8px;font-size:12px;color:#000;opacity:.7}
@keyframes aiIn{from{transform:translateY(8px);opacity:0}}
.ai-typing{display:inline-flex;gap:4px;padding:14px}
.ai-typing i{width:7px;height:7px;border-radius:50% !important;background:#289FFF;animation:aiDot 1s infinite}
.ai-typing i:nth-child(2){animation-delay:.15s}.ai-typing i:nth-child(3){animation-delay:.3s}
@keyframes aiDot{40%{transform:translateY(-5px);background:#008CFF}}
.ai-chips{display:flex;flex-wrap:wrap;gap:6px;align-self:flex-start;max-width:100%}
.ai-chips button{border:1px solid #289FFF;background:#fff;color:#008CFF;border-radius:999px !important;padding:7px 12px;font:500 13px/1.3 var(--f);cursor:pointer;text-align:left}
.ai-chips button:hover{background:#E4EEF8}
.ai-form{display:flex;gap:8px;padding:12px 12px 8px;border-top:1px solid #E4EEF8;background:#fff}
.ai-form input{flex:1;min-width:0;border:1px solid #E4EEF8;border-radius:999px !important;padding:11px 16px;font:15px var(--f);color:#000;background:#E4EEF8}
.ai-form input:focus{outline:2px solid #008CFF;outline-offset:1px}
.ai-form button{width:46px;height:46px;flex:none;border:0;border-radius:50% !important;background:#008CFF;color:#fff;display:grid;place-items:center;cursor:pointer}
.ai-form button[disabled]{opacity:.45}
/* secondary: talk to a person */
.ai-contact{display:flex;align-items:center;gap:8px;padding:4px 12px 10px;background:#fff;font-size:12.5px}
.ai-contact > span{margin-right:auto;color:#000}
.ai-contact a{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:0 12px;border-radius:999px !important;font-weight:600;text-decoration:none;font-size:12.5px}
.ai-contact .ai-c-line{background:#008CFF;color:#fff}.ai-contact .ai-c-line img{width:16px;height:16px}
.ai-contact .ai-c-call{border:1px solid #E4EEF8;color:#008CFF}.ai-contact .ai-c-call svg{width:14px;height:14px;stroke:#008CFF;fill:none;stroke-width:2.2}
.ai-note{margin:0;padding:0 14px 10px;font-size:11px;color:#000;opacity:.65;background:#fff}

/* phones: launcher = AI only (LINE / call live inside the sheet); panel becomes a bottom sheet */
@media (max-width:620px){
  .ai-fab{right:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px))}
  .ai-tab{width:62px;height:62px;border-radius:22px !important;font-size:11.5px}
  .ai-tab svg{width:22px;height:22px}
  .ai-panel{left:8px;right:8px;bottom:8px;width:auto;max-width:none;height:min(80vh,640px);transform:translateY(calc(100% + 24px))}
}
@media (prefers-reduced-motion:reduce){.ai-panel,.ai-fab,.ai-msg{transition:none!important;animation:none!important}}

/* ===== "ถาม AI" launcher: alive enough to invite a tap (respects reduced motion) ===== */
.ai-tab::before{content:"";position:absolute;inset:-4px;border-radius:28px !important;z-index:-1;background:conic-gradient(from var(--ai-a,0deg),#FF6100,#00A2FF,#008CFF,#FF8100,#FF6100);animation:aiSpin 3s linear infinite;filter:blur(1px)}
.ai-tab::after{content:"";position:absolute;inset:0;border-radius:inherit !important;z-index:-1;background:linear-gradient(135deg,#0072F3,#00A2FF);box-shadow:0 0 0 0 rgba(0,140,255,.55);animation:aiRing 2.4s ease-out infinite}
.ai-tab svg{animation:aiWiggle 4.8s ease-in-out infinite;transform-origin:50% 60%}
.ai-tab .ai-dot{animation:aiDotPulse 1.6s ease-in-out infinite}
@property --ai-a{syntax:"<angle>";inherits:false;initial-value:0deg}
@keyframes aiSpin{to{--ai-a:360deg}}
@keyframes aiRing{0%{box-shadow:0 0 0 0 rgba(0,140,255,.55)}80%,100%{box-shadow:0 0 0 16px rgba(0,140,255,0)}}
@keyframes aiWiggle{0%,82%,100%{transform:rotate(0)}86%{transform:rotate(-14deg) scale(1.15)}90%{transform:rotate(12deg) scale(1.15)}94%{transform:rotate(-6deg)}}
@keyframes aiDotPulse{50%{transform:scale(1.35)}}
.ai-bubble{position:fixed;z-index:72;right:104px;bottom:calc(30px + env(safe-area-inset-bottom,0px));max-width:240px;padding:12px 16px;border-radius:18px 18px 4px 18px !important;background:#fff;border:1px solid #E4EEF8;box-shadow:0 18px 40px -18px rgba(0,114,243,.55);font:500 14px/1.45 var(--f);color:#000;cursor:pointer;
  opacity:0;transform:translateX(16px) scale(.9);transform-origin:100% 100%;pointer-events:none;transition:opacity .35s,transform .5s var(--spring)}
.ai-bubble b{color:#008CFF}
.ai-bubble.show{opacity:1;transform:none;pointer-events:auto}
html.ai-open .ai-bubble{display:none}
@media (max-width:620px){.ai-bubble{right:12px;bottom:calc(160px + env(safe-area-inset-bottom,0px))}}
@media (prefers-reduced-motion:reduce){.ai-tab::before,.ai-tab::after,.ai-tab svg,.ai-tab .ai-dot{animation:none!important}}

/* ===== docked mode: the expand button in the header pins the assistant beside the page (≥1100px) ===== */
.ai-dockbtn{margin-left:auto}
.ai-dockbtn + .ai-x{margin-left:6px!important}
html.ai-dock .ai-dock-arr{transform:rotate(180deg);transform-origin:9px 12px}
@media (max-width:1099px){.ai-dockbtn{display:none}.ai-dockbtn + .ai-x{margin-left:auto!important}}
@media (min-width:1100px){
  html.ai-dock .ai-panel{top:calc(env(safe-area-inset-top,0px) + 86px);bottom:16px;height:auto;width:380px;transform-origin:100% 50%;transform:translateX(calc(100% + 32px))}
  html.ai-dock.ai-open .ai-panel{transform:none}
  html.ai-dock.ai-open body{padding-right:404px;transition:padding .45s var(--ease)}
  html.ai-dock.ai-open .hm-cb-wrap:not(.is-docked){padding-right:16px}
}
/* in-chat sign-up ("สนใจสมัครใช้งาน"): orange call-to-action chip, step counter, answer summary, consent */
.ai-chips button.ai-lead{background:linear-gradient(135deg,#FF6100,#FF6100);border-color:#FF6100;color:#fff;font-weight:700;box-shadow:0 8px 18px -10px rgba(255,97,0,.8)}
.ai-chips button.ai-lead:hover{background:#FF6100}
.ai-chips button.ai-x2{border-color:#E4EEF8;color:#008CFF;font-size:12px;padding:5px 10px}
.ai-chips button.ai-x2:hover{background:#E4EEF8}
.ai-msg .ai-step{display:block;margin-top:6px;font-size:11.5px;color:#008CFF}
.ai-pdpa{display:flex;gap:6px;align-items:flex-start;font-size:12px;line-height:1.45;color:#008CFF}
.ai-pdpa input{margin:2px 0 0;accent-color:#008CFF;flex:none}
.ai-pdpa a{color:#008CFF}
.ai-ok{display:inline-grid;place-items:center;width:22px;height:22px;margin-right:4px;border-radius:50% !important;background:#008CFF;color:#fff;font-size:13px;vertical-align:-4px}
.ai-dim{color:#000000;font-weight:400}
.ai-pdpa.ai-need{outline:2px solid #FF6100;outline-offset:4px;border-radius:6px !important}
.ai-chips button:disabled{opacity:.5;cursor:default}
/* "ลงทะเบียนสำเร็จ" card (same content as the registration success page, without the password) */
.ai-msg.bot.ai-msg-reg{max-width:100%;width:100%;white-space:normal;padding:16px 14px}
.ai-reg{display:grid;gap:8px;justify-items:center;text-align:center;font-size:14px}
.ai-reg-h{font-size:18px;color:#008CFF}
.ai-reg-ic{width:64px;height:64px;border-radius:50% !important;background:#E4EEF8;display:grid;place-items:center;font-size:34px;line-height:1}
.ai-hs{color:#008CFF}.ai-hs i{font-style:normal;color:#FF6100}
.ai-reg-d{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 8px;width:100%;margin:2px 0 0;padding:10px 12px;border:1px solid #E4EEF8;border-radius:12px !important;text-align:left;font-size:13px}
.ai-reg-d dt{color:#008CFF}.ai-reg-d dd{margin:0;font-weight:600;word-break:break-word}
.ai-reg-url{width:100%;padding:8px 10px;border:1px solid #E4EEF8;border-radius:10px !important;font-size:13px;word-break:break-all}
.ai-reg-url a{color:#008CFF;font-weight:600}
.ai-reg small{font-size:11.5px;line-height:1.5;color:#000000}.ai-reg small em{font-style:normal;color:#FF6100}
.ai-reg-go,.ai-reg-ct{display:block;width:100%;padding:10px 12px;border-radius:999px !important;font:700 14px/1.3 var(--f);text-align:center;text-decoration:none;cursor:pointer}
.ai-msg .ai-reg-go{background:#008CFF;color:#fff;border:0;box-shadow:0 10px 20px -12px rgba(0,140,255,.9)}.ai-msg .ai-reg-go:hover{background:#0072F3}   /* CI blue (kit/build maps off-palette colours) */
.ai-reg-ct{background:#fff;color:#008CFF;border:1.5px solid #289FFF}.ai-reg-ct:hover{background:#E4EEF8}.ai-reg-ct:disabled{opacity:.55;cursor:default}
.ai-ct{display:flex;gap:6px;margin-top:8px}
.ai-msg .ai-ct a{flex:1;padding:8px 10px;border-radius:999px !important;text-align:center;font-weight:700;font-size:13px;text-decoration:none}
.ai-msg .ai-ct-tel{border:1.5px solid #289FFF;color:#008CFF}.ai-msg .ai-ct-line{background:#008CFF;color:#fff}

/* ===== override ฝั่งเรา: ผู้ช่วย AI เป็น drawer (desktop) / เต็มหน้า (mobile) ===== */
.ai-tab::after{border-radius:24px!important}
/* วงแสงรอบปุ่ม "ถาม AI": เพิ่มฟ้าสว่าง #2ED1FF คั่นระหว่างส้ม #FF6100 กับฟ้าสด #00A2FF และระหว่างฟ้า #008CFF กับส้มอ่อน #FF8100 (ของ MKT ไม่มีสีนี้) */
.ai-tab::before{background:conic-gradient(from var(--ai-a,0deg),#FF6100,#2ED1FF,#00A2FF,#008CFF,#2ED1FF,#FF8100,#FF6100)!important}
/* มือถือ/แท็บเล็ตเล็ก (≤760px): แถบ "ลองใช้จริง ฟรี 30 วัน" (#start .hm-cb-wrap) วางแถวเดียวกับปุ่ม "ถาม AI" (ชิดซ้ายของปุ่ม) ไม่ลอยอยู่เหนือปุ่ม (มติ ผู้ใช้ 4 พ.ย. 2026)
   ของ MKT ตั้ง bottom:80px เพื่อเว้นที่ให้ dock (LINE/โทร) แต่ทุกหน้าของ MKT ซ่อน dock ไว้เอง (#dock{display:none!important}) → ไม่มีอะไรให้เว้น
   ขนาดปุ่ม AI: ≤620px = 72px (เดิม 62px · ขยายให้ใหญ่สุดในแถว 5 พ.ย. 2026) ชิดขวา 12px ล่าง 12px · 621–760px = 72px ชิดขวา 16px ล่าง 18px
   ใช้ html นำหน้าเพื่อชนะกฎของ MKT (.hm-cb-wrap:not(.is-docked){padding-right:…}) ที่มี specificity สูงกว่า */
@media (max-width:760px){
  html .hm-cb-wrap{bottom:calc(18px + env(safe-area-inset-bottom,0px))}
  html .hm-cb-wrap:not(.is-docked){padding-right:calc(16px + 72px + 10px)}
}
@media (max-width:620px){
  html .hm-cb-wrap{bottom:calc(12px + env(safe-area-inset-bottom,0px))}
  html .hm-cb-wrap:not(.is-docked){padding-right:calc(12px + 62px + 8px)}
}
/* มือถือ (≤620px): แถบลอย "ลองใช้จริง ฟรี 30 วัน" (ข้อความตกเป็น 2 บรรทัด เบียดปุ่ม) แตกเป็น 3 ปุ่มให้เลือก = dock เดิมของ MKT (#dock: LINE แชทกับเรา · ติดต่อเรา · ทดลองใช้ฟรี)
   วางแถวเดียวกับปุ่ม "ถาม AI" ซึ่งใหญ่สุด 72px (มติ ผู้ใช้ 5 พ.ย. 2026) · กฎของ dock + ปุ่ม AI อยู่ใน src/app/globals.css (ไฟล์นี้ถูก generate ซ้ำ)
   ที่นี่แค่ซ่อนแถบตอนลอย (ปุ่มทดลองใช้ฟรีอยู่ใน dock แล้ว) · ตอนลงไปเป็นแถบเต็มจอเหนือ footer (.is-docked) แสดงตามเดิม */
@media (max-width:620px){
  html .hm-cb-wrap:not(.is-docked){opacity:0;visibility:hidden;pointer-events:none}
}
/* bubble ข้อความของปุ่ม "ถาม AI" (.ai-bubble): แถบทดลองใช้ฟรีลงมาอยู่ข้างปุ่มแล้ว → bubble ลงมาติดเหนือปุ่ม (ห่าง 10px) · MKT ตั้ง bottom:160px เพื่อเว้นที่ให้แถบที่เคยอยู่เหนือปุ่ม
   621–760px: ของ MKT วาง bubble ทางซ้ายของปุ่ม (right:104px) ซึ่งตอนนี้ทับแถบทดลองใช้ฟรี → วางเหนือปุ่มแทน · ขนาดปุ่ม AI: 72px ชิดขวา 16px ล่าง 18px (≤620px: 72px · 12px · 12px) */
@media (max-width:760px){
  html .ai-bubble{right:16px;bottom:calc(18px + 72px + 10px + env(safe-area-inset-bottom,0px))}
}
@media (max-width:620px){
  html .ai-bubble{right:12px;bottom:calc(12px + 72px + 10px + env(safe-area-inset-bottom,0px))}
}
/* ลดภาระเครื่อง (ไม่ลดเอฟเฟกต์): section ที่อยู่นอกจอไม่ต้องเรนเดอร์/เล่นแอนิเมชัน
   1) RedesignRuntime ใส่ data-rd-off ให้ section ที่ห่างจอเกิน ~1 หน้าจอ → หยุดแอนิเมชัน CSS ข้างใน (กลับมาเล่นต่อจากจุดเดิมเมื่อเลื่อนใกล้)
   2) content-visibility:auto ข้ามการ layout/paint ของ section ที่ยังไม่ถึง · ไม่ใส่ที่ hero / scene / rail (เลื่อนแบบปักค้าง) / cb-wrap (sticky) */
#rd-root [data-rd-off],#rd-root [data-rd-off] *,#rd-root [data-rd-off] *::before,#rd-root [data-rd-off] *::after{animation-play-state:paused!important}
/* 3) backdrop-filter (blur) เป็นของแพงสุดของ GPU — หน้านี้มี ~127 ชิ้น · ปิดเฉพาะใน section ที่ห่างจอเกิน 1 หน้าจอ (มองไม่เห็นอยู่แล้ว) เลื่อนเข้าใกล้ก็กลับมาก่อนถึงจอ */
#rd-root [data-rd-off],#rd-root [data-rd-off] *{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
/* แถบคุกกี้ (component กลาง · globals.css เป็นแถบเหลี่ยมเต็มความกว้าง) ในหน้านี้ให้โค้งตามดีไซน์ MKT: การ์ดลอย radius 24 · ปุ่มเม็ดยา · กระจกฝ้า
   CSS นี้โหลดเฉพาะหน้าที่เปิดดีไซน์ใหม่ (<link> ถูกถอดเมื่อออกจากหน้า) หน้าอื่นไม่เปลี่ยน */
.cookie-consent-banner{box-sizing:border-box;padding:10px max(16px,env(safe-area-inset-right,0px)) 10px max(16px,env(safe-area-inset-left,0px));
  background:rgba(255,255,255,.86);-webkit-backdrop-filter:blur(18px) saturate(1.4);backdrop-filter:blur(18px) saturate(1.4);
  border:solid #E4EEF8;border-width:1px 0;box-shadow:0 18px 50px -24px rgba(0,58,140,.35);font-family:var(--f)}
.cookie-consent-btns button{border-radius:999px !important;min-height:44px;font-family:var(--f)}
/* แถบเลื่อนของแถวการ์ดฟีเจอร์ (.hm-rail-track): globals.css ของเว็บเรากำหนด ::-webkit-scrollbar สีเทา + ปุ่มลูกศรทั้งเว็บ (ชนะ scrollbar-width:thin ของ MKT)
   → ออกแบบใหม่ตามธีม: ราง = ฟ้าจาง · ตัวเลื่อน = ไล่สีฟ้าแบรนด์ทรงเม็ดยา · ชี้แล้วฟ้าเข้มขึ้นนิดหน่อย · ไม่มีปุ่มลูกศร
   (::-webkit-scrollbar ใช้ได้เมื่อ scrollbar-width/color เป็น auto เท่านั้น → ตั้ง auto ให้ Chrome/Edge · Firefox ใช้ scrollbar-color ด้านล่าง) */
#rd-root .hm-rail-track,#rd-root .hm-tx-rail{scrollbar-width:auto!important;scrollbar-color:auto!important}
#rd-root .hm-rail-track::-webkit-scrollbar{height:12px!important;width:12px!important;display:block!important}
#rd-root .hm-rail-track::-webkit-scrollbar-button{display:none!important;width:0!important;height:0!important}
#rd-root .hm-rail-track::-webkit-scrollbar-track{background:rgba(0,140,255,.10)!important;border-radius:999px!important;margin:0 24px}
#rd-root .hm-rail-track::-webkit-scrollbar-thumb{background:linear-gradient(90deg,#008CFF,#00A2FF)!important;border:3px solid transparent!important;background-clip:padding-box!important;border-radius:999px!important}
#rd-root .hm-rail-track::-webkit-scrollbar-thumb:hover{background:linear-gradient(90deg,#0072F3,#008CFF)!important;background-clip:padding-box!important}
@supports (-moz-appearance:none){#rd-root .hm-rail-track{scrollbar-width:thin!important;scrollbar-color:#008CFF rgba(0,140,255,.10)!important}}
/* ไอคอนในปุ่มกลางวง (.ta-fp ลายนิ้วมือ · .ta-bio · .of-pad): Tailwind preflight ของเว็บเรากำหนด svg{display:block} (ในชุดต้นฉบับ svg เป็น inline จึงถูกจัดกึ่งกลางด้วย text-align:center ของปุ่ม)
   พอเป็น block ไอคอนชิดซ้ายของปุ่ม → จัดกึ่งกลางแนวนอนเอง */
#rd-root :is(.ta-fp,.ta-bio button,.of-pad)>.ta-ic{margin-inline:auto}
/* แถบล่างของกล้องสแกน QR (.ta-cambar.dark): ทำให้เหมือนแอปจริง — แถบเทาไล่สี · ปุ่มแฟลช/รูปภาพเป็นวงกลมเทาเข้มไม่มีขอบ · ไอคอนเทา
   (เดิมไอคอนรับสีดำจากสไตล์อื่นบนพื้นดำ จึงเห็นแค่วงขอบขาวเปล่า ๆ) */
#rd-root .ta-cambar.dark{background:linear-gradient(180deg,#3b3b3d,#58585b)}
#rd-root .ta-cambar.dark span{width:46px;height:46px;border:0;background:rgba(20,20,22,.55);color:#9a9a9e}
#rd-root .ta-cambar.dark .ta-ic{width:22px;height:22px;stroke:currentColor}
/* class .ring ของ MKT (โดนัท "252 คน") ชนกับ utility .ring ของ Tailwind ในเว็บเรา (box-shadow 0 0 0 1px = เส้นขอบดำ) — ในชุดต้นฉบับไม่มี Tailwind จึงไม่มีเส้น */
#rd-root .ring{--tw-ring-shadow:0 0 #0000;--tw-ring-offset-shadow:0 0 #0000;box-shadow:none}
/* ส่วน "ทุกช่องทาง": ข้อความ "เมนู องค์กร › ข้อมูลพนักงาน" ใต้คำอธิบายนอกจอจำลอง — เอาออกตามที่ขอ (breadcrumb ในจอจำลอง .fx-crumb ยังอยู่) */
.fx-path{display:none!important}
/* section .t-plain (หน้าฟีเจอร์: หัวข้อ + ย่อหน้า + รายการข้อ) ซ่อนไว้ก่อนตามที่ขอ — ยังอยู่ใน HTML · ลบบรรทัดนี้เพื่อเอากลับ */
#rd-root .t-plain{display:none!important}

/* ไม่มีปุ่มสลับ "ย่อเป็นหน้าต่างลอย" — ใช้โหมดปักแผง/drawer แบบเดียว (สคริปต์ตั้ง dock เป็นค่าเริ่มต้นเอง) */
.ai-head .ai-dockbtn{display:none!important}
.ai-head .ai-dockbtn + .ai-x,.ai-head .ai-x{margin-left:auto!important}
/* drawer เลื่อนเข้า-ออกเรียบ ๆ ไม่เด้ง (ของ MKT ใช้ --spring) */
.ai-panel{transition:transform .3s ease,opacity .2s ease,visibility 0s .3s}
html.ai-open .ai-panel{transition:transform .3s ease,opacity .2s ease,visibility 0s}
@media (min-width:1100px){
  /* โหมดปักแผง (จำค่าไว้ใน localStorage) เดิมลอยเป็นการ์ดมุมโค้งใต้ header — ทำให้เป็น drawer เต็มสูงเหมือนโหมดปกติ (กว้าง 404px = ช่องที่เว็บเว้นให้) */
  /* ผู้ช่วยปักข้างจอ (เนื้อหาถูกดันซ้าย 404px) → แถบคุกกี้คาดเต็มพื้นที่ที่เหลือ ไม่ลอดใต้ drawer */
  html.ai-dock.ai-open .cookie-consent-banner{right:404px}
  html.ai-dock .ai-panel{top:0;bottom:0;right:0;height:100vh;height:100dvh;width:404px;border-radius:0 !important;border-width:0 0 0 1px;box-shadow:-24px 0 60px -30px rgba(0,58,140,.45)}
}
@media (max-width:620px){
  .ai-panel{inset:0;left:0;right:0;top:0;bottom:0;width:100%;max-width:none;height:100vh;height:100dvh;border-radius:0 !important;border-width:0;box-shadow:none;transform:translateY(100%)}
  .ai-head{padding-top:calc(14px + env(safe-area-inset-top,0px))}
  .ai-note{padding-bottom:calc(10px + env(safe-area-inset-bottom,0px))}
}
/* drawer ของจอใหญ่ — media สุดท้ายของไฟล์ ห้ามมี media ต่อจากนี้ */
@media (min-width:621px){
  .ai-panel{top:0;bottom:0;right:0;height:100vh;height:100dvh;width:420px;max-width:100vw;border-radius:0 !important;border-width:0 0 0 1px;
    transform-origin:100% 50%;transform:translateX(100%);box-shadow:-24px 0 60px -30px rgba(0,58,140,.45)}
  .ai-head{padding-top:calc(14px + env(safe-area-inset-top,0px))}
}
