.mbf{--ink:#18213f;--mut:#4a5675;--soft:#6b7590;--blue:#2f5bd6;--pur:#7a5cf0;--grn:#1f9d63;--gdk:#1f7a4d;--gold:#b7791f;--cta:#0a8a3e;--bg:#f5f8ff;--line:#e3e9f7;--card:#fff}
.mbf{padding:48px 16px}
.mbf-wrap{max-width:1160px;margin:0 auto}
.mbf-eyebrow{margin:0;font-weight:700;color:var(--pur);font-size:15px}
.mbf h2{font-family:'Noto Sans Thai Looped',sans-serif;font-weight:800;font-size:clamp(26px,3.4vw,40px);line-height:1.3;margin:6px 0 24px}
.mbf-box{background:var(--card);border:1px solid var(--line);border-radius:28px;padding:24px;box-shadow:0 24px 60px rgba(40,60,140,.08)}
.mbf-stage{display:flex;flex-wrap:wrap;gap:28px}
.mbf-ph{flex:0 1 330px;min-width:270px;margin:0 auto;background:#1b1d22;border-radius:40px;padding:10px;box-shadow:0 24px 50px rgba(24,33,63,.25)}
.mbf-ph-in{background:#dfe7f3;border-radius:31px;overflow:hidden;height:520px;display:flex;flex-direction:column}
.mbf-ph-top{background:#fff;padding:13px 16px;display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--line)}
.mbf-av{width:32px;height:32px;border-radius:50%;background:linear-gradient(135deg,#6b8cff,#8f6bff);display:inline-flex;align-items:center;justify-content:center}
.mbf-on{margin-left:auto;font-size:12px;color:var(--grn);font-weight:700}
.mbf-chat{flex:1;padding:14px 12px;overflow:hidden;position:relative}
.mbf-ph-bot{background:#fff;padding:10px 14px;display:flex;gap:10px;align-items:center;border-top:1px solid var(--line)}
.mbf-ph-bot span:first-child{flex:1;background:#f1f3f8;border-radius:999px;padding:8px 14px;font-size:13px;color:#8a93a8}
.mbf-send{width:32px;height:32px;border-radius:50%;background:var(--cta);display:inline-flex;align-items:center;justify-content:center}
.mbf-pane{display:flex;flex-direction:column;gap:10px;justify-content:flex-end;height:100%}
.mbf-pane[hidden]{display:none}
.mbf-me{align-self:flex-end;background:#8ee07a;color:#10240c;border-radius:16px 16px 4px 16px;padding:9px 13px;font-size:14px;line-height:1.55;font-weight:500}
.mbf-bot{align-self:flex-start;background:#fff;border-radius:16px 16px 16px 4px;padding:12px;width:88%;font-size:13px;line-height:1.5}
.mbf-bot b.mbf-h{display:block;font-size:14px}
.mbf-bill{align-self:flex-end;background:#fff;border-radius:14px;padding:8px;width:132px;position:relative;overflow:hidden}
.mbf-paper{background:#fffdf6;border:1px solid #efe6cf;border-radius:6px;padding:8px 8px 10px}
.mbf-paper i{display:block;height:4px;background:#e2dac4;border-radius:2px;margin-bottom:4px}
.mbf-paper i:first-child{height:6px;width:60%;background:#c9c1aa;margin:0 auto 6px}
.mbf-paper div{display:flex;justify-content:space-between;font-size:10px;font-weight:700;color:#6b5f40;margin-top:6px}
.mbf-rc{background:#fffdf7;border-radius:4px;padding:9px 9px 11px;font-size:10px;line-height:1.45;color:#3b3427;box-shadow:0 1px 0 #eadfc4,0 6px 14px rgba(60,45,10,.12);transform:rotate(-2deg);font-variant-numeric:tabular-nums;position:relative;
 -webkit-mask:linear-gradient(#000 0 0) top/100% calc(100% - 5px) no-repeat,conic-gradient(from -45deg at bottom,#0000,#000 1deg 89deg,#0000 90deg) bottom/8px 5px repeat-x;mask:linear-gradient(#000 0 0) top/100% calc(100% - 5px) no-repeat,conic-gradient(from -45deg at bottom,#0000,#000 1deg 89deg,#0000 90deg) bottom/8px 5px repeat-x}
.mbf-rc b{display:block;text-align:center;font-size:11px}
.mbf-rc small{display:block;text-align:center;color:#8a7f66;font-size:9px;margin-bottom:4px}
.mbf-rc p{margin:0;display:flex;justify-content:space-between;gap:6px}
.mbf-rc hr{border:0;border-top:1px dashed #cbbf9f;margin:4px 0}
.mbf-rc .mbf-t{font-weight:800;font-size:11px}
.mbf-rc .mbf-hl{position:absolute;left:5px;right:5px;bottom:7px;height:18px;border:2px solid #4f8bff;border-radius:4px;opacity:0}
.mbf .sent{align-self:flex-end;font-size:10px;color:#6b7590;margin-top:-6px}
.mbf-cam{position:absolute;inset:0;background:#101318;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;z-index:2;animation:mbf-camOut 2s ease both;pointer-events:none}
.mbf-cam .mbf-vf{position:relative;padding:18px;transform:rotate(0)}
.mbf-cam .mbf-vf .mbf-rc{width:170px;font-size:12px;transform:rotate(-4deg)}
.mbf-cam .mbf-vf .mbf-rc b{font-size:13px}
.mbf-cam .mbf-vf .mbf-rc .mbf-t{font-size:13px}
.mbf-cam .mbf-vf i{position:absolute;width:22px;height:22px;border:3px solid #fff;animation:mbf-focus .6s ease .2s both}
.mbf-cam .mbf-vf i:nth-child(1){top:0;left:0;border-right:0;border-bottom:0}
.mbf-cam .mbf-vf i:nth-child(2){top:0;right:0;border-left:0;border-bottom:0}
.mbf-cam .mbf-vf i:nth-child(3){bottom:0;left:0;border-right:0;border-top:0}
.mbf-cam .mbf-vf i:nth-child(4){bottom:0;right:0;border-left:0;border-top:0}
.mbf-cam .mbf-sh{width:54px;height:54px;border-radius:50%;border:4px solid #fff;background:#fff;box-shadow:inset 0 0 0 3px #101318;animation:mbf-press .3s ease 1.15s both}
.mbf-cam .mbf-hint{color:#c9d2e6;font-size:12px}
.mbf-flash{position:absolute;inset:0;background:#fff;z-index:3;opacity:0;animation:mbf-flash .45s ease 1.3s both;pointer-events:none}
.mbf-li{display:flex;justify-content:space-between;align-items:center;padding:5px 0;border-top:1px solid #eef1f6}
.mbf-dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:6px}
.mbf-db{flex:999 1 500px;min-width:0;display:flex;flex-direction:column;gap:14px}
.mbf-db-h{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:15px}
.mbf-db-h small{margin-left:auto;font-size:13px;color:var(--soft)}
.mbf-live{width:10px;height:10px;border-radius:50%;background:var(--blue);animation:mbf-pulse 1.6s infinite}
.mbf-db-b{flex:1;background:#f7f9ff;border:1px solid var(--line);border-radius:20px;padding:20px;min-height:400px;position:relative;overflow:hidden}
.mbf-db-b .mbf-pane{justify-content:flex-start}
.mbf-lbl{font-weight:700;color:var(--mut);font-size:14px}
.mbf-ghost{height:54px;border-radius:14px;background:linear-gradient(90deg,#e9eefa 0 40%,#f3f6fd 40%)}
.mbf-wait{align-self:center;margin-top:8px;background:#fff;border:1px dashed #c8d3ef;border-radius:999px;padding:8px 16px;font-size:14px;color:var(--mut)}
.mbf-row{background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px 16px;display:flex;align-items:center;gap:12px}
.mbf-row div{flex:1;min-width:0}
.mbf-row div small{display:block;font-size:13px;color:var(--soft)}
.mbf-pill{flex:none;font-size:12px;font-weight:700;padding:3px 10px;border-radius:999px;background:#e8efff;color:var(--blue)}
.mbf-pill.mbf-inc{background:#e3f6ec;color:var(--gdk)}
.mbf-grid4{display:grid;grid-template-columns:minmax(0,1fr) 60px 60px 66px;align-items:center}
.mbf-ghd{font-size:12px;font-weight:700;color:var(--soft);padding:0 16px}
.mbf-ghd span{text-align:center}
.mbf-grow{background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px 16px}
.mbf-ck{justify-self:center;display:inline-flex;width:26px;height:26px;border-radius:50%;align-items:center;justify-content:center;background:#f1f3f8;color:#b6bdd0;font-weight:800;font-size:14px}
.mbf-ck.mbf-ok{background:var(--grn);color:#fff}
.mbf-stamp{position:absolute;right:24px;bottom:24px;border:3px solid var(--pur);color:var(--pur);border-radius:12px;padding:8px 14px;font-family:'Noto Sans Thai Looped',sans-serif;font-weight:800;font-size:16px;background:rgba(255,255,255,.92);text-align:center;line-height:1.3;transform:rotate(-12deg)}
.mbf-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.mbf-kpi{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px}
.mbf-kpi small{display:block;font-size:13px;color:var(--soft)}
.mbf-kpi b{font-size:clamp(17px,2.2vw,24px);font-variant-numeric:tabular-nums}
.mbf-bars{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px 16px;display:flex;flex-direction:column;gap:10px}
.mbf-bar{display:grid;grid-template-columns:96px minmax(0,1fr) 64px;gap:10px;align-items:center;font-size:13px}
.mbf-bar b{text-align:right}
.mbf-track{height:10px;background:#eef2fb;border-radius:5px}
.mbf-fill{height:10px;border-radius:5px}
.mbf-out{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.mbf-chip{border-radius:10px;padding:8px 12px;font-weight:700;font-size:14px}
.mbf-folder{background:#fff4d6;border:1px solid #f1d98f;border-radius:12px;padding:10px 14px;display:flex;align-items:center;gap:10px;font-size:14px}
.mbf-tick{width:22px;height:22px;border-radius:50%;background:var(--grn);display:inline-flex;align-items:center;justify-content:center}
.mbf-tabs{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;margin-top:22px}
.mbf-tab{font:inherit;color:inherit;cursor:pointer;text-align:left;border-radius:16px;padding:14px 16px;background:#fff;border:1px solid var(--line);outline-offset:3px}
.mbf-tab .mbf-t{display:flex;align-items:center;gap:10px}
.mbf-tab .mbf-n{flex:none;width:34px;height:34px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;font-family:'Noto Sans Thai Looped',sans-serif;font-weight:800;background:#eef2fb;color:var(--c)}
.mbf-tab b{display:block;font-size:16px}
.mbf-tab small{font-size:13px;color:var(--mut)}
.mbf-tab .mbf-pg{display:block;height:4px;background:#eef2fb;border-radius:2px;margin-top:12px;overflow:hidden}
.mbf-tab .mbf-pg i{display:block;height:4px;width:0;background:var(--c)}
.mbf-tab[aria-selected=true]{background:#f6f8ff;border:2px solid var(--c);padding:13px 15px}
.mbf-tab[aria-selected=true] .mbf-n{background:var(--c);color:#fff}
.mbf-tab[aria-selected=true] .mbf-pg i{width:100%}
.mbf.mbf-auto .mbf-tab[aria-selected=true] .mbf-pg i{animation:mbf-prog var(--ms) linear both}
@keyframes mbf-in{from{opacity:0;transform:translateY(14px) scale(.96)}
to{opacity:1;transform:none}
}
@keyframes mbf-inr{from{opacity:0;transform:translateX(18px)}
to{opacity:1;transform:none}
}
@keyframes mbf-fade{from{opacity:0}
to{opacity:1}
}
@keyframes mbf-type{from{clip-path:inset(0 100% 0 0)}
to{clip-path:inset(0 0 0 0)}
}
@keyframes mbf-scan{0%{top:0;opacity:0}
10%,90%{opacity:1}
100%{top:100%;opacity:0}
}
@keyframes mbf-grow{from{width:0}
}
@keyframes mbf-prog{from{width:0}
to{width:100%}
}
@keyframes mbf-pop{0%{opacity:0;transform:scale(.4)}
70%{opacity:1;transform:scale(1.15)}
100%{transform:scale(1)}
}
@keyframes mbf-stamp{0%{opacity:0;transform:rotate(-12deg) scale(2.2)}
60%{opacity:1;transform:rotate(-12deg) scale(.92)}
100%{opacity:1;transform:rotate(-12deg) scale(1)}
}
@keyframes mbf-fly{0%{opacity:0;transform:translate(-50px,26px) scale(.7)}
60%{opacity:1}
100%{opacity:1;transform:none}
}
@keyframes mbf-camOut{0%,78%{opacity:1;visibility:visible}
100%{opacity:0;visibility:hidden}
}
@keyframes mbf-flash{0%{opacity:0}
25%{opacity:.95}
100%{opacity:0}
}
@keyframes mbf-focus{from{opacity:0;transform:scale(1.35)}
to{opacity:1;transform:none}
}
@keyframes mbf-press{50%{transform:scale(.85)}
}
@keyframes mbf-hl{0%,100%{opacity:0}
30%,70%{opacity:1}
}
@keyframes mbf-blip{0%,100%{opacity:0}
15%,80%{opacity:1}
}
@keyframes mbf-pulse{0%,100%{box-shadow:0 0 0 0 rgba(47,91,214,.35)}
50%{box-shadow:0 0 0 8px rgba(47,91,214,0)}
}
.mbf-a-in{animation:mbf-in .5s cubic-bezier(.2,.8,.2,1) both}
.mbf-a-inr{animation:mbf-inr .45s cubic-bezier(.2,.8,.2,1) both}
.mbf-a-fade{animation:mbf-fade .4s ease both}
.mbf-a-type{animation:mbf-type .9s steps(20) both}
.mbf-a-pop{animation:mbf-pop .45s cubic-bezier(.2,.8,.2,1) both}
.mbf-a-stamp{animation:mbf-stamp .55s cubic-bezier(.2,.8,.2,1) both}
.mbf-a-fly{animation:mbf-fly .8s cubic-bezier(.2,.8,.2,1) both}
.mbf-a-grow{animation:mbf-grow 1s cubic-bezier(.2,.8,.2,1) both}
.mbf-d1{animation-delay:.35s}
.mbf-d2{animation-delay:.7s}
.mbf-d3{animation-delay:1.05s}
.mbf-d4{animation-delay:1.4s}
.mbf-d5{animation-delay:1.75s}
.mbf-d6{animation-delay:2.1s}
.mbf-d7{animation-delay:2.45s}
.mbf-scanline{position:absolute;left:0;right:0;height:3px;background:linear-gradient(90deg,transparent,#4f8bff,transparent);box-shadow:0 0 12px #4f8bff;animation:mbf-scan 1.2s ease-in-out .1s 2 both}
.mbf-a-hl{animation:mbf-hl 1.4s ease 1.2s both}
.mbf-a-blip{animation:mbf-blip 1.3s ease 1.9s both}
.mbf.mbf-paused .mbf-pane *{animation-play-state:paused}
@media (max-width:700px){.mbf{padding:24px 12px}
.mbf h2{font-size:24px;margin:4px 0 14px}
.mbf-box{padding:12px;border-radius:20px}
.mbf-stage{gap:12px}
.mbf-ph{zoom:.62;flex:none;min-width:0;width:330px;margin:0 auto}
.mbf-ph-in{height:440px}
.mbf-db{gap:8px}
.mbf-db-h{font-size:13px}
.mbf-db-h small{display:none}
.mbf-db-b{min-height:250px;padding:12px;border-radius:14px}
.mbf-db-b .mbf-pane{gap:8px}
.mbf-lbl{font-size:12px}
.mbf-row{padding:8px 10px;gap:8px;border-radius:10px}
.mbf-row div b{font-size:14px}
.mbf-row div small{font-size:11px}
.mbf-row>b{font-size:14px}
.mbf-pill{font-size:11px;padding:2px 8px}
.mbf-ghost{height:44px;border-radius:10px}
.mbf-wait{font-size:12px;padding:6px 12px}
.mbf-ghd{font-size:11px}
.mbf-grow{padding:9px 10px;border-radius:10px}
.mbf-grow b{font-size:13px}
.mbf-ck{width:22px;height:22px;font-size:12px}
.mbf-grid4{grid-template-columns:minmax(0,1fr) 40px 40px 56px}
.mbf-ghd,.mbf-grow{padding-left:10px;padding-right:10px}
.mbf-stamp{position:static;align-self:flex-end;margin-top:2px;font-size:13px;padding:6px 10px}
.mbf-kpis{gap:6px}
.mbf-kpi{padding:8px 10px;border-radius:10px}
.mbf-kpi small{font-size:11px}
.mbf-kpi b{font-size:16px}
.mbf-bars{padding:10px 12px;gap:7px;border-radius:10px}
.mbf-bar{grid-template-columns:72px minmax(0,1fr) 48px;gap:8px;font-size:12px}
.mbf-out{gap:8px}
.mbf-chip{font-size:12px;padding:6px 9px}
.mbf-folder{font-size:12px;padding:7px 10px;gap:6px}
.mbf-folder svg{width:18px;height:18px}
.mbf-out>svg{display:none}
.mbf-tabs{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:12px}
.mbf-tab{padding:8px 4px;text-align:center;border-radius:12px}
.mbf-tab[aria-selected=true]{padding:7px 3px}
.mbf-tab .mbf-t{flex-direction:column;gap:4px}
.mbf-tab .mbf-n{width:28px;height:28px;border-radius:8px;font-size:14px}
.mbf-tab small{display:none}
.mbf-tab b{font-size:11.5px;line-height:1.3}
.mbf-tab .mbf-pg{margin-top:6px}
}
@media (prefers-reduced-motion:reduce){.mbf *{animation:none!important}
}

/* theme integration */
.mbf{box-sizing:border-box;background:transparent;color:var(--ink);font-family:Sarabun,sans-serif;padding:8px 24px 64px}
.mbf *,.mbf *::before,.mbf *::after{box-sizing:border-box}
.mbf h2{color:var(--ink)}
.mbf .mbf-tab{appearance:none;-webkit-appearance:none;box-shadow:none;text-transform:none;letter-spacing:normal;line-height:1.4;min-height:0;height:auto;width:auto;font-family:Sarabun,sans-serif;font-size:inherit;color:var(--ink)}
.mbf .mbf-tab:hover,.mbf .mbf-tab:focus{background:#f6f8ff;color:var(--ink)}
.mbf .mbf-rc hr{background:none;height:0}
.mbf b{font-weight:700}
@media (max-width:700px){.mbf{padding:0 12px 48px}}
