/* Migo CRM v8.5.19.5 — account popover uses the existing modern-sidebar language. */
body.crm-app .migo-account-main .migo-user-avatar.migo-account-v85195-footer-avatar {
  overflow:hidden !important;
  padding:0 !important;
}
body.crm-app .migo-account-main .migo-user-avatar.migo-account-v85195-footer-avatar img {
  width:100% !important;
  height:100% !important;
  display:block !important;
  object-fit:cover !important;
  border-radius:inherit !important;
}
body.crm-app.migo-sidebar-modern-v3039 .migo-account-menu.migo-account-menu-v85195,
body.crm-app .migo-account-menu.migo-account-menu-v85195 {
  left:0 !important;
  right:0 !important;
  width:auto !important;
  padding:6px !important;
  border:1px solid #dbe5d6 !important;
  border-radius:10px !important;
  background:#fffefb !important;
  box-shadow:0 14px 34px rgba(48,64,52,.15) !important;
  backdrop-filter:none !important;
  overflow:hidden !important;
  color:#344238 !important;
}
body.crm-app .migo-account-v85195-head {
  display:grid !important;
  grid-template-columns:36px minmax(0,1fr) !important;
  align-items:center !important;
  gap:9px !important;
  padding:7px 8px 8px !important;
  border-bottom:1px solid #e8eee4 !important;
}
body.crm-app .migo-account-v85195-avatar {
  width:36px !important;
  height:36px !important;
  display:grid !important;
  place-items:center !important;
  overflow:hidden !important;
  border-radius:50% !important;
  background:#6c9a5b !important;
  color:#fff !important;
  font-size:11px !important;
  font-weight:800 !important;
}
body.crm-app .migo-account-v85195-avatar img { width:100% !important; height:100% !important; object-fit:cover !important; display:block !important; }
body.crm-app .migo-account-v85195-copy { min-width:0 !important; display:grid !important; gap:0 !important; }
body.crm-app .migo-account-v85195-copy strong,
body.crm-app .migo-account-v85195-copy span,
body.crm-app .migo-account-v85195-copy small {
  overflow:hidden !important;
  white-space:nowrap !important;
  text-overflow:ellipsis !important;
}
body.crm-app .migo-account-v85195-copy strong { color:#344238 !important; font-size:12px !important; line-height:17px !important; font-weight:750 !important; }
body.crm-app .migo-account-v85195-copy span { color:#667268 !important; font-size:10px !important; line-height:14px !important; }
body.crm-app .migo-account-v85195-copy small { color:#98a299 !important; font-size:9px !important; line-height:13px !important; }

body.crm-app .migo-account-v85195-cabinet { padding:7px 8px 8px !important; border-bottom:1px solid #e8eee4 !important; }
body.crm-app .migo-account-v85195-label { display:flex !important; align-items:center !important; gap:7px !important; margin:0 0 5px !important; color:#7c897d !important; font-size:10px !important; line-height:14px !important; font-weight:650 !important; }
body.crm-app .migo-account-v85195-icon { width:16px !important; height:16px !important; min-width:16px !important; display:inline-flex !important; align-items:center !important; justify-content:center !important; color:#7c897d !important; }
body.crm-app .migo-account-v85195-icon svg { width:16px !important; height:16px !important; display:block !important; }
body.crm-app .migo-account-v85195-cabinet .migo-cabinet-select {
  width:100% !important;
  height:34px !important;
  min-height:34px !important;
  margin:0 !important;
  padding:0 30px 0 9px !important;
  border:1px solid #dbe5d6 !important;
  border-radius:8px !important;
  background:#f3f7ee !important;
  color:#344238 !important;
  font-size:11px !important;
  font-weight:650 !important;
  box-shadow:none !important;
}

body.crm-app .migo-account-v85195-actions { display:grid !important; gap:1px !important; padding:5px 0 0 !important; }
body.crm-app .migo-account-v85195-actions > button {
  width:100% !important;
  min-height:34px !important;
  display:grid !important;
  grid-template-columns:16px minmax(0,1fr) !important;
  align-items:center !important;
  gap:9px !important;
  margin:0 !important;
  padding:7px 10px !important;
  border:0 !important;
  border-radius:9px !important;
  background:transparent !important;
  color:#4c594e !important;
  text-align:left !important;
  font-size:12px !important;
  font-weight:600 !important;
  line-height:1.25 !important;
  box-shadow:none !important;
  cursor:pointer !important;
}
body.crm-app .migo-account-v85195-actions > button:hover,
body.crm-app .migo-account-v85195-actions > button:focus-visible { background:#e8f0e3 !important; color:#314234 !important; outline:none !important; }
body.crm-app .migo-account-v85195-actions > button:hover .migo-account-v85195-icon { color:#5f8c50 !important; }
body.crm-app .migo-account-v85195-divider { height:1px !important; margin:4px 2px !important; background:#e8eee4 !important; }
body.crm-app .migo-account-v85195-actions > button.is-logout { color:#b42318 !important; }
body.crm-app .migo-account-v85195-actions > button.is-logout .migo-account-v85195-icon { color:#b42318 !important; }
body.crm-app .migo-account-v85195-actions > button.is-logout:hover { background:#fff2f0 !important; }

/* v8.5.21.225 — keep the modern account card compact and above the sidebar shell. */
body.crm-app .migo-account-footer .migo-account-menu.migo-account-menu-v85195 {
  z-index: 10080 !important;
  max-height: min(420px, calc(100vh - 86px)) !important;
  overflow: auto !important;
}
body.crm-app .migo-account-v85195-actions > button .migo-account-v85195-icon,
body.crm-app .migo-account-v85195-label .migo-account-v85195-icon {
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
}


/* v8.5.21.225 — last approved Account menu structure + Sessions dialog. */
body.crm-app .migo-account-footer .migo-account-menu.migo-account-menu-v85195 {
  max-height:min(560px,calc(100vh - 86px)) !important;
}
.migo-account-sessions-v225{border:0;padding:0;background:transparent;max-width:none;max-height:none}
.migo-account-sessions-v225::backdrop{background:rgba(15,23,42,.42);backdrop-filter:blur(2px)}
.migo-account-sessions-shell-v225{width:min(680px,calc(100vw - 32px));max-height:min(78vh,720px);display:grid;grid-template-rows:auto minmax(0,1fr) auto;background:#fff;border:1px solid #dbe2ea;border-radius:10px;box-shadow:0 24px 70px rgba(15,23,42,.22);overflow:hidden;color:#172033}
.migo-account-sessions-shell-v225>header{min-height:66px;padding:14px 16px 12px 18px;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;border-bottom:1px solid #e6eaf0}
.migo-account-sessions-shell-v225>header small{display:block;font-size:10px;font-weight:800;letter-spacing:.06em;color:#7a8798;margin-bottom:2px}.migo-account-sessions-shell-v225>header h2{margin:0;font-size:18px;line-height:1.2}.migo-account-sessions-shell-v225>header p{margin:3px 0 0;font-size:12px;color:#718096}.migo-account-sessions-shell-v225>header button{width:34px;height:34px;display:grid;place-items:center;border:1px solid #dbe2ea;border-radius:7px;background:#fff;color:#5f6b7a;cursor:pointer}.migo-account-sessions-shell-v225>header button svg{width:16px;height:16px}
.migo-account-sessions-body-v225{overflow:auto;padding:12px 16px}.migo-account-sessions-state-v225{display:grid;gap:8px}.migo-account-session-v225{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 11px;border:1px solid #e4e9ef;border-radius:8px;background:#fff}.migo-account-session-v225.is-current{border-color:#b9d5ae;background:#f7fbf4}.migo-account-session-icon-v225{width:34px;height:34px;display:grid;place-items:center;border-radius:7px;background:#f1f4f7;color:#64748b}.migo-account-session-icon-v225 svg{width:17px;height:17px}.migo-account-session-v225 strong{display:block;font-size:12px}.migo-account-session-v225 small,.migo-account-session-v225 em{display:block;font-style:normal;font-size:10px;color:#7a8798;margin-top:2px}.migo-account-session-state-v225{display:grid;justify-items:end;gap:6px;font-size:10px;font-weight:700;color:#5e6a79}.migo-account-session-state-v225 button{height:30px;padding:0 10px;border:1px solid #e0b4ae;border-radius:7px;background:#fff;color:#b42318;font-size:11px;font-weight:700;cursor:pointer}.migo-account-sessions-empty-v225,.migo-account-sessions-loading-v225{padding:28px;text-align:center;color:#7a8798;font-size:12px}
.migo-account-sessions-shell-v225>footer{min-height:58px;padding:10px 14px;display:flex;align-items:center;justify-content:flex-end;gap:8px;border-top:1px solid #e6eaf0;background:#f8fafc}.migo-account-sessions-shell-v225>footer .primary-btn,.migo-account-sessions-shell-v225>footer .secondary-btn{height:36px;min-height:36px;border-radius:7px;font-size:12px}
