

@import url('/static/surface-tokens.css');


.mm-lv {
position: fixed; left: auto; top: auto; right: 12px; bottom: 120px; z-index: 1500;
width: 64px; height: 64px; padding: 0; display: grid; place-items: center;
border: 1px solid var(--mm-line); border-radius: var(--mm-r-pill);
background: var(--mm-panel); color: var(--mm-text); box-shadow: var(--mm-out-sm);
cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
-webkit-tap-highlight-color: transparent; font-family: var(--mm-font);
transition: box-shadow .16s, transform .16s;
}
:root[data-theme="light"] .mm-lv { border: 0; }
.mm-lv[hidden] { display: none; }
.mm-lv.mm-lv-muot { transition: left .22s cubic-bezier(.2, .8, .2, 1), top .22s cubic-bezier(.2, .8, .2, 1), box-shadow .16s, transform .16s; }
@media (hover: hover) { .mm-lv:hover { box-shadow: var(--mm-out); } }
.mm-lv:active { box-shadow: var(--mm-in-sm); }
.mm-lv[data-keo] { cursor: grabbing; box-shadow: var(--mm-out); transform: scale(1.06); }
.mm-lv:focus-visible { outline: 2px solid var(--mm-link); outline-offset: 3px; }
.mm-lv[aria-expanded="true"] { box-shadow: var(--mm-in-sm); }
.mm-lv-ic { display: grid; place-items: center; color: var(--mm-link); pointer-events: none; }
.mm-lv-ic svg { width: 24px; height: 24px; }
.mm-lv.mm-has-pet > .mm-lv-ic { visibility: hidden; }


.mm-lv .pet.pet-docked { position: absolute; inset: 0 !important; width: 100%; height: 100%; transform: none; pointer-events: none; z-index: auto; }
.mm-lv .pet.pet-docked .pet-body { display: block; width: 100%; height: 100%; transform: none; pointer-events: none; }
.mm-lv .pet.pet-docked svg { width: 100%; height: 100%; overflow: visible; }
.mm-lv .pet.pet-docked .pet-menu { display: none; }


.mm-lv-nen { position: fixed; inset: 0; z-index: 1505; background: var(--mm-scrim); }
.mm-lv-nen[hidden] { display: none; }
.mm-lv-menu, .mm-lv-sua {
position: fixed; z-index: 1510; box-sizing: border-box; font-family: var(--mm-font);
color: var(--mm-text); font-size: var(--mm-fs-14); line-height: 1.45;
background: var(--mm-panel); border: 1px solid var(--mm-line); border-radius: var(--mm-r-card);
box-shadow: var(--mm-out);
}
:root[data-theme="light"] :is(.mm-lv-menu, .mm-lv-sua) { border: 0; }
.mm-lv-menu[hidden], .mm-lv-sua[hidden] { display: none; }
.mm-lv-menu { width: min(340px, calc(100vw - 24px)); max-height: min(520px, calc(100vh - 24px)); overflow: auto; padding: var(--mm-sp-4); animation: mm-lv-vao .18s cubic-bezier(.2, .8, .2, 1); }
.mm-lv-dau { display: flex; align-items: center; gap: var(--mm-sp-2); margin-bottom: var(--mm-sp-3); }
.mm-lv-dau h2 { flex: 1; margin: 0; font-size: var(--mm-fs-16); font-weight: 600; }
.mm-lv-luoi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--mm-sp-2); }
.mm-lv-o {
display: grid; justify-items: center; align-content: start; gap: var(--mm-sp-1); min-height: 84px;
padding: var(--mm-sp-3) var(--mm-sp-1); border: 1px solid var(--mm-line); border-radius: var(--mm-r-btn);
background: var(--mm-panel); color: var(--mm-text); box-shadow: var(--mm-out-xs);
font: 500 var(--mm-fs-12) var(--mm-font); cursor: pointer; text-align: center;
transition: box-shadow .16s, color .16s;
}
:root[data-theme="light"] .mm-lv-o { border: 0; }
@media (hover: hover) { .mm-lv-o:hover { color: var(--mm-link); box-shadow: var(--mm-out-sm); } }
.mm-lv-o:active { box-shadow: var(--mm-in-sm); }
.mm-lv-o:focus-visible, .mm-lv-menu :focus-visible, .mm-lv-sua :focus-visible { outline: 2px solid var(--mm-link); outline-offset: 3px; }
.mm-lv-o-ten { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; line-height: 1.3; }
.mm-lv-o-ic {
position: relative; display: grid; place-items: center; flex: none; width: 36px; height: 36px;
border-radius: var(--mm-r-btn); background: var(--mm-wash); color: var(--mm-link);
}
.mm-lv-o-ic svg { width: 20px; height: 20px; }
.mm-lv-o-ic .agent-avatar { --avatar-size: 30px; }
.mm-lv-o.khoa { color: var(--mm-muted); }
.mm-lv-o-khoa { position: absolute; right: -4px; bottom: -4px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: var(--mm-r-pill); background: var(--mm-panel); color: var(--mm-warn); box-shadow: var(--mm-out-xs); }
.mm-lv-o-khoa svg { width: 12px; height: 12px; }
.mm-lv-trong { margin: var(--mm-sp-2) 0; color: var(--mm-muted); font-size: var(--mm-fs-13); }
.mm-lv-trong[hidden] { display: none; }
.mm-lv-them, .mm-lv-chu, .mm-lv-nho, .mm-lv-chinh {
display: inline-flex; align-items: center; justify-content: center; gap: var(--mm-sp-2);
border: 1px solid var(--mm-line); border-radius: var(--mm-r-btn); background: var(--mm-panel);
color: var(--mm-muted); box-shadow: var(--mm-out-xs); font: 500 var(--mm-fs-13) var(--mm-font); cursor: pointer;
}
:root[data-theme="light"] :is(.mm-lv-them, .mm-lv-chu, .mm-lv-nho) { border: 0; }
.mm-lv-them { width: 100%; margin-top: var(--mm-sp-3); min-height: 44px; padding: var(--mm-sp-2) var(--mm-sp-3); color: var(--mm-link); }
.mm-lv-chu { min-height: 36px; padding: var(--mm-sp-1) var(--mm-sp-3); }
.mm-lv-nho { flex: none; width: 36px; height: 36px; padding: 0; }
.mm-lv-them svg, .mm-lv-nho svg { width: 16px; height: 16px; }
@media (hover: hover) { :is(.mm-lv-them, .mm-lv-chu, .mm-lv-nho):hover { color: var(--mm-link); box-shadow: var(--mm-out-sm); } }
:is(.mm-lv-them, .mm-lv-chu, .mm-lv-nho):active { box-shadow: var(--mm-in-sm); }
.mm-lv-nho:disabled { opacity: .45; cursor: default; box-shadow: none; }
.mm-lv-chinh { min-height: 40px; padding: var(--mm-sp-2) var(--mm-sp-4); border: 0; background: var(--mm-primary); color: var(--mm-on-brand); box-shadow: var(--mm-primary-shadow); }
.mm-lv-chinh:active { box-shadow: var(--mm-in-sm); }


.mm-lv-sua {
left: 50%; top: 50%; transform: translate(-50%, -50%);
width: min(560px, calc(100vw - 32px)); max-height: min(720px, calc(100vh - 32px));
display: flex; flex-direction: column; padding: var(--mm-sp-4) 0 0;
}
.mm-lv-sua > .mm-lv-dau { padding: 0 var(--mm-sp-4); }
.mm-lv-luu { color: var(--mm-ok); font-size: var(--mm-fs-12); }
.mm-lv-luu.loi { color: var(--mm-bad); }
.mm-lv-than { overflow: auto; overscroll-behavior: contain; padding: 0 var(--mm-sp-4) var(--mm-sp-4); }
.mm-lv-muc, .mm-lv-nhom h3 { margin: var(--mm-sp-3) 0 var(--mm-sp-1); font-size: var(--mm-fs-13); font-weight: 600; color: var(--mm-muted); }
.mm-lv-goi-y { margin: 0 0 var(--mm-sp-2); color: var(--mm-dim); font-size: var(--mm-fs-12); }
.mm-lv-ds, .mm-lv-chon { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--mm-sp-1); }
.mm-lv-ds-trong { color: var(--mm-muted); font-size: var(--mm-fs-13); padding: var(--mm-sp-2) 0; }
.mm-lv-dong {
display: flex; align-items: center; gap: var(--mm-sp-2); padding: var(--mm-sp-1) var(--mm-sp-2);
border-radius: var(--mm-r-btn); background: var(--mm-panel); box-shadow: var(--mm-in-sm);
}
.mm-lv-dong.dang-keo { position: relative; z-index: 1; box-shadow: var(--mm-out); background: var(--mm-wash); }
.mm-lv-dong.mat .mm-lv-dong-chu small { color: var(--mm-warn); }
.mm-lv-cam { display: grid; place-items: center; width: 28px; height: 40px; flex: none; color: var(--mm-dim); cursor: grab; touch-action: none; }
.mm-lv-cam svg { width: 18px; height: 18px; }
.mm-lv-dong-chu { flex: 1; min-width: 0; display: grid; text-align: left; }
.mm-lv-dong-chu b { font-weight: 500; font-size: var(--mm-fs-14); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-lv-dong-chu small { color: var(--mm-dim); font-size: var(--mm-fs-12); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-lv-dong-chu small svg { width: 12px; height: 12px; vertical-align: -1px; color: var(--mm-warn); }
.mm-lv-tim-o {
display: flex; align-items: center; gap: var(--mm-sp-2); margin: var(--mm-sp-4) 0 var(--mm-sp-1);
padding: 0 var(--mm-sp-3); border: 1px solid var(--mm-line); border-radius: var(--mm-r-field);
background: var(--mm-field); box-shadow: var(--mm-in-sm); color: var(--mm-dim);
}
:root[data-theme="light"] .mm-lv-tim-o { border-color: transparent; }
.mm-lv-tim-o:focus-within { border-color: var(--mm-link); }
.mm-lv-tim-o svg { width: 16px; height: 16px; flex: none; }
.mm-lv-tim { flex: 1; min-width: 0; min-height: 44px; border: 0; outline: 0; background: transparent; color: var(--mm-text); font: var(--mm-fs-16) var(--mm-font); }
:root .mm-lv-sua input.mm-lv-tim[type="search"], :root .mm-lv-sua input.mm-lv-tim[type="search"]:focus { box-shadow: none; border: 0; border-radius: 0; padding: 0; background: transparent; -webkit-appearance: none; appearance: none; }
.mm-lv-sua .mm-lv-tim:focus-visible { outline: none; }
.mm-lv-tim::placeholder { color: var(--mm-dim); }
.mm-lv-nhom-trong { margin: 0; color: var(--mm-dim); font-size: var(--mm-fs-13); padding: var(--mm-sp-1) 0; }
.mm-lv-chon-nut {
width: 100%; display: flex; align-items: center; gap: var(--mm-sp-3); min-height: 48px;
padding: var(--mm-sp-1) var(--mm-sp-2); border: 0; border-radius: var(--mm-r-btn);
background: transparent; color: var(--mm-text); font: inherit; cursor: pointer;
}
@media (hover: hover) { .mm-lv-chon-nut:hover { background: var(--mm-row); } }
.mm-lv-chon-nut[aria-pressed="true"] { background: var(--mm-wash); box-shadow: inset 3px 0 var(--mm-brand), var(--mm-in-sm); }
.mm-lv-chon-nut:disabled { opacity: .55; cursor: default; }
.mm-lv-luu:empty { display: none; }
.mm-lv-ghim-dau { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: var(--mm-r-pill); color: var(--mm-link); box-shadow: var(--mm-out-xs); }
.mm-lv-chon-nut[aria-pressed="true"] .mm-lv-ghim-dau { background: var(--mm-primary); color: var(--mm-on-brand); box-shadow: none; }
.mm-lv-ghim-dau svg, .mm-lv-dau .mm-lv-nho svg { width: 16px; height: 16px; }


.mm-lv-bao {
position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
z-index: 1520; max-width: min(420px, calc(100vw - 32px)); padding: var(--mm-sp-2) var(--mm-sp-4);
border-radius: var(--mm-r-btn); background: var(--mm-panel); color: var(--mm-text); box-shadow: var(--mm-out);
font: var(--mm-fs-13) var(--mm-font);
}
.mm-lv-bao[hidden] { display: none; }
html.mm-lv-khoa-cuon, html.mm-lv-khoa-cuon body { overflow: hidden; }

@keyframes mm-lv-vao { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes mm-lv-len { from { transform: translateY(100%); } to { transform: none; } }


@media (max-width: 600px) {
.mm-lv { width: 60px; height: 60px; }
.mm-lv-menu, .mm-lv-sua {
left: 0; right: 0; bottom: 0; top: auto; transform: none; width: auto;
border-radius: var(--mm-r-card) var(--mm-r-card) 0 0;
padding-bottom: env(safe-area-inset-bottom, 0px); animation: mm-lv-len .22s cubic-bezier(.2, .8, .2, 1);
}
.mm-lv-menu { max-height: 72vh; padding: var(--mm-sp-3) var(--mm-sp-4) calc(var(--mm-sp-4) + env(safe-area-inset-bottom, 0px)); }
.mm-lv-sua { max-height: 90vh; height: 90vh; padding-top: var(--mm-sp-3); }
.mm-lv-menu::before, .mm-lv-sua::before { content: ""; display: block; width: 40px; height: 4px; margin: 0 auto var(--mm-sp-3); border-radius: var(--mm-r-pill); background: var(--mm-line); }
.mm-lv-luoi { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
.mm-lv, .mm-lv.mm-lv-muot, .mm-lv-menu, .mm-lv-sua { transition: none; animation: none; }
}
