/* Hướng dẫn từng bước (public/assets/m5-guide.js). Màu theo bước ở biến --m5g (app: đen–trắng–xám). */
.m5g{--m5g:#2563eb;font-family:"Be Vietnam Pro",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;letter-spacing:0;text-transform:none}
.m5g-ring{position:fixed;z-index:2147482000;border:3px solid var(--m5g);border-radius:12px;box-shadow:0 0 0 9999px rgba(10,12,20,.38),0 0 0 6px color-mix(in srgb,var(--m5g) 30%,transparent);pointer-events:none;transition:left .18s,top .18s,width .18s,height .18s}
.m5g-card{position:fixed;z-index:2147482001;box-sizing:border-box;width:min(340px,calc(100vw - 16px));max-height:calc(100vh - 16px);overflow:auto;background:#fff;color:#16181d;border-radius:16px;border:2px solid var(--m5g);box-shadow:0 18px 50px rgba(0,0,0,.28);transition:left .18s,top .18s;outline:none;text-align:start}
.m5g-card:focus,.m5g-card:focus-visible{outline:none!important}
.m5g-h{display:flex;align-items:center;gap:10px;padding:10px 8px 10px 14px;background:var(--m5g);color:#fff}
.m5g-h b{flex:1;min-width:0;font-size:15.5px;line-height:1.35;font-weight:700}
.m5g-num{flex:none;padding:2px 8px;border-radius:999px;background:rgba(255,255,255,.22);font-size:12px;font-weight:700;direction:ltr}
.m5g-x{flex:none;width:36px;height:36px;border:0;border-radius:10px;background:transparent;color:#fff;font-size:24px;line-height:1;cursor:pointer;padding:0;min-height:0}
.m5g-x:hover,.m5g-x:focus-visible{background:rgba(255,255,255,.2)}
.m5g-b{margin:0;padding:12px 14px 4px;font-size:14.5px;line-height:1.55;color:#2b2f38}
.m5g-nav{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:8px 10px 10px 14px}
.m5g-nav button{box-sizing:border-box;min-height:44px;height:auto;margin:0;border-radius:999px;font-family:inherit;font-size:14px;font-weight:600;line-height:1.3;cursor:pointer}
.m5g-off{margin-inline-end:auto!important;border:0;background:transparent;color:#5b606b;padding:0;text-decoration:underline;text-underline-offset:3px;font-weight:500!important;text-align:start}
.m5g-prev{border:1px solid #d7dae0;background:#fff;color:#16181d;padding:6px 14px}
.m5g-next{border:1px solid var(--m5g);background:var(--m5g);color:#fff;padding:6px 20px}
.m5g-prev[hidden]{display:none}
.m5g-nav button:focus-visible,.m5g-btn:focus-visible,.m5g-it:focus-visible{outline:3px solid #111;outline-offset:2px}
.m5g-launch{position:fixed;z-index:2147481000;left:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px))}
.m5g-launch.m5g-docked{position:static;display:flex;justify-content:center;flex:none}
.m5g-btn{box-sizing:border-box;width:38px;height:38px;min-width:38px;min-height:38px;padding:0;margin:0;border-radius:50%;border:2px solid #2563eb;background:#fff;color:#1d4ed8;font-family:inherit;font-size:19px;font-weight:800;line-height:1;cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.16);display:inline-grid;place-items:center}
.m5g-docked .m5g-btn{box-shadow:none}
.m5g-menu{position:fixed;z-index:2147482002;box-sizing:border-box;width:min(280px,calc(100vw - 16px));display:flex;flex-direction:column;padding:6px;background:#fff;color:#16181d;border:1px solid #d7dae0;border-radius:14px;box-shadow:0 14px 40px rgba(0,0,0,.24)}
.m5g-menu[hidden]{display:none}
.m5g-it{min-height:44px;margin:0;padding:6px 12px;border:0;border-radius:10px;background:transparent;color:#16181d;font-family:inherit;font-size:14px;font-weight:500;line-height:1.35;text-align:start;cursor:pointer}
.m5g-it:hover{background:#f2f4f7}
.m5g-toast{position:fixed;z-index:2147482003;left:50%;bottom:calc(84px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);box-sizing:border-box;max-width:min(520px,calc(100vw - 24px));padding:11px 18px;border-radius:14px;background:#16181d;color:#fff;font:600 14px/1.45 "Be Vietnam Pro",system-ui,sans-serif;text-align:center}
html[data-theme="dark"] .m5g-card,html[data-theme="dark"] .m5g-menu{background:#1f2127;color:#ececec}
html[data-theme="dark"] .m5g-b,html[data-theme="dark"] .m5g-it{color:#e3e5ea}
html[data-theme="dark"] .m5g-off{color:#b4b8c2}
html[data-theme="dark"] .m5g-prev{background:#1f2127;color:#ececec;border-color:#454852}
html[data-theme="dark"] .m5g-it:hover{background:#2c2f37}
html.m5-app .m5g-btn,.m5g-mono .m5g-btn{border-color:#212121;color:#212121}
@media (max-width:720px){.m5g-launch{bottom:calc(76px + env(safe-area-inset-bottom,0px))}}
@media (prefers-reduced-motion:reduce){.m5g-ring,.m5g-card{transition:none}}
@media print{.m5g{display:none!important}}
