:root{--mf-mini-navy:#062b68;--mf-mini-blue:#0b57d0;--mf-mini-yellow:#ffc400;--mf-mini-bg:#eef4fb;--mf-mini-line:#dbe6f4}
body.mf-lmc-mini-view{margin:0;background:var(--mf-mini-bg);overflow:hidden;font-family:Kanit,Prompt,system-ui,sans-serif}
body.mf-lmc-mini-view .mf-lmc-app{height:100dvh;min-height:100dvh;display:grid;grid-template-rows:58px minmax(0,1fr) 68px;background:#fff;max-width:520px;margin:0 auto;position:relative;overflow:hidden;box-shadow:0 0 36px rgba(4,34,75,.18)}
body.mf-lmc-mini-view .mf-mini-appbar{grid-row:1;display:flex;align-items:center;justify-content:space-between;padding:8px 12px;background:var(--mf-mini-navy);color:#fff;z-index:120}
.mf-mini-brand{display:flex;align-items:center;gap:10px}.mf-mini-brand>span{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:var(--mf-mini-yellow);color:var(--mf-mini-navy);font-weight:900}.mf-mini-brand b{display:block;font-size:17px}.mf-mini-brand small{display:flex;align-items:center;gap:5px;font-size:11px}.mf-mini-brand i{width:7px;height:7px;background:#25d366;border-radius:50%}
.mf-mini-actions{display:flex;gap:8px}.mf-mini-actions button{width:38px;height:38px;border:0;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;font-size:18px}
body.mf-lmc-mini-view .mf-lmc-sidebar,body.mf-lmc-mini-view .mf-lmc-topbar,body.mf-lmc-mini-view .mf-lmc-drivers,body.mf-lmc-mini-view .mf-v35-mydriver,body.mf-lmc-mini-view .mf-v30-service-dock,body.mf-lmc-mini-view .mf-v308-job-center{display:none!important}
body.mf-lmc-mini-view .mf-lmc-main{grid-row:2;min-width:0;min-height:0;overflow:hidden;display:block;padding:0!important;margin:0!important}
body.mf-lmc-mini-view .mf-lmc-workspace{display:block!important;height:100%;min-height:0;margin:0!important;padding:0!important;position:relative;overflow:hidden;background:#fff}
body.mf-lmc-mini-view .mf-lmc-chat-panel{position:absolute!important;inset:0!important;width:100%!important;max-width:none!important;height:100%!important;border:0!important;border-radius:0!important;display:flex!important;flex-direction:column!important;background:#fff!important;z-index:30;overflow:hidden}
body.mf-lmc-mini-view .mf-lmc-chat-head{height:52px;min-height:52px;padding:7px 12px!important;border-bottom:1px solid var(--mf-mini-line);background:#fff!important;color:var(--mf-mini-navy)!important}
body.mf-lmc-mini-view .mf-v380-service-icon{background:var(--mf-mini-yellow)!important;color:var(--mf-mini-navy)!important}
body.mf-lmc-mini-view .mf-lmc-presence,body.mf-lmc-mini-view .mf-v3383-livebar,body.mf-lmc-mini-view .mf-v381-job-chat,body.mf-lmc-mini-view .mf-v3681-call-strip,body.mf-lmc-mini-view .mf-lmc-tabs{display:none!important}
body.mf-lmc-mini-view .mf-lmc-tab[data-panel="chat"]{display:flex!important;flex-direction:column;min-height:0;flex:1;padding:0!important;background:#f5f8fc}
body.mf-lmc-mini-view .mf-v380-chat-toolbar{display:flex!important;height:46px;min-height:46px;padding:6px 10px!important;background:#fff;border-bottom:1px solid var(--mf-mini-line)}
body.mf-lmc-mini-view .mf-lmc-messages{flex:1!important;min-height:0!important;overflow-y:auto!important;padding:14px 12px 18px!important;background:linear-gradient(180deg,#f5f8fc,#eef4fb)!important}
body.mf-lmc-mini-view .mf-msg{max-width:84%;margin:8px 0!important}.mf-lmc-mini-view .mf-msg>div{border-radius:18px!important;box-shadow:none!important}.mf-lmc-mini-view .mf-msg.customer{margin-left:auto!important}.mf-lmc-mini-view .mf-msg.customer>div{background:var(--mf-mini-blue)!important;color:#fff!important}.mf-lmc-mini-view .mf-msg.customer small,.mf-lmc-mini-view .mf-msg.customer b,.mf-lmc-mini-view .mf-msg.customer p{color:#fff!important}
body.mf-lmc-mini-view .mf-lmc-composer{height:58px;min-height:58px;padding:7px 9px calc(7px + env(safe-area-inset-bottom))!important;background:#fff!important;border-top:1px solid var(--mf-mini-line);gap:5px!important}
body.mf-lmc-mini-view .mf-lmc-composer input[name="message"]{height:42px;border-radius:22px!important;background:#f1f5fa!important;border:1px solid #dce6f2!important;padding:0 14px!important}
body.mf-lmc-mini-view .mf-v380-send{width:42px!important;height:42px!important;border-radius:50%!important;background:var(--mf-mini-blue)!important;color:#fff!important}
body.mf-lmc-mini-view .mf-v3383-chat-note{display:none!important}
body.mf-lmc-mini-view .mf-lmc-map-panel{position:absolute!important;left:0!important;right:0!important;bottom:0!important;top:0!important;height:100%!important;width:100%!important;border:0!important;border-radius:0!important;z-index:60;transform:translateY(100%);transition:transform .32s cubic-bezier(.2,.8,.2,1);overflow:hidden;background:#fff}
body.mf-lmc-mini-view.mf-mini-map-peek .mf-lmc-map-panel{transform:translateY(58%)}
body.mf-lmc-mini-view.mf-mini-map-split .mf-lmc-map-panel{transform:translateY(36%)}
body.mf-lmc-mini-view.mf-mini-map-full .mf-lmc-map-panel{transform:translateY(0)}
body.mf-lmc-mini-view .mf-lmc-map-head,body.mf-lmc-mini-view .mf-v37-map-modes,body.mf-lmc-mini-view .mf-v31-planner{display:none!important}
body.mf-lmc-mini-view .mf-lmc-map{height:100%!important;min-height:100%!important;border-radius:0!important}
body.mf-lmc-mini-view .mf-v363-map-summary{top:56px!important;right:10px!important;max-width:150px!important}
body.mf-lmc-mini-view .mf-mini-bottom-nav{grid-row:3;display:grid;grid-template-columns:repeat(5,1fr);height:68px;background:#fff;border-top:1px solid var(--mf-mini-line);z-index:110;padding-bottom:env(safe-area-inset-bottom)}
.mf-mini-bottom-nav button{border:0;background:#fff;color:#61718a;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:18px}.mf-mini-bottom-nav button b{font-size:10px}.mf-mini-bottom-nav button.is-active{color:var(--mf-mini-blue)}
body.mf-lmc-mini-view .mf-mini-map-sheet{position:absolute;left:0;right:0;bottom:68px;height:32px;z-index:90;pointer-events:none}
.mf-mini-sheet-handle{pointer-events:auto;width:138px;height:28px;margin:0 auto;background:#fff;border:1px solid var(--mf-mini-line);border-radius:16px 16px 0 0;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 -5px 15px rgba(5,37,82,.12);touch-action:none;cursor:ns-resize}.mf-mini-sheet-handle span{display:block;width:36px;height:4px;border-radius:3px;background:#aebbd0}.mf-mini-sheet-handle small{font-size:8px;color:#63748b}
body.mf-lmc-mini-view.mf-mini-map-peek .mf-mini-sheet-handle,body.mf-lmc-mini-view.mf-mini-map-split .mf-mini-sheet-handle,body.mf-lmc-mini-view.mf-mini-map-full .mf-mini-sheet-handle{position:fixed;left:50%;transform:translateX(-50%);z-index:150;bottom:calc(68px + env(safe-area-inset-bottom))}
body.mf-lmc-mini-view .mf-lmc-tab:not([data-panel="chat"]){position:absolute!important;inset:52px 0 58px;z-index:75;background:#fff;overflow:auto;padding:14px!important}
@media(min-width:700px){body.mf-lmc-mini-view{background:#dfe8f4}body.mf-lmc-mini-view .mf-lmc-app{height:min(860px,96vh);min-height:640px;margin:2vh auto;border-radius:22px;box-shadow:0 22px 70px rgba(6,43,104,.25)}body.mf-lmc-mini-view .mf-lmc-app{max-width:430px}}
@media(max-width:420px){body.mf-lmc-mini-view .mf-lmc-app{max-width:none}.mf-mini-brand b{font-size:16px}}

/* =========================================================
   V44.5.2 — Mini Messenger Layout Fit
   Force the unified desktop engine into a true single-column
   phone shell when ?view=mini is active.
   ========================================================= */
body.mf-lmc-mini-view .mf-lmc-app{
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-areas:
    "mini-header"
    "mini-main"
    "mini-nav"!important;
  width:100%!important;
}
body.mf-lmc-mini-view .mf-mini-appbar{
  grid-area:mini-header!important;
  grid-column:1/-1!important;
  width:100%!important;
  min-width:0!important;
}
body.mf-lmc-mini-view .mf-lmc-main{
  grid-area:mini-main!important;
  grid-column:1/-1!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
}
body.mf-lmc-mini-view .mf-mini-bottom-nav{
  grid-area:mini-nav!important;
  grid-column:1/-1!important;
  width:100%!important;
  min-width:0!important;
}
body.mf-lmc-mini-view .mf-lmc-workspace,
body.mf-lmc-mini-view .mf-lmc-chat-panel,
body.mf-lmc-mini-view .mf-lmc-map-panel{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
}
body.mf-lmc-mini-view .mf-lmc-chat-panel{
  left:0!important;
  right:0!important;
}
body.mf-lmc-mini-view .mf-lmc-chat-head,
body.mf-lmc-mini-view .mf-v380-chat-toolbar,
body.mf-lmc-mini-view .mf-lmc-messages,
body.mf-lmc-mini-view .mf-lmc-composer{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
}
body.mf-lmc-mini-view .mf-lmc-tab[data-panel="chat"]{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
}
body.mf-lmc-mini-view .mf-lmc-messages{
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
}
body.mf-lmc-mini-view .mf-msg{
  width:auto!important;
}
body.mf-lmc-mini-view .mf-mini-map-sheet{
  width:100%!important;
}

/* Phone-like standalone shell on desktop; real full screen on mobile. */
@media(min-width:700px){
  body.mf-lmc-mini-view .mf-lmc-app{
    width:min(420px,calc(100vw - 32px))!important;
    max-width:420px!important;
    min-width:360px!important;
    height:min(840px,96dvh)!important;
    min-height:620px!important;
  }
}
@media(max-width:699px){
  body.mf-lmc-mini-view{
    background:#fff!important;
  }
  body.mf-lmc-mini-view .mf-lmc-app{
    width:100vw!important;
    max-width:none!important;
    min-width:0!important;
    height:100dvh!important;
    min-height:100dvh!important;
    margin:0!important;
    border-radius:0!important;
    box-shadow:none!important;
  }
}
