/* layout: ตัวเล่น "วิดีโอจำลองวิธีใช้งาน" (assets/tour.js สร้าง DOM ทั้งหมดใน <div class="tour" data-tour>) — โหลดต่อจาก lux.css + lux2.css
   โครง: กรอบ .tour → แถบหัว .tr-hd (ชื่อ + ป้าย "ภาพจำลอง · ข้อมูลสมมติ") → จอ .tr-screen (ผืน .tr-canvas ขนาดคงที่ 960×600 หรือ 400×520 บนจอแคบ ย่อ/ขยายด้วย transform)
        → คำบรรยาย .tr-cap → แถบความคืบหน้าแบ่งช่วงตามฉาก .tr-segs → ปุ่มควบคุม .tr-ctl
   ① กรอบ แถบควบคุม คำบรรยาย ใช้ตัวแปรสีของเว็บ = ถูกทั้งธีมมืดและสว่าง
   ② หน้าจอโปรแกรมจำลองใน .tr-canvas ใช้สีตายตัวชุดเดียวกับบล็อก .app ใน lux.css (แถบข้างกรมท่า เนื้อหาสว่าง ฟอนต์ --f-app) เหมือนกันทั้งสองธีม
   ทุกคลาสขึ้นต้น tr- เพื่อไม่ชนกับคลาสของหน้า · เคลื่อนไหวด้วย transform/opacity เท่านั้น · ปิดทั้งหมดเมื่อผู้ใช้ตั้ง "ลดการเคลื่อนไหว" (tour.js เปลี่ยนเป็นภาพนิ่งทีละขั้น) */

/* ───────── ① กรอบตัวเล่น ───────── */
.tour{position:relative;max-width:min(1100px,max(680px,calc((100vh - 346px)*1.6)));margin-inline:auto;padding:10px;border-radius:var(--r-xl,30px);outline:0;color:var(--ink);font-family:var(--f-body);
  background:linear-gradient(180deg,var(--glass-2),var(--glass));border:1px solid var(--line-2);
  box-shadow:var(--shadow),0 0 0 1px var(--gold-line),0 0 120px -40px rgba(37,99,235,.45)}
:root[data-theme="light"] .tour{background:linear-gradient(180deg,#FFFFFF,#EEF2F9);box-shadow:0 60px 120px -60px rgba(11,31,75,.5),0 0 0 1px var(--gold-line)}
.tour:not(.tr-ready){padding:22px 26px}
@media (scripting:enabled){   /* จองที่ไว้ก่อน tour.js สร้างตัวเล่น กันหน้ากระตุก (เบราว์เซอร์ที่ไม่มี JS ไม่เข้ากฎนี้ จึงเห็นรายการสำรองตามปกติ) */
  .tour:not(.tr-ready){padding:10px}
  .tour:not(.tr-ready)::before{content:"";display:block;padding-bottom:calc(62.5% + 239px)}
  @media (max-width:640px){.tour:not(.tr-ready)::before{padding-bottom:calc(130% + 269px)}}
}
.tr-fb{margin:0;padding:0 0 0 22px;display:grid;gap:8px;color:var(--ink-2);font-size:15px;line-height:1.65}
.tr-fb b{color:var(--ink)}
.tr-fb-h{margin:0 0 12px;font:600 15px/1.5 var(--f-display);color:var(--gold)}

.tr-hd{display:flex;align-items:center;gap:10px;padding:3px 8px 10px;font-size:12.5px;color:var(--muted)}
.tr-dots{display:flex;gap:7px;flex:none}
.tr-dots i{width:11px;height:11px;border-radius:50%;background:#FB7185;opacity:.9}
.tr-dots i:nth-child(2){background:#FBBF24}.tr-dots i:nth-child(3){background:#34D399}
.tr-name{flex:1;min-width:0;margin-left:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500;color:var(--ink-2)}
.tr-state{flex:none;font-size:12px;font-weight:600;color:var(--warn);white-space:nowrap}
.tr-state:empty{display:none}
.tr-smp{flex:none;font-size:11.5px;font-weight:600;letter-spacing:.03em;color:var(--gold);border:1px solid var(--gold-line);background:var(--gold-soft);border-radius:999px;padding:2px 11px;white-space:nowrap}

.tr-screen{position:relative;aspect-ratio:16/10;border-radius:20px;overflow:hidden;background:#F5F7FA;box-shadow:inset 0 0 0 1px rgba(0,0,0,.06);isolation:isolate}
.tr-m .tr-screen{aspect-ratio:10/13;max-width:460px;margin-inline:auto;border-radius:16px}
:root[data-theme="light"] .tr-screen{box-shadow:0 0 0 1px rgba(11,31,75,.16),0 22px 44px -30px rgba(11,31,75,.55)}
.tr-canvas{position:absolute;left:0;top:0;width:960px;height:600px;transform-origin:0 0;overflow:hidden;pointer-events:none;-webkit-user-select:none;user-select:none;
  background:#F5F7FA;color:#222;font-family:var(--f-app);font-size:14px;line-height:1.45;letter-spacing:0;text-align:left}
.tr-m .tr-canvas{width:400px;height:520px;font-size:13px}
.tr-nt,.tr-nt *,.tr-nt *::before,.tr-nt *::after{transition:none!important;animation:none!important}
.tr-paused .tr-canvas *{animation-play-state:paused!important}

/* ปุ่มใหญ่กลางจอ: ภาพปก (เล่น) · กดจอเพื่อหยุด/เล่นต่อ */
.tr-hit{position:absolute;inset:0;z-index:4;display:grid;place-content:center;justify-items:center;gap:16px;padding:16px;margin:0;border:0;border-radius:inherit;cursor:pointer;
  background:transparent;color:#EAF0FF;font:inherit;text-align:center;-webkit-tap-highlight-color:transparent;transition:background .3s}
.tr-hit:focus-visible{outline:2px solid var(--gold-2);outline-offset:-4px}
.tr-big{width:92px;height:92px;border-radius:50%;display:grid;place-items:center;color:#0B1F4B;background:linear-gradient(135deg,#FFF3C4 0%,#FDE68A 30%,#D4A537 100%);
  box-shadow:0 24px 60px -18px rgba(0,0,0,.7),0 0 0 10px rgba(253,230,138,.16),inset 0 1px 0 rgba(255,255,255,.7);opacity:0;transform:scale(.8);transition:opacity .25s,transform .3s var(--ease,ease)}
.tr-big svg{width:40px;height:40px;margin-left:5px}
.tr-meta{display:none;max-width:520px}
.tr-meta b{display:block;font:700 clamp(19px,2.6vw,27px)/1.3 var(--f-display);color:#fff;text-wrap:balance}
.tr-meta small{display:block;margin-top:6px;font-size:13.5px;color:rgba(234,240,255,.82)}
.tr-cover .tr-hit{background:linear-gradient(180deg,rgba(7,18,43,.6),rgba(7,18,43,.9))}
.tr-cover .tr-big{opacity:1;transform:none}
.tr-cover .tr-meta{display:block}
.tr-cover .tr-hit:hover .tr-big{transform:scale(1.06)}
.tr-ended .tr-hit{display:none}
.tr-m .tr-big{width:74px;height:74px}.tr-m .tr-big svg{width:32px;height:32px}
.tr-m .tr-meta small{font-size:12.5px}

/* จอจบ */
.tr-end{position:absolute;inset:0;z-index:5;display:grid;place-content:center;justify-items:center;gap:12px;padding:20px;text-align:center;color:#EAF0FF;
  background:radial-gradient(600px 300px at 50% 0%,rgba(212,165,55,.22),transparent 70%),linear-gradient(180deg,rgba(7,18,43,.94),rgba(6,13,31,.98));-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}
.tr-end[hidden]{display:none}
.tr-end b{font:700 clamp(21px,3vw,32px)/1.25 var(--f-display);color:#fff;text-wrap:balance}
.tr-end p{max-width:480px;font-size:15px;line-height:1.65;color:rgba(234,240,255,.82)}
.tr-end .tr-eb{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-top:8px}
.tr-end .btn-gold{background:linear-gradient(135deg,#FFF3C4 0%,#FDE68A 30%,#D4A537 100%);color:#0B1F4B}
.tr-obtn{display:inline-flex;align-items:center;gap:8px;font:600 15px/1 var(--f-display);padding:13px 22px;border-radius:999px;cursor:pointer;color:#EAF0FF;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.28);transition:background .2s,border-color .2s}
.tr-obtn:hover{background:rgba(255,255,255,.16);border-color:rgba(253,230,138,.7)}
.tr-obtn svg{width:17px;height:17px}
.tr-m .tr-end p{font-size:13.5px}.tr-m .tr-end .btn,.tr-m .tr-obtn{padding:12px 18px;font-size:14px}

/* คำบรรยาย */
.tr-cap{padding:14px 10px 4px;min-height:110px}
.tr-step{display:inline-flex;align-items:center;gap:9px;font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--gold)}
.tr-step i{flex:none;min-width:22px;height:22px;padding:0 5px;border-radius:999px;display:grid;place-items:center;font:700 11.5px/1 var(--f-mono);font-style:normal;letter-spacing:0;color:var(--on-gold,#0B1F4B);background:var(--btn-gold,linear-gradient(135deg,#FDE68A,#D4A537))}
.tr-text{margin:7px 0 0;font-size:clamp(15px,1.5vw,17.5px);line-height:1.6;color:var(--ink);text-wrap:pretty;max-width:880px}
.tr-text.tr-ci{animation:tr-cap .4s var(--ease,ease) both}
@keyframes tr-cap{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
.tr-m .tr-cap{min-height:128px;padding-inline:6px}

/* แถบความคืบหน้า (หนึ่งช่วง = หนึ่งฉาก · กว้างตามความยาวฉาก) */
.tr-segs{display:flex;gap:5px;padding:2px 10px 0}
.tr-seg{position:relative;flex:1 1 0;min-width:0;height:28px;padding:0;margin:0;border:0;background:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
.tr-seg::before,.tr-seg i{content:"";position:absolute;left:0;right:0;top:50%;height:6px;margin-top:-3px;border-radius:3px}
.tr-seg::before{background:var(--tint-2);transition:background .2s}
.tr-seg i{background:linear-gradient(90deg,var(--gold-3),var(--gold-2));transform-origin:0 50%;transform:scaleX(0)}
.tr-seg:hover::before{background:var(--line-2)}
.tr-seg.on::before{box-shadow:0 0 0 1px var(--gold-line)}
.tr-seg:focus-visible{outline:2px solid var(--gold-2);outline-offset:0;border-radius:6px}
.tr-m .tr-seg{height:40px}
.tr-m .tr-segs{padding-inline:6px;gap:4px}

/* ปุ่มควบคุม */
.tr-ctl{display:flex;align-items:center;gap:8px;padding:4px 8px 6px;min-height:62px}
.tr-b{flex:none;width:42px;height:42px;display:grid;place-items:center;padding:0;border-radius:50%;cursor:pointer;color:var(--ink);background:var(--tint);border:1px solid var(--line);transition:background .2s,border-color .2s,color .2s;-webkit-tap-highlight-color:transparent}
.tr-b:hover{border-color:var(--gold-line);color:var(--gold);background:var(--tint-2)}
.tr-b svg{width:19px;height:19px}
.tr-b[hidden]{display:none}
.tr-play{width:50px;height:50px;color:var(--on-gold,#0B1F4B);background:var(--btn-gold,linear-gradient(135deg,#FDE68A,#D4A537));border-color:transparent;box-shadow:0 10px 26px -12px rgba(212,165,55,.7),inset 0 1px 0 rgba(255,255,255,.6)}
.tr-play:hover{color:var(--on-gold,#0B1F4B);background:var(--btn-gold,linear-gradient(135deg,#FDE68A,#D4A537));border-color:transparent;box-shadow:0 14px 30px -12px rgba(212,165,55,.9),inset 0 1px 0 rgba(255,255,255,.6)}
.tr-play svg{width:22px;height:22px}
.tr-time{flex:none;margin-left:6px;font:500 13px/1 var(--f-mono);font-variant-numeric:tabular-nums;color:var(--ink-2);white-space:nowrap}
.tr-now{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13.5px;color:var(--muted);padding-left:12px;margin-left:6px;border-left:1px solid var(--line)}
.tr-m .tr-now{display:none}
.tr-m .tr-ctl{gap:6px;padding-inline:4px}
.tr-m .tr-b{width:44px;height:44px}.tr-m .tr-play{width:50px;height:50px}
.tr-m .tr-time{font-size:12.5px;margin-left:2px}
.tr-m .tr-dots{display:none}.tr-m .tr-name{margin-left:0}
.tr-ctl .tr-now+.tr-b{margin-left:auto}

/* เต็มจอ */
.tour:fullscreen{display:flex;flex-direction:column;width:100%;height:100%;max-width:none;border-radius:0;border:0;padding:10px 16px 12px;background:var(--bg-2);box-shadow:none}
.tour:fullscreen .tr-screen{flex:1;min-height:0;aspect-ratio:auto;max-width:none;width:100%;background:transparent;box-shadow:none}
.tour:fullscreen .tr-canvas{border-radius:16px}
.tour:fullscreen .tr-hit,.tour:fullscreen .tr-end{border-radius:16px}
.tour:fullscreen .tr-cap{min-height:104px}
.tour:-webkit-full-screen{display:flex;flex-direction:column;width:100%;height:100%;max-width:none;border-radius:0;border:0;padding:10px 16px 12px;background:var(--bg-2);box-shadow:none}
.tour:-webkit-full-screen .tr-screen{flex:1;min-height:0;aspect-ratio:auto;max-width:none;width:100%;background:transparent;box-shadow:none}

/* ───────── ② หน้าจอโปรแกรมจำลอง (สีตายตัว เหมือนกันทั้งสองธีม) ───────── */
.tr-canvas b{font-weight:700}
.tr-canvas small{font-size:inherit}
.tr-canvas .n,.tr-mono{font-family:var(--f-mono);font-variant-numeric:tabular-nums}
.tr-app{display:grid;grid-template-columns:170px minmax(0,1fr);height:100%}
.tr-sb{background:linear-gradient(180deg,#0B1F4B,#07122B);color:#fff;padding:14px 10px 12px;display:flex;flex-direction:column;gap:3px;min-width:0}
.tr-co{display:flex;align-items:center;gap:9px;padding:2px 6px 12px;border-bottom:1px solid rgba(255,255,255,.1);margin-bottom:8px}
.tr-co i,.tr-mco{flex:none;width:32px;height:32px;border-radius:10px;background:linear-gradient(135deg,#FDE68A,#D4A537);color:#0B1F4B;display:grid;place-items:center;font-weight:800;font-style:normal;font-size:15px}
.tr-co b{display:block;font-size:12.5px;line-height:1.25}
.tr-co small{display:block;font-size:10.5px;opacity:.6;margin-top:1px}
.tr-sb a{display:flex;align-items:center;gap:9px;color:rgba(255,255,255,.72);padding:8px 9px;border-radius:9px;font-size:12.5px;line-height:1.3;text-decoration:none}
.tr-sb a i{flex:none;width:15px;text-align:center;font-style:normal;opacity:.9}
.tr-sb a.on{background:rgba(255,255,255,.12);color:#fff;font-weight:600;box-shadow:inset 3px 0 0 #FDE68A}
.tr-sbai{margin-top:auto;background:linear-gradient(135deg,rgba(124,58,237,.35),rgba(37,99,235,.3));border:1px solid rgba(167,139,250,.35);border-radius:12px;padding:9px 11px;font-size:11px;line-height:1.4;color:#E9E4FF}
.tr-sbai b{display:block;font-size:12px;color:#fff;margin-bottom:1px}
.tr-me{display:flex;align-items:center;gap:8px;padding:10px 4px 0;font-size:11px;color:rgba(255,255,255,.7);line-height:1.3}
.tr-me i{flex:none;width:24px;height:24px;border-radius:50%;background:linear-gradient(135deg,#60A5FA,#7C3AED);display:grid;place-items:center;font-style:normal;font-size:10.5px;font-weight:700;color:#fff}
.tr-main{padding:16px;display:flex;flex-direction:column;gap:12px;min-width:0;min-height:0}
.tr-top{display:flex;align-items:center;gap:10px;min-height:42px}
.tr-mco{display:none}
.tr-ttl{min-width:0}
.tr-ttl small{display:block;color:#666;font-size:11.5px;line-height:1.3}
.tr-ttl b{display:block;font-size:17px;line-height:1.3;color:#1F4E79;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tr-pill{flex:none;margin-left:auto;background:#E8F0FA;color:#1F4E79;border-radius:999px;padding:3px 11px;font-size:11.5px;font-weight:600;white-space:nowrap}
.tr-body{flex:1;min-height:0;display:flex;flex-direction:column;gap:12px}
.tr-body.tr-in{animation:tr-in .45s cubic-bezier(.2,.8,.2,1) both}
@keyframes tr-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.tr-mx{display:none}

.tr-card{position:relative;background:#fff;border:1px solid #E1E5EB;border-radius:12px;padding:13px 14px;min-width:0;box-shadow:0 1px 2px rgba(15,23,42,.04)}
.tr-h{display:flex;align-items:center;gap:8px;margin-bottom:10px;min-height:26px}
.tr-h b{font-size:14px;color:#1F4E79;min-width:0}
.tr-h>:last-child:not(:first-child){margin-left:auto;flex:none}
.tr-2c{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:12px;align-items:start}
.tr-2c.s3{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr)}
.tr-2c.w{grid-template-columns:minmax(0,1.45fr) minmax(0,1fr)}
.tr-col{display:grid;gap:12px;min-width:0}
.tr-rv{opacity:0;transform:translateY(6px);transition:opacity .35s ease,transform .4s cubic-bezier(.2,.8,.2,1)}
.tr-rv.on{opacity:1;transform:none}
.tr-chip{display:inline-flex;align-items:center;gap:4px;font-size:12px;line-height:1.35;font-weight:600;padding:3px 10px;border-radius:999px;background:#EEF1F5;color:#444;border:1px solid #E1E5EB;white-space:nowrap;transition:background .3s,color .3s,border-color .3s}
.tr-chip.ok{background:#E8F5E9;color:#1B7F3A;border-color:#CDEBD3}
.tr-chip.warn{background:#FFF4D6;color:#8A5A00;border-color:#F6E0A8}
.tr-chip.mute{background:#F8FAFC;color:#64748B}
.tr-chip.ai{background:#F3E8FF;color:#6D28D9;border-color:#E3D0FF}
.tr-btn{display:inline-flex;align-items:center;justify-content:center;padding:7px 16px;border-radius:999px;background:#1F4E79;color:#fff;font-weight:600;font-size:13px;line-height:1.3;white-space:nowrap;transition:transform .15s,filter .15s,background .3s,color .3s,box-shadow .3s}
.tr-btn.g{background:#fff;color:#1F4E79;box-shadow:inset 0 0 0 1.5px #CBD5E1}
.tr-btn.wait{background:#FFF4D6;color:#8A5A00;box-shadow:inset 0 0 0 1.5px #F6E0A8}
.tr-btn.fin{background:#E8F5E9;color:#1B7F3A;box-shadow:inset 0 0 0 1.5px #CDEBD3}
.tr-btn.dim{background:#CBD5E1;color:#fff}
.tr-press{transform:scale(.95);filter:brightness(.9)}
.tr-fld{min-width:0;position:relative}
.tr-fld>small{display:block;font-size:11.5px;color:#666;margin-bottom:4px}
.tr-inp{min-height:34px;padding:6px 11px;border:1px solid #D5DBE3;border-radius:8px;background:#fff;font-size:13.5px;color:#222;white-space:nowrap;overflow:hidden;transition:border-color .2s,box-shadow .2s}
.tr-inp.on{border-color:#2E75B6;box-shadow:0 0 0 3px #E8F0FA}
.tr-caret::after{content:"";display:inline-block;width:1.5px;height:1.05em;margin-left:1px;background:#1F4E79;vertical-align:-2px}
.tr-tb{width:100%;border-collapse:separate;border-spacing:0;font-size:13px;border:1px solid #E1E5EB;border-radius:10px;overflow:hidden;background:#fff}
.tr-tb th{font-weight:600;color:#666;text-align:left;padding:7px 9px;background:#F8FAFC;border-bottom:1px solid #E1E5EB;font-size:11.5px;white-space:nowrap}
.tr-tb td{padding:8px 9px;border-bottom:1px solid #EEF1F5;white-space:nowrap;height:36px}
.tr-tb tbody tr:last-child td{border-bottom:0}
.tr-tb tfoot td{font-weight:700;background:#F8FAFC;border-top:1px solid #E1E5EB;border-bottom:0}
.tr-tb .n{text-align:right}
.tr-tb td.cd{font-family:var(--f-mono);color:#666;width:1%}
.tr-tb td.cr{padding-left:22px}
.tr-jv{font-size:12.5px}
.tr-jv th,.tr-jv td{padding-inline:7px}
.tr-jv td.cr{padding-left:18px}
.tr-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-top:10px;font-size:11.5px;color:#64748B}

/* ฉาก 1: ตั้งบริษัท + ตัวช่วยนำเข้า */
.tr-f3{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr);gap:12px}
.tr-wz{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid #E1E5EB;border-radius:10px;overflow:hidden;background:#fff}
.tr-wz>span{font-size:12.5px;line-height:1.35;padding:9px 12px;color:#666;border-left:1px solid #E1E5EB;transition:background .3s,color .3s}
.tr-wz>span:first-child{border-left:0}
.tr-wz>span.on{background:#1F4E79;color:#fff;font-weight:600}
.tr-wz>span.done{color:#1B7F3A;font-weight:600}
.tr-drop{display:flex;align-items:center;gap:10px;min-height:46px;padding:8px 14px;border:1.5px dashed #CBD5E1;border-radius:10px;background:#F8FAFC;color:#64748B;font-size:13px;transition:border-color .3s,background .3s}
.tr-drop.on{border-style:solid;border-color:#CDEBD3;background:#F3FAF4}
.tr-drop.on .tr-dz{display:none}
.tr-file{display:none;align-items:center;gap:8px;font-weight:600;color:#1F4E79}
.tr-drop.on .tr-file{display:inline-flex}
.tr-file small{font-weight:500;color:#64748B;font-size:12px}
.tr-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px;min-height:58px;align-content:flex-start}
.tr-conf{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px;min-height:34px;font-size:12.5px;color:#444}
.tr-pbar{height:5px;border-radius:3px;background:#EEF1F5;overflow:hidden;margin-top:10px}
.tr-pbar i{display:block;height:100%;border-radius:3px;background:linear-gradient(90deg,#5B9BD5,#1F4E79);transform-origin:0 50%;transform:scaleX(0)}
.tr-kv{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.tr-kv div{background:#fff;border:1px solid #E1E5EB;border-radius:12px;padding:11px 14px;min-width:0}
.tr-kv small{display:block;color:#666;font-size:12px}
.tr-kv b{display:block;font-family:var(--f-mono);font-size:24px;line-height:1.3;color:#1F4E79}
.tr-kv b.ok{color:#1B7F3A}

/* ฉาก 2: ใบกำกับภาษี → สมุดรายวัน */
.tr-chain{font-size:11.5px;color:#64748B;white-space:nowrap}
.tr-chain em{font-style:normal;font-weight:600;color:#1F4E79;background:#E8F0FA;border:1px solid #1F4E79;border-radius:999px;padding:1px 8px}
.tr-frow{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:10px;margin-bottom:10px}
.tr-dd{position:absolute;left:0;right:0;top:100%;margin-top:4px;z-index:3;background:#fff;border:1px solid #D5DBE3;border-radius:10px;box-shadow:0 14px 30px -12px rgba(15,23,42,.35);padding:4px;opacity:0;transform:translateY(-4px);transition:opacity .2s,transform .2s}
.tr-dd.on{opacity:1;transform:none}
.tr-dd div{padding:7px 10px;border-radius:7px;background:#E8F0FA;font-size:13px}
.tr-dd small{display:block;font-size:11px;color:#64748B}
.tr-items td{height:38px}
.tr-items td.hl{background:#FFFBEB}
.tr-sum{display:grid;gap:2px;margin:10px 0 0 auto;width:min(100%,300px);font-size:13px}
.tr-sum div{display:flex;justify-content:space-between;gap:12px;padding:3px 2px;color:#444}
.tr-sum b{font-family:var(--f-mono);font-weight:500;color:#222;padding:0 5px;margin-right:-5px;border-radius:5px;transition:background .35s}
.tr-sum b.hl{background:#FFF1C2}
.tr-sum .tot{border-top:1px solid #E1E5EB;margin-top:3px;padding-top:7px;font-weight:700;color:#1F4E79}
.tr-sum .tot b{font-weight:700;font-size:16px;color:#1F4E79}
.tr-act{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:12px}
.tr-empty{padding:16px 10px;text-align:center;color:#94A3B8;font-size:12.5px}

/* ฉาก 3: กระทบยอดธนาคาร + เช็กลิสต์สิ้นเดือน */
.tr-st{border:1px solid #E1E5EB;border-radius:10px;overflow:hidden}
.tr-ln{display:grid;grid-template-columns:52px minmax(0,1fr) auto;gap:3px 10px;align-items:center;padding:8px 12px;border-top:1px solid #EEF1F5;font-size:13px;transition:background .3s}
.tr-ln:first-child{border-top:0}
.tr-ln .d{font:500 12px var(--f-mono);color:#64748B}
.tr-ln .t{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tr-ln b{font-family:var(--f-mono);font-weight:500}
.tr-ln .tr-chip{grid-column:2/4;justify-self:start;font-size:11.5px}
.tr-ln.ok{background:#F6FBF7}
.tr-ln.warn{background:#FFFBEB}
.tr-recon{margin-top:10px;background:#fff;border:1px dashed #CBD5E1;border-radius:10px;padding:9px 12px;font-size:12.5px;color:#444;line-height:1.7}
.tr-recon b{font-family:var(--f-mono);color:#1F4E79}
.tr-recon b.z{display:inline-block;color:#1B7F3A;padding:0 6px;border-radius:6px;transition:background .3s,transform .3s cubic-bezier(.2,1.6,.4,1)}
.tr-recon b.z.on{background:#E8F5E9;transform:scale(1.12)}
.tr-ck{list-style:none;margin:0;padding:0;border:1px solid #E1E5EB;border-radius:10px;overflow:hidden}
.tr-ck li{display:grid;grid-template-columns:18px minmax(0,1fr) auto;gap:9px;align-items:center;padding:9px 11px;border-top:1px solid #EEF1F5;font-size:12.5px;line-height:1.35;transition:background .3s}
.tr-ck li:first-child{border-top:0}
.tr-ck li.nx{background:#E8F0FA}
.tr-box{width:16px;height:16px;border:1.5px solid #CBD5E1;border-radius:4px;display:grid;place-items:center;background:#fff;transition:background .2s,border-color .2s}
.tr-box::after{content:"";width:8px;height:4px;border-left:2px solid #fff;border-bottom:2px solid #fff;transform:rotate(-45deg) translate(1px,-1px) scale(0);transition:transform .25s cubic-bezier(.2,1.6,.4,1)}
.tr-box.on{background:#1B7F3A;border-color:#1B7F3A}
.tr-box.on::after{transform:rotate(-45deg) translate(1px,-1px) scale(1)}
.tr-ck .r{font:500 11.5px var(--f-mono);color:#64748B;white-space:nowrap}
.tr-ck .r.ok{color:#1B7F3A;font-weight:700}
.tr-ck .r.warn{color:#8A5A00;font-weight:700}

/* ฉาก 4: ศูนย์ยื่นภาษี */
.tr-tfh{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.tr-form{font-size:25px;font-weight:700;color:#1F4E79;line-height:1.1}
.tr-form small{display:block;font-size:12.5px;color:#666;font-weight:500;margin-top:4px}
.tr-amt{text-align:right}
.tr-amt small{display:block;font-size:11.5px;color:#666}
.tr-amt b{font:700 23px/1.25 var(--f-mono);color:#1F4E79}
.tr-calc{display:flex;flex-wrap:wrap;gap:4px 14px;margin-top:10px;padding:8px 11px;border-radius:8px;background:#F8FAFC;border:1px solid #EEF1F5;font-size:12.5px;color:#444}
.tr-calc b{font-family:var(--f-mono);color:#1F4E79;margin-left:4px}
.tr-due{margin:10px 0 0;padding:7px 11px;border-radius:8px;background:#FFF4D6;color:#8A5A00;font-size:12.5px;font-weight:600;border-left:3px solid #D97706}
.tr-rail{list-style:none;margin:16px 0 12px;padding:0;display:grid;grid-template-columns:repeat(5,1fr);gap:4px;counter-reset:r}
.tr-rail li{position:relative;padding-top:31px;font-size:12px;line-height:1.3;color:#64748B;text-align:center;transition:color .3s}
.tr-rail li::before{counter-increment:r;content:counter(r);position:absolute;top:0;left:50%;margin-left:-12px;width:24px;height:24px;border:1.5px solid #CBD5E1;border-radius:50%;font:600 12px/21px var(--f-mono);background:#fff;color:#64748B;z-index:1;box-sizing:border-box;transition:background .3s,border-color .3s,color .3s,box-shadow .3s}
.tr-rail li::after{content:"";position:absolute;top:11px;left:calc(-50% + 14px);right:calc(50% + 14px);height:2px;background:#E1E5EB;transition:background .3s}
.tr-rail li:first-child::after{display:none}
.tr-rail li.done{color:#1B7F3A}
.tr-rail li.done::before{background:#1B7F3A;border-color:#1B7F3A;color:#fff}
.tr-rail li.done::after,.tr-rail li.now::after{background:#1B7F3A}
.tr-rail li.now{color:#1F4E79;font-weight:700}
.tr-rail li.now::before{border-color:#1F4E79;color:#1F4E79;box-shadow:0 0 0 4px #E8F0FA}
.tr-rail li.you.now{color:#8A5A00}
.tr-rail li.you.now::before{border-color:#D97706;color:#8A5A00;box-shadow:0 0 0 4px #FFF4D6}
.tr-nxb{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #E1E5EB;padding-top:11px;font-size:12.5px;color:#444;min-height:46px}
.tr-nxb>span:first-child{min-width:0}
.tr-stamp{position:relative;flex:none;align-self:center;width:126px;margin:-3px auto;padding:4px 6px 5px;border:3px solid #1B7F3A;border-radius:10px;color:#1B7F3A;font-weight:800;font-size:20px;line-height:1.15;text-align:center;white-space:nowrap;
  background:rgba(255,255,255,.9);box-shadow:inset 0 0 0 2px #fff,inset 0 0 0 3px rgba(27,127,58,.45);opacity:0;transform:rotate(-8deg) scale(2.2);transition:opacity .18s ease-in,transform .36s cubic-bezier(.2,1.5,.4,1);z-index:2}
.tr-stamp small{display:block;font:600 9px/1.5 var(--f-mono);letter-spacing:0}
.tr-stamp.on{opacity:1;transform:rotate(-8deg) scale(1)}
.tr-list{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.tr-list li{display:flex;align-items:center;gap:8px;padding:7px 10px;border:1px solid #EEF1F5;border-radius:9px;font-size:12.5px;background:#fff}
.tr-list li.cur{border-color:#1F4E79;background:#F4F8FD}
.tr-list li b{color:#1F4E79;white-space:nowrap}
.tr-list li small{color:#64748B;font-size:11.5px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tr-list li .tr-chip{margin-left:auto;font-size:11px;padding:2px 8px;flex:none}

/* ฉาก 5: ตรวจซ้ำหลังยื่น */
.tr-lbl td:first-child b{font-family:var(--f-mono);color:#1F4E79;margin-right:7px}
.tr-lbl td{transition:background .3s}
.tr-lbl tr.df td{background:#FEF2F2}
.tr-lbl td.dv{color:#B42318;font-weight:700}
.tr-lbl td.eq{color:#94A3B8}
.tr-verd{display:flex;gap:12px;align-items:center;margin-top:10px;padding:9px 12px;border-radius:10px;border:1px solid #F7C9C9;background:#fff;font-size:12.5px;color:#444;line-height:1.5}
.tr-verd .s{flex:none;font-weight:800;font-size:12.5px;color:#B42318;border:2px solid #B42318;padding:3px 9px;border-radius:6px;transform:rotate(-3deg);white-space:nowrap}
.tr-verd b{font-family:var(--f-mono);color:#1F4E79}
.tr-ai{border-color:#E3D0FF;background:linear-gradient(180deg,#FBF8FF,#fff)}
.tr-ai .tr-h b{color:#6D28D9}
.tr-ait{min-height:92px;font-size:13px;line-height:1.6;color:#333;border-left:2px solid #A78BFA;padding-left:10px}
.tr-doc{border-color:#F6E0A8}
.tr-doc .tr-h b{font-size:13.5px}
.tr-dl{display:grid;gap:2px;font-size:12.5px;color:#444}
.tr-dl div{display:flex;justify-content:space-between;gap:10px}
.tr-dl b{font-family:var(--f-mono);font-weight:500;color:#222}
.tr-dl .tot{border-top:1px solid #E1E5EB;margin-top:3px;padding-top:5px;font-weight:700;color:#1F4E79}
.tr-dl .tot b{font-weight:700;color:#1F4E79}
.tr-dec{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px;padding:8px 10px;border-radius:9px;background:#F8FAFC;font-size:12px;color:#444;transition:background .3s,box-shadow .3s}
.tr-dec.on{background:#FFFBEB;box-shadow:inset 0 0 0 1.5px #F6E0A8}
.tr-dec>span:first-child{flex:1 1 100%;font-weight:600}
.tr-dec .tr-btn{padding:5px 13px;font-size:12px}

/* ฉาก 6: ภาพรวม */
.tr-s6{flex:1;display:flex;flex-direction:column;justify-content:center;padding-bottom:34px}
.tr-flow{display:grid;grid-template-columns:minmax(0,1fr) 26px minmax(0,1fr) 26px minmax(0,1fr) 26px minmax(0,1fr);align-items:stretch}
.tr-node{background:#fff;border:1px solid #E1E5EB;border-radius:12px;padding:12px 10px;min-width:0;box-shadow:0 10px 24px -18px rgba(15,23,42,.35)}
.tr-node>small{display:block;font-size:11px;font-weight:600;letter-spacing:.06em;color:#64748B}
.tr-node>b{display:block;font-size:14px;color:#1F4E79;margin:2px 0 8px;line-height:1.3}
.tr-node p{margin:0;display:flex;justify-content:space-between;gap:6px;font-size:11.5px;color:#444;line-height:1.75;white-space:nowrap}
.tr-node p span{font-family:var(--f-mono);font-size:11px;color:#222}
.tr-node.gold{border-color:#E7C76B;background:linear-gradient(180deg,#FFFBEB,#fff)}
.tr-arr{position:relative;align-self:center;height:2px;margin:0 4px 0 3px;background:#1F4E79;border-radius:1px;transform-origin:0 50%;transform:scaleX(0);transition:transform .45s cubic-bezier(.2,.8,.2,1)}
.tr-arr::after{content:"";position:absolute;right:-2px;top:-4px;border-left:7px solid #1F4E79;border-top:5px solid transparent;border-bottom:5px solid transparent}
.tr-arr.on{transform:none}
.tr-tag{margin:38px auto 0;max-width:620px;text-align:center}
.tr-tag b{display:block;font-size:25px;line-height:1.3;color:#1F4E79}
.tr-tag span{display:block;margin-top:8px;font-size:13.5px;color:#444}
.tr-tags{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:14px}

/* ฉากขายหน้าร้าน (อยู่ก่อนภาพรวม): บิล + แบ่งจ่าย 4 ช่องทาง → สมุดรายวันเดบิตแยกตามช่องทาง → ผลที่ตามมา 3 ป้าย · สีประจำช่องทาง --pc / พื้น --pb */
.tr-2c.tr-pos{grid-template-columns:minmax(0,1fr) minmax(0,1.08fr)}
.tr-pos-c1{--pc:#C28A0E;--pb:#FFF7DB}
.tr-pos-c2{--pc:#1B7F3A;--pb:#E8F5E9}
.tr-pos-c3{--pc:#2E75B6;--pb:#E8F0FA}
.tr-pos-c4{--pc:#7C3AED;--pb:#F3E8FF}
.tr-pos-tot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px;padding:7px 12px;border-radius:10px;background:#F4F8FD;border:1px solid #DCE7F5;font-size:13.5px;font-weight:700;color:#1F4E79;line-height:1.35}
.tr-pos-tot small{display:block;font-size:11.5px;font-weight:500;color:#64748B;white-space:nowrap}
.tr-pos-tot b{font:700 21px/1.2 var(--f-mono);font-variant-numeric:tabular-nums;white-space:nowrap}
.tr-pos-lb{margin:12px 0 7px;font-size:12px;color:#666;white-space:nowrap}
.tr-pos-pay{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.tr-pos-ch{display:flex;align-items:center;gap:8px;min-height:38px;padding:6px 11px;border:1.5px dashed #CBD5E1;border-radius:10px;background:#F8FAFC;color:#64748B;font-size:13px;line-height:1.3;white-space:nowrap;
  transition:transform .15s,filter .15s,background .3s,border-color .3s,color .3s,box-shadow .3s}
.tr-pos-ch i{flex:none;width:9px;height:9px;border-radius:50%;background:var(--pc);opacity:.4;transition:opacity .3s}
.tr-pos-ch b{margin-left:auto;font:600 13.5px/1.3 var(--f-mono);font-variant-numeric:tabular-nums;color:#1F2937;opacity:0;transform:translateX(6px);transition:opacity .3s,transform .35s cubic-bezier(.2,.8,.2,1)}
.tr-pos-ch.on{border-style:solid;border-color:var(--pc);background:var(--pb);color:#222;font-weight:600}
.tr-pos-ch.on i{opacity:1}
.tr-pos-ch.on b{opacity:1;transform:none}
.tr-pos-ch.lk{box-shadow:0 0 0 2.5px #fff,0 0 0 4.5px var(--pc)}
.tr-pos-rem b{font:600 13.5px/1.3 var(--f-mono);font-variant-numeric:tabular-nums;color:#B45309;padding:1px 6px;border-radius:6px;background:#FFF4D6;transition:background .3s,color .3s}
.tr-pos-rem.ok b{color:#1B7F3A;background:#E8F5E9}
.tr-pos-jv td{height:38px}
.tr-pos-d{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--pc);margin-right:7px;vertical-align:1px}
.tr-pos-fx{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.tr-pos-fx>div{display:flex;align-items:center;gap:10px;min-width:0;padding:9px 12px;border-radius:12px;background:#fff;border:1px solid var(--fb,#E1E5EB);box-shadow:0 10px 22px -18px rgba(15,23,42,.4)}
.tr-pos-fx svg{flex:none;width:32px;height:32px;padding:7px;border-radius:10px;background:var(--fg,#EEF1F5);color:var(--fc,#1F4E79)}
.tr-pos-fx span{min-width:0}
.tr-pos-fx small{display:block;font-size:11px;line-height:1.35;color:#64748B;white-space:nowrap}
.tr-pos-fx b{display:block;font-size:13.5px;line-height:1.35;color:#1F4E79;white-space:nowrap}
.tr-pos-f1{--fb:#CFE0F3;--fg:#E8F0FA;--fc:#1F4E79}
.tr-pos-f2{--fb:#F0DFA6;--fg:#FFF4D6;--fc:#A16207}
.tr-pos-f3{--fb:#CDEBD3;--fg:#E8F5E9;--fc:#1B7F3A}

/* เคอร์เซอร์จำลอง */
.tr-cur{position:absolute;left:0;top:0;width:26px;height:26px;z-index:9;will-change:transform;filter:drop-shadow(0 3px 5px rgba(15,23,42,.35))}
.tr-cur svg{width:26px;height:26px;display:block}
.tr-cur i{position:absolute;left:-13px;top:-15px;width:36px;height:36px;border-radius:50%;border:2px solid #D4A537;background:rgba(253,230,138,.35);opacity:0;transform:scale(.3)}
.tr-cur.clk i{animation:tr-rip .5s ease-out}
@keyframes tr-rip{0%{opacity:.95;transform:scale(.3)}100%{opacity:0;transform:scale(1.25)}}
.tr-still .tr-cur{display:none}

/* ── ผืนจอแคบ (400×520): ไม่มีแถบข้าง · คอลัมน์เดียว · บางฉากแบ่งเป็นสองช่วง (.ph2) ── */
.tr-m .tr-app{grid-template-columns:minmax(0,1fr)}
.tr-m .tr-sb,.tr-m .tr-dx{display:none}
.tr-m .tr-mx{display:revert}
.tr-m .tr-main{padding:0;gap:0}
.tr-m .tr-top{background:linear-gradient(90deg,#0B1F4B,#07122B);padding:8px 12px;min-height:48px}
.tr-m .tr-mco{display:grid;width:30px;height:30px;border-radius:9px;font-size:14px}
.tr-m .tr-ttl small{color:rgba(255,255,255,.62);font-size:10.5px}
.tr-m .tr-ttl b{color:#fff;font-size:14px}
.tr-m .tr-pill{background:rgba(255,255,255,.12);color:#FDE68A;font-size:10.5px;padding:2px 9px}
.tr-m .tr-body{padding:10px 12px 12px;gap:9px}
.tr-m .tr-card{padding:10px 11px}
.tr-m .tr-2c{grid-template-columns:minmax(0,1fr);gap:9px}
.tr-m .tr-col{gap:9px}
.tr-m .tr-body:not(.ph2) .tr-p2,.tr-m .tr-body.ph2 .tr-p1{display:none}
.tr-m .tr-body.ph2a .tr-p2{animation:tr-in .4s cubic-bezier(.2,.8,.2,1) both}
.tr-m .tr-h{margin-bottom:8px}
.tr-m .tr-f3{grid-template-columns:minmax(0,1fr)}
.tr-m .tr-wz>span{font-size:11.5px;padding:8px 8px}
.tr-m .tr-drop{min-height:40px;padding:6px 11px;font-size:12.5px}
.tr-m .tr-chips{gap:5px;margin-top:9px;min-height:0}
.tr-m .tr-chip{font-size:11.5px;padding:2px 9px}
.tr-m .tr-conf{font-size:12px;margin-top:9px}
.tr-m .tr-kv{gap:8px}
.tr-m .tr-kv div{padding:8px 10px}
.tr-m .tr-kv small{font-size:10.5px;line-height:1.3}
.tr-m .tr-kv b{font-size:18px}
.tr-m .tr-tb{font-size:12.5px}
.tr-m .tr-tb th{padding:6px 8px;font-size:11px}
.tr-m .tr-tb td{padding:6px 8px;height:33px}
.tr-m .tr-tb td.cr{padding-left:18px}
.tr-m .tr-frow{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:8px;margin-bottom:9px}
.tr-m .tr-sum{width:100%}
.tr-m .tr-ln{padding:7px 10px;font-size:12.5px;grid-template-columns:50px minmax(0,1fr) auto;gap:3px 8px}
.tr-m .tr-recon{font-size:12px;padding:8px 10px}
.tr-m .tr-ck li{padding:9px 10px}
.tr-m .tr-form{font-size:22px}
.tr-m .tr-amt b{font-size:20px}
.tr-m .tr-rail li{font-size:11px}
.tr-m .tr-nxb{font-size:12px}
.tr-m .tr-stamp{width:118px;font-size:18px}
.tr-m .tr-stamp small{font-size:8.5px}
.tr-m .tr-rail{margin:12px 0 8px}
.tr-m .tr-nxb{min-height:38px;padding-top:8px}
.tr-m .tr-jv td{height:30px;padding-block:5px}
.tr-m .tr-dec>span:first-child{flex:1 1 auto}
.tr-m .tr-dec{margin-top:8px;padding:7px 9px}
.tr-m .tr-body.ph3 .tr-p3x{display:none}
.tr-m .tr-re{display:none}
.tr-m .tr-fs{margin-left:auto}
.tr-m .tr-act{margin-top:8px}
.tr-m .tr-foot{margin-top:7px;gap:3px 8px}
.tr-m .tr-ln .d{white-space:nowrap}
.tr-m .tr-lbl td:first-child b{margin-right:4px}
.tr-m .tr-lbl{font-size:11.5px}
.tr-m .tr-lbl th,.tr-m .tr-lbl td{padding-inline:6px}
.tr-m .tr-verd{font-size:12px;gap:9px;padding:8px 10px}
.tr-m .tr-ait{min-height:62px;font-size:12.5px}
.tr-m .tr-flow{grid-template-columns:minmax(0,1fr)}
.tr-m .tr-s6{padding-bottom:0}
.tr-m .tr-node{padding:8px 11px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:0 10px;align-items:center}
.tr-m .tr-node>b{margin:0;font-size:13px}
.tr-m .tr-node>small{grid-column:1}
.tr-m .tr-node>b{grid-column:1}
.tr-m .tr-node>div{grid-column:2;grid-row:1/3}
.tr-m .tr-node p{font-size:11.5px;line-height:1.55}
.tr-m .tr-arr{justify-self:center;width:2px;height:14px;margin:3px 0;transform-origin:50% 0;transform:scaleY(0)}
.tr-m .tr-arr.on{transform:none}
.tr-m .tr-arr::after{right:auto;left:-4px;top:auto;bottom:-3px;border-left:5px solid transparent;border-right:5px solid transparent;border-top:7px solid #1F4E79;border-bottom:0}
.tr-m .tr-tag{margin-top:12px}
.tr-m .tr-tag b{font-size:17px}
.tr-m .tr-tag span{font-size:12px;margin-top:5px}
.tr-m .tr-tags{margin-top:9px;gap:6px}
.tr-m .tr-2c.tr-pos{grid-template-columns:minmax(0,1fr)}
.tr-m .tr-pos-tot{margin-top:9px;padding:6px 10px;font-size:13px}
.tr-m .tr-pos-tot small{font-size:11px}
.tr-m .tr-pos-tot b{font-size:19px}
.tr-m .tr-pos-lb{margin:9px 0 6px;font-size:11.5px}
.tr-m .tr-pos-pay{gap:6px}
.tr-m .tr-pos-ch{min-height:34px;padding:5px 10px;font-size:12.5px}
.tr-m .tr-pos-ch b{font-size:13px}
.tr-m .tr-body.ph2 .tr-pos-pay{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
.tr-m .tr-body.ph2 .tr-pos-ch{display:grid;grid-template-columns:auto minmax(0,1fr);gap:0 5px;min-height:0;padding:4px 8px;font-size:11.5px}
.tr-m .tr-body.ph2 .tr-pos-ch b{grid-column:1/3;margin:0;font-size:12px}
.tr-m .tr-pos-jv td{height:27px;padding-block:3px}
.tr-m .tr-pos-fx{gap:6px}
.tr-m .tr-pos-fx>div{flex-direction:column;gap:2px;padding:5px 4px 4px;border-radius:10px;text-align:center}
.tr-m .tr-pos-fx svg{width:22px;height:22px;padding:4px;border-radius:7px}
.tr-m .tr-pos-fx small{display:none}
.tr-m .tr-pos-fx b{font-size:11.5px;line-height:1.3}
@media (max-width:359px){   /* จอแคบมาก (320): ย่อปุ่มและตัวนับเวลาให้แถวควบคุมไม่ล้นกรอบ (เดิมปุ่มเต็มจอล้นจอ 6px) · ปุ่มยังสูง ≥ 40px */
  .tr-m .tr-ctl{gap:3px;padding-inline:0}
  .tr-m .tr-b{width:40px;height:40px}
  .tr-m .tr-play{width:46px;height:46px}
  .tr-m .tr-time{font-size:11px;margin-left:1px;letter-spacing:-.02em}
}

@media (prefers-reduced-motion:reduce){
  .tour *,.tour *::before,.tour *::after{transition:none!important;animation:none!important}
}
@media print{.tr-hit,.tr-segs,.tr-ctl{display:none}}
