/* MISTER FAST V61.9.1 — Desktop sidebar icon + label.
   Desktop only. Keeps the locked 3-panel shell and shows the existing menu labels.
   No menu items, Mini files, Map, Chat, API or data are changed. */
@media (min-width: 901px) {
  html,
  body.mf-desktop-shell-body {
    width: 100% !important;
    height: 100% !important;
    min-width: 1024px;
    min-height: 100%;
    margin: 0 !important;
    overflow: hidden !important;
    background: #fff;
  }

  body.mf-desktop-shell-body .mf514-window,
  body.mf-desktop-shell-body .mf514-window.is-expanded,
  body.mf-desktop-shell-body .mf514-window.is-map-fullscreen,
  body.mf-desktop-shell-body .mf514-window.mf593-map-hidden,
  body.mf-desktop-shell-body .mf514-window.mf59-map-open {
    position: fixed !important;
    inset: 0 !important;
    display: block !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
    transform: none !important;
  }

  body.mf-desktop-shell-body .mf514-titlebar,
  body.mf-desktop-shell-body .mf52-ticker {
    display: none !important;
  }

  body.mf-desktop-shell-body .mf514-grid,
  body.mf-desktop-shell-body .mf514-window.is-expanded .mf514-grid,
  body.mf-desktop-shell-body .mf514-window.is-map-fullscreen .mf514-grid,
  body.mf-desktop-shell-body .mf514-window.mf593-map-hidden .mf514-grid,
  body.mf-desktop-shell-body .mf514-window.mf59-map-open .mf514-grid {
    position: relative !important;
    inset: auto !important;
    display: grid !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    grid-template-columns: 220px minmax(0, 1fr) 360px !important;
    grid-template-rows: minmax(0, 1fr) !important;
    grid-template-areas: "sidebar map chat" !important;
    gap: 0 !important;
    overflow: hidden !important;
    background: #fff !important;
    transition: none !important;
  }

  body.mf-desktop-shell-body .mf514-sidebar {
    grid-area: sidebar !important;
    position: relative !important;
    inset: auto !important;
    display: block !important;
    width: auto !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 12px 10px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    transform: none !important;
    border-radius: 0 !important;
  }

  body.mf-desktop-shell-body .mf514-menu {
    display: grid !important;
    gap: 9px !important;
    width: 100% !important;
  }

  body.mf-desktop-shell-body .mf514-menu button {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) !important;
    align-items: center !important;
    justify-items: start !important;
    gap: 10px !important;
    width: 100% !important;
    min-height: 58px !important;
    padding: 8px 12px !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    border-radius: 15px !important;
    background: rgba(15,91,190,.86) !important;
    color: #fff !important;
    text-align: left !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
  }

  body.mf-desktop-shell-body .mf514-menu button > span {
    display: grid !important;
    place-items: center !important;
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    font-size: 23px !important;
    line-height: 1 !important;
  }

  body.mf-desktop-shell-body .mf514-menu button > b {
    display: block !important;
    min-width: 0 !important;
    overflow: hidden !important;
    color: inherit !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    text-overflow: ellipsis !important;
  }

  body.mf-desktop-shell-body .mf514-menu button:hover {
    background: #eaf4ff !important;
    color: #003da5 !important;
    transform: none !important;
  }

  body.mf-desktop-shell-body .mf514-menu button.is-active {
    background: #ffc400 !important;
    color: #003da5 !important;
    box-shadow: 0 5px 14px rgba(0,61,165,.18) !important;
  }

  body.mf-desktop-shell-body .mf514-menu button.is-active::before {
    left: -10px !important;
    top: 10px !important;
    bottom: 10px !important;
    width: 4px !important;
    border-radius: 0 4px 4px 0 !important;
    background: #ffc400 !important;
  }

  body.mf-desktop-shell-body .mf514-map-pane,
  body.mf-desktop-shell-body .mf514-window.is-expanded .mf514-map-pane,
  body.mf-desktop-shell-body .mf514-window.is-map-fullscreen .mf514-map-pane,
  body.mf-desktop-shell-body .mf514-window.mf593-map-hidden .mf514-map-pane,
  body.mf-desktop-shell-body .mf514-window.mf59-map-open .mf514-map-pane {
    grid-area: map !important;
    position: relative !important;
    inset: auto !important;
    display: flex !important;
    flex-direction: column !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto !important;
    max-width: none !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    transform: none !important;
    background: #fff !important;
    border-left: 1px solid #dce8f8;
  }

  body.mf-desktop-shell-body .mf514-map-toolbar { flex: 0 0 auto !important; }

  body.mf-desktop-shell-body .mf514-map-wrap {
    position: relative !important;
    display: block !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  body.mf-desktop-shell-body #mf514Map {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 360px !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  body.mf-desktop-shell-body .mf514-chat-pane,
  body.mf-desktop-shell-body .mf514-window.is-expanded .mf514-chat-pane,
  body.mf-desktop-shell-body .mf514-window.is-map-fullscreen .mf514-chat-pane,
  body.mf-desktop-shell-body .mf514-window.mf593-map-hidden .mf514-chat-pane,
  body.mf-desktop-shell-body .mf514-window.mf59-map-open .mf514-chat-pane {
    grid-area: chat !important;
    position: relative !important;
    inset: auto !important;
    display: flex !important;
    flex-direction: column !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto !important;
    max-width: none !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    transform: none !important;
    border-left: 4px solid #003da5 !important;
    border-radius: 0 !important;
    background: #fff !important;
  }

  body.mf-desktop-shell-body .mf59-edge-handle { display: none !important; }
}

@media (min-width: 1280px) {
  body.mf-desktop-shell-body .mf514-grid,
  body.mf-desktop-shell-body .mf514-window.mf593-map-hidden .mf514-grid,
  body.mf-desktop-shell-body .mf514-window.mf59-map-open .mf514-grid {
    grid-template-columns: 230px minmax(0, 1fr) 380px !important;
  }
}
