/* MISTER FAST V36.5 — Workspace Expand Controls
   Patch-only: existing Core, URL, DB and role architecture remain unchanged. */
:root{
  --mf-v365-blue:#003DA5;
  --mf-v365-deep:#082B5C;
  --mf-v365-yellow:#FFC400;
  --mf-v365-white:#FFFFFF;
  --mf-v365-soft:#F4F8FF;
  --mf-v365-border:#D9E4F2;
}

/* Sidebar toggle: visible bright control, no black. */
.mf-lmc-sidebar-toggle{
  background:var(--mf-v365-white)!important;
  color:var(--mf-v365-blue)!important;
  border:2px solid rgba(255,255,255,.75)!important;
  box-shadow:0 8px 22px rgba(0,61,165,.22)!important;
}
.mf-lmc-sidebar-toggle:hover{background:var(--mf-v365-yellow)!important}

/* Fullscreen map control moved inside the map, top-right. */
.mf-lmc-map-panel{position:relative!important}
.mf-v365-map-expand{
  position:absolute;
  top:84px;
  right:16px;
  z-index:720;
  display:flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  padding:9px 13px;
  border:1px solid var(--mf-v365-border);
  border-radius:14px;
  background:rgba(255,255,255,.96);
  color:var(--mf-v365-blue);
  font-weight:900;
  cursor:pointer;
  box-shadow:0 10px 28px rgba(0,61,165,.18);
  backdrop-filter:blur(8px);
}
.mf-v365-map-expand span{font-size:20px;line-height:1}
.mf-v365-map-expand:hover{background:var(--mf-v365-yellow);color:var(--mf-v365-deep)}

/* Chat collapse handle. */
.mf-v365-chat-head-actions{display:flex;align-items:center;gap:8px}
.mf-v365-chat-toggle{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border:1px solid var(--mf-v365-border);
  border-radius:11px;
  background:var(--mf-v365-white);
  color:var(--mf-v365-blue);
  font-size:24px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 6px 18px rgba(0,61,165,.14);
  transition:transform .2s ease,background .2s ease;
}
.mf-v365-chat-toggle:hover{background:var(--mf-v365-yellow)}

/* Desktop chat collapsed state expands map area. */
.mf-lmc-workspace.mf-v365-chat-collapsed{
  grid-template-columns:minmax(0,1fr) 58px!important;
}
.mf-lmc-workspace.mf-v365-chat-collapsed .mf-lmc-chat-panel{
  min-width:58px!important;
  width:58px!important;
  overflow:hidden!important;
}
.mf-lmc-workspace.mf-v365-chat-collapsed .mf-lmc-chat-panel > *:not(.mf-lmc-chat-head){display:none!important}
.mf-lmc-workspace.mf-v365-chat-collapsed .mf-lmc-chat-head{
  min-height:100%;
  padding:10px 7px!important;
  justify-content:center!important;
  background:var(--mf-v365-white)!important;
  border-left:1px solid var(--mf-v365-border);
}
.mf-lmc-workspace.mf-v365-chat-collapsed .mf-lmc-chat-head>div:first-child{display:none!important}
.mf-lmc-workspace.mf-v365-chat-collapsed .mf-v365-chat-head-actions>span{display:none!important}
.mf-lmc-workspace.mf-v365-chat-collapsed .mf-v365-chat-toggle{transform:rotate(180deg)}

/* Map fullscreen state remains bright. */
.mf-lmc-map-panel.is-fullscreen,
.mf-lmc-map-panel:fullscreen{
  background:var(--mf-v365-white)!important;
  border-radius:0!important;
  width:100vw!important;
  height:100vh!important;
}
.mf-lmc-map-panel.is-fullscreen #mfLmcMap,
.mf-lmc-map-panel:fullscreen #mfLmcMap{height:calc(100vh - 72px)!important}

@media(max-width:760px){
  .mf-v365-map-expand{
    top:72px;
    right:9px;
    width:42px;
    height:42px;
    min-height:42px;
    padding:0;
    justify-content:center;
    border-radius:13px;
  }
  .mf-v365-map-expand b{display:none}
  .mf-v365-map-expand span{font-size:19px}
  .mf-lmc-workspace.mf-v365-chat-collapsed{display:block!important}
  .mf-lmc-workspace.mf-v365-chat-collapsed .mf-lmc-chat-panel{
    width:100%!important;
    min-width:0!important;
    min-height:52px!important;
    height:52px!important;
  }
  .mf-lmc-workspace.mf-v365-chat-collapsed .mf-lmc-chat-head{
    min-height:52px!important;
    height:52px!important;
    justify-content:flex-end!important;
  }
}
